@avalabs/glacier-sdk 2.8.0-canary.4b05dbf.0 → 2.8.0-canary.5083b17.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 (95) hide show
  1. package/dist/index.d.ts +476 -359
  2. package/dist/index.js +173 -117
  3. package/esm/generated/models/AddressActivityMetadata.d.ts +8 -0
  4. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  5. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  6. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  7. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  8. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  9. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  10. package/esm/generated/models/ChainInfo.d.ts +1 -3
  11. package/esm/generated/models/ChainStatus.d.ts +3 -0
  12. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  13. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  14. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  15. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +5 -2
  16. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +5 -2
  17. package/esm/generated/models/EVMInput.d.ts +3 -3
  18. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  19. package/esm/generated/models/EVMOperationType.js +6 -0
  20. package/esm/generated/models/EVMOutput.d.ts +3 -3
  21. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  22. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  23. package/esm/generated/models/GetChainResponse.d.ts +1 -3
  24. package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
  25. package/esm/generated/models/GlacierApiFeature.js +6 -0
  26. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  27. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  28. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  29. package/esm/generated/models/Method.d.ts +0 -3
  30. package/esm/generated/models/Money.d.ts +0 -3
  31. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  32. package/esm/generated/models/OperationType.d.ts +4 -2
  33. package/esm/generated/models/OperationType.js +3 -1
  34. package/esm/generated/models/PChainBalance.d.ts +15 -15
  35. package/esm/generated/models/PChainSharedAsset.d.ts +4 -4
  36. package/esm/generated/models/PChainTransaction.d.ts +12 -7
  37. package/esm/generated/models/PChainTransactionType.d.ts +2 -0
  38. package/esm/generated/models/PChainTransactionType.js +2 -0
  39. package/esm/generated/models/PChainUtxo.d.ts +2 -2
  40. package/esm/generated/models/PendingReward.d.ts +3 -3
  41. package/esm/generated/models/PendingTeleporterMessage.d.ts +5 -2
  42. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  43. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  44. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  45. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  46. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  47. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  48. package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
  49. package/esm/generated/models/PrimaryNetworkTxType.js +2 -1
  50. package/esm/generated/models/RegisterWebhookRequest.d.ts +0 -3
  51. package/esm/generated/models/Subnet.d.ts +17 -0
  52. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  53. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  54. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  55. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  56. package/esm/generated/models/Utxo.d.ts +2 -2
  57. package/esm/generated/models/WebhookResponse.d.ts +2 -0
  58. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  59. package/esm/generated/models/XChainBalances.d.ts +3 -3
  60. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
  61. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
  62. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  63. package/esm/generated/models/XChainTransactionType.d.ts +3 -0
  64. package/esm/generated/services/DefaultService.d.ts +38 -5
  65. package/esm/generated/services/DefaultService.js +34 -3
  66. package/esm/generated/services/EvmBalancesService.d.ts +25 -25
  67. package/esm/generated/services/EvmBalancesService.js +8 -8
  68. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  69. package/esm/generated/services/EvmBlocksService.js +4 -4
  70. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  71. package/esm/generated/services/EvmChainsService.js +4 -2
  72. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  73. package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
  74. package/esm/generated/services/EvmTransactionsService.js +32 -32
  75. package/esm/generated/services/NfTsService.d.ts +8 -8
  76. package/esm/generated/services/NfTsService.js +4 -4
  77. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  78. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  79. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +17 -12
  80. package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
  81. package/esm/generated/services/PrimaryNetworkService.d.ts +31 -31
  82. package/esm/generated/services/PrimaryNetworkService.js +10 -10
  83. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  84. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  85. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  86. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  87. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  88. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  89. package/esm/generated/services/TeleporterService.d.ts +14 -22
  90. package/esm/generated/services/TeleporterService.js +4 -8
  91. package/esm/index.d.ts +11 -2
  92. package/esm/index.js +5 -2
  93. package/package.json +2 -2
  94. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  95. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
@@ -7,6 +7,14 @@ type AddressActivityMetadata = {
7
7
  * Array of hexadecimal strings of the event signatures.
8
8
  */
9
9
  eventSignatures?: Array<string>;
10
+ /**
11
+ * Whether to include traces in the webhook payload.
12
+ */
13
+ includeTraces?: boolean;
14
+ /**
15
+ * Whether to include logs in the webhook payload.
16
+ */
17
+ includeLogs?: boolean;
10
18
  };
11
19
 
12
20
  export { AddressActivityMetadata };
@@ -1,4 +1,6 @@
1
- type XChainAssetBalance = {
1
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
2
+
3
+ type AggregatedAssetAmount = {
2
4
  /**
3
5
  * Unique ID for an asset.
4
6
  */
@@ -15,10 +17,7 @@ type XChainAssetBalance = {
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
  */
@@ -26,4 +25,4 @@ type XChainAssetBalance = {
26
25
  utxoCount: number;
27
26
  };
28
27
 
29
- export { XChainAssetBalance };
28
+ export { AggregatedAssetAmount };
@@ -1,4 +1,6 @@
1
- type Asset = {
1
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
2
+
3
+ type AssetAmount = {
2
4
  /**
3
5
  * Unique ID for an asset.
4
6
  */
@@ -15,14 +17,11 @@ type Asset = {
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;
26
25
  };
27
26
 
28
- export { Asset };
27
+ export { AssetAmount };
@@ -0,0 +1,32 @@
1
+ import { Money } from './Money.js';
2
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
3
+
4
+ type AssetWithPriceInfo = {
5
+ /**
6
+ * Unique ID for an asset.
7
+ */
8
+ assetId: string;
9
+ /**
10
+ * Name of this asset.
11
+ */
12
+ name: string;
13
+ /**
14
+ * Symbol for this asset (max 4 characters).
15
+ */
16
+ symbol: string;
17
+ /**
18
+ * Denomination of this asset to represent fungibility.
19
+ */
20
+ denomination: number;
21
+ type: PrimaryNetworkAssetType;
22
+ /**
23
+ * Amount of the asset.
24
+ */
25
+ amount: string;
26
+ /**
27
+ * The historical asset price at the time the reward was granted, if available. Note, this is only provided if the reward occured more than 24 hours ago.
28
+ */
29
+ historicalPrice?: Money;
30
+ };
31
+
32
+ export { AssetWithPriceInfo };
@@ -1,4 +1,4 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetAmount } from './AssetAmount.js';
2
2
  import { EVMInput } from './EVMInput.js';
3
3
  import { Utxo } from './Utxo.js';
4
4
 
@@ -26,11 +26,11 @@ type CChainExportTransaction = {
26
26
  /**
27
27
  * Assets unlocked by inputs of this transaction.
28
28
  */
29
- amountUnlocked: Array<Asset>;
29
+ amountUnlocked: Array<AssetAmount>;
30
30
  /**
31
31
  * Assets created by outputs of this transaction.
32
32
  */
33
- amountCreated: Array<Asset>;
33
+ amountCreated: Array<AssetAmount>;
34
34
  /**
35
35
  * Source chain for an atomic transaction.
36
36
  */
@@ -1,4 +1,4 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetAmount } from './AssetAmount.js';
2
2
  import { EVMOutput } from './EVMOutput.js';
3
3
  import { Utxo } from './Utxo.js';
4
4
 
@@ -26,11 +26,11 @@ type CChainImportTransaction = {
26
26
  /**
27
27
  * Assets unlocked by inputs of this transaction.
28
28
  */
29
- amountUnlocked: Array<Asset>;
29
+ amountUnlocked: Array<AssetAmount>;
30
30
  /**
31
31
  * Assets created by outputs of this transaction.
32
32
  */
33
- amountCreated: Array<Asset>;
33
+ amountCreated: Array<AssetAmount>;
34
34
  /**
35
35
  * Source chain for an atomic transaction.
36
36
  */
@@ -1,3 +1,5 @@
1
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
2
+
1
3
  type CChainSharedAssetBalance = {
2
4
  /**
3
5
  * Unique ID for an asset.
@@ -15,10 +17,7 @@ type CChainSharedAssetBalance = {
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
  */
@@ -5,9 +5,6 @@ import { VmName } from './VmName.js';
5
5
 
6
6
  type ChainInfo = {
7
7
  chainId: string;
8
- /**
9
- * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
10
- */
11
8
  status: ChainStatus;
12
9
  chainName: string;
13
10
  description: string;
@@ -23,6 +20,7 @@ type ChainInfo = {
23
20
  networkToken: NetworkToken;
24
21
  chainLogoUri?: string;
25
22
  private?: boolean;
23
+ enabledFeatures?: Array<'nftIndexing'>;
26
24
  };
27
25
 
28
26
  export { ChainInfo };
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
3
+ */
1
4
  declare enum ChainStatus {
2
5
  OK = "OK",
3
6
  UNAVAILABLE = "UNAVAILABLE"
@@ -1,7 +1,8 @@
1
1
  import { EvmNetworkOptions } from './EvmNetworkOptions.js';
2
+ import { EVMOperationType } from './EVMOperationType.js';
2
3
 
3
4
  type CreateEvmTransactionExportRequest = {
4
- type: CreateEvmTransactionExportRequest.type;
5
+ type: EVMOperationType;
5
6
  firstDate: string;
6
7
  lastDate: string;
7
8
  /**
@@ -14,10 +15,5 @@ type CreateEvmTransactionExportRequest = {
14
15
  endDate: string;
15
16
  options: EvmNetworkOptions;
16
17
  };
17
- declare namespace CreateEvmTransactionExportRequest {
18
- enum type {
19
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
20
- }
21
- }
22
18
 
23
19
  export { CreateEvmTransactionExportRequest };
@@ -1,7 +1,8 @@
1
+ import { PrimaryNetworkOperationType } from './PrimaryNetworkOperationType.js';
1
2
  import { PrimaryNetworkOptions } from './PrimaryNetworkOptions.js';
2
3
 
3
4
  type CreatePrimaryNetworkTransactionExportRequest = {
4
- type: CreatePrimaryNetworkTransactionExportRequest.type;
5
+ type: PrimaryNetworkOperationType;
5
6
  firstDate: string;
6
7
  lastDate: string;
7
8
  /**
@@ -14,10 +15,5 @@ type CreatePrimaryNetworkTransactionExportRequest = {
14
15
  endDate: string;
15
16
  options: PrimaryNetworkOptions;
16
17
  };
17
- declare namespace CreatePrimaryNetworkTransactionExportRequest {
18
- enum type {
19
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
20
- }
21
- }
22
18
 
23
19
  export { CreatePrimaryNetworkTransactionExportRequest };
@@ -1,3 +1,6 @@
1
+ /**
2
+ * ISO 4217 currency code.
3
+ */
1
4
  declare enum CurrencyCode {
2
5
  USD = "usd",
3
6
  EUR = "eur",
@@ -1,15 +1,18 @@
1
1
  import { TeleporterDestinationTransaction } from './TeleporterDestinationTransaction.js';
2
+ import { TeleporterReceipt } from './TeleporterReceipt.js';
2
3
  import { TeleporterRewardDetails } from './TeleporterRewardDetails.js';
3
4
 
4
5
  type DeliveredSourceNotIndexedTeleporterMessage = {
6
+ messageId: string;
7
+ teleporterContractAddress: string;
5
8
  sourceBlockchainId: string;
6
9
  destinationBlockchainId: string;
7
- messageId: string;
10
+ messageNonce: string;
8
11
  from: string;
9
12
  to: string;
10
13
  data?: string;
11
14
  messageExecuted: boolean;
12
- receipts: Array<string>;
15
+ receipts: Array<TeleporterReceipt>;
13
16
  receiptDelivered: boolean;
14
17
  rewardDetails: TeleporterRewardDetails;
15
18
  destinationTransaction: TeleporterDestinationTransaction;
@@ -1,16 +1,19 @@
1
1
  import { TeleporterDestinationTransaction } from './TeleporterDestinationTransaction.js';
2
+ import { TeleporterReceipt } from './TeleporterReceipt.js';
2
3
  import { TeleporterRewardDetails } from './TeleporterRewardDetails.js';
3
4
  import { TeleporterSourceTransaction } from './TeleporterSourceTransaction.js';
4
5
 
5
6
  type DeliveredTeleporterMessage = {
7
+ messageId: string;
8
+ teleporterContractAddress: string;
6
9
  sourceBlockchainId: string;
7
10
  destinationBlockchainId: string;
8
- messageId: string;
11
+ messageNonce: string;
9
12
  from: string;
10
13
  to: string;
11
14
  data?: string;
12
15
  messageExecuted: boolean;
13
- receipts: Array<string>;
16
+ receipts: Array<TeleporterReceipt>;
14
17
  receiptDelivered: boolean;
15
18
  rewardDetails: TeleporterRewardDetails;
16
19
  sourceTransaction: TeleporterSourceTransaction;
@@ -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 EVMInput = {
@@ -7,9 +7,9 @@ type EVMInput = {
7
7
  */
8
8
  fromAddress: string;
9
9
  /**
10
- * Asset details for the asset being transferred.
10
+ * AssetAmount details for the asset being transferred.
11
11
  */
12
- asset: Asset;
12
+ asset: AssetAmount;
13
13
  /**
14
14
  * Credentials that signed this transaction.
15
15
  */
@@ -0,0 +1,5 @@
1
+ declare enum EVMOperationType {
2
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
3
+ }
4
+
5
+ export { EVMOperationType };
@@ -0,0 +1,6 @@
1
+ var EVMOperationType = /* @__PURE__ */ ((EVMOperationType2) => {
2
+ EVMOperationType2["TRANSACTION_EXPORT_EVM"] = "TRANSACTION_EXPORT_EVM";
3
+ return EVMOperationType2;
4
+ })(EVMOperationType || {});
5
+
6
+ export { EVMOperationType };
@@ -1,4 +1,4 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetAmount } from './AssetAmount.js';
2
2
 
3
3
  type EVMOutput = {
4
4
  /**
@@ -6,9 +6,9 @@ type EVMOutput = {
6
6
  */
7
7
  toAddress: string;
8
8
  /**
9
- * Asset details for the asset being transferred.
9
+ * AssetAmount details for the asset being transferred.
10
10
  */
11
- asset: Asset;
11
+ asset: AssetAmount;
12
12
  };
13
13
 
14
14
  export { EVMOutput };
@@ -1,9 +1,6 @@
1
1
  import { NftTokenMetadataStatus } from './NftTokenMetadataStatus.js';
2
2
 
3
3
  type Erc1155TokenMetadata = {
4
- /**
5
- * The metadata indexing status of the nft.
6
- */
7
4
  indexStatus: NftTokenMetadataStatus;
8
5
  metadataLastUpdatedTimestamp?: number;
9
6
  name?: string;
@@ -1,9 +1,6 @@
1
1
  import { NftTokenMetadataStatus } from './NftTokenMetadataStatus.js';
2
2
 
3
3
  type Erc721TokenMetadata = {
4
- /**
5
- * The metadata indexing status of the nft.
6
- */
7
4
  indexStatus: NftTokenMetadataStatus;
8
5
  metadataLastUpdatedTimestamp?: number;
9
6
  name?: string;
@@ -5,9 +5,6 @@ import { VmName } from './VmName.js';
5
5
 
6
6
  type GetChainResponse = {
7
7
  chainId: string;
8
- /**
9
- * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
10
- */
11
8
  status: ChainStatus;
12
9
  chainName: string;
13
10
  description: string;
@@ -23,6 +20,7 @@ type GetChainResponse = {
23
20
  networkToken: NetworkToken;
24
21
  chainLogoUri?: string;
25
22
  private?: boolean;
23
+ enabledFeatures?: Array<'nftIndexing'>;
26
24
  };
27
25
 
28
26
  export { GetChainResponse };
@@ -0,0 +1,5 @@
1
+ declare enum GlacierApiFeature {
2
+ NFT_INDEXING = "nftIndexing"
3
+ }
4
+
5
+ export { GlacierApiFeature };
@@ -0,0 +1,6 @@
1
+ var GlacierApiFeature = /* @__PURE__ */ ((GlacierApiFeature2) => {
2
+ GlacierApiFeature2["NFT_INDEXING"] = "nftIndexing";
3
+ return GlacierApiFeature2;
4
+ })(GlacierApiFeature || {});
5
+
6
+ export { GlacierApiFeature };
@@ -1,4 +1,4 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetWithPriceInfo } from './AssetWithPriceInfo.js';
2
2
  import { RewardType } from './RewardType.js';
3
3
 
4
4
  type HistoricalReward = {
@@ -14,10 +14,7 @@ type HistoricalReward = {
14
14
  rewardType: RewardType;
15
15
  utxoId: string;
16
16
  outputIndex: number;
17
- /**
18
- * An object containing P-chain Asset ID and the amount of that Asset ID.
19
- */
20
- reward: Asset;
17
+ reward: AssetWithPriceInfo;
21
18
  rewardTxHash: string;
22
19
  };
23
20
 
@@ -6,7 +6,7 @@ type ListNftTokens = {
6
6
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
7
7
  */
8
8
  nextPageToken?: string;
9
- tokens: (Array<Erc721Token> | Array<Erc1155Token>);
9
+ tokens: Array<(Erc721Token | Erc1155Token)>;
10
10
  };
11
11
 
12
12
  export { ListNftTokens };
@@ -7,7 +7,7 @@ type ListTransfersResponse = {
7
7
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
8
8
  */
9
9
  nextPageToken?: string;
10
- transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
10
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
11
11
  };
12
12
 
13
13
  export { ListTransfersResponse };
@@ -1,9 +1,6 @@
1
1
  import { TransactionMethodType } from './TransactionMethodType.js';
2
2
 
3
3
  type Method = {
4
- /**
5
- * 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.
6
- */
7
4
  callType: TransactionMethodType;
8
5
  /**
9
6
  * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
@@ -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
  */