|
1 | 1 | { |
2 | 2 | "contract_name": "rebalancer", |
3 | | - "contract_version": "0.1.5", |
| 3 | + "contract_version": "0.1.7", |
4 | 4 | "idl_version": "1.0.0", |
5 | 5 | "instantiate": { |
6 | 6 | "$schema": "http://json-schema.org/draft-07/schema#", |
|
109 | 109 | "title": "ExecuteMsg", |
110 | 110 | "description": "Rebalancer execute msgs.", |
111 | 111 | "oneOf": [ |
112 | | - { |
113 | | - "type": "string", |
114 | | - "enum": [ |
115 | | - "approve_admin_change" |
116 | | - ] |
117 | | - }, |
118 | 112 | { |
119 | 113 | "type": "object", |
120 | 114 | "required": [ |
|
150 | 144 | }, |
151 | 145 | "additionalProperties": false |
152 | 146 | }, |
| 147 | + { |
| 148 | + "type": "object", |
| 149 | + "required": [ |
| 150 | + "approve_admin_change" |
| 151 | + ], |
| 152 | + "properties": { |
| 153 | + "approve_admin_change": { |
| 154 | + "type": "object", |
| 155 | + "additionalProperties": false |
| 156 | + } |
| 157 | + }, |
| 158 | + "additionalProperties": false |
| 159 | + }, |
153 | 160 | { |
154 | 161 | "description": "Register this account to the service.", |
155 | 162 | "type": "object", |
|
443 | 450 | "maxItems": 2, |
444 | 451 | "minItems": 2 |
445 | 452 | }, |
| 453 | + "RebalancerAccountType": { |
| 454 | + "type": "string", |
| 455 | + "enum": [ |
| 456 | + "regular", |
| 457 | + "program" |
| 458 | + ] |
| 459 | + }, |
446 | 460 | "RebalancerAdminMsg": { |
447 | 461 | "oneOf": [ |
448 | | - { |
449 | | - "type": "string", |
450 | | - "enum": [ |
451 | | - "cancel_admin_change" |
452 | | - ] |
453 | | - }, |
454 | 462 | { |
455 | 463 | "type": "object", |
456 | 464 | "required": [ |
|
644 | 652 | } |
645 | 653 | }, |
646 | 654 | "additionalProperties": false |
| 655 | + }, |
| 656 | + { |
| 657 | + "type": "object", |
| 658 | + "required": [ |
| 659 | + "cancel_admin_change" |
| 660 | + ], |
| 661 | + "properties": { |
| 662 | + "cancel_admin_change": { |
| 663 | + "type": "object", |
| 664 | + "additionalProperties": false |
| 665 | + } |
| 666 | + }, |
| 667 | + "additionalProperties": false |
647 | 668 | } |
648 | 669 | ] |
649 | 670 | }, |
|
656 | 677 | "targets" |
657 | 678 | ], |
658 | 679 | "properties": { |
| 680 | + "account_type": { |
| 681 | + "default": "regular", |
| 682 | + "allOf": [ |
| 683 | + { |
| 684 | + "$ref": "#/definitions/RebalancerAccountType" |
| 685 | + } |
| 686 | + ] |
| 687 | + }, |
659 | 688 | "base_denom": { |
660 | 689 | "description": "Base denom we will be calculating everything based on", |
661 | 690 | "type": "string" |
|
1161 | 1190 | }, |
1162 | 1191 | "additionalProperties": false |
1163 | 1192 | }, |
| 1193 | + "RebalancerAccountType": { |
| 1194 | + "type": "string", |
| 1195 | + "enum": [ |
| 1196 | + "regular", |
| 1197 | + "program" |
| 1198 | + ] |
| 1199 | + }, |
1164 | 1200 | "RebalancerConfig": { |
1165 | 1201 | "type": "object", |
1166 | 1202 | "required": [ |
|
1173 | 1209 | "targets" |
1174 | 1210 | ], |
1175 | 1211 | "properties": { |
| 1212 | + "account_type": { |
| 1213 | + "default": "regular", |
| 1214 | + "allOf": [ |
| 1215 | + { |
| 1216 | + "$ref": "#/definitions/RebalancerAccountType" |
| 1217 | + } |
| 1218 | + ] |
| 1219 | + }, |
1176 | 1220 | "base_denom": { |
1177 | 1221 | "description": "The base denom we will be calculating everything based on", |
1178 | 1222 | "type": "string" |
|
1272 | 1316 | "targets" |
1273 | 1317 | ], |
1274 | 1318 | "properties": { |
| 1319 | + "account_type": { |
| 1320 | + "default": "regular", |
| 1321 | + "allOf": [ |
| 1322 | + { |
| 1323 | + "$ref": "#/definitions/RebalancerAccountType" |
| 1324 | + } |
| 1325 | + ] |
| 1326 | + }, |
1275 | 1327 | "base_denom": { |
1276 | 1328 | "description": "The base denom we will be calculating everything based on", |
1277 | 1329 | "type": "string" |
|
1409 | 1461 | }, |
1410 | 1462 | "additionalProperties": false |
1411 | 1463 | }, |
| 1464 | + "RebalancerAccountType": { |
| 1465 | + "type": "string", |
| 1466 | + "enum": [ |
| 1467 | + "regular", |
| 1468 | + "program" |
| 1469 | + ] |
| 1470 | + }, |
1412 | 1471 | "SignedDecimal": { |
1413 | 1472 | "description": "A signed fixed-point decimal value with 18 fractional digits, i.e. SignedDecimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 170141183460469231731.687303715884105727 (which is (2^127 - 1) / 10^18) and the smallest is -170141183460469231731.687303715884105728 (which is -2^127 / 10^18).", |
1414 | 1473 | "type": "string" |
|
1605 | 1664 | } |
1606 | 1665 | ] |
1607 | 1666 | }, |
| 1667 | + "RebalancerAccountType": { |
| 1668 | + "type": "string", |
| 1669 | + "enum": [ |
| 1670 | + "regular", |
| 1671 | + "program" |
| 1672 | + ] |
| 1673 | + }, |
1608 | 1674 | "RebalancerConfig": { |
1609 | 1675 | "type": "object", |
1610 | 1676 | "required": [ |
|
1617 | 1683 | "targets" |
1618 | 1684 | ], |
1619 | 1685 | "properties": { |
| 1686 | + "account_type": { |
| 1687 | + "default": "regular", |
| 1688 | + "allOf": [ |
| 1689 | + { |
| 1690 | + "$ref": "#/definitions/RebalancerAccountType" |
| 1691 | + } |
| 1692 | + ] |
| 1693 | + }, |
1620 | 1694 | "base_denom": { |
1621 | 1695 | "description": "The base denom we will be calculating everything based on", |
1622 | 1696 | "type": "string" |
|
0 commit comments