@avalabs/glacier-sdk 2.8.0-alpha.123 → 2.8.0-alpha.125

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 (45) hide show
  1. package/dist/index.d.ts +254 -311
  2. package/dist/index.js +67 -148
  3. package/esm/generated/Glacier.d.ts +0 -4
  4. package/esm/generated/Glacier.js +1 -5
  5. package/esm/generated/core/OpenAPI.js +1 -1
  6. package/esm/generated/models/ActiveDelegatorDetails.d.ts +15 -0
  7. package/esm/generated/models/ActiveValidatorDetails.d.ts +20 -0
  8. package/esm/generated/models/DelegationStatusType.d.ts +3 -1
  9. package/esm/generated/models/DelegationStatusType.js +2 -0
  10. package/esm/generated/models/Erc1155Contract.d.ts +36 -0
  11. package/esm/generated/models/Erc1155Contract.js +8 -0
  12. package/esm/generated/models/{Contract.d.ts → Erc20Contract.d.ts} +24 -21
  13. package/esm/generated/models/Erc20Contract.js +8 -0
  14. package/esm/generated/models/Erc721Contract.d.ts +36 -0
  15. package/esm/generated/models/Erc721Contract.js +8 -0
  16. package/esm/generated/models/ImageAsset.d.ts +12 -0
  17. package/esm/generated/models/ListContractsResponse.d.ts +5 -2
  18. package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +6 -1
  19. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +6 -1
  20. package/esm/generated/models/PendingDelegatorDetails.d.ts +15 -0
  21. package/esm/generated/models/PendingValidatorDetails.d.ts +12 -0
  22. package/esm/generated/models/UnknownContract.d.ts +32 -0
  23. package/esm/generated/models/UnknownContract.js +8 -0
  24. package/esm/generated/models/ValidationStatusType.d.ts +3 -1
  25. package/esm/generated/models/ValidationStatusType.js +2 -0
  26. package/esm/generated/services/PrimaryNetworkService.d.ts +51 -8
  27. package/esm/generated/services/PrimaryNetworkService.js +34 -7
  28. package/esm/index.d.ts +9 -11
  29. package/esm/index.js +4 -5
  30. package/package.json +2 -2
  31. package/esm/generated/models/CollectionMetrics.d.ts +0 -41
  32. package/esm/generated/models/CollectionSortByOption.d.ts +0 -9
  33. package/esm/generated/models/CollectionSortByOption.js +0 -10
  34. package/esm/generated/models/ErcType.d.ts +0 -8
  35. package/esm/generated/models/ErcType.js +0 -9
  36. package/esm/generated/models/FloorPrice.d.ts +0 -8
  37. package/esm/generated/models/ListNftCollectionWithMetricsResponse.d.ts +0 -11
  38. package/esm/generated/models/NftCollection.d.ts +0 -24
  39. package/esm/generated/models/NftCollectionWithMetrics.d.ts +0 -26
  40. package/esm/generated/models/TrendingTimeframe.d.ts +0 -7
  41. package/esm/generated/models/TrendingTimeframe.js +0 -8
  42. package/esm/generated/services/DefaultService.d.ts +0 -52
  43. package/esm/generated/services/DefaultService.js +0 -34
  44. package/esm/generated/services/NfTsService.d.ts +0 -108
  45. package/esm/generated/services/NfTsService.js +0 -77
package/dist/index.d.ts CHANGED
@@ -60,85 +60,6 @@ declare abstract class BaseHttpRequest {
60
60
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
61
61
  }
62
62
 
63
- declare enum DelegationStatusType {
64
- COMPLETED = "completed"
65
- }
66
-
67
- type CompletedDelegatorDetails = {
68
- txHash: string;
69
- rewardAddresses: Array<string>;
70
- amountDelegated: string;
71
- delegationFee: string;
72
- startTimestamp: number;
73
- endTimestamp: number;
74
- delegationStatus: DelegationStatusType;
75
- grossReward: string;
76
- netReward: string;
77
- };
78
-
79
- type ListDelegatorDetailsResponse = {
80
- /**
81
- * 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.
82
- */
83
- nextPageToken?: string;
84
- delegators: Array<CompletedDelegatorDetails>;
85
- };
86
-
87
- declare enum Network {
88
- MAINNET = "mainnet",
89
- FUJI = "fuji"
90
- }
91
-
92
- declare enum SortOrder {
93
- ASC = "asc",
94
- DESC = "desc"
95
- }
96
-
97
- declare class DefaultService {
98
- readonly httpRequest: BaseHttpRequest;
99
- constructor(httpRequest: BaseHttpRequest);
100
- /**
101
- * List delegators
102
- * Lists details for delegators.
103
- * @returns ListDelegatorDetailsResponse
104
- * @throws ApiError
105
- */
106
- listDelegators({ network, nodeId, delegationStatus, pageSize, pageToken, sortOrder, rewardAddresses, nodeIds, }: {
107
- /**
108
- * Either mainnet or a testnet.
109
- */
110
- network: Network;
111
- /**
112
- * A primary network (P or X chain) nodeId.
113
- */
114
- nodeId: string;
115
- /**
116
- * Delegation status of the node.
117
- */
118
- delegationStatus: 'completed' | 'active' | 'pending';
119
- /**
120
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
121
- */
122
- pageSize?: number;
123
- /**
124
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
125
- */
126
- pageToken?: string;
127
- /**
128
- * 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.
129
- */
130
- sortOrder?: SortOrder;
131
- /**
132
- * A comma separated list of reward addresses to filter by.
133
- */
134
- rewardAddresses?: string;
135
- /**
136
- * A comma separated list of node ids to filter by.
137
- */
138
- nodeIds?: string;
139
- }): CancelablePromise<ListDelegatorDetailsResponse>;
140
- }
141
-
142
63
  declare enum CurrencyCode {
143
64
  USD = "usd",
144
65
  EUR = "eur",
@@ -1090,12 +1011,16 @@ type ContractDeploymentDetails = {
1090
1011
  deployerContractAddress?: string;
1091
1012
  };
1092
1013
 
1093
- declare enum ErcType {
1094
- ERC_20 = "ERC-20",
1095
- ERC_721 = "ERC-721",
1096
- ERC_1155 = "ERC-1155",
1097
- UNKNOWN = "UNKNOWN"
1098
- }
1014
+ type ImageAsset = {
1015
+ /**
1016
+ * INPUT ONLY
1017
+ */
1018
+ assetId?: string;
1019
+ /**
1020
+ * OUTPUT ONLY
1021
+ */
1022
+ imageUri?: string;
1023
+ };
1099
1024
 
1100
1025
  declare enum ResourceLinkType {
1101
1026
  BLOG = "Blog",
@@ -1123,11 +1048,57 @@ type ResourceLink = {
1123
1048
  url: string;
1124
1049
  };
1125
1050
 
1126
- type Contract = {
1051
+ type Erc1155Contract = {
1127
1052
  /**
1128
1053
  * The contract name.
1129
1054
  */
1130
1055
  name?: string;
1056
+ description?: string;
1057
+ officialSite?: string;
1058
+ email?: string;
1059
+ logoAsset?: ImageAsset;
1060
+ bannerAsset?: ImageAsset;
1061
+ color?: string;
1062
+ coingeckoCoinId?: string;
1063
+ resourceLinks?: Array<ResourceLink>;
1064
+ tags?: Array<string>;
1065
+ /**
1066
+ * A wallet or contract address in mixed-case checksum encoding.
1067
+ */
1068
+ address: string;
1069
+ deploymentDetails: ContractDeploymentDetails;
1070
+ ercType: Erc1155Contract.ercType;
1071
+ /**
1072
+ * The contract symbol.
1073
+ */
1074
+ symbol?: string;
1075
+ };
1076
+ declare namespace Erc1155Contract {
1077
+ enum ercType {
1078
+ ERC_1155 = "ERC-1155"
1079
+ }
1080
+ }
1081
+
1082
+ type Erc20Contract = {
1083
+ /**
1084
+ * The contract name.
1085
+ */
1086
+ name?: string;
1087
+ description?: string;
1088
+ officialSite?: string;
1089
+ email?: string;
1090
+ logoAsset?: ImageAsset;
1091
+ bannerAsset?: ImageAsset;
1092
+ color?: string;
1093
+ coingeckoCoinId?: string;
1094
+ resourceLinks?: Array<ResourceLink>;
1095
+ tags?: Array<string>;
1096
+ /**
1097
+ * A wallet or contract address in mixed-case checksum encoding.
1098
+ */
1099
+ address: string;
1100
+ deploymentDetails: ContractDeploymentDetails;
1101
+ ercType: Erc20Contract.ercType;
1131
1102
  /**
1132
1103
  * The contract symbol.
1133
1104
  */
@@ -1135,32 +1106,78 @@ type Contract = {
1135
1106
  /**
1136
1107
  * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1137
1108
  */
1138
- decimals?: number;
1109
+ decimals: number;
1110
+ };
1111
+ declare namespace Erc20Contract {
1112
+ enum ercType {
1113
+ ERC_20 = "ERC-20"
1114
+ }
1115
+ }
1116
+
1117
+ type Erc721Contract = {
1139
1118
  /**
1140
- * The logo uri for the address.
1119
+ * The contract name.
1141
1120
  */
1142
- logoUri?: string;
1121
+ name?: string;
1122
+ description?: string;
1123
+ officialSite?: string;
1124
+ email?: string;
1125
+ logoAsset?: ImageAsset;
1126
+ bannerAsset?: ImageAsset;
1127
+ color?: string;
1128
+ coingeckoCoinId?: string;
1129
+ resourceLinks?: Array<ResourceLink>;
1130
+ tags?: Array<string>;
1143
1131
  /**
1144
1132
  * A wallet or contract address in mixed-case checksum encoding.
1145
1133
  */
1146
1134
  address: string;
1147
1135
  deploymentDetails: ContractDeploymentDetails;
1136
+ ercType: Erc721Contract.ercType;
1137
+ /**
1138
+ * The contract symbol.
1139
+ */
1140
+ symbol?: string;
1141
+ };
1142
+ declare namespace Erc721Contract {
1143
+ enum ercType {
1144
+ ERC_721 = "ERC-721"
1145
+ }
1146
+ }
1147
+
1148
+ type UnknownContract = {
1149
+ /**
1150
+ * The contract name.
1151
+ */
1152
+ name?: string;
1148
1153
  description?: string;
1149
- ercType?: ErcType;
1150
1154
  officialSite?: string;
1151
- tags?: Array<string>;
1152
1155
  email?: string;
1153
- bannerUri?: string;
1156
+ logoAsset?: ImageAsset;
1157
+ bannerAsset?: ImageAsset;
1154
1158
  color?: string;
1159
+ coingeckoCoinId?: string;
1155
1160
  resourceLinks?: Array<ResourceLink>;
1161
+ tags?: Array<string>;
1162
+ /**
1163
+ * A wallet or contract address in mixed-case checksum encoding.
1164
+ */
1165
+ address: string;
1166
+ deploymentDetails: ContractDeploymentDetails;
1167
+ ercType: UnknownContract.ercType;
1156
1168
  };
1169
+ declare namespace UnknownContract {
1170
+ enum ercType {
1171
+ UNKNOWN = "UNKNOWN"
1172
+ }
1173
+ }
1157
1174
 
1158
1175
  type ListContractsResponse = {
1159
1176
  /**
1160
1177
  * 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.
1161
1178
  */
1162
1179
  nextPageToken?: string;
1163
- contracts: Array<Contract>;
1180
+ contracts: Array<(UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract)>;
1164
1181
  };
1165
1182
 
1166
1183
  type Erc1155Transfer = {
@@ -1393,6 +1410,11 @@ type ListTransfersResponse = {
1393
1410
  transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1394
1411
  };
1395
1412
 
1413
+ declare enum SortOrder {
1414
+ ASC = "asc",
1415
+ DESC = "desc"
1416
+ }
1417
+
1396
1418
  declare enum TransactionStatus {
1397
1419
  FAILED = "failed",
1398
1420
  SUCCESS = "success"
@@ -1709,191 +1731,6 @@ declare class HealthCheckService {
1709
1731
  }>;
1710
1732
  }
1711
1733
 
1712
- declare enum CollectionSortByOption {
1713
- COLLECTION_ADDRESS = "collectionAddress",
1714
- SALE_TIMESTAMP = "saleTimestamp",
1715
- VOLUME = "volume",
1716
- VOLUME_CHANGE = "volumeChange",
1717
- FLOOR_PRICE = "floorPrice"
1718
- }
1719
-
1720
- type FloorPrice = {
1721
- floorPrice: string;
1722
- marketplace: string;
1723
- listingIds: Array<string>;
1724
- isOverallFloorPrice: boolean;
1725
- };
1726
-
1727
- type CollectionMetrics = {
1728
- /**
1729
- * The timeframe used to calculate the metrics
1730
- */
1731
- timeframe: string;
1732
- /**
1733
- * The number of sales between (now) & (now - timeframe)
1734
- */
1735
- salesInTimeframe: number;
1736
- /**
1737
- * The number of sales between (now - timeframe) & (now - (2 * timeframe))
1738
- */
1739
- salesInPreviousTimeframe: number;
1740
- /**
1741
- * The total value of sales between (now) & (now - timeframe)
1742
- */
1743
- totalValueInTimeframe: string;
1744
- /**
1745
- * The total value of sales between (now - timeframe) & (now - (2 * timeframe))
1746
- */
1747
- totalValueInPreviousTimeframe: string;
1748
- /**
1749
- * The change in volume between (now) & (now - timeframe)
1750
- */
1751
- volumeChange?: number;
1752
- /**
1753
- * The average sale price for sales between (now) & (now - timeframe)
1754
- */
1755
- averagePriceInTimeframe: string;
1756
- /**
1757
- * The average sale price for sales between (now - timeframe) & (now - (2 * timeframe))
1758
- */
1759
- averagePriceInPreviousTimeframe: string;
1760
- latestSaleTimestamp?: number;
1761
- marketplaceFloorPrices: Array<FloorPrice>;
1762
- floorPrice?: string;
1763
- };
1764
-
1765
- type NftCollectionWithMetrics = {
1766
- /**
1767
- * A wallet or contract address in mixed-case checksum encoding.
1768
- */
1769
- address: string;
1770
- /**
1771
- * The contract name.
1772
- */
1773
- name: string;
1774
- /**
1775
- * The contract symbol.
1776
- */
1777
- symbol: string;
1778
- ercType: ErcType;
1779
- bannerUri?: string;
1780
- logoUri?: string;
1781
- description?: string;
1782
- resourceLinks?: Array<ResourceLink>;
1783
- metrics: CollectionMetrics;
1784
- };
1785
-
1786
- type ListNftCollectionWithMetricsResponse = {
1787
- /**
1788
- * 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.
1789
- */
1790
- nextPageToken?: string;
1791
- collections: Array<NftCollectionWithMetrics>;
1792
- };
1793
-
1794
- declare enum TrendingTimeframe {
1795
- DAY = "day",
1796
- WEEK = "week",
1797
- MONTH = "month"
1798
- }
1799
-
1800
- declare class NfTsService {
1801
- readonly httpRequest: BaseHttpRequest;
1802
- constructor(httpRequest: BaseHttpRequest);
1803
- /**
1804
- * Reindex NFT metadata
1805
- * Triggers reindexing of token metadata for NFT contracts. Will return 400 if the NFT has been indexed within the last hour.
1806
- * @returns any
1807
- * @throws ApiError
1808
- */
1809
- reindexNft({ chainId, address, tokenId, }: {
1810
- /**
1811
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1812
- */
1813
- chainId: string;
1814
- /**
1815
- * Contract address on the relevant chain.
1816
- */
1817
- address: string;
1818
- /**
1819
- * TokenId on the contract
1820
- */
1821
- tokenId: string;
1822
- }): CancelablePromise<any>;
1823
- /**
1824
- * Get collection details
1825
- * Get collection details for a specific contract.
1826
- * @returns NftCollectionWithMetrics
1827
- * @throws ApiError
1828
- */
1829
- getCollection({ chainId, address, timeframe, }: {
1830
- /**
1831
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1832
- */
1833
- chainId: string;
1834
- /**
1835
- * Contract address on the relevant chain.
1836
- */
1837
- address: string;
1838
- /**
1839
- * The timeframe to use for trending listings. Use "DAY" for 24 hours, "WEEK" for 7 days, "MONTH" for 30 days.
1840
- */
1841
- timeframe?: TrendingTimeframe;
1842
- }): CancelablePromise<NftCollectionWithMetrics>;
1843
- /**
1844
- * List collections
1845
- * Lists details and metrics for collections.
1846
- * @returns ListNftCollectionWithMetricsResponse
1847
- * @throws ApiError
1848
- */
1849
- listCollections({ chainId, pageSize, pageToken, timeframe, sortBy, sortOrder, }: {
1850
- /**
1851
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1852
- */
1853
- chainId: string;
1854
- /**
1855
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1856
- */
1857
- pageSize?: number;
1858
- /**
1859
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1860
- */
1861
- pageToken?: string;
1862
- /**
1863
- * The timeframe to use for trending listings. Use "DAY" for 24 hours, "WEEK" for 7 days, "MONTH" for 30 days.
1864
- */
1865
- timeframe?: TrendingTimeframe;
1866
- /**
1867
- * Which property to sort by, in conjunction with sortOrder.
1868
- */
1869
- sortBy?: CollectionSortByOption;
1870
- /**
1871
- * 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.
1872
- */
1873
- sortOrder?: SortOrder;
1874
- }): CancelablePromise<ListNftCollectionWithMetricsResponse>;
1875
- /**
1876
- * Get token details
1877
- * Get token details for a specific token of a contract.
1878
- * @returns any
1879
- * @throws ApiError
1880
- */
1881
- getTokenDetails({ chainId, address, tokenId, }: {
1882
- /**
1883
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1884
- */
1885
- chainId: string;
1886
- /**
1887
- * Contract address on the relevant chain.
1888
- */
1889
- address: string;
1890
- /**
1891
- * TokenId on the contract
1892
- */
1893
- tokenId: string;
1894
- }): CancelablePromise<(Erc721Token | Erc1155Token)>;
1895
- }
1896
-
1897
1734
  type EvmNetworkOptions = {
1898
1735
  addresses: Array<string>;
1899
1736
  includeChains: Array<string>;
@@ -2030,6 +1867,12 @@ type ChainAddressChainIdMapListResponse = {
2030
1867
  addresses: Array<ChainAddressChainIdMap>;
2031
1868
  };
2032
1869
 
1870
+ declare enum DelegationStatusType {
1871
+ COMPLETED = "completed",
1872
+ ACTIVE = "active",
1873
+ PENDING = "pending"
1874
+ }
1875
+
2033
1876
  type DelegatorsDetails = {
2034
1877
  delegatorCount: number;
2035
1878
  totalAmountStaked: string;
@@ -2071,6 +1914,53 @@ type ListBlockchainsResponse = {
2071
1914
  blockchains: Array<Blockchain>;
2072
1915
  };
2073
1916
 
1917
+ type ActiveDelegatorDetails = {
1918
+ txHash: string;
1919
+ rewardAddresses: Array<string>;
1920
+ amountDelegated: string;
1921
+ delegationFee: string;
1922
+ startTimestamp: number;
1923
+ endTimestamp: number;
1924
+ delegationStatus: DelegationStatusType;
1925
+ estimatedGrossReward: string;
1926
+ estimatedNetReward: string;
1927
+ };
1928
+
1929
+ type CompletedDelegatorDetails = {
1930
+ txHash: string;
1931
+ rewardAddresses: Array<string>;
1932
+ amountDelegated: string;
1933
+ delegationFee: string;
1934
+ startTimestamp: number;
1935
+ endTimestamp: number;
1936
+ delegationStatus: DelegationStatusType;
1937
+ grossReward: string;
1938
+ netReward: string;
1939
+ };
1940
+
1941
+ type PendingDelegatorDetails = {
1942
+ txHash: string;
1943
+ rewardAddresses: Array<string>;
1944
+ amountDelegated: string;
1945
+ delegationFee: string;
1946
+ startTimestamp: number;
1947
+ endTimestamp: number;
1948
+ delegationStatus: DelegationStatusType;
1949
+ estimatedGrossReward: string;
1950
+ estimatedNetReward: string;
1951
+ };
1952
+
1953
+ type ListDelegatorDetailsResponse = {
1954
+ /**
1955
+ * 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.
1956
+ */
1957
+ nextPageToken?: string;
1958
+ /**
1959
+ * The list of Delegator Details.
1960
+ */
1961
+ delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
1962
+ };
1963
+
2074
1964
  type BlockchainInfo = {
2075
1965
  blockchainId: string;
2076
1966
  };
@@ -2099,9 +1989,27 @@ type Rewards = {
2099
1989
  };
2100
1990
 
2101
1991
  declare enum ValidationStatusType {
2102
- COMPLETED = "completed"
1992
+ COMPLETED = "completed",
1993
+ ACTIVE = "active",
1994
+ PENDING = "pending"
2103
1995
  }
2104
1996
 
1997
+ type ActiveValidatorDetails = {
1998
+ nodeId: string;
1999
+ amountStaked: string;
2000
+ delegationFee: string;
2001
+ startTimestamp: number;
2002
+ endTimestamp: number;
2003
+ validationStatus: ValidationStatusType;
2004
+ stakePercentage: number;
2005
+ delegatorCount: number;
2006
+ amountDelegated: string;
2007
+ uptimePerformance: number;
2008
+ avalancheGoVersion: string;
2009
+ delegationCapacity: string;
2010
+ potentialRewards: Rewards;
2011
+ };
2012
+
2105
2013
  type CompletedValidatorDetails = {
2106
2014
  nodeId: string;
2107
2015
  amountStaked: string;
@@ -2113,14 +2021,31 @@ type CompletedValidatorDetails = {
2113
2021
  rewards: Rewards;
2114
2022
  };
2115
2023
 
2024
+ type PendingValidatorDetails = {
2025
+ nodeId: string;
2026
+ amountStaked: string;
2027
+ delegationFee: string;
2028
+ startTimestamp: number;
2029
+ endTimestamp: number;
2030
+ validationStatus: ValidationStatusType;
2031
+ };
2032
+
2116
2033
  type ListValidatorDetailsResponse = {
2117
2034
  /**
2118
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.
2119
2036
  */
2120
2037
  nextPageToken?: string;
2121
- validators: Array<CompletedValidatorDetails>;
2038
+ /**
2039
+ * The list of Validator Details.
2040
+ */
2041
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2122
2042
  };
2123
2043
 
2044
+ declare enum Network {
2045
+ MAINNET = "mainnet",
2046
+ FUJI = "fuji"
2047
+ }
2048
+
2124
2049
  type XChainAssetDetails = {
2125
2050
  /**
2126
2051
  * Unique ID for an asset.
@@ -2263,15 +2188,11 @@ declare class PrimaryNetworkService {
2263
2188
  * @returns ListValidatorDetailsResponse
2264
2189
  * @throws ApiError
2265
2190
  */
2266
- listValidators({ network, validationStatus, pageSize, pageToken, nodeIds, sortOrder, minDelegationCapacity, }: {
2191
+ listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
2267
2192
  /**
2268
2193
  * Either mainnet or a testnet.
2269
2194
  */
2270
2195
  network: Network;
2271
- /**
2272
- * Validation status of the node.
2273
- */
2274
- validationStatus: 'completed' | 'active' | 'pending';
2275
2196
  /**
2276
2197
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2277
2198
  */
@@ -2288,6 +2209,10 @@ declare class PrimaryNetworkService {
2288
2209
  * 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.
2289
2210
  */
2290
2211
  sortOrder?: SortOrder;
2212
+ /**
2213
+ * Validation status of the node.
2214
+ */
2215
+ validationStatus?: ValidationStatusType;
2291
2216
  /**
2292
2217
  * The minimum delegation capacity, used to filter the set of nodes being returned (Units - nAVAX). Default is 0.
2293
2218
  */
@@ -2299,7 +2224,7 @@ declare class PrimaryNetworkService {
2299
2224
  * @returns ListValidatorDetailsResponse
2300
2225
  * @throws ApiError
2301
2226
  */
2302
- getSingleValidatorDetails({ network, nodeId, validationStatus, pageSize, pageToken, sortOrder, }: {
2227
+ getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2303
2228
  /**
2304
2229
  * Either mainnet or a testnet.
2305
2230
  */
@@ -2308,10 +2233,38 @@ declare class PrimaryNetworkService {
2308
2233
  * A primary network (P or X chain) nodeId.
2309
2234
  */
2310
2235
  nodeId: string;
2236
+ /**
2237
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2238
+ */
2239
+ pageSize?: number;
2240
+ /**
2241
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2242
+ */
2243
+ pageToken?: string;
2244
+ /**
2245
+ * 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.
2246
+ */
2247
+ sortOrder?: SortOrder;
2311
2248
  /**
2312
2249
  * Validation status of the node.
2313
2250
  */
2314
- validationStatus: 'completed' | 'active' | 'pending';
2251
+ validationStatus?: ValidationStatusType;
2252
+ }): CancelablePromise<ListValidatorDetailsResponse>;
2253
+ /**
2254
+ * List delegators
2255
+ * Lists details for delegators.
2256
+ * @returns ListDelegatorDetailsResponse
2257
+ * @throws ApiError
2258
+ */
2259
+ listDelegators({ network, nodeId, pageSize, pageToken, sortOrder, delegationStatus, rewardAddresses, nodeIds, }: {
2260
+ /**
2261
+ * Either mainnet or a testnet.
2262
+ */
2263
+ network: Network;
2264
+ /**
2265
+ * A primary network (P or X chain) nodeId.
2266
+ */
2267
+ nodeId: string;
2315
2268
  /**
2316
2269
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2317
2270
  */
@@ -2324,7 +2277,19 @@ declare class PrimaryNetworkService {
2324
2277
  * 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.
2325
2278
  */
2326
2279
  sortOrder?: SortOrder;
2327
- }): CancelablePromise<ListValidatorDetailsResponse>;
2280
+ /**
2281
+ * Delegation status of the node.
2282
+ */
2283
+ delegationStatus?: DelegationStatusType;
2284
+ /**
2285
+ * A comma separated list of reward addresses to filter by.
2286
+ */
2287
+ rewardAddresses?: string;
2288
+ /**
2289
+ * A comma separated list of node ids to filter by.
2290
+ */
2291
+ nodeIds?: string;
2292
+ }): CancelablePromise<ListDelegatorDetailsResponse>;
2328
2293
  }
2329
2294
 
2330
2295
  declare enum BlockchainId {
@@ -3640,13 +3605,11 @@ declare class PrimaryNetworkVerticesService {
3640
3605
 
3641
3606
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
3642
3607
  declare class Glacier {
3643
- readonly default: DefaultService;
3644
3608
  readonly evmBalances: EvmBalancesService;
3645
3609
  readonly evmBlocks: EvmBlocksService;
3646
3610
  readonly evmChains: EvmChainsService;
3647
3611
  readonly evmTransactions: EvmTransactionsService;
3648
3612
  readonly healthCheck: HealthCheckService;
3649
- readonly nfTs: NfTsService;
3650
3613
  readonly operations: OperationsService;
3651
3614
  readonly primaryNetwork: PrimaryNetworkService;
3652
3615
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -3676,24 +3639,4 @@ declare class ApiError extends Error {
3676
3639
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3677
3640
  }
3678
3641
 
3679
- type NftCollection = {
3680
- /**
3681
- * A wallet or contract address in mixed-case checksum encoding.
3682
- */
3683
- address: string;
3684
- /**
3685
- * The contract name.
3686
- */
3687
- name: string;
3688
- /**
3689
- * The contract symbol.
3690
- */
3691
- symbol: string;
3692
- ercType: ErcType;
3693
- bannerUri?: string;
3694
- logoUri?: string;
3695
- description?: string;
3696
- resourceLinks?: Array<ResourceLink>;
3697
- };
3698
-
3699
- export { ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CollectionMetrics, CollectionSortByOption, CompletedDelegatorDetails, CompletedValidatorDetails, Contract, ContractDeploymentDetails, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, ErcType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmNetworkOptions, EvmTransactionsService, FloorPrice, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftCollectionWithMetricsResponse, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftCollection, NftCollectionWithMetrics, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingReward, 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, TrendingTimeframe, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorsDetails, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };
3642
+ 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, 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, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, 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, ValidatorsDetails, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };