web3wagmi
← All standards

ERC-4931 Generic Token Upgrade Standard

StagnantERCcreated 2021-11-02requires ERC-20

Create a standard interface for upgrading ERC20 token contracts.

Authors: John Peterson (@John-peterson-coinbase), Roberto Bayardo (@roberto-bayardo), David Núñez (@cygnusv)

Functions this standard introduces (10)

0x37877c74computeDowngrade(uint256)
0x2f6860eecomputeUpgrade(uint256)
0xe0af487adowngrade(address,uint256)
0x5e5212c8isDowngradeActive()
0x065f02dbisUpgradeActive()
0x71ca337dratio()
0xc752ff62totalUpgraded()
0xe0622b27upgrade(address,uint256)
0x04ccf6beupgradeDestination()
0xce7cc129upgradeSource()

Events (2)

Topic0 is the keccak256 hash of the signature, which is what a log filter matches on.

0xef5d04dd883defd05660e617caee3dd12025b0d81e6757fc54dc083a1f513862Upgrade(address,address,uint256,uint256)
0xf366cea5a63432f1bb195a3186fa8456b4692b09279665402c5ff8a5b334f056Downgrade(address,address,uint256,uint256)

Depends on (1)

Proposals this one names in its requires field.

What the specification covers

Compare with

Parsed from the canonical specification · discussion