@layerzerolabs/lz-v2-stellar-sdk 0.2.8

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.
@@ -0,0 +1,864 @@
1
+ import { Buffer } from "buffer";
2
+ import { Address } from '@stellar/stellar-sdk';
3
+ import {
4
+ AssembledTransaction,
5
+ Client as ContractClient,
6
+ ClientOptions as ContractClientOptions,
7
+ MethodOptions,
8
+ Result,
9
+ Spec as ContractSpec,
10
+ } from '@stellar/stellar-sdk/contract';
11
+ import type {
12
+ u32,
13
+ i32,
14
+ u64,
15
+ i64,
16
+ u128,
17
+ i128,
18
+ u256,
19
+ i256,
20
+ Option,
21
+ Typepoint,
22
+ Duration,
23
+ } from '@stellar/stellar-sdk/contract';
24
+ export * from '@stellar/stellar-sdk'
25
+ export * as contract from '@stellar/stellar-sdk/contract'
26
+ export * as rpc from '@stellar/stellar-sdk/rpc'
27
+
28
+
29
+ export type SmlStorage = {tag: "Endpoint", values: void} | {tag: "Treasury", values: void} | {tag: "LocalEID", values: void} | {tag: "NativeFee", values: void} | {tag: "ZROFee", values: void} | {tag: "FeeRecipient", values: void} | {tag: "WhitelistedCaller", values: void};
30
+
31
+ export const SimpleMessageLibError = {
32
+ 1: {message:"NotImplemented"},
33
+ 2: {message:"NativeFeeNotSet"},
34
+ 3: {message:"ZROFeeNotSet"},
35
+ 4: {message:"ZROTokenNotSet"},
36
+ 5: {message:"OnlyWhitelistedCaller"},
37
+ 6: {message:"UnableToConvertAddress"}
38
+ }
39
+
40
+
41
+ /**
42
+ * Parameters for sending a cross-chain message.
43
+ */
44
+ export interface MessagingParams {
45
+ /**
46
+ * Destination endpoint ID (chain identifier).
47
+ */
48
+ dst_eid: u32;
49
+ /**
50
+ * The message payload to send.
51
+ */
52
+ message: Buffer;
53
+ /**
54
+ * Encoded executor and DVN options.
55
+ */
56
+ options: Buffer;
57
+ /**
58
+ * Whether to pay fees in ZRO token instead of native token.
59
+ */
60
+ pay_in_zro: boolean;
61
+ /**
62
+ * Receiver address on the destination chain (32 bytes).
63
+ */
64
+ receiver: Buffer;
65
+ }
66
+
67
+
68
+ /**
69
+ * Source message information identifying where a cross-chain message came from.
70
+ */
71
+ export interface Origin {
72
+ /**
73
+ * Nonce for this pathway.
74
+ */
75
+ nonce: u64;
76
+ /**
77
+ * Sender address on the source chain (32 bytes).
78
+ */
79
+ sender: Buffer;
80
+ /**
81
+ * Source endpoint ID (chain identifier).
82
+ */
83
+ src_eid: u32;
84
+ }
85
+
86
+
87
+ /**
88
+ * Fee structure for cross-chain messaging.
89
+ */
90
+ export interface MessagingFee {
91
+ /**
92
+ * Fee paid in native token (XLM).
93
+ */
94
+ native_fee: i128;
95
+ /**
96
+ * Fee paid in ZRO token (LayerZero token).
97
+ */
98
+ zro_fee: i128;
99
+ }
100
+
101
+
102
+ /**
103
+ * Receipt returned after successfully sending a cross-chain message.
104
+ */
105
+ export interface MessagingReceipt {
106
+ /**
107
+ * The fees charged for sending the message.
108
+ */
109
+ fee: MessagingFee;
110
+ /**
111
+ * Globally unique identifier for the message.
112
+ */
113
+ guid: Buffer;
114
+ /**
115
+ * The outbound nonce for this pathway.
116
+ */
117
+ nonce: u64;
118
+ }
119
+
120
+ /**
121
+ * Type of message library indicating supported operations.
122
+ */
123
+ export type MessageLibType = {tag: "Send", values: void} | {tag: "Receive", values: void} | {tag: "SendAndReceive", values: void};
124
+
125
+
126
+ /**
127
+ * Version information for a message library.
128
+ *
129
+ * Note: `minor` and `endpoint_version` use `u32` instead of `u8` because Stellar does not
130
+ * support `u8` types in contract interface functions.
131
+ */
132
+ export interface MessageLibVersion {
133
+ /**
134
+ * Endpoint version (should not exceed u8::MAX = 255).
135
+ */
136
+ endpoint_version: u32;
137
+ /**
138
+ * Major version number.
139
+ */
140
+ major: u64;
141
+ /**
142
+ * Minor version number (should not exceed u8::MAX = 255).
143
+ */
144
+ minor: u32;
145
+ }
146
+
147
+
148
+ /**
149
+ * Timeout configuration for receive library transitions.
150
+ */
151
+ export interface Timeout {
152
+ /**
153
+ * Unix timestamp when the timeout expires.
154
+ */
155
+ expiry: u64;
156
+ /**
157
+ * The new library address to transition to.
158
+ */
159
+ lib: string;
160
+ }
161
+
162
+
163
+ /**
164
+ * Parameters for setting message library configuration.
165
+ */
166
+ export interface SetConfigParam {
167
+ /**
168
+ * XDR-encoded configuration data.
169
+ */
170
+ config: Buffer;
171
+ /**
172
+ * The type of configuration (e.g., executor, ULN).
173
+ */
174
+ config_type: u32;
175
+ /**
176
+ * The endpoint ID this config applies to.
177
+ */
178
+ eid: u32;
179
+ }
180
+
181
+
182
+ /**
183
+ * Resolved library information with default status.
184
+ */
185
+ export interface ResolvedLibrary {
186
+ /**
187
+ * Whether this is the default library (true) or OApp-specific (false).
188
+ */
189
+ is_default: boolean;
190
+ /**
191
+ * The resolved library address.
192
+ */
193
+ lib: string;
194
+ }
195
+
196
+
197
+ /**
198
+ * Outbound packet containing all information for cross-chain transmission.
199
+ */
200
+ export interface OutboundPacket {
201
+ /**
202
+ * Destination endpoint ID.
203
+ */
204
+ dst_eid: u32;
205
+ /**
206
+ * Globally unique identifier for this message.
207
+ */
208
+ guid: Buffer;
209
+ /**
210
+ * The message payload.
211
+ */
212
+ message: Buffer;
213
+ /**
214
+ * Outbound nonce for this pathway.
215
+ */
216
+ nonce: u64;
217
+ /**
218
+ * Receiver address on destination chain (32 bytes).
219
+ */
220
+ receiver: Buffer;
221
+ /**
222
+ * Sender address on source chain.
223
+ */
224
+ sender: string;
225
+ /**
226
+ * Source endpoint ID.
227
+ */
228
+ src_eid: u32;
229
+ }
230
+
231
+
232
+ /**
233
+ * A fee recipient with the amount to be paid.
234
+ */
235
+ export interface FeeRecipient {
236
+ /**
237
+ * Address to receive the fee.
238
+ */
239
+ address: string;
240
+ /**
241
+ * Amount of fee to pay.
242
+ */
243
+ amount: i128;
244
+ }
245
+
246
+
247
+ /**
248
+ * Result of send operation containing fees and encoded packet.
249
+ */
250
+ export interface FeesAndPacket {
251
+ /**
252
+ * The encoded packet ready for transmission.
253
+ */
254
+ encoded_packet: Buffer;
255
+ /**
256
+ * List of native token fee recipients (executor, DVNs, treasury).
257
+ */
258
+ native_fee_recipients: Array<FeeRecipient>;
259
+ /**
260
+ * List of ZRO token fee recipients (treasury).
261
+ */
262
+ zro_fee_recipients: Array<FeeRecipient>;
263
+ }
264
+
265
+ export const PacketCodecV1Error = {
266
+ 11001: {message:"InvalidPacketVersion"},
267
+ 11002: {message:"InvalidPacketHeader"}
268
+ }
269
+
270
+ export const WorkerOptionsError = {
271
+ 11101: {message:"InvalidOptions"},
272
+ 11102: {message:"InvalidWorkerId"},
273
+ 11103: {message:"InvalidLegacyOptionsType1"},
274
+ 11104: {message:"LegacyOptionsType1GasOverflow"},
275
+ 11105: {message:"InvalidLegacyOptionsType2"},
276
+ 11106: {message:"LegacyOptionsType2GasOverflow"},
277
+ 11107: {message:"LegacyOptionsType2AmountOverflow"},
278
+ 11108: {message:"InvalidOptionType"},
279
+ 11109: {message:"InvalidBytesLength"}
280
+ }
281
+
282
+ export const BufferReaderError = {
283
+ 10000: {message:"InvalidLength"},
284
+ 10001: {message:"InvalidAddressPayload"}
285
+ }
286
+
287
+ export const BufferWriterError = {
288
+ 10100: {message:"InvalidAddressPayload"}
289
+ }
290
+
291
+ export const TtlError = {
292
+ 10200: {message:"InvalidTtlConfig"},
293
+ 10201: {message:"TtlConfigFrozen"},
294
+ 10202: {message:"TtlConfigAlreadyFrozen"}
295
+ }
296
+
297
+ export const OwnableError = {
298
+ 10300: {message:"OwnerAlreadySet"},
299
+ 10301: {message:"OwnerNotSet"}
300
+ }
301
+
302
+ export const BytesExtError = {
303
+ 10400: {message:"LengthMismatch"}
304
+ }
305
+
306
+
307
+
308
+ export type DefaultOwnableStorage = {tag: "Owner", values: void};
309
+
310
+
311
+ /**
312
+ * A pair of TTL values: threshold (when to trigger extension) and extend_to (target TTL).
313
+ */
314
+ export interface TtlConfig {
315
+ /**
316
+ * Target TTL after extension (in ledgers).
317
+ */
318
+ extend_to: u32;
319
+ /**
320
+ * TTL threshold that triggers extension (in ledgers).
321
+ */
322
+ threshold: u32;
323
+ }
324
+
325
+ export type TtlConfigData = {tag: "Frozen", values: void} | {tag: "Instance", values: void} | {tag: "Persistent", values: void} | {tag: "Temporary", values: void};
326
+
327
+ export interface Client {
328
+ /**
329
+ * 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.
330
+ */
331
+ quote: ({packet, options, pay_in_zro}: {packet: OutboundPacket, options: Buffer, pay_in_zro: boolean}, txnOptions?: {
332
+ /**
333
+ * The fee to pay for the transaction. Default: BASE_FEE
334
+ */
335
+ fee?: number;
336
+
337
+ /**
338
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
339
+ */
340
+ timeoutInSeconds?: number;
341
+
342
+ /**
343
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
344
+ */
345
+ simulate?: boolean;
346
+ }) => Promise<AssembledTransaction<MessagingFee>>
347
+
348
+ /**
349
+ * Construct and simulate a send 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.
350
+ */
351
+ send: ({packet, options, pay_in_zro}: {packet: OutboundPacket, options: Buffer, pay_in_zro: boolean}, txnOptions?: {
352
+ /**
353
+ * The fee to pay for the transaction. Default: BASE_FEE
354
+ */
355
+ fee?: number;
356
+
357
+ /**
358
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
359
+ */
360
+ timeoutInSeconds?: number;
361
+
362
+ /**
363
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
364
+ */
365
+ simulate?: boolean;
366
+ }) => Promise<AssembledTransaction<FeesAndPacket>>
367
+
368
+ /**
369
+ * Construct and simulate a get_config 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.
370
+ */
371
+ get_config: ({eid, oapp, config_type}: {eid: u32, oapp: string, config_type: u32}, txnOptions?: {
372
+ /**
373
+ * The fee to pay for the transaction. Default: BASE_FEE
374
+ */
375
+ fee?: number;
376
+
377
+ /**
378
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
379
+ */
380
+ timeoutInSeconds?: number;
381
+
382
+ /**
383
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
384
+ */
385
+ simulate?: boolean;
386
+ }) => Promise<AssembledTransaction<Buffer>>
387
+
388
+ /**
389
+ * Construct and simulate a is_supported_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.
390
+ */
391
+ is_supported_eid: ({eid}: {eid: u32}, txnOptions?: {
392
+ /**
393
+ * The fee to pay for the transaction. Default: BASE_FEE
394
+ */
395
+ fee?: number;
396
+
397
+ /**
398
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
399
+ */
400
+ timeoutInSeconds?: number;
401
+
402
+ /**
403
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
404
+ */
405
+ simulate?: boolean;
406
+ }) => Promise<AssembledTransaction<boolean>>
407
+
408
+ /**
409
+ * Construct and simulate a message_lib_type 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.
410
+ */
411
+ message_lib_type: (txnOptions?: {
412
+ /**
413
+ * The fee to pay for the transaction. Default: BASE_FEE
414
+ */
415
+ fee?: number;
416
+
417
+ /**
418
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
419
+ */
420
+ timeoutInSeconds?: number;
421
+
422
+ /**
423
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
424
+ */
425
+ simulate?: boolean;
426
+ }) => Promise<AssembledTransaction<MessageLibType>>
427
+
428
+ /**
429
+ * Construct and simulate a set_config 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.
430
+ */
431
+ set_config: ({oapp, param}: {oapp: string, param: Array<SetConfigParam>}, txnOptions?: {
432
+ /**
433
+ * The fee to pay for the transaction. Default: BASE_FEE
434
+ */
435
+ fee?: number;
436
+
437
+ /**
438
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
439
+ */
440
+ timeoutInSeconds?: number;
441
+
442
+ /**
443
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
444
+ */
445
+ simulate?: boolean;
446
+ }) => Promise<AssembledTransaction<null>>
447
+
448
+ /**
449
+ * Construct and simulate a 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.
450
+ */
451
+ version: (txnOptions?: {
452
+ /**
453
+ * The fee to pay for the transaction. Default: BASE_FEE
454
+ */
455
+ fee?: number;
456
+
457
+ /**
458
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
459
+ */
460
+ timeoutInSeconds?: number;
461
+
462
+ /**
463
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
464
+ */
465
+ simulate?: boolean;
466
+ }) => Promise<AssembledTransaction<MessageLibVersion>>
467
+
468
+ /**
469
+ * Construct and simulate a validate_packet 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.
470
+ */
471
+ validate_packet: ({caller, header_bytes, payload_hash}: {caller: string, header_bytes: Buffer, payload_hash: Buffer}, txnOptions?: {
472
+ /**
473
+ * The fee to pay for the transaction. Default: BASE_FEE
474
+ */
475
+ fee?: number;
476
+
477
+ /**
478
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
479
+ */
480
+ timeoutInSeconds?: number;
481
+
482
+ /**
483
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
484
+ */
485
+ simulate?: boolean;
486
+ }) => Promise<AssembledTransaction<null>>
487
+
488
+ /**
489
+ * Construct and simulate a fee_recipient 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.
490
+ */
491
+ fee_recipient: (txnOptions?: {
492
+ /**
493
+ * The fee to pay for the transaction. Default: BASE_FEE
494
+ */
495
+ fee?: number;
496
+
497
+ /**
498
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
499
+ */
500
+ timeoutInSeconds?: number;
501
+
502
+ /**
503
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
504
+ */
505
+ simulate?: boolean;
506
+ }) => Promise<AssembledTransaction<string>>
507
+
508
+ /**
509
+ * Construct and simulate a native_fee 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.
510
+ */
511
+ native_fee: (txnOptions?: {
512
+ /**
513
+ * The fee to pay for the transaction. Default: BASE_FEE
514
+ */
515
+ fee?: number;
516
+
517
+ /**
518
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
519
+ */
520
+ timeoutInSeconds?: number;
521
+
522
+ /**
523
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
524
+ */
525
+ simulate?: boolean;
526
+ }) => Promise<AssembledTransaction<i128>>
527
+
528
+ /**
529
+ * Construct and simulate a zro_fee 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.
530
+ */
531
+ zro_fee: (txnOptions?: {
532
+ /**
533
+ * The fee to pay for the transaction. Default: BASE_FEE
534
+ */
535
+ fee?: number;
536
+
537
+ /**
538
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
539
+ */
540
+ timeoutInSeconds?: number;
541
+
542
+ /**
543
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
544
+ */
545
+ simulate?: boolean;
546
+ }) => Promise<AssembledTransaction<i128>>
547
+
548
+ /**
549
+ * Construct and simulate a whitelisted_caller 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.
550
+ */
551
+ whitelisted_caller: (txnOptions?: {
552
+ /**
553
+ * The fee to pay for the transaction. Default: BASE_FEE
554
+ */
555
+ fee?: number;
556
+
557
+ /**
558
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
559
+ */
560
+ timeoutInSeconds?: number;
561
+
562
+ /**
563
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
564
+ */
565
+ simulate?: boolean;
566
+ }) => Promise<AssembledTransaction<string>>
567
+
568
+ /**
569
+ * 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.
570
+ */
571
+ endpoint: (txnOptions?: {
572
+ /**
573
+ * The fee to pay for the transaction. Default: BASE_FEE
574
+ */
575
+ fee?: number;
576
+
577
+ /**
578
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
579
+ */
580
+ timeoutInSeconds?: number;
581
+
582
+ /**
583
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
584
+ */
585
+ simulate?: boolean;
586
+ }) => Promise<AssembledTransaction<string>>
587
+
588
+ /**
589
+ * 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.
590
+ */
591
+ eid: (txnOptions?: {
592
+ /**
593
+ * The fee to pay for the transaction. Default: BASE_FEE
594
+ */
595
+ fee?: number;
596
+
597
+ /**
598
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
599
+ */
600
+ timeoutInSeconds?: number;
601
+
602
+ /**
603
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
604
+ */
605
+ simulate?: boolean;
606
+ }) => Promise<AssembledTransaction<u32>>
607
+
608
+ /**
609
+ * Construct and simulate a treasury 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.
610
+ */
611
+ treasury: (txnOptions?: {
612
+ /**
613
+ * The fee to pay for the transaction. Default: BASE_FEE
614
+ */
615
+ fee?: number;
616
+
617
+ /**
618
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
619
+ */
620
+ timeoutInSeconds?: number;
621
+
622
+ /**
623
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
624
+ */
625
+ simulate?: boolean;
626
+ }) => Promise<AssembledTransaction<string>>
627
+
628
+ /**
629
+ * 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.
630
+ */
631
+ owner: (txnOptions?: {
632
+ /**
633
+ * The fee to pay for the transaction. Default: BASE_FEE
634
+ */
635
+ fee?: number;
636
+
637
+ /**
638
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
639
+ */
640
+ timeoutInSeconds?: number;
641
+
642
+ /**
643
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
644
+ */
645
+ simulate?: boolean;
646
+ }) => Promise<AssembledTransaction<Option<string>>>
647
+
648
+ /**
649
+ * 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.
650
+ */
651
+ transfer_ownership: ({new_owner}: {new_owner: string}, txnOptions?: {
652
+ /**
653
+ * The fee to pay for the transaction. Default: BASE_FEE
654
+ */
655
+ fee?: number;
656
+
657
+ /**
658
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
659
+ */
660
+ timeoutInSeconds?: number;
661
+
662
+ /**
663
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
664
+ */
665
+ simulate?: boolean;
666
+ }) => Promise<AssembledTransaction<null>>
667
+
668
+ /**
669
+ * 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.
670
+ */
671
+ renounce_ownership: (txnOptions?: {
672
+ /**
673
+ * The fee to pay for the transaction. Default: BASE_FEE
674
+ */
675
+ fee?: number;
676
+
677
+ /**
678
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
679
+ */
680
+ timeoutInSeconds?: number;
681
+
682
+ /**
683
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
684
+ */
685
+ simulate?: boolean;
686
+ }) => Promise<AssembledTransaction<null>>
687
+
688
+ /**
689
+ * Construct and simulate a set_ttl_config 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.
690
+ */
691
+ set_ttl_config: ({instance, persistent, temporary}: {instance: Option<TtlConfig>, persistent: Option<TtlConfig>, temporary: Option<TtlConfig>}, txnOptions?: {
692
+ /**
693
+ * The fee to pay for the transaction. Default: BASE_FEE
694
+ */
695
+ fee?: number;
696
+
697
+ /**
698
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
699
+ */
700
+ timeoutInSeconds?: number;
701
+
702
+ /**
703
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
704
+ */
705
+ simulate?: boolean;
706
+ }) => Promise<AssembledTransaction<null>>
707
+
708
+ /**
709
+ * Construct and simulate a ttl_config 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.
710
+ */
711
+ ttl_config: (txnOptions?: {
712
+ /**
713
+ * The fee to pay for the transaction. Default: BASE_FEE
714
+ */
715
+ fee?: number;
716
+
717
+ /**
718
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
719
+ */
720
+ timeoutInSeconds?: number;
721
+
722
+ /**
723
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
724
+ */
725
+ simulate?: boolean;
726
+ }) => Promise<AssembledTransaction<readonly [Option<TtlConfig>, Option<TtlConfig>, Option<TtlConfig>]>>
727
+
728
+ /**
729
+ * Construct and simulate a freeze_ttl_config 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.
730
+ */
731
+ freeze_ttl_config: (txnOptions?: {
732
+ /**
733
+ * The fee to pay for the transaction. Default: BASE_FEE
734
+ */
735
+ fee?: number;
736
+
737
+ /**
738
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
739
+ */
740
+ timeoutInSeconds?: number;
741
+
742
+ /**
743
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
744
+ */
745
+ simulate?: boolean;
746
+ }) => Promise<AssembledTransaction<null>>
747
+
748
+ /**
749
+ * Construct and simulate a is_ttl_config_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.
750
+ */
751
+ is_ttl_config_frozen: (txnOptions?: {
752
+ /**
753
+ * The fee to pay for the transaction. Default: BASE_FEE
754
+ */
755
+ fee?: number;
756
+
757
+ /**
758
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
759
+ */
760
+ timeoutInSeconds?: number;
761
+
762
+ /**
763
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
764
+ */
765
+ simulate?: boolean;
766
+ }) => Promise<AssembledTransaction<boolean>>
767
+
768
+ }
769
+ export class Client extends ContractClient {
770
+ static async deploy<T = Client>(
771
+ /** Constructor/Initialization Args for the contract's `__constructor` method */
772
+ {owner, endpoint, fee_recipient}: {owner: string, endpoint: string, fee_recipient: string},
773
+ /** Options for initializing a Client as well as for calling a method, with extras specific to deploying. */
774
+ options: MethodOptions &
775
+ Omit<ContractClientOptions, "contractId"> & {
776
+ /** The hash of the Wasm blob, which must already be installed on-chain. */
777
+ wasmHash: Buffer | string;
778
+ /** Salt used to generate the contract's ID. Passed through to {@link Operation.createCustomContract}. Default: random. */
779
+ salt?: Buffer | Uint8Array;
780
+ /** The format used to decode `wasmHash`, if it's provided as a string. */
781
+ format?: "hex" | "base64";
782
+ }
783
+ ): Promise<AssembledTransaction<T>> {
784
+ return ContractClient.deploy({owner, endpoint, fee_recipient}, options)
785
+ }
786
+ constructor(public readonly options: ContractClientOptions) {
787
+ super(
788
+ new ContractSpec([ "AAAAAgAAAAAAAAAAAAAAClNtbFN0b3JhZ2UAAAAAAAcAAAAAAAAAAAAAAAhFbmRwb2ludAAAAAAAAAAAAAAACFRyZWFzdXJ5AAAAAAAAAAAAAAAITG9jYWxFSUQAAAAAAAAAAAAAAAlOYXRpdmVGZWUAAAAAAAAAAAAAAAAAAAZaUk9GZWUAAAAAAAAAAAAAAAAADEZlZVJlY2lwaWVudAAAAAAAAAAAAAAAEVdoaXRlbGlzdGVkQ2FsbGVyAAAA",
789
+ "AAAAAAAAAAAAAAAFcXVvdGUAAAAAAAADAAAAAAAAAAZwYWNrZXQAAAAAB9AAAAAOT3V0Ym91bmRQYWNrZXQAAAAAAAAAAAAHb3B0aW9ucwAAAAAOAAAAAAAAAApwYXlfaW5fenJvAAAAAAABAAAAAQAAB9AAAAAMTWVzc2FnaW5nRmVl",
790
+ "AAAAAAAAAAAAAAAEc2VuZAAAAAMAAAAAAAAABnBhY2tldAAAAAAH0AAAAA5PdXRib3VuZFBhY2tldAAAAAAAAAAAAAdvcHRpb25zAAAAAA4AAAAAAAAACnBheV9pbl96cm8AAAAAAAEAAAABAAAH0AAAAA1GZWVzQW5kUGFja2V0AA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MessagingFee>,
842
+ send: this.txFromJSON<FeesAndPacket>,
843
+ get_config: this.txFromJSON<Buffer>,
844
+ is_supported_eid: this.txFromJSON<boolean>,
845
+ message_lib_type: this.txFromJSON<MessageLibType>,
846
+ set_config: this.txFromJSON<null>,
847
+ version: this.txFromJSON<MessageLibVersion>,
848
+ validate_packet: this.txFromJSON<null>,
849
+ fee_recipient: this.txFromJSON<string>,
850
+ native_fee: this.txFromJSON<i128>,
851
+ zro_fee: this.txFromJSON<i128>,
852
+ whitelisted_caller: this.txFromJSON<string>,
853
+ endpoint: this.txFromJSON<string>,
854
+ eid: this.txFromJSON<u32>,
855
+ treasury: this.txFromJSON<string>,
856
+ owner: this.txFromJSON<Option<string>>,
857
+ transfer_ownership: this.txFromJSON<null>,
858
+ renounce_ownership: this.txFromJSON<null>,
859
+ set_ttl_config: this.txFromJSON<null>,
860
+ ttl_config: this.txFromJSON<readonly [Option<TtlConfig>, Option<TtlConfig>, Option<TtlConfig>]>,
861
+ freeze_ttl_config: this.txFromJSON<null>,
862
+ is_ttl_config_frozen: this.txFromJSON<boolean>
863
+ }
864
+ }