-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
30 lines (27 loc) · 949 Bytes
/
index.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
import { main as auction } from './transactions/auction.js'
import { main as bid } from './transactions/bid.js'
import { main as auctionConflictResolver } from './transactions/conflict-resolver.js'
import { main as nameEnforcer } from './transactions/name-enforcer.js'
import { main as domainFactory } from './transactions/domain-factory.js'
import { main as ownershipGuard } from './transactions/ownership-guard.js'
import { main as mocknetSetup } from './common/mocknet-setup.js'
const main = async () => {
const args = process.argv.slice(2);
if (args.includes('mainnet')) {
await auction()
await bid()
await auctionConflictResolver()
await nameEnforcer()
await domainFactory()
await ownershipGuard()
} else {
await mocknetSetup()
await auction()
await bid()
// await auctionConflictResolver()
// await nameEnforcer()
// await domainFactory()
// await ownershipGuard()
}
}
main()