@avalabs/glacier-sdk 2.8.0-canary.9ef5670.0 → 2.8.0-canary.a17552e.0

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 (113) hide show
  1. package/dist/index.d.ts +720 -476
  2. package/dist/index.js +356 -198
  3. package/esm/generated/Glacier.d.ts +4 -0
  4. package/esm/generated/Glacier.js +6 -0
  5. package/esm/generated/core/CancelablePromise.d.ts +2 -8
  6. package/esm/generated/core/CancelablePromise.js +38 -36
  7. package/esm/generated/core/request.js +3 -2
  8. package/esm/generated/models/AddressActivityMetadata.d.ts +2 -2
  9. package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
  10. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  11. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  12. package/esm/generated/models/AssetWithPriceInfo.d.ts +2 -4
  13. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  14. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  15. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  16. package/esm/generated/models/ChainInfo.d.ts +1 -3
  17. package/esm/generated/models/ChainStatus.d.ts +3 -0
  18. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  19. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  20. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  21. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +7 -2
  22. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +7 -2
  23. package/esm/generated/models/EVMInput.d.ts +3 -3
  24. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  25. package/esm/generated/models/EVMOperationType.js +6 -0
  26. package/esm/generated/models/EVMOutput.d.ts +3 -3
  27. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  28. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  29. package/esm/generated/models/GetChainResponse.d.ts +1 -3
  30. package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
  31. package/esm/generated/models/GlacierApiFeature.js +7 -0
  32. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  33. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
  34. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  35. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
  36. package/esm/generated/models/Method.d.ts +0 -3
  37. package/esm/generated/models/Money.d.ts +0 -3
  38. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  39. package/esm/generated/models/OperationType.d.ts +4 -2
  40. package/esm/generated/models/OperationType.js +3 -1
  41. package/esm/generated/models/PChainBalance.d.ts +15 -15
  42. package/esm/generated/models/PChainSharedAsset.d.ts +4 -4
  43. package/esm/generated/models/PChainTransaction.d.ts +12 -7
  44. package/esm/generated/models/PChainTransactionType.d.ts +2 -0
  45. package/esm/generated/models/PChainTransactionType.js +2 -0
  46. package/esm/generated/models/PChainUtxo.d.ts +2 -2
  47. package/esm/generated/models/PendingReward.d.ts +3 -3
  48. package/esm/generated/models/PendingTeleporterMessage.d.ts +7 -2
  49. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  50. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  51. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  52. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  53. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  54. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  55. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  56. package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
  57. package/esm/generated/models/PrimaryNetworkTxType.js +2 -1
  58. package/esm/generated/models/RegisterWebhookRequest.d.ts +8 -3
  59. package/esm/generated/models/RpcErrorDto.d.ts +7 -0
  60. package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
  61. package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
  62. package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
  63. package/esm/generated/models/SortByOption.d.ts +9 -0
  64. package/esm/generated/models/SortByOption.js +10 -0
  65. package/esm/generated/models/Subnet.d.ts +17 -0
  66. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  67. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  68. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  69. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  70. package/esm/generated/models/Utxo.d.ts +2 -2
  71. package/esm/generated/models/WebhookResponse.d.ts +10 -0
  72. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  73. package/esm/generated/models/XChainBalances.d.ts +3 -3
  74. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
  75. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
  76. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  77. package/esm/generated/models/XChainTransactionType.d.ts +3 -0
  78. package/esm/generated/services/DefaultService.d.ts +0 -53
  79. package/esm/generated/services/DefaultService.js +0 -42
  80. package/esm/generated/services/EvmBalancesService.d.ts +27 -23
  81. package/esm/generated/services/EvmBalancesService.js +10 -8
  82. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  83. package/esm/generated/services/EvmBlocksService.js +4 -4
  84. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  85. package/esm/generated/services/EvmChainsService.js +4 -2
  86. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  87. package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
  88. package/esm/generated/services/EvmTransactionsService.js +32 -32
  89. package/esm/generated/services/NfTsService.d.ts +8 -8
  90. package/esm/generated/services/NfTsService.js +4 -4
  91. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  92. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  93. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +12 -12
  94. package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -4
  95. package/esm/generated/services/PrimaryNetworkService.d.ts +51 -36
  96. package/esm/generated/services/PrimaryNetworkService.js +20 -14
  97. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  98. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  99. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  100. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  101. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  102. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  103. package/esm/generated/services/RpcService.d.ts +25 -0
  104. package/esm/generated/services/RpcService.js +24 -0
  105. package/esm/generated/services/TeleporterService.d.ts +22 -25
  106. package/esm/generated/services/TeleporterService.js +8 -10
  107. package/esm/generated/services/WebhooksService.d.ts +143 -0
  108. package/esm/generated/services/WebhooksService.js +125 -0
  109. package/esm/index.d.ts +20 -2
  110. package/esm/index.js +8 -2
  111. package/package.json +3 -3
  112. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  113. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
@@ -1,9 +1,6 @@
1
1
  import { CurrencyCode } from './CurrencyCode.js';
2
2
 
3
3
  type Money = {
4
- /**
5
- * ISO 4217 currency code.
6
- */
7
4
  currencyCode: CurrencyCode;
8
5
  /**
9
6
  * Monetary value in base 10 decimals.
@@ -1,3 +1,6 @@
1
+ /**
2
+ * The metadata indexing status of the nft.
3
+ */
1
4
  declare enum NftTokenMetadataStatus {
2
5
  UNKNOWN = "UNKNOWN",
3
6
  MISSING_TOKEN = "MISSING_TOKEN",
@@ -1,6 +1,8 @@
1
1
  declare enum OperationType {
2
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
3
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
3
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
4
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
5
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
4
6
  }
5
7
 
6
8
  export { OperationType };
@@ -1,6 +1,8 @@
1
1
  var OperationType = /* @__PURE__ */ ((OperationType2) => {
2
- OperationType2["TRANSACTION_EXPORT_EVM"] = "TRANSACTION_EXPORT_EVM";
3
2
  OperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK";
3
+ OperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING";
4
+ OperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE";
5
+ OperationType2["TRANSACTION_EXPORT_EVM"] = "TRANSACTION_EXPORT_EVM";
4
6
  return OperationType2;
5
7
  })(OperationType || {});
6
8
 
@@ -1,37 +1,37 @@
1
- import { Asset } from './Asset.js';
1
+ import { AggregatedAssetAmount } from './AggregatedAssetAmount.js';
2
2
  import { PChainSharedAsset } from './PChainSharedAsset.js';
3
3
 
4
4
  type PChainBalance = {
5
5
  /**
6
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
6
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
7
7
  */
8
- unlockedUnstaked: Array<Asset>;
8
+ unlockedUnstaked: Array<AggregatedAssetAmount>;
9
9
  /**
10
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
10
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
11
11
  */
12
- unlockedStaked: Array<Asset>;
12
+ unlockedStaked: Array<AggregatedAssetAmount>;
13
13
  /**
14
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
14
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
15
15
  */
16
- lockedPlatform: Array<Asset>;
16
+ lockedPlatform: Array<AggregatedAssetAmount>;
17
17
  /**
18
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
18
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
19
19
  */
20
- lockedStakeable: Array<Asset>;
20
+ lockedStakeable: Array<AggregatedAssetAmount>;
21
21
  /**
22
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
22
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
23
23
  */
24
- lockedStaked: Array<Asset>;
24
+ lockedStaked: Array<AggregatedAssetAmount>;
25
25
  /**
26
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
26
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
27
27
  */
28
- pendingStaked: Array<Asset>;
28
+ pendingStaked: Array<AggregatedAssetAmount>;
29
29
  /**
30
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
30
+ * A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
31
31
  */
32
32
  atomicMemoryUnlocked: Array<PChainSharedAsset>;
33
33
  /**
34
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
34
+ * A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
35
35
  */
36
36
  atomicMemoryLocked: Array<PChainSharedAsset>;
37
37
  };
@@ -1,3 +1,5 @@
1
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
2
+
1
3
  type PChainSharedAsset = {
2
4
  /**
3
5
  * Unique ID for an asset.
@@ -15,14 +17,12 @@ type PChainSharedAsset = {
15
17
  * Denomination of this asset to represent fungibility.
16
18
  */
17
19
  denomination: number;
18
- /**
19
- * Type of asset like SECP256K1 or NFT.
20
- */
21
- type: string;
20
+ type: PrimaryNetworkAssetType;
22
21
  /**
23
22
  * Amount of the asset.
24
23
  */
25
24
  amount: string;
25
+ utxoCount: number;
26
26
  sharedWithChainId: string;
27
27
  status: string;
28
28
  };
@@ -1,6 +1,7 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetAmount } from './AssetAmount.js';
2
2
  import { PChainTransactionType } from './PChainTransactionType.js';
3
3
  import { PChainUtxo } from './PChainUtxo.js';
4
+ import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
4
5
 
5
6
  type PChainTransaction = {
6
7
  /**
@@ -25,17 +26,17 @@ type PChainTransaction = {
25
26
  */
26
27
  destinationChain?: string;
27
28
  /**
28
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
29
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
29
30
  */
30
- value: Array<Asset>;
31
+ value: Array<AssetAmount>;
31
32
  /**
32
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
33
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
33
34
  */
34
- amountBurned: Array<Asset>;
35
+ amountBurned: Array<AssetAmount>;
35
36
  /**
36
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
37
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
37
38
  */
38
- amountStaked: Array<Asset>;
39
+ amountStaked: Array<AssetAmount>;
39
40
  /**
40
41
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
41
42
  */
@@ -67,6 +68,10 @@ type PChainTransaction = {
67
68
  * Present for RewardValidatorTx
68
69
  */
69
70
  stakingTxHash?: string;
71
+ /**
72
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
73
+ */
74
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
70
75
  };
71
76
 
72
77
  export { PChainTransaction };
@@ -12,6 +12,8 @@ declare enum PChainTransactionType {
12
12
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
13
13
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
14
14
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
15
+ BASE_TX = "BaseTx",
16
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
15
17
  UNKNOWN = "UNKNOWN"
16
18
  }
17
19
 
@@ -12,6 +12,8 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
12
12
  PChainTransactionType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
13
13
  PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
14
14
  PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
15
+ PChainTransactionType2["BASE_TX"] = "BaseTx";
16
+ PChainTransactionType2["TRANSFER_SUBNET_OWNERSHIP_TX"] = "TransferSubnetOwnershipTx";
15
17
  PChainTransactionType2["UNKNOWN"] = "UNKNOWN";
16
18
  return PChainTransactionType2;
17
19
  })(PChainTransactionType || {});
@@ -1,4 +1,4 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetAmount } from './AssetAmount.js';
2
2
  import { RewardType } from './RewardType.js';
3
3
  import { UtxoType } from './UtxoType.js';
4
4
 
@@ -7,7 +7,7 @@ type PChainUtxo = {
7
7
  * Addresses that are eligible to sign the consumption of this output.
8
8
  */
9
9
  addresses: Array<string>;
10
- asset: Asset;
10
+ asset: AssetAmount;
11
11
  /**
12
12
  * Blockchain ID on which this output is consumed on.
13
13
  */
@@ -1,4 +1,4 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetAmount } from './AssetAmount.js';
2
2
  import { RewardType } from './RewardType.js';
3
3
 
4
4
  type PendingReward = {
@@ -14,9 +14,9 @@ type PendingReward = {
14
14
  rewardType: RewardType;
15
15
  progress: number;
16
16
  /**
17
- * An object containing P-chain Asset ID and the amount of that Asset ID.
17
+ * An object containing P-chain Asset basic info and the amount of that Asset ID.
18
18
  */
19
- estimatedReward: Asset;
19
+ estimatedReward: AssetAmount;
20
20
  };
21
21
 
22
22
  export { PendingReward };
@@ -1,15 +1,20 @@
1
+ import { TeleporterReceipt } from './TeleporterReceipt.js';
1
2
  import { TeleporterRewardDetails } from './TeleporterRewardDetails.js';
2
3
  import { TeleporterSourceTransaction } from './TeleporterSourceTransaction.js';
3
4
 
4
5
  type PendingTeleporterMessage = {
6
+ messageId: string;
7
+ teleporterContractAddress: string;
5
8
  sourceBlockchainId: string;
6
9
  destinationBlockchainId: string;
7
- messageId: string;
10
+ sourceEvmChainId: string;
11
+ destinationEvmChainId: string;
12
+ messageNonce: string;
8
13
  from: string;
9
14
  to: string;
10
15
  data?: string;
11
16
  messageExecuted: boolean;
12
- receipts: Array<string>;
17
+ receipts: Array<TeleporterReceipt>;
13
18
  receiptDelivered: boolean;
14
19
  rewardDetails: TeleporterRewardDetails;
15
20
  sourceTransaction: TeleporterSourceTransaction;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Cap represents if an asset is a variable or fixed cap asset.
3
+ */
4
+ declare enum PrimaryNetworkAssetCap {
5
+ FIXED = "fixed",
6
+ VARIABLE = "variable"
7
+ }
8
+
9
+ export { PrimaryNetworkAssetCap };
@@ -0,0 +1,7 @@
1
+ var PrimaryNetworkAssetCap = /* @__PURE__ */ ((PrimaryNetworkAssetCap2) => {
2
+ PrimaryNetworkAssetCap2["FIXED"] = "fixed";
3
+ PrimaryNetworkAssetCap2["VARIABLE"] = "variable";
4
+ return PrimaryNetworkAssetCap2;
5
+ })(PrimaryNetworkAssetCap || {});
6
+
7
+ export { PrimaryNetworkAssetCap };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Type of asset like SECP256K1 or NFT.
3
+ */
4
+ declare enum PrimaryNetworkAssetType {
5
+ SECP256K1 = "secp256k1",
6
+ NFT = "nft"
7
+ }
8
+
9
+ export { PrimaryNetworkAssetType };
@@ -0,0 +1,7 @@
1
+ var PrimaryNetworkAssetType = /* @__PURE__ */ ((PrimaryNetworkAssetType2) => {
2
+ PrimaryNetworkAssetType2["SECP256K1"] = "secp256k1";
3
+ PrimaryNetworkAssetType2["NFT"] = "nft";
4
+ return PrimaryNetworkAssetType2;
5
+ })(PrimaryNetworkAssetType || {});
6
+
7
+ export { PrimaryNetworkAssetType };
@@ -0,0 +1,7 @@
1
+ declare enum PrimaryNetworkOperationType {
2
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
3
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
4
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
5
+ }
6
+
7
+ export { PrimaryNetworkOperationType };
@@ -0,0 +1,8 @@
1
+ var PrimaryNetworkOperationType = /* @__PURE__ */ ((PrimaryNetworkOperationType2) => {
2
+ PrimaryNetworkOperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK";
3
+ PrimaryNetworkOperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING";
4
+ PrimaryNetworkOperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE";
5
+ return PrimaryNetworkOperationType2;
6
+ })(PrimaryNetworkOperationType || {});
7
+
8
+ export { PrimaryNetworkOperationType };
@@ -1,5 +1,5 @@
1
1
  type PrimaryNetworkOptions = {
2
- addresses: Array<string>;
2
+ addresses?: Array<string>;
3
3
  cChainEvmAddresses?: Array<string>;
4
4
  includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
5
5
  };
@@ -12,8 +12,9 @@ declare enum PrimaryNetworkTxType {
12
12
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
13
13
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
14
14
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
15
- UNKNOWN = "UNKNOWN",
16
15
  BASE_TX = "BaseTx",
16
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
17
+ UNKNOWN = "UNKNOWN",
17
18
  CREATE_ASSET_TX = "CreateAssetTx",
18
19
  OPERATION_TX = "OperationTx"
19
20
  }
@@ -12,8 +12,9 @@ var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
12
12
  PrimaryNetworkTxType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
13
13
  PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
14
14
  PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
15
- PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
16
15
  PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
16
+ PrimaryNetworkTxType2["TRANSFER_SUBNET_OWNERSHIP_TX"] = "TransferSubnetOwnershipTx";
17
+ PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
17
18
  PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
18
19
  PrimaryNetworkTxType2["OPERATION_TX"] = "OperationTx";
19
20
  return PrimaryNetworkTxType2;
@@ -4,11 +4,16 @@ import { EventType } from './EventType.js';
4
4
  type RegisterWebhookRequest = {
5
5
  url: string;
6
6
  chainId: string;
7
- /**
8
- * The type of event for the webhook
9
- */
10
7
  eventType: EventType;
11
8
  metadata: AddressActivityMetadata;
9
+ /**
10
+ * Whether to include traces in the webhook payload.
11
+ */
12
+ includeInternalTxs?: boolean;
13
+ /**
14
+ * Whether to include logs in the webhook payload.
15
+ */
16
+ includeLogs?: boolean;
12
17
  };
13
18
 
14
19
  export { RegisterWebhookRequest };
@@ -0,0 +1,7 @@
1
+ type RpcErrorDto = {
2
+ code: number;
3
+ message: string;
4
+ data?: Record<string, any>;
5
+ };
6
+
7
+ export { RpcErrorDto };
@@ -0,0 +1,9 @@
1
+ import { RpcErrorDto } from './RpcErrorDto.js';
2
+
3
+ type RpcErrorResponseDto = {
4
+ jsonrpc: string;
5
+ id?: (string | number);
6
+ error: RpcErrorDto;
7
+ };
8
+
9
+ export { RpcErrorResponseDto };
@@ -0,0 +1,8 @@
1
+ type RpcRequestBodyDto = {
2
+ method: string;
3
+ params?: Record<string, any>;
4
+ id?: (string | number);
5
+ jsonrpc?: string;
6
+ };
7
+
8
+ export { RpcRequestBodyDto };
@@ -0,0 +1,7 @@
1
+ type RpcSuccessResponseDto = {
2
+ jsonrpc: string;
3
+ id?: (string | number);
4
+ result: Record<string, any>;
5
+ };
6
+
7
+ export { RpcSuccessResponseDto };
@@ -0,0 +1,9 @@
1
+ declare enum SortByOption {
2
+ BLOCK_INDEX = "blockIndex",
3
+ DELEGATION_CAPACITY = "delegationCapacity",
4
+ TIME_REMAINING = "timeRemaining",
5
+ DELEGATION_FEE = "delegationFee",
6
+ UPTIME_PERFORMANCE = "uptimePerformance"
7
+ }
8
+
9
+ export { SortByOption };
@@ -0,0 +1,10 @@
1
+ var SortByOption = /* @__PURE__ */ ((SortByOption2) => {
2
+ SortByOption2["BLOCK_INDEX"] = "blockIndex";
3
+ SortByOption2["DELEGATION_CAPACITY"] = "delegationCapacity";
4
+ SortByOption2["TIME_REMAINING"] = "timeRemaining";
5
+ SortByOption2["DELEGATION_FEE"] = "delegationFee";
6
+ SortByOption2["UPTIME_PERFORMANCE"] = "uptimePerformance";
7
+ return SortByOption2;
8
+ })(SortByOption || {});
9
+
10
+ export { SortByOption };
@@ -1,12 +1,29 @@
1
1
  import { BlockchainInfo } from './BlockchainInfo.js';
2
+ import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
2
3
 
3
4
  type Subnet = {
4
5
  createBlockTimestamp: number;
5
6
  createBlockIndex: string;
6
7
  subnetId: string;
8
+ /**
9
+ * This field is deprecated. Use subnetOwnershipInfo instead.
10
+ * @deprecated
11
+ */
7
12
  ownerAddresses: Array<string>;
13
+ /**
14
+ * This field is deprecated. Use subnetOwnershipInfo instead.
15
+ * @deprecated
16
+ */
8
17
  threshold: number;
18
+ /**
19
+ * This field is deprecated. Use subnetOwnershipInfo instead.
20
+ * @deprecated
21
+ */
9
22
  locktime: number;
23
+ /**
24
+ * Latest subnet owner details for this Subnet.
25
+ */
26
+ subnetOwnershipInfo: SubnetOwnershipInfo;
10
27
  blockchains: Array<BlockchainInfo>;
11
28
  };
12
29
 
@@ -0,0 +1,16 @@
1
+ type SubnetOwnershipInfo = {
2
+ /**
3
+ * Locktime in seconds after which Subnet owners can control this Subnet.
4
+ */
5
+ locktime: number;
6
+ /**
7
+ * Minimum number of signatures required to sign the Subnet update transactions.
8
+ */
9
+ threshold: number;
10
+ /**
11
+ * Addresses that are eligible to sign the Subnet update transactions.
12
+ */
13
+ addresses: Array<string>;
14
+ };
15
+
16
+ export { SubnetOwnershipInfo };
@@ -0,0 +1,6 @@
1
+ type TeleporterReceipt = {
2
+ receivedMessageNonce: string;
3
+ relayerRewardAddress: string;
4
+ };
5
+
6
+ export { TeleporterReceipt };
@@ -1,3 +1,6 @@
1
+ /**
2
+ * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
3
+ */
1
4
  declare enum TransactionMethodType {
2
5
  NATIVE_TRANSFER = "NATIVE_TRANSFER",
3
6
  CONTRACT_CALL = "CONTRACT_CALL",
@@ -0,0 +1,12 @@
1
+ import { WebhookStatusType } from './WebhookStatusType.js';
2
+
3
+ type UpdateWebhookRequest = {
4
+ name?: string;
5
+ description?: string;
6
+ url?: string;
7
+ status?: WebhookStatusType;
8
+ includeInternalTxs?: boolean;
9
+ includeLogs?: boolean;
10
+ };
11
+
12
+ export { UpdateWebhookRequest };
@@ -1,4 +1,4 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetAmount } from './AssetAmount.js';
2
2
  import { UtxoCredential } from './UtxoCredential.js';
3
3
 
4
4
  type Utxo = {
@@ -6,7 +6,7 @@ type Utxo = {
6
6
  * Addresses that are eligible to sign the consumption of this output.
7
7
  */
8
8
  addresses: Array<string>;
9
- asset: Asset;
9
+ asset: AssetAmount;
10
10
  /**
11
11
  * Blockchain ID on which this output is consumed on.
12
12
  */
@@ -6,10 +6,20 @@ type WebhookResponse = {
6
6
  id: string;
7
7
  eventType: EventType;
8
8
  metadata: AddressActivityMetadata;
9
+ /**
10
+ * Whether to include traces in the webhook payload.
11
+ */
12
+ includeInternalTxs?: boolean;
13
+ /**
14
+ * Whether to include logs in the webhook payload.
15
+ */
16
+ includeLogs?: boolean;
9
17
  url: string;
10
18
  chainId: string;
11
19
  status: WebhookStatusType;
12
20
  createdAt: number;
21
+ name: string;
22
+ description: string;
13
23
  };
14
24
 
15
25
  export { WebhookResponse };
@@ -1,3 +1,6 @@
1
+ import { PrimaryNetworkAssetCap } from './PrimaryNetworkAssetCap.js';
2
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
3
+
1
4
  type XChainAssetDetails = {
2
5
  /**
3
6
  * Unique ID for an asset.
@@ -15,18 +18,12 @@ type XChainAssetDetails = {
15
18
  * Denomination of this asset to represent fungibility.
16
19
  */
17
20
  denomination: number;
18
- /**
19
- * Type of asset like SECP256K1 or NFT.
20
- */
21
- type: string;
21
+ type: PrimaryNetworkAssetType;
22
22
  /**
23
23
  * Timestamp in seconds this asset was created on.
24
24
  */
25
25
  createdAtTimestamp: number;
26
- /**
27
- * Cap represents if an asset can be or is fixed cap.
28
- */
29
- cap: string;
26
+ cap: PrimaryNetworkAssetCap;
30
27
  };
31
28
 
32
29
  export { XChainAssetDetails };
@@ -1,15 +1,15 @@
1
- import { XChainAssetBalance } from './XChainAssetBalance.js';
1
+ import { AggregatedAssetAmount } from './AggregatedAssetAmount.js';
2
2
  import { XChainSharedAssetBalance } from './XChainSharedAssetBalance.js';
3
3
 
4
4
  type XChainBalances = {
5
5
  /**
6
6
  * A list of objects containing X-chain Asset balance information.
7
7
  */
8
- locked: Array<XChainAssetBalance>;
8
+ locked: Array<AggregatedAssetAmount>;
9
9
  /**
10
10
  * A list of objects containing X-chain Asset balance information.
11
11
  */
12
- unlocked: Array<XChainAssetBalance>;
12
+ unlocked: Array<AggregatedAssetAmount>;
13
13
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
14
14
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
15
15
  };
@@ -1,4 +1,4 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetAmount } from './AssetAmount.js';
2
2
  import { Utxo } from './Utxo.js';
3
3
  import { XChainAssetDetails } from './XChainAssetDetails.js';
4
4
  import { XChainTransactionType } from './XChainTransactionType.js';
@@ -16,9 +16,6 @@ type XChainLinearTransaction = {
16
16
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
17
17
  */
18
18
  timestamp: number;
19
- /**
20
- * Type of transaction.
21
- */
22
19
  txType: XChainTransactionType;
23
20
  /**
24
21
  * Hex encoded memo bytes for this transaction.
@@ -29,11 +26,11 @@ type XChainLinearTransaction = {
29
26
  /**
30
27
  * Assets unlocked by inputs of this transaction.
31
28
  */
32
- amountUnlocked: Array<Asset>;
29
+ amountUnlocked: Array<AssetAmount>;
33
30
  /**
34
31
  * Assets created by outputs of this transaction.
35
32
  */
36
- amountCreated: Array<Asset>;
33
+ amountCreated: Array<AssetAmount>;
37
34
  /**
38
35
  * Source chain for an atomic transaction.
39
36
  */
@@ -43,7 +40,7 @@ type XChainLinearTransaction = {
43
40
  */
44
41
  destinationChain?: string;
45
42
  /**
46
- * Asset details of the asset created in CreateAssetTx
43
+ * AssetAmount details of the asset created in CreateAssetTx
47
44
  */
48
45
  assetCreated?: XChainAssetDetails;
49
46
  /**