@avalabs/glacier-sdk 3.1.0-canary.c3683ee.0 → 3.1.0-canary.c4f6e67.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 +584 -45
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +4 -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/DeliveredIcmMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredIcmMessage.js +1 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
- package/esm/generated/models/Erc20TokenBalance.d.ts +3 -3
- package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
- package/esm/generated/models/HealthCheckResultDto.js +1 -0
- package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
- package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
- package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/IcmReceipt.d.ts +6 -0
- package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
- package/esm/generated/models/IcmRewardDetails.js +1 -0
- package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +1 -1
- package/esm/generated/models/ListIcmMessagesResponse.d.ts +12 -0
- package/esm/generated/models/NotificationsResponse.d.ts +5 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +1 -1
- 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/PendingIcmMessage.d.ts +29 -0
- package/esm/generated/models/PendingIcmMessage.js +1 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -1
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
- package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +4 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
- package/esm/generated/models/StakingDistribution.d.ts +9 -0
- 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 +55 -6
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +2 -2
- package/esm/generated/services/HealthCheckService.d.ts +4 -7
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
- package/esm/generated/services/InterchainMessagingService.js +1 -0
- package/esm/generated/services/NotificationsService.d.ts +51 -0
- package/esm/generated/services/NotificationsService.js +1 -0
- package/esm/generated/services/TeleporterService.d.ts +12 -6
- package/esm/generated/services/WebhooksService.d.ts +3 -3
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +20 -0
- package/esm/index.js +1 -1
- package/package.json +2 -2
|
@@ -8,7 +8,9 @@ import { EvmChainsService } from './services/EvmChainsService.js';
|
|
|
8
8
|
import { EvmContractsService } from './services/EvmContractsService.js';
|
|
9
9
|
import { EvmTransactionsService } from './services/EvmTransactionsService.js';
|
|
10
10
|
import { HealthCheckService } from './services/HealthCheckService.js';
|
|
11
|
+
import { InterchainMessagingService } from './services/InterchainMessagingService.js';
|
|
11
12
|
import { NfTsService } from './services/NfTsService.js';
|
|
13
|
+
import { NotificationsService } from './services/NotificationsService.js';
|
|
12
14
|
import { OperationsService } from './services/OperationsService.js';
|
|
13
15
|
import { PrimaryNetworkService } from './services/PrimaryNetworkService.js';
|
|
14
16
|
import { PrimaryNetworkBalancesService } from './services/PrimaryNetworkBalancesService.js';
|
|
@@ -31,7 +33,9 @@ declare class Glacier {
|
|
|
31
33
|
readonly evmContracts: EvmContractsService;
|
|
32
34
|
readonly evmTransactions: EvmTransactionsService;
|
|
33
35
|
readonly healthCheck: HealthCheckService;
|
|
36
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
34
37
|
readonly nfTs: NfTsService;
|
|
38
|
+
readonly notifications: NotificationsService;
|
|
35
39
|
readonly operations: OperationsService;
|
|
36
40
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
37
41
|
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
|
|
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 i}from"./services/EvmBalancesService.js";import{EvmBlocksService as t}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{InterchainMessagingService as n}from"./services/InterchainMessagingService.js";import{NfTsService as h}from"./services/NfTsService.js";import{NotificationsService as v}from"./services/NotificationsService.js";import{OperationsService as p}from"./services/OperationsService.js";import{PrimaryNetworkService as w}from"./services/PrimaryNetworkService.js";import{PrimaryNetworkBalancesService as S}from"./services/PrimaryNetworkBalancesService.js";import{PrimaryNetworkBlocksService as N}from"./services/PrimaryNetworkBlocksService.js";import{PrimaryNetworkRewardsService as k}from"./services/PrimaryNetworkRewardsService.js";import{PrimaryNetworkTransactionsService as u}from"./services/PrimaryNetworkTransactionsService.js";import{PrimaryNetworkUtxOsService as f}from"./services/PrimaryNetworkUtxOsService.js";import{PrimaryNetworkVerticesService as E}from"./services/PrimaryNetworkVerticesService.js";import{SignatureAggregatorService as q}from"./services/SignatureAggregatorService.js";import{TeleporterService as l}from"./services/TeleporterService.js";import{WebhooksService as j}from"./services/WebhooksService.js";class g{dataApiUsageMetrics;default;evmBalances;evmBlocks;evmChains;evmContracts;evmTransactions;healthCheck;interchainMessaging;nfTs;notifications;operations;primaryNetwork;primaryNetworkBalances;primaryNetworkBlocks;primaryNetworkRewards;primaryNetworkTransactions;primaryNetworkUtxOs;primaryNetworkVertices;signatureAggregator;teleporter;webhooks;request;constructor(g,y=e){this.request=new y({BASE:g?.BASE??"https://glacier-api-dev.avax.network",VERSION:g?.VERSION??"Beta",WITH_CREDENTIALS:g?.WITH_CREDENTIALS??!1,CREDENTIALS:g?.CREDENTIALS??"include",TOKEN:g?.TOKEN,USERNAME:g?.USERNAME,PASSWORD:g?.PASSWORD,HEADERS:g?.HEADERS,ENCODE_PATH:g?.ENCODE_PATH}),this.dataApiUsageMetrics=new r(this.request),this.default=new s(this.request),this.evmBalances=new i(this.request),this.evmBlocks=new t(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.interchainMessaging=new n(this.request),this.nfTs=new h(this.request),this.notifications=new v(this.request),this.operations=new p(this.request),this.primaryNetwork=new w(this.request),this.primaryNetworkBalances=new S(this.request),this.primaryNetworkBlocks=new N(this.request),this.primaryNetworkRewards=new k(this.request),this.primaryNetworkTransactions=new u(this.request),this.primaryNetworkUtxOs=new f(this.request),this.primaryNetworkVertices=new E(this.request),this.signatureAggregator=new q(this.request),this.teleporter=new l(this.request),this.webhooks=new j(this.request)}}export{g 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;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IcmDestinationTransaction } from './IcmDestinationTransaction.js';
|
|
2
|
+
import { IcmReceipt } from './IcmReceipt.js';
|
|
3
|
+
import { IcmRewardDetails } from './IcmRewardDetails.js';
|
|
4
|
+
import { IcmSourceTransaction } from './IcmSourceTransaction.js';
|
|
5
|
+
|
|
6
|
+
type DeliveredIcmMessage = {
|
|
7
|
+
messageId: string;
|
|
8
|
+
icmContractAddress: string;
|
|
9
|
+
sourceBlockchainId: string;
|
|
10
|
+
destinationBlockchainId: string;
|
|
11
|
+
sourceEvmChainId: string;
|
|
12
|
+
destinationEvmChainId: string;
|
|
13
|
+
messageNonce: string;
|
|
14
|
+
from: string;
|
|
15
|
+
to: string;
|
|
16
|
+
data?: string;
|
|
17
|
+
messageExecuted: boolean;
|
|
18
|
+
receipts: Array<IcmReceipt>;
|
|
19
|
+
receiptDelivered: boolean;
|
|
20
|
+
rewardDetails: IcmRewardDetails;
|
|
21
|
+
sourceTransaction: IcmSourceTransaction;
|
|
22
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
23
|
+
status: DeliveredIcmMessage.status;
|
|
24
|
+
};
|
|
25
|
+
declare namespace DeliveredIcmMessage {
|
|
26
|
+
enum status {
|
|
27
|
+
DELIVERED = "delivered"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { DeliveredIcmMessage };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t,e;((e=t||(t={})).status||(e.status={})).DELIVERED="delivered";export{t as DeliveredIcmMessage};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IcmDestinationTransaction } from './IcmDestinationTransaction.js';
|
|
2
|
+
import { IcmReceipt } from './IcmReceipt.js';
|
|
3
|
+
import { IcmRewardDetails } from './IcmRewardDetails.js';
|
|
4
|
+
|
|
5
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
6
|
+
messageId: string;
|
|
7
|
+
icmContractAddress: string;
|
|
8
|
+
sourceBlockchainId: string;
|
|
9
|
+
destinationBlockchainId: string;
|
|
10
|
+
sourceEvmChainId: string;
|
|
11
|
+
destinationEvmChainId: string;
|
|
12
|
+
messageNonce: string;
|
|
13
|
+
from: string;
|
|
14
|
+
to: string;
|
|
15
|
+
data?: string;
|
|
16
|
+
messageExecuted: boolean;
|
|
17
|
+
receipts: Array<IcmReceipt>;
|
|
18
|
+
receiptDelivered: boolean;
|
|
19
|
+
rewardDetails: IcmRewardDetails;
|
|
20
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
21
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
22
|
+
};
|
|
23
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
24
|
+
enum status {
|
|
25
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { DeliveredSourceNotIndexedIcmMessage };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e,t;((t=e||(e={})).status||(t.status={})).DELIVERED_SOURCE_NOT_INDEXED="delivered_source_not_indexed";export{e as DeliveredSourceNotIndexedIcmMessage};
|
|
@@ -39,16 +39,16 @@ type Erc20TokenBalance = {
|
|
|
39
39
|
*/
|
|
40
40
|
balanceValue?: Money;
|
|
41
41
|
/**
|
|
42
|
-
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious'
|
|
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
43
|
*/
|
|
44
|
-
tokenReputation: Erc20TokenBalance.tokenReputation
|
|
44
|
+
tokenReputation: Erc20TokenBalance.tokenReputation;
|
|
45
45
|
};
|
|
46
46
|
declare namespace Erc20TokenBalance {
|
|
47
47
|
enum ercType {
|
|
48
48
|
ERC_20 = "ERC-20"
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
|
-
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious'
|
|
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
52
|
*/
|
|
53
53
|
enum tokenReputation {
|
|
54
54
|
MALICIOUS = "Malicious",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HealthIndicatorResultDto } from './HealthIndicatorResultDto.js';
|
|
2
|
+
|
|
3
|
+
type HealthCheckResultDto = {
|
|
4
|
+
status?: HealthCheckResultDto.status;
|
|
5
|
+
info?: any | null;
|
|
6
|
+
error?: any | null;
|
|
7
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
8
|
+
};
|
|
9
|
+
declare namespace HealthCheckResultDto {
|
|
10
|
+
enum status {
|
|
11
|
+
ERROR = "error",
|
|
12
|
+
OK = "ok",
|
|
13
|
+
SHUTTING_DOWN = "shutting_down"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { HealthCheckResultDto };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t,r,s;r=t||(t={}),(s=r.status||(r.status={})).ERROR="error",s.OK="ok",s.SHUTTING_DOWN="shutting_down";export{t as HealthCheckResultDto};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type HealthIndicatorResultDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Status of the health indicator.
|
|
4
|
+
*/
|
|
5
|
+
status?: HealthIndicatorResultDto.status;
|
|
6
|
+
};
|
|
7
|
+
declare namespace HealthIndicatorResultDto {
|
|
8
|
+
/**
|
|
9
|
+
* Status of the health indicator.
|
|
10
|
+
*/
|
|
11
|
+
enum status {
|
|
12
|
+
UP = "up",
|
|
13
|
+
DOWN = "down"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { HealthIndicatorResultDto };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t,s,a;s=t||(t={}),(a=s.status||(s.status={})).UP="up",a.DOWN="down";export{t as HealthIndicatorResultDto};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Money } from './Money.js';
|
|
2
|
+
|
|
3
|
+
type IcmRewardDetails = {
|
|
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`, means to divide the token amount by `1000000` to get its user representation.
|
|
18
|
+
*/
|
|
19
|
+
decimals: number;
|
|
20
|
+
/**
|
|
21
|
+
* The logo uri for the address.
|
|
22
|
+
*/
|
|
23
|
+
logoUri?: string;
|
|
24
|
+
ercType: IcmRewardDetails.ercType;
|
|
25
|
+
/**
|
|
26
|
+
* The token price, if available.
|
|
27
|
+
*/
|
|
28
|
+
price?: Money;
|
|
29
|
+
value: string;
|
|
30
|
+
};
|
|
31
|
+
declare namespace IcmRewardDetails {
|
|
32
|
+
enum ercType {
|
|
33
|
+
ERC_20 = "ERC-20"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { IcmRewardDetails };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e,r;((r=e||(e={})).ercType||(r.ercType={})).ERC_20="ERC-20";export{e as IcmRewardDetails};
|
|
@@ -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>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DeliveredIcmMessage } from './DeliveredIcmMessage.js';
|
|
2
|
+
import { PendingIcmMessage } from './PendingIcmMessage.js';
|
|
3
|
+
|
|
4
|
+
type ListIcmMessagesResponse = {
|
|
5
|
+
/**
|
|
6
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
7
|
+
*/
|
|
8
|
+
nextPageToken?: string;
|
|
9
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { ListIcmMessagesResponse };
|
|
@@ -7,7 +7,7 @@ type OperationStatusResponse = {
|
|
|
7
7
|
operationType: OperationType;
|
|
8
8
|
operationStatus: OperationStatus;
|
|
9
9
|
message?: string;
|
|
10
|
-
metadata
|
|
10
|
+
metadata?: TransactionExportMetadata;
|
|
11
11
|
createdAtTimestamp: number;
|
|
12
12
|
updatedAtTimestamp: number;
|
|
13
13
|
};
|
|
@@ -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
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IcmReceipt } from './IcmReceipt.js';
|
|
2
|
+
import { IcmRewardDetails } from './IcmRewardDetails.js';
|
|
3
|
+
import { IcmSourceTransaction } from './IcmSourceTransaction.js';
|
|
4
|
+
|
|
5
|
+
type PendingIcmMessage = {
|
|
6
|
+
messageId: string;
|
|
7
|
+
icmContractAddress: string;
|
|
8
|
+
sourceBlockchainId: string;
|
|
9
|
+
destinationBlockchainId: string;
|
|
10
|
+
sourceEvmChainId: string;
|
|
11
|
+
destinationEvmChainId: string;
|
|
12
|
+
messageNonce: string;
|
|
13
|
+
from: string;
|
|
14
|
+
to: string;
|
|
15
|
+
data?: string;
|
|
16
|
+
messageExecuted: boolean;
|
|
17
|
+
receipts: Array<IcmReceipt>;
|
|
18
|
+
receiptDelivered: boolean;
|
|
19
|
+
rewardDetails: IcmRewardDetails;
|
|
20
|
+
sourceTransaction: IcmSourceTransaction;
|
|
21
|
+
status: PendingIcmMessage.status;
|
|
22
|
+
};
|
|
23
|
+
declare namespace PendingIcmMessage {
|
|
24
|
+
enum status {
|
|
25
|
+
PENDING = "pending"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { PendingIcmMessage };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t,s;((s=t||(t={})).status||(s.status={})).PENDING="pending";export{t as PendingIcmMessage};
|
|
@@ -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;
|
|
@@ -1 +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};
|
|
1
|
+
var e=(e=>(e.RPC_METHOD="rpcMethod",e.REQUEST_PATH="requestPath",e.RESPONSE_CODE="responseCode",e.COUNTRY="country",e.CONTINENT="continent",e.USER_AGENT="userAgent",e))(e||{});export{e as PrimaryNetworkRpcMetricsGroupByEnum};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var l=(l=>(l.HOURLY="hourly",l.DAILY="daily",l.WEEKLY="weekly",l.MONTHLY="monthly",l))(l||{});export{l as PrimaryNetworkRpcTimeIntervalGranularity};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { RpcMetrics } from './RpcMetrics.js';
|
|
2
|
+
|
|
3
|
+
type PrimaryNetworkRpcUsageMetricsResponseDTO = {
|
|
4
|
+
/**
|
|
5
|
+
* Duration in which the metrics value is aggregated
|
|
6
|
+
*/
|
|
7
|
+
aggregateDuration: string;
|
|
8
|
+
/**
|
|
9
|
+
* Metrics values
|
|
10
|
+
*/
|
|
11
|
+
metrics: Array<RpcMetrics>;
|
|
12
|
+
/**
|
|
13
|
+
* Network type for which the metrics are aggregated
|
|
14
|
+
*/
|
|
15
|
+
network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
|
|
16
|
+
};
|
|
17
|
+
declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
|
|
18
|
+
/**
|
|
19
|
+
* Network type for which the metrics are aggregated
|
|
20
|
+
*/
|
|
21
|
+
enum network {
|
|
22
|
+
MAINNET = "mainnet",
|
|
23
|
+
TESTNET = "testnet"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { PrimaryNetworkRpcUsageMetricsResponseDTO };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t,e,n;e=t||(t={}),(n=e.network||(e.network={})).MAINNET="mainnet",n.TESTNET="testnet";export{t as PrimaryNetworkRpcUsageMetricsResponseDTO};
|
|
@@ -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
|
};
|
|
@@ -44,6 +44,10 @@ declare namespace RpcUsageMetricsValueAggregated {
|
|
|
44
44
|
RPC_METHOD = "rpcMethod",
|
|
45
45
|
RESPONSE_CODE = "responseCode",
|
|
46
46
|
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
47
|
+
REQUEST_PATH = "requestPath",
|
|
48
|
+
COUNTRY = "country",
|
|
49
|
+
CONTINENT = "continent",
|
|
50
|
+
USER_AGENT = "userAgent",
|
|
47
51
|
NONE = "None"
|
|
48
52
|
}
|
|
49
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,o
|
|
1
|
+
var e,E,o;E=e||(e={}),(o=E.groupedBy||(E.groupedBy={})).RPC_METHOD="rpcMethod",o.RESPONSE_CODE="responseCode",o.RL_BYPASS_TOKEN="rlBypassToken",o.REQUEST_PATH="requestPath",o.COUNTRY="country",o.CONTINENT="continent",o.USER_AGENT="userAgent",o.NONE="None";export{e as RpcUsageMetricsValueAggregated};
|