《遗传病议定书》
Gnosis Protocol JS是图书馆,有打字支持 克诺斯协议。 。 。 .
Gnosis 协议引入了一种新的、完全分散的ERC20 令牌交换机制,其内容如下: 属性 :
- 批次拍卖
- 带有环形贸易的多面订购书
- 每批统一结算价格
该图书馆提供:
- Gnosis协议合同的加密版本
- 一些手动的曲轴和常数
使用量
# Using yarn
yarn add @gnosis.pm/dex-js --save
#Alternatively
npm install @gnosis.pm/dex-js --save
导入合同:
import { BatchExchangeContract } from ' @gnosis.pm/dex-js'
// Instanciate the smart contract
const web3 = new Web3()
const batchExchangeContract = new BatchExchangeContract({ web3 })
// Alternativelly provide the address
const batchExchangeContract = new BatchExchangeContract({ web3, address: '0x89593E017D4A88c60347257DAfB95384a422da09' })
问题
如果您找到任何问题, 或您想要请求特性使用 https://github.com/gnosis/dex-js/ issues (英语)
调取请求 欢迎,是提出新特点的最佳方式.
协作
构建
# Install dependencies
yarn install
# Build
yarn build
# Build and watch (useful when using "npm link")
yarn build:watch
运行测试
# Install dependencies
yarn install
# Run
yarn test