@avalabs/glacier-sdk 3.1.0-canary.9fc81c6.0 → 3.1.0-canary.a3e15f5.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 +912 -185
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +4 -2
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
- package/esm/generated/models/ApiFeature.d.ts +7 -0
- package/esm/generated/models/ApiFeature.js +1 -0
- package/esm/generated/models/BadGateway.d.ts +16 -0
- package/esm/generated/models/BadRequest.d.ts +16 -0
- package/esm/generated/models/BalanceOwner.d.ts +6 -0
- package/esm/generated/models/BlockchainId.d.ts +2 -0
- package/esm/generated/models/BlockchainId.js +1 -1
- package/esm/generated/models/BlockchainIds.d.ts +3 -1
- package/esm/generated/models/BlockchainIds.js +1 -1
- package/esm/generated/models/ChainInfo.d.ts +1 -1
- package/esm/generated/models/CompletedValidatorDetails.d.ts +1 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +4 -4
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +4 -4
- package/esm/generated/models/DataListChainsResponse.d.ts +7 -0
- package/esm/generated/models/Forbidden.d.ts +16 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -1
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
- package/esm/generated/models/GetTransactionResponse.d.ts +5 -0
- package/esm/generated/models/InternalServerError.d.ts +16 -0
- package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
- package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
- package/esm/generated/models/ListSubnetOnlyValidatorsResponse.d.ts +14 -0
- package/esm/generated/models/LogsFormat.d.ts +60 -0
- package/esm/generated/models/LogsFormatMetadata.d.ts +16 -0
- package/esm/generated/models/LogsResponseDTO.d.ts +18 -0
- package/esm/generated/models/Metric.d.ts +14 -0
- package/esm/generated/models/Network.d.ts +3 -1
- package/esm/generated/models/Network.js +1 -1
- package/esm/generated/models/NotFound.d.ts +16 -0
- package/esm/generated/models/PChainTransaction.d.ts +14 -0
- package/esm/generated/models/PChainTransactionType.d.ts +5 -0
- package/esm/generated/models/PChainTransactionType.js +1 -1
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/RequestType.d.ts +9 -0
- package/esm/generated/models/RequestType.js +1 -0
- package/esm/generated/models/RpcMetrics.d.ts +14 -0
- package/esm/generated/models/RpcUsageMetricsResponseDTO.d.ts +18 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +47 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
- package/esm/generated/models/ServiceUnavailable.d.ts +16 -0
- package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +14 -0
- package/esm/generated/models/SoVDetailsTransaction.d.ts +23 -0
- package/esm/generated/models/SovDetailsFull.d.ts +33 -0
- package/esm/generated/models/Subnet.d.ts +9 -0
- package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
- package/esm/generated/models/TimeIntervalGranularityExtended.d.ts +9 -0
- package/esm/generated/models/TimeIntervalGranularityExtended.js +1 -0
- package/esm/generated/models/TooManyRequests.d.ts +16 -0
- package/esm/generated/models/TransactionDirectionType.d.ts +6 -0
- package/esm/generated/models/TransactionDirectionType.js +1 -0
- package/esm/generated/models/Unauthorized.d.ts +16 -0
- package/esm/generated/models/UsageMetricsGroupByEnum.d.ts +9 -0
- package/esm/generated/models/UsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/UsageMetricsResponseDTO.d.ts +18 -0
- package/esm/generated/models/UsageMetricsValueDTO.d.ts +53 -0
- package/esm/generated/models/UsageMetricsValueDTO.js +1 -0
- package/esm/generated/models/XChainId.d.ts +1 -0
- package/esm/generated/models/XChainId.js +1 -1
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +154 -0
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -0
- package/esm/generated/services/EvmBalancesService.d.ts +10 -10
- package/esm/generated/services/EvmBalancesService.js +1 -1
- package/esm/generated/services/EvmBlocksService.d.ts +4 -4
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +21 -8
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +4 -4
- package/esm/generated/services/EvmContractsService.js +1 -1
- package/esm/generated/services/EvmTransactionsService.d.ts +24 -24
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/HealthCheckService.d.ts +1 -1
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/NfTsService.d.ts +6 -6
- package/esm/generated/services/NfTsService.js +1 -1
- package/esm/generated/services/OperationsService.d.ts +2 -2
- package/esm/generated/services/OperationsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +2 -2
- package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -1
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +6 -6
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +4 -4
- package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +52 -18
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +13 -10
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +2 -2
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +6 -6
- package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +20 -0
- package/esm/generated/services/SignatureAggregatorService.js +1 -0
- package/esm/generated/services/TeleporterService.d.ts +34 -6
- package/esm/generated/services/TeleporterService.js +1 -1
- package/esm/generated/services/WebhooksService.d.ts +10 -10
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +34 -8
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/GlacierApiFeature.d.ts +0 -6
- package/esm/generated/models/GlacierApiFeature.js +0 -1
- package/esm/generated/models/NetworkType.d.ts +0 -6
- package/esm/generated/models/NetworkType.js +0 -1
- package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
- package/esm/generated/models/PrimaryNetwork.js +0 -1
- package/esm/generated/models/RpcErrorDto.d.ts +0 -7
- package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
- package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
- package/esm/generated/services/RpcService.d.ts +0 -25
- package/esm/generated/services/RpcService.js +0 -1
|
@@ -2,8 +2,10 @@ 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",
|
|
5
6
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
6
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
7
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
8
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
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",_._2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5="2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",_.Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP="yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",_))(_||{});export{_ as BlockchainIds};
|
|
1
|
+
var _=(_=>(_._11111111111111111111111111111111LPO_YY="11111111111111111111111111111111LpoYY",_._2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M="2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",_._2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM="2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",_._2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V="2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",_._2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5="2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",_.Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP="yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",_.V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU="vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",_))(_||{});export{_ as BlockchainIds};
|
|
@@ -3,16 +3,16 @@ import { EVMOperationType } from './EVMOperationType.js';
|
|
|
3
3
|
|
|
4
4
|
type CreateEvmTransactionExportRequest = {
|
|
5
5
|
type: EVMOperationType;
|
|
6
|
-
firstDate
|
|
7
|
-
lastDate
|
|
6
|
+
firstDate?: string;
|
|
7
|
+
lastDate?: string;
|
|
8
8
|
/**
|
|
9
9
|
* @deprecated
|
|
10
10
|
*/
|
|
11
|
-
startDate
|
|
11
|
+
startDate?: string;
|
|
12
12
|
/**
|
|
13
13
|
* @deprecated
|
|
14
14
|
*/
|
|
15
|
-
endDate
|
|
15
|
+
endDate?: string;
|
|
16
16
|
options: EvmNetworkOptions;
|
|
17
17
|
};
|
|
18
18
|
|
|
@@ -3,16 +3,16 @@ import { PrimaryNetworkOptions } from './PrimaryNetworkOptions.js';
|
|
|
3
3
|
|
|
4
4
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
5
5
|
type: PrimaryNetworkOperationType;
|
|
6
|
-
firstDate
|
|
7
|
-
lastDate
|
|
6
|
+
firstDate?: string;
|
|
7
|
+
lastDate?: string;
|
|
8
8
|
/**
|
|
9
9
|
* @deprecated
|
|
10
10
|
*/
|
|
11
|
-
startDate
|
|
11
|
+
startDate?: string;
|
|
12
12
|
/**
|
|
13
13
|
* @deprecated
|
|
14
14
|
*/
|
|
15
|
-
endDate
|
|
15
|
+
endDate?: string;
|
|
16
16
|
options: PrimaryNetworkOptions;
|
|
17
17
|
};
|
|
18
18
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type Forbidden = {
|
|
2
|
+
/**
|
|
3
|
+
* The error message describing the reason for the exception
|
|
4
|
+
*/
|
|
5
|
+
message: (string | Array<string>);
|
|
6
|
+
/**
|
|
7
|
+
* The HTTP status code of the response
|
|
8
|
+
*/
|
|
9
|
+
statusCode: number;
|
|
10
|
+
/**
|
|
11
|
+
* The type of error
|
|
12
|
+
*/
|
|
13
|
+
error: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { Forbidden };
|
|
@@ -20,7 +20,7 @@ type GetChainResponse = {
|
|
|
20
20
|
networkToken: NetworkToken;
|
|
21
21
|
chainLogoUri?: string;
|
|
22
22
|
private?: boolean;
|
|
23
|
-
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
23
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
export { GetChainResponse };
|
|
@@ -9,6 +9,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
9
9
|
txCount: number;
|
|
10
10
|
transactions: Array<string>;
|
|
11
11
|
blockSizeBytes: number;
|
|
12
|
+
subnetOnlyValidatorsAccruedFees?: number;
|
|
13
|
+
activeSubnetOnlyValidators?: number;
|
|
12
14
|
currentSupply?: string;
|
|
13
15
|
proposerDetails?: ProposerDetails;
|
|
14
16
|
};
|
|
@@ -4,6 +4,7 @@ import { Erc721TransferDetails } from './Erc721TransferDetails.js';
|
|
|
4
4
|
import { FullNativeTransactionDetails } from './FullNativeTransactionDetails.js';
|
|
5
5
|
import { InternalTransactionDetails } from './InternalTransactionDetails.js';
|
|
6
6
|
import { NetworkTokenDetails } from './NetworkTokenDetails.js';
|
|
7
|
+
import { TeleporterMessageInfo } from './TeleporterMessageInfo.js';
|
|
7
8
|
|
|
8
9
|
type GetTransactionResponse = {
|
|
9
10
|
/**
|
|
@@ -24,6 +25,10 @@ type GetTransactionResponse = {
|
|
|
24
25
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
25
26
|
networkTokenDetails: NetworkTokenDetails;
|
|
26
27
|
nativeTransaction: FullNativeTransactionDetails;
|
|
28
|
+
/**
|
|
29
|
+
* Corresponding teleporter message info if available.
|
|
30
|
+
*/
|
|
31
|
+
teleporterMessageInfo?: TeleporterMessageInfo;
|
|
27
32
|
};
|
|
28
33
|
|
|
29
34
|
export { GetTransactionResponse };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type InternalServerError = {
|
|
2
|
+
/**
|
|
3
|
+
* The error message describing the reason for the exception
|
|
4
|
+
*/
|
|
5
|
+
message: (string | Array<string>);
|
|
6
|
+
/**
|
|
7
|
+
* The HTTP status code of the response
|
|
8
|
+
*/
|
|
9
|
+
statusCode: number;
|
|
10
|
+
/**
|
|
11
|
+
* The type of error
|
|
12
|
+
*/
|
|
13
|
+
error: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { InternalServerError };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SovDetailsFull } from './SovDetailsFull.js';
|
|
2
|
+
|
|
3
|
+
type ListSubnetOnlyValidatorsResponse = {
|
|
4
|
+
/**
|
|
5
|
+
* 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
|
+
nextPageToken?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
10
|
+
*/
|
|
11
|
+
validators: Array<SovDetailsFull>;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { ListSubnetOnlyValidatorsResponse };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { LogsFormatMetadata } from './LogsFormatMetadata.js';
|
|
2
|
+
import { RequestType } from './RequestType.js';
|
|
3
|
+
|
|
4
|
+
type LogsFormat = {
|
|
5
|
+
/**
|
|
6
|
+
* The organization id of the request.
|
|
7
|
+
*/
|
|
8
|
+
orgId: string;
|
|
9
|
+
/**
|
|
10
|
+
* The unique log id of the request.
|
|
11
|
+
*/
|
|
12
|
+
logId: string;
|
|
13
|
+
/**
|
|
14
|
+
* The timestamp of the request.
|
|
15
|
+
*/
|
|
16
|
+
eventTimestamp: number;
|
|
17
|
+
/**
|
|
18
|
+
* The apiKey used to make the request.
|
|
19
|
+
*/
|
|
20
|
+
apiKeyId: string;
|
|
21
|
+
/**
|
|
22
|
+
* The alias of the apiKey used to make the request.
|
|
23
|
+
*/
|
|
24
|
+
apiKeyAlias: string;
|
|
25
|
+
/**
|
|
26
|
+
* The region of the host for the request made by the client.
|
|
27
|
+
*/
|
|
28
|
+
hostRegion: string;
|
|
29
|
+
requestType: RequestType;
|
|
30
|
+
/**
|
|
31
|
+
* The path of the request made by the client.
|
|
32
|
+
*/
|
|
33
|
+
requestPath: string;
|
|
34
|
+
/**
|
|
35
|
+
* The number of API credits consumed by the request.
|
|
36
|
+
*/
|
|
37
|
+
apiCreditsConsumed: number;
|
|
38
|
+
/**
|
|
39
|
+
* The duration of the request in milliseconds.
|
|
40
|
+
*/
|
|
41
|
+
requestDurationMsecs: number;
|
|
42
|
+
/**
|
|
43
|
+
* The response code of the request.
|
|
44
|
+
*/
|
|
45
|
+
responseCode: number;
|
|
46
|
+
/**
|
|
47
|
+
* The chain id of the request.
|
|
48
|
+
*/
|
|
49
|
+
chainId?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The rpc method of the request.
|
|
52
|
+
*/
|
|
53
|
+
rpcMethod?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The metadata of the request.
|
|
56
|
+
*/
|
|
57
|
+
metadata: LogsFormatMetadata;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export { LogsFormat };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type LogsFormatMetadata = {
|
|
2
|
+
/**
|
|
3
|
+
* The IP address of the client that made the request.
|
|
4
|
+
*/
|
|
5
|
+
ipAddress: string;
|
|
6
|
+
/**
|
|
7
|
+
* The host for the request made by the client.
|
|
8
|
+
*/
|
|
9
|
+
host: string;
|
|
10
|
+
/**
|
|
11
|
+
* The user agent of the client that made the request.
|
|
12
|
+
*/
|
|
13
|
+
userAgent: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { LogsFormatMetadata };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LogsFormat } from './LogsFormat.js';
|
|
2
|
+
|
|
3
|
+
type LogsResponseDTO = {
|
|
4
|
+
/**
|
|
5
|
+
* 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
|
+
nextPageToken?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The organization id of the request.
|
|
10
|
+
*/
|
|
11
|
+
orgId: string;
|
|
12
|
+
/**
|
|
13
|
+
* An array of logs representing the requests made by clients.
|
|
14
|
+
*/
|
|
15
|
+
logs: Array<LogsFormat>;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { LogsResponseDTO };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UsageMetricsValueDTO } from './UsageMetricsValueDTO.js';
|
|
2
|
+
|
|
3
|
+
type Metric = {
|
|
4
|
+
/**
|
|
5
|
+
* The timestamp of the metrics value
|
|
6
|
+
*/
|
|
7
|
+
timestamp: number;
|
|
8
|
+
/**
|
|
9
|
+
* The metrics values for the timestamp
|
|
10
|
+
*/
|
|
11
|
+
values: Array<UsageMetricsValueDTO>;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { Metric };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var e=(e=>(e.MAINNET="mainnet",e.FUJI="fuji",e.TESTNET="testnet",e.DEVNET="devnet",e))(e||{});export{e as Network};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type NotFound = {
|
|
2
|
+
/**
|
|
3
|
+
* The error message describing the reason for the exception
|
|
4
|
+
*/
|
|
5
|
+
message: (string | Array<string>);
|
|
6
|
+
/**
|
|
7
|
+
* The HTTP status code of the response
|
|
8
|
+
*/
|
|
9
|
+
statusCode: number;
|
|
10
|
+
/**
|
|
11
|
+
* The type of error
|
|
12
|
+
*/
|
|
13
|
+
error: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { NotFound };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { AssetAmount } from './AssetAmount.js';
|
|
2
2
|
import { BlsCredentials } from './BlsCredentials.js';
|
|
3
|
+
import { L1ValidatorManagerDetails } from './L1ValidatorManagerDetails.js';
|
|
3
4
|
import { PChainTransactionType } from './PChainTransactionType.js';
|
|
4
5
|
import { PChainUtxo } from './PChainUtxo.js';
|
|
6
|
+
import { SoVDetailsTransaction } from './SoVDetailsTransaction.js';
|
|
5
7
|
import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
|
|
6
8
|
|
|
7
9
|
type PChainTransaction = {
|
|
@@ -38,6 +40,10 @@ type PChainTransaction = {
|
|
|
38
40
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
39
41
|
*/
|
|
40
42
|
amountStaked: Array<AssetAmount>;
|
|
43
|
+
/**
|
|
44
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
45
|
+
*/
|
|
46
|
+
amountSovBalanceBurned: Array<AssetAmount>;
|
|
41
47
|
/**
|
|
42
48
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
43
49
|
*/
|
|
@@ -58,6 +64,14 @@ type PChainTransaction = {
|
|
|
58
64
|
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
|
|
59
65
|
*/
|
|
60
66
|
subnetId?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetTx which transforms a subnet into L1
|
|
69
|
+
*/
|
|
70
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
71
|
+
/**
|
|
72
|
+
* Details of Subnet-only-Validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
|
|
73
|
+
*/
|
|
74
|
+
l1ValidatorDetails?: Array<SoVDetailsTransaction>;
|
|
61
75
|
/**
|
|
62
76
|
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
63
77
|
*/
|
|
@@ -14,6 +14,11 @@ declare enum PChainTransactionType {
|
|
|
14
14
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
15
15
|
BASE_TX = "BaseTx",
|
|
16
16
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
17
|
+
CONVERT_SUBNET_TX = "ConvertSubnetTx",
|
|
18
|
+
REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
|
|
19
|
+
SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
|
|
20
|
+
DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
|
|
21
|
+
INCREASE_BALANCE_TX = "IncreaseBalanceTx",
|
|
17
22
|
UNKNOWN = "UNKNOWN"
|
|
18
23
|
}
|
|
19
24
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var T=(T=>(T.ADD_VALIDATOR_TX="AddValidatorTx",T.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",T.ADD_DELEGATOR_TX="AddDelegatorTx",T.CREATE_CHAIN_TX="CreateChainTx",T.CREATE_SUBNET_TX="CreateSubnetTx",T.IMPORT_TX="ImportTx",T.EXPORT_TX="ExportTx",T.ADVANCE_TIME_TX="AdvanceTimeTx",T.REWARD_VALIDATOR_TX="RewardValidatorTx",T.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",T.TRANSFORM_SUBNET_TX="TransformSubnetTx",T.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",T.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",T.BASE_TX="BaseTx",T.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",T.UNKNOWN="UNKNOWN",T))(T||{});export{T as PChainTransactionType};
|
|
1
|
+
var T=(T=>(T.ADD_VALIDATOR_TX="AddValidatorTx",T.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",T.ADD_DELEGATOR_TX="AddDelegatorTx",T.CREATE_CHAIN_TX="CreateChainTx",T.CREATE_SUBNET_TX="CreateSubnetTx",T.IMPORT_TX="ImportTx",T.EXPORT_TX="ExportTx",T.ADVANCE_TIME_TX="AdvanceTimeTx",T.REWARD_VALIDATOR_TX="RewardValidatorTx",T.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",T.TRANSFORM_SUBNET_TX="TransformSubnetTx",T.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",T.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",T.BASE_TX="BaseTx",T.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",T.CONVERT_SUBNET_TX="ConvertSubnetTx",T.REGISTER_SUBNET_VALIDATOR_TX="RegisterSubnetValidatorTx",T.SET_SUBNET_VALIDATOR_WEIGHT_TX="SetSubnetValidatorWeightTx",T.DISABLE_SUBNET_VALIDATOR_TX="DisableSubnetValidatorTx",T.INCREASE_BALANCE_TX="IncreaseBalanceTx",T.UNKNOWN="UNKNOWN",T))(T||{});export{T as PChainTransactionType};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Network } from './Network.js';
|
|
2
2
|
import { PrimaryNetworkChainName } from './PrimaryNetworkChainName.js';
|
|
3
3
|
|
|
4
4
|
type PrimaryNetworkChainInfo = {
|
|
5
5
|
chainName: PrimaryNetworkChainName;
|
|
6
|
-
network:
|
|
6
|
+
network: Network;
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
export { PrimaryNetworkChainInfo };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
type PrimaryNetworkOptions = {
|
|
2
2
|
addresses?: Array<string>;
|
|
3
3
|
cChainEvmAddresses?: Array<string>;
|
|
4
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
4
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
export { PrimaryNetworkOptions };
|
|
@@ -14,6 +14,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
14
14
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
15
15
|
BASE_TX = "BaseTx",
|
|
16
16
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
17
|
+
CONVERT_SUBNET_TX = "ConvertSubnetTx",
|
|
18
|
+
REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
|
|
19
|
+
SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
|
|
20
|
+
DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
|
|
21
|
+
INCREASE_BALANCE_TX = "IncreaseBalanceTx",
|
|
17
22
|
UNKNOWN = "UNKNOWN",
|
|
18
23
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
19
24
|
OPERATION_TX = "OperationTx"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var T=(T=>(T.ADD_VALIDATOR_TX="AddValidatorTx",T.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",T.ADD_DELEGATOR_TX="AddDelegatorTx",T.CREATE_CHAIN_TX="CreateChainTx",T.CREATE_SUBNET_TX="CreateSubnetTx",T.IMPORT_TX="ImportTx",T.EXPORT_TX="ExportTx",T.ADVANCE_TIME_TX="AdvanceTimeTx",T.REWARD_VALIDATOR_TX="RewardValidatorTx",T.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",T.TRANSFORM_SUBNET_TX="TransformSubnetTx",T.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",T.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",T.BASE_TX="BaseTx",T.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",T.UNKNOWN="UNKNOWN",T.CREATE_ASSET_TX="CreateAssetTx",T.OPERATION_TX="OperationTx",T))(T||{});export{T as PrimaryNetworkTxType};
|
|
1
|
+
var T=(T=>(T.ADD_VALIDATOR_TX="AddValidatorTx",T.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",T.ADD_DELEGATOR_TX="AddDelegatorTx",T.CREATE_CHAIN_TX="CreateChainTx",T.CREATE_SUBNET_TX="CreateSubnetTx",T.IMPORT_TX="ImportTx",T.EXPORT_TX="ExportTx",T.ADVANCE_TIME_TX="AdvanceTimeTx",T.REWARD_VALIDATOR_TX="RewardValidatorTx",T.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",T.TRANSFORM_SUBNET_TX="TransformSubnetTx",T.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",T.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",T.BASE_TX="BaseTx",T.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",T.CONVERT_SUBNET_TX="ConvertSubnetTx",T.REGISTER_SUBNET_VALIDATOR_TX="RegisterSubnetValidatorTx",T.SET_SUBNET_VALIDATOR_WEIGHT_TX="SetSubnetValidatorWeightTx",T.DISABLE_SUBNET_VALIDATOR_TX="DisableSubnetValidatorTx",T.INCREASE_BALANCE_TX="IncreaseBalanceTx",T.UNKNOWN="UNKNOWN",T.CREATE_ASSET_TX="CreateAssetTx",T.OPERATION_TX="OperationTx",T))(T||{});export{T as PrimaryNetworkTxType};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=(a=>(a.DATA="data",a.RPC="rpc",a))(a||{});export{a as RequestType};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RpcUsageMetricsValueAggregated } from './RpcUsageMetricsValueAggregated.js';
|
|
2
|
+
|
|
3
|
+
type RpcMetrics = {
|
|
4
|
+
/**
|
|
5
|
+
* The timestamp of the metrics value
|
|
6
|
+
*/
|
|
7
|
+
timestamp: number;
|
|
8
|
+
/**
|
|
9
|
+
* The metrics values for the timestamp
|
|
10
|
+
*/
|
|
11
|
+
values: Array<RpcUsageMetricsValueAggregated>;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { RpcMetrics };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RpcMetrics } from './RpcMetrics.js';
|
|
2
|
+
|
|
3
|
+
type RpcUsageMetricsResponseDTO = {
|
|
4
|
+
/**
|
|
5
|
+
* Duration in which the metrics value is aggregated
|
|
6
|
+
*/
|
|
7
|
+
aggregateDuration: string;
|
|
8
|
+
/**
|
|
9
|
+
* ChainId for which the metrics are aggregated
|
|
10
|
+
*/
|
|
11
|
+
chainId: string;
|
|
12
|
+
/**
|
|
13
|
+
* Metrics values
|
|
14
|
+
*/
|
|
15
|
+
metrics: Array<RpcMetrics>;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { RpcUsageMetricsResponseDTO };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
type RpcUsageMetricsValueAggregated = {
|
|
2
|
+
/**
|
|
3
|
+
* The total number of requests
|
|
4
|
+
*/
|
|
5
|
+
totalRequests: number;
|
|
6
|
+
/**
|
|
7
|
+
* The number of API credits used
|
|
8
|
+
*/
|
|
9
|
+
apiCreditsUsed: number;
|
|
10
|
+
/**
|
|
11
|
+
* The number of requests per second
|
|
12
|
+
*/
|
|
13
|
+
requestsPerSecond: number;
|
|
14
|
+
/**
|
|
15
|
+
* The success rate percentage
|
|
16
|
+
*/
|
|
17
|
+
successRatePercent: number;
|
|
18
|
+
/**
|
|
19
|
+
* The median response time in milliseconds
|
|
20
|
+
*/
|
|
21
|
+
medianResponseTimeMsecs: number;
|
|
22
|
+
/**
|
|
23
|
+
* The number of invalid requests
|
|
24
|
+
*/
|
|
25
|
+
invalidRequests: number;
|
|
26
|
+
/**
|
|
27
|
+
* Column name used for data aggregation
|
|
28
|
+
*/
|
|
29
|
+
groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
|
|
30
|
+
/**
|
|
31
|
+
* The value of the column used for data aggregation
|
|
32
|
+
*/
|
|
33
|
+
groupValue?: (string | number);
|
|
34
|
+
};
|
|
35
|
+
declare namespace RpcUsageMetricsValueAggregated {
|
|
36
|
+
/**
|
|
37
|
+
* Column name used for data aggregation
|
|
38
|
+
*/
|
|
39
|
+
enum groupedBy {
|
|
40
|
+
RPC_METHOD = "rpcMethod",
|
|
41
|
+
RESPONSE_CODE = "responseCode",
|
|
42
|
+
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
43
|
+
NONE = "None"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export { RpcUsageMetricsValueAggregated };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e,o,r;o=e||(e={}),(r=o.groupedBy||(o.groupedBy={})).RPC_METHOD="rpcMethod",r.RESPONSE_CODE="responseCode",r.RL_BYPASS_TOKEN="rlBypassToken",r.NONE="None";export{e as RpcUsageMetricsValueAggregated};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type ServiceUnavailable = {
|
|
2
|
+
/**
|
|
3
|
+
* The error message describing the reason for the exception
|
|
4
|
+
*/
|
|
5
|
+
message: (string | Array<string>);
|
|
6
|
+
/**
|
|
7
|
+
* The HTTP status code of the response
|
|
8
|
+
*/
|
|
9
|
+
statusCode: number;
|
|
10
|
+
/**
|
|
11
|
+
* The type of error
|
|
12
|
+
*/
|
|
13
|
+
error: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { ServiceUnavailable };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type SignatureAggregatorRequest = {
|
|
2
|
+
/**
|
|
3
|
+
* Must be defined if justification is not defined
|
|
4
|
+
*/
|
|
5
|
+
message?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Must be defined if message is not defined
|
|
8
|
+
*/
|
|
9
|
+
justification?: string;
|
|
10
|
+
signingSubnetId?: string;
|
|
11
|
+
quorumPercentage?: number;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { SignatureAggregatorRequest };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type SoVDetailsTransaction = {
|
|
2
|
+
/**
|
|
3
|
+
* Unique SoV ID used network-wide to identify subnet-only validation until its weight is reduced to 0 i.e. removed.
|
|
4
|
+
*/
|
|
5
|
+
validationId: string;
|
|
6
|
+
nodeId: string;
|
|
7
|
+
subnetId: string;
|
|
8
|
+
/**
|
|
9
|
+
* Weight of the SoV used while sampling validators within the L1. A zero-weight SoV means it has been removed from the L1, and the validationID is no longer valid
|
|
10
|
+
*/
|
|
11
|
+
weight: number;
|
|
12
|
+
/**
|
|
13
|
+
* Remaining SoV balance in nAVAX until inactive. It can rejoin subnet sampling by increasing balance with IncreaseBalanceTx
|
|
14
|
+
*/
|
|
15
|
+
remainingBalance: number;
|
|
16
|
+
/**
|
|
17
|
+
* The increase in SoV balance in the current transaction. When the balance is returned after the SoV is disabled or removed, this value is negative
|
|
18
|
+
*/
|
|
19
|
+
balanceChange?: number;
|
|
20
|
+
blsCredentials?: Record<string, any>;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { SoVDetailsTransaction };
|