@avalabs/glacier-sdk 2.8.0-canary.aeb3588.0 → 2.8.0-canary.b10baf2.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 (158) hide show
  1. package/dist/index.d.ts +1211 -420
  2. package/dist/index.js +507 -160
  3. package/esm/generated/Glacier.d.ts +8 -0
  4. package/esm/generated/Glacier.js +12 -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/ActiveDelegatorDetails.d.ts +1 -0
  9. package/esm/generated/models/ActiveValidatorDetails.d.ts +8 -4
  10. package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
  11. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  12. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  13. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  14. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  15. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  16. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  17. package/esm/generated/models/ChainInfo.d.ts +1 -3
  18. package/esm/generated/models/ChainStatus.d.ts +3 -0
  19. package/esm/generated/models/CompletedDelegatorDetails.d.ts +1 -0
  20. package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -1
  21. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  22. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  23. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  24. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  25. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  26. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  27. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  28. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  29. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  30. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  31. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  32. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  33. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
  34. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  35. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
  36. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  37. package/esm/generated/models/EVMInput.d.ts +3 -3
  38. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  39. package/esm/generated/models/EVMOperationType.js +6 -0
  40. package/esm/generated/models/EVMOutput.d.ts +3 -3
  41. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  42. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  43. package/esm/generated/models/EventType.d.ts +5 -0
  44. package/esm/generated/models/EventType.js +6 -0
  45. package/esm/generated/models/GetChainResponse.d.ts +1 -3
  46. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  47. package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
  48. package/esm/generated/models/GlacierApiFeature.js +6 -0
  49. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  50. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  51. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  52. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
  53. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  54. package/esm/generated/models/Method.d.ts +0 -3
  55. package/esm/generated/models/Money.d.ts +0 -3
  56. package/esm/generated/models/NextPageToken.d.ts +8 -0
  57. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  58. package/esm/generated/models/OperationType.d.ts +4 -2
  59. package/esm/generated/models/OperationType.js +3 -1
  60. package/esm/generated/models/PChainBalance.d.ts +15 -15
  61. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  62. package/esm/generated/models/PChainTransaction.d.ts +13 -7
  63. package/esm/generated/models/PChainTransactionType.d.ts +8 -4
  64. package/esm/generated/models/PChainTransactionType.js +8 -4
  65. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  66. package/esm/generated/models/PendingDelegatorDetails.d.ts +1 -0
  67. package/esm/generated/models/PendingReward.d.ts +3 -3
  68. package/esm/generated/models/PendingTeleporterMessage.d.ts +27 -0
  69. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  70. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -1
  71. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  72. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  73. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  74. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  75. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  76. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  77. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  78. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  79. package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -5
  80. package/esm/generated/models/PrimaryNetworkTxType.js +8 -5
  81. package/esm/generated/models/RegisterWebhookRequest.d.ts +19 -0
  82. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  83. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  84. package/esm/generated/models/RewardType.d.ts +2 -1
  85. package/esm/generated/models/RewardType.js +1 -0
  86. package/esm/generated/models/Rewards.d.ts +2 -0
  87. package/esm/generated/models/RpcErrorDto.d.ts +7 -0
  88. package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
  89. package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
  90. package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
  91. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  92. package/esm/generated/models/Subnet.d.ts +17 -0
  93. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  94. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  95. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  96. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  97. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  98. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  99. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  100. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  101. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  102. package/esm/generated/models/Utxo.d.ts +30 -30
  103. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  104. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  105. package/esm/generated/models/ValidationStatusType.js +1 -0
  106. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  107. package/esm/generated/models/WebhookResponse.d.ts +25 -0
  108. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  109. package/esm/generated/models/WebhookStatus.js +7 -0
  110. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  111. package/esm/generated/models/WebhookStatusType.js +7 -0
  112. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  113. package/esm/generated/models/XChainBalances.d.ts +3 -3
  114. package/esm/generated/models/XChainLinearTransaction.d.ts +6 -8
  115. package/esm/generated/models/XChainNonLinearTransaction.d.ts +6 -8
  116. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  117. package/esm/generated/models/XChainTransactionType.d.ts +13 -0
  118. package/esm/generated/models/XChainTransactionType.js +11 -0
  119. package/esm/generated/services/DefaultService.d.ts +14 -0
  120. package/esm/generated/services/DefaultService.js +13 -0
  121. package/esm/generated/services/EvmBalancesService.d.ts +25 -25
  122. package/esm/generated/services/EvmBalancesService.js +8 -8
  123. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  124. package/esm/generated/services/EvmBlocksService.js +4 -4
  125. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  126. package/esm/generated/services/EvmChainsService.js +4 -2
  127. package/esm/generated/services/EvmContractsService.d.ts +20 -1
  128. package/esm/generated/services/EvmContractsService.js +16 -0
  129. package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
  130. package/esm/generated/services/EvmTransactionsService.js +32 -32
  131. package/esm/generated/services/NfTsService.d.ts +27 -2
  132. package/esm/generated/services/NfTsService.js +19 -0
  133. package/esm/generated/services/OperationsService.d.ts +11 -11
  134. package/esm/generated/services/OperationsService.js +10 -10
  135. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  136. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  137. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +21 -8
  138. package/esm/generated/services/PrimaryNetworkRewardsService.js +12 -6
  139. package/esm/generated/services/PrimaryNetworkService.d.ts +53 -29
  140. package/esm/generated/services/PrimaryNetworkService.js +26 -14
  141. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  142. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  143. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  144. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  145. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  146. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  147. package/esm/generated/services/RpcService.d.ts +25 -0
  148. package/esm/generated/services/RpcService.js +24 -0
  149. package/esm/generated/services/TeleporterService.d.ts +57 -0
  150. package/esm/generated/services/TeleporterService.js +39 -0
  151. package/esm/generated/services/WebhooksService.d.ts +95 -0
  152. package/esm/generated/services/WebhooksService.js +80 -0
  153. package/esm/index.d.ts +44 -3
  154. package/esm/index.js +22 -2
  155. package/package.json +3 -3
  156. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  157. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
  158. package/esm/generated/models/PChainAsset.d.ts +0 -6
@@ -1,31 +1,51 @@
1
+ import { AssetAmount } from './AssetAmount.js';
1
2
  import { RewardType } from './RewardType.js';
2
3
  import { UtxoType } from './UtxoType.js';
3
4
 
4
5
  type PChainUtxo = {
5
6
  /**
6
- * An array of P-Chain wallet addresses.
7
+ * Addresses that are eligible to sign the consumption of this output.
7
8
  */
8
9
  addresses: Array<string>;
10
+ asset: AssetAmount;
11
+ /**
12
+ * Blockchain ID on which this output is consumed on.
13
+ */
14
+ consumedOnChainId: string;
15
+ /**
16
+ * Transaction ID that consumed this output.
17
+ */
18
+ consumingTxHash?: string;
19
+ /**
20
+ * Blockchain ID on which this output is created on.
21
+ */
22
+ createdOnChainId: string;
23
+ /**
24
+ * UTXO ID for this output.
25
+ */
9
26
  utxoId: string;
10
- txHash: string;
11
- outputIndex: number;
27
+ /**
28
+ * @deprecated
29
+ */
30
+ amount: string;
31
+ /**
32
+ * @deprecated
33
+ */
34
+ assetId: string;
12
35
  blockNumber: string;
13
36
  blockTimestamp: number;
14
- consumingTxHash?: string;
15
- consumingBlockTimestamp?: number;
16
37
  consumingBlockNumber?: string;
17
- assetId: string;
18
- utxoType: UtxoType;
19
- amount: string;
20
- stakeableLocktime?: number;
38
+ consumingBlockTimestamp?: number;
21
39
  platformLocktime?: number;
22
- threshold?: number;
23
- createdOnChainId: string;
24
- consumedOnChainId: string;
40
+ outputIndex: number;
41
+ rewardType?: RewardType;
42
+ stakeableLocktime?: number;
25
43
  staked?: boolean;
26
- utxoStartTimestamp?: number;
44
+ threshold?: number;
45
+ txHash: string;
27
46
  utxoEndTimestamp?: number;
28
- rewardType?: RewardType;
47
+ utxoStartTimestamp?: number;
48
+ utxoType: UtxoType;
29
49
  };
30
50
 
31
51
  export { PChainUtxo };
@@ -1,5 +1,6 @@
1
1
  type PendingDelegatorDetails = {
2
2
  txHash: string;
3
+ nodeId: string;
3
4
  rewardAddresses: Array<string>;
4
5
  amountDelegated: string;
5
6
  delegationFee: string;
@@ -1,4 +1,4 @@
1
- import { PChainAsset } from './PChainAsset.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: PChainAsset;
19
+ estimatedReward: AssetAmount;
20
20
  };
21
21
 
22
22
  export { PendingReward };
@@ -0,0 +1,27 @@
1
+ import { TeleporterReceipt } from './TeleporterReceipt.js';
2
+ import { TeleporterRewardDetails } from './TeleporterRewardDetails.js';
3
+ import { TeleporterSourceTransaction } from './TeleporterSourceTransaction.js';
4
+
5
+ type PendingTeleporterMessage = {
6
+ messageId: string;
7
+ teleporterContractAddress: string;
8
+ sourceBlockchainId: string;
9
+ destinationBlockchainId: string;
10
+ messageNonce: string;
11
+ from: string;
12
+ to: string;
13
+ data?: string;
14
+ messageExecuted: boolean;
15
+ receipts: Array<TeleporterReceipt>;
16
+ receiptDelivered: boolean;
17
+ rewardDetails: TeleporterRewardDetails;
18
+ sourceTransaction: TeleporterSourceTransaction;
19
+ status: PendingTeleporterMessage.status;
20
+ };
21
+ declare namespace PendingTeleporterMessage {
22
+ enum status {
23
+ PENDING = "pending"
24
+ }
25
+ }
26
+
27
+ export { PendingTeleporterMessage };
@@ -0,0 +1,8 @@
1
+ var PendingTeleporterMessage;
2
+ ((PendingTeleporterMessage2) => {
3
+ ((status2) => {
4
+ status2["PENDING"] = "pending";
5
+ })(PendingTeleporterMessage2.status || (PendingTeleporterMessage2.status = {}));
6
+ })(PendingTeleporterMessage || (PendingTeleporterMessage = {}));
7
+
8
+ export { PendingTeleporterMessage };
@@ -1,7 +1,9 @@
1
1
  type PendingValidatorDetails = {
2
+ txHash: string;
2
3
  nodeId: string;
4
+ subnetId: string;
3
5
  amountStaked: string;
4
- delegationFee: string;
6
+ delegationFee?: string;
5
7
  startTimestamp: number;
6
8
  endTimestamp: number;
7
9
  validationStatus: PendingValidatorDetails.validationStatus;
@@ -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 };
@@ -9,6 +9,7 @@ type PrimaryNetworkBlock = {
9
9
  txCount: number;
10
10
  transactions: Array<string>;
11
11
  blockSizeBytes: number;
12
+ currentSupply?: string;
12
13
  proposerDetails?: ProposerDetails;
13
14
  };
14
15
 
@@ -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
  };
@@ -1,17 +1,20 @@
1
1
  declare enum PrimaryNetworkTxType {
2
2
  ADD_VALIDATOR_TX = "AddValidatorTx",
3
- ADD_DELEGATOR_TX = "AddDelegatorTx",
4
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
5
3
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
6
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
7
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
4
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
8
5
  CREATE_CHAIN_TX = "CreateChainTx",
9
6
  CREATE_SUBNET_TX = "CreateSubnetTx",
10
7
  IMPORT_TX = "ImportTx",
11
8
  EXPORT_TX = "ExportTx",
12
9
  ADVANCE_TIME_TX = "AdvanceTimeTx",
13
- UNKNOWN = "UNKNOWN",
10
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
11
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
12
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
13
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
14
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
14
15
  BASE_TX = "BaseTx",
16
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
17
+ UNKNOWN = "UNKNOWN",
15
18
  CREATE_ASSET_TX = "CreateAssetTx",
16
19
  OPERATION_TX = "OperationTx"
17
20
  }
@@ -1,17 +1,20 @@
1
1
  var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
2
2
  PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
3
- PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
4
- PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
5
3
  PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
6
- PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
7
- PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
4
+ PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
8
5
  PrimaryNetworkTxType2["CREATE_CHAIN_TX"] = "CreateChainTx";
9
6
  PrimaryNetworkTxType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
10
7
  PrimaryNetworkTxType2["IMPORT_TX"] = "ImportTx";
11
8
  PrimaryNetworkTxType2["EXPORT_TX"] = "ExportTx";
12
9
  PrimaryNetworkTxType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
13
- PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
10
+ PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
11
+ PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
12
+ PrimaryNetworkTxType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
13
+ PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
14
+ PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
14
15
  PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
16
+ PrimaryNetworkTxType2["TRANSFER_SUBNET_OWNERSHIP_TX"] = "TransferSubnetOwnershipTx";
17
+ PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
15
18
  PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
16
19
  PrimaryNetworkTxType2["OPERATION_TX"] = "OperationTx";
17
20
  return PrimaryNetworkTxType2;
@@ -0,0 +1,19 @@
1
+ import { AddressActivityMetadata } from './AddressActivityMetadata.js';
2
+ import { EventType } from './EventType.js';
3
+
4
+ type RegisterWebhookRequest = {
5
+ url: string;
6
+ chainId: string;
7
+ eventType: EventType;
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;
17
+ };
18
+
19
+ export { RegisterWebhookRequest };
@@ -0,0 +1,19 @@
1
+ type RemovedValidatorDetails = {
2
+ txHash: string;
3
+ nodeId: string;
4
+ subnetId: string;
5
+ amountStaked: string;
6
+ delegationFee?: string;
7
+ startTimestamp: number;
8
+ endTimestamp: number;
9
+ removeTxHash: string;
10
+ removeTimestamp: number;
11
+ validationStatus: RemovedValidatorDetails.validationStatus;
12
+ };
13
+ declare namespace RemovedValidatorDetails {
14
+ enum validationStatus {
15
+ REMOVED = "removed"
16
+ }
17
+ }
18
+
19
+ export { RemovedValidatorDetails };
@@ -0,0 +1,8 @@
1
+ var RemovedValidatorDetails;
2
+ ((RemovedValidatorDetails2) => {
3
+ ((validationStatus2) => {
4
+ validationStatus2["REMOVED"] = "removed";
5
+ })(RemovedValidatorDetails2.validationStatus || (RemovedValidatorDetails2.validationStatus = {}));
6
+ })(RemovedValidatorDetails || (RemovedValidatorDetails = {}));
7
+
8
+ export { RemovedValidatorDetails };
@@ -1,6 +1,7 @@
1
1
  declare enum RewardType {
2
2
  VALIDATOR = "VALIDATOR",
3
- DELEGATOR = "DELEGATOR"
3
+ DELEGATOR = "DELEGATOR",
4
+ VALIDATOR_FEE = "VALIDATOR_FEE"
4
5
  }
5
6
 
6
7
  export { RewardType };
@@ -1,6 +1,7 @@
1
1
  var RewardType = /* @__PURE__ */ ((RewardType2) => {
2
2
  RewardType2["VALIDATOR"] = "VALIDATOR";
3
3
  RewardType2["DELEGATOR"] = "DELEGATOR";
4
+ RewardType2["VALIDATOR_FEE"] = "VALIDATOR_FEE";
4
5
  return RewardType2;
5
6
  })(RewardType || {});
6
7
 
@@ -1,6 +1,8 @@
1
1
  type Rewards = {
2
2
  validationRewardAmount: string;
3
3
  delegationRewardAmount: string;
4
+ rewardAddresses?: Array<string>;
5
+ rewardTxHash?: string;
4
6
  };
5
7
 
6
8
  export { Rewards };
@@ -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,5 @@
1
+ type SharedSecretsResponse = {
2
+ secret: string;
3
+ };
4
+
5
+ export { SharedSecretsResponse };
@@ -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,9 @@
1
+ type TeleporterDestinationTransaction = {
2
+ txHash: string;
3
+ timestamp: number;
4
+ gasSpent: string;
5
+ rewardRedeemer: string;
6
+ delivererAddress: string;
7
+ };
8
+
9
+ export { TeleporterDestinationTransaction };
@@ -0,0 +1,6 @@
1
+ type TeleporterReceipt = {
2
+ receivedMessageNonce: string;
3
+ relayerRewardAddress: string;
4
+ };
5
+
6
+ export { TeleporterReceipt };
@@ -0,0 +1,37 @@
1
+ import { Money } from './Money.js';
2
+
3
+ type TeleporterRewardDetails = {
4
+ /**
5
+ * A wallet or contract address in mixed-case checksum encoding.
6
+ */
7
+ address: string;
8
+ /**
9
+ * The contract name.
10
+ */
11
+ name: string;
12
+ /**
13
+ * The contract symbol.
14
+ */
15
+ symbol: string;
16
+ /**
17
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
18
+ */
19
+ decimals: number;
20
+ /**
21
+ * The logo uri for the address.
22
+ */
23
+ logoUri?: string;
24
+ ercType: TeleporterRewardDetails.ercType;
25
+ /**
26
+ * The token price, if available.
27
+ */
28
+ price?: Money;
29
+ value: string;
30
+ };
31
+ declare namespace TeleporterRewardDetails {
32
+ enum ercType {
33
+ ERC_20 = "ERC-20"
34
+ }
35
+ }
36
+
37
+ export { TeleporterRewardDetails };
@@ -0,0 +1,8 @@
1
+ var TeleporterRewardDetails;
2
+ ((TeleporterRewardDetails2) => {
3
+ ((ercType2) => {
4
+ ercType2["ERC_20"] = "ERC-20";
5
+ })(TeleporterRewardDetails2.ercType || (TeleporterRewardDetails2.ercType = {}));
6
+ })(TeleporterRewardDetails || (TeleporterRewardDetails = {}));
7
+
8
+ export { TeleporterRewardDetails };
@@ -0,0 +1,7 @@
1
+ type TeleporterSourceTransaction = {
2
+ txHash: string;
3
+ timestamp: number;
4
+ gasSpent: string;
5
+ };
6
+
7
+ export { TeleporterSourceTransaction };
@@ -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,10 @@
1
+ import { Erc1155Contract } from './Erc1155Contract.js';
2
+ import { Erc20Contract } from './Erc20Contract.js';
3
+ import { Erc721Contract } from './Erc721Contract.js';
4
+ import { UnknownContract } from './UnknownContract.js';
5
+
6
+ type UpdateContractResponse = {
7
+ contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
8
+ };
9
+
10
+ export { UpdateContractResponse };
@@ -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,68 +1,68 @@
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 = {
5
5
  /**
6
- * UTXO ID for this output.
6
+ * Addresses that are eligible to sign the consumption of this output.
7
7
  */
8
- utxoId: string;
9
- asset: Asset;
8
+ addresses: Array<string>;
9
+ asset: AssetAmount;
10
10
  /**
11
- * Type of output.
11
+ * Blockchain ID on which this output is consumed on.
12
12
  */
13
- utxoType: string;
13
+ consumedOnChainId: string;
14
14
  /**
15
- * Blockchain ID on which this output is created on.
15
+ * Transaction ID that consumed this output.
16
16
  */
17
- createdOnChainId: string;
17
+ consumingTxHash?: string;
18
18
  /**
19
- * Blockchain ID on which this output is consumed on.
19
+ * Blockchain ID on which this output is created on.
20
20
  */
21
- consumedOnChainId: string;
21
+ createdOnChainId: string;
22
22
  /**
23
- * Transaction ID that created this output.
23
+ * UTXO ID for this output.
24
24
  */
25
- creationTxHash: string;
25
+ utxoId: string;
26
26
  /**
27
- * Transaction ID that consumed this output.
27
+ * Unix timestamp in seconds at which this output was consumed.
28
28
  */
29
- consumingTxHash?: string;
29
+ consumingTxTimestamp?: number;
30
30
  /**
31
- * Timestamp in seconds this output is consumed.
31
+ * Transaction ID that created this output.
32
32
  */
33
- consumingTxTimestamp?: number;
33
+ creationTxHash: string;
34
34
  /**
35
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
35
+ * Credentials that signed the transaction to consume this utxo
36
36
  */
37
- outputIndex: string;
37
+ credentials?: Array<UtxoCredential>;
38
38
  /**
39
- * Timestamp in seconds this outptut is created on.
39
+ * Index representing the minting set for the NFT mint output.
40
40
  */
41
- timestamp: number;
41
+ groupId?: number;
42
42
  /**
43
43
  * Locktime in seconds after which this output can be consumed.
44
44
  */
45
45
  locktime: number;
46
46
  /**
47
- * Minimum number of signatures required to consume this output.
47
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
48
48
  */
49
- threshold: number;
49
+ outputIndex: string;
50
50
  /**
51
- * Addresses that are eligible to sign the consumption of this output.
51
+ * Hex encoded data for NFT assets.
52
52
  */
53
- addresses: Array<string>;
53
+ payload?: string;
54
54
  /**
55
- * Hex encoded data for NFT assets
55
+ * Minimum number of signatures required to consume this output.
56
56
  */
57
- payload?: string;
57
+ threshold: number;
58
58
  /**
59
- * Index representing the minting set for the NFT mint output
59
+ * Unix timestamp in seconds at which this outptut was created.
60
60
  */
61
- groupId?: number;
61
+ timestamp: number;
62
62
  /**
63
- * Credentials that signed the transaction to consume this utxo
63
+ * Type of output.
64
64
  */
65
- credentials?: Array<UtxoCredential>;
65
+ utxoType: string;
66
66
  };
67
67
 
68
68
  export { Utxo };