Skip to content

Commit

Permalink
fix: update borsh & enable migration testing
Browse files Browse the repository at this point in the history
  • Loading branch information
hoomp3 committed Feb 2, 2024
1 parent 4818819 commit acbc406
Show file tree
Hide file tree
Showing 41 changed files with 413 additions and 295 deletions.
166 changes: 94 additions & 72 deletions Cargo.lock

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

8 changes: 5 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ members = [
edition = "2021"

[workspace.dependencies]
borsh = "0.10.3"
borsh = "1.3.1"
borsh-derive = "1.3.1"

bincode2 = "2.0.1"
cosmwasm-std = { package = "secret-cosmwasm-std", version = "1.1.10" }
cosmwasm-std = { package = "secret-cosmwasm-std", version = "1.1.11" }
cosmwasm-schema = "1.2.5"
schemars = "0.8.9"
serde = { version = "1.0.103", default-features = false, features = ["derive"] }
thiserror = "1.0"
ethnum = { git = "https://github.com/securesecrets/ethnum-rs", branch = "v1.1.10-secret" }
ethnum = { git = "https://github.com/securesecrets/ethnum-rs", branch = "v1.1.11-secret-borsh" }
primitive-types = { version = "0.12.1", default-features = false }

nanoid = "0.4.0"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ This repo contains some packages from [cw-plus](https://github.com/CosmWasm/cw-p

## Differences from original repos?

Since Secret Network's `cosmwasm-std` does not support migrations or anything requiring the iterator feature, that functionality has been commented or left out. The `ContractInfo` also has an additional field for `code_hash` so this fork accounts for that difference.
Since Secret Network's `cosmwasm-std` does not support anything requiring the iterator feature, that functionality has been commented or left out. The `ContractInfo` also has an additional field for `code_hash` so this fork accounts for that difference.

## Imports

TODO
TODO
12 changes: 6 additions & 6 deletions packages/btr-macros/src/borsh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ pub fn serde_impl(input: DeriveInput) -> DeriveInput {
#[derive(
serde::Serialize,
serde::Deserialize,
borsh::BorshSerialize,
borsh::BorshDeserialize,
borsh_derive::BorshSerialize,
borsh_derive::BorshDeserialize,
Clone,
Debug,
PartialEq,
Expand All @@ -46,8 +46,8 @@ pub fn serde_impl(input: DeriveInput) -> DeriveInput {
#[derive(
serde::Serialize,
serde::Deserialize,
borsh::BorshSerialize,
borsh::BorshDeserialize,
borsh_derive::BorshSerialize,
borsh_derive::BorshDeserialize,
Clone,
Debug,
PartialEq,
Expand Down Expand Up @@ -76,8 +76,8 @@ mod tests {
#[derive(
serde::Serialize,
serde::Deserialize,
borsh::BorshSerialize,
borsh::BorshDeserialize,
borsh_derive::BorshSerialize,
borsh_derive::BorshDeserialize,
Clone,
Debug,
PartialEq,
Expand Down
3 changes: 2 additions & 1 deletion packages/math/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ cosmwasm-schema = { workspace = true }
schemars = { workspace = true }
serde = { workspace = true }
borsh = { workspace = true }
borsh-derive = { workspace = true }
thiserror = { workspace = true }
ethnum = { workspace = true, features = ["cosmos", "borsh", "serde", "macros"] }
primitive-types = { workspace = true }
Expand All @@ -34,4 +35,4 @@ btr-macros = { path = "../btr-macros" }
rstest = { workspace = true }
criterion = { workspace = true }
serde_json = { workspace = true }
proptest = { workspace = true }
proptest = { workspace = true }
2 changes: 1 addition & 1 deletion packages/math/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ pub mod asserter;
mod primitives;

pub mod common;
pub mod traits;
pub mod sd59x18;
pub mod traits;
pub mod ud60x18;

mod asm;
Expand Down
Loading

0 comments on commit acbc406

Please sign in to comment.