Repository navigation
Expand file tree
/
Copy pathlayerzero.config.ts
More file actions
64 lines (64 loc) · 2.57 KB
/
Copy pathlayerzero.config.ts
File metadata and controls
64 lines (64 loc) · 2.57 KB
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
import { EndpointId } from '@layerzerolabs/lz-definitions'
const rootstock_testnetContract = {
eid: EndpointId.ROOTSTOCK_V2_TESTNET,
contractName: 'MyOFT',
}
const sepolia_testnetContract = {
eid: EndpointId.SEPOLIA_V2_TESTNET,
contractName: 'MyOFT',
}
export default {
contracts: [{ contract: rootstock_testnetContract }, { contract: sepolia_testnetContract }],
connections: [
{
from: rootstock_testnetContract,
to: sepolia_testnetContract,
config: {
sendLibrary: '0xd682ECF100f6F4284138AA925348633B0611Ae21',
receiveLibraryConfig: { receiveLibrary: '0xcF1B0F4106B0324F96fEfcC31bA9498caa80701C', gracePeriod: 0 },
sendConfig: {
executorConfig: { maxMessageSize: 10000, executor: '0x9dB9Ca3305B48F196D18082e91cB64663b13d014' },
ulnConfig: {
confirmations: 1,
requiredDVNs: ['0x88B27057A9e00c5F05DDa29241027afF63f9e6e0'],
optionalDVNs: [],
optionalDVNThreshold: 0,
},
},
receiveConfig: {
ulnConfig: {
confirmations: 2,
requiredDVNs: ['0x88B27057A9e00c5F05DDa29241027afF63f9e6e0'],
optionalDVNs: [],
optionalDVNThreshold: 0,
},
},
},
},
{
from: sepolia_testnetContract,
to: rootstock_testnetContract,
config: {
sendLibrary: '0xcc1ae8Cf5D3904Cef3360A9532B477529b177cCE',
receiveLibraryConfig: { receiveLibrary: '0xdAf00F5eE2158dD58E0d3857851c432E34A3A851', gracePeriod: 0 },
sendConfig: {
executorConfig: { maxMessageSize: 10000, executor: '0x718B92b5CB0a5552039B593faF724D182A881eDA' },
ulnConfig: {
confirmations: 2,
requiredDVNs: ['0x8eebf8b423B73bFCa51a1Db4B7354AA0bFCA9193'],
optionalDVNs: [],
optionalDVNThreshold: 0,
},
},
receiveConfig: {
ulnConfig: {
confirmations: 1,
requiredDVNs: ['0x8eebf8b423B73bFCa51a1Db4B7354AA0bFCA9193'],
optionalDVNs: [],
optionalDVNThreshold: 0,
},
},
},
},
],
}