@avalabs/glacier-sdk 2.8.0-canary.f0b0684.0 → 2.8.0-canary.f195b3d.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 (114) hide show
  1. package/dist/index.d.ts +960 -310
  2. package/dist/index.js +376 -120
  3. package/esm/generated/Glacier.d.ts +4 -0
  4. package/esm/generated/Glacier.js +6 -0
  5. package/esm/generated/models/ActiveDelegatorDetails.d.ts +1 -0
  6. package/esm/generated/models/ActiveValidatorDetails.d.ts +8 -4
  7. package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
  8. package/esm/generated/models/Asset.d.ts +3 -1
  9. package/esm/generated/models/AssetWithPriceInfo.d.ts +35 -0
  10. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -1
  11. package/esm/generated/models/ChainInfo.d.ts +1 -0
  12. package/esm/generated/models/CompletedDelegatorDetails.d.ts +1 -0
  13. package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -1
  14. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  15. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  16. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  17. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  18. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  19. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  20. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  21. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  22. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  23. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +24 -0
  24. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  25. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +26 -0
  26. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  27. package/esm/generated/models/EventType.d.ts +5 -0
  28. package/esm/generated/models/EventType.js +6 -0
  29. package/esm/generated/models/GetChainResponse.d.ts +1 -0
  30. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  31. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  32. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  33. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
  34. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  35. package/esm/generated/models/NextPageToken.d.ts +8 -0
  36. package/esm/generated/models/PChainBalance.d.ts +7 -7
  37. package/esm/generated/models/PChainSharedAsset.d.ts +24 -0
  38. package/esm/generated/models/PChainTransaction.d.ts +5 -4
  39. package/esm/generated/models/PChainTransactionType.d.ts +6 -4
  40. package/esm/generated/models/PChainTransactionType.js +6 -4
  41. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  42. package/esm/generated/models/PendingDelegatorDetails.d.ts +1 -0
  43. package/esm/generated/models/PendingReward.d.ts +2 -2
  44. package/esm/generated/models/PendingTeleporterMessage.d.ts +24 -0
  45. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  46. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -1
  47. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +6 -0
  48. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  49. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +6 -0
  50. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  51. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  52. package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -4
  53. package/esm/generated/models/PrimaryNetworkTxType.js +6 -4
  54. package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
  55. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  56. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  57. package/esm/generated/models/RewardType.d.ts +2 -1
  58. package/esm/generated/models/RewardType.js +1 -0
  59. package/esm/generated/models/Rewards.d.ts +2 -0
  60. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  61. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  62. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  63. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  64. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  65. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  66. package/esm/generated/models/Utxo.d.ts +28 -28
  67. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  68. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  69. package/esm/generated/models/ValidationStatusType.js +1 -0
  70. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  71. package/esm/generated/models/WebhookResponse.d.ts +15 -0
  72. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  73. package/esm/generated/models/WebhookStatus.js +7 -0
  74. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  75. package/esm/generated/models/WebhookStatusType.js +7 -0
  76. package/esm/generated/models/XChainAssetBalance.d.ts +3 -1
  77. package/esm/generated/models/XChainAssetDetails.d.ts +6 -3
  78. package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
  79. package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
  80. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -1
  81. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  82. package/esm/generated/models/XChainTransactionType.js +11 -0
  83. package/esm/generated/services/DefaultService.d.ts +67 -0
  84. package/esm/generated/services/DefaultService.js +55 -0
  85. package/esm/generated/services/EvmBalancesService.d.ts +20 -20
  86. package/esm/generated/services/EvmBalancesService.js +8 -8
  87. package/esm/generated/services/EvmBlocksService.d.ts +5 -5
  88. package/esm/generated/services/EvmBlocksService.js +4 -4
  89. package/esm/generated/services/EvmContractsService.d.ts +19 -0
  90. package/esm/generated/services/EvmContractsService.js +16 -0
  91. package/esm/generated/services/EvmTransactionsService.d.ts +78 -56
  92. package/esm/generated/services/EvmTransactionsService.js +33 -46
  93. package/esm/generated/services/NfTsService.d.ts +25 -0
  94. package/esm/generated/services/NfTsService.js +19 -0
  95. package/esm/generated/services/OperationsService.d.ts +11 -11
  96. package/esm/generated/services/OperationsService.js +10 -10
  97. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  98. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  99. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +21 -8
  100. package/esm/generated/services/PrimaryNetworkRewardsService.js +12 -6
  101. package/esm/generated/services/PrimaryNetworkService.d.ts +53 -29
  102. package/esm/generated/services/PrimaryNetworkService.js +26 -14
  103. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  104. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  105. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  106. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  107. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  108. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  109. package/esm/generated/services/TeleporterService.d.ts +65 -0
  110. package/esm/generated/services/TeleporterService.js +43 -0
  111. package/esm/index.d.ts +30 -1
  112. package/esm/index.js +17 -0
  113. package/package.json +2 -2
  114. package/esm/generated/models/PChainAsset.d.ts +0 -6
@@ -1,5 +1,6 @@
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';
@@ -15,9 +16,11 @@ import { PrimaryNetworkRewardsService } from './services/PrimaryNetworkRewardsSe
15
16
  import { PrimaryNetworkTransactionsService } from './services/PrimaryNetworkTransactionsService.js';
16
17
  import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsService.js';
17
18
  import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
19
+ import { TeleporterService } from './services/TeleporterService.js';
18
20
 
19
21
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
20
22
  declare class Glacier {
23
+ readonly default: DefaultService;
21
24
  readonly evmBalances: EvmBalancesService;
22
25
  readonly evmBlocks: EvmBlocksService;
23
26
  readonly evmChains: EvmChainsService;
@@ -33,6 +36,7 @@ declare class Glacier {
33
36
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
34
37
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
35
38
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
39
+ readonly teleporter: TeleporterService;
36
40
  readonly request: BaseHttpRequest;
37
41
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
38
42
  }
@@ -1,4 +1,5 @@
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';
@@ -14,8 +15,10 @@ import { PrimaryNetworkRewardsService } from './services/PrimaryNetworkRewardsSe
14
15
  import { PrimaryNetworkTransactionsService } from './services/PrimaryNetworkTransactionsService.js';
15
16
  import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsService.js';
16
17
  import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
18
+ import { TeleporterService } from './services/TeleporterService.js';
17
19
 
18
20
  class Glacier {
21
+ default;
19
22
  evmBalances;
20
23
  evmBlocks;
21
24
  evmChains;
@@ -31,6 +34,7 @@ class Glacier {
31
34
  primaryNetworkTransactions;
32
35
  primaryNetworkUtxOs;
33
36
  primaryNetworkVertices;
37
+ teleporter;
34
38
  request;
35
39
  constructor(config, HttpRequest = FetchHttpRequest) {
36
40
  this.request = new HttpRequest({
@@ -44,6 +48,7 @@ class Glacier {
44
48
  HEADERS: config?.HEADERS,
45
49
  ENCODE_PATH: config?.ENCODE_PATH
46
50
  });
51
+ this.default = new DefaultService(this.request);
47
52
  this.evmBalances = new EvmBalancesService(this.request);
48
53
  this.evmBlocks = new EvmBlocksService(this.request);
49
54
  this.evmChains = new EvmChainsService(this.request);
@@ -59,6 +64,7 @@ class Glacier {
59
64
  this.primaryNetworkTransactions = new PrimaryNetworkTransactionsService(this.request);
60
65
  this.primaryNetworkUtxOs = new PrimaryNetworkUtxOsService(this.request);
61
66
  this.primaryNetworkVertices = new PrimaryNetworkVerticesService(this.request);
67
+ this.teleporter = new TeleporterService(this.request);
62
68
  }
63
69
  }
64
70
 
@@ -1,5 +1,6 @@
1
1
  type ActiveDelegatorDetails = {
2
2
  txHash: string;
3
+ nodeId: string;
3
4
  rewardAddresses: Array<string>;
4
5
  amountDelegated: string;
5
6
  delegationFee: string;
@@ -1,19 +1,23 @@
1
1
  import { Rewards } from './Rewards.js';
2
+ import { ValidatorHealthDetails } from './ValidatorHealthDetails.js';
2
3
 
3
4
  type ActiveValidatorDetails = {
5
+ txHash: string;
4
6
  nodeId: string;
7
+ subnetId: string;
5
8
  amountStaked: string;
6
- delegationFee: string;
9
+ delegationFee?: string;
7
10
  startTimestamp: number;
8
11
  endTimestamp: number;
9
12
  stakePercentage: number;
10
13
  delegatorCount: number;
11
- amountDelegated: string;
14
+ amountDelegated?: string;
12
15
  uptimePerformance: number;
13
- avalancheGoVersion: string;
14
- delegationCapacity: string;
16
+ avalancheGoVersion?: string;
17
+ delegationCapacity?: string;
15
18
  potentialRewards: Rewards;
16
19
  validationStatus: ActiveValidatorDetails.validationStatus;
20
+ validatorHealth: ValidatorHealthDetails;
17
21
  };
18
22
  declare namespace ActiveValidatorDetails {
19
23
  enum validationStatus {
@@ -0,0 +1,12 @@
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
+
12
+ export { AddressActivityMetadata };
@@ -1,3 +1,5 @@
1
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
2
+
1
3
  type Asset = {
2
4
  /**
3
5
  * Unique ID for an asset.
@@ -18,7 +20,7 @@ type Asset = {
18
20
  /**
19
21
  * Type of asset like SECP256K1 or NFT.
20
22
  */
21
- type: string;
23
+ type: PrimaryNetworkAssetType;
22
24
  /**
23
25
  * Amount of the asset.
24
26
  */
@@ -0,0 +1,35 @@
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
+ /**
22
+ * Type of asset like SECP256K1 or NFT.
23
+ */
24
+ type: PrimaryNetworkAssetType;
25
+ /**
26
+ * Amount of the asset.
27
+ */
28
+ amount: string;
29
+ /**
30
+ * 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.
31
+ */
32
+ historicalPrice?: Money;
33
+ };
34
+
35
+ export { AssetWithPriceInfo };
@@ -1,3 +1,5 @@
1
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
2
+
1
3
  type CChainSharedAssetBalance = {
2
4
  /**
3
5
  * Unique ID for an asset.
@@ -18,7 +20,7 @@ type CChainSharedAssetBalance = {
18
20
  /**
19
21
  * Type of asset like SECP256K1 or NFT.
20
22
  */
21
- type: string;
23
+ type: PrimaryNetworkAssetType;
22
24
  /**
23
25
  * Amount of the asset.
24
26
  */
@@ -22,6 +22,7 @@ type ChainInfo = {
22
22
  utilityAddresses?: UtilityAddresses;
23
23
  networkToken: NetworkToken;
24
24
  chainLogoUri?: string;
25
+ private?: boolean;
25
26
  };
26
27
 
27
28
  export { ChainInfo };
@@ -1,5 +1,6 @@
1
1
  type CompletedDelegatorDetails = {
2
2
  txHash: string;
3
+ nodeId: string;
3
4
  rewardAddresses: Array<string>;
4
5
  amountDelegated: string;
5
6
  delegationFee: string;
@@ -1,9 +1,11 @@
1
1
  import { Rewards } from './Rewards.js';
2
2
 
3
3
  type CompletedValidatorDetails = {
4
+ txHash: string;
4
5
  nodeId: string;
6
+ subnetId: string;
5
7
  amountStaked: string;
6
- delegationFee: string;
8
+ delegationFee?: string;
7
9
  startTimestamp: number;
8
10
  endTimestamp: number;
9
11
  delegatorCount: number;
@@ -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 };
@@ -0,0 +1,24 @@
1
+ import { TeleporterDestinationTransaction } from './TeleporterDestinationTransaction.js';
2
+ import { TeleporterRewardDetails } from './TeleporterRewardDetails.js';
3
+
4
+ type DeliveredSourceNotIndexedTeleporterMessage = {
5
+ sourceBlockchainId: string;
6
+ destinationBlockchainId: string;
7
+ messageId: string;
8
+ from: string;
9
+ to: string;
10
+ data?: string;
11
+ messageExecuted: boolean;
12
+ receipts: Array<string>;
13
+ receiptDelivered: boolean;
14
+ rewardDetails: TeleporterRewardDetails;
15
+ destinationTransaction: TeleporterDestinationTransaction;
16
+ status: DeliveredSourceNotIndexedTeleporterMessage.status;
17
+ };
18
+ declare namespace DeliveredSourceNotIndexedTeleporterMessage {
19
+ enum status {
20
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
21
+ }
22
+ }
23
+
24
+ export { DeliveredSourceNotIndexedTeleporterMessage };
@@ -0,0 +1,8 @@
1
+ var DeliveredSourceNotIndexedTeleporterMessage;
2
+ ((DeliveredSourceNotIndexedTeleporterMessage2) => {
3
+ ((status2) => {
4
+ status2["DELIVERED_SOURCE_NOT_INDEXED"] = "delivered_source_not_indexed";
5
+ })(DeliveredSourceNotIndexedTeleporterMessage2.status || (DeliveredSourceNotIndexedTeleporterMessage2.status = {}));
6
+ })(DeliveredSourceNotIndexedTeleporterMessage || (DeliveredSourceNotIndexedTeleporterMessage = {}));
7
+
8
+ export { DeliveredSourceNotIndexedTeleporterMessage };
@@ -0,0 +1,26 @@
1
+ import { TeleporterDestinationTransaction } from './TeleporterDestinationTransaction.js';
2
+ import { TeleporterRewardDetails } from './TeleporterRewardDetails.js';
3
+ import { TeleporterSourceTransaction } from './TeleporterSourceTransaction.js';
4
+
5
+ type DeliveredTeleporterMessage = {
6
+ sourceBlockchainId: string;
7
+ destinationBlockchainId: string;
8
+ messageId: string;
9
+ from: string;
10
+ to: string;
11
+ data?: string;
12
+ messageExecuted: boolean;
13
+ receipts: Array<string>;
14
+ receiptDelivered: boolean;
15
+ rewardDetails: TeleporterRewardDetails;
16
+ sourceTransaction: TeleporterSourceTransaction;
17
+ destinationTransaction: TeleporterDestinationTransaction;
18
+ status: DeliveredTeleporterMessage.status;
19
+ };
20
+ declare namespace DeliveredTeleporterMessage {
21
+ enum status {
22
+ DELIVERED = "delivered"
23
+ }
24
+ }
25
+
26
+ export { DeliveredTeleporterMessage };
@@ -0,0 +1,8 @@
1
+ var DeliveredTeleporterMessage;
2
+ ((DeliveredTeleporterMessage2) => {
3
+ ((status2) => {
4
+ status2["DELIVERED"] = "delivered";
5
+ })(DeliveredTeleporterMessage2.status || (DeliveredTeleporterMessage2.status = {}));
6
+ })(DeliveredTeleporterMessage || (DeliveredTeleporterMessage = {}));
7
+
8
+ export { DeliveredTeleporterMessage };
@@ -0,0 +1,5 @@
1
+ declare enum EventType {
2
+ ADDRESS_ACTIVITY = "address_activity"
3
+ }
4
+
5
+ export { EventType };
@@ -0,0 +1,6 @@
1
+ var EventType = /* @__PURE__ */ ((EventType2) => {
2
+ EventType2["ADDRESS_ACTIVITY"] = "address_activity";
3
+ return EventType2;
4
+ })(EventType || {});
5
+
6
+ export { EventType };
@@ -22,6 +22,7 @@ type GetChainResponse = {
22
22
  utilityAddresses?: UtilityAddresses;
23
23
  networkToken: NetworkToken;
24
24
  chainLogoUri?: string;
25
+ private?: boolean;
25
26
  };
26
27
 
27
28
  export { GetChainResponse };
@@ -9,6 +9,7 @@ type GetPrimaryNetworkBlockResponse = {
9
9
  txCount: number;
10
10
  transactions: Array<string>;
11
11
  blockSizeBytes: number;
12
+ currentSupply?: string;
12
13
  proposerDetails?: ProposerDetails;
13
14
  };
14
15
 
@@ -1,4 +1,4 @@
1
- import { PChainAsset } from './PChainAsset.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: PChainAsset;
17
+ reward: AssetWithPriceInfo;
21
18
  rewardTxHash: string;
22
19
  };
23
20
 
@@ -0,0 +1,12 @@
1
+ import { Erc1155Token } from './Erc1155Token.js';
2
+ import { Erc721Token } from './Erc721Token.js';
3
+
4
+ type ListNftTokens = {
5
+ /**
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
+ */
8
+ nextPageToken?: string;
9
+ tokens: (Array<Erc721Token> | Array<Erc1155Token>);
10
+ };
11
+
12
+ export { ListNftTokens };
@@ -1,6 +1,7 @@
1
1
  import { ActiveValidatorDetails } from './ActiveValidatorDetails.js';
2
2
  import { CompletedValidatorDetails } from './CompletedValidatorDetails.js';
3
3
  import { PendingValidatorDetails } from './PendingValidatorDetails.js';
4
+ import { RemovedValidatorDetails } from './RemovedValidatorDetails.js';
4
5
 
5
6
  type ListValidatorDetailsResponse = {
6
7
  /**
@@ -8,9 +9,9 @@ type ListValidatorDetailsResponse = {
8
9
  */
9
10
  nextPageToken?: string;
10
11
  /**
11
- * The list of Validator Details.
12
+ * The list of validator Details.
12
13
  */
13
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
14
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
14
15
  };
15
16
 
16
17
  export { ListValidatorDetailsResponse };
@@ -0,0 +1,11 @@
1
+ import { WebhookResponse } from './WebhookResponse.js';
2
+
3
+ type ListWebhooksResponse = {
4
+ /**
5
+ * 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.
6
+ */
7
+ nextPageToken?: string;
8
+ webhooks: Array<WebhookResponse>;
9
+ };
10
+
11
+ export { ListWebhooksResponse };
@@ -0,0 +1,8 @@
1
+ type NextPageToken = {
2
+ /**
3
+ * 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.
4
+ */
5
+ nextPageToken?: string;
6
+ };
7
+
8
+ export { NextPageToken };
@@ -1,31 +1,31 @@
1
- import { PChainAsset } from './PChainAsset.js';
1
+ import { Asset } from './Asset.js';
2
2
  import { PChainSharedAsset } from './PChainSharedAsset.js';
3
3
 
4
4
  type PChainBalance = {
5
5
  /**
6
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.
7
7
  */
8
- unlockedUnstaked: Array<PChainAsset>;
8
+ unlockedUnstaked: Array<Asset>;
9
9
  /**
10
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.
11
11
  */
12
- unlockedStaked: Array<PChainAsset>;
12
+ unlockedStaked: Array<Asset>;
13
13
  /**
14
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.
15
15
  */
16
- lockedPlatform: Array<PChainAsset>;
16
+ lockedPlatform: Array<Asset>;
17
17
  /**
18
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.
19
19
  */
20
- lockedStakeable: Array<PChainAsset>;
20
+ lockedStakeable: Array<Asset>;
21
21
  /**
22
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.
23
23
  */
24
- lockedStaked: Array<PChainAsset>;
24
+ lockedStaked: Array<Asset>;
25
25
  /**
26
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
27
  */
28
- pendingStaked: Array<PChainAsset>;
28
+ pendingStaked: Array<Asset>;
29
29
  /**
30
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
31
  */
@@ -1,5 +1,29 @@
1
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
2
+
1
3
  type PChainSharedAsset = {
4
+ /**
5
+ * Unique ID for an asset.
6
+ */
2
7
  assetId: string;
8
+ /**
9
+ * Name of this asset.
10
+ */
11
+ name: string;
12
+ /**
13
+ * Symbol for this asset (max 4 characters).
14
+ */
15
+ symbol: string;
16
+ /**
17
+ * Denomination of this asset to represent fungibility.
18
+ */
19
+ denomination: number;
20
+ /**
21
+ * Type of asset like SECP256K1 or NFT.
22
+ */
23
+ type: PrimaryNetworkAssetType;
24
+ /**
25
+ * Amount of the asset.
26
+ */
3
27
  amount: string;
4
28
  sharedWithChainId: string;
5
29
  status: string;