Skip to content

Commit

Permalink
neutron-std
Browse files Browse the repository at this point in the history
  • Loading branch information
pr0n00gler committed Sep 2, 2024
1 parent e0e697a commit 4664761
Show file tree
Hide file tree
Showing 267 changed files with 18 additions and 46,634 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[workspace]
resolver = "2"
members = ["contracts/*", "packages/*", "proto-build"]
members = ["contracts/*", "packages/*"]

[profile.release]
opt-level = 3
Expand Down Expand Up @@ -31,4 +31,5 @@ protobuf = "~3.3.0"
hex = "0.4.3"
serde_json = { version = "1.0.87" }
tendermint-proto = "0.34.1"
speedate = "0.13.0"
speedate = "0.13.0"
neutron-std = { package = "neutron-std", git = "https://github.com/neutron-org/neutron-std", branch = "main" }
9 changes: 5 additions & 4 deletions contracts/ibc_transfer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ edition = "2021"


exclude = [
# Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication.
"contract.wasm",
"hash.txt",
# Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication.
"contract.wasm",
"hash.txt",
]

[lib]
Expand All @@ -23,9 +23,10 @@ cw2 = { workspace = true }
schemars = { workspace = true }
serde = { workspace = true }
serde-json-wasm = { workspace = true }
cw-storage-plus = { workspace = true, features = ["iterator"]}
cw-storage-plus = { workspace = true, features = ["iterator"] }
cosmwasm-schema = { workspace = true }
neutron-sdk = { path = "../../packages/neutron-sdk", default-features = false }
neutron-std = { workspace = true }

[dev-dependencies]
cosmwasm-schema = { workspace = true }
2 changes: 1 addition & 1 deletion contracts/ibc_transfer/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use cosmwasm_std::{
};
use cw2::set_contract_version;
use neutron_sdk::interchain_txs::helpers::decode_message_response;
use neutron_sdk::proto_types::neutron::transfer::MsgTransferResponse;
use neutron_std::types::neutron::transfer::MsgTransferResponse;
use neutron_sdk::{
bindings::{
msg::{IbcFee, NeutronMsg},
Expand Down
7 changes: 4 additions & 3 deletions contracts/neutron_interchain_queries/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ authors = ["pr0n00gler <misha.m@p2p.org>"]
edition = "2021"

exclude = [
# Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication.
"contract.wasm",
"hash.txt",
# Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication.
"contract.wasm",
"hash.txt",
]

[lib]
Expand All @@ -22,6 +22,7 @@ cw2 = { workspace = true }
schemars = { workspace = true }
serde = { workspace = true }
neutron-sdk = { path = "../../packages/neutron-sdk", default-features = false }
neutron-std = { workspace = true }
cosmos-sdk-proto = { workspace = true }
cw-storage-plus = { workspace = true }
serde-json-wasm = { workspace = true }
Expand Down
7 changes: 4 additions & 3 deletions contracts/neutron_interchain_txs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ authors = ["ratik <sergey.r@p2p.org>"]
edition = "2021"

exclude = [
# Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication.
"contract.wasm",
"hash.txt",
# Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication.
"contract.wasm",
"hash.txt",
]

[lib]
Expand All @@ -25,5 +25,6 @@ serde-json-wasm = { workspace = true }
cw-storage-plus = { workspace = true }
cosmos-sdk-proto = { workspace = true }
neutron-sdk = { path = "../../packages/neutron-sdk", default-features = false }
neutron-std = { workspace = true }
prost-types = { workspace = true }
cosmwasm-schema = { workspace = true }
2 changes: 1 addition & 1 deletion contracts/neutron_interchain_txs/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use serde::{Deserialize, Serialize};

use crate::msg::{ExecuteMsg, InstantiateMsg, MigrateMsg, QueryMsg};
use neutron_sdk::bindings::msg::IbcFee;
use neutron_sdk::proto_types::neutron::interchaintxs::v1::MsgSubmitTxResponse;
use neutron_std::types::neutron::interchaintxs::v1::MsgSubmitTxResponse;
use neutron_sdk::{
bindings::{
msg::NeutronMsg,
Expand Down
1 change: 0 additions & 1 deletion packages/neutron-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ prost-types = { workspace = true }
tendermint-proto = { workspace = true }
speedate = { workspace = true }
chrono = { version = "0.4.22", default-features = false }
neutron-std-derive = { version = "0.20.1", path = "../neutron-std-derive" }

[dev-dependencies]
base64 = { workspace = true }
Expand Down
8 changes: 0 additions & 8 deletions packages/neutron-sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,14 @@
// #![forbid(unsafe_code)]
#![warn(trivial_casts, trivial_numeric_casts, unused_import_braces)]

/// The version (commit hash) of the Cosmos SDK used when generating this library.
pub const NEUTROND_VERSION: &str = include_str!("proto_types/NEUTRON_COMMIT");

pub mod bindings;
mod errors;
pub mod interchain_queries;
pub mod interchain_txs;
#[allow(deprecated, clippy::module_inception)]
pub mod proto_types;
pub mod query;
mod serde;
pub mod shim;
pub mod sudo;

pub use errors::error::{NeutronError, NeutronResult};
pub use shim::{cosmwasm_to_proto_coins, try_proto_to_cosmwasm_coins};

// This is a signal, such that any contract that imports these helpers will only run on the
// neutron blockchain
Expand Down
1 change: 0 additions & 1 deletion packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT

This file was deleted.

1 change: 0 additions & 1 deletion packages/neutron-sdk/src/proto_types/capability/mod.rs

This file was deleted.

112 changes: 0 additions & 112 deletions packages/neutron-sdk/src/proto_types/capability/v1.rs

This file was deleted.

2 changes: 0 additions & 2 deletions packages/neutron-sdk/src/proto_types/cosmos/app/mod.rs

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 4664761

Please sign in to comment.