@8pay/deployments 中文文档教程

发布于 3年前 浏览 35 项目主页 更新于 3年前

@8pay/deployments

跟踪所有 8pay 部署的辅助模块。 它提供了一种简单的方法来获取部署核​​心智能合约的地址以及与之交互的能力。

Usage

const Deployments = require('@8pay/deployments');

const deployments = new Deployments(Deployments.Network.BSC);

const contract = deployments.get('OneTime');

console.log(contract);

/*
{
    address: '0x...',
    abi: [...],
    blockNumber: 3029344
}
*/

Supported networks

  • BSC
  • SANDBOX

@8pay/deployments

An helper module that keeps track of all 8pay's deployments. It provides an easy way to obtain the addresses where core smart contracts are deployed and the abis to interact with them.

Usage

const Deployments = require('@8pay/deployments');

const deployments = new Deployments(Deployments.Network.BSC);

const contract = deployments.get('OneTime');

console.log(contract);

/*
{
    address: '0x...',
    abi: [...],
    blockNumber: 3029344
}
*/

Supported networks

  • BSC
  • SANDBOX
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文