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

Support whitelisting ZRC20 assets in bulk #3411

Open
CharlieMc0 opened this issue Jan 24, 2025 · 0 comments
Open

Support whitelisting ZRC20 assets in bulk #3411

CharlieMc0 opened this issue Jan 24, 2025 · 0 comments

Comments

@CharlieMc0
Copy link
Member

CharlieMc0 commented Jan 24, 2025

Describe the Issue

We can only submit one /zetachain.zetacore.crosschain.MsgWhitelistERC20 message per group proposal which makes the whitelisting process much more time consuming.

Expected Outcome
We should be able to whitelist new assets in bulk.

Example Group Proposal with multiple assets

{
    "group_policy_address": "zeta1dlszg2s",
    "messages": [
        {
            "@type": "/zetachain.zetacore.crosschain.MsgWhitelistERC20",
            "creator": "zeta1dlszg2sst9r69my4f84l3mj66zxcf3umcgujys30t84srg95dgvs5wguxq",
            "erc20Address": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
            "chainId": "8453",
            "decimals": "8",
            "name": "ZetaChain ZRC20 cbBTC on Base Mainnet",
            "symbol": "CBBTC.BASE",
            "gasLimit": "100000"
        },
        {
            "@type": "/zetachain.zetacore.crosschain.MsgWhitelistERC20",
            "creator": "zeta1dlszg2sst9r69my4f84l3mj66zxcf3umcgujys30t84srg95dgvs5wguxq",
            "erc20Address": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
            "chainId": "1",
            "decimals": "8",
            "name": "ZetaChain ZRC20 cbBTC on Eth Mainnet",
            "symbol": "CBBTC.ETH",
            "gasLimit": "100000"
        }
    ],
    "metadata": "",
    "title": "Whitelist ZetaChain ZRC20 cbBTC on Base mainnet",
    "summary": "Whitelist ZetaChain ZRC20 cbBTC on Base",
    "proposers": [
        "zeta14m8s4x036jkjnfnkw92004zweh5prqzq69n880"
    ]
}
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

1 participant