@avalabs/glacier-sdk 2.8.0-alpha.95 → 2.8.0-alpha.97
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 +48 -20
- package/dist/index.js +33 -6
- package/esm/generated/models/{ListCChainExportTxsResponse.d.ts → ListCChainAtomicTransactionsResponse.d.ts} +4 -3
- package/esm/generated/models/NftCollection.d.ts +2 -0
- package/esm/generated/models/NftCollectionWithMetrics.d.ts +2 -0
- package/esm/generated/models/ResourceLink.d.ts +8 -0
- package/esm/generated/models/ResourceLinkType.d.ts +22 -0
- package/esm/generated/models/ResourceLinkType.js +23 -0
- package/esm/generated/services/EvmService.d.ts +9 -1
- package/esm/generated/services/EvmService.js +6 -2
- package/esm/generated/services/PrimaryNetworkService.d.ts +9 -10
- package/esm/generated/services/PrimaryNetworkService.js +4 -4
- package/esm/index.d.ts +3 -2
- package/esm/index.js +1 -0
- package/package.json +2 -2
- package/esm/generated/models/ListCChainImportTxsResponse.d.ts +0 -11
package/dist/index.d.ts
CHANGED
|
@@ -931,6 +931,32 @@ declare enum ErcType {
|
|
|
931
931
|
UNKNOWN = "UNKNOWN"
|
|
932
932
|
}
|
|
933
933
|
|
|
934
|
+
declare enum ResourceLinkType {
|
|
935
|
+
BLOG = "Blog",
|
|
936
|
+
COIN_GECKO = "CoinGecko",
|
|
937
|
+
COIN_MARKET_CAP = "CoinMarketCap",
|
|
938
|
+
DISCORD = "Discord",
|
|
939
|
+
DOCUMENTATION = "Documentation",
|
|
940
|
+
FACEBOOK = "Facebook",
|
|
941
|
+
GITHUB = "Github",
|
|
942
|
+
INSTAGRAM = "Instagram",
|
|
943
|
+
LINKED_IN = "LinkedIn",
|
|
944
|
+
MEDIUM = "Medium",
|
|
945
|
+
REDDIT = "Reddit",
|
|
946
|
+
SUPPORT = "Support",
|
|
947
|
+
TELEGRAM = "Telegram",
|
|
948
|
+
TIK_TOK = "TikTok",
|
|
949
|
+
TWITTER = "Twitter",
|
|
950
|
+
WEBSITE = "Website",
|
|
951
|
+
WHITEPAPER = "Whitepaper",
|
|
952
|
+
YOUTUBE = "Youtube"
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
type ResourceLink = {
|
|
956
|
+
type: ResourceLinkType;
|
|
957
|
+
url: string;
|
|
958
|
+
};
|
|
959
|
+
|
|
934
960
|
type NftCollection = {
|
|
935
961
|
/**
|
|
936
962
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
@@ -948,6 +974,7 @@ type NftCollection = {
|
|
|
948
974
|
bannerUri?: string;
|
|
949
975
|
logoUri?: string;
|
|
950
976
|
description?: string;
|
|
977
|
+
resourceLinks?: Array<ResourceLink>;
|
|
951
978
|
};
|
|
952
979
|
|
|
953
980
|
type Address = {
|
|
@@ -1150,6 +1177,7 @@ type NftCollectionWithMetrics = {
|
|
|
1150
1177
|
bannerUri?: string;
|
|
1151
1178
|
logoUri?: string;
|
|
1152
1179
|
description?: string;
|
|
1180
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1153
1181
|
metrics: CollectionMetrics;
|
|
1154
1182
|
};
|
|
1155
1183
|
|
|
@@ -1478,7 +1506,7 @@ declare class EvmService {
|
|
|
1478
1506
|
* @returns ListTransactionDetailsResponse
|
|
1479
1507
|
* @throws ApiError
|
|
1480
1508
|
*/
|
|
1481
|
-
listTransactions({ chainId, address, pageSize, pageToken, }: {
|
|
1509
|
+
listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, }: {
|
|
1482
1510
|
/**
|
|
1483
1511
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1484
1512
|
* a list of supported chain ids.
|
|
@@ -1497,6 +1525,14 @@ declare class EvmService {
|
|
|
1497
1525
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1498
1526
|
*/
|
|
1499
1527
|
pageToken?: string;
|
|
1528
|
+
/**
|
|
1529
|
+
* 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.
|
|
1530
|
+
*/
|
|
1531
|
+
startBlock?: any;
|
|
1532
|
+
/**
|
|
1533
|
+
* 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.
|
|
1534
|
+
*/
|
|
1535
|
+
endBlock?: any;
|
|
1500
1536
|
}): CancelablePromise<ListTransactionDetailsResponse>;
|
|
1501
1537
|
/**
|
|
1502
1538
|
* Gets a list of native transactions for an address and chain.
|
|
@@ -2309,20 +2345,12 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2309
2345
|
balances: CChainAtomicBalances;
|
|
2310
2346
|
};
|
|
2311
2347
|
|
|
2312
|
-
type
|
|
2313
|
-
/**
|
|
2314
|
-
* 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.
|
|
2315
|
-
*/
|
|
2316
|
-
nextPageToken?: string;
|
|
2317
|
-
transactions: Array<CChainExportTransaction>;
|
|
2318
|
-
};
|
|
2319
|
-
|
|
2320
|
-
type ListCChainImportTxsResponse = {
|
|
2348
|
+
type ListCChainAtomicTransactionsResponse = {
|
|
2321
2349
|
/**
|
|
2322
2350
|
* 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.
|
|
2323
2351
|
*/
|
|
2324
2352
|
nextPageToken?: string;
|
|
2325
|
-
transactions: Array<CChainImportTransaction>;
|
|
2353
|
+
transactions: Array<(CChainExportTransaction | CChainImportTransaction)>;
|
|
2326
2354
|
};
|
|
2327
2355
|
|
|
2328
2356
|
type PChainAsset = {
|
|
@@ -2843,7 +2871,7 @@ declare class PrimaryNetworkService {
|
|
|
2843
2871
|
* query parameter, if provided.
|
|
2844
2872
|
*/
|
|
2845
2873
|
sortOrder?: SortOrder;
|
|
2846
|
-
}): CancelablePromise<(ListPChainTransactionsResponse | ListXChainTransactionsResponse |
|
|
2874
|
+
}): CancelablePromise<(ListPChainTransactionsResponse | ListXChainTransactionsResponse | ListCChainAtomicTransactionsResponse)>;
|
|
2847
2875
|
/**
|
|
2848
2876
|
* Returns active staking transactions for supplied addresses.
|
|
2849
2877
|
* @returns ListPChainTransactionsResponse
|
|
@@ -3088,19 +3116,19 @@ declare class PrimaryNetworkService {
|
|
|
3088
3116
|
* @returns XChainAssetDetails
|
|
3089
3117
|
* @throws ApiError
|
|
3090
3118
|
*/
|
|
3091
|
-
getAssetDetails({
|
|
3119
|
+
getAssetDetails({ blockchainId, network, assetId, }: {
|
|
3092
3120
|
/**
|
|
3093
|
-
*
|
|
3094
|
-
*/
|
|
3095
|
-
assetId: string;
|
|
3096
|
-
/**
|
|
3097
|
-
* A supported chain name. BlockchainId values will be deprecated in a future release. Please use chain names like p-chain, x-chain or c-chain instead!
|
|
3121
|
+
* A supported chain name for X-Chain. BlockchainId values will be deprecated in a future release. Please use chain names like x-chain instead!
|
|
3098
3122
|
*/
|
|
3099
|
-
blockchainId:
|
|
3123
|
+
blockchainId: XChainId;
|
|
3100
3124
|
/**
|
|
3101
3125
|
* Either mainnet or a testnet.
|
|
3102
3126
|
*/
|
|
3103
3127
|
network: Network;
|
|
3128
|
+
/**
|
|
3129
|
+
* Asset ID for any asset on X-Chain
|
|
3130
|
+
*/
|
|
3131
|
+
assetId: string;
|
|
3104
3132
|
}): CancelablePromise<XChainAssetDetails>;
|
|
3105
3133
|
/**
|
|
3106
3134
|
* Returns asset transactions corresponding to the asset id on X-Chain.
|
|
@@ -3174,4 +3202,4 @@ declare class ApiError extends Error {
|
|
|
3174
3202
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3175
3203
|
}
|
|
3176
3204
|
|
|
3177
|
-
export { Address, ApiError, Asset, BaseHttpRequest, Block, BlockchainId, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelListingEventResponse, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CloseAuctionEventResponse, CollectionMetrics, CollectionSortByOption, CreateTransactionExportRequest, CurrencyCode, EVMInput, EVMOutput, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, ErcType, EvmNetworkOptions, EvmService, FullNativeTransactionDetails, GetBlockResponse, GetChainResponse, GetNativeBalanceResponse, GetTransactionResponse, Glacier, HealthCheckService, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlocksResponse, ListCChainAtomicBalancesResponse,
|
|
3205
|
+
export { Address, ApiError, Asset, BaseHttpRequest, Block, BlockchainId, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelListingEventResponse, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CloseAuctionEventResponse, CollectionMetrics, CollectionSortByOption, CreateTransactionExportRequest, CurrencyCode, EVMInput, EVMOutput, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, ErcType, EvmNetworkOptions, EvmService, FullNativeTransactionDetails, GetBlockResponse, GetChainResponse, GetNativeBalanceResponse, GetTransactionResponse, Glacier, HealthCheckService, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlocksResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListInternalTransactionsResponse, ListListingsResponse, ListNativeTransactionsResponse, ListNftCollectionWithMetricsResponse, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, ListingCurrencyType, ListingEventType, ListingResponse, ListingType, ListingsSortByOption, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NftCollection, NftCollectionWithMetrics, NftFilterOptionsProperty, NftSearchBody, NftSearchResultTypeOption, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OpenListingEventResponse, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationTransactionExportMetadata, OperationType, OperationsService, PChainAsset, PChainBalance, PChainConsumedUtxo, PChainEmittedUtxo, PChainId, PChainTransaction, PChainUtxo, PaginationParams, PrimaryNetworkOptions, PrimaryNetworkService, ProposerDetails, PurchaseListingEventResponse, ResourceLink, ResourceLinkType, RichAddress, SortOrder, TokenWithPrice, TransactionDetails, TransactionMethodType, TransactionStatus, TransactionVertexDetail, TrendingTimeframe, UtilityAddresses, Utxo, UtxoCredential, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };
|
package/dist/index.js
CHANGED
|
@@ -521,7 +521,9 @@ class EvmService {
|
|
|
521
521
|
chainId,
|
|
522
522
|
address,
|
|
523
523
|
pageSize = 10,
|
|
524
|
-
pageToken
|
|
524
|
+
pageToken,
|
|
525
|
+
startBlock,
|
|
526
|
+
endBlock
|
|
525
527
|
}) {
|
|
526
528
|
return this.httpRequest.request({
|
|
527
529
|
method: "GET",
|
|
@@ -532,7 +534,9 @@ class EvmService {
|
|
|
532
534
|
},
|
|
533
535
|
query: {
|
|
534
536
|
"pageSize": pageSize,
|
|
535
|
-
"pageToken": pageToken
|
|
537
|
+
"pageToken": pageToken,
|
|
538
|
+
"startBlock": startBlock,
|
|
539
|
+
"endBlock": endBlock
|
|
536
540
|
}
|
|
537
541
|
});
|
|
538
542
|
}
|
|
@@ -1118,17 +1122,17 @@ class PrimaryNetworkService {
|
|
|
1118
1122
|
});
|
|
1119
1123
|
}
|
|
1120
1124
|
getAssetDetails({
|
|
1121
|
-
assetId,
|
|
1122
1125
|
blockchainId,
|
|
1123
|
-
network
|
|
1126
|
+
network,
|
|
1127
|
+
assetId
|
|
1124
1128
|
}) {
|
|
1125
1129
|
return this.httpRequest.request({
|
|
1126
1130
|
method: "GET",
|
|
1127
1131
|
url: "/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}",
|
|
1128
1132
|
path: {
|
|
1129
|
-
"assetId": assetId,
|
|
1130
1133
|
"blockchainId": blockchainId,
|
|
1131
|
-
"network": network
|
|
1134
|
+
"network": network,
|
|
1135
|
+
"assetId": assetId
|
|
1132
1136
|
}
|
|
1133
1137
|
});
|
|
1134
1138
|
}
|
|
@@ -1397,6 +1401,28 @@ var PChainId = /* @__PURE__ */ ((PChainId2) => {
|
|
|
1397
1401
|
return PChainId2;
|
|
1398
1402
|
})(PChainId || {});
|
|
1399
1403
|
|
|
1404
|
+
var ResourceLinkType = /* @__PURE__ */ ((ResourceLinkType2) => {
|
|
1405
|
+
ResourceLinkType2["BLOG"] = "Blog";
|
|
1406
|
+
ResourceLinkType2["COIN_GECKO"] = "CoinGecko";
|
|
1407
|
+
ResourceLinkType2["COIN_MARKET_CAP"] = "CoinMarketCap";
|
|
1408
|
+
ResourceLinkType2["DISCORD"] = "Discord";
|
|
1409
|
+
ResourceLinkType2["DOCUMENTATION"] = "Documentation";
|
|
1410
|
+
ResourceLinkType2["FACEBOOK"] = "Facebook";
|
|
1411
|
+
ResourceLinkType2["GITHUB"] = "Github";
|
|
1412
|
+
ResourceLinkType2["INSTAGRAM"] = "Instagram";
|
|
1413
|
+
ResourceLinkType2["LINKED_IN"] = "LinkedIn";
|
|
1414
|
+
ResourceLinkType2["MEDIUM"] = "Medium";
|
|
1415
|
+
ResourceLinkType2["REDDIT"] = "Reddit";
|
|
1416
|
+
ResourceLinkType2["SUPPORT"] = "Support";
|
|
1417
|
+
ResourceLinkType2["TELEGRAM"] = "Telegram";
|
|
1418
|
+
ResourceLinkType2["TIK_TOK"] = "TikTok";
|
|
1419
|
+
ResourceLinkType2["TWITTER"] = "Twitter";
|
|
1420
|
+
ResourceLinkType2["WEBSITE"] = "Website";
|
|
1421
|
+
ResourceLinkType2["WHITEPAPER"] = "Whitepaper";
|
|
1422
|
+
ResourceLinkType2["YOUTUBE"] = "Youtube";
|
|
1423
|
+
return ResourceLinkType2;
|
|
1424
|
+
})(ResourceLinkType || {});
|
|
1425
|
+
|
|
1400
1426
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
1401
1427
|
SortOrder2["ASC"] = "asc";
|
|
1402
1428
|
SortOrder2["DESC"] = "desc";
|
|
@@ -1479,6 +1505,7 @@ exports.OperationType = OperationType;
|
|
|
1479
1505
|
exports.OperationsService = OperationsService;
|
|
1480
1506
|
exports.PChainId = PChainId;
|
|
1481
1507
|
exports.PrimaryNetworkService = PrimaryNetworkService;
|
|
1508
|
+
exports.ResourceLinkType = ResourceLinkType;
|
|
1482
1509
|
exports.SortOrder = SortOrder;
|
|
1483
1510
|
exports.TransactionMethodType = TransactionMethodType;
|
|
1484
1511
|
exports.TransactionStatus = TransactionStatus;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { CChainExportTransaction } from './CChainExportTransaction.js';
|
|
2
|
+
import { CChainImportTransaction } from './CChainImportTransaction.js';
|
|
2
3
|
|
|
3
|
-
type
|
|
4
|
+
type ListCChainAtomicTransactionsResponse = {
|
|
4
5
|
/**
|
|
5
6
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
6
7
|
*/
|
|
7
8
|
nextPageToken?: string;
|
|
8
|
-
transactions: Array<CChainExportTransaction>;
|
|
9
|
+
transactions: Array<(CChainExportTransaction | CChainImportTransaction)>;
|
|
9
10
|
};
|
|
10
11
|
|
|
11
|
-
export {
|
|
12
|
+
export { ListCChainAtomicTransactionsResponse };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ErcType } from './ErcType.js';
|
|
2
|
+
import { ResourceLink } from './ResourceLink.js';
|
|
2
3
|
|
|
3
4
|
type NftCollection = {
|
|
4
5
|
/**
|
|
@@ -17,6 +18,7 @@ type NftCollection = {
|
|
|
17
18
|
bannerUri?: string;
|
|
18
19
|
logoUri?: string;
|
|
19
20
|
description?: string;
|
|
21
|
+
resourceLinks?: Array<ResourceLink>;
|
|
20
22
|
};
|
|
21
23
|
|
|
22
24
|
export { NftCollection };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CollectionMetrics } from './CollectionMetrics.js';
|
|
2
2
|
import { ErcType } from './ErcType.js';
|
|
3
|
+
import { ResourceLink } from './ResourceLink.js';
|
|
3
4
|
|
|
4
5
|
type NftCollectionWithMetrics = {
|
|
5
6
|
/**
|
|
@@ -18,6 +19,7 @@ type NftCollectionWithMetrics = {
|
|
|
18
19
|
bannerUri?: string;
|
|
19
20
|
logoUri?: string;
|
|
20
21
|
description?: string;
|
|
22
|
+
resourceLinks?: Array<ResourceLink>;
|
|
21
23
|
metrics: CollectionMetrics;
|
|
22
24
|
};
|
|
23
25
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare enum ResourceLinkType {
|
|
2
|
+
BLOG = "Blog",
|
|
3
|
+
COIN_GECKO = "CoinGecko",
|
|
4
|
+
COIN_MARKET_CAP = "CoinMarketCap",
|
|
5
|
+
DISCORD = "Discord",
|
|
6
|
+
DOCUMENTATION = "Documentation",
|
|
7
|
+
FACEBOOK = "Facebook",
|
|
8
|
+
GITHUB = "Github",
|
|
9
|
+
INSTAGRAM = "Instagram",
|
|
10
|
+
LINKED_IN = "LinkedIn",
|
|
11
|
+
MEDIUM = "Medium",
|
|
12
|
+
REDDIT = "Reddit",
|
|
13
|
+
SUPPORT = "Support",
|
|
14
|
+
TELEGRAM = "Telegram",
|
|
15
|
+
TIK_TOK = "TikTok",
|
|
16
|
+
TWITTER = "Twitter",
|
|
17
|
+
WEBSITE = "Website",
|
|
18
|
+
WHITEPAPER = "Whitepaper",
|
|
19
|
+
YOUTUBE = "Youtube"
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { ResourceLinkType };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var ResourceLinkType = /* @__PURE__ */ ((ResourceLinkType2) => {
|
|
2
|
+
ResourceLinkType2["BLOG"] = "Blog";
|
|
3
|
+
ResourceLinkType2["COIN_GECKO"] = "CoinGecko";
|
|
4
|
+
ResourceLinkType2["COIN_MARKET_CAP"] = "CoinMarketCap";
|
|
5
|
+
ResourceLinkType2["DISCORD"] = "Discord";
|
|
6
|
+
ResourceLinkType2["DOCUMENTATION"] = "Documentation";
|
|
7
|
+
ResourceLinkType2["FACEBOOK"] = "Facebook";
|
|
8
|
+
ResourceLinkType2["GITHUB"] = "Github";
|
|
9
|
+
ResourceLinkType2["INSTAGRAM"] = "Instagram";
|
|
10
|
+
ResourceLinkType2["LINKED_IN"] = "LinkedIn";
|
|
11
|
+
ResourceLinkType2["MEDIUM"] = "Medium";
|
|
12
|
+
ResourceLinkType2["REDDIT"] = "Reddit";
|
|
13
|
+
ResourceLinkType2["SUPPORT"] = "Support";
|
|
14
|
+
ResourceLinkType2["TELEGRAM"] = "Telegram";
|
|
15
|
+
ResourceLinkType2["TIK_TOK"] = "TikTok";
|
|
16
|
+
ResourceLinkType2["TWITTER"] = "Twitter";
|
|
17
|
+
ResourceLinkType2["WEBSITE"] = "Website";
|
|
18
|
+
ResourceLinkType2["WHITEPAPER"] = "Whitepaper";
|
|
19
|
+
ResourceLinkType2["YOUTUBE"] = "Youtube";
|
|
20
|
+
return ResourceLinkType2;
|
|
21
|
+
})(ResourceLinkType || {});
|
|
22
|
+
|
|
23
|
+
export { ResourceLinkType };
|
|
@@ -258,7 +258,7 @@ declare class EvmService {
|
|
|
258
258
|
* @returns ListTransactionDetailsResponse
|
|
259
259
|
* @throws ApiError
|
|
260
260
|
*/
|
|
261
|
-
listTransactions({ chainId, address, pageSize, pageToken, }: {
|
|
261
|
+
listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, }: {
|
|
262
262
|
/**
|
|
263
263
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
264
264
|
* a list of supported chain ids.
|
|
@@ -277,6 +277,14 @@ declare class EvmService {
|
|
|
277
277
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
278
278
|
*/
|
|
279
279
|
pageToken?: string;
|
|
280
|
+
/**
|
|
281
|
+
* 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.
|
|
282
|
+
*/
|
|
283
|
+
startBlock?: any;
|
|
284
|
+
/**
|
|
285
|
+
* 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.
|
|
286
|
+
*/
|
|
287
|
+
endBlock?: any;
|
|
280
288
|
}): CancelablePromise<ListTransactionDetailsResponse>;
|
|
281
289
|
/**
|
|
282
290
|
* Gets a list of native transactions for an address and chain.
|
|
@@ -167,7 +167,9 @@ class EvmService {
|
|
|
167
167
|
chainId,
|
|
168
168
|
address,
|
|
169
169
|
pageSize = 10,
|
|
170
|
-
pageToken
|
|
170
|
+
pageToken,
|
|
171
|
+
startBlock,
|
|
172
|
+
endBlock
|
|
171
173
|
}) {
|
|
172
174
|
return this.httpRequest.request({
|
|
173
175
|
method: "GET",
|
|
@@ -178,7 +180,9 @@ class EvmService {
|
|
|
178
180
|
},
|
|
179
181
|
query: {
|
|
180
182
|
"pageSize": pageSize,
|
|
181
|
-
"pageToken": pageToken
|
|
183
|
+
"pageToken": pageToken,
|
|
184
|
+
"startBlock": startBlock,
|
|
185
|
+
"endBlock": endBlock
|
|
182
186
|
}
|
|
183
187
|
});
|
|
184
188
|
}
|
|
@@ -5,8 +5,7 @@ import { CChainImportTransaction } from '../models/CChainImportTransaction.js';
|
|
|
5
5
|
import { ChainAddressChainIdMapListResponse } from '../models/ChainAddressChainIdMapListResponse.js';
|
|
6
6
|
import { ListBlocksResponse } from '../models/ListBlocksResponse.js';
|
|
7
7
|
import { ListCChainAtomicBalancesResponse } from '../models/ListCChainAtomicBalancesResponse.js';
|
|
8
|
-
import {
|
|
9
|
-
import { ListCChainImportTxsResponse } from '../models/ListCChainImportTxsResponse.js';
|
|
8
|
+
import { ListCChainAtomicTransactionsResponse } from '../models/ListCChainAtomicTransactionsResponse.js';
|
|
10
9
|
import { ListPChainBalancesResponse } from '../models/ListPChainBalancesResponse.js';
|
|
11
10
|
import { ListPChainTransactionsResponse } from '../models/ListPChainTransactionsResponse.js';
|
|
12
11
|
import { ListPChainUtxosResponse } from '../models/ListPChainUtxosResponse.js';
|
|
@@ -81,7 +80,7 @@ declare class PrimaryNetworkService {
|
|
|
81
80
|
* query parameter, if provided.
|
|
82
81
|
*/
|
|
83
82
|
sortOrder?: SortOrder;
|
|
84
|
-
}): CancelablePromise<(ListPChainTransactionsResponse | ListXChainTransactionsResponse |
|
|
83
|
+
}): CancelablePromise<(ListPChainTransactionsResponse | ListXChainTransactionsResponse | ListCChainAtomicTransactionsResponse)>;
|
|
85
84
|
/**
|
|
86
85
|
* Returns active staking transactions for supplied addresses.
|
|
87
86
|
* @returns ListPChainTransactionsResponse
|
|
@@ -326,19 +325,19 @@ declare class PrimaryNetworkService {
|
|
|
326
325
|
* @returns XChainAssetDetails
|
|
327
326
|
* @throws ApiError
|
|
328
327
|
*/
|
|
329
|
-
getAssetDetails({
|
|
328
|
+
getAssetDetails({ blockchainId, network, assetId, }: {
|
|
330
329
|
/**
|
|
331
|
-
*
|
|
332
|
-
*/
|
|
333
|
-
assetId: string;
|
|
334
|
-
/**
|
|
335
|
-
* A supported chain name. BlockchainId values will be deprecated in a future release. Please use chain names like p-chain, x-chain or c-chain instead!
|
|
330
|
+
* A supported chain name for X-Chain. BlockchainId values will be deprecated in a future release. Please use chain names like x-chain instead!
|
|
336
331
|
*/
|
|
337
|
-
blockchainId:
|
|
332
|
+
blockchainId: XChainId;
|
|
338
333
|
/**
|
|
339
334
|
* Either mainnet or a testnet.
|
|
340
335
|
*/
|
|
341
336
|
network: Network;
|
|
337
|
+
/**
|
|
338
|
+
* Asset ID for any asset on X-Chain
|
|
339
|
+
*/
|
|
340
|
+
assetId: string;
|
|
342
341
|
}): CancelablePromise<XChainAssetDetails>;
|
|
343
342
|
/**
|
|
344
343
|
* Returns asset transactions corresponding to the asset id on X-Chain.
|
|
@@ -218,17 +218,17 @@ class PrimaryNetworkService {
|
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
220
|
getAssetDetails({
|
|
221
|
-
assetId,
|
|
222
221
|
blockchainId,
|
|
223
|
-
network
|
|
222
|
+
network,
|
|
223
|
+
assetId
|
|
224
224
|
}) {
|
|
225
225
|
return this.httpRequest.request({
|
|
226
226
|
method: "GET",
|
|
227
227
|
url: "/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}",
|
|
228
228
|
path: {
|
|
229
|
-
"assetId": assetId,
|
|
230
229
|
"blockchainId": blockchainId,
|
|
231
|
-
"network": network
|
|
230
|
+
"network": network,
|
|
231
|
+
"assetId": assetId
|
|
232
232
|
}
|
|
233
233
|
});
|
|
234
234
|
}
|
package/esm/index.d.ts
CHANGED
|
@@ -49,8 +49,7 @@ export { InternalTransactionDetails } from './generated/models/InternalTransacti
|
|
|
49
49
|
export { InternalTransactionOpCall } from './generated/models/InternalTransactionOpCall.js';
|
|
50
50
|
export { ListBlocksResponse } from './generated/models/ListBlocksResponse.js';
|
|
51
51
|
export { ListCChainAtomicBalancesResponse } from './generated/models/ListCChainAtomicBalancesResponse.js';
|
|
52
|
-
export {
|
|
53
|
-
export { ListCChainImportTxsResponse } from './generated/models/ListCChainImportTxsResponse.js';
|
|
52
|
+
export { ListCChainAtomicTransactionsResponse } from './generated/models/ListCChainAtomicTransactionsResponse.js';
|
|
54
53
|
export { ListChainsResponse } from './generated/models/ListChainsResponse.js';
|
|
55
54
|
export { ListCollectibleBalancesResponse } from './generated/models/ListCollectibleBalancesResponse.js';
|
|
56
55
|
export { ListErc1155BalancesResponse } from './generated/models/ListErc1155BalancesResponse.js';
|
|
@@ -107,6 +106,8 @@ export { PChainUtxo } from './generated/models/PChainUtxo.js';
|
|
|
107
106
|
export { PrimaryNetworkOptions } from './generated/models/PrimaryNetworkOptions.js';
|
|
108
107
|
export { ProposerDetails } from './generated/models/ProposerDetails.js';
|
|
109
108
|
export { PurchaseListingEventResponse } from './generated/models/PurchaseListingEventResponse.js';
|
|
109
|
+
export { ResourceLink } from './generated/models/ResourceLink.js';
|
|
110
|
+
export { ResourceLinkType } from './generated/models/ResourceLinkType.js';
|
|
110
111
|
export { RichAddress } from './generated/models/RichAddress.js';
|
|
111
112
|
export { SortOrder } from './generated/models/SortOrder.js';
|
|
112
113
|
export { TokenWithPrice } from './generated/models/TokenWithPrice.js';
|
package/esm/index.js
CHANGED
|
@@ -28,6 +28,7 @@ export { OperationStatus } from './generated/models/OperationStatus.js';
|
|
|
28
28
|
export { OperationStatusCode } from './generated/models/OperationStatusCode.js';
|
|
29
29
|
export { OperationType } from './generated/models/OperationType.js';
|
|
30
30
|
export { PChainId } from './generated/models/PChainId.js';
|
|
31
|
+
export { ResourceLinkType } from './generated/models/ResourceLinkType.js';
|
|
31
32
|
export { SortOrder } from './generated/models/SortOrder.js';
|
|
32
33
|
export { TransactionMethodType } from './generated/models/TransactionMethodType.js';
|
|
33
34
|
export { TransactionStatus } from './generated/models/TransactionStatus.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.97",
|
|
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",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"bugs": {
|
|
33
33
|
"url": "https://github.com/ava-labs/avalanche-sdks/issues"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "79c597306c3cc2042b27020d93183aa5e0eb1f71"
|
|
36
36
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CChainImportTransaction } from './CChainImportTransaction.js';
|
|
2
|
-
|
|
3
|
-
type ListCChainImportTxsResponse = {
|
|
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
|
-
transactions: Array<CChainImportTransaction>;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export { ListCChainImportTxsResponse };
|