@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,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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var E=(E=>(E.UNKNOWN="UNKNOWN",E.CALL="CALL",E.CREATE="CREATE",E.CREATE2="CREATE2",E.CREATE3="CREATE3",E.CALLCODE="CALLCODE",E.DELEGATECALL="DELEGATECALL",E.STATICCALL="STATICCALL",E))(E||{});export{E as InternalTransactionOpCall};
|
|
@@ -5,6 +5,10 @@ type L1ValidatorDetailsFull = {
|
|
|
5
5
|
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
6
6
|
*/
|
|
7
7
|
validationId: string;
|
|
8
|
+
/**
|
|
9
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
10
|
+
*/
|
|
11
|
+
validationIdHex: string;
|
|
8
12
|
nodeId: string;
|
|
9
13
|
subnetId: string;
|
|
10
14
|
/**
|
|
@@ -3,6 +3,10 @@ type L1ValidatorDetailsTransaction = {
|
|
|
3
3
|
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4
4
|
*/
|
|
5
5
|
validationId: string;
|
|
6
|
+
/**
|
|
7
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
8
|
+
*/
|
|
9
|
+
validationIdHex: string;
|
|
6
10
|
nodeId: string;
|
|
7
11
|
subnetId: string;
|
|
8
12
|
/**
|
|
@@ -14,7 +18,7 @@ type L1ValidatorDetailsTransaction = {
|
|
|
14
18
|
*/
|
|
15
19
|
remainingBalance: number;
|
|
16
20
|
/**
|
|
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
|
|
21
|
+
* 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
22
|
*/
|
|
19
23
|
balanceChange?: number;
|
|
20
24
|
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
|
*/
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DeliveredIcmMessage } from './DeliveredIcmMessage.js';
|
|
2
|
+
import { DeliveredSourceNotIndexedIcmMessage } from './DeliveredSourceNotIndexedIcmMessage.js';
|
|
3
|
+
import { PendingIcmMessage } from './PendingIcmMessage.js';
|
|
4
|
+
|
|
5
|
+
type ListIcmMessagesResponse = {
|
|
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
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { ListIcmMessagesResponse };
|
|
@@ -9,6 +9,10 @@ type ListL1ValidatorsResponse = {
|
|
|
9
9
|
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
10
10
|
*/
|
|
11
11
|
validators: Array<L1ValidatorDetailsFull>;
|
|
12
|
+
/**
|
|
13
|
+
* Block height at which the L1 validator's remaining balance is calculated
|
|
14
|
+
*/
|
|
15
|
+
blockHeight: string;
|
|
12
16
|
};
|
|
13
17
|
|
|
14
18
|
export { ListL1ValidatorsResponse };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DeliveredSourceNotIndexedIcmMessage } from './DeliveredSourceNotIndexedIcmMessage.js';
|
|
1
2
|
import { DeliveredTeleporterMessage } from './DeliveredTeleporterMessage.js';
|
|
2
3
|
import { PendingTeleporterMessage } from './PendingTeleporterMessage.js';
|
|
3
4
|
|
|
@@ -6,7 +7,7 @@ type ListTeleporterMessagesResponse = {
|
|
|
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.
|
|
7
8
|
*/
|
|
8
9
|
nextPageToken?: string;
|
|
9
|
-
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
10
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export { ListTeleporterMessagesResponse };
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EVMAddressActivityResponse } from './EVMAddressActivityResponse.js';
|
|
2
|
+
import { PrimaryNetworkAddressActivityResponse } from './PrimaryNetworkAddressActivityResponse.js';
|
|
3
|
+
import { ValidatorActivityResponse } from './ValidatorActivityResponse.js';
|
|
2
4
|
|
|
3
5
|
type ListWebhooksResponse = {
|
|
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
|
-
webhooks: Array<
|
|
10
|
+
webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
9
11
|
};
|
|
10
12
|
|
|
11
13
|
export { ListWebhooksResponse };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
type Log = {
|
|
2
|
+
/**
|
|
3
|
+
* Contract address
|
|
4
|
+
*/
|
|
5
|
+
address: string;
|
|
6
|
+
/**
|
|
7
|
+
* First topic
|
|
8
|
+
*/
|
|
9
|
+
topic0: string;
|
|
10
|
+
/**
|
|
11
|
+
* Second topic (optional)
|
|
12
|
+
*/
|
|
13
|
+
topic1?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Third topic (optional)
|
|
16
|
+
*/
|
|
17
|
+
topic2?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Fourth topic (optional)
|
|
20
|
+
*/
|
|
21
|
+
topic3?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Event data
|
|
24
|
+
*/
|
|
25
|
+
data: string;
|
|
26
|
+
/**
|
|
27
|
+
* Transaction index
|
|
28
|
+
*/
|
|
29
|
+
transactionIndex: number;
|
|
30
|
+
/**
|
|
31
|
+
* Log index
|
|
32
|
+
*/
|
|
33
|
+
logIndex: number;
|
|
34
|
+
/**
|
|
35
|
+
* Indicates if the log was removed
|
|
36
|
+
*/
|
|
37
|
+
removed: boolean;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export { Log };
|
|
@@ -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
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var t=(t=>(t.MAINNET="mainnet",t.FUJI="fuji",t.TESTNET="testnet",t))(t||{});export{t as Network};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type NetworkTokenInfo = {
|
|
2
|
+
/**
|
|
3
|
+
* Token name
|
|
4
|
+
*/
|
|
5
|
+
tokenName?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Token symbol
|
|
8
|
+
*/
|
|
9
|
+
tokenSymbol?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Token decimals
|
|
12
|
+
*/
|
|
13
|
+
tokenDecimals?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Value including decimals
|
|
16
|
+
*/
|
|
17
|
+
valueWithDecimals?: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { NetworkTokenInfo };
|
|
@@ -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
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AssetAmount } from './AssetAmount.js';
|
|
2
|
+
import { BlockchainInfo } from './BlockchainInfo.js';
|
|
2
3
|
import { BlsCredentials } from './BlsCredentials.js';
|
|
3
4
|
import { L1ValidatorDetailsTransaction } from './L1ValidatorDetailsTransaction.js';
|
|
4
5
|
import { L1ValidatorManagerDetails } from './L1ValidatorManagerDetails.js';
|
|
@@ -16,9 +17,18 @@ type PChainTransaction = {
|
|
|
16
17
|
* The block finality timestamp.
|
|
17
18
|
*/
|
|
18
19
|
blockTimestamp: number;
|
|
20
|
+
/**
|
|
21
|
+
* The height of the block in which the transaction was included
|
|
22
|
+
*/
|
|
19
23
|
blockNumber: string;
|
|
20
24
|
blockHash: string;
|
|
25
|
+
/**
|
|
26
|
+
* The consumed UTXOs of the transaction
|
|
27
|
+
*/
|
|
21
28
|
consumedUtxos: Array<PChainUtxo>;
|
|
29
|
+
/**
|
|
30
|
+
* The newly created UTXOs of the transaction
|
|
31
|
+
*/
|
|
22
32
|
emittedUtxos: Array<PChainUtxo>;
|
|
23
33
|
/**
|
|
24
34
|
* Source chain for an atomic transaction.
|
|
@@ -29,11 +39,11 @@ type PChainTransaction = {
|
|
|
29
39
|
*/
|
|
30
40
|
destinationChain?: string;
|
|
31
41
|
/**
|
|
32
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
42
|
+
* 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
43
|
*/
|
|
34
44
|
value: Array<AssetAmount>;
|
|
35
45
|
/**
|
|
36
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
46
|
+
* 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
47
|
*/
|
|
38
48
|
amountBurned: Array<AssetAmount>;
|
|
39
49
|
/**
|
|
@@ -41,7 +51,7 @@ type PChainTransaction = {
|
|
|
41
51
|
*/
|
|
42
52
|
amountStaked: Array<AssetAmount>;
|
|
43
53
|
/**
|
|
44
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
54
|
+
* 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
55
|
*/
|
|
46
56
|
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
47
57
|
/**
|
|
@@ -53,11 +63,11 @@ type PChainTransaction = {
|
|
|
53
63
|
*/
|
|
54
64
|
endTimestamp?: number;
|
|
55
65
|
/**
|
|
56
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
66
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
57
67
|
*/
|
|
58
68
|
delegationFeePercent?: string;
|
|
59
69
|
/**
|
|
60
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
70
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
61
71
|
*/
|
|
62
72
|
nodeId?: string;
|
|
63
73
|
/**
|
|
@@ -73,14 +83,17 @@ type PChainTransaction = {
|
|
|
73
83
|
*/
|
|
74
84
|
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
75
85
|
/**
|
|
76
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
86
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
77
87
|
*/
|
|
78
88
|
estimatedReward?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Reward transaction hash for the completed validations or delegations
|
|
91
|
+
*/
|
|
79
92
|
rewardTxHash?: string;
|
|
80
93
|
rewardAddresses?: Array<string>;
|
|
81
94
|
memo?: string;
|
|
82
95
|
/**
|
|
83
|
-
*
|
|
96
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
84
97
|
*/
|
|
85
98
|
stakingTxHash?: string;
|
|
86
99
|
/**
|
|
@@ -88,9 +101,13 @@ type PChainTransaction = {
|
|
|
88
101
|
*/
|
|
89
102
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
90
103
|
/**
|
|
91
|
-
* Present for AddPermissionlessValidatorTx
|
|
104
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
92
105
|
*/
|
|
93
106
|
blsCredentials?: BlsCredentials;
|
|
107
|
+
/**
|
|
108
|
+
* Details of the blockchain that was created in the CreateChainTx
|
|
109
|
+
*/
|
|
110
|
+
blockchainInfo?: BlockchainInfo;
|
|
94
111
|
};
|
|
95
112
|
|
|
96
113
|
export { PChainTransaction };
|
|
@@ -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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=(e=>(e.ADDRESSES="addresses",e))(e||{});export{e as PlatformAddressActivityKeyType};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=(r=>(r.PRIMARY_NETWORK_ADDRESS_ACTIVITY="primary_network_address_activity",r))(r||{});export{r as PrimaryNetworkAddressActivityEventType};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PlatformAddressActivityKeyType } from './PlatformAddressActivityKeyType.js';
|
|
2
|
+
import { PrimaryNetworkAddressActivitySubEvents } from './PrimaryNetworkAddressActivitySubEvents.js';
|
|
3
|
+
import { PrimaryNetworkBalanceThresholdFilter } from './PrimaryNetworkBalanceThresholdFilter.js';
|
|
4
|
+
|
|
5
|
+
type PrimaryNetworkAddressActivityMetadata = {
|
|
6
|
+
/**
|
|
7
|
+
* Array of hexadecimal strings of the event signatures.
|
|
8
|
+
*/
|
|
9
|
+
eventSignatures?: Array<string>;
|
|
10
|
+
keyType: PlatformAddressActivityKeyType;
|
|
11
|
+
/**
|
|
12
|
+
* Array of keys like addresses corresponding to the keyType being monitored. For PrimaryNetworkAddressActivity event, an array of multiple addresses can be provided. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to.
|
|
13
|
+
*/
|
|
14
|
+
keys: Array<string>;
|
|
15
|
+
/**
|
|
16
|
+
* Sub-events to monitor
|
|
17
|
+
*/
|
|
18
|
+
subEvents: PrimaryNetworkAddressActivitySubEvents;
|
|
19
|
+
/**
|
|
20
|
+
* Balance threshold filter
|
|
21
|
+
*/
|
|
22
|
+
balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export { PrimaryNetworkAddressActivityMetadata };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PrimaryNetworkAddressActivityMetadata } from './PrimaryNetworkAddressActivityMetadata.js';
|
|
2
|
+
import { PrimaryNetworkType } from './PrimaryNetworkType.js';
|
|
3
|
+
|
|
4
|
+
type PrimaryNetworkAddressActivityRequest = {
|
|
5
|
+
eventType: PrimaryNetworkAddressActivityRequest.eventType;
|
|
6
|
+
url: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
network: PrimaryNetworkType;
|
|
10
|
+
chainId: string;
|
|
11
|
+
/**
|
|
12
|
+
* Metadata for platform address activity event
|
|
13
|
+
*/
|
|
14
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
15
|
+
};
|
|
16
|
+
declare namespace PrimaryNetworkAddressActivityRequest {
|
|
17
|
+
enum eventType {
|
|
18
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { PrimaryNetworkAddressActivityRequest };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e,r;((r=e||(e={})).eventType||(r.eventType={})).PRIMARY_NETWORK_ADDRESS_ACTIVITY="primary_network_address_activity";export{e as PrimaryNetworkAddressActivityRequest};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PrimaryNetworkAddressActivityEventType } from './PrimaryNetworkAddressActivityEventType.js';
|
|
2
|
+
import { PrimaryNetworkAddressActivityMetadata } from './PrimaryNetworkAddressActivityMetadata.js';
|
|
3
|
+
import { WebhookStatusType } from './WebhookStatusType.js';
|
|
4
|
+
|
|
5
|
+
type PrimaryNetworkAddressActivityResponse = {
|
|
6
|
+
id: string;
|
|
7
|
+
url: string;
|
|
8
|
+
chainId: string;
|
|
9
|
+
status: WebhookStatusType;
|
|
10
|
+
createdAt: number;
|
|
11
|
+
name: string;
|
|
12
|
+
description: string;
|
|
13
|
+
eventType: PrimaryNetworkAddressActivityEventType;
|
|
14
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { PrimaryNetworkAddressActivityResponse };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Array of address activity sub-event types
|
|
3
|
+
*/
|
|
4
|
+
declare enum PrimaryNetworkAddressActivitySubEventType {
|
|
5
|
+
BALANCE_CHANGE = "balance_change",
|
|
6
|
+
BALANCE_THRESHOLD = "balance_threshold",
|
|
7
|
+
REWARD_DISTRIBUTION = "reward_distribution"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { PrimaryNetworkAddressActivitySubEventType };
|