@avalabs/glacier-sdk 2.8.0-alpha.99 → 2.8.0-canary.1c410fd.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 (187) hide show
  1. package/dist/index.d.ts +2198 -1700
  2. package/dist/index.js +562 -266
  3. package/esm/generated/Glacier.d.ts +22 -2
  4. package/esm/generated/Glacier.js +23 -3
  5. package/esm/generated/core/OpenAPI.js +1 -1
  6. package/esm/generated/models/ActiveDelegatorDetails.d.ts +15 -0
  7. package/esm/generated/models/ActiveValidatorDetails.d.ts +20 -0
  8. package/esm/generated/models/Blockchain.d.ts +10 -0
  9. package/esm/generated/models/BlockchainId.d.ts +6 -3
  10. package/esm/generated/models/BlockchainId.js +5 -2
  11. package/esm/generated/models/BlockchainIds.d.ts +9 -0
  12. package/esm/generated/models/BlockchainIds.js +10 -0
  13. package/esm/generated/models/BlockchainInfo.d.ts +5 -0
  14. package/esm/generated/models/ChainAddressChainIdMap.d.ts +2 -2
  15. package/esm/generated/models/ChainInfo.d.ts +1 -4
  16. package/esm/generated/models/CompletedDelegatorDetails.d.ts +15 -0
  17. package/esm/generated/models/CompletedValidatorDetails.d.ts +15 -0
  18. package/esm/generated/models/ContractDeploymentDetails.d.ts +13 -0
  19. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +23 -0
  20. package/esm/generated/models/CreateEvmTransactionExportRequest.js +8 -0
  21. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +23 -0
  22. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +8 -0
  23. package/esm/generated/models/DelegationStatusType.d.ts +7 -0
  24. package/esm/generated/models/DelegationStatusType.js +8 -0
  25. package/esm/generated/models/DelegatorsDetails.d.ts +6 -0
  26. package/esm/generated/models/EVMInput.d.ts +5 -0
  27. package/esm/generated/models/Erc1155Contract.d.ts +37 -0
  28. package/esm/generated/models/Erc1155Contract.js +8 -0
  29. package/esm/generated/models/Erc1155TokenBalance.d.ts +1 -2
  30. package/esm/generated/models/Erc1155Transfer.d.ts +1 -0
  31. package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -0
  32. package/esm/generated/models/Erc20Contract.d.ts +41 -0
  33. package/esm/generated/models/Erc20Contract.js +8 -0
  34. package/esm/generated/models/Erc20Token.d.ts +1 -3
  35. package/esm/generated/models/Erc20TokenBalance.d.ts +2 -5
  36. package/esm/generated/models/Erc20Transfer.d.ts +1 -0
  37. package/esm/generated/models/Erc20TransferDetails.d.ts +1 -0
  38. package/esm/generated/models/Erc721Contract.d.ts +35 -0
  39. package/esm/generated/models/Erc721Contract.js +8 -0
  40. package/esm/generated/models/Erc721Transfer.d.ts +1 -0
  41. package/esm/generated/models/Erc721TransferDetails.d.ts +1 -0
  42. package/esm/generated/models/{GetBlockResponse.d.ts → EvmBlock.d.ts} +2 -6
  43. package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
  44. package/esm/generated/models/GetChainResponse.d.ts +1 -4
  45. package/esm/generated/models/GetEvmBlockResponse.d.ts +45 -0
  46. package/esm/generated/models/GetNetworkDetailsResponse.d.ts +9 -0
  47. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +15 -0
  48. package/esm/generated/models/GetTransactionResponse.d.ts +1 -7
  49. package/esm/generated/models/HistoricalReward.d.ts +24 -0
  50. package/esm/generated/models/ImageAsset.d.ts +9 -0
  51. package/esm/generated/models/{ListListingsResponse.d.ts → ListBlockchainsResponse.d.ts} +4 -4
  52. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +2 -0
  53. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +2 -0
  54. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -2
  55. package/esm/generated/models/ListContractsResponse.d.ts +14 -0
  56. package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +16 -0
  57. package/esm/generated/models/ListEvmBlocksResponse.d.ts +11 -0
  58. package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +11 -0
  59. package/esm/generated/models/ListPChainBalancesResponse.d.ts +2 -0
  60. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +2 -0
  61. package/esm/generated/models/ListPChainUtxosResponse.d.ts +2 -0
  62. package/esm/generated/models/ListPendingRewardsResponse.d.ts +11 -0
  63. package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +13 -0
  64. package/esm/generated/models/{ListBlocksResponse.d.ts → ListSubnetsResponse.d.ts} +4 -4
  65. package/esm/generated/models/ListUtxosResponse.d.ts +2 -0
  66. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +16 -0
  67. package/esm/generated/models/ListXChainBalancesResponse.d.ts +2 -0
  68. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +2 -0
  69. package/esm/generated/models/ListXChainVerticesResponse.d.ts +2 -0
  70. package/esm/generated/models/Method.d.ts +1 -7
  71. package/esm/generated/models/NativeTokenBalance.d.ts +2 -5
  72. package/esm/generated/models/NetworkToken.d.ts +1 -3
  73. package/esm/generated/models/NetworkTokenDetails.d.ts +1 -3
  74. package/esm/generated/models/NetworkType.d.ts +6 -0
  75. package/esm/generated/models/NetworkType.js +7 -0
  76. package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
  77. package/esm/generated/models/OperationType.d.ts +2 -1
  78. package/esm/generated/models/OperationType.js +2 -1
  79. package/esm/generated/models/PChainBalance.d.ts +16 -7
  80. package/esm/generated/models/PChainId.d.ts +2 -2
  81. package/esm/generated/models/PChainId.js +1 -1
  82. package/esm/generated/models/PChainSharedAsset.d.ts +8 -0
  83. package/esm/generated/models/PChainTransaction.d.ts +9 -15
  84. package/esm/generated/models/PChainTransactionType.d.ts +16 -0
  85. package/esm/generated/models/PChainTransactionType.js +17 -0
  86. package/esm/generated/models/PChainUtxo.d.ts +10 -1
  87. package/esm/generated/models/PendingDelegatorDetails.d.ts +15 -0
  88. package/esm/generated/models/PendingReward.d.ts +22 -0
  89. package/esm/generated/models/PendingValidatorDetails.d.ts +12 -0
  90. package/esm/generated/models/PricingProviders.d.ts +5 -0
  91. package/esm/generated/models/PrimaryNetwork.d.ts +6 -0
  92. package/esm/generated/models/PrimaryNetwork.js +7 -0
  93. package/esm/generated/models/{Block.d.ts → PrimaryNetworkBlock.d.ts} +3 -3
  94. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +9 -0
  95. package/esm/generated/models/PrimaryNetworkChainName.d.ts +7 -0
  96. package/esm/generated/models/PrimaryNetworkChainName.js +8 -0
  97. package/esm/generated/models/PrimaryNetworkOptions.d.ts +2 -1
  98. package/esm/generated/models/PrimaryNetworkTxType.d.ts +19 -0
  99. package/esm/generated/models/PrimaryNetworkTxType.js +20 -0
  100. package/esm/generated/models/RewardType.d.ts +6 -0
  101. package/esm/generated/models/RewardType.js +7 -0
  102. package/esm/generated/models/Rewards.d.ts +6 -0
  103. package/esm/generated/models/RichAddress.d.ts +1 -3
  104. package/esm/generated/models/StakingDistribution.d.ts +7 -0
  105. package/esm/generated/models/Subnet.d.ts +13 -0
  106. package/esm/generated/models/TransactionDetails.d.ts +1 -7
  107. package/esm/generated/models/TransactionExportMetadata.d.ts +15 -0
  108. package/esm/generated/models/UnknownContract.d.ts +31 -0
  109. package/esm/generated/models/UnknownContract.js +8 -0
  110. package/esm/generated/models/Utxo.d.ts +9 -1
  111. package/esm/generated/models/UtxoType.d.ts +6 -0
  112. package/esm/generated/models/UtxoType.js +7 -0
  113. package/esm/generated/models/ValidationStatusType.d.ts +7 -0
  114. package/esm/generated/models/ValidationStatusType.js +8 -0
  115. package/esm/generated/models/ValidatorsDetails.d.ts +11 -0
  116. package/esm/generated/models/XChainBalances.d.ts +2 -2
  117. package/esm/generated/models/XChainId.d.ts +3 -2
  118. package/esm/generated/models/XChainId.js +2 -1
  119. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -4
  120. package/esm/generated/models/XChainLinearTransaction.js +1 -1
  121. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -4
  122. package/esm/generated/models/XChainNonLinearTransaction.js +1 -1
  123. package/esm/generated/services/EvmBalancesService.d.ts +177 -0
  124. package/esm/generated/services/EvmBalancesService.js +116 -0
  125. package/esm/generated/services/EvmBlocksService.d.ts +47 -0
  126. package/esm/generated/services/EvmBlocksService.js +37 -0
  127. package/esm/generated/services/EvmChainsService.d.ts +36 -0
  128. package/esm/generated/services/EvmChainsService.js +29 -0
  129. package/esm/generated/services/EvmTransactionsService.d.ts +311 -0
  130. package/esm/generated/services/EvmTransactionsService.js +251 -0
  131. package/esm/generated/services/HealthCheckService.d.ts +1 -1
  132. package/esm/generated/services/NfTsService.d.ts +69 -0
  133. package/esm/generated/services/NfTsService.js +50 -0
  134. package/esm/generated/services/OperationsService.d.ts +8 -3
  135. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +40 -0
  136. package/esm/generated/services/PrimaryNetworkBalancesService.js +26 -0
  137. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +85 -0
  138. package/esm/generated/services/PrimaryNetworkBlocksService.js +62 -0
  139. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +69 -0
  140. package/esm/generated/services/PrimaryNetworkRewardsService.js +49 -0
  141. package/esm/generated/services/PrimaryNetworkService.d.ts +87 -253
  142. package/esm/generated/services/PrimaryNetworkService.js +53 -167
  143. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +175 -0
  144. package/esm/generated/services/PrimaryNetworkTransactionsService.js +107 -0
  145. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +54 -0
  146. package/esm/generated/services/PrimaryNetworkUtxOsService.js +34 -0
  147. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +90 -0
  148. package/esm/generated/services/PrimaryNetworkVerticesService.js +64 -0
  149. package/esm/index.d.ts +62 -31
  150. package/esm/index.js +27 -9
  151. package/package.json +2 -5
  152. package/esm/generated/models/Address.d.ts +0 -8
  153. package/esm/generated/models/CancelListingEventResponse.d.ts +0 -5
  154. package/esm/generated/models/CloseAuctionEventResponse.d.ts +0 -6
  155. package/esm/generated/models/CollectionMetrics.d.ts +0 -40
  156. package/esm/generated/models/CollectionSortByOption.d.ts +0 -8
  157. package/esm/generated/models/CollectionSortByOption.js +0 -9
  158. package/esm/generated/models/CreateTransactionExportRequest.d.ts +0 -11
  159. package/esm/generated/models/ErcType.d.ts +0 -8
  160. package/esm/generated/models/ErcType.js +0 -9
  161. package/esm/generated/models/ListNftCollectionWithMetricsResponse.d.ts +0 -11
  162. package/esm/generated/models/ListingCurrencyType.d.ts +0 -6
  163. package/esm/generated/models/ListingCurrencyType.js +0 -7
  164. package/esm/generated/models/ListingEventType.d.ts +0 -8
  165. package/esm/generated/models/ListingEventType.js +0 -9
  166. package/esm/generated/models/ListingResponse.d.ts +0 -19
  167. package/esm/generated/models/ListingType.d.ts +0 -6
  168. package/esm/generated/models/ListingType.js +0 -7
  169. package/esm/generated/models/ListingsSortByOption.d.ts +0 -5
  170. package/esm/generated/models/ListingsSortByOption.js +0 -6
  171. package/esm/generated/models/NftCollection.d.ts +0 -24
  172. package/esm/generated/models/NftCollectionWithMetrics.d.ts +0 -26
  173. package/esm/generated/models/NftFilterOptionsProperty.d.ts +0 -10
  174. package/esm/generated/models/NftSearchBody.d.ts +0 -10
  175. package/esm/generated/models/NftSearchResultTypeOption.d.ts +0 -6
  176. package/esm/generated/models/NftSearchResultTypeOption.js +0 -7
  177. package/esm/generated/models/OpenListingEventResponse.d.ts +0 -17
  178. package/esm/generated/models/OperationTransactionExportMetadata.d.ts +0 -18
  179. package/esm/generated/models/PChainConsumedUtxo.d.ts +0 -11
  180. package/esm/generated/models/PChainEmittedUtxo.d.ts +0 -19
  181. package/esm/generated/models/PaginationParams.d.ts +0 -13
  182. package/esm/generated/models/PurchaseListingEventResponse.d.ts +0 -17
  183. package/esm/generated/models/TokenWithPrice.d.ts +0 -28
  184. package/esm/generated/models/TrendingTimeframe.d.ts +0 -7
  185. package/esm/generated/models/TrendingTimeframe.js +0 -8
  186. package/esm/generated/services/EvmService.d.ts +0 -724
  187. package/esm/generated/services/EvmService.js +0 -509
@@ -1,16 +1,36 @@
1
1
  import { BaseHttpRequest } from './core/BaseHttpRequest.js';
2
2
  import { OpenAPIConfig } from './core/OpenAPI.js';
3
- import { EvmService } from './services/EvmService.js';
3
+ import { EvmBalancesService } from './services/EvmBalancesService.js';
4
+ import { EvmBlocksService } from './services/EvmBlocksService.js';
5
+ import { EvmChainsService } from './services/EvmChainsService.js';
6
+ import { EvmTransactionsService } from './services/EvmTransactionsService.js';
4
7
  import { HealthCheckService } from './services/HealthCheckService.js';
8
+ import { NfTsService } from './services/NfTsService.js';
5
9
  import { OperationsService } from './services/OperationsService.js';
6
10
  import { PrimaryNetworkService } from './services/PrimaryNetworkService.js';
11
+ import { PrimaryNetworkBalancesService } from './services/PrimaryNetworkBalancesService.js';
12
+ import { PrimaryNetworkBlocksService } from './services/PrimaryNetworkBlocksService.js';
13
+ import { PrimaryNetworkRewardsService } from './services/PrimaryNetworkRewardsService.js';
14
+ import { PrimaryNetworkTransactionsService } from './services/PrimaryNetworkTransactionsService.js';
15
+ import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsService.js';
16
+ import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
7
17
 
8
18
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
9
19
  declare class Glacier {
10
- readonly evm: EvmService;
20
+ readonly evmBalances: EvmBalancesService;
21
+ readonly evmBlocks: EvmBlocksService;
22
+ readonly evmChains: EvmChainsService;
23
+ readonly evmTransactions: EvmTransactionsService;
11
24
  readonly healthCheck: HealthCheckService;
25
+ readonly nfTs: NfTsService;
12
26
  readonly operations: OperationsService;
13
27
  readonly primaryNetwork: PrimaryNetworkService;
28
+ readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
29
+ readonly primaryNetworkBlocks: PrimaryNetworkBlocksService;
30
+ readonly primaryNetworkRewards: PrimaryNetworkRewardsService;
31
+ readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
32
+ readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
33
+ readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
14
34
  readonly request: BaseHttpRequest;
15
35
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
16
36
  }
@@ -1,14 +1,24 @@
1
1
  import { FetchHttpRequest } from './core/FetchHttpRequest.js';
2
- import { EvmService } from './services/EvmService.js';
2
+ import { EvmBalancesService } from './services/EvmBalancesService.js';
3
+ import { EvmBlocksService } from './services/EvmBlocksService.js';
4
+ import { EvmChainsService } from './services/EvmChainsService.js';
5
+ import { EvmTransactionsService } from './services/EvmTransactionsService.js';
3
6
  import { HealthCheckService } from './services/HealthCheckService.js';
7
+ import { NfTsService } from './services/NfTsService.js';
4
8
  import { OperationsService } from './services/OperationsService.js';
5
9
  import { PrimaryNetworkService } from './services/PrimaryNetworkService.js';
10
+ import { PrimaryNetworkBalancesService } from './services/PrimaryNetworkBalancesService.js';
11
+ import { PrimaryNetworkBlocksService } from './services/PrimaryNetworkBlocksService.js';
12
+ import { PrimaryNetworkRewardsService } from './services/PrimaryNetworkRewardsService.js';
13
+ import { PrimaryNetworkTransactionsService } from './services/PrimaryNetworkTransactionsService.js';
14
+ import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsService.js';
15
+ import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
6
16
 
7
17
  class Glacier {
8
18
  constructor(config, HttpRequest = FetchHttpRequest) {
9
19
  var _a, _b, _c, _d;
10
20
  this.request = new HttpRequest({
11
- BASE: (_a = config == null ? void 0 : config.BASE) != null ? _a : "",
21
+ BASE: (_a = config == null ? void 0 : config.BASE) != null ? _a : "https://glacier-api-dev.avax.network",
12
22
  VERSION: (_b = config == null ? void 0 : config.VERSION) != null ? _b : "Beta",
13
23
  WITH_CREDENTIALS: (_c = config == null ? void 0 : config.WITH_CREDENTIALS) != null ? _c : false,
14
24
  CREDENTIALS: (_d = config == null ? void 0 : config.CREDENTIALS) != null ? _d : "include",
@@ -18,10 +28,20 @@ class Glacier {
18
28
  HEADERS: config == null ? void 0 : config.HEADERS,
19
29
  ENCODE_PATH: config == null ? void 0 : config.ENCODE_PATH
20
30
  });
21
- this.evm = new EvmService(this.request);
31
+ this.evmBalances = new EvmBalancesService(this.request);
32
+ this.evmBlocks = new EvmBlocksService(this.request);
33
+ this.evmChains = new EvmChainsService(this.request);
34
+ this.evmTransactions = new EvmTransactionsService(this.request);
22
35
  this.healthCheck = new HealthCheckService(this.request);
36
+ this.nfTs = new NfTsService(this.request);
23
37
  this.operations = new OperationsService(this.request);
24
38
  this.primaryNetwork = new PrimaryNetworkService(this.request);
39
+ this.primaryNetworkBalances = new PrimaryNetworkBalancesService(this.request);
40
+ this.primaryNetworkBlocks = new PrimaryNetworkBlocksService(this.request);
41
+ this.primaryNetworkRewards = new PrimaryNetworkRewardsService(this.request);
42
+ this.primaryNetworkTransactions = new PrimaryNetworkTransactionsService(this.request);
43
+ this.primaryNetworkUtxOs = new PrimaryNetworkUtxOsService(this.request);
44
+ this.primaryNetworkVertices = new PrimaryNetworkVerticesService(this.request);
25
45
  }
26
46
  }
27
47
 
@@ -1,5 +1,5 @@
1
1
  const OpenAPI = {
2
- BASE: "",
2
+ BASE: "https://glacier-api-dev.avax.network",
3
3
  VERSION: "Beta",
4
4
  WITH_CREDENTIALS: false,
5
5
  CREDENTIALS: "include",
@@ -0,0 +1,15 @@
1
+ import { DelegationStatusType } from './DelegationStatusType.js';
2
+
3
+ type ActiveDelegatorDetails = {
4
+ txHash: string;
5
+ rewardAddresses: Array<string>;
6
+ amountDelegated: string;
7
+ delegationFee: string;
8
+ startTimestamp: number;
9
+ endTimestamp: number;
10
+ delegationStatus: DelegationStatusType;
11
+ estimatedGrossReward: string;
12
+ estimatedNetReward: string;
13
+ };
14
+
15
+ export { ActiveDelegatorDetails };
@@ -0,0 +1,20 @@
1
+ import { Rewards } from './Rewards.js';
2
+ import { ValidationStatusType } from './ValidationStatusType.js';
3
+
4
+ type ActiveValidatorDetails = {
5
+ nodeId: string;
6
+ amountStaked: string;
7
+ delegationFee: string;
8
+ startTimestamp: number;
9
+ endTimestamp: number;
10
+ validationStatus: ValidationStatusType;
11
+ stakePercentage: number;
12
+ delegatorCount: number;
13
+ amountDelegated: string;
14
+ uptimePerformance: number;
15
+ avalancheGoVersion: string;
16
+ delegationCapacity: string;
17
+ potentialRewards: Rewards;
18
+ };
19
+
20
+ export { ActiveValidatorDetails };
@@ -0,0 +1,10 @@
1
+ type Blockchain = {
2
+ createBlockTimestamp: number;
3
+ createBlockNumber: string;
4
+ blockchainId: string;
5
+ vmId: string;
6
+ subnetId: string;
7
+ blockchainName: string;
8
+ };
9
+
10
+ export { Blockchain };
@@ -1,9 +1,12 @@
1
1
  declare enum BlockchainId {
2
+ _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
3
+ _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
4
+ _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
5
+ _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
6
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
2
7
  P_CHAIN = "p-chain",
3
8
  X_CHAIN = "x-chain",
4
- C_CHAIN = "c-chain",
5
- _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
6
- _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
9
+ C_CHAIN = "c-chain"
7
10
  }
8
11
 
9
12
  export { BlockchainId };
@@ -1,9 +1,12 @@
1
1
  var BlockchainId = /* @__PURE__ */ ((BlockchainId2) => {
2
+ BlockchainId2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
3
+ BlockchainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
4
+ BlockchainId2["_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM"] = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm";
5
+ BlockchainId2["_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5"] = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5";
6
+ BlockchainId2["Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP"] = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp";
2
7
  BlockchainId2["P_CHAIN"] = "p-chain";
3
8
  BlockchainId2["X_CHAIN"] = "x-chain";
4
9
  BlockchainId2["C_CHAIN"] = "c-chain";
5
- BlockchainId2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
6
- BlockchainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
7
10
  return BlockchainId2;
8
11
  })(BlockchainId || {});
9
12
 
@@ -0,0 +1,9 @@
1
+ declare enum BlockchainIds {
2
+ _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
3
+ _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
4
+ _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
5
+ _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
6
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
7
+ }
8
+
9
+ export { BlockchainIds };
@@ -0,0 +1,10 @@
1
+ var BlockchainIds = /* @__PURE__ */ ((BlockchainIds2) => {
2
+ BlockchainIds2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
3
+ BlockchainIds2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
4
+ BlockchainIds2["_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM"] = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm";
5
+ BlockchainIds2["_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5"] = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5";
6
+ BlockchainIds2["Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP"] = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp";
7
+ return BlockchainIds2;
8
+ })(BlockchainIds || {});
9
+
10
+ export { BlockchainIds };
@@ -0,0 +1,5 @@
1
+ type BlockchainInfo = {
2
+ blockchainId: string;
3
+ };
4
+
5
+ export { BlockchainInfo };
@@ -1,8 +1,8 @@
1
- import { BlockchainId } from './BlockchainId.js';
1
+ import { BlockchainIds } from './BlockchainIds.js';
2
2
 
3
3
  type ChainAddressChainIdMap = {
4
4
  address: string;
5
- blockchainIds: BlockchainId;
5
+ blockchainIds: Array<BlockchainIds>;
6
6
  };
7
7
 
8
8
  export { ChainAddressChainIdMap };
@@ -6,10 +6,7 @@ import { VmName } from './VmName.js';
6
6
  type ChainInfo = {
7
7
  chainId: string;
8
8
  /**
9
- * Status of chain nodes. Chain nodes can become temporarily
10
- * `UNAVAILABLE` for several reasons, such as validator stake falling
11
- * below threshold. If chain nodes are `UNAVAILABLE`, requests that rely
12
- * on data from the chain nodes may return 503 errors.
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.
13
10
  */
14
11
  status: ChainStatus;
15
12
  chainName: string;
@@ -0,0 +1,15 @@
1
+ import { DelegationStatusType } from './DelegationStatusType.js';
2
+
3
+ type CompletedDelegatorDetails = {
4
+ txHash: string;
5
+ rewardAddresses: Array<string>;
6
+ amountDelegated: string;
7
+ delegationFee: string;
8
+ startTimestamp: number;
9
+ endTimestamp: number;
10
+ delegationStatus: DelegationStatusType;
11
+ grossReward: string;
12
+ netReward: string;
13
+ };
14
+
15
+ export { CompletedDelegatorDetails };
@@ -0,0 +1,15 @@
1
+ import { Rewards } from './Rewards.js';
2
+ import { ValidationStatusType } from './ValidationStatusType.js';
3
+
4
+ type CompletedValidatorDetails = {
5
+ nodeId: string;
6
+ amountStaked: string;
7
+ delegationFee: string;
8
+ startTimestamp: number;
9
+ endTimestamp: number;
10
+ validationStatus: ValidationStatusType;
11
+ delegatorCount: number;
12
+ rewards: Rewards;
13
+ };
14
+
15
+ export { CompletedValidatorDetails };
@@ -0,0 +1,13 @@
1
+ type ContractDeploymentDetails = {
2
+ txHash: string;
3
+ /**
4
+ * The address that initiated the transaction which deployed this contract.
5
+ */
6
+ deployerAddress: string;
7
+ /**
8
+ * The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
9
+ */
10
+ deployerContractAddress?: string;
11
+ };
12
+
13
+ export { ContractDeploymentDetails };
@@ -0,0 +1,23 @@
1
+ import { EvmNetworkOptions } from './EvmNetworkOptions.js';
2
+
3
+ type CreateEvmTransactionExportRequest = {
4
+ type: CreateEvmTransactionExportRequest.type;
5
+ firstDate: string;
6
+ lastDate: string;
7
+ /**
8
+ * @deprecated
9
+ */
10
+ startDate: string;
11
+ /**
12
+ * @deprecated
13
+ */
14
+ endDate: string;
15
+ options: EvmNetworkOptions;
16
+ };
17
+ declare namespace CreateEvmTransactionExportRequest {
18
+ enum type {
19
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
20
+ }
21
+ }
22
+
23
+ export { CreateEvmTransactionExportRequest };
@@ -0,0 +1,8 @@
1
+ var CreateEvmTransactionExportRequest;
2
+ ((CreateEvmTransactionExportRequest2) => {
3
+ ((type2) => {
4
+ type2["TRANSACTION_EXPORT_EVM"] = "TRANSACTION_EXPORT_EVM";
5
+ })(CreateEvmTransactionExportRequest2.type || (CreateEvmTransactionExportRequest2.type = {}));
6
+ })(CreateEvmTransactionExportRequest || (CreateEvmTransactionExportRequest = {}));
7
+
8
+ export { CreateEvmTransactionExportRequest };
@@ -0,0 +1,23 @@
1
+ import { PrimaryNetworkOptions } from './PrimaryNetworkOptions.js';
2
+
3
+ type CreatePrimaryNetworkTransactionExportRequest = {
4
+ type: CreatePrimaryNetworkTransactionExportRequest.type;
5
+ firstDate: string;
6
+ lastDate: string;
7
+ /**
8
+ * @deprecated
9
+ */
10
+ startDate: string;
11
+ /**
12
+ * @deprecated
13
+ */
14
+ endDate: string;
15
+ options: PrimaryNetworkOptions;
16
+ };
17
+ declare namespace CreatePrimaryNetworkTransactionExportRequest {
18
+ enum type {
19
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
20
+ }
21
+ }
22
+
23
+ export { CreatePrimaryNetworkTransactionExportRequest };
@@ -0,0 +1,8 @@
1
+ var CreatePrimaryNetworkTransactionExportRequest;
2
+ ((CreatePrimaryNetworkTransactionExportRequest2) => {
3
+ ((type2) => {
4
+ type2["TRANSACTION_EXPORT_PRIMARY_NETWORK"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK";
5
+ })(CreatePrimaryNetworkTransactionExportRequest2.type || (CreatePrimaryNetworkTransactionExportRequest2.type = {}));
6
+ })(CreatePrimaryNetworkTransactionExportRequest || (CreatePrimaryNetworkTransactionExportRequest = {}));
7
+
8
+ export { CreatePrimaryNetworkTransactionExportRequest };
@@ -0,0 +1,7 @@
1
+ declare enum DelegationStatusType {
2
+ COMPLETED = "completed",
3
+ ACTIVE = "active",
4
+ PENDING = "pending"
5
+ }
6
+
7
+ export { DelegationStatusType };
@@ -0,0 +1,8 @@
1
+ var DelegationStatusType = /* @__PURE__ */ ((DelegationStatusType2) => {
2
+ DelegationStatusType2["COMPLETED"] = "completed";
3
+ DelegationStatusType2["ACTIVE"] = "active";
4
+ DelegationStatusType2["PENDING"] = "pending";
5
+ return DelegationStatusType2;
6
+ })(DelegationStatusType || {});
7
+
8
+ export { DelegationStatusType };
@@ -0,0 +1,6 @@
1
+ type DelegatorsDetails = {
2
+ delegatorCount: number;
3
+ totalAmountStaked: string;
4
+ };
5
+
6
+ export { DelegatorsDetails };
@@ -1,4 +1,5 @@
1
1
  import { Asset } from './Asset.js';
2
+ import { UtxoCredential } from './UtxoCredential.js';
2
3
 
3
4
  type EVMInput = {
4
5
  /**
@@ -9,6 +10,10 @@ type EVMInput = {
9
10
  * Asset details for the asset being transferred.
10
11
  */
11
12
  asset: Asset;
13
+ /**
14
+ * Credentials that signed this transaction.
15
+ */
16
+ credentials: Array<UtxoCredential>;
12
17
  };
13
18
 
14
19
  export { EVMInput };
@@ -0,0 +1,37 @@
1
+ import { ContractDeploymentDetails } from './ContractDeploymentDetails.js';
2
+ import { ImageAsset } from './ImageAsset.js';
3
+ import { PricingProviders } from './PricingProviders.js';
4
+ import { ResourceLink } from './ResourceLink.js';
5
+
6
+ type Erc1155Contract = {
7
+ /**
8
+ * The contract name.
9
+ */
10
+ name?: string;
11
+ description?: string;
12
+ officialSite?: string;
13
+ email?: string;
14
+ logoAsset?: ImageAsset;
15
+ bannerAsset?: ImageAsset;
16
+ color?: string;
17
+ resourceLinks?: Array<ResourceLink>;
18
+ tags?: Array<string>;
19
+ /**
20
+ * A wallet or contract address in mixed-case checksum encoding.
21
+ */
22
+ address: string;
23
+ deploymentDetails: ContractDeploymentDetails;
24
+ ercType: Erc1155Contract.ercType;
25
+ /**
26
+ * The contract symbol.
27
+ */
28
+ symbol?: string;
29
+ pricingProviders?: PricingProviders;
30
+ };
31
+ declare namespace Erc1155Contract {
32
+ enum ercType {
33
+ ERC_1155 = "ERC-1155"
34
+ }
35
+ }
36
+
37
+ export { Erc1155Contract };
@@ -0,0 +1,8 @@
1
+ var Erc1155Contract;
2
+ ((Erc1155Contract2) => {
3
+ ((ercType2) => {
4
+ ercType2["ERC_1155"] = "ERC-1155";
5
+ })(Erc1155Contract2.ercType || (Erc1155Contract2.ercType = {}));
6
+ })(Erc1155Contract || (Erc1155Contract = {}));
7
+
8
+ export { Erc1155Contract };
@@ -14,8 +14,7 @@ type Erc1155TokenBalance = {
14
14
  */
15
15
  chainId: string;
16
16
  /**
17
- * The address balance for the token, in units specified by the
18
- * `decimals` value for the contract.
17
+ * The address balance for the token, in units specified by the `decimals` value for the contract.
19
18
  */
20
19
  balance: string;
21
20
  };
@@ -20,6 +20,7 @@ type Erc1155Transfer = {
20
20
  txHash: string;
21
21
  from: RichAddress;
22
22
  to: RichAddress;
23
+ logIndex: number;
23
24
  value: string;
24
25
  erc1155Token: Erc1155Token;
25
26
  };
@@ -4,6 +4,7 @@ import { RichAddress } from './RichAddress.js';
4
4
  type Erc1155TransferDetails = {
5
5
  from: RichAddress;
6
6
  to: RichAddress;
7
+ logIndex: number;
7
8
  value: string;
8
9
  erc1155Token: Erc1155Token;
9
10
  };
@@ -0,0 +1,41 @@
1
+ import { ContractDeploymentDetails } from './ContractDeploymentDetails.js';
2
+ import { ImageAsset } from './ImageAsset.js';
3
+ import { PricingProviders } from './PricingProviders.js';
4
+ import { ResourceLink } from './ResourceLink.js';
5
+
6
+ type Erc20Contract = {
7
+ /**
8
+ * The contract name.
9
+ */
10
+ name?: string;
11
+ description?: string;
12
+ officialSite?: string;
13
+ email?: string;
14
+ logoAsset?: ImageAsset;
15
+ bannerAsset?: ImageAsset;
16
+ color?: string;
17
+ resourceLinks?: Array<ResourceLink>;
18
+ tags?: Array<string>;
19
+ /**
20
+ * A wallet or contract address in mixed-case checksum encoding.
21
+ */
22
+ address: string;
23
+ deploymentDetails: ContractDeploymentDetails;
24
+ ercType: Erc20Contract.ercType;
25
+ /**
26
+ * The contract symbol.
27
+ */
28
+ symbol?: string;
29
+ /**
30
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
31
+ */
32
+ decimals: number;
33
+ pricingProviders: PricingProviders;
34
+ };
35
+ declare namespace Erc20Contract {
36
+ enum ercType {
37
+ ERC_20 = "ERC-20"
38
+ }
39
+ }
40
+
41
+ export { Erc20Contract };
@@ -0,0 +1,8 @@
1
+ var Erc20Contract;
2
+ ((Erc20Contract2) => {
3
+ ((ercType2) => {
4
+ ercType2["ERC_20"] = "ERC-20";
5
+ })(Erc20Contract2.ercType || (Erc20Contract2.ercType = {}));
6
+ })(Erc20Contract || (Erc20Contract = {}));
7
+
8
+ export { Erc20Contract };
@@ -14,9 +14,7 @@ type Erc20Token = {
14
14
  */
15
15
  symbol: string;
16
16
  /**
17
- * The number of decimals the token uses. For example `6`,
18
- * means to divide the token amount by `1000000` to get its user
19
- * representation.
17
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
20
18
  */
21
19
  decimals: number;
22
20
  /**
@@ -14,9 +14,7 @@ type Erc20TokenBalance = {
14
14
  */
15
15
  symbol: string;
16
16
  /**
17
- * The number of decimals the token uses. For example `6`,
18
- * means to divide the token amount by `1000000` to get its user
19
- * representation.
17
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
20
18
  */
21
19
  decimals: number;
22
20
  /**
@@ -33,8 +31,7 @@ type Erc20TokenBalance = {
33
31
  */
34
32
  chainId: string;
35
33
  /**
36
- * The address balance for the token, in units specified by the
37
- * `decimals` value for the contract.
34
+ * The address balance for the token, in units specified by the `decimals` value for the contract.
38
35
  */
39
36
  balance: string;
40
37
  /**
@@ -20,6 +20,7 @@ type Erc20Transfer = {
20
20
  txHash: string;
21
21
  from: RichAddress;
22
22
  to: RichAddress;
23
+ logIndex: number;
23
24
  value: string;
24
25
  erc20Token: Erc20Token;
25
26
  };
@@ -4,6 +4,7 @@ import { RichAddress } from './RichAddress.js';
4
4
  type Erc20TransferDetails = {
5
5
  from: RichAddress;
6
6
  to: RichAddress;
7
+ logIndex: number;
7
8
  value: string;
8
9
  erc20Token: Erc20Token;
9
10
  };
@@ -0,0 +1,35 @@
1
+ import { ContractDeploymentDetails } from './ContractDeploymentDetails.js';
2
+ import { ImageAsset } from './ImageAsset.js';
3
+ import { ResourceLink } from './ResourceLink.js';
4
+
5
+ type Erc721Contract = {
6
+ /**
7
+ * The contract name.
8
+ */
9
+ name?: string;
10
+ description?: string;
11
+ officialSite?: string;
12
+ email?: string;
13
+ logoAsset?: ImageAsset;
14
+ bannerAsset?: ImageAsset;
15
+ color?: string;
16
+ resourceLinks?: Array<ResourceLink>;
17
+ tags?: Array<string>;
18
+ /**
19
+ * A wallet or contract address in mixed-case checksum encoding.
20
+ */
21
+ address: string;
22
+ deploymentDetails: ContractDeploymentDetails;
23
+ ercType: Erc721Contract.ercType;
24
+ /**
25
+ * The contract symbol.
26
+ */
27
+ symbol?: string;
28
+ };
29
+ declare namespace Erc721Contract {
30
+ enum ercType {
31
+ ERC_721 = "ERC-721"
32
+ }
33
+ }
34
+
35
+ export { Erc721Contract };
@@ -0,0 +1,8 @@
1
+ var Erc721Contract;
2
+ ((Erc721Contract2) => {
3
+ ((ercType2) => {
4
+ ercType2["ERC_721"] = "ERC-721";
5
+ })(Erc721Contract2.ercType || (Erc721Contract2.ercType = {}));
6
+ })(Erc721Contract || (Erc721Contract = {}));
7
+
8
+ export { Erc721Contract };
@@ -20,6 +20,7 @@ type Erc721Transfer = {
20
20
  txHash: string;
21
21
  from: RichAddress;
22
22
  to: RichAddress;
23
+ logIndex: number;
23
24
  erc721Token: Erc721Token;
24
25
  };
25
26
 
@@ -4,6 +4,7 @@ import { RichAddress } from './RichAddress.js';
4
4
  type Erc721TransferDetails = {
5
5
  from: RichAddress;
6
6
  to: RichAddress;
7
+ logIndex: number;
7
8
  erc721Token: Erc721Token;
8
9
  };
9
10