@avalabs/glacier-sdk 3.1.0-canary.9b9bc97.0 → 3.1.0-canary.9c8a267.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.cjs +1 -1
- package/dist/index.d.ts +615 -103
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/core/FetchHttpRequest.d.ts +17 -0
- package/esm/generated/core/OpenAPI.js +1 -1
- package/esm/generated/models/AddressActivityEventType.d.ts +5 -0
- package/esm/generated/models/AddressActivityEventType.js +1 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +4 -4
- package/esm/generated/models/AvaxSupplyResponse.d.ts +44 -0
- package/esm/generated/models/Blockchain.d.ts +10 -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 +12 -0
- package/esm/generated/models/EVMAddressActivityRequest.d.ts +2 -4
- package/esm/generated/models/EVMAddressActivityResponse.d.ts +2 -2
- package/esm/generated/models/EvmGenesisAllocDto.d.ts +16 -0
- package/esm/generated/models/EvmGenesisAllowListConfigDto.d.ts +20 -0
- package/esm/generated/models/EvmGenesisConfigDto.d.ts +96 -0
- package/esm/generated/models/EvmGenesisDto.d.ts +75 -0
- package/esm/generated/models/EvmGenesisFeeConfigDto.d.ts +36 -0
- package/esm/generated/models/EvmGenesisWarpConfigDto.d.ts +16 -0
- package/esm/generated/models/InternalTransaction.d.ts +16 -15
- package/esm/generated/models/ListIcmMessagesResponse.d.ts +2 -1
- 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 +3 -2
- package/esm/generated/models/PChainTransaction.d.ts +5 -0
- package/esm/generated/models/PChainUtxo.d.ts +4 -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/PrimaryNetworkAddressesBodyDto.d.ts +8 -0
- package/esm/generated/models/{PlatformBalanceThresholdFilter.d.ts → PrimaryNetworkBalanceThresholdFilter.d.ts} +2 -2
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +21 -1
- package/esm/generated/models/TeleporterMessageInfo.d.ts +2 -2
- package/esm/generated/models/Transaction.d.ts +2 -2
- package/esm/generated/models/Utxo.d.ts +4 -0
- package/esm/generated/models/UtxosSortByOption.d.ts +6 -0
- package/esm/generated/models/UtxosSortByOption.js +1 -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/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 +17 -0
- package/esm/generated/services/AvaxSupplyService.js +1 -0
- package/esm/generated/services/HealthCheckService.d.ts +9 -2
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +4 -4
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +56 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
- package/esm/generated/services/WebhooksService.d.ts +9 -7
- package/esm/index.d.ts +29 -8
- package/esm/index.js +1 -1
- package/package.json +5 -5
- package/esm/generated/models/EventType.d.ts +0 -7
- package/esm/generated/models/EventType.js +0 -1
- package/esm/generated/models/PlatformActivityKeyType.d.ts +0 -10
- package/esm/generated/models/PlatformActivityKeyType.js +0 -1
- package/esm/generated/models/PlatformActivityMetadata.d.ts +0 -37
- package/esm/generated/models/PlatformActivityRequest.d.ts +0 -31
- package/esm/generated/models/PlatformActivityRequest.js +0 -1
- package/esm/generated/models/PlatformActivityResponse.d.ts +0 -17
- package/esm/generated/models/PlatformActivitySubEvents.d.ts +0 -11
- package/esm/generated/models/PlatformAddressActivitySubEventType.d.ts +0 -10
- package/esm/generated/models/PlatformAddressActivitySubEventType.js +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseHttpRequest } from './core/BaseHttpRequest.js';
|
|
2
2
|
import { OpenAPIConfig } from './core/OpenAPI.js';
|
|
3
|
+
import { AvaxSupplyService } from './services/AvaxSupplyService.js';
|
|
3
4
|
import { DataApiUsageMetricsService } from './services/DataApiUsageMetricsService.js';
|
|
4
5
|
import { DefaultService } from './services/DefaultService.js';
|
|
5
6
|
import { EvmBalancesService } from './services/EvmBalancesService.js';
|
|
@@ -25,6 +26,7 @@ import { WebhooksService } from './services/WebhooksService.js';
|
|
|
25
26
|
|
|
26
27
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
27
28
|
declare class Glacier {
|
|
29
|
+
readonly avaxSupply: AvaxSupplyService;
|
|
28
30
|
readonly dataApiUsageMetrics: DataApiUsageMetricsService;
|
|
29
31
|
readonly default: DefaultService;
|
|
30
32
|
readonly evmBalances: EvmBalancesService;
|
package/esm/generated/Glacier.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FetchHttpRequest as e}from"./core/FetchHttpRequest.js";import{
|
|
1
|
+
import{FetchHttpRequest as e}from"./core/FetchHttpRequest.js";import{AvaxSupplyService as r}from"./services/AvaxSupplyService.js";import{DataApiUsageMetricsService as s}from"./services/DataApiUsageMetricsService.js";import{DefaultService as i}from"./services/DefaultService.js";import{EvmBalancesService as t}from"./services/EvmBalancesService.js";import{EvmBlocksService as o}from"./services/EvmBlocksService.js";import{EvmChainsService as a}from"./services/EvmChainsService.js";import{EvmContractsService as c}from"./services/EvmContractsService.js";import{EvmTransactionsService as m}from"./services/EvmTransactionsService.js";import{HealthCheckService as n}from"./services/HealthCheckService.js";import{InterchainMessagingService as h}from"./services/InterchainMessagingService.js";import{NfTsService as v}from"./services/NfTsService.js";import{NotificationsService as p}from"./services/NotificationsService.js";import{OperationsService as w}from"./services/OperationsService.js";import{PrimaryNetworkService as S}from"./services/PrimaryNetworkService.js";import{PrimaryNetworkBalancesService as u}from"./services/PrimaryNetworkBalancesService.js";import{PrimaryNetworkBlocksService as N}from"./services/PrimaryNetworkBlocksService.js";import{PrimaryNetworkRewardsService as k}from"./services/PrimaryNetworkRewardsService.js";import{PrimaryNetworkTransactionsService as f}from"./services/PrimaryNetworkTransactionsService.js";import{PrimaryNetworkUtxOsService as E}from"./services/PrimaryNetworkUtxOsService.js";import{PrimaryNetworkVerticesService as l}from"./services/PrimaryNetworkVerticesService.js";import{SignatureAggregatorService as q}from"./services/SignatureAggregatorService.js";import{TeleporterService as j}from"./services/TeleporterService.js";import{WebhooksService as y}from"./services/WebhooksService.js";class g{avaxSupply;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,A=e){this.request=new A({BASE:g?.BASE??"https://data-api-dev.avax.network",VERSION:g?.VERSION??"1.0.0",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.avaxSupply=new r(this.request),this.dataApiUsageMetrics=new s(this.request),this.default=new i(this.request),this.evmBalances=new t(this.request),this.evmBlocks=new o(this.request),this.evmChains=new a(this.request),this.evmContracts=new c(this.request),this.evmTransactions=new m(this.request),this.healthCheck=new n(this.request),this.interchainMessaging=new h(this.request),this.nfTs=new v(this.request),this.notifications=new p(this.request),this.operations=new w(this.request),this.primaryNetwork=new S(this.request),this.primaryNetworkBalances=new u(this.request),this.primaryNetworkBlocks=new N(this.request),this.primaryNetworkRewards=new k(this.request),this.primaryNetworkTransactions=new f(this.request),this.primaryNetworkUtxOs=new E(this.request),this.primaryNetworkVertices=new l(this.request),this.signatureAggregator=new q(this.request),this.teleporter=new j(this.request),this.webhooks=new y(this.request)}}export{g as Glacier};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ApiRequestOptions } from './ApiRequestOptions.js';
|
|
2
|
+
import { BaseHttpRequest } from './BaseHttpRequest.js';
|
|
3
|
+
import { CancelablePromise } from './CancelablePromise.js';
|
|
4
|
+
import { OpenAPIConfig } from './OpenAPI.js';
|
|
5
|
+
|
|
6
|
+
declare class FetchHttpRequest extends BaseHttpRequest {
|
|
7
|
+
constructor(config: OpenAPIConfig);
|
|
8
|
+
/**
|
|
9
|
+
* Request method
|
|
10
|
+
* @param options The request options from the service
|
|
11
|
+
* @returns CancelablePromise<T>
|
|
12
|
+
* @throws ApiError
|
|
13
|
+
*/
|
|
14
|
+
request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { FetchHttpRequest };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const E={BASE:"https://
|
|
1
|
+
const E={BASE:"https://data-api-dev.avax.network",VERSION:"1.0.0",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};export{E as OpenAPI};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=(a=>(a.ADDRESS_ACTIVITY="address_activity",a))(a||{});export{a as AddressActivityEventType};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
type AddressActivityMetadata = {
|
|
2
|
-
/**
|
|
3
|
-
* Ethereum address(es) for the address_activity event type
|
|
4
|
-
*/
|
|
5
|
-
addresses: Array<string>;
|
|
6
2
|
/**
|
|
7
3
|
* Array of hexadecimal strings of the event signatures.
|
|
8
4
|
*/
|
|
9
5
|
eventSignatures?: Array<string>;
|
|
6
|
+
/**
|
|
7
|
+
* Ethereum address(es) for the address_activity event type. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to.
|
|
8
|
+
*/
|
|
9
|
+
addresses: Array<string>;
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
export type { AddressActivityMetadata };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
type AvaxSupplyResponse = {
|
|
2
|
+
/**
|
|
3
|
+
* The circulating supply of AVAX.
|
|
4
|
+
*/
|
|
5
|
+
circulatingSupply: string;
|
|
6
|
+
/**
|
|
7
|
+
* The total supply of AVAX.
|
|
8
|
+
*/
|
|
9
|
+
totalSupply: string;
|
|
10
|
+
/**
|
|
11
|
+
* The total P-chain burned fees of AVAX.
|
|
12
|
+
*/
|
|
13
|
+
totalPBurned: string;
|
|
14
|
+
/**
|
|
15
|
+
* The total C-chain burned fees of AVAX.
|
|
16
|
+
*/
|
|
17
|
+
totalCBurned: string;
|
|
18
|
+
/**
|
|
19
|
+
* The total X-chain burned fees of AVAX.
|
|
20
|
+
*/
|
|
21
|
+
totalXBurned: string;
|
|
22
|
+
/**
|
|
23
|
+
* The total staked AVAX.
|
|
24
|
+
*/
|
|
25
|
+
totalStaked: string;
|
|
26
|
+
/**
|
|
27
|
+
* The total locked AVAX.
|
|
28
|
+
*/
|
|
29
|
+
totalLocked: string;
|
|
30
|
+
/**
|
|
31
|
+
* The total rewards AVAX.
|
|
32
|
+
*/
|
|
33
|
+
totalRewards: string;
|
|
34
|
+
/**
|
|
35
|
+
* The last updated time of the AVAX supply.
|
|
36
|
+
*/
|
|
37
|
+
lastUpdated: string;
|
|
38
|
+
/**
|
|
39
|
+
* The genesis unlock amount of the AVAX supply.
|
|
40
|
+
*/
|
|
41
|
+
genesisUnlock: string;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type { AvaxSupplyResponse };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { EvmGenesisDto } from './EvmGenesisDto.js';
|
|
2
|
+
|
|
1
3
|
type Blockchain = {
|
|
2
4
|
createBlockTimestamp: number;
|
|
3
5
|
createBlockNumber: string;
|
|
@@ -5,6 +7,14 @@ type Blockchain = {
|
|
|
5
7
|
vmId: string;
|
|
6
8
|
subnetId: string;
|
|
7
9
|
blockchainName: string;
|
|
10
|
+
/**
|
|
11
|
+
* EVM Chain ID for the EVM-based chains. This field is extracted from genesis data, and may be present for non-EVM chains as well.
|
|
12
|
+
*/
|
|
13
|
+
evmChainId: number;
|
|
14
|
+
/**
|
|
15
|
+
* The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
|
|
16
|
+
*/
|
|
17
|
+
genesisData?: (EvmGenesisDto | string);
|
|
8
18
|
};
|
|
9
19
|
|
|
10
20
|
export type { Blockchain };
|
|
@@ -2,10 +2,8 @@ declare enum BlockchainId {
|
|
|
2
2
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3
3
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
4
4
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
5
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
6
5
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
7
6
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
8
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
9
7
|
P_CHAIN = "p-chain",
|
|
10
8
|
X_CHAIN = "x-chain",
|
|
11
9
|
C_CHAIN = "c-chain"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _=(_=>(_._11111111111111111111111111111111LPO_YY="11111111111111111111111111111111LpoYY",_._2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M="2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",_._2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM="2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",_.
|
|
1
|
+
var _=(_=>(_._11111111111111111111111111111111LPO_YY="11111111111111111111111111111111LpoYY",_._2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M="2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",_._2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM="2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",_._2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5="2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",_.Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP="yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",_.P_CHAIN="p-chain",_.X_CHAIN="x-chain",_.C_CHAIN="c-chain",_))(_||{});export{_ as BlockchainId};
|
|
@@ -2,10 +2,8 @@ declare enum BlockchainIds {
|
|
|
2
2
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3
3
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
4
4
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
5
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
6
5
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
7
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
8
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
|
|
6
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
9
7
|
}
|
|
10
8
|
|
|
11
9
|
export { BlockchainIds };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _=(_=>(_._11111111111111111111111111111111LPO_YY="11111111111111111111111111111111LpoYY",_._2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M="2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",_._2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM="2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",_.
|
|
1
|
+
var _=(_=>(_._11111111111111111111111111111111LPO_YY="11111111111111111111111111111111LpoYY",_._2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M="2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",_._2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM="2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",_._2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5="2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",_.Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP="yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",_))(_||{});export{_ as BlockchainIds};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EvmGenesisDto } from './EvmGenesisDto.js';
|
|
2
|
+
|
|
3
|
+
type BlockchainInfo = {
|
|
4
|
+
chainName: string;
|
|
5
|
+
vmId: string;
|
|
6
|
+
/**
|
|
7
|
+
* The genesis data of the blockchain. Present for CreateChainTx. EVM based chains will return the genesis data as an object. Non-EVM based chains will return the genesis data as an encoded string. The encoding depends on the VM
|
|
8
|
+
*/
|
|
9
|
+
genesisData?: (EvmGenesisDto | string);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export type { BlockchainInfo };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { AddressActivityMetadata } from './AddressActivityMetadata.js';
|
|
2
|
-
import { PrimaryNetworkType } from './PrimaryNetworkType.js';
|
|
3
2
|
|
|
4
3
|
type EVMAddressActivityRequest = {
|
|
5
4
|
eventType: EVMAddressActivityRequest.eventType;
|
|
6
5
|
url: string;
|
|
7
|
-
chainId: string;
|
|
8
|
-
network?: PrimaryNetworkType;
|
|
9
6
|
name?: string;
|
|
10
7
|
description?: string;
|
|
8
|
+
chainId: string;
|
|
9
|
+
metadata: AddressActivityMetadata;
|
|
11
10
|
/**
|
|
12
11
|
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
13
12
|
*/
|
|
@@ -16,7 +15,6 @@ type EVMAddressActivityRequest = {
|
|
|
16
15
|
* Whether to include logs in the webhook payload.
|
|
17
16
|
*/
|
|
18
17
|
includeLogs?: boolean;
|
|
19
|
-
metadata: AddressActivityMetadata;
|
|
20
18
|
};
|
|
21
19
|
declare namespace EVMAddressActivityRequest {
|
|
22
20
|
enum eventType {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import { AddressActivityEventType } from './AddressActivityEventType.js';
|
|
1
2
|
import { AddressActivityMetadata } from './AddressActivityMetadata.js';
|
|
2
|
-
import { EventType } from './EventType.js';
|
|
3
3
|
import { WebhookStatusType } from './WebhookStatusType.js';
|
|
4
4
|
|
|
5
5
|
type EVMAddressActivityResponse = {
|
|
6
6
|
id: string;
|
|
7
|
-
eventType: EventType;
|
|
8
7
|
url: string;
|
|
9
8
|
chainId: string;
|
|
10
9
|
status: WebhookStatusType;
|
|
11
10
|
createdAt: number;
|
|
12
11
|
name: string;
|
|
13
12
|
description: string;
|
|
13
|
+
eventType: AddressActivityEventType;
|
|
14
14
|
metadata: AddressActivityMetadata;
|
|
15
15
|
/**
|
|
16
16
|
* Whether to include traces in the webhook payload.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type EvmGenesisAllocDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Account balance in hex format
|
|
4
|
+
*/
|
|
5
|
+
balance?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Contract bytecode in hex format
|
|
8
|
+
*/
|
|
9
|
+
code?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Contract storage slots
|
|
12
|
+
*/
|
|
13
|
+
storage?: Record<string, string>;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type { EvmGenesisAllocDto };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type EvmGenesisAllowListConfigDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Block timestamp
|
|
4
|
+
*/
|
|
5
|
+
blockTimestamp?: number;
|
|
6
|
+
/**
|
|
7
|
+
* Admin addresses
|
|
8
|
+
*/
|
|
9
|
+
adminAddresses?: Array<string>;
|
|
10
|
+
/**
|
|
11
|
+
* Manager addresses
|
|
12
|
+
*/
|
|
13
|
+
managerAddresses?: Array<string>;
|
|
14
|
+
/**
|
|
15
|
+
* Enabled addresses
|
|
16
|
+
*/
|
|
17
|
+
enabledAddresses?: Array<string>;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export type { EvmGenesisAllowListConfigDto };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { EvmGenesisAllowListConfigDto } from './EvmGenesisAllowListConfigDto.js';
|
|
2
|
+
import { EvmGenesisFeeConfigDto } from './EvmGenesisFeeConfigDto.js';
|
|
3
|
+
import { EvmGenesisWarpConfigDto } from './EvmGenesisWarpConfigDto.js';
|
|
4
|
+
|
|
5
|
+
type EvmGenesisConfigDto = {
|
|
6
|
+
/**
|
|
7
|
+
* Berlin block number
|
|
8
|
+
*/
|
|
9
|
+
berlinBlock?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Byzantium block number
|
|
12
|
+
*/
|
|
13
|
+
byzantiumBlock?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Chain ID
|
|
16
|
+
*/
|
|
17
|
+
chainId?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Constantinople block number
|
|
20
|
+
*/
|
|
21
|
+
constantinopleBlock?: number;
|
|
22
|
+
/**
|
|
23
|
+
* EIP-150 block number
|
|
24
|
+
*/
|
|
25
|
+
eip150Block?: number;
|
|
26
|
+
/**
|
|
27
|
+
* EIP-150 hash
|
|
28
|
+
*/
|
|
29
|
+
eip150Hash?: string;
|
|
30
|
+
/**
|
|
31
|
+
* EIP-155 block number
|
|
32
|
+
*/
|
|
33
|
+
eip155Block?: number;
|
|
34
|
+
/**
|
|
35
|
+
* EIP-158 block number
|
|
36
|
+
*/
|
|
37
|
+
eip158Block?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Fee configuration
|
|
40
|
+
*/
|
|
41
|
+
feeConfig?: EvmGenesisFeeConfigDto;
|
|
42
|
+
/**
|
|
43
|
+
* Homestead block number
|
|
44
|
+
*/
|
|
45
|
+
homesteadBlock?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Istanbul block number
|
|
48
|
+
*/
|
|
49
|
+
istanbulBlock?: number;
|
|
50
|
+
/**
|
|
51
|
+
* London block number
|
|
52
|
+
*/
|
|
53
|
+
londonBlock?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Muir Glacier block number
|
|
56
|
+
*/
|
|
57
|
+
muirGlacierBlock?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Petersburg block number
|
|
60
|
+
*/
|
|
61
|
+
petersburgBlock?: number;
|
|
62
|
+
/**
|
|
63
|
+
* Subnet EVM timestamp
|
|
64
|
+
*/
|
|
65
|
+
subnetEVMTimestamp?: number;
|
|
66
|
+
/**
|
|
67
|
+
* Allow fee recipients
|
|
68
|
+
*/
|
|
69
|
+
allowFeeRecipients?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Warp configuration
|
|
72
|
+
*/
|
|
73
|
+
warpConfig?: EvmGenesisWarpConfigDto;
|
|
74
|
+
/**
|
|
75
|
+
* Transaction allow list configuration
|
|
76
|
+
*/
|
|
77
|
+
txAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
78
|
+
/**
|
|
79
|
+
* Contract deployer allow list configuration
|
|
80
|
+
*/
|
|
81
|
+
contractDeployerAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
82
|
+
/**
|
|
83
|
+
* Contract native minter configuration
|
|
84
|
+
*/
|
|
85
|
+
contractNativeMinterConfig?: EvmGenesisAllowListConfigDto;
|
|
86
|
+
/**
|
|
87
|
+
* Fee manager configuration
|
|
88
|
+
*/
|
|
89
|
+
feeManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
90
|
+
/**
|
|
91
|
+
* Reward manager configuration
|
|
92
|
+
*/
|
|
93
|
+
rewardManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export type { EvmGenesisConfigDto };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { EvmGenesisAllocDto } from './EvmGenesisAllocDto.js';
|
|
2
|
+
import { EvmGenesisConfigDto } from './EvmGenesisConfigDto.js';
|
|
3
|
+
|
|
4
|
+
type EvmGenesisDto = {
|
|
5
|
+
/**
|
|
6
|
+
* Airdrop amount
|
|
7
|
+
*/
|
|
8
|
+
airdropAmount?: number | null;
|
|
9
|
+
/**
|
|
10
|
+
* Airdrop hash
|
|
11
|
+
*/
|
|
12
|
+
airdropHash?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Allocation of accounts and balances
|
|
15
|
+
*/
|
|
16
|
+
alloc?: Record<string, EvmGenesisAllocDto>;
|
|
17
|
+
/**
|
|
18
|
+
* Base fee per gas
|
|
19
|
+
*/
|
|
20
|
+
baseFeePerGas?: number | null;
|
|
21
|
+
/**
|
|
22
|
+
* Blob gas used
|
|
23
|
+
*/
|
|
24
|
+
blobGasUsed?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Coinbase address
|
|
27
|
+
*/
|
|
28
|
+
coinbase?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Genesis configuration
|
|
31
|
+
*/
|
|
32
|
+
config?: EvmGenesisConfigDto;
|
|
33
|
+
/**
|
|
34
|
+
* Difficulty
|
|
35
|
+
*/
|
|
36
|
+
difficulty?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Excess blob gas
|
|
39
|
+
*/
|
|
40
|
+
excessBlobGas?: string | null;
|
|
41
|
+
/**
|
|
42
|
+
* Extra data
|
|
43
|
+
*/
|
|
44
|
+
extraData?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Gas limit
|
|
47
|
+
*/
|
|
48
|
+
gasLimit?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Gas used
|
|
51
|
+
*/
|
|
52
|
+
gasUsed?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Mix hash
|
|
55
|
+
*/
|
|
56
|
+
mixHash?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Nonce
|
|
59
|
+
*/
|
|
60
|
+
nonce?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Block number
|
|
63
|
+
*/
|
|
64
|
+
number?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Parent hash
|
|
67
|
+
*/
|
|
68
|
+
parentHash?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Block timestamp
|
|
71
|
+
*/
|
|
72
|
+
timestamp?: string;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export type { EvmGenesisDto };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
type EvmGenesisFeeConfigDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Base fee change denominator
|
|
4
|
+
*/
|
|
5
|
+
baseFeeChangeDenominator?: number;
|
|
6
|
+
/**
|
|
7
|
+
* Block gas cost step
|
|
8
|
+
*/
|
|
9
|
+
blockGasCostStep?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Gas limit
|
|
12
|
+
*/
|
|
13
|
+
gasLimit?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Maximum block gas cost
|
|
16
|
+
*/
|
|
17
|
+
maxBlockGasCost?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Minimum base fee
|
|
20
|
+
*/
|
|
21
|
+
minBaseFee?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Minimum block gas cost
|
|
24
|
+
*/
|
|
25
|
+
minBlockGasCost?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Target block rate
|
|
28
|
+
*/
|
|
29
|
+
targetBlockRate?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Target gas
|
|
32
|
+
*/
|
|
33
|
+
targetGas?: number;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type { EvmGenesisFeeConfigDto };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type EvmGenesisWarpConfigDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Block timestamp
|
|
4
|
+
*/
|
|
5
|
+
blockTimestamp?: number;
|
|
6
|
+
/**
|
|
7
|
+
* Quorum numerator
|
|
8
|
+
*/
|
|
9
|
+
quorumNumerator?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Require primary network signers
|
|
12
|
+
*/
|
|
13
|
+
requirePrimaryNetworkSigners?: boolean;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type { EvmGenesisWarpConfigDto };
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
+
import { InternalTransactionOpCall } from './InternalTransactionOpCall.js';
|
|
2
|
+
import { RichAddress } from './RichAddress.js';
|
|
3
|
+
|
|
1
4
|
type InternalTransaction = {
|
|
2
5
|
/**
|
|
3
|
-
*
|
|
6
|
+
* The block number on the chain.
|
|
4
7
|
*/
|
|
5
|
-
|
|
8
|
+
blockNumber: string;
|
|
6
9
|
/**
|
|
7
|
-
*
|
|
10
|
+
* The block finality timestamp.
|
|
8
11
|
*/
|
|
9
|
-
|
|
12
|
+
blockTimestamp: number;
|
|
10
13
|
/**
|
|
11
|
-
*
|
|
14
|
+
* The block hash identifier.
|
|
12
15
|
*/
|
|
13
|
-
|
|
16
|
+
blockHash: string;
|
|
14
17
|
/**
|
|
15
|
-
*
|
|
18
|
+
* The transaction hash identifier.
|
|
16
19
|
*/
|
|
20
|
+
txHash: string;
|
|
21
|
+
from: RichAddress;
|
|
22
|
+
to: RichAddress;
|
|
23
|
+
internalTxType: InternalTransactionOpCall;
|
|
17
24
|
value: string;
|
|
18
25
|
/**
|
|
19
|
-
*
|
|
26
|
+
* True if the internal transaction was reverted.
|
|
20
27
|
*/
|
|
28
|
+
isReverted: boolean;
|
|
21
29
|
gasUsed: string;
|
|
22
|
-
/**
|
|
23
|
-
* Gas limit
|
|
24
|
-
*/
|
|
25
30
|
gasLimit: string;
|
|
26
|
-
/**
|
|
27
|
-
* Transaction hash
|
|
28
|
-
*/
|
|
29
|
-
transactionHash: string;
|
|
30
31
|
};
|
|
31
32
|
|
|
32
33
|
export type { InternalTransaction };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DeliveredIcmMessage } from './DeliveredIcmMessage.js';
|
|
2
|
+
import { DeliveredSourceNotIndexedIcmMessage } from './DeliveredSourceNotIndexedIcmMessage.js';
|
|
2
3
|
import { PendingIcmMessage } from './PendingIcmMessage.js';
|
|
3
4
|
|
|
4
5
|
type ListIcmMessagesResponse = {
|
|
@@ -6,7 +7,7 @@ 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.
|
|
7
8
|
*/
|
|
8
9
|
nextPageToken?: string;
|
|
9
|
-
messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
|
|
10
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export type { 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 type { 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 type { ListTeleporterMessagesResponse };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { EVMAddressActivityResponse } from './EVMAddressActivityResponse.js';
|
|
2
|
-
import {
|
|
2
|
+
import { PrimaryNetworkAddressActivityResponse } from './PrimaryNetworkAddressActivityResponse.js';
|
|
3
|
+
import { ValidatorActivityResponse } from './ValidatorActivityResponse.js';
|
|
3
4
|
|
|
4
5
|
type ListWebhooksResponse = {
|
|
5
6
|
/**
|
|
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
|
-
webhooks: Array<(EVMAddressActivityResponse |
|
|
10
|
+
webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export type { ListWebhooksResponse };
|
|
@@ -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';
|
|
@@ -103,6 +104,10 @@ type PChainTransaction = {
|
|
|
103
104
|
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
104
105
|
*/
|
|
105
106
|
blsCredentials?: BlsCredentials;
|
|
107
|
+
/**
|
|
108
|
+
* Details of the blockchain that was created in the CreateChainTx
|
|
109
|
+
*/
|
|
110
|
+
blockchainInfo?: BlockchainInfo;
|
|
106
111
|
};
|
|
107
112
|
|
|
108
113
|
export type { PChainTransaction };
|