Skip to content

Commit

Permalink
use main branch
Browse files Browse the repository at this point in the history
update neutron-sdk: remove funds and sender from neutronmsg addschedule
update contracts
update contracts to use add_schedule, remove_schedule messages
  • Loading branch information
NeverHappened committed Apr 4, 2023
1 parent 5890a42 commit ac9ada9
Show file tree
Hide file tree
Showing 20 changed files with 1,464 additions and 20 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

78 changes: 77 additions & 1 deletion contracts/dao/cwd-core/schema/execute_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -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
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -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
}
]
},
Expand Down
Loading

0 comments on commit ac9ada9

Please sign in to comment.