Skip to content

Commit

Permalink
Fix schema and types
Browse files Browse the repository at this point in the history
  • Loading branch information
tasiov committed Sep 21, 2023
1 parent 87fdaab commit 941135f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
14 changes: 10 additions & 4 deletions contracts/infinity-index/schema/infinity-index.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"contract_name": "infinity-index",
"contract_version": "0.1.0",
"contract_version": "0.1.1",
"idl_version": "1.0.0",
"instantiate": {
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down Expand Up @@ -160,9 +160,11 @@
"properties": {
"amount": {
"description": "The amount of tokens in being quoted",
"type": "integer",
"format": "uint128",
"minimum": 0.0
"allOf": [
{
"$ref": "#/definitions/Uint128"
}
]
},
"pair": {
"description": "The address of the infinity pair contract",
Expand Down Expand Up @@ -243,6 +245,10 @@
}
},
"additionalProperties": false
},
"Uint128": {
"description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```",
"type": "string"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion typescript/packages/e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@cosmjs/proto-signing": "^0.31.0",
"@cosmjs/stargate": "^0.31.0",
"@stargazezone/launchpad": "^2.3.3",
"@stargazezone/infinity-types": "0.6.0",
"@stargazezone/infinity-types": "0.7.0",
"@stargazezone/core-types": "0.1.0",
"@types/jest": "^29.5.2",
"axios": "^1.4.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/packages/infinity-types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stargazezone/infinity-types",
"version": "0.7.0",
"version": "0.8.0",
"description": "The official types package for the Infinity Swap protocol",
"author": "Tasio Victoria",
"homepage": "https://stargaze.zone/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface QueryOptionsForPairQuoteOffset {
min?: QueryBoundForPairQuoteOffset | null;
}
export interface PairQuoteOffset {
amount: number;
amount: Uint128;
pair: string;
}
export type Addr = string;
Expand Down

0 comments on commit 941135f

Please sign in to comment.