1155-to-20 中文文档教程
1155-to-20
ERC 1155 到 ERC 20 转换器
Deploying this to a network
- Copy
.env.example
to.env
. - Set SEEDPHRASE, GASPRICE, INFURAPROJECTID, and ETHERSCAN_API accordingly in
.env
npx truffle migrate --network <network>
- Verify on Etherscan via
npx truffle run verify Wrapped1155Factory Wrapped1155 --license LGPL-3.0-or-later --network <network>
确保您所指的网络已在 truffle-config.js
中进行了描述。
迁移将使用 EIP 2470 描述的 SingletonFactory 在链上的特定位置确定性地部署 Wrapped1155Factory。 如果链上已经存在 SingletonFactory,则将跳过该部署。 同样,如果 Wrapped1155Factory 已经存在于链上,则部署将被跳过。
1155-to-20
ERC 1155 to ERC 20 converter
Deploying this to a network
- Copy
.env.example
to.env
. - Set SEEDPHRASE, GASPRICE, INFURAPROJECTID, and ETHERSCAN_API accordingly in
.env
npx truffle migrate --network <network>
- Verify on Etherscan via
npx truffle run verify Wrapped1155Factory Wrapped1155 --license LGPL-3.0-or-later --network <network>
Make sure the network you are referring to has been described in the truffle-config.js
.
The migration will use a SingletonFactory described by EIP 2470 to deterministically deploy a Wrapped1155Factory at a specific location on chain. If the SingletonFactory already exists on the chain, that deployment will be skipped. Likewise, if the Wrapped1155Factory already exists on the chain, the deployment will be skipped.