@avalabs/glacier-sdk 2.8.0-alpha.9 → 2.8.0-alpha.90
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,8 @@
|
|
|
1
|
+
var OperationStatusCode = /* @__PURE__ */ ((OperationStatusCode2) => {
|
|
2
|
+
OperationStatusCode2["ERR_INVALID_REQUEST"] = "ErrInvalidRequest";
|
|
3
|
+
OperationStatusCode2["ERR_INTERNAL"] = "ErrInternal";
|
|
4
|
+
OperationStatusCode2["WARN_TRUNCATED_EXPORT"] = "WarnTruncatedExport";
|
|
5
|
+
return OperationStatusCode2;
|
|
6
|
+
})(OperationStatusCode || {});
|
|
7
|
+
|
|
8
|
+
export { OperationStatusCode };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OperationStatus } from './OperationStatus.js';
|
|
2
|
+
import { OperationTransactionExportMetadata } from './OperationTransactionExportMetadata.js';
|
|
3
|
+
import { OperationType } from './OperationType.js';
|
|
4
|
+
|
|
5
|
+
type OperationStatusResponse = {
|
|
6
|
+
operationId: string;
|
|
7
|
+
operationType: OperationType;
|
|
8
|
+
operationStatus: OperationStatus;
|
|
9
|
+
message?: string;
|
|
10
|
+
metadata: OperationTransactionExportMetadata;
|
|
11
|
+
createdAtTimestamp: number;
|
|
12
|
+
updatedAtTimestamp: number;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { OperationStatusResponse };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OperationStatusCode } from './OperationStatusCode.js';
|
|
2
|
+
|
|
3
|
+
type OperationTransactionExportMetadata = {
|
|
4
|
+
code: OperationStatusCode;
|
|
5
|
+
/**
|
|
6
|
+
* File download URL. Provided only for COMPLETED operations.
|
|
7
|
+
*/
|
|
8
|
+
downloadUrl?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The next date to use as the startDate in follow up requests
|
|
11
|
+
* if a request results in a transaction history exceeding the max size and
|
|
12
|
+
* has been reported as COMPLETED_WITH_WARNING with the warning
|
|
13
|
+
* WarnTruncatedExport.
|
|
14
|
+
*/
|
|
15
|
+
nextDate?: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { OperationTransactionExportMetadata };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PChainAsset } from './PChainAsset.js';
|
|
2
|
+
|
|
3
|
+
type PChainBalance = {
|
|
4
|
+
/**
|
|
5
|
+
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
|
|
6
|
+
*/
|
|
7
|
+
unlockedUnstaked?: Array<PChainAsset>;
|
|
8
|
+
/**
|
|
9
|
+
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
|
|
10
|
+
*/
|
|
11
|
+
unlockedStaked?: Array<PChainAsset>;
|
|
12
|
+
/**
|
|
13
|
+
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
|
|
14
|
+
*/
|
|
15
|
+
lockedPlatform?: Array<PChainAsset>;
|
|
16
|
+
/**
|
|
17
|
+
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
|
|
18
|
+
*/
|
|
19
|
+
lockedStakeable?: Array<PChainAsset>;
|
|
20
|
+
/**
|
|
21
|
+
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
|
|
22
|
+
*/
|
|
23
|
+
lockedStaked?: Array<PChainAsset>;
|
|
24
|
+
/**
|
|
25
|
+
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked. Sum of lockedPlatform and lockedStakeable. TO BE DEPRECATED.
|
|
26
|
+
*/
|
|
27
|
+
lockedUnstaked?: Array<PChainAsset>;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export { PChainBalance };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type PChainEmittedUtxo = {
|
|
2
|
+
addresses: Array<string>;
|
|
3
|
+
amount: string;
|
|
4
|
+
assetId: string;
|
|
5
|
+
utxoId: string;
|
|
6
|
+
createdOnChainId: string;
|
|
7
|
+
consumedOnChainId: string;
|
|
8
|
+
staked: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* This field is only present if the UTXO has been consumed by another transaction.
|
|
11
|
+
*/
|
|
12
|
+
toTx?: string;
|
|
13
|
+
/**
|
|
14
|
+
* This field is only present if the UTXO is a transaction reward and denotes whether the reward is for the validator or delegator.
|
|
15
|
+
*/
|
|
16
|
+
rewardType?: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { PChainEmittedUtxo };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { PChainAsset } from './PChainAsset.js';
|
|
2
|
+
import { PChainConsumedUtxo } from './PChainConsumedUtxo.js';
|
|
3
|
+
import { PChainEmittedUtxo } from './PChainEmittedUtxo.js';
|
|
4
|
+
|
|
5
|
+
type PChainTransaction = {
|
|
6
|
+
/**
|
|
7
|
+
* A P-Chain transaction hash.
|
|
8
|
+
*/
|
|
9
|
+
txHash: string;
|
|
10
|
+
txType: string;
|
|
11
|
+
/**
|
|
12
|
+
* The block finality timestamp.
|
|
13
|
+
*/
|
|
14
|
+
blockTimestamp: number;
|
|
15
|
+
blockNumber: string;
|
|
16
|
+
blockHash: string;
|
|
17
|
+
/**
|
|
18
|
+
* A list of objects containing consumed UTXO info pertaining to a given transaction.
|
|
19
|
+
*/
|
|
20
|
+
consumedUtxos?: Array<PChainConsumedUtxo>;
|
|
21
|
+
/**
|
|
22
|
+
* A list of objects containing emitted UTXO info pertaining to a given transaction.
|
|
23
|
+
*/
|
|
24
|
+
emittedUtxos?: Array<PChainEmittedUtxo>;
|
|
25
|
+
/**
|
|
26
|
+
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
27
|
+
*/
|
|
28
|
+
value?: Array<PChainAsset>;
|
|
29
|
+
/**
|
|
30
|
+
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
31
|
+
*/
|
|
32
|
+
amountBurned?: Array<PChainAsset>;
|
|
33
|
+
/**
|
|
34
|
+
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
35
|
+
*/
|
|
36
|
+
amountStaked?: Array<PChainAsset>;
|
|
37
|
+
/**
|
|
38
|
+
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
39
|
+
*/
|
|
40
|
+
startTimestamp?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
43
|
+
*/
|
|
44
|
+
endTimestamp?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
47
|
+
*/
|
|
48
|
+
delegationFeePercent?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
51
|
+
*/
|
|
52
|
+
nodeId?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
|
|
55
|
+
*/
|
|
56
|
+
subnetId?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
59
|
+
*/
|
|
60
|
+
estimatedReward?: string;
|
|
61
|
+
rewardTx?: string;
|
|
62
|
+
memo?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Present for RewardValidatorTx
|
|
65
|
+
*/
|
|
66
|
+
stakingTxHash?: string;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export { PChainTransaction };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type PChainUtxo = {
|
|
2
|
+
/**
|
|
3
|
+
* An array of P-Chain wallet addresses.
|
|
4
|
+
*/
|
|
5
|
+
addresses: Array<string>;
|
|
6
|
+
utxoId: string;
|
|
7
|
+
txHash: string;
|
|
8
|
+
outputIndex: number;
|
|
9
|
+
blockTimestamp: number;
|
|
10
|
+
consumingTxHash?: string;
|
|
11
|
+
consumingBlockTimestamp?: number;
|
|
12
|
+
assetId: string;
|
|
13
|
+
utxoType: string;
|
|
14
|
+
amount: string;
|
|
15
|
+
stakeableLocktime?: number;
|
|
16
|
+
platformLocktime?: number;
|
|
17
|
+
threshold?: number;
|
|
18
|
+
createdOnChainId: string;
|
|
19
|
+
consumedOnChainId: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { PChainUtxo };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type PaginationParams = {
|
|
2
|
+
/**
|
|
3
|
+
* The maximum number of items to return.
|
|
4
|
+
*/
|
|
5
|
+
pageSize?: number;
|
|
6
|
+
/**
|
|
7
|
+
* A page token, received from a previous list call.
|
|
8
|
+
* Provide this to retrieve the subsequent page.
|
|
9
|
+
*/
|
|
10
|
+
pageToken?: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { PaginationParams };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Address } from './Address.js';
|
|
2
|
+
import { ListingCurrencyType } from './ListingCurrencyType.js';
|
|
3
|
+
import { TokenWithPrice } from './TokenWithPrice.js';
|
|
4
|
+
|
|
5
|
+
type PurchaseListingEventResponse = {
|
|
6
|
+
eventTimestamp: number;
|
|
7
|
+
listingPrice: string;
|
|
8
|
+
listingCurrencyType: ListingCurrencyType;
|
|
9
|
+
listingCurrencyInfo: TokenWithPrice;
|
|
10
|
+
sellerAddress: Address;
|
|
11
|
+
salePrice: string;
|
|
12
|
+
buyerAddress: Address;
|
|
13
|
+
saleTimestamp: number;
|
|
14
|
+
purchaseTxHash?: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { PurchaseListingEventResponse };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare enum ResourceLinkType {
|
|
2
|
+
TWITTER = "Twitter",
|
|
3
|
+
FACEBOOK = "Facebook",
|
|
4
|
+
DISCORD = "Discord",
|
|
5
|
+
TELEGRAM = "Telegram",
|
|
6
|
+
BLOG = "Blog",
|
|
7
|
+
MEDIUM = "Medium",
|
|
8
|
+
WHITEPAPER = "Whitepaper",
|
|
9
|
+
COIN_GECKO = "CoinGecko",
|
|
10
|
+
COIN_MARKET_CAP = "CoinMarketCap",
|
|
11
|
+
LINKED_IN = "LinkedIn",
|
|
12
|
+
REDDIT = "Reddit",
|
|
13
|
+
SUPPORT = "Support",
|
|
14
|
+
GITHUB = "Github",
|
|
15
|
+
DOCUMENTATION = "Documentation"
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { ResourceLinkType };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var ResourceLinkType = /* @__PURE__ */ ((ResourceLinkType2) => {
|
|
2
|
+
ResourceLinkType2["TWITTER"] = "Twitter";
|
|
3
|
+
ResourceLinkType2["FACEBOOK"] = "Facebook";
|
|
4
|
+
ResourceLinkType2["DISCORD"] = "Discord";
|
|
5
|
+
ResourceLinkType2["TELEGRAM"] = "Telegram";
|
|
6
|
+
ResourceLinkType2["BLOG"] = "Blog";
|
|
7
|
+
ResourceLinkType2["MEDIUM"] = "Medium";
|
|
8
|
+
ResourceLinkType2["WHITEPAPER"] = "Whitepaper";
|
|
9
|
+
ResourceLinkType2["COIN_GECKO"] = "CoinGecko";
|
|
10
|
+
ResourceLinkType2["COIN_MARKET_CAP"] = "CoinMarketCap";
|
|
11
|
+
ResourceLinkType2["LINKED_IN"] = "LinkedIn";
|
|
12
|
+
ResourceLinkType2["REDDIT"] = "Reddit";
|
|
13
|
+
ResourceLinkType2["SUPPORT"] = "Support";
|
|
14
|
+
ResourceLinkType2["GITHUB"] = "Github";
|
|
15
|
+
ResourceLinkType2["DOCUMENTATION"] = "Documentation";
|
|
16
|
+
return ResourceLinkType2;
|
|
17
|
+
})(ResourceLinkType || {});
|
|
18
|
+
|
|
19
|
+
export { ResourceLinkType };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type RichAddress = {
|
|
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
|
+
/**
|
|
21
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
22
|
+
*/
|
|
23
|
+
address: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { RichAddress };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Money } from './Money.js';
|
|
2
|
+
|
|
3
|
+
type TokenWithPrice = {
|
|
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
|
+
/**
|
|
17
|
+
* The number of decimals the token uses. For example `6`,
|
|
18
|
+
* means to divide the token amount by `1000000` to get its user
|
|
19
|
+
* representation.
|
|
20
|
+
*/
|
|
21
|
+
decimals: number;
|
|
22
|
+
/**
|
|
23
|
+
* The token price, if available.
|
|
24
|
+
*/
|
|
25
|
+
price?: Money;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export { TokenWithPrice };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Erc1155TransferDetails } from './Erc1155TransferDetails.js';
|
|
2
|
+
import { Erc20TransferDetails } from './Erc20TransferDetails.js';
|
|
3
|
+
import { Erc721TransferDetails } from './Erc721TransferDetails.js';
|
|
4
|
+
import { InternalTransactionDetails } from './InternalTransactionDetails.js';
|
|
5
|
+
import { NativeTransaction } from './NativeTransaction.js';
|
|
6
|
+
|
|
7
|
+
type TransactionDetails = {
|
|
8
|
+
/**
|
|
9
|
+
* The native (top-level) transaction details.
|
|
10
|
+
*/
|
|
11
|
+
nativeTransaction: NativeTransaction;
|
|
12
|
+
/**
|
|
13
|
+
* The list of ERC-20 transfers.
|
|
14
|
+
*/
|
|
15
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
16
|
+
/**
|
|
17
|
+
* The list of ERC-721 transfers.
|
|
18
|
+
*/
|
|
19
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
20
|
+
/**
|
|
21
|
+
* The list of ERC-1155 transfers.
|
|
22
|
+
*/
|
|
23
|
+
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
24
|
+
/**
|
|
25
|
+
* The list of internal transactions. Note that this list only
|
|
26
|
+
* includes CALL and
|
|
27
|
+
* CALLCODE internal transactions that had a
|
|
28
|
+
* non-zero value and
|
|
29
|
+
* CREATE/CREATE2
|
|
30
|
+
* calls. Use a client provider to recieve a full debug trace of the
|
|
31
|
+
* transaction.
|
|
32
|
+
*/
|
|
33
|
+
internalTransactions?: Array<InternalTransactionDetails>;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export { TransactionDetails };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var TransactionMethodType = /* @__PURE__ */ ((TransactionMethodType2) => {
|
|
2
|
+
TransactionMethodType2["NATIVE_TRANSFER"] = "NATIVE_TRANSFER";
|
|
3
|
+
TransactionMethodType2["CONTRACT_CALL"] = "CONTRACT_CALL";
|
|
4
|
+
TransactionMethodType2["CONTRACT_CREATION"] = "CONTRACT_CREATION";
|
|
5
|
+
return TransactionMethodType2;
|
|
6
|
+
})(TransactionMethodType || {});
|
|
7
|
+
|
|
8
|
+
export { TransactionMethodType };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type TransactionVertexDetail = {
|
|
2
|
+
/**
|
|
3
|
+
* Vertex ID of the vertex this transaction belongs to.
|
|
4
|
+
*/
|
|
5
|
+
hash: string;
|
|
6
|
+
/**
|
|
7
|
+
* Vertex height of the vertex this transaction belongs to.
|
|
8
|
+
*/
|
|
9
|
+
height: number;
|
|
10
|
+
/**
|
|
11
|
+
* Timestamp in seconds this vertex was accepted.
|
|
12
|
+
*/
|
|
13
|
+
timestamp: number;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { TransactionVertexDetail };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var TrendingTimeframe = /* @__PURE__ */ ((TrendingTimeframe2) => {
|
|
2
|
+
TrendingTimeframe2["DAY"] = "day";
|
|
3
|
+
TrendingTimeframe2["WEEK"] = "week";
|
|
4
|
+
TrendingTimeframe2["MONTH"] = "month";
|
|
5
|
+
return TrendingTimeframe2;
|
|
6
|
+
})(TrendingTimeframe || {});
|
|
7
|
+
|
|
8
|
+
export { TrendingTimeframe };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Asset } from './Asset.js';
|
|
2
|
+
import { UtxoCredential } from './UtxoCredential.js';
|
|
3
|
+
|
|
4
|
+
type Utxo = {
|
|
5
|
+
/**
|
|
6
|
+
* UTXO ID for this output.
|
|
7
|
+
*/
|
|
8
|
+
utxoId: string;
|
|
9
|
+
asset: Asset;
|
|
10
|
+
/**
|
|
11
|
+
* Type of output.
|
|
12
|
+
*/
|
|
13
|
+
utxoType: string;
|
|
14
|
+
/**
|
|
15
|
+
* Blockchain ID on which this output is created on.
|
|
16
|
+
*/
|
|
17
|
+
createdOnChainId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Blockchain ID on which this output is consumed on.
|
|
20
|
+
*/
|
|
21
|
+
consumedOnChainId: string;
|
|
22
|
+
/**
|
|
23
|
+
* Transaction ID that created this output.
|
|
24
|
+
*/
|
|
25
|
+
creationTxHash: string;
|
|
26
|
+
/**
|
|
27
|
+
* Transaction ID that consumed this output.
|
|
28
|
+
*/
|
|
29
|
+
consumingTxHash?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Timestamp in seconds this output is consumed.
|
|
32
|
+
*/
|
|
33
|
+
consumingTxTimestamp?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
36
|
+
*/
|
|
37
|
+
outputIndex: string;
|
|
38
|
+
/**
|
|
39
|
+
* Timestamp in seconds this outptut is created on.
|
|
40
|
+
*/
|
|
41
|
+
timestamp: number;
|
|
42
|
+
/**
|
|
43
|
+
* Locktime in seconds after which this output can be consumed.
|
|
44
|
+
*/
|
|
45
|
+
locktime: number;
|
|
46
|
+
/**
|
|
47
|
+
* Minimum number of signatures required to consume this output.
|
|
48
|
+
*/
|
|
49
|
+
threshold: number;
|
|
50
|
+
/**
|
|
51
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
52
|
+
*/
|
|
53
|
+
addresses: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Credentials that signed the transaction to consume this utxo
|
|
56
|
+
*/
|
|
57
|
+
credentials: Array<UtxoCredential>;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export { Utxo };
|