Skip to content

Commit

Permalink
merge with main
Browse files Browse the repository at this point in the history
  • Loading branch information
dssei committed Apr 9, 2024
2 parents 76cd191 + e4b06b7 commit b79a435
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/sei-cosmwasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
38 changes: 36 additions & 2 deletions packages/sei-cosmwasm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -59,10 +59,44 @@ Currently, Sei Bindings support query and message support for the sei custom mod
- Set the denom metadata of a factory denom. Only the current admin can set metadata.
- EVM
- Query
- StaticCall
- Generic query endpoint for EVM contracts
- 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
- 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 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`
- 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`
- GetEvmAddress
- Get the EVM address associated with a Sei address
- Get the EVM address associated with a Sei address
- GetSeiAddress
- Get the Sei address associated with an EVM address
- Message
- DelegateCallEvm
- Performs an EVM delegate call. Requires `to` and `data`
- CallEvm
- Performs an EVM call. Requires `value`, `to` and `data`


## Usage

Expand Down

0 comments on commit b79a435

Please sign in to comment.