|
| 1 | +export const torn: Torn |
| 2 | +export const governance: Address |
| 3 | +export const governanceImpl: Address |
| 4 | +export const voucher: Voucher |
| 5 | +export const miningV2: Mining |
| 6 | +export const rewardSwap: RewardSwap |
| 7 | +export const tornadoTrees: TornadoTrees |
| 8 | +export const tornadoProxy: Address |
| 9 | +export const tornadoProxyLight: Address |
| 10 | +export const rewardVerifier: Address |
| 11 | +export const treeUpdateVerifier: Address |
| 12 | +export const withdrawVerifier: Address |
| 13 | +export const poseidonHasher2: Address |
| 14 | +export const poseidonHasher3: Address |
| 15 | +export const feeManager: Address |
| 16 | +export const tornadoStakingRewards: Address |
| 17 | +export const relayerRegistry: Address |
| 18 | +export const tornadoRouter: Address |
| 19 | +export const instanceRegistry: Address |
| 20 | +export const deployer: Address |
| 21 | +export const vesting: Vesting |
| 22 | +export const instances: Instances |
| 23 | + |
| 24 | + |
| 25 | +export type availableIds = 1 | 5 | 10 | 56 | 100 | 137 | 42161 | 43114 |
| 26 | +export type availableTokens = 'eth' | 'dai' | 'cdai' | 'usdc' | 'usdt' | 'wbtc' | 'xdai' | 'matic' | 'avax' | 'bnb' |
| 27 | +export type netIds = `netId${availableIds}` |
| 28 | + |
| 29 | +export type Address = { |
| 30 | + address: string |
| 31 | +} |
| 32 | + |
| 33 | +export type Instances = { |
| 34 | + [p in netIds]: NetInstances; |
| 35 | +}; |
| 36 | + |
| 37 | +export type NetInstances = { |
| 38 | + [p in availableTokens]?: TInstance; |
| 39 | +} |
| 40 | + |
| 41 | +export type TInstance = { |
| 42 | + instanceAddress: InstanceAddress |
| 43 | + tokenAddress?: string |
| 44 | + symbol: string |
| 45 | + decimals: number |
| 46 | +} |
| 47 | + |
| 48 | +export type InstanceAddress = { |
| 49 | + '0.1'?: string |
| 50 | + '1'?: string |
| 51 | + '10'?: string |
| 52 | + '100'?: string |
| 53 | + '500'?: string |
| 54 | + '1000'?: string |
| 55 | + '5000'?: string |
| 56 | + '10000'?: string |
| 57 | + '50000'?: string |
| 58 | + '100000'?: string |
| 59 | + '500000'?: string |
| 60 | + '5000000'?: string |
| 61 | +} |
| 62 | + |
| 63 | +export type Mining = Address & { |
| 64 | + initialBalance: string |
| 65 | + rates: Rate[] |
| 66 | +} |
| 67 | + |
| 68 | +export type Rate = { |
| 69 | + instance: string |
| 70 | + value: string |
| 71 | +} |
| 72 | + |
| 73 | +export type RewardSwap = Address & { |
| 74 | + poolWeight: number |
| 75 | +} |
| 76 | + |
| 77 | +export type Torn = Address & { |
| 78 | + cap: string |
| 79 | + pausePeriod: number |
| 80 | + distribution: { [key: string]: Distribution } |
| 81 | +} |
| 82 | + |
| 83 | +export type Distribution = { |
| 84 | + to: string |
| 85 | + amount: string |
| 86 | +} |
| 87 | + |
| 88 | +export type TornadoTrees = Address & { |
| 89 | + levels: number |
| 90 | +} |
| 91 | + |
| 92 | +export interface Vesting { |
| 93 | + team1: Governance; |
| 94 | + team2: Governance; |
| 95 | + team3: Governance; |
| 96 | + team4: Governance; |
| 97 | + team5: Governance; |
| 98 | + governance: Governance; |
| 99 | +} |
| 100 | + |
| 101 | +export type Governance = Address & { |
| 102 | + cliff: number |
| 103 | + duration: number |
| 104 | + beneficiary?: string |
| 105 | +} |
| 106 | + |
| 107 | +export type Voucher = Address & { |
| 108 | + duration: number |
| 109 | +} |
0 commit comments