diff --git a/Cargo.lock b/Cargo.lock index 5507d80d..0497233f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1330,7 +1330,7 @@ dependencies = [ [[package]] name = "neutron-sdk" version = "0.1.0" -source = "git+https://github.com/neutron-org/neutron-sdk.git?branch=main#f6a9a6953443a7a3f33dafb5b3aacf92ddbe1b45" +source = "git+https://github.com/neutron-org/neutron-sdk.git?branch=main#f8ca35a900f4cbf2a7cdbcc40498fd79d741e2f2" dependencies = [ "base64 0.20.0", "bech32", diff --git a/contracts/dao/cwd-core/schema/execute_msg.json b/contracts/dao/cwd-core/schema/execute_msg.json index 0d1f3a6f..1e93f3cc 100644 --- a/contracts/dao/cwd-core/schema/execute_msg.json +++ b/contracts/dao/cwd-core/schema/execute_msg.json @@ -452,7 +452,7 @@ ], "properties": { "contract": { - "description": "*contract** is a address of contract admin will be removed.", + "description": "*contract** is an address of contract admin will be removed.", "type": "string" }, "description": { @@ -1007,6 +1007,24 @@ } } }, + "MsgExecuteContract": { + "description": "MsgExecuteContract defines a call to the contract execution", + "type": "object", + "required": [ + "contract", + "msg" + ], + "properties": { + "contract": { + "description": "*contract** is a contract address that will be called", + "type": "string" + }, + "msg": { + "description": "*msg** is a contract call message", + "type": "string" + } + } + }, "NeutronMsg": { "description": "A number of Custom messages that can call into the Neutron bindings.", "oneOf": [ @@ -1285,6 +1303,64 @@ } }, "additionalProperties": false + }, + { + "description": "AddSchedule adds new schedule with a given `name`. Until schedule is removed it will execute all `msgs` every `period` blocks. First execution is at least on `current_block + period` block. [Permissioned - DAO Only]", + "type": "object", + "required": [ + "add_schedule" + ], + "properties": { + "add_schedule": { + "type": "object", + "required": [ + "msgs", + "name", + "period" + ], + "properties": { + "msgs": { + "description": "list of cosmwasm messages to be executed", + "type": "array", + "items": { + "$ref": "#/definitions/MsgExecuteContract" + } + }, + "name": { + "description": "Name of a new schedule. Needed to be able to `RemoveSchedule` and to log information about it", + "type": "string" + }, + "period": { + "description": "period in blocks with which `msgs` will be executed", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + } + } + }, + "additionalProperties": false + }, + { + "description": "RemoveSchedule removes the schedule with a given `name`. [Permissioned - DAO or Security DAO only]", + "type": "object", + "required": [ + "remove_schedule" + ], + "properties": { + "remove_schedule": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + } + }, + "additionalProperties": false } ] }, diff --git a/contracts/dao/pre-propose/cwd-pre-propose-multiple/schema/execute_msg_for__propose_message.json b/contracts/dao/pre-propose/cwd-pre-propose-multiple/schema/execute_msg_for__propose_message.json index 47c638e3..0e5c2c68 100644 --- a/contracts/dao/pre-propose/cwd-pre-propose-multiple/schema/execute_msg_for__propose_message.json +++ b/contracts/dao/pre-propose/cwd-pre-propose-multiple/schema/execute_msg_for__propose_message.json @@ -350,7 +350,7 @@ ], "properties": { "contract": { - "description": "*contract** is a address of contract admin will be removed.", + "description": "*contract** is an address of contract admin will be removed.", "type": "string" }, "description": { @@ -870,6 +870,24 @@ } } }, + "MsgExecuteContract": { + "description": "MsgExecuteContract defines a call to the contract execution", + "type": "object", + "required": [ + "contract", + "msg" + ], + "properties": { + "contract": { + "description": "*contract** is a contract address that will be called", + "type": "string" + }, + "msg": { + "description": "*msg** is a contract call message", + "type": "string" + } + } + }, "MultipleChoiceOption": { "description": "Unchecked multiple choice option", "type": "object", @@ -1184,6 +1202,64 @@ } }, "additionalProperties": false + }, + { + "description": "AddSchedule adds new schedule with a given `name`. Until schedule is removed it will execute all `msgs` every `period` blocks. First execution is at least on `current_block + period` block. [Permissioned - DAO Only]", + "type": "object", + "required": [ + "add_schedule" + ], + "properties": { + "add_schedule": { + "type": "object", + "required": [ + "msgs", + "name", + "period" + ], + "properties": { + "msgs": { + "description": "list of cosmwasm messages to be executed", + "type": "array", + "items": { + "$ref": "#/definitions/MsgExecuteContract" + } + }, + "name": { + "description": "Name of a new schedule. Needed to be able to `RemoveSchedule` and to log information about it", + "type": "string" + }, + "period": { + "description": "period in blocks with which `msgs` will be executed", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + } + } + }, + "additionalProperties": false + }, + { + "description": "RemoveSchedule removes the schedule with a given `name`. [Permissioned - DAO or Security DAO only]", + "type": "object", + "required": [ + "remove_schedule" + ], + "properties": { + "remove_schedule": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + } + }, + "additionalProperties": false } ] }, diff --git a/contracts/dao/pre-propose/cwd-pre-propose-single/schema/execute_msg_for__propose_message.json b/contracts/dao/pre-propose/cwd-pre-propose-single/schema/execute_msg_for__propose_message.json index ddb7358e..de487b3b 100644 --- a/contracts/dao/pre-propose/cwd-pre-propose-single/schema/execute_msg_for__propose_message.json +++ b/contracts/dao/pre-propose/cwd-pre-propose-single/schema/execute_msg_for__propose_message.json @@ -350,7 +350,7 @@ ], "properties": { "contract": { - "description": "*contract** is a address of contract admin will be removed.", + "description": "*contract** is an address of contract admin will be removed.", "type": "string" }, "description": { @@ -870,6 +870,24 @@ } } }, + "MsgExecuteContract": { + "description": "MsgExecuteContract defines a call to the contract execution", + "type": "object", + "required": [ + "contract", + "msg" + ], + "properties": { + "contract": { + "description": "*contract** is a contract address that will be called", + "type": "string" + }, + "msg": { + "description": "*msg** is a contract call message", + "type": "string" + } + } + }, "NeutronMsg": { "description": "A number of Custom messages that can call into the Neutron bindings.", "oneOf": [ @@ -1148,6 +1166,64 @@ } }, "additionalProperties": false + }, + { + "description": "AddSchedule adds new schedule with a given `name`. Until schedule is removed it will execute all `msgs` every `period` blocks. First execution is at least on `current_block + period` block. [Permissioned - DAO Only]", + "type": "object", + "required": [ + "add_schedule" + ], + "properties": { + "add_schedule": { + "type": "object", + "required": [ + "msgs", + "name", + "period" + ], + "properties": { + "msgs": { + "description": "list of cosmwasm messages to be executed", + "type": "array", + "items": { + "$ref": "#/definitions/MsgExecuteContract" + } + }, + "name": { + "description": "Name of a new schedule. Needed to be able to `RemoveSchedule` and to log information about it", + "type": "string" + }, + "period": { + "description": "period in blocks with which `msgs` will be executed", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + } + } + }, + "additionalProperties": false + }, + { + "description": "RemoveSchedule removes the schedule with a given `name`. [Permissioned - DAO or Security DAO only]", + "type": "object", + "required": [ + "remove_schedule" + ], + "properties": { + "remove_schedule": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + } + }, + "additionalProperties": false } ] }, diff --git a/contracts/dao/proposal/cwd-proposal-multiple/schema/execute_msg.json b/contracts/dao/proposal/cwd-proposal-multiple/schema/execute_msg.json index 2fe82666..a09d1355 100644 --- a/contracts/dao/proposal/cwd-proposal-multiple/schema/execute_msg.json +++ b/contracts/dao/proposal/cwd-proposal-multiple/schema/execute_msg.json @@ -558,7 +558,7 @@ ], "properties": { "contract": { - "description": "*contract** is a address of contract admin will be removed.", + "description": "*contract** is an address of contract admin will be removed.", "type": "string" }, "description": { @@ -1092,6 +1092,24 @@ } } }, + "MsgExecuteContract": { + "description": "MsgExecuteContract defines a call to the contract execution", + "type": "object", + "required": [ + "contract", + "msg" + ], + "properties": { + "contract": { + "description": "*contract** is a contract address that will be called", + "type": "string" + }, + "msg": { + "description": "*msg** is a contract call message", + "type": "string" + } + } + }, "MultipleChoiceOption": { "description": "Unchecked multiple choice option", "type": "object", @@ -1420,6 +1438,64 @@ } }, "additionalProperties": false + }, + { + "description": "AddSchedule adds new schedule with a given `name`. Until schedule is removed it will execute all `msgs` every `period` blocks. First execution is at least on `current_block + period` block. [Permissioned - DAO Only]", + "type": "object", + "required": [ + "add_schedule" + ], + "properties": { + "add_schedule": { + "type": "object", + "required": [ + "msgs", + "name", + "period" + ], + "properties": { + "msgs": { + "description": "list of cosmwasm messages to be executed", + "type": "array", + "items": { + "$ref": "#/definitions/MsgExecuteContract" + } + }, + "name": { + "description": "Name of a new schedule. Needed to be able to `RemoveSchedule` and to log information about it", + "type": "string" + }, + "period": { + "description": "period in blocks with which `msgs` will be executed", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + } + } + }, + "additionalProperties": false + }, + { + "description": "RemoveSchedule removes the schedule with a given `name`. [Permissioned - DAO or Security DAO only]", + "type": "object", + "required": [ + "remove_schedule" + ], + "properties": { + "remove_schedule": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + } + }, + "additionalProperties": false } ] }, diff --git a/contracts/dao/proposal/cwd-proposal-multiple/schema/list_proposals_response.json b/contracts/dao/proposal/cwd-proposal-multiple/schema/list_proposals_response.json index ea269b26..d044ea42 100644 --- a/contracts/dao/proposal/cwd-proposal-multiple/schema/list_proposals_response.json +++ b/contracts/dao/proposal/cwd-proposal-multiple/schema/list_proposals_response.json @@ -268,7 +268,7 @@ ], "properties": { "contract": { - "description": "*contract** is a address of contract admin will be removed.", + "description": "*contract** is an address of contract admin will be removed.", "type": "string" }, "description": { @@ -774,6 +774,24 @@ } } }, + "MsgExecuteContract": { + "description": "MsgExecuteContract defines a call to the contract execution", + "type": "object", + "required": [ + "contract", + "msg" + ], + "properties": { + "contract": { + "description": "*contract** is a contract address that will be called", + "type": "string" + }, + "msg": { + "description": "*msg** is a contract call message", + "type": "string" + } + } + }, "MultipleChoiceOptionType": { "description": "Represents the type of Multiple choice option. \"None of the above\" has a special type for example.", "oneOf": [ @@ -1185,6 +1203,64 @@ } }, "additionalProperties": false + }, + { + "description": "AddSchedule adds new schedule with a given `name`. Until schedule is removed it will execute all `msgs` every `period` blocks. First execution is at least on `current_block + period` block. [Permissioned - DAO Only]", + "type": "object", + "required": [ + "add_schedule" + ], + "properties": { + "add_schedule": { + "type": "object", + "required": [ + "msgs", + "name", + "period" + ], + "properties": { + "msgs": { + "description": "list of cosmwasm messages to be executed", + "type": "array", + "items": { + "$ref": "#/definitions/MsgExecuteContract" + } + }, + "name": { + "description": "Name of a new schedule. Needed to be able to `RemoveSchedule` and to log information about it", + "type": "string" + }, + "period": { + "description": "period in blocks with which `msgs` will be executed", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + } + } + }, + "additionalProperties": false + }, + { + "description": "RemoveSchedule removes the schedule with a given `name`. [Permissioned - DAO or Security DAO only]", + "type": "object", + "required": [ + "remove_schedule" + ], + "properties": { + "remove_schedule": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + } + }, + "additionalProperties": false } ] }, diff --git a/contracts/dao/proposal/cwd-proposal-multiple/schema/proposal_response.json b/contracts/dao/proposal/cwd-proposal-multiple/schema/proposal_response.json index 0aadcc32..5f2f3e61 100644 --- a/contracts/dao/proposal/cwd-proposal-multiple/schema/proposal_response.json +++ b/contracts/dao/proposal/cwd-proposal-multiple/schema/proposal_response.json @@ -272,7 +272,7 @@ ], "properties": { "contract": { - "description": "*contract** is a address of contract admin will be removed.", + "description": "*contract** is an address of contract admin will be removed.", "type": "string" }, "description": { @@ -778,6 +778,24 @@ } } }, + "MsgExecuteContract": { + "description": "MsgExecuteContract defines a call to the contract execution", + "type": "object", + "required": [ + "contract", + "msg" + ], + "properties": { + "contract": { + "description": "*contract** is a contract address that will be called", + "type": "string" + }, + "msg": { + "description": "*msg** is a contract call message", + "type": "string" + } + } + }, "MultipleChoiceOptionType": { "description": "Represents the type of Multiple choice option. \"None of the above\" has a special type for example.", "oneOf": [ @@ -1189,6 +1207,64 @@ } }, "additionalProperties": false + }, + { + "description": "AddSchedule adds new schedule with a given `name`. Until schedule is removed it will execute all `msgs` every `period` blocks. First execution is at least on `current_block + period` block. [Permissioned - DAO Only]", + "type": "object", + "required": [ + "add_schedule" + ], + "properties": { + "add_schedule": { + "type": "object", + "required": [ + "msgs", + "name", + "period" + ], + "properties": { + "msgs": { + "description": "list of cosmwasm messages to be executed", + "type": "array", + "items": { + "$ref": "#/definitions/MsgExecuteContract" + } + }, + "name": { + "description": "Name of a new schedule. Needed to be able to `RemoveSchedule` and to log information about it", + "type": "string" + }, + "period": { + "description": "period in blocks with which `msgs` will be executed", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + } + } + }, + "additionalProperties": false + }, + { + "description": "RemoveSchedule removes the schedule with a given `name`. [Permissioned - DAO or Security DAO only]", + "type": "object", + "required": [ + "remove_schedule" + ], + "properties": { + "remove_schedule": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + } + }, + "additionalProperties": false } ] }, diff --git a/contracts/dao/proposal/cwd-proposal-multiple/schema/reverse_proposals_response.json b/contracts/dao/proposal/cwd-proposal-multiple/schema/reverse_proposals_response.json index 73c2d4cc..facc2179 100644 --- a/contracts/dao/proposal/cwd-proposal-multiple/schema/reverse_proposals_response.json +++ b/contracts/dao/proposal/cwd-proposal-multiple/schema/reverse_proposals_response.json @@ -268,7 +268,7 @@ ], "properties": { "contract": { - "description": "*contract** is a address of contract admin will be removed.", + "description": "*contract** is an address of contract admin will be removed.", "type": "string" }, "description": { @@ -774,6 +774,24 @@ } } }, + "MsgExecuteContract": { + "description": "MsgExecuteContract defines a call to the contract execution", + "type": "object", + "required": [ + "contract", + "msg" + ], + "properties": { + "contract": { + "description": "*contract** is a contract address that will be called", + "type": "string" + }, + "msg": { + "description": "*msg** is a contract call message", + "type": "string" + } + } + }, "MultipleChoiceOptionType": { "description": "Represents the type of Multiple choice option. \"None of the above\" has a special type for example.", "oneOf": [ @@ -1185,6 +1203,64 @@ } }, "additionalProperties": false + }, + { + "description": "AddSchedule adds new schedule with a given `name`. Until schedule is removed it will execute all `msgs` every `period` blocks. First execution is at least on `current_block + period` block. [Permissioned - DAO Only]", + "type": "object", + "required": [ + "add_schedule" + ], + "properties": { + "add_schedule": { + "type": "object", + "required": [ + "msgs", + "name", + "period" + ], + "properties": { + "msgs": { + "description": "list of cosmwasm messages to be executed", + "type": "array", + "items": { + "$ref": "#/definitions/MsgExecuteContract" + } + }, + "name": { + "description": "Name of a new schedule. Needed to be able to `RemoveSchedule` and to log information about it", + "type": "string" + }, + "period": { + "description": "period in blocks with which `msgs` will be executed", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + } + } + }, + "additionalProperties": false + }, + { + "description": "RemoveSchedule removes the schedule with a given `name`. [Permissioned - DAO or Security DAO only]", + "type": "object", + "required": [ + "remove_schedule" + ], + "properties": { + "remove_schedule": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + } + }, + "additionalProperties": false } ] }, diff --git a/contracts/dao/proposal/cwd-proposal-single/schema/execute_msg.json b/contracts/dao/proposal/cwd-proposal-single/schema/execute_msg.json index 1a1128a9..162482a5 100644 --- a/contracts/dao/proposal/cwd-proposal-single/schema/execute_msg.json +++ b/contracts/dao/proposal/cwd-proposal-single/schema/execute_msg.json @@ -546,7 +546,7 @@ ], "properties": { "contract": { - "description": "*contract** is a address of contract admin will be removed.", + "description": "*contract** is an address of contract admin will be removed.", "type": "string" }, "description": { @@ -1080,6 +1080,24 @@ } } }, + "MsgExecuteContract": { + "description": "MsgExecuteContract defines a call to the contract execution", + "type": "object", + "required": [ + "contract", + "msg" + ], + "properties": { + "contract": { + "description": "*contract** is a contract address that will be called", + "type": "string" + }, + "msg": { + "description": "*msg** is a contract call message", + "type": "string" + } + } + }, "NeutronMsg": { "description": "A number of Custom messages that can call into the Neutron bindings.", "oneOf": [ @@ -1358,6 +1376,64 @@ } }, "additionalProperties": false + }, + { + "description": "AddSchedule adds new schedule with a given `name`. Until schedule is removed it will execute all `msgs` every `period` blocks. First execution is at least on `current_block + period` block. [Permissioned - DAO Only]", + "type": "object", + "required": [ + "add_schedule" + ], + "properties": { + "add_schedule": { + "type": "object", + "required": [ + "msgs", + "name", + "period" + ], + "properties": { + "msgs": { + "description": "list of cosmwasm messages to be executed", + "type": "array", + "items": { + "$ref": "#/definitions/MsgExecuteContract" + } + }, + "name": { + "description": "Name of a new schedule. Needed to be able to `RemoveSchedule` and to log information about it", + "type": "string" + }, + "period": { + "description": "period in blocks with which `msgs` will be executed", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + } + } + }, + "additionalProperties": false + }, + { + "description": "RemoveSchedule removes the schedule with a given `name`. [Permissioned - DAO or Security DAO only]", + "type": "object", + "required": [ + "remove_schedule" + ], + "properties": { + "remove_schedule": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + } + }, + "additionalProperties": false } ] }, diff --git a/contracts/dao/proposal/cwd-proposal-single/schema/list_proposals_response.json b/contracts/dao/proposal/cwd-proposal-single/schema/list_proposals_response.json index f31ff984..38587a3d 100644 --- a/contracts/dao/proposal/cwd-proposal-single/schema/list_proposals_response.json +++ b/contracts/dao/proposal/cwd-proposal-single/schema/list_proposals_response.json @@ -233,7 +233,7 @@ ], "properties": { "contract": { - "description": "*contract** is a address of contract admin will be removed.", + "description": "*contract** is an address of contract admin will be removed.", "type": "string" }, "description": { @@ -739,6 +739,24 @@ } } }, + "MsgExecuteContract": { + "description": "MsgExecuteContract defines a call to the contract execution", + "type": "object", + "required": [ + "contract", + "msg" + ], + "properties": { + "contract": { + "description": "*contract** is a contract address that will be called", + "type": "string" + }, + "msg": { + "description": "*msg** is a contract call message", + "type": "string" + } + } + }, "NeutronMsg": { "description": "A number of Custom messages that can call into the Neutron bindings.", "oneOf": [ @@ -1017,6 +1035,64 @@ } }, "additionalProperties": false + }, + { + "description": "AddSchedule adds new schedule with a given `name`. Until schedule is removed it will execute all `msgs` every `period` blocks. First execution is at least on `current_block + period` block. [Permissioned - DAO Only]", + "type": "object", + "required": [ + "add_schedule" + ], + "properties": { + "add_schedule": { + "type": "object", + "required": [ + "msgs", + "name", + "period" + ], + "properties": { + "msgs": { + "description": "list of cosmwasm messages to be executed", + "type": "array", + "items": { + "$ref": "#/definitions/MsgExecuteContract" + } + }, + "name": { + "description": "Name of a new schedule. Needed to be able to `RemoveSchedule` and to log information about it", + "type": "string" + }, + "period": { + "description": "period in blocks with which `msgs` will be executed", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + } + } + }, + "additionalProperties": false + }, + { + "description": "RemoveSchedule removes the schedule with a given `name`. [Permissioned - DAO or Security DAO only]", + "type": "object", + "required": [ + "remove_schedule" + ], + "properties": { + "remove_schedule": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + } + }, + "additionalProperties": false } ] }, diff --git a/contracts/dao/proposal/cwd-proposal-single/schema/proposal_response.json b/contracts/dao/proposal/cwd-proposal-single/schema/proposal_response.json index bfaa791d..f47814f5 100644 --- a/contracts/dao/proposal/cwd-proposal-single/schema/proposal_response.json +++ b/contracts/dao/proposal/cwd-proposal-single/schema/proposal_response.json @@ -237,7 +237,7 @@ ], "properties": { "contract": { - "description": "*contract** is a address of contract admin will be removed.", + "description": "*contract** is an address of contract admin will be removed.", "type": "string" }, "description": { @@ -743,6 +743,24 @@ } } }, + "MsgExecuteContract": { + "description": "MsgExecuteContract defines a call to the contract execution", + "type": "object", + "required": [ + "contract", + "msg" + ], + "properties": { + "contract": { + "description": "*contract** is a contract address that will be called", + "type": "string" + }, + "msg": { + "description": "*msg** is a contract call message", + "type": "string" + } + } + }, "NeutronMsg": { "description": "A number of Custom messages that can call into the Neutron bindings.", "oneOf": [ @@ -1021,6 +1039,64 @@ } }, "additionalProperties": false + }, + { + "description": "AddSchedule adds new schedule with a given `name`. Until schedule is removed it will execute all `msgs` every `period` blocks. First execution is at least on `current_block + period` block. [Permissioned - DAO Only]", + "type": "object", + "required": [ + "add_schedule" + ], + "properties": { + "add_schedule": { + "type": "object", + "required": [ + "msgs", + "name", + "period" + ], + "properties": { + "msgs": { + "description": "list of cosmwasm messages to be executed", + "type": "array", + "items": { + "$ref": "#/definitions/MsgExecuteContract" + } + }, + "name": { + "description": "Name of a new schedule. Needed to be able to `RemoveSchedule` and to log information about it", + "type": "string" + }, + "period": { + "description": "period in blocks with which `msgs` will be executed", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + } + } + }, + "additionalProperties": false + }, + { + "description": "RemoveSchedule removes the schedule with a given `name`. [Permissioned - DAO or Security DAO only]", + "type": "object", + "required": [ + "remove_schedule" + ], + "properties": { + "remove_schedule": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + } + }, + "additionalProperties": false } ] }, diff --git a/contracts/dao/proposal/cwd-proposal-single/schema/reverse_proposals_response.json b/contracts/dao/proposal/cwd-proposal-single/schema/reverse_proposals_response.json index 4025cb95..1709aba0 100644 --- a/contracts/dao/proposal/cwd-proposal-single/schema/reverse_proposals_response.json +++ b/contracts/dao/proposal/cwd-proposal-single/schema/reverse_proposals_response.json @@ -233,7 +233,7 @@ ], "properties": { "contract": { - "description": "*contract** is a address of contract admin will be removed.", + "description": "*contract** is an address of contract admin will be removed.", "type": "string" }, "description": { @@ -739,6 +739,24 @@ } } }, + "MsgExecuteContract": { + "description": "MsgExecuteContract defines a call to the contract execution", + "type": "object", + "required": [ + "contract", + "msg" + ], + "properties": { + "contract": { + "description": "*contract** is a contract address that will be called", + "type": "string" + }, + "msg": { + "description": "*msg** is a contract call message", + "type": "string" + } + } + }, "NeutronMsg": { "description": "A number of Custom messages that can call into the Neutron bindings.", "oneOf": [ @@ -1017,6 +1035,64 @@ } }, "additionalProperties": false + }, + { + "description": "AddSchedule adds new schedule with a given `name`. Until schedule is removed it will execute all `msgs` every `period` blocks. First execution is at least on `current_block + period` block. [Permissioned - DAO Only]", + "type": "object", + "required": [ + "add_schedule" + ], + "properties": { + "add_schedule": { + "type": "object", + "required": [ + "msgs", + "name", + "period" + ], + "properties": { + "msgs": { + "description": "list of cosmwasm messages to be executed", + "type": "array", + "items": { + "$ref": "#/definitions/MsgExecuteContract" + } + }, + "name": { + "description": "Name of a new schedule. Needed to be able to `RemoveSchedule` and to log information about it", + "type": "string" + }, + "period": { + "description": "period in blocks with which `msgs` will be executed", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + } + } + }, + "additionalProperties": false + }, + { + "description": "RemoveSchedule removes the schedule with a given `name`. [Permissioned - DAO or Security DAO only]", + "type": "object", + "required": [ + "remove_schedule" + ], + "properties": { + "remove_schedule": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + } + }, + "additionalProperties": false } ] }, diff --git a/contracts/subdaos/cwd-subdao-core/schema/execute_msg.json b/contracts/subdaos/cwd-subdao-core/schema/execute_msg.json index 95c239c3..3a885b7d 100644 --- a/contracts/subdaos/cwd-subdao-core/schema/execute_msg.json +++ b/contracts/subdaos/cwd-subdao-core/schema/execute_msg.json @@ -477,7 +477,7 @@ ], "properties": { "contract": { - "description": "*contract** is a address of contract admin will be removed.", + "description": "*contract** is an address of contract admin will be removed.", "type": "string" }, "description": { @@ -973,6 +973,24 @@ } } }, + "MsgExecuteContract": { + "description": "MsgExecuteContract defines a call to the contract execution", + "type": "object", + "required": [ + "contract", + "msg" + ], + "properties": { + "contract": { + "description": "*contract** is a contract address that will be called", + "type": "string" + }, + "msg": { + "description": "*msg** is a contract call message", + "type": "string" + } + } + }, "NeutronMsg": { "description": "A number of Custom messages that can call into the Neutron bindings.", "oneOf": [ @@ -1251,6 +1269,64 @@ } }, "additionalProperties": false + }, + { + "description": "AddSchedule adds new schedule with a given `name`. Until schedule is removed it will execute all `msgs` every `period` blocks. First execution is at least on `current_block + period` block. [Permissioned - DAO Only]", + "type": "object", + "required": [ + "add_schedule" + ], + "properties": { + "add_schedule": { + "type": "object", + "required": [ + "msgs", + "name", + "period" + ], + "properties": { + "msgs": { + "description": "list of cosmwasm messages to be executed", + "type": "array", + "items": { + "$ref": "#/definitions/MsgExecuteContract" + } + }, + "name": { + "description": "Name of a new schedule. Needed to be able to `RemoveSchedule` and to log information about it", + "type": "string" + }, + "period": { + "description": "period in blocks with which `msgs` will be executed", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + } + } + }, + "additionalProperties": false + }, + { + "description": "RemoveSchedule removes the schedule with a given `name`. [Permissioned - DAO or Security DAO only]", + "type": "object", + "required": [ + "remove_schedule" + ], + "properties": { + "remove_schedule": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + } + }, + "additionalProperties": false } ] }, diff --git a/contracts/subdaos/cwd-subdao-timelock-single/schema/execute_msg.json b/contracts/subdaos/cwd-subdao-timelock-single/schema/execute_msg.json index bd17bba9..7f4791be 100644 --- a/contracts/subdaos/cwd-subdao-timelock-single/schema/execute_msg.json +++ b/contracts/subdaos/cwd-subdao-timelock-single/schema/execute_msg.json @@ -319,7 +319,7 @@ ], "properties": { "contract": { - "description": "*contract** is a address of contract admin will be removed.", + "description": "*contract** is an address of contract admin will be removed.", "type": "string" }, "description": { @@ -775,6 +775,24 @@ } } }, + "MsgExecuteContract": { + "description": "MsgExecuteContract defines a call to the contract execution", + "type": "object", + "required": [ + "contract", + "msg" + ], + "properties": { + "contract": { + "description": "*contract** is a contract address that will be called", + "type": "string" + }, + "msg": { + "description": "*msg** is a contract call message", + "type": "string" + } + } + }, "NeutronMsg": { "description": "A number of Custom messages that can call into the Neutron bindings.", "oneOf": [ @@ -1053,6 +1071,64 @@ } }, "additionalProperties": false + }, + { + "description": "AddSchedule adds new schedule with a given `name`. Until schedule is removed it will execute all `msgs` every `period` blocks. First execution is at least on `current_block + period` block. [Permissioned - DAO Only]", + "type": "object", + "required": [ + "add_schedule" + ], + "properties": { + "add_schedule": { + "type": "object", + "required": [ + "msgs", + "name", + "period" + ], + "properties": { + "msgs": { + "description": "list of cosmwasm messages to be executed", + "type": "array", + "items": { + "$ref": "#/definitions/MsgExecuteContract" + } + }, + "name": { + "description": "Name of a new schedule. Needed to be able to `RemoveSchedule` and to log information about it", + "type": "string" + }, + "period": { + "description": "period in blocks with which `msgs` will be executed", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + } + } + }, + "additionalProperties": false + }, + { + "description": "RemoveSchedule removes the schedule with a given `name`. [Permissioned - DAO or Security DAO only]", + "type": "object", + "required": [ + "remove_schedule" + ], + "properties": { + "remove_schedule": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + } + }, + "additionalProperties": false } ] }, diff --git a/contracts/subdaos/cwd-subdao-timelock-single/schema/proposal_list_response.json b/contracts/subdaos/cwd-subdao-timelock-single/schema/proposal_list_response.json index 74a2774a..8e2fa7fc 100644 --- a/contracts/subdaos/cwd-subdao-timelock-single/schema/proposal_list_response.json +++ b/contracts/subdaos/cwd-subdao-timelock-single/schema/proposal_list_response.json @@ -229,7 +229,7 @@ ], "properties": { "contract": { - "description": "*contract** is a address of contract admin will be removed.", + "description": "*contract** is an address of contract admin will be removed.", "type": "string" }, "description": { @@ -685,6 +685,24 @@ } } }, + "MsgExecuteContract": { + "description": "MsgExecuteContract defines a call to the contract execution", + "type": "object", + "required": [ + "contract", + "msg" + ], + "properties": { + "contract": { + "description": "*contract** is a contract address that will be called", + "type": "string" + }, + "msg": { + "description": "*msg** is a contract call message", + "type": "string" + } + } + }, "NeutronMsg": { "description": "A number of Custom messages that can call into the Neutron bindings.", "oneOf": [ @@ -963,6 +981,64 @@ } }, "additionalProperties": false + }, + { + "description": "AddSchedule adds new schedule with a given `name`. Until schedule is removed it will execute all `msgs` every `period` blocks. First execution is at least on `current_block + period` block. [Permissioned - DAO Only]", + "type": "object", + "required": [ + "add_schedule" + ], + "properties": { + "add_schedule": { + "type": "object", + "required": [ + "msgs", + "name", + "period" + ], + "properties": { + "msgs": { + "description": "list of cosmwasm messages to be executed", + "type": "array", + "items": { + "$ref": "#/definitions/MsgExecuteContract" + } + }, + "name": { + "description": "Name of a new schedule. Needed to be able to `RemoveSchedule` and to log information about it", + "type": "string" + }, + "period": { + "description": "period in blocks with which `msgs` will be executed", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + } + } + }, + "additionalProperties": false + }, + { + "description": "RemoveSchedule removes the schedule with a given `name`. [Permissioned - DAO or Security DAO only]", + "type": "object", + "required": [ + "remove_schedule" + ], + "properties": { + "remove_schedule": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + } + }, + "additionalProperties": false } ] }, diff --git a/contracts/subdaos/pre-propose/cwd-subdao-pre-propose-single/schema/execute_msg_for__propose_message.json b/contracts/subdaos/pre-propose/cwd-subdao-pre-propose-single/schema/execute_msg_for__propose_message.json index ddb7358e..de487b3b 100644 --- a/contracts/subdaos/pre-propose/cwd-subdao-pre-propose-single/schema/execute_msg_for__propose_message.json +++ b/contracts/subdaos/pre-propose/cwd-subdao-pre-propose-single/schema/execute_msg_for__propose_message.json @@ -350,7 +350,7 @@ ], "properties": { "contract": { - "description": "*contract** is a address of contract admin will be removed.", + "description": "*contract** is an address of contract admin will be removed.", "type": "string" }, "description": { @@ -870,6 +870,24 @@ } } }, + "MsgExecuteContract": { + "description": "MsgExecuteContract defines a call to the contract execution", + "type": "object", + "required": [ + "contract", + "msg" + ], + "properties": { + "contract": { + "description": "*contract** is a contract address that will be called", + "type": "string" + }, + "msg": { + "description": "*msg** is a contract call message", + "type": "string" + } + } + }, "NeutronMsg": { "description": "A number of Custom messages that can call into the Neutron bindings.", "oneOf": [ @@ -1148,6 +1166,64 @@ } }, "additionalProperties": false + }, + { + "description": "AddSchedule adds new schedule with a given `name`. Until schedule is removed it will execute all `msgs` every `period` blocks. First execution is at least on `current_block + period` block. [Permissioned - DAO Only]", + "type": "object", + "required": [ + "add_schedule" + ], + "properties": { + "add_schedule": { + "type": "object", + "required": [ + "msgs", + "name", + "period" + ], + "properties": { + "msgs": { + "description": "list of cosmwasm messages to be executed", + "type": "array", + "items": { + "$ref": "#/definitions/MsgExecuteContract" + } + }, + "name": { + "description": "Name of a new schedule. Needed to be able to `RemoveSchedule` and to log information about it", + "type": "string" + }, + "period": { + "description": "period in blocks with which `msgs` will be executed", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + } + } + }, + "additionalProperties": false + }, + { + "description": "RemoveSchedule removes the schedule with a given `name`. [Permissioned - DAO or Security DAO only]", + "type": "object", + "required": [ + "remove_schedule" + ], + "properties": { + "remove_schedule": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + } + }, + "additionalProperties": false } ] }, diff --git a/contracts/subdaos/proposal/cwd-subdao-proposal-single/schema/execute_msg.json b/contracts/subdaos/proposal/cwd-subdao-proposal-single/schema/execute_msg.json index 694b58fb..b094bbd0 100644 --- a/contracts/subdaos/proposal/cwd-subdao-proposal-single/schema/execute_msg.json +++ b/contracts/subdaos/proposal/cwd-subdao-proposal-single/schema/execute_msg.json @@ -546,7 +546,7 @@ ], "properties": { "contract": { - "description": "*contract** is a address of contract admin will be removed.", + "description": "*contract** is an address of contract admin will be removed.", "type": "string" }, "description": { @@ -1080,6 +1080,24 @@ } } }, + "MsgExecuteContract": { + "description": "MsgExecuteContract defines a call to the contract execution", + "type": "object", + "required": [ + "contract", + "msg" + ], + "properties": { + "contract": { + "description": "*contract** is a contract address that will be called", + "type": "string" + }, + "msg": { + "description": "*msg** is a contract call message", + "type": "string" + } + } + }, "NeutronMsg": { "description": "A number of Custom messages that can call into the Neutron bindings.", "oneOf": [ @@ -1358,6 +1376,64 @@ } }, "additionalProperties": false + }, + { + "description": "AddSchedule adds new schedule with a given `name`. Until schedule is removed it will execute all `msgs` every `period` blocks. First execution is at least on `current_block + period` block. [Permissioned - DAO Only]", + "type": "object", + "required": [ + "add_schedule" + ], + "properties": { + "add_schedule": { + "type": "object", + "required": [ + "msgs", + "name", + "period" + ], + "properties": { + "msgs": { + "description": "list of cosmwasm messages to be executed", + "type": "array", + "items": { + "$ref": "#/definitions/MsgExecuteContract" + } + }, + "name": { + "description": "Name of a new schedule. Needed to be able to `RemoveSchedule` and to log information about it", + "type": "string" + }, + "period": { + "description": "period in blocks with which `msgs` will be executed", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + } + } + }, + "additionalProperties": false + }, + { + "description": "RemoveSchedule removes the schedule with a given `name`. [Permissioned - DAO or Security DAO only]", + "type": "object", + "required": [ + "remove_schedule" + ], + "properties": { + "remove_schedule": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + } + }, + "additionalProperties": false } ] }, diff --git a/contracts/subdaos/proposal/cwd-subdao-proposal-single/schema/list_proposals_response.json b/contracts/subdaos/proposal/cwd-subdao-proposal-single/schema/list_proposals_response.json index f31ff984..38587a3d 100644 --- a/contracts/subdaos/proposal/cwd-subdao-proposal-single/schema/list_proposals_response.json +++ b/contracts/subdaos/proposal/cwd-subdao-proposal-single/schema/list_proposals_response.json @@ -233,7 +233,7 @@ ], "properties": { "contract": { - "description": "*contract** is a address of contract admin will be removed.", + "description": "*contract** is an address of contract admin will be removed.", "type": "string" }, "description": { @@ -739,6 +739,24 @@ } } }, + "MsgExecuteContract": { + "description": "MsgExecuteContract defines a call to the contract execution", + "type": "object", + "required": [ + "contract", + "msg" + ], + "properties": { + "contract": { + "description": "*contract** is a contract address that will be called", + "type": "string" + }, + "msg": { + "description": "*msg** is a contract call message", + "type": "string" + } + } + }, "NeutronMsg": { "description": "A number of Custom messages that can call into the Neutron bindings.", "oneOf": [ @@ -1017,6 +1035,64 @@ } }, "additionalProperties": false + }, + { + "description": "AddSchedule adds new schedule with a given `name`. Until schedule is removed it will execute all `msgs` every `period` blocks. First execution is at least on `current_block + period` block. [Permissioned - DAO Only]", + "type": "object", + "required": [ + "add_schedule" + ], + "properties": { + "add_schedule": { + "type": "object", + "required": [ + "msgs", + "name", + "period" + ], + "properties": { + "msgs": { + "description": "list of cosmwasm messages to be executed", + "type": "array", + "items": { + "$ref": "#/definitions/MsgExecuteContract" + } + }, + "name": { + "description": "Name of a new schedule. Needed to be able to `RemoveSchedule` and to log information about it", + "type": "string" + }, + "period": { + "description": "period in blocks with which `msgs` will be executed", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + } + } + }, + "additionalProperties": false + }, + { + "description": "RemoveSchedule removes the schedule with a given `name`. [Permissioned - DAO or Security DAO only]", + "type": "object", + "required": [ + "remove_schedule" + ], + "properties": { + "remove_schedule": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + } + }, + "additionalProperties": false } ] }, diff --git a/contracts/subdaos/proposal/cwd-subdao-proposal-single/schema/proposal_response.json b/contracts/subdaos/proposal/cwd-subdao-proposal-single/schema/proposal_response.json index bfaa791d..f47814f5 100644 --- a/contracts/subdaos/proposal/cwd-subdao-proposal-single/schema/proposal_response.json +++ b/contracts/subdaos/proposal/cwd-subdao-proposal-single/schema/proposal_response.json @@ -237,7 +237,7 @@ ], "properties": { "contract": { - "description": "*contract** is a address of contract admin will be removed.", + "description": "*contract** is an address of contract admin will be removed.", "type": "string" }, "description": { @@ -743,6 +743,24 @@ } } }, + "MsgExecuteContract": { + "description": "MsgExecuteContract defines a call to the contract execution", + "type": "object", + "required": [ + "contract", + "msg" + ], + "properties": { + "contract": { + "description": "*contract** is a contract address that will be called", + "type": "string" + }, + "msg": { + "description": "*msg** is a contract call message", + "type": "string" + } + } + }, "NeutronMsg": { "description": "A number of Custom messages that can call into the Neutron bindings.", "oneOf": [ @@ -1021,6 +1039,64 @@ } }, "additionalProperties": false + }, + { + "description": "AddSchedule adds new schedule with a given `name`. Until schedule is removed it will execute all `msgs` every `period` blocks. First execution is at least on `current_block + period` block. [Permissioned - DAO Only]", + "type": "object", + "required": [ + "add_schedule" + ], + "properties": { + "add_schedule": { + "type": "object", + "required": [ + "msgs", + "name", + "period" + ], + "properties": { + "msgs": { + "description": "list of cosmwasm messages to be executed", + "type": "array", + "items": { + "$ref": "#/definitions/MsgExecuteContract" + } + }, + "name": { + "description": "Name of a new schedule. Needed to be able to `RemoveSchedule` and to log information about it", + "type": "string" + }, + "period": { + "description": "period in blocks with which `msgs` will be executed", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + } + } + }, + "additionalProperties": false + }, + { + "description": "RemoveSchedule removes the schedule with a given `name`. [Permissioned - DAO or Security DAO only]", + "type": "object", + "required": [ + "remove_schedule" + ], + "properties": { + "remove_schedule": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + } + }, + "additionalProperties": false } ] }, diff --git a/contracts/subdaos/proposal/cwd-subdao-proposal-single/schema/reverse_proposals_response.json b/contracts/subdaos/proposal/cwd-subdao-proposal-single/schema/reverse_proposals_response.json index 4025cb95..1709aba0 100644 --- a/contracts/subdaos/proposal/cwd-subdao-proposal-single/schema/reverse_proposals_response.json +++ b/contracts/subdaos/proposal/cwd-subdao-proposal-single/schema/reverse_proposals_response.json @@ -233,7 +233,7 @@ ], "properties": { "contract": { - "description": "*contract** is a address of contract admin will be removed.", + "description": "*contract** is an address of contract admin will be removed.", "type": "string" }, "description": { @@ -739,6 +739,24 @@ } } }, + "MsgExecuteContract": { + "description": "MsgExecuteContract defines a call to the contract execution", + "type": "object", + "required": [ + "contract", + "msg" + ], + "properties": { + "contract": { + "description": "*contract** is a contract address that will be called", + "type": "string" + }, + "msg": { + "description": "*msg** is a contract call message", + "type": "string" + } + } + }, "NeutronMsg": { "description": "A number of Custom messages that can call into the Neutron bindings.", "oneOf": [ @@ -1017,6 +1035,64 @@ } }, "additionalProperties": false + }, + { + "description": "AddSchedule adds new schedule with a given `name`. Until schedule is removed it will execute all `msgs` every `period` blocks. First execution is at least on `current_block + period` block. [Permissioned - DAO Only]", + "type": "object", + "required": [ + "add_schedule" + ], + "properties": { + "add_schedule": { + "type": "object", + "required": [ + "msgs", + "name", + "period" + ], + "properties": { + "msgs": { + "description": "list of cosmwasm messages to be executed", + "type": "array", + "items": { + "$ref": "#/definitions/MsgExecuteContract" + } + }, + "name": { + "description": "Name of a new schedule. Needed to be able to `RemoveSchedule` and to log information about it", + "type": "string" + }, + "period": { + "description": "period in blocks with which `msgs` will be executed", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + } + } + }, + "additionalProperties": false + }, + { + "description": "RemoveSchedule removes the schedule with a given `name`. [Permissioned - DAO or Security DAO only]", + "type": "object", + "required": [ + "remove_schedule" + ], + "properties": { + "remove_schedule": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + } + }, + "additionalProperties": false } ] },