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

Handle ZRC-20 tokens #10

Closed
fadeev opened this issue Aug 15, 2024 · 1 comment
Closed

Handle ZRC-20 tokens #10

fadeev opened this issue Aug 15, 2024 · 1 comment
Assignees

Comments

@fadeev
Copy link
Member

fadeev commented Aug 15, 2024

Right now localnet depends on test contract for ZRC-20 tokens:

testContracts.zrc20.target,

The idea is to be able to use localnet not with a specific test contract, but with any example contract.

Ideally, the localnet environment simulates the real testnet and allows the gateway to accept ERC-20 tokens, and mints ZRC-20 tokens (like ZetaChain would) and sends them to a universal contract.

I think we can deploy a test ERC-20 as part of protocol contracts in localnet and just handle minting of ZRC-20s.

It should also be possible to send ETH and get ZRC-20 ETH.

The test case can be an example contract here:

zeta-chain/example-contracts#189

@fadeev
Copy link
Member Author

fadeev commented Aug 15, 2024

@skosito

@skosito skosito self-assigned this Aug 16, 2024
@fadeev fadeev closed this as completed Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants