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

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 (47) hide show
  1. package/dist/generated/bml.d.ts +40 -30
  2. package/dist/generated/bml.js +16 -11
  3. package/dist/generated/counter.d.ts +168 -134
  4. package/dist/generated/counter.js +26 -21
  5. package/dist/generated/dvn.d.ts +1932 -0
  6. package/dist/generated/dvn.js +288 -0
  7. package/dist/generated/dvn_fee_lib.d.ts +615 -0
  8. package/dist/generated/dvn_fee_lib.js +123 -0
  9. package/dist/generated/endpoint.d.ts +75 -41
  10. package/dist/generated/endpoint.js +22 -17
  11. package/dist/generated/executor.d.ts +1809 -0
  12. package/dist/generated/executor.js +269 -0
  13. package/dist/generated/executor_fee_lib.d.ts +999 -0
  14. package/dist/generated/executor_fee_lib.js +208 -0
  15. package/dist/generated/executor_helper.d.ts +869 -0
  16. package/dist/generated/executor_helper.js +187 -0
  17. package/dist/generated/oft_std.d.ts +1544 -0
  18. package/dist/generated/oft_std.js +271 -0
  19. package/dist/generated/price_feed.d.ts +1002 -0
  20. package/dist/generated/price_feed.js +170 -0
  21. package/dist/generated/sml.d.ts +75 -41
  22. package/dist/generated/sml.js +22 -17
  23. package/dist/generated/uln302.d.ts +79 -60
  24. package/dist/generated/uln302.js +37 -37
  25. package/dist/generated/upgrader.d.ts +70 -0
  26. package/dist/generated/upgrader.js +19 -0
  27. package/dist/index.d.ts +8 -0
  28. package/dist/index.js +11 -0
  29. package/package.json +8 -7
  30. package/src/generated/bml.ts +45 -35
  31. package/src/generated/counter.ts +186 -152
  32. package/src/generated/dvn.ts +1979 -0
  33. package/src/generated/dvn_fee_lib.ts +628 -0
  34. package/src/generated/endpoint.ts +81 -47
  35. package/src/generated/executor.ts +112 -34
  36. package/src/generated/executor_fee_lib.ts +1000 -0
  37. package/src/generated/executor_helper.ts +18 -8
  38. package/src/generated/oft_std.ts +500 -110
  39. package/src/generated/price_feed.ts +1043 -0
  40. package/src/generated/sml.ts +81 -47
  41. package/src/generated/uln302.ts +98 -69
  42. package/src/generated/upgrader.ts +102 -0
  43. package/src/index.ts +13 -0
  44. package/test/index.test.ts +0 -1
  45. package/test/oft.test.ts +12 -23
  46. package/test/suites/testUpgradeable.ts +169 -0
  47. package/test/upgrader.test.ts +309 -0
@@ -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 EndpointError = {
30
32
  1: {message:"AlreadyRegistered"},
@@ -308,7 +310,7 @@ export const BufferWriterError = {
308
310
  1100: {message:"InvalidAddressPayload"}
309
311
  }
310
312
 
311
- export const TtlError = {
313
+ export const TtlConfigurableError = {
312
314
  1200: {message:"InvalidTtlConfig"},
313
315
  1201: {message:"TtlConfigFrozen"},
314
316
  1202: {message:"TtlConfigAlreadyFrozen"}
@@ -323,13 +325,17 @@ export const BytesExtError = {
323
325
  1400: {message:"LengthMismatch"}
324
326
  }
325
327
 
328
+ export const UpgradeableError = {
329
+ 1500: {message:"MigrationNotAllowed"}
330
+ }
331
+
326
332
 
327
333
 
328
- export type DefaultOwnableStorage = {tag: "Owner", values: void};
334
+ export type OwnableStorage = {tag: "Owner", values: void};
329
335
 
330
336
 
331
337
  /**
332
- * A pair of TTL values: threshold (when to trigger extension) and extend_to (target TTL).
338
+ * TTL configuration: threshold (when to extend) and extend_to (target TTL).
333
339
  */
334
340
  export interface TtlConfig {
335
341
  /**
@@ -342,9 +348,11 @@ extend_to: u32;
342
348
  threshold: u32;
343
349
  }
344
350
 
345
- export type TtlConfigStorage = {tag: "Frozen", values: void} | {tag: "Instance", values: void} | {tag: "Persistent", values: void};
346
351
 
347
352
 
353
+ export type TtlConfigStorage = {tag: "Frozen", values: void} | {tag: "Instance", values: void} | {tag: "Persistent", values: void};
354
+
355
+ export type UpgradeableStorage = {tag: "Migrating", values: void};
348
356
 
349
357
  export interface Client {
350
358
  /**
@@ -1380,9 +1388,15 @@ export interface Client {
1380
1388
  }) => Promise<AssembledTransaction<null>>
1381
1389
 
1382
1390
  /**
1383
- * 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.
1391
+ * 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.
1392
+ * Extends the instance TTL.
1393
+ *
1394
+ * # Arguments
1395
+ *
1396
+ * * `threshold` - The threshold to extend the TTL.
1397
+ * * `extend_to` - The TTL to extend to.
1384
1398
  */
1385
- owner: (txnOptions?: {
1399
+ extend_instance_ttl: ({threshold, extend_to}: {threshold: u32, extend_to: u32}, txnOptions?: {
1386
1400
  /**
1387
1401
  * The fee to pay for the transaction. Default: BASE_FEE
1388
1402
  */
@@ -1397,12 +1411,24 @@ export interface Client {
1397
1411
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
1398
1412
  */
1399
1413
  simulate?: boolean;
1400
- }) => Promise<AssembledTransaction<Option<string>>>
1414
+ }) => Promise<AssembledTransaction<null>>
1401
1415
 
1402
1416
  /**
1403
- * 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.
1417
+ * 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.
1418
+ * Sets TTL configs for instance and persistent storage.
1419
+ *
1420
+ * - `None` values remove the corresponding config (disables auto-extension for that type)
1421
+ * - Validates that `threshold <= extend_to <= MAX_TTL`
1422
+ *
1423
+ * # Arguments
1424
+ * - `instance` - TTL config for instance storage
1425
+ * - `persistent` - TTL config for persistent storage
1426
+ *
1427
+ * # Panics
1428
+ * - `TtlConfigFrozen` if configs are frozen
1429
+ * - `InvalidTtlConfig` if validation fails
1404
1430
  */
1405
- transfer_ownership: ({new_owner}: {new_owner: string}, txnOptions?: {
1431
+ set_ttl_configs: ({instance, persistent}: {instance: Option<TtlConfig>, persistent: Option<TtlConfig>}, txnOptions?: {
1406
1432
  /**
1407
1433
  * The fee to pay for the transaction. Default: BASE_FEE
1408
1434
  */
@@ -1420,9 +1446,10 @@ export interface Client {
1420
1446
  }) => Promise<AssembledTransaction<null>>
1421
1447
 
1422
1448
  /**
1423
- * 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.
1449
+ * 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.
1450
+ * Returns the current TTL configs as (instance_config, persistent_config).
1424
1451
  */
1425
- renounce_ownership: (txnOptions?: {
1452
+ ttl_configs: (txnOptions?: {
1426
1453
  /**
1427
1454
  * The fee to pay for the transaction. Default: BASE_FEE
1428
1455
  */
@@ -1437,12 +1464,19 @@ export interface Client {
1437
1464
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
1438
1465
  */
1439
1466
  simulate?: boolean;
1440
- }) => Promise<AssembledTransaction<null>>
1467
+ }) => Promise<AssembledTransaction<readonly [Option<TtlConfig>, Option<TtlConfig>]>>
1441
1468
 
1442
1469
  /**
1443
- * 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.
1470
+ * 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.
1471
+ * Permanently freezes TTL configs, preventing any future modifications.
1472
+ *
1473
+ * This is irreversible and provides immutability guarantees to users.
1474
+ * Emits `TtlConfigsFrozen` event.
1475
+ *
1476
+ * # Panics
1477
+ * - `TtlConfigAlreadyFrozen` if already frozen
1444
1478
  */
1445
- set_ttl_configs: ({instance, persistent}: {instance: Option<TtlConfig>, persistent: Option<TtlConfig>}, txnOptions?: {
1479
+ freeze_ttl_configs: (txnOptions?: {
1446
1480
  /**
1447
1481
  * The fee to pay for the transaction. Default: BASE_FEE
1448
1482
  */
@@ -1460,9 +1494,10 @@ export interface Client {
1460
1494
  }) => Promise<AssembledTransaction<null>>
1461
1495
 
1462
1496
  /**
1463
- * 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.
1497
+ * 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.
1498
+ * Returns whether TTL configs are frozen.
1464
1499
  */
1465
- ttl_configs: (txnOptions?: {
1500
+ is_ttl_configs_frozen: (txnOptions?: {
1466
1501
  /**
1467
1502
  * The fee to pay for the transaction. Default: BASE_FEE
1468
1503
  */
@@ -1477,12 +1512,13 @@ export interface Client {
1477
1512
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
1478
1513
  */
1479
1514
  simulate?: boolean;
1480
- }) => Promise<AssembledTransaction<readonly [Option<TtlConfig>, Option<TtlConfig>]>>
1515
+ }) => Promise<AssembledTransaction<boolean>>
1481
1516
 
1482
1517
  /**
1483
- * 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.
1518
+ * 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.
1519
+ * Returns the current owner address, or None if no owner is set.
1484
1520
  */
1485
- freeze_ttl_configs: (txnOptions?: {
1521
+ owner: (txnOptions?: {
1486
1522
  /**
1487
1523
  * The fee to pay for the transaction. Default: BASE_FEE
1488
1524
  */
@@ -1497,12 +1533,13 @@ export interface Client {
1497
1533
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
1498
1534
  */
1499
1535
  simulate?: boolean;
1500
- }) => Promise<AssembledTransaction<null>>
1536
+ }) => Promise<AssembledTransaction<Option<string>>>
1501
1537
 
1502
1538
  /**
1503
- * 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.
1539
+ * 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.
1540
+ * Transfers ownership to a new address. Requires current owner authorization.
1504
1541
  */
1505
- is_ttl_configs_frozen: (txnOptions?: {
1542
+ transfer_ownership: ({new_owner}: {new_owner: string}, txnOptions?: {
1506
1543
  /**
1507
1544
  * The fee to pay for the transaction. Default: BASE_FEE
1508
1545
  */
@@ -1517,18 +1554,13 @@ export interface Client {
1517
1554
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
1518
1555
  */
1519
1556
  simulate?: boolean;
1520
- }) => Promise<AssembledTransaction<boolean>>
1557
+ }) => Promise<AssembledTransaction<null>>
1521
1558
 
1522
1559
  /**
1523
- * 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.
1524
- * Extends the instance TTL.
1525
- *
1526
- * # Arguments
1527
- *
1528
- * * `threshold` - The threshold to extend the TTL.
1529
- * * `extend_to` - The TTL to extend to.
1560
+ * 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.
1561
+ * Permanently renounces ownership. Requires current owner authorization.
1530
1562
  */
1531
- extend_instance_ttl: ({threshold, extend_to}: {threshold: u32, extend_to: u32}, txnOptions?: {
1563
+ renounce_ownership: (txnOptions?: {
1532
1564
  /**
1533
1565
  * The fee to pay for the transaction. Default: BASE_FEE
1534
1566
  */
@@ -1646,26 +1678,28 @@ export class Client extends ContractClient {
1646
1678
  "AAAAAAAAADBSZXR1cm5zIHRoZSBkZWxlZ2F0ZSBhZGRyZXNzIGZvciBhbiBPQXBwIGlmIHNldC4AAAAIZGVsZWdhdGUAAAABAAAAAAAAAARvYXBwAAAAEwAAAAEAAAPoAAAAEw==",
1647
1679
  "AAAAAAAAAAAAAAANX19jb25zdHJ1Y3RvcgAAAAAAAAEAAAAAAAAABW93bmVyAAAAAAAAEwAAAAA=",
1648
1680
  "AAAAAAAAALFSZWNvdmVycyB0b2tlbnMgc2VudCB0byB0aGlzIGNvbnRyYWN0IGJ5IG1pc3Rha2UuCgojIEFyZ3VtZW50cwoqIGB0b2tlbmAgLSBUaGUgdG9rZW4gYWRkcmVzcyB0byByZWNvdmVyCiogYHRvYCAtIFRoZSBhZGRyZXNzIHRvIHNlbmQgdGhlIHRva2VuIHRvCiogYGFtb3VudGAgLSBUaGUgYW1vdW50IHRvIHNlbmQAAAAAAAANcmVjb3Zlcl90b2tlbgAAAAAAAAMAAAAAAAAABXRva2VuAAAAAAAAEwAAAAAAAAACdG8AAAAAABMAAAAAAAAABmFtb3VudAAAAAAACwAAAAA=",
1649
- "AAAAAAAAAAAAAAAFb3duZXIAAAAAAAAAAAAAAQAAA+gAAAAT",
1650
- "AAAAAAAAAAAAAAASdHJhbnNmZXJfb3duZXJzaGlwAAAAAAABAAAAAAAAAAluZXdfb3duZXIAAAAAAAATAAAAAA==",
1651
- "AAAAAAAAAAAAAAAScmVub3VuY2Vfb3duZXJzaGlwAAAAAAAAAAAAAA==",
1652
- "AAAAAAAAAAAAAAAPc2V0X3R0bF9jb25maWdzAAAAAAIAAAAAAAAACGluc3RhbmNlAAAD6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gAAAAEAAAASdHRsX2NvbmZpZ3NfZnJvemVuAAAAAAAAAAAAAg==" ]),
1700
+ "AAAABQAAACpFdmVudCBlbWl0dGVkIHdoZW4gVFRMIGNvbmZpZ3MgYXJlIGZyb3plbi4AAAAAAAAAAAAQVHRsQ29uZmlnc0Zyb3plbgAAAAEAAAASdHRsX2NvbmZpZ3NfZnJvemVuAAAAAAAAAAAAAg==",
1701
+ "AAAAAgAAAAAAAAAAAAAAEFR0bENvbmZpZ1N0b3JhZ2UAAAADAAAAAAAAAAAAAAAGRnJvemVuAAAAAAAAAAAAAAAAAAhJbnN0YW5jZQAAAAAAAAAAAAAAClBlcnNpc3RlbnQAAA==",
1702
+ "AAAAAgAAAAAAAAAAAAAAElVwZ3JhZGVhYmxlU3RvcmFnZQAAAAAAAQAAAAAAAAAAAAAACU1pZ3JhdGluZwAAAA==" ]),
1669
1703
  options
1670
1704
  )
1671
1705
  }
@@ -1717,13 +1751,13 @@ export class Client extends ContractClient {
1717
1751
  zro: this.txFromJSON<Option<string>>,
1718
1752
  delegate: this.txFromJSON<Option<string>>,
1719
1753
  recover_token: this.txFromJSON<null>,
1720
- owner: this.txFromJSON<Option<string>>,
1721
- transfer_ownership: this.txFromJSON<null>,
1722
- renounce_ownership: this.txFromJSON<null>,
1754
+ extend_instance_ttl: this.txFromJSON<null>,
1723
1755
  set_ttl_configs: this.txFromJSON<null>,
1724
1756
  ttl_configs: this.txFromJSON<readonly [Option<TtlConfig>, Option<TtlConfig>]>,
1725
1757
  freeze_ttl_configs: this.txFromJSON<null>,
1726
1758
  is_ttl_configs_frozen: this.txFromJSON<boolean>,
1727
- extend_instance_ttl: this.txFromJSON<null>
1759
+ owner: this.txFromJSON<Option<string>>,
1760
+ transfer_ownership: this.txFromJSON<null>,
1761
+ renounce_ownership: this.txFromJSON<null>
1728
1762
  }
1729
1763
  }
@@ -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 ExecutorError = {
30
32
  1: {message:"EidNotSupported"},
@@ -413,7 +415,7 @@ export const BufferWriterError = {
413
415
  1100: {message:"InvalidAddressPayload"}
414
416
  }
415
417
 
416
- export const TtlError = {
418
+ export const TtlConfigurableError = {
417
419
  1200: {message:"InvalidTtlConfig"},
418
420
  1201: {message:"TtlConfigFrozen"},
419
421
  1202: {message:"TtlConfigAlreadyFrozen"}
@@ -428,13 +430,17 @@ export const BytesExtError = {
428
430
  1400: {message:"LengthMismatch"}
429
431
  }
430
432
 
433
+ export const UpgradeableError = {
434
+ 1500: {message:"MigrationNotAllowed"}
435
+ }
436
+
431
437
 
432
438
 
433
- export type DefaultOwnableStorage = {tag: "Owner", values: void};
439
+ export type OwnableStorage = {tag: "Owner", values: void};
434
440
 
435
441
 
436
442
  /**
437
- * A pair of TTL values: threshold (when to trigger extension) and extend_to (target TTL).
443
+ * TTL configuration: threshold (when to extend) and extend_to (target TTL).
438
444
  */
439
445
  export interface TtlConfig {
440
446
  /**
@@ -447,9 +453,11 @@ extend_to: u32;
447
453
  threshold: u32;
448
454
  }
449
455
 
450
- export type TtlConfigStorage = {tag: "Frozen", values: void} | {tag: "Instance", values: void} | {tag: "Persistent", values: void};
451
456
 
452
457
 
458
+ export type TtlConfigStorage = {tag: "Frozen", values: void} | {tag: "Instance", values: void} | {tag: "Persistent", values: void};
459
+
460
+ export type UpgradeableStorage = {tag: "Migrating", values: void};
453
461
 
454
462
  export const WorkerError = {
455
463
  1200: {message:"AdminAlreadyExists"},
@@ -1454,9 +1462,9 @@ export interface Client {
1454
1462
  }) => Promise<AssembledTransaction<null>>
1455
1463
 
1456
1464
  /**
1457
- * 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.
1465
+ * Construct and simulate a upgrade 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.
1458
1466
  */
1459
- owner: (txnOptions?: {
1467
+ upgrade: ({new_wasm_hash}: {new_wasm_hash: Buffer}, txnOptions?: {
1460
1468
  /**
1461
1469
  * The fee to pay for the transaction. Default: BASE_FEE
1462
1470
  */
@@ -1471,12 +1479,12 @@ export interface Client {
1471
1479
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
1472
1480
  */
1473
1481
  simulate?: boolean;
1474
- }) => Promise<AssembledTransaction<Option<string>>>
1482
+ }) => Promise<AssembledTransaction<null>>
1475
1483
 
1476
1484
  /**
1477
- * 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.
1485
+ * Construct and simulate a migrate 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.
1478
1486
  */
1479
- transfer_ownership: ({new_owner}: {new_owner: string}, txnOptions?: {
1487
+ migrate: ({migration_data}: {migration_data: MigrationData}, txnOptions?: {
1480
1488
  /**
1481
1489
  * The fee to pay for the transaction. Default: BASE_FEE
1482
1490
  */
@@ -1494,9 +1502,15 @@ export interface Client {
1494
1502
  }) => Promise<AssembledTransaction<null>>
1495
1503
 
1496
1504
  /**
1497
- * 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.
1505
+ * 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.
1506
+ * Extends the instance TTL.
1507
+ *
1508
+ * # Arguments
1509
+ *
1510
+ * * `threshold` - The threshold to extend the TTL.
1511
+ * * `extend_to` - The TTL to extend to.
1498
1512
  */
1499
- renounce_ownership: (txnOptions?: {
1513
+ extend_instance_ttl: ({threshold, extend_to}: {threshold: u32, extend_to: u32}, txnOptions?: {
1500
1514
  /**
1501
1515
  * The fee to pay for the transaction. Default: BASE_FEE
1502
1516
  */
@@ -1515,6 +1529,18 @@ export interface Client {
1515
1529
 
1516
1530
  /**
1517
1531
  * 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.
1532
+ * Sets TTL configs for instance and persistent storage.
1533
+ *
1534
+ * - `None` values remove the corresponding config (disables auto-extension for that type)
1535
+ * - Validates that `threshold <= extend_to <= MAX_TTL`
1536
+ *
1537
+ * # Arguments
1538
+ * - `instance` - TTL config for instance storage
1539
+ * - `persistent` - TTL config for persistent storage
1540
+ *
1541
+ * # Panics
1542
+ * - `TtlConfigFrozen` if configs are frozen
1543
+ * - `InvalidTtlConfig` if validation fails
1518
1544
  */
1519
1545
  set_ttl_configs: ({instance, persistent}: {instance: Option<TtlConfig>, persistent: Option<TtlConfig>}, txnOptions?: {
1520
1546
  /**
@@ -1535,6 +1561,7 @@ export interface Client {
1535
1561
 
1536
1562
  /**
1537
1563
  * 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.
1564
+ * Returns the current TTL configs as (instance_config, persistent_config).
1538
1565
  */
1539
1566
  ttl_configs: (txnOptions?: {
1540
1567
  /**
@@ -1555,6 +1582,13 @@ export interface Client {
1555
1582
 
1556
1583
  /**
1557
1584
  * 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.
1585
+ * Permanently freezes TTL configs, preventing any future modifications.
1586
+ *
1587
+ * This is irreversible and provides immutability guarantees to users.
1588
+ * Emits `TtlConfigsFrozen` event.
1589
+ *
1590
+ * # Panics
1591
+ * - `TtlConfigAlreadyFrozen` if already frozen
1558
1592
  */
1559
1593
  freeze_ttl_configs: (txnOptions?: {
1560
1594
  /**
@@ -1575,6 +1609,7 @@ export interface Client {
1575
1609
 
1576
1610
  /**
1577
1611
  * 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.
1612
+ * Returns whether TTL configs are frozen.
1578
1613
  */
1579
1614
  is_ttl_configs_frozen: (txnOptions?: {
1580
1615
  /**
@@ -1594,15 +1629,52 @@ export interface Client {
1594
1629
  }) => Promise<AssembledTransaction<boolean>>
1595
1630
 
1596
1631
  /**
1597
- * 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.
1598
- * Extends the instance TTL.
1599
- *
1600
- * # Arguments
1601
- *
1602
- * * `threshold` - The threshold to extend the TTL.
1603
- * * `extend_to` - The TTL to extend to.
1632
+ * 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.
1633
+ * Returns the current owner address, or None if no owner is set.
1604
1634
  */
1605
- extend_instance_ttl: ({threshold, extend_to}: {threshold: u32, extend_to: u32}, txnOptions?: {
1635
+ owner: (txnOptions?: {
1636
+ /**
1637
+ * The fee to pay for the transaction. Default: BASE_FEE
1638
+ */
1639
+ fee?: number;
1640
+
1641
+ /**
1642
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
1643
+ */
1644
+ timeoutInSeconds?: number;
1645
+
1646
+ /**
1647
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
1648
+ */
1649
+ simulate?: boolean;
1650
+ }) => Promise<AssembledTransaction<Option<string>>>
1651
+
1652
+ /**
1653
+ * 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.
1654
+ * Transfers ownership to a new address. Requires current owner authorization.
1655
+ */
1656
+ transfer_ownership: ({new_owner}: {new_owner: string}, txnOptions?: {
1657
+ /**
1658
+ * The fee to pay for the transaction. Default: BASE_FEE
1659
+ */
1660
+ fee?: number;
1661
+
1662
+ /**
1663
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
1664
+ */
1665
+ timeoutInSeconds?: number;
1666
+
1667
+ /**
1668
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
1669
+ */
1670
+ simulate?: boolean;
1671
+ }) => Promise<AssembledTransaction<null>>
1672
+
1673
+ /**
1674
+ * 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.
1675
+ * Permanently renounces ownership. Requires current owner authorization.
1676
+ */
1677
+ renounce_ownership: (txnOptions?: {
1606
1678
  /**
1607
1679
  * The fee to pay for the transaction. Default: BASE_FEE
1608
1680
  */
@@ -1681,15 +1753,17 @@ export class Client extends ContractClient {
1681
1753
  "AAAAAAAAADtSZXR1cm5zIHdoZXRoZXIgYSAoY29udHJhY3QsIGZ1bmN0aW9uKSBwYWlyIGlzIHdoaXRlbGlzdGVkLgAAAAARaXNfd2hpdGVsaXN0ZWRfZm4AAAAAAAACAAAAAAAAAAhjb250cmFjdAAAABMAAAAAAAAAB2ZuX25hbWUAAAAAEQAAAAEAAAAB",
1682
1754
  "AAAAAAAAALJXaXRoZHJhd3MgYSB0b2tlbiBmcm9tIHRoZSBjb250cmFjdCB0byBhIHNwZWNpZmllZCBhZGRyZXNzLgoKIyBBcmd1bWVudHMKKiBgdG9rZW5gIC0gVGhlIHRva2VuIGNvbnRyYWN0IGFkZHJlc3MKKiBgdG9gIC0gVGhlIHJlY2lwaWVudCBhZGRyZXNzCiogYGFtb3VudGAgLSBUaGUgYW1vdW50IHRvIHdpdGhkcmF3AAAAAAAOd2l0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KAAAAAAAAABJJbnZhbGlkUGF5bG9hZEhhc2gAAAAAAAsAAAAAAAAAFUludmFsaWRSZWNlaXZlTGlicmFyeQAAAAAAAAwAAAAAAAAAEU9ubHlOb25EZWZhdWx0TGliAAAAAAAADQAAAAAAAAAOT25seVJlY2VpdmVMaWIAAAAAAA4AAAAAAAAAEU9ubHlSZWdpc3RlcmVkTGliAAAAAAAADwAAAAAAAAALT25seVNlbmRMaWIAAAAAEAAAAAAAAAAUUGF0aE5vdEluaXRpYWxpemFibGUAAAARAAAAAAAAABFQYXRoTm90VmVyaWZpYWJsZQAAAAAAABIAAAAAAAAAE1BheWxvYWRIYXNoTm90Rm91bmQAAAAAEwAAAAAAAAAJU2FtZVZhbHVlAAAAAAAAFAAAAAAAAAAMVW5hdXRob3JpemVkAAAAFQAAAAAAAAAOVW5zdXBwb3J0ZWRFaWQAAAAAABYAAAAAAAAAClplcm9aUk9GZWUAAAAAABcAAAAAAAAADlpST1VuYXZhaWxhYmxlAAAAAAAY",
1694
1768
  "AAAABQAAAAAAAAAAAAAAClBhY2tldFNlbnQAAAAAAAEAAAALcGFja2V0X3NlbnQAAAAAAwAAAAAAAAAOZW5jb2RlZF9wYWNrZXQAAAAAAA4AAAAAAAAAAAAAAAdvcHRpb25zAAAAAA4AAAAAAAAAAAAAAAxzZW5kX2xpYnJhcnkAAAATAAAAAAAAAAI=",
1695
1769
  "AAAABQAAAAAAAAAAAAAADlBhY2tldFZlcmlmaWVkAAAAAAABAAAAD3BhY2tldF92ZXJpZmllZAAAAAADAAAAAAAAAAZvcmlnaW4AAAAAB9AAAAAGT3JpZ2luAAAAAAABAAAAAAAAAAhyZWNlaXZlcgAAABMAAAABAAAAAAAAAAxwYXlsb2FkX2hhc2gAAAPuAAAAIAAAAAAAAAAC",
@@ -1726,16 +1800,18 @@ export class Client extends ContractClient {
1726
1800
  "AAAABAAAAAAAAAAAAAAAEldvcmtlck9wdGlvbnNFcnJvcgAAAAAACQAAAAAAAAASSW52YWxpZEJ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lTGliTm90U2V0AAAAAATBAAAAAAAAAA5Xb3JrZXJJc1BhdXNlZAAAAAAEwg==",
1740
1816
  "AAAABQAAAAAAAAAAAAAACFNldEFkbWluAAAAAQAAAAlzZXRfYWRtaW4AAAAAAAACAAAAAAAAAAVhZG1pbgAAAAAAABMAAAAAAAAAAAAAAAZhY3RpdmUAAAAAAAEAAAAAAAAAAg==",
1741
1817
  "AAAABQAAAAAAAAAAAAAAFlNldFN1cHBvcnRlZE1lc3NhZ2VMaWIAAAAAAAEAAAAZc2V0X3N1cHBvcnRlZF9tZXNzYWdlX2xpYgAAAAAAAAIAAAAAAAAAC21lc3NhZ2VfbGliAAAAABMAAAAAAAAAAAAAAAlzdXBwb3J0ZWQAAAAAAAABAAAAAAAAAAI=",
@@ -1790,13 +1866,15 @@ export class Client extends ContractClient {
1790
1866
  is_whitelisted_fn: this.txFromJSON<boolean>,
1791
1867
  withdraw_token: this.txFromJSON<null>,
1792
1868
  set_admin: this.txFromJSON<null>,
1793
- owner: this.txFromJSON<Option<string>>,
1794
- transfer_ownership: this.txFromJSON<null>,
1795
- renounce_ownership: this.txFromJSON<null>,
1869
+ upgrade: this.txFromJSON<null>,
1870
+ migrate: this.txFromJSON<null>,
1871
+ extend_instance_ttl: this.txFromJSON<null>,
1796
1872
  set_ttl_configs: this.txFromJSON<null>,
1797
1873
  ttl_configs: this.txFromJSON<readonly [Option<TtlConfig>, Option<TtlConfig>]>,
1798
1874
  freeze_ttl_configs: this.txFromJSON<null>,
1799
1875
  is_ttl_configs_frozen: this.txFromJSON<boolean>,
1800
- extend_instance_ttl: this.txFromJSON<null>
1876
+ owner: this.txFromJSON<Option<string>>,
1877
+ transfer_ownership: this.txFromJSON<null>,
1878
+ renounce_ownership: this.txFromJSON<null>
1801
1879
  }
1802
1880
  }