Skip to content

Commit

Permalink
PointerView precompile + updated repo links
Browse files Browse the repository at this point in the history
  • Loading branch information
dssei committed May 23, 2024
1 parent fd34357 commit d9cf4bd
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"json": "JSON",
"oracle": "Oracle",
"pointer": "Pointer",
"pointerview": "PointerView",
"governance": "Governance"
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ Association takes place when the wallet first signs and broadcasts any transacti

<Callout type="info">
View the Addr precompile source code and the contract ABI
[here](https://github.com/sei-protocol/sei-chain/tree/evm/precompiles/addr).
[here](https://github.com/sei-protocol/sei-chain/tree/main/precompiles/addr).
</Callout>
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,5 @@ This precompile enables EVM clients to interact with the bank module.

<Callout type="info">
View the Bank precompile source code and the contract ABI
[here](https://github.com/sei-protocol/sei-chain/tree/evm/precompiles/bank).
[here](https://github.com/sei-protocol/sei-chain/tree/main/precompiles/bank).
</Callout>
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,5 @@ This precompile serves as an interface to the CosmWasm module, enabling EVM base

<Callout type="info">
View the CosmWasm precompile source code and the contract ABI
[here](https://github.com/sei-protocol/sei-chain/tree/evm/precompiles/wasmd).
[here](https://github.com/sei-protocol/sei-chain/tree/main/precompiles/wasmd).
</Callout>
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ This precompile enables EVM clients to withdraw distributions and staking reward

<Callout type="info">
View the distribution precompile source code and the contract ABI
[here](https://github.com/sei-protocol/sei-chain/tree/evm/precompiles/distribution).
[here](https://github.com/sei-protocol/sei-chain/tree/main/precompiles/distribution).
</Callout>
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ This precompile enables participation in Sei's governance process through the EV

<Callout type="info">
View the Governance precompile source code and the contract ABI
[here](https://github.com/sei-protocol/sei-chain/tree/evm/precompiles/gov).
[here](https://github.com/sei-protocol/sei-chain/tree/main/precompiles/gov).
</Callout>
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>

0 comments on commit d9cf4bd

Please sign in to comment.