@avalabs/glacier-sdk 2.8.0-alpha.99 → 2.8.0-canary.122008d.0
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 +2418 -1684
- package/dist/index.js +749 -317
- package/esm/generated/Glacier.d.ts +26 -2
- package/esm/generated/Glacier.js +52 -12
- package/esm/generated/core/ApiError.js +5 -0
- package/esm/generated/core/CancelablePromise.js +11 -6
- package/esm/generated/core/OpenAPI.js +1 -1
- package/esm/generated/core/request.js +14 -31
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +19 -0
- package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +27 -0
- package/esm/generated/models/ActiveValidatorDetails.js +8 -0
- package/esm/generated/models/Blockchain.d.ts +10 -0
- package/esm/generated/models/BlockchainId.d.ts +6 -3
- package/esm/generated/models/BlockchainId.js +5 -2
- package/esm/generated/models/BlockchainIds.d.ts +9 -0
- package/esm/generated/models/BlockchainIds.js +10 -0
- package/esm/generated/models/BlockchainInfo.d.ts +5 -0
- package/esm/generated/models/ChainAddressChainIdMap.d.ts +2 -2
- package/esm/generated/models/ChainInfo.d.ts +2 -4
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +19 -0
- package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +20 -0
- package/esm/generated/models/CompletedValidatorDetails.js +8 -0
- package/esm/generated/models/ContractDeploymentDetails.d.ts +13 -0
- package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
- package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
- package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc20.js +8 -0
- package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
- package/esm/generated/models/ContractSubmissionErc721.js +8 -0
- package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
- package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +23 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +8 -0
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +23 -0
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +8 -0
- package/esm/generated/models/DelegationStatusType.d.ts +7 -0
- package/esm/generated/models/DelegationStatusType.js +8 -0
- package/esm/generated/models/DelegatorsDetails.d.ts +6 -0
- package/esm/generated/models/EVMInput.d.ts +5 -0
- package/esm/generated/models/Erc1155Contract.d.ts +37 -0
- package/esm/generated/models/Erc1155Contract.js +8 -0
- package/esm/generated/models/Erc1155TokenBalance.d.ts +1 -2
- package/esm/generated/models/Erc1155Transfer.d.ts +1 -0
- package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -0
- package/esm/generated/models/Erc20Contract.d.ts +41 -0
- package/esm/generated/models/Erc20Contract.js +8 -0
- package/esm/generated/models/Erc20Token.d.ts +1 -3
- package/esm/generated/models/Erc20TokenBalance.d.ts +2 -5
- package/esm/generated/models/Erc20Transfer.d.ts +1 -0
- package/esm/generated/models/Erc20TransferDetails.d.ts +1 -0
- package/esm/generated/models/Erc721Contract.d.ts +35 -0
- package/esm/generated/models/Erc721Contract.js +8 -0
- package/esm/generated/models/Erc721Transfer.d.ts +1 -0
- package/esm/generated/models/Erc721TransferDetails.d.ts +1 -0
- package/esm/generated/models/{GetBlockResponse.d.ts → EvmBlock.d.ts} +2 -6
- package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
- package/esm/generated/models/GetChainResponse.d.ts +2 -4
- package/esm/generated/models/GetEvmBlockResponse.d.ts +45 -0
- package/esm/generated/models/GetNetworkDetailsResponse.d.ts +9 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +15 -0
- package/esm/generated/models/GetTransactionResponse.d.ts +1 -7
- package/esm/generated/models/HistoricalReward.d.ts +24 -0
- package/esm/generated/models/ImageAsset.d.ts +9 -0
- package/esm/generated/models/{ListListingsResponse.d.ts → ListBlockchainsResponse.d.ts} +4 -4
- package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +2 -0
- package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +2 -0
- package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -2
- package/esm/generated/models/ListContractsResponse.d.ts +14 -0
- package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +16 -0
- package/esm/generated/models/ListEvmBlocksResponse.d.ts +11 -0
- package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +11 -0
- package/esm/generated/models/ListPChainBalancesResponse.d.ts +2 -0
- package/esm/generated/models/ListPChainTransactionsResponse.d.ts +2 -0
- package/esm/generated/models/ListPChainUtxosResponse.d.ts +2 -0
- package/esm/generated/models/ListPendingRewardsResponse.d.ts +11 -0
- package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +13 -0
- package/esm/generated/models/{ListBlocksResponse.d.ts → ListSubnetsResponse.d.ts} +4 -4
- package/esm/generated/models/ListUtxosResponse.d.ts +2 -0
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +16 -0
- package/esm/generated/models/ListXChainBalancesResponse.d.ts +2 -0
- package/esm/generated/models/ListXChainTransactionsResponse.d.ts +2 -0
- package/esm/generated/models/ListXChainVerticesResponse.d.ts +2 -0
- package/esm/generated/models/Method.d.ts +1 -7
- package/esm/generated/models/NativeTokenBalance.d.ts +2 -5
- package/esm/generated/models/NetworkToken.d.ts +1 -3
- package/esm/generated/models/NetworkTokenDetails.d.ts +1 -3
- package/esm/generated/models/NetworkType.d.ts +6 -0
- package/esm/generated/models/NetworkType.js +7 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
- package/esm/generated/models/OperationType.d.ts +2 -1
- package/esm/generated/models/OperationType.js +2 -1
- package/esm/generated/models/PChainBalance.d.ts +16 -7
- package/esm/generated/models/PChainId.d.ts +2 -2
- package/esm/generated/models/PChainId.js +1 -1
- package/esm/generated/models/PChainSharedAsset.d.ts +8 -0
- package/esm/generated/models/PChainTransaction.d.ts +10 -15
- package/esm/generated/models/PChainTransactionType.d.ts +17 -0
- package/esm/generated/models/PChainTransactionType.js +18 -0
- package/esm/generated/models/PChainUtxo.d.ts +10 -1
- package/esm/generated/models/PendingDelegatorDetails.d.ts +19 -0
- package/esm/generated/models/PendingDelegatorDetails.js +8 -0
- package/esm/generated/models/PendingReward.d.ts +22 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +16 -0
- package/esm/generated/models/PendingValidatorDetails.js +8 -0
- package/esm/generated/models/PricingProviders.d.ts +5 -0
- package/esm/generated/models/PrimaryNetwork.d.ts +6 -0
- package/esm/generated/models/PrimaryNetwork.js +7 -0
- package/esm/generated/models/{Block.d.ts → PrimaryNetworkBlock.d.ts} +3 -3
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkChainName.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkChainName.js +8 -0
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +2 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +20 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +21 -0
- package/esm/generated/models/RewardType.d.ts +7 -0
- package/esm/generated/models/RewardType.js +8 -0
- package/esm/generated/models/Rewards.d.ts +8 -0
- package/esm/generated/models/RichAddress.d.ts +1 -3
- package/esm/generated/models/StakingDistribution.d.ts +7 -0
- package/esm/generated/models/Subnet.d.ts +13 -0
- package/esm/generated/models/TransactionDetails.d.ts +1 -7
- package/esm/generated/models/TransactionExportMetadata.d.ts +15 -0
- package/esm/generated/models/UnknownContract.d.ts +31 -0
- package/esm/generated/models/UnknownContract.js +8 -0
- package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
- package/esm/generated/models/Utxo.d.ts +9 -1
- package/esm/generated/models/UtxoType.d.ts +6 -0
- package/esm/generated/models/UtxoType.js +7 -0
- package/esm/generated/models/ValidationStatusType.d.ts +7 -0
- package/esm/generated/models/ValidationStatusType.js +8 -0
- package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
- package/esm/generated/models/ValidatorsDetails.d.ts +11 -0
- package/esm/generated/models/XChainBalances.d.ts +2 -2
- package/esm/generated/models/XChainId.d.ts +3 -2
- package/esm/generated/models/XChainId.js +2 -1
- package/esm/generated/models/XChainLinearTransaction.d.ts +4 -4
- package/esm/generated/models/XChainLinearTransaction.js +1 -1
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -4
- package/esm/generated/models/XChainNonLinearTransaction.js +1 -1
- package/esm/generated/services/DefaultService.d.ts +14 -0
- package/esm/generated/services/DefaultService.js +13 -0
- package/esm/generated/services/EvmBalancesService.d.ts +177 -0
- package/esm/generated/services/EvmBalancesService.js +116 -0
- package/esm/generated/services/EvmBlocksService.d.ts +47 -0
- package/esm/generated/services/EvmBlocksService.js +37 -0
- package/esm/generated/services/EvmChainsService.d.ts +36 -0
- package/esm/generated/services/EvmChainsService.js +29 -0
- package/esm/generated/services/EvmContractsService.d.ts +48 -0
- package/esm/generated/services/EvmContractsService.js +36 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +311 -0
- package/esm/generated/services/EvmTransactionsService.js +251 -0
- package/esm/generated/services/HealthCheckService.d.ts +1 -1
- package/esm/generated/services/NfTsService.d.ts +51 -0
- package/esm/generated/services/NfTsService.js +37 -0
- package/esm/generated/services/OperationsService.d.ts +8 -3
- package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +40 -0
- package/esm/generated/services/PrimaryNetworkBalancesService.js +26 -0
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +85 -0
- package/esm/generated/services/PrimaryNetworkBlocksService.js +62 -0
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +77 -0
- package/esm/generated/services/PrimaryNetworkRewardsService.js +53 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +103 -245
- package/esm/generated/services/PrimaryNetworkService.js +65 -167
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +175 -0
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +107 -0
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +54 -0
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +34 -0
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +90 -0
- package/esm/generated/services/PrimaryNetworkVerticesService.js +64 -0
- package/esm/index.d.ts +71 -31
- package/esm/index.js +39 -9
- package/package.json +2 -5
- package/esm/generated/models/Address.d.ts +0 -8
- package/esm/generated/models/CancelListingEventResponse.d.ts +0 -5
- package/esm/generated/models/CloseAuctionEventResponse.d.ts +0 -6
- package/esm/generated/models/CollectionMetrics.d.ts +0 -40
- package/esm/generated/models/CollectionSortByOption.d.ts +0 -8
- package/esm/generated/models/CollectionSortByOption.js +0 -9
- package/esm/generated/models/CreateTransactionExportRequest.d.ts +0 -11
- package/esm/generated/models/ErcType.d.ts +0 -8
- package/esm/generated/models/ErcType.js +0 -9
- package/esm/generated/models/ListNftCollectionWithMetricsResponse.d.ts +0 -11
- package/esm/generated/models/ListingCurrencyType.d.ts +0 -6
- package/esm/generated/models/ListingCurrencyType.js +0 -7
- package/esm/generated/models/ListingEventType.d.ts +0 -8
- package/esm/generated/models/ListingEventType.js +0 -9
- package/esm/generated/models/ListingResponse.d.ts +0 -19
- package/esm/generated/models/ListingType.d.ts +0 -6
- package/esm/generated/models/ListingType.js +0 -7
- package/esm/generated/models/ListingsSortByOption.d.ts +0 -5
- package/esm/generated/models/ListingsSortByOption.js +0 -6
- package/esm/generated/models/NftCollection.d.ts +0 -24
- package/esm/generated/models/NftCollectionWithMetrics.d.ts +0 -26
- package/esm/generated/models/NftFilterOptionsProperty.d.ts +0 -10
- package/esm/generated/models/NftSearchBody.d.ts +0 -10
- package/esm/generated/models/NftSearchResultTypeOption.d.ts +0 -6
- package/esm/generated/models/NftSearchResultTypeOption.js +0 -7
- package/esm/generated/models/OpenListingEventResponse.d.ts +0 -17
- package/esm/generated/models/OperationTransactionExportMetadata.d.ts +0 -18
- package/esm/generated/models/PChainConsumedUtxo.d.ts +0 -11
- package/esm/generated/models/PChainEmittedUtxo.d.ts +0 -19
- package/esm/generated/models/PaginationParams.d.ts +0 -13
- package/esm/generated/models/PurchaseListingEventResponse.d.ts +0 -17
- package/esm/generated/models/TokenWithPrice.d.ts +0 -28
- package/esm/generated/models/TrendingTimeframe.d.ts +0 -7
- package/esm/generated/models/TrendingTimeframe.js +0 -8
- package/esm/generated/services/EvmService.d.ts +0 -724
- package/esm/generated/services/EvmService.js +0 -509
|
@@ -1,16 +1,40 @@
|
|
|
1
1
|
import { BaseHttpRequest } from './core/BaseHttpRequest.js';
|
|
2
2
|
import { OpenAPIConfig } from './core/OpenAPI.js';
|
|
3
|
-
import {
|
|
3
|
+
import { DefaultService } from './services/DefaultService.js';
|
|
4
|
+
import { EvmBalancesService } from './services/EvmBalancesService.js';
|
|
5
|
+
import { EvmBlocksService } from './services/EvmBlocksService.js';
|
|
6
|
+
import { EvmChainsService } from './services/EvmChainsService.js';
|
|
7
|
+
import { EvmContractsService } from './services/EvmContractsService.js';
|
|
8
|
+
import { EvmTransactionsService } from './services/EvmTransactionsService.js';
|
|
4
9
|
import { HealthCheckService } from './services/HealthCheckService.js';
|
|
10
|
+
import { NfTsService } from './services/NfTsService.js';
|
|
5
11
|
import { OperationsService } from './services/OperationsService.js';
|
|
6
12
|
import { PrimaryNetworkService } from './services/PrimaryNetworkService.js';
|
|
13
|
+
import { PrimaryNetworkBalancesService } from './services/PrimaryNetworkBalancesService.js';
|
|
14
|
+
import { PrimaryNetworkBlocksService } from './services/PrimaryNetworkBlocksService.js';
|
|
15
|
+
import { PrimaryNetworkRewardsService } from './services/PrimaryNetworkRewardsService.js';
|
|
16
|
+
import { PrimaryNetworkTransactionsService } from './services/PrimaryNetworkTransactionsService.js';
|
|
17
|
+
import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsService.js';
|
|
18
|
+
import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
|
|
7
19
|
|
|
8
20
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
9
21
|
declare class Glacier {
|
|
10
|
-
readonly
|
|
22
|
+
readonly default: DefaultService;
|
|
23
|
+
readonly evmBalances: EvmBalancesService;
|
|
24
|
+
readonly evmBlocks: EvmBlocksService;
|
|
25
|
+
readonly evmChains: EvmChainsService;
|
|
26
|
+
readonly evmContracts: EvmContractsService;
|
|
27
|
+
readonly evmTransactions: EvmTransactionsService;
|
|
11
28
|
readonly healthCheck: HealthCheckService;
|
|
29
|
+
readonly nfTs: NfTsService;
|
|
12
30
|
readonly operations: OperationsService;
|
|
13
31
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
32
|
+
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
33
|
+
readonly primaryNetworkBlocks: PrimaryNetworkBlocksService;
|
|
34
|
+
readonly primaryNetworkRewards: PrimaryNetworkRewardsService;
|
|
35
|
+
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
36
|
+
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
37
|
+
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
14
38
|
readonly request: BaseHttpRequest;
|
|
15
39
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
16
40
|
}
|
package/esm/generated/Glacier.js
CHANGED
|
@@ -1,27 +1,67 @@
|
|
|
1
1
|
import { FetchHttpRequest } from './core/FetchHttpRequest.js';
|
|
2
|
-
import {
|
|
2
|
+
import { DefaultService } from './services/DefaultService.js';
|
|
3
|
+
import { EvmBalancesService } from './services/EvmBalancesService.js';
|
|
4
|
+
import { EvmBlocksService } from './services/EvmBlocksService.js';
|
|
5
|
+
import { EvmChainsService } from './services/EvmChainsService.js';
|
|
6
|
+
import { EvmContractsService } from './services/EvmContractsService.js';
|
|
7
|
+
import { EvmTransactionsService } from './services/EvmTransactionsService.js';
|
|
3
8
|
import { HealthCheckService } from './services/HealthCheckService.js';
|
|
9
|
+
import { NfTsService } from './services/NfTsService.js';
|
|
4
10
|
import { OperationsService } from './services/OperationsService.js';
|
|
5
11
|
import { PrimaryNetworkService } from './services/PrimaryNetworkService.js';
|
|
12
|
+
import { PrimaryNetworkBalancesService } from './services/PrimaryNetworkBalancesService.js';
|
|
13
|
+
import { PrimaryNetworkBlocksService } from './services/PrimaryNetworkBlocksService.js';
|
|
14
|
+
import { PrimaryNetworkRewardsService } from './services/PrimaryNetworkRewardsService.js';
|
|
15
|
+
import { PrimaryNetworkTransactionsService } from './services/PrimaryNetworkTransactionsService.js';
|
|
16
|
+
import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsService.js';
|
|
17
|
+
import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
|
|
6
18
|
|
|
7
19
|
class Glacier {
|
|
20
|
+
default;
|
|
21
|
+
evmBalances;
|
|
22
|
+
evmBlocks;
|
|
23
|
+
evmChains;
|
|
24
|
+
evmContracts;
|
|
25
|
+
evmTransactions;
|
|
26
|
+
healthCheck;
|
|
27
|
+
nfTs;
|
|
28
|
+
operations;
|
|
29
|
+
primaryNetwork;
|
|
30
|
+
primaryNetworkBalances;
|
|
31
|
+
primaryNetworkBlocks;
|
|
32
|
+
primaryNetworkRewards;
|
|
33
|
+
primaryNetworkTransactions;
|
|
34
|
+
primaryNetworkUtxOs;
|
|
35
|
+
primaryNetworkVertices;
|
|
36
|
+
request;
|
|
8
37
|
constructor(config, HttpRequest = FetchHttpRequest) {
|
|
9
|
-
var _a, _b, _c, _d;
|
|
10
38
|
this.request = new HttpRequest({
|
|
11
|
-
BASE:
|
|
12
|
-
VERSION:
|
|
13
|
-
WITH_CREDENTIALS:
|
|
14
|
-
CREDENTIALS:
|
|
15
|
-
TOKEN: config
|
|
16
|
-
USERNAME: config
|
|
17
|
-
PASSWORD: config
|
|
18
|
-
HEADERS: config
|
|
19
|
-
ENCODE_PATH: config
|
|
39
|
+
BASE: config?.BASE ?? "https://glacier-api-dev.avax.network",
|
|
40
|
+
VERSION: config?.VERSION ?? "Beta",
|
|
41
|
+
WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
|
|
42
|
+
CREDENTIALS: config?.CREDENTIALS ?? "include",
|
|
43
|
+
TOKEN: config?.TOKEN,
|
|
44
|
+
USERNAME: config?.USERNAME,
|
|
45
|
+
PASSWORD: config?.PASSWORD,
|
|
46
|
+
HEADERS: config?.HEADERS,
|
|
47
|
+
ENCODE_PATH: config?.ENCODE_PATH
|
|
20
48
|
});
|
|
21
|
-
this.
|
|
49
|
+
this.default = new DefaultService(this.request);
|
|
50
|
+
this.evmBalances = new EvmBalancesService(this.request);
|
|
51
|
+
this.evmBlocks = new EvmBlocksService(this.request);
|
|
52
|
+
this.evmChains = new EvmChainsService(this.request);
|
|
53
|
+
this.evmContracts = new EvmContractsService(this.request);
|
|
54
|
+
this.evmTransactions = new EvmTransactionsService(this.request);
|
|
22
55
|
this.healthCheck = new HealthCheckService(this.request);
|
|
56
|
+
this.nfTs = new NfTsService(this.request);
|
|
23
57
|
this.operations = new OperationsService(this.request);
|
|
24
58
|
this.primaryNetwork = new PrimaryNetworkService(this.request);
|
|
59
|
+
this.primaryNetworkBalances = new PrimaryNetworkBalancesService(this.request);
|
|
60
|
+
this.primaryNetworkBlocks = new PrimaryNetworkBlocksService(this.request);
|
|
61
|
+
this.primaryNetworkRewards = new PrimaryNetworkRewardsService(this.request);
|
|
62
|
+
this.primaryNetworkTransactions = new PrimaryNetworkTransactionsService(this.request);
|
|
63
|
+
this.primaryNetworkUtxOs = new PrimaryNetworkUtxOsService(this.request);
|
|
64
|
+
this.primaryNetworkVertices = new PrimaryNetworkVerticesService(this.request);
|
|
25
65
|
}
|
|
26
66
|
}
|
|
27
67
|
|
|
@@ -8,6 +8,14 @@ class CancelError extends Error {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
class CancelablePromise {
|
|
11
|
+
[Symbol.toStringTag];
|
|
12
|
+
_isResolved;
|
|
13
|
+
_isRejected;
|
|
14
|
+
_isCancelled;
|
|
15
|
+
_cancelHandlers;
|
|
16
|
+
_promise;
|
|
17
|
+
_resolve;
|
|
18
|
+
_reject;
|
|
11
19
|
constructor(executor) {
|
|
12
20
|
this._isResolved = false;
|
|
13
21
|
this._isRejected = false;
|
|
@@ -17,20 +25,18 @@ class CancelablePromise {
|
|
|
17
25
|
this._resolve = resolve;
|
|
18
26
|
this._reject = reject;
|
|
19
27
|
const onResolve = (value) => {
|
|
20
|
-
var _a;
|
|
21
28
|
if (this._isResolved || this._isRejected || this._isCancelled) {
|
|
22
29
|
return;
|
|
23
30
|
}
|
|
24
31
|
this._isResolved = true;
|
|
25
|
-
|
|
32
|
+
this._resolve?.(value);
|
|
26
33
|
};
|
|
27
34
|
const onReject = (reason) => {
|
|
28
|
-
var _a;
|
|
29
35
|
if (this._isResolved || this._isRejected || this._isCancelled) {
|
|
30
36
|
return;
|
|
31
37
|
}
|
|
32
38
|
this._isRejected = true;
|
|
33
|
-
|
|
39
|
+
this._reject?.(reason);
|
|
34
40
|
};
|
|
35
41
|
const onCancel = (cancelHandler) => {
|
|
36
42
|
if (this._isResolved || this._isRejected || this._isCancelled) {
|
|
@@ -60,7 +66,6 @@ class CancelablePromise {
|
|
|
60
66
|
return this._promise.finally(onFinally);
|
|
61
67
|
}
|
|
62
68
|
cancel() {
|
|
63
|
-
var _a;
|
|
64
69
|
if (this._isResolved || this._isRejected || this._isCancelled) {
|
|
65
70
|
return;
|
|
66
71
|
}
|
|
@@ -76,7 +81,7 @@ class CancelablePromise {
|
|
|
76
81
|
}
|
|
77
82
|
}
|
|
78
83
|
this._cancelHandlers.length = 0;
|
|
79
|
-
|
|
84
|
+
this._reject?.(new CancelError("Request aborted"));
|
|
80
85
|
}
|
|
81
86
|
get isCancelled() {
|
|
82
87
|
return this._isCancelled;
|
|
@@ -1,25 +1,6 @@
|
|
|
1
1
|
import { ApiError } from './ApiError.js';
|
|
2
2
|
import { CancelablePromise } from './CancelablePromise.js';
|
|
3
3
|
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __defProps = Object.defineProperties;
|
|
6
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
-
var __spreadValues = (a, b) => {
|
|
12
|
-
for (var prop in b || (b = {}))
|
|
13
|
-
if (__hasOwnProp.call(b, prop))
|
|
14
|
-
__defNormalProp(a, prop, b[prop]);
|
|
15
|
-
if (__getOwnPropSymbols)
|
|
16
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
-
if (__propIsEnum.call(b, prop))
|
|
18
|
-
__defNormalProp(a, prop, b[prop]);
|
|
19
|
-
}
|
|
20
|
-
return a;
|
|
21
|
-
};
|
|
22
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
4
|
const isDefined = (value) => {
|
|
24
5
|
return value !== void 0 && value !== null;
|
|
25
6
|
};
|
|
@@ -73,8 +54,7 @@ const getQueryString = (params) => {
|
|
|
73
54
|
const getUrl = (config, options) => {
|
|
74
55
|
const encoder = config.ENCODE_PATH || encodeURI;
|
|
75
56
|
const path = options.url.replace("{api-version}", config.VERSION).replace(/{(.*?)}/g, (substring, group) => {
|
|
76
|
-
|
|
77
|
-
if ((_a = options.path) == null ? void 0 : _a.hasOwnProperty(group)) {
|
|
57
|
+
if (options.path?.hasOwnProperty(group)) {
|
|
78
58
|
return encoder(String(options.path[group]));
|
|
79
59
|
}
|
|
80
60
|
return substring;
|
|
@@ -117,9 +97,12 @@ const getHeaders = async (config, options) => {
|
|
|
117
97
|
const username = await resolve(options, config.USERNAME);
|
|
118
98
|
const password = await resolve(options, config.PASSWORD);
|
|
119
99
|
const additionalHeaders = await resolve(options, config.HEADERS);
|
|
120
|
-
const headers = Object.entries(
|
|
121
|
-
Accept: "application/json"
|
|
122
|
-
|
|
100
|
+
const headers = Object.entries({
|
|
101
|
+
Accept: "application/json",
|
|
102
|
+
...additionalHeaders,
|
|
103
|
+
...options.headers
|
|
104
|
+
}).filter(([_, value]) => isDefined(value)).reduce((headers2, [key, value]) => ({
|
|
105
|
+
...headers2,
|
|
123
106
|
[key]: String(value)
|
|
124
107
|
}), {});
|
|
125
108
|
if (isStringWithValue(token)) {
|
|
@@ -143,9 +126,8 @@ const getHeaders = async (config, options) => {
|
|
|
143
126
|
return new Headers(headers);
|
|
144
127
|
};
|
|
145
128
|
const getRequestBody = (options) => {
|
|
146
|
-
var _a;
|
|
147
129
|
if (options.body) {
|
|
148
|
-
if (
|
|
130
|
+
if (options.mediaType?.includes("/json")) {
|
|
149
131
|
return JSON.stringify(options.body);
|
|
150
132
|
} else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) {
|
|
151
133
|
return options.body;
|
|
@@ -159,7 +141,7 @@ const sendRequest = async (config, options, url, body, formData, headers, onCanc
|
|
|
159
141
|
const controller = new AbortController();
|
|
160
142
|
const request2 = {
|
|
161
143
|
headers,
|
|
162
|
-
body: body
|
|
144
|
+
body: body ?? formData,
|
|
163
145
|
method: options.method,
|
|
164
146
|
signal: controller.signal
|
|
165
147
|
};
|
|
@@ -197,15 +179,16 @@ const getResponseBody = async (response) => {
|
|
|
197
179
|
return void 0;
|
|
198
180
|
};
|
|
199
181
|
const catchErrorCodes = (options, result) => {
|
|
200
|
-
const errors =
|
|
182
|
+
const errors = {
|
|
201
183
|
400: "Bad Request",
|
|
202
184
|
401: "Unauthorized",
|
|
203
185
|
403: "Forbidden",
|
|
204
186
|
404: "Not Found",
|
|
205
187
|
500: "Internal Server Error",
|
|
206
188
|
502: "Bad Gateway",
|
|
207
|
-
503: "Service Unavailable"
|
|
208
|
-
|
|
189
|
+
503: "Service Unavailable",
|
|
190
|
+
...options.errors
|
|
191
|
+
};
|
|
209
192
|
const error = errors[result.status];
|
|
210
193
|
if (error) {
|
|
211
194
|
throw new ApiError(options, result, error);
|
|
@@ -230,7 +213,7 @@ const request = (config, options) => {
|
|
|
230
213
|
ok: response.ok,
|
|
231
214
|
status: response.status,
|
|
232
215
|
statusText: response.statusText,
|
|
233
|
-
body: responseHeader
|
|
216
|
+
body: responseHeader ?? responseBody
|
|
234
217
|
};
|
|
235
218
|
catchErrorCodes(options, result);
|
|
236
219
|
resolve2(result.body);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type ActiveDelegatorDetails = {
|
|
2
|
+
txHash: string;
|
|
3
|
+
nodeId: string;
|
|
4
|
+
rewardAddresses: Array<string>;
|
|
5
|
+
amountDelegated: string;
|
|
6
|
+
delegationFee: string;
|
|
7
|
+
startTimestamp: number;
|
|
8
|
+
endTimestamp: number;
|
|
9
|
+
estimatedGrossReward: string;
|
|
10
|
+
estimatedNetReward: string;
|
|
11
|
+
delegationStatus: ActiveDelegatorDetails.delegationStatus;
|
|
12
|
+
};
|
|
13
|
+
declare namespace ActiveDelegatorDetails {
|
|
14
|
+
enum delegationStatus {
|
|
15
|
+
ACTIVE = "active"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { ActiveDelegatorDetails };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var ActiveDelegatorDetails;
|
|
2
|
+
((ActiveDelegatorDetails2) => {
|
|
3
|
+
((delegationStatus2) => {
|
|
4
|
+
delegationStatus2["ACTIVE"] = "active";
|
|
5
|
+
})(ActiveDelegatorDetails2.delegationStatus || (ActiveDelegatorDetails2.delegationStatus = {}));
|
|
6
|
+
})(ActiveDelegatorDetails || (ActiveDelegatorDetails = {}));
|
|
7
|
+
|
|
8
|
+
export { ActiveDelegatorDetails };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Rewards } from './Rewards.js';
|
|
2
|
+
import { ValidatorHealthDetails } from './ValidatorHealthDetails.js';
|
|
3
|
+
|
|
4
|
+
type ActiveValidatorDetails = {
|
|
5
|
+
nodeId: string;
|
|
6
|
+
subnetId: string;
|
|
7
|
+
amountStaked: string;
|
|
8
|
+
delegationFee?: string;
|
|
9
|
+
startTimestamp: number;
|
|
10
|
+
endTimestamp: number;
|
|
11
|
+
stakePercentage: number;
|
|
12
|
+
delegatorCount: number;
|
|
13
|
+
amountDelegated?: string;
|
|
14
|
+
uptimePerformance: number;
|
|
15
|
+
avalancheGoVersion?: string;
|
|
16
|
+
delegationCapacity?: string;
|
|
17
|
+
potentialRewards: Rewards;
|
|
18
|
+
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
19
|
+
validatorHealth: ValidatorHealthDetails;
|
|
20
|
+
};
|
|
21
|
+
declare namespace ActiveValidatorDetails {
|
|
22
|
+
enum validationStatus {
|
|
23
|
+
ACTIVE = "active"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { ActiveValidatorDetails };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var ActiveValidatorDetails;
|
|
2
|
+
((ActiveValidatorDetails2) => {
|
|
3
|
+
((validationStatus2) => {
|
|
4
|
+
validationStatus2["ACTIVE"] = "active";
|
|
5
|
+
})(ActiveValidatorDetails2.validationStatus || (ActiveValidatorDetails2.validationStatus = {}));
|
|
6
|
+
})(ActiveValidatorDetails || (ActiveValidatorDetails = {}));
|
|
7
|
+
|
|
8
|
+
export { ActiveValidatorDetails };
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
declare enum BlockchainId {
|
|
2
|
+
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3
|
+
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
4
|
+
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
5
|
+
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
6
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
2
7
|
P_CHAIN = "p-chain",
|
|
3
8
|
X_CHAIN = "x-chain",
|
|
4
|
-
C_CHAIN = "c-chain"
|
|
5
|
-
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
6
|
-
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
|
|
9
|
+
C_CHAIN = "c-chain"
|
|
7
10
|
}
|
|
8
11
|
|
|
9
12
|
export { BlockchainId };
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
var BlockchainId = /* @__PURE__ */ ((BlockchainId2) => {
|
|
2
|
+
BlockchainId2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
|
|
3
|
+
BlockchainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
|
|
4
|
+
BlockchainId2["_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM"] = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm";
|
|
5
|
+
BlockchainId2["_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5"] = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5";
|
|
6
|
+
BlockchainId2["Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP"] = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp";
|
|
2
7
|
BlockchainId2["P_CHAIN"] = "p-chain";
|
|
3
8
|
BlockchainId2["X_CHAIN"] = "x-chain";
|
|
4
9
|
BlockchainId2["C_CHAIN"] = "c-chain";
|
|
5
|
-
BlockchainId2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
|
|
6
|
-
BlockchainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
|
|
7
10
|
return BlockchainId2;
|
|
8
11
|
})(BlockchainId || {});
|
|
9
12
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare enum BlockchainIds {
|
|
2
|
+
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3
|
+
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
4
|
+
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
5
|
+
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
6
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export { BlockchainIds };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var BlockchainIds = /* @__PURE__ */ ((BlockchainIds2) => {
|
|
2
|
+
BlockchainIds2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
|
|
3
|
+
BlockchainIds2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
|
|
4
|
+
BlockchainIds2["_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM"] = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm";
|
|
5
|
+
BlockchainIds2["_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5"] = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5";
|
|
6
|
+
BlockchainIds2["Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP"] = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp";
|
|
7
|
+
return BlockchainIds2;
|
|
8
|
+
})(BlockchainIds || {});
|
|
9
|
+
|
|
10
|
+
export { BlockchainIds };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BlockchainIds } from './BlockchainIds.js';
|
|
2
2
|
|
|
3
3
|
type ChainAddressChainIdMap = {
|
|
4
4
|
address: string;
|
|
5
|
-
blockchainIds:
|
|
5
|
+
blockchainIds: Array<BlockchainIds>;
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export { ChainAddressChainIdMap };
|
|
@@ -6,10 +6,7 @@ import { VmName } from './VmName.js';
|
|
|
6
6
|
type ChainInfo = {
|
|
7
7
|
chainId: string;
|
|
8
8
|
/**
|
|
9
|
-
* Status of chain nodes. Chain nodes can become temporarily
|
|
10
|
-
* `UNAVAILABLE` for several reasons, such as validator stake falling
|
|
11
|
-
* below threshold. If chain nodes are `UNAVAILABLE`, requests that rely
|
|
12
|
-
* on data from the chain nodes may return 503 errors.
|
|
9
|
+
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
13
10
|
*/
|
|
14
11
|
status: ChainStatus;
|
|
15
12
|
chainName: string;
|
|
@@ -25,6 +22,7 @@ type ChainInfo = {
|
|
|
25
22
|
utilityAddresses?: UtilityAddresses;
|
|
26
23
|
networkToken: NetworkToken;
|
|
27
24
|
chainLogoUri?: string;
|
|
25
|
+
private?: boolean;
|
|
28
26
|
};
|
|
29
27
|
|
|
30
28
|
export { ChainInfo };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type CompletedDelegatorDetails = {
|
|
2
|
+
txHash: string;
|
|
3
|
+
nodeId: string;
|
|
4
|
+
rewardAddresses: Array<string>;
|
|
5
|
+
amountDelegated: string;
|
|
6
|
+
delegationFee: string;
|
|
7
|
+
startTimestamp: number;
|
|
8
|
+
endTimestamp: number;
|
|
9
|
+
grossReward: string;
|
|
10
|
+
netReward: string;
|
|
11
|
+
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
12
|
+
};
|
|
13
|
+
declare namespace CompletedDelegatorDetails {
|
|
14
|
+
enum delegationStatus {
|
|
15
|
+
COMPLETED = "completed"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { CompletedDelegatorDetails };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var CompletedDelegatorDetails;
|
|
2
|
+
((CompletedDelegatorDetails2) => {
|
|
3
|
+
((delegationStatus2) => {
|
|
4
|
+
delegationStatus2["COMPLETED"] = "completed";
|
|
5
|
+
})(CompletedDelegatorDetails2.delegationStatus || (CompletedDelegatorDetails2.delegationStatus = {}));
|
|
6
|
+
})(CompletedDelegatorDetails || (CompletedDelegatorDetails = {}));
|
|
7
|
+
|
|
8
|
+
export { CompletedDelegatorDetails };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Rewards } from './Rewards.js';
|
|
2
|
+
|
|
3
|
+
type CompletedValidatorDetails = {
|
|
4
|
+
nodeId: string;
|
|
5
|
+
subnetId: string;
|
|
6
|
+
amountStaked: string;
|
|
7
|
+
delegationFee?: string;
|
|
8
|
+
startTimestamp: number;
|
|
9
|
+
endTimestamp: number;
|
|
10
|
+
delegatorCount: number;
|
|
11
|
+
rewards: Rewards;
|
|
12
|
+
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
13
|
+
};
|
|
14
|
+
declare namespace CompletedValidatorDetails {
|
|
15
|
+
enum validationStatus {
|
|
16
|
+
COMPLETED = "completed"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { CompletedValidatorDetails };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var CompletedValidatorDetails;
|
|
2
|
+
((CompletedValidatorDetails2) => {
|
|
3
|
+
((validationStatus2) => {
|
|
4
|
+
validationStatus2["COMPLETED"] = "completed";
|
|
5
|
+
})(CompletedValidatorDetails2.validationStatus || (CompletedValidatorDetails2.validationStatus = {}));
|
|
6
|
+
})(CompletedValidatorDetails || (CompletedValidatorDetails = {}));
|
|
7
|
+
|
|
8
|
+
export { CompletedValidatorDetails };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type ContractDeploymentDetails = {
|
|
2
|
+
txHash: string;
|
|
3
|
+
/**
|
|
4
|
+
* The address that initiated the transaction which deployed this contract.
|
|
5
|
+
*/
|
|
6
|
+
deployerAddress: string;
|
|
7
|
+
/**
|
|
8
|
+
* The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
|
|
9
|
+
*/
|
|
10
|
+
deployerContractAddress?: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { ContractDeploymentDetails };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ContractSubmissionErc1155 } from './ContractSubmissionErc1155.js';
|
|
2
|
+
import { ContractSubmissionErc20 } from './ContractSubmissionErc20.js';
|
|
3
|
+
import { ContractSubmissionErc721 } from './ContractSubmissionErc721.js';
|
|
4
|
+
import { ContractSubmissionUnknown } from './ContractSubmissionUnknown.js';
|
|
5
|
+
|
|
6
|
+
type ContractSubmissionBody = {
|
|
7
|
+
contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { ContractSubmissionBody };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ImageAsset } from './ImageAsset.js';
|
|
2
|
+
import { PricingProviders } from './PricingProviders.js';
|
|
3
|
+
import { ResourceLink } from './ResourceLink.js';
|
|
4
|
+
|
|
5
|
+
type ContractSubmissionErc1155 = {
|
|
6
|
+
description?: string;
|
|
7
|
+
officialSite?: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
logoAsset?: ImageAsset;
|
|
10
|
+
bannerAsset?: ImageAsset;
|
|
11
|
+
color?: string;
|
|
12
|
+
resourceLinks?: Array<ResourceLink>;
|
|
13
|
+
tags?: Array<string>;
|
|
14
|
+
/**
|
|
15
|
+
* The contract name.
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
ercType: ContractSubmissionErc1155.ercType;
|
|
19
|
+
/**
|
|
20
|
+
* The contract symbol.
|
|
21
|
+
*/
|
|
22
|
+
symbol: string;
|
|
23
|
+
pricingProviders?: PricingProviders;
|
|
24
|
+
};
|
|
25
|
+
declare namespace ContractSubmissionErc1155 {
|
|
26
|
+
enum ercType {
|
|
27
|
+
ERC_1155 = "ERC-1155"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { ContractSubmissionErc1155 };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var ContractSubmissionErc1155;
|
|
2
|
+
((ContractSubmissionErc11552) => {
|
|
3
|
+
((ercType2) => {
|
|
4
|
+
ercType2["ERC_1155"] = "ERC-1155";
|
|
5
|
+
})(ContractSubmissionErc11552.ercType || (ContractSubmissionErc11552.ercType = {}));
|
|
6
|
+
})(ContractSubmissionErc1155 || (ContractSubmissionErc1155 = {}));
|
|
7
|
+
|
|
8
|
+
export { ContractSubmissionErc1155 };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ImageAsset } from './ImageAsset.js';
|
|
2
|
+
import { PricingProviders } from './PricingProviders.js';
|
|
3
|
+
import { ResourceLink } from './ResourceLink.js';
|
|
4
|
+
|
|
5
|
+
type ContractSubmissionErc20 = {
|
|
6
|
+
description?: string;
|
|
7
|
+
officialSite?: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
logoAsset?: ImageAsset;
|
|
10
|
+
bannerAsset?: ImageAsset;
|
|
11
|
+
color?: string;
|
|
12
|
+
resourceLinks?: Array<ResourceLink>;
|
|
13
|
+
tags?: Array<string>;
|
|
14
|
+
/**
|
|
15
|
+
* The contract name.
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
ercType: ContractSubmissionErc20.ercType;
|
|
19
|
+
/**
|
|
20
|
+
* The contract symbol.
|
|
21
|
+
*/
|
|
22
|
+
symbol: string;
|
|
23
|
+
pricingProviders?: PricingProviders;
|
|
24
|
+
};
|
|
25
|
+
declare namespace ContractSubmissionErc20 {
|
|
26
|
+
enum ercType {
|
|
27
|
+
ERC_20 = "ERC-20"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { ContractSubmissionErc20 };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var ContractSubmissionErc20;
|
|
2
|
+
((ContractSubmissionErc202) => {
|
|
3
|
+
((ercType2) => {
|
|
4
|
+
ercType2["ERC_20"] = "ERC-20";
|
|
5
|
+
})(ContractSubmissionErc202.ercType || (ContractSubmissionErc202.ercType = {}));
|
|
6
|
+
})(ContractSubmissionErc20 || (ContractSubmissionErc20 = {}));
|
|
7
|
+
|
|
8
|
+
export { ContractSubmissionErc20 };
|