@avalabs/glacier-sdk 2.8.0-alpha.80 → 2.8.0-alpha.82
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 +2614 -1012
- package/dist/index.js +1428 -207
- 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/CPBlockchainId.d.ts +7 -0
- package/esm/generated/models/CPBlockchainId.js +8 -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 +22 -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 +27 -0
- package/esm/generated/models/Erc721Token.js +8 -0
- package/esm/generated/models/Erc721TokenBalance.d.ts +31 -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 +22 -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 +11 -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/OperationMetadata.d.ts +3 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +14 -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 +9 -0
- package/esm/generated/models/PChainEmittedUtxo.d.ts +13 -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 +45 -0
- package/esm/generated/models/PChainUtxo.d.ts +20 -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/XChainSharedAssetBalance.d.ts +30 -0
- package/esm/generated/models/XChainTransaction.d.ts +51 -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 +359 -0
- package/esm/generated/services/PrimaryNetworkService.js +252 -0
- package/esm/index.d.ts +135 -2
- package/esm/index.js +41 -2
- package/package.json +6 -6
- package/esm/generated/models.d.ts +0 -1351
- package/esm/generated/models.js +0 -148
- package/esm/glacierClient.d.ts +0 -128
- package/esm/glacierClient.js +0 -94
- package/esm/types.d.ts +0 -14
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Erc721TokenMetadata } from './Erc721TokenMetadata.js';
|
|
2
|
+
|
|
3
|
+
type Erc721Token = {
|
|
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: Erc721Token.ercType;
|
|
17
|
+
tokenId: string;
|
|
18
|
+
tokenUri: string;
|
|
19
|
+
metadata: Erc721TokenMetadata;
|
|
20
|
+
};
|
|
21
|
+
declare namespace Erc721Token {
|
|
22
|
+
enum ercType {
|
|
23
|
+
ERC_721 = "ERC-721"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { Erc721Token };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Erc721TokenMetadata } from './Erc721TokenMetadata.js';
|
|
2
|
+
|
|
3
|
+
type Erc721TokenBalance = {
|
|
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: Erc721TokenBalance.ercType;
|
|
17
|
+
tokenId: string;
|
|
18
|
+
tokenUri: string;
|
|
19
|
+
metadata: Erc721TokenMetadata;
|
|
20
|
+
/**
|
|
21
|
+
* The evm chain id.
|
|
22
|
+
*/
|
|
23
|
+
chainId: string;
|
|
24
|
+
};
|
|
25
|
+
declare namespace Erc721TokenBalance {
|
|
26
|
+
enum ercType {
|
|
27
|
+
ERC_721 = "ERC-721"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { Erc721TokenBalance };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var Erc721TokenBalance;
|
|
2
|
+
((Erc721TokenBalance2) => {
|
|
3
|
+
((ercType2) => {
|
|
4
|
+
ercType2["ERC_721"] = "ERC-721";
|
|
5
|
+
})(Erc721TokenBalance2.ercType || (Erc721TokenBalance2.ercType = {}));
|
|
6
|
+
})(Erc721TokenBalance || (Erc721TokenBalance = {}));
|
|
7
|
+
|
|
8
|
+
export { Erc721TokenBalance };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NftTokenMetadataStatus } from './NftTokenMetadataStatus.js';
|
|
2
|
+
|
|
3
|
+
type Erc721TokenMetadata = {
|
|
4
|
+
/**
|
|
5
|
+
* The metadata indexing status of the nft.
|
|
6
|
+
*/
|
|
7
|
+
indexStatus: NftTokenMetadataStatus;
|
|
8
|
+
metadataLastUpdatedTimestamp?: number;
|
|
9
|
+
name?: string;
|
|
10
|
+
symbol?: string;
|
|
11
|
+
imageUri?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
animationUri?: string;
|
|
14
|
+
externalUrl?: string;
|
|
15
|
+
background?: string;
|
|
16
|
+
attributes?: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { Erc721TokenMetadata };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Erc721Token } from './Erc721Token.js';
|
|
2
|
+
import { RichAddress } from './RichAddress.js';
|
|
3
|
+
|
|
4
|
+
type Erc721Transfer = {
|
|
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 transaction hash identifier.
|
|
19
|
+
*/
|
|
20
|
+
txHash: string;
|
|
21
|
+
from: RichAddress;
|
|
22
|
+
to: RichAddress;
|
|
23
|
+
erc721Token: Erc721Token;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { Erc721Transfer };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Method } from './Method.js';
|
|
2
|
+
import { RichAddress } from './RichAddress.js';
|
|
3
|
+
|
|
4
|
+
type FullNativeTransactionDetails = {
|
|
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
|
+
* The data sent for the transaction.
|
|
55
|
+
*/
|
|
56
|
+
input: string;
|
|
57
|
+
baseFeePerGas: string;
|
|
58
|
+
maxFeePerGas?: string;
|
|
59
|
+
maxPriorityFeePerGas?: string;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export { FullNativeTransactionDetails };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
type GetBlockResponse = {
|
|
2
|
+
/**
|
|
3
|
+
* The block number on the chain.
|
|
4
|
+
*/
|
|
5
|
+
blockNumber: string;
|
|
6
|
+
/**
|
|
7
|
+
* The block finality timestamp.
|
|
8
|
+
*/
|
|
9
|
+
blockTimestamp: number;
|
|
10
|
+
/**
|
|
11
|
+
* The block hash identifier.
|
|
12
|
+
*/
|
|
13
|
+
blockHash: string;
|
|
14
|
+
/**
|
|
15
|
+
* The number of evm transactions in the block.
|
|
16
|
+
*/
|
|
17
|
+
txCount: number;
|
|
18
|
+
/**
|
|
19
|
+
* The number of atomic transactions in the block.
|
|
20
|
+
*/
|
|
21
|
+
atomicTxCount: number;
|
|
22
|
+
/**
|
|
23
|
+
* The base gas fee for a transaction to be included in the block.
|
|
24
|
+
*/
|
|
25
|
+
baseFee: string;
|
|
26
|
+
/**
|
|
27
|
+
* The gas used for transactions in the block.
|
|
28
|
+
*/
|
|
29
|
+
gasUsed: string;
|
|
30
|
+
/**
|
|
31
|
+
* The total gas limit set for transactions in the block.
|
|
32
|
+
*/
|
|
33
|
+
gasLimit: string;
|
|
34
|
+
gasCost: string;
|
|
35
|
+
/**
|
|
36
|
+
* The hash of the parent block.
|
|
37
|
+
*/
|
|
38
|
+
parentHash: string;
|
|
39
|
+
/**
|
|
40
|
+
* The amount of fees spent/burned for transactions in the block.
|
|
41
|
+
*/
|
|
42
|
+
feesSpent: string;
|
|
43
|
+
/**
|
|
44
|
+
* The cumulative number of transactions for the chain including this block.
|
|
45
|
+
*/
|
|
46
|
+
cumulativeTransactions: string;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export { GetBlockResponse };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { NetworkToken } from './NetworkToken.js';
|
|
2
|
+
import { UtilityAddresses } from './UtilityAddresses.js';
|
|
3
|
+
import { VmName } from './VmName.js';
|
|
4
|
+
|
|
5
|
+
type GetChainResponse = {
|
|
6
|
+
chainId: string;
|
|
7
|
+
chainName: string;
|
|
8
|
+
description: string;
|
|
9
|
+
platformChainId?: string;
|
|
10
|
+
subnetId?: string;
|
|
11
|
+
vmId?: string;
|
|
12
|
+
vmName: VmName;
|
|
13
|
+
explorerUrl?: string;
|
|
14
|
+
rpcUrl: string;
|
|
15
|
+
wsUrl?: string;
|
|
16
|
+
isTestnet: boolean;
|
|
17
|
+
utilityAddresses?: UtilityAddresses;
|
|
18
|
+
networkToken: NetworkToken;
|
|
19
|
+
chainLogoUri?: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { GetChainResponse };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { AssetType } from './AssetType.js';
|
|
2
|
+
import { ContractType } from './ContractType.js';
|
|
3
|
+
import { ResourceLink } from './ResourceLink.js';
|
|
4
|
+
import { ReviewStatus } from './ReviewStatus.js';
|
|
5
|
+
|
|
6
|
+
type GetContractInformationResponse = {
|
|
7
|
+
/**
|
|
8
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
9
|
+
*/
|
|
10
|
+
address: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The contract name.
|
|
14
|
+
*/
|
|
15
|
+
name?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The contract symbol.
|
|
18
|
+
*/
|
|
19
|
+
symbol?: string;
|
|
20
|
+
contractType: ContractType;
|
|
21
|
+
assetType?: AssetType;
|
|
22
|
+
officialSite?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Any labels given to the contract.
|
|
25
|
+
*/
|
|
26
|
+
tags?: Array<any[]>;
|
|
27
|
+
email?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The evm chain id.
|
|
30
|
+
*/
|
|
31
|
+
chainId: number;
|
|
32
|
+
/**
|
|
33
|
+
* The number of decimals the token uses. For example `6`,
|
|
34
|
+
* means to divide the token amount by `1000000` to get its user
|
|
35
|
+
* representation.
|
|
36
|
+
*/
|
|
37
|
+
decimals?: number;
|
|
38
|
+
/**
|
|
39
|
+
* The logo uri for the address.
|
|
40
|
+
*/
|
|
41
|
+
logoUri?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The hex color code assigned to the token.
|
|
44
|
+
*/
|
|
45
|
+
tokenColor?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Array of resource links.
|
|
48
|
+
*/
|
|
49
|
+
resourceLinks?: Array<ResourceLink>;
|
|
50
|
+
/**
|
|
51
|
+
* Status of contract information submission. All submitted
|
|
52
|
+
* contracts will be reviewed for approval before being inserted into the
|
|
53
|
+
* Glacier repository.
|
|
54
|
+
*/
|
|
55
|
+
reviewStatus: ReviewStatus;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export { GetContractInformationResponse };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Erc1155TransferDetails } from './Erc1155TransferDetails.js';
|
|
2
|
+
import { Erc20TransferDetails } from './Erc20TransferDetails.js';
|
|
3
|
+
import { Erc721TransferDetails } from './Erc721TransferDetails.js';
|
|
4
|
+
import { FullNativeTransactionDetails } from './FullNativeTransactionDetails.js';
|
|
5
|
+
import { InternalTransactionDetails } from './InternalTransactionDetails.js';
|
|
6
|
+
import { NetworkTokenDetails } from './NetworkTokenDetails.js';
|
|
7
|
+
|
|
8
|
+
type GetTransactionResponse = {
|
|
9
|
+
/**
|
|
10
|
+
* The list of ERC-20 transfers.
|
|
11
|
+
*/
|
|
12
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
13
|
+
/**
|
|
14
|
+
* The list of ERC-721 transfers.
|
|
15
|
+
*/
|
|
16
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
17
|
+
/**
|
|
18
|
+
* The list of ERC-1155 transfers.
|
|
19
|
+
*/
|
|
20
|
+
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
21
|
+
/**
|
|
22
|
+
* The list of internal transactions. Note that this list only
|
|
23
|
+
* includes CALL and
|
|
24
|
+
* CALLCODE internal transactions that had a
|
|
25
|
+
* non-zero value and
|
|
26
|
+
* CREATE/CREATE2
|
|
27
|
+
* calls. Use a client provider to recieve a full debug trace of the
|
|
28
|
+
* transaction.
|
|
29
|
+
*/
|
|
30
|
+
internalTransactions?: Array<InternalTransactionDetails>;
|
|
31
|
+
networkTokenDetails: NetworkTokenDetails;
|
|
32
|
+
nativeTransaction: FullNativeTransactionDetails;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export { GetTransactionResponse };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { InternalTransactionOpCall } from './InternalTransactionOpCall.js';
|
|
2
|
+
import { RichAddress } from './RichAddress.js';
|
|
3
|
+
|
|
4
|
+
type InternalTransaction = {
|
|
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 transaction hash identifier.
|
|
19
|
+
*/
|
|
20
|
+
txHash: string;
|
|
21
|
+
from: RichAddress;
|
|
22
|
+
to: RichAddress;
|
|
23
|
+
internalTxType: InternalTransactionOpCall;
|
|
24
|
+
value: string;
|
|
25
|
+
/**
|
|
26
|
+
* True if the internal transaction was reverted.
|
|
27
|
+
*/
|
|
28
|
+
isReverted: boolean;
|
|
29
|
+
gasUsed: string;
|
|
30
|
+
gasLimit: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export { InternalTransaction };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { InternalTransactionOpCall } from './InternalTransactionOpCall.js';
|
|
2
|
+
import { RichAddress } from './RichAddress.js';
|
|
3
|
+
|
|
4
|
+
type InternalTransactionDetails = {
|
|
5
|
+
from: RichAddress;
|
|
6
|
+
to: RichAddress;
|
|
7
|
+
internalTxType: InternalTransactionOpCall;
|
|
8
|
+
value: string;
|
|
9
|
+
/**
|
|
10
|
+
* True if the internal transaction was reverted.
|
|
11
|
+
*/
|
|
12
|
+
isReverted: boolean;
|
|
13
|
+
gasUsed: string;
|
|
14
|
+
gasLimit: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { InternalTransactionDetails };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var InternalTransactionOpCall = /* @__PURE__ */ ((InternalTransactionOpCall2) => {
|
|
2
|
+
InternalTransactionOpCall2["UNKNOWN"] = "UNKNOWN";
|
|
3
|
+
InternalTransactionOpCall2["CALL"] = "CALL";
|
|
4
|
+
InternalTransactionOpCall2["CREATE"] = "CREATE";
|
|
5
|
+
InternalTransactionOpCall2["CREATE2"] = "CREATE2";
|
|
6
|
+
InternalTransactionOpCall2["CALLCODE"] = "CALLCODE";
|
|
7
|
+
InternalTransactionOpCall2["DELEGATECALL"] = "DELEGATECALL";
|
|
8
|
+
InternalTransactionOpCall2["STATICCALL"] = "STATICCALL";
|
|
9
|
+
return InternalTransactionOpCall2;
|
|
10
|
+
})(InternalTransactionOpCall || {});
|
|
11
|
+
|
|
12
|
+
export { InternalTransactionOpCall };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Block } from './Block.js';
|
|
2
|
+
|
|
3
|
+
type ListBlocksResponse = {
|
|
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
|
+
blocks: Array<Block>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListBlocksResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CChainExportTransaction } from './CChainExportTransaction.js';
|
|
2
|
+
|
|
3
|
+
type ListCChainExportTxsResponse = {
|
|
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<CChainExportTransaction>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListCChainExportTxsResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
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 };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Erc1155TokenBalance } from './Erc1155TokenBalance.js';
|
|
2
|
+
import { Erc721TokenBalance } from './Erc721TokenBalance.js';
|
|
3
|
+
|
|
4
|
+
type ListCollectibleBalancesResponse = {
|
|
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
|
+
/**
|
|
10
|
+
* The list of ERC-721 and ERC-1155 token balances for the
|
|
11
|
+
* address.
|
|
12
|
+
*/
|
|
13
|
+
collectibleBalances: Array<(Erc721TokenBalance | Erc1155TokenBalance)>;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { ListCollectibleBalancesResponse };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Erc1155TokenBalance } from './Erc1155TokenBalance.js';
|
|
2
|
+
|
|
3
|
+
type ListErc1155BalancesResponse = {
|
|
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-1155 token balances for the address.
|
|
10
|
+
*/
|
|
11
|
+
erc1155TokenBalances: Array<Erc1155TokenBalance>;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { ListErc1155BalancesResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Erc1155Transfer } from './Erc1155Transfer.js';
|
|
2
|
+
|
|
3
|
+
type ListErc1155TransactionsResponse = {
|
|
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<Erc1155Transfer>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListErc1155TransactionsResponse };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Erc20TokenBalance } from './Erc20TokenBalance.js';
|
|
2
|
+
|
|
3
|
+
type ListErc20BalancesResponse = {
|
|
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-20 token balances for the address.
|
|
10
|
+
*/
|
|
11
|
+
erc20TokenBalances: Array<Erc20TokenBalance>;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { ListErc20BalancesResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Erc20Transfer } from './Erc20Transfer.js';
|
|
2
|
+
|
|
3
|
+
type ListErc20TransactionsResponse = {
|
|
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<Erc20Transfer>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListErc20TransactionsResponse };
|
|
@@ -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 };
|