@avalabs/glacier-sdk 2.8.0-alpha.120 → 2.8.0-alpha.121

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 (69) hide show
  1. package/dist/index.d.ts +547 -589
  2. package/dist/index.js +137 -145
  3. package/esm/generated/models/ChainInfo.d.ts +1 -4
  4. package/esm/generated/models/CompletedValidatorDetails.d.ts +15 -0
  5. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +8 -0
  6. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +8 -0
  7. package/esm/generated/models/Erc1155TokenBalance.d.ts +1 -2
  8. package/esm/generated/models/Erc20Token.d.ts +1 -3
  9. package/esm/generated/models/Erc20TokenBalance.d.ts +2 -5
  10. package/esm/generated/models/GetChainResponse.d.ts +1 -4
  11. package/esm/generated/models/GetNetworkDetailsResponse.d.ts +2 -2
  12. package/esm/generated/models/GetTransactionResponse.d.ts +1 -7
  13. package/esm/generated/models/HistoricalReward.d.ts +24 -0
  14. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -2
  15. package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +11 -0
  16. package/esm/generated/models/{ListListingsResponse.d.ts → ListPendingRewardsResponse.d.ts} +4 -4
  17. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +11 -0
  18. package/esm/generated/models/Method.d.ts +1 -7
  19. package/esm/generated/models/NativeTokenBalance.d.ts +2 -5
  20. package/esm/generated/models/NetworkToken.d.ts +1 -3
  21. package/esm/generated/models/NetworkTokenDetails.d.ts +1 -3
  22. package/esm/generated/models/PChainBalance.d.ts +13 -0
  23. package/esm/generated/models/PChainSharedAsset.d.ts +8 -0
  24. package/esm/generated/models/PendingReward.d.ts +22 -0
  25. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -5
  26. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -0
  27. package/esm/generated/models/PrimaryNetworkTxType.d.ts +19 -0
  28. package/esm/generated/models/PrimaryNetworkTxType.js +20 -0
  29. package/esm/generated/models/Rewards.d.ts +6 -0
  30. package/esm/generated/models/RichAddress.d.ts +1 -3
  31. package/esm/generated/models/StakingDistribution.d.ts +1 -1
  32. package/esm/generated/models/TransactionDetails.d.ts +1 -7
  33. package/esm/generated/models/TransactionExportMetadata.d.ts +1 -4
  34. package/esm/generated/models/ValidationStatusType.d.ts +5 -0
  35. package/esm/generated/models/ValidationStatusType.js +6 -0
  36. package/esm/generated/models/XChainBalances.d.ts +2 -2
  37. package/esm/generated/services/EvmService.d.ts +105 -259
  38. package/esm/generated/services/EvmService.js +1 -92
  39. package/esm/generated/services/HealthCheckService.d.ts +1 -1
  40. package/esm/generated/services/OperationsService.d.ts +5 -1
  41. package/esm/generated/services/PrimaryNetworkService.d.ts +222 -62
  42. package/esm/generated/services/PrimaryNetworkService.js +111 -3
  43. package/esm/index.d.ts +10 -18
  44. package/esm/index.js +2 -7
  45. package/package.json +2 -2
  46. package/esm/generated/models/Address.d.ts +0 -8
  47. package/esm/generated/models/CancelListingEventResponse.d.ts +0 -5
  48. package/esm/generated/models/CloseAuctionEventResponse.d.ts +0 -6
  49. package/esm/generated/models/ListingCurrencyType.d.ts +0 -6
  50. package/esm/generated/models/ListingCurrencyType.js +0 -7
  51. package/esm/generated/models/ListingEventType.d.ts +0 -8
  52. package/esm/generated/models/ListingEventType.js +0 -9
  53. package/esm/generated/models/ListingResponse.d.ts +0 -19
  54. package/esm/generated/models/ListingType.d.ts +0 -6
  55. package/esm/generated/models/ListingType.js +0 -7
  56. package/esm/generated/models/ListingsSortByOption.d.ts +0 -5
  57. package/esm/generated/models/ListingsSortByOption.js +0 -6
  58. package/esm/generated/models/NftFilterOptionsProperty.d.ts +0 -10
  59. package/esm/generated/models/NftSearchBody.d.ts +0 -10
  60. package/esm/generated/models/NftSearchResultTypeOption.d.ts +0 -6
  61. package/esm/generated/models/NftSearchResultTypeOption.js +0 -7
  62. package/esm/generated/models/OpenListingEventResponse.d.ts +0 -17
  63. package/esm/generated/models/PaginationParams.d.ts +0 -13
  64. package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
  65. package/esm/generated/models/PrimaryNetwork.js +0 -7
  66. package/esm/generated/models/PrimaryNetworkChainName.d.ts +0 -7
  67. package/esm/generated/models/PrimaryNetworkChainName.js +0 -8
  68. package/esm/generated/models/PurchaseListingEventResponse.d.ts +0 -17
  69. package/esm/generated/models/TokenWithPrice.d.ts +0 -28
@@ -8,9 +8,7 @@ type NetworkTokenDetails = {
8
8
  */
9
9
  currentPrice?: Money;
10
10
  /**
11
- * The historical token price at the time the transaction
12
- * occured, if available. Note, this is only provided if the transaction
13
- * occured more than 24 hours ago.
11
+ * The historical token price at the time the transaction occured, if available. Note, this is only provided if the transaction occured more than 24 hours ago.
14
12
  */
15
13
  historicalPrice?: Money;
16
14
  };
@@ -1,4 +1,5 @@
1
1
  import { PChainAsset } from './PChainAsset.js';
2
+ import { PChainSharedAsset } from './PChainSharedAsset.js';
2
3
 
3
4
  type PChainBalance = {
4
5
  /**
@@ -21,6 +22,18 @@ type PChainBalance = {
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
23
  */
23
24
  lockedStaked: Array<PChainAsset>;
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.
27
+ */
28
+ pendingStaked: Array<PChainAsset>;
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.
31
+ */
32
+ atomicMemoryUnlocked: Array<PChainSharedAsset>;
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.
35
+ */
36
+ atomicMemoryLocked: Array<PChainSharedAsset>;
24
37
  };
25
38
 
26
39
  export { PChainBalance };
@@ -0,0 +1,8 @@
1
+ type PChainSharedAsset = {
2
+ assetId: string;
3
+ amount: string;
4
+ sharedWithChainId: string;
5
+ status: string;
6
+ };
7
+
8
+ export { PChainSharedAsset };
@@ -0,0 +1,22 @@
1
+ import { PChainAsset } from './PChainAsset.js';
2
+ import { RewardType } from './RewardType.js';
3
+
4
+ type PendingReward = {
5
+ /**
6
+ * An array of P-Chain wallet addresses.
7
+ */
8
+ addresses: Array<string>;
9
+ txHash: string;
10
+ amountStaked: string;
11
+ nodeId: string;
12
+ startTimestamp: number;
13
+ endTimestamp: number;
14
+ rewardType: RewardType;
15
+ progress: number;
16
+ /**
17
+ * An object containing P-chain Asset ID and the amount of that Asset ID.
18
+ */
19
+ estimatedReward: PChainAsset;
20
+ };
21
+
22
+ export { PendingReward };
@@ -1,9 +1,6 @@
1
- import { PrimaryNetwork } from './PrimaryNetwork.js';
2
- import { PrimaryNetworkChainName } from './PrimaryNetworkChainName.js';
3
-
4
1
  type PrimaryNetworkChainInfo = {
5
- chainName: PrimaryNetworkChainName;
6
- network: PrimaryNetwork;
2
+ chainName: any;
3
+ network: any;
7
4
  };
8
5
 
9
6
  export { PrimaryNetworkChainInfo };
@@ -1,5 +1,6 @@
1
1
  type PrimaryNetworkOptions = {
2
2
  addresses: Array<string>;
3
+ cChainEvmAddresses?: Array<string>;
3
4
  includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
4
5
  };
5
6
 
@@ -0,0 +1,19 @@
1
+ declare enum PrimaryNetworkTxType {
2
+ ADD_VALIDATOR_TX = "AddValidatorTx",
3
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
4
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
5
+ ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
6
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
7
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
8
+ CREATE_CHAIN_TX = "CreateChainTx",
9
+ CREATE_SUBNET_TX = "CreateSubnetTx",
10
+ IMPORT_TX = "ImportTx",
11
+ EXPORT_TX = "ExportTx",
12
+ ADVANCE_TIME_TX = "AdvanceTimeTx",
13
+ UNKNOWN = "UNKNOWN",
14
+ BASE_TX = "BaseTx",
15
+ CREATE_ASSET_TX = "CreateAssetTx",
16
+ OPERATION_TX = "OperationTx"
17
+ }
18
+
19
+ export { PrimaryNetworkTxType };
@@ -0,0 +1,20 @@
1
+ var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
2
+ PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
3
+ PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
4
+ PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
5
+ PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
6
+ PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
7
+ PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
8
+ PrimaryNetworkTxType2["CREATE_CHAIN_TX"] = "CreateChainTx";
9
+ PrimaryNetworkTxType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
10
+ PrimaryNetworkTxType2["IMPORT_TX"] = "ImportTx";
11
+ PrimaryNetworkTxType2["EXPORT_TX"] = "ExportTx";
12
+ PrimaryNetworkTxType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
13
+ PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
14
+ PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
15
+ PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
16
+ PrimaryNetworkTxType2["OPERATION_TX"] = "OperationTx";
17
+ return PrimaryNetworkTxType2;
18
+ })(PrimaryNetworkTxType || {});
19
+
20
+ export { PrimaryNetworkTxType };
@@ -0,0 +1,6 @@
1
+ type Rewards = {
2
+ validationRewardAmount: string;
3
+ delegationRewardAmount: string;
4
+ };
5
+
6
+ export { Rewards };
@@ -8,9 +8,7 @@ type RichAddress = {
8
8
  */
9
9
  symbol?: string;
10
10
  /**
11
- * The number of decimals the token uses. For example `6`,
12
- * means to divide the token amount by `1000000` to get its user
13
- * representation.
11
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
14
12
  */
15
13
  decimals?: number;
16
14
  /**
@@ -1,6 +1,6 @@
1
1
  type StakingDistribution = {
2
2
  version: string;
3
- stakedAmount: string;
3
+ amountStaked: string;
4
4
  };
5
5
 
6
6
  export { StakingDistribution };
@@ -22,13 +22,7 @@ type TransactionDetails = {
22
22
  */
23
23
  erc1155Transfers?: Array<Erc1155TransferDetails>;
24
24
  /**
25
- * The list of internal transactions. Note that this list only
26
- * includes CALL and
27
- * CALLCODE internal transactions that had a
28
- * non-zero value and
29
- * CREATE/CREATE2
30
- * calls. Use a client provider to recieve a full debug trace of the
31
- * transaction.
25
+ * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
32
26
  */
33
27
  internalTransactions?: Array<InternalTransactionDetails>;
34
28
  };
@@ -7,10 +7,7 @@ type TransactionExportMetadata = {
7
7
  */
8
8
  downloadUrl?: string;
9
9
  /**
10
- * The next date (YYYY-MM-DD) to use as the startDate in follow
11
- * up requests if a request results in a transaction history exceeding the
12
- * max size and has been reported as COMPLETED_WITH_WARNING with the warning
13
- * WarnTruncatedExport.
10
+ * The next date (YYYY-MM-DD) to use as the firstDate in follow up requests if a request results in a transaction history exceeding the max size and has been reported as `COMPLETED_WITH_WARNING` with the warning 'WarnTruncatedExport'.
14
11
  */
15
12
  nextDate?: string;
16
13
  };
@@ -0,0 +1,5 @@
1
+ declare enum ValidationStatusType {
2
+ COMPLETED = "completed"
3
+ }
4
+
5
+ export { ValidationStatusType };
@@ -0,0 +1,6 @@
1
+ var ValidationStatusType = /* @__PURE__ */ ((ValidationStatusType2) => {
2
+ ValidationStatusType2["COMPLETED"] = "completed";
3
+ return ValidationStatusType2;
4
+ })(ValidationStatusType || {});
5
+
6
+ export { ValidationStatusType };
@@ -3,11 +3,11 @@ import { XChainSharedAssetBalance } from './XChainSharedAssetBalance.js';
3
3
 
4
4
  type XChainBalances = {
5
5
  /**
6
- * A list of objects containing X-chain Asset balance infromation.
6
+ * A list of objects containing X-chain Asset balance information.
7
7
  */
8
8
  locked: Array<XChainAssetBalance>;
9
9
  /**
10
- * A list of objects containing X-chain Asset balance infromation.
10
+ * A list of objects containing X-chain Asset balance information.
11
11
  */
12
12
  unlocked: Array<XChainAssetBalance>;
13
13
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;