generated from shuding/nextra-docs-template
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,6 @@ | |
"ibc": "IBC", | ||
"json": "JSON", | ||
"oracle": "Oracle", | ||
"pointer": "Pointer", | ||
"governance": "Governance" | ||
} |
44 changes: 44 additions & 0 deletions
44
pages/dev-advanced-concepts/interoperability/precompiles/pointer.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { Callout } from "nextra/components"; | ||
|
||
# Pointer Precompile | ||
|
||
**Address**: `0x000000000000000000000000000000000000100b` | ||
|
||
This precompile enables EVM clients to add pointers to the CosmWasm contracts. | ||
|
||
## Functions | ||
|
||
### Transactions | ||
- `addNativePointer`: Adds a native pointer for the contract. | ||
```solidity | ||
/// Adds a native pointer for the contract. | ||
/// @param token The native token to add. | ||
/// @return An Ethereum address of the pointer. | ||
function addNativePointer( | ||
string memory token | ||
) external returns (address ret); | ||
``` | ||
|
||
- `addCW20Pointer`: Adds a CW20 pointer for the contract. | ||
```solidity | ||
/// Adds a CW20 pointer for the contract. | ||
/// @param cwAddr The CW20 contract address to add. | ||
/// @return An Ethereum address of the pointer. | ||
function addCW20Pointer( | ||
string memory cwAddr | ||
) external returns (address ret); | ||
``` | ||
|
||
- `addCW20Pointer`: Adds a CW721 pointer for the contract. | ||
```solidity | ||
/// Adds a CW721 pointer for the contract. | ||
/// @param cwAddr The CW721 contract address to add. | ||
/// @return An Ethereum address of the pointer. | ||
function addCW721Pointer( | ||
string memory cwAddr | ||
) external returns (address ret); | ||
``` | ||
<Callout type="info"> | ||
View the Pointer precompile source code and the contract ABI | ||
[here](https://github.com/sei-protocol/sei-chain/tree/main/precompiles/pointer). | ||
</Callout> |