@avalabs/glacier-sdk 2.8.0-canary.88a143f.0 → 2.8.0-canary.88be626.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 +227 -55
- package/dist/index.js +140 -45
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.js +3 -0
- package/esm/generated/core/CancelablePromise.d.ts +2 -8
- package/esm/generated/core/CancelablePromise.js +38 -36
- package/esm/generated/core/request.js +3 -2
- package/esm/generated/models/ActiveValidatorDetails.d.ts +5 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +2 -2
- package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
- package/esm/generated/models/BlsCredentials.d.ts +6 -0
- package/esm/generated/models/ChainInfo.d.ts +1 -1
- package/esm/generated/models/CompletedValidatorDetails.d.ts +5 -0
- package/esm/generated/models/{RegisterWebhookRequest.d.ts → CreateWebhookRequest.d.ts} +5 -3
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +2 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +2 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -1
- package/esm/generated/models/GlacierApiFeature.d.ts +2 -1
- package/esm/generated/models/GlacierApiFeature.js +1 -0
- package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
- package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
- package/esm/generated/models/PChainTransaction.d.ts +5 -0
- package/esm/generated/models/PendingTeleporterMessage.d.ts +2 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/RemovedValidatorDetails.d.ts +6 -0
- package/esm/generated/models/RpcErrorDto.d.ts +7 -0
- package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
- package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
- package/esm/generated/models/SortByOption.d.ts +9 -0
- package/esm/generated/models/SortByOption.js +10 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +1 -1
- package/esm/generated/models/WebhookResponse.d.ts +1 -1
- package/esm/generated/services/EvmBalancesService.d.ts +5 -1
- package/esm/generated/services/EvmBalancesService.js +2 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +23 -8
- package/esm/generated/services/PrimaryNetworkService.js +10 -4
- package/esm/generated/services/RpcService.d.ts +25 -0
- package/esm/generated/services/RpcService.js +24 -0
- package/esm/generated/services/TeleporterService.d.ts +9 -4
- package/esm/generated/services/TeleporterService.js +4 -2
- package/esm/generated/services/WebhooksService.d.ts +53 -5
- package/esm/generated/services/WebhooksService.js +46 -1
- package/esm/index.d.ts +11 -1
- package/esm/index.js +2 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -23,15 +23,9 @@ interface OnCancel {
|
|
|
23
23
|
(cancelHandler: () => void): void;
|
|
24
24
|
}
|
|
25
25
|
declare class CancelablePromise<T> implements Promise<T> {
|
|
26
|
-
|
|
27
|
-
private _isResolved;
|
|
28
|
-
private _isRejected;
|
|
29
|
-
private _isCancelled;
|
|
30
|
-
private readonly _cancelHandlers;
|
|
31
|
-
private readonly _promise;
|
|
32
|
-
private _resolve?;
|
|
33
|
-
private _reject?;
|
|
26
|
+
#private;
|
|
34
27
|
constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void);
|
|
28
|
+
get [Symbol.toStringTag](): string;
|
|
35
29
|
then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
|
|
36
30
|
catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
|
|
37
31
|
finally(onFinally?: (() => void) | null): Promise<T>;
|
|
@@ -368,7 +362,7 @@ declare class EvmBalancesService {
|
|
|
368
362
|
* @returns ListErc20BalancesResponse
|
|
369
363
|
* @throws ApiError
|
|
370
364
|
*/
|
|
371
|
-
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
365
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
|
|
372
366
|
/**
|
|
373
367
|
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
374
368
|
*/
|
|
@@ -389,6 +383,10 @@ declare class EvmBalancesService {
|
|
|
389
383
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
390
384
|
*/
|
|
391
385
|
pageSize?: number;
|
|
386
|
+
/**
|
|
387
|
+
* whether to filter out spam tokens from the response. Default is true.
|
|
388
|
+
*/
|
|
389
|
+
filterSpamTokens?: boolean;
|
|
392
390
|
/**
|
|
393
391
|
* A comma separated list of contract addresses to filter by.
|
|
394
392
|
*/
|
|
@@ -688,11 +686,12 @@ type GetChainResponse = {
|
|
|
688
686
|
networkToken: NetworkToken;
|
|
689
687
|
chainLogoUri?: string;
|
|
690
688
|
private?: boolean;
|
|
691
|
-
enabledFeatures?: Array<'nftIndexing'>;
|
|
689
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
692
690
|
};
|
|
693
691
|
|
|
694
692
|
declare enum GlacierApiFeature {
|
|
695
|
-
NFT_INDEXING = "nftIndexing"
|
|
693
|
+
NFT_INDEXING = "nftIndexing",
|
|
694
|
+
WEBHOOKS = "webhooks"
|
|
696
695
|
}
|
|
697
696
|
|
|
698
697
|
type ChainInfo = {
|
|
@@ -712,7 +711,7 @@ type ChainInfo = {
|
|
|
712
711
|
networkToken: NetworkToken;
|
|
713
712
|
chainLogoUri?: string;
|
|
714
713
|
private?: boolean;
|
|
715
|
-
enabledFeatures?: Array<'nftIndexing'>;
|
|
714
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
716
715
|
};
|
|
717
716
|
|
|
718
717
|
type ListChainsResponse = {
|
|
@@ -2040,7 +2039,7 @@ declare enum PrimaryNetworkOperationType {
|
|
|
2040
2039
|
}
|
|
2041
2040
|
|
|
2042
2041
|
type PrimaryNetworkOptions = {
|
|
2043
|
-
addresses
|
|
2042
|
+
addresses?: Array<string>;
|
|
2044
2043
|
cChainEvmAddresses?: Array<string>;
|
|
2045
2044
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2046
2045
|
};
|
|
@@ -2312,6 +2311,11 @@ type ListSubnetsResponse = {
|
|
|
2312
2311
|
subnets: Array<Subnet>;
|
|
2313
2312
|
};
|
|
2314
2313
|
|
|
2314
|
+
type BlsCredentials = {
|
|
2315
|
+
publicKey: string;
|
|
2316
|
+
proofOfPossession: string;
|
|
2317
|
+
};
|
|
2318
|
+
|
|
2315
2319
|
type Rewards = {
|
|
2316
2320
|
validationRewardAmount: string;
|
|
2317
2321
|
delegationRewardAmount: string;
|
|
@@ -2346,6 +2350,10 @@ type ActiveValidatorDetails = {
|
|
|
2346
2350
|
delegationFee?: string;
|
|
2347
2351
|
startTimestamp: number;
|
|
2348
2352
|
endTimestamp: number;
|
|
2353
|
+
/**
|
|
2354
|
+
* Present for AddPermissionlessValidatorTx
|
|
2355
|
+
*/
|
|
2356
|
+
blsCredentials?: BlsCredentials;
|
|
2349
2357
|
stakePercentage: number;
|
|
2350
2358
|
delegatorCount: number;
|
|
2351
2359
|
amountDelegated?: string;
|
|
@@ -2370,6 +2378,10 @@ type CompletedValidatorDetails = {
|
|
|
2370
2378
|
delegationFee?: string;
|
|
2371
2379
|
startTimestamp: number;
|
|
2372
2380
|
endTimestamp: number;
|
|
2381
|
+
/**
|
|
2382
|
+
* Present for AddPermissionlessValidatorTx
|
|
2383
|
+
*/
|
|
2384
|
+
blsCredentials?: BlsCredentials;
|
|
2373
2385
|
delegatorCount: number;
|
|
2374
2386
|
rewards: Rewards;
|
|
2375
2387
|
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
@@ -2388,6 +2400,10 @@ type PendingValidatorDetails = {
|
|
|
2388
2400
|
delegationFee?: string;
|
|
2389
2401
|
startTimestamp: number;
|
|
2390
2402
|
endTimestamp: number;
|
|
2403
|
+
/**
|
|
2404
|
+
* Present for AddPermissionlessValidatorTx
|
|
2405
|
+
*/
|
|
2406
|
+
blsCredentials?: BlsCredentials;
|
|
2391
2407
|
validationStatus: PendingValidatorDetails.validationStatus;
|
|
2392
2408
|
};
|
|
2393
2409
|
declare namespace PendingValidatorDetails {
|
|
@@ -2404,6 +2420,10 @@ type RemovedValidatorDetails = {
|
|
|
2404
2420
|
delegationFee?: string;
|
|
2405
2421
|
startTimestamp: number;
|
|
2406
2422
|
endTimestamp: number;
|
|
2423
|
+
/**
|
|
2424
|
+
* Present for AddPermissionlessValidatorTx
|
|
2425
|
+
*/
|
|
2426
|
+
blsCredentials?: BlsCredentials;
|
|
2407
2427
|
removeTxHash: string;
|
|
2408
2428
|
removeTimestamp: number;
|
|
2409
2429
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
@@ -2430,6 +2450,14 @@ declare enum Network {
|
|
|
2430
2450
|
FUJI = "fuji"
|
|
2431
2451
|
}
|
|
2432
2452
|
|
|
2453
|
+
declare enum SortByOption {
|
|
2454
|
+
BLOCK_INDEX = "blockIndex",
|
|
2455
|
+
DELEGATION_CAPACITY = "delegationCapacity",
|
|
2456
|
+
TIME_REMAINING = "timeRemaining",
|
|
2457
|
+
DELEGATION_FEE = "delegationFee",
|
|
2458
|
+
UPTIME_PERFORMANCE = "uptimePerformance"
|
|
2459
|
+
}
|
|
2460
|
+
|
|
2433
2461
|
declare enum ValidationStatusType {
|
|
2434
2462
|
COMPLETED = "completed",
|
|
2435
2463
|
ACTIVE = "active",
|
|
@@ -2589,7 +2617,7 @@ declare class PrimaryNetworkService {
|
|
|
2589
2617
|
* @returns ListValidatorDetailsResponse
|
|
2590
2618
|
* @throws ApiError
|
|
2591
2619
|
*/
|
|
2592
|
-
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2620
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
2593
2621
|
/**
|
|
2594
2622
|
* Either mainnet or a testnet.
|
|
2595
2623
|
*/
|
|
@@ -2606,6 +2634,12 @@ declare class PrimaryNetworkService {
|
|
|
2606
2634
|
* A comma separated list of node ids to filter by.
|
|
2607
2635
|
*/
|
|
2608
2636
|
nodeIds?: string;
|
|
2637
|
+
/**
|
|
2638
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
2639
|
+
*
|
|
2640
|
+
* Note: Delegation fee is only available for mainnet validators. Set `subnetId` to `11111111111111111111111111111111LpoYY` to use this option.
|
|
2641
|
+
*/
|
|
2642
|
+
sortBy?: SortByOption;
|
|
2609
2643
|
/**
|
|
2610
2644
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2611
2645
|
*/
|
|
@@ -2631,13 +2665,21 @@ declare class PrimaryNetworkService {
|
|
|
2631
2665
|
*/
|
|
2632
2666
|
maxTimeRemaining?: number;
|
|
2633
2667
|
/**
|
|
2634
|
-
* The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
|
|
2668
|
+
* The minimum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2.0, as per the Avalanche spec.
|
|
2635
2669
|
*/
|
|
2636
2670
|
minFeePercentage?: number;
|
|
2637
2671
|
/**
|
|
2638
|
-
* The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
|
|
2672
|
+
* The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.0.
|
|
2639
2673
|
*/
|
|
2640
2674
|
maxFeePercentage?: number;
|
|
2675
|
+
/**
|
|
2676
|
+
* The minimum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned Default is 90.
|
|
2677
|
+
*/
|
|
2678
|
+
minUptimePerformance?: number;
|
|
2679
|
+
/**
|
|
2680
|
+
* The maximum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned. Default is 100.
|
|
2681
|
+
*/
|
|
2682
|
+
maxUptimePerformance?: number;
|
|
2641
2683
|
/**
|
|
2642
2684
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2643
2685
|
*/
|
|
@@ -2649,7 +2691,7 @@ declare class PrimaryNetworkService {
|
|
|
2649
2691
|
* @returns ListValidatorDetailsResponse
|
|
2650
2692
|
* @throws ApiError
|
|
2651
2693
|
*/
|
|
2652
|
-
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize,
|
|
2694
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
2653
2695
|
/**
|
|
2654
2696
|
* Either mainnet or a testnet.
|
|
2655
2697
|
*/
|
|
@@ -2666,14 +2708,14 @@ declare class PrimaryNetworkService {
|
|
|
2666
2708
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2667
2709
|
*/
|
|
2668
2710
|
pageSize?: number;
|
|
2669
|
-
/**
|
|
2670
|
-
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2671
|
-
*/
|
|
2672
|
-
sortOrder?: SortOrder;
|
|
2673
2711
|
/**
|
|
2674
2712
|
* Validation status of the node.
|
|
2675
2713
|
*/
|
|
2676
2714
|
validationStatus?: ValidationStatusType;
|
|
2715
|
+
/**
|
|
2716
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2717
|
+
*/
|
|
2718
|
+
sortOrder?: SortOrder;
|
|
2677
2719
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2678
2720
|
/**
|
|
2679
2721
|
* List delegators
|
|
@@ -3600,6 +3642,10 @@ type PChainTransaction = {
|
|
|
3600
3642
|
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3601
3643
|
*/
|
|
3602
3644
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3645
|
+
/**
|
|
3646
|
+
* Present for AddPermissionlessValidatorTx
|
|
3647
|
+
*/
|
|
3648
|
+
blsCredentials?: BlsCredentials;
|
|
3603
3649
|
};
|
|
3604
3650
|
|
|
3605
3651
|
type ListPChainTransactionsResponse = {
|
|
@@ -4108,6 +4154,49 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4108
4154
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4109
4155
|
}
|
|
4110
4156
|
|
|
4157
|
+
type RpcErrorDto = {
|
|
4158
|
+
code: number;
|
|
4159
|
+
message: string;
|
|
4160
|
+
data?: Record<string, any>;
|
|
4161
|
+
};
|
|
4162
|
+
|
|
4163
|
+
type RpcErrorResponseDto = {
|
|
4164
|
+
jsonrpc: string;
|
|
4165
|
+
id?: (string | number);
|
|
4166
|
+
error: RpcErrorDto;
|
|
4167
|
+
};
|
|
4168
|
+
|
|
4169
|
+
type RpcRequestBodyDto = {
|
|
4170
|
+
method: string;
|
|
4171
|
+
params?: Record<string, any>;
|
|
4172
|
+
id?: (string | number);
|
|
4173
|
+
jsonrpc?: string;
|
|
4174
|
+
};
|
|
4175
|
+
|
|
4176
|
+
type RpcSuccessResponseDto = {
|
|
4177
|
+
jsonrpc: string;
|
|
4178
|
+
id?: (string | number);
|
|
4179
|
+
result: Record<string, any>;
|
|
4180
|
+
};
|
|
4181
|
+
|
|
4182
|
+
declare class RpcService {
|
|
4183
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4184
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4185
|
+
/**
|
|
4186
|
+
* Calls JSON-RPC method
|
|
4187
|
+
* Calls JSON-RPC method.
|
|
4188
|
+
* @returns any
|
|
4189
|
+
* @throws ApiError
|
|
4190
|
+
*/
|
|
4191
|
+
rpc({ chainId, requestBody, }: {
|
|
4192
|
+
/**
|
|
4193
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4194
|
+
*/
|
|
4195
|
+
chainId: string;
|
|
4196
|
+
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4197
|
+
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4198
|
+
}
|
|
4199
|
+
|
|
4111
4200
|
type TeleporterDestinationTransaction = {
|
|
4112
4201
|
txHash: string;
|
|
4113
4202
|
timestamp: number;
|
|
@@ -4160,6 +4249,8 @@ type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
|
4160
4249
|
teleporterContractAddress: string;
|
|
4161
4250
|
sourceBlockchainId: string;
|
|
4162
4251
|
destinationBlockchainId: string;
|
|
4252
|
+
sourceEvmChainId: string;
|
|
4253
|
+
destinationEvmChainId: string;
|
|
4163
4254
|
messageNonce: string;
|
|
4164
4255
|
from: string;
|
|
4165
4256
|
to: string;
|
|
@@ -4188,6 +4279,8 @@ type DeliveredTeleporterMessage = {
|
|
|
4188
4279
|
teleporterContractAddress: string;
|
|
4189
4280
|
sourceBlockchainId: string;
|
|
4190
4281
|
destinationBlockchainId: string;
|
|
4282
|
+
sourceEvmChainId: string;
|
|
4283
|
+
destinationEvmChainId: string;
|
|
4191
4284
|
messageNonce: string;
|
|
4192
4285
|
from: string;
|
|
4193
4286
|
to: string;
|
|
@@ -4206,18 +4299,13 @@ declare namespace DeliveredTeleporterMessage {
|
|
|
4206
4299
|
}
|
|
4207
4300
|
}
|
|
4208
4301
|
|
|
4209
|
-
type NextPageToken = {
|
|
4210
|
-
/**
|
|
4211
|
-
* 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.
|
|
4212
|
-
*/
|
|
4213
|
-
nextPageToken?: string;
|
|
4214
|
-
};
|
|
4215
|
-
|
|
4216
4302
|
type PendingTeleporterMessage = {
|
|
4217
4303
|
messageId: string;
|
|
4218
4304
|
teleporterContractAddress: string;
|
|
4219
4305
|
sourceBlockchainId: string;
|
|
4220
4306
|
destinationBlockchainId: string;
|
|
4307
|
+
sourceEvmChainId: string;
|
|
4308
|
+
destinationEvmChainId: string;
|
|
4221
4309
|
messageNonce: string;
|
|
4222
4310
|
from: string;
|
|
4223
4311
|
to: string;
|
|
@@ -4235,6 +4323,14 @@ declare namespace PendingTeleporterMessage {
|
|
|
4235
4323
|
}
|
|
4236
4324
|
}
|
|
4237
4325
|
|
|
4326
|
+
type ListTeleporterMessagesResponse = {
|
|
4327
|
+
/**
|
|
4328
|
+
* 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.
|
|
4329
|
+
*/
|
|
4330
|
+
nextPageToken?: string;
|
|
4331
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
4332
|
+
};
|
|
4333
|
+
|
|
4238
4334
|
declare class TeleporterService {
|
|
4239
4335
|
readonly httpRequest: BaseHttpRequest;
|
|
4240
4336
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -4253,10 +4349,10 @@ declare class TeleporterService {
|
|
|
4253
4349
|
/**
|
|
4254
4350
|
* List teleporter messages
|
|
4255
4351
|
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4256
|
-
* @returns
|
|
4352
|
+
* @returns ListTeleporterMessagesResponse
|
|
4257
4353
|
* @throws ApiError
|
|
4258
4354
|
*/
|
|
4259
|
-
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
4355
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
|
|
4260
4356
|
/**
|
|
4261
4357
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4262
4358
|
*/
|
|
@@ -4281,14 +4377,25 @@ declare class TeleporterService {
|
|
|
4281
4377
|
* The address of the sender of the teleporter message.
|
|
4282
4378
|
*/
|
|
4283
4379
|
from?: string;
|
|
4284
|
-
|
|
4380
|
+
/**
|
|
4381
|
+
* mainnet or testnet.
|
|
4382
|
+
*/
|
|
4383
|
+
network?: NetworkType;
|
|
4384
|
+
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4285
4385
|
}
|
|
4286
4386
|
|
|
4387
|
+
type AddressesChangeRequest = {
|
|
4388
|
+
/**
|
|
4389
|
+
* Ethereum address(es) for the address_activity event type
|
|
4390
|
+
*/
|
|
4391
|
+
addresses: Array<any[]>;
|
|
4392
|
+
};
|
|
4393
|
+
|
|
4287
4394
|
type AddressActivityMetadata = {
|
|
4288
4395
|
/**
|
|
4289
|
-
* Ethereum address for the address_activity event type
|
|
4396
|
+
* Ethereum address(es) for the address_activity event type
|
|
4290
4397
|
*/
|
|
4291
|
-
|
|
4398
|
+
addresses: Array<string>;
|
|
4292
4399
|
/**
|
|
4293
4400
|
* Array of hexadecimal strings of the event signatures.
|
|
4294
4401
|
*/
|
|
@@ -4299,6 +4406,32 @@ declare enum EventType {
|
|
|
4299
4406
|
ADDRESS_ACTIVITY = "address_activity"
|
|
4300
4407
|
}
|
|
4301
4408
|
|
|
4409
|
+
type CreateWebhookRequest = {
|
|
4410
|
+
url: string;
|
|
4411
|
+
chainId: string;
|
|
4412
|
+
eventType: EventType;
|
|
4413
|
+
metadata: AddressActivityMetadata;
|
|
4414
|
+
name?: string;
|
|
4415
|
+
description?: string;
|
|
4416
|
+
/**
|
|
4417
|
+
* Whether to include traces in the webhook payload.
|
|
4418
|
+
*/
|
|
4419
|
+
includeInternalTxs?: boolean;
|
|
4420
|
+
/**
|
|
4421
|
+
* Whether to include logs in the webhook payload.
|
|
4422
|
+
*/
|
|
4423
|
+
includeLogs?: boolean;
|
|
4424
|
+
};
|
|
4425
|
+
|
|
4426
|
+
type ListWebhookAddressesResponse = {
|
|
4427
|
+
/**
|
|
4428
|
+
* 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.
|
|
4429
|
+
*/
|
|
4430
|
+
nextPageToken?: string;
|
|
4431
|
+
addresses: Array<string>;
|
|
4432
|
+
totalAddresses: number;
|
|
4433
|
+
};
|
|
4434
|
+
|
|
4302
4435
|
declare enum WebhookStatusType {
|
|
4303
4436
|
ACTIVE = "active",
|
|
4304
4437
|
INACTIVE = "inactive"
|
|
@@ -4311,7 +4444,7 @@ type WebhookResponse = {
|
|
|
4311
4444
|
/**
|
|
4312
4445
|
* Whether to include traces in the webhook payload.
|
|
4313
4446
|
*/
|
|
4314
|
-
|
|
4447
|
+
includeInternalTxs?: boolean;
|
|
4315
4448
|
/**
|
|
4316
4449
|
* Whether to include logs in the webhook payload.
|
|
4317
4450
|
*/
|
|
@@ -4332,21 +4465,6 @@ type ListWebhooksResponse = {
|
|
|
4332
4465
|
webhooks: Array<WebhookResponse>;
|
|
4333
4466
|
};
|
|
4334
4467
|
|
|
4335
|
-
type RegisterWebhookRequest = {
|
|
4336
|
-
url: string;
|
|
4337
|
-
chainId: string;
|
|
4338
|
-
eventType: EventType;
|
|
4339
|
-
metadata: AddressActivityMetadata;
|
|
4340
|
-
/**
|
|
4341
|
-
* Whether to include traces in the webhook payload.
|
|
4342
|
-
*/
|
|
4343
|
-
includeTraces?: boolean;
|
|
4344
|
-
/**
|
|
4345
|
-
* Whether to include logs in the webhook payload.
|
|
4346
|
-
*/
|
|
4347
|
-
includeLogs?: boolean;
|
|
4348
|
-
};
|
|
4349
|
-
|
|
4350
4468
|
type SharedSecretsResponse = {
|
|
4351
4469
|
secret: string;
|
|
4352
4470
|
};
|
|
@@ -4356,7 +4474,7 @@ type UpdateWebhookRequest = {
|
|
|
4356
4474
|
description?: string;
|
|
4357
4475
|
url?: string;
|
|
4358
4476
|
status?: WebhookStatusType;
|
|
4359
|
-
|
|
4477
|
+
includeInternalTxs?: boolean;
|
|
4360
4478
|
includeLogs?: boolean;
|
|
4361
4479
|
};
|
|
4362
4480
|
|
|
@@ -4369,13 +4487,13 @@ declare class WebhooksService {
|
|
|
4369
4487
|
readonly httpRequest: BaseHttpRequest;
|
|
4370
4488
|
constructor(httpRequest: BaseHttpRequest);
|
|
4371
4489
|
/**
|
|
4372
|
-
*
|
|
4373
|
-
*
|
|
4490
|
+
* Create a webhook
|
|
4491
|
+
* Create a new webhook.
|
|
4374
4492
|
* @returns WebhookResponse
|
|
4375
4493
|
* @throws ApiError
|
|
4376
4494
|
*/
|
|
4377
|
-
|
|
4378
|
-
requestBody:
|
|
4495
|
+
createWebhook({ requestBody, }: {
|
|
4496
|
+
requestBody: CreateWebhookRequest;
|
|
4379
4497
|
}): CancelablePromise<WebhookResponse>;
|
|
4380
4498
|
/**
|
|
4381
4499
|
* List webhooks
|
|
@@ -4448,6 +4566,52 @@ declare class WebhooksService {
|
|
|
4448
4566
|
* @throws ApiError
|
|
4449
4567
|
*/
|
|
4450
4568
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4569
|
+
/**
|
|
4570
|
+
* Add addresses to webhook
|
|
4571
|
+
* Add addresses to webhook.
|
|
4572
|
+
* @returns WebhookResponse
|
|
4573
|
+
* @throws ApiError
|
|
4574
|
+
*/
|
|
4575
|
+
addAddressesToWebhook({ id, requestBody, }: {
|
|
4576
|
+
/**
|
|
4577
|
+
* The webhook identifier.
|
|
4578
|
+
*/
|
|
4579
|
+
id: string;
|
|
4580
|
+
requestBody: AddressesChangeRequest;
|
|
4581
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4582
|
+
/**
|
|
4583
|
+
* Remove addresses from webhook
|
|
4584
|
+
* Remove addresses from webhook.
|
|
4585
|
+
* @returns WebhookResponse
|
|
4586
|
+
* @throws ApiError
|
|
4587
|
+
*/
|
|
4588
|
+
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
4589
|
+
/**
|
|
4590
|
+
* The webhook identifier.
|
|
4591
|
+
*/
|
|
4592
|
+
id: string;
|
|
4593
|
+
requestBody: AddressesChangeRequest;
|
|
4594
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4595
|
+
/**
|
|
4596
|
+
* List adresses by webhook
|
|
4597
|
+
* List adresses by webhook.
|
|
4598
|
+
* @returns ListWebhookAddressesResponse
|
|
4599
|
+
* @throws ApiError
|
|
4600
|
+
*/
|
|
4601
|
+
getAddressesFromWebhook({ id, pageToken, pageSize, }: {
|
|
4602
|
+
/**
|
|
4603
|
+
* The webhook identifier.
|
|
4604
|
+
*/
|
|
4605
|
+
id: string;
|
|
4606
|
+
/**
|
|
4607
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4608
|
+
*/
|
|
4609
|
+
pageToken?: string;
|
|
4610
|
+
/**
|
|
4611
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4612
|
+
*/
|
|
4613
|
+
pageSize?: number;
|
|
4614
|
+
}): CancelablePromise<ListWebhookAddressesResponse>;
|
|
4451
4615
|
}
|
|
4452
4616
|
|
|
4453
4617
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
@@ -4468,6 +4632,7 @@ declare class Glacier {
|
|
|
4468
4632
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4469
4633
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4470
4634
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4635
|
+
readonly rpc: RpcService;
|
|
4471
4636
|
readonly teleporter: TeleporterService;
|
|
4472
4637
|
readonly webhooks: WebhooksService;
|
|
4473
4638
|
readonly request: BaseHttpRequest;
|
|
@@ -4491,4 +4656,11 @@ declare class ApiError extends Error {
|
|
|
4491
4656
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4492
4657
|
}
|
|
4493
4658
|
|
|
4494
|
-
|
|
4659
|
+
type NextPageToken = {
|
|
4660
|
+
/**
|
|
4661
|
+
* 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.
|
|
4662
|
+
*/
|
|
4663
|
+
nextPageToken?: string;
|
|
4664
|
+
};
|
|
4665
|
+
|
|
4666
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|