forked from olivdb/truffle-source-verify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.js
42 lines (38 loc) · 1.11 KB
/
constants.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
36
37
38
39
40
41
42
const API_URLS = {
1: 'https://api.etherscan.io/api',
3: 'https://api-ropsten.etherscan.io/api',
4: 'https://api-rinkeby.etherscan.io/api',
5: 'https://api-goerli.etherscan.io/api',
20: 'https://esc.elastos.io/api',
21: 'https://esc-testnet.elastos.io/api',
42: 'https://api-kovan.etherscan.io/api',
56: 'https://api.bscscan.com/api',
97: 'https://api-testnet.bscscan.com/api'
}
const EXPLORER_URLS = {
1: 'https://etherscan.io/address',
3: 'https://ropsten.etherscan.io/address',
4: 'https://rinkeby.etherscan.io/address',
5: 'https://goerli.etherscan.io/address',
20: 'https://eth.elastos.io/address',
21: 'https://esc-testnet.elastos.io/address',
42: 'https://kovan.etherscan.io/address',
56: 'https://bscscan.com/address',
97: 'https://testnet.bscscan.com/address'
}
const RequestStatus = {
OK: '1',
NOTOK: '0'
}
const VerificationStatus = {
FAILED: 'Fail - Unable to verify',
SUCCESS: 'Pass - Verified',
PENDING: 'Pending in queue',
ALREADY_VERIFIED: 'Contract source code already verified'
}
module.exports = {
API_URLS,
EXPLORER_URLS,
RequestStatus,
VerificationStatus
}