-
Notifications
You must be signed in to change notification settings - Fork 1
/
relist.js
executable file
·35 lines (31 loc) · 971 Bytes
/
relist.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env node
var argv = require('yargs/yargs')(process.argv)
.command('Relist NFT by providing the asset_id, new price & symbol')
.example('$0 -i 123456789 -p 1000 -s foobar')
.describe('asset_id', 'asset_id')
.alias(['i', 'id'], 'asset_id')
.demandOption('asset_id')
.describe('collection_name', 'Collection name')
.alias('c', 'collection_name')
.default('collection_name', '')
.describe('template_id', 'template_id')
.alias('t', 'template_id')
.default('template_id', '')
.describe('price', 'Price')
.alias('p', 'price')
.demandOption('price')
.describe('symbol', 'Symbol')
.alias('s', 'symbol')
.default('symbol', '')
.demandOption('symbol')
.boolean(['yes'])
.alias('y', 'yes')
.boolean(['debug'])
.argv
const timer = ms => new Promise(res => setTimeout(res, ms))
const main = async () => {
require('./delist')
await timer(2000)
require('./sell')
}
main()