-
Notifications
You must be signed in to change notification settings - Fork 280
Expand file tree
/
Copy pathlayerzero.config.ts
More file actions
47 lines (43 loc) · 1.87 KB
/
Copy pathlayerzero.config.ts
File metadata and controls
47 lines (43 loc) · 1.87 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
import { ChannelId, EndpointId } from '@layerzerolabs/lz-definitions'
import { ExecutorOptionType } from '@layerzerolabs/lz-v2-utilities'
import { type OAppReadOmniGraphHardhat, type OmniPointHardhat } from '@layerzerolabs/toolbox-hardhat'
// TODO: This example uses a single LayerZero Labs DVN on the read channel for clarity.
// Production read OApps must use at least 2 DVNs to avoid single-point-of-trust state queries.
// Before mainnet, add a non-LayerZero-Labs DVN to `requiredDVNs` below. See:
// - DVN providers: https://docs.layerzero.network/v2/deployments/dvn-addresses
// - Migration guide: https://docs.layerzero.network/v2/get-started/migrating-from-single-dvn
const sepoliaContract: OmniPointHardhat = {
eid: EndpointId.ARBSEP_V2_TESTNET,
contractName: 'ReadPublic',
}
const config: OAppReadOmniGraphHardhat = {
contracts: [
{
contract: sepoliaContract,
config: {
readChannelConfigs: [
{
channelId: ChannelId.READ_CHANNEL_1,
active: true,
readLibrary: '0x54320b901FDe49Ba98de821Ccf374BA4358a8bf6',
ulnConfig: {
requiredDVNs: ['0x5c8c267174e1f345234ff5315d6cfd6716763bac'],
executor: '0x5Df3a1cEbBD9c8BA7F8dF51Fd632A9aef8308897',
},
enforcedOptions: [
{
msgType: 1,
optionType: ExecutorOptionType.LZ_READ,
gas: 80000,
size: 1000000,
value: 0,
},
],
},
],
},
},
],
connections: [],
}
export default config