Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump neutron-sdk to v0.5.0 #59

Merged
merged 1 commit into from
May 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion contracts/dao/cwd-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ backtraces = ["cosmwasm-std/backtraces"]
library = []

[dependencies]
neutron_bindings = { package = "neutron-sdk", version = "0.4.0" }
neutron-sdk = "0.5.0"
cosmwasm-std = { version = "1.0.0", features = ["ibc3"] }
cosmwasm-storage = { version = "1.0.0" }
cw-storage-plus = "0.13"
Expand Down
107 changes: 106 additions & 1 deletion contracts/dao/cwd-core/schema/execute_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@
]
},
"IbcFee": {
"description": "IbcFee defines struct for fees that refund the relayer for `SudoMsg` messages submission. Unused fee kind will be returned back to message sender. Please refer to these links for more information: IBC transaction structure - https://docs.neutron.org/neutron/interchain-txs/messages/#msgsubmittx General mechanics of fee payments - https://docs.neutron.org/neutron/feerefunder/overview/#general-mechanics",
"description": "IbcFee defines struct for fees that refund the relayer for `SudoMsg` messages submission. Unused fee kind will be returned back to message sender. Please refer to these links for more information: IBC transaction structure - <https://docs.neutron.org/neutron/interchain-txs/messages/#msgsubmittx> General mechanics of fee payments - <https://docs.neutron.org/neutron/feerefunder/overview/#general-mechanics>",
"type": "object",
"required": [
"ack_fee",
Expand Down Expand Up @@ -1314,6 +1314,111 @@
},
"additionalProperties": false
},
{
"description": "TokenFactory message. Contracts can create denoms, namespaced under the contract's address. A contract may create any number of independent sub-denoms.",
"type": "object",
"required": [
"create_denom"
],
"properties": {
"create_denom": {
"type": "object",
"required": [
"subdenom"
],
"properties": {
"subdenom": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"description": "TokenFactory message. Contracts can change the admin of a denom that they are the admin of.",
"type": "object",
"required": [
"change_admin"
],
"properties": {
"change_admin": {
"type": "object",
"required": [
"denom",
"new_admin_address"
],
"properties": {
"denom": {
"type": "string"
},
"new_admin_address": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"description": "TokenFactory message. Contracts can mint native tokens for an existing factory denom that they are the admin of.",
"type": "object",
"required": [
"mint_tokens"
],
"properties": {
"mint_tokens": {
"type": "object",
"required": [
"amount",
"denom",
"mint_to_address"
],
"properties": {
"amount": {
"$ref": "#/definitions/Uint128"
},
"denom": {
"type": "string"
},
"mint_to_address": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"description": "TokenFactory message. Contracts can burn native tokens for an existing factory denom that they are the admin of. Currently, the burn from address must be the admin contract.",
"type": "object",
"required": [
"burn_tokens"
],
"properties": {
"burn_tokens": {
"type": "object",
"required": [
"amount",
"burn_from_address",
"denom"
],
"properties": {
"amount": {
"$ref": "#/definitions/Uint128"
},
"burn_from_address": {
"description": "Must be set to `\"\"` for now",
"type": "string"
},
"denom": {
"type": "string"
}
}
}
},
"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",
Expand Down
2 changes: 1 addition & 1 deletion contracts/dao/cwd-core/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use cw_utils::{parse_reply_instantiate_data, Duration};

use cw_paginate::{paginate_map, paginate_map_values};
use cwd_interface::{voting, ModuleInstantiateInfo};
use neutron_bindings::bindings::msg::NeutronMsg;
use neutron_sdk::bindings::msg::NeutronMsg;

use crate::error::ContractError;
use crate::msg::{ExecuteMsg, InitialItem, InstantiateMsg, MigrateMsg, QueryMsg};
Expand Down
2 changes: 1 addition & 1 deletion contracts/dao/cwd-core/src/msg.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use cosmwasm_std::CosmosMsg;
use cw_utils::Duration;
use cwd_interface::ModuleInstantiateInfo;
use neutron_bindings::bindings::msg::NeutronMsg;
use neutron_sdk::bindings::msg::NeutronMsg;
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cw2 = "0.13.2"
serde = { version = "1.0.147", default-features = false, features = ["derive"] }
cwd-pre-propose-base = { version = "*", path = "../../../../packages/cwd-pre-propose-base" }
cwd-voting = { path = "../../../../packages/cwd-voting" }
neutron_bindings = { package = "neutron-sdk", version = "0.4.0" }
neutron-sdk = "0.5.0"
schemars = "0.8.8"
cosmwasm-schema = "1.0.0"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@
]
},
"IbcFee": {
"description": "IbcFee defines struct for fees that refund the relayer for `SudoMsg` messages submission. Unused fee kind will be returned back to message sender. Please refer to these links for more information: IBC transaction structure - https://docs.neutron.org/neutron/interchain-txs/messages/#msgsubmittx General mechanics of fee payments - https://docs.neutron.org/neutron/feerefunder/overview/#general-mechanics",
"description": "IbcFee defines struct for fees that refund the relayer for `SudoMsg` messages submission. Unused fee kind will be returned back to message sender. Please refer to these links for more information: IBC transaction structure - <https://docs.neutron.org/neutron/interchain-txs/messages/#msgsubmittx> General mechanics of fee payments - <https://docs.neutron.org/neutron/feerefunder/overview/#general-mechanics>",
"type": "object",
"required": [
"ack_fee",
Expand Down Expand Up @@ -1213,6 +1213,111 @@
},
"additionalProperties": false
},
{
"description": "TokenFactory message. Contracts can create denoms, namespaced under the contract's address. A contract may create any number of independent sub-denoms.",
"type": "object",
"required": [
"create_denom"
],
"properties": {
"create_denom": {
"type": "object",
"required": [
"subdenom"
],
"properties": {
"subdenom": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"description": "TokenFactory message. Contracts can change the admin of a denom that they are the admin of.",
"type": "object",
"required": [
"change_admin"
],
"properties": {
"change_admin": {
"type": "object",
"required": [
"denom",
"new_admin_address"
],
"properties": {
"denom": {
"type": "string"
},
"new_admin_address": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"description": "TokenFactory message. Contracts can mint native tokens for an existing factory denom that they are the admin of.",
"type": "object",
"required": [
"mint_tokens"
],
"properties": {
"mint_tokens": {
"type": "object",
"required": [
"amount",
"denom",
"mint_to_address"
],
"properties": {
"amount": {
"$ref": "#/definitions/Uint128"
},
"denom": {
"type": "string"
},
"mint_to_address": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"description": "TokenFactory message. Contracts can burn native tokens for an existing factory denom that they are the admin of. Currently, the burn from address must be the admin contract.",
"type": "object",
"required": [
"burn_tokens"
],
"properties": {
"burn_tokens": {
"type": "object",
"required": [
"amount",
"burn_from_address",
"denom"
],
"properties": {
"amount": {
"$ref": "#/definitions/Uint128"
},
"burn_from_address": {
"description": "Must be set to `\"\"` for now",
"type": "string"
},
"denom": {
"type": "string"
}
}
}
},
"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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cw-storage-plus = "0.13"
serde = { version = "1.0.147", default-features = false, features = ["derive"] }
cwd-pre-propose-base = { version = "*", path = "../../../../packages/cwd-pre-propose-base" }
cwd-voting = { path = "../../../../packages/cwd-voting" }
neutron_bindings = { package = "neutron-sdk", version = "0.4.0" }
neutron-sdk = "0.5.0"
schemars = "0.8.8"
thiserror = { version = "1.0.31" }
neutron-subdao-core = { version = "*", path = "../../../../packages/neutron-subdao-core" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cosmwasm-std = "1.0.0"
cw2 = "0.13.2"
serde = { version = "1.0.147", default-features = false, features = ["derive"] }
cwd-pre-propose-base = { version = "*", path = "../../../../packages/cwd-pre-propose-base" }
neutron_bindings = { package = "neutron-sdk", version = "0.4.0" }
neutron-sdk = "0.5.0"
schemars = "0.8.8"

[dev-dependencies]
Expand Down
Loading