@avalabs/glacier-sdk 2.8.0-alpha.9 → 2.8.0-alpha.91
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/README.md +10 -0
- package/dist/index.d.ts +3278 -3
- package/dist/index.js +1539 -153
- package/esm/generated/Glacier.d.ts +18 -0
- package/esm/generated/Glacier.js +28 -0
- package/esm/generated/core/ApiError.d.ts +13 -0
- package/esm/generated/core/ApiError.js +13 -0
- package/esm/generated/core/ApiRequestOptions.d.ts +15 -0
- package/esm/generated/core/ApiResult.d.ts +9 -0
- package/esm/generated/core/BaseHttpRequest.d.ts +11 -0
- package/esm/generated/core/BaseHttpRequest.js +7 -0
- package/esm/generated/core/CancelablePromise.d.ts +28 -0
- package/esm/generated/core/CancelablePromise.js +86 -0
- package/esm/generated/core/FetchHttpRequest.js +13 -0
- package/esm/generated/core/OpenAPI.d.ts +18 -0
- package/esm/generated/core/OpenAPI.js +13 -0
- package/esm/generated/core/request.js +244 -0
- package/esm/generated/models/Address.d.ts +8 -0
- package/esm/generated/models/Asset.d.ts +28 -0
- package/esm/generated/models/AssetType.d.ts +8 -0
- package/esm/generated/models/AssetType.js +9 -0
- package/esm/generated/models/Block.d.ts +15 -0
- package/esm/generated/models/BlockchainId.d.ts +9 -0
- package/esm/generated/models/BlockchainId.js +10 -0
- package/esm/generated/models/CChainAtomicBalances.d.ts +8 -0
- package/esm/generated/models/CChainExportTransaction.d.ts +58 -0
- package/esm/generated/models/CChainExportTransaction.js +8 -0
- package/esm/generated/models/CChainImportTransaction.d.ts +58 -0
- package/esm/generated/models/CChainImportTransaction.js +8 -0
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +30 -0
- package/esm/generated/models/CancelListingEventResponse.d.ts +5 -0
- package/esm/generated/models/ChainAddressChainIdMap.d.ts +8 -0
- package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +7 -0
- package/esm/generated/models/ChainInfo.d.ts +30 -0
- package/esm/generated/models/ChainStatus.d.ts +6 -0
- package/esm/generated/models/ChainStatus.js +7 -0
- package/esm/generated/models/CloseAuctionEventResponse.d.ts +6 -0
- package/esm/generated/models/CollectionMetrics.d.ts +40 -0
- package/esm/generated/models/CollectionSortByOption.d.ts +8 -0
- package/esm/generated/models/CollectionSortByOption.js +9 -0
- package/esm/generated/models/ContractType.d.ts +7 -0
- package/esm/generated/models/ContractType.js +8 -0
- package/esm/generated/models/CreateTransactionExportRequest.d.ts +11 -0
- package/esm/generated/models/CurrencyCode.d.ts +18 -0
- package/esm/generated/models/CurrencyCode.js +19 -0
- package/esm/generated/models/EVMInput.d.ts +14 -0
- package/esm/generated/models/EVMOutput.d.ts +14 -0
- package/esm/generated/models/Erc1155Token.d.ts +19 -0
- package/esm/generated/models/Erc1155Token.js +8 -0
- package/esm/generated/models/Erc1155TokenBalance.d.ts +28 -0
- package/esm/generated/models/Erc1155TokenBalance.js +8 -0
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +20 -0
- package/esm/generated/models/Erc1155Transfer.d.ts +27 -0
- package/esm/generated/models/Erc1155TransferDetails.d.ts +11 -0
- package/esm/generated/models/Erc20Token.d.ts +38 -0
- package/esm/generated/models/Erc20Token.js +8 -0
- package/esm/generated/models/Erc20TokenBalance.d.ts +51 -0
- package/esm/generated/models/Erc20TokenBalance.js +8 -0
- package/esm/generated/models/Erc20Transfer.d.ts +27 -0
- package/esm/generated/models/Erc20TransferDetails.d.ts +11 -0
- package/esm/generated/models/Erc721Token.d.ts +31 -0
- package/esm/generated/models/Erc721Token.js +8 -0
- package/esm/generated/models/Erc721TokenBalance.d.ts +35 -0
- package/esm/generated/models/Erc721TokenBalance.js +8 -0
- package/esm/generated/models/Erc721TokenMetadata.d.ts +19 -0
- package/esm/generated/models/Erc721Transfer.d.ts +26 -0
- package/esm/generated/models/Erc721TransferDetails.d.ts +10 -0
- package/esm/generated/models/ErcType.d.ts +8 -0
- package/esm/generated/models/ErcType.js +9 -0
- package/esm/generated/models/EvmNetworkOptions.d.ts +6 -0
- package/esm/generated/models/FullNativeTransactionDetails.d.ts +62 -0
- package/esm/generated/models/GetBlockResponse.d.ts +49 -0
- package/esm/generated/models/GetChainResponse.d.ts +30 -0
- package/esm/generated/models/GetContractInformationResponse.d.ts +58 -0
- package/esm/generated/models/GetNativeBalanceResponse.d.ts +10 -0
- package/esm/generated/models/GetTransactionResponse.d.ts +35 -0
- package/esm/generated/models/InternalTransaction.d.ts +33 -0
- package/esm/generated/models/InternalTransactionDetails.d.ts +17 -0
- package/esm/generated/models/InternalTransactionOpCall.d.ts +11 -0
- package/esm/generated/models/InternalTransactionOpCall.js +12 -0
- package/esm/generated/models/ListBlocksResponse.d.ts +11 -0
- package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +7 -0
- package/esm/generated/models/ListCChainExportTxsResponse.d.ts +11 -0
- package/esm/generated/models/ListCChainImportTxsResponse.d.ts +11 -0
- package/esm/generated/models/ListChainsResponse.d.ts +7 -0
- package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +16 -0
- package/esm/generated/models/ListErc1155BalancesResponse.d.ts +14 -0
- package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +11 -0
- package/esm/generated/models/ListErc20BalancesResponse.d.ts +14 -0
- package/esm/generated/models/ListErc20TransactionsResponse.d.ts +11 -0
- package/esm/generated/models/ListErc721BalancesResponse.d.ts +14 -0
- package/esm/generated/models/ListErc721TransactionsResponse.d.ts +11 -0
- package/esm/generated/models/ListInternalTransactionsResponse.d.ts +11 -0
- package/esm/generated/models/ListListingsResponse.d.ts +11 -0
- package/esm/generated/models/ListNativeTransactionsResponse.d.ts +11 -0
- package/esm/generated/models/ListNftCollectionWithMetricsResponse.d.ts +11 -0
- package/esm/generated/models/ListPChainBalancesResponse.d.ts +7 -0
- package/esm/generated/models/ListPChainTransactionsResponse.d.ts +11 -0
- package/esm/generated/models/ListPChainUtxosResponse.d.ts +11 -0
- package/esm/generated/models/ListTransactionDetailsResponse.d.ts +11 -0
- package/esm/generated/models/ListTransfersResponse.d.ts +13 -0
- package/esm/generated/models/ListUtxosResponse.d.ts +11 -0
- package/esm/generated/models/ListXChainBalancesResponse.d.ts +7 -0
- package/esm/generated/models/ListXChainTransactionsResponse.d.ts +12 -0
- package/esm/generated/models/ListXChainVerticesResponse.d.ts +11 -0
- package/esm/generated/models/ListingCurrencyType.d.ts +6 -0
- package/esm/generated/models/ListingCurrencyType.js +7 -0
- package/esm/generated/models/ListingEventType.d.ts +8 -0
- package/esm/generated/models/ListingEventType.js +9 -0
- package/esm/generated/models/ListingResponse.d.ts +19 -0
- package/esm/generated/models/ListingType.d.ts +6 -0
- package/esm/generated/models/ListingType.js +7 -0
- package/esm/generated/models/ListingsSortByOption.d.ts +5 -0
- package/esm/generated/models/ListingsSortByOption.js +6 -0
- package/esm/generated/models/Method.d.ts +24 -0
- package/esm/generated/models/Money.d.ts +14 -0
- package/esm/generated/models/NativeTokenBalance.d.ts +41 -0
- package/esm/generated/models/NativeTransaction.d.ts +55 -0
- package/esm/generated/models/Network.d.ts +6 -0
- package/esm/generated/models/Network.js +7 -0
- package/esm/generated/models/NetworkToken.d.ts +23 -0
- package/esm/generated/models/NetworkTokenDetails.d.ts +18 -0
- package/esm/generated/models/NftCollection.d.ts +22 -0
- package/esm/generated/models/NftCollectionWithMetrics.d.ts +24 -0
- package/esm/generated/models/NftFilterOptionsProperty.d.ts +10 -0
- package/esm/generated/models/NftSearchBody.d.ts +10 -0
- package/esm/generated/models/NftSearchResultTypeOption.d.ts +6 -0
- package/esm/generated/models/NftSearchResultTypeOption.js +7 -0
- package/esm/generated/models/NftTokenMetadataStatus.d.ts +15 -0
- package/esm/generated/models/NftTokenMetadataStatus.js +16 -0
- package/esm/generated/models/OpenListingEventResponse.d.ts +17 -0
- package/esm/generated/models/OperationStatus.d.ts +8 -0
- package/esm/generated/models/OperationStatus.js +9 -0
- package/esm/generated/models/OperationStatusCode.d.ts +7 -0
- package/esm/generated/models/OperationStatusCode.js +8 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +15 -0
- package/esm/generated/models/OperationTransactionExportMetadata.d.ts +18 -0
- package/esm/generated/models/OperationType.d.ts +5 -0
- package/esm/generated/models/OperationType.js +6 -0
- package/esm/generated/models/PChainAsset.d.ts +6 -0
- package/esm/generated/models/PChainBalance.d.ts +30 -0
- package/esm/generated/models/PChainConsumedUtxo.d.ts +11 -0
- package/esm/generated/models/PChainEmittedUtxo.d.ts +19 -0
- package/esm/generated/models/PChainId.d.ts +6 -0
- package/esm/generated/models/PChainId.js +7 -0
- package/esm/generated/models/PChainTransaction.d.ts +69 -0
- package/esm/generated/models/PChainUtxo.d.ts +22 -0
- package/esm/generated/models/PaginationParams.d.ts +13 -0
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +6 -0
- package/esm/generated/models/ProposerDetails.d.ts +9 -0
- package/esm/generated/models/PurchaseListingEventResponse.d.ts +17 -0
- package/esm/generated/models/ResourceLink.d.ts +8 -0
- package/esm/generated/models/ResourceLinkType.d.ts +18 -0
- package/esm/generated/models/ResourceLinkType.js +19 -0
- package/esm/generated/models/ReviewStatus.d.ts +6 -0
- package/esm/generated/models/ReviewStatus.js +7 -0
- package/esm/generated/models/RichAddress.d.ts +26 -0
- package/esm/generated/models/SortOrder.d.ts +6 -0
- package/esm/generated/models/SortOrder.js +7 -0
- package/esm/generated/models/TokenWithPrice.d.ts +28 -0
- package/esm/generated/models/TransactionDetails.d.ts +36 -0
- package/esm/generated/models/TransactionMethodType.d.ts +7 -0
- package/esm/generated/models/TransactionMethodType.js +8 -0
- package/esm/generated/models/TransactionStatus.d.ts +6 -0
- package/esm/generated/models/TransactionStatus.js +7 -0
- package/esm/generated/models/TransactionVertexDetail.d.ts +16 -0
- package/esm/generated/models/TrendingTimeframe.d.ts +7 -0
- package/esm/generated/models/TrendingTimeframe.js +8 -0
- package/esm/generated/models/UtilityAddresses.d.ts +5 -0
- package/esm/generated/models/Utxo.d.ts +60 -0
- package/esm/generated/models/UtxoCredential.d.ts +12 -0
- package/esm/generated/models/VmName.d.ts +7 -0
- package/esm/generated/models/VmName.js +8 -0
- package/esm/generated/models/XChainAssetBalance.d.ts +29 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +32 -0
- package/esm/generated/models/XChainBalances.d.ts +17 -0
- package/esm/generated/models/XChainId.d.ts +6 -0
- package/esm/generated/models/XChainId.js +7 -0
- package/esm/generated/models/XChainLinearTransaction.d.ts +67 -0
- package/esm/generated/models/XChainLinearTransaction.js +9 -0
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +64 -0
- package/esm/generated/models/XChainNonLinearTransaction.js +9 -0
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +30 -0
- package/esm/generated/models/XChainVertex.d.ts +12 -0
- package/esm/generated/services/EvmService.d.ts +734 -0
- package/esm/generated/services/EvmService.js +518 -0
- package/esm/generated/services/HealthCheckService.d.ts +20 -0
- package/esm/generated/services/HealthCheckService.js +16 -0
- package/esm/generated/services/OperationsService.d.ts +30 -0
- package/esm/generated/services/OperationsService.js +28 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +387 -0
- package/esm/generated/services/PrimaryNetworkService.js +273 -0
- package/esm/index.d.ts +139 -0
- package/esm/index.js +46 -0
- package/package.json +12 -15
- package/CHANGELOG.md +0 -218
- package/__tests__/glacier-sdk.test.js +0 -7
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/src/generated/models.d.ts +0 -385
- package/dist/src/generated/models.d.ts.map +0 -1
- package/dist/src/glacierClient.d.ts +0 -93
- package/dist/src/glacierClient.d.ts.map +0 -1
- package/dist/src/types.d.ts +0 -13
- package/dist/src/types.d.ts.map +0 -1
- package/index.ts +0 -2
- package/rollup.config.js +0 -33
- package/src/generated/models.ts +0 -460
- package/src/glacierClient.ts +0 -190
- package/src/types.ts +0 -6
- package/swagger/generateModels.js +0 -40
- package/tsconfig.json +0 -7
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Erc721TokenBalance } from './Erc721TokenBalance.js';
|
|
2
|
+
|
|
3
|
+
type ListErc721BalancesResponse = {
|
|
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
|
+
/**
|
|
9
|
+
* The list of ERC-721 token balances for the address.
|
|
10
|
+
*/
|
|
11
|
+
erc721TokenBalances: Array<Erc721TokenBalance>;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { ListErc721BalancesResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Erc721Transfer } from './Erc721Transfer.js';
|
|
2
|
+
|
|
3
|
+
type ListErc721TransactionsResponse = {
|
|
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<Erc721Transfer>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListErc721TransactionsResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InternalTransaction } from './InternalTransaction.js';
|
|
2
|
+
|
|
3
|
+
type ListInternalTransactionsResponse = {
|
|
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<InternalTransaction>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListInternalTransactionsResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ListingResponse } from './ListingResponse.js';
|
|
2
|
+
|
|
3
|
+
type ListListingsResponse = {
|
|
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
|
+
listings: Array<ListingResponse>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListListingsResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NativeTransaction } from './NativeTransaction.js';
|
|
2
|
+
|
|
3
|
+
type ListNativeTransactionsResponse = {
|
|
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<NativeTransaction>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListNativeTransactionsResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
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 };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PChainTransaction } from './PChainTransaction.js';
|
|
2
|
+
|
|
3
|
+
type ListPChainTransactionsResponse = {
|
|
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<PChainTransaction>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListPChainTransactionsResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PChainUtxo } from './PChainUtxo.js';
|
|
2
|
+
|
|
3
|
+
type ListPChainUtxosResponse = {
|
|
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
|
+
utxos: Array<PChainUtxo>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListPChainUtxosResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TransactionDetails } from './TransactionDetails.js';
|
|
2
|
+
|
|
3
|
+
type ListTransactionDetailsResponse = {
|
|
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<TransactionDetails>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListTransactionDetailsResponse };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Erc1155Transfer } from './Erc1155Transfer.js';
|
|
2
|
+
import { Erc20Transfer } from './Erc20Transfer.js';
|
|
3
|
+
import { Erc721Transfer } from './Erc721Transfer.js';
|
|
4
|
+
|
|
5
|
+
type ListTransfersResponse = {
|
|
6
|
+
/**
|
|
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.
|
|
8
|
+
*/
|
|
9
|
+
nextPageToken?: string;
|
|
10
|
+
transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { ListTransfersResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Utxo } from './Utxo.js';
|
|
2
|
+
|
|
3
|
+
type ListUtxosResponse = {
|
|
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
|
+
utxos: Array<Utxo>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListUtxosResponse };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { XChainLinearTransaction } from './XChainLinearTransaction.js';
|
|
2
|
+
import { XChainNonLinearTransaction } from './XChainNonLinearTransaction.js';
|
|
3
|
+
|
|
4
|
+
type ListXChainTransactionsResponse = {
|
|
5
|
+
/**
|
|
6
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
7
|
+
*/
|
|
8
|
+
nextPageToken?: string;
|
|
9
|
+
transactions: Array<(XChainNonLinearTransaction | XChainLinearTransaction)>;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { ListXChainTransactionsResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { XChainVertex } from './XChainVertex.js';
|
|
2
|
+
|
|
3
|
+
type ListXChainVerticesResponse = {
|
|
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
|
+
vertices: Array<XChainVertex>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListXChainVerticesResponse };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var ListingEventType = /* @__PURE__ */ ((ListingEventType2) => {
|
|
2
|
+
ListingEventType2["OPEN_LISTING"] = "OPEN_LISTING";
|
|
3
|
+
ListingEventType2["CANCEL_LISTING"] = "CANCEL_LISTING";
|
|
4
|
+
ListingEventType2["PURCHASE_LISTING"] = "PURCHASE_LISTING";
|
|
5
|
+
ListingEventType2["CLOSE_AUCTION"] = "CLOSE_AUCTION";
|
|
6
|
+
return ListingEventType2;
|
|
7
|
+
})(ListingEventType || {});
|
|
8
|
+
|
|
9
|
+
export { ListingEventType };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CancelListingEventResponse } from './CancelListingEventResponse.js';
|
|
2
|
+
import { CloseAuctionEventResponse } from './CloseAuctionEventResponse.js';
|
|
3
|
+
import { NftCollection } from './NftCollection.js';
|
|
4
|
+
import { OpenListingEventResponse } from './OpenListingEventResponse.js';
|
|
5
|
+
import { PurchaseListingEventResponse } from './PurchaseListingEventResponse.js';
|
|
6
|
+
|
|
7
|
+
type ListingResponse = {
|
|
8
|
+
marketplaceName: string;
|
|
9
|
+
chainId: string;
|
|
10
|
+
collection: NftCollection;
|
|
11
|
+
token: any;
|
|
12
|
+
listingId: string;
|
|
13
|
+
openListingEvents?: Array<OpenListingEventResponse>;
|
|
14
|
+
cancelListingEvents?: Array<CancelListingEventResponse>;
|
|
15
|
+
purchaseListingEvents?: Array<PurchaseListingEventResponse>;
|
|
16
|
+
closeAuctionEvents?: Array<CloseAuctionEventResponse>;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { ListingResponse };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { TransactionMethodType } from './TransactionMethodType.js';
|
|
2
|
+
|
|
3
|
+
type Method = {
|
|
4
|
+
/**
|
|
5
|
+
* The contract call type.
|
|
6
|
+
* NATIVE_TRANSFER indicates a transfer of the
|
|
7
|
+
* native token without any smart-contract interaction.
|
|
8
|
+
* CONTRACT_CALL indicates a smart-contract
|
|
9
|
+
* interaction.
|
|
10
|
+
* CONTRACT_CREATION indicates a smart-contract
|
|
11
|
+
* creation.
|
|
12
|
+
*/
|
|
13
|
+
callType: TransactionMethodType;
|
|
14
|
+
/**
|
|
15
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
16
|
+
*/
|
|
17
|
+
methodHash: string;
|
|
18
|
+
/**
|
|
19
|
+
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
20
|
+
*/
|
|
21
|
+
methodName?: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { Method };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Money } from './Money.js';
|
|
2
|
+
|
|
3
|
+
type NativeTokenBalance = {
|
|
4
|
+
/**
|
|
5
|
+
* The contract name.
|
|
6
|
+
*/
|
|
7
|
+
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* The contract symbol.
|
|
10
|
+
*/
|
|
11
|
+
symbol: string;
|
|
12
|
+
/**
|
|
13
|
+
* The number of decimals the token uses. For example `6`,
|
|
14
|
+
* means to divide the token amount by `1000000` to get its user
|
|
15
|
+
* representation.
|
|
16
|
+
*/
|
|
17
|
+
decimals: number;
|
|
18
|
+
/**
|
|
19
|
+
* The logo uri for the address.
|
|
20
|
+
*/
|
|
21
|
+
logoUri?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The evm chain id.
|
|
24
|
+
*/
|
|
25
|
+
chainId: string;
|
|
26
|
+
/**
|
|
27
|
+
* The token price, if available.
|
|
28
|
+
*/
|
|
29
|
+
price?: Money;
|
|
30
|
+
/**
|
|
31
|
+
* The address balance for the token, in units specified by the
|
|
32
|
+
* `decimals` value for the contract.
|
|
33
|
+
*/
|
|
34
|
+
balance: string;
|
|
35
|
+
/**
|
|
36
|
+
* The monetary value of the balance, if a price is available for the token.
|
|
37
|
+
*/
|
|
38
|
+
balanceValue?: Money;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export { NativeTokenBalance };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Method } from './Method.js';
|
|
2
|
+
import { RichAddress } from './RichAddress.js';
|
|
3
|
+
|
|
4
|
+
type NativeTransaction = {
|
|
5
|
+
/**
|
|
6
|
+
* The block number on the chain.
|
|
7
|
+
*/
|
|
8
|
+
blockNumber: string;
|
|
9
|
+
/**
|
|
10
|
+
* The block finality timestamp.
|
|
11
|
+
*/
|
|
12
|
+
blockTimestamp: number;
|
|
13
|
+
/**
|
|
14
|
+
* The block hash identifier.
|
|
15
|
+
*/
|
|
16
|
+
blockHash: string;
|
|
17
|
+
/**
|
|
18
|
+
* The index at which the transaction occured in the block (0-indexed).
|
|
19
|
+
*/
|
|
20
|
+
blockIndex: number;
|
|
21
|
+
/**
|
|
22
|
+
* The transaction hash identifier.
|
|
23
|
+
*/
|
|
24
|
+
txHash: string;
|
|
25
|
+
/**
|
|
26
|
+
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
27
|
+
*/
|
|
28
|
+
txStatus: string;
|
|
29
|
+
/**
|
|
30
|
+
* The transaction type.
|
|
31
|
+
*/
|
|
32
|
+
txType: number;
|
|
33
|
+
/**
|
|
34
|
+
* The gas limit set for the transaction.
|
|
35
|
+
*/
|
|
36
|
+
gasLimit: string;
|
|
37
|
+
/**
|
|
38
|
+
* The amount of gas used.
|
|
39
|
+
*/
|
|
40
|
+
gasUsed: string;
|
|
41
|
+
/**
|
|
42
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
43
|
+
*/
|
|
44
|
+
gasPrice: string;
|
|
45
|
+
/**
|
|
46
|
+
* The nonce used by the sender of the transaction.
|
|
47
|
+
*/
|
|
48
|
+
nonce: string;
|
|
49
|
+
from: RichAddress;
|
|
50
|
+
to: RichAddress;
|
|
51
|
+
method?: Method;
|
|
52
|
+
value: string;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export { NativeTransaction };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type NetworkToken = {
|
|
2
|
+
/**
|
|
3
|
+
* The contract name.
|
|
4
|
+
*/
|
|
5
|
+
name: string;
|
|
6
|
+
/**
|
|
7
|
+
* The contract symbol.
|
|
8
|
+
*/
|
|
9
|
+
symbol: string;
|
|
10
|
+
/**
|
|
11
|
+
* The number of decimals the token uses. For example `6`,
|
|
12
|
+
* means to divide the token amount by `1000000` to get its user
|
|
13
|
+
* representation.
|
|
14
|
+
*/
|
|
15
|
+
decimals: number;
|
|
16
|
+
/**
|
|
17
|
+
* The logo uri for the address.
|
|
18
|
+
*/
|
|
19
|
+
logoUri?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { NetworkToken };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Money } from './Money.js';
|
|
2
|
+
import { NetworkToken } from './NetworkToken.js';
|
|
3
|
+
|
|
4
|
+
type NetworkTokenDetails = {
|
|
5
|
+
networkToken: NetworkToken;
|
|
6
|
+
/**
|
|
7
|
+
* The current token price, if available.
|
|
8
|
+
*/
|
|
9
|
+
currentPrice?: Money;
|
|
10
|
+
/**
|
|
11
|
+
* The historical token price at the time the transaction
|
|
12
|
+
* occured, if available. Note, this is only provided if the transaction
|
|
13
|
+
* occured more than 24 hours ago.
|
|
14
|
+
*/
|
|
15
|
+
historicalPrice?: Money;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { NetworkTokenDetails };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ErcType } from './ErcType.js';
|
|
2
|
+
|
|
3
|
+
type NftCollection = {
|
|
4
|
+
/**
|
|
5
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
6
|
+
*/
|
|
7
|
+
address: string;
|
|
8
|
+
/**
|
|
9
|
+
* The contract name.
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* The contract symbol.
|
|
14
|
+
*/
|
|
15
|
+
symbol: string;
|
|
16
|
+
ercType: ErcType;
|
|
17
|
+
bannerUri?: string;
|
|
18
|
+
logoUri?: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { NftCollection };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CollectionMetrics } from './CollectionMetrics.js';
|
|
2
|
+
import { ErcType } from './ErcType.js';
|
|
3
|
+
|
|
4
|
+
type NftCollectionWithMetrics = {
|
|
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
|
+
metrics: CollectionMetrics;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { NftCollectionWithMetrics };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NftSearchResultTypeOption } from './NftSearchResultTypeOption.js';
|
|
2
|
+
|
|
3
|
+
type NftFilterOptionsProperty = {
|
|
4
|
+
/**
|
|
5
|
+
* Filters search results by collection or token.
|
|
6
|
+
*/
|
|
7
|
+
resultType: NftSearchResultTypeOption;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { NftFilterOptionsProperty };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NftFilterOptionsProperty } from './NftFilterOptionsProperty.js';
|
|
2
|
+
import { PaginationParams } from './PaginationParams.js';
|
|
3
|
+
|
|
4
|
+
type NftSearchBody = {
|
|
5
|
+
searchQuery: string;
|
|
6
|
+
paginationParams?: PaginationParams;
|
|
7
|
+
filterOptions: NftFilterOptionsProperty;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { NftSearchBody };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var NftSearchResultTypeOption = /* @__PURE__ */ ((NftSearchResultTypeOption2) => {
|
|
2
|
+
NftSearchResultTypeOption2["TOKEN"] = "token";
|
|
3
|
+
NftSearchResultTypeOption2["COLLECTION"] = "collection";
|
|
4
|
+
return NftSearchResultTypeOption2;
|
|
5
|
+
})(NftSearchResultTypeOption || {});
|
|
6
|
+
|
|
7
|
+
export { NftSearchResultTypeOption };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare enum NftTokenMetadataStatus {
|
|
2
|
+
UNKNOWN = "UNKNOWN",
|
|
3
|
+
MISSING_TOKEN = "MISSING_TOKEN",
|
|
4
|
+
INVALID_TOKEN_URI = "INVALID_TOKEN_URI",
|
|
5
|
+
INVALID_TOKEN_URI_SCHEME = "INVALID_TOKEN_URI_SCHEME",
|
|
6
|
+
UNREACHABLE_TOKEN_URI = "UNREACHABLE_TOKEN_URI",
|
|
7
|
+
THROTTLED_TOKEN_URI = "THROTTLED_TOKEN_URI",
|
|
8
|
+
METADATA_CONTENT_TOO_LARGE = "METADATA_CONTENT_TOO_LARGE",
|
|
9
|
+
INVALID_METADATA = "INVALID_METADATA",
|
|
10
|
+
INVALID_METADATA_JSON = "INVALID_METADATA_JSON",
|
|
11
|
+
INDEXED = "INDEXED",
|
|
12
|
+
UNINDEXED = "UNINDEXED"
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { NftTokenMetadataStatus };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var NftTokenMetadataStatus = /* @__PURE__ */ ((NftTokenMetadataStatus2) => {
|
|
2
|
+
NftTokenMetadataStatus2["UNKNOWN"] = "UNKNOWN";
|
|
3
|
+
NftTokenMetadataStatus2["MISSING_TOKEN"] = "MISSING_TOKEN";
|
|
4
|
+
NftTokenMetadataStatus2["INVALID_TOKEN_URI"] = "INVALID_TOKEN_URI";
|
|
5
|
+
NftTokenMetadataStatus2["INVALID_TOKEN_URI_SCHEME"] = "INVALID_TOKEN_URI_SCHEME";
|
|
6
|
+
NftTokenMetadataStatus2["UNREACHABLE_TOKEN_URI"] = "UNREACHABLE_TOKEN_URI";
|
|
7
|
+
NftTokenMetadataStatus2["THROTTLED_TOKEN_URI"] = "THROTTLED_TOKEN_URI";
|
|
8
|
+
NftTokenMetadataStatus2["METADATA_CONTENT_TOO_LARGE"] = "METADATA_CONTENT_TOO_LARGE";
|
|
9
|
+
NftTokenMetadataStatus2["INVALID_METADATA"] = "INVALID_METADATA";
|
|
10
|
+
NftTokenMetadataStatus2["INVALID_METADATA_JSON"] = "INVALID_METADATA_JSON";
|
|
11
|
+
NftTokenMetadataStatus2["INDEXED"] = "INDEXED";
|
|
12
|
+
NftTokenMetadataStatus2["UNINDEXED"] = "UNINDEXED";
|
|
13
|
+
return NftTokenMetadataStatus2;
|
|
14
|
+
})(NftTokenMetadataStatus || {});
|
|
15
|
+
|
|
16
|
+
export { NftTokenMetadataStatus };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Address } from './Address.js';
|
|
2
|
+
import { ListingCurrencyType } from './ListingCurrencyType.js';
|
|
3
|
+
import { ListingType } from './ListingType.js';
|
|
4
|
+
import { TokenWithPrice } from './TokenWithPrice.js';
|
|
5
|
+
|
|
6
|
+
type OpenListingEventResponse = {
|
|
7
|
+
eventTimestamp: number;
|
|
8
|
+
listingType: ListingType;
|
|
9
|
+
listingPrice?: string;
|
|
10
|
+
listingCurrencyType: ListingCurrencyType;
|
|
11
|
+
listingCurrencyInfo: TokenWithPrice;
|
|
12
|
+
sellerAddress: Address;
|
|
13
|
+
startingPrice?: string;
|
|
14
|
+
auctionCloseTimestamp?: number;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { OpenListingEventResponse };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var OperationStatus = /* @__PURE__ */ ((OperationStatus2) => {
|
|
2
|
+
OperationStatus2["RUNNING"] = "RUNNING";
|
|
3
|
+
OperationStatus2["COMPLETED"] = "COMPLETED";
|
|
4
|
+
OperationStatus2["COMPLETED_WITH_WARNING"] = "COMPLETED_WITH_WARNING";
|
|
5
|
+
OperationStatus2["FAILED"] = "FAILED";
|
|
6
|
+
return OperationStatus2;
|
|
7
|
+
})(OperationStatus || {});
|
|
8
|
+
|
|
9
|
+
export { OperationStatus };
|