-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlayerzero.config.ts
More file actions
55 lines (51 loc) · 1.38 KB
/
layerzero.config.ts
File metadata and controls
55 lines (51 loc) · 1.38 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
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { EndpointId } = require('@layerzerolabs/lz-definitions');
const { ExecutorOptionType } = require('@layerzerolabs/lz-v2-utilities');
const ethereumContract = {
eid: EndpointId.HOLESKY_V2_TESTNET,
contractName: 'ETHx_OFTAdapter',
};
const arbitrumContract = {
eid: EndpointId.ARBSEP_V2_TESTNET,
contractName: 'ETHx_OFT',
};
module.exports = {
contracts: [
{
contract: arbitrumContract,
},
{
contract: ethereumContract,
}
],
connections: [
{
from: arbitrumContract,
to: ethereumContract,
config: {
enforcedOptions: [
{
msgType: 1,
optionType: ExecutorOptionType.LZ_RECEIVE,
gas: 200000,
value: 0,
},
],
},
},
{
from: ethereumContract,
to: arbitrumContract,
config: {
enforcedOptions: [
{
msgType: 1,
optionType: ExecutorOptionType.LZ_RECEIVE,
gas: 200000,
value: 0,
},
],
},
},
],
};