@avalabs/glacier-sdk 3.1.0-canary.ff4ef69.0 → 3.1.1-canary.b873d0d.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 +1719 -329
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +6 -0
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/core/OpenAPI.js +1 -1
- package/esm/generated/models/AccessListData.d.ts +12 -0
- package/esm/generated/models/AccessRequest.d.ts +12 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +26 -0
- package/esm/generated/models/AddressActivityEventType.d.ts +5 -0
- package/esm/generated/models/{EventType.js → AddressActivityEventType.js} +1 -1
- package/esm/generated/models/AddressActivityMetadata.d.ts +4 -4
- package/esm/generated/models/Blockchain.d.ts +8 -0
- package/esm/generated/models/BlockchainId.d.ts +0 -2
- package/esm/generated/models/BlockchainId.js +1 -1
- package/esm/generated/models/BlockchainIds.d.ts +1 -3
- package/esm/generated/models/BlockchainIds.js +1 -1
- package/esm/generated/models/BlockchainInfo.d.ts +6 -1
- package/esm/generated/models/CommonBalanceType.d.ts +17 -0
- package/esm/generated/models/CommonBalanceType.js +1 -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/ERCToken.d.ts +24 -0
- package/esm/generated/models/ERCTransfer.d.ts +50 -0
- package/esm/generated/models/{CreateWebhookRequest.d.ts → EVMAddressActivityRequest.d.ts} +10 -6
- package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
- package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +10 -10
- package/esm/generated/models/Erc1155Contract.d.ts +1 -1
- package/esm/generated/models/Erc20Contract.d.ts +1 -1
- package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
- package/esm/generated/models/Erc20TokenBalance.js +1 -1
- package/esm/generated/models/Erc721Contract.d.ts +1 -1
- package/esm/generated/models/EvmBlock.d.ts +4 -0
- package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
- package/esm/generated/models/Geolocation.d.ts +24 -0
- package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
- package/esm/generated/models/GetTransactionResponse.d.ts +1 -1
- 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/InternalTransactionOpCall.d.ts +1 -0
- package/esm/generated/models/InternalTransactionOpCall.js +1 -1
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +4 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +5 -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/ListIcmMessagesResponse.d.ts +13 -0
- package/esm/generated/models/ListL1ValidatorsResponse.d.ts +4 -0
- package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +2 -1
- package/esm/generated/models/ListWebhooksResponse.d.ts +4 -2
- package/esm/generated/models/Log.d.ts +40 -0
- package/esm/generated/models/NativeTransaction.d.ts +4 -0
- package/esm/generated/models/Network.d.ts +1 -2
- package/esm/generated/models/Network.js +1 -1
- package/esm/generated/models/NetworkTokenInfo.d.ts +20 -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 +25 -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/PlatformAddressActivityKeyType.d.ts +8 -0
- package/esm/generated/models/PlatformAddressActivityKeyType.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityEventType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityEventType.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityMetadata.d.ts +25 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityRequest.d.ts +22 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityRequest.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityResponse.d.ts +17 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.d.ts +10 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEvents.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkBalanceThresholdFilter.d.ts +11 -0
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
- 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/PrimaryNetworkType.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkType.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 +8 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
- package/esm/generated/models/StakingDistribution.d.ts +9 -0
- package/esm/generated/models/Subnet.d.ts +6 -2
- 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/TeleporterMessageInfo.d.ts +2 -2
- package/esm/generated/models/Transaction.d.ts +121 -0
- package/esm/generated/models/TransactionDetails.d.ts +1 -1
- package/esm/generated/models/TransactionEvent.d.ts +15 -0
- package/esm/generated/models/UnknownContract.d.ts +1 -1
- package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
- package/esm/generated/models/UtxoType.d.ts +3 -0
- package/esm/generated/models/ValidatorActivityEventType.d.ts +5 -0
- package/esm/generated/models/ValidatorActivityEventType.js +1 -0
- package/esm/generated/models/ValidatorActivityKeyType.d.ts +9 -0
- package/esm/generated/models/ValidatorActivityKeyType.js +1 -0
- package/esm/generated/models/ValidatorActivityMetadata.d.ts +32 -0
- package/esm/generated/models/ValidatorActivityRequest.d.ts +21 -0
- package/esm/generated/models/ValidatorActivityRequest.js +1 -0
- package/esm/generated/models/ValidatorActivityResponse.d.ts +17 -0
- package/esm/generated/models/ValidatorActivitySubEvents.d.ts +8 -0
- package/esm/generated/models/ValidatorsDetails.d.ts +6 -0
- package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
- package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
- package/esm/generated/models/WebhookInternalTransaction.d.ts +32 -0
- package/esm/generated/models/XChainId.d.ts +0 -1
- package/esm/generated/models/XChainId.js +1 -1
- package/esm/generated/services/AvaxSupplyService.d.ts +16 -0
- package/esm/generated/services/AvaxSupplyService.js +1 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +119 -20
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmBalancesService.d.ts +4 -4
- 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 +35 -2
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- 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/PrimaryNetworkBlocksService.d.ts +18 -2
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +22 -5
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +22 -1
- package/esm/generated/services/SignatureAggregatorService.js +1 -1
- package/esm/generated/services/TeleporterService.d.ts +12 -6
- package/esm/generated/services/WebhooksService.d.ts +28 -24
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +54 -4
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/EventType.d.ts +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=(a=>(a.BALANCE_CHANGE="balance_change",a.BALANCE_THRESHOLD="balance_threshold",a.REWARD_DISTRIBUTION="reward_distribution",a))(a||{});export{a as PrimaryNetworkAddressActivitySubEventType};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PrimaryNetworkAddressActivitySubEventType } from './PrimaryNetworkAddressActivitySubEventType.js';
|
|
2
|
+
|
|
3
|
+
type PrimaryNetworkAddressActivitySubEvents = {
|
|
4
|
+
addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export { PrimaryNetworkAddressActivitySubEvents };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CommonBalanceType } from './CommonBalanceType.js';
|
|
2
|
+
|
|
3
|
+
type PrimaryNetworkBalanceThresholdFilter = {
|
|
4
|
+
balanceType: CommonBalanceType;
|
|
5
|
+
/**
|
|
6
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
7
|
+
*/
|
|
8
|
+
balanceThreshold: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { PrimaryNetworkBalanceThresholdFilter };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
type PrimaryNetworkOptions = {
|
|
2
2
|
addresses?: Array<string>;
|
|
3
3
|
cChainEvmAddresses?: Array<string>;
|
|
4
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '
|
|
4
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
export { PrimaryNetworkOptions };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
2
|
+
RPC_METHOD = "rpcMethod",
|
|
3
|
+
REQUEST_PATH = "requestPath",
|
|
4
|
+
RESPONSE_CODE = "responseCode",
|
|
5
|
+
COUNTRY = "country",
|
|
6
|
+
CONTINENT = "continent",
|
|
7
|
+
USER_AGENT = "userAgent"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { PrimaryNetworkRpcMetricsGroupByEnum };
|
|
@@ -0,0 +1 @@
|
|
|
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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=(a=>(a.MAINNET="mainnet",a.FUJI="fuji",a))(a||{});export{a as PrimaryNetworkType};
|
|
@@ -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
|
*/
|
|
@@ -40,6 +44,10 @@ declare namespace RpcUsageMetricsValueAggregated {
|
|
|
40
44
|
RPC_METHOD = "rpcMethod",
|
|
41
45
|
RESPONSE_CODE = "responseCode",
|
|
42
46
|
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
47
|
+
REQUEST_PATH = "requestPath",
|
|
48
|
+
COUNTRY = "country",
|
|
49
|
+
CONTINENT = "continent",
|
|
50
|
+
USER_AGENT = "userAgent",
|
|
43
51
|
NONE = "None"
|
|
44
52
|
}
|
|
45
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};
|
|
@@ -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
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Blockchain } from './Blockchain.js';
|
|
2
2
|
import { L1ValidatorManagerDetails } from './L1ValidatorManagerDetails.js';
|
|
3
3
|
import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
|
|
4
4
|
|
|
@@ -29,11 +29,15 @@ 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
|
*/
|
|
35
39
|
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
36
|
-
blockchains: Array<
|
|
40
|
+
blockchains: Array<Blockchain>;
|
|
37
41
|
};
|
|
38
42
|
|
|
39
43
|
export { Subnet };
|
|
@@ -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 };
|
|
@@ -6,11 +6,11 @@ type TeleporterMessageInfo = {
|
|
|
6
6
|
/**
|
|
7
7
|
* chain id of the source chain. valid only for destination transactions
|
|
8
8
|
*/
|
|
9
|
-
sourceChainId?:
|
|
9
|
+
sourceChainId?: string;
|
|
10
10
|
/**
|
|
11
11
|
* chain id of the destination chain. valid only for source transactions
|
|
12
12
|
*/
|
|
13
|
-
destinationChainId?:
|
|
13
|
+
destinationChainId?: string;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
export { TeleporterMessageInfo };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { AccessListData } from './AccessListData.js';
|
|
2
|
+
import { ERCTransfer } from './ERCTransfer.js';
|
|
3
|
+
import { NetworkTokenInfo } from './NetworkTokenInfo.js';
|
|
4
|
+
import { WebhookInternalTransaction } from './WebhookInternalTransaction.js';
|
|
5
|
+
|
|
6
|
+
type Transaction = {
|
|
7
|
+
/**
|
|
8
|
+
* Block hash of the transaction
|
|
9
|
+
*/
|
|
10
|
+
blockHash: string;
|
|
11
|
+
/**
|
|
12
|
+
* Block number of the transaction
|
|
13
|
+
*/
|
|
14
|
+
blockNumber: string;
|
|
15
|
+
/**
|
|
16
|
+
* Sender address
|
|
17
|
+
*/
|
|
18
|
+
from: string;
|
|
19
|
+
/**
|
|
20
|
+
* Gas limit for the transaction
|
|
21
|
+
*/
|
|
22
|
+
gas: string;
|
|
23
|
+
/**
|
|
24
|
+
* Gas price used
|
|
25
|
+
*/
|
|
26
|
+
gasPrice: string;
|
|
27
|
+
/**
|
|
28
|
+
* Maximum fee per gas
|
|
29
|
+
*/
|
|
30
|
+
maxFeePerGas: string;
|
|
31
|
+
/**
|
|
32
|
+
* Maximum priority fee per gas
|
|
33
|
+
*/
|
|
34
|
+
maxPriorityFeePerGas: string;
|
|
35
|
+
/**
|
|
36
|
+
* Transaction hash
|
|
37
|
+
*/
|
|
38
|
+
txHash: string;
|
|
39
|
+
/**
|
|
40
|
+
* Transaction status
|
|
41
|
+
*/
|
|
42
|
+
txStatus: string;
|
|
43
|
+
/**
|
|
44
|
+
* Input data
|
|
45
|
+
*/
|
|
46
|
+
input: string;
|
|
47
|
+
/**
|
|
48
|
+
* Nonce value
|
|
49
|
+
*/
|
|
50
|
+
nonce: string;
|
|
51
|
+
/**
|
|
52
|
+
* Recipient address
|
|
53
|
+
*/
|
|
54
|
+
to: string;
|
|
55
|
+
/**
|
|
56
|
+
* Transaction index
|
|
57
|
+
*/
|
|
58
|
+
transactionIndex: number;
|
|
59
|
+
/**
|
|
60
|
+
* Value transferred in the transaction
|
|
61
|
+
*/
|
|
62
|
+
value: string;
|
|
63
|
+
/**
|
|
64
|
+
* Transaction type
|
|
65
|
+
*/
|
|
66
|
+
type: number;
|
|
67
|
+
/**
|
|
68
|
+
* Chain ID of the network
|
|
69
|
+
*/
|
|
70
|
+
chainId: string;
|
|
71
|
+
/**
|
|
72
|
+
* Cumulative gas used
|
|
73
|
+
*/
|
|
74
|
+
receiptCumulativeGasUsed: string;
|
|
75
|
+
/**
|
|
76
|
+
* Gas used
|
|
77
|
+
*/
|
|
78
|
+
receiptGasUsed: string;
|
|
79
|
+
/**
|
|
80
|
+
* Effective gas price
|
|
81
|
+
*/
|
|
82
|
+
receiptEffectiveGasPrice: string;
|
|
83
|
+
/**
|
|
84
|
+
* Receipt root
|
|
85
|
+
*/
|
|
86
|
+
receiptRoot: string;
|
|
87
|
+
/**
|
|
88
|
+
* Block timestamp
|
|
89
|
+
*/
|
|
90
|
+
blockTimestamp: number;
|
|
91
|
+
/**
|
|
92
|
+
* Contract address (optional)
|
|
93
|
+
*/
|
|
94
|
+
contractAddress?: string;
|
|
95
|
+
/**
|
|
96
|
+
* ERC20 transfers
|
|
97
|
+
*/
|
|
98
|
+
erc20Transfers: Array<ERCTransfer>;
|
|
99
|
+
/**
|
|
100
|
+
* ERC721 transfers
|
|
101
|
+
*/
|
|
102
|
+
erc721Transfers: Array<ERCTransfer>;
|
|
103
|
+
/**
|
|
104
|
+
* ERC1155 transfers
|
|
105
|
+
*/
|
|
106
|
+
erc1155Transfers: Array<ERCTransfer>;
|
|
107
|
+
/**
|
|
108
|
+
* Internal transactions (optional)
|
|
109
|
+
*/
|
|
110
|
+
internalTransactions?: Array<WebhookInternalTransaction>;
|
|
111
|
+
/**
|
|
112
|
+
* Access list (optional)
|
|
113
|
+
*/
|
|
114
|
+
accessList?: Array<AccessListData>;
|
|
115
|
+
/**
|
|
116
|
+
* Network token info (optional)
|
|
117
|
+
*/
|
|
118
|
+
networkToken?: NetworkTokenInfo;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export { Transaction };
|
|
@@ -22,7 +22,7 @@ type TransactionDetails = {
|
|
|
22
22
|
*/
|
|
23
23
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
24
24
|
/**
|
|
25
|
-
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2
|
|
25
|
+
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
26
26
|
*/
|
|
27
27
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
28
28
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Log } from './Log.js';
|
|
2
|
+
import { Transaction } from './Transaction.js';
|
|
3
|
+
|
|
4
|
+
type TransactionEvent = {
|
|
5
|
+
/**
|
|
6
|
+
* Transaction details
|
|
7
|
+
*/
|
|
8
|
+
transaction: Transaction;
|
|
9
|
+
/**
|
|
10
|
+
* Array of log events
|
|
11
|
+
*/
|
|
12
|
+
logs?: Array<Log>;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { TransactionEvent };
|
|
@@ -19,7 +19,7 @@ type UnknownContract = {
|
|
|
19
19
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
20
20
|
*/
|
|
21
21
|
address: string;
|
|
22
|
-
deploymentDetails
|
|
22
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
23
23
|
ercType: UnknownContract.ercType;
|
|
24
24
|
};
|
|
25
25
|
declare namespace UnknownContract {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=(a=>(a.VALIDATOR_ACTIVITY="validator_activity",a))(a||{});export{a as ValidatorActivityEventType};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var I=(I=>(I.NODE_ID="nodeId",I.SUBNET_ID="subnetId",I))(I||{});export{I as ValidatorActivityKeyType};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ValidatorActivityKeyType } from './ValidatorActivityKeyType.js';
|
|
2
|
+
import { ValidatorActivitySubEvents } from './ValidatorActivitySubEvents.js';
|
|
3
|
+
|
|
4
|
+
type ValidatorActivityMetadata = {
|
|
5
|
+
/**
|
|
6
|
+
* Array of hexadecimal strings of the event signatures.
|
|
7
|
+
*/
|
|
8
|
+
eventSignatures?: Array<string>;
|
|
9
|
+
keyType: ValidatorActivityKeyType;
|
|
10
|
+
/**
|
|
11
|
+
* Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
|
|
12
|
+
*/
|
|
13
|
+
keys: Array<string>;
|
|
14
|
+
/**
|
|
15
|
+
* Sub-events to monitor
|
|
16
|
+
*/
|
|
17
|
+
subEvents: ValidatorActivitySubEvents;
|
|
18
|
+
/**
|
|
19
|
+
* Array of node IDs to filter the events
|
|
20
|
+
*/
|
|
21
|
+
nodeIds?: Array<string>;
|
|
22
|
+
/**
|
|
23
|
+
* Array of subnet IDs to filter the events
|
|
24
|
+
*/
|
|
25
|
+
subnetIds?: Array<string>;
|
|
26
|
+
/**
|
|
27
|
+
* L1 validator fee balance threshold in nAVAX
|
|
28
|
+
*/
|
|
29
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export { ValidatorActivityMetadata };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PrimaryNetworkType } from './PrimaryNetworkType.js';
|
|
2
|
+
import { ValidatorActivityMetadata } from './ValidatorActivityMetadata.js';
|
|
3
|
+
|
|
4
|
+
type ValidatorActivityRequest = {
|
|
5
|
+
eventType: ValidatorActivityRequest.eventType;
|
|
6
|
+
url: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
network: PrimaryNetworkType;
|
|
10
|
+
/**
|
|
11
|
+
* Metadata for platform validator activity event
|
|
12
|
+
*/
|
|
13
|
+
metadata: ValidatorActivityMetadata;
|
|
14
|
+
};
|
|
15
|
+
declare namespace ValidatorActivityRequest {
|
|
16
|
+
enum eventType {
|
|
17
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { ValidatorActivityRequest };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e,t;((t=e||(e={})).eventType||(t.eventType={})).VALIDATOR_ACTIVITY="validator_activity";export{e as ValidatorActivityRequest};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ValidatorActivityEventType } from './ValidatorActivityEventType.js';
|
|
2
|
+
import { ValidatorActivityMetadata } from './ValidatorActivityMetadata.js';
|
|
3
|
+
import { WebhookStatusType } from './WebhookStatusType.js';
|
|
4
|
+
|
|
5
|
+
type ValidatorActivityResponse = {
|
|
6
|
+
id: string;
|
|
7
|
+
url: string;
|
|
8
|
+
chainId: string;
|
|
9
|
+
status: WebhookStatusType;
|
|
10
|
+
createdAt: number;
|
|
11
|
+
name: string;
|
|
12
|
+
description: string;
|
|
13
|
+
eventType: ValidatorActivityEventType;
|
|
14
|
+
metadata: ValidatorActivityMetadata;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { ValidatorActivityResponse };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type ValidatorActivitySubEvents = {
|
|
2
|
+
/**
|
|
3
|
+
* Array of validator activity sub-event types
|
|
4
|
+
*/
|
|
5
|
+
validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export { ValidatorActivitySubEvents };
|
|
@@ -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
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { TransactionEvent } from './TransactionEvent.js';
|
|
2
|
+
|
|
3
|
+
type WebhookAddressActivityResponse = {
|
|
4
|
+
/**
|
|
5
|
+
* Webhook ID
|
|
6
|
+
*/
|
|
7
|
+
webhookId: string;
|
|
8
|
+
/**
|
|
9
|
+
* Event type
|
|
10
|
+
*/
|
|
11
|
+
eventType: WebhookAddressActivityResponse.eventType;
|
|
12
|
+
/**
|
|
13
|
+
* Message ID
|
|
14
|
+
*/
|
|
15
|
+
messageId: string;
|
|
16
|
+
/**
|
|
17
|
+
* Event details
|
|
18
|
+
*/
|
|
19
|
+
event: TransactionEvent;
|
|
20
|
+
};
|
|
21
|
+
declare namespace WebhookAddressActivityResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Event type
|
|
24
|
+
*/
|
|
25
|
+
enum eventType {
|
|
26
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { WebhookAddressActivityResponse };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e,t;((t=e||(e={})).eventType||(t.eventType={})).ADDRESS_ACTIVITY="address_activity";export{e as WebhookAddressActivityResponse};
|