New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

element-orders-tools

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

element-orders-tools

使用说明

unpublished
latest
Source
npmnpm
Version
1.6.0
Version published
Maintainers
1
Created
Source

使用说明

下载运行环境

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年

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

FAQs

Package last updated on 16 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts