@avalabs/glacier-sdk 2.8.0-canary.c69ce41.0 → 2.8.0-canary.c7cfc1b.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 (49) hide show
  1. package/dist/index.d.ts +359 -31
  2. package/dist/index.js +165 -12
  3. package/esm/generated/Glacier.d.ts +2 -0
  4. package/esm/generated/Glacier.js +3 -0
  5. package/esm/generated/models/ActiveValidatorDetails.d.ts +1 -0
  6. package/esm/generated/models/AddressActivityMetadata.d.ts +9 -0
  7. package/esm/generated/models/CompletedValidatorDetails.d.ts +1 -0
  8. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  9. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  10. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  11. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  12. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  13. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  14. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  15. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  16. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  17. package/esm/generated/models/EventType.d.ts +5 -0
  18. package/esm/generated/models/EventType.js +6 -0
  19. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  20. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  21. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  22. package/esm/generated/models/PendingValidatorDetails.d.ts +1 -0
  23. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  24. package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
  25. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  26. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  27. package/esm/generated/models/WebhookResponse.d.ts +15 -0
  28. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  29. package/esm/generated/models/WebhookStatus.js +7 -0
  30. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  31. package/esm/generated/models/WebhookStatusType.js +7 -0
  32. package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
  33. package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
  34. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  35. package/esm/generated/models/XChainTransactionType.js +11 -0
  36. package/esm/generated/services/DefaultService.d.ts +67 -0
  37. package/esm/generated/services/DefaultService.js +55 -0
  38. package/esm/generated/services/EvmContractsService.d.ts +19 -0
  39. package/esm/generated/services/EvmContractsService.js +16 -0
  40. package/esm/generated/services/EvmTransactionsService.d.ts +42 -0
  41. package/esm/generated/services/NfTsService.d.ts +25 -0
  42. package/esm/generated/services/NfTsService.js +19 -0
  43. package/esm/generated/services/OperationsService.d.ts +11 -11
  44. package/esm/generated/services/OperationsService.js +10 -10
  45. package/esm/generated/services/PrimaryNetworkService.d.ts +9 -5
  46. package/esm/generated/services/PrimaryNetworkService.js +4 -2
  47. package/esm/index.d.ts +17 -0
  48. package/esm/index.js +9 -0
  49. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -60,6 +60,118 @@ declare abstract class BaseHttpRequest {
60
60
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
61
61
  }
62
62
 
63
+ type AddressActivityMetadata = {
64
+ /**
65
+ * Ethereum address for the address_activity event type
66
+ */
67
+ address: string;
68
+ topic0?: string;
69
+ };
70
+
71
+ declare enum EventType {
72
+ ADDRESS_ACTIVITY = "address_activity"
73
+ }
74
+
75
+ declare enum WebhookStatusType {
76
+ ACTIVE = "active",
77
+ INACTIVE = "inactive"
78
+ }
79
+
80
+ type WebhookResponse = {
81
+ id: string;
82
+ eventType: EventType;
83
+ metadata: AddressActivityMetadata;
84
+ url: string;
85
+ chainId: string;
86
+ status: WebhookStatusType;
87
+ createdAt: number;
88
+ };
89
+
90
+ type ListWebhooksResponse = {
91
+ /**
92
+ * 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.
93
+ */
94
+ nextPageToken?: string;
95
+ webhooks: Array<WebhookResponse>;
96
+ };
97
+
98
+ type RegisterWebhookRequest = {
99
+ url: string;
100
+ chainId: string;
101
+ /**
102
+ * The type of event for the webhook
103
+ */
104
+ eventType: EventType;
105
+ metadata: AddressActivityMetadata;
106
+ };
107
+
108
+ type SharedSecretsResponse = {
109
+ secret: string;
110
+ };
111
+
112
+ declare enum WebhookStatus {
113
+ ACTIVE = "active",
114
+ INACTIVE = "inactive"
115
+ }
116
+
117
+ declare class DefaultService {
118
+ readonly httpRequest: BaseHttpRequest;
119
+ constructor(httpRequest: BaseHttpRequest);
120
+ /**
121
+ * @returns any
122
+ * @throws ApiError
123
+ */
124
+ mediaControllerUploadImage(): CancelablePromise<any>;
125
+ /**
126
+ * Register a webhook
127
+ * Registers a new webhook.
128
+ * @returns WebhookResponse
129
+ * @throws ApiError
130
+ */
131
+ registerWebhook({ requestBody, }: {
132
+ requestBody: RegisterWebhookRequest;
133
+ }): CancelablePromise<WebhookResponse>;
134
+ /**
135
+ * List webhooks
136
+ * Lists webhooks for the user.
137
+ * @returns ListWebhooksResponse
138
+ * @throws ApiError
139
+ */
140
+ listWebhooks({ pageSize, pageToken, status, }: {
141
+ /**
142
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
143
+ */
144
+ pageSize?: number;
145
+ /**
146
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
147
+ */
148
+ pageToken?: string;
149
+ /**
150
+ * Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
151
+ */
152
+ status?: WebhookStatus;
153
+ }): CancelablePromise<ListWebhooksResponse>;
154
+ /**
155
+ * Deactivate a webhook
156
+ * Deactivates a webhook by ID.
157
+ * @returns WebhookResponse
158
+ * @throws ApiError
159
+ */
160
+ deactivateWebhook({ id, }: {
161
+ /**
162
+ * The webhook identifier.
163
+ */
164
+ id: string;
165
+ }): CancelablePromise<WebhookResponse>;
166
+ /**
167
+ * Generate a shared secret
168
+ * Generates a new shared secret.
169
+ * @returns SharedSecretsResponse
170
+ * @throws ApiError
171
+ */
172
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
173
+ }
174
+
63
175
  declare enum CurrencyCode {
64
176
  USD = "usd",
65
177
  EUR = "eur",
@@ -743,18 +855,6 @@ declare class EvmChainsService {
743
855
  }): CancelablePromise<GetChainResponse>;
744
856
  }
745
857
 
746
- type ContractDeploymentDetails = {
747
- txHash: string;
748
- /**
749
- * The address that initiated the transaction which deployed this contract.
750
- */
751
- deployerAddress: string;
752
- /**
753
- * 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.
754
- */
755
- deployerContractAddress?: string;
756
- };
757
-
758
858
  type ImageAsset = {
759
859
  assetId?: string;
760
860
  /**
@@ -793,6 +893,120 @@ type ResourceLink = {
793
893
  url: string;
794
894
  };
795
895
 
896
+ type ContractSubmissionErc1155 = {
897
+ description?: string;
898
+ officialSite?: string;
899
+ email?: string;
900
+ logoAsset?: ImageAsset;
901
+ bannerAsset?: ImageAsset;
902
+ color?: string;
903
+ resourceLinks?: Array<ResourceLink>;
904
+ tags?: Array<string>;
905
+ /**
906
+ * The contract name.
907
+ */
908
+ name: string;
909
+ ercType: ContractSubmissionErc1155.ercType;
910
+ /**
911
+ * The contract symbol.
912
+ */
913
+ symbol: string;
914
+ pricingProviders?: PricingProviders;
915
+ };
916
+ declare namespace ContractSubmissionErc1155 {
917
+ enum ercType {
918
+ ERC_1155 = "ERC-1155"
919
+ }
920
+ }
921
+
922
+ type ContractSubmissionErc20 = {
923
+ description?: string;
924
+ officialSite?: string;
925
+ email?: string;
926
+ logoAsset?: ImageAsset;
927
+ bannerAsset?: ImageAsset;
928
+ color?: string;
929
+ resourceLinks?: Array<ResourceLink>;
930
+ tags?: Array<string>;
931
+ /**
932
+ * The contract name.
933
+ */
934
+ name: string;
935
+ ercType: ContractSubmissionErc20.ercType;
936
+ /**
937
+ * The contract symbol.
938
+ */
939
+ symbol: string;
940
+ pricingProviders?: PricingProviders;
941
+ };
942
+ declare namespace ContractSubmissionErc20 {
943
+ enum ercType {
944
+ ERC_20 = "ERC-20"
945
+ }
946
+ }
947
+
948
+ type ContractSubmissionErc721 = {
949
+ description?: string;
950
+ officialSite?: string;
951
+ email?: string;
952
+ logoAsset?: ImageAsset;
953
+ bannerAsset?: ImageAsset;
954
+ color?: string;
955
+ resourceLinks?: Array<ResourceLink>;
956
+ tags?: Array<string>;
957
+ /**
958
+ * The contract name.
959
+ */
960
+ name: string;
961
+ ercType: ContractSubmissionErc721.ercType;
962
+ /**
963
+ * The contract symbol.
964
+ */
965
+ symbol: string;
966
+ };
967
+ declare namespace ContractSubmissionErc721 {
968
+ enum ercType {
969
+ ERC_721 = "ERC-721"
970
+ }
971
+ }
972
+
973
+ type ContractSubmissionUnknown = {
974
+ description?: string;
975
+ officialSite?: string;
976
+ email?: string;
977
+ logoAsset?: ImageAsset;
978
+ bannerAsset?: ImageAsset;
979
+ color?: string;
980
+ resourceLinks?: Array<ResourceLink>;
981
+ tags?: Array<string>;
982
+ /**
983
+ * The contract name.
984
+ */
985
+ name: string;
986
+ ercType: ContractSubmissionUnknown.ercType;
987
+ };
988
+ declare namespace ContractSubmissionUnknown {
989
+ enum ercType {
990
+ UNKNOWN = "UNKNOWN"
991
+ }
992
+ }
993
+
994
+ type ContractSubmissionBody = {
995
+ contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
996
+ };
997
+
998
+ type ContractDeploymentDetails = {
999
+ txHash: string;
1000
+ /**
1001
+ * The address that initiated the transaction which deployed this contract.
1002
+ */
1003
+ deployerAddress: string;
1004
+ /**
1005
+ * 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.
1006
+ */
1007
+ deployerContractAddress?: string;
1008
+ };
1009
+
796
1010
  type Erc1155Contract = {
797
1011
  /**
798
1012
  * The contract name.
@@ -915,6 +1129,10 @@ declare namespace UnknownContract {
915
1129
  }
916
1130
  }
917
1131
 
1132
+ type UpdateContractResponse = {
1133
+ contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
1134
+ };
1135
+
918
1136
  declare class EvmContractsService {
919
1137
  readonly httpRequest: BaseHttpRequest;
920
1138
  constructor(httpRequest: BaseHttpRequest);
@@ -934,6 +1152,23 @@ declare class EvmContractsService {
934
1152
  */
935
1153
  address: string;
936
1154
  }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1155
+ /**
1156
+ * Update contract information
1157
+ * Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
1158
+ * @returns UpdateContractResponse
1159
+ * @throws ApiError
1160
+ */
1161
+ updateContractInfo({ chainId, address, requestBody, }: {
1162
+ /**
1163
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1164
+ */
1165
+ chainId: string;
1166
+ /**
1167
+ * Contract address on the relevant chain.
1168
+ */
1169
+ address: string;
1170
+ requestBody: ContractSubmissionBody;
1171
+ }): CancelablePromise<UpdateContractResponse>;
937
1172
  }
938
1173
 
939
1174
  type Erc1155Token = {
@@ -1504,7 +1739,13 @@ declare class EvmTransactionsService {
1504
1739
  * A wallet address.
1505
1740
  */
1506
1741
  address: string;
1742
+ /**
1743
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1744
+ */
1507
1745
  startBlock?: number;
1746
+ /**
1747
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1748
+ */
1508
1749
  endBlock?: number;
1509
1750
  /**
1510
1751
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1540,7 +1781,13 @@ declare class EvmTransactionsService {
1540
1781
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1541
1782
  */
1542
1783
  pageToken?: string;
1784
+ /**
1785
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1786
+ */
1543
1787
  startBlock?: number;
1788
+ /**
1789
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1790
+ */
1544
1791
  endBlock?: number;
1545
1792
  /**
1546
1793
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
@@ -1562,7 +1809,13 @@ declare class EvmTransactionsService {
1562
1809
  * A wallet address.
1563
1810
  */
1564
1811
  address: string;
1812
+ /**
1813
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1814
+ */
1565
1815
  startBlock?: number;
1816
+ /**
1817
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1818
+ */
1566
1819
  endBlock?: number;
1567
1820
  /**
1568
1821
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1588,7 +1841,13 @@ declare class EvmTransactionsService {
1588
1841
  * A wallet address.
1589
1842
  */
1590
1843
  address: string;
1844
+ /**
1845
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1846
+ */
1591
1847
  startBlock?: number;
1848
+ /**
1849
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1850
+ */
1592
1851
  endBlock?: number;
1593
1852
  /**
1594
1853
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1614,7 +1873,13 @@ declare class EvmTransactionsService {
1614
1873
  * A wallet address.
1615
1874
  */
1616
1875
  address: string;
1876
+ /**
1877
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1878
+ */
1617
1879
  startBlock?: number;
1880
+ /**
1881
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1882
+ */
1618
1883
  endBlock?: number;
1619
1884
  /**
1620
1885
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1640,7 +1905,13 @@ declare class EvmTransactionsService {
1640
1905
  * A wallet address.
1641
1906
  */
1642
1907
  address: string;
1908
+ /**
1909
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1910
+ */
1643
1911
  startBlock?: number;
1912
+ /**
1913
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1914
+ */
1644
1915
  endBlock?: number;
1645
1916
  /**
1646
1917
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1668,7 +1939,13 @@ declare class EvmTransactionsService {
1668
1939
  * A wallet address.
1669
1940
  */
1670
1941
  address: string;
1942
+ /**
1943
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1944
+ */
1671
1945
  startBlock?: number;
1946
+ /**
1947
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1948
+ */
1672
1949
  endBlock?: number;
1673
1950
  /**
1674
1951
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1753,6 +2030,14 @@ declare class HealthCheckService {
1753
2030
  }>;
1754
2031
  }
1755
2032
 
2033
+ type ListNftTokens = {
2034
+ /**
2035
+ * 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.
2036
+ */
2037
+ nextPageToken?: string;
2038
+ tokens: (Array<Erc721Token> | Array<Erc1155Token>);
2039
+ };
2040
+
1756
2041
  declare class NfTsService {
1757
2042
  readonly httpRequest: BaseHttpRequest;
1758
2043
  constructor(httpRequest: BaseHttpRequest);
@@ -1776,6 +2061,30 @@ declare class NfTsService {
1776
2061
  */
1777
2062
  tokenId: string;
1778
2063
  }): CancelablePromise<any>;
2064
+ /**
2065
+ * List tokens
2066
+ * Lists tokens for an NFT contract.
2067
+ * @returns ListNftTokens
2068
+ * @throws ApiError
2069
+ */
2070
+ listTokens({ chainId, address, pageSize, pageToken, }: {
2071
+ /**
2072
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2073
+ */
2074
+ chainId: string;
2075
+ /**
2076
+ * Contract address on the relevant chain.
2077
+ */
2078
+ address: string;
2079
+ /**
2080
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2081
+ */
2082
+ pageSize?: number;
2083
+ /**
2084
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2085
+ */
2086
+ pageToken?: string;
2087
+ }): CancelablePromise<ListNftTokens>;
1779
2088
  /**
1780
2089
  * Get token details
1781
2090
  * Gets token details for a specific token of an NFT contract.
@@ -1892,17 +2201,6 @@ type OperationStatusResponse = {
1892
2201
  declare class OperationsService {
1893
2202
  readonly httpRequest: BaseHttpRequest;
1894
2203
  constructor(httpRequest: BaseHttpRequest);
1895
- /**
1896
- * Create transaction export operation
1897
- * Trigger a transaction export operation with given parameters.
1898
- *
1899
- * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
1900
- * @returns OperationStatusResponse
1901
- * @throws ApiError
1902
- */
1903
- postTransactionExportJob({ requestBody, }: {
1904
- requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
1905
- }): CancelablePromise<OperationStatusResponse>;
1906
2204
  /**
1907
2205
  * Get operation
1908
2206
  * Gets operation details for the given operation id.
@@ -1915,6 +2213,17 @@ declare class OperationsService {
1915
2213
  */
1916
2214
  operationId: string;
1917
2215
  }): CancelablePromise<OperationStatusResponse>;
2216
+ /**
2217
+ * Create transaction export operation
2218
+ * Trigger a transaction export operation with given parameters.
2219
+ *
2220
+ * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
2221
+ * @returns OperationStatusResponse
2222
+ * @throws ApiError
2223
+ */
2224
+ postTransactionExportJob({ requestBody, }: {
2225
+ requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
2226
+ }): CancelablePromise<OperationStatusResponse>;
1918
2227
  }
1919
2228
 
1920
2229
  declare enum BlockchainIds {
@@ -2095,6 +2404,7 @@ type ValidatorHealthDetails = {
2095
2404
  };
2096
2405
 
2097
2406
  type ActiveValidatorDetails = {
2407
+ txHash: string;
2098
2408
  nodeId: string;
2099
2409
  subnetId: string;
2100
2410
  amountStaked: string;
@@ -2118,6 +2428,7 @@ declare namespace ActiveValidatorDetails {
2118
2428
  }
2119
2429
 
2120
2430
  type CompletedValidatorDetails = {
2431
+ txHash: string;
2121
2432
  nodeId: string;
2122
2433
  subnetId: string;
2123
2434
  amountStaked: string;
@@ -2135,6 +2446,7 @@ declare namespace CompletedValidatorDetails {
2135
2446
  }
2136
2447
 
2137
2448
  type PendingValidatorDetails = {
2449
+ txHash: string;
2138
2450
  nodeId: string;
2139
2451
  subnetId: string;
2140
2452
  amountStaked: string;
@@ -2313,7 +2625,7 @@ declare class PrimaryNetworkService {
2313
2625
  * @returns ListValidatorDetailsResponse
2314
2626
  * @throws ApiError
2315
2627
  */
2316
- listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, }: {
2628
+ listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
2317
2629
  /**
2318
2630
  * Either mainnet or a testnet.
2319
2631
  */
@@ -2327,11 +2639,11 @@ declare class PrimaryNetworkService {
2327
2639
  */
2328
2640
  pageToken?: string;
2329
2641
  /**
2330
- * The minimum delegation time remaining, in seconds, used to filter the set of nodes being returned.
2642
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2331
2643
  */
2332
2644
  minTimeRemaining?: any;
2333
2645
  /**
2334
- * The maximum delegation time remaining, in seconds, used to filter the set of nodes being returned.
2646
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2335
2647
  */
2336
2648
  maxTimeRemaining?: any;
2337
2649
  /**
@@ -2343,11 +2655,11 @@ declare class PrimaryNetworkService {
2343
2655
  */
2344
2656
  maxDelegationCapacity?: number;
2345
2657
  /**
2346
- * The minimum fee percentage, used to filter the set of nodes being returned. Default is 2, as per the Avalanche spec.
2658
+ * The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
2347
2659
  */
2348
2660
  minFeePercentage?: any;
2349
2661
  /**
2350
- * The maximum fee percentage, used to filter the set of nodes being returned. Default is 100.
2662
+ * The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
2351
2663
  */
2352
2664
  maxFeePercentage?: any;
2353
2665
  /**
@@ -2362,6 +2674,10 @@ declare class PrimaryNetworkService {
2362
2674
  * Validation status of the node.
2363
2675
  */
2364
2676
  validationStatus?: ValidationStatusType;
2677
+ /**
2678
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
2679
+ */
2680
+ subnetId?: string;
2365
2681
  }): CancelablePromise<ListValidatorDetailsResponse>;
2366
2682
  /**
2367
2683
  * Get single validator details
@@ -2674,6 +2990,7 @@ type GetPrimaryNetworkBlockResponse = {
2674
2990
  txCount: number;
2675
2991
  transactions: Array<string>;
2676
2992
  blockSizeBytes: number;
2993
+ currentSupply?: string;
2677
2994
  proposerDetails?: ProposerDetails;
2678
2995
  };
2679
2996
 
@@ -2686,6 +3003,7 @@ type PrimaryNetworkBlock = {
2686
3003
  txCount: number;
2687
3004
  transactions: Array<string>;
2688
3005
  blockSizeBytes: number;
3006
+ currentSupply?: string;
2689
3007
  proposerDetails?: ProposerDetails;
2690
3008
  };
2691
3009
 
@@ -3271,6 +3589,15 @@ type ListPChainTransactionsResponse = {
3271
3589
  chainInfo: PrimaryNetworkChainInfo;
3272
3590
  };
3273
3591
 
3592
+ declare enum XChainTransactionType {
3593
+ BASE_TX = "BaseTx",
3594
+ CREATE_ASSET_TX = "CreateAssetTx",
3595
+ OPERATION_TX = "OperationTx",
3596
+ IMPORT_TX = "ImportTx",
3597
+ EXPORT_TX = "ExportTx",
3598
+ UNKNOWN = "UNKNOWN"
3599
+ }
3600
+
3274
3601
  type XChainLinearTransaction = {
3275
3602
  /**
3276
3603
  * Unique ID for this transaction.
@@ -3287,7 +3614,7 @@ type XChainLinearTransaction = {
3287
3614
  /**
3288
3615
  * Type of transaction.
3289
3616
  */
3290
- txType: string;
3617
+ txType: XChainTransactionType;
3291
3618
  /**
3292
3619
  * Hex encoded memo bytes for this transaction.
3293
3620
  */
@@ -3364,7 +3691,7 @@ type XChainNonLinearTransaction = {
3364
3691
  /**
3365
3692
  * Type of transaction.
3366
3693
  */
3367
- txType: string;
3694
+ txType: XChainTransactionType;
3368
3695
  /**
3369
3696
  * Hex encoded memo bytes for this transaction.
3370
3697
  */
@@ -3762,6 +4089,7 @@ declare class PrimaryNetworkVerticesService {
3762
4089
 
3763
4090
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
3764
4091
  declare class Glacier {
4092
+ readonly default: DefaultService;
3765
4093
  readonly evmBalances: EvmBalancesService;
3766
4094
  readonly evmBlocks: EvmBlocksService;
3767
4095
  readonly evmChains: EvmChainsService;
@@ -3798,4 +4126,4 @@ declare class ApiError extends Error {
3798
4126
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3799
4127
  }
3800
4128
 
3801
- export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };
4129
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };