forked from opengovsg/cbdc-smart-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelper-hardhat-config.ts
40 lines (37 loc) · 1.1 KB
/
helper-hardhat-config.ts
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
import { getUnixTimestamp } from './helpers/utils'
interface DeploymentConfigItem {
name: string
type: 'main-net' | 'test-net' | 'local-net'
underlyingTokenAddress?: string
waitForConfirmations?: number
expiryDate: number
}
export const deploymentConfig: { [chainId: string]: DeploymentConfigItem } = {
// Refer to chainIds via https://chainlist.org/
default: {
name: 'hardhat',
type: 'local-net',
expiryDate: getUnixTimestamp('2025-01-01T08:00:00+08'),
},
31337: {
name: 'localhost',
type: 'local-net',
expiryDate: getUnixTimestamp('2025-01-01T00:00:00+08'),
},
80001: {
name: 'polygonMumbai',
underlyingTokenAddress: '0x05Cd29B55352543171cC024a64AD9c478594936a',
type: 'test-net',
waitForConfirmations: 6,
expiryDate: getUnixTimestamp('2023-01-01T08:00:00+08'),
},
137: {
name: 'polygon',
type: 'main-net',
underlyingTokenAddress: '0x7BA5F45234bD6BA3ABDF82Db5A3980214B57eB9d',
waitForConfirmations: 12,
expiryDate: getUnixTimestamp('2022-11-25T23:59:59+08'),
},
}
export const DSGD_DECIMALS = 18
export const PBM_DECIMALS = 18