|
5 | 5 | { |
6 | 6 | "type": "object", |
7 | 7 | "required": [ |
8 | | - "stake" |
| 8 | + "modify_asset_pairs" |
9 | 9 | ], |
10 | 10 | "properties": { |
11 | | - "stake": { |
12 | | - "type": "object", |
13 | | - "additionalProperties": false |
| 11 | + "modify_asset_pairs": { |
| 12 | + "type": "array", |
| 13 | + "items": { |
| 14 | + "$ref": "#/definitions/ModifyAssetPair" |
| 15 | + } |
14 | 16 | } |
15 | 17 | }, |
16 | 18 | "additionalProperties": false |
17 | 19 | }, |
18 | 20 | { |
19 | 21 | "type": "object", |
20 | 22 | "required": [ |
21 | | - "unstake" |
| 23 | + "receive" |
22 | 24 | ], |
23 | 25 | "properties": { |
24 | | - "unstake": { |
25 | | - "$ref": "#/definitions/AssetBase_for_Addr" |
| 26 | + "receive": { |
| 27 | + "$ref": "#/definitions/Cw20ReceiveMsg" |
26 | 28 | } |
27 | 29 | }, |
28 | 30 | "additionalProperties": false |
29 | 31 | }, |
30 | 32 | { |
31 | 33 | "type": "object", |
32 | 34 | "required": [ |
33 | | - "claim_rewards" |
34 | | - ], |
35 | | - "properties": { |
36 | | - "claim_rewards": { |
37 | | - "$ref": "#/definitions/AssetInfoBase_for_Addr" |
38 | | - } |
39 | | - }, |
40 | | - "additionalProperties": false |
41 | | - }, |
42 | | - { |
43 | | - "type": "object", |
44 | | - "required": [ |
45 | | - "update_rewards" |
| 35 | + "stake" |
46 | 36 | ], |
47 | 37 | "properties": { |
48 | | - "update_rewards": { |
| 38 | + "stake": { |
49 | 39 | "type": "object", |
50 | 40 | "additionalProperties": false |
51 | 41 | } |
|
55 | 45 | { |
56 | 46 | "type": "object", |
57 | 47 | "required": [ |
58 | | - "whitelist_assets" |
| 48 | + "unstake" |
59 | 49 | ], |
60 | 50 | "properties": { |
61 | | - "whitelist_assets": { |
62 | | - "type": "object", |
63 | | - "additionalProperties": { |
64 | | - "type": "array", |
65 | | - "items": { |
66 | | - "$ref": "#/definitions/AssetInfoBase_for_Addr" |
67 | | - } |
68 | | - } |
| 51 | + "unstake": { |
| 52 | + "$ref": "#/definitions/AssetBase_for_Addr" |
69 | 53 | } |
70 | 54 | }, |
71 | 55 | "additionalProperties": false |
72 | 56 | }, |
73 | 57 | { |
74 | 58 | "type": "object", |
75 | 59 | "required": [ |
76 | | - "remove_assets" |
| 60 | + "unstake_callback" |
77 | 61 | ], |
78 | 62 | "properties": { |
79 | | - "remove_assets": { |
| 63 | + "unstake_callback": { |
80 | 64 | "type": "array", |
81 | | - "items": { |
82 | | - "$ref": "#/definitions/AssetInfoBase_for_Addr" |
83 | | - } |
| 65 | + "items": [ |
| 66 | + { |
| 67 | + "$ref": "#/definitions/AssetBase_for_Addr" |
| 68 | + }, |
| 69 | + { |
| 70 | + "$ref": "#/definitions/Addr" |
| 71 | + } |
| 72 | + ], |
| 73 | + "maxItems": 2, |
| 74 | + "minItems": 2 |
84 | 75 | } |
85 | 76 | }, |
86 | 77 | "additionalProperties": false |
87 | 78 | }, |
88 | 79 | { |
89 | 80 | "type": "object", |
90 | 81 | "required": [ |
91 | | - "update_rewards_callback" |
| 82 | + "claim_rewards" |
92 | 83 | ], |
93 | 84 | "properties": { |
94 | | - "update_rewards_callback": { |
95 | | - "type": "object", |
96 | | - "additionalProperties": false |
| 85 | + "claim_rewards": { |
| 86 | + "$ref": "#/definitions/AssetInfoBase_for_Addr" |
97 | 87 | } |
98 | 88 | }, |
99 | 89 | "additionalProperties": false |
|
137 | 127 | { |
138 | 128 | "type": "object", |
139 | 129 | "required": [ |
140 | | - "rebalance_emissions" |
| 130 | + "update_rewards" |
141 | 131 | ], |
142 | 132 | "properties": { |
143 | | - "rebalance_emissions": { |
| 133 | + "update_rewards": { |
144 | 134 | "type": "object", |
145 | 135 | "additionalProperties": false |
146 | 136 | } |
|
150 | 140 | { |
151 | 141 | "type": "object", |
152 | 142 | "required": [ |
153 | | - "rebalance_emissions_callback" |
| 143 | + "update_alliance_rewards_callback" |
154 | 144 | ], |
155 | 145 | "properties": { |
156 | | - "rebalance_emissions_callback": { |
| 146 | + "update_alliance_rewards_callback": { |
157 | 147 | "type": "object", |
158 | 148 | "additionalProperties": false |
159 | 149 | } |
|
325 | 315 | } |
326 | 316 | ] |
327 | 317 | }, |
| 318 | + "Binary": { |
| 319 | + "description": "Binary is a wrapper around Vec<u8> to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.\n\nThis is only needed as serde-json-{core,wasm} has a horrible encoding for Vec<u8>. See also <https://github.com/CosmWasm/cosmwasm/blob/main/docs/MESSAGE_TYPES.md>.", |
| 320 | + "type": "string" |
| 321 | + }, |
| 322 | + "Cw20ReceiveMsg": { |
| 323 | + "description": "Cw20ReceiveMsg should be de/serialized under `Receive()` variant in a ExecuteMsg", |
| 324 | + "type": "object", |
| 325 | + "required": [ |
| 326 | + "amount", |
| 327 | + "msg", |
| 328 | + "sender" |
| 329 | + ], |
| 330 | + "properties": { |
| 331 | + "amount": { |
| 332 | + "$ref": "#/definitions/Uint128" |
| 333 | + }, |
| 334 | + "msg": { |
| 335 | + "$ref": "#/definitions/Binary" |
| 336 | + }, |
| 337 | + "sender": { |
| 338 | + "type": "string" |
| 339 | + } |
| 340 | + }, |
| 341 | + "additionalProperties": false |
| 342 | + }, |
| 343 | + "ModifyAssetPair": { |
| 344 | + "type": "object", |
| 345 | + "required": [ |
| 346 | + "asset_distribution", |
| 347 | + "asset_info", |
| 348 | + "delete" |
| 349 | + ], |
| 350 | + "properties": { |
| 351 | + "asset_distribution": { |
| 352 | + "$ref": "#/definitions/Uint128" |
| 353 | + }, |
| 354 | + "asset_info": { |
| 355 | + "$ref": "#/definitions/AssetInfoBase_for_Addr" |
| 356 | + }, |
| 357 | + "delete": { |
| 358 | + "type": "boolean" |
| 359 | + }, |
| 360 | + "reward_asset_info": { |
| 361 | + "anyOf": [ |
| 362 | + { |
| 363 | + "$ref": "#/definitions/AssetInfoBase_for_Addr" |
| 364 | + }, |
| 365 | + { |
| 366 | + "type": "null" |
| 367 | + } |
| 368 | + ] |
| 369 | + } |
| 370 | + }, |
| 371 | + "additionalProperties": false |
| 372 | + }, |
328 | 373 | "Uint128": { |
329 | 374 | "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); ```", |
330 | 375 | "type": "string" |
|
0 commit comments