@avalabs/glacier-sdk 2.8.0-canary.f5f193e.0 → 2.8.0-canary.f701e46.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 +553 -261
- package/dist/index.js +274 -111
- 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 +41 -36
- package/esm/generated/core/OpenAPI.d.ts +5 -5
- package/esm/generated/core/request.js +25 -9
- 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/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/CreateEvmTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CurrencyCode.d.ts +3 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -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 +5 -0
- package/esm/generated/models/GlacierApiFeature.js +6 -0
- package/esm/generated/models/ListNftTokens.d.ts +1 -1
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- 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/PChainTransactionType.d.ts +2 -0
- package/esm/generated/models/PChainTransactionType.js +2 -0
- 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 +27 -0
- package/esm/generated/models/PendingTeleporterMessage.js +8 -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/PrimaryNetworkTxType.d.ts +2 -1
- package/esm/generated/models/PrimaryNetworkTxType.js +2 -1
- package/esm/generated/models/RegisterWebhookRequest.d.ts +8 -3
- 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/Subnet.d.ts +17 -0
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -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/EvmChainsService.d.ts +6 -1
- package/esm/generated/services/EvmChainsService.js +4 -2
- package/esm/generated/services/PrimaryNetworkService.d.ts +1 -1
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/RpcService.d.ts +25 -0
- package/esm/generated/services/RpcService.js +24 -0
- package/esm/generated/services/TeleporterService.d.ts +57 -0
- package/esm/generated/services/TeleporterService.js +39 -0
- package/esm/generated/services/WebhooksService.d.ts +95 -0
- package/esm/generated/services/WebhooksService.js +80 -0
- package/esm/index.d.ts +22 -2
- package/esm/index.js +10 -2
- package/package.json +3 -3
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
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>;
|
|
@@ -46,11 +40,11 @@ type OpenAPIConfig = {
|
|
|
46
40
|
VERSION: string;
|
|
47
41
|
WITH_CREDENTIALS: boolean;
|
|
48
42
|
CREDENTIALS: 'include' | 'omit' | 'same-origin';
|
|
49
|
-
TOKEN?: string | Resolver<string
|
|
50
|
-
USERNAME?: string | Resolver<string
|
|
51
|
-
PASSWORD?: string | Resolver<string
|
|
52
|
-
HEADERS?: Headers | Resolver<Headers
|
|
53
|
-
ENCODE_PATH?: (path: string) => string;
|
|
43
|
+
TOKEN?: string | Resolver<string> | undefined;
|
|
44
|
+
USERNAME?: string | Resolver<string> | undefined;
|
|
45
|
+
PASSWORD?: string | Resolver<string> | undefined;
|
|
46
|
+
HEADERS?: Headers | Resolver<Headers> | undefined;
|
|
47
|
+
ENCODE_PATH?: ((path: string) => string) | undefined;
|
|
54
48
|
};
|
|
55
49
|
declare const OpenAPI: OpenAPIConfig;
|
|
56
50
|
|
|
@@ -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;
|
|
@@ -750,6 +627,9 @@ declare class EvmBlocksService {
|
|
|
750
627
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
751
628
|
}
|
|
752
629
|
|
|
630
|
+
/**
|
|
631
|
+
* 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.
|
|
632
|
+
*/
|
|
753
633
|
declare enum ChainStatus {
|
|
754
634
|
OK = "OK",
|
|
755
635
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -787,9 +667,6 @@ declare enum VmName {
|
|
|
787
667
|
|
|
788
668
|
type GetChainResponse = {
|
|
789
669
|
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
670
|
status: ChainStatus;
|
|
794
671
|
chainName: string;
|
|
795
672
|
description: string;
|
|
@@ -805,13 +682,15 @@ type GetChainResponse = {
|
|
|
805
682
|
networkToken: NetworkToken;
|
|
806
683
|
chainLogoUri?: string;
|
|
807
684
|
private?: boolean;
|
|
685
|
+
enabledFeatures?: Array<'nftIndexing'>;
|
|
808
686
|
};
|
|
809
687
|
|
|
688
|
+
declare enum GlacierApiFeature {
|
|
689
|
+
NFT_INDEXING = "nftIndexing"
|
|
690
|
+
}
|
|
691
|
+
|
|
810
692
|
type ChainInfo = {
|
|
811
693
|
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
694
|
status: ChainStatus;
|
|
816
695
|
chainName: string;
|
|
817
696
|
description: string;
|
|
@@ -827,6 +706,7 @@ type ChainInfo = {
|
|
|
827
706
|
networkToken: NetworkToken;
|
|
828
707
|
chainLogoUri?: string;
|
|
829
708
|
private?: boolean;
|
|
709
|
+
enabledFeatures?: Array<'nftIndexing'>;
|
|
830
710
|
};
|
|
831
711
|
|
|
832
712
|
type ListChainsResponse = {
|
|
@@ -847,11 +727,15 @@ declare class EvmChainsService {
|
|
|
847
727
|
* @returns ListChainsResponse
|
|
848
728
|
* @throws ApiError
|
|
849
729
|
*/
|
|
850
|
-
supportedChains({ network, }: {
|
|
730
|
+
supportedChains({ network, feature, }: {
|
|
851
731
|
/**
|
|
852
732
|
* mainnet or testnet.
|
|
853
733
|
*/
|
|
854
734
|
network?: NetworkType;
|
|
735
|
+
/**
|
|
736
|
+
* Filter by feature.
|
|
737
|
+
*/
|
|
738
|
+
feature?: GlacierApiFeature;
|
|
855
739
|
}): CancelablePromise<ListChainsResponse>;
|
|
856
740
|
/**
|
|
857
741
|
* Get chain information
|
|
@@ -1306,6 +1190,9 @@ type Erc721TransferDetails = {
|
|
|
1306
1190
|
erc721Token: Erc721Token;
|
|
1307
1191
|
};
|
|
1308
1192
|
|
|
1193
|
+
/**
|
|
1194
|
+
* 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.
|
|
1195
|
+
*/
|
|
1309
1196
|
declare enum TransactionMethodType {
|
|
1310
1197
|
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1311
1198
|
CONTRACT_CALL = "CONTRACT_CALL",
|
|
@@ -1313,9 +1200,6 @@ declare enum TransactionMethodType {
|
|
|
1313
1200
|
}
|
|
1314
1201
|
|
|
1315
1202
|
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
1203
|
callType: TransactionMethodType;
|
|
1320
1204
|
/**
|
|
1321
1205
|
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
@@ -1676,7 +1560,7 @@ type ListTransfersResponse = {
|
|
|
1676
1560
|
* 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
1561
|
*/
|
|
1678
1562
|
nextPageToken?: string;
|
|
1679
|
-
transfers:
|
|
1563
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1680
1564
|
};
|
|
1681
1565
|
|
|
1682
1566
|
declare enum SortOrder {
|
|
@@ -2047,7 +1931,7 @@ type ListNftTokens = {
|
|
|
2047
1931
|
* 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
1932
|
*/
|
|
2049
1933
|
nextPageToken?: string;
|
|
2050
|
-
tokens:
|
|
1934
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2051
1935
|
};
|
|
2052
1936
|
|
|
2053
1937
|
declare class NfTsService {
|
|
@@ -2124,8 +2008,12 @@ type EvmNetworkOptions = {
|
|
|
2124
2008
|
includeChains: Array<string>;
|
|
2125
2009
|
};
|
|
2126
2010
|
|
|
2011
|
+
declare enum EVMOperationType {
|
|
2012
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2127
2015
|
type CreateEvmTransactionExportRequest = {
|
|
2128
|
-
type:
|
|
2016
|
+
type: EVMOperationType;
|
|
2129
2017
|
firstDate: string;
|
|
2130
2018
|
lastDate: string;
|
|
2131
2019
|
/**
|
|
@@ -2138,20 +2026,21 @@ type CreateEvmTransactionExportRequest = {
|
|
|
2138
2026
|
endDate: string;
|
|
2139
2027
|
options: EvmNetworkOptions;
|
|
2140
2028
|
};
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2029
|
+
|
|
2030
|
+
declare enum PrimaryNetworkOperationType {
|
|
2031
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2032
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2033
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
2145
2034
|
}
|
|
2146
2035
|
|
|
2147
2036
|
type PrimaryNetworkOptions = {
|
|
2148
|
-
addresses
|
|
2037
|
+
addresses?: Array<string>;
|
|
2149
2038
|
cChainEvmAddresses?: Array<string>;
|
|
2150
2039
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2151
2040
|
};
|
|
2152
2041
|
|
|
2153
2042
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2154
|
-
type:
|
|
2043
|
+
type: PrimaryNetworkOperationType;
|
|
2155
2044
|
firstDate: string;
|
|
2156
2045
|
lastDate: string;
|
|
2157
2046
|
/**
|
|
@@ -2164,11 +2053,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
2164
2053
|
endDate: string;
|
|
2165
2054
|
options: PrimaryNetworkOptions;
|
|
2166
2055
|
};
|
|
2167
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
2168
|
-
enum type {
|
|
2169
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
2170
|
-
}
|
|
2171
|
-
}
|
|
2172
2056
|
|
|
2173
2057
|
declare enum OperationStatus {
|
|
2174
2058
|
RUNNING = "RUNNING",
|
|
@@ -2178,8 +2062,10 @@ declare enum OperationStatus {
|
|
|
2178
2062
|
}
|
|
2179
2063
|
|
|
2180
2064
|
declare enum OperationType {
|
|
2181
|
-
|
|
2182
|
-
|
|
2065
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2066
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2067
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2068
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2183
2069
|
}
|
|
2184
2070
|
|
|
2185
2071
|
declare enum OperationStatusCode {
|
|
@@ -2371,13 +2257,44 @@ type BlockchainInfo = {
|
|
|
2371
2257
|
blockchainId: string;
|
|
2372
2258
|
};
|
|
2373
2259
|
|
|
2260
|
+
type SubnetOwnershipInfo = {
|
|
2261
|
+
/**
|
|
2262
|
+
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
2263
|
+
*/
|
|
2264
|
+
locktime: number;
|
|
2265
|
+
/**
|
|
2266
|
+
* Minimum number of signatures required to sign the Subnet update transactions.
|
|
2267
|
+
*/
|
|
2268
|
+
threshold: number;
|
|
2269
|
+
/**
|
|
2270
|
+
* Addresses that are eligible to sign the Subnet update transactions.
|
|
2271
|
+
*/
|
|
2272
|
+
addresses: Array<string>;
|
|
2273
|
+
};
|
|
2274
|
+
|
|
2374
2275
|
type Subnet = {
|
|
2375
2276
|
createBlockTimestamp: number;
|
|
2376
2277
|
createBlockIndex: string;
|
|
2377
2278
|
subnetId: string;
|
|
2279
|
+
/**
|
|
2280
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2281
|
+
* @deprecated
|
|
2282
|
+
*/
|
|
2378
2283
|
ownerAddresses: Array<string>;
|
|
2284
|
+
/**
|
|
2285
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2286
|
+
* @deprecated
|
|
2287
|
+
*/
|
|
2379
2288
|
threshold: number;
|
|
2289
|
+
/**
|
|
2290
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2291
|
+
* @deprecated
|
|
2292
|
+
*/
|
|
2380
2293
|
locktime: number;
|
|
2294
|
+
/**
|
|
2295
|
+
* Latest subnet owner details for this Subnet.
|
|
2296
|
+
*/
|
|
2297
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2381
2298
|
blockchains: Array<BlockchainInfo>;
|
|
2382
2299
|
};
|
|
2383
2300
|
|
|
@@ -2514,11 +2431,17 @@ declare enum ValidationStatusType {
|
|
|
2514
2431
|
REMOVED = "removed"
|
|
2515
2432
|
}
|
|
2516
2433
|
|
|
2434
|
+
/**
|
|
2435
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2436
|
+
*/
|
|
2517
2437
|
declare enum PrimaryNetworkAssetCap {
|
|
2518
2438
|
FIXED = "fixed",
|
|
2519
2439
|
VARIABLE = "variable"
|
|
2520
2440
|
}
|
|
2521
2441
|
|
|
2442
|
+
/**
|
|
2443
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2444
|
+
*/
|
|
2522
2445
|
declare enum PrimaryNetworkAssetType {
|
|
2523
2446
|
SECP256K1 = "secp256k1",
|
|
2524
2447
|
NFT = "nft"
|
|
@@ -2541,17 +2464,11 @@ type XChainAssetDetails = {
|
|
|
2541
2464
|
* Denomination of this asset to represent fungibility.
|
|
2542
2465
|
*/
|
|
2543
2466
|
denomination: number;
|
|
2544
|
-
/**
|
|
2545
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2546
|
-
*/
|
|
2547
2467
|
type: PrimaryNetworkAssetType;
|
|
2548
2468
|
/**
|
|
2549
2469
|
* Timestamp in seconds this asset was created on.
|
|
2550
2470
|
*/
|
|
2551
2471
|
createdAtTimestamp: number;
|
|
2552
|
-
/**
|
|
2553
|
-
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2554
|
-
*/
|
|
2555
2472
|
cap: PrimaryNetworkAssetCap;
|
|
2556
2473
|
};
|
|
2557
2474
|
|
|
@@ -2718,7 +2635,7 @@ declare class PrimaryNetworkService {
|
|
|
2718
2635
|
/**
|
|
2719
2636
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2720
2637
|
*/
|
|
2721
|
-
subnetId?:
|
|
2638
|
+
subnetId?: any;
|
|
2722
2639
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2723
2640
|
/**
|
|
2724
2641
|
* Get single validator details
|
|
@@ -2818,9 +2735,6 @@ type CChainSharedAssetBalance = {
|
|
|
2818
2735
|
* Denomination of this asset to represent fungibility.
|
|
2819
2736
|
*/
|
|
2820
2737
|
denomination: number;
|
|
2821
|
-
/**
|
|
2822
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2823
|
-
*/
|
|
2824
2738
|
type: PrimaryNetworkAssetType;
|
|
2825
2739
|
/**
|
|
2826
2740
|
* Amount of the asset.
|
|
@@ -2856,7 +2770,7 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2856
2770
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2857
2771
|
};
|
|
2858
2772
|
|
|
2859
|
-
type
|
|
2773
|
+
type AggregatedAssetAmount = {
|
|
2860
2774
|
/**
|
|
2861
2775
|
* Unique ID for an asset.
|
|
2862
2776
|
*/
|
|
@@ -2873,14 +2787,12 @@ type Asset = {
|
|
|
2873
2787
|
* Denomination of this asset to represent fungibility.
|
|
2874
2788
|
*/
|
|
2875
2789
|
denomination: number;
|
|
2876
|
-
/**
|
|
2877
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2878
|
-
*/
|
|
2879
2790
|
type: PrimaryNetworkAssetType;
|
|
2880
2791
|
/**
|
|
2881
2792
|
* Amount of the asset.
|
|
2882
2793
|
*/
|
|
2883
2794
|
amount: string;
|
|
2795
|
+
utxoCount: number;
|
|
2884
2796
|
};
|
|
2885
2797
|
|
|
2886
2798
|
type PChainSharedAsset = {
|
|
@@ -2900,49 +2812,47 @@ type PChainSharedAsset = {
|
|
|
2900
2812
|
* Denomination of this asset to represent fungibility.
|
|
2901
2813
|
*/
|
|
2902
2814
|
denomination: number;
|
|
2903
|
-
/**
|
|
2904
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2905
|
-
*/
|
|
2906
2815
|
type: PrimaryNetworkAssetType;
|
|
2907
2816
|
/**
|
|
2908
2817
|
* Amount of the asset.
|
|
2909
2818
|
*/
|
|
2910
2819
|
amount: string;
|
|
2820
|
+
utxoCount: number;
|
|
2911
2821
|
sharedWithChainId: string;
|
|
2912
2822
|
status: string;
|
|
2913
2823
|
};
|
|
2914
2824
|
|
|
2915
2825
|
type PChainBalance = {
|
|
2916
2826
|
/**
|
|
2917
|
-
* A list of objects containing P-chain Asset
|
|
2827
|
+
* 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.
|
|
2918
2828
|
*/
|
|
2919
|
-
unlockedUnstaked: Array<
|
|
2829
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2920
2830
|
/**
|
|
2921
|
-
* A list of objects containing P-chain Asset
|
|
2831
|
+
* 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.
|
|
2922
2832
|
*/
|
|
2923
|
-
unlockedStaked: Array<
|
|
2833
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2924
2834
|
/**
|
|
2925
|
-
* A list of objects containing P-chain Asset
|
|
2835
|
+
* 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.
|
|
2926
2836
|
*/
|
|
2927
|
-
lockedPlatform: Array<
|
|
2837
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2928
2838
|
/**
|
|
2929
|
-
* A list of objects containing P-chain Asset
|
|
2839
|
+
* 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.
|
|
2930
2840
|
*/
|
|
2931
|
-
lockedStakeable: Array<
|
|
2841
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2932
2842
|
/**
|
|
2933
|
-
* A list of objects containing P-chain Asset
|
|
2843
|
+
* 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.
|
|
2934
2844
|
*/
|
|
2935
|
-
lockedStaked: Array<
|
|
2845
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2936
2846
|
/**
|
|
2937
|
-
* A list of objects containing P-chain Asset
|
|
2847
|
+
* 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.
|
|
2938
2848
|
*/
|
|
2939
|
-
pendingStaked: Array<
|
|
2849
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2940
2850
|
/**
|
|
2941
|
-
* A list of objects containing P-chain Asset
|
|
2851
|
+
* 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.
|
|
2942
2852
|
*/
|
|
2943
2853
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2944
2854
|
/**
|
|
2945
|
-
* A list of objects containing P-chain Asset
|
|
2855
|
+
* 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.
|
|
2946
2856
|
*/
|
|
2947
2857
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2948
2858
|
};
|
|
@@ -2952,34 +2862,6 @@ type ListPChainBalancesResponse = {
|
|
|
2952
2862
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2953
2863
|
};
|
|
2954
2864
|
|
|
2955
|
-
type XChainAssetBalance = {
|
|
2956
|
-
/**
|
|
2957
|
-
* Unique ID for an asset.
|
|
2958
|
-
*/
|
|
2959
|
-
assetId: string;
|
|
2960
|
-
/**
|
|
2961
|
-
* Name of this asset.
|
|
2962
|
-
*/
|
|
2963
|
-
name: string;
|
|
2964
|
-
/**
|
|
2965
|
-
* Symbol for this asset (max 4 characters).
|
|
2966
|
-
*/
|
|
2967
|
-
symbol: string;
|
|
2968
|
-
/**
|
|
2969
|
-
* Denomination of this asset to represent fungibility.
|
|
2970
|
-
*/
|
|
2971
|
-
denomination: number;
|
|
2972
|
-
/**
|
|
2973
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2974
|
-
*/
|
|
2975
|
-
type: PrimaryNetworkAssetType;
|
|
2976
|
-
/**
|
|
2977
|
-
* Amount of the asset.
|
|
2978
|
-
*/
|
|
2979
|
-
amount: string;
|
|
2980
|
-
utxoCount: number;
|
|
2981
|
-
};
|
|
2982
|
-
|
|
2983
2865
|
type XChainSharedAssetBalance = {
|
|
2984
2866
|
/**
|
|
2985
2867
|
* Unique ID for an asset.
|
|
@@ -2997,9 +2879,6 @@ type XChainSharedAssetBalance = {
|
|
|
2997
2879
|
* Denomination of this asset to represent fungibility.
|
|
2998
2880
|
*/
|
|
2999
2881
|
denomination: number;
|
|
3000
|
-
/**
|
|
3001
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3002
|
-
*/
|
|
3003
2882
|
type: PrimaryNetworkAssetType;
|
|
3004
2883
|
/**
|
|
3005
2884
|
* Amount of the asset.
|
|
@@ -3013,11 +2892,11 @@ type XChainBalances = {
|
|
|
3013
2892
|
/**
|
|
3014
2893
|
* A list of objects containing X-chain Asset balance information.
|
|
3015
2894
|
*/
|
|
3016
|
-
locked: Array<
|
|
2895
|
+
locked: Array<AggregatedAssetAmount>;
|
|
3017
2896
|
/**
|
|
3018
2897
|
* A list of objects containing X-chain Asset balance information.
|
|
3019
2898
|
*/
|
|
3020
|
-
unlocked: Array<
|
|
2899
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
3021
2900
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
3022
2901
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
3023
2902
|
};
|
|
@@ -3195,9 +3074,6 @@ type AssetWithPriceInfo = {
|
|
|
3195
3074
|
* Denomination of this asset to represent fungibility.
|
|
3196
3075
|
*/
|
|
3197
3076
|
denomination: number;
|
|
3198
|
-
/**
|
|
3199
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3200
|
-
*/
|
|
3201
3077
|
type: PrimaryNetworkAssetType;
|
|
3202
3078
|
/**
|
|
3203
3079
|
* Amount of the asset.
|
|
@@ -3240,6 +3116,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
3240
3116
|
historicalRewards: Array<HistoricalReward>;
|
|
3241
3117
|
};
|
|
3242
3118
|
|
|
3119
|
+
type AssetAmount = {
|
|
3120
|
+
/**
|
|
3121
|
+
* Unique ID for an asset.
|
|
3122
|
+
*/
|
|
3123
|
+
assetId: string;
|
|
3124
|
+
/**
|
|
3125
|
+
* Name of this asset.
|
|
3126
|
+
*/
|
|
3127
|
+
name: string;
|
|
3128
|
+
/**
|
|
3129
|
+
* Symbol for this asset (max 4 characters).
|
|
3130
|
+
*/
|
|
3131
|
+
symbol: string;
|
|
3132
|
+
/**
|
|
3133
|
+
* Denomination of this asset to represent fungibility.
|
|
3134
|
+
*/
|
|
3135
|
+
denomination: number;
|
|
3136
|
+
type: PrimaryNetworkAssetType;
|
|
3137
|
+
/**
|
|
3138
|
+
* Amount of the asset.
|
|
3139
|
+
*/
|
|
3140
|
+
amount: string;
|
|
3141
|
+
};
|
|
3142
|
+
|
|
3243
3143
|
type PendingReward = {
|
|
3244
3144
|
/**
|
|
3245
3145
|
* An array of P-Chain wallet addresses.
|
|
@@ -3253,9 +3153,9 @@ type PendingReward = {
|
|
|
3253
3153
|
rewardType: RewardType;
|
|
3254
3154
|
progress: number;
|
|
3255
3155
|
/**
|
|
3256
|
-
* An object containing P-chain Asset
|
|
3156
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3257
3157
|
*/
|
|
3258
|
-
estimatedReward:
|
|
3158
|
+
estimatedReward: AssetAmount;
|
|
3259
3159
|
};
|
|
3260
3160
|
|
|
3261
3161
|
type ListPendingRewardsResponse = {
|
|
@@ -3356,9 +3256,9 @@ type EVMInput = {
|
|
|
3356
3256
|
*/
|
|
3357
3257
|
fromAddress: string;
|
|
3358
3258
|
/**
|
|
3359
|
-
*
|
|
3259
|
+
* AssetAmount details for the asset being transferred.
|
|
3360
3260
|
*/
|
|
3361
|
-
asset:
|
|
3261
|
+
asset: AssetAmount;
|
|
3362
3262
|
/**
|
|
3363
3263
|
* Credentials that signed this transaction.
|
|
3364
3264
|
*/
|
|
@@ -3370,7 +3270,7 @@ type Utxo = {
|
|
|
3370
3270
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3371
3271
|
*/
|
|
3372
3272
|
addresses: Array<string>;
|
|
3373
|
-
asset:
|
|
3273
|
+
asset: AssetAmount;
|
|
3374
3274
|
/**
|
|
3375
3275
|
* Blockchain ID on which this output is consumed on.
|
|
3376
3276
|
*/
|
|
@@ -3453,11 +3353,11 @@ type CChainExportTransaction = {
|
|
|
3453
3353
|
/**
|
|
3454
3354
|
* Assets unlocked by inputs of this transaction.
|
|
3455
3355
|
*/
|
|
3456
|
-
amountUnlocked: Array<
|
|
3356
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3457
3357
|
/**
|
|
3458
3358
|
* Assets created by outputs of this transaction.
|
|
3459
3359
|
*/
|
|
3460
|
-
amountCreated: Array<
|
|
3360
|
+
amountCreated: Array<AssetAmount>;
|
|
3461
3361
|
/**
|
|
3462
3362
|
* Source chain for an atomic transaction.
|
|
3463
3363
|
*/
|
|
@@ -3488,9 +3388,9 @@ type EVMOutput = {
|
|
|
3488
3388
|
*/
|
|
3489
3389
|
toAddress: string;
|
|
3490
3390
|
/**
|
|
3491
|
-
*
|
|
3391
|
+
* AssetAmount details for the asset being transferred.
|
|
3492
3392
|
*/
|
|
3493
|
-
asset:
|
|
3393
|
+
asset: AssetAmount;
|
|
3494
3394
|
};
|
|
3495
3395
|
|
|
3496
3396
|
type CChainImportTransaction = {
|
|
@@ -3517,11 +3417,11 @@ type CChainImportTransaction = {
|
|
|
3517
3417
|
/**
|
|
3518
3418
|
* Assets unlocked by inputs of this transaction.
|
|
3519
3419
|
*/
|
|
3520
|
-
amountUnlocked: Array<
|
|
3420
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3521
3421
|
/**
|
|
3522
3422
|
* Assets created by outputs of this transaction.
|
|
3523
3423
|
*/
|
|
3524
|
-
amountCreated: Array<
|
|
3424
|
+
amountCreated: Array<AssetAmount>;
|
|
3525
3425
|
/**
|
|
3526
3426
|
* Source chain for an atomic transaction.
|
|
3527
3427
|
*/
|
|
@@ -3569,6 +3469,8 @@ declare enum PChainTransactionType {
|
|
|
3569
3469
|
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3570
3470
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3571
3471
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3472
|
+
BASE_TX = "BaseTx",
|
|
3473
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3572
3474
|
UNKNOWN = "UNKNOWN"
|
|
3573
3475
|
}
|
|
3574
3476
|
|
|
@@ -3582,7 +3484,7 @@ type PChainUtxo = {
|
|
|
3582
3484
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3583
3485
|
*/
|
|
3584
3486
|
addresses: Array<string>;
|
|
3585
|
-
asset:
|
|
3487
|
+
asset: AssetAmount;
|
|
3586
3488
|
/**
|
|
3587
3489
|
* Blockchain ID on which this output is consumed on.
|
|
3588
3490
|
*/
|
|
@@ -3646,17 +3548,17 @@ type PChainTransaction = {
|
|
|
3646
3548
|
*/
|
|
3647
3549
|
destinationChain?: string;
|
|
3648
3550
|
/**
|
|
3649
|
-
* A list of objects containing P-chain Asset
|
|
3551
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3650
3552
|
*/
|
|
3651
|
-
value: Array<
|
|
3553
|
+
value: Array<AssetAmount>;
|
|
3652
3554
|
/**
|
|
3653
|
-
* A list of objects containing P-chain Asset
|
|
3555
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3654
3556
|
*/
|
|
3655
|
-
amountBurned: Array<
|
|
3557
|
+
amountBurned: Array<AssetAmount>;
|
|
3656
3558
|
/**
|
|
3657
|
-
* A list of objects containing P-chain Asset
|
|
3559
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3658
3560
|
*/
|
|
3659
|
-
amountStaked: Array<
|
|
3561
|
+
amountStaked: Array<AssetAmount>;
|
|
3660
3562
|
/**
|
|
3661
3563
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3662
3564
|
*/
|
|
@@ -3688,6 +3590,10 @@ type PChainTransaction = {
|
|
|
3688
3590
|
* Present for RewardValidatorTx
|
|
3689
3591
|
*/
|
|
3690
3592
|
stakingTxHash?: string;
|
|
3593
|
+
/**
|
|
3594
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3595
|
+
*/
|
|
3596
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3691
3597
|
};
|
|
3692
3598
|
|
|
3693
3599
|
type ListPChainTransactionsResponse = {
|
|
@@ -3699,6 +3605,9 @@ type ListPChainTransactionsResponse = {
|
|
|
3699
3605
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3700
3606
|
};
|
|
3701
3607
|
|
|
3608
|
+
/**
|
|
3609
|
+
* Type of transaction.
|
|
3610
|
+
*/
|
|
3702
3611
|
declare enum XChainTransactionType {
|
|
3703
3612
|
BASE_TX = "BaseTx",
|
|
3704
3613
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3721,9 +3630,6 @@ type XChainLinearTransaction = {
|
|
|
3721
3630
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3722
3631
|
*/
|
|
3723
3632
|
timestamp: number;
|
|
3724
|
-
/**
|
|
3725
|
-
* Type of transaction.
|
|
3726
|
-
*/
|
|
3727
3633
|
txType: XChainTransactionType;
|
|
3728
3634
|
/**
|
|
3729
3635
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3734,11 +3640,11 @@ type XChainLinearTransaction = {
|
|
|
3734
3640
|
/**
|
|
3735
3641
|
* Assets unlocked by inputs of this transaction.
|
|
3736
3642
|
*/
|
|
3737
|
-
amountUnlocked: Array<
|
|
3643
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3738
3644
|
/**
|
|
3739
3645
|
* Assets created by outputs of this transaction.
|
|
3740
3646
|
*/
|
|
3741
|
-
amountCreated: Array<
|
|
3647
|
+
amountCreated: Array<AssetAmount>;
|
|
3742
3648
|
/**
|
|
3743
3649
|
* Source chain for an atomic transaction.
|
|
3744
3650
|
*/
|
|
@@ -3748,7 +3654,7 @@ type XChainLinearTransaction = {
|
|
|
3748
3654
|
*/
|
|
3749
3655
|
destinationChain?: string;
|
|
3750
3656
|
/**
|
|
3751
|
-
*
|
|
3657
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3752
3658
|
*/
|
|
3753
3659
|
assetCreated?: XChainAssetDetails;
|
|
3754
3660
|
/**
|
|
@@ -3798,9 +3704,6 @@ type XChainNonLinearTransaction = {
|
|
|
3798
3704
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3799
3705
|
*/
|
|
3800
3706
|
timestamp: number;
|
|
3801
|
-
/**
|
|
3802
|
-
* Type of transaction.
|
|
3803
|
-
*/
|
|
3804
3707
|
txType: XChainTransactionType;
|
|
3805
3708
|
/**
|
|
3806
3709
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3811,11 +3714,11 @@ type XChainNonLinearTransaction = {
|
|
|
3811
3714
|
/**
|
|
3812
3715
|
* Assets unlocked by inputs of this transaction.
|
|
3813
3716
|
*/
|
|
3814
|
-
amountUnlocked: Array<
|
|
3717
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3815
3718
|
/**
|
|
3816
3719
|
* Assets created by outputs of this transaction.
|
|
3817
3720
|
*/
|
|
3818
|
-
amountCreated: Array<
|
|
3721
|
+
amountCreated: Array<AssetAmount>;
|
|
3819
3722
|
/**
|
|
3820
3723
|
* Source chain for an atomic transaction.
|
|
3821
3724
|
*/
|
|
@@ -3825,7 +3728,7 @@ type XChainNonLinearTransaction = {
|
|
|
3825
3728
|
*/
|
|
3826
3729
|
destinationChain?: string;
|
|
3827
3730
|
/**
|
|
3828
|
-
*
|
|
3731
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3829
3732
|
*/
|
|
3830
3733
|
assetCreated?: XChainAssetDetails;
|
|
3831
3734
|
/**
|
|
@@ -3871,8 +3774,9 @@ declare enum PrimaryNetworkTxType {
|
|
|
3871
3774
|
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3872
3775
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3873
3776
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3874
|
-
UNKNOWN = "UNKNOWN",
|
|
3875
3777
|
BASE_TX = "BaseTx",
|
|
3778
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3779
|
+
UNKNOWN = "UNKNOWN",
|
|
3876
3780
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3877
3781
|
OPERATION_TX = "OperationTx"
|
|
3878
3782
|
}
|
|
@@ -4198,6 +4102,391 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4198
4102
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4199
4103
|
}
|
|
4200
4104
|
|
|
4105
|
+
type RpcErrorDto = {
|
|
4106
|
+
code: number;
|
|
4107
|
+
message: string;
|
|
4108
|
+
data?: Record<string, any>;
|
|
4109
|
+
};
|
|
4110
|
+
|
|
4111
|
+
type RpcErrorResponseDto = {
|
|
4112
|
+
jsonrpc: string;
|
|
4113
|
+
id?: (string | number);
|
|
4114
|
+
error: RpcErrorDto;
|
|
4115
|
+
};
|
|
4116
|
+
|
|
4117
|
+
type RpcRequestBodyDto = {
|
|
4118
|
+
method: string;
|
|
4119
|
+
params?: Record<string, any>;
|
|
4120
|
+
id?: (string | number);
|
|
4121
|
+
jsonrpc?: string;
|
|
4122
|
+
};
|
|
4123
|
+
|
|
4124
|
+
type RpcSuccessResponseDto = {
|
|
4125
|
+
jsonrpc: string;
|
|
4126
|
+
id?: (string | number);
|
|
4127
|
+
result: Record<string, any>;
|
|
4128
|
+
};
|
|
4129
|
+
|
|
4130
|
+
declare class RpcService {
|
|
4131
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4132
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4133
|
+
/**
|
|
4134
|
+
* Calls JSON-RPC method
|
|
4135
|
+
* Calls JSON-RPC method.
|
|
4136
|
+
* @returns any
|
|
4137
|
+
* @throws ApiError
|
|
4138
|
+
*/
|
|
4139
|
+
rpc({ chainId, requestBody, }: {
|
|
4140
|
+
/**
|
|
4141
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4142
|
+
*/
|
|
4143
|
+
chainId: string;
|
|
4144
|
+
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4145
|
+
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4146
|
+
}
|
|
4147
|
+
|
|
4148
|
+
type TeleporterDestinationTransaction = {
|
|
4149
|
+
txHash: string;
|
|
4150
|
+
timestamp: number;
|
|
4151
|
+
gasSpent: string;
|
|
4152
|
+
rewardRedeemer: string;
|
|
4153
|
+
delivererAddress: string;
|
|
4154
|
+
};
|
|
4155
|
+
|
|
4156
|
+
type TeleporterReceipt = {
|
|
4157
|
+
receivedMessageNonce: string;
|
|
4158
|
+
relayerRewardAddress: string;
|
|
4159
|
+
};
|
|
4160
|
+
|
|
4161
|
+
type TeleporterRewardDetails = {
|
|
4162
|
+
/**
|
|
4163
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
4164
|
+
*/
|
|
4165
|
+
address: string;
|
|
4166
|
+
/**
|
|
4167
|
+
* The contract name.
|
|
4168
|
+
*/
|
|
4169
|
+
name: string;
|
|
4170
|
+
/**
|
|
4171
|
+
* The contract symbol.
|
|
4172
|
+
*/
|
|
4173
|
+
symbol: string;
|
|
4174
|
+
/**
|
|
4175
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
4176
|
+
*/
|
|
4177
|
+
decimals: number;
|
|
4178
|
+
/**
|
|
4179
|
+
* The logo uri for the address.
|
|
4180
|
+
*/
|
|
4181
|
+
logoUri?: string;
|
|
4182
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
4183
|
+
/**
|
|
4184
|
+
* The token price, if available.
|
|
4185
|
+
*/
|
|
4186
|
+
price?: Money;
|
|
4187
|
+
value: string;
|
|
4188
|
+
};
|
|
4189
|
+
declare namespace TeleporterRewardDetails {
|
|
4190
|
+
enum ercType {
|
|
4191
|
+
ERC_20 = "ERC-20"
|
|
4192
|
+
}
|
|
4193
|
+
}
|
|
4194
|
+
|
|
4195
|
+
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4196
|
+
messageId: string;
|
|
4197
|
+
teleporterContractAddress: string;
|
|
4198
|
+
sourceBlockchainId: string;
|
|
4199
|
+
destinationBlockchainId: string;
|
|
4200
|
+
messageNonce: string;
|
|
4201
|
+
from: string;
|
|
4202
|
+
to: string;
|
|
4203
|
+
data?: string;
|
|
4204
|
+
messageExecuted: boolean;
|
|
4205
|
+
receipts: Array<TeleporterReceipt>;
|
|
4206
|
+
receiptDelivered: boolean;
|
|
4207
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4208
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4209
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4210
|
+
};
|
|
4211
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4212
|
+
enum status {
|
|
4213
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4214
|
+
}
|
|
4215
|
+
}
|
|
4216
|
+
|
|
4217
|
+
type TeleporterSourceTransaction = {
|
|
4218
|
+
txHash: string;
|
|
4219
|
+
timestamp: number;
|
|
4220
|
+
gasSpent: string;
|
|
4221
|
+
};
|
|
4222
|
+
|
|
4223
|
+
type DeliveredTeleporterMessage = {
|
|
4224
|
+
messageId: string;
|
|
4225
|
+
teleporterContractAddress: string;
|
|
4226
|
+
sourceBlockchainId: string;
|
|
4227
|
+
destinationBlockchainId: string;
|
|
4228
|
+
messageNonce: string;
|
|
4229
|
+
from: string;
|
|
4230
|
+
to: string;
|
|
4231
|
+
data?: string;
|
|
4232
|
+
messageExecuted: boolean;
|
|
4233
|
+
receipts: Array<TeleporterReceipt>;
|
|
4234
|
+
receiptDelivered: boolean;
|
|
4235
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4236
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4237
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4238
|
+
status: DeliveredTeleporterMessage.status;
|
|
4239
|
+
};
|
|
4240
|
+
declare namespace DeliveredTeleporterMessage {
|
|
4241
|
+
enum status {
|
|
4242
|
+
DELIVERED = "delivered"
|
|
4243
|
+
}
|
|
4244
|
+
}
|
|
4245
|
+
|
|
4246
|
+
type NextPageToken = {
|
|
4247
|
+
/**
|
|
4248
|
+
* 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.
|
|
4249
|
+
*/
|
|
4250
|
+
nextPageToken?: string;
|
|
4251
|
+
};
|
|
4252
|
+
|
|
4253
|
+
type PendingTeleporterMessage = {
|
|
4254
|
+
messageId: string;
|
|
4255
|
+
teleporterContractAddress: string;
|
|
4256
|
+
sourceBlockchainId: string;
|
|
4257
|
+
destinationBlockchainId: string;
|
|
4258
|
+
messageNonce: string;
|
|
4259
|
+
from: string;
|
|
4260
|
+
to: string;
|
|
4261
|
+
data?: string;
|
|
4262
|
+
messageExecuted: boolean;
|
|
4263
|
+
receipts: Array<TeleporterReceipt>;
|
|
4264
|
+
receiptDelivered: boolean;
|
|
4265
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4266
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4267
|
+
status: PendingTeleporterMessage.status;
|
|
4268
|
+
};
|
|
4269
|
+
declare namespace PendingTeleporterMessage {
|
|
4270
|
+
enum status {
|
|
4271
|
+
PENDING = "pending"
|
|
4272
|
+
}
|
|
4273
|
+
}
|
|
4274
|
+
|
|
4275
|
+
declare class TeleporterService {
|
|
4276
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4277
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4278
|
+
/**
|
|
4279
|
+
* Get a teleporter message
|
|
4280
|
+
* Gets a teleporter message by message ID.
|
|
4281
|
+
* @returns any
|
|
4282
|
+
* @throws ApiError
|
|
4283
|
+
*/
|
|
4284
|
+
getTeleporterMessage({ messageId, }: {
|
|
4285
|
+
/**
|
|
4286
|
+
* The message ID of the teleporter message.
|
|
4287
|
+
*/
|
|
4288
|
+
messageId: string;
|
|
4289
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4290
|
+
/**
|
|
4291
|
+
* List teleporter messages
|
|
4292
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4293
|
+
* @returns any
|
|
4294
|
+
* @throws ApiError
|
|
4295
|
+
*/
|
|
4296
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
4297
|
+
/**
|
|
4298
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4299
|
+
*/
|
|
4300
|
+
pageToken?: string;
|
|
4301
|
+
/**
|
|
4302
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4303
|
+
*/
|
|
4304
|
+
pageSize?: number;
|
|
4305
|
+
/**
|
|
4306
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4307
|
+
*/
|
|
4308
|
+
sourceBlockchainId?: string;
|
|
4309
|
+
/**
|
|
4310
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4311
|
+
*/
|
|
4312
|
+
destinationBlockchainId?: string;
|
|
4313
|
+
/**
|
|
4314
|
+
* The address of the recipient of the teleporter message.
|
|
4315
|
+
*/
|
|
4316
|
+
to?: string;
|
|
4317
|
+
/**
|
|
4318
|
+
* The address of the sender of the teleporter message.
|
|
4319
|
+
*/
|
|
4320
|
+
from?: string;
|
|
4321
|
+
}): CancelablePromise<NextPageToken>;
|
|
4322
|
+
}
|
|
4323
|
+
|
|
4324
|
+
type AddressActivityMetadata = {
|
|
4325
|
+
/**
|
|
4326
|
+
* Ethereum address for the address_activity event type
|
|
4327
|
+
*/
|
|
4328
|
+
address: string;
|
|
4329
|
+
/**
|
|
4330
|
+
* Array of hexadecimal strings of the event signatures.
|
|
4331
|
+
*/
|
|
4332
|
+
eventSignatures?: Array<string>;
|
|
4333
|
+
};
|
|
4334
|
+
|
|
4335
|
+
declare enum EventType {
|
|
4336
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
4337
|
+
}
|
|
4338
|
+
|
|
4339
|
+
declare enum WebhookStatusType {
|
|
4340
|
+
ACTIVE = "active",
|
|
4341
|
+
INACTIVE = "inactive"
|
|
4342
|
+
}
|
|
4343
|
+
|
|
4344
|
+
type WebhookResponse = {
|
|
4345
|
+
id: string;
|
|
4346
|
+
eventType: EventType;
|
|
4347
|
+
metadata: AddressActivityMetadata;
|
|
4348
|
+
/**
|
|
4349
|
+
* Whether to include traces in the webhook payload.
|
|
4350
|
+
*/
|
|
4351
|
+
includeInternalTxs?: boolean;
|
|
4352
|
+
/**
|
|
4353
|
+
* Whether to include logs in the webhook payload.
|
|
4354
|
+
*/
|
|
4355
|
+
includeLogs?: boolean;
|
|
4356
|
+
url: string;
|
|
4357
|
+
chainId: string;
|
|
4358
|
+
status: WebhookStatusType;
|
|
4359
|
+
createdAt: number;
|
|
4360
|
+
name: string;
|
|
4361
|
+
description: string;
|
|
4362
|
+
};
|
|
4363
|
+
|
|
4364
|
+
type ListWebhooksResponse = {
|
|
4365
|
+
/**
|
|
4366
|
+
* 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.
|
|
4367
|
+
*/
|
|
4368
|
+
nextPageToken?: string;
|
|
4369
|
+
webhooks: Array<WebhookResponse>;
|
|
4370
|
+
};
|
|
4371
|
+
|
|
4372
|
+
type RegisterWebhookRequest = {
|
|
4373
|
+
url: string;
|
|
4374
|
+
chainId: string;
|
|
4375
|
+
eventType: EventType;
|
|
4376
|
+
metadata: AddressActivityMetadata;
|
|
4377
|
+
/**
|
|
4378
|
+
* Whether to include traces in the webhook payload.
|
|
4379
|
+
*/
|
|
4380
|
+
includeInternalTxs?: boolean;
|
|
4381
|
+
/**
|
|
4382
|
+
* Whether to include logs in the webhook payload.
|
|
4383
|
+
*/
|
|
4384
|
+
includeLogs?: boolean;
|
|
4385
|
+
};
|
|
4386
|
+
|
|
4387
|
+
type SharedSecretsResponse = {
|
|
4388
|
+
secret: string;
|
|
4389
|
+
};
|
|
4390
|
+
|
|
4391
|
+
type UpdateWebhookRequest = {
|
|
4392
|
+
name?: string;
|
|
4393
|
+
description?: string;
|
|
4394
|
+
url?: string;
|
|
4395
|
+
status?: WebhookStatusType;
|
|
4396
|
+
includeInternalTxs?: boolean;
|
|
4397
|
+
includeLogs?: boolean;
|
|
4398
|
+
};
|
|
4399
|
+
|
|
4400
|
+
declare enum WebhookStatus {
|
|
4401
|
+
ACTIVE = "active",
|
|
4402
|
+
INACTIVE = "inactive"
|
|
4403
|
+
}
|
|
4404
|
+
|
|
4405
|
+
declare class WebhooksService {
|
|
4406
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4407
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4408
|
+
/**
|
|
4409
|
+
* Register a webhook
|
|
4410
|
+
* Registers a new webhook.
|
|
4411
|
+
* @returns WebhookResponse
|
|
4412
|
+
* @throws ApiError
|
|
4413
|
+
*/
|
|
4414
|
+
registerWebhook({ requestBody, }: {
|
|
4415
|
+
requestBody: RegisterWebhookRequest;
|
|
4416
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4417
|
+
/**
|
|
4418
|
+
* List webhooks
|
|
4419
|
+
* Lists webhooks for the user.
|
|
4420
|
+
* @returns ListWebhooksResponse
|
|
4421
|
+
* @throws ApiError
|
|
4422
|
+
*/
|
|
4423
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
4424
|
+
/**
|
|
4425
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4426
|
+
*/
|
|
4427
|
+
pageToken?: string;
|
|
4428
|
+
/**
|
|
4429
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4430
|
+
*/
|
|
4431
|
+
pageSize?: number;
|
|
4432
|
+
/**
|
|
4433
|
+
* 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.
|
|
4434
|
+
*/
|
|
4435
|
+
status?: WebhookStatus;
|
|
4436
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
4437
|
+
/**
|
|
4438
|
+
* Get a webhook by ID
|
|
4439
|
+
* Retrieves a webhook by ID.
|
|
4440
|
+
* @returns WebhookResponse
|
|
4441
|
+
* @throws ApiError
|
|
4442
|
+
*/
|
|
4443
|
+
getWebhook({ id, }: {
|
|
4444
|
+
/**
|
|
4445
|
+
* The webhook identifier.
|
|
4446
|
+
*/
|
|
4447
|
+
id: string;
|
|
4448
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4449
|
+
/**
|
|
4450
|
+
* Deactivate a webhook
|
|
4451
|
+
* Deactivates a webhook by ID.
|
|
4452
|
+
* @returns WebhookResponse
|
|
4453
|
+
* @throws ApiError
|
|
4454
|
+
*/
|
|
4455
|
+
deactivateWebhook({ id, }: {
|
|
4456
|
+
/**
|
|
4457
|
+
* The webhook identifier.
|
|
4458
|
+
*/
|
|
4459
|
+
id: string;
|
|
4460
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4461
|
+
/**
|
|
4462
|
+
* Update a webhook
|
|
4463
|
+
* Updates an existing webhook.
|
|
4464
|
+
* @returns WebhookResponse
|
|
4465
|
+
* @throws ApiError
|
|
4466
|
+
*/
|
|
4467
|
+
updateWebhook({ id, requestBody, }: {
|
|
4468
|
+
/**
|
|
4469
|
+
* The webhook identifier.
|
|
4470
|
+
*/
|
|
4471
|
+
id: string;
|
|
4472
|
+
requestBody: UpdateWebhookRequest;
|
|
4473
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4474
|
+
/**
|
|
4475
|
+
* Generate a shared secret
|
|
4476
|
+
* Generates a new shared secret.
|
|
4477
|
+
* @returns SharedSecretsResponse
|
|
4478
|
+
* @throws ApiError
|
|
4479
|
+
*/
|
|
4480
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4481
|
+
/**
|
|
4482
|
+
* Get a shared secret
|
|
4483
|
+
* Get a previously generated shared secret.
|
|
4484
|
+
* @returns SharedSecretsResponse
|
|
4485
|
+
* @throws ApiError
|
|
4486
|
+
*/
|
|
4487
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4488
|
+
}
|
|
4489
|
+
|
|
4201
4490
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
4202
4491
|
declare class Glacier {
|
|
4203
4492
|
readonly default: DefaultService;
|
|
@@ -4216,6 +4505,9 @@ declare class Glacier {
|
|
|
4216
4505
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4217
4506
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4218
4507
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4508
|
+
readonly rpc: RpcService;
|
|
4509
|
+
readonly teleporter: TeleporterService;
|
|
4510
|
+
readonly webhooks: WebhooksService;
|
|
4219
4511
|
readonly request: BaseHttpRequest;
|
|
4220
4512
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
4221
4513
|
}
|
|
@@ -4237,4 +4529,4 @@ declare class ApiError extends Error {
|
|
|
4237
4529
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4238
4530
|
}
|
|
4239
4531
|
|
|
4240
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError,
|
|
4532
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, 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, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, 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, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, 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 };
|