diff --git a/contracts/cw1-subkeys/schema/all_allowances_response.json b/contracts/cw1-subkeys/schema/all_allowances_response.json index c87862f0a..df21ba91c 100644 --- a/contracts/cw1-subkeys/schema/all_allowances_response.json +++ b/contracts/cw1-subkeys/schema/all_allowances_response.json @@ -101,7 +101,7 @@ } }, "Timestamp": { - "description": "A point in time in nanosecond precision.\n\nThis type can represent times from 1970-01-01T00:00:00Z to 2554-07-21T23:34:33Z.", + "description": "A point in time in nanosecond precision.\n\nThis type can represent times from 1970-01-01T00:00:00Z to 2554-07-21T23:34:33Z.\n\n## Examples\n\n``` # use cosmwasm_std::Timestamp; let ts = Timestamp::from_nanos(1_000_000_202); assert_eq!(ts.nanos(), 1_000_000_202); assert_eq!(ts.seconds(), 1); assert_eq!(ts.subsec_nanos(), 202);\n\nlet ts = ts.plus_seconds(2); assert_eq!(ts.nanos(), 3_000_000_202); assert_eq!(ts.seconds(), 3); assert_eq!(ts.subsec_nanos(), 202); ```", "allOf": [ { "$ref": "#/definitions/Uint64" diff --git a/contracts/cw1-subkeys/schema/allowance.json b/contracts/cw1-subkeys/schema/allowance.json index 0df591b9f..b77d82067 100644 --- a/contracts/cw1-subkeys/schema/allowance.json +++ b/contracts/cw1-subkeys/schema/allowance.json @@ -83,7 +83,7 @@ } }, "Timestamp": { - "description": "A point in time in nanosecond precision.\n\nThis type can represent times from 1970-01-01T00:00:00Z to 2554-07-21T23:34:33Z.", + "description": "A point in time in nanosecond precision.\n\nThis type can represent times from 1970-01-01T00:00:00Z to 2554-07-21T23:34:33Z.\n\n## Examples\n\n``` # use cosmwasm_std::Timestamp; let ts = Timestamp::from_nanos(1_000_000_202); assert_eq!(ts.nanos(), 1_000_000_202); assert_eq!(ts.seconds(), 1); assert_eq!(ts.subsec_nanos(), 202);\n\nlet ts = ts.plus_seconds(2); assert_eq!(ts.nanos(), 3_000_000_202); assert_eq!(ts.seconds(), 3); assert_eq!(ts.subsec_nanos(), 202); ```", "allOf": [ { "$ref": "#/definitions/Uint64" diff --git a/contracts/cw1-subkeys/schema/execute_msg.json b/contracts/cw1-subkeys/schema/execute_msg.json index 08a7f404e..adbd5c9d7 100644 --- a/contracts/cw1-subkeys/schema/execute_msg.json +++ b/contracts/cw1-subkeys/schema/execute_msg.json @@ -18,7 +18,7 @@ "msgs": { "type": "array", "items": { - "$ref": "#/definitions/CosmosMsg_for_Empty" + "$ref": "#/definitions/SubMsg_for_Empty" } } } @@ -421,6 +421,16 @@ } } }, + "ReplyOn": { + "description": "Use this to define when the contract gets a response callback. If you only need it for errors or success you can select just those in order to save gas.", + "type": "string", + "enum": [ + "always", + "error", + "success", + "never" + ] + }, "StakingMsg": { "description": "The message types of the staking module.\n\nSee https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto", "anyOf": [ @@ -505,8 +515,39 @@ } ] }, + "SubMsg_for_Empty": { + "description": "A submessage that will guarantee a `reply` call on success or error, depending on the `reply_on` setting. If you do not need to process the result, use regular messages instead.\n\nNote: On error the submessage execution will revert any partial state changes due to this message, but not revert any state changes in the calling contract. If this is required, it must be done manually in the `reply` entry point.", + "type": "object", + "required": [ + "id", + "msg", + "reply_on" + ], + "properties": { + "gas_limit": { + "type": [ + "integer", + "null" + ], + "format": "uint64", + "minimum": 0.0 + }, + "id": { + "description": "An arbitrary ID chosen by the contract. This is typically used to match `Reply`s in the `reply` entry point to the submessage.", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + }, + "msg": { + "$ref": "#/definitions/CosmosMsg_for_Empty" + }, + "reply_on": { + "$ref": "#/definitions/ReplyOn" + } + } + }, "Timestamp": { - "description": "A point in time in nanosecond precision.\n\nThis type can represent times from 1970-01-01T00:00:00Z to 2554-07-21T23:34:33Z.", + "description": "A point in time in nanosecond precision.\n\nThis type can represent times from 1970-01-01T00:00:00Z to 2554-07-21T23:34:33Z.\n\n## Examples\n\n``` # use cosmwasm_std::Timestamp; let ts = Timestamp::from_nanos(1_000_000_202); assert_eq!(ts.nanos(), 1_000_000_202); assert_eq!(ts.seconds(), 1); assert_eq!(ts.subsec_nanos(), 202);\n\nlet ts = ts.plus_seconds(2); assert_eq!(ts.nanos(), 3_000_000_202); assert_eq!(ts.seconds(), 3); assert_eq!(ts.subsec_nanos(), 202); ```", "allOf": [ { "$ref": "#/definitions/Uint64" @@ -535,13 +576,19 @@ "type": "object", "required": [ "contract_addr", - "msg", - "send" + "funds", + "msg" ], "properties": { "contract_addr": { "type": "string" }, + "funds": { + "type": "array", + "items": { + "$ref": "#/definitions/Coin" + } + }, "msg": { "description": "msg is the json-encoded ExecuteMsg struct (as raw Binary)", "allOf": [ @@ -549,12 +596,6 @@ "$ref": "#/definitions/Binary" } ] - }, - "send": { - "type": "array", - "items": { - "$ref": "#/definitions/Coin" - } } } } @@ -572,9 +613,9 @@ "type": "object", "required": [ "code_id", + "funds", "label", - "msg", - "send" + "msg" ], "properties": { "admin": { @@ -588,6 +629,12 @@ "format": "uint64", "minimum": 0.0 }, + "funds": { + "type": "array", + "items": { + "$ref": "#/definitions/Coin" + } + }, "label": { "description": "A human-readbale label for the contract", "type": "string" @@ -599,12 +646,6 @@ "$ref": "#/definitions/Binary" } ] - }, - "send": { - "type": "array", - "items": { - "$ref": "#/definitions/Coin" - } } } } diff --git a/contracts/cw1-subkeys/schema/query_msg.json b/contracts/cw1-subkeys/schema/query_msg.json index 816f286fd..4f1f560b9 100644 --- a/contracts/cw1-subkeys/schema/query_msg.json +++ b/contracts/cw1-subkeys/schema/query_msg.json @@ -437,13 +437,19 @@ "type": "object", "required": [ "contract_addr", - "msg", - "send" + "funds", + "msg" ], "properties": { "contract_addr": { "type": "string" }, + "funds": { + "type": "array", + "items": { + "$ref": "#/definitions/Coin" + } + }, "msg": { "description": "msg is the json-encoded ExecuteMsg struct (as raw Binary)", "allOf": [ @@ -451,12 +457,6 @@ "$ref": "#/definitions/Binary" } ] - }, - "send": { - "type": "array", - "items": { - "$ref": "#/definitions/Coin" - } } } } @@ -474,9 +474,9 @@ "type": "object", "required": [ "code_id", + "funds", "label", - "msg", - "send" + "msg" ], "properties": { "admin": { @@ -490,6 +490,12 @@ "format": "uint64", "minimum": 0.0 }, + "funds": { + "type": "array", + "items": { + "$ref": "#/definitions/Coin" + } + }, "label": { "description": "A human-readbale label for the contract", "type": "string" @@ -501,12 +507,6 @@ "$ref": "#/definitions/Binary" } ] - }, - "send": { - "type": "array", - "items": { - "$ref": "#/definitions/Coin" - } } } } diff --git a/contracts/cw1-whitelist/schema/execute_msg.json b/contracts/cw1-whitelist/schema/execute_msg.json index 29488cd14..216f21ebd 100644 --- a/contracts/cw1-whitelist/schema/execute_msg.json +++ b/contracts/cw1-whitelist/schema/execute_msg.json @@ -18,7 +18,7 @@ "msgs": { "type": "array", "items": { - "$ref": "#/definitions/CosmosMsg_for_Empty" + "$ref": "#/definitions/SubMsg_for_Empty" } } } @@ -258,6 +258,16 @@ "description": "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressable in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)", "type": "object" }, + "ReplyOn": { + "description": "Use this to define when the contract gets a response callback. If you only need it for errors or success you can select just those in order to save gas.", + "type": "string", + "enum": [ + "always", + "error", + "success", + "never" + ] + }, "StakingMsg": { "description": "The message types of the staking module.\n\nSee https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto", "anyOf": [ @@ -342,6 +352,37 @@ } ] }, + "SubMsg_for_Empty": { + "description": "A submessage that will guarantee a `reply` call on success or error, depending on the `reply_on` setting. If you do not need to process the result, use regular messages instead.\n\nNote: On error the submessage execution will revert any partial state changes due to this message, but not revert any state changes in the calling contract. If this is required, it must be done manually in the `reply` entry point.", + "type": "object", + "required": [ + "id", + "msg", + "reply_on" + ], + "properties": { + "gas_limit": { + "type": [ + "integer", + "null" + ], + "format": "uint64", + "minimum": 0.0 + }, + "id": { + "description": "An arbitrary ID chosen by the contract. This is typically used to match `Reply`s in the `reply` entry point to the submessage.", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + }, + "msg": { + "$ref": "#/definitions/CosmosMsg_for_Empty" + }, + "reply_on": { + "$ref": "#/definitions/ReplyOn" + } + } + }, "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" @@ -360,13 +401,19 @@ "type": "object", "required": [ "contract_addr", - "msg", - "send" + "funds", + "msg" ], "properties": { "contract_addr": { "type": "string" }, + "funds": { + "type": "array", + "items": { + "$ref": "#/definitions/Coin" + } + }, "msg": { "description": "msg is the json-encoded ExecuteMsg struct (as raw Binary)", "allOf": [ @@ -374,12 +421,6 @@ "$ref": "#/definitions/Binary" } ] - }, - "send": { - "type": "array", - "items": { - "$ref": "#/definitions/Coin" - } } } } @@ -397,9 +438,9 @@ "type": "object", "required": [ "code_id", + "funds", "label", - "msg", - "send" + "msg" ], "properties": { "admin": { @@ -413,6 +454,12 @@ "format": "uint64", "minimum": 0.0 }, + "funds": { + "type": "array", + "items": { + "$ref": "#/definitions/Coin" + } + }, "label": { "description": "A human-readbale label for the contract", "type": "string" @@ -424,12 +471,6 @@ "$ref": "#/definitions/Binary" } ] - }, - "send": { - "type": "array", - "items": { - "$ref": "#/definitions/Coin" - } } } } diff --git a/contracts/cw1-whitelist/schema/query_msg.json b/contracts/cw1-whitelist/schema/query_msg.json index 041caf514..af59d3053 100644 --- a/contracts/cw1-whitelist/schema/query_msg.json +++ b/contracts/cw1-whitelist/schema/query_msg.json @@ -337,13 +337,19 @@ "type": "object", "required": [ "contract_addr", - "msg", - "send" + "funds", + "msg" ], "properties": { "contract_addr": { "type": "string" }, + "funds": { + "type": "array", + "items": { + "$ref": "#/definitions/Coin" + } + }, "msg": { "description": "msg is the json-encoded ExecuteMsg struct (as raw Binary)", "allOf": [ @@ -351,12 +357,6 @@ "$ref": "#/definitions/Binary" } ] - }, - "send": { - "type": "array", - "items": { - "$ref": "#/definitions/Coin" - } } } } @@ -374,9 +374,9 @@ "type": "object", "required": [ "code_id", + "funds", "label", - "msg", - "send" + "msg" ], "properties": { "admin": { @@ -390,6 +390,12 @@ "format": "uint64", "minimum": 0.0 }, + "funds": { + "type": "array", + "items": { + "$ref": "#/definitions/Coin" + } + }, "label": { "description": "A human-readbale label for the contract", "type": "string" @@ -401,12 +407,6 @@ "$ref": "#/definitions/Binary" } ] - }, - "send": { - "type": "array", - "items": { - "$ref": "#/definitions/Coin" - } } } }