@avalabs/glacier-sdk 3.1.0-canary.f2a8d63.0 → 3.1.0-canary.f633405.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 +205 -97
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/core/CancelablePromise.js +1 -1
- package/esm/generated/core/OpenAPI.js +1 -1
- package/esm/generated/core/request.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/Blockchain.d.ts +4 -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 +10 -0
- package/esm/generated/models/EVMAddressActivityRequest.d.ts +2 -4
- package/esm/generated/models/EVMAddressActivityResponse.d.ts +2 -2
- 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/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/{PlatformBalanceThresholdFilter.d.ts → PrimaryNetworkBalanceThresholdFilter.d.ts} +2 -2
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/TeleporterMessageInfo.d.ts +2 -2
- package/esm/generated/models/Transaction.d.ts +2 -2
- 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 +16 -0
- package/esm/generated/services/AvaxSupplyService.js +1 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +2 -2
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/WebhooksService.d.ts +9 -7
- package/esm/index.d.ts +19 -8
- package/esm/index.js +1 -1
- package/package.json +2 -2
- 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
package/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,18 @@ declare abstract class BaseHttpRequest {
|
|
|
54
54
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
declare class AvaxSupplyService {
|
|
58
|
+
readonly httpRequest: BaseHttpRequest;
|
|
59
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
60
|
+
/**
|
|
61
|
+
* Get AVAX supply information
|
|
62
|
+
* Get AVAX supply information that includes total supply, circulating supply, total p burned, total c burned, total x burned, total staked, total locked, total rewards, and last updated.
|
|
63
|
+
* @returns void
|
|
64
|
+
* @throws ApiError
|
|
65
|
+
*/
|
|
66
|
+
getAvaxSupply(): CancelablePromise<void>;
|
|
67
|
+
}
|
|
68
|
+
|
|
57
69
|
type LogsFormatMetadata = {
|
|
58
70
|
/**
|
|
59
71
|
* The IP address of the client that made the request.
|
|
@@ -2084,11 +2096,11 @@ type TeleporterMessageInfo = {
|
|
|
2084
2096
|
/**
|
|
2085
2097
|
* chain id of the source chain. valid only for destination transactions
|
|
2086
2098
|
*/
|
|
2087
|
-
sourceChainId?:
|
|
2099
|
+
sourceChainId?: string;
|
|
2088
2100
|
/**
|
|
2089
2101
|
* chain id of the destination chain. valid only for source transactions
|
|
2090
2102
|
*/
|
|
2091
|
-
destinationChainId?:
|
|
2103
|
+
destinationChainId?: string;
|
|
2092
2104
|
};
|
|
2093
2105
|
|
|
2094
2106
|
type GetTransactionResponse = {
|
|
@@ -2221,33 +2233,31 @@ type ListErc721TransactionsResponse = {
|
|
|
2221
2233
|
|
|
2222
2234
|
type InternalTransaction = {
|
|
2223
2235
|
/**
|
|
2224
|
-
*
|
|
2236
|
+
* The block number on the chain.
|
|
2225
2237
|
*/
|
|
2226
|
-
|
|
2238
|
+
blockNumber: string;
|
|
2227
2239
|
/**
|
|
2228
|
-
*
|
|
2240
|
+
* The block finality timestamp.
|
|
2229
2241
|
*/
|
|
2230
|
-
|
|
2242
|
+
blockTimestamp: number;
|
|
2231
2243
|
/**
|
|
2232
|
-
*
|
|
2244
|
+
* The block hash identifier.
|
|
2233
2245
|
*/
|
|
2234
|
-
|
|
2246
|
+
blockHash: string;
|
|
2235
2247
|
/**
|
|
2236
|
-
*
|
|
2248
|
+
* The transaction hash identifier.
|
|
2237
2249
|
*/
|
|
2250
|
+
txHash: string;
|
|
2251
|
+
from: RichAddress;
|
|
2252
|
+
to: RichAddress;
|
|
2253
|
+
internalTxType: InternalTransactionOpCall;
|
|
2238
2254
|
value: string;
|
|
2239
2255
|
/**
|
|
2240
|
-
*
|
|
2256
|
+
* True if the internal transaction was reverted.
|
|
2241
2257
|
*/
|
|
2258
|
+
isReverted: boolean;
|
|
2242
2259
|
gasUsed: string;
|
|
2243
|
-
/**
|
|
2244
|
-
* Gas limit
|
|
2245
|
-
*/
|
|
2246
2260
|
gasLimit: string;
|
|
2247
|
-
/**
|
|
2248
|
-
* Transaction hash
|
|
2249
|
-
*/
|
|
2250
|
-
transactionHash: string;
|
|
2251
2261
|
};
|
|
2252
2262
|
|
|
2253
2263
|
type ListInternalTransactionsResponse = {
|
|
@@ -2844,7 +2854,7 @@ type ListIcmMessagesResponse = {
|
|
|
2844
2854
|
* 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.
|
|
2845
2855
|
*/
|
|
2846
2856
|
nextPageToken?: string;
|
|
2847
|
-
messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
|
|
2857
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2848
2858
|
};
|
|
2849
2859
|
|
|
2850
2860
|
declare class InterchainMessagingService {
|
|
@@ -3140,7 +3150,7 @@ declare enum PrimaryNetworkOperationType {
|
|
|
3140
3150
|
type PrimaryNetworkOptions = {
|
|
3141
3151
|
addresses?: Array<string>;
|
|
3142
3152
|
cChainEvmAddresses?: Array<string>;
|
|
3143
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '
|
|
3153
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
3144
3154
|
};
|
|
3145
3155
|
|
|
3146
3156
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
@@ -3239,16 +3249,18 @@ type Blockchain = {
|
|
|
3239
3249
|
* 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.
|
|
3240
3250
|
*/
|
|
3241
3251
|
evmChainId: number;
|
|
3252
|
+
/**
|
|
3253
|
+
* The genesis data of the blockchain.
|
|
3254
|
+
*/
|
|
3255
|
+
genesisData?: Record<string, any>;
|
|
3242
3256
|
};
|
|
3243
3257
|
|
|
3244
3258
|
declare enum BlockchainIds {
|
|
3245
3259
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3246
3260
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3247
3261
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3248
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3249
3262
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
3250
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
3251
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
|
|
3263
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
3252
3264
|
}
|
|
3253
3265
|
|
|
3254
3266
|
type ChainAddressChainIdMap = {
|
|
@@ -3438,6 +3450,10 @@ type ListL1ValidatorsResponse = {
|
|
|
3438
3450
|
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
3439
3451
|
*/
|
|
3440
3452
|
validators: Array<L1ValidatorDetailsFull>;
|
|
3453
|
+
/**
|
|
3454
|
+
* Block height at which the L1 validator's remaining balance is calculated
|
|
3455
|
+
*/
|
|
3456
|
+
blockHeight: string;
|
|
3441
3457
|
};
|
|
3442
3458
|
|
|
3443
3459
|
type L1ValidatorManagerDetails = {
|
|
@@ -3763,7 +3779,6 @@ type XChainAssetDetails = {
|
|
|
3763
3779
|
declare enum XChainId {
|
|
3764
3780
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3765
3781
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3766
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3767
3782
|
X_CHAIN = "x-chain"
|
|
3768
3783
|
}
|
|
3769
3784
|
|
|
@@ -3834,7 +3849,7 @@ declare class PrimaryNetworkService {
|
|
|
3834
3849
|
*/
|
|
3835
3850
|
pageToken?: string;
|
|
3836
3851
|
/**
|
|
3837
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
3852
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3838
3853
|
*/
|
|
3839
3854
|
pageSize?: number;
|
|
3840
3855
|
/**
|
|
@@ -3874,7 +3889,7 @@ declare class PrimaryNetworkService {
|
|
|
3874
3889
|
*/
|
|
3875
3890
|
pageToken?: string;
|
|
3876
3891
|
/**
|
|
3877
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
3892
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3878
3893
|
*/
|
|
3879
3894
|
pageSize?: number;
|
|
3880
3895
|
/**
|
|
@@ -4079,10 +4094,8 @@ declare enum BlockchainId {
|
|
|
4079
4094
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
4080
4095
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
4081
4096
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
4082
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
4083
4097
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
4084
4098
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
4085
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
4086
4099
|
P_CHAIN = "p-chain",
|
|
4087
4100
|
X_CHAIN = "x-chain",
|
|
4088
4101
|
C_CHAIN = "c-chain"
|
|
@@ -4840,6 +4853,15 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
4840
4853
|
chainInfo: PrimaryNetworkChainInfo;
|
|
4841
4854
|
};
|
|
4842
4855
|
|
|
4856
|
+
type BlockchainInfo = {
|
|
4857
|
+
chainName: string;
|
|
4858
|
+
vmId: string;
|
|
4859
|
+
/**
|
|
4860
|
+
* 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
|
|
4861
|
+
*/
|
|
4862
|
+
genesisData?: Record<string, any>;
|
|
4863
|
+
};
|
|
4864
|
+
|
|
4843
4865
|
type L1ValidatorDetailsTransaction = {
|
|
4844
4866
|
/**
|
|
4845
4867
|
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
@@ -5068,6 +5090,10 @@ type PChainTransaction = {
|
|
|
5068
5090
|
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
5069
5091
|
*/
|
|
5070
5092
|
blsCredentials?: BlsCredentials;
|
|
5093
|
+
/**
|
|
5094
|
+
* Details of the blockchain that was created in the CreateChainTx
|
|
5095
|
+
*/
|
|
5096
|
+
blockchainInfo?: BlockchainInfo;
|
|
5071
5097
|
};
|
|
5072
5098
|
|
|
5073
5099
|
type ListPChainTransactionsResponse = {
|
|
@@ -5760,7 +5786,7 @@ type ListTeleporterMessagesResponse = {
|
|
|
5760
5786
|
* 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.
|
|
5761
5787
|
*/
|
|
5762
5788
|
nextPageToken?: string;
|
|
5763
|
-
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
5789
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
5764
5790
|
};
|
|
5765
5791
|
|
|
5766
5792
|
declare class TeleporterService {
|
|
@@ -5858,28 +5884,23 @@ type AddressesChangeRequest = {
|
|
|
5858
5884
|
};
|
|
5859
5885
|
|
|
5860
5886
|
type AddressActivityMetadata = {
|
|
5861
|
-
/**
|
|
5862
|
-
* Ethereum address(es) for the address_activity event type
|
|
5863
|
-
*/
|
|
5864
|
-
addresses: Array<string>;
|
|
5865
5887
|
/**
|
|
5866
5888
|
* Array of hexadecimal strings of the event signatures.
|
|
5867
5889
|
*/
|
|
5868
5890
|
eventSignatures?: Array<string>;
|
|
5891
|
+
/**
|
|
5892
|
+
* 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.
|
|
5893
|
+
*/
|
|
5894
|
+
addresses: Array<string>;
|
|
5869
5895
|
};
|
|
5870
5896
|
|
|
5871
|
-
declare enum PrimaryNetworkType {
|
|
5872
|
-
MAINNET = "mainnet",
|
|
5873
|
-
FUJI = "fuji"
|
|
5874
|
-
}
|
|
5875
|
-
|
|
5876
5897
|
type EVMAddressActivityRequest = {
|
|
5877
5898
|
eventType: EVMAddressActivityRequest.eventType;
|
|
5878
5899
|
url: string;
|
|
5879
|
-
chainId: string;
|
|
5880
|
-
network?: PrimaryNetworkType;
|
|
5881
5900
|
name?: string;
|
|
5882
5901
|
description?: string;
|
|
5902
|
+
chainId: string;
|
|
5903
|
+
metadata: AddressActivityMetadata;
|
|
5883
5904
|
/**
|
|
5884
5905
|
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
5885
5906
|
*/
|
|
@@ -5888,7 +5909,6 @@ type EVMAddressActivityRequest = {
|
|
|
5888
5909
|
* Whether to include logs in the webhook payload.
|
|
5889
5910
|
*/
|
|
5890
5911
|
includeLogs?: boolean;
|
|
5891
|
-
metadata: AddressActivityMetadata;
|
|
5892
5912
|
};
|
|
5893
5913
|
declare namespace EVMAddressActivityRequest {
|
|
5894
5914
|
enum eventType {
|
|
@@ -5896,10 +5916,8 @@ declare namespace EVMAddressActivityRequest {
|
|
|
5896
5916
|
}
|
|
5897
5917
|
}
|
|
5898
5918
|
|
|
5899
|
-
declare enum
|
|
5900
|
-
ADDRESS_ACTIVITY = "address_activity"
|
|
5901
|
-
PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
|
|
5902
|
-
VALIDATOR_ACTIVITY = "validator_activity"
|
|
5919
|
+
declare enum AddressActivityEventType {
|
|
5920
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
5903
5921
|
}
|
|
5904
5922
|
|
|
5905
5923
|
declare enum WebhookStatusType {
|
|
@@ -5909,13 +5927,13 @@ declare enum WebhookStatusType {
|
|
|
5909
5927
|
|
|
5910
5928
|
type EVMAddressActivityResponse = {
|
|
5911
5929
|
id: string;
|
|
5912
|
-
eventType: EventType;
|
|
5913
5930
|
url: string;
|
|
5914
5931
|
chainId: string;
|
|
5915
5932
|
status: WebhookStatusType;
|
|
5916
5933
|
createdAt: number;
|
|
5917
5934
|
name: string;
|
|
5918
5935
|
description: string;
|
|
5936
|
+
eventType: AddressActivityEventType;
|
|
5919
5937
|
metadata: AddressActivityMetadata;
|
|
5920
5938
|
/**
|
|
5921
5939
|
* Whether to include traces in the webhook payload.
|
|
@@ -5936,30 +5954,28 @@ type ListWebhookAddressesResponse = {
|
|
|
5936
5954
|
totalAddresses: number;
|
|
5937
5955
|
};
|
|
5938
5956
|
|
|
5957
|
+
declare enum PrimaryNetworkAddressActivityEventType {
|
|
5958
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
5959
|
+
}
|
|
5960
|
+
|
|
5939
5961
|
/**
|
|
5940
|
-
* The type of key
|
|
5962
|
+
* The type of key to monitor for the address activity event type.
|
|
5941
5963
|
*/
|
|
5942
|
-
declare enum
|
|
5943
|
-
ADDRESSES = "addresses"
|
|
5944
|
-
NODE_ID = "nodeId",
|
|
5945
|
-
SUBNET_ID = "subnetId"
|
|
5964
|
+
declare enum PlatformAddressActivityKeyType {
|
|
5965
|
+
ADDRESSES = "addresses"
|
|
5946
5966
|
}
|
|
5947
5967
|
|
|
5948
5968
|
/**
|
|
5949
5969
|
* Array of address activity sub-event types
|
|
5950
5970
|
*/
|
|
5951
|
-
declare enum
|
|
5952
|
-
|
|
5953
|
-
|
|
5971
|
+
declare enum PrimaryNetworkAddressActivitySubEventType {
|
|
5972
|
+
BALANCE_CHANGE = "balance_change",
|
|
5973
|
+
BALANCE_THRESHOLD = "balance_threshold",
|
|
5954
5974
|
REWARD_DISTRIBUTION = "reward_distribution"
|
|
5955
5975
|
}
|
|
5956
5976
|
|
|
5957
|
-
type
|
|
5958
|
-
|
|
5959
|
-
* Array of validator activity sub-event types
|
|
5960
|
-
*/
|
|
5961
|
-
validatorActivitySubEvents?: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
5962
|
-
addressActivitySubEvents?: Array<PlatformAddressActivitySubEventType>;
|
|
5977
|
+
type PrimaryNetworkAddressActivitySubEvents = {
|
|
5978
|
+
addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
|
|
5963
5979
|
};
|
|
5964
5980
|
|
|
5965
5981
|
/**
|
|
@@ -5978,7 +5994,7 @@ declare enum CommonBalanceType {
|
|
|
5978
5994
|
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
5979
5995
|
}
|
|
5980
5996
|
|
|
5981
|
-
type
|
|
5997
|
+
type PrimaryNetworkBalanceThresholdFilter = {
|
|
5982
5998
|
balanceType: CommonBalanceType;
|
|
5983
5999
|
/**
|
|
5984
6000
|
* Threshold for balance corresponding to balanceType in nAVAX
|
|
@@ -5986,20 +6002,71 @@ type PlatformBalanceThresholdFilter = {
|
|
|
5986
6002
|
balanceThreshold: string;
|
|
5987
6003
|
};
|
|
5988
6004
|
|
|
5989
|
-
type
|
|
5990
|
-
keyType: PlatformActivityKeyType;
|
|
6005
|
+
type PrimaryNetworkAddressActivityMetadata = {
|
|
5991
6006
|
/**
|
|
5992
|
-
* Array of
|
|
6007
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6008
|
+
*/
|
|
6009
|
+
eventSignatures?: Array<string>;
|
|
6010
|
+
keyType: PlatformAddressActivityKeyType;
|
|
6011
|
+
/**
|
|
6012
|
+
* Array of keys like addresses corresponding to the keyType being monitored. For PrimaryNetworkAddressActivity event, an array of multiple addresses can be provided. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to.
|
|
5993
6013
|
*/
|
|
5994
6014
|
keys: Array<string>;
|
|
5995
6015
|
/**
|
|
5996
6016
|
* Sub-events to monitor
|
|
5997
6017
|
*/
|
|
5998
|
-
subEvents
|
|
6018
|
+
subEvents: PrimaryNetworkAddressActivitySubEvents;
|
|
6019
|
+
/**
|
|
6020
|
+
* Balance threshold filter
|
|
6021
|
+
*/
|
|
6022
|
+
balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
|
|
6023
|
+
};
|
|
6024
|
+
|
|
6025
|
+
type PrimaryNetworkAddressActivityResponse = {
|
|
6026
|
+
id: string;
|
|
6027
|
+
url: string;
|
|
6028
|
+
chainId: string;
|
|
6029
|
+
status: WebhookStatusType;
|
|
6030
|
+
createdAt: number;
|
|
6031
|
+
name: string;
|
|
6032
|
+
description: string;
|
|
6033
|
+
eventType: PrimaryNetworkAddressActivityEventType;
|
|
6034
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
6035
|
+
};
|
|
6036
|
+
|
|
6037
|
+
declare enum ValidatorActivityEventType {
|
|
6038
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6039
|
+
}
|
|
6040
|
+
|
|
6041
|
+
/**
|
|
6042
|
+
* The type of key to monitor for the validator activity event type.
|
|
6043
|
+
*/
|
|
6044
|
+
declare enum ValidatorActivityKeyType {
|
|
6045
|
+
NODE_ID = "nodeId",
|
|
6046
|
+
SUBNET_ID = "subnetId"
|
|
6047
|
+
}
|
|
6048
|
+
|
|
6049
|
+
type ValidatorActivitySubEvents = {
|
|
6050
|
+
/**
|
|
6051
|
+
* Array of validator activity sub-event types
|
|
6052
|
+
*/
|
|
6053
|
+
validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
6054
|
+
};
|
|
6055
|
+
|
|
6056
|
+
type ValidatorActivityMetadata = {
|
|
5999
6057
|
/**
|
|
6000
6058
|
* Array of hexadecimal strings of the event signatures.
|
|
6001
6059
|
*/
|
|
6002
6060
|
eventSignatures?: Array<string>;
|
|
6061
|
+
keyType: ValidatorActivityKeyType;
|
|
6062
|
+
/**
|
|
6063
|
+
* Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
|
|
6064
|
+
*/
|
|
6065
|
+
keys: Array<string>;
|
|
6066
|
+
/**
|
|
6067
|
+
* Sub-events to monitor
|
|
6068
|
+
*/
|
|
6069
|
+
subEvents: ValidatorActivitySubEvents;
|
|
6003
6070
|
/**
|
|
6004
6071
|
* Array of node IDs to filter the events
|
|
6005
6072
|
*/
|
|
@@ -6008,26 +6075,22 @@ type PlatformActivityMetadata = {
|
|
|
6008
6075
|
* Array of subnet IDs to filter the events
|
|
6009
6076
|
*/
|
|
6010
6077
|
subnetIds?: Array<string>;
|
|
6011
|
-
/**
|
|
6012
|
-
* Balance threshold filter
|
|
6013
|
-
*/
|
|
6014
|
-
balanceThresholdFilter?: PlatformBalanceThresholdFilter;
|
|
6015
6078
|
/**
|
|
6016
6079
|
* L1 validator fee balance threshold in nAVAX
|
|
6017
6080
|
*/
|
|
6018
6081
|
l1ValidatorFeeBalanceThreshold?: string;
|
|
6019
6082
|
};
|
|
6020
6083
|
|
|
6021
|
-
type
|
|
6084
|
+
type ValidatorActivityResponse = {
|
|
6022
6085
|
id: string;
|
|
6023
|
-
eventType: EventType;
|
|
6024
6086
|
url: string;
|
|
6025
6087
|
chainId: string;
|
|
6026
6088
|
status: WebhookStatusType;
|
|
6027
6089
|
createdAt: number;
|
|
6028
6090
|
name: string;
|
|
6029
6091
|
description: string;
|
|
6030
|
-
|
|
6092
|
+
eventType: ValidatorActivityEventType;
|
|
6093
|
+
metadata: ValidatorActivityMetadata;
|
|
6031
6094
|
};
|
|
6032
6095
|
|
|
6033
6096
|
type ListWebhooksResponse = {
|
|
@@ -6035,33 +6098,29 @@ type ListWebhooksResponse = {
|
|
|
6035
6098
|
* 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.
|
|
6036
6099
|
*/
|
|
6037
6100
|
nextPageToken?: string;
|
|
6038
|
-
webhooks: Array<(EVMAddressActivityResponse |
|
|
6101
|
+
webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
6039
6102
|
};
|
|
6040
6103
|
|
|
6041
|
-
|
|
6042
|
-
|
|
6104
|
+
declare enum PrimaryNetworkType {
|
|
6105
|
+
MAINNET = "mainnet",
|
|
6106
|
+
FUJI = "fuji"
|
|
6107
|
+
}
|
|
6108
|
+
|
|
6109
|
+
type PrimaryNetworkAddressActivityRequest = {
|
|
6110
|
+
eventType: PrimaryNetworkAddressActivityRequest.eventType;
|
|
6043
6111
|
url: string;
|
|
6044
|
-
chainId: string;
|
|
6045
|
-
network?: PrimaryNetworkType;
|
|
6046
6112
|
name?: string;
|
|
6047
6113
|
description?: string;
|
|
6114
|
+
network: PrimaryNetworkType;
|
|
6115
|
+
chainId: string;
|
|
6048
6116
|
/**
|
|
6049
|
-
*
|
|
6050
|
-
*/
|
|
6051
|
-
includeInternalTxs?: boolean;
|
|
6052
|
-
/**
|
|
6053
|
-
* Whether to include logs in the webhook payload.
|
|
6054
|
-
*/
|
|
6055
|
-
includeLogs?: boolean;
|
|
6056
|
-
/**
|
|
6057
|
-
* Metadata for platform activity
|
|
6117
|
+
* Metadata for platform address activity event
|
|
6058
6118
|
*/
|
|
6059
|
-
metadata:
|
|
6119
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
6060
6120
|
};
|
|
6061
|
-
declare namespace
|
|
6121
|
+
declare namespace PrimaryNetworkAddressActivityRequest {
|
|
6062
6122
|
enum eventType {
|
|
6063
|
-
|
|
6064
|
-
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6123
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6065
6124
|
}
|
|
6066
6125
|
}
|
|
6067
6126
|
|
|
@@ -6081,6 +6140,23 @@ type UpdateWebhookRequest = {
|
|
|
6081
6140
|
includeLogs?: boolean;
|
|
6082
6141
|
};
|
|
6083
6142
|
|
|
6143
|
+
type ValidatorActivityRequest = {
|
|
6144
|
+
eventType: ValidatorActivityRequest.eventType;
|
|
6145
|
+
url: string;
|
|
6146
|
+
name?: string;
|
|
6147
|
+
description?: string;
|
|
6148
|
+
network: PrimaryNetworkType;
|
|
6149
|
+
/**
|
|
6150
|
+
* Metadata for platform validator activity event
|
|
6151
|
+
*/
|
|
6152
|
+
metadata: ValidatorActivityMetadata;
|
|
6153
|
+
};
|
|
6154
|
+
declare namespace ValidatorActivityRequest {
|
|
6155
|
+
enum eventType {
|
|
6156
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6157
|
+
}
|
|
6158
|
+
}
|
|
6159
|
+
|
|
6084
6160
|
declare enum WebhookStatus {
|
|
6085
6161
|
ACTIVE = "active",
|
|
6086
6162
|
INACTIVE = "inactive"
|
|
@@ -6096,8 +6172,8 @@ declare class WebhooksService {
|
|
|
6096
6172
|
* @throws ApiError
|
|
6097
6173
|
*/
|
|
6098
6174
|
createWebhook({ requestBody, }: {
|
|
6099
|
-
requestBody: (EVMAddressActivityRequest |
|
|
6100
|
-
}): CancelablePromise<(EVMAddressActivityResponse |
|
|
6175
|
+
requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
|
|
6176
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
6101
6177
|
/**
|
|
6102
6178
|
* List webhooks
|
|
6103
6179
|
* Lists webhooks for the user.
|
|
@@ -6129,7 +6205,7 @@ declare class WebhooksService {
|
|
|
6129
6205
|
* The webhook identifier.
|
|
6130
6206
|
*/
|
|
6131
6207
|
id: string;
|
|
6132
|
-
}): CancelablePromise<(EVMAddressActivityResponse |
|
|
6208
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
6133
6209
|
/**
|
|
6134
6210
|
* Deactivate a webhook
|
|
6135
6211
|
* Deactivates a webhook by ID.
|
|
@@ -6141,7 +6217,7 @@ declare class WebhooksService {
|
|
|
6141
6217
|
* The webhook identifier.
|
|
6142
6218
|
*/
|
|
6143
6219
|
id: string;
|
|
6144
|
-
}): CancelablePromise<(EVMAddressActivityResponse |
|
|
6220
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
6145
6221
|
/**
|
|
6146
6222
|
* Update a webhook
|
|
6147
6223
|
* Updates an existing webhook.
|
|
@@ -6154,7 +6230,7 @@ declare class WebhooksService {
|
|
|
6154
6230
|
*/
|
|
6155
6231
|
id: string;
|
|
6156
6232
|
requestBody: UpdateWebhookRequest;
|
|
6157
|
-
}): CancelablePromise<(EVMAddressActivityResponse |
|
|
6233
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
6158
6234
|
/**
|
|
6159
6235
|
* Generate or rotate a shared secret
|
|
6160
6236
|
* Generates a new shared secret or rotate an existing one.
|
|
@@ -6219,6 +6295,7 @@ declare class WebhooksService {
|
|
|
6219
6295
|
|
|
6220
6296
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
6221
6297
|
declare class Glacier {
|
|
6298
|
+
readonly avaxSupply: AvaxSupplyService;
|
|
6222
6299
|
readonly dataApiUsageMetrics: DataApiUsageMetricsService;
|
|
6223
6300
|
readonly default: DefaultService;
|
|
6224
6301
|
readonly evmBalances: EvmBalancesService;
|
|
@@ -6517,6 +6594,37 @@ type TooManyRequests = {
|
|
|
6517
6594
|
error: string;
|
|
6518
6595
|
};
|
|
6519
6596
|
|
|
6597
|
+
type WebhookInternalTransaction = {
|
|
6598
|
+
/**
|
|
6599
|
+
* Sender address
|
|
6600
|
+
*/
|
|
6601
|
+
from: string;
|
|
6602
|
+
/**
|
|
6603
|
+
* Recipient address
|
|
6604
|
+
*/
|
|
6605
|
+
to: string;
|
|
6606
|
+
/**
|
|
6607
|
+
* Internal transaction type
|
|
6608
|
+
*/
|
|
6609
|
+
internalTxType: string;
|
|
6610
|
+
/**
|
|
6611
|
+
* Value transferred
|
|
6612
|
+
*/
|
|
6613
|
+
value: string;
|
|
6614
|
+
/**
|
|
6615
|
+
* Gas used
|
|
6616
|
+
*/
|
|
6617
|
+
gasUsed: string;
|
|
6618
|
+
/**
|
|
6619
|
+
* Gas limit
|
|
6620
|
+
*/
|
|
6621
|
+
gasLimit: string;
|
|
6622
|
+
/**
|
|
6623
|
+
* Transaction hash
|
|
6624
|
+
*/
|
|
6625
|
+
transactionHash: string;
|
|
6626
|
+
};
|
|
6627
|
+
|
|
6520
6628
|
type Transaction = {
|
|
6521
6629
|
/**
|
|
6522
6630
|
* Block hash of the transaction
|
|
@@ -6621,7 +6729,7 @@ type Transaction = {
|
|
|
6621
6729
|
/**
|
|
6622
6730
|
* Internal transactions (optional)
|
|
6623
6731
|
*/
|
|
6624
|
-
internalTransactions?: Array<
|
|
6732
|
+
internalTransactions?: Array<WebhookInternalTransaction>;
|
|
6625
6733
|
/**
|
|
6626
6734
|
* Access list (optional)
|
|
6627
6735
|
*/
|
|
@@ -6696,5 +6804,5 @@ declare class FetchHttpRequest extends BaseHttpRequest {
|
|
|
6696
6804
|
request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
6697
6805
|
}
|
|
6698
6806
|
|
|
6699
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, ApiFeature, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc721Contract, Erc721Token, Erc721TokenBalance,
|
|
6700
|
-
export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, Blockchain, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward,
|
|
6807
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityEventType, ApiError, ApiFeature, AvaxSupplyService, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc721Contract, Erc721Token, Erc721TokenBalance, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, FetchHttpRequest, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformAddressActivityKeyType, PrimaryNetworkAddressActivityEventType, PrimaryNetworkAddressActivityRequest, PrimaryNetworkAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, ValidationStatusType, ValidatorActivityEventType, ValidatorActivityKeyType, ValidatorActivityRequest, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
|
|
6808
|
+
export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PricingProviders, PrimaryNetworkAddressActivityMetadata, PrimaryNetworkAddressActivityResponse, PrimaryNetworkAddressActivitySubEvents, PrimaryNetworkBalanceThresholdFilter, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorActivityMetadata, ValidatorActivityResponse, ValidatorActivitySubEvents, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };
|
|
@@ -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://glacier-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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
class e extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}}class s{#e;#s;#t;#i;#l;#r;#c;constructor(e){this.#e=!1,this.#s=!1,this.#t=!1,this.#i=[],this.#l=new Promise((
|
|
1
|
+
class e extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}}class s{#e;#s;#t;#i;#l;#r;#c;constructor(e){this.#e=!1,this.#s=!1,this.#t=!1,this.#i=[],this.#l=new Promise((s,t)=>{this.#r=s,this.#c=t;const i=e=>{this.#e||this.#s||this.#t||this.#i.push(e)};return Object.defineProperty(i,"isResolved",{get:()=>this.#e}),Object.defineProperty(i,"isRejected",{get:()=>this.#s}),Object.defineProperty(i,"isCancelled",{get:()=>this.#t}),e(e=>{this.#e||this.#s||this.#t||(this.#e=!0,this.#r?.(e))},e=>{this.#e||this.#s||this.#t||(this.#s=!0,this.#c?.(e))},i)})}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,s){return this.#l.then(e,s)}catch(e){return this.#l.catch(e)}finally(e){return this.#l.finally(e)}cancel(){if(!(this.#e||this.#s||this.#t)){if(this.#t=!0,this.#i.length)try{for(const e of this.#i)e()}catch(e){return void console.warn("Cancellation threw an error",e)}this.#i.length=0,this.#c?.(new e("Request aborted"))}}get isCancelled(){return this.#t}}export{e as CancelError,s as CancelablePromise};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const E={BASE:"https://glacier-api-dev.avax.network",VERSION:"
|
|
1
|
+
const E={BASE:"https://glacier-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};
|