@avalabs/glacier-sdk 2.8.0-canary.f19144b.0 → 2.8.0-canary.f2340be.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 +1488 -643
  2. package/dist/index.js +531 -119
  3. package/esm/generated/Glacier.d.ts +8 -0
  4. package/esm/generated/Glacier.js +12 -0
  5. package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
  6. package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
  7. package/esm/generated/models/ActiveValidatorDetails.d.ts +14 -6
  8. package/esm/generated/models/ActiveValidatorDetails.js +8 -0
  9. package/esm/generated/models/AddressActivityMetadata.d.ts +20 -0
  10. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  11. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  12. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  13. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  14. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  15. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  16. package/esm/generated/models/ChainInfo.d.ts +2 -3
  17. package/esm/generated/models/ChainStatus.d.ts +3 -0
  18. package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
  19. package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
  20. package/esm/generated/models/CompletedValidatorDetails.d.ts +9 -3
  21. package/esm/generated/models/CompletedValidatorDetails.js +8 -0
  22. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  23. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  24. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  25. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  26. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  27. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  28. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  29. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  30. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  31. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  32. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  33. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  34. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
  35. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  36. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
  37. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  38. package/esm/generated/models/EVMInput.d.ts +3 -3
  39. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  40. package/esm/generated/models/EVMOperationType.js +6 -0
  41. package/esm/generated/models/EVMOutput.d.ts +3 -3
  42. package/esm/generated/models/Erc1155Contract.d.ts +2 -1
  43. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  44. package/esm/generated/models/Erc20Contract.d.ts +2 -1
  45. package/esm/generated/models/Erc721Contract.d.ts +0 -1
  46. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  47. package/esm/generated/models/EventType.d.ts +5 -0
  48. package/esm/generated/models/EventType.js +6 -0
  49. package/esm/generated/models/GetChainResponse.d.ts +2 -3
  50. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  51. package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
  52. package/esm/generated/models/GlacierApiFeature.js +6 -0
  53. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  54. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  55. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  56. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  57. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
  58. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  59. package/esm/generated/models/Method.d.ts +0 -3
  60. package/esm/generated/models/Money.d.ts +0 -3
  61. package/esm/generated/models/NextPageToken.d.ts +8 -0
  62. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  63. package/esm/generated/models/OperationType.d.ts +4 -2
  64. package/esm/generated/models/OperationType.js +3 -1
  65. package/esm/generated/models/PChainBalance.d.ts +15 -15
  66. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  67. package/esm/generated/models/PChainTransaction.d.ts +13 -7
  68. package/esm/generated/models/PChainTransactionType.d.ts +8 -4
  69. package/esm/generated/models/PChainTransactionType.js +8 -4
  70. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  71. package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
  72. package/esm/generated/models/PendingDelegatorDetails.js +8 -0
  73. package/esm/generated/models/PendingReward.d.ts +3 -3
  74. package/esm/generated/models/PendingTeleporterMessage.d.ts +27 -0
  75. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  76. package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
  77. package/esm/generated/models/PendingValidatorDetails.js +8 -0
  78. package/esm/generated/models/PricingProviders.d.ts +5 -0
  79. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  80. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  81. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  82. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  83. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  84. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  85. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  86. package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -5
  87. package/esm/generated/models/PrimaryNetworkTxType.js +8 -5
  88. package/esm/generated/models/RegisterWebhookRequest.d.ts +11 -0
  89. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  90. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  91. package/esm/generated/models/RewardType.d.ts +2 -1
  92. package/esm/generated/models/RewardType.js +1 -0
  93. package/esm/generated/models/Rewards.d.ts +2 -0
  94. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  95. package/esm/generated/models/Subnet.d.ts +17 -0
  96. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  97. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  98. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  99. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  100. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  101. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  102. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  103. package/esm/generated/models/UnknownContract.d.ts +0 -1
  104. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  105. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  106. package/esm/generated/models/Utxo.d.ts +30 -30
  107. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  108. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  109. package/esm/generated/models/ValidationStatusType.js +1 -0
  110. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  111. package/esm/generated/models/WebhookResponse.d.ts +17 -0
  112. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  113. package/esm/generated/models/WebhookStatus.js +7 -0
  114. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  115. package/esm/generated/models/WebhookStatusType.js +7 -0
  116. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  117. package/esm/generated/models/XChainBalances.d.ts +3 -3
  118. package/esm/generated/models/XChainLinearTransaction.d.ts +6 -8
  119. package/esm/generated/models/XChainNonLinearTransaction.d.ts +6 -8
  120. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  121. package/esm/generated/models/XChainTransactionType.d.ts +13 -0
  122. package/esm/generated/models/XChainTransactionType.js +11 -0
  123. package/esm/generated/services/DefaultService.d.ts +100 -0
  124. package/esm/generated/services/DefaultService.js +86 -0
  125. package/esm/generated/services/EvmBalancesService.d.ts +25 -25
  126. package/esm/generated/services/EvmBalancesService.js +8 -8
  127. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  128. package/esm/generated/services/EvmBlocksService.js +4 -4
  129. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  130. package/esm/generated/services/EvmChainsService.js +4 -2
  131. package/esm/generated/services/EvmContractsService.d.ts +48 -0
  132. package/esm/generated/services/EvmContractsService.js +36 -0
  133. package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
  134. package/esm/generated/services/EvmTransactionsService.js +33 -33
  135. package/esm/generated/services/NfTsService.d.ts +76 -0
  136. package/esm/generated/services/NfTsService.js +56 -0
  137. package/esm/generated/services/OperationsService.d.ts +11 -11
  138. package/esm/generated/services/OperationsService.js +10 -10
  139. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  140. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  141. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +21 -8
  142. package/esm/generated/services/PrimaryNetworkRewardsService.js +12 -6
  143. package/esm/generated/services/PrimaryNetworkService.d.ts +53 -29
  144. package/esm/generated/services/PrimaryNetworkService.js +26 -14
  145. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +20 -16
  146. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  147. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  148. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  149. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  150. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  151. package/esm/generated/services/TeleporterService.d.ts +57 -0
  152. package/esm/generated/services/TeleporterService.js +39 -0
  153. package/esm/index.d.ts +41 -3
  154. package/esm/index.js +28 -2
  155. package/package.json +2 -2
  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,10 +1,13 @@
1
1
  import { BaseHttpRequest } from './core/BaseHttpRequest.js';
2
2
  import { OpenAPIConfig } from './core/OpenAPI.js';
3
+ import { DefaultService } from './services/DefaultService.js';
3
4
  import { EvmBalancesService } from './services/EvmBalancesService.js';
4
5
  import { EvmBlocksService } from './services/EvmBlocksService.js';
5
6
  import { EvmChainsService } from './services/EvmChainsService.js';
7
+ import { EvmContractsService } from './services/EvmContractsService.js';
6
8
  import { EvmTransactionsService } from './services/EvmTransactionsService.js';
7
9
  import { HealthCheckService } from './services/HealthCheckService.js';
10
+ import { NfTsService } from './services/NfTsService.js';
8
11
  import { OperationsService } from './services/OperationsService.js';
9
12
  import { PrimaryNetworkService } from './services/PrimaryNetworkService.js';
10
13
  import { PrimaryNetworkBalancesService } from './services/PrimaryNetworkBalancesService.js';
@@ -13,14 +16,18 @@ import { PrimaryNetworkRewardsService } from './services/PrimaryNetworkRewardsSe
13
16
  import { PrimaryNetworkTransactionsService } from './services/PrimaryNetworkTransactionsService.js';
14
17
  import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsService.js';
15
18
  import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
19
+ import { TeleporterService } from './services/TeleporterService.js';
16
20
 
17
21
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
18
22
  declare class Glacier {
23
+ readonly default: DefaultService;
19
24
  readonly evmBalances: EvmBalancesService;
20
25
  readonly evmBlocks: EvmBlocksService;
21
26
  readonly evmChains: EvmChainsService;
27
+ readonly evmContracts: EvmContractsService;
22
28
  readonly evmTransactions: EvmTransactionsService;
23
29
  readonly healthCheck: HealthCheckService;
30
+ readonly nfTs: NfTsService;
24
31
  readonly operations: OperationsService;
25
32
  readonly primaryNetwork: PrimaryNetworkService;
26
33
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -29,6 +36,7 @@ declare class Glacier {
29
36
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
30
37
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
31
38
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
39
+ readonly teleporter: TeleporterService;
32
40
  readonly request: BaseHttpRequest;
33
41
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
34
42
  }
@@ -1,9 +1,12 @@
1
1
  import { FetchHttpRequest } from './core/FetchHttpRequest.js';
2
+ import { DefaultService } from './services/DefaultService.js';
2
3
  import { EvmBalancesService } from './services/EvmBalancesService.js';
3
4
  import { EvmBlocksService } from './services/EvmBlocksService.js';
4
5
  import { EvmChainsService } from './services/EvmChainsService.js';
6
+ import { EvmContractsService } from './services/EvmContractsService.js';
5
7
  import { EvmTransactionsService } from './services/EvmTransactionsService.js';
6
8
  import { HealthCheckService } from './services/HealthCheckService.js';
9
+ import { NfTsService } from './services/NfTsService.js';
7
10
  import { OperationsService } from './services/OperationsService.js';
8
11
  import { PrimaryNetworkService } from './services/PrimaryNetworkService.js';
9
12
  import { PrimaryNetworkBalancesService } from './services/PrimaryNetworkBalancesService.js';
@@ -12,13 +15,17 @@ import { PrimaryNetworkRewardsService } from './services/PrimaryNetworkRewardsSe
12
15
  import { PrimaryNetworkTransactionsService } from './services/PrimaryNetworkTransactionsService.js';
13
16
  import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsService.js';
14
17
  import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
18
+ import { TeleporterService } from './services/TeleporterService.js';
15
19
 
16
20
  class Glacier {
21
+ default;
17
22
  evmBalances;
18
23
  evmBlocks;
19
24
  evmChains;
25
+ evmContracts;
20
26
  evmTransactions;
21
27
  healthCheck;
28
+ nfTs;
22
29
  operations;
23
30
  primaryNetwork;
24
31
  primaryNetworkBalances;
@@ -27,6 +34,7 @@ class Glacier {
27
34
  primaryNetworkTransactions;
28
35
  primaryNetworkUtxOs;
29
36
  primaryNetworkVertices;
37
+ teleporter;
30
38
  request;
31
39
  constructor(config, HttpRequest = FetchHttpRequest) {
32
40
  this.request = new HttpRequest({
@@ -40,11 +48,14 @@ class Glacier {
40
48
  HEADERS: config?.HEADERS,
41
49
  ENCODE_PATH: config?.ENCODE_PATH
42
50
  });
51
+ this.default = new DefaultService(this.request);
43
52
  this.evmBalances = new EvmBalancesService(this.request);
44
53
  this.evmBlocks = new EvmBlocksService(this.request);
45
54
  this.evmChains = new EvmChainsService(this.request);
55
+ this.evmContracts = new EvmContractsService(this.request);
46
56
  this.evmTransactions = new EvmTransactionsService(this.request);
47
57
  this.healthCheck = new HealthCheckService(this.request);
58
+ this.nfTs = new NfTsService(this.request);
48
59
  this.operations = new OperationsService(this.request);
49
60
  this.primaryNetwork = new PrimaryNetworkService(this.request);
50
61
  this.primaryNetworkBalances = new PrimaryNetworkBalancesService(this.request);
@@ -53,6 +64,7 @@ class Glacier {
53
64
  this.primaryNetworkTransactions = new PrimaryNetworkTransactionsService(this.request);
54
65
  this.primaryNetworkUtxOs = new PrimaryNetworkUtxOsService(this.request);
55
66
  this.primaryNetworkVertices = new PrimaryNetworkVerticesService(this.request);
67
+ this.teleporter = new TeleporterService(this.request);
56
68
  }
57
69
  }
58
70
 
@@ -1,15 +1,19 @@
1
- import { DelegationStatusType } from './DelegationStatusType.js';
2
-
3
1
  type ActiveDelegatorDetails = {
4
2
  txHash: string;
3
+ nodeId: string;
5
4
  rewardAddresses: Array<string>;
6
5
  amountDelegated: string;
7
6
  delegationFee: string;
8
7
  startTimestamp: number;
9
8
  endTimestamp: number;
10
- delegationStatus: DelegationStatusType;
11
9
  estimatedGrossReward: string;
12
10
  estimatedNetReward: string;
11
+ delegationStatus: ActiveDelegatorDetails.delegationStatus;
13
12
  };
13
+ declare namespace ActiveDelegatorDetails {
14
+ enum delegationStatus {
15
+ ACTIVE = "active"
16
+ }
17
+ }
14
18
 
15
19
  export { ActiveDelegatorDetails };
@@ -0,0 +1,8 @@
1
+ var ActiveDelegatorDetails;
2
+ ((ActiveDelegatorDetails2) => {
3
+ ((delegationStatus2) => {
4
+ delegationStatus2["ACTIVE"] = "active";
5
+ })(ActiveDelegatorDetails2.delegationStatus || (ActiveDelegatorDetails2.delegationStatus = {}));
6
+ })(ActiveDelegatorDetails || (ActiveDelegatorDetails = {}));
7
+
8
+ export { ActiveDelegatorDetails };
@@ -1,20 +1,28 @@
1
1
  import { Rewards } from './Rewards.js';
2
- import { ValidationStatusType } from './ValidationStatusType.js';
2
+ import { ValidatorHealthDetails } from './ValidatorHealthDetails.js';
3
3
 
4
4
  type ActiveValidatorDetails = {
5
+ txHash: string;
5
6
  nodeId: string;
7
+ subnetId: string;
6
8
  amountStaked: string;
7
- delegationFee: string;
9
+ delegationFee?: string;
8
10
  startTimestamp: number;
9
11
  endTimestamp: number;
10
- validationStatus: ValidationStatusType;
11
12
  stakePercentage: number;
12
13
  delegatorCount: number;
13
- amountDelegated: string;
14
+ amountDelegated?: string;
14
15
  uptimePerformance: number;
15
- avalancheGoVersion: string;
16
- delegationCapacity: string;
16
+ avalancheGoVersion?: string;
17
+ delegationCapacity?: string;
17
18
  potentialRewards: Rewards;
19
+ validationStatus: ActiveValidatorDetails.validationStatus;
20
+ validatorHealth: ValidatorHealthDetails;
18
21
  };
22
+ declare namespace ActiveValidatorDetails {
23
+ enum validationStatus {
24
+ ACTIVE = "active"
25
+ }
26
+ }
19
27
 
20
28
  export { ActiveValidatorDetails };
@@ -0,0 +1,8 @@
1
+ var ActiveValidatorDetails;
2
+ ((ActiveValidatorDetails2) => {
3
+ ((validationStatus2) => {
4
+ validationStatus2["ACTIVE"] = "active";
5
+ })(ActiveValidatorDetails2.validationStatus || (ActiveValidatorDetails2.validationStatus = {}));
6
+ })(ActiveValidatorDetails || (ActiveValidatorDetails = {}));
7
+
8
+ export { ActiveValidatorDetails };
@@ -0,0 +1,20 @@
1
+ type AddressActivityMetadata = {
2
+ /**
3
+ * Ethereum address for the address_activity event type
4
+ */
5
+ address: string;
6
+ /**
7
+ * Array of hexadecimal strings of the event signatures.
8
+ */
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;
18
+ };
19
+
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;
@@ -22,6 +19,8 @@ type ChainInfo = {
22
19
  utilityAddresses?: UtilityAddresses;
23
20
  networkToken: NetworkToken;
24
21
  chainLogoUri?: string;
22
+ private?: boolean;
23
+ enabledFeatures?: Array<'nftIndexing'>;
25
24
  };
26
25
 
27
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,15 +1,19 @@
1
- import { DelegationStatusType } from './DelegationStatusType.js';
2
-
3
1
  type CompletedDelegatorDetails = {
4
2
  txHash: string;
3
+ nodeId: string;
5
4
  rewardAddresses: Array<string>;
6
5
  amountDelegated: string;
7
6
  delegationFee: string;
8
7
  startTimestamp: number;
9
8
  endTimestamp: number;
10
- delegationStatus: DelegationStatusType;
11
9
  grossReward: string;
12
10
  netReward: string;
11
+ delegationStatus: CompletedDelegatorDetails.delegationStatus;
13
12
  };
13
+ declare namespace CompletedDelegatorDetails {
14
+ enum delegationStatus {
15
+ COMPLETED = "completed"
16
+ }
17
+ }
14
18
 
15
19
  export { CompletedDelegatorDetails };
@@ -0,0 +1,8 @@
1
+ var CompletedDelegatorDetails;
2
+ ((CompletedDelegatorDetails2) => {
3
+ ((delegationStatus2) => {
4
+ delegationStatus2["COMPLETED"] = "completed";
5
+ })(CompletedDelegatorDetails2.delegationStatus || (CompletedDelegatorDetails2.delegationStatus = {}));
6
+ })(CompletedDelegatorDetails || (CompletedDelegatorDetails = {}));
7
+
8
+ export { CompletedDelegatorDetails };
@@ -1,15 +1,21 @@
1
1
  import { Rewards } from './Rewards.js';
2
- import { ValidationStatusType } from './ValidationStatusType.js';
3
2
 
4
3
  type CompletedValidatorDetails = {
4
+ txHash: string;
5
5
  nodeId: string;
6
+ subnetId: string;
6
7
  amountStaked: string;
7
- delegationFee: string;
8
+ delegationFee?: string;
8
9
  startTimestamp: number;
9
10
  endTimestamp: number;
10
- validationStatus: ValidationStatusType;
11
11
  delegatorCount: number;
12
12
  rewards: Rewards;
13
+ validationStatus: CompletedValidatorDetails.validationStatus;
13
14
  };
15
+ declare namespace CompletedValidatorDetails {
16
+ enum validationStatus {
17
+ COMPLETED = "completed"
18
+ }
19
+ }
14
20
 
15
21
  export { CompletedValidatorDetails };
@@ -0,0 +1,8 @@
1
+ var CompletedValidatorDetails;
2
+ ((CompletedValidatorDetails2) => {
3
+ ((validationStatus2) => {
4
+ validationStatus2["COMPLETED"] = "completed";
5
+ })(CompletedValidatorDetails2.validationStatus || (CompletedValidatorDetails2.validationStatus = {}));
6
+ })(CompletedValidatorDetails || (CompletedValidatorDetails = {}));
7
+
8
+ export { CompletedValidatorDetails };
@@ -0,0 +1,10 @@
1
+ import { ContractSubmissionErc1155 } from './ContractSubmissionErc1155.js';
2
+ import { ContractSubmissionErc20 } from './ContractSubmissionErc20.js';
3
+ import { ContractSubmissionErc721 } from './ContractSubmissionErc721.js';
4
+ import { ContractSubmissionUnknown } from './ContractSubmissionUnknown.js';
5
+
6
+ type ContractSubmissionBody = {
7
+ contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
8
+ };
9
+
10
+ export { ContractSubmissionBody };
@@ -0,0 +1,31 @@
1
+ import { ImageAsset } from './ImageAsset.js';
2
+ import { PricingProviders } from './PricingProviders.js';
3
+ import { ResourceLink } from './ResourceLink.js';
4
+
5
+ type ContractSubmissionErc1155 = {
6
+ description?: string;
7
+ officialSite?: string;
8
+ email?: string;
9
+ logoAsset?: ImageAsset;
10
+ bannerAsset?: ImageAsset;
11
+ color?: string;
12
+ resourceLinks?: Array<ResourceLink>;
13
+ tags?: Array<string>;
14
+ /**
15
+ * The contract name.
16
+ */
17
+ name: string;
18
+ ercType: ContractSubmissionErc1155.ercType;
19
+ /**
20
+ * The contract symbol.
21
+ */
22
+ symbol: string;
23
+ pricingProviders?: PricingProviders;
24
+ };
25
+ declare namespace ContractSubmissionErc1155 {
26
+ enum ercType {
27
+ ERC_1155 = "ERC-1155"
28
+ }
29
+ }
30
+
31
+ export { ContractSubmissionErc1155 };
@@ -0,0 +1,8 @@
1
+ var ContractSubmissionErc1155;
2
+ ((ContractSubmissionErc11552) => {
3
+ ((ercType2) => {
4
+ ercType2["ERC_1155"] = "ERC-1155";
5
+ })(ContractSubmissionErc11552.ercType || (ContractSubmissionErc11552.ercType = {}));
6
+ })(ContractSubmissionErc1155 || (ContractSubmissionErc1155 = {}));
7
+
8
+ export { ContractSubmissionErc1155 };
@@ -0,0 +1,31 @@
1
+ import { ImageAsset } from './ImageAsset.js';
2
+ import { PricingProviders } from './PricingProviders.js';
3
+ import { ResourceLink } from './ResourceLink.js';
4
+
5
+ type ContractSubmissionErc20 = {
6
+ description?: string;
7
+ officialSite?: string;
8
+ email?: string;
9
+ logoAsset?: ImageAsset;
10
+ bannerAsset?: ImageAsset;
11
+ color?: string;
12
+ resourceLinks?: Array<ResourceLink>;
13
+ tags?: Array<string>;
14
+ /**
15
+ * The contract name.
16
+ */
17
+ name: string;
18
+ ercType: ContractSubmissionErc20.ercType;
19
+ /**
20
+ * The contract symbol.
21
+ */
22
+ symbol: string;
23
+ pricingProviders?: PricingProviders;
24
+ };
25
+ declare namespace ContractSubmissionErc20 {
26
+ enum ercType {
27
+ ERC_20 = "ERC-20"
28
+ }
29
+ }
30
+
31
+ export { ContractSubmissionErc20 };
@@ -0,0 +1,8 @@
1
+ var ContractSubmissionErc20;
2
+ ((ContractSubmissionErc202) => {
3
+ ((ercType2) => {
4
+ ercType2["ERC_20"] = "ERC-20";
5
+ })(ContractSubmissionErc202.ercType || (ContractSubmissionErc202.ercType = {}));
6
+ })(ContractSubmissionErc20 || (ContractSubmissionErc20 = {}));
7
+
8
+ export { ContractSubmissionErc20 };
@@ -0,0 +1,29 @@
1
+ import { ImageAsset } from './ImageAsset.js';
2
+ import { ResourceLink } from './ResourceLink.js';
3
+
4
+ type ContractSubmissionErc721 = {
5
+ description?: string;
6
+ officialSite?: string;
7
+ email?: string;
8
+ logoAsset?: ImageAsset;
9
+ bannerAsset?: ImageAsset;
10
+ color?: string;
11
+ resourceLinks?: Array<ResourceLink>;
12
+ tags?: Array<string>;
13
+ /**
14
+ * The contract name.
15
+ */
16
+ name: string;
17
+ ercType: ContractSubmissionErc721.ercType;
18
+ /**
19
+ * The contract symbol.
20
+ */
21
+ symbol: string;
22
+ };
23
+ declare namespace ContractSubmissionErc721 {
24
+ enum ercType {
25
+ ERC_721 = "ERC-721"
26
+ }
27
+ }
28
+
29
+ export { ContractSubmissionErc721 };
@@ -0,0 +1,8 @@
1
+ var ContractSubmissionErc721;
2
+ ((ContractSubmissionErc7212) => {
3
+ ((ercType2) => {
4
+ ercType2["ERC_721"] = "ERC-721";
5
+ })(ContractSubmissionErc7212.ercType || (ContractSubmissionErc7212.ercType = {}));
6
+ })(ContractSubmissionErc721 || (ContractSubmissionErc721 = {}));
7
+
8
+ export { ContractSubmissionErc721 };
@@ -0,0 +1,25 @@
1
+ import { ImageAsset } from './ImageAsset.js';
2
+ import { ResourceLink } from './ResourceLink.js';
3
+
4
+ type ContractSubmissionUnknown = {
5
+ description?: string;
6
+ officialSite?: string;
7
+ email?: string;
8
+ logoAsset?: ImageAsset;
9
+ bannerAsset?: ImageAsset;
10
+ color?: string;
11
+ resourceLinks?: Array<ResourceLink>;
12
+ tags?: Array<string>;
13
+ /**
14
+ * The contract name.
15
+ */
16
+ name: string;
17
+ ercType: ContractSubmissionUnknown.ercType;
18
+ };
19
+ declare namespace ContractSubmissionUnknown {
20
+ enum ercType {
21
+ UNKNOWN = "UNKNOWN"
22
+ }
23
+ }
24
+
25
+ export { ContractSubmissionUnknown };
@@ -0,0 +1,8 @@
1
+ var ContractSubmissionUnknown;
2
+ ((ContractSubmissionUnknown2) => {
3
+ ((ercType2) => {
4
+ ercType2["UNKNOWN"] = "UNKNOWN";
5
+ })(ContractSubmissionUnknown2.ercType || (ContractSubmissionUnknown2.ercType = {}));
6
+ })(ContractSubmissionUnknown || (ContractSubmissionUnknown = {}));
7
+
8
+ export { ContractSubmissionUnknown };
@@ -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",