diff --git a/Cargo.lock b/Cargo.lock index 2a55a051..86ddeff3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,9 +4,9 @@ version = 3 [[package]] name = "ahash" -version = "0.7.6" +version = "0.7.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" +checksum = "5a824f2aa7e75a0c98c5a504fceb80649e9c35265d44525b5f94de4771a395cd" dependencies = [ "getrandom", "once_cell", @@ -52,15 +52,15 @@ dependencies = [ "cosmwasm-std", "cosmwasm-storage", "cw-multi-test", - "cw-storage-plus 0.14.0", - "cw-utils 0.14.0", - "cw2 0.14.0", - "injective-cosmwasm 0.1.105", - "injective-math 0.1.21", + "cw-storage-plus 0.16.0", + "cw-utils 0.16.0", + "cw2 0.16.0", + "injective-cosmwasm", + "injective-math", "injective-protobuf", "protobuf", "schemars", - "serde 1.0.188", + "serde 1.0.192", "thiserror", ] @@ -90,9 +90,9 @@ checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" [[package]] name = "base64" -version = "0.21.4" +version = "0.21.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ba43ea6f343b788c8764558649e08df62f86c6ef251fdaeb1ffd010a9ae50a2" +checksum = "35636a1494ede3b646cc98f74f8e62c773a38a659ebc777a2cf26b9b74171df9" [[package]] name = "base64ct" @@ -101,14 +101,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" [[package]] -name = "bigint" -version = "4.4.3" +name = "bech32" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0e8c8a600052b52482eff2cf4d810e462fdff1f656ac1ecb6232132a1ed7def" -dependencies = [ - "byteorder", - "crunchy 0.1.6", -] +checksum = "d86b93f97252c47b41663388e6d155714a9d0c398b99f1005cbc5f978b29f445" [[package]] name = "bitflags" @@ -148,9 +144,9 @@ checksum = "7f30e7476521f6f8af1a1c4c0b8cc94f0bee37d91763d0ca2665f299b6cd8aec" [[package]] name = "byteorder" -version = "1.4.3" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" @@ -210,11 +206,12 @@ checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa" [[package]] name = "cosmwasm-crypto" -version = "1.4.1" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6fb22494cf7d23d0c348740e06e5c742070b2991fd41db77bba0bcfbae1a723" +checksum = "d8bb3c77c3b7ce472056968c745eb501c440fbc07be5004eba02782c35bfbbe3" dependencies = [ "digest 0.10.7", + "ecdsa 0.16.8", "ed25519-zebra", "k256 0.13.1", "rand_core 0.6.4", @@ -223,31 +220,31 @@ dependencies = [ [[package]] name = "cosmwasm-derive" -version = "1.4.1" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e199424486ea97d6b211db6387fd72e26b4a439d40cc23140b2d8305728055b" +checksum = "fea73e9162e6efde00018d55ed0061e93a108b5d6ec4548b4f8ce3c706249687" dependencies = [ "syn 1.0.109", ] [[package]] name = "cosmwasm-schema" -version = "1.4.1" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fef683a9c1c4eabd6d31515719d0d2cc66952c4c87f7eb192bfc90384517dc34" +checksum = "0df41ea55f2946b6b43579659eec048cc2f66e8c8e2e3652fc5e5e476f673856" dependencies = [ "cosmwasm-schema-derive", "schemars", - "serde 1.0.188", - "serde_json 1.0.107", + "serde 1.0.192", + "serde_json 1.0.108", "thiserror", ] [[package]] name = "cosmwasm-schema-derive" -version = "1.4.1" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9567025acbb4c0c008178393eb53b3ac3c2e492c25949d3bf415b9cbe80772d8" +checksum = "43609e92ce1b9368aa951b334dd354a2d0dd4d484931a5f83ae10e12a26c8ba9" dependencies = [ "proc-macro2", "quote", @@ -256,11 +253,12 @@ dependencies = [ [[package]] name = "cosmwasm-std" -version = "1.4.1" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d89d680fb60439b7c5947b15f9c84b961b88d1f8a3b20c4bd178a3f87db8bae" +checksum = "04d6864742e3a7662d024b51a94ea81c9af21db6faea2f9a6d2232bb97c6e53e" dependencies = [ - "base64 0.21.4", + "base64 0.21.5", + "bech32", "bnum", "cosmwasm-crypto", "cosmwasm-derive", @@ -268,37 +266,32 @@ dependencies = [ "forward_ref", "hex", "schemars", - "serde 1.0.188", + "serde 1.0.192", "serde-json-wasm 0.5.1", "sha2 0.10.8", + "static_assertions 1.1.0", "thiserror", ] [[package]] name = "cosmwasm-storage" -version = "1.4.1" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54a1c574d30feffe4b8121e61e839c231a5ce21901221d2fb4d5c945968a4f00" +checksum = "bd2b4ae72a03e8f56c85df59d172d51d2d7dc9cec6e2bc811e3fb60c588032a4" dependencies = [ "cosmwasm-std", - "serde 1.0.188", + "serde 1.0.192", ] [[package]] name = "cpufeatures" -version = "0.2.9" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a17b76ff3a4162b0b27f354a0c87015ddad39d35f9c0c36607a3bdd175dde1f1" +checksum = "ce420fe07aecd3e67c5f910618fe65e94158f6dcc0adf44e00d69ce2bdfe0fd0" dependencies = [ "libc", ] -[[package]] -name = "crunchy" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2f4a431c5c9f662e1200b7c7f02c34e91361150e382089a8f2dec3ba680cbda" - [[package]] name = "crunchy" version = "0.2.2" @@ -361,38 +354,16 @@ dependencies = [ "anyhow", "cosmwasm-std", "cw-storage-plus 1.1.0", - "cw-utils 1.0.1", + "cw-utils 1.0.2", "derivative", "itertools", "k256 0.11.6", "prost 0.9.0", "schemars", - "serde 1.0.188", + "serde 1.0.192", "thiserror", ] -[[package]] -name = "cw-storage-plus" -version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c8b264257c4f44c49b7ce09377af63aa040768ecd3fd7bdd2d48a09323a1e90" -dependencies = [ - "cosmwasm-std", - "schemars", - "serde 1.0.188", -] - -[[package]] -name = "cw-storage-plus" -version = "0.15.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc6cf70ef7686e2da9ad7b067c5942cd3e88dd9453f7af42f54557f8af300fb0" -dependencies = [ - "cosmwasm-std", - "schemars", - "serde 1.0.188", -] - [[package]] name = "cw-storage-plus" version = "0.16.0" @@ -401,7 +372,7 @@ checksum = "d9b6f91c0b94481a3e9ef1ceb183c37d00764f8751e39b45fc09f4d9b970d469" dependencies = [ "cosmwasm-std", "schemars", - "serde 1.0.188", + "serde 1.0.192", ] [[package]] @@ -412,64 +383,100 @@ checksum = "3f0e92a069d62067f3472c62e30adedb4cab1754725c0f2a682b3128d2bf3c79" dependencies = [ "cosmwasm-std", "schemars", - "serde 1.0.188", + "serde 1.0.192", ] [[package]] name = "cw-utils" -version = "0.14.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "414b91f3d7a619bb26c835119d7095804596a1382ddc1d184c33c1d2c17f6c5e" +checksum = "d6a84c6c1c0acc3616398eba50783934bd6c964bad6974241eaee3460c8f5b26" dependencies = [ + "cosmwasm-schema", "cosmwasm-std", - "cw2 0.14.0", + "cw2 0.16.0", "schemars", "semver", - "serde 1.0.188", + "serde 1.0.192", "thiserror", ] [[package]] name = "cw-utils" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c80e93d1deccb8588db03945016a292c3c631e6325d349ebb35d2db6f4f946f7" +checksum = "1b9f351a4e4d81ef7c890e44d903f8c0bdcdc00f094fd3a181eaf70c0eec7a3a" dependencies = [ "cosmwasm-schema", "cosmwasm-std", - "cw2 1.1.0", + "cw2 1.1.1", "schemars", "semver", - "serde 1.0.188", + "serde 1.0.192", "thiserror", ] [[package]] name = "cw2" -version = "0.14.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa74c324af8e3506fd8d50759a265bead3f87402e413c840042af5d2808463d6" +checksum = "91398113b806f4d2a8d5f8d05684704a20ffd5968bf87e3473e1973710b884ad" dependencies = [ + "cosmwasm-schema", "cosmwasm-std", - "cw-storage-plus 0.14.0", + "cw-storage-plus 0.16.0", "schemars", - "serde 1.0.188", + "serde 1.0.192", ] [[package]] name = "cw2" -version = "1.1.0" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29ac2dc7a55ad64173ca1e0a46697c31b7a5c51342f55a1e84a724da4eb99908" +checksum = "9431d14f64f49e41c6ef5561ed11a5391c417d0cb16455dea8cdcb9037a8d197" dependencies = [ "cosmwasm-schema", "cosmwasm-std", "cw-storage-plus 1.1.0", "schemars", - "serde 1.0.188", + "serde 1.0.192", "thiserror", ] +[[package]] +name = "darling" +version = "0.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0209d94da627ab5605dcccf08bb18afa5009cfbef48d8a8b7d7bdbc79be25c5e" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "177e3443818124b357d8e76f53be906d60937f0d3a90773a664fa63fa253e621" +dependencies = [ + "fnv", + "ident_case", + "proc-macro2", + "quote", + "syn 2.0.39", +] + +[[package]] +name = "darling_macro" +version = "0.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "836a9bbc7ad63342d6d6e7b815ccab164bc77a2d95d84bc3117a8c0d5c98e2d5" +dependencies = [ + "darling_core", + "quote", + "syn 2.0.39", +] + [[package]] name = "der" version = "0.6.1" @@ -528,18 +535,18 @@ version = "1.0.0" dependencies = [ "cosmwasm-std", "cw-storage-plus 0.16.0", - "cw2 0.14.0", - "injective-cosmwasm 0.1.105", + "cw2 0.16.0", + "injective-cosmwasm", "schemars", - "serde 1.0.188", + "serde 1.0.192", "thiserror", ] [[package]] name = "dyn-clone" -version = "1.0.14" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23d2f3407d9a573d666de4b5bdf10569d73ca9478087346697dcbae6244bfbcd" +checksum = "545b22097d44f8a9581187cdf93de7a71e4722bf51200cfaba810865b49a495d" [[package]] name = "ecdsa" @@ -561,7 +568,7 @@ checksum = "a4b1e0c257a9e9f25f90ff76d7a68360ed497ee519c8e428d1825ef0000799d4" dependencies = [ "der 0.7.8", "digest 0.10.7", - "elliptic-curve 0.13.5", + "elliptic-curve 0.13.6", "rfc6979 0.4.0", "signature 2.1.0", "spki 0.7.2", @@ -577,7 +584,7 @@ dependencies = [ "hashbrown", "hex", "rand_core 0.6.4", - "serde 1.0.188", + "serde 1.0.192", "sha2 0.9.9", "zeroize", ] @@ -610,9 +617,9 @@ dependencies = [ [[package]] name = "elliptic-curve" -version = "0.13.5" +version = "0.13.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "968405c8fdc9b3bf4df0a6638858cc0b52462836ab6b1c87377785dd09cf1c0b" +checksum = "d97ca172ae9dc9f9b779a6e3a65d308f2af74e5b8c921299075bdb4a0370e914" dependencies = [ "base16ct 0.2.0", "crypto-bigint 0.5.3", @@ -627,13 +634,34 @@ dependencies = [ "zeroize", ] +[[package]] +name = "enumset" +version = "1.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "226c0da7462c13fb57e5cc9e0dc8f0635e7d27f276a3a7fd30054647f669007d" +dependencies = [ + "enumset_derive", +] + +[[package]] +name = "enumset_derive" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e08b6c6ab82d70f08844964ba10c7babb716de2ecaeab9be5717918a5177d3af" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 2.0.39", +] + [[package]] name = "ethbloom" version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3932e82d64d347a045208924002930dc105a138995ccdc1479d0f05f0359f17c" dependencies = [ - "crunchy 0.2.2", + "crunchy", "fixed-hash 0.3.2", "impl-rlp", "impl-serde", @@ -646,11 +674,11 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b054df51e53f253837ea422681215b42823c02824bde982699d0dceecf6165a1" dependencies = [ - "crunchy 0.2.2", + "crunchy", "ethbloom", "ethereum-types-serialize", "fixed-hash 0.3.2", - "serde 1.0.188", + "serde 1.0.192", "uint 0.5.0", ] @@ -660,7 +688,7 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1873d77b32bc1891a79dad925f2acbc318ee942b38b9110f9dbc5fbeffcea350" dependencies = [ - "serde 1.0.188", + "serde 1.0.192", ] [[package]] @@ -705,6 +733,12 @@ dependencies = [ "static_assertions 1.1.0", ] +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + [[package]] name = "forward_ref" version = "1.0.0" @@ -736,9 +770,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.10" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427" +checksum = "fe9006bed769170c11f845cf00c7c1e9092aeb3f268e007c3e760ac68008070f" dependencies = [ "cfg-if", "libc", @@ -791,7 +825,7 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" dependencies = [ - "serde 1.0.188", + "serde 1.0.192", ] [[package]] @@ -805,16 +839,16 @@ dependencies = [ [[package]] name = "iana-time-zone" -version = "0.1.57" +version = "0.1.58" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fad5b825842d2b38bd206f3e81d6957625fd7f0a361e345c30e01a0ae2dd613" +checksum = "8326b86b6cff230b97d0d312a6c40a60726df3332e721f72a1b035f451663b20" dependencies = [ "android_system_properties", "core-foundation-sys", "iana-time-zone-haiku", "js-sys", "wasm-bindgen", - "windows", + "windows-core", ] [[package]] @@ -826,6 +860,12 @@ dependencies = [ "cc", ] +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + [[package]] name = "impl-rlp" version = "0.2.1" @@ -841,24 +881,7 @@ version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "58e3cae7e99c7ff5a995da2cf78dd0a5383740eda71d98cf7b1910c301ac69b8" dependencies = [ - "serde 1.0.188", -] - -[[package]] -name = "injective-cosmwasm" -version = "0.1.105" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74b2d3b5cfe251bfe4d7f1aea33ad98886f2a01cefafaac4e14e86ad23822729" -dependencies = [ - "cosmwasm-std", - "cw-storage-plus 0.15.1", - "ethereum-types", - "hex", - "injective-math 0.1.21", - "schemars", - "serde 1.0.188", - "serde_repr", - "subtle-encoding", + "serde 1.0.192", ] [[package]] @@ -867,12 +890,12 @@ version = "0.2.16" dependencies = [ "cosmwasm-schema", "cosmwasm-std", - "cw-storage-plus 0.15.1", + "cw-storage-plus 0.16.0", "ethereum-types", "hex", - "injective-math 0.2.2", + "injective-math", "schemars", - "serde 1.0.188", + "serde 1.0.192", "serde-json-wasm 0.4.1", "serde_repr", "serde_test", @@ -880,21 +903,6 @@ dependencies = [ "tiny-keccak", ] -[[package]] -name = "injective-math" -version = "0.1.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b345e8411da7db74f269194f1e085b77767a652cba9c51f9ec953a9eb80345a8" -dependencies = [ - "bigint", - "cosmwasm-std", - "ethereum-types", - "num 0.4.1", - "schemars", - "serde 1.0.188", - "subtle-encoding", -] - [[package]] name = "injective-math" version = "0.2.2" @@ -904,13 +912,13 @@ dependencies = [ "ethereum-types", "primitive-types", "schemars", - "serde 1.0.188", + "serde 1.0.192", "subtle-encoding", ] [[package]] name = "injective-protobuf" -version = "0.2.0" +version = "0.2.1" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -919,13 +927,13 @@ dependencies = [ "protobuf", "protobuf-codegen-pure", "schemars", - "serde 1.0.188", + "serde 1.0.192", "subtle-encoding", ] [[package]] name = "injective-std" -version = "0.1.3" +version = "0.1.4" dependencies = [ "chrono", "cosmwasm-std", @@ -933,23 +941,23 @@ dependencies = [ "prost 0.11.9", "prost-types", "schemars", - "serde 1.0.188", + "serde 1.0.192", "serde-cw-value", ] [[package]] name = "injective-testing" -version = "0.1.3" +version = "0.1.4" dependencies = [ "anyhow", "base64 0.13.1", "cosmwasm-std", "cw-multi-test", - "injective-cosmwasm 0.2.16", - "injective-math 0.2.2", + "injective-cosmwasm", + "injective-math", "rand 0.4.6", "secp256k1", - "serde 1.0.188", + "serde 1.0.192", "tiny-keccak", ] @@ -970,9 +978,9 @@ checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" [[package]] name = "js-sys" -version = "0.3.64" +version = "0.3.65" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a" +checksum = "54c0c35952f67de54bb584e9fd912b3023117cbafc0a77d8f3dee1fb5f572fe8" dependencies = [ "wasm-bindgen", ] @@ -997,7 +1005,7 @@ checksum = "cadb76004ed8e97623117f3df85b17aaa6626ab0b0831e6573f104df16cd1bcc" dependencies = [ "cfg-if", "ecdsa 0.16.8", - "elliptic-curve 0.13.5", + "elliptic-curve 0.13.6", "once_cell", "sha2 0.10.8", "signature 2.1.0", @@ -1005,9 +1013,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.148" +version = "0.2.150" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cdc71e17332e86d2e1d38c1f99edcb6288ee11b815fb1a4b049eaa2114d369b" +checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c" [[package]] name = "log" @@ -1207,9 +1215,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.67" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d433d9f1a3e8c1263d9456598b16fec66f4acc9a74dacffd35c7bb09b3a1328" +checksum = "134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da" dependencies = [ "unicode-ident", ] @@ -1436,9 +1444,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1f7b0ce13155372a76ee2e1c5ffba1fe61ede73fbea5630d61eee6fac4929c0c" dependencies = [ "dyn-clone", + "enumset", "schemars_derive", - "serde 1.0.188", - "serde_json 1.0.107", + "serde 1.0.192", + "serde_json 1.0.108", ] [[package]] @@ -1498,9 +1507,9 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.19" +version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad977052201c6de01a8ef2aa3378c4bd23217a056337d1d6da40468d267a4fb0" +checksum = "836fa6a3e1e547f9a2c4040802ec865b5d85f4014efe00555d7090a3dcaa1090" [[package]] name = "serde" @@ -1513,9 +1522,9 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.188" +version = "1.0.192" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf9e0fcba69a370eed61bcf2b728575f726b50b55cba78064753d708ddc7549e" +checksum = "bca2a08484b285dcb282d0f67b26cadc0df8b19f8c12502c13d966bf9482f001" dependencies = [ "serde_derive", ] @@ -1526,7 +1535,7 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a75d32da6b8ed758b7d850b6c3c08f1d7df51a4df3cb201296e63e34a78e99d4" dependencies = [ - "serde 1.0.188", + "serde 1.0.192", ] [[package]] @@ -1535,7 +1544,7 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "479b4dbc401ca13ee8ce902851b834893251404c4f3c65370a49e047a6be09a5" dependencies = [ - "serde 1.0.188", + "serde 1.0.192", ] [[package]] @@ -1544,18 +1553,18 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "16a62a1fad1e1828b24acac8f2b468971dade7b8c3c2e672bcadefefb1f8c137" dependencies = [ - "serde 1.0.188", + "serde 1.0.192", ] [[package]] name = "serde_derive" -version = "1.0.188" +version = "1.0.192" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4eca7ac642d82aa35b60049a6eccb4be6be75e599bd2e9adb5f875a737654af2" +checksum = "d6c7207fbec9faa48073f3e3074cbe553af6ea512d7c21ba46e434e70ea9fbc1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.39", ] [[package]] @@ -1581,24 +1590,24 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.107" +version = "1.0.108" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b420ce6e3d8bd882e9b243c6eed35dbc9a6110c9769e74b584e0d68d1f20c65" +checksum = "3d1c7e3eac408d115102c4c24ad393e0821bb3a5df4d506a80f85f7a742a526b" dependencies = [ "itoa", "ryu", - "serde 1.0.188", + "serde 1.0.192", ] [[package]] name = "serde_repr" -version = "0.1.16" +version = "0.1.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8725e1dfadb3a50f7e5ce0b1a540466f6ed3fe7a0fca2ac2b8b831d31316bd00" +checksum = "3081f5ffbb02284dda55132aa26daecedd7372a42417bbbab6f14ab7d6bb9145" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.39", ] [[package]] @@ -1607,7 +1616,7 @@ version = "1.0.176" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a2f49ace1498612d14f7e0b8245519584db8299541dfe31a06374a828d620ab" dependencies = [ - "serde 1.0.188", + "serde 1.0.192", ] [[package]] @@ -1714,9 +1723,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.37" +version = "2.0.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7303ef2c05cd654186cb250d29049a24840ca25d2747c25c0381c8d9e2f582e8" +checksum = "23e78b90f2fcf45d3e842032ce32e3f2d1545ba6636271dcbf24fa306d87be7a" dependencies = [ "proc-macro2", "quote", @@ -1725,22 +1734,22 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.48" +version = "1.0.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d6d7a740b8a666a7e828dd00da9c0dc290dff53154ea77ac109281de90589b7" +checksum = "f9a7210f5c9a7156bb50aa36aed4c95afb51df0df00713949448cf9e97d382d2" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.48" +version = "1.0.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49922ecae66cc8a249b77e68d1d0623c1b2c514f0060c27cdc68bd62a1219d35" +checksum = "266b2e40bc00e5a6c09c3584011e08b06f123c00362c92b975ba9843aaaa14b8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.39", ] [[package]] @@ -1749,7 +1758,7 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d8a021c69bb74a44ccedb824a046447e2c84a01df9e5c20779750acb38e11b2" dependencies = [ - "crunchy 0.2.2", + "crunchy", ] [[package]] @@ -1765,7 +1774,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "082df6964410f6aa929a61ddfafc997e4f32c62c22490e439ac351cec827f436" dependencies = [ "byteorder", - "crunchy 0.2.2", + "crunchy", "heapsize", "rustc-hex", ] @@ -1777,7 +1786,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "76f64bba2c53b04fcab63c01a7d7427eadc821e3bc48c34dc9ba29c501164b52" dependencies = [ "byteorder", - "crunchy 0.2.2", + "crunchy", "hex", "static_assertions 1.1.0", ] @@ -1802,9 +1811,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.87" +version = "0.2.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342" +checksum = "7daec296f25a1bae309c0cd5c29c4b260e510e6d813c286b19eaadf409d40fce" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -1812,24 +1821,24 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.87" +version = "0.2.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd" +checksum = "e397f4664c0e4e428e8313a469aaa58310d302159845980fd23b0f22a847f217" dependencies = [ "bumpalo", "log", "once_cell", "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.39", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-macro" -version = "0.2.87" +version = "0.2.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d" +checksum = "5961017b3b08ad5f3fe39f1e79877f8ee7c23c5e5fd5eb80de95abc41f1f16b2" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -1837,22 +1846,22 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.87" +version = "0.2.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" +checksum = "c5353b8dab669f5e10f5bd76df26a9360c748f054f862ff5f3f8aae0c7fb3907" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.39", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.87" +version = "0.2.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1" +checksum = "0d046c5d029ba91a1ed14da14dca44b68bf2f124cfbaf741c54151fdb3e0750b" [[package]] name = "winapi" @@ -1877,10 +1886,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] -name = "windows" -version = "0.48.0" +name = "windows-core" +version = "0.51.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f" +checksum = "f1f8cf84f35d2db49a46868f947758c7a1138116f7fac3bc844f43ade1292e64" dependencies = [ "windows-targets", ] diff --git a/contracts/atomic-order-example/Cargo.lock b/contracts/atomic-order-example/Cargo.lock deleted file mode 100644 index 91fb09ff..00000000 --- a/contracts/atomic-order-example/Cargo.lock +++ /dev/null @@ -1,738 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 3 - -[[package]] -name = "anyhow" -version = "1.0.57" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08f9b8508dccb7687a1d6c4ce66b2b0ecef467c94667de27d8d7fe1f8d2a9cdc" - -[[package]] -name = "base16ct" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "349a06037c7bf932dd7e7d1f653678b2038b9ad46a74102f1fc7bd7872678cce" - -[[package]] -name = "base64" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" - -[[package]] -name = "base64ct" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dea908e7347a8c64e378c17e30ef880ad73e3b4498346b055c2c00ea342f3179" - -[[package]] -name = "block-buffer" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" -dependencies = [ - "generic-array", -] - -[[package]] -name = "byteorder" -version = "1.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" - -[[package]] -name = "bytes" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8" - -[[package]] -name = "cfg-if" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" - -[[package]] -name = "const-oid" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4c78c047431fee22c1a7bb92e00ad095a02a983affe4d8a72e2a2c62c1b94f3" - -[[package]] -name = "cosmwasm-crypto" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5eb0afef2325df81aadbf9be1233f522ed8f6e91df870c764bc44cca2b1415bd" -dependencies = [ - "digest", - "ed25519-zebra", - "k256", - "rand_core 0.6.3", - "thiserror", -] - -[[package]] -name = "cosmwasm-derive" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b36e527620a2a3e00e46b6e731ab6c9b68d11069c986f7d7be8eba79ef081a4" -dependencies = [ - "syn", -] - -[[package]] -name = "cosmwasm-schema" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "772e80bbad231a47a2068812b723a1ff81dd4a0d56c9391ac748177bea3a61da" -dependencies = [ - "schemars", - "serde_json", -] - -[[package]] -name = "cosmwasm-std" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "875994993c2082a6fcd406937bf0fca21c349e4a624f3810253a14fa83a3a195" -dependencies = [ - "base64", - "cosmwasm-crypto", - "cosmwasm-derive", - "forward_ref", - "schemars", - "serde", - "serde-json-wasm", - "thiserror", - "uint", -] - -[[package]] -name = "cosmwasm-storage" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d18403b07304d15d304dad11040d45bbcaf78d603b4be3fb5e2685c16f9229b5" -dependencies = [ - "cosmwasm-std", - "serde", -] - -[[package]] -name = "cpufeatures" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59a6001667ab124aebae2a495118e11d30984c3a653e99d86d58971708cf5e4b" -dependencies = [ - "libc", -] - -[[package]] -name = "crunchy" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" - -[[package]] -name = "crypto-bigint" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03c6a1d5fa1de37e071642dfa44ec552ca5b299adb128fab16138e24b548fd21" -dependencies = [ - "generic-array", - "rand_core 0.6.3", - "subtle", - "zeroize", -] - -[[package]] -name = "crypto-mac" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1d1a86f49236c215f271d40892d5fc950490551400b02ef360692c29815c714" -dependencies = [ - "generic-array", - "subtle", -] - -[[package]] -name = "curve25519-dalek" -version = "3.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b9fdf9972b2bd6af2d913799d9ebc165ea4d2e65878e329d9c6b372c4491b61" -dependencies = [ - "byteorder", - "digest", - "rand_core 0.5.1", - "subtle", - "zeroize", -] - -[[package]] -name = "cw-multi-test" -version = "0.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbea57e5be4a682268a5eca1a57efece57a54ff216bfd87603d5e864aad40e12" -dependencies = [ - "anyhow", - "cosmwasm-std", - "cosmwasm-storage", - "cw-storage-plus", - "cw-utils", - "derivative", - "itertools", - "prost", - "schemars", - "serde", - "thiserror", -] - -[[package]] -name = "cw-storage-plus" -version = "0.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9336ecef1e19d56cf6e3e932475fc6a3dee35eec5a386e07917a1d1ba6bb0e35" -dependencies = [ - "cosmwasm-std", - "schemars", - "serde", -] - -[[package]] -name = "cw-utils" -version = "0.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "babd2c090f39d07ce5bf2556962305e795daa048ce20a93709eb591476e4a29e" -dependencies = [ - "cosmwasm-std", - "schemars", - "serde", - "thiserror", -] - -[[package]] -name = "cw2" -version = "0.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "993df11574f29574dd443eb0c189484bb91bc0638b6de3e32ab7f9319c92122d" -dependencies = [ - "cosmwasm-std", - "cw-storage-plus", - "schemars", - "serde", -] - -[[package]] -name = "der" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6919815d73839e7ad218de758883aae3a257ba6759ce7a9992501efbb53d705c" -dependencies = [ - "const-oid", -] - -[[package]] -name = "derivative" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "digest" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" -dependencies = [ - "generic-array", -] - -[[package]] -name = "dyn-clone" -version = "1.0.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21e50f3adc76d6a43f5ed73b698a87d0760ca74617f60f7c3b879003536fdd28" - -[[package]] -name = "ecdsa" -version = "0.13.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0d69ae62e0ce582d56380743515fefaf1a8c70cec685d9677636d7e30ae9dc9" -dependencies = [ - "der", - "elliptic-curve", - "rfc6979", - "signature", -] - -[[package]] -name = "ed25519-zebra" -version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "403ef3e961ab98f0ba902771d29f842058578bb1ce7e3c59dad5a6a93e784c69" -dependencies = [ - "curve25519-dalek", - "hex", - "rand_core 0.6.3", - "serde", - "sha2", - "thiserror", - "zeroize", -] - -[[package]] -name = "either" -version = "1.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" - -[[package]] -name = "elliptic-curve" -version = "0.11.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25b477563c2bfed38a3b7a60964c49e058b2510ad3f12ba3483fd8f62c2306d6" -dependencies = [ - "base16ct", - "crypto-bigint", - "der", - "ff", - "generic-array", - "group", - "rand_core 0.6.3", - "sec1", - "subtle", - "zeroize", -] - -[[package]] -name = "ff" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "131655483be284720a17d74ff97592b8e76576dc25563148601df2d7c9080924" -dependencies = [ - "rand_core 0.6.3", - "subtle", -] - -[[package]] -name = "forward_ref" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8cbd1169bd7b4a0a20d92b9af7a7e0422888bd38a6f5ec29c1fd8c1558a272e" - -[[package]] -name = "generic-array" -version = "0.14.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd48d33ec7f05fbfa152300fdad764757cbded343c1aa1cff2fbaf4134851803" -dependencies = [ - "typenum", - "version_check", -] - -[[package]] -name = "getrandom" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" -dependencies = [ - "cfg-if", - "libc", - "wasi 0.9.0+wasi-snapshot-preview1", -] - -[[package]] -name = "getrandom" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9be70c98951c83b8d2f8f60d7065fa6d5146873094452a1008da8c2f1e4205ad" -dependencies = [ - "cfg-if", - "libc", - "wasi 0.10.2+wasi-snapshot-preview1", -] - -[[package]] -name = "group" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc5ac374b108929de78460075f3dc439fa66df9d8fc77e8f12caa5165fcf0c89" -dependencies = [ - "ff", - "rand_core 0.6.3", - "subtle", -] - -[[package]] -name = "hex" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" - -[[package]] -name = "hmac" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a2a2320eb7ec0ebe8da8f744d7812d9fc4cb4d09344ac01898dbcb6a20ae69b" -dependencies = [ - "crypto-mac", - "digest", -] - -[[package]] -name = "itertools" -version = "0.10.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9a9d19fa1e79b6215ff29b9d6880b706147f16e9b1dbb1e4e5947b5b02bc5e3" -dependencies = [ - "either", -] - -[[package]] -name = "itoa" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "112c678d4050afce233f4f2852bb2eb519230b3cf12f33585275537d7e41578d" - -[[package]] -name = "k256" -version = "0.10.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19c3a5e0a0b8450278feda242592512e09f61c72e018b8cd5c859482802daf2d" -dependencies = [ - "cfg-if", - "ecdsa", - "elliptic-curve", - "sec1", - "sha2", -] - -[[package]] -name = "libc" -version = "0.2.126" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836" - -[[package]] -name = "opaque-debug" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" - -[[package]] -name = "pkcs8" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7cabda3fb821068a9a4fab19a683eac3af12edf0f34b94a8be53c4972b8149d0" -dependencies = [ - "der", - "spki", - "zeroize", -] - -[[package]] -name = "proc-macro2" -version = "1.0.39" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c54b25569025b7fc9651de43004ae593a75ad88543b17178aa5e1b9c4f15f56f" -dependencies = [ - "unicode-ident", -] - -[[package]] -name = "prost" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "444879275cb4fd84958b1a1d5420d15e6fcf7c235fe47f053c9c2a80aceb6001" -dependencies = [ - "bytes", - "prost-derive", -] - -[[package]] -name = "prost-derive" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9cc1a3263e07e0bf68e96268f37665207b49560d98739662cdfaae215c720fe" -dependencies = [ - "anyhow", - "itertools", - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "quote" -version = "1.0.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1feb54ed693b93a84e14094943b84b7c4eae204c512b7ccb95ab0c66d278ad1" -dependencies = [ - "proc-macro2", -] - -[[package]] -name = "rand_core" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" -dependencies = [ - "getrandom 0.1.16", -] - -[[package]] -name = "rand_core" -version = "0.6.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7" -dependencies = [ - "getrandom 0.2.6", -] - -[[package]] -name = "rfc6979" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96ef608575f6392792f9ecf7890c00086591d29a83910939d430753f7c050525" -dependencies = [ - "crypto-bigint", - "hmac", - "zeroize", -] - -[[package]] -name = "ryu" -version = "1.0.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3f6f92acf49d1b98f7a81226834412ada05458b7364277387724a237f062695" - -[[package]] -name = "schemars" -version = "0.8.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d21ecb263bf75fc69d5e74b0f2a60b6dd80cfd9fb0eba15c4b9d1104ceffc77" -dependencies = [ - "dyn-clone", - "schemars_derive", - "serde", - "serde_json", -] - -[[package]] -name = "schemars_derive" -version = "0.8.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "219b924f5b39f25b7d7c9203873a2698fdac8db2b396aaea6fa099b699cc40e9" -dependencies = [ - "proc-macro2", - "quote", - "serde_derive_internals", - "syn", -] - -[[package]] -name = "sec1" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08da66b8b0965a5555b6bd6639e68ccba85e1e2506f5fbb089e93f8a04e1a2d1" -dependencies = [ - "der", - "generic-array", - "pkcs8", - "subtle", - "zeroize", -] - -[[package]] -name = "serde" -version = "1.0.137" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61ea8d54c77f8315140a05f4c7237403bf38b72704d031543aa1d16abbf517d1" -dependencies = [ - "serde_derive", -] - -[[package]] -name = "serde-json-wasm" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "479b4dbc401ca13ee8ce902851b834893251404c4f3c65370a49e047a6be09a5" -dependencies = [ - "serde", -] - -[[package]] -name = "serde_derive" -version = "1.0.137" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f26faba0c3959972377d3b2d306ee9f71faee9714294e41bb777f83f88578be" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "serde_derive_internals" -version = "0.26.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85bf8229e7920a9f636479437026331ce11aa132b4dde37d121944a44d6e5f3c" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "serde_json" -version = "1.0.81" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b7ce2b32a1aed03c558dc61a5cd328f15aff2dbc17daad8fb8af04d2100e15c" -dependencies = [ - "itoa", - "ryu", - "serde", -] - -[[package]] -name = "sha2" -version = "0.9.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800" -dependencies = [ - "block-buffer", - "cfg-if", - "cpufeatures", - "digest", - "opaque-debug", -] - -[[package]] -name = "signature" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02658e48d89f2bec991f9a78e69cfa4c316f8d6a6c4ec12fae1aeb263d486788" -dependencies = [ - "digest", - "rand_core 0.6.3", -] - -[[package]] -name = "spki" -version = "0.5.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44d01ac02a6ccf3e07db148d2be087da624fea0221a16152ed01f0496a6b0a27" -dependencies = [ - "base64ct", - "der", -] - -[[package]] -name = "static_assertions" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" - -[[package]] -name = "subtle" -version = "2.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" - -[[package]] -name = "syn" -version = "1.0.95" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbaf6116ab8924f39d52792136fb74fd60a80194cf1b1c6ffa6453eef1c3f942" -dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", -] - -[[package]] -name = "testgen-local" -version = "0.1.0" -dependencies = [ - "cosmwasm-schema", - "cosmwasm-std", - "cosmwasm-storage", - "cw-multi-test", - "cw-storage-plus", - "cw2", - "schemars", - "serde", - "thiserror", -] - -[[package]] -name = "thiserror" -version = "1.0.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd829fe32373d27f76265620b5309d0340cb8550f523c1dda251d6298069069a" -dependencies = [ - "thiserror-impl", -] - -[[package]] -name = "thiserror-impl" -version = "1.0.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0396bc89e626244658bef819e22d0cc459e795a5ebe878e6ec336d1674a8d79a" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "typenum" -version = "1.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987" - -[[package]] -name = "uint" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12f03af7ccf01dd611cc450a0d10dbc9b745770d096473e2faf0ca6e2d66d1e0" -dependencies = [ - "byteorder", - "crunchy", - "hex", - "static_assertions", -] - -[[package]] -name = "unicode-ident" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d22af068fba1eb5edcb4aea19d382b2a3deb4c8f9d475c589b6ada9e0fd493ee" - -[[package]] -name = "version_check" -version = "0.9.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" - -[[package]] -name = "wasi" -version = "0.9.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" - -[[package]] -name = "wasi" -version = "0.10.2+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" - -[[package]] -name = "zeroize" -version = "1.5.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94693807d016b2f2d2e14420eb3bfcca689311ff775dcf113d74ea624b7cdf07" diff --git a/contracts/atomic-order-example/Cargo.toml b/contracts/atomic-order-example/Cargo.toml index 062b3b1e..b8147d9c 100644 --- a/contracts/atomic-order-example/Cargo.toml +++ b/contracts/atomic-order-example/Cargo.toml @@ -29,19 +29,19 @@ optimize = """docker run --rm -v "$(pwd)":/code \ """ [dependencies] -cosmwasm-std = "1.4.1" -cosmwasm-storage = "1.4.1" -cw-storage-plus = "0.14.0" -cw2 = "0.14.0" -cw-utils = "0.14.0" -schemars = "0.8.8" -serde = { version = "1.0.137", default-features = false, features = ["derive"] } -thiserror = { version = "1.0.31" } -injective-cosmwasm = { version = "0.1.104" } -injective-math = { version = "0.1.4" } -protobuf = { version = "2", features = ["with-bytes"] } -injective-protobuf = { path = "../../packages/injective-protobuf", version = "0.2" } +cosmwasm-std = { version = "1.2.7", features = [ "abort", "iterator", "stargate" ] } +cosmwasm-storage = { version = "1.2.7", features = [ "iterator" ] } +cw-storage-plus = { version = "0.16.0" } +cw2 = { version = "0.16.0" } +cw-utils = { version = "0.16.0" } +schemars = { version = "0.8.8", features = [ "enumset" ] } +serde = { version = "1.0.137", default-features = false, features = ["derive"] } +thiserror = { version = "1.0.31" } +injective-cosmwasm = { version = "0.2.16", path= "../../packages/injective-cosmwasm" } +injective-math = { version = "0.2.2", path = "../../packages/injective-math" } +protobuf = { version = "2.28.0", features = ["with-bytes"] } +injective-protobuf = { path = "../../packages/injective-protobuf", version = "0.2.1" } [dev-dependencies] -cosmwasm-schema = "1.4.1" -cw-multi-test = "0.16.2" +cosmwasm-schema = { version = "1.2.7" } +cw-multi-test = { version = "0.16.2" } diff --git a/contracts/atomic-order-example/src/contract.rs b/contracts/atomic-order-example/src/contract.rs index d33840fc..4b8a3754 100644 --- a/contracts/atomic-order-example/src/contract.rs +++ b/contracts/atomic-order-example/src/contract.rs @@ -96,6 +96,7 @@ pub fn try_swap( &config.market_id, subaccount_id, Some(contract.to_owned()), + None, ); let coins = &info.funds[0]; diff --git a/contracts/atomic-order-example/src/helpers.rs b/contracts/atomic-order-example/src/helpers.rs index 30567ade..3f3fe182 100644 --- a/contracts/atomic-order-example/src/helpers.rs +++ b/contracts/atomic-order-example/src/helpers.rs @@ -1,4 +1,4 @@ -use cosmwasm_std::{to_binary, Addr, CosmosMsg, StdResult, SubMsg, WasmMsg}; +use cosmwasm_std::{to_json_binary, Addr, CosmosMsg, StdResult, SubMsg, WasmMsg}; use injective_cosmwasm::InjectiveMsgWrapper; use injective_math::FPDecimal; use schemars::JsonSchema; @@ -17,7 +17,7 @@ impl CwTemplateContract { } pub fn call>(&self, msg: T) -> StdResult { - let msg = to_binary(&msg.into())?; + let msg = to_json_binary(&msg.into())?; Ok(WasmMsg::Execute { contract_addr: self.addr().into(), msg, diff --git a/contracts/atomic-order-example/src/tests.rs b/contracts/atomic-order-example/src/tests.rs index 283398e8..7dc618c7 100644 --- a/contracts/atomic-order-example/src/tests.rs +++ b/contracts/atomic-order-example/src/tests.rs @@ -2,15 +2,15 @@ use std::str::FromStr; use cosmwasm_std::testing::{mock_info, MockApi, MockStorage}; use cosmwasm_std::{ - coins, to_binary, BankMsg, Binary, ContractResult, CosmosMsg, OwnedDeps, QuerierResult, Reply, - SubMsgResponse, SubMsgResult, SystemResult, Uint128, + coins, to_json_binary, BankMsg, Binary, ContractResult, CosmosMsg, OwnedDeps, QuerierResult, + Reply, SubMsgResponse, SubMsgResult, SystemResult, Uint128, }; use injective_cosmwasm::InjectiveMsg::CreateSpotMarketOrder; use injective_cosmwasm::{ inj_mock_deps, inj_mock_env, HandlesMarketIdQuery, InjectiveQueryWrapper, InjectiveRoute, - MarketId, OrderInfo, OrderType, OwnedDepsExt, SpotMarket, SpotMarketResponse, SpotOrder, - SubaccountId, WasmMockQuerier, + MarketId, MarketStatus, OrderInfo, OrderType, OwnedDepsExt, SpotMarket, SpotMarketResponse, + SpotOrder, SubaccountId, WasmMockQuerier, }; use injective_math::FPDecimal; @@ -77,6 +77,7 @@ fn test_swap() { fee_recipient: Some(env.contract.address), price: i32_to_dec(1000), quantity: i32_to_dec(8), + cid: None, }, order_type: OrderType::BuyAtomic, trigger_price: None, @@ -132,12 +133,12 @@ fn create_spot_market_handler() -> impl HandlesMarketIdQuery { taker_fee_rate: FPDecimal::from_str("0.1").unwrap(), relayer_fee_share_rate: FPDecimal::from_str("0.4").unwrap(), market_id, - status: 0, + status: MarketStatus::Active, min_price_tick_size: FPDecimal::from_str("0.000000000000001").unwrap(), min_quantity_tick_size: FPDecimal::from_str("1000000000000000").unwrap(), }), }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } } Temp() diff --git a/contracts/dummy/Cargo.lock b/contracts/dummy/Cargo.lock deleted file mode 100644 index c9737778..00000000 --- a/contracts/dummy/Cargo.lock +++ /dev/null @@ -1,596 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 3 - -[[package]] -name = "base64" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" - -[[package]] -name = "block-buffer" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" -dependencies = [ - "generic-array", -] - -[[package]] -name = "byteorder" -version = "1.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" - -[[package]] -name = "cfg-if" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" - -[[package]] -name = "const-oid" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44c32f031ea41b4291d695026c023b95d59db2d8a2c7640800ed56bc8f510f22" - -[[package]] -name = "cosmwasm-crypto" -version = "1.0.0-beta4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f903ebbabc0d4880dbc76148efb8be8fc29fa4bf294c440c3d70da1c8bcafff7" -dependencies = [ - "digest", - "ed25519-zebra", - "k256", - "rand_core 0.5.1", - "thiserror", -] - -[[package]] -name = "cosmwasm-derive" -version = "1.0.0-beta4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "832bebef577ecb394603de8e2bf0de429b74aa364e17dec18e15ce37e71b0cae" -dependencies = [ - "syn", -] - -[[package]] -name = "cosmwasm-schema" -version = "1.0.0-beta" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22e4b3f6933f94acdd3ddb931af4870c2002e3331a4a8b247a4ef070dd31ccb0" -dependencies = [ - "schemars", - "serde_json", -] - -[[package]] -name = "cosmwasm-std" -version = "1.0.0-beta4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6238c45840cc9de5a39f0f619e3a4f7c38c5d2c6ac9e3e4d72751ee045e6d7da" -dependencies = [ - "base64", - "cosmwasm-crypto", - "cosmwasm-derive", - "schemars", - "serde", - "serde-json-wasm", - "thiserror", - "uint", -] - -[[package]] -name = "cosmwasm-storage" -version = "1.0.0-beta" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "665cf97ad42be46936f6e6739711824a9bf21c440a6c98e185a3404aef0c3b81" -dependencies = [ - "cosmwasm-std", - "serde", -] - -[[package]] -name = "cpufeatures" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66c99696f6c9dd7f35d486b9d04d7e6e202aa3e8c40d553f2fdf5e7e0c6a71ef" -dependencies = [ - "libc", -] - -[[package]] -name = "crunchy" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" - -[[package]] -name = "crypto-bigint" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b32a398eb1ccfbe7e4f452bc749c44d38dd732e9a253f19da224c416f00ee7f4" -dependencies = [ - "generic-array", - "rand_core 0.6.3", - "subtle", - "zeroize", -] - -[[package]] -name = "crypto-mac" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1d1a86f49236c215f271d40892d5fc950490551400b02ef360692c29815c714" -dependencies = [ - "generic-array", - "subtle", -] - -[[package]] -name = "curve25519-dalek" -version = "3.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b9fdf9972b2bd6af2d913799d9ebc165ea4d2e65878e329d9c6b372c4491b61" -dependencies = [ - "byteorder", - "digest", - "rand_core 0.5.1", - "subtle", - "zeroize", -] - -[[package]] -name = "cw-storage-plus" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d7ee1963302b0ac2a9d42fe0faec826209c17452bfd36fbfd9d002a88929261" -dependencies = [ - "cosmwasm-std", - "schemars", - "serde", -] - -[[package]] -name = "cw2" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1d81d7c359d6c1fba3aa83dad7ec6f999e512571380ae62f81257c3db569743" -dependencies = [ - "cosmwasm-std", - "cw-storage-plus", - "schemars", - "serde", -] - -[[package]] -name = "der" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31e21d2d0f22cde6e88694108429775c0219760a07779bf96503b434a03d7412" -dependencies = [ - "const-oid", -] - -[[package]] -name = "digest" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" -dependencies = [ - "generic-array", -] - -[[package]] -name = "dyn-clone" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee2626afccd7561a06cf1367e2950c4718ea04565e20fb5029b6c7d8ad09abcf" - -[[package]] -name = "ecdsa" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "713c32426287891008edb98f8b5c6abb2130aa043c93a818728fcda78606f274" -dependencies = [ - "der", - "elliptic-curve", - "hmac", - "signature", -] - -[[package]] -name = "ed25519-zebra" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a128b76af6dd4b427e34a6fd43dc78dbfe73672ec41ff615a2414c1a0ad0409" -dependencies = [ - "curve25519-dalek", - "hex", - "rand_core 0.5.1", - "serde", - "sha2", - "thiserror", -] - -[[package]] -name = "elliptic-curve" -version = "0.10.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "069397e10739989e400628cbc0556a817a8a64119d7a2315767f4456e1332c23" -dependencies = [ - "crypto-bigint", - "ff", - "generic-array", - "group", - "pkcs8", - "rand_core 0.6.3", - "subtle", - "zeroize", -] - -[[package]] -name = "ff" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63eec06c61e487eecf0f7e6e6372e596a81922c28d33e645d6983ca6493a1af0" -dependencies = [ - "rand_core 0.6.3", - "subtle", -] - -[[package]] -name = "generic-array" -version = "0.14.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "501466ecc8a30d1d3b7fc9229b122b2ce8ed6e9d9223f1138d4babb253e51817" -dependencies = [ - "typenum", - "version_check", -] - -[[package]] -name = "getrandom" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" -dependencies = [ - "cfg-if", - "libc", - "wasi 0.9.0+wasi-snapshot-preview1", -] - -[[package]] -name = "getrandom" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753" -dependencies = [ - "cfg-if", - "libc", - "wasi 0.10.2+wasi-snapshot-preview1", -] - -[[package]] -name = "group" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c363a5301b8f153d80747126a04b3c82073b9fe3130571a9d170cacdeaf7912" -dependencies = [ - "ff", - "rand_core 0.6.3", - "subtle", -] - -[[package]] -name = "hex" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" - -[[package]] -name = "hmac" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a2a2320eb7ec0ebe8da8f744d7812d9fc4cb4d09344ac01898dbcb6a20ae69b" -dependencies = [ - "crypto-mac", - "digest", -] - -[[package]] -name = "itoa" -version = "0.4.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd25036021b0de88a0aff6b850051563c6516d0bf53f8638938edbb9de732736" - -[[package]] -name = "k256" -version = "0.9.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "903ae2481bcdfdb7b68e0a9baa4b7c9aff600b9ae2e8e5bb5833b8c91ab851ea" -dependencies = [ - "cfg-if", - "ecdsa", - "elliptic-curve", - "sha2", -] - -[[package]] -name = "libc" -version = "0.2.99" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7f823d141fe0a24df1e23b4af4e3c7ba9e5966ec514ea068c93024aa7deb765" - -[[package]] -name = "opaque-debug" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" - -[[package]] -name = "pkcs8" -version = "0.7.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbee84ed13e44dd82689fa18348a49934fa79cc774a344c42fc9b301c71b140a" -dependencies = [ - "der", - "spki", -] - -[[package]] -name = "proc-macro2" -version = "1.0.28" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c7ed8b8c7b886ea3ed7dde405212185f423ab44682667c8c6dd14aa1d9f6612" -dependencies = [ - "unicode-xid", -] - -[[package]] -name = "quote" -version = "1.0.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7" -dependencies = [ - "proc-macro2", -] - -[[package]] -name = "rand_core" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" -dependencies = [ - "getrandom 0.1.16", -] - -[[package]] -name = "rand_core" -version = "0.6.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7" -dependencies = [ - "getrandom 0.2.3", -] - -[[package]] -name = "ryu" -version = "1.0.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e" - -[[package]] -name = "schemars" -version = "0.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc6ab463ae35acccb5cba66c0084c985257b797d288b6050cc2f6ac1b266cb78" -dependencies = [ - "dyn-clone", - "schemars_derive", - "serde", - "serde_json", -] - -[[package]] -name = "schemars_derive" -version = "0.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "902fdfbcf871ae8f653bddf4b2c05905ddaabc08f69d32a915787e3be0d31356" -dependencies = [ - "proc-macro2", - "quote", - "serde_derive_internals", - "syn", -] - -[[package]] -name = "serde" -version = "1.0.127" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f03b9878abf6d14e6779d3f24f07b2cfa90352cfec4acc5aab8f1ac7f146fae8" -dependencies = [ - "serde_derive", -] - -[[package]] -name = "serde-json-wasm" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "042ac496d97e5885149d34139bad1d617192770d7eb8f1866da2317ff4501853" -dependencies = [ - "serde", -] - -[[package]] -name = "serde_derive" -version = "1.0.127" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a024926d3432516606328597e0f224a51355a493b49fdd67e9209187cbe55ecc" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "serde_derive_internals" -version = "0.25.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1dbab34ca63057a1f15280bdf3c39f2b1eb1b54c17e98360e511637aef7418c6" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "serde_json" -version = "1.0.66" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "336b10da19a12ad094b59d870ebde26a45402e5b470add4b5fd03c5048a32127" -dependencies = [ - "itoa", - "ryu", - "serde", -] - -[[package]] -name = "sha2" -version = "0.9.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b362ae5752fd2137731f9fa25fd4d9058af34666ca1966fb969119cc35719f12" -dependencies = [ - "block-buffer", - "cfg-if", - "cpufeatures", - "digest", - "opaque-debug", -] - -[[package]] -name = "signature" -version = "1.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c19772be3c4dd2ceaacf03cb41d5885f2a02c4d8804884918e3a258480803335" -dependencies = [ - "digest", - "rand_core 0.6.3", -] - -[[package]] -name = "spki" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "987637c5ae6b3121aba9d513f869bd2bff11c4cc086c22473befd6649c0bd521" -dependencies = [ - "der", -] - -[[package]] -name = "static_assertions" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" - -[[package]] -name = "subtle" -version = "2.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" - -[[package]] -name = "syn" -version = "1.0.74" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1873d832550d4588c3dbc20f01361ab00bfe741048f71e3fecf145a7cc18b29c" -dependencies = [ - "proc-macro2", - "quote", - "unicode-xid", -] - -[[package]] -name = "testgen-local" -version = "0.1.0" -dependencies = [ - "cosmwasm-schema", - "cosmwasm-std", - "cosmwasm-storage", - "cw-storage-plus", - "cw2", - "schemars", - "serde", - "thiserror", -] - -[[package]] -name = "thiserror" -version = "1.0.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93119e4feac1cbe6c798c34d3a53ea0026b0b1de6a120deef895137c0529bfe2" -dependencies = [ - "thiserror-impl", -] - -[[package]] -name = "thiserror-impl" -version = "1.0.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "060d69a0afe7796bf42e9e2ff91f5ee691fb15c53d38b4b62a9a53eb23164745" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "typenum" -version = "1.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "879f6906492a7cd215bfa4cf595b600146ccfac0c79bcbd1f3000162af5e8b06" - -[[package]] -name = "uint" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6470ab50f482bde894a037a57064480a246dbfdd5960bd65a44824693f08da5f" -dependencies = [ - "byteorder", - "crunchy", - "hex", - "static_assertions", -] - -[[package]] -name = "unicode-xid" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" - -[[package]] -name = "version_check" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe" - -[[package]] -name = "wasi" -version = "0.9.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" - -[[package]] -name = "wasi" -version = "0.10.2+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" - -[[package]] -name = "zeroize" -version = "1.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "377db0846015f7ae377174787dd452e1c5f5a9050bc6f954911d01f116daa0cd" diff --git a/contracts/dummy/Cargo.toml b/contracts/dummy/Cargo.toml index bfd324f7..debfeba8 100644 --- a/contracts/dummy/Cargo.toml +++ b/contracts/dummy/Cargo.toml @@ -29,10 +29,10 @@ optimize = """docker run --rm -v "$(pwd)":/code \ """ [dependencies] -cosmwasm-std = { version = "1.4.1" } -cw-storage-plus = "0.16.0" -cw2 = "0.14.0" +cosmwasm-std = { version = "1.2.7", features = [ "abort", "iterator", "stargate" ] } +cw-storage-plus = { version = "0.16.0" } +cw2 = { version = "0.16.0" } serde = { version = "1.0.136", default-features = false, features = ["derive"] } schemars = "0.8.8" thiserror = { version = "1.0.30" } -injective-cosmwasm = { version = "0.1.104" } +injective-cosmwasm = { version = "0.2.16", path = "../../packages/injective-cosmwasm" } diff --git a/contracts/dummy/src/contract.rs b/contracts/dummy/src/contract.rs index 2776b61e..b1c2378f 100644 --- a/contracts/dummy/src/contract.rs +++ b/contracts/dummy/src/contract.rs @@ -1,7 +1,7 @@ #[cfg(not(feature = "library"))] use cosmwasm_std::entry_point; use cosmwasm_std::{ - to_binary, Binary, Deps, DepsMut, Env, MessageInfo, Response, StdError, StdResult, + to_json_binary, Binary, Deps, DepsMut, Env, MessageInfo, Response, StdError, StdResult, }; use cw2::set_contract_version; use cw_storage_plus::Item; @@ -44,7 +44,7 @@ pub fn execute( match msg { ExecuteMsg::Ping { .. } => { let mut response = Response::new(); - response.data = Some(to_binary("pong")?); + response.data = Some(to_json_binary("pong")?); Ok(response) } ExecuteMsg::Error { .. } => Err(ContractError::Std(StdError::generic_err("oh no!"))), @@ -71,15 +71,15 @@ pub fn sudo(deps: DepsMut, _env: Env, msg: SudoMsg) -> Result StdResult { match msg { - QueryMsg::Ping { .. } => to_binary("pong"), + QueryMsg::Ping { .. } => to_json_binary("pong"), QueryMsg::Error { .. } => Err(StdError::generic_err("oh no!")), QueryMsg::Runs {} => { let runs_count = COUNTER.load(deps.storage)?; - to_binary(&format!("{runs_count}")) + to_json_binary(&format!("{runs_count}")) } QueryMsg::Active {} => { let is_active = ACTIVE.load(deps.storage)?; - to_binary(&format!("{is_active}")) + to_json_binary(&format!("{is_active}")) } } } diff --git a/packages/injective-cosmwasm/Cargo.toml b/packages/injective-cosmwasm/Cargo.toml index 7b3a947b..68271625 100644 --- a/packages/injective-cosmwasm/Cargo.toml +++ b/packages/injective-cosmwasm/Cargo.toml @@ -15,11 +15,11 @@ version = "0.2.16" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -cosmwasm-std = { version = "1.4.1" } -cw-storage-plus = { version = "0.15.0" } -ethereum-types = "0.5.2" +cosmwasm-std = { version = "1.2.7", features = [ "abort", "iterator", "stargate" ] } +cw-storage-plus = { version = "0.16.0" } +ethereum-types = { version = "0.5.2" } hex = { version = "0.4.3", features = [ "serde" ] } -injective-math = { path = "../injective-math", version = "0.2.0" } +injective-math = { path = "../injective-math", version = "0.2.2" } schemars = "0.8.8" serde = { version = "1.0.136", default-features = false, features = [ "derive" ] } serde_repr = "0.1" @@ -27,6 +27,6 @@ subtle-encoding = { version = "0.5.1", features = [ "bech32-preview" ] } tiny-keccak = "1.2.1" [dev-dependencies] -cosmwasm-schema = { version = "1.4.1" } +cosmwasm-schema = { version = "1.2.7" } serde-json-wasm = { version = "0.4.1" } serde_test = { version = "1.0.166" } diff --git a/packages/injective-cosmwasm/src/exchange_mock_querier.rs b/packages/injective-cosmwasm/src/exchange_mock_querier.rs index 1020ab24..42081c72 100644 --- a/packages/injective-cosmwasm/src/exchange_mock_querier.rs +++ b/packages/injective-cosmwasm/src/exchange_mock_querier.rs @@ -3,7 +3,7 @@ use std::str::FromStr; use cosmwasm_std::testing::{MockApi, MockStorage}; use cosmwasm_std::{ - from_slice, to_binary, Addr, AllBalanceResponse, BalanceResponse, BankQuery, Binary, Coin, ContractResult, OwnedDeps, Querier, QuerierResult, + from_json, to_json_binary, Addr, AllBalanceResponse, BalanceResponse, BankQuery, Binary, Coin, ContractResult, OwnedDeps, Querier, QuerierResult, QueryRequest, SystemError, SystemResult, Uint128, WasmQuery, }; @@ -49,7 +49,7 @@ fn default_subaccount_deposit_response_handler() -> QuerierResult { total_balance: FPDecimal::from(10_000_000_000u128), }, }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_spot_market_response_handler(market_id: MarketId) -> QuerierResult { @@ -67,22 +67,22 @@ fn default_spot_market_response_handler(market_id: MarketId) -> QuerierResult { min_quantity_tick_size: FPDecimal::from_str("1000000000000000.0").unwrap(), }), }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_trader_spot_orders_response_handler() -> QuerierResult { let response = TraderSpotOrdersResponse { orders: None }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_trader_spot_orders_to_cancel_up_to_amount_response_handler() -> QuerierResult { let response = TraderSpotOrdersResponse { orders: None }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_trader_derivative_orders_to_cancel_up_to_amount_response_handler() -> QuerierResult { let response = TraderDerivativeOrdersResponse { orders: None }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_derivative_market_response_handler(market_id: MarketId) -> QuerierResult { @@ -109,7 +109,7 @@ fn default_derivative_market_response_handler(market_id: MarketId) -> QuerierRes mark_price: FPDecimal::ONE, }), }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_subaccount_positions_response_handler() -> QuerierResult { @@ -118,37 +118,37 @@ fn default_subaccount_positions_response_handler() -> QuerierResult { fn default_subaccount_position_in_market_response_handler() -> QuerierResult { let response = SubaccountPositionInMarketResponse { state: None }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_subaccount_effective_position_in_market_response_handler() -> QuerierResult { let response = SubaccountEffectivePositionInMarketResponse { state: None }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_trader_derivative_orders_response_handler() -> QuerierResult { let response = TraderDerivativeOrdersResponse { orders: None }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_trader_transient_spot_orders_response_handler() -> QuerierResult { let response = TraderSpotOrdersResponse { orders: None }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_trader_transient_derivative_orders_response_handler() -> QuerierResult { let response = TraderDerivativeOrdersResponse { orders: None }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_perpetual_market_info_response_handler() -> QuerierResult { let response = PerpetualMarketInfoResponse { info: None }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_perpetual_market_funding_response_handler() -> QuerierResult { let response = PerpetualMarketFundingResponse { state: None }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_market_volatility_response_handler() -> QuerierResult { @@ -157,7 +157,7 @@ fn default_market_volatility_response_handler() -> QuerierResult { history_metadata: None, raw_history: None, }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_spot_market_mid_price_and_tob_response_handler() -> QuerierResult { @@ -166,7 +166,7 @@ fn default_spot_market_mid_price_and_tob_response_handler() -> QuerierResult { best_buy_price: None, best_sell_price: None, }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_derivative_market_mid_price_and_tob_response_handler() -> QuerierResult { @@ -175,7 +175,7 @@ fn default_derivative_market_mid_price_and_tob_response_handler() -> QuerierResu best_buy_price: None, best_sell_price: None, }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_aggregate_market_volume_handler() -> QuerierResult { @@ -185,7 +185,7 @@ fn default_aggregate_market_volume_handler() -> QuerierResult { taker_volume: FPDecimal::from(100u128), }, }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_aggregate_account_volume_handler() -> QuerierResult { @@ -207,17 +207,17 @@ fn default_aggregate_account_volume_handler() -> QuerierResult { }, ], }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_denom_decimal_handler() -> QuerierResult { let response = QueryDenomDecimalResponse { decimals: 6 }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_denom_decimals_handler() -> QuerierResult { let response = QueryDenomDecimalsResponse { denom_decimals: vec![] }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_oracle_volatility_response_handler() -> QuerierResult { @@ -226,7 +226,7 @@ fn default_oracle_volatility_response_handler() -> QuerierResult { history_metadata: None, raw_history: None, }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_pyth_price_response_handler() -> QuerierResult { @@ -244,40 +244,40 @@ fn default_pyth_price_response_handler() -> QuerierResult { }, }), }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_token_factory_denom_total_supply_handler() -> QuerierResult { let response = TokenFactoryDenomSupplyResponse { total_supply: Uint128::from(1000u128), }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_token_factory_denom_creation_fee_handler() -> QuerierResult { let response = TokenFactoryCreateDenomFeeResponse { fee: vec![Coin::new(10, "inj")], }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_contract_registration_info_response_handler() -> QuerierResult { let response = QueryContractRegistrationInfoResponse { contract: None }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_balance_bank_query_handler(denom: impl Into) -> QuerierResult { let response = BalanceResponse { amount: Coin::new(1000000000000000, denom), }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_all_balances_bank_query_handler() -> QuerierResult { let response = AllBalanceResponse { amount: vec![Coin::new(1000000000000000, "inj")], }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_exchange_params_response_handler() -> QuerierResult { @@ -311,7 +311,7 @@ fn default_exchange_params_response_handler() -> QuerierResult { is_instant_derivative_market_launch_enabled: Some(true), }), }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_spot_market_orderbook_response_handler() -> QuerierResult { @@ -322,7 +322,7 @@ fn default_spot_market_orderbook_response_handler() -> QuerierResult { PriceLevel::new(12u128.into(), 10u128.into()), ], }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_derivative_market_orderbook_response_handler() -> QuerierResult { @@ -333,14 +333,14 @@ fn default_derivative_market_orderbook_response_handler() -> QuerierResult { PriceLevel::new(12u128.into(), 10u128.into()), ], }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } fn default_market_atomic_execution_fee_multiplier_response_handler() -> QuerierResult { let response = QueryMarketAtomicExecutionFeeMultiplierResponse { multiplier: FPDecimal::from_str("2.0").unwrap(), }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } pub trait HandlesSmartQuery { @@ -503,7 +503,7 @@ pub struct WasmMockQuerier { impl Querier for WasmMockQuerier { fn raw_query(&self, bin_request: &[u8]) -> QuerierResult { - let request: QueryRequest = match from_slice(bin_request) { + let request: QueryRequest = match from_json(bin_request) { Ok(v) => v, Err(e) => { return SystemResult::Err(SystemError::InvalidRequest { @@ -781,7 +781,8 @@ impl TestDeposit { pub mod handlers { use cosmwasm_std::{ - to_binary, AllBalanceResponse, BalanceResponse, Binary, Coin, ContractResult, QuerierResult, StdResult, SystemError, SystemResult, Uint128, + to_json_binary, AllBalanceResponse, BalanceResponse, Binary, Coin, ContractResult, QuerierResult, StdResult, SystemError, SystemResult, + Uint128, }; use std::collections::HashMap; @@ -825,7 +826,7 @@ pub mod handlers { total_balance: matching_coins.first().unwrap().amount, }, }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } } Some(Box::new(Temp { coins })) @@ -850,7 +851,7 @@ pub mod handlers { let response = SubaccountDepositResponse { deposits: matching_deposits.first().unwrap().deposit.to_owned(), }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } } Some(Box::new(Temp { deposits })) @@ -875,7 +876,7 @@ pub mod handlers { let response = SpotMarketResponse { market: self.market.to_owned(), }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } } Some(Box::new(Temp { market })) @@ -896,7 +897,7 @@ pub mod handlers { buys_price_level: if order_side != OrderSide::Sell { price_levels.clone() } else { vec![] }, sells_price_level: if order_side != OrderSide::Buy { price_levels } else { vec![] }, }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } } Some(Box::new(Temp { orderbooks })) @@ -912,7 +913,7 @@ pub mod handlers { let response = SpotMarketResponse { market: self.markets.get(&market_id).cloned(), }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } } @@ -945,7 +946,7 @@ pub mod handlers { let response = TraderSpotOrdersResponse { orders: self.orders.to_owned(), }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } } Some(Box::new(Temp { orders, assertion })) @@ -976,7 +977,7 @@ pub mod handlers { let response = TraderDerivativeOrdersResponse { orders: self.orders.to_owned(), }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } } Some(Box::new(Temp { orders, assertion })) @@ -1001,7 +1002,7 @@ pub mod handlers { mark_price: self.mark_price.to_owned(), }), }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } } Some(Box::new(Temp { market, info, mark_price })) @@ -1016,7 +1017,7 @@ pub mod handlers { let response = TraderSpotOrdersResponse { orders: self.orders.to_owned(), }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } } Some(Box::new(Temp { orders })) @@ -1033,7 +1034,7 @@ pub mod handlers { let response = TraderDerivativeOrdersResponse { orders: self.orders.to_owned(), }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } } Some(Box::new(Temp { orders })) @@ -1051,7 +1052,7 @@ pub mod handlers { let response = SubaccountEffectivePositionInMarketResponse { state: self.position.to_owned(), }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } } @@ -1068,7 +1069,7 @@ pub mod handlers { let response = SubaccountPositionInMarketResponse { state: self.position.to_owned(), }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } } @@ -1092,7 +1093,7 @@ pub mod handlers { best_buy_price: self.best_buy_price.to_owned(), best_sell_price: self.best_sell_price.to_owned(), }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } } Some(Box::new(Temp { @@ -1124,7 +1125,7 @@ pub mod handlers { history_metadata: self.history_metadata.to_owned(), raw_history: self.raw_history.to_owned(), }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } } Some(Box::new(Temp { @@ -1165,7 +1166,7 @@ pub mod handlers { quote_timestamp: self.quote_timestamp.to_owned(), }), }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } } Some(Box::new(Temp { @@ -1186,7 +1187,7 @@ pub mod handlers { impl HandlesDenomSupplyQuery for Temp { fn handle(&self, _denom: String) -> QuerierResult { let response = TokenFactoryDenomSupplyResponse { total_supply: self.supply }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } } Some(Box::new(Temp { supply })) @@ -1199,7 +1200,7 @@ pub mod handlers { impl HandlesFeeQuery for Temp { fn handle(&self) -> QuerierResult { let response = TokenFactoryCreateDenomFeeResponse { fee: self.fee.to_owned() }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } } Some(Box::new(Temp { fee })) @@ -1214,7 +1215,7 @@ pub mod handlers { let response = QueryContractRegistrationInfoResponse { contract: self.contract.to_owned(), }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } } Some(Box::new(Temp { contract })) @@ -1231,7 +1232,7 @@ pub mod handlers { let balance = balances.iter().find(|b| -> bool { b.denom == denom }).unwrap_or(&empty); let res = BalanceResponse { amount: balance.to_owned() }; - SystemResult::Ok(ContractResult::from(to_binary(&res))) + SystemResult::Ok(ContractResult::from(to_json_binary(&res))) } } Some(Box::new(Temp { balances })) @@ -1247,7 +1248,7 @@ pub mod handlers { amount: self.balances.to_owned(), }; - SystemResult::Ok(ContractResult::from(to_binary(&res))) + SystemResult::Ok(ContractResult::from(to_json_binary(&res))) } } Some(Box::new(Temp { balances })) @@ -1260,7 +1261,7 @@ pub mod handlers { impl HandlesMarketIdQuery for Temp { fn handle(&self, _market_id: MarketId) -> QuerierResult { let response = QueryMarketAtomicExecutionFeeMultiplierResponse { multiplier: self.multiplier }; - SystemResult::Ok(ContractResult::from(to_binary(&response))) + SystemResult::Ok(ContractResult::from(to_json_binary(&response))) } } Some(Box::new(Temp { multiplier })) diff --git a/packages/injective-math/Cargo.toml b/packages/injective-math/Cargo.toml index 4601783e..73bc1863 100644 --- a/packages/injective-math/Cargo.toml +++ b/packages/injective-math/Cargo.toml @@ -16,11 +16,11 @@ backtraces = [ "cosmwasm-std/backtraces" ] [dependencies] primitive-types = {version= "0.12.2" ,default-features = false} -cosmwasm-std = { version = "1.4.1" } -ethereum-types = "0.5.2" +cosmwasm-std = { version = "1.2.7", features = [ "abort", "iterator", "stargate" ] } +ethereum-types = { version = "0.5.2" } schemars = "0.8.8" serde = { version = "1.0.136", default-features = false, features = [ "derive" ] } subtle-encoding = { version = "0.5.1", features = [ "bech32-preview" ] } [dev-dependencies] -cosmwasm-schema = { version = "1.4.1" } +cosmwasm-schema = { version = "1.2.7" } diff --git a/packages/injective-protobuf/Cargo.toml b/packages/injective-protobuf/Cargo.toml index 5c8381d0..b69f2bfb 100644 --- a/packages/injective-protobuf/Cargo.toml +++ b/packages/injective-protobuf/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "injective-protobuf" -version = "0.2.0" +version = "0.2.1" authors = ["Mauro Lacy "] edition = "2018" description = "Protobug parsing for Injective Protocol" @@ -18,7 +18,7 @@ protobuf-codegen-pure = "2" backtraces = ["cosmwasm-std/backtraces"] [dependencies] -cosmwasm-std = { version = "1.4.1" } +cosmwasm-std = { version = "1.2.7", features = [ "abort", "iterator", "stargate" ] } schemars = "0.8.8" serde = { version = "1.0.136", default-features = false, features = ["derive"] } ethereum-types = "0.5.2" @@ -27,4 +27,4 @@ num = "0.4.0" protobuf = { version = "2", features = ["with-bytes"] } [dev-dependencies] -cosmwasm-schema = { version = "1.4.1" } +cosmwasm-schema = { version = "1.2.7" } diff --git a/packages/injective-std/Cargo.toml b/packages/injective-std/Cargo.toml index e1b85a8e..122a9ecc 100644 --- a/packages/injective-std/Cargo.toml +++ b/packages/injective-std/Cargo.toml @@ -4,17 +4,17 @@ edition = "2021" license = "MIT OR Apache-2.0" name = "injective-std" repository = "https://github.com/InjectiveLabs/cw-injective/tree/master/packages/injective-std" -version = "0.1.3" +version = "0.1.4" readme = "README.md" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] chrono = {version = "0.4.24"} -cosmwasm-std = {version = "1.1.2", features = ["stargate"]} +cosmwasm-std = { version = "1.2.7", features = [ "abort", "iterator", "stargate" ] } osmosis-std-derive = {version = "0.15.2"} -prost = "0.11.0" -prost-types = {version = "0.11.1", default-features = false} +prost = { version = "0.11.9" } +prost-types = {version = "0.11.9", default-features = false} schemars = "0.8.8" serde = {version = "1.0", default-features = false, features = ["derive"]} -serde-cw-value = "0.7.0" +serde-cw-value = { version = "0.7.0" } diff --git a/packages/injective-testing/Cargo.toml b/packages/injective-testing/Cargo.toml index d9f08e17..e6582529 100644 --- a/packages/injective-testing/Cargo.toml +++ b/packages/injective-testing/Cargo.toml @@ -5,16 +5,16 @@ edition = "2021" license = "Apache-2.0" name = "injective-testing" repository = "https://github.com/InjectiveLabs/cw-injective/tree/master/packages/injective-testing" -version = "0.1.3" +version = "0.1.4" [dependencies] -anyhow = "1.0.66" -base64 = "0.13.1" -cosmwasm-std = { version = "1.4.1", features = [ "abort", "iterator" ] } -cw-multi-test = "0.16.2" -injective-cosmwasm = { version = "0.2.15", path = "../injective-cosmwasm" } -injective-math = { version = "0.2.0", path = "../injective-math" } -rand = "0.4.6" -secp256k1 = "0.6.2" -serde = { version = "1.0.103", default-features = false, features = [ "derive" ] } -tiny-keccak = "1.2.1" +anyhow = { version = "1.0.66" } +base64 = { version = "0.13.1" } +cosmwasm-std = { version = "1.2.7", features = [ "abort", "iterator", "stargate" ] } +cw-multi-test = { version = "0.16.2" } +injective-cosmwasm = { version = "0.2.16", path = "../injective-cosmwasm" } +injective-math = { version = "0.2.2", path = "../injective-math" } +rand = { version = "0.4.6" } +secp256k1 = { version = "0.6.2" } +serde = { version = "1.0.137", default-features = false, features = ["derive"] } +tiny-keccak = { version = "1.2.1" } diff --git a/packages/injective-testing/src/chain_mock.rs b/packages/injective-testing/src/chain_mock.rs index 14f8e80e..c66bfc9d 100644 --- a/packages/injective-testing/src/chain_mock.rs +++ b/packages/injective-testing/src/chain_mock.rs @@ -1,6 +1,6 @@ use anyhow::{bail, Result as AnyResult}; use cosmwasm_std::{testing::MockApi, Addr, Api, Binary, BlockInfo, Coin, CustomQuery, Empty, MemoryStorage, Querier, Storage}; -use cosmwasm_std::{to_binary, StdError}; +use cosmwasm_std::{to_json_binary, StdError}; use cw_multi_test::{AddressGenerator, App}; use cw_multi_test::{AppResponse, BankKeeper, BasicAppBuilder, CosmosRouter, DistributionKeeper, Module, Router, StakeKeeper, WasmKeeper}; use injective_cosmwasm::{InjectiveMsgWrapper, InjectiveQueryWrapper}; @@ -84,7 +84,7 @@ pub struct ExecuteResponseContainer { impl ExecuteResponseContainer { pub fn with_ok_response(payload: &T) -> Self { ExecuteResponseContainer { - response: Some(Ok(Some(to_binary(payload).unwrap()))), + response: Some(Ok(Some(to_json_binary(payload).unwrap()))), } } @@ -108,7 +108,7 @@ pub struct QueryResponseContainer { impl QueryResponseContainer { pub fn with_ok_response(payload: &T) -> Self { QueryResponseContainer { - response: Some(Ok(to_binary(payload).unwrap())), + response: Some(Ok(to_json_binary(payload).unwrap())), } }