@avalabs/glacier-sdk 2.8.0-canary.238a9f2.0 → 2.8.0-canary.255935f.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 +676 -288
- package/dist/index.js +316 -108
- package/esm/generated/Glacier.d.ts +6 -0
- package/esm/generated/Glacier.js +9 -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/{Asset.d.ts → AggregatedAssetAmount.d.ts} +3 -5
- package/esm/generated/models/{XChainAssetBalance.d.ts → AssetAmount.d.ts} +2 -6
- package/esm/generated/models/AssetWithPriceInfo.d.ts +0 -3
- package/esm/generated/models/BlsCredentials.d.ts +6 -0
- package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +0 -3
- package/esm/generated/models/ChainInfo.d.ts +1 -3
- package/esm/generated/models/ChainStatus.d.ts +3 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +5 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreateWebhookRequest.d.ts +21 -0
- package/esm/generated/models/CurrencyCode.d.ts +3 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
- package/esm/generated/models/EVMInput.d.ts +3 -3
- package/esm/generated/models/EVMOperationType.d.ts +5 -0
- package/esm/generated/models/EVMOperationType.js +6 -0
- package/esm/generated/models/EVMOutput.d.ts +3 -3
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
- package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
- package/esm/generated/models/GetChainResponse.d.ts +1 -3
- package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
- package/esm/generated/models/GlacierApiFeature.js +7 -0
- package/esm/generated/models/ListNftTokens.d.ts +1 -1
- package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
- package/esm/generated/models/Method.d.ts +0 -3
- package/esm/generated/models/Money.d.ts +0 -3
- package/esm/generated/models/NextPageToken.d.ts +8 -0
- package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
- package/esm/generated/models/OperationType.d.ts +4 -2
- package/esm/generated/models/OperationType.js +3 -1
- package/esm/generated/models/PChainBalance.d.ts +15 -15
- package/esm/generated/models/PChainSharedAsset.d.ts +1 -3
- package/esm/generated/models/PChainTransaction.d.ts +12 -7
- package/esm/generated/models/PChainUtxo.d.ts +2 -2
- package/esm/generated/models/PendingReward.d.ts +3 -3
- package/esm/generated/models/PendingTeleporterMessage.d.ts +29 -0
- package/esm/generated/models/PendingTeleporterMessage.js +8 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +3 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +3 -0
- package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkOperationType.js +8 -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/TeleporterDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
- package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
- package/esm/generated/models/TeleporterRewardDetails.js +8 -0
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
- package/esm/generated/models/TransactionMethodType.d.ts +3 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
- package/esm/generated/models/Utxo.d.ts +2 -2
- package/esm/generated/models/WebhookResponse.d.ts +8 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +0 -6
- package/esm/generated/models/XChainBalances.d.ts +3 -3
- package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +0 -3
- package/esm/generated/models/XChainTransactionType.d.ts +3 -0
- package/esm/generated/services/DefaultService.d.ts +0 -60
- package/esm/generated/services/DefaultService.js +0 -48
- package/esm/generated/services/EvmBalancesService.d.ts +5 -1
- package/esm/generated/services/EvmBalancesService.js +2 -0
- package/esm/generated/services/EvmChainsService.d.ts +6 -1
- package/esm/generated/services/EvmChainsService.js +4 -2
- package/esm/generated/services/PrimaryNetworkService.d.ts +24 -9
- package/esm/generated/services/PrimaryNetworkService.js +11 -5
- package/esm/generated/services/RpcService.d.ts +25 -0
- package/esm/generated/services/RpcService.js +24 -0
- package/esm/generated/services/TeleporterService.d.ts +62 -0
- package/esm/generated/services/TeleporterService.js +41 -0
- package/esm/generated/services/WebhooksService.d.ts +143 -0
- package/esm/generated/services/WebhooksService.js +125 -0
- package/esm/index.d.ts +27 -3
- package/esm/index.js +11 -2
- package/package.json +3 -3
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
- package/esm/generated/models/RegisterWebhookRequest.d.ts +0 -14
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>;
|
|
@@ -60,65 +54,6 @@ declare abstract class BaseHttpRequest {
|
|
|
60
54
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
61
55
|
}
|
|
62
56
|
|
|
63
|
-
type AddressActivityMetadata = {
|
|
64
|
-
/**
|
|
65
|
-
* Ethereum address for the address_activity event type
|
|
66
|
-
*/
|
|
67
|
-
address: string;
|
|
68
|
-
/**
|
|
69
|
-
* Array of hexadecimal strings of the event signatures.
|
|
70
|
-
*/
|
|
71
|
-
eventSignatures?: Array<string>;
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
declare enum EventType {
|
|
75
|
-
ADDRESS_ACTIVITY = "address_activity"
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
declare enum WebhookStatusType {
|
|
79
|
-
ACTIVE = "active",
|
|
80
|
-
INACTIVE = "inactive"
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
type WebhookResponse = {
|
|
84
|
-
id: string;
|
|
85
|
-
eventType: EventType;
|
|
86
|
-
metadata: AddressActivityMetadata;
|
|
87
|
-
url: string;
|
|
88
|
-
chainId: string;
|
|
89
|
-
status: WebhookStatusType;
|
|
90
|
-
createdAt: number;
|
|
91
|
-
name: string;
|
|
92
|
-
description: string;
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
type ListWebhooksResponse = {
|
|
96
|
-
/**
|
|
97
|
-
* 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.
|
|
98
|
-
*/
|
|
99
|
-
nextPageToken?: string;
|
|
100
|
-
webhooks: Array<WebhookResponse>;
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
type RegisterWebhookRequest = {
|
|
104
|
-
url: string;
|
|
105
|
-
chainId: string;
|
|
106
|
-
/**
|
|
107
|
-
* The type of event for the webhook
|
|
108
|
-
*/
|
|
109
|
-
eventType: EventType;
|
|
110
|
-
metadata: AddressActivityMetadata;
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
type SharedSecretsResponse = {
|
|
114
|
-
secret: string;
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
declare enum WebhookStatus {
|
|
118
|
-
ACTIVE = "active",
|
|
119
|
-
INACTIVE = "inactive"
|
|
120
|
-
}
|
|
121
|
-
|
|
122
57
|
declare class DefaultService {
|
|
123
58
|
readonly httpRequest: BaseHttpRequest;
|
|
124
59
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -127,63 +62,11 @@ declare class DefaultService {
|
|
|
127
62
|
* @throws ApiError
|
|
128
63
|
*/
|
|
129
64
|
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
130
|
-
/**
|
|
131
|
-
* Register a webhook
|
|
132
|
-
* Registers a new webhook.
|
|
133
|
-
* @returns WebhookResponse
|
|
134
|
-
* @throws ApiError
|
|
135
|
-
*/
|
|
136
|
-
registerWebhook({ requestBody, }: {
|
|
137
|
-
requestBody: RegisterWebhookRequest;
|
|
138
|
-
}): CancelablePromise<WebhookResponse>;
|
|
139
|
-
/**
|
|
140
|
-
* List webhooks
|
|
141
|
-
* Lists webhooks for the user.
|
|
142
|
-
* @returns ListWebhooksResponse
|
|
143
|
-
* @throws ApiError
|
|
144
|
-
*/
|
|
145
|
-
listWebhooks({ pageToken, pageSize, status, }: {
|
|
146
|
-
/**
|
|
147
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
148
|
-
*/
|
|
149
|
-
pageToken?: string;
|
|
150
|
-
/**
|
|
151
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
152
|
-
*/
|
|
153
|
-
pageSize?: number;
|
|
154
|
-
/**
|
|
155
|
-
* Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
|
|
156
|
-
*/
|
|
157
|
-
status?: WebhookStatus;
|
|
158
|
-
}): CancelablePromise<ListWebhooksResponse>;
|
|
159
|
-
/**
|
|
160
|
-
* Deactivate a webhook
|
|
161
|
-
* Deactivates a webhook by ID.
|
|
162
|
-
* @returns WebhookResponse
|
|
163
|
-
* @throws ApiError
|
|
164
|
-
*/
|
|
165
|
-
deactivateWebhook({ id, }: {
|
|
166
|
-
/**
|
|
167
|
-
* The webhook identifier.
|
|
168
|
-
*/
|
|
169
|
-
id: string;
|
|
170
|
-
}): CancelablePromise<WebhookResponse>;
|
|
171
|
-
/**
|
|
172
|
-
* Generate a shared secret
|
|
173
|
-
* Generates a new shared secret.
|
|
174
|
-
* @returns SharedSecretsResponse
|
|
175
|
-
* @throws ApiError
|
|
176
|
-
*/
|
|
177
|
-
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
178
|
-
/**
|
|
179
|
-
* Get a shared secret
|
|
180
|
-
* Get a previously generated shared secret.
|
|
181
|
-
* @returns SharedSecretsResponse
|
|
182
|
-
* @throws ApiError
|
|
183
|
-
*/
|
|
184
|
-
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
185
65
|
}
|
|
186
66
|
|
|
67
|
+
/**
|
|
68
|
+
* ISO 4217 currency code.
|
|
69
|
+
*/
|
|
187
70
|
declare enum CurrencyCode {
|
|
188
71
|
USD = "usd",
|
|
189
72
|
EUR = "eur",
|
|
@@ -202,9 +85,6 @@ declare enum CurrencyCode {
|
|
|
202
85
|
}
|
|
203
86
|
|
|
204
87
|
type Money = {
|
|
205
|
-
/**
|
|
206
|
-
* ISO 4217 currency code.
|
|
207
|
-
*/
|
|
208
88
|
currencyCode: CurrencyCode;
|
|
209
89
|
/**
|
|
210
90
|
* Monetary value in base 10 decimals.
|
|
@@ -254,6 +134,9 @@ type GetNativeBalanceResponse = {
|
|
|
254
134
|
nativeTokenBalance: NativeTokenBalance;
|
|
255
135
|
};
|
|
256
136
|
|
|
137
|
+
/**
|
|
138
|
+
* The metadata indexing status of the nft.
|
|
139
|
+
*/
|
|
257
140
|
declare enum NftTokenMetadataStatus {
|
|
258
141
|
UNKNOWN = "UNKNOWN",
|
|
259
142
|
MISSING_TOKEN = "MISSING_TOKEN",
|
|
@@ -269,9 +152,6 @@ declare enum NftTokenMetadataStatus {
|
|
|
269
152
|
}
|
|
270
153
|
|
|
271
154
|
type Erc1155TokenMetadata = {
|
|
272
|
-
/**
|
|
273
|
-
* The metadata indexing status of the nft.
|
|
274
|
-
*/
|
|
275
155
|
indexStatus: NftTokenMetadataStatus;
|
|
276
156
|
metadataLastUpdatedTimestamp?: number;
|
|
277
157
|
name?: string;
|
|
@@ -310,9 +190,6 @@ declare namespace Erc1155TokenBalance {
|
|
|
310
190
|
}
|
|
311
191
|
|
|
312
192
|
type Erc721TokenMetadata = {
|
|
313
|
-
/**
|
|
314
|
-
* The metadata indexing status of the nft.
|
|
315
|
-
*/
|
|
316
193
|
indexStatus: NftTokenMetadataStatus;
|
|
317
194
|
metadataLastUpdatedTimestamp?: number;
|
|
318
195
|
name?: string;
|
|
@@ -485,7 +362,7 @@ declare class EvmBalancesService {
|
|
|
485
362
|
* @returns ListErc20BalancesResponse
|
|
486
363
|
* @throws ApiError
|
|
487
364
|
*/
|
|
488
|
-
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
365
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
|
|
489
366
|
/**
|
|
490
367
|
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
491
368
|
*/
|
|
@@ -506,6 +383,10 @@ declare class EvmBalancesService {
|
|
|
506
383
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
507
384
|
*/
|
|
508
385
|
pageSize?: number;
|
|
386
|
+
/**
|
|
387
|
+
* whether to filter out spam tokens from the response. Default is true.
|
|
388
|
+
*/
|
|
389
|
+
filterSpamTokens?: boolean;
|
|
509
390
|
/**
|
|
510
391
|
* A comma separated list of contract addresses to filter by.
|
|
511
392
|
*/
|
|
@@ -750,6 +631,9 @@ declare class EvmBlocksService {
|
|
|
750
631
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
751
632
|
}
|
|
752
633
|
|
|
634
|
+
/**
|
|
635
|
+
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
636
|
+
*/
|
|
753
637
|
declare enum ChainStatus {
|
|
754
638
|
OK = "OK",
|
|
755
639
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -787,9 +671,6 @@ declare enum VmName {
|
|
|
787
671
|
|
|
788
672
|
type GetChainResponse = {
|
|
789
673
|
chainId: string;
|
|
790
|
-
/**
|
|
791
|
-
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
792
|
-
*/
|
|
793
674
|
status: ChainStatus;
|
|
794
675
|
chainName: string;
|
|
795
676
|
description: string;
|
|
@@ -805,13 +686,16 @@ type GetChainResponse = {
|
|
|
805
686
|
networkToken: NetworkToken;
|
|
806
687
|
chainLogoUri?: string;
|
|
807
688
|
private?: boolean;
|
|
689
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
808
690
|
};
|
|
809
691
|
|
|
692
|
+
declare enum GlacierApiFeature {
|
|
693
|
+
NFT_INDEXING = "nftIndexing",
|
|
694
|
+
WEBHOOKS = "webhooks"
|
|
695
|
+
}
|
|
696
|
+
|
|
810
697
|
type ChainInfo = {
|
|
811
698
|
chainId: string;
|
|
812
|
-
/**
|
|
813
|
-
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
814
|
-
*/
|
|
815
699
|
status: ChainStatus;
|
|
816
700
|
chainName: string;
|
|
817
701
|
description: string;
|
|
@@ -827,6 +711,7 @@ type ChainInfo = {
|
|
|
827
711
|
networkToken: NetworkToken;
|
|
828
712
|
chainLogoUri?: string;
|
|
829
713
|
private?: boolean;
|
|
714
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
830
715
|
};
|
|
831
716
|
|
|
832
717
|
type ListChainsResponse = {
|
|
@@ -847,11 +732,15 @@ declare class EvmChainsService {
|
|
|
847
732
|
* @returns ListChainsResponse
|
|
848
733
|
* @throws ApiError
|
|
849
734
|
*/
|
|
850
|
-
supportedChains({ network, }: {
|
|
735
|
+
supportedChains({ network, feature, }: {
|
|
851
736
|
/**
|
|
852
737
|
* mainnet or testnet.
|
|
853
738
|
*/
|
|
854
739
|
network?: NetworkType;
|
|
740
|
+
/**
|
|
741
|
+
* Filter by feature.
|
|
742
|
+
*/
|
|
743
|
+
feature?: GlacierApiFeature;
|
|
855
744
|
}): CancelablePromise<ListChainsResponse>;
|
|
856
745
|
/**
|
|
857
746
|
* Get chain information
|
|
@@ -1306,6 +1195,9 @@ type Erc721TransferDetails = {
|
|
|
1306
1195
|
erc721Token: Erc721Token;
|
|
1307
1196
|
};
|
|
1308
1197
|
|
|
1198
|
+
/**
|
|
1199
|
+
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1200
|
+
*/
|
|
1309
1201
|
declare enum TransactionMethodType {
|
|
1310
1202
|
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1311
1203
|
CONTRACT_CALL = "CONTRACT_CALL",
|
|
@@ -1313,9 +1205,6 @@ declare enum TransactionMethodType {
|
|
|
1313
1205
|
}
|
|
1314
1206
|
|
|
1315
1207
|
type Method = {
|
|
1316
|
-
/**
|
|
1317
|
-
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1318
|
-
*/
|
|
1319
1208
|
callType: TransactionMethodType;
|
|
1320
1209
|
/**
|
|
1321
1210
|
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
@@ -1676,7 +1565,7 @@ type ListTransfersResponse = {
|
|
|
1676
1565
|
* 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.
|
|
1677
1566
|
*/
|
|
1678
1567
|
nextPageToken?: string;
|
|
1679
|
-
transfers:
|
|
1568
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1680
1569
|
};
|
|
1681
1570
|
|
|
1682
1571
|
declare enum SortOrder {
|
|
@@ -2047,7 +1936,7 @@ type ListNftTokens = {
|
|
|
2047
1936
|
* 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.
|
|
2048
1937
|
*/
|
|
2049
1938
|
nextPageToken?: string;
|
|
2050
|
-
tokens:
|
|
1939
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2051
1940
|
};
|
|
2052
1941
|
|
|
2053
1942
|
declare class NfTsService {
|
|
@@ -2124,8 +2013,12 @@ type EvmNetworkOptions = {
|
|
|
2124
2013
|
includeChains: Array<string>;
|
|
2125
2014
|
};
|
|
2126
2015
|
|
|
2016
|
+
declare enum EVMOperationType {
|
|
2017
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2127
2020
|
type CreateEvmTransactionExportRequest = {
|
|
2128
|
-
type:
|
|
2021
|
+
type: EVMOperationType;
|
|
2129
2022
|
firstDate: string;
|
|
2130
2023
|
lastDate: string;
|
|
2131
2024
|
/**
|
|
@@ -2138,20 +2031,21 @@ type CreateEvmTransactionExportRequest = {
|
|
|
2138
2031
|
endDate: string;
|
|
2139
2032
|
options: EvmNetworkOptions;
|
|
2140
2033
|
};
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2034
|
+
|
|
2035
|
+
declare enum PrimaryNetworkOperationType {
|
|
2036
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2037
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2038
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
2145
2039
|
}
|
|
2146
2040
|
|
|
2147
2041
|
type PrimaryNetworkOptions = {
|
|
2148
|
-
addresses
|
|
2042
|
+
addresses?: Array<string>;
|
|
2149
2043
|
cChainEvmAddresses?: Array<string>;
|
|
2150
2044
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2151
2045
|
};
|
|
2152
2046
|
|
|
2153
2047
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2154
|
-
type:
|
|
2048
|
+
type: PrimaryNetworkOperationType;
|
|
2155
2049
|
firstDate: string;
|
|
2156
2050
|
lastDate: string;
|
|
2157
2051
|
/**
|
|
@@ -2164,11 +2058,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
2164
2058
|
endDate: string;
|
|
2165
2059
|
options: PrimaryNetworkOptions;
|
|
2166
2060
|
};
|
|
2167
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
2168
|
-
enum type {
|
|
2169
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
2170
|
-
}
|
|
2171
|
-
}
|
|
2172
2061
|
|
|
2173
2062
|
declare enum OperationStatus {
|
|
2174
2063
|
RUNNING = "RUNNING",
|
|
@@ -2178,8 +2067,10 @@ declare enum OperationStatus {
|
|
|
2178
2067
|
}
|
|
2179
2068
|
|
|
2180
2069
|
declare enum OperationType {
|
|
2181
|
-
|
|
2182
|
-
|
|
2070
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2071
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2072
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2073
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2183
2074
|
}
|
|
2184
2075
|
|
|
2185
2076
|
declare enum OperationStatusCode {
|
|
@@ -2420,6 +2311,11 @@ type ListSubnetsResponse = {
|
|
|
2420
2311
|
subnets: Array<Subnet>;
|
|
2421
2312
|
};
|
|
2422
2313
|
|
|
2314
|
+
type BlsCredentials = {
|
|
2315
|
+
publicKey: string;
|
|
2316
|
+
proofOfPossession: string;
|
|
2317
|
+
};
|
|
2318
|
+
|
|
2423
2319
|
type Rewards = {
|
|
2424
2320
|
validationRewardAmount: string;
|
|
2425
2321
|
delegationRewardAmount: string;
|
|
@@ -2454,6 +2350,10 @@ type ActiveValidatorDetails = {
|
|
|
2454
2350
|
delegationFee?: string;
|
|
2455
2351
|
startTimestamp: number;
|
|
2456
2352
|
endTimestamp: number;
|
|
2353
|
+
/**
|
|
2354
|
+
* Present for AddPermissionlessValidatorTx
|
|
2355
|
+
*/
|
|
2356
|
+
blsCredentials?: BlsCredentials;
|
|
2457
2357
|
stakePercentage: number;
|
|
2458
2358
|
delegatorCount: number;
|
|
2459
2359
|
amountDelegated?: string;
|
|
@@ -2478,6 +2378,10 @@ type CompletedValidatorDetails = {
|
|
|
2478
2378
|
delegationFee?: string;
|
|
2479
2379
|
startTimestamp: number;
|
|
2480
2380
|
endTimestamp: number;
|
|
2381
|
+
/**
|
|
2382
|
+
* Present for AddPermissionlessValidatorTx
|
|
2383
|
+
*/
|
|
2384
|
+
blsCredentials?: BlsCredentials;
|
|
2481
2385
|
delegatorCount: number;
|
|
2482
2386
|
rewards: Rewards;
|
|
2483
2387
|
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
@@ -2496,6 +2400,10 @@ type PendingValidatorDetails = {
|
|
|
2496
2400
|
delegationFee?: string;
|
|
2497
2401
|
startTimestamp: number;
|
|
2498
2402
|
endTimestamp: number;
|
|
2403
|
+
/**
|
|
2404
|
+
* Present for AddPermissionlessValidatorTx
|
|
2405
|
+
*/
|
|
2406
|
+
blsCredentials?: BlsCredentials;
|
|
2499
2407
|
validationStatus: PendingValidatorDetails.validationStatus;
|
|
2500
2408
|
};
|
|
2501
2409
|
declare namespace PendingValidatorDetails {
|
|
@@ -2512,6 +2420,10 @@ type RemovedValidatorDetails = {
|
|
|
2512
2420
|
delegationFee?: string;
|
|
2513
2421
|
startTimestamp: number;
|
|
2514
2422
|
endTimestamp: number;
|
|
2423
|
+
/**
|
|
2424
|
+
* Present for AddPermissionlessValidatorTx
|
|
2425
|
+
*/
|
|
2426
|
+
blsCredentials?: BlsCredentials;
|
|
2515
2427
|
removeTxHash: string;
|
|
2516
2428
|
removeTimestamp: number;
|
|
2517
2429
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
@@ -2538,6 +2450,14 @@ declare enum Network {
|
|
|
2538
2450
|
FUJI = "fuji"
|
|
2539
2451
|
}
|
|
2540
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
|
+
|
|
2541
2461
|
declare enum ValidationStatusType {
|
|
2542
2462
|
COMPLETED = "completed",
|
|
2543
2463
|
ACTIVE = "active",
|
|
@@ -2545,11 +2465,17 @@ declare enum ValidationStatusType {
|
|
|
2545
2465
|
REMOVED = "removed"
|
|
2546
2466
|
}
|
|
2547
2467
|
|
|
2468
|
+
/**
|
|
2469
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2470
|
+
*/
|
|
2548
2471
|
declare enum PrimaryNetworkAssetCap {
|
|
2549
2472
|
FIXED = "fixed",
|
|
2550
2473
|
VARIABLE = "variable"
|
|
2551
2474
|
}
|
|
2552
2475
|
|
|
2476
|
+
/**
|
|
2477
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2478
|
+
*/
|
|
2553
2479
|
declare enum PrimaryNetworkAssetType {
|
|
2554
2480
|
SECP256K1 = "secp256k1",
|
|
2555
2481
|
NFT = "nft"
|
|
@@ -2572,17 +2498,11 @@ type XChainAssetDetails = {
|
|
|
2572
2498
|
* Denomination of this asset to represent fungibility.
|
|
2573
2499
|
*/
|
|
2574
2500
|
denomination: number;
|
|
2575
|
-
/**
|
|
2576
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2577
|
-
*/
|
|
2578
2501
|
type: PrimaryNetworkAssetType;
|
|
2579
2502
|
/**
|
|
2580
2503
|
* Timestamp in seconds this asset was created on.
|
|
2581
2504
|
*/
|
|
2582
2505
|
createdAtTimestamp: number;
|
|
2583
|
-
/**
|
|
2584
|
-
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2585
|
-
*/
|
|
2586
2506
|
cap: PrimaryNetworkAssetCap;
|
|
2587
2507
|
};
|
|
2588
2508
|
|
|
@@ -2697,7 +2617,7 @@ declare class PrimaryNetworkService {
|
|
|
2697
2617
|
* @returns ListValidatorDetailsResponse
|
|
2698
2618
|
* @throws ApiError
|
|
2699
2619
|
*/
|
|
2700
|
-
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, }: {
|
|
2701
2621
|
/**
|
|
2702
2622
|
* Either mainnet or a testnet.
|
|
2703
2623
|
*/
|
|
@@ -2714,6 +2634,12 @@ declare class PrimaryNetworkService {
|
|
|
2714
2634
|
* A comma separated list of node ids to filter by.
|
|
2715
2635
|
*/
|
|
2716
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;
|
|
2717
2643
|
/**
|
|
2718
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.
|
|
2719
2645
|
*/
|
|
@@ -2739,17 +2665,25 @@ declare class PrimaryNetworkService {
|
|
|
2739
2665
|
*/
|
|
2740
2666
|
maxTimeRemaining?: number;
|
|
2741
2667
|
/**
|
|
2742
|
-
* 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.
|
|
2743
2669
|
*/
|
|
2744
2670
|
minFeePercentage?: number;
|
|
2745
2671
|
/**
|
|
2746
|
-
* 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.
|
|
2747
2673
|
*/
|
|
2748
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;
|
|
2749
2683
|
/**
|
|
2750
2684
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2751
2685
|
*/
|
|
2752
|
-
subnetId?:
|
|
2686
|
+
subnetId?: any;
|
|
2753
2687
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2754
2688
|
/**
|
|
2755
2689
|
* Get single validator details
|
|
@@ -2757,7 +2691,7 @@ declare class PrimaryNetworkService {
|
|
|
2757
2691
|
* @returns ListValidatorDetailsResponse
|
|
2758
2692
|
* @throws ApiError
|
|
2759
2693
|
*/
|
|
2760
|
-
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize,
|
|
2694
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
2761
2695
|
/**
|
|
2762
2696
|
* Either mainnet or a testnet.
|
|
2763
2697
|
*/
|
|
@@ -2774,14 +2708,14 @@ declare class PrimaryNetworkService {
|
|
|
2774
2708
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2775
2709
|
*/
|
|
2776
2710
|
pageSize?: number;
|
|
2777
|
-
/**
|
|
2778
|
-
* 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.
|
|
2779
|
-
*/
|
|
2780
|
-
sortOrder?: SortOrder;
|
|
2781
2711
|
/**
|
|
2782
2712
|
* Validation status of the node.
|
|
2783
2713
|
*/
|
|
2784
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;
|
|
2785
2719
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2786
2720
|
/**
|
|
2787
2721
|
* List delegators
|
|
@@ -2849,9 +2783,6 @@ type CChainSharedAssetBalance = {
|
|
|
2849
2783
|
* Denomination of this asset to represent fungibility.
|
|
2850
2784
|
*/
|
|
2851
2785
|
denomination: number;
|
|
2852
|
-
/**
|
|
2853
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2854
|
-
*/
|
|
2855
2786
|
type: PrimaryNetworkAssetType;
|
|
2856
2787
|
/**
|
|
2857
2788
|
* Amount of the asset.
|
|
@@ -2887,7 +2818,7 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2887
2818
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2888
2819
|
};
|
|
2889
2820
|
|
|
2890
|
-
type
|
|
2821
|
+
type AggregatedAssetAmount = {
|
|
2891
2822
|
/**
|
|
2892
2823
|
* Unique ID for an asset.
|
|
2893
2824
|
*/
|
|
@@ -2904,14 +2835,12 @@ type Asset = {
|
|
|
2904
2835
|
* Denomination of this asset to represent fungibility.
|
|
2905
2836
|
*/
|
|
2906
2837
|
denomination: number;
|
|
2907
|
-
/**
|
|
2908
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2909
|
-
*/
|
|
2910
2838
|
type: PrimaryNetworkAssetType;
|
|
2911
2839
|
/**
|
|
2912
2840
|
* Amount of the asset.
|
|
2913
2841
|
*/
|
|
2914
2842
|
amount: string;
|
|
2843
|
+
utxoCount: number;
|
|
2915
2844
|
};
|
|
2916
2845
|
|
|
2917
2846
|
type PChainSharedAsset = {
|
|
@@ -2931,49 +2860,47 @@ type PChainSharedAsset = {
|
|
|
2931
2860
|
* Denomination of this asset to represent fungibility.
|
|
2932
2861
|
*/
|
|
2933
2862
|
denomination: number;
|
|
2934
|
-
/**
|
|
2935
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2936
|
-
*/
|
|
2937
2863
|
type: PrimaryNetworkAssetType;
|
|
2938
2864
|
/**
|
|
2939
2865
|
* Amount of the asset.
|
|
2940
2866
|
*/
|
|
2941
2867
|
amount: string;
|
|
2868
|
+
utxoCount: number;
|
|
2942
2869
|
sharedWithChainId: string;
|
|
2943
2870
|
status: string;
|
|
2944
2871
|
};
|
|
2945
2872
|
|
|
2946
2873
|
type PChainBalance = {
|
|
2947
2874
|
/**
|
|
2948
|
-
* A list of objects containing P-chain Asset
|
|
2875
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
|
|
2949
2876
|
*/
|
|
2950
|
-
unlockedUnstaked: Array<
|
|
2877
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2951
2878
|
/**
|
|
2952
|
-
* A list of objects containing P-chain Asset
|
|
2879
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
|
|
2953
2880
|
*/
|
|
2954
|
-
unlockedStaked: Array<
|
|
2881
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2955
2882
|
/**
|
|
2956
|
-
* A list of objects containing P-chain Asset
|
|
2883
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
|
|
2957
2884
|
*/
|
|
2958
|
-
lockedPlatform: Array<
|
|
2885
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2959
2886
|
/**
|
|
2960
|
-
* A list of objects containing P-chain Asset
|
|
2887
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
|
|
2961
2888
|
*/
|
|
2962
|
-
lockedStakeable: Array<
|
|
2889
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2963
2890
|
/**
|
|
2964
|
-
* A list of objects containing P-chain Asset
|
|
2891
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
|
|
2965
2892
|
*/
|
|
2966
|
-
lockedStaked: Array<
|
|
2893
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2967
2894
|
/**
|
|
2968
|
-
* A list of objects containing P-chain Asset
|
|
2895
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
|
|
2969
2896
|
*/
|
|
2970
|
-
pendingStaked: Array<
|
|
2897
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2971
2898
|
/**
|
|
2972
|
-
* A list of objects containing P-chain Asset
|
|
2899
|
+
* A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
|
|
2973
2900
|
*/
|
|
2974
2901
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2975
2902
|
/**
|
|
2976
|
-
* A list of objects containing P-chain Asset
|
|
2903
|
+
* A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
|
|
2977
2904
|
*/
|
|
2978
2905
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2979
2906
|
};
|
|
@@ -2983,34 +2910,6 @@ type ListPChainBalancesResponse = {
|
|
|
2983
2910
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2984
2911
|
};
|
|
2985
2912
|
|
|
2986
|
-
type XChainAssetBalance = {
|
|
2987
|
-
/**
|
|
2988
|
-
* Unique ID for an asset.
|
|
2989
|
-
*/
|
|
2990
|
-
assetId: string;
|
|
2991
|
-
/**
|
|
2992
|
-
* Name of this asset.
|
|
2993
|
-
*/
|
|
2994
|
-
name: string;
|
|
2995
|
-
/**
|
|
2996
|
-
* Symbol for this asset (max 4 characters).
|
|
2997
|
-
*/
|
|
2998
|
-
symbol: string;
|
|
2999
|
-
/**
|
|
3000
|
-
* Denomination of this asset to represent fungibility.
|
|
3001
|
-
*/
|
|
3002
|
-
denomination: number;
|
|
3003
|
-
/**
|
|
3004
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3005
|
-
*/
|
|
3006
|
-
type: PrimaryNetworkAssetType;
|
|
3007
|
-
/**
|
|
3008
|
-
* Amount of the asset.
|
|
3009
|
-
*/
|
|
3010
|
-
amount: string;
|
|
3011
|
-
utxoCount: number;
|
|
3012
|
-
};
|
|
3013
|
-
|
|
3014
2913
|
type XChainSharedAssetBalance = {
|
|
3015
2914
|
/**
|
|
3016
2915
|
* Unique ID for an asset.
|
|
@@ -3028,9 +2927,6 @@ type XChainSharedAssetBalance = {
|
|
|
3028
2927
|
* Denomination of this asset to represent fungibility.
|
|
3029
2928
|
*/
|
|
3030
2929
|
denomination: number;
|
|
3031
|
-
/**
|
|
3032
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3033
|
-
*/
|
|
3034
2930
|
type: PrimaryNetworkAssetType;
|
|
3035
2931
|
/**
|
|
3036
2932
|
* Amount of the asset.
|
|
@@ -3044,11 +2940,11 @@ type XChainBalances = {
|
|
|
3044
2940
|
/**
|
|
3045
2941
|
* A list of objects containing X-chain Asset balance information.
|
|
3046
2942
|
*/
|
|
3047
|
-
locked: Array<
|
|
2943
|
+
locked: Array<AggregatedAssetAmount>;
|
|
3048
2944
|
/**
|
|
3049
2945
|
* A list of objects containing X-chain Asset balance information.
|
|
3050
2946
|
*/
|
|
3051
|
-
unlocked: Array<
|
|
2947
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
3052
2948
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
3053
2949
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
3054
2950
|
};
|
|
@@ -3226,9 +3122,6 @@ type AssetWithPriceInfo = {
|
|
|
3226
3122
|
* Denomination of this asset to represent fungibility.
|
|
3227
3123
|
*/
|
|
3228
3124
|
denomination: number;
|
|
3229
|
-
/**
|
|
3230
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3231
|
-
*/
|
|
3232
3125
|
type: PrimaryNetworkAssetType;
|
|
3233
3126
|
/**
|
|
3234
3127
|
* Amount of the asset.
|
|
@@ -3271,6 +3164,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
3271
3164
|
historicalRewards: Array<HistoricalReward>;
|
|
3272
3165
|
};
|
|
3273
3166
|
|
|
3167
|
+
type AssetAmount = {
|
|
3168
|
+
/**
|
|
3169
|
+
* Unique ID for an asset.
|
|
3170
|
+
*/
|
|
3171
|
+
assetId: string;
|
|
3172
|
+
/**
|
|
3173
|
+
* Name of this asset.
|
|
3174
|
+
*/
|
|
3175
|
+
name: string;
|
|
3176
|
+
/**
|
|
3177
|
+
* Symbol for this asset (max 4 characters).
|
|
3178
|
+
*/
|
|
3179
|
+
symbol: string;
|
|
3180
|
+
/**
|
|
3181
|
+
* Denomination of this asset to represent fungibility.
|
|
3182
|
+
*/
|
|
3183
|
+
denomination: number;
|
|
3184
|
+
type: PrimaryNetworkAssetType;
|
|
3185
|
+
/**
|
|
3186
|
+
* Amount of the asset.
|
|
3187
|
+
*/
|
|
3188
|
+
amount: string;
|
|
3189
|
+
};
|
|
3190
|
+
|
|
3274
3191
|
type PendingReward = {
|
|
3275
3192
|
/**
|
|
3276
3193
|
* An array of P-Chain wallet addresses.
|
|
@@ -3284,9 +3201,9 @@ type PendingReward = {
|
|
|
3284
3201
|
rewardType: RewardType;
|
|
3285
3202
|
progress: number;
|
|
3286
3203
|
/**
|
|
3287
|
-
* An object containing P-chain Asset
|
|
3204
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3288
3205
|
*/
|
|
3289
|
-
estimatedReward:
|
|
3206
|
+
estimatedReward: AssetAmount;
|
|
3290
3207
|
};
|
|
3291
3208
|
|
|
3292
3209
|
type ListPendingRewardsResponse = {
|
|
@@ -3387,9 +3304,9 @@ type EVMInput = {
|
|
|
3387
3304
|
*/
|
|
3388
3305
|
fromAddress: string;
|
|
3389
3306
|
/**
|
|
3390
|
-
*
|
|
3307
|
+
* AssetAmount details for the asset being transferred.
|
|
3391
3308
|
*/
|
|
3392
|
-
asset:
|
|
3309
|
+
asset: AssetAmount;
|
|
3393
3310
|
/**
|
|
3394
3311
|
* Credentials that signed this transaction.
|
|
3395
3312
|
*/
|
|
@@ -3401,7 +3318,7 @@ type Utxo = {
|
|
|
3401
3318
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3402
3319
|
*/
|
|
3403
3320
|
addresses: Array<string>;
|
|
3404
|
-
asset:
|
|
3321
|
+
asset: AssetAmount;
|
|
3405
3322
|
/**
|
|
3406
3323
|
* Blockchain ID on which this output is consumed on.
|
|
3407
3324
|
*/
|
|
@@ -3484,11 +3401,11 @@ type CChainExportTransaction = {
|
|
|
3484
3401
|
/**
|
|
3485
3402
|
* Assets unlocked by inputs of this transaction.
|
|
3486
3403
|
*/
|
|
3487
|
-
amountUnlocked: Array<
|
|
3404
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3488
3405
|
/**
|
|
3489
3406
|
* Assets created by outputs of this transaction.
|
|
3490
3407
|
*/
|
|
3491
|
-
amountCreated: Array<
|
|
3408
|
+
amountCreated: Array<AssetAmount>;
|
|
3492
3409
|
/**
|
|
3493
3410
|
* Source chain for an atomic transaction.
|
|
3494
3411
|
*/
|
|
@@ -3519,9 +3436,9 @@ type EVMOutput = {
|
|
|
3519
3436
|
*/
|
|
3520
3437
|
toAddress: string;
|
|
3521
3438
|
/**
|
|
3522
|
-
*
|
|
3439
|
+
* AssetAmount details for the asset being transferred.
|
|
3523
3440
|
*/
|
|
3524
|
-
asset:
|
|
3441
|
+
asset: AssetAmount;
|
|
3525
3442
|
};
|
|
3526
3443
|
|
|
3527
3444
|
type CChainImportTransaction = {
|
|
@@ -3548,11 +3465,11 @@ type CChainImportTransaction = {
|
|
|
3548
3465
|
/**
|
|
3549
3466
|
* Assets unlocked by inputs of this transaction.
|
|
3550
3467
|
*/
|
|
3551
|
-
amountUnlocked: Array<
|
|
3468
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3552
3469
|
/**
|
|
3553
3470
|
* Assets created by outputs of this transaction.
|
|
3554
3471
|
*/
|
|
3555
|
-
amountCreated: Array<
|
|
3472
|
+
amountCreated: Array<AssetAmount>;
|
|
3556
3473
|
/**
|
|
3557
3474
|
* Source chain for an atomic transaction.
|
|
3558
3475
|
*/
|
|
@@ -3615,7 +3532,7 @@ type PChainUtxo = {
|
|
|
3615
3532
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3616
3533
|
*/
|
|
3617
3534
|
addresses: Array<string>;
|
|
3618
|
-
asset:
|
|
3535
|
+
asset: AssetAmount;
|
|
3619
3536
|
/**
|
|
3620
3537
|
* Blockchain ID on which this output is consumed on.
|
|
3621
3538
|
*/
|
|
@@ -3679,17 +3596,17 @@ type PChainTransaction = {
|
|
|
3679
3596
|
*/
|
|
3680
3597
|
destinationChain?: string;
|
|
3681
3598
|
/**
|
|
3682
|
-
* A list of objects containing P-chain Asset
|
|
3599
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3683
3600
|
*/
|
|
3684
|
-
value: Array<
|
|
3601
|
+
value: Array<AssetAmount>;
|
|
3685
3602
|
/**
|
|
3686
|
-
* A list of objects containing P-chain Asset
|
|
3603
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3687
3604
|
*/
|
|
3688
|
-
amountBurned: Array<
|
|
3605
|
+
amountBurned: Array<AssetAmount>;
|
|
3689
3606
|
/**
|
|
3690
|
-
* A list of objects containing P-chain Asset
|
|
3607
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3691
3608
|
*/
|
|
3692
|
-
amountStaked: Array<
|
|
3609
|
+
amountStaked: Array<AssetAmount>;
|
|
3693
3610
|
/**
|
|
3694
3611
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3695
3612
|
*/
|
|
@@ -3725,6 +3642,10 @@ type PChainTransaction = {
|
|
|
3725
3642
|
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3726
3643
|
*/
|
|
3727
3644
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3645
|
+
/**
|
|
3646
|
+
* Present for AddPermissionlessValidatorTx
|
|
3647
|
+
*/
|
|
3648
|
+
blsCredentials?: BlsCredentials;
|
|
3728
3649
|
};
|
|
3729
3650
|
|
|
3730
3651
|
type ListPChainTransactionsResponse = {
|
|
@@ -3736,6 +3657,9 @@ type ListPChainTransactionsResponse = {
|
|
|
3736
3657
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3737
3658
|
};
|
|
3738
3659
|
|
|
3660
|
+
/**
|
|
3661
|
+
* Type of transaction.
|
|
3662
|
+
*/
|
|
3739
3663
|
declare enum XChainTransactionType {
|
|
3740
3664
|
BASE_TX = "BaseTx",
|
|
3741
3665
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3758,9 +3682,6 @@ type XChainLinearTransaction = {
|
|
|
3758
3682
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3759
3683
|
*/
|
|
3760
3684
|
timestamp: number;
|
|
3761
|
-
/**
|
|
3762
|
-
* Type of transaction.
|
|
3763
|
-
*/
|
|
3764
3685
|
txType: XChainTransactionType;
|
|
3765
3686
|
/**
|
|
3766
3687
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3771,11 +3692,11 @@ type XChainLinearTransaction = {
|
|
|
3771
3692
|
/**
|
|
3772
3693
|
* Assets unlocked by inputs of this transaction.
|
|
3773
3694
|
*/
|
|
3774
|
-
amountUnlocked: Array<
|
|
3695
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3775
3696
|
/**
|
|
3776
3697
|
* Assets created by outputs of this transaction.
|
|
3777
3698
|
*/
|
|
3778
|
-
amountCreated: Array<
|
|
3699
|
+
amountCreated: Array<AssetAmount>;
|
|
3779
3700
|
/**
|
|
3780
3701
|
* Source chain for an atomic transaction.
|
|
3781
3702
|
*/
|
|
@@ -3785,7 +3706,7 @@ type XChainLinearTransaction = {
|
|
|
3785
3706
|
*/
|
|
3786
3707
|
destinationChain?: string;
|
|
3787
3708
|
/**
|
|
3788
|
-
*
|
|
3709
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3789
3710
|
*/
|
|
3790
3711
|
assetCreated?: XChainAssetDetails;
|
|
3791
3712
|
/**
|
|
@@ -3835,9 +3756,6 @@ type XChainNonLinearTransaction = {
|
|
|
3835
3756
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3836
3757
|
*/
|
|
3837
3758
|
timestamp: number;
|
|
3838
|
-
/**
|
|
3839
|
-
* Type of transaction.
|
|
3840
|
-
*/
|
|
3841
3759
|
txType: XChainTransactionType;
|
|
3842
3760
|
/**
|
|
3843
3761
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3848,11 +3766,11 @@ type XChainNonLinearTransaction = {
|
|
|
3848
3766
|
/**
|
|
3849
3767
|
* Assets unlocked by inputs of this transaction.
|
|
3850
3768
|
*/
|
|
3851
|
-
amountUnlocked: Array<
|
|
3769
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3852
3770
|
/**
|
|
3853
3771
|
* Assets created by outputs of this transaction.
|
|
3854
3772
|
*/
|
|
3855
|
-
amountCreated: Array<
|
|
3773
|
+
amountCreated: Array<AssetAmount>;
|
|
3856
3774
|
/**
|
|
3857
3775
|
* Source chain for an atomic transaction.
|
|
3858
3776
|
*/
|
|
@@ -3862,7 +3780,7 @@ type XChainNonLinearTransaction = {
|
|
|
3862
3780
|
*/
|
|
3863
3781
|
destinationChain?: string;
|
|
3864
3782
|
/**
|
|
3865
|
-
*
|
|
3783
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3866
3784
|
*/
|
|
3867
3785
|
assetCreated?: XChainAssetDetails;
|
|
3868
3786
|
/**
|
|
@@ -4236,31 +4154,494 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4236
4154
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4237
4155
|
}
|
|
4238
4156
|
|
|
4239
|
-
type
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
readonly evmChains: EvmChainsService;
|
|
4245
|
-
readonly evmContracts: EvmContractsService;
|
|
4246
|
-
readonly evmTransactions: EvmTransactionsService;
|
|
4247
|
-
readonly healthCheck: HealthCheckService;
|
|
4248
|
-
readonly nfTs: NfTsService;
|
|
4249
|
-
readonly operations: OperationsService;
|
|
4250
|
-
readonly primaryNetwork: PrimaryNetworkService;
|
|
4251
|
-
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
4252
|
-
readonly primaryNetworkBlocks: PrimaryNetworkBlocksService;
|
|
4253
|
-
readonly primaryNetworkRewards: PrimaryNetworkRewardsService;
|
|
4254
|
-
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4255
|
-
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4256
|
-
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4257
|
-
readonly request: BaseHttpRequest;
|
|
4258
|
-
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
4259
|
-
}
|
|
4157
|
+
type RpcErrorDto = {
|
|
4158
|
+
code: number;
|
|
4159
|
+
message: string;
|
|
4160
|
+
data?: Record<string, any>;
|
|
4161
|
+
};
|
|
4260
4162
|
|
|
4261
|
-
type
|
|
4262
|
-
|
|
4263
|
-
|
|
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
|
+
|
|
4200
|
+
type TeleporterDestinationTransaction = {
|
|
4201
|
+
txHash: string;
|
|
4202
|
+
timestamp: number;
|
|
4203
|
+
gasSpent: string;
|
|
4204
|
+
rewardRedeemer: string;
|
|
4205
|
+
delivererAddress: string;
|
|
4206
|
+
};
|
|
4207
|
+
|
|
4208
|
+
type TeleporterReceipt = {
|
|
4209
|
+
receivedMessageNonce: string;
|
|
4210
|
+
relayerRewardAddress: string;
|
|
4211
|
+
};
|
|
4212
|
+
|
|
4213
|
+
type TeleporterRewardDetails = {
|
|
4214
|
+
/**
|
|
4215
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
4216
|
+
*/
|
|
4217
|
+
address: string;
|
|
4218
|
+
/**
|
|
4219
|
+
* The contract name.
|
|
4220
|
+
*/
|
|
4221
|
+
name: string;
|
|
4222
|
+
/**
|
|
4223
|
+
* The contract symbol.
|
|
4224
|
+
*/
|
|
4225
|
+
symbol: string;
|
|
4226
|
+
/**
|
|
4227
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
4228
|
+
*/
|
|
4229
|
+
decimals: number;
|
|
4230
|
+
/**
|
|
4231
|
+
* The logo uri for the address.
|
|
4232
|
+
*/
|
|
4233
|
+
logoUri?: string;
|
|
4234
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
4235
|
+
/**
|
|
4236
|
+
* The token price, if available.
|
|
4237
|
+
*/
|
|
4238
|
+
price?: Money;
|
|
4239
|
+
value: string;
|
|
4240
|
+
};
|
|
4241
|
+
declare namespace TeleporterRewardDetails {
|
|
4242
|
+
enum ercType {
|
|
4243
|
+
ERC_20 = "ERC-20"
|
|
4244
|
+
}
|
|
4245
|
+
}
|
|
4246
|
+
|
|
4247
|
+
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4248
|
+
messageId: string;
|
|
4249
|
+
teleporterContractAddress: string;
|
|
4250
|
+
sourceBlockchainId: string;
|
|
4251
|
+
destinationBlockchainId: string;
|
|
4252
|
+
sourceEvmChainId: string;
|
|
4253
|
+
destinationEvmChainId: string;
|
|
4254
|
+
messageNonce: string;
|
|
4255
|
+
from: string;
|
|
4256
|
+
to: string;
|
|
4257
|
+
data?: string;
|
|
4258
|
+
messageExecuted: boolean;
|
|
4259
|
+
receipts: Array<TeleporterReceipt>;
|
|
4260
|
+
receiptDelivered: boolean;
|
|
4261
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4262
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4263
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4264
|
+
};
|
|
4265
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4266
|
+
enum status {
|
|
4267
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4268
|
+
}
|
|
4269
|
+
}
|
|
4270
|
+
|
|
4271
|
+
type TeleporterSourceTransaction = {
|
|
4272
|
+
txHash: string;
|
|
4273
|
+
timestamp: number;
|
|
4274
|
+
gasSpent: string;
|
|
4275
|
+
};
|
|
4276
|
+
|
|
4277
|
+
type DeliveredTeleporterMessage = {
|
|
4278
|
+
messageId: string;
|
|
4279
|
+
teleporterContractAddress: string;
|
|
4280
|
+
sourceBlockchainId: string;
|
|
4281
|
+
destinationBlockchainId: string;
|
|
4282
|
+
sourceEvmChainId: string;
|
|
4283
|
+
destinationEvmChainId: string;
|
|
4284
|
+
messageNonce: string;
|
|
4285
|
+
from: string;
|
|
4286
|
+
to: string;
|
|
4287
|
+
data?: string;
|
|
4288
|
+
messageExecuted: boolean;
|
|
4289
|
+
receipts: Array<TeleporterReceipt>;
|
|
4290
|
+
receiptDelivered: boolean;
|
|
4291
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4292
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4293
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4294
|
+
status: DeliveredTeleporterMessage.status;
|
|
4295
|
+
};
|
|
4296
|
+
declare namespace DeliveredTeleporterMessage {
|
|
4297
|
+
enum status {
|
|
4298
|
+
DELIVERED = "delivered"
|
|
4299
|
+
}
|
|
4300
|
+
}
|
|
4301
|
+
|
|
4302
|
+
type PendingTeleporterMessage = {
|
|
4303
|
+
messageId: string;
|
|
4304
|
+
teleporterContractAddress: string;
|
|
4305
|
+
sourceBlockchainId: string;
|
|
4306
|
+
destinationBlockchainId: string;
|
|
4307
|
+
sourceEvmChainId: string;
|
|
4308
|
+
destinationEvmChainId: string;
|
|
4309
|
+
messageNonce: string;
|
|
4310
|
+
from: string;
|
|
4311
|
+
to: string;
|
|
4312
|
+
data?: string;
|
|
4313
|
+
messageExecuted: boolean;
|
|
4314
|
+
receipts: Array<TeleporterReceipt>;
|
|
4315
|
+
receiptDelivered: boolean;
|
|
4316
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4317
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4318
|
+
status: PendingTeleporterMessage.status;
|
|
4319
|
+
};
|
|
4320
|
+
declare namespace PendingTeleporterMessage {
|
|
4321
|
+
enum status {
|
|
4322
|
+
PENDING = "pending"
|
|
4323
|
+
}
|
|
4324
|
+
}
|
|
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
|
+
|
|
4334
|
+
declare class TeleporterService {
|
|
4335
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4336
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4337
|
+
/**
|
|
4338
|
+
* Get a teleporter message
|
|
4339
|
+
* Gets a teleporter message by message ID.
|
|
4340
|
+
* @returns any
|
|
4341
|
+
* @throws ApiError
|
|
4342
|
+
*/
|
|
4343
|
+
getTeleporterMessage({ messageId, }: {
|
|
4344
|
+
/**
|
|
4345
|
+
* The message ID of the teleporter message.
|
|
4346
|
+
*/
|
|
4347
|
+
messageId: string;
|
|
4348
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4349
|
+
/**
|
|
4350
|
+
* List teleporter messages
|
|
4351
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4352
|
+
* @returns ListTeleporterMessagesResponse
|
|
4353
|
+
* @throws ApiError
|
|
4354
|
+
*/
|
|
4355
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
|
|
4356
|
+
/**
|
|
4357
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4358
|
+
*/
|
|
4359
|
+
pageToken?: string;
|
|
4360
|
+
/**
|
|
4361
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4362
|
+
*/
|
|
4363
|
+
pageSize?: number;
|
|
4364
|
+
/**
|
|
4365
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4366
|
+
*/
|
|
4367
|
+
sourceBlockchainId?: string;
|
|
4368
|
+
/**
|
|
4369
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4370
|
+
*/
|
|
4371
|
+
destinationBlockchainId?: string;
|
|
4372
|
+
/**
|
|
4373
|
+
* The address of the recipient of the teleporter message.
|
|
4374
|
+
*/
|
|
4375
|
+
to?: string;
|
|
4376
|
+
/**
|
|
4377
|
+
* The address of the sender of the teleporter message.
|
|
4378
|
+
*/
|
|
4379
|
+
from?: string;
|
|
4380
|
+
/**
|
|
4381
|
+
* mainnet or testnet.
|
|
4382
|
+
*/
|
|
4383
|
+
network?: NetworkType;
|
|
4384
|
+
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4385
|
+
}
|
|
4386
|
+
|
|
4387
|
+
type AddressesChangeRequest = {
|
|
4388
|
+
/**
|
|
4389
|
+
* Ethereum address(es) for the address_activity event type
|
|
4390
|
+
*/
|
|
4391
|
+
addresses: Array<any[]>;
|
|
4392
|
+
};
|
|
4393
|
+
|
|
4394
|
+
type AddressActivityMetadata = {
|
|
4395
|
+
/**
|
|
4396
|
+
* Ethereum address(es) for the address_activity event type
|
|
4397
|
+
*/
|
|
4398
|
+
addresses: Array<string>;
|
|
4399
|
+
/**
|
|
4400
|
+
* Array of hexadecimal strings of the event signatures.
|
|
4401
|
+
*/
|
|
4402
|
+
eventSignatures?: Array<string>;
|
|
4403
|
+
};
|
|
4404
|
+
|
|
4405
|
+
declare enum EventType {
|
|
4406
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
4407
|
+
}
|
|
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
|
+
|
|
4435
|
+
declare enum WebhookStatusType {
|
|
4436
|
+
ACTIVE = "active",
|
|
4437
|
+
INACTIVE = "inactive"
|
|
4438
|
+
}
|
|
4439
|
+
|
|
4440
|
+
type WebhookResponse = {
|
|
4441
|
+
id: string;
|
|
4442
|
+
eventType: EventType;
|
|
4443
|
+
metadata: AddressActivityMetadata;
|
|
4444
|
+
/**
|
|
4445
|
+
* Whether to include traces in the webhook payload.
|
|
4446
|
+
*/
|
|
4447
|
+
includeInternalTxs?: boolean;
|
|
4448
|
+
/**
|
|
4449
|
+
* Whether to include logs in the webhook payload.
|
|
4450
|
+
*/
|
|
4451
|
+
includeLogs?: boolean;
|
|
4452
|
+
url: string;
|
|
4453
|
+
chainId: string;
|
|
4454
|
+
status: WebhookStatusType;
|
|
4455
|
+
createdAt: number;
|
|
4456
|
+
name: string;
|
|
4457
|
+
description: string;
|
|
4458
|
+
};
|
|
4459
|
+
|
|
4460
|
+
type ListWebhooksResponse = {
|
|
4461
|
+
/**
|
|
4462
|
+
* 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.
|
|
4463
|
+
*/
|
|
4464
|
+
nextPageToken?: string;
|
|
4465
|
+
webhooks: Array<WebhookResponse>;
|
|
4466
|
+
};
|
|
4467
|
+
|
|
4468
|
+
type SharedSecretsResponse = {
|
|
4469
|
+
secret: string;
|
|
4470
|
+
};
|
|
4471
|
+
|
|
4472
|
+
type UpdateWebhookRequest = {
|
|
4473
|
+
name?: string;
|
|
4474
|
+
description?: string;
|
|
4475
|
+
url?: string;
|
|
4476
|
+
status?: WebhookStatusType;
|
|
4477
|
+
includeInternalTxs?: boolean;
|
|
4478
|
+
includeLogs?: boolean;
|
|
4479
|
+
};
|
|
4480
|
+
|
|
4481
|
+
declare enum WebhookStatus {
|
|
4482
|
+
ACTIVE = "active",
|
|
4483
|
+
INACTIVE = "inactive"
|
|
4484
|
+
}
|
|
4485
|
+
|
|
4486
|
+
declare class WebhooksService {
|
|
4487
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4488
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4489
|
+
/**
|
|
4490
|
+
* Create a webhook
|
|
4491
|
+
* Create a new webhook.
|
|
4492
|
+
* @returns WebhookResponse
|
|
4493
|
+
* @throws ApiError
|
|
4494
|
+
*/
|
|
4495
|
+
createWebhook({ requestBody, }: {
|
|
4496
|
+
requestBody: CreateWebhookRequest;
|
|
4497
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4498
|
+
/**
|
|
4499
|
+
* List webhooks
|
|
4500
|
+
* Lists webhooks for the user.
|
|
4501
|
+
* @returns ListWebhooksResponse
|
|
4502
|
+
* @throws ApiError
|
|
4503
|
+
*/
|
|
4504
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
4505
|
+
/**
|
|
4506
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4507
|
+
*/
|
|
4508
|
+
pageToken?: string;
|
|
4509
|
+
/**
|
|
4510
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4511
|
+
*/
|
|
4512
|
+
pageSize?: number;
|
|
4513
|
+
/**
|
|
4514
|
+
* Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
|
|
4515
|
+
*/
|
|
4516
|
+
status?: WebhookStatus;
|
|
4517
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
4518
|
+
/**
|
|
4519
|
+
* Get a webhook by ID
|
|
4520
|
+
* Retrieves a webhook by ID.
|
|
4521
|
+
* @returns WebhookResponse
|
|
4522
|
+
* @throws ApiError
|
|
4523
|
+
*/
|
|
4524
|
+
getWebhook({ id, }: {
|
|
4525
|
+
/**
|
|
4526
|
+
* The webhook identifier.
|
|
4527
|
+
*/
|
|
4528
|
+
id: string;
|
|
4529
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4530
|
+
/**
|
|
4531
|
+
* Deactivate a webhook
|
|
4532
|
+
* Deactivates a webhook by ID.
|
|
4533
|
+
* @returns WebhookResponse
|
|
4534
|
+
* @throws ApiError
|
|
4535
|
+
*/
|
|
4536
|
+
deactivateWebhook({ id, }: {
|
|
4537
|
+
/**
|
|
4538
|
+
* The webhook identifier.
|
|
4539
|
+
*/
|
|
4540
|
+
id: string;
|
|
4541
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4542
|
+
/**
|
|
4543
|
+
* Update a webhook
|
|
4544
|
+
* Updates an existing webhook.
|
|
4545
|
+
* @returns WebhookResponse
|
|
4546
|
+
* @throws ApiError
|
|
4547
|
+
*/
|
|
4548
|
+
updateWebhook({ id, requestBody, }: {
|
|
4549
|
+
/**
|
|
4550
|
+
* The webhook identifier.
|
|
4551
|
+
*/
|
|
4552
|
+
id: string;
|
|
4553
|
+
requestBody: UpdateWebhookRequest;
|
|
4554
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4555
|
+
/**
|
|
4556
|
+
* Generate a shared secret
|
|
4557
|
+
* Generates a new shared secret.
|
|
4558
|
+
* @returns SharedSecretsResponse
|
|
4559
|
+
* @throws ApiError
|
|
4560
|
+
*/
|
|
4561
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4562
|
+
/**
|
|
4563
|
+
* Get a shared secret
|
|
4564
|
+
* Get a previously generated shared secret.
|
|
4565
|
+
* @returns SharedSecretsResponse
|
|
4566
|
+
* @throws ApiError
|
|
4567
|
+
*/
|
|
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>;
|
|
4615
|
+
}
|
|
4616
|
+
|
|
4617
|
+
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
4618
|
+
declare class Glacier {
|
|
4619
|
+
readonly default: DefaultService;
|
|
4620
|
+
readonly evmBalances: EvmBalancesService;
|
|
4621
|
+
readonly evmBlocks: EvmBlocksService;
|
|
4622
|
+
readonly evmChains: EvmChainsService;
|
|
4623
|
+
readonly evmContracts: EvmContractsService;
|
|
4624
|
+
readonly evmTransactions: EvmTransactionsService;
|
|
4625
|
+
readonly healthCheck: HealthCheckService;
|
|
4626
|
+
readonly nfTs: NfTsService;
|
|
4627
|
+
readonly operations: OperationsService;
|
|
4628
|
+
readonly primaryNetwork: PrimaryNetworkService;
|
|
4629
|
+
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
4630
|
+
readonly primaryNetworkBlocks: PrimaryNetworkBlocksService;
|
|
4631
|
+
readonly primaryNetworkRewards: PrimaryNetworkRewardsService;
|
|
4632
|
+
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4633
|
+
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4634
|
+
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4635
|
+
readonly rpc: RpcService;
|
|
4636
|
+
readonly teleporter: TeleporterService;
|
|
4637
|
+
readonly webhooks: WebhooksService;
|
|
4638
|
+
readonly request: BaseHttpRequest;
|
|
4639
|
+
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
4640
|
+
}
|
|
4641
|
+
|
|
4642
|
+
type ApiResult = {
|
|
4643
|
+
readonly url: string;
|
|
4644
|
+
readonly ok: boolean;
|
|
4264
4645
|
readonly status: number;
|
|
4265
4646
|
readonly statusText: string;
|
|
4266
4647
|
readonly body: any;
|
|
@@ -4275,4 +4656,11 @@ declare class ApiError extends Error {
|
|
|
4275
4656
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4276
4657
|
}
|
|
4277
4658
|
|
|
4278
|
-
|
|
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 };
|