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.
PointerView precompile + updated repo links
- Loading branch information
Showing
7 changed files
with
50 additions
and
5 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
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
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
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
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
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
44 changes: 44 additions & 0 deletions
44
pages/dev-advanced-concepts/interoperability/precompiles/pointerview.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**: `0x000000000000000000000000000000000000100A` | ||
|
||
This precompile enables EVM clients to query pointers to the CosmWasm contracts. | ||
|
||
## Functions | ||
|
||
### Queries | ||
- `getNativePointer`: Retrieves the pointer address, version, and existence status for the specified native token. | ||
```solidity | ||
/// Retrieves the pointer address, version, and existence status for the specified native token. | ||
/// @param token The native token to query. | ||
/// @return the address, version, and existence status. | ||
function getNativePointer( | ||
string memory token | ||
) view external returns (address addr, uint16 version, bool exists); | ||
``` | ||
|
||
- `getCW20Pointer`: Retrieves the pointer address, version, and existence status for the specified CW20 contract address. | ||
```solidity | ||
/// Retrieves the pointer address, version, and existence status for the specified CW20 contract address. | ||
/// @param cwAddr The CW20 contract address to query. | ||
/// @return the address, version, and existence status. | ||
function getCW20Pointer( | ||
string memory cwAddr | ||
) view external returns (address addr, uint16 version, bool exists); | ||
``` | ||
|
||
- `getCW721Pointer`: Retrieves the pointer address, version, and existence status for the specified CW721 contract address. | ||
```solidity | ||
/// Retrieves the pointer address, version, and existence status for the specified CW721 contract address. | ||
/// @param cwAddr The CW721 contract address to query. | ||
/// @return the address, version, and existence status. | ||
function getCW721Pointer( | ||
string memory cwAddr | ||
) view external returns (address addr, uint16 version, bool exists); | ||
``` | ||
<Callout type="info"> | ||
View the PointerView precompile source code and the contract ABI | ||
[here](https://github.com/sei-protocol/sei-chain/tree/main/precompiles/pointerview). | ||
</Callout> |