Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PINK precompile #35

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/evm/ethereum-compatibility/precompiles/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ In the comprehensive Darwinia Ecosystem, each network serves a distinct purpose,
| `0x0000000000000000000000000000000000000401` | [Dispatch](../precompiles/dispatch.md) |
| `0x0000000000000000000000000000000000000402` | [Commitment Token](../precompiles/commitment-token.md) |
| `0x0000000000000000000000000000000000000403` | [USDT](../precompiles/usdt.md) |
| `0x0000000000000000000000000000000000000404` | [PINK](../precompiles/pink.md) |
| `0x0000000000000000000000000000000000000600` | [Deposit](../precompiles/deposit.md) |
| `0x0000000000000000000000000000000000000601` | [Staking](../precompiles/staking.md) |
| `0x0000000000000000000000000000000000000800` | BLS12-381 |
Expand Down
9 changes: 9 additions & 0 deletions docs/evm/ethereum-compatibility/precompiles/pink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# PINK Precompile

TODO: Add pink token introduction
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AurevoirXavier Ask for your help to add the PINK token overview here. I don't know much about this token. the USDT page FYI.


## Contract Info

- The default contract address: 0x0000000000000000000000000000000000000404
- [The interface](https://github.com/darwinia-network/darwinia/blob/main/precompile/metadata/sol/asset.sol)
- [The ABI](https://github.com/darwinia-network/darwinia/blob/main/precompile/metadata/sol/asset.sol)
5 changes: 0 additions & 5 deletions docs/evm/ethereum-compatibility/precompiles/usdt.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ Tether (USDT) is a widely used stablecoin in the crypto world. It has been [inte

In order to improve the compatibility of USDT with Ethereum-based tools and workflows, a dedicated precompile has been developed. This precompile acts as a bridge, simplifying the interaction between Ethereum users and USDT. By leveraging this precompile, Ethereum users can seamlessly interact with USDT using their familiar Ethereum tools, such as MetaMask.

!!! Warning
As of 2023-11-21, the USDT functionality is only enabled for testing purposes in the Pangolin Testnet. We have plans to enable this in the Darwinia in the future.

</aside>

## Contract Info

- The default contract address: 0x0000000000000000000000000000000000000403
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ nav:
- Deposit Precompile: "evm/ethereum-compatibility/precompiles/deposit.md"
- KTON Precompile: "evm/ethereum-compatibility/precompiles/commitment-token.md"
- USDT Precompile: "evm/ethereum-compatibility/precompiles/usdt.md"
- PINK Precompile: "evm/ethereum-compatibility/precompiles/pink.md"
- State Storage Precompile: "evm/ethereum-compatibility/precompiles/state-storage.md"
- Dispatch Precompile: "evm/ethereum-compatibility/precompiles/dispatch.md"
- Conviction Voting Precompile: "evm/ethereum-compatibility/precompiles/conviction-voting.md"
Expand Down
Loading