1.6.0 • Published 3 years ago

element-orders-tools v1.6.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

使用说明

下载运行环境

http://nodejs.cn/download/

全局安装

npm i element-orders-tools -g

设置私有文件

在执行目录外定义secrets.json 文件

{ 
  "privateKeys": [ 
    "私钥"
  ]
}

准备订单列表csv文件

格式如下,注意没有引号

下单前请检查合集版税 royalty
相同订单下多单 增加 orderCount 字段

空投单

taker 指定领取人,startAmount=0 版税和手续费为0

createId,royalty,tokenAddress,schemaName,tokenId,quantity,paymentToken,listingTime,expirationTime,startAmount,endAmount,taker
1,300,0x4cddbf865ee2a1a3711648bb192e285f290f7985,ERC1155,72134322679254813612560192230305857957633912505434515263987832383067914240001,1,,0,0,0,0,0x9F7A946d935c8Efc7A8329C0d894A69bA241345A

一口价

endAmount 空字符串

createId,orderCount,royalty,tokenAddress,schemaName,tokenId,quantity,paymentToken,listingTime,expirationTime,startAmount,endAmount,taker
1,1,300,0x4cddbf865ee2a1a3711648bb192e285f290f7985,ERC1155,72134322679254813612560192230305857957633912505434515263987832384167425867976,1,,0,0,0.06,,
#### 荷兰拍
>endAmount 定义小于 startAmount
>expirationTime 可以为空默认1年
```js
createId,orderCount,royalty,tokenAddress,schemaName,tokenId,quantity,paymentToken,listingTime,expirationTime,startAmount,endAmount,taker
1,1,300,0x4cddbf865ee2a1a3711648bb192e285f290f7985,ERC1155,72134322679254813612560192230305857957633912505434515263987832384167425867976,1,,0,0,0.06,,

暂不支持英拍创建

创建买单

 ele-cli -h // 查看帮助
 ele-cli create rinkeby-order.csv rinkeby

取消买单

ele-cli cancel 0x1530272ce6e4589f5c09151a7c9a118a58d70e09 2 rinkeby 

orders

配置

ele-cli  -c ../config.json -f ../test/rinkeby-order.csv

config.json

{
  "defaultAccount": "0x9F7A946d935c8Efc7A8329C0d894A69bA241345A",
  "accounts": {
    "0x9F7A946d935c8Efc7A8329C0d894A69bA241345A": "私钥",
    "0x0A56b3317eD60dC4E1027A63ffbE9df6fb102401": "私钥"
  },
  "file": ""
}

创建买单

ele-cli  -f ../test/rinkeby-order.csv -n rinkeby

取消

ele-cli -n rinkeby -t 0x143c68d90e8c012f146a80cdf49dfedb6abe2cbc -i 19482

检查日志

目录下会生成一个log目录

发布工具命令

npm publish --access public

1.6.0

3 years ago

1.2.0

3 years ago

1.1.11

3 years ago

1.1.10

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.3

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.0

3 years ago

0.0.6

3 years ago

0.0.2

3 years ago