-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconstants.ts
439 lines (417 loc) · 17 KB
/
constants.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
import { PublicKey } from '@solana/web3.js'
import { addressToBytes32 } from '@layerzerolabs/lz-v2-utilities'
import { EndpointId } from '@layerzerolabs/lz-definitions'
import { ethers } from 'ethers'
import { BN } from '@coral-xyz/anchor'
export const ENDPOINT_PROGRAM_ID = new PublicKey('76y77prsiCMvXMjuoZ5VRrhG5qYBrUMYTE5WgHqgjEn6')
export const SEND_LIB_PROGRAM_ID = new PublicKey('7a4WjyR8VZ7yZz5XJAKm39BUGn5iT9CKcv2pmG9tdXVH')
export const RECEIVE_LIB_PROGRAM_ID = SEND_LIB_PROGRAM_ID
export const TREASURY_PROGRAM_ID = SEND_LIB_PROGRAM_ID
export const ULN_PROGRAM_ID = SEND_LIB_PROGRAM_ID
export const EXECUTOR_PROGRAM_ID = new PublicKey('6doghB248px58JSSwG4qejQ46kFMW4AMj7vzJnWZHNZn')
export const EXECUTOR_PDA = new PublicKey('AwrbHeCyniXaQhiJZkLhgWdUCteeWSGaSN1sTfLiY7xK')
export const DVN_PROGRAM_ID = new PublicKey('HtEYV4xB4wvsj5fgTkcfuChYpvGYzgzwvNhgDZQNh7wW')
export const PRICE_FEED_PROGRAM_ID = new PublicKey('8ahPGPjEbpgGaZx2NV1iG5Shj7TDwvsjkEDcGWjt94TP')
export const DEFAULT_SEND_LIB_CONFIG_PDA = new PublicKey('3hfYq9afjFbedp4GZk6n9ZefuCbhvgf4z4Jiyw2QEEPY')
export const DEFAULT_RECEIVE_LIB_CONFIG_PDA = new PublicKey('5zekkyLszMmcPKhJNhkwctXdEEg4xLtwbfayZkaFhNCQ')
export const CHAIN_EVENT_ID_PLACEHOLDER = 0 // placeholder for the chain_event_id field in the OCCVaultMessage type
export const DST_EID = 40200
export const TEST_DST_EID = EndpointId.ORDERLY_V2_TESTNET // eid of orderly testnet, defined by layerzero: https://docs.layerzero.network/v2/developers/evm/technical-reference/deployed-contracts
export const MAIN_DST_EID = EndpointId.ORDERLY_V2_MAINNET // eid of orderly mainnet, defined by layerzero: https://docs.layerzero.network/v2/developers/evm/technical-reference/deployed-contracts
export const DEV_SOL_CHAIN_ID = 901901901 // the chainid for solana devnet, defined by orderly
export const MAIN_SOL_CHAIN_ID = 900900900 // the chainid for solana mainnet, defined by orderly
export const SOLANA_MAINNET_EID = EndpointId.SOLANA_V2_MAINNET
export const SOLANA_DEVNET_EID = EndpointId.SOLANA_V2_TESTNET
export const ORDER_BACKWARD_FEE = new BN(112233)
export const USDC_BACKWARD_FEE = new BN(112234)
export const DEV_USDC_MINT = new PublicKey('4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU')
export const MAIN_USDC_MINT = new PublicKey('EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v')
export const ENV = ['local', 'dev', 'qa', 'staging', 'mainnet']
export const SOLANA_INFO: { [key: string]: any } = {
local: {
rpc: 'http://localhost:8899',
chainEventId: CHAIN_EVENT_ID_PLACEHOLDER,
solChainId: DEV_SOL_CHAIN_ID,
},
dev: {
rpc: 'https://api.devnet.solana.com',
chainEventId: CHAIN_EVENT_ID_PLACEHOLDER,
solChainId: DEV_SOL_CHAIN_ID,
},
qa: {
rpc: 'https://api.devnet.solana.com',
chainEventId: CHAIN_EVENT_ID_PLACEHOLDER,
solChainId: DEV_SOL_CHAIN_ID,
},
staging: {
rpc: 'https://api.devnet.solana.com',
chainEventId: CHAIN_EVENT_ID_PLACEHOLDER,
solChainId: DEV_SOL_CHAIN_ID,
},
mainnet: {
rpc: 'https://api.mainnet-beta.solana.com',
chainEventId: CHAIN_EVENT_ID_PLACEHOLDER,
solChainId: MAIN_SOL_CHAIN_ID,
},
}
export const ORDER_DECIMALS_ON_ETHEREUM = ethers.BigNumber.from('1000000000000000000') // 10^18
export const DECIMALS_SCALE_FACTOR = ethers.BigNumber.from('100000000') // 10^8
export const ORDER_DECIMALS_ON_SOLANA = ethers.BigNumber.from('10000000000') // 10^10
export const USDC_DECIMALS_ON_SOLANA = ethers.BigNumber.from('1000000') // 10^6
export const VALOR_DECIMALS_ON_SOLANA = ethers.BigNumber.from('1000000') // 10^6
export const LZ_RECEIVE_TYPES_SEED = 'LzReceiveTypes'
export const PEER_SEED = 'Peer'
export const PROXY_CONFIG_SEED = 'ProxyConfig'
export const CLAIM_DATA_SEED = 'ClaimData'
export const ACCOUNT_LIST_SEED = 'AccountList'
export const BACKWARD_FEE_SEED = 'BackwardFee'
export const PAYLOAD_OPTIONS_SEED = 'PayloadOptions'
export const PROXY_ACCOUNTS: { [key: string]: any } = {
local: {
programId: new PublicKey('DATLWKEWMR3weq4VxN28e16T31aDL5ENvR49w3unjahv'),
configPda: new PublicKey('v6RzpFC2veBhP9iZEPYvxDCDBLAqTCnhu5NV4GMkeuc'), // placeholder
usdcMint: DEV_USDC_MINT,
multisig: new PublicKey('AbQgW1N8JAZxQFdh3VTx3ukGdGCN1vQYADktp3d2HDYw'),
},
dev: {
programId: new PublicKey('DATLWKEWMR3weq4VxN28e16T31aDL5ENvR49w3unjahv'),
configPda: new PublicKey('v6RzpFC2veBhP9iZEPYvxDCDBLAqTCnhu5NV4GMkeuc'),
usdcMint: DEV_USDC_MINT,
multisig: new PublicKey('AbQgW1N8JAZxQFdh3VTx3ukGdGCN1vQYADktp3d2HDYw'),
},
qa: {
programId: new PublicKey('2HH2MwVZKqizwQ8DV4CAibLiTqQtkR7SmHDLPimut6rV'),
configPda: new PublicKey('HY978ZaHEjjyCnhfjt2yStBTNtQHtqCsAJ9pYrBvcuUU'),
usdcMint: DEV_USDC_MINT,
multisig: new PublicKey('2WG7UG81NsutAzKDpJp6ZepEisMKrXS9XvMVPhsfqtuB'),
},
staging: {
programId: new PublicKey('Dwnm7RyRY9mYLwqZbwfc54qKqziapBL39XHgZexJmnAq'),
configPda: new PublicKey('HY978ZaHEjjyCnhfjt2yStBTNtQHtqCsAJ9pYrBvcuUU'),
usdcMint: DEV_USDC_MINT,
oftStore: new PublicKey('2CTq4P25faaymcqMCCwHzdiyvbUJShtPS74qDRZwYX6J'),
},
mainnet: {
programId: new PublicKey('Dwnm7RyRY9mYLwqZbwfc54qKqziapBL39XHgZexJmnAq'),
configPda: new PublicKey('HY978ZaHEjjyCnhfjt2yStBTNtQHtqCsAJ9pYrBvcuUU'),
usdcMint: MAIN_USDC_MINT,
multisig: new PublicKey('6aQHPsgaSxCGwf1uAVetEmzuz9bpv9Rn4bq9jTg91RH8'),
},
}
export const OFT_ACCOUNTS: { [key: string]: any } = {
local: {
programId: new PublicKey('Cz7PQf471Pg3MiHKbKSTTZD5am2ZjJ93bon3gPThyH6v'),
mint: new PublicKey('DW7MkwAmEUV72vQNi8dCu9rzeqaBrR8AtxyVaj2rXBxT'),
mintAuthority: new PublicKey('6oRZ8usrt5gfARp2HB8yq2A1qUZft9UkGaP3kWRvj77F'),
escrow: new PublicKey('BsePJupeGSfvi919fg5pvvxGY5Y1uZS7x7uFyzMaYJuP'),
oftStore: new PublicKey('6oRZ8usrt5gfARp2HB8yq2A1qUZft9UkGaP3kWRvj77F'),
ledgerOccManger: addressToBytes32('0xb846DF606b592B9646db03aE2568951651D9D5BC'),
evmOftAddress: addressToBytes32('0xe2eB2df1CA9D90c8501049bAEEEf57f111782903'),
// alt: address lookup table account for oft
alt: new PublicKey('9JLjAcaHGwJXqk8HFJtgvu5qWnWqcNhq59m7tW1XN9Ab'), // TODO: placeholder
//
},
dev: {
programId: new PublicKey('Cz7PQf471Pg3MiHKbKSTTZD5am2ZjJ93bon3gPThyH6v'),
mint: new PublicKey('DW7MkwAmEUV72vQNi8dCu9rzeqaBrR8AtxyVaj2rXBxT'),
mintAuthority: new PublicKey('6oRZ8usrt5gfARp2HB8yq2A1qUZft9UkGaP3kWRvj77F'),
escrow: new PublicKey('BsePJupeGSfvi919fg5pvvxGY5Y1uZS7x7uFyzMaYJuP'),
oftStore: new PublicKey('6oRZ8usrt5gfARp2HB8yq2A1qUZft9UkGaP3kWRvj77F'),
ledgerOccManger: addressToBytes32('0xb846DF606b592B9646db03aE2568951651D9D5BC'),
evmOftAddress: addressToBytes32('0xe2eB2df1CA9D90c8501049bAEEEf57f111782903'),
// alt: address lookup table account for oft
alt: new PublicKey('9JLjAcaHGwJXqk8HFJtgvu5qWnWqcNhq59m7tW1XN9Ab'),
},
qa: {
programId: new PublicKey('B2BBh7JdvdsmzuG7b4dedeBjSMfmiS91z6gQS3DhRLns'),
mint: new PublicKey('HJzi8SG3NtDx3vyuw3Gaq1jdCEYDqiWCyCrVKHCqKW2H'),
mintAuthority: new PublicKey('2CTq4P25faaymcqMCCwHzdiyvbUJShtPS74qDRZwYX6J'),
escrow: new PublicKey('85FsyjiLqfyZciG1s3ERzsc47LuxQiEnoUfcnV9urAYZ'),
// alt: address lookup table account for oft
alt: new PublicKey('HdLTw2ASK3GBqpUxTyW6bnAVBb4JkBomuGZQFeDnVFxm'),
ledgerOccManger: addressToBytes32('0xD14bEE159B4a8E918f0A43EBf2F801eea93BeD53'),
evmOftAddress: addressToBytes32('0x562874e9fcb02Ae6164781EcFb4AeAa169E99B18'),
},
staging: {
programId: new PublicKey('3LftFSsxKksyiPYZyJ68Y6VuWcRkVce3Zg5TxwLC6D1o'),
mint: new PublicKey('8bgqsYvAQQCjXyi9ePx4ZG9jVazwe2ptSiKZYYNsq4rY'),
mintAuthority: new PublicKey('76XwEc7cdcrYpi7PNn5t9TxX3fUQiXjeqVN68GsBdcpk'),
escrow: new PublicKey('69q8xwVRgx6UgBmt3C2DayxEUyphKfYENHQyxZ6kMWg3'),
oftStore: new PublicKey('76XwEc7cdcrYpi7PNn5t9TxX3fUQiXjeqVN68GsBdcpk'),
multisig: new PublicKey('48usEusxMDBxpjLkyrarHupqodAfxXyoaLDVNDJFvkME'),
// alt: address lookup table account for oft
alt: new PublicKey('HdLTw2ASK3GBqpUxTyW6bnAVBb4JkBomuGZQFeDnVFxm'),
ledgerOccManger: addressToBytes32('0x45f3039A9A0eefcC8997e030d9F3cCBb1A7AC6C1'),
evmOftAddress: addressToBytes32('0x5f11B4510BC50EfB82Fb55D7839a46e9b621f8C2'),
},
mainnet: {
programId: new PublicKey('GZGX6QfUo62VbPyYqPZS6t27Uke1dJmoAP6V3rw6ntTH'),
mint: new PublicKey('ABt79MkRXUsoHuV2CVQT32YMXQhTparKFjmidQxgiQ6E'),
mintAuthority: new PublicKey('Efvf2QfcPAJc8XCd1MV1MN1JLNDZRKj2ZbJ3xg6pAf7'),
escrow: new PublicKey('7PGWT8rti8jpRiySA9pfG3fiReW5Go8jQp3UWXc5SrSk'),
oftStore: new PublicKey('Efvf2QfcPAJc8XCd1MV1MN1JLNDZRKj2ZbJ3xg6pAf7'),
// alt: address lookup table account for oft
alt: new PublicKey('HdLTw2ASK3GBqpUxTyW6bnAVBb4JkBomuGZQFeDnVFxm'),
ledgerOccManger: addressToBytes32('0x68835941c7C300bFEF44D1D68b83798791901eB8'),
evmOftAddress: addressToBytes32('0x4E200fE2f3eFb977d5fd9c430A41531FB04d97B8'),
},
}
export const LEDGER_OAPP_ACCOUNTS: { [key: string]: any } = {
local: {
proxy: '0xdD733F92F99A584bD46F37f3558034B4268B5EB8',
impl: '0x4DFF7A3746b7bd934123715a2E9F5FC669E1Ae7e',
multisig: '0xF2BC568E4bD0F7437C77FA982F4b51786086872a',
},
dev: {
proxy: '0xdD733F92F99A584bD46F37f3558034B4268B5EB8',
impl: '0x4DFF7A3746b7bd934123715a2E9F5FC669E1Ae7e',
multisig: '0xF2BC568E4bD0F7437C77FA982F4b51786086872a',
},
qa: {
proxy: '0xF2BC568E4bD0F7437C77FA982F4b51786086872a',
impl: '0x5E01a54187DD679119B6562C0c897916B7CAD47f',
multisig: '0xF2BC568E4bD0F7437C77FA982F4b51786086872a',
},
staging: {
proxy: '0xF2BC568E4bD0F7437C77FA982F4b51786086872a',
impl: '0x5E01a54187DD679119B6562C0c897916B7CAD47f',
multisig: '0xF2BC568E4bD0F7437C77FA982F4b51786086872a',
},
mainnet: {
proxy: '0xF2BC568E4bD0F7437C77FA982F4b51786086872a',
impl: '0x5E01a54187DD679119B6562C0c897916B7CAD47f',
multisig: '0xF2BC568E4bD0F7437C77FA982F4b51786086872a',
},
}
export const OPTIONS: { [key: string]: any } = {
local: {
LZ_RECEIVE_GAS: 800000,
LZ_RECEIVE_VALUE: 0,
LZ_COMPOSE_GAS: 0,
LZ_COMPOSE_VALUE: 0,
},
dev: {
LZ_RECEIVE_GAS: 800000,
LZ_RECEIVE_VALUE: 0,
LZ_COMPOSE_GAS: 0,
LZ_COMPOSE_VALUE: 0,
},
qa: {
LZ_RECEIVE_GAS: 800000,
LZ_RECEIVE_VALUE: 0,
LZ_COMPOSE_GAS: 0,
LZ_COMPOSE_VALUE: 0,
},
staging: {
LZ_RECEIVE_GAS: 800000,
LZ_RECEIVE_VALUE: 0,
LZ_COMPOSE_GAS: 0,
LZ_COMPOSE_VALUE: 0,
},
mainnet: {
LZ_RECEIVE_GAS: 1000000,
LZ_RECEIVE_VALUE: 0,
LZ_COMPOSE_GAS: 0,
LZ_COMPOSE_VALUE: 0,
},
}
export const OPTIONS_TO_ORDERLY: { [key: string]: any } = {
local: {
LZ_RECEIVE_GAS: 1000000,
LZ_RECEIVE_VALUE: 0,
LZ_COMPOSE_GAS: 0,
LZ_COMPOSE_VALUE: 0,
},
dev: {
LZ_RECEIVE_GAS: 1000000,
LZ_RECEIVE_VALUE: 0,
LZ_COMPOSE_GAS: 0,
LZ_COMPOSE_VALUE: 0,
},
qa: {
LZ_RECEIVE_GAS: 1000000,
LZ_RECEIVE_VALUE: 0,
LZ_COMPOSE_GAS: 0,
LZ_COMPOSE_VALUE: 0,
},
staging: {
LZ_RECEIVE_GAS: 1000000,
LZ_RECEIVE_VALUE: 0,
LZ_COMPOSE_GAS: 0,
LZ_COMPOSE_VALUE: 0,
},
mainnet: {
LZ_RECEIVE_GAS: 500000,
LZ_RECEIVE_VALUE: 0,
LZ_COMPOSE_GAS: 0,
LZ_COMPOSE_VALUE: 0,
},
}
export const OPTIONS_TO_SOLANA: { [key: string]: any } = {
local: {
LZ_RECEIVE_GAS: 1000000,
LZ_RECEIVE_VALUE: 0,
LZ_COMPOSE_GAS: 0,
LZ_COMPOSE_VALUE: 0,
},
dev: {
LZ_RECEIVE_GAS: 1000000,
LZ_RECEIVE_VALUE: 0,
LZ_COMPOSE_GAS: 0,
LZ_COMPOSE_VALUE: 0,
},
qa: {
LZ_RECEIVE_GAS: 1000000,
LZ_RECEIVE_VALUE: 0,
LZ_COMPOSE_GAS: 0,
LZ_COMPOSE_VALUE: 0,
},
staging: {
LZ_RECEIVE_GAS: 1000000,
LZ_RECEIVE_VALUE: 0,
LZ_COMPOSE_GAS: 0,
LZ_COMPOSE_VALUE: 0,
},
mainnet: {
LZ_RECEIVE_GAS: 500000,
LZ_RECEIVE_VALUE: 0,
LZ_COMPOSE_GAS: 0,
LZ_COMPOSE_VALUE: 0,
},
}
export const EVM_TEST_LZ_ENDPOINT = '0x6EDCE65403992e310A62460808c4b910D972f10f'
export const EVM_MAIN_LZ_ENDPOINT = '0x1a44076050125825900e736c501f859c50fE728c'
export const LZ_CONFIG: { [key: string]: any } = {
// Lz Config for Solana devnet
soldev: {
endpointId: EndpointId.SOLANA_V2_TESTNET,
chainId: DEV_SOL_CHAIN_ID,
sendLibConfig: {
sendLibAddress: '2XgGZG4oP29U3w5h4nTk1V2LFHL23zKDPJjs3psGzLKQ',
executorConfig: {
executorAddress: 'AwrbHeCyniXaQhiJZkLhgWdUCteeWSGaSN1sTfLiY7xK',
maxMessageSize: 10000,
},
ulnConfig: {
confirmations: 10,
requiredDVNCount: 1,
optionalDVNCount: 0,
optionalDVNThreshold: 0,
requiredDVNs: ['4VDjp6XQaxoZf5RGwiPU9NR1EXSZn2TP4ATMmiSzLfhb'],
optionalDVNs: [],
},
},
receiveLibConfig: {
receiveLibAddress: '2XgGZG4oP29U3w5h4nTk1V2LFHL23zKDPJjs3psGzLKQ',
timeout: 0,
ulnConfig: {
confirmations: 1,
requiredDVNCount: 1,
optionalDVNCount: 0,
optionalDVNThreshold: 0,
requiredDVNs: ['4VDjp6XQaxoZf5RGwiPU9NR1EXSZn2TP4ATMmiSzLfhb'],
optionalDVNs: [],
},
},
},
// Lz Config for Solana mainnet
solana: {
endpointId: EndpointId.SOLANA_V2_MAINNET,
chainId: MAIN_SOL_CHAIN_ID,
sendLibConfig: {
sendLibAddress: '2XgGZG4oP29U3w5h4nTk1V2LFHL23zKDPJjs3psGzLKQ',
executorConfig: {
executorAddress: 'AwrbHeCyniXaQhiJZkLhgWdUCteeWSGaSN1sTfLiY7xK',
maxMessageSize: 10000,
},
ulnConfig: {
confirmations: 32,
requiredDVNCount: 1,
optionalDVNCount: 0,
optionalDVNThreshold: 0,
requiredDVNs: ['4VDjp6XQaxoZf5RGwiPU9NR1EXSZn2TP4ATMmiSzLfhb'],
optionalDVNs: [],
},
},
receiveLibConfig: {
receiveLibAddress: '2XgGZG4oP29U3w5h4nTk1V2LFHL23zKDPJjs3psGzLKQ',
timeout: 0,
ulnConfig: {
confirmations: 5,
requiredDVNCount: 1,
optionalDVNCount: 0,
optionalDVNThreshold: 0,
requiredDVNs: ['4VDjp6XQaxoZf5RGwiPU9NR1EXSZn2TP4ATMmiSzLfhb'],
optionalDVNs: [],
},
},
},
orderlysepolia: {
endpointId: EndpointId.ORDERLY_V2_TESTNET,
chainId: 4460,
endpointAddress: EVM_TEST_LZ_ENDPOINT,
sendLibConfig: {
sendLibAddress: '0x8e3Dc55b7A1f7Fe4ce328A1c90dC1B935a30Cc42',
executorConfig: {
executorAddress: '0x1e567E344B2d990D2ECDFa4e14A1c9a1Beb83e96',
},
ulnConfig: {
requiredDVNs: ['0x175d2B829604b82270D384393D25C666a822ab60'],
},
},
receiveLibConfig: {
receiveLibAddress: '0x3013C32e5F45E69ceA9baD4d96786704C2aE148c',
ulnConfig: {
requiredDVNs: ['0x175d2B829604b82270D384393D25C666a822ab60'],
},
},
},
orderly: {
endpointId: EndpointId.ORDERLY_V2_MAINNET,
chainId: 291,
endpointAddress: EVM_MAIN_LZ_ENDPOINT,
sendLibConfig: {
sendLibAddress: '0x5B23E2bAe5C5f00e804EA2C4C9abe601604378fa',
executorConfig: {
executorAddress: '0x1aCe9DD1BC743aD036eF2D92Af42Ca70A1159df5',
},
ulnConfig: {
requiredDVNs: ['0xF53857dbc0D2c59D5666006EC200cbA2936B8c35'],
},
},
receiveLibConfig: {
receiveLibAddress: '0xCFf08a35A5f27F306e2DA99ff198dB90f13DEF77',
ulnConfig: {
requiredDVNs: ['0xF53857dbc0D2c59D5666006EC200cbA2936B8c35'],
},
},
},
}
export enum LedgerToken {
ORDER = 0,
ESORDER = 1,
USDC = 2,
PLACEHOLDER = 3,
}
export enum PayloadType {
/* ====== Payloads From vault side ====== */
ClaimReward = 0,
Stake = 1,
CreateOrderUnstakeRequest = 2,
CancelOrderUnstakeRequest = 3,
WithdrawOrder = 4,
EsOrderUnstakeAndVest = 5,
CancelVestingRequest = 6,
CancelAllVestingRequests = 7, // Not supported anymore. Do not remove for backward compatibility
ClaimVestingRequest = 8,
RedeemValor = 9,
ClaimUsdcRevenue = 10,
/* ====== Backward Payloads from ledger side ====== */
ClaimRewardBackward = 11,
WithdrawOrderBackward = 12,
ClaimVestingRequestBackward = 13,
ClaimUsdcRevenueBackward = 14,
/* ====== New Payloads ====== */
UnstakeOrderNow = 15,
ClaimRewardSolana = 16,
}