@avalabs/glacier-sdk 2.8.0-alpha.122 → 2.8.0-alpha.124
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 +2254 -2088
- package/dist/index.js +298 -222
- package/esm/generated/Glacier.d.ts +20 -2
- package/esm/generated/Glacier.js +21 -3
- package/esm/generated/core/OpenAPI.js +1 -1
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +15 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +20 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +15 -0
- package/esm/generated/models/ContractDeploymentDetails.d.ts +13 -0
- package/esm/generated/models/DelegationStatusType.d.ts +7 -0
- package/esm/generated/models/DelegationStatusType.js +8 -0
- package/esm/generated/models/Erc1155Contract.d.ts +36 -0
- package/esm/generated/models/Erc1155Contract.js +8 -0
- package/esm/generated/models/Erc20Contract.d.ts +40 -0
- package/esm/generated/models/Erc20Contract.js +8 -0
- package/esm/generated/models/Erc721Contract.d.ts +36 -0
- package/esm/generated/models/Erc721Contract.js +8 -0
- package/esm/generated/models/ImageAsset.d.ts +12 -0
- package/esm/generated/models/ListContractsResponse.d.ts +14 -0
- package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +16 -0
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +6 -1
- package/esm/generated/models/PendingDelegatorDetails.d.ts +15 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +12 -0
- package/esm/generated/models/PrimaryNetwork.d.ts +6 -0
- package/esm/generated/models/PrimaryNetwork.js +7 -0
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +5 -2
- package/esm/generated/models/PrimaryNetworkChainName.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkChainName.js +8 -0
- package/esm/generated/models/StakingDistribution.d.ts +1 -0
- package/esm/generated/models/UnknownContract.d.ts +32 -0
- package/esm/generated/models/UnknownContract.js +8 -0
- package/esm/generated/models/ValidationStatusType.d.ts +3 -1
- package/esm/generated/models/ValidationStatusType.js +2 -0
- package/esm/generated/models/ValidatorsDetails.d.ts +1 -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/{EvmService.d.ts → EvmTransactionsService.d.ts} +9 -314
- package/esm/generated/services/{EvmService.js → EvmTransactionsService.js} +7 -219
- 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 +69 -0
- package/esm/generated/services/PrimaryNetworkRewardsService.js +49 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +51 -444
- package/esm/generated/services/PrimaryNetworkService.js +34 -305
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +171 -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 +26 -9
- package/esm/index.js +17 -4
- package/package.json +2 -2
- package/esm/generated/models/CollectionMetrics.d.ts +0 -41
- package/esm/generated/models/CollectionSortByOption.d.ts +0 -9
- package/esm/generated/models/CollectionSortByOption.js +0 -10
- package/esm/generated/models/ErcType.d.ts +0 -8
- package/esm/generated/models/ErcType.js +0 -9
- package/esm/generated/models/FloorPrice.d.ts +0 -8
- package/esm/generated/models/ListNftCollectionWithMetricsResponse.d.ts +0 -11
- package/esm/generated/models/NftCollection.d.ts +0 -24
- package/esm/generated/models/NftCollectionWithMetrics.d.ts +0 -26
- package/esm/generated/models/TrendingTimeframe.d.ts +0 -7
- package/esm/generated/models/TrendingTimeframe.js +0 -8
|
@@ -1,16 +1,34 @@
|
|
|
1
1
|
import { BaseHttpRequest } from './core/BaseHttpRequest.js';
|
|
2
2
|
import { OpenAPIConfig } from './core/OpenAPI.js';
|
|
3
|
-
import {
|
|
3
|
+
import { EvmBalancesService } from './services/EvmBalancesService.js';
|
|
4
|
+
import { EvmBlocksService } from './services/EvmBlocksService.js';
|
|
5
|
+
import { EvmChainsService } from './services/EvmChainsService.js';
|
|
6
|
+
import { EvmTransactionsService } from './services/EvmTransactionsService.js';
|
|
4
7
|
import { HealthCheckService } from './services/HealthCheckService.js';
|
|
5
8
|
import { OperationsService } from './services/OperationsService.js';
|
|
6
9
|
import { PrimaryNetworkService } from './services/PrimaryNetworkService.js';
|
|
10
|
+
import { PrimaryNetworkBalancesService } from './services/PrimaryNetworkBalancesService.js';
|
|
11
|
+
import { PrimaryNetworkBlocksService } from './services/PrimaryNetworkBlocksService.js';
|
|
12
|
+
import { PrimaryNetworkRewardsService } from './services/PrimaryNetworkRewardsService.js';
|
|
13
|
+
import { PrimaryNetworkTransactionsService } from './services/PrimaryNetworkTransactionsService.js';
|
|
14
|
+
import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsService.js';
|
|
15
|
+
import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
|
|
7
16
|
|
|
8
17
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
9
18
|
declare class Glacier {
|
|
10
|
-
readonly
|
|
19
|
+
readonly evmBalances: EvmBalancesService;
|
|
20
|
+
readonly evmBlocks: EvmBlocksService;
|
|
21
|
+
readonly evmChains: EvmChainsService;
|
|
22
|
+
readonly evmTransactions: EvmTransactionsService;
|
|
11
23
|
readonly healthCheck: HealthCheckService;
|
|
12
24
|
readonly operations: OperationsService;
|
|
13
25
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
26
|
+
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
27
|
+
readonly primaryNetworkBlocks: PrimaryNetworkBlocksService;
|
|
28
|
+
readonly primaryNetworkRewards: PrimaryNetworkRewardsService;
|
|
29
|
+
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
30
|
+
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
31
|
+
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
14
32
|
readonly request: BaseHttpRequest;
|
|
15
33
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
16
34
|
}
|
package/esm/generated/Glacier.js
CHANGED
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
import { FetchHttpRequest } from './core/FetchHttpRequest.js';
|
|
2
|
-
import {
|
|
2
|
+
import { EvmBalancesService } from './services/EvmBalancesService.js';
|
|
3
|
+
import { EvmBlocksService } from './services/EvmBlocksService.js';
|
|
4
|
+
import { EvmChainsService } from './services/EvmChainsService.js';
|
|
5
|
+
import { EvmTransactionsService } from './services/EvmTransactionsService.js';
|
|
3
6
|
import { HealthCheckService } from './services/HealthCheckService.js';
|
|
4
7
|
import { OperationsService } from './services/OperationsService.js';
|
|
5
8
|
import { PrimaryNetworkService } from './services/PrimaryNetworkService.js';
|
|
9
|
+
import { PrimaryNetworkBalancesService } from './services/PrimaryNetworkBalancesService.js';
|
|
10
|
+
import { PrimaryNetworkBlocksService } from './services/PrimaryNetworkBlocksService.js';
|
|
11
|
+
import { PrimaryNetworkRewardsService } from './services/PrimaryNetworkRewardsService.js';
|
|
12
|
+
import { PrimaryNetworkTransactionsService } from './services/PrimaryNetworkTransactionsService.js';
|
|
13
|
+
import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsService.js';
|
|
14
|
+
import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
|
|
6
15
|
|
|
7
16
|
class Glacier {
|
|
8
17
|
constructor(config, HttpRequest = FetchHttpRequest) {
|
|
9
18
|
var _a, _b, _c, _d;
|
|
10
19
|
this.request = new HttpRequest({
|
|
11
|
-
BASE: (_a = config == null ? void 0 : config.BASE) != null ? _a : "",
|
|
20
|
+
BASE: (_a = config == null ? void 0 : config.BASE) != null ? _a : "https://glacier-api-dev.avax.network",
|
|
12
21
|
VERSION: (_b = config == null ? void 0 : config.VERSION) != null ? _b : "Beta",
|
|
13
22
|
WITH_CREDENTIALS: (_c = config == null ? void 0 : config.WITH_CREDENTIALS) != null ? _c : false,
|
|
14
23
|
CREDENTIALS: (_d = config == null ? void 0 : config.CREDENTIALS) != null ? _d : "include",
|
|
@@ -18,10 +27,19 @@ class Glacier {
|
|
|
18
27
|
HEADERS: config == null ? void 0 : config.HEADERS,
|
|
19
28
|
ENCODE_PATH: config == null ? void 0 : config.ENCODE_PATH
|
|
20
29
|
});
|
|
21
|
-
this.
|
|
30
|
+
this.evmBalances = new EvmBalancesService(this.request);
|
|
31
|
+
this.evmBlocks = new EvmBlocksService(this.request);
|
|
32
|
+
this.evmChains = new EvmChainsService(this.request);
|
|
33
|
+
this.evmTransactions = new EvmTransactionsService(this.request);
|
|
22
34
|
this.healthCheck = new HealthCheckService(this.request);
|
|
23
35
|
this.operations = new OperationsService(this.request);
|
|
24
36
|
this.primaryNetwork = new PrimaryNetworkService(this.request);
|
|
37
|
+
this.primaryNetworkBalances = new PrimaryNetworkBalancesService(this.request);
|
|
38
|
+
this.primaryNetworkBlocks = new PrimaryNetworkBlocksService(this.request);
|
|
39
|
+
this.primaryNetworkRewards = new PrimaryNetworkRewardsService(this.request);
|
|
40
|
+
this.primaryNetworkTransactions = new PrimaryNetworkTransactionsService(this.request);
|
|
41
|
+
this.primaryNetworkUtxOs = new PrimaryNetworkUtxOsService(this.request);
|
|
42
|
+
this.primaryNetworkVertices = new PrimaryNetworkVerticesService(this.request);
|
|
25
43
|
}
|
|
26
44
|
}
|
|
27
45
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DelegationStatusType } from './DelegationStatusType.js';
|
|
2
|
+
|
|
3
|
+
type ActiveDelegatorDetails = {
|
|
4
|
+
txHash: string;
|
|
5
|
+
rewardAddresses: Array<string>;
|
|
6
|
+
amountDelegated: string;
|
|
7
|
+
delegationFee: string;
|
|
8
|
+
startTimestamp: number;
|
|
9
|
+
endTimestamp: number;
|
|
10
|
+
delegationStatus: DelegationStatusType;
|
|
11
|
+
estimatedGrossReward: string;
|
|
12
|
+
estimatedNetReward: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { ActiveDelegatorDetails };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Rewards } from './Rewards.js';
|
|
2
|
+
import { ValidationStatusType } from './ValidationStatusType.js';
|
|
3
|
+
|
|
4
|
+
type ActiveValidatorDetails = {
|
|
5
|
+
nodeId: string;
|
|
6
|
+
amountStaked: string;
|
|
7
|
+
delegationFee: string;
|
|
8
|
+
startTimestamp: number;
|
|
9
|
+
endTimestamp: number;
|
|
10
|
+
validationStatus: ValidationStatusType;
|
|
11
|
+
stakePercentage: number;
|
|
12
|
+
delegatorCount: number;
|
|
13
|
+
amountDelegated: string;
|
|
14
|
+
uptimePerformance: number;
|
|
15
|
+
avalancheGoVersion: string;
|
|
16
|
+
delegationCapacity: string;
|
|
17
|
+
potentialRewards: Rewards;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { ActiveValidatorDetails };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DelegationStatusType } from './DelegationStatusType.js';
|
|
2
|
+
|
|
3
|
+
type CompletedDelegatorDetails = {
|
|
4
|
+
txHash: string;
|
|
5
|
+
rewardAddresses: Array<string>;
|
|
6
|
+
amountDelegated: string;
|
|
7
|
+
delegationFee: string;
|
|
8
|
+
startTimestamp: number;
|
|
9
|
+
endTimestamp: number;
|
|
10
|
+
delegationStatus: DelegationStatusType;
|
|
11
|
+
grossReward: string;
|
|
12
|
+
netReward: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { CompletedDelegatorDetails };
|
|
@@ -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,8 @@
|
|
|
1
|
+
var DelegationStatusType = /* @__PURE__ */ ((DelegationStatusType2) => {
|
|
2
|
+
DelegationStatusType2["COMPLETED"] = "completed";
|
|
3
|
+
DelegationStatusType2["ACTIVE"] = "active";
|
|
4
|
+
DelegationStatusType2["PENDING"] = "pending";
|
|
5
|
+
return DelegationStatusType2;
|
|
6
|
+
})(DelegationStatusType || {});
|
|
7
|
+
|
|
8
|
+
export { DelegationStatusType };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ContractDeploymentDetails } from './ContractDeploymentDetails.js';
|
|
2
|
+
import { ImageAsset } from './ImageAsset.js';
|
|
3
|
+
import { ResourceLink } from './ResourceLink.js';
|
|
4
|
+
|
|
5
|
+
type Erc1155Contract = {
|
|
6
|
+
/**
|
|
7
|
+
* The contract name.
|
|
8
|
+
*/
|
|
9
|
+
name?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
officialSite?: string;
|
|
12
|
+
email?: string;
|
|
13
|
+
logoAsset?: ImageAsset;
|
|
14
|
+
bannerAsset?: ImageAsset;
|
|
15
|
+
color?: string;
|
|
16
|
+
coingeckoCoinId?: string;
|
|
17
|
+
resourceLinks?: Array<ResourceLink>;
|
|
18
|
+
tags?: Array<string>;
|
|
19
|
+
/**
|
|
20
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
21
|
+
*/
|
|
22
|
+
address: string;
|
|
23
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
24
|
+
ercType: Erc1155Contract.ercType;
|
|
25
|
+
/**
|
|
26
|
+
* The contract symbol.
|
|
27
|
+
*/
|
|
28
|
+
symbol?: string;
|
|
29
|
+
};
|
|
30
|
+
declare namespace Erc1155Contract {
|
|
31
|
+
enum ercType {
|
|
32
|
+
ERC_1155 = "ERC-1155"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { Erc1155Contract };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ContractDeploymentDetails } from './ContractDeploymentDetails.js';
|
|
2
|
+
import { ImageAsset } from './ImageAsset.js';
|
|
3
|
+
import { ResourceLink } from './ResourceLink.js';
|
|
4
|
+
|
|
5
|
+
type Erc20Contract = {
|
|
6
|
+
/**
|
|
7
|
+
* The contract name.
|
|
8
|
+
*/
|
|
9
|
+
name?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
officialSite?: string;
|
|
12
|
+
email?: string;
|
|
13
|
+
logoAsset?: ImageAsset;
|
|
14
|
+
bannerAsset?: ImageAsset;
|
|
15
|
+
color?: string;
|
|
16
|
+
coingeckoCoinId?: string;
|
|
17
|
+
resourceLinks?: Array<ResourceLink>;
|
|
18
|
+
tags?: Array<string>;
|
|
19
|
+
/**
|
|
20
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
21
|
+
*/
|
|
22
|
+
address: string;
|
|
23
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
24
|
+
ercType: Erc20Contract.ercType;
|
|
25
|
+
/**
|
|
26
|
+
* The contract symbol.
|
|
27
|
+
*/
|
|
28
|
+
symbol?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
31
|
+
*/
|
|
32
|
+
decimals: number;
|
|
33
|
+
};
|
|
34
|
+
declare namespace Erc20Contract {
|
|
35
|
+
enum ercType {
|
|
36
|
+
ERC_20 = "ERC-20"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { Erc20Contract };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ContractDeploymentDetails } from './ContractDeploymentDetails.js';
|
|
2
|
+
import { ImageAsset } from './ImageAsset.js';
|
|
3
|
+
import { ResourceLink } from './ResourceLink.js';
|
|
4
|
+
|
|
5
|
+
type Erc721Contract = {
|
|
6
|
+
/**
|
|
7
|
+
* The contract name.
|
|
8
|
+
*/
|
|
9
|
+
name?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
officialSite?: string;
|
|
12
|
+
email?: string;
|
|
13
|
+
logoAsset?: ImageAsset;
|
|
14
|
+
bannerAsset?: ImageAsset;
|
|
15
|
+
color?: string;
|
|
16
|
+
coingeckoCoinId?: string;
|
|
17
|
+
resourceLinks?: Array<ResourceLink>;
|
|
18
|
+
tags?: Array<string>;
|
|
19
|
+
/**
|
|
20
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
21
|
+
*/
|
|
22
|
+
address: string;
|
|
23
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
24
|
+
ercType: Erc721Contract.ercType;
|
|
25
|
+
/**
|
|
26
|
+
* The contract symbol.
|
|
27
|
+
*/
|
|
28
|
+
symbol?: string;
|
|
29
|
+
};
|
|
30
|
+
declare namespace Erc721Contract {
|
|
31
|
+
enum ercType {
|
|
32
|
+
ERC_721 = "ERC-721"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { Erc721Contract };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Erc1155Contract } from './Erc1155Contract.js';
|
|
2
|
+
import { Erc20Contract } from './Erc20Contract.js';
|
|
3
|
+
import { Erc721Contract } from './Erc721Contract.js';
|
|
4
|
+
import { UnknownContract } from './UnknownContract.js';
|
|
5
|
+
|
|
6
|
+
type ListContractsResponse = {
|
|
7
|
+
/**
|
|
8
|
+
* 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.
|
|
9
|
+
*/
|
|
10
|
+
nextPageToken?: string;
|
|
11
|
+
contracts: Array<(UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract)>;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { ListContractsResponse };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ActiveDelegatorDetails } from './ActiveDelegatorDetails.js';
|
|
2
|
+
import { CompletedDelegatorDetails } from './CompletedDelegatorDetails.js';
|
|
3
|
+
import { PendingDelegatorDetails } from './PendingDelegatorDetails.js';
|
|
4
|
+
|
|
5
|
+
type ListDelegatorDetailsResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
8
|
+
*/
|
|
9
|
+
nextPageToken?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The list of Delegator Details.
|
|
12
|
+
*/
|
|
13
|
+
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { ListDelegatorDetailsResponse };
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
+
import { ActiveValidatorDetails } from './ActiveValidatorDetails.js';
|
|
1
2
|
import { CompletedValidatorDetails } from './CompletedValidatorDetails.js';
|
|
3
|
+
import { PendingValidatorDetails } from './PendingValidatorDetails.js';
|
|
2
4
|
|
|
3
5
|
type ListValidatorDetailsResponse = {
|
|
4
6
|
/**
|
|
5
7
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
6
8
|
*/
|
|
7
9
|
nextPageToken?: string;
|
|
8
|
-
|
|
10
|
+
/**
|
|
11
|
+
* The list of Validator Details.
|
|
12
|
+
*/
|
|
13
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
9
14
|
};
|
|
10
15
|
|
|
11
16
|
export { ListValidatorDetailsResponse };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DelegationStatusType } from './DelegationStatusType.js';
|
|
2
|
+
|
|
3
|
+
type PendingDelegatorDetails = {
|
|
4
|
+
txHash: string;
|
|
5
|
+
rewardAddresses: Array<string>;
|
|
6
|
+
amountDelegated: string;
|
|
7
|
+
delegationFee: string;
|
|
8
|
+
startTimestamp: number;
|
|
9
|
+
endTimestamp: number;
|
|
10
|
+
delegationStatus: DelegationStatusType;
|
|
11
|
+
estimatedGrossReward: string;
|
|
12
|
+
estimatedNetReward: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { PendingDelegatorDetails };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ValidationStatusType } from './ValidationStatusType.js';
|
|
2
|
+
|
|
3
|
+
type PendingValidatorDetails = {
|
|
4
|
+
nodeId: string;
|
|
5
|
+
amountStaked: string;
|
|
6
|
+
delegationFee: string;
|
|
7
|
+
startTimestamp: number;
|
|
8
|
+
endTimestamp: number;
|
|
9
|
+
validationStatus: ValidationStatusType;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { PendingValidatorDetails };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { PrimaryNetwork } from './PrimaryNetwork.js';
|
|
2
|
+
import { PrimaryNetworkChainName } from './PrimaryNetworkChainName.js';
|
|
3
|
+
|
|
1
4
|
type PrimaryNetworkChainInfo = {
|
|
2
|
-
chainName:
|
|
3
|
-
network:
|
|
5
|
+
chainName: PrimaryNetworkChainName;
|
|
6
|
+
network: PrimaryNetwork;
|
|
4
7
|
};
|
|
5
8
|
|
|
6
9
|
export { PrimaryNetworkChainInfo };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var PrimaryNetworkChainName = /* @__PURE__ */ ((PrimaryNetworkChainName2) => {
|
|
2
|
+
PrimaryNetworkChainName2["P_CHAIN"] = "p-chain";
|
|
3
|
+
PrimaryNetworkChainName2["X_CHAIN"] = "x-chain";
|
|
4
|
+
PrimaryNetworkChainName2["C_CHAIN"] = "c-chain";
|
|
5
|
+
return PrimaryNetworkChainName2;
|
|
6
|
+
})(PrimaryNetworkChainName || {});
|
|
7
|
+
|
|
8
|
+
export { PrimaryNetworkChainName };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ContractDeploymentDetails } from './ContractDeploymentDetails.js';
|
|
2
|
+
import { ImageAsset } from './ImageAsset.js';
|
|
3
|
+
import { ResourceLink } from './ResourceLink.js';
|
|
4
|
+
|
|
5
|
+
type UnknownContract = {
|
|
6
|
+
/**
|
|
7
|
+
* The contract name.
|
|
8
|
+
*/
|
|
9
|
+
name?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
officialSite?: string;
|
|
12
|
+
email?: string;
|
|
13
|
+
logoAsset?: ImageAsset;
|
|
14
|
+
bannerAsset?: ImageAsset;
|
|
15
|
+
color?: string;
|
|
16
|
+
coingeckoCoinId?: string;
|
|
17
|
+
resourceLinks?: Array<ResourceLink>;
|
|
18
|
+
tags?: Array<string>;
|
|
19
|
+
/**
|
|
20
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
21
|
+
*/
|
|
22
|
+
address: string;
|
|
23
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
24
|
+
ercType: UnknownContract.ercType;
|
|
25
|
+
};
|
|
26
|
+
declare namespace UnknownContract {
|
|
27
|
+
enum ercType {
|
|
28
|
+
UNKNOWN = "UNKNOWN"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { UnknownContract };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
var ValidationStatusType = /* @__PURE__ */ ((ValidationStatusType2) => {
|
|
2
2
|
ValidationStatusType2["COMPLETED"] = "completed";
|
|
3
|
+
ValidationStatusType2["ACTIVE"] = "active";
|
|
4
|
+
ValidationStatusType2["PENDING"] = "pending";
|
|
3
5
|
return ValidationStatusType2;
|
|
4
6
|
})(ValidationStatusType || {});
|
|
5
7
|
|