forked from CryptoRastas/bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchains.ts
140 lines (128 loc) · 3.5 KB
/
chains.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
import { evmAccounts } from './accounts'
import { Chain } from './types'
import {
polygonAmoy as polygonAmoyChain,
polygon as polygonChain,
sepolia as sepoliaChain,
mainnet as mainnetChain,
baseSepolia as baseSepoliaChain,
base as baseChain,
abstractTestnet as abstractTestnetChain,
abstract as abstractChain
} from 'viem/chains'
import { merge } from 'lodash'
import { Address } from 'viem'
/**
*
* Mainnets
*
*/
export const ethereum: Chain = merge(mainnetChain, {
abstractId: 101,
network: 'homestead',
name: 'Ethereum',
accounts: evmAccounts,
contracts: merge(mainnetChain.contracts, {
lzEndpoint: {
address: '0x66A71Dcef29A0fFBDBE3c6a460a3B5BC225Cd675' as Address
}
}),
minGasToTransferAndStoreRemote: 1_000_000n,
minGasToTransferAndStoreLocal: 100_000n
})
export const polygon: Chain = merge(polygonChain, {
abstractId: 109,
network: 'matic',
accounts: evmAccounts,
contracts: merge(polygonChain.contracts, {
lzEndpoint: {
address: '0x3c2269811836af69497E5F486A85D7316753cf62' as Address
}
}),
minGasToTransferAndStoreRemote: 1_000_000n,
minGasToTransferAndStoreLocal: 100_000n
})
export const base: Chain = merge(baseChain, {
abstractId: 184,
network: 'base',
accounts: evmAccounts,
contracts: merge(baseChain.contracts, {
lzEndpoint: {
address: '0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7' as Address
}
}),
minGasToTransferAndStoreRemote: 1_000_000n,
minGasToTransferAndStoreLocal: 100_000n
})
//@dev: todo deploy
export const abstract: Chain = merge(abstractChain, {
abstractId: 324,
zksync: true,
ethNetwork: 'mainnet',
network: 'abstract',
accounts: evmAccounts,
contracts: merge(abstractChain.contracts, {
lzEndpoint: {
address: '0x042b8289c97896529Ec2FE49ba1A8B9C956A86cC' as Address
}
}),
minGasToTransferAndStoreRemote: 1_000_000n,
minGasToTransferAndStoreLocal: 100_000n
})
// pnpm hardhat deploy-ONFT721 --network 2741 --name Cryptorastas --symbol RASTA
// npx hardhat compile --network 2741
/**
*
* Testnets
*
*/
export const sepolia: Chain = merge(sepoliaChain, {
abstractId: 10161,
accounts: evmAccounts,
network: 'sepolia',
contracts: merge(sepoliaChain.contracts, {
lzEndpoint: {
address: '0xae92d5aD7583AD66E49A0c67BAd18F6ba52dDDc1' as Address
}
}),
minGasToTransferAndStoreRemote: 1_000_000n,
minGasToTransferAndStoreLocal: 100_000n
})
/// @dev: todo deploy
export const polygonAmoy: Chain = merge(polygonAmoyChain, {
abstractId: 10267,
network: 'matic-amoy',
accounts: evmAccounts,
contracts: {
lzEndpoint: {
address: '0x55370E0fBB5f5b8dAeD978BA1c075a499eB107B8' as Address
}
},
minGasToTransferAndStoreRemote: 1_000_000n,
minGasToTransferAndStoreLocal: 100_000n
})
export const baseSepolia: Chain = merge(baseSepoliaChain, {
abstractId: 10245,
network: 'base-sepolia',
accounts: evmAccounts,
contracts: merge(baseSepoliaChain.contracts, {
lzEndpoint: {
address: '0x55370E0fBB5f5b8dAeD978BA1c075a499eB107B8' as Address
}
}),
minGasToTransferAndStoreRemote: 1_000_000n,
minGasToTransferAndStoreLocal: 100_000n
})
//@dev: todo deploy
export const abstractTestnet: Chain = merge(abstractTestnetChain, {
abstractId: 10313,
network: 'abstract-testnet',
accounts: evmAccounts,
contracts: merge(abstractTestnetChain.contracts, {
lzEndpoint: {
address: '0x68c1B65211c0d2d39Ed04b2b4F0B6f743A168320' as Address
}
}),
minGasToTransferAndStoreRemote: 1_000_000n,
minGasToTransferAndStoreLocal: 100_000n
})