@avalabs/glacier-sdk 3.1.0-canary.1b5ca8d.0 → 3.1.0-canary.1ceff7e.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 +203 -97
- 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/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/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 +4 -4
- 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
|
@@ -2084,11 +2084,11 @@ type TeleporterMessageInfo = {
|
|
|
2084
2084
|
/**
|
|
2085
2085
|
* chain id of the source chain. valid only for destination transactions
|
|
2086
2086
|
*/
|
|
2087
|
-
sourceChainId?:
|
|
2087
|
+
sourceChainId?: string;
|
|
2088
2088
|
/**
|
|
2089
2089
|
* chain id of the destination chain. valid only for source transactions
|
|
2090
2090
|
*/
|
|
2091
|
-
destinationChainId?:
|
|
2091
|
+
destinationChainId?: string;
|
|
2092
2092
|
};
|
|
2093
2093
|
|
|
2094
2094
|
type GetTransactionResponse = {
|
|
@@ -2221,33 +2221,31 @@ type ListErc721TransactionsResponse = {
|
|
|
2221
2221
|
|
|
2222
2222
|
type InternalTransaction = {
|
|
2223
2223
|
/**
|
|
2224
|
-
*
|
|
2224
|
+
* The block number on the chain.
|
|
2225
2225
|
*/
|
|
2226
|
-
|
|
2226
|
+
blockNumber: string;
|
|
2227
2227
|
/**
|
|
2228
|
-
*
|
|
2228
|
+
* The block finality timestamp.
|
|
2229
2229
|
*/
|
|
2230
|
-
|
|
2230
|
+
blockTimestamp: number;
|
|
2231
2231
|
/**
|
|
2232
|
-
*
|
|
2232
|
+
* The block hash identifier.
|
|
2233
2233
|
*/
|
|
2234
|
-
|
|
2234
|
+
blockHash: string;
|
|
2235
2235
|
/**
|
|
2236
|
-
*
|
|
2236
|
+
* The transaction hash identifier.
|
|
2237
2237
|
*/
|
|
2238
|
+
txHash: string;
|
|
2239
|
+
from: RichAddress;
|
|
2240
|
+
to: RichAddress;
|
|
2241
|
+
internalTxType: InternalTransactionOpCall;
|
|
2238
2242
|
value: string;
|
|
2239
2243
|
/**
|
|
2240
|
-
*
|
|
2244
|
+
* True if the internal transaction was reverted.
|
|
2241
2245
|
*/
|
|
2246
|
+
isReverted: boolean;
|
|
2242
2247
|
gasUsed: string;
|
|
2243
|
-
/**
|
|
2244
|
-
* Gas limit
|
|
2245
|
-
*/
|
|
2246
2248
|
gasLimit: string;
|
|
2247
|
-
/**
|
|
2248
|
-
* Transaction hash
|
|
2249
|
-
*/
|
|
2250
|
-
transactionHash: string;
|
|
2251
2249
|
};
|
|
2252
2250
|
|
|
2253
2251
|
type ListInternalTransactionsResponse = {
|
|
@@ -2844,7 +2842,7 @@ type ListIcmMessagesResponse = {
|
|
|
2844
2842
|
* 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
2843
|
*/
|
|
2846
2844
|
nextPageToken?: string;
|
|
2847
|
-
messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
|
|
2845
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2848
2846
|
};
|
|
2849
2847
|
|
|
2850
2848
|
declare class InterchainMessagingService {
|
|
@@ -3140,7 +3138,7 @@ declare enum PrimaryNetworkOperationType {
|
|
|
3140
3138
|
type PrimaryNetworkOptions = {
|
|
3141
3139
|
addresses?: Array<string>;
|
|
3142
3140
|
cChainEvmAddresses?: Array<string>;
|
|
3143
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '
|
|
3141
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
3144
3142
|
};
|
|
3145
3143
|
|
|
3146
3144
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
@@ -3239,16 +3237,18 @@ type Blockchain = {
|
|
|
3239
3237
|
* 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
3238
|
*/
|
|
3241
3239
|
evmChainId: number;
|
|
3240
|
+
/**
|
|
3241
|
+
* The genesis data of the blockchain.
|
|
3242
|
+
*/
|
|
3243
|
+
genesisData?: Record<string, any>;
|
|
3242
3244
|
};
|
|
3243
3245
|
|
|
3244
3246
|
declare enum BlockchainIds {
|
|
3245
3247
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3246
3248
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3247
3249
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3248
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3249
3250
|
_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"
|
|
3251
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
3252
3252
|
}
|
|
3253
3253
|
|
|
3254
3254
|
type ChainAddressChainIdMap = {
|
|
@@ -3438,6 +3438,10 @@ type ListL1ValidatorsResponse = {
|
|
|
3438
3438
|
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
3439
3439
|
*/
|
|
3440
3440
|
validators: Array<L1ValidatorDetailsFull>;
|
|
3441
|
+
/**
|
|
3442
|
+
* Block height at which the L1 validator's remaining balance is calculated
|
|
3443
|
+
*/
|
|
3444
|
+
blockHeight: string;
|
|
3441
3445
|
};
|
|
3442
3446
|
|
|
3443
3447
|
type L1ValidatorManagerDetails = {
|
|
@@ -3763,7 +3767,6 @@ type XChainAssetDetails = {
|
|
|
3763
3767
|
declare enum XChainId {
|
|
3764
3768
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3765
3769
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3766
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3767
3770
|
X_CHAIN = "x-chain"
|
|
3768
3771
|
}
|
|
3769
3772
|
|
|
@@ -3834,7 +3837,7 @@ declare class PrimaryNetworkService {
|
|
|
3834
3837
|
*/
|
|
3835
3838
|
pageToken?: string;
|
|
3836
3839
|
/**
|
|
3837
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
3840
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3838
3841
|
*/
|
|
3839
3842
|
pageSize?: number;
|
|
3840
3843
|
/**
|
|
@@ -3874,7 +3877,7 @@ declare class PrimaryNetworkService {
|
|
|
3874
3877
|
*/
|
|
3875
3878
|
pageToken?: string;
|
|
3876
3879
|
/**
|
|
3877
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
3880
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3878
3881
|
*/
|
|
3879
3882
|
pageSize?: number;
|
|
3880
3883
|
/**
|
|
@@ -4079,10 +4082,8 @@ declare enum BlockchainId {
|
|
|
4079
4082
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
4080
4083
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
4081
4084
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
4082
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
4083
4085
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
4084
4086
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
4085
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
4086
4087
|
P_CHAIN = "p-chain",
|
|
4087
4088
|
X_CHAIN = "x-chain",
|
|
4088
4089
|
C_CHAIN = "c-chain"
|
|
@@ -4840,6 +4841,15 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
4840
4841
|
chainInfo: PrimaryNetworkChainInfo;
|
|
4841
4842
|
};
|
|
4842
4843
|
|
|
4844
|
+
type BlockchainInfo = {
|
|
4845
|
+
chainName: string;
|
|
4846
|
+
vmId: string;
|
|
4847
|
+
/**
|
|
4848
|
+
* 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
|
|
4849
|
+
*/
|
|
4850
|
+
genesisData?: Record<string, any>;
|
|
4851
|
+
};
|
|
4852
|
+
|
|
4843
4853
|
type L1ValidatorDetailsTransaction = {
|
|
4844
4854
|
/**
|
|
4845
4855
|
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
@@ -5068,6 +5078,10 @@ type PChainTransaction = {
|
|
|
5068
5078
|
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
5069
5079
|
*/
|
|
5070
5080
|
blsCredentials?: BlsCredentials;
|
|
5081
|
+
/**
|
|
5082
|
+
* Details of the blockchain that was created in the CreateChainTx
|
|
5083
|
+
*/
|
|
5084
|
+
blockchainInfo?: BlockchainInfo;
|
|
5071
5085
|
};
|
|
5072
5086
|
|
|
5073
5087
|
type ListPChainTransactionsResponse = {
|
|
@@ -5760,7 +5774,7 @@ type ListTeleporterMessagesResponse = {
|
|
|
5760
5774
|
* 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
5775
|
*/
|
|
5762
5776
|
nextPageToken?: string;
|
|
5763
|
-
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
5777
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
5764
5778
|
};
|
|
5765
5779
|
|
|
5766
5780
|
declare class TeleporterService {
|
|
@@ -5858,28 +5872,23 @@ type AddressesChangeRequest = {
|
|
|
5858
5872
|
};
|
|
5859
5873
|
|
|
5860
5874
|
type AddressActivityMetadata = {
|
|
5861
|
-
/**
|
|
5862
|
-
* Ethereum address(es) for the address_activity event type
|
|
5863
|
-
*/
|
|
5864
|
-
addresses: Array<string>;
|
|
5865
5875
|
/**
|
|
5866
5876
|
* Array of hexadecimal strings of the event signatures.
|
|
5867
5877
|
*/
|
|
5868
5878
|
eventSignatures?: Array<string>;
|
|
5879
|
+
/**
|
|
5880
|
+
* 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.
|
|
5881
|
+
*/
|
|
5882
|
+
addresses: Array<string>;
|
|
5869
5883
|
};
|
|
5870
5884
|
|
|
5871
|
-
declare enum PrimaryNetworkType {
|
|
5872
|
-
MAINNET = "mainnet",
|
|
5873
|
-
FUJI = "fuji"
|
|
5874
|
-
}
|
|
5875
|
-
|
|
5876
5885
|
type EVMAddressActivityRequest = {
|
|
5877
5886
|
eventType: EVMAddressActivityRequest.eventType;
|
|
5878
5887
|
url: string;
|
|
5879
|
-
chainId: string;
|
|
5880
|
-
network?: PrimaryNetworkType;
|
|
5881
5888
|
name?: string;
|
|
5882
5889
|
description?: string;
|
|
5890
|
+
chainId: string;
|
|
5891
|
+
metadata: AddressActivityMetadata;
|
|
5883
5892
|
/**
|
|
5884
5893
|
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
5885
5894
|
*/
|
|
@@ -5888,7 +5897,6 @@ type EVMAddressActivityRequest = {
|
|
|
5888
5897
|
* Whether to include logs in the webhook payload.
|
|
5889
5898
|
*/
|
|
5890
5899
|
includeLogs?: boolean;
|
|
5891
|
-
metadata: AddressActivityMetadata;
|
|
5892
5900
|
};
|
|
5893
5901
|
declare namespace EVMAddressActivityRequest {
|
|
5894
5902
|
enum eventType {
|
|
@@ -5896,10 +5904,8 @@ declare namespace EVMAddressActivityRequest {
|
|
|
5896
5904
|
}
|
|
5897
5905
|
}
|
|
5898
5906
|
|
|
5899
|
-
declare enum
|
|
5900
|
-
ADDRESS_ACTIVITY = "address_activity"
|
|
5901
|
-
PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
|
|
5902
|
-
VALIDATOR_ACTIVITY = "validator_activity"
|
|
5907
|
+
declare enum AddressActivityEventType {
|
|
5908
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
5903
5909
|
}
|
|
5904
5910
|
|
|
5905
5911
|
declare enum WebhookStatusType {
|
|
@@ -5909,13 +5915,13 @@ declare enum WebhookStatusType {
|
|
|
5909
5915
|
|
|
5910
5916
|
type EVMAddressActivityResponse = {
|
|
5911
5917
|
id: string;
|
|
5912
|
-
eventType: EventType;
|
|
5913
5918
|
url: string;
|
|
5914
5919
|
chainId: string;
|
|
5915
5920
|
status: WebhookStatusType;
|
|
5916
5921
|
createdAt: number;
|
|
5917
5922
|
name: string;
|
|
5918
5923
|
description: string;
|
|
5924
|
+
eventType: AddressActivityEventType;
|
|
5919
5925
|
metadata: AddressActivityMetadata;
|
|
5920
5926
|
/**
|
|
5921
5927
|
* Whether to include traces in the webhook payload.
|
|
@@ -5936,30 +5942,28 @@ type ListWebhookAddressesResponse = {
|
|
|
5936
5942
|
totalAddresses: number;
|
|
5937
5943
|
};
|
|
5938
5944
|
|
|
5945
|
+
declare enum PrimaryNetworkAddressActivityEventType {
|
|
5946
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
5947
|
+
}
|
|
5948
|
+
|
|
5939
5949
|
/**
|
|
5940
|
-
* The type of key
|
|
5950
|
+
* The type of key to monitor for the address activity event type.
|
|
5941
5951
|
*/
|
|
5942
|
-
declare enum
|
|
5943
|
-
ADDRESSES = "addresses"
|
|
5944
|
-
NODE_ID = "nodeId",
|
|
5945
|
-
SUBNET_ID = "subnetId"
|
|
5952
|
+
declare enum PlatformAddressActivityKeyType {
|
|
5953
|
+
ADDRESSES = "addresses"
|
|
5946
5954
|
}
|
|
5947
5955
|
|
|
5948
5956
|
/**
|
|
5949
5957
|
* Array of address activity sub-event types
|
|
5950
5958
|
*/
|
|
5951
|
-
declare enum
|
|
5952
|
-
|
|
5953
|
-
|
|
5959
|
+
declare enum PrimaryNetworkAddressActivitySubEventType {
|
|
5960
|
+
BALANCE_CHANGE = "balance_change",
|
|
5961
|
+
BALANCE_THRESHOLD = "balance_threshold",
|
|
5954
5962
|
REWARD_DISTRIBUTION = "reward_distribution"
|
|
5955
5963
|
}
|
|
5956
5964
|
|
|
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>;
|
|
5965
|
+
type PrimaryNetworkAddressActivitySubEvents = {
|
|
5966
|
+
addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
|
|
5963
5967
|
};
|
|
5964
5968
|
|
|
5965
5969
|
/**
|
|
@@ -5978,7 +5982,7 @@ declare enum CommonBalanceType {
|
|
|
5978
5982
|
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
5979
5983
|
}
|
|
5980
5984
|
|
|
5981
|
-
type
|
|
5985
|
+
type PrimaryNetworkBalanceThresholdFilter = {
|
|
5982
5986
|
balanceType: CommonBalanceType;
|
|
5983
5987
|
/**
|
|
5984
5988
|
* Threshold for balance corresponding to balanceType in nAVAX
|
|
@@ -5986,20 +5990,71 @@ type PlatformBalanceThresholdFilter = {
|
|
|
5986
5990
|
balanceThreshold: string;
|
|
5987
5991
|
};
|
|
5988
5992
|
|
|
5989
|
-
type
|
|
5990
|
-
|
|
5993
|
+
type PrimaryNetworkAddressActivityMetadata = {
|
|
5994
|
+
/**
|
|
5995
|
+
* Array of hexadecimal strings of the event signatures.
|
|
5996
|
+
*/
|
|
5997
|
+
eventSignatures?: Array<string>;
|
|
5998
|
+
keyType: PlatformAddressActivityKeyType;
|
|
5991
5999
|
/**
|
|
5992
|
-
* Array of keys like addresses
|
|
6000
|
+
* 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
6001
|
*/
|
|
5994
6002
|
keys: Array<string>;
|
|
5995
6003
|
/**
|
|
5996
6004
|
* Sub-events to monitor
|
|
5997
6005
|
*/
|
|
5998
|
-
subEvents
|
|
6006
|
+
subEvents: PrimaryNetworkAddressActivitySubEvents;
|
|
6007
|
+
/**
|
|
6008
|
+
* Balance threshold filter
|
|
6009
|
+
*/
|
|
6010
|
+
balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
|
|
6011
|
+
};
|
|
6012
|
+
|
|
6013
|
+
type PrimaryNetworkAddressActivityResponse = {
|
|
6014
|
+
id: string;
|
|
6015
|
+
url: string;
|
|
6016
|
+
chainId: string;
|
|
6017
|
+
status: WebhookStatusType;
|
|
6018
|
+
createdAt: number;
|
|
6019
|
+
name: string;
|
|
6020
|
+
description: string;
|
|
6021
|
+
eventType: PrimaryNetworkAddressActivityEventType;
|
|
6022
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
6023
|
+
};
|
|
6024
|
+
|
|
6025
|
+
declare enum ValidatorActivityEventType {
|
|
6026
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6027
|
+
}
|
|
6028
|
+
|
|
6029
|
+
/**
|
|
6030
|
+
* The type of key to monitor for the validator activity event type.
|
|
6031
|
+
*/
|
|
6032
|
+
declare enum ValidatorActivityKeyType {
|
|
6033
|
+
NODE_ID = "nodeId",
|
|
6034
|
+
SUBNET_ID = "subnetId"
|
|
6035
|
+
}
|
|
6036
|
+
|
|
6037
|
+
type ValidatorActivitySubEvents = {
|
|
6038
|
+
/**
|
|
6039
|
+
* Array of validator activity sub-event types
|
|
6040
|
+
*/
|
|
6041
|
+
validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
6042
|
+
};
|
|
6043
|
+
|
|
6044
|
+
type ValidatorActivityMetadata = {
|
|
5999
6045
|
/**
|
|
6000
6046
|
* Array of hexadecimal strings of the event signatures.
|
|
6001
6047
|
*/
|
|
6002
6048
|
eventSignatures?: Array<string>;
|
|
6049
|
+
keyType: ValidatorActivityKeyType;
|
|
6050
|
+
/**
|
|
6051
|
+
* Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
|
|
6052
|
+
*/
|
|
6053
|
+
keys: Array<string>;
|
|
6054
|
+
/**
|
|
6055
|
+
* Sub-events to monitor
|
|
6056
|
+
*/
|
|
6057
|
+
subEvents: ValidatorActivitySubEvents;
|
|
6003
6058
|
/**
|
|
6004
6059
|
* Array of node IDs to filter the events
|
|
6005
6060
|
*/
|
|
@@ -6008,26 +6063,22 @@ type PlatformActivityMetadata = {
|
|
|
6008
6063
|
* Array of subnet IDs to filter the events
|
|
6009
6064
|
*/
|
|
6010
6065
|
subnetIds?: Array<string>;
|
|
6011
|
-
/**
|
|
6012
|
-
* Balance threshold filter
|
|
6013
|
-
*/
|
|
6014
|
-
balanceThresholdFilter?: PlatformBalanceThresholdFilter;
|
|
6015
6066
|
/**
|
|
6016
6067
|
* L1 validator fee balance threshold in nAVAX
|
|
6017
6068
|
*/
|
|
6018
6069
|
l1ValidatorFeeBalanceThreshold?: string;
|
|
6019
6070
|
};
|
|
6020
6071
|
|
|
6021
|
-
type
|
|
6072
|
+
type ValidatorActivityResponse = {
|
|
6022
6073
|
id: string;
|
|
6023
|
-
eventType: EventType;
|
|
6024
6074
|
url: string;
|
|
6025
6075
|
chainId: string;
|
|
6026
6076
|
status: WebhookStatusType;
|
|
6027
6077
|
createdAt: number;
|
|
6028
6078
|
name: string;
|
|
6029
6079
|
description: string;
|
|
6030
|
-
|
|
6080
|
+
eventType: ValidatorActivityEventType;
|
|
6081
|
+
metadata: ValidatorActivityMetadata;
|
|
6031
6082
|
};
|
|
6032
6083
|
|
|
6033
6084
|
type ListWebhooksResponse = {
|
|
@@ -6035,33 +6086,29 @@ type ListWebhooksResponse = {
|
|
|
6035
6086
|
* 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
6087
|
*/
|
|
6037
6088
|
nextPageToken?: string;
|
|
6038
|
-
webhooks: Array<(EVMAddressActivityResponse |
|
|
6089
|
+
webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
6039
6090
|
};
|
|
6040
6091
|
|
|
6041
|
-
|
|
6042
|
-
|
|
6092
|
+
declare enum PrimaryNetworkType {
|
|
6093
|
+
MAINNET = "mainnet",
|
|
6094
|
+
FUJI = "fuji"
|
|
6095
|
+
}
|
|
6096
|
+
|
|
6097
|
+
type PrimaryNetworkAddressActivityRequest = {
|
|
6098
|
+
eventType: PrimaryNetworkAddressActivityRequest.eventType;
|
|
6043
6099
|
url: string;
|
|
6044
|
-
chainId: string;
|
|
6045
|
-
network?: PrimaryNetworkType;
|
|
6046
6100
|
name?: string;
|
|
6047
6101
|
description?: string;
|
|
6102
|
+
network: PrimaryNetworkType;
|
|
6103
|
+
chainId: string;
|
|
6048
6104
|
/**
|
|
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
|
|
6105
|
+
* Metadata for platform address activity event
|
|
6058
6106
|
*/
|
|
6059
|
-
metadata:
|
|
6107
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
6060
6108
|
};
|
|
6061
|
-
declare namespace
|
|
6109
|
+
declare namespace PrimaryNetworkAddressActivityRequest {
|
|
6062
6110
|
enum eventType {
|
|
6063
|
-
|
|
6064
|
-
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6111
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6065
6112
|
}
|
|
6066
6113
|
}
|
|
6067
6114
|
|
|
@@ -6081,6 +6128,23 @@ type UpdateWebhookRequest = {
|
|
|
6081
6128
|
includeLogs?: boolean;
|
|
6082
6129
|
};
|
|
6083
6130
|
|
|
6131
|
+
type ValidatorActivityRequest = {
|
|
6132
|
+
eventType: ValidatorActivityRequest.eventType;
|
|
6133
|
+
url: string;
|
|
6134
|
+
name?: string;
|
|
6135
|
+
description?: string;
|
|
6136
|
+
network: PrimaryNetworkType;
|
|
6137
|
+
/**
|
|
6138
|
+
* Metadata for platform validator activity event
|
|
6139
|
+
*/
|
|
6140
|
+
metadata: ValidatorActivityMetadata;
|
|
6141
|
+
};
|
|
6142
|
+
declare namespace ValidatorActivityRequest {
|
|
6143
|
+
enum eventType {
|
|
6144
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6145
|
+
}
|
|
6146
|
+
}
|
|
6147
|
+
|
|
6084
6148
|
declare enum WebhookStatus {
|
|
6085
6149
|
ACTIVE = "active",
|
|
6086
6150
|
INACTIVE = "inactive"
|
|
@@ -6096,8 +6160,8 @@ declare class WebhooksService {
|
|
|
6096
6160
|
* @throws ApiError
|
|
6097
6161
|
*/
|
|
6098
6162
|
createWebhook({ requestBody, }: {
|
|
6099
|
-
requestBody: (EVMAddressActivityRequest |
|
|
6100
|
-
}): CancelablePromise<(EVMAddressActivityResponse |
|
|
6163
|
+
requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
|
|
6164
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
6101
6165
|
/**
|
|
6102
6166
|
* List webhooks
|
|
6103
6167
|
* Lists webhooks for the user.
|
|
@@ -6129,7 +6193,7 @@ declare class WebhooksService {
|
|
|
6129
6193
|
* The webhook identifier.
|
|
6130
6194
|
*/
|
|
6131
6195
|
id: string;
|
|
6132
|
-
}): CancelablePromise<(EVMAddressActivityResponse |
|
|
6196
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
6133
6197
|
/**
|
|
6134
6198
|
* Deactivate a webhook
|
|
6135
6199
|
* Deactivates a webhook by ID.
|
|
@@ -6141,7 +6205,7 @@ declare class WebhooksService {
|
|
|
6141
6205
|
* The webhook identifier.
|
|
6142
6206
|
*/
|
|
6143
6207
|
id: string;
|
|
6144
|
-
}): CancelablePromise<(EVMAddressActivityResponse |
|
|
6208
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
6145
6209
|
/**
|
|
6146
6210
|
* Update a webhook
|
|
6147
6211
|
* Updates an existing webhook.
|
|
@@ -6154,7 +6218,7 @@ declare class WebhooksService {
|
|
|
6154
6218
|
*/
|
|
6155
6219
|
id: string;
|
|
6156
6220
|
requestBody: UpdateWebhookRequest;
|
|
6157
|
-
}): CancelablePromise<(EVMAddressActivityResponse |
|
|
6221
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
6158
6222
|
/**
|
|
6159
6223
|
* Generate or rotate a shared secret
|
|
6160
6224
|
* Generates a new shared secret or rotate an existing one.
|
|
@@ -6517,6 +6581,37 @@ type TooManyRequests = {
|
|
|
6517
6581
|
error: string;
|
|
6518
6582
|
};
|
|
6519
6583
|
|
|
6584
|
+
type WebhookInternalTransaction = {
|
|
6585
|
+
/**
|
|
6586
|
+
* Sender address
|
|
6587
|
+
*/
|
|
6588
|
+
from: string;
|
|
6589
|
+
/**
|
|
6590
|
+
* Recipient address
|
|
6591
|
+
*/
|
|
6592
|
+
to: string;
|
|
6593
|
+
/**
|
|
6594
|
+
* Internal transaction type
|
|
6595
|
+
*/
|
|
6596
|
+
internalTxType: string;
|
|
6597
|
+
/**
|
|
6598
|
+
* Value transferred
|
|
6599
|
+
*/
|
|
6600
|
+
value: string;
|
|
6601
|
+
/**
|
|
6602
|
+
* Gas used
|
|
6603
|
+
*/
|
|
6604
|
+
gasUsed: string;
|
|
6605
|
+
/**
|
|
6606
|
+
* Gas limit
|
|
6607
|
+
*/
|
|
6608
|
+
gasLimit: string;
|
|
6609
|
+
/**
|
|
6610
|
+
* Transaction hash
|
|
6611
|
+
*/
|
|
6612
|
+
transactionHash: string;
|
|
6613
|
+
};
|
|
6614
|
+
|
|
6520
6615
|
type Transaction = {
|
|
6521
6616
|
/**
|
|
6522
6617
|
* Block hash of the transaction
|
|
@@ -6621,7 +6716,7 @@ type Transaction = {
|
|
|
6621
6716
|
/**
|
|
6622
6717
|
* Internal transactions (optional)
|
|
6623
6718
|
*/
|
|
6624
|
-
internalTransactions?: Array<
|
|
6719
|
+
internalTransactions?: Array<WebhookInternalTransaction>;
|
|
6625
6720
|
/**
|
|
6626
6721
|
* Access list (optional)
|
|
6627
6722
|
*/
|
|
@@ -6685,5 +6780,16 @@ declare namespace WebhookAddressActivityResponse {
|
|
|
6685
6780
|
}
|
|
6686
6781
|
}
|
|
6687
6782
|
|
|
6688
|
-
|
|
6689
|
-
|
|
6783
|
+
declare class FetchHttpRequest extends BaseHttpRequest {
|
|
6784
|
+
constructor(config: OpenAPIConfig);
|
|
6785
|
+
/**
|
|
6786
|
+
* Request method
|
|
6787
|
+
* @param options The request options from the service
|
|
6788
|
+
* @returns CancelablePromise<T>
|
|
6789
|
+
* @throws ApiError
|
|
6790
|
+
*/
|
|
6791
|
+
request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
6792
|
+
}
|
|
6793
|
+
|
|
6794
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityEventType, 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, 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 };
|
|
6795
|
+
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 };
|
package/esm/generated/Glacier.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FetchHttpRequest as e}from"./core/FetchHttpRequest.js";import{DataApiUsageMetricsService as r}from"./services/DataApiUsageMetricsService.js";import{DefaultService as s}from"./services/DefaultService.js";import{EvmBalancesService as i}from"./services/EvmBalancesService.js";import{EvmBlocksService as t}from"./services/EvmBlocksService.js";import{EvmChainsService as o}from"./services/EvmChainsService.js";import{EvmContractsService as a}from"./services/EvmContractsService.js";import{EvmTransactionsService as c}from"./services/EvmTransactionsService.js";import{HealthCheckService as m}from"./services/HealthCheckService.js";import{InterchainMessagingService as n}from"./services/InterchainMessagingService.js";import{NfTsService as h}from"./services/NfTsService.js";import{NotificationsService as v}from"./services/NotificationsService.js";import{OperationsService as p}from"./services/OperationsService.js";import{PrimaryNetworkService as w}from"./services/PrimaryNetworkService.js";import{PrimaryNetworkBalancesService as S}from"./services/PrimaryNetworkBalancesService.js";import{PrimaryNetworkBlocksService as N}from"./services/PrimaryNetworkBlocksService.js";import{PrimaryNetworkRewardsService as k}from"./services/PrimaryNetworkRewardsService.js";import{PrimaryNetworkTransactionsService as u}from"./services/PrimaryNetworkTransactionsService.js";import{PrimaryNetworkUtxOsService as f}from"./services/PrimaryNetworkUtxOsService.js";import{PrimaryNetworkVerticesService as E}from"./services/PrimaryNetworkVerticesService.js";import{SignatureAggregatorService as q}from"./services/SignatureAggregatorService.js";import{TeleporterService as l}from"./services/TeleporterService.js";import{WebhooksService as j}from"./services/WebhooksService.js";class g{dataApiUsageMetrics;default;evmBalances;evmBlocks;evmChains;evmContracts;evmTransactions;healthCheck;interchainMessaging;nfTs;notifications;operations;primaryNetwork;primaryNetworkBalances;primaryNetworkBlocks;primaryNetworkRewards;primaryNetworkTransactions;primaryNetworkUtxOs;primaryNetworkVertices;signatureAggregator;teleporter;webhooks;request;constructor(g,y=e){this.request=new y({BASE:g?.BASE??"https://glacier-api-dev.avax.network",VERSION:g?.VERSION??"
|
|
1
|
+
import{FetchHttpRequest as e}from"./core/FetchHttpRequest.js";import{DataApiUsageMetricsService as r}from"./services/DataApiUsageMetricsService.js";import{DefaultService as s}from"./services/DefaultService.js";import{EvmBalancesService as i}from"./services/EvmBalancesService.js";import{EvmBlocksService as t}from"./services/EvmBlocksService.js";import{EvmChainsService as o}from"./services/EvmChainsService.js";import{EvmContractsService as a}from"./services/EvmContractsService.js";import{EvmTransactionsService as c}from"./services/EvmTransactionsService.js";import{HealthCheckService as m}from"./services/HealthCheckService.js";import{InterchainMessagingService as n}from"./services/InterchainMessagingService.js";import{NfTsService as h}from"./services/NfTsService.js";import{NotificationsService as v}from"./services/NotificationsService.js";import{OperationsService as p}from"./services/OperationsService.js";import{PrimaryNetworkService as w}from"./services/PrimaryNetworkService.js";import{PrimaryNetworkBalancesService as S}from"./services/PrimaryNetworkBalancesService.js";import{PrimaryNetworkBlocksService as N}from"./services/PrimaryNetworkBlocksService.js";import{PrimaryNetworkRewardsService as k}from"./services/PrimaryNetworkRewardsService.js";import{PrimaryNetworkTransactionsService as u}from"./services/PrimaryNetworkTransactionsService.js";import{PrimaryNetworkUtxOsService as f}from"./services/PrimaryNetworkUtxOsService.js";import{PrimaryNetworkVerticesService as E}from"./services/PrimaryNetworkVerticesService.js";import{SignatureAggregatorService as q}from"./services/SignatureAggregatorService.js";import{TeleporterService as l}from"./services/TeleporterService.js";import{WebhooksService as j}from"./services/WebhooksService.js";class g{dataApiUsageMetrics;default;evmBalances;evmBlocks;evmChains;evmContracts;evmTransactions;healthCheck;interchainMessaging;nfTs;notifications;operations;primaryNetwork;primaryNetworkBalances;primaryNetworkBlocks;primaryNetworkRewards;primaryNetworkTransactions;primaryNetworkUtxOs;primaryNetworkVertices;signatureAggregator;teleporter;webhooks;request;constructor(g,y=e){this.request=new y({BASE:g?.BASE??"https://glacier-api-dev.avax.network",VERSION:g?.VERSION??"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.dataApiUsageMetrics=new r(this.request),this.default=new s(this.request),this.evmBalances=new i(this.request),this.evmBlocks=new t(this.request),this.evmChains=new o(this.request),this.evmContracts=new a(this.request),this.evmTransactions=new c(this.request),this.healthCheck=new m(this.request),this.interchainMessaging=new n(this.request),this.nfTs=new h(this.request),this.notifications=new v(this.request),this.operations=new p(this.request),this.primaryNetwork=new w(this.request),this.primaryNetworkBalances=new S(this.request),this.primaryNetworkBlocks=new N(this.request),this.primaryNetworkRewards=new k(this.request),this.primaryNetworkTransactions=new u(this.request),this.primaryNetworkUtxOs=new f(this.request),this.primaryNetworkVertices=new E(this.request),this.signatureAggregator=new q(this.request),this.teleporter=new l(this.request),this.webhooks=new j(this.request)}}export{g as Glacier};
|
|
@@ -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://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};
|
|
@@ -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 };
|