-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
82 changed files
with
12,254 additions
and
191 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
contracts/liquidity_book/lb_factory/schema/all_bin_steps_response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "AllBinStepsResponse", | ||
"type": "object", | ||
"required": [ | ||
"bin_step_with_preset" | ||
], | ||
"properties": { | ||
"bin_step_with_preset": { | ||
"type": "array", | ||
"items": { | ||
"type": "integer", | ||
"format": "uint16", | ||
"minimum": 0.0 | ||
} | ||
} | ||
}, | ||
"additionalProperties": false | ||
} |
140 changes: 140 additions & 0 deletions
140
contracts/liquidity_book/lb_factory/schema/all_lb_pairs_response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "AllLbPairsResponse", | ||
"type": "object", | ||
"required": [ | ||
"lb_pairs_available" | ||
], | ||
"properties": { | ||
"lb_pairs_available": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/LBPairInformation" | ||
} | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"definitions": { | ||
"Addr": { | ||
"description": "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.", | ||
"type": "string" | ||
}, | ||
"ContractInfo": { | ||
"type": "object", | ||
"required": [ | ||
"address" | ||
], | ||
"properties": { | ||
"address": { | ||
"$ref": "#/definitions/Addr" | ||
}, | ||
"code_hash": { | ||
"default": "", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"LBPair": { | ||
"type": "object", | ||
"required": [ | ||
"bin_step", | ||
"contract", | ||
"token_x", | ||
"token_y" | ||
], | ||
"properties": { | ||
"bin_step": { | ||
"type": "integer", | ||
"format": "uint16", | ||
"minimum": 0.0 | ||
}, | ||
"contract": { | ||
"$ref": "#/definitions/ContractInfo" | ||
}, | ||
"token_x": { | ||
"$ref": "#/definitions/TokenType" | ||
}, | ||
"token_y": { | ||
"$ref": "#/definitions/TokenType" | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"LBPairInformation": { | ||
"type": "object", | ||
"required": [ | ||
"bin_step", | ||
"created_by_owner", | ||
"ignored_for_routing", | ||
"info" | ||
], | ||
"properties": { | ||
"bin_step": { | ||
"type": "integer", | ||
"format": "uint16", | ||
"minimum": 0.0 | ||
}, | ||
"created_by_owner": { | ||
"type": "boolean" | ||
}, | ||
"ignored_for_routing": { | ||
"type": "boolean" | ||
}, | ||
"info": { | ||
"$ref": "#/definitions/LBPair" | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"TokenType": { | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"required": [ | ||
"custom_token" | ||
], | ||
"properties": { | ||
"custom_token": { | ||
"type": "object", | ||
"required": [ | ||
"contract_addr", | ||
"token_code_hash" | ||
], | ||
"properties": { | ||
"contract_addr": { | ||
"$ref": "#/definitions/Addr" | ||
}, | ||
"token_code_hash": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
{ | ||
"type": "object", | ||
"required": [ | ||
"native_token" | ||
], | ||
"properties": { | ||
"native_token": { | ||
"type": "object", | ||
"required": [ | ||
"denom" | ||
], | ||
"properties": { | ||
"denom": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.