diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 42587da0..6516d477 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,7 +35,7 @@ jobs: uses: provenance-io/provenance-testing-action@v1.2.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} - provenance_version: "v1.17.1" + provenance_version: "v1.18.0" smart_contract_action_version: "v1.2.0" test_script: "./scripts/gh-action-test/tutorial_test.sh" @@ -56,7 +56,7 @@ jobs: uses: provenance-io/provenance-testing-action@v1.2.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} - provenance_version: "v1.17.1" + provenance_version: "v1.18.0" smart_contract_action_version: "v1.2.0" test_script: "./scripts/gh-action-test/attrs_test.sh" @@ -77,7 +77,7 @@ jobs: uses: provenance-io/provenance-testing-action@v1.2.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} - provenance_version: "v1.17.1" + provenance_version: "v1.18.0" smart_contract_action_version: "v1.2.0" test_script: "./scripts/gh-action-test/marker_test.sh" @@ -98,7 +98,7 @@ jobs: uses: provenance-io/provenance-testing-action@v1.2.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} - provenance_version: "v1.17.1" + provenance_version: "v1.18.0" smart_contract_action_version: "v1.2.0" test_script: "./scripts/gh-action-test/msgfees_test.sh" @@ -119,31 +119,10 @@ jobs: uses: provenance-io/provenance-testing-action@v1.2.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} - provenance_version: "v1.17.1" + provenance_version: "v1.18.0" smart_contract_action_version: "v1.2.0" test_script: "./scripts/gh-action-test/name_test.sh" -# test_nft_smart_contract: -# runs-on: ubuntu-latest -# name: Test NFT Smart Contract -# steps: -# - name: Checkout -# uses: actions/checkout@v2 -# - name: Add wasm32 target -# run: | -# rustup target add wasm32-unknown-unknown -# - name: Build wasm binary -# run: | -# cd ./contracts/nft -# make all -# - name: Smart Contract Test setup -# uses: provenance-io/provenance-testing-action@v1.2.0 -# with: -# github_token: ${{ secrets.GITHUB_TOKEN }} -# provenance_version: "v1.17.1" -# smart_contract_action_version: "v1.2.0" -# test_script: "./scripts/gh-action-test/nft_test.sh" - test_scope_smart_contract: runs-on: ubuntu-latest name: Test Scope Smart Contract @@ -161,7 +140,7 @@ jobs: uses: provenance-io/provenance-testing-action@v1.2.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} - provenance_version: "v1.17.1" + provenance_version: "v1.18.0" smart_contract_action_version: "v1.2.0" test_script: "./scripts/gh-action-test/scope_test.sh" @@ -182,6 +161,6 @@ jobs: uses: provenance-io/provenance-testing-action@v1.2.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} - provenance_version: "v1.17.1" + provenance_version: "v1.18.0" smart_contract_action_version: "v1.2.0" test_script: "./scripts/gh-action-test/trigger_test.sh" diff --git a/CHANGELOG.md b/CHANGELOG.md index aa030bb4..40ae8272 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ * Create security contract to link assets with a security type ([#138](https://github.com/provenance-io/provwasm/issues/138)) * Bump to Provenance 1.18.0-rc2 ([#143](https://github.com/provenance-io/provwasm/issues/143)) +* remove nft, security, and template contracts ([#145](https://github.com/provenance-io/provwasm/pull/145)) +* Bump to Provenance 1.18.0 and add new exchange types ([#146](https://github.com/provenance-io/provwasm/issues/146)) +* Update dependencies, including cosmwasm 1.5 ([#147](https://github.com/provenance-io/provwasm/issues/147)) ## Releases diff --git a/Cargo.lock b/Cargo.lock index c4cc8936..6762887c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -55,12 +55,6 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" -[[package]] -name = "base64" -version = "0.13.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" - [[package]] name = "base64" version = "0.21.7" @@ -82,6 +76,12 @@ dependencies = [ "serde", ] +[[package]] +name = "bech32" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d86b93f97252c47b41663388e6d155714a9d0c398b99f1005cbc5f978b29f445" + [[package]] name = "bitflags" version = "1.3.2" @@ -106,6 +106,12 @@ dependencies = [ "generic-array", ] +[[package]] +name = "bnum" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56953345e39537a3e18bdaeba4cb0c58a78c1f61f361dc0fa7c5c7340ae87c5f" + [[package]] name = "byteorder" version = "1.4.3" @@ -148,9 +154,9 @@ checksum = "520fbf3c07483f94e3e3ca9d0cfd913d7718ef2483d2cfd91c0d9e91474ab913" [[package]] name = "cosmwasm-crypto" -version = "1.5.2" +version = "1.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ed6aa9f904de106fa16443ad14ec2abe75e94ba003bb61c681c0e43d4c58d2a" +checksum = "9934c79e58d9676edfd592557dee765d2a6ef54c09d5aa2edb06156b00148966" dependencies = [ "digest 0.10.7", "ecdsa", @@ -171,9 +177,9 @@ dependencies = [ [[package]] name = "cosmwasm-schema" -version = "1.2.8" +version = "1.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0864db0a1e0ba2abd35d1105d0487e779538f616daa0338697315cc1601bf24" +checksum = "ac3e3a2136e2a60e8b6582f5dffca5d1a683ed77bf38537d330bc1dfccd69010" dependencies = [ "cosmwasm-schema-derive", "schemars", @@ -184,9 +190,9 @@ dependencies = [ [[package]] name = "cosmwasm-schema-derive" -version = "1.2.8" +version = "1.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2cd0f686ff907612ed63fdff97906b3eafe169d560ebd428e92ef400fb56479f" +checksum = "f5d803bea6bd9ed61bd1ee0b4a2eb09ee20dbb539cc6e0b8795614d20952ebb1" dependencies = [ "proc-macro2", "quote", @@ -195,11 +201,13 @@ dependencies = [ [[package]] name = "cosmwasm-std" -version = "1.2.8" +version = "1.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "197ed654c41885e2d76b23bff8db11b0f9745bfdede0909de9daa564edb19187" +checksum = "ef8666e572a3a2519010dde88c04d16e9339ae751b56b2bb35081fe3f7d6be74" dependencies = [ - "base64 0.13.1", + "base64", + "bech32", + "bnum", "cosmwasm-crypto", "cosmwasm-derive", "derivative", @@ -209,8 +217,8 @@ dependencies = [ "serde", "serde-json-wasm", "sha2 0.10.8", + "static_assertions", "thiserror", - "uint", ] [[package]] @@ -222,12 +230,6 @@ 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.5.5" @@ -265,9 +267,9 @@ dependencies = [ [[package]] name = "cw-storage-plus" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f0e92a069d62067f3472c62e30adedb4cab1754725c0f2a682b3128d2bf3c79" +checksum = "d5ff29294ee99373e2cd5fd21786a3c0ced99a52fec2ca347d565489c61b723c" dependencies = [ "cosmwasm-std", "schemars", @@ -626,9 +628,9 @@ checksum = "3a9e3ffc93bf9ba3d42139380ec3255ff6006fdfb1ee3b75ca31c3e42d784296" [[package]] name = "k256" -version = "0.13.3" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "956ff9b67e26e1a6a866cb758f12c6f8746208489e3e4a4b5580802f2f0a587b" +checksum = "cadb76004ed8e97623117f3df85b17aaa6626ab0b0831e6573f104df16cd1bcc" dependencies = [ "cfg-if", "ecdsa", @@ -905,7 +907,7 @@ dependencies = [ [[package]] name = "provwasm-proc-macro" -version = "0.1.0" +version = "0.1.1" dependencies = [ "cosmwasm-std", "itertools 0.11.0", @@ -922,7 +924,7 @@ dependencies = [ name = "provwasm-std" version = "2.2.0" dependencies = [ - "base64 0.21.7", + "base64", "chrono", "cosmwasm-schema", "cosmwasm-std", @@ -1099,9 +1101,9 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.196" +version = "1.0.197" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "870026e60fa08c69f064aa766c10f10b1d62db9ccd4d0abb206472bee0ce3b32" +checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2" dependencies = [ "serde_derive", ] @@ -1117,18 +1119,18 @@ dependencies = [ [[package]] name = "serde-json-wasm" -version = "0.5.1" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16a62a1fad1e1828b24acac8f2b468971dade7b8c3c2e672bcadefefb1f8c137" +checksum = "9e9213a07d53faa0b8dd81e767a54a8188a242fdb9be99ab75ec576a774bfdd7" dependencies = [ "serde", ] [[package]] name = "serde_derive" -version = "1.0.196" +version = "1.0.197" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33c85360c95e7d137454dc81d9a4ed2b8efd8fbe19cee57357b32b9771fccb67" +checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b" dependencies = [ "proc-macro2", "quote", @@ -1148,9 +1150,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.113" +version = "1.0.115" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69801b70b1c3dac963ecb03a364ba0ceda9cf60c71cfe475e99864759c8b8a79" +checksum = "12dc5c46daa8e9fdf4f5e71b6cf9a53f2487da0e86e55808e2d35539666497dd" dependencies = [ "itoa", "ryu", @@ -1272,18 +1274,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.56" +version = "1.0.58" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d54378c645627613241d077a3a79db965db602882668f9136ac42af9ecb730ad" +checksum = "03468839009160513471e86a034bb2c5c0e4baae3b43f79ffc55c4a5427b3297" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.56" +version = "1.0.58" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa0faa943b50f3db30a20aa7e265dbc66076993efed8463e8de414e5d06d3471" +checksum = "c61f3ba182994efc43764a46c018c347bc492c79f024e705f46567b418f6d4f7" dependencies = [ "proc-macro2", "quote", @@ -1327,18 +1329,6 @@ version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba" -[[package]] -name = "uint" -version = "0.9.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76f64bba2c53b04fcab63c01a7d7427eadc821e3bc48c34dc9ba29c501164b52" -dependencies = [ - "byteorder", - "crunchy", - "hex", - "static_assertions", -] - [[package]] name = "unicode-ident" version = "1.0.8" diff --git a/Cargo.toml b/Cargo.toml index c4eeb792..b37a2829 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,30 +25,31 @@ license = "Apache-2.0" [workspace.dependencies] ### CosmWasm -cosmwasm-schema = { version = "=1.2.8" } -cosmwasm-std = { version = "=1.2.8", default-features = false } -cw-storage-plus = { version = "=1.1.0" } + +cosmwasm-schema = { version = "1.5" } +cosmwasm-std = { version = "1.5", default-features = false, features = ["cosmwasm_1_1"] } +cw-storage-plus = { version = "1.2.0" } ### ProvWasm provwasm-proto-build = { version = "0.1.0", path = "packages/proto-build" } provwasm-common = { version = "0.1.0", path = "packages/provwasm-common" } provwasm-mocks = { version = "2.2.0", path = "packages/provwasm-mocks" } -provwasm-proc-macro = { version = "0.1.0", path = "packages/provwasm-proc-macro" } +provwasm-proc-macro = { version = "0.1.1", path = "packages/provwasm-proc-macro" } provwasm-std = { version = "2.2.0", path = "packages/provwasm-std" } -base64 = "=0.21.7" -chrono = { version = "=0.4.33", default-features = false } +base64 = "0.22.0" +chrono = { version = "0.4.33", default-features = false } prost = { version = "=0.11.9", default-features = false, features = [ "prost-derive", ] } -prost-types = { version = "=0.11.9", default-features = false } -prost-build = "=0.11.9" -schemars = "=0.8.16" -serde = { version = "=1.0.196", default-features = false, features = [ +prost-types = { version = "0.11.9", default-features = false } +prost-build = "0.11.9" +schemars = "0.8.16" +serde = { version = "1.0.197", default-features = false, features = [ "derive", ] } -serde_json = { version = "=1.0.113", features = ["std"] } -thiserror = { version = "=1.0.56" } +serde_json = { version = "1.0.115", features = ["std"] } +thiserror = { version = "1.0.58" } [profile.release] opt-level = 3 diff --git a/RELEASE_CHANGELOG.md b/RELEASE_CHANGELOG.md index 95026753..e75be7eb 100644 --- a/RELEASE_CHANGELOG.md +++ b/RELEASE_CHANGELOG.md @@ -4,4 +4,9 @@ * Bump to Provenance 1.17.1 ([#135](https://github.com/provenance-io/provwasm/issues/135)) * Add ibc message types ([#136](https://github.com/provenance-io/provwasm/issues/136)) * Update contracts to use `cosmwasm/optimzer` ([#140](https://github.com/provenance-io/provwasm/issues/140)) +* Create security contract to link assets with a security + type ([#138](https://github.com/provenance-io/provwasm/issues/138)) * Bump to Provenance 1.18.0-rc2 ([#143](https://github.com/provenance-io/provwasm/issues/143)) +* remove nft, security, and template contracts ([#145](https://github.com/provenance-io/provwasm/pull/145)) +* Bump to Provenance 1.18.0 and add new exchange types ([#146](https://github.com/provenance-io/provwasm/issues/146)) +* Update dependencies, including cosmwasm 1.5 ([#147](https://github.com/provenance-io/provwasm/issues/147)) \ No newline at end of file diff --git a/contracts/attrs/src/contract.rs b/contracts/attrs/src/contract.rs index a61e848d..1cd3c5f0 100644 --- a/contracts/attrs/src/contract.rs +++ b/contracts/attrs/src/contract.rs @@ -1,5 +1,5 @@ use cosmwasm_std::{ - entry_point, to_binary, Deps, DepsMut, Env, MessageInfo, QueryResponse, Response, StdError, + entry_point, to_json_binary, Deps, DepsMut, Env, MessageInfo, QueryResponse, Response, StdError, }; use provwasm_std::types::provenance::attribute::v1::{AttributeQuerier, AttributeType}; @@ -139,7 +139,7 @@ fn try_delete_distinct_label( env.contract.address.clone(), env.contract.address, &attr_name, - to_binary(&Label { text: value })?, + to_json_binary(&Label { text: value })?, )?; let res = Response::new() .add_message(msg) @@ -163,11 +163,11 @@ fn try_update_label( env.contract.address.clone(), env.contract.address, &attr_name, - to_binary(&Label { + to_json_binary(&Label { text: original_text, })?, AttributeType::Json, - to_binary(&Label { text: update_text })?, + to_json_binary(&Label { text: update_text })?, AttributeType::Json, )?; let res = Response::new() @@ -184,12 +184,12 @@ pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> Result to_binary(&LabelNameResponse { name: attr_name }), + QueryMsg::GetLabelName {} => to_json_binary(&LabelNameResponse { name: attr_name }), QueryMsg::GetLabels {} => { let querier = AttributeQuerier::new(&deps.querier); let labels: Vec