@avalabs/glacier-sdk 3.1.0-canary.cd6be5c.0 → 3.1.0-canary.d1a9d4a.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 +957 -136
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/AccessListData.d.ts +12 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +5 -0
- package/esm/generated/models/CommonBalanceType.d.ts +17 -0
- package/esm/generated/models/CommonBalanceType.js +1 -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} +11 -5
- package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
- package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +8 -8
- package/esm/generated/models/Erc20TokenBalance.d.ts +3 -3
- package/esm/generated/models/EventType.d.ts +3 -1
- package/esm/generated/models/EventType.js +1 -1
- package/esm/generated/models/Geolocation.d.ts +24 -0
- 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/InternalTransaction.d.ts +15 -16
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +4 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +4 -0
- package/esm/generated/models/ListIcmMessagesResponse.d.ts +12 -0
- package/esm/generated/models/ListWebhooksResponse.d.ts +3 -2
- package/esm/generated/models/Log.d.ts +40 -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/OperationStatusResponse.d.ts +1 -1
- package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
- package/esm/generated/models/PendingIcmMessage.js +1 -0
- package/esm/generated/models/PlatformActivityKeyType.d.ts +10 -0
- package/esm/generated/models/PlatformActivityKeyType.js +1 -0
- package/esm/generated/models/PlatformActivityMetadata.d.ts +37 -0
- package/esm/generated/models/PlatformActivityRequest.d.ts +31 -0
- package/esm/generated/models/PlatformActivityRequest.js +1 -0
- package/esm/generated/models/PlatformActivityResponse.d.ts +17 -0
- package/esm/generated/models/PlatformActivitySubEvents.d.ts +11 -0
- package/esm/generated/models/PlatformAddressActivitySubEventType.d.ts +10 -0
- package/esm/generated/models/PlatformAddressActivitySubEventType.js +1 -0
- package/esm/generated/models/PlatformBalanceThresholdFilter.d.ts +11 -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/PrimaryNetworkType.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkType.js +1 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +4 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
- package/esm/generated/models/Subnet.d.ts +2 -2
- package/esm/generated/models/Transaction.d.ts +121 -0
- package/esm/generated/models/TransactionEvent.d.ts +15 -0
- package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
- package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +55 -6
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmBalancesService.d.ts +4 -4
- 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/PrimaryNetworkService.d.ts +18 -1
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +16 -0
- package/esm/generated/services/SignatureAggregatorService.js +1 -1
- package/esm/generated/services/TeleporterService.d.ts +12 -6
- package/esm/generated/services/WebhooksService.d.ts +26 -24
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +33 -3
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/BlockchainInfo.d.ts +0 -5
|
@@ -8,6 +8,7 @@ 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';
|
|
12
13
|
import { NotificationsService } from './services/NotificationsService.js';
|
|
13
14
|
import { OperationsService } from './services/OperationsService.js';
|
|
@@ -32,6 +33,7 @@ declare class Glacier {
|
|
|
32
33
|
readonly evmContracts: EvmContractsService;
|
|
33
34
|
readonly evmTransactions: EvmTransactionsService;
|
|
34
35
|
readonly healthCheck: HealthCheckService;
|
|
36
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
35
37
|
readonly nfTs: NfTsService;
|
|
36
38
|
readonly notifications: NotificationsService;
|
|
37
39
|
readonly operations: OperationsService;
|
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};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BlsCredentials } from './BlsCredentials.js';
|
|
2
|
+
import { Geolocation } from './Geolocation.js';
|
|
2
3
|
import { Rewards } from './Rewards.js';
|
|
3
4
|
import { ValidatorHealthDetails } from './ValidatorHealthDetails.js';
|
|
4
5
|
|
|
@@ -44,6 +45,10 @@ type ActiveValidatorDetails = {
|
|
|
44
45
|
potentialRewards: Rewards;
|
|
45
46
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
46
47
|
validatorHealth: ValidatorHealthDetails;
|
|
48
|
+
/**
|
|
49
|
+
* The geographical location of the validator node, if available.
|
|
50
|
+
*/
|
|
51
|
+
geolocation: Geolocation | null;
|
|
47
52
|
};
|
|
48
53
|
declare namespace ActiveValidatorDetails {
|
|
49
54
|
enum validationStatus {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type of balance to monitor
|
|
3
|
+
*/
|
|
4
|
+
declare enum CommonBalanceType {
|
|
5
|
+
UNLOCKED_UNSTAKED = "unlockedUnstaked",
|
|
6
|
+
UNLOCKED_STAKED = "unlockedStaked",
|
|
7
|
+
LOCKED_PLATFORM = "lockedPlatform",
|
|
8
|
+
LOCKED_STAKEABLE = "lockedStakeable",
|
|
9
|
+
LOCKED_STAKED = "lockedStaked",
|
|
10
|
+
PENDING_STAKED = "pendingStaked",
|
|
11
|
+
UNLOCKED = "unlocked",
|
|
12
|
+
LOCKED = "locked",
|
|
13
|
+
ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
|
|
14
|
+
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { CommonBalanceType };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=(e=>(e.UNLOCKED_UNSTAKED="unlockedUnstaked",e.UNLOCKED_STAKED="unlockedStaked",e.LOCKED_PLATFORM="lockedPlatform",e.LOCKED_STAKEABLE="lockedStakeable",e.LOCKED_STAKED="lockedStaked",e.PENDING_STAKED="pendingStaked",e.UNLOCKED="unlocked",e.LOCKED="locked",e.ATOMIC_MEMORY_UNLOCKED="atomicMemoryUnlocked",e.ATOMIC_MEMORY_LOCKED="atomicMemoryLocked",e))(e||{});export{e as CommonBalanceType};
|
|
@@ -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};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type ERCToken = {
|
|
2
|
+
/**
|
|
3
|
+
* Token contract address
|
|
4
|
+
*/
|
|
5
|
+
address: string;
|
|
6
|
+
/**
|
|
7
|
+
* Token name
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* Token symbol
|
|
12
|
+
*/
|
|
13
|
+
symbol: string;
|
|
14
|
+
/**
|
|
15
|
+
* Token decimals
|
|
16
|
+
*/
|
|
17
|
+
decimals: number;
|
|
18
|
+
/**
|
|
19
|
+
* Value including decimals
|
|
20
|
+
*/
|
|
21
|
+
valueWithDecimals: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { ERCToken };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ERCToken } from './ERCToken.js';
|
|
2
|
+
|
|
3
|
+
type ERCTransfer = {
|
|
4
|
+
/**
|
|
5
|
+
* Transaction hash
|
|
6
|
+
*/
|
|
7
|
+
transactionHash: string;
|
|
8
|
+
/**
|
|
9
|
+
* Transfer type
|
|
10
|
+
*/
|
|
11
|
+
type: string;
|
|
12
|
+
/**
|
|
13
|
+
* Sender address
|
|
14
|
+
*/
|
|
15
|
+
from: string;
|
|
16
|
+
/**
|
|
17
|
+
* Recipient address
|
|
18
|
+
*/
|
|
19
|
+
to: string;
|
|
20
|
+
/**
|
|
21
|
+
* Amount transferred
|
|
22
|
+
*/
|
|
23
|
+
value: string;
|
|
24
|
+
/**
|
|
25
|
+
* Token Id
|
|
26
|
+
*/
|
|
27
|
+
tokenId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Block timestamp
|
|
30
|
+
*/
|
|
31
|
+
blockTimestamp: number;
|
|
32
|
+
/**
|
|
33
|
+
* Log index
|
|
34
|
+
*/
|
|
35
|
+
logIndex: number;
|
|
36
|
+
/**
|
|
37
|
+
* erc20 Token details
|
|
38
|
+
*/
|
|
39
|
+
erc20Token?: ERCToken;
|
|
40
|
+
/**
|
|
41
|
+
* erc721 Token details
|
|
42
|
+
*/
|
|
43
|
+
erc721Token?: ERCToken;
|
|
44
|
+
/**
|
|
45
|
+
* erc1155 Token details
|
|
46
|
+
*/
|
|
47
|
+
erc1155Token?: ERCToken;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export { ERCTransfer };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AddressActivityMetadata } from './AddressActivityMetadata.js';
|
|
2
|
-
import {
|
|
2
|
+
import { PrimaryNetworkType } from './PrimaryNetworkType.js';
|
|
3
3
|
|
|
4
|
-
type
|
|
4
|
+
type EVMAddressActivityRequest = {
|
|
5
|
+
eventType: EVMAddressActivityRequest.eventType;
|
|
5
6
|
url: string;
|
|
6
7
|
chainId: string;
|
|
7
|
-
|
|
8
|
-
metadata: AddressActivityMetadata;
|
|
8
|
+
network?: PrimaryNetworkType;
|
|
9
9
|
name?: string;
|
|
10
10
|
description?: string;
|
|
11
11
|
/**
|
|
@@ -16,6 +16,12 @@ type CreateWebhookRequest = {
|
|
|
16
16
|
* Whether to include logs in the webhook payload.
|
|
17
17
|
*/
|
|
18
18
|
includeLogs?: boolean;
|
|
19
|
+
metadata: AddressActivityMetadata;
|
|
19
20
|
};
|
|
21
|
+
declare namespace EVMAddressActivityRequest {
|
|
22
|
+
enum eventType {
|
|
23
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
20
26
|
|
|
21
|
-
export {
|
|
27
|
+
export { EVMAddressActivityRequest };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e,t;((t=e||(e={})).eventType||(t.eventType={})).ADDRESS_ACTIVITY="address_activity";export{e as EVMAddressActivityRequest};
|
|
@@ -2,9 +2,15 @@ import { AddressActivityMetadata } from './AddressActivityMetadata.js';
|
|
|
2
2
|
import { EventType } from './EventType.js';
|
|
3
3
|
import { WebhookStatusType } from './WebhookStatusType.js';
|
|
4
4
|
|
|
5
|
-
type
|
|
5
|
+
type EVMAddressActivityResponse = {
|
|
6
6
|
id: string;
|
|
7
7
|
eventType: EventType;
|
|
8
|
+
url: string;
|
|
9
|
+
chainId: string;
|
|
10
|
+
status: WebhookStatusType;
|
|
11
|
+
createdAt: number;
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
8
14
|
metadata: AddressActivityMetadata;
|
|
9
15
|
/**
|
|
10
16
|
* Whether to include traces in the webhook payload.
|
|
@@ -14,12 +20,6 @@ type WebhookResponse = {
|
|
|
14
20
|
* Whether to include logs in the webhook payload.
|
|
15
21
|
*/
|
|
16
22
|
includeLogs?: boolean;
|
|
17
|
-
url: string;
|
|
18
|
-
chainId: string;
|
|
19
|
-
status: WebhookStatusType;
|
|
20
|
-
createdAt: number;
|
|
21
|
-
name: string;
|
|
22
|
-
description: string;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
export {
|
|
25
|
+
export { EVMAddressActivityResponse };
|
|
@@ -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",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a=(a=>(a.ADDRESS_ACTIVITY="address_activity",a))(a||{});export{a as EventType};
|
|
1
|
+
var a=(a=>(a.ADDRESS_ACTIVITY="address_activity",a.PLATFORM_ADDRESS_ACTIVITY="platform_address_activity",a.VALIDATOR_ACTIVITY="validator_activity",a))(a||{});export{a as EventType};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type Geolocation = {
|
|
2
|
+
/**
|
|
3
|
+
* The name of the validator node.
|
|
4
|
+
*/
|
|
5
|
+
city: string;
|
|
6
|
+
/**
|
|
7
|
+
* The city of the validator node.
|
|
8
|
+
*/
|
|
9
|
+
country: string;
|
|
10
|
+
/**
|
|
11
|
+
* The country code of the validator node.
|
|
12
|
+
*/
|
|
13
|
+
countryCode: string;
|
|
14
|
+
/**
|
|
15
|
+
* The latitude of the validator node.
|
|
16
|
+
*/
|
|
17
|
+
latitude: number;
|
|
18
|
+
/**
|
|
19
|
+
* The longitude of the validator node.
|
|
20
|
+
*/
|
|
21
|
+
longitude: number;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { Geolocation };
|
|
@@ -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};
|
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import { InternalTransactionOpCall } from './InternalTransactionOpCall.js';
|
|
2
|
-
import { RichAddress } from './RichAddress.js';
|
|
3
|
-
|
|
4
1
|
type InternalTransaction = {
|
|
5
2
|
/**
|
|
6
|
-
*
|
|
3
|
+
* Sender address
|
|
7
4
|
*/
|
|
8
|
-
|
|
5
|
+
from: string;
|
|
9
6
|
/**
|
|
10
|
-
*
|
|
7
|
+
* Recipient address
|
|
11
8
|
*/
|
|
12
|
-
|
|
9
|
+
to: string;
|
|
13
10
|
/**
|
|
14
|
-
*
|
|
11
|
+
* Internal transaction type
|
|
15
12
|
*/
|
|
16
|
-
|
|
13
|
+
internalTxType: string;
|
|
17
14
|
/**
|
|
18
|
-
*
|
|
15
|
+
* Value transferred
|
|
19
16
|
*/
|
|
20
|
-
txHash: string;
|
|
21
|
-
from: RichAddress;
|
|
22
|
-
to: RichAddress;
|
|
23
|
-
internalTxType: InternalTransactionOpCall;
|
|
24
17
|
value: string;
|
|
25
18
|
/**
|
|
26
|
-
*
|
|
19
|
+
* Gas used
|
|
27
20
|
*/
|
|
28
|
-
isReverted: boolean;
|
|
29
21
|
gasUsed: string;
|
|
22
|
+
/**
|
|
23
|
+
* Gas limit
|
|
24
|
+
*/
|
|
30
25
|
gasLimit: string;
|
|
26
|
+
/**
|
|
27
|
+
* Transaction hash
|
|
28
|
+
*/
|
|
29
|
+
transactionHash: string;
|
|
31
30
|
};
|
|
32
31
|
|
|
33
32
|
export { InternalTransaction };
|
|
@@ -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
|
/**
|
|
@@ -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 };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EVMAddressActivityResponse } from './EVMAddressActivityResponse.js';
|
|
2
|
+
import { PlatformActivityResponse } from './PlatformActivityResponse.js';
|
|
2
3
|
|
|
3
4
|
type ListWebhooksResponse = {
|
|
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;
|
|
8
|
-
webhooks: Array<
|
|
9
|
+
webhooks: Array<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
9
10
|
};
|
|
10
11
|
|
|
11
12
|
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 };
|
|
@@ -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 };
|