@layerzerolabs/lz-v2-stellar-sdk 0.2.13 → 0.2.18

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.
Files changed (107) hide show
  1. package/.turbo/turbo-build.log +1 -0
  2. package/.turbo/turbo-test.log +1009 -0
  3. package/dist/generated/bml.d.ts +104 -37
  4. package/dist/generated/bml.js +83 -42
  5. package/dist/generated/counter.d.ts +334 -175
  6. package/dist/generated/counter.js +109 -63
  7. package/dist/generated/dvn.d.ts +1985 -0
  8. package/dist/generated/dvn.js +326 -0
  9. package/dist/generated/dvn_fee_lib.d.ts +690 -0
  10. package/dist/generated/dvn_fee_lib.js +163 -0
  11. package/dist/generated/endpoint.d.ts +155 -46
  12. package/dist/generated/endpoint.js +93 -50
  13. package/dist/generated/executor.d.ts +1841 -0
  14. package/dist/generated/executor.js +312 -0
  15. package/dist/generated/executor_fee_lib.d.ts +1083 -0
  16. package/dist/generated/executor_fee_lib.js +255 -0
  17. package/dist/generated/executor_helper.d.ts +981 -0
  18. package/dist/generated/executor_helper.js +236 -0
  19. package/dist/generated/oft_std.d.ts +1722 -0
  20. package/dist/generated/oft_std.js +316 -0
  21. package/dist/generated/price_feed.d.ts +1077 -0
  22. package/dist/generated/price_feed.js +210 -0
  23. package/dist/generated/sml.d.ts +171 -56
  24. package/dist/generated/sml.js +111 -62
  25. package/dist/generated/treasury.d.ts +896 -0
  26. package/dist/generated/treasury.js +219 -0
  27. package/dist/generated/uln302.d.ts +175 -75
  28. package/dist/generated/uln302.js +126 -82
  29. package/dist/generated/upgrader.d.ts +70 -0
  30. package/dist/generated/upgrader.js +19 -0
  31. package/dist/index.d.ts +10 -0
  32. package/dist/index.js +14 -0
  33. package/dist/wasm/blocked-message-lib.d.ts +1 -0
  34. package/dist/wasm/blocked-message-lib.js +2 -0
  35. package/dist/wasm/counter.d.ts +1 -0
  36. package/dist/wasm/counter.js +2 -0
  37. package/dist/wasm/dvn-fee-lib.d.ts +1 -0
  38. package/dist/wasm/dvn-fee-lib.js +2 -0
  39. package/dist/wasm/dvn.d.ts +1 -0
  40. package/dist/wasm/dvn.js +2 -0
  41. package/dist/wasm/endpoint-v2.d.ts +1 -0
  42. package/dist/wasm/endpoint-v2.js +2 -0
  43. package/dist/wasm/executor-fee-lib.d.ts +1 -0
  44. package/dist/wasm/executor-fee-lib.js +2 -0
  45. package/dist/wasm/executor-helper.d.ts +1 -0
  46. package/dist/wasm/executor-helper.js +2 -0
  47. package/dist/wasm/executor.d.ts +1 -0
  48. package/dist/wasm/executor.js +2 -0
  49. package/dist/wasm/layerzero-views.d.ts +1 -0
  50. package/dist/wasm/layerzero-views.js +2 -0
  51. package/dist/wasm/oft-std.d.ts +1 -0
  52. package/dist/wasm/oft-std.js +2 -0
  53. package/dist/wasm/price-feed.d.ts +1 -0
  54. package/dist/wasm/price-feed.js +2 -0
  55. package/dist/wasm/simple-message-lib.d.ts +1 -0
  56. package/dist/wasm/simple-message-lib.js +2 -0
  57. package/dist/wasm/treasury.d.ts +1 -0
  58. package/dist/wasm/treasury.js +2 -0
  59. package/dist/wasm/uln302.d.ts +1 -0
  60. package/dist/wasm/uln302.js +2 -0
  61. package/dist/wasm/upgrader.d.ts +1 -0
  62. package/dist/wasm/upgrader.js +2 -0
  63. package/dist/wasm.d.ts +15 -0
  64. package/dist/wasm.js +15 -0
  65. package/package.json +12 -9
  66. package/src/generated/bml.ts +117 -66
  67. package/src/generated/counter.ts +338 -191
  68. package/src/generated/dvn.ts +2036 -0
  69. package/src/generated/dvn_fee_lib.ts +693 -0
  70. package/src/generated/endpoint.ts +177 -80
  71. package/src/generated/executor.ts +228 -127
  72. package/src/generated/executor_fee_lib.ts +1072 -0
  73. package/src/generated/executor_helper.ts +163 -57
  74. package/src/generated/oft_std.ts +800 -246
  75. package/src/generated/price_feed.ts +1108 -0
  76. package/src/generated/sml.ts +194 -91
  77. package/src/generated/treasury.ts +943 -0
  78. package/src/generated/uln302.ts +211 -113
  79. package/src/generated/upgrader.ts +102 -0
  80. package/src/index.ts +17 -0
  81. package/src/wasm/blocked-message-lib.ts +2 -0
  82. package/src/wasm/counter.ts +2 -0
  83. package/src/wasm/dvn-fee-lib.ts +2 -0
  84. package/src/wasm/dvn.ts +2 -0
  85. package/src/wasm/endpoint-v2.ts +2 -0
  86. package/src/wasm/executor-fee-lib.ts +2 -0
  87. package/src/wasm/executor-helper.ts +2 -0
  88. package/src/wasm/executor.ts +2 -0
  89. package/src/wasm/layerzero-views.ts +2 -0
  90. package/src/wasm/oft-std.ts +2 -0
  91. package/src/wasm/price-feed.ts +2 -0
  92. package/src/wasm/simple-message-lib.ts +2 -0
  93. package/src/wasm/treasury.ts +2 -0
  94. package/src/wasm/uln302.ts +2 -0
  95. package/src/wasm/upgrader.ts +2 -0
  96. package/src/wasm.ts +15 -0
  97. package/test/counter-sml.test.ts +376 -0
  98. package/test/counter-uln.test.ts +493 -0
  99. package/test/{oft.test.ts → oft-sml.test.ts} +187 -323
  100. package/test/suites/constants.ts +22 -2
  101. package/test/suites/dummyContractClient.ts +169 -0
  102. package/test/suites/globalSetup.ts +450 -0
  103. package/test/suites/localnet.ts +23 -6
  104. package/test/upgrader.test.ts +300 -0
  105. package/test/utils.ts +558 -85
  106. package/vitest.config.ts +21 -0
  107. package/test/index.test.ts +0 -376
@@ -25,6 +25,8 @@ export * from '@stellar/stellar-sdk'
25
25
  export * as contract from '@stellar/stellar-sdk/contract'
26
26
  export * as rpc from '@stellar/stellar-sdk/rpc'
27
27
 
28
+ export type MigrationData = void;
29
+
28
30
 
29
31
  export const CounterError = {
30
32
  1: {message:"OAppInvalidNonce"},
@@ -42,24 +44,25 @@ export const EndpointError = {
42
44
  4: {message:"DefaultReceiveLibUnavailable"},
43
45
  5: {message:"DefaultSendLibUnavailable"},
44
46
  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"}
47
+ 7: {message:"InsufficientZroFee"},
48
+ 8: {message:"InvalidFeeAmount"},
49
+ 9: {message:"InvalidExpiry"},
50
+ 10: {message:"InvalidIndex"},
51
+ 11: {message:"InvalidNonce"},
52
+ 12: {message:"InvalidPayloadHash"},
53
+ 13: {message:"InvalidReceiveLibrary"},
54
+ 14: {message:"OnlyNonDefaultLib"},
55
+ 15: {message:"OnlyReceiveLib"},
56
+ 16: {message:"OnlyRegisteredLib"},
57
+ 17: {message:"OnlySendLib"},
58
+ 18: {message:"PathNotInitializable"},
59
+ 19: {message:"PathNotVerifiable"},
60
+ 20: {message:"PayloadHashNotFound"},
61
+ 21: {message:"SameValue"},
62
+ 22: {message:"Unauthorized"},
63
+ 23: {message:"UnsupportedEid"},
64
+ 24: {message:"ZeroZroFee"},
65
+ 25: {message:"ZroUnavailable"}
63
66
  }
64
67
 
65
68
 
@@ -306,11 +309,14 @@ native_fee_recipients: Array<FeeRecipient>;
306
309
  zro_fee_recipients: Array<FeeRecipient>;
307
310
  }
308
311
 
312
+ /**
313
+ * OAppError: 2000-2099
314
+ */
309
315
  export const OAppError = {
310
316
  2000: {message:"InvalidOptions"},
311
317
  2001: {message:"NoPeer"},
312
318
  2002: {message:"OnlyPeer"},
313
- 2003: {message:"ZROTokenUnavailable"}
319
+ 2003: {message:"ZroTokenUnavailable"}
314
320
  }
315
321
 
316
322
  export type OAppCoreStorage = {tag: "Endpoint", values: void} | {tag: "Peer", values: readonly [u32]};
@@ -326,37 +332,77 @@ export interface EnforcedOptionParam {
326
332
  export type OAppOptionsType3Storage = {tag: "EnforcedOptions", values: readonly [u32, u32]};
327
333
 
328
334
 
335
+ /**
336
+ * BufferReaderError: 1000-1009
337
+ */
329
338
  export const BufferReaderError = {
330
339
  1000: {message:"InvalidLength"},
331
340
  1001: {message:"InvalidAddressPayload"}
332
341
  }
333
342
 
343
+ /**
344
+ * BufferWriterError: 1010-1019
345
+ */
334
346
  export const BufferWriterError = {
335
- 1100: {message:"InvalidAddressPayload"}
347
+ 1010: {message:"InvalidAddressPayload"}
336
348
  }
337
349
 
338
- export const TtlError = {
339
- 1200: {message:"InvalidTtlConfig"},
340
- 1201: {message:"TtlConfigFrozen"},
341
- 1202: {message:"TtlConfigAlreadyFrozen"}
350
+ /**
351
+ * TtlConfigurableError: 1020-1029
352
+ */
353
+ export const TtlConfigurableError = {
354
+ 1020: {message:"InvalidTtlConfig"},
355
+ 1021: {message:"TtlConfigFrozen"},
356
+ 1022: {message:"TtlConfigAlreadyFrozen"}
342
357
  }
343
358
 
359
+ /**
360
+ * OwnableError: 1030-1039
361
+ */
344
362
  export const OwnableError = {
345
- 1300: {message:"OwnerAlreadySet"},
346
- 1301: {message:"OwnerNotSet"}
363
+ 1030: {message:"OwnerAlreadySet"},
364
+ 1031: {message:"OwnerNotSet"}
347
365
  }
348
366
 
367
+ /**
368
+ * BytesExtError: 1040-1049
369
+ */
349
370
  export const BytesExtError = {
350
- 1400: {message:"LengthMismatch"}
371
+ 1040: {message:"LengthMismatch"}
372
+ }
373
+
374
+ /**
375
+ * UpgradeableError: 1050-1059
376
+ */
377
+ export const UpgradeableError = {
378
+ 1050: {message:"MigrationNotAllowed"}
379
+ }
380
+
381
+ /**
382
+ * MultisigError: 1060-1069
383
+ */
384
+ export const MultisigError = {
385
+ 1060: {message:"AlreadyInitialized"},
386
+ 1061: {message:"InvalidSigner"},
387
+ 1062: {message:"SignatureError"},
388
+ 1063: {message:"SignerAlreadyExists"},
389
+ 1064: {message:"SignerNotFound"},
390
+ 1065: {message:"TotalSignersLessThanThreshold"},
391
+ 1066: {message:"UnsortedSigners"},
392
+ 1067: {message:"ZeroThreshold"}
351
393
  }
352
394
 
353
395
 
354
396
 
355
- export type DefaultOwnableStorage = {tag: "Owner", values: void};
397
+ export type MultisigStorage = {tag: "Signers", values: void} | {tag: "Threshold", values: void};
398
+
399
+
400
+
401
+ export type OwnableStorage = {tag: "Owner", values: void};
356
402
 
357
403
 
358
404
  /**
359
- * A pair of TTL values: threshold (when to trigger extension) and extend_to (target TTL).
405
+ * TTL configuration: threshold (when to extend) and extend_to (target TTL).
360
406
  */
361
407
  export interface TtlConfig {
362
408
  /**
@@ -369,15 +415,17 @@ extend_to: u32;
369
415
  threshold: u32;
370
416
  }
371
417
 
372
- export type TtlConfigStorage = {tag: "Frozen", values: void} | {tag: "Instance", values: void} | {tag: "Persistent", values: void};
373
418
 
374
419
 
420
+ export type TtlConfigStorage = {tag: "Frozen", values: void} | {tag: "Instance", values: void} | {tag: "Persistent", values: void};
421
+
422
+ export type UpgradeableStorage = {tag: "Migrating", values: void};
375
423
 
376
424
  export interface Client {
377
425
  /**
378
- * Construct and simulate a owner 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.
426
+ * Construct and simulate a authorizer 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.
379
427
  */
380
- owner: (txnOptions?: {
428
+ authorizer: (txnOptions?: {
381
429
  /**
382
430
  * The fee to pay for the transaction. Default: BASE_FEE
383
431
  */
@@ -392,12 +440,12 @@ export interface Client {
392
440
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
393
441
  */
394
442
  simulate?: boolean;
395
- }) => Promise<AssembledTransaction<Option<string>>>
443
+ }) => Promise<AssembledTransaction<string>>
396
444
 
397
445
  /**
398
- * Construct and simulate a transfer_ownership 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.
446
+ * 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.
399
447
  */
400
- transfer_ownership: ({new_owner}: {new_owner: string}, txnOptions?: {
448
+ quote: ({dst_eid, msg_type, options, pay_in_zro}: {dst_eid: u32, msg_type: u32, options: Buffer, pay_in_zro: boolean}, txnOptions?: {
401
449
  /**
402
450
  * The fee to pay for the transaction. Default: BASE_FEE
403
451
  */
@@ -412,12 +460,12 @@ export interface Client {
412
460
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
413
461
  */
414
462
  simulate?: boolean;
415
- }) => Promise<AssembledTransaction<null>>
463
+ }) => Promise<AssembledTransaction<MessagingFee>>
416
464
 
417
465
  /**
418
- * Construct and simulate a renounce_ownership 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.
466
+ * 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.
419
467
  */
420
- renounce_ownership: (txnOptions?: {
468
+ increment: ({caller, dst_eid, msg_type, options, fee}: {caller: string, dst_eid: u32, msg_type: u32, options: Buffer, fee: MessagingFee}, txnOptions?: {
421
469
  /**
422
470
  * The fee to pay for the transaction. Default: BASE_FEE
423
471
  */
@@ -435,9 +483,9 @@ export interface Client {
435
483
  }) => Promise<AssembledTransaction<null>>
436
484
 
437
485
  /**
438
- * Construct and simulate a set_ttl_configs 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.
486
+ * 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.
439
487
  */
440
- set_ttl_configs: ({instance, persistent}: {instance: Option<TtlConfig>, persistent: Option<TtlConfig>}, txnOptions?: {
488
+ set_ordered_nonce: ({ordered_nonce}: {ordered_nonce: boolean}, txnOptions?: {
441
489
  /**
442
490
  * The fee to pay for the transaction. Default: BASE_FEE
443
491
  */
@@ -455,9 +503,9 @@ export interface Client {
455
503
  }) => Promise<AssembledTransaction<null>>
456
504
 
457
505
  /**
458
- * Construct and simulate a ttl_configs 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.
506
+ * 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.
459
507
  */
460
- ttl_configs: (txnOptions?: {
508
+ skip_inbound_nonce: ({src_eid, sender, nonce}: {src_eid: u32, sender: Buffer, nonce: u64}, txnOptions?: {
461
509
  /**
462
510
  * The fee to pay for the transaction. Default: BASE_FEE
463
511
  */
@@ -472,12 +520,12 @@ export interface Client {
472
520
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
473
521
  */
474
522
  simulate?: boolean;
475
- }) => Promise<AssembledTransaction<readonly [Option<TtlConfig>, Option<TtlConfig>]>>
523
+ }) => Promise<AssembledTransaction<null>>
476
524
 
477
525
  /**
478
- * Construct and simulate a freeze_ttl_configs 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.
526
+ * 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.
479
527
  */
480
- freeze_ttl_configs: (txnOptions?: {
528
+ eid: (txnOptions?: {
481
529
  /**
482
530
  * The fee to pay for the transaction. Default: BASE_FEE
483
531
  */
@@ -492,12 +540,12 @@ export interface Client {
492
540
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
493
541
  */
494
542
  simulate?: boolean;
495
- }) => Promise<AssembledTransaction<null>>
543
+ }) => Promise<AssembledTransaction<u32>>
496
544
 
497
545
  /**
498
- * Construct and simulate a is_ttl_configs_frozen 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.
546
+ * 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.
499
547
  */
500
- is_ttl_configs_frozen: (txnOptions?: {
548
+ count: (txnOptions?: {
501
549
  /**
502
550
  * The fee to pay for the transaction. Default: BASE_FEE
503
551
  */
@@ -512,18 +560,12 @@ export interface Client {
512
560
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
513
561
  */
514
562
  simulate?: boolean;
515
- }) => Promise<AssembledTransaction<boolean>>
563
+ }) => Promise<AssembledTransaction<u64>>
516
564
 
517
565
  /**
518
- * Construct and simulate a extend_instance_ttl 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.
519
- * Extends the instance TTL.
520
- *
521
- * # Arguments
522
- *
523
- * * `threshold` - The threshold to extend the TTL.
524
- * * `extend_to` - The TTL to extend to.
566
+ * 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.
525
567
  */
526
- extend_instance_ttl: ({threshold, extend_to}: {threshold: u32, extend_to: u32}, txnOptions?: {
568
+ composed_count: (txnOptions?: {
527
569
  /**
528
570
  * The fee to pay for the transaction. Default: BASE_FEE
529
571
  */
@@ -538,12 +580,12 @@ export interface Client {
538
580
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
539
581
  */
540
582
  simulate?: boolean;
541
- }) => Promise<AssembledTransaction<null>>
583
+ }) => Promise<AssembledTransaction<u64>>
542
584
 
543
585
  /**
544
- * 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.
586
+ * 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.
545
587
  */
546
- quote: ({dst_eid, msg_type, options, pay_in_zro}: {dst_eid: u32, msg_type: u32, options: Buffer, pay_in_zro: boolean}, txnOptions?: {
588
+ inbound_count: ({eid}: {eid: u32}, txnOptions?: {
547
589
  /**
548
590
  * The fee to pay for the transaction. Default: BASE_FEE
549
591
  */
@@ -558,12 +600,12 @@ export interface Client {
558
600
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
559
601
  */
560
602
  simulate?: boolean;
561
- }) => Promise<AssembledTransaction<MessagingFee>>
603
+ }) => Promise<AssembledTransaction<u64>>
562
604
 
563
605
  /**
564
- * 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.
606
+ * 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.
565
607
  */
566
- increment: ({caller, dst_eid, msg_type, options, fee}: {caller: string, dst_eid: u32, msg_type: u32, options: Buffer, fee: MessagingFee}, txnOptions?: {
608
+ outbound_count: ({eid}: {eid: u32}, txnOptions?: {
567
609
  /**
568
610
  * The fee to pay for the transaction. Default: BASE_FEE
569
611
  */
@@ -578,12 +620,12 @@ export interface Client {
578
620
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
579
621
  */
580
622
  simulate?: boolean;
581
- }) => Promise<AssembledTransaction<null>>
623
+ }) => Promise<AssembledTransaction<u64>>
582
624
 
583
625
  /**
584
- * 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.
626
+ * 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.
585
627
  */
586
- set_ordered_nonce: ({ordered_nonce}: {ordered_nonce: boolean}, txnOptions?: {
628
+ next_nonce: ({src_eid, sender}: {src_eid: u32, sender: Buffer}, txnOptions?: {
587
629
  /**
588
630
  * The fee to pay for the transaction. Default: BASE_FEE
589
631
  */
@@ -598,12 +640,19 @@ export interface Client {
598
640
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
599
641
  */
600
642
  simulate?: boolean;
601
- }) => Promise<AssembledTransaction<null>>
643
+ }) => Promise<AssembledTransaction<u64>>
602
644
 
603
645
  /**
604
- * 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.
646
+ * 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.
647
+ * Checks if a messaging path can be initialized for the given origin.
648
+ *
649
+ * # Arguments
650
+ * * `origin` - The origin of the message
651
+ *
652
+ * # Returns
653
+ * True if the path can be initialized, false otherwise
605
654
  */
606
- skip_inbound_nonce: ({src_eid, sender, nonce}: {src_eid: u32, sender: Buffer, nonce: u64}, txnOptions?: {
655
+ allow_initialize_path: ({origin}: {origin: Origin}, txnOptions?: {
607
656
  /**
608
657
  * The fee to pay for the transaction. Default: BASE_FEE
609
658
  */
@@ -618,12 +667,27 @@ export interface Client {
618
667
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
619
668
  */
620
669
  simulate?: boolean;
621
- }) => Promise<AssembledTransaction<null>>
670
+ }) => Promise<AssembledTransaction<boolean>>
622
671
 
623
672
  /**
624
- * 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.
673
+ * Construct and simulate a lz_receive 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.
674
+ * Entry point for receiving messages or packets from the LayerZero endpoint.
675
+ *
676
+ * The default implementation calls `clear_payload_and_transfer` to validate the message
677
+ * and clear it from the endpoint, then delegates to `__lz_receive` for application logic.
678
+ *
679
+ * # Arguments
680
+ * * `executor` - The address of the executor for the received message
681
+ * * `origin` - The origin information containing the source endpoint and sender address:
682
+ * - `src_eid`: The source chain endpoint ID
683
+ * - `sender`: The sender address on the source chain
684
+ * - `nonce`: The nonce of the message
685
+ * * `guid` - The unique identifier for the received LayerZero message
686
+ * * `message` - The payload of the received message
687
+ * * `extra_data` - Additional arbitrary data provided by the corresponding executor
688
+ * * `value` - The native token value sent with the message
625
689
  */
626
- eid: (txnOptions?: {
690
+ lz_receive: ({executor, origin, guid, message, extra_data, value}: {executor: string, origin: Origin, guid: Buffer, message: Buffer, extra_data: Buffer, value: i128}, txnOptions?: {
627
691
  /**
628
692
  * The fee to pay for the transaction. Default: BASE_FEE
629
693
  */
@@ -638,12 +702,24 @@ export interface Client {
638
702
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
639
703
  */
640
704
  simulate?: boolean;
641
- }) => Promise<AssembledTransaction<u32>>
705
+ }) => Promise<AssembledTransaction<null>>
642
706
 
643
707
  /**
644
- * 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.
708
+ * 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.
709
+ * Indicates whether an address is an approved composeMsg sender to the Endpoint.
710
+ *
711
+ * Applications can optionally choose to implement separate composeMsg senders that are NOT the bridging layer.
712
+ * The default sender IS the OAppReceiver implementer.
713
+ *
714
+ * # Arguments
715
+ * * `origin` - The origin information containing the source endpoint and sender address
716
+ * * `message` - The lzReceive payload
717
+ * * `sender` - The sender address to check
718
+ *
719
+ * # Returns
720
+ * True if the sender is a valid composeMsg sender, false otherwise
645
721
  */
646
- count: (txnOptions?: {
722
+ is_compose_msg_sender: ({origin, message, sender}: {origin: Origin, message: Buffer, sender: string}, txnOptions?: {
647
723
  /**
648
724
  * The fee to pay for the transaction. Default: BASE_FEE
649
725
  */
@@ -658,12 +734,12 @@ export interface Client {
658
734
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
659
735
  */
660
736
  simulate?: boolean;
661
- }) => Promise<AssembledTransaction<u64>>
737
+ }) => Promise<AssembledTransaction<boolean>>
662
738
 
663
739
  /**
664
- * 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.
740
+ * 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.
665
741
  */
666
- composed_count: (txnOptions?: {
742
+ 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?: {
667
743
  /**
668
744
  * The fee to pay for the transaction. Default: BASE_FEE
669
745
  */
@@ -678,12 +754,20 @@ export interface Client {
678
754
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
679
755
  */
680
756
  simulate?: boolean;
681
- }) => Promise<AssembledTransaction<u64>>
757
+ }) => Promise<AssembledTransaction<null>>
682
758
 
683
759
  /**
684
- * 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.
760
+ * 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.
761
+ * Retrieves the enforced options for a given endpoint and message type.
762
+ *
763
+ * # Arguments
764
+ * * `eid` - The endpoint ID
765
+ * * `msg_type` - The OApp message type
766
+ *
767
+ * # Returns
768
+ * The enforced options for the given endpoint and message type
685
769
  */
686
- inbound_count: ({eid}: {eid: u32}, txnOptions?: {
770
+ enforced_options: ({eid, msg_type}: {eid: u32, msg_type: u32}, txnOptions?: {
687
771
  /**
688
772
  * The fee to pay for the transaction. Default: BASE_FEE
689
773
  */
@@ -698,12 +782,22 @@ export interface Client {
698
782
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
699
783
  */
700
784
  simulate?: boolean;
701
- }) => Promise<AssembledTransaction<u64>>
785
+ }) => Promise<AssembledTransaction<Buffer>>
702
786
 
703
787
  /**
704
- * 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.
788
+ * 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.
789
+ * Sets the enforced options for specific endpoint and message type combinations.
790
+ *
791
+ * Only the `authorizer` of the OApp can call this function.
792
+ * Provides a way for the OApp to enforce things like paying for PreCrime, AND/OR minimum dst lzReceive gas amounts etc.
793
+ * These enforced options can vary as the potential options/execution on the remote may differ as per the msg_type.
794
+ * e.g. Amount of lzReceive() gas necessary to deliver a lzCompose() message adds overhead you don't want to pay
795
+ * if you are only making a standard LayerZero message ie. lzReceive() WITHOUT sendCompose().
796
+ *
797
+ * # Arguments
798
+ * * `options` - A vector of EnforcedOptionParam structures specifying enforced options
705
799
  */
706
- outbound_count: ({eid}: {eid: u32}, txnOptions?: {
800
+ set_enforced_options: ({options}: {options: Array<EnforcedOptionParam>}, txnOptions?: {
707
801
  /**
708
802
  * The fee to pay for the transaction. Default: BASE_FEE
709
803
  */
@@ -718,12 +812,26 @@ export interface Client {
718
812
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
719
813
  */
720
814
  simulate?: boolean;
721
- }) => Promise<AssembledTransaction<u64>>
815
+ }) => Promise<AssembledTransaction<null>>
722
816
 
723
817
  /**
724
- * 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.
818
+ * 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.
819
+ * Combines options for a given endpoint and message type.
820
+ *
821
+ * If there is an enforced lzReceive option:
822
+ * - {gas_limit: 200k, value: 1 XLM} AND a caller supplies a lzReceive option: {gas_limit: 100k, value: 0.5 XLM}
823
+ * - The resulting options will be {gas_limit: 300k, value: 1.5 XLM} when the message is executed on the remote lz_receive() function.
824
+ * The presence of duplicated options is handled off-chain in the verifier/executor.
825
+ *
826
+ * # Arguments
827
+ * * `eid` - The endpoint ID
828
+ * * `msg_type` - The OApp message type
829
+ * * `extra_options` - Additional options passed by the caller
830
+ *
831
+ * # Returns
832
+ * The combination of caller specified options AND enforced options
725
833
  */
726
- next_nonce: ({src_eid, sender}: {src_eid: u32, sender: Buffer}, txnOptions?: {
834
+ combine_options: ({eid, msg_type, extra_options}: {eid: u32, msg_type: u32, extra_options: Buffer}, txnOptions?: {
727
835
  /**
728
836
  * The fee to pay for the transaction. Default: BASE_FEE
729
837
  */
@@ -738,12 +846,18 @@ export interface Client {
738
846
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
739
847
  */
740
848
  simulate?: boolean;
741
- }) => Promise<AssembledTransaction<u64>>
849
+ }) => Promise<AssembledTransaction<Buffer>>
742
850
 
743
851
  /**
744
- * Construct and simulate a lz_receive 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.
852
+ * 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.
853
+ * Retrieves the OApp version information.
854
+ *
855
+ * # Returns
856
+ * A tuple containing:
857
+ * - `sender_version`: The version of the OAppSender
858
+ * - `receiver_version`: The version of the OAppReceiver
745
859
  */
746
- lz_receive: ({executor, origin, guid, message, extra_data, value}: {executor: string, origin: Origin, guid: Buffer, message: Buffer, extra_data: Buffer, value: i128}, txnOptions?: {
860
+ oapp_version: (txnOptions?: {
747
861
  /**
748
862
  * The fee to pay for the transaction. Default: BASE_FEE
749
863
  */
@@ -758,19 +872,16 @@ export interface Client {
758
872
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
759
873
  */
760
874
  simulate?: boolean;
761
- }) => Promise<AssembledTransaction<null>>
875
+ }) => Promise<AssembledTransaction<readonly [u64, u64]>>
762
876
 
763
877
  /**
764
- * 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.
765
- * Checks if a messaging path can be initialized for the given origin.
766
- *
767
- * # Arguments
768
- * * `origin` - The origin of the message
878
+ * 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.
879
+ * Retrieves the LayerZero endpoint address associated with the OApp.
769
880
  *
770
881
  * # Returns
771
- * True if the path can be initialized, false otherwise
882
+ * The LayerZero endpoint address
772
883
  */
773
- allow_initialize_path: ({origin}: {origin: Origin}, txnOptions?: {
884
+ endpoint: (txnOptions?: {
774
885
  /**
775
886
  * The fee to pay for the transaction. Default: BASE_FEE
776
887
  */
@@ -785,24 +896,19 @@ export interface Client {
785
896
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
786
897
  */
787
898
  simulate?: boolean;
788
- }) => Promise<AssembledTransaction<boolean>>
899
+ }) => Promise<AssembledTransaction<string>>
789
900
 
790
901
  /**
791
- * 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.
792
- * Indicates whether an address is an approved composeMsg sender to the Endpoint.
793
- *
794
- * Applications can optionally choose to implement separate composeMsg senders that are NOT the bridging layer.
795
- * The default sender IS the OAppReceiver implementer.
902
+ * 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.
903
+ * Retrieves the peer (OApp) associated with a corresponding endpoint.
796
904
  *
797
905
  * # Arguments
798
- * * `origin` - The origin information containing the source endpoint and sender address
799
- * * `message` - The lzReceive payload
800
- * * `sender` - The sender address to check
906
+ * * `eid` - The endpoint ID
801
907
  *
802
908
  * # Returns
803
- * True if the sender is a valid composeMsg sender, false otherwise
909
+ * The peer address (OApp instance) associated with the corresponding endpoint
804
910
  */
805
- is_compose_msg_sender: ({origin, message, sender}: {origin: Origin, message: Buffer, sender: string}, txnOptions?: {
911
+ peer: ({eid}: {eid: u32}, txnOptions?: {
806
912
  /**
807
913
  * The fee to pay for the transaction. Default: BASE_FEE
808
914
  */
@@ -817,12 +923,17 @@ export interface Client {
817
923
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
818
924
  */
819
925
  simulate?: boolean;
820
- }) => Promise<AssembledTransaction<boolean>>
926
+ }) => Promise<AssembledTransaction<Option<Buffer>>>
821
927
 
822
928
  /**
823
- * 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.
929
+ * 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.
930
+ * Sets or removes the peer address (OApp instance) for a corresponding endpoint.
931
+ *
932
+ * # Arguments
933
+ * * `eid` - The endpoint ID
934
+ * * `peer` - The address of the peer to be associated with the corresponding endpoint, or None to remove the peer
824
935
  */
825
- 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?: {
936
+ set_peer: ({eid, peer}: {eid: u32, peer: Option<Buffer>}, txnOptions?: {
826
937
  /**
827
938
  * The fee to pay for the transaction. Default: BASE_FEE
828
939
  */
@@ -840,9 +951,13 @@ export interface Client {
840
951
  }) => Promise<AssembledTransaction<null>>
841
952
 
842
953
  /**
843
- * 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.
954
+ * 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.
955
+ * Sets the delegate address for the OApp Core.
956
+ *
957
+ * # Arguments
958
+ * * `delegate` - The address of the delegate to be set, or None to remove the delegate
844
959
  */
845
- enforced_options: ({eid, msg_type}: {eid: u32, msg_type: u32}, txnOptions?: {
960
+ set_delegate: ({delegate}: {delegate: Option<string>}, txnOptions?: {
846
961
  /**
847
962
  * The fee to pay for the transaction. Default: BASE_FEE
848
963
  */
@@ -857,12 +972,24 @@ export interface Client {
857
972
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
858
973
  */
859
974
  simulate?: boolean;
860
- }) => Promise<AssembledTransaction<Buffer>>
975
+ }) => Promise<AssembledTransaction<null>>
861
976
 
862
977
  /**
863
- * 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.
978
+ * Construct and simulate a set_ttl_configs 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.
979
+ * Sets TTL configs for instance and persistent storage.
980
+ *
981
+ * - `None` values remove the corresponding config (disables auto-extension for that type)
982
+ * - Validates that `threshold <= extend_to <= MAX_TTL`
983
+ *
984
+ * # Arguments
985
+ * - `instance` - TTL config for instance storage
986
+ * - `persistent` - TTL config for persistent storage
987
+ *
988
+ * # Panics
989
+ * - `TtlConfigFrozen` if configs are frozen
990
+ * - `InvalidTtlConfig` if validation fails
864
991
  */
865
- set_enforced_options: ({options}: {options: Array<EnforcedOptionParam>}, txnOptions?: {
992
+ set_ttl_configs: ({instance, persistent}: {instance: Option<TtlConfig>, persistent: Option<TtlConfig>}, txnOptions?: {
866
993
  /**
867
994
  * The fee to pay for the transaction. Default: BASE_FEE
868
995
  */
@@ -880,9 +1007,10 @@ export interface Client {
880
1007
  }) => Promise<AssembledTransaction<null>>
881
1008
 
882
1009
  /**
883
- * 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.
1010
+ * Construct and simulate a ttl_configs 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.
1011
+ * Returns the current TTL configs as (instance_config, persistent_config).
884
1012
  */
885
- combine_options: ({eid, msg_type, extra_options}: {eid: u32, msg_type: u32, extra_options: Buffer}, txnOptions?: {
1013
+ ttl_configs: (txnOptions?: {
886
1014
  /**
887
1015
  * The fee to pay for the transaction. Default: BASE_FEE
888
1016
  */
@@ -897,18 +1025,19 @@ export interface Client {
897
1025
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
898
1026
  */
899
1027
  simulate?: boolean;
900
- }) => Promise<AssembledTransaction<Buffer>>
1028
+ }) => Promise<AssembledTransaction<readonly [Option<TtlConfig>, Option<TtlConfig>]>>
901
1029
 
902
1030
  /**
903
- * 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.
904
- * Retrieves the OApp version information.
1031
+ * Construct and simulate a freeze_ttl_configs 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.
1032
+ * Permanently freezes TTL configs, preventing any future modifications.
905
1033
  *
906
- * # Returns
907
- * A tuple containing:
908
- * - `sender_version`: The version of the OAppSender implementation
909
- * - `receiver_version`: The version of the OAppReceiver implementation
1034
+ * This is irreversible and provides immutability guarantees to users.
1035
+ * Emits `TtlConfigsFrozen` event.
1036
+ *
1037
+ * # Panics
1038
+ * - `TtlConfigAlreadyFrozen` if already frozen
910
1039
  */
911
- oapp_version: (txnOptions?: {
1040
+ freeze_ttl_configs: (txnOptions?: {
912
1041
  /**
913
1042
  * The fee to pay for the transaction. Default: BASE_FEE
914
1043
  */
@@ -923,16 +1052,13 @@ export interface Client {
923
1052
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
924
1053
  */
925
1054
  simulate?: boolean;
926
- }) => Promise<AssembledTransaction<readonly [u64, u64]>>
1055
+ }) => Promise<AssembledTransaction<null>>
927
1056
 
928
1057
  /**
929
- * 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.
930
- * Retrieves the LayerZero endpoint associated with the OApp.
931
- *
932
- * # Returns
933
- * The LayerZero endpoint client
1058
+ * Construct and simulate a is_ttl_configs_frozen 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.
1059
+ * Returns whether TTL configs are frozen.
934
1060
  */
935
- endpoint: (txnOptions?: {
1061
+ is_ttl_configs_frozen: (txnOptions?: {
936
1062
  /**
937
1063
  * The fee to pay for the transaction. Default: BASE_FEE
938
1064
  */
@@ -947,19 +1073,18 @@ export interface Client {
947
1073
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
948
1074
  */
949
1075
  simulate?: boolean;
950
- }) => Promise<AssembledTransaction<string>>
1076
+ }) => Promise<AssembledTransaction<boolean>>
951
1077
 
952
1078
  /**
953
- * 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.
954
- * Retrieves the peer (OApp) associated with a corresponding endpoint.
1079
+ * Construct and simulate a extend_instance_ttl 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.
1080
+ * Extends the instance TTL.
955
1081
  *
956
1082
  * # Arguments
957
- * * `eid` - The endpoint ID
958
1083
  *
959
- * # Returns
960
- * The peer address (OApp instance) associated with the corresponding endpoint
1084
+ * * `threshold` - The threshold to extend the TTL (if current TTL is below this, extend).
1085
+ * * `extend_to` - The TTL to extend to.
961
1086
  */
962
- peer: ({eid}: {eid: u32}, txnOptions?: {
1087
+ extend_instance_ttl: ({threshold, extend_to}: {threshold: u32, extend_to: u32}, txnOptions?: {
963
1088
  /**
964
1089
  * The fee to pay for the transaction. Default: BASE_FEE
965
1090
  */
@@ -974,17 +1099,34 @@ export interface Client {
974
1099
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
975
1100
  */
976
1101
  simulate?: boolean;
977
- }) => Promise<AssembledTransaction<Option<Buffer>>>
1102
+ }) => Promise<AssembledTransaction<null>>
978
1103
 
979
1104
  /**
980
- * 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.
981
- * Sets or removes the peer address (OApp instance) for a corresponding endpoint.
982
- *
983
- * # Arguments
984
- * * `eid` - The endpoint ID
985
- * * `peer` - The address of the peer to be associated with the corresponding endpoint, or None to remove the peer
1105
+ * Construct and simulate a owner 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.
1106
+ * Returns the current owner address, or None if no owner is set.
986
1107
  */
987
- set_peer: ({eid, peer}: {eid: u32, peer: Option<Buffer>}, txnOptions?: {
1108
+ owner: (txnOptions?: {
1109
+ /**
1110
+ * The fee to pay for the transaction. Default: BASE_FEE
1111
+ */
1112
+ fee?: number;
1113
+
1114
+ /**
1115
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
1116
+ */
1117
+ timeoutInSeconds?: number;
1118
+
1119
+ /**
1120
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
1121
+ */
1122
+ simulate?: boolean;
1123
+ }) => Promise<AssembledTransaction<Option<string>>>
1124
+
1125
+ /**
1126
+ * Construct and simulate a transfer_ownership 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.
1127
+ * Transfers ownership to a new address. Requires current owner authorization.
1128
+ */
1129
+ transfer_ownership: ({new_owner}: {new_owner: string}, txnOptions?: {
988
1130
  /**
989
1131
  * The fee to pay for the transaction. Default: BASE_FEE
990
1132
  */
@@ -1002,13 +1144,10 @@ export interface Client {
1002
1144
  }) => Promise<AssembledTransaction<null>>
1003
1145
 
1004
1146
  /**
1005
- * 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.
1006
- * Sets the delegate address for the OApp Core.
1007
- *
1008
- * # Arguments
1009
- * * `delegate` - The address of the delegate to be set, or None to remove the delegate
1147
+ * Construct and simulate a renounce_ownership 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.
1148
+ * Permanently renounces ownership. Requires current owner authorization.
1010
1149
  */
1011
- set_delegate: ({delegate}: {delegate: Option<string>}, txnOptions?: {
1150
+ renounce_ownership: (txnOptions?: {
1012
1151
  /**
1013
1152
  * The fee to pay for the transaction. Default: BASE_FEE
1014
1153
  */
@@ -1047,14 +1186,7 @@ export class Client extends ContractClient {
1047
1186
  super(
1048
1187
  new ContractSpec([ "AAAABAAAAAAAAAAAAAAADENvdW50ZXJFcnJvcgAAAAQAAAAAAAAAEE9BcHBJbnZhbGlkTm9uY2UAAAABAAAAAAAAAA9JbnZhbGlkTXNnVmFsdWUAAAAAAgAAAAAAAAARSW5zdWZmaWNpZW50VmFsdWUAAAAAAAADAAAAAAAAAA5JbnZhbGlkTXNnVHlwZQAAAAAABA==",
1049
1188
  "AAAAAgAAAAAAAAAAAAAADkNvdW50ZXJTdG9yYWdlAAAAAAAHAAAAAAAAAAAAAAADRUlEAAAAAAEAAAAAAAAAEE1heFJlY2VpdmVkTm9uY2UAAAACAAAABAAAA+4AAAAgAAAAAAAAAAAAAAAMT3JkZXJlZE5vbmNlAAAAAAAAAAAAAAAFQ291bnQAAAAAAAAAAAAAAAAAAA1Db21wb3NlZENvdW50AAAAAAAAAQAAAAAAAAAMSW5ib3VuZENvdW50AAAAAQAAAAQAAAABAAAAAAAAAA1PdXRib3VuZENvdW50AAAAAAAAAQAAAAQ=",
1050
- "AAAAAAAAAAAAAAAFb3duZXIAAAAAAAAAAAAAAQAAA+gAAAAT",
1051
- "AAAAAAAAAAAAAAASdHJhbnNmZXJfb3duZXJzaGlwAAAAAAABAAAAAAAAAAluZXdfb3duZXIAAAAAAAATAAAAAA==",
1052
- "AAAAAAAAAAAAAAAScmVub3VuY2Vfb3duZXJzaGlwAAAAAAAAAAAAAA==",
1053
- "AAAAAAAAAAAAAAAPc2V0X3R0bF9jb25maWdzAAAAAAIAAAAAAAAACGluc3RhbmNlAAAD6AAAB9AAAAAJVHRsQ29uZmlnAAAAAAAAAAAAAApwZXJzaXN0ZW50AAAAAAPoAAAH0AAAAAlUdGxDb25maWcAAAAAAAAA",
1054
- "AAAAAAAAAAAAAAALdHRsX2NvbmZpZ3MAAAAAAAAAAAEAAAPtAAAAAgAAA+gAAAfQAAAACVR0bENvbmZpZwAAAAA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3MgYXJlIGZyb3plbi4AAAAAAAAAAAAQVHRsQ29uZmlnc0Zyb3plbgAAAAEAAAASdHRsX2NvbmZpZ3NfZnJvemVuAAAAAAAAAAAAAg==" ]),
1274
+ "AAAABQAAACpFdmVudCBlbWl0dGVkIHdoZW4gVFRMIGNvbmZpZ3MgYXJlIGZyb3plbi4AAAAAAAAAAAAQVHRsQ29uZmlnc0Zyb3plbgAAAAEAAAASdHRsX2NvbmZpZ3NfZnJvemVuAAAAAAAAAAAAAg==",
1275
+ "AAAAAgAAAAAAAAAAAAAAEFR0bENvbmZpZ1N0b3JhZ2UAAAADAAAAAAAAAAAAAAAGRnJvemVuAAAAAAAAAAAAAAAAAAhJbnN0YW5jZQAAAAAAAAAAAAAAClBlcnNpc3RlbnQAAA==",
1276
+ "AAAAAgAAAAAAAAAAAAAAElVwZ3JhZGVhYmxlU3RvcmFnZQAAAAAAAQAAAAAAAAAAAAAACU1pZ3JhdGluZwAAAA==" ]),
1131
1277
  options
1132
1278
  )
1133
1279
  }
1134
1280
  public readonly fromJSON = {
1135
- owner: this.txFromJSON<Option<string>>,
1136
- transfer_ownership: this.txFromJSON<null>,
1137
- renounce_ownership: this.txFromJSON<null>,
1138
- set_ttl_configs: this.txFromJSON<null>,
1139
- ttl_configs: this.txFromJSON<readonly [Option<TtlConfig>, Option<TtlConfig>]>,
1140
- freeze_ttl_configs: this.txFromJSON<null>,
1141
- is_ttl_configs_frozen: this.txFromJSON<boolean>,
1142
- extend_instance_ttl: this.txFromJSON<null>,
1281
+ authorizer: this.txFromJSON<string>,
1143
1282
  quote: this.txFromJSON<MessagingFee>,
1144
1283
  increment: this.txFromJSON<null>,
1145
1284
  set_ordered_nonce: this.txFromJSON<null>,
@@ -1150,8 +1289,8 @@ export class Client extends ContractClient {
1150
1289
  inbound_count: this.txFromJSON<u64>,
1151
1290
  outbound_count: this.txFromJSON<u64>,
1152
1291
  next_nonce: this.txFromJSON<u64>,
1153
- lz_receive: this.txFromJSON<null>,
1154
1292
  allow_initialize_path: this.txFromJSON<boolean>,
1293
+ lz_receive: this.txFromJSON<null>,
1155
1294
  is_compose_msg_sender: this.txFromJSON<boolean>,
1156
1295
  lz_compose: this.txFromJSON<null>,
1157
1296
  enforced_options: this.txFromJSON<Buffer>,
@@ -1161,6 +1300,14 @@ export class Client extends ContractClient {
1161
1300
  endpoint: this.txFromJSON<string>,
1162
1301
  peer: this.txFromJSON<Option<Buffer>>,
1163
1302
  set_peer: this.txFromJSON<null>,
1164
- set_delegate: this.txFromJSON<null>
1303
+ set_delegate: this.txFromJSON<null>,
1304
+ set_ttl_configs: this.txFromJSON<null>,
1305
+ ttl_configs: this.txFromJSON<readonly [Option<TtlConfig>, Option<TtlConfig>]>,
1306
+ freeze_ttl_configs: this.txFromJSON<null>,
1307
+ is_ttl_configs_frozen: this.txFromJSON<boolean>,
1308
+ extend_instance_ttl: this.txFromJSON<null>,
1309
+ owner: this.txFromJSON<Option<string>>,
1310
+ transfer_ownership: this.txFromJSON<null>,
1311
+ renounce_ownership: this.txFromJSON<null>
1165
1312
  }
1166
1313
  }