@layerzerolabs/lz-aptos-sdk-v1 2.3.31 → 2.3.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -114,6 +114,7 @@ declare class Endpoint {
114
114
  readonly moduleName: string;
115
115
  constructor(sdk: SDK);
116
116
  initialize(signer: aptos.AptosAccount, localChainId: aptos.BCS.Uint16): Promise<aptos.Types.Transaction>;
117
+ getLocalChainId(): Promise<aptos.BCS.Uint64 | undefined>;
117
118
  getUATypeInfo(uaAddress: aptos.MaybeHexString): Promise<TypeInfoEx>;
118
119
  getOracleFee(oracleAddr: aptos.MaybeHexString, dstChainId: aptos.BCS.Uint16): Promise<aptos.BCS.Uint64>;
119
120
  getRegisterEvents(start: bigint, limit: number): Promise<aptos.Types.Event[]>;
@@ -122,6 +123,7 @@ declare class Endpoint {
122
123
  }): Promise<aptos.BCS.Uint64>;
123
124
  registerExecutorPayload(executorType: string): aptos.Types.EntryFunctionPayload;
124
125
  registerExecutor(signer: aptos.AptosAccount, executorType: string): Promise<aptos.Types.Transaction>;
126
+ getExecutorCap(version?: string): Promise<string | undefined>;
125
127
  }
126
128
 
127
129
  interface Fee {
@@ -200,7 +202,7 @@ declare class MsgLibAuth {
200
202
  readonly module: string;
201
203
  readonly moduleName: string;
202
204
  constructor(sdk: SDK);
203
- isAllowed(msglibReceive: string): Promise<boolean[]>;
205
+ isAllowed(msglibReceive: string): Promise<boolean>;
204
206
  denyPayload(msglibReceive: string): aptos.Types.EntryFunctionPayload;
205
207
  allowPayload(msglibReceive: string): aptos.Types.EntryFunctionPayload;
206
208
  allow(signer: aptos.AptosAccount, msglibReceive: string): Promise<aptos.Types.Transaction>;
@@ -233,10 +235,92 @@ declare class MsgLibV1_0 {
233
235
  declare class PacketEvent {
234
236
  private sdk;
235
237
  readonly module: string;
238
+ readonly OutboundEventType: string;
239
+ readonly InboundEventType: string;
236
240
  constructor(sdk: SDK);
237
- getInboundEvents(start: bigint, limit: number): Promise<aptos.Types.Event[]>;
241
+ /**
242
+ * returns an array of VersionedEvent objects for inbound events
243
+ * @param start - the start index of the events, starting from 0
244
+ * @param limit - the maximum number of events to return
245
+ * @returns an array of VersionedEvent objects
246
+ * @example
247
+ * [
248
+ * {
249
+ * "version": "2527457",
250
+ * "guid": {
251
+ * "creation_number": "7",
252
+ * "account_address": "0x54ad3d30af77b60d939ae356e6606de9a4da67583f02b962d2d3f2e481484e90"
253
+ * },
254
+ * "sequence_number": "0",
255
+ * "type": "0x54ad3d30af77b60d939ae356e6606de9a4da67583f02b962d2d3f2e481484e90::packet_event::InboundEvent",
256
+ * "data": {
257
+ * "packet": {
258
+ * "dst_address": "0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa",
259
+ * "dst_chain_id": "108",
260
+ * "nonce": "1",
261
+ * "payload": "0x00000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4857203756ea4273c43f583acd5b7a72aa168098da3fb9ffe4f6505515aae8fc9b0000000002faf080",
262
+ * "src_address": "0x50002cdfe7ccb0c41f519c6eb0653158d11cd907",
263
+ * "src_chain_id": "101"
264
+ * }
265
+ * }
266
+ * },
267
+ * {
268
+ * "version": "2617627",
269
+ * "guid": {
270
+ * "creation_number": "7",
271
+ * "account_address": "0x54ad3d30af77b60d939ae356e6606de9a4da67583f02b962d2d3f2e481484e90"
272
+ * },
273
+ * "sequence_number": "1",
274
+ * "type": "0x54ad3d30af77b60d939ae356e6606de9a4da67583f02b962d2d3f2e481484e90::packet_event::InboundEvent",
275
+ * "data": {
276
+ * "packet": {
277
+ * "dst_address": "0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa",
278
+ * "dst_chain_id": "108",
279
+ * "nonce": "2",
280
+ * "payload": "0x00000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7495f9f30a60c7cda8a60937b4281d00d8730596409820bbf59b2674624c76d9b00000000000f4240",
281
+ * "src_address": "0x50002cdfe7ccb0c41f519c6eb0653158d11cd907",
282
+ * "src_chain_id": "101"
283
+ * }
284
+ * }
285
+ * }
286
+ * ]
287
+ */
288
+ getInboundEvents(start: bigint, limit: number): Promise<aptos.Types.VersionedEvent[]>;
238
289
  getInboundEventCount(): Promise<number>;
239
- getOutboundEvents(start: bigint, limit: number): Promise<aptos.Types.Event[]>;
290
+ /**
291
+ * returns an array of VersionedEvent objects for outbound events
292
+ * @param start - the start index of the events, starting from 0
293
+ * @param limit - the maximum number of events to return
294
+ * @returns an array of VersionedEvent objects
295
+ * @example
296
+ * [
297
+ * {
298
+ * version: '3290647',
299
+ * guid: {
300
+ * creation_number: '8',
301
+ * account_address: '0x54ad3d30af77b60d939ae356e6606de9a4da67583f02b962d2d3f2e481484e90'
302
+ * },
303
+ * sequence_number: '0',
304
+ * type: '0x54ad3d30af77b60d939ae356e6606de9a4da67583f02b962d2d3f2e481484e90::packet_event::OutboundEvent',
305
+ * data: {
306
+ * encoded_packet: '0x0000000000000001006cf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa006f86bb63148d17d445ed5398ef26aa05bf76dd5b59010000000000000000000000007f5c764cbc14f9669b88837ca1490cca17c316070000000000000000000000003a983ffaa79e2d12ef94b50f68346a4b9c653a9a00000000001e848000'
307
+ * }
308
+ * },
309
+ * {
310
+ * version: '3308828',
311
+ * guid: {
312
+ * creation_number: '8',
313
+ * account_address: '0x54ad3d30af77b60d939ae356e6606de9a4da67583f02b962d2d3f2e481484e90'
314
+ * },
315
+ * sequence_number: '1',
316
+ * type: '0x54ad3d30af77b60d939ae356e6606de9a4da67583f02b962d2d3f2e481484e90::packet_event::OutboundEvent',
317
+ * data: {
318
+ * encoded_packet: '0x0000000000000001006cf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa006aa5972eee0c9b5bbb89a5b16d1d65f94c9ef25166010000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c700000000000000000000000015028e41c7ed391674505f6ea1213045571564e4000000000000006400'
319
+ * }
320
+ * }
321
+ * ]
322
+ */
323
+ getOutboundEvents(start: bigint, limit: number): Promise<aptos.Types.VersionedEvent[]>;
240
324
  getOutboundEventCount(): Promise<number>;
241
325
  }
242
326
 
@@ -403,6 +487,7 @@ declare class UlnReceive {
403
487
  readonly module: string;
404
488
  constructor(sdk: SDK);
405
489
  initialize(signer: aptos.AptosAccount): Promise<aptos.Types.Transaction>;
490
+ isInitialize(): Promise<boolean>;
406
491
  getOracleProposePayload(hash: Uint8Array, confirmations: aptos.BCS.Uint64 | aptos.BCS.Uint32): Promise<aptos.Types.EntryFunctionPayload>;
407
492
  oraclePropose(signer: aptos.AptosAccount, hash: string, confirmations: aptos.BCS.Uint64 | aptos.BCS.Uint32): Promise<aptos.Types.Transaction>;
408
493
  getProposal(oracle: aptos.MaybeHexString, hash: string): Promise<aptos.BCS.Uint64>;
@@ -508,9 +593,13 @@ declare const BRIDGE_PRECRIME_ADDRESS: {
508
593
  declare const OFT_PRECRIME_ADDRESS: {
509
594
  [stage in Stage]?: string;
510
595
  };
596
+ declare const COUNTER_ADDRESS: {
597
+ [stage in Stage]?: string;
598
+ };
511
599
 
512
600
  declare const constants_BRIDGE_ADDRESS: typeof BRIDGE_ADDRESS;
513
601
  declare const constants_BRIDGE_PRECRIME_ADDRESS: typeof BRIDGE_PRECRIME_ADDRESS;
602
+ declare const constants_COUNTER_ADDRESS: typeof COUNTER_ADDRESS;
514
603
  declare const constants_EXECUTOR_ADDRESS: typeof EXECUTOR_ADDRESS;
515
604
  declare const constants_EXECUTOR_EXT_ADDRESS: typeof EXECUTOR_EXT_ADDRESS;
516
605
  declare const constants_FAUCET_URL: typeof FAUCET_URL;
@@ -523,7 +612,7 @@ declare const constants_ORACLE_ADDRESS: typeof ORACLE_ADDRESS;
523
612
  declare const constants_ORACLE_SIGNER_ADDRESS: typeof ORACLE_SIGNER_ADDRESS;
524
613
  declare const constants_RELAYER_SIGNER_ADDRESS: typeof RELAYER_SIGNER_ADDRESS;
525
614
  declare namespace constants {
526
- export { constants_BRIDGE_ADDRESS as BRIDGE_ADDRESS, constants_BRIDGE_PRECRIME_ADDRESS as BRIDGE_PRECRIME_ADDRESS, constants_EXECUTOR_ADDRESS as EXECUTOR_ADDRESS, constants_EXECUTOR_EXT_ADDRESS as EXECUTOR_EXT_ADDRESS, constants_FAUCET_URL as FAUCET_URL, constants_LAYERZERO_ADDRESS as LAYERZERO_ADDRESS, constants_LAYERZERO_APPS_ADDRESS as LAYERZERO_APPS_ADDRESS, constants_LAYERZERO_APPS_PUBKEY as LAYERZERO_APPS_PUBKEY, constants_NODE_URL as NODE_URL, constants_OFT_PRECRIME_ADDRESS as OFT_PRECRIME_ADDRESS, constants_ORACLE_ADDRESS as ORACLE_ADDRESS, constants_ORACLE_SIGNER_ADDRESS as ORACLE_SIGNER_ADDRESS, constants_RELAYER_SIGNER_ADDRESS as RELAYER_SIGNER_ADDRESS };
615
+ export { constants_BRIDGE_ADDRESS as BRIDGE_ADDRESS, constants_BRIDGE_PRECRIME_ADDRESS as BRIDGE_PRECRIME_ADDRESS, constants_COUNTER_ADDRESS as COUNTER_ADDRESS, constants_EXECUTOR_ADDRESS as EXECUTOR_ADDRESS, constants_EXECUTOR_EXT_ADDRESS as EXECUTOR_EXT_ADDRESS, constants_FAUCET_URL as FAUCET_URL, constants_LAYERZERO_ADDRESS as LAYERZERO_ADDRESS, constants_LAYERZERO_APPS_ADDRESS as LAYERZERO_APPS_ADDRESS, constants_LAYERZERO_APPS_PUBKEY as LAYERZERO_APPS_PUBKEY, constants_NODE_URL as NODE_URL, constants_OFT_PRECRIME_ADDRESS as OFT_PRECRIME_ADDRESS, constants_ORACLE_ADDRESS as ORACLE_ADDRESS, constants_ORACLE_SIGNER_ADDRESS as ORACLE_SIGNER_ADDRESS, constants_RELAYER_SIGNER_ADDRESS as RELAYER_SIGNER_ADDRESS };
527
616
  }
528
617
 
529
618
  declare enum CoinType {
@@ -705,7 +794,29 @@ declare class MultisigOracleTss {
705
794
  allowlist(signer: aptos.AptosAccount, ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
706
795
  getDenylistPayload(ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): aptos.Types.EntryFunctionPayload;
707
796
  denylist(signer: aptos.AptosAccount, ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
708
- getSetFeePayload(remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64): aptos.Types.EntryFunctionPayload;
797
+ getInitConfigPayload(validators: Uint8Array[], threshold: aptos.BCS.Uint8, admins: aptos.MaybeHexString[]): {
798
+ function: string;
799
+ type_arguments: never[];
800
+ arguments: (number | Uint8Array[] | aptos.MaybeHexString[])[];
801
+ };
802
+ initConfig(signer: aptos.AptosAccount, validators: Uint8Array[], threshold: aptos.BCS.Uint8, admins: aptos.MaybeHexString[]): Promise<aptos.Types.Transaction>;
803
+ getSetFeePayload(remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64): {
804
+ function: string;
805
+ type_arguments: never[];
806
+ arguments: bigint[];
807
+ };
808
+ getUpgradePayload(): {
809
+ function: string;
810
+ type_arguments: never[];
811
+ arguments: never[];
812
+ };
813
+ upgrade(signer: aptos.AptosAccount): Promise<aptos.Types.Transaction>;
814
+ getSetUseMsoPayload(useMso: boolean): {
815
+ function: string;
816
+ type_arguments: never[];
817
+ arguments: boolean[];
818
+ };
819
+ setUseMso(signer: aptos.AptosAccount, useMso: boolean): Promise<aptos.Types.Transaction>;
709
820
  setFee(signer: aptos.AptosAccount, remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64): Promise<aptos.Types.Transaction>;
710
821
  getWithdrawFeePayload(receiver: aptos.MaybeHexString, amount: aptos.BCS.Uint64): aptos.Types.EntryFunctionPayload;
711
822
  withdrawFee(signer: aptos.AptosAccount, receiver: aptos.MaybeHexString, amount: aptos.BCS.Uint64): Promise<aptos.Types.Transaction>;
package/dist/index.d.ts CHANGED
@@ -114,6 +114,7 @@ declare class Endpoint {
114
114
  readonly moduleName: string;
115
115
  constructor(sdk: SDK);
116
116
  initialize(signer: aptos.AptosAccount, localChainId: aptos.BCS.Uint16): Promise<aptos.Types.Transaction>;
117
+ getLocalChainId(): Promise<aptos.BCS.Uint64 | undefined>;
117
118
  getUATypeInfo(uaAddress: aptos.MaybeHexString): Promise<TypeInfoEx>;
118
119
  getOracleFee(oracleAddr: aptos.MaybeHexString, dstChainId: aptos.BCS.Uint16): Promise<aptos.BCS.Uint64>;
119
120
  getRegisterEvents(start: bigint, limit: number): Promise<aptos.Types.Event[]>;
@@ -122,6 +123,7 @@ declare class Endpoint {
122
123
  }): Promise<aptos.BCS.Uint64>;
123
124
  registerExecutorPayload(executorType: string): aptos.Types.EntryFunctionPayload;
124
125
  registerExecutor(signer: aptos.AptosAccount, executorType: string): Promise<aptos.Types.Transaction>;
126
+ getExecutorCap(version?: string): Promise<string | undefined>;
125
127
  }
126
128
 
127
129
  interface Fee {
@@ -200,7 +202,7 @@ declare class MsgLibAuth {
200
202
  readonly module: string;
201
203
  readonly moduleName: string;
202
204
  constructor(sdk: SDK);
203
- isAllowed(msglibReceive: string): Promise<boolean[]>;
205
+ isAllowed(msglibReceive: string): Promise<boolean>;
204
206
  denyPayload(msglibReceive: string): aptos.Types.EntryFunctionPayload;
205
207
  allowPayload(msglibReceive: string): aptos.Types.EntryFunctionPayload;
206
208
  allow(signer: aptos.AptosAccount, msglibReceive: string): Promise<aptos.Types.Transaction>;
@@ -233,10 +235,92 @@ declare class MsgLibV1_0 {
233
235
  declare class PacketEvent {
234
236
  private sdk;
235
237
  readonly module: string;
238
+ readonly OutboundEventType: string;
239
+ readonly InboundEventType: string;
236
240
  constructor(sdk: SDK);
237
- getInboundEvents(start: bigint, limit: number): Promise<aptos.Types.Event[]>;
241
+ /**
242
+ * returns an array of VersionedEvent objects for inbound events
243
+ * @param start - the start index of the events, starting from 0
244
+ * @param limit - the maximum number of events to return
245
+ * @returns an array of VersionedEvent objects
246
+ * @example
247
+ * [
248
+ * {
249
+ * "version": "2527457",
250
+ * "guid": {
251
+ * "creation_number": "7",
252
+ * "account_address": "0x54ad3d30af77b60d939ae356e6606de9a4da67583f02b962d2d3f2e481484e90"
253
+ * },
254
+ * "sequence_number": "0",
255
+ * "type": "0x54ad3d30af77b60d939ae356e6606de9a4da67583f02b962d2d3f2e481484e90::packet_event::InboundEvent",
256
+ * "data": {
257
+ * "packet": {
258
+ * "dst_address": "0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa",
259
+ * "dst_chain_id": "108",
260
+ * "nonce": "1",
261
+ * "payload": "0x00000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4857203756ea4273c43f583acd5b7a72aa168098da3fb9ffe4f6505515aae8fc9b0000000002faf080",
262
+ * "src_address": "0x50002cdfe7ccb0c41f519c6eb0653158d11cd907",
263
+ * "src_chain_id": "101"
264
+ * }
265
+ * }
266
+ * },
267
+ * {
268
+ * "version": "2617627",
269
+ * "guid": {
270
+ * "creation_number": "7",
271
+ * "account_address": "0x54ad3d30af77b60d939ae356e6606de9a4da67583f02b962d2d3f2e481484e90"
272
+ * },
273
+ * "sequence_number": "1",
274
+ * "type": "0x54ad3d30af77b60d939ae356e6606de9a4da67583f02b962d2d3f2e481484e90::packet_event::InboundEvent",
275
+ * "data": {
276
+ * "packet": {
277
+ * "dst_address": "0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa",
278
+ * "dst_chain_id": "108",
279
+ * "nonce": "2",
280
+ * "payload": "0x00000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7495f9f30a60c7cda8a60937b4281d00d8730596409820bbf59b2674624c76d9b00000000000f4240",
281
+ * "src_address": "0x50002cdfe7ccb0c41f519c6eb0653158d11cd907",
282
+ * "src_chain_id": "101"
283
+ * }
284
+ * }
285
+ * }
286
+ * ]
287
+ */
288
+ getInboundEvents(start: bigint, limit: number): Promise<aptos.Types.VersionedEvent[]>;
238
289
  getInboundEventCount(): Promise<number>;
239
- getOutboundEvents(start: bigint, limit: number): Promise<aptos.Types.Event[]>;
290
+ /**
291
+ * returns an array of VersionedEvent objects for outbound events
292
+ * @param start - the start index of the events, starting from 0
293
+ * @param limit - the maximum number of events to return
294
+ * @returns an array of VersionedEvent objects
295
+ * @example
296
+ * [
297
+ * {
298
+ * version: '3290647',
299
+ * guid: {
300
+ * creation_number: '8',
301
+ * account_address: '0x54ad3d30af77b60d939ae356e6606de9a4da67583f02b962d2d3f2e481484e90'
302
+ * },
303
+ * sequence_number: '0',
304
+ * type: '0x54ad3d30af77b60d939ae356e6606de9a4da67583f02b962d2d3f2e481484e90::packet_event::OutboundEvent',
305
+ * data: {
306
+ * encoded_packet: '0x0000000000000001006cf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa006f86bb63148d17d445ed5398ef26aa05bf76dd5b59010000000000000000000000007f5c764cbc14f9669b88837ca1490cca17c316070000000000000000000000003a983ffaa79e2d12ef94b50f68346a4b9c653a9a00000000001e848000'
307
+ * }
308
+ * },
309
+ * {
310
+ * version: '3308828',
311
+ * guid: {
312
+ * creation_number: '8',
313
+ * account_address: '0x54ad3d30af77b60d939ae356e6606de9a4da67583f02b962d2d3f2e481484e90'
314
+ * },
315
+ * sequence_number: '1',
316
+ * type: '0x54ad3d30af77b60d939ae356e6606de9a4da67583f02b962d2d3f2e481484e90::packet_event::OutboundEvent',
317
+ * data: {
318
+ * encoded_packet: '0x0000000000000001006cf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa006aa5972eee0c9b5bbb89a5b16d1d65f94c9ef25166010000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c700000000000000000000000015028e41c7ed391674505f6ea1213045571564e4000000000000006400'
319
+ * }
320
+ * }
321
+ * ]
322
+ */
323
+ getOutboundEvents(start: bigint, limit: number): Promise<aptos.Types.VersionedEvent[]>;
240
324
  getOutboundEventCount(): Promise<number>;
241
325
  }
242
326
 
@@ -403,6 +487,7 @@ declare class UlnReceive {
403
487
  readonly module: string;
404
488
  constructor(sdk: SDK);
405
489
  initialize(signer: aptos.AptosAccount): Promise<aptos.Types.Transaction>;
490
+ isInitialize(): Promise<boolean>;
406
491
  getOracleProposePayload(hash: Uint8Array, confirmations: aptos.BCS.Uint64 | aptos.BCS.Uint32): Promise<aptos.Types.EntryFunctionPayload>;
407
492
  oraclePropose(signer: aptos.AptosAccount, hash: string, confirmations: aptos.BCS.Uint64 | aptos.BCS.Uint32): Promise<aptos.Types.Transaction>;
408
493
  getProposal(oracle: aptos.MaybeHexString, hash: string): Promise<aptos.BCS.Uint64>;
@@ -508,9 +593,13 @@ declare const BRIDGE_PRECRIME_ADDRESS: {
508
593
  declare const OFT_PRECRIME_ADDRESS: {
509
594
  [stage in Stage]?: string;
510
595
  };
596
+ declare const COUNTER_ADDRESS: {
597
+ [stage in Stage]?: string;
598
+ };
511
599
 
512
600
  declare const constants_BRIDGE_ADDRESS: typeof BRIDGE_ADDRESS;
513
601
  declare const constants_BRIDGE_PRECRIME_ADDRESS: typeof BRIDGE_PRECRIME_ADDRESS;
602
+ declare const constants_COUNTER_ADDRESS: typeof COUNTER_ADDRESS;
514
603
  declare const constants_EXECUTOR_ADDRESS: typeof EXECUTOR_ADDRESS;
515
604
  declare const constants_EXECUTOR_EXT_ADDRESS: typeof EXECUTOR_EXT_ADDRESS;
516
605
  declare const constants_FAUCET_URL: typeof FAUCET_URL;
@@ -523,7 +612,7 @@ declare const constants_ORACLE_ADDRESS: typeof ORACLE_ADDRESS;
523
612
  declare const constants_ORACLE_SIGNER_ADDRESS: typeof ORACLE_SIGNER_ADDRESS;
524
613
  declare const constants_RELAYER_SIGNER_ADDRESS: typeof RELAYER_SIGNER_ADDRESS;
525
614
  declare namespace constants {
526
- export { constants_BRIDGE_ADDRESS as BRIDGE_ADDRESS, constants_BRIDGE_PRECRIME_ADDRESS as BRIDGE_PRECRIME_ADDRESS, constants_EXECUTOR_ADDRESS as EXECUTOR_ADDRESS, constants_EXECUTOR_EXT_ADDRESS as EXECUTOR_EXT_ADDRESS, constants_FAUCET_URL as FAUCET_URL, constants_LAYERZERO_ADDRESS as LAYERZERO_ADDRESS, constants_LAYERZERO_APPS_ADDRESS as LAYERZERO_APPS_ADDRESS, constants_LAYERZERO_APPS_PUBKEY as LAYERZERO_APPS_PUBKEY, constants_NODE_URL as NODE_URL, constants_OFT_PRECRIME_ADDRESS as OFT_PRECRIME_ADDRESS, constants_ORACLE_ADDRESS as ORACLE_ADDRESS, constants_ORACLE_SIGNER_ADDRESS as ORACLE_SIGNER_ADDRESS, constants_RELAYER_SIGNER_ADDRESS as RELAYER_SIGNER_ADDRESS };
615
+ export { constants_BRIDGE_ADDRESS as BRIDGE_ADDRESS, constants_BRIDGE_PRECRIME_ADDRESS as BRIDGE_PRECRIME_ADDRESS, constants_COUNTER_ADDRESS as COUNTER_ADDRESS, constants_EXECUTOR_ADDRESS as EXECUTOR_ADDRESS, constants_EXECUTOR_EXT_ADDRESS as EXECUTOR_EXT_ADDRESS, constants_FAUCET_URL as FAUCET_URL, constants_LAYERZERO_ADDRESS as LAYERZERO_ADDRESS, constants_LAYERZERO_APPS_ADDRESS as LAYERZERO_APPS_ADDRESS, constants_LAYERZERO_APPS_PUBKEY as LAYERZERO_APPS_PUBKEY, constants_NODE_URL as NODE_URL, constants_OFT_PRECRIME_ADDRESS as OFT_PRECRIME_ADDRESS, constants_ORACLE_ADDRESS as ORACLE_ADDRESS, constants_ORACLE_SIGNER_ADDRESS as ORACLE_SIGNER_ADDRESS, constants_RELAYER_SIGNER_ADDRESS as RELAYER_SIGNER_ADDRESS };
527
616
  }
528
617
 
529
618
  declare enum CoinType {
@@ -705,7 +794,29 @@ declare class MultisigOracleTss {
705
794
  allowlist(signer: aptos.AptosAccount, ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
706
795
  getDenylistPayload(ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): aptos.Types.EntryFunctionPayload;
707
796
  denylist(signer: aptos.AptosAccount, ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
708
- getSetFeePayload(remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64): aptos.Types.EntryFunctionPayload;
797
+ getInitConfigPayload(validators: Uint8Array[], threshold: aptos.BCS.Uint8, admins: aptos.MaybeHexString[]): {
798
+ function: string;
799
+ type_arguments: never[];
800
+ arguments: (number | Uint8Array[] | aptos.MaybeHexString[])[];
801
+ };
802
+ initConfig(signer: aptos.AptosAccount, validators: Uint8Array[], threshold: aptos.BCS.Uint8, admins: aptos.MaybeHexString[]): Promise<aptos.Types.Transaction>;
803
+ getSetFeePayload(remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64): {
804
+ function: string;
805
+ type_arguments: never[];
806
+ arguments: bigint[];
807
+ };
808
+ getUpgradePayload(): {
809
+ function: string;
810
+ type_arguments: never[];
811
+ arguments: never[];
812
+ };
813
+ upgrade(signer: aptos.AptosAccount): Promise<aptos.Types.Transaction>;
814
+ getSetUseMsoPayload(useMso: boolean): {
815
+ function: string;
816
+ type_arguments: never[];
817
+ arguments: boolean[];
818
+ };
819
+ setUseMso(signer: aptos.AptosAccount, useMso: boolean): Promise<aptos.Types.Transaction>;
709
820
  setFee(signer: aptos.AptosAccount, remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64): Promise<aptos.Types.Transaction>;
710
821
  getWithdrawFeePayload(receiver: aptos.MaybeHexString, amount: aptos.BCS.Uint64): aptos.Types.EntryFunctionPayload;
711
822
  withdrawFee(signer: aptos.AptosAccount, receiver: aptos.MaybeHexString, amount: aptos.BCS.Uint64): Promise<aptos.Types.Transaction>;