@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.
- package/dist/index.d.ts +254 -311
- package/dist/index.js +67 -148
- package/esm/generated/Glacier.d.ts +0 -4
- package/esm/generated/Glacier.js +1 -5
- package/esm/generated/core/OpenAPI.js +1 -1
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +15 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +20 -0
- package/esm/generated/models/DelegationStatusType.d.ts +3 -1
- package/esm/generated/models/DelegationStatusType.js +2 -0
- package/esm/generated/models/Erc1155Contract.d.ts +36 -0
- package/esm/generated/models/Erc1155Contract.js +8 -0
- package/esm/generated/models/{Contract.d.ts → Erc20Contract.d.ts} +24 -21
- package/esm/generated/models/Erc20Contract.js +8 -0
- package/esm/generated/models/Erc721Contract.d.ts +36 -0
- package/esm/generated/models/Erc721Contract.js +8 -0
- package/esm/generated/models/ImageAsset.d.ts +12 -0
- package/esm/generated/models/ListContractsResponse.d.ts +5 -2
- package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +6 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +6 -1
- package/esm/generated/models/PendingDelegatorDetails.d.ts +15 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +12 -0
- package/esm/generated/models/UnknownContract.d.ts +32 -0
- package/esm/generated/models/UnknownContract.js +8 -0
- package/esm/generated/models/ValidationStatusType.d.ts +3 -1
- package/esm/generated/models/ValidationStatusType.js +2 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +51 -8
- package/esm/generated/services/PrimaryNetworkService.js +34 -7
- package/esm/index.d.ts +9 -11
- package/esm/index.js +4 -5
- package/package.json +2 -2
- package/esm/generated/models/CollectionMetrics.d.ts +0 -41
- package/esm/generated/models/CollectionSortByOption.d.ts +0 -9
- package/esm/generated/models/CollectionSortByOption.js +0 -10
- package/esm/generated/models/ErcType.d.ts +0 -8
- package/esm/generated/models/ErcType.js +0 -9
- package/esm/generated/models/FloorPrice.d.ts +0 -8
- package/esm/generated/models/ListNftCollectionWithMetricsResponse.d.ts +0 -11
- package/esm/generated/models/NftCollection.d.ts +0 -24
- package/esm/generated/models/NftCollectionWithMetrics.d.ts +0 -26
- package/esm/generated/models/TrendingTimeframe.d.ts +0 -7
- package/esm/generated/models/TrendingTimeframe.js +0 -8
- package/esm/generated/services/DefaultService.d.ts +0 -52
- package/esm/generated/services/DefaultService.js +0 -34
- package/esm/generated/services/NfTsService.d.ts +0 -108
- package/esm/generated/services/NfTsService.js +0 -77
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Erc1155Contract } from './Erc1155Contract.js';
|
|
2
|
+
import { Erc20Contract } from './Erc20Contract.js';
|
|
3
|
+
import { Erc721Contract } from './Erc721Contract.js';
|
|
4
|
+
import { UnknownContract } from './UnknownContract.js';
|
|
2
5
|
|
|
3
6
|
type ListContractsResponse = {
|
|
4
7
|
/**
|
|
5
8
|
* 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
9
|
*/
|
|
7
10
|
nextPageToken?: string;
|
|
8
|
-
contracts: Array<
|
|
11
|
+
contracts: Array<(UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract)>;
|
|
9
12
|
};
|
|
10
13
|
|
|
11
14
|
export { ListContractsResponse };
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
+
import { ActiveDelegatorDetails } from './ActiveDelegatorDetails.js';
|
|
1
2
|
import { CompletedDelegatorDetails } from './CompletedDelegatorDetails.js';
|
|
3
|
+
import { PendingDelegatorDetails } from './PendingDelegatorDetails.js';
|
|
2
4
|
|
|
3
5
|
type ListDelegatorDetailsResponse = {
|
|
4
6
|
/**
|
|
5
7
|
* 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
8
|
*/
|
|
7
9
|
nextPageToken?: string;
|
|
8
|
-
|
|
10
|
+
/**
|
|
11
|
+
* The list of Delegator Details.
|
|
12
|
+
*/
|
|
13
|
+
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
9
14
|
};
|
|
10
15
|
|
|
11
16
|
export { ListDelegatorDetailsResponse };
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
+
import { ActiveValidatorDetails } from './ActiveValidatorDetails.js';
|
|
1
2
|
import { CompletedValidatorDetails } from './CompletedValidatorDetails.js';
|
|
3
|
+
import { PendingValidatorDetails } from './PendingValidatorDetails.js';
|
|
2
4
|
|
|
3
5
|
type ListValidatorDetailsResponse = {
|
|
4
6
|
/**
|
|
5
7
|
* 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
8
|
*/
|
|
7
9
|
nextPageToken?: string;
|
|
8
|
-
|
|
10
|
+
/**
|
|
11
|
+
* The list of Validator Details.
|
|
12
|
+
*/
|
|
13
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
9
14
|
};
|
|
10
15
|
|
|
11
16
|
export { ListValidatorDetailsResponse };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DelegationStatusType } from './DelegationStatusType.js';
|
|
2
|
+
|
|
3
|
+
type PendingDelegatorDetails = {
|
|
4
|
+
txHash: string;
|
|
5
|
+
rewardAddresses: Array<string>;
|
|
6
|
+
amountDelegated: string;
|
|
7
|
+
delegationFee: string;
|
|
8
|
+
startTimestamp: number;
|
|
9
|
+
endTimestamp: number;
|
|
10
|
+
delegationStatus: DelegationStatusType;
|
|
11
|
+
estimatedGrossReward: string;
|
|
12
|
+
estimatedNetReward: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { PendingDelegatorDetails };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ValidationStatusType } from './ValidationStatusType.js';
|
|
2
|
+
|
|
3
|
+
type PendingValidatorDetails = {
|
|
4
|
+
nodeId: string;
|
|
5
|
+
amountStaked: string;
|
|
6
|
+
delegationFee: string;
|
|
7
|
+
startTimestamp: number;
|
|
8
|
+
endTimestamp: number;
|
|
9
|
+
validationStatus: ValidationStatusType;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { PendingValidatorDetails };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ContractDeploymentDetails } from './ContractDeploymentDetails.js';
|
|
2
|
+
import { ImageAsset } from './ImageAsset.js';
|
|
3
|
+
import { ResourceLink } from './ResourceLink.js';
|
|
4
|
+
|
|
5
|
+
type UnknownContract = {
|
|
6
|
+
/**
|
|
7
|
+
* The contract name.
|
|
8
|
+
*/
|
|
9
|
+
name?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
officialSite?: string;
|
|
12
|
+
email?: string;
|
|
13
|
+
logoAsset?: ImageAsset;
|
|
14
|
+
bannerAsset?: ImageAsset;
|
|
15
|
+
color?: string;
|
|
16
|
+
coingeckoCoinId?: string;
|
|
17
|
+
resourceLinks?: Array<ResourceLink>;
|
|
18
|
+
tags?: Array<string>;
|
|
19
|
+
/**
|
|
20
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
21
|
+
*/
|
|
22
|
+
address: string;
|
|
23
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
24
|
+
ercType: UnknownContract.ercType;
|
|
25
|
+
};
|
|
26
|
+
declare namespace UnknownContract {
|
|
27
|
+
enum ercType {
|
|
28
|
+
UNKNOWN = "UNKNOWN"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { UnknownContract };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
var ValidationStatusType = /* @__PURE__ */ ((ValidationStatusType2) => {
|
|
2
2
|
ValidationStatusType2["COMPLETED"] = "completed";
|
|
3
|
+
ValidationStatusType2["ACTIVE"] = "active";
|
|
4
|
+
ValidationStatusType2["PENDING"] = "pending";
|
|
3
5
|
return ValidationStatusType2;
|
|
4
6
|
})(ValidationStatusType || {});
|
|
5
7
|
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { ChainAddressChainIdMapListResponse } from '../models/ChainAddressChainIdMapListResponse.js';
|
|
2
|
+
import { DelegationStatusType } from '../models/DelegationStatusType.js';
|
|
2
3
|
import { GetNetworkDetailsResponse } from '../models/GetNetworkDetailsResponse.js';
|
|
3
4
|
import { ListBlockchainsResponse } from '../models/ListBlockchainsResponse.js';
|
|
5
|
+
import { ListDelegatorDetailsResponse } from '../models/ListDelegatorDetailsResponse.js';
|
|
4
6
|
import { ListSubnetsResponse } from '../models/ListSubnetsResponse.js';
|
|
5
7
|
import { ListValidatorDetailsResponse } from '../models/ListValidatorDetailsResponse.js';
|
|
6
8
|
import { Network } from '../models/Network.js';
|
|
7
9
|
import { SortOrder } from '../models/SortOrder.js';
|
|
10
|
+
import { ValidationStatusType } from '../models/ValidationStatusType.js';
|
|
8
11
|
import { XChainAssetDetails } from '../models/XChainAssetDetails.js';
|
|
9
12
|
import { XChainId } from '../models/XChainId.js';
|
|
10
13
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
@@ -115,15 +118,11 @@ declare class PrimaryNetworkService {
|
|
|
115
118
|
* @returns ListValidatorDetailsResponse
|
|
116
119
|
* @throws ApiError
|
|
117
120
|
*/
|
|
118
|
-
listValidators({ network,
|
|
121
|
+
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
|
|
119
122
|
/**
|
|
120
123
|
* Either mainnet or a testnet.
|
|
121
124
|
*/
|
|
122
125
|
network: Network;
|
|
123
|
-
/**
|
|
124
|
-
* Validation status of the node.
|
|
125
|
-
*/
|
|
126
|
-
validationStatus: 'completed' | 'active' | 'pending';
|
|
127
126
|
/**
|
|
128
127
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
129
128
|
*/
|
|
@@ -140,6 +139,10 @@ declare class PrimaryNetworkService {
|
|
|
140
139
|
* 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.
|
|
141
140
|
*/
|
|
142
141
|
sortOrder?: SortOrder;
|
|
142
|
+
/**
|
|
143
|
+
* Validation status of the node.
|
|
144
|
+
*/
|
|
145
|
+
validationStatus?: ValidationStatusType;
|
|
143
146
|
/**
|
|
144
147
|
* The minimum delegation capacity, used to filter the set of nodes being returned (Units - nAVAX). Default is 0.
|
|
145
148
|
*/
|
|
@@ -151,7 +154,7 @@ declare class PrimaryNetworkService {
|
|
|
151
154
|
* @returns ListValidatorDetailsResponse
|
|
152
155
|
* @throws ApiError
|
|
153
156
|
*/
|
|
154
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
157
|
+
getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
|
|
155
158
|
/**
|
|
156
159
|
* Either mainnet or a testnet.
|
|
157
160
|
*/
|
|
@@ -160,10 +163,38 @@ declare class PrimaryNetworkService {
|
|
|
160
163
|
* A primary network (P or X chain) nodeId.
|
|
161
164
|
*/
|
|
162
165
|
nodeId: string;
|
|
166
|
+
/**
|
|
167
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
168
|
+
*/
|
|
169
|
+
pageSize?: number;
|
|
170
|
+
/**
|
|
171
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
172
|
+
*/
|
|
173
|
+
pageToken?: string;
|
|
174
|
+
/**
|
|
175
|
+
* 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.
|
|
176
|
+
*/
|
|
177
|
+
sortOrder?: SortOrder;
|
|
163
178
|
/**
|
|
164
179
|
* Validation status of the node.
|
|
165
180
|
*/
|
|
166
|
-
validationStatus
|
|
181
|
+
validationStatus?: ValidationStatusType;
|
|
182
|
+
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
183
|
+
/**
|
|
184
|
+
* List delegators
|
|
185
|
+
* Lists details for delegators.
|
|
186
|
+
* @returns ListDelegatorDetailsResponse
|
|
187
|
+
* @throws ApiError
|
|
188
|
+
*/
|
|
189
|
+
listDelegators({ network, nodeId, pageSize, pageToken, sortOrder, delegationStatus, rewardAddresses, nodeIds, }: {
|
|
190
|
+
/**
|
|
191
|
+
* Either mainnet or a testnet.
|
|
192
|
+
*/
|
|
193
|
+
network: Network;
|
|
194
|
+
/**
|
|
195
|
+
* A primary network (P or X chain) nodeId.
|
|
196
|
+
*/
|
|
197
|
+
nodeId: string;
|
|
167
198
|
/**
|
|
168
199
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
169
200
|
*/
|
|
@@ -176,7 +207,19 @@ declare class PrimaryNetworkService {
|
|
|
176
207
|
* 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.
|
|
177
208
|
*/
|
|
178
209
|
sortOrder?: SortOrder;
|
|
179
|
-
|
|
210
|
+
/**
|
|
211
|
+
* Delegation status of the node.
|
|
212
|
+
*/
|
|
213
|
+
delegationStatus?: DelegationStatusType;
|
|
214
|
+
/**
|
|
215
|
+
* A comma separated list of reward addresses to filter by.
|
|
216
|
+
*/
|
|
217
|
+
rewardAddresses?: string;
|
|
218
|
+
/**
|
|
219
|
+
* A comma separated list of node ids to filter by.
|
|
220
|
+
*/
|
|
221
|
+
nodeIds?: string;
|
|
222
|
+
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
180
223
|
}
|
|
181
224
|
|
|
182
225
|
export { PrimaryNetworkService };
|
|
@@ -83,25 +83,25 @@ class PrimaryNetworkService {
|
|
|
83
83
|
}
|
|
84
84
|
listValidators({
|
|
85
85
|
network,
|
|
86
|
-
validationStatus,
|
|
87
86
|
pageSize = 10,
|
|
88
87
|
pageToken,
|
|
89
88
|
nodeIds,
|
|
90
89
|
sortOrder,
|
|
90
|
+
validationStatus,
|
|
91
91
|
minDelegationCapacity
|
|
92
92
|
}) {
|
|
93
93
|
return this.httpRequest.request({
|
|
94
94
|
method: "GET",
|
|
95
95
|
url: "/v1/networks/{network}/validators",
|
|
96
96
|
path: {
|
|
97
|
-
"network": network
|
|
98
|
-
"validationStatus": validationStatus
|
|
97
|
+
"network": network
|
|
99
98
|
},
|
|
100
99
|
query: {
|
|
101
100
|
"pageSize": pageSize,
|
|
102
101
|
"pageToken": pageToken,
|
|
103
102
|
"nodeIds": nodeIds,
|
|
104
103
|
"sortOrder": sortOrder,
|
|
104
|
+
"validationStatus": validationStatus,
|
|
105
105
|
"minDelegationCapacity": minDelegationCapacity
|
|
106
106
|
}
|
|
107
107
|
});
|
|
@@ -109,23 +109,50 @@ class PrimaryNetworkService {
|
|
|
109
109
|
getSingleValidatorDetails({
|
|
110
110
|
network,
|
|
111
111
|
nodeId,
|
|
112
|
-
validationStatus,
|
|
113
112
|
pageSize = 10,
|
|
114
113
|
pageToken,
|
|
115
|
-
sortOrder
|
|
114
|
+
sortOrder,
|
|
115
|
+
validationStatus
|
|
116
116
|
}) {
|
|
117
117
|
return this.httpRequest.request({
|
|
118
118
|
method: "GET",
|
|
119
119
|
url: "/v1/networks/{network}/validators/{nodeId}",
|
|
120
120
|
path: {
|
|
121
121
|
"network": network,
|
|
122
|
-
"nodeId": nodeId
|
|
122
|
+
"nodeId": nodeId
|
|
123
|
+
},
|
|
124
|
+
query: {
|
|
125
|
+
"pageSize": pageSize,
|
|
126
|
+
"pageToken": pageToken,
|
|
127
|
+
"sortOrder": sortOrder,
|
|
123
128
|
"validationStatus": validationStatus
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
listDelegators({
|
|
133
|
+
network,
|
|
134
|
+
nodeId,
|
|
135
|
+
pageSize = 10,
|
|
136
|
+
pageToken,
|
|
137
|
+
sortOrder,
|
|
138
|
+
delegationStatus,
|
|
139
|
+
rewardAddresses,
|
|
140
|
+
nodeIds
|
|
141
|
+
}) {
|
|
142
|
+
return this.httpRequest.request({
|
|
143
|
+
method: "GET",
|
|
144
|
+
url: "/v1/networks/{network}/delegators",
|
|
145
|
+
path: {
|
|
146
|
+
"network": network,
|
|
147
|
+
"nodeId": nodeId
|
|
124
148
|
},
|
|
125
149
|
query: {
|
|
126
150
|
"pageSize": pageSize,
|
|
127
151
|
"pageToken": pageToken,
|
|
128
|
-
"sortOrder": sortOrder
|
|
152
|
+
"sortOrder": sortOrder,
|
|
153
|
+
"delegationStatus": delegationStatus,
|
|
154
|
+
"rewardAddresses": rewardAddresses,
|
|
155
|
+
"nodeIds": nodeIds
|
|
129
156
|
}
|
|
130
157
|
});
|
|
131
158
|
}
|
package/esm/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export { ApiError } from './generated/core/ApiError.js';
|
|
|
3
3
|
export { BaseHttpRequest } from './generated/core/BaseHttpRequest.js';
|
|
4
4
|
export { CancelError, CancelablePromise } from './generated/core/CancelablePromise.js';
|
|
5
5
|
export { OpenAPI, OpenAPIConfig } from './generated/core/OpenAPI.js';
|
|
6
|
+
export { ActiveDelegatorDetails } from './generated/models/ActiveDelegatorDetails.js';
|
|
7
|
+
export { ActiveValidatorDetails } from './generated/models/ActiveValidatorDetails.js';
|
|
6
8
|
export { Asset } from './generated/models/Asset.js';
|
|
7
9
|
export { Blockchain } from './generated/models/Blockchain.js';
|
|
8
10
|
export { BlockchainId } from './generated/models/BlockchainId.js';
|
|
@@ -16,37 +18,35 @@ export { ChainAddressChainIdMap } from './generated/models/ChainAddressChainIdMa
|
|
|
16
18
|
export { ChainAddressChainIdMapListResponse } from './generated/models/ChainAddressChainIdMapListResponse.js';
|
|
17
19
|
export { ChainInfo } from './generated/models/ChainInfo.js';
|
|
18
20
|
export { ChainStatus } from './generated/models/ChainStatus.js';
|
|
19
|
-
export { CollectionMetrics } from './generated/models/CollectionMetrics.js';
|
|
20
|
-
export { CollectionSortByOption } from './generated/models/CollectionSortByOption.js';
|
|
21
21
|
export { CompletedDelegatorDetails } from './generated/models/CompletedDelegatorDetails.js';
|
|
22
22
|
export { CompletedValidatorDetails } from './generated/models/CompletedValidatorDetails.js';
|
|
23
|
-
export { Contract } from './generated/models/Contract.js';
|
|
24
23
|
export { ContractDeploymentDetails } from './generated/models/ContractDeploymentDetails.js';
|
|
25
24
|
export { CreateEvmTransactionExportRequest } from './generated/models/CreateEvmTransactionExportRequest.js';
|
|
26
25
|
export { CreatePrimaryNetworkTransactionExportRequest } from './generated/models/CreatePrimaryNetworkTransactionExportRequest.js';
|
|
27
26
|
export { CurrencyCode } from './generated/models/CurrencyCode.js';
|
|
28
27
|
export { DelegationStatusType } from './generated/models/DelegationStatusType.js';
|
|
29
28
|
export { DelegatorsDetails } from './generated/models/DelegatorsDetails.js';
|
|
29
|
+
export { Erc1155Contract } from './generated/models/Erc1155Contract.js';
|
|
30
30
|
export { Erc1155Token } from './generated/models/Erc1155Token.js';
|
|
31
31
|
export { Erc1155TokenBalance } from './generated/models/Erc1155TokenBalance.js';
|
|
32
32
|
export { Erc1155TokenMetadata } from './generated/models/Erc1155TokenMetadata.js';
|
|
33
33
|
export { Erc1155Transfer } from './generated/models/Erc1155Transfer.js';
|
|
34
34
|
export { Erc1155TransferDetails } from './generated/models/Erc1155TransferDetails.js';
|
|
35
|
+
export { Erc20Contract } from './generated/models/Erc20Contract.js';
|
|
35
36
|
export { Erc20Token } from './generated/models/Erc20Token.js';
|
|
36
37
|
export { Erc20TokenBalance } from './generated/models/Erc20TokenBalance.js';
|
|
37
38
|
export { Erc20Transfer } from './generated/models/Erc20Transfer.js';
|
|
38
39
|
export { Erc20TransferDetails } from './generated/models/Erc20TransferDetails.js';
|
|
40
|
+
export { Erc721Contract } from './generated/models/Erc721Contract.js';
|
|
39
41
|
export { Erc721Token } from './generated/models/Erc721Token.js';
|
|
40
42
|
export { Erc721TokenBalance } from './generated/models/Erc721TokenBalance.js';
|
|
41
43
|
export { Erc721TokenMetadata } from './generated/models/Erc721TokenMetadata.js';
|
|
42
44
|
export { Erc721Transfer } from './generated/models/Erc721Transfer.js';
|
|
43
45
|
export { Erc721TransferDetails } from './generated/models/Erc721TransferDetails.js';
|
|
44
|
-
export { ErcType } from './generated/models/ErcType.js';
|
|
45
46
|
export { EvmBlock } from './generated/models/EvmBlock.js';
|
|
46
47
|
export { EVMInput } from './generated/models/EVMInput.js';
|
|
47
48
|
export { EvmNetworkOptions } from './generated/models/EvmNetworkOptions.js';
|
|
48
49
|
export { EVMOutput } from './generated/models/EVMOutput.js';
|
|
49
|
-
export { FloorPrice } from './generated/models/FloorPrice.js';
|
|
50
50
|
export { FullNativeTransactionDetails } from './generated/models/FullNativeTransactionDetails.js';
|
|
51
51
|
export { GetChainResponse } from './generated/models/GetChainResponse.js';
|
|
52
52
|
export { GetEvmBlockResponse } from './generated/models/GetEvmBlockResponse.js';
|
|
@@ -55,6 +55,7 @@ export { GetNetworkDetailsResponse } from './generated/models/GetNetworkDetailsR
|
|
|
55
55
|
export { GetPrimaryNetworkBlockResponse } from './generated/models/GetPrimaryNetworkBlockResponse.js';
|
|
56
56
|
export { GetTransactionResponse } from './generated/models/GetTransactionResponse.js';
|
|
57
57
|
export { HistoricalReward } from './generated/models/HistoricalReward.js';
|
|
58
|
+
export { ImageAsset } from './generated/models/ImageAsset.js';
|
|
58
59
|
export { InternalTransaction } from './generated/models/InternalTransaction.js';
|
|
59
60
|
export { InternalTransactionDetails } from './generated/models/InternalTransactionDetails.js';
|
|
60
61
|
export { InternalTransactionOpCall } from './generated/models/InternalTransactionOpCall.js';
|
|
@@ -75,7 +76,6 @@ export { ListEvmBlocksResponse } from './generated/models/ListEvmBlocksResponse.
|
|
|
75
76
|
export { ListHistoricalRewardsResponse } from './generated/models/ListHistoricalRewardsResponse.js';
|
|
76
77
|
export { ListInternalTransactionsResponse } from './generated/models/ListInternalTransactionsResponse.js';
|
|
77
78
|
export { ListNativeTransactionsResponse } from './generated/models/ListNativeTransactionsResponse.js';
|
|
78
|
-
export { ListNftCollectionWithMetricsResponse } from './generated/models/ListNftCollectionWithMetricsResponse.js';
|
|
79
79
|
export { ListPChainBalancesResponse } from './generated/models/ListPChainBalancesResponse.js';
|
|
80
80
|
export { ListPChainTransactionsResponse } from './generated/models/ListPChainTransactionsResponse.js';
|
|
81
81
|
export { ListPChainUtxosResponse } from './generated/models/ListPChainUtxosResponse.js';
|
|
@@ -97,8 +97,6 @@ export { Network } from './generated/models/Network.js';
|
|
|
97
97
|
export { NetworkToken } from './generated/models/NetworkToken.js';
|
|
98
98
|
export { NetworkTokenDetails } from './generated/models/NetworkTokenDetails.js';
|
|
99
99
|
export { NetworkType } from './generated/models/NetworkType.js';
|
|
100
|
-
export { NftCollection } from './generated/models/NftCollection.js';
|
|
101
|
-
export { NftCollectionWithMetrics } from './generated/models/NftCollectionWithMetrics.js';
|
|
102
100
|
export { NftTokenMetadataStatus } from './generated/models/NftTokenMetadataStatus.js';
|
|
103
101
|
export { OperationStatus } from './generated/models/OperationStatus.js';
|
|
104
102
|
export { OperationStatusCode } from './generated/models/OperationStatusCode.js';
|
|
@@ -111,7 +109,9 @@ export { PChainSharedAsset } from './generated/models/PChainSharedAsset.js';
|
|
|
111
109
|
export { PChainTransaction } from './generated/models/PChainTransaction.js';
|
|
112
110
|
export { PChainTransactionType } from './generated/models/PChainTransactionType.js';
|
|
113
111
|
export { PChainUtxo } from './generated/models/PChainUtxo.js';
|
|
112
|
+
export { PendingDelegatorDetails } from './generated/models/PendingDelegatorDetails.js';
|
|
114
113
|
export { PendingReward } from './generated/models/PendingReward.js';
|
|
114
|
+
export { PendingValidatorDetails } from './generated/models/PendingValidatorDetails.js';
|
|
115
115
|
export { PrimaryNetwork } from './generated/models/PrimaryNetwork.js';
|
|
116
116
|
export { PrimaryNetworkBlock } from './generated/models/PrimaryNetworkBlock.js';
|
|
117
117
|
export { PrimaryNetworkChainInfo } from './generated/models/PrimaryNetworkChainInfo.js';
|
|
@@ -132,7 +132,7 @@ export { TransactionExportMetadata } from './generated/models/TransactionExportM
|
|
|
132
132
|
export { TransactionMethodType } from './generated/models/TransactionMethodType.js';
|
|
133
133
|
export { TransactionStatus } from './generated/models/TransactionStatus.js';
|
|
134
134
|
export { TransactionVertexDetail } from './generated/models/TransactionVertexDetail.js';
|
|
135
|
-
export {
|
|
135
|
+
export { UnknownContract } from './generated/models/UnknownContract.js';
|
|
136
136
|
export { UtilityAddresses } from './generated/models/UtilityAddresses.js';
|
|
137
137
|
export { Utxo } from './generated/models/Utxo.js';
|
|
138
138
|
export { UtxoCredential } from './generated/models/UtxoCredential.js';
|
|
@@ -148,13 +148,11 @@ export { XChainLinearTransaction } from './generated/models/XChainLinearTransact
|
|
|
148
148
|
export { XChainNonLinearTransaction } from './generated/models/XChainNonLinearTransaction.js';
|
|
149
149
|
export { XChainSharedAssetBalance } from './generated/models/XChainSharedAssetBalance.js';
|
|
150
150
|
export { XChainVertex } from './generated/models/XChainVertex.js';
|
|
151
|
-
export { DefaultService } from './generated/services/DefaultService.js';
|
|
152
151
|
export { EvmBalancesService } from './generated/services/EvmBalancesService.js';
|
|
153
152
|
export { EvmBlocksService } from './generated/services/EvmBlocksService.js';
|
|
154
153
|
export { EvmChainsService } from './generated/services/EvmChainsService.js';
|
|
155
154
|
export { EvmTransactionsService } from './generated/services/EvmTransactionsService.js';
|
|
156
155
|
export { HealthCheckService } from './generated/services/HealthCheckService.js';
|
|
157
|
-
export { NfTsService } from './generated/services/NfTsService.js';
|
|
158
156
|
export { OperationsService } from './generated/services/OperationsService.js';
|
|
159
157
|
export { PrimaryNetworkService } from './generated/services/PrimaryNetworkService.js';
|
|
160
158
|
export { PrimaryNetworkBalancesService } from './generated/services/PrimaryNetworkBalancesService.js';
|
package/esm/index.js
CHANGED
|
@@ -8,18 +8,19 @@ export { BlockchainIds } from './generated/models/BlockchainIds.js';
|
|
|
8
8
|
export { CChainExportTransaction } from './generated/models/CChainExportTransaction.js';
|
|
9
9
|
export { CChainImportTransaction } from './generated/models/CChainImportTransaction.js';
|
|
10
10
|
export { ChainStatus } from './generated/models/ChainStatus.js';
|
|
11
|
-
export { CollectionSortByOption } from './generated/models/CollectionSortByOption.js';
|
|
12
11
|
export { CreateEvmTransactionExportRequest } from './generated/models/CreateEvmTransactionExportRequest.js';
|
|
13
12
|
export { CreatePrimaryNetworkTransactionExportRequest } from './generated/models/CreatePrimaryNetworkTransactionExportRequest.js';
|
|
14
13
|
export { CurrencyCode } from './generated/models/CurrencyCode.js';
|
|
15
14
|
export { DelegationStatusType } from './generated/models/DelegationStatusType.js';
|
|
15
|
+
export { Erc1155Contract } from './generated/models/Erc1155Contract.js';
|
|
16
16
|
export { Erc1155Token } from './generated/models/Erc1155Token.js';
|
|
17
17
|
export { Erc1155TokenBalance } from './generated/models/Erc1155TokenBalance.js';
|
|
18
|
+
export { Erc20Contract } from './generated/models/Erc20Contract.js';
|
|
18
19
|
export { Erc20Token } from './generated/models/Erc20Token.js';
|
|
19
20
|
export { Erc20TokenBalance } from './generated/models/Erc20TokenBalance.js';
|
|
21
|
+
export { Erc721Contract } from './generated/models/Erc721Contract.js';
|
|
20
22
|
export { Erc721Token } from './generated/models/Erc721Token.js';
|
|
21
23
|
export { Erc721TokenBalance } from './generated/models/Erc721TokenBalance.js';
|
|
22
|
-
export { ErcType } from './generated/models/ErcType.js';
|
|
23
24
|
export { InternalTransactionOpCall } from './generated/models/InternalTransactionOpCall.js';
|
|
24
25
|
export { Network } from './generated/models/Network.js';
|
|
25
26
|
export { NetworkType } from './generated/models/NetworkType.js';
|
|
@@ -37,20 +38,18 @@ export { RewardType } from './generated/models/RewardType.js';
|
|
|
37
38
|
export { SortOrder } from './generated/models/SortOrder.js';
|
|
38
39
|
export { TransactionMethodType } from './generated/models/TransactionMethodType.js';
|
|
39
40
|
export { TransactionStatus } from './generated/models/TransactionStatus.js';
|
|
40
|
-
export {
|
|
41
|
+
export { UnknownContract } from './generated/models/UnknownContract.js';
|
|
41
42
|
export { UtxoType } from './generated/models/UtxoType.js';
|
|
42
43
|
export { ValidationStatusType } from './generated/models/ValidationStatusType.js';
|
|
43
44
|
export { VmName } from './generated/models/VmName.js';
|
|
44
45
|
export { XChainId } from './generated/models/XChainId.js';
|
|
45
46
|
export { XChainLinearTransaction } from './generated/models/XChainLinearTransaction.js';
|
|
46
47
|
export { XChainNonLinearTransaction } from './generated/models/XChainNonLinearTransaction.js';
|
|
47
|
-
export { DefaultService } from './generated/services/DefaultService.js';
|
|
48
48
|
export { EvmBalancesService } from './generated/services/EvmBalancesService.js';
|
|
49
49
|
export { EvmBlocksService } from './generated/services/EvmBlocksService.js';
|
|
50
50
|
export { EvmChainsService } from './generated/services/EvmChainsService.js';
|
|
51
51
|
export { EvmTransactionsService } from './generated/services/EvmTransactionsService.js';
|
|
52
52
|
export { HealthCheckService } from './generated/services/HealthCheckService.js';
|
|
53
|
-
export { NfTsService } from './generated/services/NfTsService.js';
|
|
54
53
|
export { OperationsService } from './generated/services/OperationsService.js';
|
|
55
54
|
export { PrimaryNetworkService } from './generated/services/PrimaryNetworkService.js';
|
|
56
55
|
export { PrimaryNetworkBalancesService } from './generated/services/PrimaryNetworkBalancesService.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avalabs/glacier-sdk",
|
|
3
|
-
"version": "2.8.0-alpha.
|
|
3
|
+
"version": "2.8.0-alpha.125",
|
|
4
4
|
"description": "sdk for interacting with glacier-api",
|
|
5
5
|
"author": "Oliver Wang <oliver.wang@avalabs.org>",
|
|
6
6
|
"homepage": "https://github.com/ava-labs/avalanche-sdks#readme",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"bugs": {
|
|
30
30
|
"url": "https://github.com/ava-labs/avalanche-sdks/issues"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "cd826238f1e180e1b2f7c775486873c2775aba09"
|
|
33
33
|
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { FloorPrice } from './FloorPrice.js';
|
|
2
|
-
|
|
3
|
-
type CollectionMetrics = {
|
|
4
|
-
/**
|
|
5
|
-
* The timeframe used to calculate the metrics
|
|
6
|
-
*/
|
|
7
|
-
timeframe: string;
|
|
8
|
-
/**
|
|
9
|
-
* The number of sales between (now) & (now - timeframe)
|
|
10
|
-
*/
|
|
11
|
-
salesInTimeframe: number;
|
|
12
|
-
/**
|
|
13
|
-
* The number of sales between (now - timeframe) & (now - (2 * timeframe))
|
|
14
|
-
*/
|
|
15
|
-
salesInPreviousTimeframe: number;
|
|
16
|
-
/**
|
|
17
|
-
* The total value of sales between (now) & (now - timeframe)
|
|
18
|
-
*/
|
|
19
|
-
totalValueInTimeframe: string;
|
|
20
|
-
/**
|
|
21
|
-
* The total value of sales between (now - timeframe) & (now - (2 * timeframe))
|
|
22
|
-
*/
|
|
23
|
-
totalValueInPreviousTimeframe: string;
|
|
24
|
-
/**
|
|
25
|
-
* The change in volume between (now) & (now - timeframe)
|
|
26
|
-
*/
|
|
27
|
-
volumeChange?: number;
|
|
28
|
-
/**
|
|
29
|
-
* The average sale price for sales between (now) & (now - timeframe)
|
|
30
|
-
*/
|
|
31
|
-
averagePriceInTimeframe: string;
|
|
32
|
-
/**
|
|
33
|
-
* The average sale price for sales between (now - timeframe) & (now - (2 * timeframe))
|
|
34
|
-
*/
|
|
35
|
-
averagePriceInPreviousTimeframe: string;
|
|
36
|
-
latestSaleTimestamp?: number;
|
|
37
|
-
marketplaceFloorPrices: Array<FloorPrice>;
|
|
38
|
-
floorPrice?: string;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export { CollectionMetrics };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
var CollectionSortByOption = /* @__PURE__ */ ((CollectionSortByOption2) => {
|
|
2
|
-
CollectionSortByOption2["COLLECTION_ADDRESS"] = "collectionAddress";
|
|
3
|
-
CollectionSortByOption2["SALE_TIMESTAMP"] = "saleTimestamp";
|
|
4
|
-
CollectionSortByOption2["VOLUME"] = "volume";
|
|
5
|
-
CollectionSortByOption2["VOLUME_CHANGE"] = "volumeChange";
|
|
6
|
-
CollectionSortByOption2["FLOOR_PRICE"] = "floorPrice";
|
|
7
|
-
return CollectionSortByOption2;
|
|
8
|
-
})(CollectionSortByOption || {});
|
|
9
|
-
|
|
10
|
-
export { CollectionSortByOption };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { NftCollectionWithMetrics } from './NftCollectionWithMetrics.js';
|
|
2
|
-
|
|
3
|
-
type ListNftCollectionWithMetricsResponse = {
|
|
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
|
-
collections: Array<NftCollectionWithMetrics>;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export { ListNftCollectionWithMetricsResponse };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ErcType } from './ErcType.js';
|
|
2
|
-
import { ResourceLink } from './ResourceLink.js';
|
|
3
|
-
|
|
4
|
-
type NftCollection = {
|
|
5
|
-
/**
|
|
6
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
7
|
-
*/
|
|
8
|
-
address: string;
|
|
9
|
-
/**
|
|
10
|
-
* The contract name.
|
|
11
|
-
*/
|
|
12
|
-
name: string;
|
|
13
|
-
/**
|
|
14
|
-
* The contract symbol.
|
|
15
|
-
*/
|
|
16
|
-
symbol: string;
|
|
17
|
-
ercType: ErcType;
|
|
18
|
-
bannerUri?: string;
|
|
19
|
-
logoUri?: string;
|
|
20
|
-
description?: string;
|
|
21
|
-
resourceLinks?: Array<ResourceLink>;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { NftCollection };
|