Skip to content

Commit

Permalink
refactor voting vault & rm unused bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
quasisamurai committed Dec 6, 2022
1 parent 3a6d2c8 commit 43224d3
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 309 deletions.
48 changes: 1 addition & 47 deletions contracts/cwd-core/.cargo/schema/execute_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -979,27 +979,7 @@
"description": "A number of Custom messages that can call into the Neutron bindings",
"oneOf": [
{
"description": "AddAdmin registers an interchain account on remote chain",
"type": "object",
"required": [
"add_admin"
],
"properties": {
"add_admin": {
"type": "object",
"required": [
"admin"
],
"properties": {
"admin": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"description": "TODO: add anotation TODO: move this to neutron sdk; bring neutron-sdk instead to this project This message can be sent only by neutron dao (cuz only neutron dao has admin rights)",
"type": "object",
"required": [
"submit_proposal"
Expand Down Expand Up @@ -1074,16 +1054,6 @@
"type": "null"
}
]
},
"text_proposal": {
"anyOf": [
{
"$ref": "#/definitions/TextProposal"
},
{
"type": "null"
}
]
}
}
},
Expand Down Expand Up @@ -1190,22 +1160,6 @@
}
}
},
"TextProposal": {
"description": "MsgTextPoposal defines a SDK message for submission of text proposal",
"type": "object",
"required": [
"description",
"title"
],
"properties": {
"description": {
"type": "string"
},
"title": {
"type": "string"
}
}
},
"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.\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": [
Expand Down
48 changes: 1 addition & 47 deletions contracts/cwd-core/examples/schema/execute_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -979,27 +979,7 @@
"description": "A number of Custom messages that can call into the Neutron bindings",
"oneOf": [
{
"description": "AddAdmin registers an interchain account on remote chain",
"type": "object",
"required": [
"add_admin"
],
"properties": {
"add_admin": {
"type": "object",
"required": [
"admin"
],
"properties": {
"admin": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"description": "TODO: add anotation TODO: move this to neutron sdk; bring neutron-sdk instead to this project This message can be sent only by neutron dao (cuz only neutron dao has admin rights)",
"type": "object",
"required": [
"submit_proposal"
Expand Down Expand Up @@ -1074,16 +1054,6 @@
"type": "null"
}
]
},
"text_proposal": {
"anyOf": [
{
"$ref": "#/definitions/TextProposal"
},
{
"type": "null"
}
]
}
}
},
Expand Down Expand Up @@ -1190,22 +1160,6 @@
}
}
},
"TextProposal": {
"description": "MsgTextPoposal defines a SDK message for submission of text proposal",
"type": "object",
"required": [
"description",
"title"
],
"properties": {
"description": {
"type": "string"
},
"title": {
"type": "string"
}
}
},
"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.\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": [
Expand Down
48 changes: 1 addition & 47 deletions contracts/cwd-core/schema/execute_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -979,27 +979,7 @@
"description": "A number of Custom messages that can call into the Neutron bindings",
"oneOf": [
{
"description": "AddAdmin registers an interchain account on remote chain",
"type": "object",
"required": [
"add_admin"
],
"properties": {
"add_admin": {
"type": "object",
"required": [
"admin"
],
"properties": {
"admin": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"description": "TODO: add anotation TODO: move this to neutron sdk; bring neutron-sdk instead to this project This message can be sent only by neutron dao (cuz only neutron dao has admin rights)",
"type": "object",
"required": [
"submit_proposal"
Expand Down Expand Up @@ -1074,16 +1054,6 @@
"type": "null"
}
]
},
"text_proposal": {
"anyOf": [
{
"$ref": "#/definitions/TextProposal"
},
{
"type": "null"
}
]
}
}
},
Expand Down Expand Up @@ -1190,22 +1160,6 @@
}
}
},
"TextProposal": {
"description": "MsgTextPoposal defines a SDK message for submission of text proposal",
"type": "object",
"required": [
"description",
"title"
],
"properties": {
"description": {
"type": "string"
},
"title": {
"type": "string"
}
}
},
"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.\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": [
Expand Down
48 changes: 1 addition & 47 deletions contracts/cwd-core/schema/schema/execute_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -979,27 +979,7 @@
"description": "A number of Custom messages that can call into the Neutron bindings",
"oneOf": [
{
"description": "AddAdmin registers an interchain account on remote chain",
"type": "object",
"required": [
"add_admin"
],
"properties": {
"add_admin": {
"type": "object",
"required": [
"admin"
],
"properties": {
"admin": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"description": "TODO: add anotation TODO: move this to neutron sdk; bring neutron-sdk instead to this project This message can be sent only by neutron dao (cuz only neutron dao has admin rights)",
"type": "object",
"required": [
"submit_proposal"
Expand Down Expand Up @@ -1074,16 +1054,6 @@
"type": "null"
}
]
},
"text_proposal": {
"anyOf": [
{
"$ref": "#/definitions/TextProposal"
},
{
"type": "null"
}
]
}
}
},
Expand Down Expand Up @@ -1190,22 +1160,6 @@
}
}
},
"TextProposal": {
"description": "MsgTextPoposal defines a SDK message for submission of text proposal",
"type": "object",
"required": [
"description",
"title"
],
"properties": {
"description": {
"type": "string"
},
"title": {
"type": "string"
}
}
},
"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.\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": [
Expand Down
48 changes: 1 addition & 47 deletions contracts/cwd-core/src/schema/execute_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -979,27 +979,7 @@
"description": "A number of Custom messages that can call into the Neutron bindings",
"oneOf": [
{
"description": "AddAdmin registers an interchain account on remote chain",
"type": "object",
"required": [
"add_admin"
],
"properties": {
"add_admin": {
"type": "object",
"required": [
"admin"
],
"properties": {
"admin": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"description": "TODO: add anotation TODO: move this to neutron sdk; bring neutron-sdk instead to this project This message can be sent only by neutron dao (cuz only neutron dao has admin rights)",
"type": "object",
"required": [
"submit_proposal"
Expand Down Expand Up @@ -1074,16 +1054,6 @@
"type": "null"
}
]
},
"text_proposal": {
"anyOf": [
{
"$ref": "#/definitions/TextProposal"
},
{
"type": "null"
}
]
}
}
},
Expand Down Expand Up @@ -1190,22 +1160,6 @@
}
}
},
"TextProposal": {
"description": "MsgTextPoposal defines a SDK message for submission of text proposal",
"type": "object",
"required": [
"description",
"title"
],
"properties": {
"description": {
"type": "string"
},
"title": {
"type": "string"
}
}
},
"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.\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": [
Expand Down
Loading

0 comments on commit 43224d3

Please sign in to comment.