@layerzerolabs/lz-v2-stellar-sdk 0.2.8 → 0.2.10

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.
@@ -35,6 +35,52 @@ export const CounterError = {
35
35
 
36
36
  export type CounterStorage = {tag: "EID", values: void} | {tag: "MaxReceivedNonce", values: readonly [u32, Buffer]} | {tag: "OrderedNonce", values: void} | {tag: "Count", values: void} | {tag: "ComposedCount", values: void} | {tag: "InboundCount", values: readonly [u32]} | {tag: "OutboundCount", values: readonly [u32]};
37
37
 
38
+ export const EndpointError = {
39
+ 1: {message:"AlreadyRegistered"},
40
+ 2: {message:"ComposeExists"},
41
+ 3: {message:"ComposeNotFound"},
42
+ 4: {message:"DefaultReceiveLibUnavailable"},
43
+ 5: {message:"DefaultSendLibUnavailable"},
44
+ 6: {message:"InsufficientNativeFee"},
45
+ 7: {message:"InsufficientZROFee"},
46
+ 8: {message:"InvalidExpiry"},
47
+ 9: {message:"InvalidIndex"},
48
+ 10: {message:"InvalidNonce"},
49
+ 11: {message:"InvalidPayloadHash"},
50
+ 12: {message:"InvalidReceiveLibrary"},
51
+ 13: {message:"OnlyNonDefaultLib"},
52
+ 14: {message:"OnlyReceiveLib"},
53
+ 15: {message:"OnlyRegisteredLib"},
54
+ 16: {message:"OnlySendLib"},
55
+ 17: {message:"PathNotInitializable"},
56
+ 18: {message:"PathNotVerifiable"},
57
+ 19: {message:"PayloadHashNotFound"},
58
+ 20: {message:"SameValue"},
59
+ 21: {message:"Unauthorized"},
60
+ 22: {message:"UnsupportedEid"},
61
+ 23: {message:"ZeroZROFee"},
62
+ 24: {message:"ZROUnavailable"}
63
+ }
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
38
84
 
39
85
  /**
40
86
  * Parameters for sending a cross-chain message.
@@ -232,13 +278,13 @@ src_eid: u32;
232
278
  */
233
279
  export interface FeeRecipient {
234
280
  /**
235
- * Address to receive the fee.
236
- */
237
- address: string;
238
- /**
239
281
  * Amount of fee to pay.
240
282
  */
241
283
  amount: i128;
284
+ /**
285
+ * The address to send the fee to.
286
+ */
287
+ to: string;
242
288
  }
243
289
 
244
290
 
@@ -261,10 +307,10 @@ zro_fee_recipients: Array<FeeRecipient>;
261
307
  }
262
308
 
263
309
  export const OAppError = {
264
- 20000: {message:"InvalidOptions"},
265
- 20001: {message:"NoPeer"},
266
- 20002: {message:"OnlyPeer"},
267
- 20003: {message:"ZROTokenUnavailable"}
310
+ 2000: {message:"InvalidOptions"},
311
+ 2001: {message:"NoPeer"},
312
+ 2002: {message:"OnlyPeer"},
313
+ 2003: {message:"ZROTokenUnavailable"}
268
314
  }
269
315
 
270
316
  export type OAppCoreStorage = {tag: "Endpoint", values: void} | {tag: "Peer", values: readonly [u32]};
@@ -281,27 +327,27 @@ export type OAppOptionsType3Storage = {tag: "EnforcedOptions", values: readonly
281
327
 
282
328
 
283
329
  export const BufferReaderError = {
284
- 10000: {message:"InvalidLength"},
285
- 10001: {message:"InvalidAddressPayload"}
330
+ 1000: {message:"InvalidLength"},
331
+ 1001: {message:"InvalidAddressPayload"}
286
332
  }
287
333
 
288
334
  export const BufferWriterError = {
289
- 10100: {message:"InvalidAddressPayload"}
335
+ 1100: {message:"InvalidAddressPayload"}
290
336
  }
291
337
 
292
338
  export const TtlError = {
293
- 10200: {message:"InvalidTtlConfig"},
294
- 10201: {message:"TtlConfigFrozen"},
295
- 10202: {message:"TtlConfigAlreadyFrozen"}
339
+ 1200: {message:"InvalidTtlConfig"},
340
+ 1201: {message:"TtlConfigFrozen"},
341
+ 1202: {message:"TtlConfigAlreadyFrozen"}
296
342
  }
297
343
 
298
344
  export const OwnableError = {
299
- 10300: {message:"OwnerAlreadySet"},
300
- 10301: {message:"OwnerNotSet"}
345
+ 1300: {message:"OwnerAlreadySet"},
346
+ 1301: {message:"OwnerNotSet"}
301
347
  }
302
348
 
303
349
  export const BytesExtError = {
304
- 10400: {message:"LengthMismatch"}
350
+ 1400: {message:"LengthMismatch"}
305
351
  }
306
352
 
307
353
 
@@ -323,7 +369,7 @@ extend_to: u32;
323
369
  threshold: u32;
324
370
  }
325
371
 
326
- export type TtlConfigData = {tag: "Frozen", values: void} | {tag: "Instance", values: void} | {tag: "Persistent", values: void} | {tag: "Temporary", values: void};
372
+ export type TtlConfigStorage = {tag: "Frozen", values: void} | {tag: "Instance", values: void} | {tag: "Persistent", values: void};
327
373
 
328
374
  export interface Client {
329
375
  /**
@@ -387,9 +433,29 @@ export interface Client {
387
433
  }) => Promise<AssembledTransaction<null>>
388
434
 
389
435
  /**
390
- * Construct and simulate a set_peer transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
436
+ * Construct and simulate a quote transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
391
437
  */
392
- set_peer: ({eid, peer}: {eid: u32, peer: Option<Buffer>}, txnOptions?: {
438
+ quote: ({dst_eid, msg_type, options, pay_in_zro}: {dst_eid: u32, msg_type: u32, options: Buffer, pay_in_zro: boolean}, txnOptions?: {
439
+ /**
440
+ * The fee to pay for the transaction. Default: BASE_FEE
441
+ */
442
+ fee?: number;
443
+
444
+ /**
445
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
446
+ */
447
+ timeoutInSeconds?: number;
448
+
449
+ /**
450
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
451
+ */
452
+ simulate?: boolean;
453
+ }) => Promise<AssembledTransaction<MessagingFee>>
454
+
455
+ /**
456
+ * Construct and simulate a increment transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
457
+ */
458
+ increment: ({caller, dst_eid, msg_type, options, fee}: {caller: string, dst_eid: u32, msg_type: u32, options: Buffer, fee: MessagingFee}, txnOptions?: {
393
459
  /**
394
460
  * The fee to pay for the transaction. Default: BASE_FEE
395
461
  */
@@ -407,9 +473,9 @@ export interface Client {
407
473
  }) => Promise<AssembledTransaction<null>>
408
474
 
409
475
  /**
410
- * Construct and simulate a set_delegate transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
476
+ * Construct and simulate a set_ordered_nonce transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
411
477
  */
412
- set_delegate: ({delegate}: {delegate: Option<string>}, txnOptions?: {
478
+ set_ordered_nonce: ({ordered_nonce}: {ordered_nonce: boolean}, txnOptions?: {
413
479
  /**
414
480
  * The fee to pay for the transaction. Default: BASE_FEE
415
481
  */
@@ -427,9 +493,9 @@ export interface Client {
427
493
  }) => Promise<AssembledTransaction<null>>
428
494
 
429
495
  /**
430
- * Construct and simulate a peer transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
496
+ * Construct and simulate a skip_inbound_nonce transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
431
497
  */
432
- peer: ({eid}: {eid: u32}, txnOptions?: {
498
+ skip_inbound_nonce: ({src_eid, sender, nonce}: {src_eid: u32, sender: Buffer, nonce: u64}, txnOptions?: {
433
499
  /**
434
500
  * The fee to pay for the transaction. Default: BASE_FEE
435
501
  */
@@ -444,12 +510,12 @@ export interface Client {
444
510
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
445
511
  */
446
512
  simulate?: boolean;
447
- }) => Promise<AssembledTransaction<Option<Buffer>>>
513
+ }) => Promise<AssembledTransaction<null>>
448
514
 
449
515
  /**
450
- * Construct and simulate a oapp_version transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
516
+ * Construct and simulate a eid transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
451
517
  */
452
- oapp_version: (txnOptions?: {
518
+ eid: (txnOptions?: {
453
519
  /**
454
520
  * The fee to pay for the transaction. Default: BASE_FEE
455
521
  */
@@ -464,12 +530,12 @@ export interface Client {
464
530
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
465
531
  */
466
532
  simulate?: boolean;
467
- }) => Promise<AssembledTransaction<readonly [u64, u64]>>
533
+ }) => Promise<AssembledTransaction<u32>>
468
534
 
469
535
  /**
470
- * Construct and simulate a endpoint transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
536
+ * Construct and simulate a count transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
471
537
  */
472
- endpoint: (txnOptions?: {
538
+ count: (txnOptions?: {
473
539
  /**
474
540
  * The fee to pay for the transaction. Default: BASE_FEE
475
541
  */
@@ -484,12 +550,12 @@ export interface Client {
484
550
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
485
551
  */
486
552
  simulate?: boolean;
487
- }) => Promise<AssembledTransaction<string>>
553
+ }) => Promise<AssembledTransaction<u64>>
488
554
 
489
555
  /**
490
- * Construct and simulate a allow_initialize_path transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
556
+ * Construct and simulate a composed_count transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
491
557
  */
492
- allow_initialize_path: ({origin}: {origin: Origin}, txnOptions?: {
558
+ composed_count: (txnOptions?: {
493
559
  /**
494
560
  * The fee to pay for the transaction. Default: BASE_FEE
495
561
  */
@@ -504,7 +570,47 @@ export interface Client {
504
570
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
505
571
  */
506
572
  simulate?: boolean;
507
- }) => Promise<AssembledTransaction<boolean>>
573
+ }) => Promise<AssembledTransaction<u64>>
574
+
575
+ /**
576
+ * Construct and simulate a inbound_count transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
577
+ */
578
+ inbound_count: ({eid}: {eid: u32}, txnOptions?: {
579
+ /**
580
+ * The fee to pay for the transaction. Default: BASE_FEE
581
+ */
582
+ fee?: number;
583
+
584
+ /**
585
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
586
+ */
587
+ timeoutInSeconds?: number;
588
+
589
+ /**
590
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
591
+ */
592
+ simulate?: boolean;
593
+ }) => Promise<AssembledTransaction<u64>>
594
+
595
+ /**
596
+ * Construct and simulate a outbound_count transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
597
+ */
598
+ outbound_count: ({eid}: {eid: u32}, txnOptions?: {
599
+ /**
600
+ * The fee to pay for the transaction. Default: BASE_FEE
601
+ */
602
+ fee?: number;
603
+
604
+ /**
605
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
606
+ */
607
+ timeoutInSeconds?: number;
608
+
609
+ /**
610
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
611
+ */
612
+ simulate?: boolean;
613
+ }) => Promise<AssembledTransaction<u64>>
508
614
 
509
615
  /**
510
616
  * Construct and simulate a next_nonce transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
@@ -547,9 +653,16 @@ export interface Client {
547
653
  }) => Promise<AssembledTransaction<null>>
548
654
 
549
655
  /**
550
- * Construct and simulate a is_compose_msg_sender transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
656
+ * Construct and simulate a allow_initialize_path transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
657
+ * Checks if a messaging path can be initialized for the given origin.
658
+ *
659
+ * # Arguments
660
+ * * `origin` - The origin of the message
661
+ *
662
+ * # Returns
663
+ * True if the path can be initialized, false otherwise
551
664
  */
552
- is_compose_msg_sender: ({origin, message, sender}: {origin: Origin, message: Buffer, sender: string}, txnOptions?: {
665
+ allow_initialize_path: ({origin}: {origin: Origin}, txnOptions?: {
553
666
  /**
554
667
  * The fee to pay for the transaction. Default: BASE_FEE
555
668
  */
@@ -567,9 +680,21 @@ export interface Client {
567
680
  }) => Promise<AssembledTransaction<boolean>>
568
681
 
569
682
  /**
570
- * Construct and simulate a quote transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
683
+ * Construct and simulate a is_compose_msg_sender transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
684
+ * Indicates whether an address is an approved composeMsg sender to the Endpoint.
685
+ *
686
+ * Applications can optionally choose to implement separate composeMsg senders that are NOT the bridging layer.
687
+ * The default sender IS the OAppReceiver implementer.
688
+ *
689
+ * # Arguments
690
+ * * `origin` - The origin information containing the source endpoint and sender address
691
+ * * `message` - The lzReceive payload
692
+ * * `sender` - The sender address to check
693
+ *
694
+ * # Returns
695
+ * True if the sender is a valid composeMsg sender, false otherwise
571
696
  */
572
- quote: ({dst_eid, msg_type, options, pay_in_zro}: {dst_eid: u32, msg_type: u32, options: Buffer, pay_in_zro: boolean}, txnOptions?: {
697
+ is_compose_msg_sender: ({origin, message, sender}: {origin: Origin, message: Buffer, sender: string}, txnOptions?: {
573
698
  /**
574
699
  * The fee to pay for the transaction. Default: BASE_FEE
575
700
  */
@@ -584,12 +709,12 @@ export interface Client {
584
709
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
585
710
  */
586
711
  simulate?: boolean;
587
- }) => Promise<AssembledTransaction<MessagingFee>>
712
+ }) => Promise<AssembledTransaction<boolean>>
588
713
 
589
714
  /**
590
- * Construct and simulate a increment transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
715
+ * Construct and simulate a lz_compose transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
591
716
  */
592
- increment: ({sender, dst_eid, msg_type, options, fee}: {sender: string, dst_eid: u32, msg_type: u32, options: Buffer, fee: MessagingFee}, txnOptions?: {
717
+ lz_compose: ({executor, from, guid, index, message, extra_data, value}: {executor: string, from: string, guid: Buffer, index: u32, message: Buffer, extra_data: Buffer, value: i128}, txnOptions?: {
593
718
  /**
594
719
  * The fee to pay for the transaction. Default: BASE_FEE
595
720
  */
@@ -607,9 +732,9 @@ export interface Client {
607
732
  }) => Promise<AssembledTransaction<null>>
608
733
 
609
734
  /**
610
- * Construct and simulate a set_ordered_nonce transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
735
+ * Construct and simulate a enforced_options transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
611
736
  */
612
- set_ordered_nonce: ({ordered_nonce}: {ordered_nonce: boolean}, txnOptions?: {
737
+ enforced_options: ({eid, msg_type}: {eid: u32, msg_type: u32}, txnOptions?: {
613
738
  /**
614
739
  * The fee to pay for the transaction. Default: BASE_FEE
615
740
  */
@@ -624,12 +749,12 @@ export interface Client {
624
749
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
625
750
  */
626
751
  simulate?: boolean;
627
- }) => Promise<AssembledTransaction<null>>
752
+ }) => Promise<AssembledTransaction<Buffer>>
628
753
 
629
754
  /**
630
- * Construct and simulate a skip_inbound_nonce transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
755
+ * Construct and simulate a set_enforced_options transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
631
756
  */
632
- skip_inbound_nonce: ({src_eid, sender, nonce}: {src_eid: u32, sender: Buffer, nonce: u64}, txnOptions?: {
757
+ set_enforced_options: ({options}: {options: Array<EnforcedOptionParam>}, txnOptions?: {
633
758
  /**
634
759
  * The fee to pay for the transaction. Default: BASE_FEE
635
760
  */
@@ -647,9 +772,9 @@ export interface Client {
647
772
  }) => Promise<AssembledTransaction<null>>
648
773
 
649
774
  /**
650
- * Construct and simulate a eid transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
775
+ * Construct and simulate a combine_options transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
651
776
  */
652
- eid: (txnOptions?: {
777
+ combine_options: ({eid, msg_type, extra_options}: {eid: u32, msg_type: u32, extra_options: Buffer}, txnOptions?: {
653
778
  /**
654
779
  * The fee to pay for the transaction. Default: BASE_FEE
655
780
  */
@@ -664,12 +789,18 @@ export interface Client {
664
789
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
665
790
  */
666
791
  simulate?: boolean;
667
- }) => Promise<AssembledTransaction<u32>>
792
+ }) => Promise<AssembledTransaction<Buffer>>
668
793
 
669
794
  /**
670
- * Construct and simulate a count transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
795
+ * Construct and simulate a oapp_version transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
796
+ * Retrieves the OApp version information.
797
+ *
798
+ * # Returns
799
+ * A tuple containing:
800
+ * - `sender_version`: The version of the OAppSender implementation
801
+ * - `receiver_version`: The version of the OAppReceiver implementation
671
802
  */
672
- count: (txnOptions?: {
803
+ oapp_version: (txnOptions?: {
673
804
  /**
674
805
  * The fee to pay for the transaction. Default: BASE_FEE
675
806
  */
@@ -684,12 +815,16 @@ export interface Client {
684
815
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
685
816
  */
686
817
  simulate?: boolean;
687
- }) => Promise<AssembledTransaction<u64>>
818
+ }) => Promise<AssembledTransaction<readonly [u64, u64]>>
688
819
 
689
820
  /**
690
- * Construct and simulate a composed_count transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
821
+ * Construct and simulate a endpoint transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
822
+ * Retrieves the LayerZero endpoint associated with the OApp.
823
+ *
824
+ * # Returns
825
+ * The LayerZero endpoint client
691
826
  */
692
- composed_count: (txnOptions?: {
827
+ endpoint: (txnOptions?: {
693
828
  /**
694
829
  * The fee to pay for the transaction. Default: BASE_FEE
695
830
  */
@@ -704,12 +839,19 @@ export interface Client {
704
839
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
705
840
  */
706
841
  simulate?: boolean;
707
- }) => Promise<AssembledTransaction<u64>>
842
+ }) => Promise<AssembledTransaction<string>>
708
843
 
709
844
  /**
710
- * Construct and simulate a inbound_count transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
845
+ * Construct and simulate a peer transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
846
+ * Retrieves the peer (OApp) associated with a corresponding endpoint.
847
+ *
848
+ * # Arguments
849
+ * * `eid` - The endpoint ID
850
+ *
851
+ * # Returns
852
+ * The peer address (OApp instance) associated with the corresponding endpoint
711
853
  */
712
- inbound_count: ({eid}: {eid: u32}, txnOptions?: {
854
+ peer: ({eid}: {eid: u32}, txnOptions?: {
713
855
  /**
714
856
  * The fee to pay for the transaction. Default: BASE_FEE
715
857
  */
@@ -724,12 +866,17 @@ export interface Client {
724
866
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
725
867
  */
726
868
  simulate?: boolean;
727
- }) => Promise<AssembledTransaction<u64>>
869
+ }) => Promise<AssembledTransaction<Option<Buffer>>>
728
870
 
729
871
  /**
730
- * Construct and simulate a outbound_count transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
872
+ * Construct and simulate a set_peer transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
873
+ * Sets or removes the peer address (OApp instance) for a corresponding endpoint.
874
+ *
875
+ * # Arguments
876
+ * * `eid` - The endpoint ID
877
+ * * `peer` - The address of the peer to be associated with the corresponding endpoint, or None to remove the peer
731
878
  */
732
- outbound_count: ({eid}: {eid: u32}, txnOptions?: {
879
+ set_peer: ({eid, peer}: {eid: u32, peer: Option<Buffer>}, txnOptions?: {
733
880
  /**
734
881
  * The fee to pay for the transaction. Default: BASE_FEE
735
882
  */
@@ -744,12 +891,16 @@ export interface Client {
744
891
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
745
892
  */
746
893
  simulate?: boolean;
747
- }) => Promise<AssembledTransaction<u64>>
894
+ }) => Promise<AssembledTransaction<null>>
748
895
 
749
896
  /**
750
- * Construct and simulate a lz_compose transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
897
+ * Construct and simulate a set_delegate transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
898
+ * Sets the delegate address for the OApp Core.
899
+ *
900
+ * # Arguments
901
+ * * `delegate` - The address of the delegate to be set, or None to remove the delegate
751
902
  */
752
- lz_compose: ({executor, from, guid, index, message, extra_data, value}: {executor: string, from: string, guid: Buffer, index: u32, message: Buffer, extra_data: Buffer, value: i128}, txnOptions?: {
903
+ set_delegate: ({delegate}: {delegate: Option<string>}, txnOptions?: {
753
904
  /**
754
905
  * The fee to pay for the transaction. Default: BASE_FEE
755
906
  */
@@ -791,18 +942,9 @@ export class Client extends ContractClient {
791
942
  "AAAAAAAAAAAAAAAFb3duZXIAAAAAAAAAAAAAAQAAA+gAAAAT",
792
943
  "AAAAAAAAAAAAAAASdHJhbnNmZXJfb3duZXJzaGlwAAAAAAABAAAAAAAAAAluZXdfb3duZXIAAAAAAAATAAAAAA==",
793
944
  "AAAAAAAAAAAAAAAScmVub3VuY2Vfb3duZXJzaGlwAAAAAAAAAAAAAA==",
794
- "AAAAAAAAAAAAAAAIc2V0X3BlZXIAAAACAAAAAAAAAANlaWQAAAAABAAAAAAAAAAEcGVlcgAAA+gAAAPuAAAAIAAAAAA=",
795
- "AAAAAAAAAAAAAAAMc2V0X2RlbGVnYXRlAAAAAQAAAAAAAAAIZGVsZWdhdGUAAAPoAAAAEwAAAAA=",
796
- "AAAAAAAAAAAAAAAEcGVlcgAAAAEAAAAAAAAAA2VpZAAAAAAEAAAAAQAAA+gAAAPuAAAAIA==",
797
- "AAAAAAAAAAAAAAAMb2FwcF92ZXJzaW9uAAAAAAAAAAEAAAPtAAAAAgAAAAYAAAAG",
798
- "AAAAAAAAAAAAAAAIZW5kcG9pbnQAAAAAAAAAAQAAABM=",
799
- "AAAAAAAAAAAAAAAVYWxsb3dfaW5pdGlhbGl6ZV9wYXRoAAAAAAAAAQAAAA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AH0AAAAAxNZXNzYWdpbmdGZWUAAAAA",
947
+ "AAAAAAAAAAAAAAAJaW5jcmVtZW50AAAAAAAABQAAAAAAAAAGY2FsbGVyAAAAAAATAAAAAAAAAAdkc3RfZWlkAAAAAAQAAAAAAAAACG1zZ190eXBlAAAABAAAAAAAAAAHb3B0aW9ucwAAAAAOAAAAAAAAAANmZWUAAAAH0AAAAAxNZXNzYWdpbmdGZWUAAAAA",
806
948
  "AAAAAAAAAAAAAAARc2V0X29yZGVyZWRfbm9uY2UAAAAAAAABAAAAAAAAAA1vcmRlcmVkX25vbmNlAAAAAAAAAQAAAAA=",
807
949
  "AAAAAAAAAAAAAAASc2tpcF9pbmJvdW5kX25vbmNlAAAAAAADAAAAAAAAAAdzcmNfZWlkAAAAAAQAAAAAAAAABnNlbmRlcgAAAAAD7gAAACAAAAAAAAAABW5vbmNlAAAAAAAABgAAAAA=",
808
950
  "AAAAAAAAAAAAAAADZWlkAAAAAAAAAAABAAAABA==",
@@ -810,7 +952,39 @@ export class Client extends ContractClient {
810
952
  "AAAAAAAAAAAAAAAOY29tcG9zZWRfY291bnQAAAAAAAAAAAABAAAABg==",
811
953
  "AAAAAAAAAAAAAAANaW5ib3VuZF9jb3VudAAAAAAAAAEAAAAAAAAAA2VpZAAAAAAEAAAAAQAAAAY=",
812
954
  "AAAAAAAAAAAAAAAOb3V0Ym91bmRfY291bnQAAAAAAAEAAAAAAAAAA2VpZAAAAAAEAAAAAQAAAAY=",
955
+ "AAAAAAAAAAAAAAAKbmV4dF9ub25jZQAAAAAAAgAAAAAAAAAHc3JjX2VpZAAAAAAEAAAAAAAAAAZzZW5kZXIAAAAAA+4AAAAgAAAAAQAAAAY=",
956
+ "AAAAAAAAAAAAAAAKbHpfcmVjZWl2ZQAAAAAABgAAAAAAAAAIZXhlY3V0b3IAAAATAAAAAAAAAAZvcmlnaW4AAAAAB9AAAAAGT3JpZ2luAAAAAAAAAAAABGd1aWQAAAPuAAAAIAAAAAAAAAAHbWVzc2F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AAAABAAAAEk93bmVyc2hpcFJlbm91bmNlZAAAAAAAAQAAAAAAAAAJb2xkX293bmVyAAAAAAAAEwAAAAAAAAAC",
839
1013
  "AAAAAgAAAAAAAAAAAAAAFURlZmF1bHRPd25hYmxlU3RvcmFnZQAAAAAAAAEAAAAAAAAAAAAAAAVPd25lcgAAAA==",
840
1014
  "AAAAAQAAAFdBIHBhaXIgb2YgVFRMIHZhbHVlczogdGhyZXNob2xkICh3aGVuIHRvIHRyaWdnZXIgZXh0ZW5zaW9uKSBhbmQgZXh0ZW5kX3RvICh0YXJnZXQgVFRMKS4AAAAAAAAAAAlUdGxDb25maWcAAAAAAAACAAAAKFRhcmdldCBUVEwgYWZ0ZXIgZXh0ZW5zaW9uIChpbiBsZWRnZXJzKS4AAAAJZXh0ZW5kX3RvAAAAAAAABAAAADNUVEwgdGhyZXNob2xkIHRoYXQgdHJpZ2dlcnMgZXh0ZW5zaW9uIChpbiBsZWRnZXJzKS4AAAAACXRocmVzaG9sZAAAAAAAAAQ=",
841
- "AAAAAgAAAAAAAAAAAAAADVR0bENvbmZpZ0RhdGEAAAAAAAAEAAAAAAAAAAAAAAAGRnJvemVuAAAAAAAAAAAAAAAAAAhJbnN0YW5jZQAAAAAAAAAAAAAAClBlcnNpc3RlbnQAAAAAAAAAAAAAAAAACVRlbXBvcmFyeQAAAA==" ]),
1015
+ "AAAAAgAAAAAAAAAAAAAAEFR0bENvbmZpZ1N0b3JhZ2UAAAADAAAAAAAAAAAAAAAGRnJvemVuAAAAAAAAAAAAAAAAAAhJbnN0YW5jZQAAAAAAAAAAAAAAClBlcnNpc3RlbnQAAA==" ]),
842
1016
  options
843
1017
  )
844
1018
  }
@@ -846,15 +1020,6 @@ export class Client extends ContractClient {
846
1020
  owner: this.txFromJSON<Option<string>>,
847
1021
  transfer_ownership: this.txFromJSON<null>,
848
1022
  renounce_ownership: this.txFromJSON<null>,
849
- set_peer: this.txFromJSON<null>,
850
- set_delegate: this.txFromJSON<null>,
851
- peer: this.txFromJSON<Option<Buffer>>,
852
- oapp_version: this.txFromJSON<readonly [u64, u64]>,
853
- endpoint: this.txFromJSON<string>,
854
- allow_initialize_path: this.txFromJSON<boolean>,
855
- next_nonce: this.txFromJSON<u64>,
856
- lz_receive: this.txFromJSON<null>,
857
- is_compose_msg_sender: this.txFromJSON<boolean>,
858
1023
  quote: this.txFromJSON<MessagingFee>,
859
1024
  increment: this.txFromJSON<null>,
860
1025
  set_ordered_nonce: this.txFromJSON<null>,
@@ -864,6 +1029,18 @@ export class Client extends ContractClient {
864
1029
  composed_count: this.txFromJSON<u64>,
865
1030
  inbound_count: this.txFromJSON<u64>,
866
1031
  outbound_count: this.txFromJSON<u64>,
867
- lz_compose: this.txFromJSON<null>
1032
+ next_nonce: this.txFromJSON<u64>,
1033
+ lz_receive: this.txFromJSON<null>,
1034
+ allow_initialize_path: this.txFromJSON<boolean>,
1035
+ is_compose_msg_sender: this.txFromJSON<boolean>,
1036
+ lz_compose: this.txFromJSON<null>,
1037
+ enforced_options: this.txFromJSON<Buffer>,
1038
+ set_enforced_options: this.txFromJSON<null>,
1039
+ combine_options: this.txFromJSON<Buffer>,
1040
+ oapp_version: this.txFromJSON<readonly [u64, u64]>,
1041
+ endpoint: this.txFromJSON<string>,
1042
+ peer: this.txFromJSON<Option<Buffer>>,
1043
+ set_peer: this.txFromJSON<null>,
1044
+ set_delegate: this.txFromJSON<null>
868
1045
  }
869
1046
  }