diff --git a/Cargo.lock b/Cargo.lock index da10351..8af067b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1460,7 +1460,8 @@ dependencies = [ [[package]] name = "injective-std" version = "0.1.7" -source = "git+https://github.com/InjectiveLabs/cw-injective.git?rev=8957ee2#8957ee25cd885d3246c48a487da757548bc60f1c" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1d7b7114796e44b034355983cb1ee2a1c9d1843df17c9552126e4404d463c06" dependencies = [ "chrono", "cosmwasm-std", @@ -1475,7 +1476,8 @@ dependencies = [ [[package]] name = "injective-test-tube" version = "1.2.0" -source = "git+https://github.com/InjectiveLabs/test-tube.git?rev=402efd7#402efd7a868ff44af08bd08abdd39d439c36a494" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e7b985231e977f4202a8ef7112d34558473a1bdfb4bff8dcb8ab091909728f9" dependencies = [ "base64", "bindgen", @@ -2697,7 +2699,7 @@ dependencies = [ "injective-std", "injective-test-tube", "num-traits", - "prost 0.11.9", + "prost 0.12.4", "protobuf", "schemars", "serde", @@ -2897,9 +2899,9 @@ dependencies = [ [[package]] name = "test-tube-inj" -version = "1.1.3" +version = "1.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "751b40929081e03c825df424a5a81645f2cea444654d96f0aad962f7be4e541e" +checksum = "cd5deed958ebd3e60b9d55bb7773442993deac73e15f0354eb5bdab05df14fcb" dependencies = [ "base64", "cosmrs", diff --git a/README.md b/README.md index 3df72a9..60dccc6 100644 --- a/README.md +++ b/README.md @@ -84,9 +84,17 @@ Handles various queries to the contract: pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> StdResult ``` +## Authz Permission + +Example how to allow the contract admin to authorize other addresses to make contract calls on their behalf. + +```bash + injectived tx grant contract execution --allow-raw-msgs set_routes --max-calls 5 --max-funds 100000uwasm --expiration 1667979596 --from=sgt-account --gas=auto --gas-prices 500000000inj --gas-adjustment 1.3 --output=json --node=https://testnet.sentry.tm.injective.network:443 --chain-id='injective-888' +``` + ## Disclaimer -This contract is designed for educational purposes only. Your use of this contract constitutes your agreement to the terms of the License below. In addition, your use of this contract constitutes your agreement to defend, indemnify, and hold harmless the contributors to this codebase from all claims of any kind related to your use of this contract. +This contract is designed for educational purposes only. Your use of this contract constitutes your agreement to the terms of the License below. In addition, your use of this contract constitutes your agreement to defend, indemnify, and hold harmless the contributors to this codebase from all claims of any kind related to your use of this contract. ## License diff --git a/contracts/swap/Cargo.toml b/contracts/swap/Cargo.toml index 0587650..348ccd7 100644 --- a/contracts/swap/Cargo.toml +++ b/contracts/swap/Cargo.toml @@ -38,11 +38,9 @@ serde-json-wasm = "1.0.1" thiserror = { version = "1.0.31" } [dev-dependencies] -cosmos-sdk-proto = { version = "0.21.1", features = [ "cosmwasm" ] } -cosmwasm-schema = "1.5.0" -cw-multi-test = "0.16.2" -injective-std = { git = "https://github.com/InjectiveLabs/cw-injective.git", rev = "8957ee2" } -# injective-std = { version = "0.1.5" } -injective-test-tube = { git = "https://github.com/InjectiveLabs/test-tube.git", rev = "402efd7" } -# injective-test-tube = "1.1.7" -prost = "0.11.9" +cosmos-sdk-proto = { version = "0.21.1", features = [ "cosmwasm" ] } +cosmwasm-schema = "1.5.0" +cw-multi-test = "0.16.2" +injective-std = { version = "0.1.7" } +injective-test-tube = "1.2.0" +prost = "0.12.4"