From 20d5e644ac5fff8b9608b1a73fb77c40bde4baab Mon Sep 17 00:00:00 2001 From: Philip Su Date: Wed, 3 Apr 2024 12:15:53 -0700 Subject: [PATCH 1/4] Add evm query --- packages/sei-cosmwasm/README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/packages/sei-cosmwasm/README.md b/packages/sei-cosmwasm/README.md index 6a93ad4..0562998 100644 --- a/packages/sei-cosmwasm/README.md +++ b/packages/sei-cosmwasm/README.md @@ -57,6 +57,37 @@ Currently, Sei Bindings support query and message support for the sei custom mod - Change the Admin of the Denom. Only the current admin can change the admin. - SetMetadata - Set the denom metadata of a factory denom. Only the current admin can set metadata. +- EVM + - Query + - StaticCall + - TODO + - Erc20TransferPayload + - Gets the Erc20 transfer payload from on recipient and amount + - Erc20TransferFromPayload + - Gets the Erc20 transfer from payload based on owner, recipient and amount + - Erc20ApprovePayload + - Gets the Erc20 approve payload from spender and amount + - Erc20Allowance + - Gets the Erc20 allowance from contract address, owner and spender + - Erc20TokenInfo + - Gets the Erc20 token info from contract address and caller + - Erc20Balance + - Gets the Erc20 balance from contract address and account + - Erc721TransferPayload + - Similar to the Erc20 equivalent + - Erc721ApprovePayload + - Similar to the Erc20 equivalent + - Erc721Approved + - Check si a caller is approved based on caller, contract address and token id + - Erc721IsApprovedForAll + - Checks if the caller is approved for all based on caller, contract address, owner and operator + - Erc721SetApprovalAllPayload + - Gets the Erc721 SetApproveAll payload from caller, contract address, owner and operator + - Erc721NameSymbol + - Gets the Erc721 name and symbol based on the caller and contract address + - Erc721Uri + - Gets the Erc721 URI based on caller, contract address and token id + ## Usage From 259b255446b912628b808c8d5e152d74d2255fa7 Mon Sep 17 00:00:00 2001 From: Philip Su Date: Wed, 3 Apr 2024 12:20:53 -0700 Subject: [PATCH 2/4] Add evm msg --- packages/sei-cosmwasm/README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/sei-cosmwasm/README.md b/packages/sei-cosmwasm/README.md index 0562998..855d193 100644 --- a/packages/sei-cosmwasm/README.md +++ b/packages/sei-cosmwasm/README.md @@ -78,7 +78,7 @@ Currently, Sei Bindings support query and message support for the sei custom mod - Erc721ApprovePayload - Similar to the Erc20 equivalent - Erc721Approved - - Check si a caller is approved based on caller, contract address and token id + - Checks if a caller is approved based on caller, contract address and token id - Erc721IsApprovedForAll - Checks if the caller is approved for all based on caller, contract address, owner and operator - Erc721SetApprovalAllPayload @@ -86,7 +86,12 @@ Currently, Sei Bindings support query and message support for the sei custom mod - Erc721NameSymbol - Gets the Erc721 name and symbol based on the caller and contract address - Erc721Uri - - Gets the Erc721 URI based on caller, contract address and token id + - Gets the Erc721 URI based on caller, contract_address and token_id + - Message + - DelegateCallEvm + - Performs an EVM delegate call. Requires `to` and `data` + - CallEvm + - Performs an EVM call. Requires `value`, `to` and `data` ## Usage From 892e707cae27ab90e452f1a349a6b445bd2f9d94 Mon Sep 17 00:00:00 2001 From: Philip Su Date: Thu, 4 Apr 2024 10:57:08 -0700 Subject: [PATCH 3/4] Update version --- packages/sei-cosmwasm/Cargo.toml | 2 +- packages/sei-cosmwasm/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sei-cosmwasm/Cargo.toml b/packages/sei-cosmwasm/Cargo.toml index bc70a58..1612d1c 100644 --- a/packages/sei-cosmwasm/Cargo.toml +++ b/packages/sei-cosmwasm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sei-cosmwasm" -version = "0.4.12" +version = "0.4.13" edition = "2021" description = "Bindings and helpers for cosmwasm contracts to interact with sei blockchain" license = "Apache-2.0" diff --git a/packages/sei-cosmwasm/README.md b/packages/sei-cosmwasm/README.md index 855d193..f060b0f 100644 --- a/packages/sei-cosmwasm/README.md +++ b/packages/sei-cosmwasm/README.md @@ -8,7 +8,7 @@ Add the sei-cosmwasm dependency to your smart contract's `Cargo.toml` file: ```toml [dependencies] -sei-cosmwasm = { version = "0.4.11" } +sei-cosmwasm = { version = "0.4.13" } ``` ## Functionality From 0bec2bb718c147617e9285b19cfbbb0bcd21bed7 Mon Sep 17 00:00:00 2001 From: Philip Su Date: Mon, 8 Apr 2024 09:59:57 -0700 Subject: [PATCH 4/4] Update docs --- packages/sei-cosmwasm/README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/sei-cosmwasm/README.md b/packages/sei-cosmwasm/README.md index f060b0f..1e20d01 100644 --- a/packages/sei-cosmwasm/README.md +++ b/packages/sei-cosmwasm/README.md @@ -60,33 +60,33 @@ Currently, Sei Bindings support query and message support for the sei custom mod - EVM - Query - StaticCall - - TODO + - Generic query endpoint for EVM contracts - Erc20TransferPayload - - Gets the Erc20 transfer payload from on recipient and amount + - Gets the Erc20 transfer payload from on `recipient` and `amount` - Erc20TransferFromPayload - - Gets the Erc20 transfer from payload based on owner, recipient and amount + - Gets the Erc20 transfer from payload based on `owner`, `recipient` and `amount` - Erc20ApprovePayload - - Gets the Erc20 approve payload from spender and amount + - Gets the Erc20 approve payload from `spender` and `amount` - Erc20Allowance - - Gets the Erc20 allowance from contract address, owner and spender + - Gets the Erc20 allowance from `contract address`, `owner` and `spender` - Erc20TokenInfo - - Gets the Erc20 token info from contract address and caller + - Gets the Erc20 token info from `contract address` and `caller` - Erc20Balance - - Gets the Erc20 balance from contract address and account + - Gets the Erc20 balance from `contract address` and `account` - Erc721TransferPayload - Similar to the Erc20 equivalent - Erc721ApprovePayload - Similar to the Erc20 equivalent - Erc721Approved - - Checks if a caller is approved based on caller, contract address and token id + - Checks if a caller is approved to send an Erc721 on behalf of the owner. Requires `contract address` and `token id` - Erc721IsApprovedForAll - - Checks if the caller is approved for all based on caller, contract address, owner and operator + - Checks if the caller is approved to operate all Erc721s on behalf of the owner. Requires `caller`, `contract address`, `owner` and `operator` - Erc721SetApprovalAllPayload - - Gets the Erc721 SetApproveAll payload from caller, contract address, owner and operator + - Gets the Erc721 SetApproveAll payload from `caller`, `contract address`, `owner` and `operator` - Erc721NameSymbol - - Gets the Erc721 name and symbol based on the caller and contract address + - Gets the Erc721 name and symbol based on the `caller` and `contract address` - Erc721Uri - - Gets the Erc721 URI based on caller, contract_address and token_id + - Gets the Erc721 URI based on `caller`, `contract_address` and `token_id` - Message - DelegateCallEvm - Performs an EVM delegate call. Requires `to` and `data`