@avalabs/glacier-sdk 3.1.0-canary.f0648cd.0 → 3.1.0-canary.f0c54c3.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 +627 -171
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/AccessRequest.d.ts +12 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +21 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
- package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
- package/esm/generated/models/Erc20TokenBalance.js +1 -1
- package/esm/generated/models/EvmBlock.d.ts +4 -0
- package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
- package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +1 -1
- package/esm/generated/models/ListErc1155BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
- package/esm/generated/models/NativeTransaction.d.ts +4 -0
- package/esm/generated/models/NotificationsResponse.d.ts +5 -0
- package/esm/generated/models/PChainTransaction.d.ts +20 -8
- package/esm/generated/models/PChainUtxo.d.ts +27 -0
- package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +4 -0
- package/esm/generated/models/StakingDistribution.d.ts +9 -0
- package/esm/generated/models/Subnet.d.ts +4 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
- package/esm/generated/models/SubscribeRequest.d.ts +16 -0
- package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
- package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
- package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
- package/esm/generated/models/UtxoType.d.ts +3 -0
- package/esm/generated/models/ValidatorsDetails.d.ts +6 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +72 -22
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmBlocksService.d.ts +21 -0
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +69 -4
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmTransactionsService.d.ts +34 -1
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/NotificationsService.d.ts +51 -0
- package/esm/generated/services/NotificationsService.js +1 -0
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +6 -1
- package/esm/generated/services/SignatureAggregatorService.js +1 -1
- package/esm/index.d.ts +11 -1
- package/esm/index.js +1 -1
- package/package.json +2 -2
|
@@ -9,6 +9,7 @@ import { EvmContractsService } from './services/EvmContractsService.js';
|
|
|
9
9
|
import { EvmTransactionsService } from './services/EvmTransactionsService.js';
|
|
10
10
|
import { HealthCheckService } from './services/HealthCheckService.js';
|
|
11
11
|
import { NfTsService } from './services/NfTsService.js';
|
|
12
|
+
import { NotificationsService } from './services/NotificationsService.js';
|
|
12
13
|
import { OperationsService } from './services/OperationsService.js';
|
|
13
14
|
import { PrimaryNetworkService } from './services/PrimaryNetworkService.js';
|
|
14
15
|
import { PrimaryNetworkBalancesService } from './services/PrimaryNetworkBalancesService.js';
|
|
@@ -32,6 +33,7 @@ declare class Glacier {
|
|
|
32
33
|
readonly evmTransactions: EvmTransactionsService;
|
|
33
34
|
readonly healthCheck: HealthCheckService;
|
|
34
35
|
readonly nfTs: NfTsService;
|
|
36
|
+
readonly notifications: NotificationsService;
|
|
35
37
|
readonly operations: OperationsService;
|
|
36
38
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
37
39
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
package/esm/generated/Glacier.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FetchHttpRequest as e}from"./core/FetchHttpRequest.js";import{DataApiUsageMetricsService as r}from"./services/DataApiUsageMetricsService.js";import{DefaultService as s}from"./services/DefaultService.js";import{EvmBalancesService as t}from"./services/EvmBalancesService.js";import{EvmBlocksService as i}from"./services/EvmBlocksService.js";import{EvmChainsService as o}from"./services/EvmChainsService.js";import{EvmContractsService as a}from"./services/EvmContractsService.js";import{EvmTransactionsService as
|
|
1
|
+
import{FetchHttpRequest as e}from"./core/FetchHttpRequest.js";import{DataApiUsageMetricsService as r}from"./services/DataApiUsageMetricsService.js";import{DefaultService as s}from"./services/DefaultService.js";import{EvmBalancesService as t}from"./services/EvmBalancesService.js";import{EvmBlocksService as i}from"./services/EvmBlocksService.js";import{EvmChainsService as o}from"./services/EvmChainsService.js";import{EvmContractsService as a}from"./services/EvmContractsService.js";import{EvmTransactionsService as c}from"./services/EvmTransactionsService.js";import{HealthCheckService as m}from"./services/HealthCheckService.js";import{NfTsService as n}from"./services/NfTsService.js";import{NotificationsService as h}from"./services/NotificationsService.js";import{OperationsService as v}from"./services/OperationsService.js";import{PrimaryNetworkService as p}from"./services/PrimaryNetworkService.js";import{PrimaryNetworkBalancesService as w}from"./services/PrimaryNetworkBalancesService.js";import{PrimaryNetworkBlocksService as S}from"./services/PrimaryNetworkBlocksService.js";import{PrimaryNetworkRewardsService as N}from"./services/PrimaryNetworkRewardsService.js";import{PrimaryNetworkTransactionsService as k}from"./services/PrimaryNetworkTransactionsService.js";import{PrimaryNetworkUtxOsService as u}from"./services/PrimaryNetworkUtxOsService.js";import{PrimaryNetworkVerticesService as f}from"./services/PrimaryNetworkVerticesService.js";import{SignatureAggregatorService as E}from"./services/SignatureAggregatorService.js";import{TeleporterService as l}from"./services/TeleporterService.js";import{WebhooksService as q}from"./services/WebhooksService.js";class j{dataApiUsageMetrics;default;evmBalances;evmBlocks;evmChains;evmContracts;evmTransactions;healthCheck;nfTs;notifications;operations;primaryNetwork;primaryNetworkBalances;primaryNetworkBlocks;primaryNetworkRewards;primaryNetworkTransactions;primaryNetworkUtxOs;primaryNetworkVertices;signatureAggregator;teleporter;webhooks;request;constructor(j,y=e){this.request=new y({BASE:j?.BASE??"https://glacier-api-dev.avax.network",VERSION:j?.VERSION??"Beta",WITH_CREDENTIALS:j?.WITH_CREDENTIALS??!1,CREDENTIALS:j?.CREDENTIALS??"include",TOKEN:j?.TOKEN,USERNAME:j?.USERNAME,PASSWORD:j?.PASSWORD,HEADERS:j?.HEADERS,ENCODE_PATH:j?.ENCODE_PATH}),this.dataApiUsageMetrics=new r(this.request),this.default=new s(this.request),this.evmBalances=new t(this.request),this.evmBlocks=new i(this.request),this.evmChains=new o(this.request),this.evmContracts=new a(this.request),this.evmTransactions=new c(this.request),this.healthCheck=new m(this.request),this.nfTs=new n(this.request),this.notifications=new h(this.request),this.operations=new v(this.request),this.primaryNetwork=new p(this.request),this.primaryNetworkBalances=new w(this.request),this.primaryNetworkBlocks=new S(this.request),this.primaryNetworkRewards=new N(this.request),this.primaryNetworkTransactions=new k(this.request),this.primaryNetworkUtxOs=new u(this.request),this.primaryNetworkVertices=new f(this.request),this.signatureAggregator=new E(this.request),this.teleporter=new l(this.request),this.webhooks=new q(this.request)}}export{j as Glacier};
|
|
@@ -7,6 +7,9 @@ type ActiveValidatorDetails = {
|
|
|
7
7
|
nodeId: string;
|
|
8
8
|
subnetId: string;
|
|
9
9
|
amountStaked: string;
|
|
10
|
+
/**
|
|
11
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
12
|
+
*/
|
|
10
13
|
delegationFee?: string;
|
|
11
14
|
startTimestamp: number;
|
|
12
15
|
endTimestamp: number;
|
|
@@ -14,12 +17,30 @@ type ActiveValidatorDetails = {
|
|
|
14
17
|
* Present for AddPermissionlessValidatorTx
|
|
15
18
|
*/
|
|
16
19
|
blsCredentials?: BlsCredentials;
|
|
20
|
+
/**
|
|
21
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
22
|
+
*/
|
|
17
23
|
stakePercentage: number;
|
|
24
|
+
/**
|
|
25
|
+
* The number of delegators linked to the validator.
|
|
26
|
+
*/
|
|
18
27
|
delegatorCount: number;
|
|
28
|
+
/**
|
|
29
|
+
* The total amount in nAVAX delegated to the validator.
|
|
30
|
+
*/
|
|
19
31
|
amountDelegated?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
34
|
+
*/
|
|
20
35
|
uptimePerformance: number;
|
|
21
36
|
avalancheGoVersion?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
39
|
+
*/
|
|
22
40
|
delegationCapacity?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
43
|
+
*/
|
|
23
44
|
potentialRewards: Rewards;
|
|
24
45
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
25
46
|
validatorHealth: ValidatorHealthDetails;
|
|
@@ -6,7 +6,13 @@ type CompletedDelegatorDetails = {
|
|
|
6
6
|
delegationFee: string;
|
|
7
7
|
startTimestamp: number;
|
|
8
8
|
endTimestamp: number;
|
|
9
|
+
/**
|
|
10
|
+
* Total rewards distributed for the successful delegation.
|
|
11
|
+
*/
|
|
9
12
|
grossReward: string;
|
|
13
|
+
/**
|
|
14
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
15
|
+
*/
|
|
10
16
|
netReward: string;
|
|
11
17
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
12
18
|
};
|
|
@@ -6,6 +6,9 @@ type CompletedValidatorDetails = {
|
|
|
6
6
|
nodeId: string;
|
|
7
7
|
subnetId: string;
|
|
8
8
|
amountStaked: string;
|
|
9
|
+
/**
|
|
10
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
11
|
+
*/
|
|
9
12
|
delegationFee?: string;
|
|
10
13
|
startTimestamp: number;
|
|
11
14
|
endTimestamp: number;
|
|
@@ -38,11 +38,22 @@ type Erc20TokenBalance = {
|
|
|
38
38
|
* The monetary value of the balance, if a price is available for the token.
|
|
39
39
|
*/
|
|
40
40
|
balanceValue?: Money;
|
|
41
|
+
/**
|
|
42
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
43
|
+
*/
|
|
44
|
+
tokenReputation: Erc20TokenBalance.tokenReputation | null;
|
|
41
45
|
};
|
|
42
46
|
declare namespace Erc20TokenBalance {
|
|
43
47
|
enum ercType {
|
|
44
48
|
ERC_20 = "ERC-20"
|
|
45
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
52
|
+
*/
|
|
53
|
+
enum tokenReputation {
|
|
54
|
+
MALICIOUS = "Malicious",
|
|
55
|
+
BENIGN = "Benign"
|
|
56
|
+
}
|
|
46
57
|
}
|
|
47
58
|
|
|
48
59
|
export { Erc20TokenBalance };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,
|
|
1
|
+
var e,t,n;((t=e||(e={})).ercType||(t.ercType={})).ERC_20="ERC-20",(n=t.tokenReputation||(t.tokenReputation={})).MALICIOUS="Malicious",n.BENIGN="Benign";export{e as Erc20TokenBalance};
|
|
@@ -14,6 +14,10 @@ type FullNativeTransactionDetails = {
|
|
|
14
14
|
* The block hash identifier.
|
|
15
15
|
*/
|
|
16
16
|
blockHash: string;
|
|
17
|
+
/**
|
|
18
|
+
* The EVM chain ID on which the transaction occured.
|
|
19
|
+
*/
|
|
20
|
+
chainId: string;
|
|
17
21
|
/**
|
|
18
22
|
* The index at which the transaction occured in the block (0-indexed).
|
|
19
23
|
*/
|
|
@@ -14,7 +14,7 @@ type L1ValidatorDetailsTransaction = {
|
|
|
14
14
|
*/
|
|
15
15
|
remainingBalance: number;
|
|
16
16
|
/**
|
|
17
|
-
* The increase in L1 validator balance in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
|
|
17
|
+
* The increase in L1 validator balance (nAVAX) in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
|
|
18
18
|
*/
|
|
19
19
|
balanceChange?: number;
|
|
20
20
|
blsCredentials?: Record<string, any>;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { Erc1155TokenBalance } from './Erc1155TokenBalance.js';
|
|
2
|
+
import { NativeTokenBalance } from './NativeTokenBalance.js';
|
|
2
3
|
|
|
3
4
|
type ListErc1155BalancesResponse = {
|
|
4
5
|
/**
|
|
5
6
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
6
7
|
*/
|
|
7
8
|
nextPageToken?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The native token balance for the address.
|
|
11
|
+
*/
|
|
12
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
8
13
|
/**
|
|
9
14
|
* The list of ERC-1155 token balances for the address.
|
|
10
15
|
*/
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { Erc20TokenBalance } from './Erc20TokenBalance.js';
|
|
2
|
+
import { NativeTokenBalance } from './NativeTokenBalance.js';
|
|
2
3
|
|
|
3
4
|
type ListErc20BalancesResponse = {
|
|
4
5
|
/**
|
|
5
6
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
6
7
|
*/
|
|
7
8
|
nextPageToken?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The native token balance for the address.
|
|
11
|
+
*/
|
|
12
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
8
13
|
/**
|
|
9
14
|
* The list of ERC-20 token balances for the address.
|
|
10
15
|
*/
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { Erc721TokenBalance } from './Erc721TokenBalance.js';
|
|
2
|
+
import { NativeTokenBalance } from './NativeTokenBalance.js';
|
|
2
3
|
|
|
3
4
|
type ListErc721BalancesResponse = {
|
|
4
5
|
/**
|
|
5
6
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
6
7
|
*/
|
|
7
8
|
nextPageToken?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The native token balance for the address.
|
|
11
|
+
*/
|
|
12
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
8
13
|
/**
|
|
9
14
|
* The list of ERC-721 token balances for the address.
|
|
10
15
|
*/
|
|
@@ -14,6 +14,10 @@ type NativeTransaction = {
|
|
|
14
14
|
* The block hash identifier.
|
|
15
15
|
*/
|
|
16
16
|
blockHash: string;
|
|
17
|
+
/**
|
|
18
|
+
* The EVM chain ID on which the transaction occured.
|
|
19
|
+
*/
|
|
20
|
+
chainId: string;
|
|
17
21
|
/**
|
|
18
22
|
* The index at which the transaction occured in the block (0-indexed).
|
|
19
23
|
*/
|
|
@@ -16,9 +16,18 @@ type PChainTransaction = {
|
|
|
16
16
|
* The block finality timestamp.
|
|
17
17
|
*/
|
|
18
18
|
blockTimestamp: number;
|
|
19
|
+
/**
|
|
20
|
+
* The height of the block in which the transaction was included
|
|
21
|
+
*/
|
|
19
22
|
blockNumber: string;
|
|
20
23
|
blockHash: string;
|
|
24
|
+
/**
|
|
25
|
+
* The consumed UTXOs of the transaction
|
|
26
|
+
*/
|
|
21
27
|
consumedUtxos: Array<PChainUtxo>;
|
|
28
|
+
/**
|
|
29
|
+
* The newly created UTXOs of the transaction
|
|
30
|
+
*/
|
|
22
31
|
emittedUtxos: Array<PChainUtxo>;
|
|
23
32
|
/**
|
|
24
33
|
* Source chain for an atomic transaction.
|
|
@@ -29,11 +38,11 @@ type PChainTransaction = {
|
|
|
29
38
|
*/
|
|
30
39
|
destinationChain?: string;
|
|
31
40
|
/**
|
|
32
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
41
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
|
|
33
42
|
*/
|
|
34
43
|
value: Array<AssetAmount>;
|
|
35
44
|
/**
|
|
36
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
45
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
|
|
37
46
|
*/
|
|
38
47
|
amountBurned: Array<AssetAmount>;
|
|
39
48
|
/**
|
|
@@ -41,7 +50,7 @@ type PChainTransaction = {
|
|
|
41
50
|
*/
|
|
42
51
|
amountStaked: Array<AssetAmount>;
|
|
43
52
|
/**
|
|
44
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
53
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation.
|
|
45
54
|
*/
|
|
46
55
|
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
47
56
|
/**
|
|
@@ -53,11 +62,11 @@ type PChainTransaction = {
|
|
|
53
62
|
*/
|
|
54
63
|
endTimestamp?: number;
|
|
55
64
|
/**
|
|
56
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
65
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
57
66
|
*/
|
|
58
67
|
delegationFeePercent?: string;
|
|
59
68
|
/**
|
|
60
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
69
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
61
70
|
*/
|
|
62
71
|
nodeId?: string;
|
|
63
72
|
/**
|
|
@@ -73,14 +82,17 @@ type PChainTransaction = {
|
|
|
73
82
|
*/
|
|
74
83
|
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
75
84
|
/**
|
|
76
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
85
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
77
86
|
*/
|
|
78
87
|
estimatedReward?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Reward transaction hash for the completed validations or delegations
|
|
90
|
+
*/
|
|
79
91
|
rewardTxHash?: string;
|
|
80
92
|
rewardAddresses?: Array<string>;
|
|
81
93
|
memo?: string;
|
|
82
94
|
/**
|
|
83
|
-
*
|
|
95
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
84
96
|
*/
|
|
85
97
|
stakingTxHash?: string;
|
|
86
98
|
/**
|
|
@@ -88,7 +100,7 @@ type PChainTransaction = {
|
|
|
88
100
|
*/
|
|
89
101
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
90
102
|
/**
|
|
91
|
-
* Present for AddPermissionlessValidatorTx
|
|
103
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
92
104
|
*/
|
|
93
105
|
blsCredentials?: BlsCredentials;
|
|
94
106
|
};
|
|
@@ -34,16 +34,43 @@ type PChainUtxo = {
|
|
|
34
34
|
assetId: string;
|
|
35
35
|
blockNumber: string;
|
|
36
36
|
blockTimestamp: number;
|
|
37
|
+
/**
|
|
38
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
39
|
+
*/
|
|
37
40
|
consumingBlockNumber?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
43
|
+
*/
|
|
38
44
|
consumingBlockTimestamp?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
47
|
+
*/
|
|
39
48
|
platformLocktime?: number;
|
|
49
|
+
/**
|
|
50
|
+
* The index of the UTXO in the transaction
|
|
51
|
+
*/
|
|
40
52
|
outputIndex: number;
|
|
41
53
|
rewardType?: RewardType;
|
|
54
|
+
/**
|
|
55
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
56
|
+
*/
|
|
42
57
|
stakeableLocktime?: number;
|
|
43
58
|
staked?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* The minimum number of signatures required to spend this UTXO
|
|
61
|
+
*/
|
|
44
62
|
threshold?: number;
|
|
63
|
+
/**
|
|
64
|
+
* The hash of the transaction that created this UTXO
|
|
65
|
+
*/
|
|
45
66
|
txHash: string;
|
|
67
|
+
/**
|
|
68
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
69
|
+
*/
|
|
46
70
|
utxoEndTimestamp?: number;
|
|
71
|
+
/**
|
|
72
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
73
|
+
*/
|
|
47
74
|
utxoStartTimestamp?: number;
|
|
48
75
|
utxoType: UtxoType;
|
|
49
76
|
};
|
|
@@ -6,7 +6,13 @@ type PendingDelegatorDetails = {
|
|
|
6
6
|
delegationFee: string;
|
|
7
7
|
startTimestamp: number;
|
|
8
8
|
endTimestamp: number;
|
|
9
|
+
/**
|
|
10
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
11
|
+
*/
|
|
9
12
|
estimatedGrossReward: string;
|
|
13
|
+
/**
|
|
14
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
15
|
+
*/
|
|
10
16
|
estimatedNetReward: string;
|
|
11
17
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
12
18
|
};
|
|
@@ -5,6 +5,9 @@ type PendingValidatorDetails = {
|
|
|
5
5
|
nodeId: string;
|
|
6
6
|
subnetId: string;
|
|
7
7
|
amountStaked: string;
|
|
8
|
+
/**
|
|
9
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
10
|
+
*/
|
|
8
11
|
delegationFee?: string;
|
|
9
12
|
startTimestamp: number;
|
|
10
13
|
endTimestamp: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=(e=>(e.REQUEST_PATH="requestPath",e.RESPONSE_CODE="responseCode",e.COUNTRY="country",e.CONTINENT="continent",e.USER_AGENT="userAgent",e))(e||{});export{e as PrimaryNetworkRpcMetricsGroupByEnum};
|
|
@@ -5,6 +5,9 @@ type RemovedValidatorDetails = {
|
|
|
5
5
|
nodeId: string;
|
|
6
6
|
subnetId: string;
|
|
7
7
|
amountStaked: string;
|
|
8
|
+
/**
|
|
9
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
10
|
+
*/
|
|
8
11
|
delegationFee?: string;
|
|
9
12
|
startTimestamp: number;
|
|
10
13
|
endTimestamp: number;
|
|
@@ -12,7 +15,13 @@ type RemovedValidatorDetails = {
|
|
|
12
15
|
* Present for AddPermissionlessValidatorTx
|
|
13
16
|
*/
|
|
14
17
|
blsCredentials?: BlsCredentials;
|
|
18
|
+
/**
|
|
19
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
20
|
+
*/
|
|
15
21
|
removeTxHash: string;
|
|
22
|
+
/**
|
|
23
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
24
|
+
*/
|
|
16
25
|
removeTimestamp: number;
|
|
17
26
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
18
27
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=(e=>(e.RPC_METHOD="rpcMethod",e.RESPONSE_CODE="responseCode",e.RL_BYPASS_TOKEN="rlBypassToken",e))(e||{});export{e as RpcUsageMetricsGroupByEnum};
|
|
@@ -23,6 +23,10 @@ type RpcUsageMetricsValueAggregated = {
|
|
|
23
23
|
* The number of invalid requests
|
|
24
24
|
*/
|
|
25
25
|
invalidRequests: number;
|
|
26
|
+
/**
|
|
27
|
+
* The number of API credits wasted on invalid requests
|
|
28
|
+
*/
|
|
29
|
+
apiCreditsWasted: number;
|
|
26
30
|
/**
|
|
27
31
|
* Column name used for data aggregation
|
|
28
32
|
*/
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
type StakingDistribution = {
|
|
2
|
+
/**
|
|
3
|
+
* AvalancheGo version for the validator node.
|
|
4
|
+
*/
|
|
2
5
|
version: string;
|
|
6
|
+
/**
|
|
7
|
+
* The total amount staked by validators using this version.
|
|
8
|
+
*/
|
|
3
9
|
amountStaked: string;
|
|
10
|
+
/**
|
|
11
|
+
* The number of validators using this version.
|
|
12
|
+
*/
|
|
4
13
|
validatorCount: number;
|
|
5
14
|
};
|
|
6
15
|
|
|
@@ -29,6 +29,10 @@ type Subnet = {
|
|
|
29
29
|
* Whether the subnet is an L1 or not.
|
|
30
30
|
*/
|
|
31
31
|
isL1: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
34
|
+
*/
|
|
35
|
+
l1ConversionTransactionHash?: string;
|
|
32
36
|
/**
|
|
33
37
|
* L1 validator manager details.
|
|
34
38
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var l=(l=>(l.HOURLY="hourly",l.DAILY="daily",l.WEEKLY="weekly",l.MONTHLY="monthly",l))(l||{});export{l as SubnetRpcTimeIntervalGranularity};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { RpcMetrics } from './RpcMetrics.js';
|
|
2
2
|
|
|
3
|
-
type
|
|
3
|
+
type SubnetRpcUsageMetricsResponseDTO = {
|
|
4
4
|
/**
|
|
5
5
|
* Duration in which the metrics value is aggregated
|
|
6
6
|
*/
|
|
7
7
|
aggregateDuration: string;
|
|
8
|
-
/**
|
|
9
|
-
* ChainId for which the metrics are aggregated
|
|
10
|
-
*/
|
|
11
|
-
chainId: string;
|
|
12
8
|
/**
|
|
13
9
|
* Metrics values
|
|
14
10
|
*/
|
|
15
11
|
metrics: Array<RpcMetrics>;
|
|
12
|
+
/**
|
|
13
|
+
* ChainId for which the metrics are aggregated
|
|
14
|
+
*/
|
|
15
|
+
chainId: string;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
export {
|
|
18
|
+
export { SubnetRpcUsageMetricsResponseDTO };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type SubscribeRequest = {
|
|
2
|
+
/**
|
|
3
|
+
* The access token to use for authentication
|
|
4
|
+
*/
|
|
5
|
+
accessToken: string;
|
|
6
|
+
/**
|
|
7
|
+
* The node ID to subscribe to
|
|
8
|
+
*/
|
|
9
|
+
nodeId: string;
|
|
10
|
+
/**
|
|
11
|
+
* The notification types to subscribe to. If not provided, all notification types will be subscribed to
|
|
12
|
+
*/
|
|
13
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { SubscribeRequest };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type SubscriptionsResponse = {
|
|
2
|
+
/**
|
|
3
|
+
* The email address of the user
|
|
4
|
+
*/
|
|
5
|
+
email: string;
|
|
6
|
+
/**
|
|
7
|
+
* The subscriptions of the user
|
|
8
|
+
*/
|
|
9
|
+
subscriptions: Record<string, {
|
|
10
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
11
|
+
}>;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { SubscriptionsResponse };
|
|
@@ -3,8 +3,14 @@ import { StakingDistribution } from './StakingDistribution.js';
|
|
|
3
3
|
type ValidatorsDetails = {
|
|
4
4
|
validatorCount: number;
|
|
5
5
|
totalAmountStaked: string;
|
|
6
|
+
/**
|
|
7
|
+
* Total potential rewards from currently active validations and delegations.
|
|
8
|
+
*/
|
|
6
9
|
estimatedAnnualStakingReward: string;
|
|
7
10
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
11
|
+
/**
|
|
12
|
+
* Ratio of total active stake amount to the current supply.
|
|
13
|
+
*/
|
|
8
14
|
stakingRatio: string;
|
|
9
15
|
};
|
|
10
16
|
|