@avalabs/glacier-sdk 2.8.0-canary.d5ec74d.0 → 2.8.0-canary.d9e70ae.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 +549 -249
- package/dist/index.js +251 -99
- 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/AddressActivityMetadata.d.ts +2 -2
- 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 +6 -0
- package/esm/generated/models/GlacierApiFeature.js +7 -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 -53
- package/esm/generated/services/DefaultService.js +0 -42
- 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>;
|
|
@@ -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,56 +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
65
|
}
|
|
179
66
|
|
|
67
|
+
/**
|
|
68
|
+
* ISO 4217 currency code.
|
|
69
|
+
*/
|
|
180
70
|
declare enum CurrencyCode {
|
|
181
71
|
USD = "usd",
|
|
182
72
|
EUR = "eur",
|
|
@@ -195,9 +85,6 @@ declare enum CurrencyCode {
|
|
|
195
85
|
}
|
|
196
86
|
|
|
197
87
|
type Money = {
|
|
198
|
-
/**
|
|
199
|
-
* ISO 4217 currency code.
|
|
200
|
-
*/
|
|
201
88
|
currencyCode: CurrencyCode;
|
|
202
89
|
/**
|
|
203
90
|
* Monetary value in base 10 decimals.
|
|
@@ -247,6 +134,9 @@ type GetNativeBalanceResponse = {
|
|
|
247
134
|
nativeTokenBalance: NativeTokenBalance;
|
|
248
135
|
};
|
|
249
136
|
|
|
137
|
+
/**
|
|
138
|
+
* The metadata indexing status of the nft.
|
|
139
|
+
*/
|
|
250
140
|
declare enum NftTokenMetadataStatus {
|
|
251
141
|
UNKNOWN = "UNKNOWN",
|
|
252
142
|
MISSING_TOKEN = "MISSING_TOKEN",
|
|
@@ -262,9 +152,6 @@ declare enum NftTokenMetadataStatus {
|
|
|
262
152
|
}
|
|
263
153
|
|
|
264
154
|
type Erc1155TokenMetadata = {
|
|
265
|
-
/**
|
|
266
|
-
* The metadata indexing status of the nft.
|
|
267
|
-
*/
|
|
268
155
|
indexStatus: NftTokenMetadataStatus;
|
|
269
156
|
metadataLastUpdatedTimestamp?: number;
|
|
270
157
|
name?: string;
|
|
@@ -303,9 +190,6 @@ declare namespace Erc1155TokenBalance {
|
|
|
303
190
|
}
|
|
304
191
|
|
|
305
192
|
type Erc721TokenMetadata = {
|
|
306
|
-
/**
|
|
307
|
-
* The metadata indexing status of the nft.
|
|
308
|
-
*/
|
|
309
193
|
indexStatus: NftTokenMetadataStatus;
|
|
310
194
|
metadataLastUpdatedTimestamp?: number;
|
|
311
195
|
name?: string;
|
|
@@ -743,6 +627,9 @@ declare class EvmBlocksService {
|
|
|
743
627
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
744
628
|
}
|
|
745
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
|
+
*/
|
|
746
633
|
declare enum ChainStatus {
|
|
747
634
|
OK = "OK",
|
|
748
635
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -780,9 +667,6 @@ declare enum VmName {
|
|
|
780
667
|
|
|
781
668
|
type GetChainResponse = {
|
|
782
669
|
chainId: string;
|
|
783
|
-
/**
|
|
784
|
-
* 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.
|
|
785
|
-
*/
|
|
786
670
|
status: ChainStatus;
|
|
787
671
|
chainName: string;
|
|
788
672
|
description: string;
|
|
@@ -798,13 +682,16 @@ type GetChainResponse = {
|
|
|
798
682
|
networkToken: NetworkToken;
|
|
799
683
|
chainLogoUri?: string;
|
|
800
684
|
private?: boolean;
|
|
685
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
801
686
|
};
|
|
802
687
|
|
|
688
|
+
declare enum GlacierApiFeature {
|
|
689
|
+
NFT_INDEXING = "nftIndexing",
|
|
690
|
+
WEBHOOKS = "webhooks"
|
|
691
|
+
}
|
|
692
|
+
|
|
803
693
|
type ChainInfo = {
|
|
804
694
|
chainId: string;
|
|
805
|
-
/**
|
|
806
|
-
* 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.
|
|
807
|
-
*/
|
|
808
695
|
status: ChainStatus;
|
|
809
696
|
chainName: string;
|
|
810
697
|
description: string;
|
|
@@ -820,6 +707,7 @@ type ChainInfo = {
|
|
|
820
707
|
networkToken: NetworkToken;
|
|
821
708
|
chainLogoUri?: string;
|
|
822
709
|
private?: boolean;
|
|
710
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
823
711
|
};
|
|
824
712
|
|
|
825
713
|
type ListChainsResponse = {
|
|
@@ -840,11 +728,15 @@ declare class EvmChainsService {
|
|
|
840
728
|
* @returns ListChainsResponse
|
|
841
729
|
* @throws ApiError
|
|
842
730
|
*/
|
|
843
|
-
supportedChains({ network, }: {
|
|
731
|
+
supportedChains({ network, feature, }: {
|
|
844
732
|
/**
|
|
845
733
|
* mainnet or testnet.
|
|
846
734
|
*/
|
|
847
735
|
network?: NetworkType;
|
|
736
|
+
/**
|
|
737
|
+
* Filter by feature.
|
|
738
|
+
*/
|
|
739
|
+
feature?: GlacierApiFeature;
|
|
848
740
|
}): CancelablePromise<ListChainsResponse>;
|
|
849
741
|
/**
|
|
850
742
|
* Get chain information
|
|
@@ -1299,6 +1191,9 @@ type Erc721TransferDetails = {
|
|
|
1299
1191
|
erc721Token: Erc721Token;
|
|
1300
1192
|
};
|
|
1301
1193
|
|
|
1194
|
+
/**
|
|
1195
|
+
* 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.
|
|
1196
|
+
*/
|
|
1302
1197
|
declare enum TransactionMethodType {
|
|
1303
1198
|
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1304
1199
|
CONTRACT_CALL = "CONTRACT_CALL",
|
|
@@ -1306,9 +1201,6 @@ declare enum TransactionMethodType {
|
|
|
1306
1201
|
}
|
|
1307
1202
|
|
|
1308
1203
|
type Method = {
|
|
1309
|
-
/**
|
|
1310
|
-
* 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.
|
|
1311
|
-
*/
|
|
1312
1204
|
callType: TransactionMethodType;
|
|
1313
1205
|
/**
|
|
1314
1206
|
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
@@ -1669,7 +1561,7 @@ type ListTransfersResponse = {
|
|
|
1669
1561
|
* 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.
|
|
1670
1562
|
*/
|
|
1671
1563
|
nextPageToken?: string;
|
|
1672
|
-
transfers:
|
|
1564
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1673
1565
|
};
|
|
1674
1566
|
|
|
1675
1567
|
declare enum SortOrder {
|
|
@@ -2040,7 +1932,7 @@ type ListNftTokens = {
|
|
|
2040
1932
|
* 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.
|
|
2041
1933
|
*/
|
|
2042
1934
|
nextPageToken?: string;
|
|
2043
|
-
tokens:
|
|
1935
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2044
1936
|
};
|
|
2045
1937
|
|
|
2046
1938
|
declare class NfTsService {
|
|
@@ -2117,8 +2009,12 @@ type EvmNetworkOptions = {
|
|
|
2117
2009
|
includeChains: Array<string>;
|
|
2118
2010
|
};
|
|
2119
2011
|
|
|
2012
|
+
declare enum EVMOperationType {
|
|
2013
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2120
2016
|
type CreateEvmTransactionExportRequest = {
|
|
2121
|
-
type:
|
|
2017
|
+
type: EVMOperationType;
|
|
2122
2018
|
firstDate: string;
|
|
2123
2019
|
lastDate: string;
|
|
2124
2020
|
/**
|
|
@@ -2131,20 +2027,21 @@ type CreateEvmTransactionExportRequest = {
|
|
|
2131
2027
|
endDate: string;
|
|
2132
2028
|
options: EvmNetworkOptions;
|
|
2133
2029
|
};
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2030
|
+
|
|
2031
|
+
declare enum PrimaryNetworkOperationType {
|
|
2032
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2033
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2034
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
2138
2035
|
}
|
|
2139
2036
|
|
|
2140
2037
|
type PrimaryNetworkOptions = {
|
|
2141
|
-
addresses
|
|
2038
|
+
addresses?: Array<string>;
|
|
2142
2039
|
cChainEvmAddresses?: Array<string>;
|
|
2143
2040
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2144
2041
|
};
|
|
2145
2042
|
|
|
2146
2043
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2147
|
-
type:
|
|
2044
|
+
type: PrimaryNetworkOperationType;
|
|
2148
2045
|
firstDate: string;
|
|
2149
2046
|
lastDate: string;
|
|
2150
2047
|
/**
|
|
@@ -2157,11 +2054,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
2157
2054
|
endDate: string;
|
|
2158
2055
|
options: PrimaryNetworkOptions;
|
|
2159
2056
|
};
|
|
2160
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
2161
|
-
enum type {
|
|
2162
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
2163
|
-
}
|
|
2164
|
-
}
|
|
2165
2057
|
|
|
2166
2058
|
declare enum OperationStatus {
|
|
2167
2059
|
RUNNING = "RUNNING",
|
|
@@ -2171,8 +2063,10 @@ declare enum OperationStatus {
|
|
|
2171
2063
|
}
|
|
2172
2064
|
|
|
2173
2065
|
declare enum OperationType {
|
|
2174
|
-
|
|
2175
|
-
|
|
2066
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2067
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2068
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2069
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2176
2070
|
}
|
|
2177
2071
|
|
|
2178
2072
|
declare enum OperationStatusCode {
|
|
@@ -2364,13 +2258,44 @@ type BlockchainInfo = {
|
|
|
2364
2258
|
blockchainId: string;
|
|
2365
2259
|
};
|
|
2366
2260
|
|
|
2261
|
+
type SubnetOwnershipInfo = {
|
|
2262
|
+
/**
|
|
2263
|
+
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
2264
|
+
*/
|
|
2265
|
+
locktime: number;
|
|
2266
|
+
/**
|
|
2267
|
+
* Minimum number of signatures required to sign the Subnet update transactions.
|
|
2268
|
+
*/
|
|
2269
|
+
threshold: number;
|
|
2270
|
+
/**
|
|
2271
|
+
* Addresses that are eligible to sign the Subnet update transactions.
|
|
2272
|
+
*/
|
|
2273
|
+
addresses: Array<string>;
|
|
2274
|
+
};
|
|
2275
|
+
|
|
2367
2276
|
type Subnet = {
|
|
2368
2277
|
createBlockTimestamp: number;
|
|
2369
2278
|
createBlockIndex: string;
|
|
2370
2279
|
subnetId: string;
|
|
2280
|
+
/**
|
|
2281
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2282
|
+
* @deprecated
|
|
2283
|
+
*/
|
|
2371
2284
|
ownerAddresses: Array<string>;
|
|
2285
|
+
/**
|
|
2286
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2287
|
+
* @deprecated
|
|
2288
|
+
*/
|
|
2372
2289
|
threshold: number;
|
|
2290
|
+
/**
|
|
2291
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2292
|
+
* @deprecated
|
|
2293
|
+
*/
|
|
2373
2294
|
locktime: number;
|
|
2295
|
+
/**
|
|
2296
|
+
* Latest subnet owner details for this Subnet.
|
|
2297
|
+
*/
|
|
2298
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2374
2299
|
blockchains: Array<BlockchainInfo>;
|
|
2375
2300
|
};
|
|
2376
2301
|
|
|
@@ -2507,11 +2432,17 @@ declare enum ValidationStatusType {
|
|
|
2507
2432
|
REMOVED = "removed"
|
|
2508
2433
|
}
|
|
2509
2434
|
|
|
2435
|
+
/**
|
|
2436
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2437
|
+
*/
|
|
2510
2438
|
declare enum PrimaryNetworkAssetCap {
|
|
2511
2439
|
FIXED = "fixed",
|
|
2512
2440
|
VARIABLE = "variable"
|
|
2513
2441
|
}
|
|
2514
2442
|
|
|
2443
|
+
/**
|
|
2444
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2445
|
+
*/
|
|
2515
2446
|
declare enum PrimaryNetworkAssetType {
|
|
2516
2447
|
SECP256K1 = "secp256k1",
|
|
2517
2448
|
NFT = "nft"
|
|
@@ -2534,17 +2465,11 @@ type XChainAssetDetails = {
|
|
|
2534
2465
|
* Denomination of this asset to represent fungibility.
|
|
2535
2466
|
*/
|
|
2536
2467
|
denomination: number;
|
|
2537
|
-
/**
|
|
2538
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2539
|
-
*/
|
|
2540
2468
|
type: PrimaryNetworkAssetType;
|
|
2541
2469
|
/**
|
|
2542
2470
|
* Timestamp in seconds this asset was created on.
|
|
2543
2471
|
*/
|
|
2544
2472
|
createdAtTimestamp: number;
|
|
2545
|
-
/**
|
|
2546
|
-
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2547
|
-
*/
|
|
2548
2473
|
cap: PrimaryNetworkAssetCap;
|
|
2549
2474
|
};
|
|
2550
2475
|
|
|
@@ -2711,7 +2636,7 @@ declare class PrimaryNetworkService {
|
|
|
2711
2636
|
/**
|
|
2712
2637
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2713
2638
|
*/
|
|
2714
|
-
subnetId?:
|
|
2639
|
+
subnetId?: any;
|
|
2715
2640
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2716
2641
|
/**
|
|
2717
2642
|
* Get single validator details
|
|
@@ -2811,9 +2736,6 @@ type CChainSharedAssetBalance = {
|
|
|
2811
2736
|
* Denomination of this asset to represent fungibility.
|
|
2812
2737
|
*/
|
|
2813
2738
|
denomination: number;
|
|
2814
|
-
/**
|
|
2815
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2816
|
-
*/
|
|
2817
2739
|
type: PrimaryNetworkAssetType;
|
|
2818
2740
|
/**
|
|
2819
2741
|
* Amount of the asset.
|
|
@@ -2849,7 +2771,7 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2849
2771
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2850
2772
|
};
|
|
2851
2773
|
|
|
2852
|
-
type
|
|
2774
|
+
type AggregatedAssetAmount = {
|
|
2853
2775
|
/**
|
|
2854
2776
|
* Unique ID for an asset.
|
|
2855
2777
|
*/
|
|
@@ -2866,14 +2788,12 @@ type Asset = {
|
|
|
2866
2788
|
* Denomination of this asset to represent fungibility.
|
|
2867
2789
|
*/
|
|
2868
2790
|
denomination: number;
|
|
2869
|
-
/**
|
|
2870
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2871
|
-
*/
|
|
2872
2791
|
type: PrimaryNetworkAssetType;
|
|
2873
2792
|
/**
|
|
2874
2793
|
* Amount of the asset.
|
|
2875
2794
|
*/
|
|
2876
2795
|
amount: string;
|
|
2796
|
+
utxoCount: number;
|
|
2877
2797
|
};
|
|
2878
2798
|
|
|
2879
2799
|
type PChainSharedAsset = {
|
|
@@ -2893,49 +2813,47 @@ type PChainSharedAsset = {
|
|
|
2893
2813
|
* Denomination of this asset to represent fungibility.
|
|
2894
2814
|
*/
|
|
2895
2815
|
denomination: number;
|
|
2896
|
-
/**
|
|
2897
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2898
|
-
*/
|
|
2899
2816
|
type: PrimaryNetworkAssetType;
|
|
2900
2817
|
/**
|
|
2901
2818
|
* Amount of the asset.
|
|
2902
2819
|
*/
|
|
2903
2820
|
amount: string;
|
|
2821
|
+
utxoCount: number;
|
|
2904
2822
|
sharedWithChainId: string;
|
|
2905
2823
|
status: string;
|
|
2906
2824
|
};
|
|
2907
2825
|
|
|
2908
2826
|
type PChainBalance = {
|
|
2909
2827
|
/**
|
|
2910
|
-
* A list of objects containing P-chain Asset
|
|
2828
|
+
* 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.
|
|
2911
2829
|
*/
|
|
2912
|
-
unlockedUnstaked: Array<
|
|
2830
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2913
2831
|
/**
|
|
2914
|
-
* A list of objects containing P-chain Asset
|
|
2832
|
+
* 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.
|
|
2915
2833
|
*/
|
|
2916
|
-
unlockedStaked: Array<
|
|
2834
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2917
2835
|
/**
|
|
2918
|
-
* A list of objects containing P-chain Asset
|
|
2836
|
+
* 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.
|
|
2919
2837
|
*/
|
|
2920
|
-
lockedPlatform: Array<
|
|
2838
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2921
2839
|
/**
|
|
2922
|
-
* A list of objects containing P-chain Asset
|
|
2840
|
+
* 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.
|
|
2923
2841
|
*/
|
|
2924
|
-
lockedStakeable: Array<
|
|
2842
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2925
2843
|
/**
|
|
2926
|
-
* A list of objects containing P-chain Asset
|
|
2844
|
+
* 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.
|
|
2927
2845
|
*/
|
|
2928
|
-
lockedStaked: Array<
|
|
2846
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2929
2847
|
/**
|
|
2930
|
-
* A list of objects containing P-chain Asset
|
|
2848
|
+
* 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.
|
|
2931
2849
|
*/
|
|
2932
|
-
pendingStaked: Array<
|
|
2850
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2933
2851
|
/**
|
|
2934
|
-
* A list of objects containing P-chain Asset
|
|
2852
|
+
* 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.
|
|
2935
2853
|
*/
|
|
2936
2854
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2937
2855
|
/**
|
|
2938
|
-
* A list of objects containing P-chain Asset
|
|
2856
|
+
* 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.
|
|
2939
2857
|
*/
|
|
2940
2858
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2941
2859
|
};
|
|
@@ -2945,34 +2863,6 @@ type ListPChainBalancesResponse = {
|
|
|
2945
2863
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2946
2864
|
};
|
|
2947
2865
|
|
|
2948
|
-
type XChainAssetBalance = {
|
|
2949
|
-
/**
|
|
2950
|
-
* Unique ID for an asset.
|
|
2951
|
-
*/
|
|
2952
|
-
assetId: string;
|
|
2953
|
-
/**
|
|
2954
|
-
* Name of this asset.
|
|
2955
|
-
*/
|
|
2956
|
-
name: string;
|
|
2957
|
-
/**
|
|
2958
|
-
* Symbol for this asset (max 4 characters).
|
|
2959
|
-
*/
|
|
2960
|
-
symbol: string;
|
|
2961
|
-
/**
|
|
2962
|
-
* Denomination of this asset to represent fungibility.
|
|
2963
|
-
*/
|
|
2964
|
-
denomination: number;
|
|
2965
|
-
/**
|
|
2966
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2967
|
-
*/
|
|
2968
|
-
type: PrimaryNetworkAssetType;
|
|
2969
|
-
/**
|
|
2970
|
-
* Amount of the asset.
|
|
2971
|
-
*/
|
|
2972
|
-
amount: string;
|
|
2973
|
-
utxoCount: number;
|
|
2974
|
-
};
|
|
2975
|
-
|
|
2976
2866
|
type XChainSharedAssetBalance = {
|
|
2977
2867
|
/**
|
|
2978
2868
|
* Unique ID for an asset.
|
|
@@ -2990,9 +2880,6 @@ type XChainSharedAssetBalance = {
|
|
|
2990
2880
|
* Denomination of this asset to represent fungibility.
|
|
2991
2881
|
*/
|
|
2992
2882
|
denomination: number;
|
|
2993
|
-
/**
|
|
2994
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2995
|
-
*/
|
|
2996
2883
|
type: PrimaryNetworkAssetType;
|
|
2997
2884
|
/**
|
|
2998
2885
|
* Amount of the asset.
|
|
@@ -3006,11 +2893,11 @@ type XChainBalances = {
|
|
|
3006
2893
|
/**
|
|
3007
2894
|
* A list of objects containing X-chain Asset balance information.
|
|
3008
2895
|
*/
|
|
3009
|
-
locked: Array<
|
|
2896
|
+
locked: Array<AggregatedAssetAmount>;
|
|
3010
2897
|
/**
|
|
3011
2898
|
* A list of objects containing X-chain Asset balance information.
|
|
3012
2899
|
*/
|
|
3013
|
-
unlocked: Array<
|
|
2900
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
3014
2901
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
3015
2902
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
3016
2903
|
};
|
|
@@ -3188,9 +3075,6 @@ type AssetWithPriceInfo = {
|
|
|
3188
3075
|
* Denomination of this asset to represent fungibility.
|
|
3189
3076
|
*/
|
|
3190
3077
|
denomination: number;
|
|
3191
|
-
/**
|
|
3192
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3193
|
-
*/
|
|
3194
3078
|
type: PrimaryNetworkAssetType;
|
|
3195
3079
|
/**
|
|
3196
3080
|
* Amount of the asset.
|
|
@@ -3233,6 +3117,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
3233
3117
|
historicalRewards: Array<HistoricalReward>;
|
|
3234
3118
|
};
|
|
3235
3119
|
|
|
3120
|
+
type AssetAmount = {
|
|
3121
|
+
/**
|
|
3122
|
+
* Unique ID for an asset.
|
|
3123
|
+
*/
|
|
3124
|
+
assetId: string;
|
|
3125
|
+
/**
|
|
3126
|
+
* Name of this asset.
|
|
3127
|
+
*/
|
|
3128
|
+
name: string;
|
|
3129
|
+
/**
|
|
3130
|
+
* Symbol for this asset (max 4 characters).
|
|
3131
|
+
*/
|
|
3132
|
+
symbol: string;
|
|
3133
|
+
/**
|
|
3134
|
+
* Denomination of this asset to represent fungibility.
|
|
3135
|
+
*/
|
|
3136
|
+
denomination: number;
|
|
3137
|
+
type: PrimaryNetworkAssetType;
|
|
3138
|
+
/**
|
|
3139
|
+
* Amount of the asset.
|
|
3140
|
+
*/
|
|
3141
|
+
amount: string;
|
|
3142
|
+
};
|
|
3143
|
+
|
|
3236
3144
|
type PendingReward = {
|
|
3237
3145
|
/**
|
|
3238
3146
|
* An array of P-Chain wallet addresses.
|
|
@@ -3246,9 +3154,9 @@ type PendingReward = {
|
|
|
3246
3154
|
rewardType: RewardType;
|
|
3247
3155
|
progress: number;
|
|
3248
3156
|
/**
|
|
3249
|
-
* An object containing P-chain Asset
|
|
3157
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3250
3158
|
*/
|
|
3251
|
-
estimatedReward:
|
|
3159
|
+
estimatedReward: AssetAmount;
|
|
3252
3160
|
};
|
|
3253
3161
|
|
|
3254
3162
|
type ListPendingRewardsResponse = {
|
|
@@ -3349,9 +3257,9 @@ type EVMInput = {
|
|
|
3349
3257
|
*/
|
|
3350
3258
|
fromAddress: string;
|
|
3351
3259
|
/**
|
|
3352
|
-
*
|
|
3260
|
+
* AssetAmount details for the asset being transferred.
|
|
3353
3261
|
*/
|
|
3354
|
-
asset:
|
|
3262
|
+
asset: AssetAmount;
|
|
3355
3263
|
/**
|
|
3356
3264
|
* Credentials that signed this transaction.
|
|
3357
3265
|
*/
|
|
@@ -3363,7 +3271,7 @@ type Utxo = {
|
|
|
3363
3271
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3364
3272
|
*/
|
|
3365
3273
|
addresses: Array<string>;
|
|
3366
|
-
asset:
|
|
3274
|
+
asset: AssetAmount;
|
|
3367
3275
|
/**
|
|
3368
3276
|
* Blockchain ID on which this output is consumed on.
|
|
3369
3277
|
*/
|
|
@@ -3446,11 +3354,11 @@ type CChainExportTransaction = {
|
|
|
3446
3354
|
/**
|
|
3447
3355
|
* Assets unlocked by inputs of this transaction.
|
|
3448
3356
|
*/
|
|
3449
|
-
amountUnlocked: Array<
|
|
3357
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3450
3358
|
/**
|
|
3451
3359
|
* Assets created by outputs of this transaction.
|
|
3452
3360
|
*/
|
|
3453
|
-
amountCreated: Array<
|
|
3361
|
+
amountCreated: Array<AssetAmount>;
|
|
3454
3362
|
/**
|
|
3455
3363
|
* Source chain for an atomic transaction.
|
|
3456
3364
|
*/
|
|
@@ -3481,9 +3389,9 @@ type EVMOutput = {
|
|
|
3481
3389
|
*/
|
|
3482
3390
|
toAddress: string;
|
|
3483
3391
|
/**
|
|
3484
|
-
*
|
|
3392
|
+
* AssetAmount details for the asset being transferred.
|
|
3485
3393
|
*/
|
|
3486
|
-
asset:
|
|
3394
|
+
asset: AssetAmount;
|
|
3487
3395
|
};
|
|
3488
3396
|
|
|
3489
3397
|
type CChainImportTransaction = {
|
|
@@ -3510,11 +3418,11 @@ type CChainImportTransaction = {
|
|
|
3510
3418
|
/**
|
|
3511
3419
|
* Assets unlocked by inputs of this transaction.
|
|
3512
3420
|
*/
|
|
3513
|
-
amountUnlocked: Array<
|
|
3421
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3514
3422
|
/**
|
|
3515
3423
|
* Assets created by outputs of this transaction.
|
|
3516
3424
|
*/
|
|
3517
|
-
amountCreated: Array<
|
|
3425
|
+
amountCreated: Array<AssetAmount>;
|
|
3518
3426
|
/**
|
|
3519
3427
|
* Source chain for an atomic transaction.
|
|
3520
3428
|
*/
|
|
@@ -3562,6 +3470,8 @@ declare enum PChainTransactionType {
|
|
|
3562
3470
|
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3563
3471
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3564
3472
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3473
|
+
BASE_TX = "BaseTx",
|
|
3474
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3565
3475
|
UNKNOWN = "UNKNOWN"
|
|
3566
3476
|
}
|
|
3567
3477
|
|
|
@@ -3575,7 +3485,7 @@ type PChainUtxo = {
|
|
|
3575
3485
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3576
3486
|
*/
|
|
3577
3487
|
addresses: Array<string>;
|
|
3578
|
-
asset:
|
|
3488
|
+
asset: AssetAmount;
|
|
3579
3489
|
/**
|
|
3580
3490
|
* Blockchain ID on which this output is consumed on.
|
|
3581
3491
|
*/
|
|
@@ -3639,17 +3549,17 @@ type PChainTransaction = {
|
|
|
3639
3549
|
*/
|
|
3640
3550
|
destinationChain?: string;
|
|
3641
3551
|
/**
|
|
3642
|
-
* A list of objects containing P-chain Asset
|
|
3552
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3643
3553
|
*/
|
|
3644
|
-
value: Array<
|
|
3554
|
+
value: Array<AssetAmount>;
|
|
3645
3555
|
/**
|
|
3646
|
-
* A list of objects containing P-chain Asset
|
|
3556
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3647
3557
|
*/
|
|
3648
|
-
amountBurned: Array<
|
|
3558
|
+
amountBurned: Array<AssetAmount>;
|
|
3649
3559
|
/**
|
|
3650
|
-
* A list of objects containing P-chain Asset
|
|
3560
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3651
3561
|
*/
|
|
3652
|
-
amountStaked: Array<
|
|
3562
|
+
amountStaked: Array<AssetAmount>;
|
|
3653
3563
|
/**
|
|
3654
3564
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3655
3565
|
*/
|
|
@@ -3681,6 +3591,10 @@ type PChainTransaction = {
|
|
|
3681
3591
|
* Present for RewardValidatorTx
|
|
3682
3592
|
*/
|
|
3683
3593
|
stakingTxHash?: string;
|
|
3594
|
+
/**
|
|
3595
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3596
|
+
*/
|
|
3597
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3684
3598
|
};
|
|
3685
3599
|
|
|
3686
3600
|
type ListPChainTransactionsResponse = {
|
|
@@ -3692,6 +3606,9 @@ type ListPChainTransactionsResponse = {
|
|
|
3692
3606
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3693
3607
|
};
|
|
3694
3608
|
|
|
3609
|
+
/**
|
|
3610
|
+
* Type of transaction.
|
|
3611
|
+
*/
|
|
3695
3612
|
declare enum XChainTransactionType {
|
|
3696
3613
|
BASE_TX = "BaseTx",
|
|
3697
3614
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3714,9 +3631,6 @@ type XChainLinearTransaction = {
|
|
|
3714
3631
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3715
3632
|
*/
|
|
3716
3633
|
timestamp: number;
|
|
3717
|
-
/**
|
|
3718
|
-
* Type of transaction.
|
|
3719
|
-
*/
|
|
3720
3634
|
txType: XChainTransactionType;
|
|
3721
3635
|
/**
|
|
3722
3636
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3727,11 +3641,11 @@ type XChainLinearTransaction = {
|
|
|
3727
3641
|
/**
|
|
3728
3642
|
* Assets unlocked by inputs of this transaction.
|
|
3729
3643
|
*/
|
|
3730
|
-
amountUnlocked: Array<
|
|
3644
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3731
3645
|
/**
|
|
3732
3646
|
* Assets created by outputs of this transaction.
|
|
3733
3647
|
*/
|
|
3734
|
-
amountCreated: Array<
|
|
3648
|
+
amountCreated: Array<AssetAmount>;
|
|
3735
3649
|
/**
|
|
3736
3650
|
* Source chain for an atomic transaction.
|
|
3737
3651
|
*/
|
|
@@ -3741,7 +3655,7 @@ type XChainLinearTransaction = {
|
|
|
3741
3655
|
*/
|
|
3742
3656
|
destinationChain?: string;
|
|
3743
3657
|
/**
|
|
3744
|
-
*
|
|
3658
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3745
3659
|
*/
|
|
3746
3660
|
assetCreated?: XChainAssetDetails;
|
|
3747
3661
|
/**
|
|
@@ -3791,9 +3705,6 @@ type XChainNonLinearTransaction = {
|
|
|
3791
3705
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3792
3706
|
*/
|
|
3793
3707
|
timestamp: number;
|
|
3794
|
-
/**
|
|
3795
|
-
* Type of transaction.
|
|
3796
|
-
*/
|
|
3797
3708
|
txType: XChainTransactionType;
|
|
3798
3709
|
/**
|
|
3799
3710
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3804,11 +3715,11 @@ type XChainNonLinearTransaction = {
|
|
|
3804
3715
|
/**
|
|
3805
3716
|
* Assets unlocked by inputs of this transaction.
|
|
3806
3717
|
*/
|
|
3807
|
-
amountUnlocked: Array<
|
|
3718
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3808
3719
|
/**
|
|
3809
3720
|
* Assets created by outputs of this transaction.
|
|
3810
3721
|
*/
|
|
3811
|
-
amountCreated: Array<
|
|
3722
|
+
amountCreated: Array<AssetAmount>;
|
|
3812
3723
|
/**
|
|
3813
3724
|
* Source chain for an atomic transaction.
|
|
3814
3725
|
*/
|
|
@@ -3818,7 +3729,7 @@ type XChainNonLinearTransaction = {
|
|
|
3818
3729
|
*/
|
|
3819
3730
|
destinationChain?: string;
|
|
3820
3731
|
/**
|
|
3821
|
-
*
|
|
3732
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3822
3733
|
*/
|
|
3823
3734
|
assetCreated?: XChainAssetDetails;
|
|
3824
3735
|
/**
|
|
@@ -3864,8 +3775,9 @@ declare enum PrimaryNetworkTxType {
|
|
|
3864
3775
|
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3865
3776
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3866
3777
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3867
|
-
UNKNOWN = "UNKNOWN",
|
|
3868
3778
|
BASE_TX = "BaseTx",
|
|
3779
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3780
|
+
UNKNOWN = "UNKNOWN",
|
|
3869
3781
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3870
3782
|
OPERATION_TX = "OperationTx"
|
|
3871
3783
|
}
|
|
@@ -4191,6 +4103,391 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4191
4103
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4192
4104
|
}
|
|
4193
4105
|
|
|
4106
|
+
type RpcErrorDto = {
|
|
4107
|
+
code: number;
|
|
4108
|
+
message: string;
|
|
4109
|
+
data?: Record<string, any>;
|
|
4110
|
+
};
|
|
4111
|
+
|
|
4112
|
+
type RpcErrorResponseDto = {
|
|
4113
|
+
jsonrpc: string;
|
|
4114
|
+
id?: (string | number);
|
|
4115
|
+
error: RpcErrorDto;
|
|
4116
|
+
};
|
|
4117
|
+
|
|
4118
|
+
type RpcRequestBodyDto = {
|
|
4119
|
+
method: string;
|
|
4120
|
+
params?: Record<string, any>;
|
|
4121
|
+
id?: (string | number);
|
|
4122
|
+
jsonrpc?: string;
|
|
4123
|
+
};
|
|
4124
|
+
|
|
4125
|
+
type RpcSuccessResponseDto = {
|
|
4126
|
+
jsonrpc: string;
|
|
4127
|
+
id?: (string | number);
|
|
4128
|
+
result: Record<string, any>;
|
|
4129
|
+
};
|
|
4130
|
+
|
|
4131
|
+
declare class RpcService {
|
|
4132
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4133
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4134
|
+
/**
|
|
4135
|
+
* Calls JSON-RPC method
|
|
4136
|
+
* Calls JSON-RPC method.
|
|
4137
|
+
* @returns any
|
|
4138
|
+
* @throws ApiError
|
|
4139
|
+
*/
|
|
4140
|
+
rpc({ chainId, requestBody, }: {
|
|
4141
|
+
/**
|
|
4142
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4143
|
+
*/
|
|
4144
|
+
chainId: string;
|
|
4145
|
+
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4146
|
+
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4147
|
+
}
|
|
4148
|
+
|
|
4149
|
+
type TeleporterDestinationTransaction = {
|
|
4150
|
+
txHash: string;
|
|
4151
|
+
timestamp: number;
|
|
4152
|
+
gasSpent: string;
|
|
4153
|
+
rewardRedeemer: string;
|
|
4154
|
+
delivererAddress: string;
|
|
4155
|
+
};
|
|
4156
|
+
|
|
4157
|
+
type TeleporterReceipt = {
|
|
4158
|
+
receivedMessageNonce: string;
|
|
4159
|
+
relayerRewardAddress: string;
|
|
4160
|
+
};
|
|
4161
|
+
|
|
4162
|
+
type TeleporterRewardDetails = {
|
|
4163
|
+
/**
|
|
4164
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
4165
|
+
*/
|
|
4166
|
+
address: string;
|
|
4167
|
+
/**
|
|
4168
|
+
* The contract name.
|
|
4169
|
+
*/
|
|
4170
|
+
name: string;
|
|
4171
|
+
/**
|
|
4172
|
+
* The contract symbol.
|
|
4173
|
+
*/
|
|
4174
|
+
symbol: string;
|
|
4175
|
+
/**
|
|
4176
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
4177
|
+
*/
|
|
4178
|
+
decimals: number;
|
|
4179
|
+
/**
|
|
4180
|
+
* The logo uri for the address.
|
|
4181
|
+
*/
|
|
4182
|
+
logoUri?: string;
|
|
4183
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
4184
|
+
/**
|
|
4185
|
+
* The token price, if available.
|
|
4186
|
+
*/
|
|
4187
|
+
price?: Money;
|
|
4188
|
+
value: string;
|
|
4189
|
+
};
|
|
4190
|
+
declare namespace TeleporterRewardDetails {
|
|
4191
|
+
enum ercType {
|
|
4192
|
+
ERC_20 = "ERC-20"
|
|
4193
|
+
}
|
|
4194
|
+
}
|
|
4195
|
+
|
|
4196
|
+
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4197
|
+
messageId: string;
|
|
4198
|
+
teleporterContractAddress: string;
|
|
4199
|
+
sourceBlockchainId: string;
|
|
4200
|
+
destinationBlockchainId: string;
|
|
4201
|
+
messageNonce: string;
|
|
4202
|
+
from: string;
|
|
4203
|
+
to: string;
|
|
4204
|
+
data?: string;
|
|
4205
|
+
messageExecuted: boolean;
|
|
4206
|
+
receipts: Array<TeleporterReceipt>;
|
|
4207
|
+
receiptDelivered: boolean;
|
|
4208
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4209
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4210
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4211
|
+
};
|
|
4212
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4213
|
+
enum status {
|
|
4214
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4215
|
+
}
|
|
4216
|
+
}
|
|
4217
|
+
|
|
4218
|
+
type TeleporterSourceTransaction = {
|
|
4219
|
+
txHash: string;
|
|
4220
|
+
timestamp: number;
|
|
4221
|
+
gasSpent: string;
|
|
4222
|
+
};
|
|
4223
|
+
|
|
4224
|
+
type DeliveredTeleporterMessage = {
|
|
4225
|
+
messageId: string;
|
|
4226
|
+
teleporterContractAddress: string;
|
|
4227
|
+
sourceBlockchainId: string;
|
|
4228
|
+
destinationBlockchainId: string;
|
|
4229
|
+
messageNonce: string;
|
|
4230
|
+
from: string;
|
|
4231
|
+
to: string;
|
|
4232
|
+
data?: string;
|
|
4233
|
+
messageExecuted: boolean;
|
|
4234
|
+
receipts: Array<TeleporterReceipt>;
|
|
4235
|
+
receiptDelivered: boolean;
|
|
4236
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4237
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4238
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4239
|
+
status: DeliveredTeleporterMessage.status;
|
|
4240
|
+
};
|
|
4241
|
+
declare namespace DeliveredTeleporterMessage {
|
|
4242
|
+
enum status {
|
|
4243
|
+
DELIVERED = "delivered"
|
|
4244
|
+
}
|
|
4245
|
+
}
|
|
4246
|
+
|
|
4247
|
+
type NextPageToken = {
|
|
4248
|
+
/**
|
|
4249
|
+
* 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.
|
|
4250
|
+
*/
|
|
4251
|
+
nextPageToken?: string;
|
|
4252
|
+
};
|
|
4253
|
+
|
|
4254
|
+
type PendingTeleporterMessage = {
|
|
4255
|
+
messageId: string;
|
|
4256
|
+
teleporterContractAddress: string;
|
|
4257
|
+
sourceBlockchainId: string;
|
|
4258
|
+
destinationBlockchainId: string;
|
|
4259
|
+
messageNonce: string;
|
|
4260
|
+
from: string;
|
|
4261
|
+
to: string;
|
|
4262
|
+
data?: string;
|
|
4263
|
+
messageExecuted: boolean;
|
|
4264
|
+
receipts: Array<TeleporterReceipt>;
|
|
4265
|
+
receiptDelivered: boolean;
|
|
4266
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4267
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4268
|
+
status: PendingTeleporterMessage.status;
|
|
4269
|
+
};
|
|
4270
|
+
declare namespace PendingTeleporterMessage {
|
|
4271
|
+
enum status {
|
|
4272
|
+
PENDING = "pending"
|
|
4273
|
+
}
|
|
4274
|
+
}
|
|
4275
|
+
|
|
4276
|
+
declare class TeleporterService {
|
|
4277
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4278
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4279
|
+
/**
|
|
4280
|
+
* Get a teleporter message
|
|
4281
|
+
* Gets a teleporter message by message ID.
|
|
4282
|
+
* @returns any
|
|
4283
|
+
* @throws ApiError
|
|
4284
|
+
*/
|
|
4285
|
+
getTeleporterMessage({ messageId, }: {
|
|
4286
|
+
/**
|
|
4287
|
+
* The message ID of the teleporter message.
|
|
4288
|
+
*/
|
|
4289
|
+
messageId: string;
|
|
4290
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4291
|
+
/**
|
|
4292
|
+
* List teleporter messages
|
|
4293
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4294
|
+
* @returns any
|
|
4295
|
+
* @throws ApiError
|
|
4296
|
+
*/
|
|
4297
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
4298
|
+
/**
|
|
4299
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4300
|
+
*/
|
|
4301
|
+
pageToken?: string;
|
|
4302
|
+
/**
|
|
4303
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4304
|
+
*/
|
|
4305
|
+
pageSize?: number;
|
|
4306
|
+
/**
|
|
4307
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4308
|
+
*/
|
|
4309
|
+
sourceBlockchainId?: string;
|
|
4310
|
+
/**
|
|
4311
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4312
|
+
*/
|
|
4313
|
+
destinationBlockchainId?: string;
|
|
4314
|
+
/**
|
|
4315
|
+
* The address of the recipient of the teleporter message.
|
|
4316
|
+
*/
|
|
4317
|
+
to?: string;
|
|
4318
|
+
/**
|
|
4319
|
+
* The address of the sender of the teleporter message.
|
|
4320
|
+
*/
|
|
4321
|
+
from?: string;
|
|
4322
|
+
}): CancelablePromise<NextPageToken>;
|
|
4323
|
+
}
|
|
4324
|
+
|
|
4325
|
+
type AddressActivityMetadata = {
|
|
4326
|
+
/**
|
|
4327
|
+
* Ethereum address(es) for the address_activity event type
|
|
4328
|
+
*/
|
|
4329
|
+
addresses: Array<any[]>;
|
|
4330
|
+
/**
|
|
4331
|
+
* Array of hexadecimal strings of the event signatures.
|
|
4332
|
+
*/
|
|
4333
|
+
eventSignatures?: Array<string>;
|
|
4334
|
+
};
|
|
4335
|
+
|
|
4336
|
+
declare enum EventType {
|
|
4337
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
4338
|
+
}
|
|
4339
|
+
|
|
4340
|
+
declare enum WebhookStatusType {
|
|
4341
|
+
ACTIVE = "active",
|
|
4342
|
+
INACTIVE = "inactive"
|
|
4343
|
+
}
|
|
4344
|
+
|
|
4345
|
+
type WebhookResponse = {
|
|
4346
|
+
id: string;
|
|
4347
|
+
eventType: EventType;
|
|
4348
|
+
metadata: AddressActivityMetadata;
|
|
4349
|
+
/**
|
|
4350
|
+
* Whether to include traces in the webhook payload.
|
|
4351
|
+
*/
|
|
4352
|
+
includeInternalTxs?: boolean;
|
|
4353
|
+
/**
|
|
4354
|
+
* Whether to include logs in the webhook payload.
|
|
4355
|
+
*/
|
|
4356
|
+
includeLogs?: boolean;
|
|
4357
|
+
url: string;
|
|
4358
|
+
chainId: string;
|
|
4359
|
+
status: WebhookStatusType;
|
|
4360
|
+
createdAt: number;
|
|
4361
|
+
name: string;
|
|
4362
|
+
description: string;
|
|
4363
|
+
};
|
|
4364
|
+
|
|
4365
|
+
type ListWebhooksResponse = {
|
|
4366
|
+
/**
|
|
4367
|
+
* 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.
|
|
4368
|
+
*/
|
|
4369
|
+
nextPageToken?: string;
|
|
4370
|
+
webhooks: Array<WebhookResponse>;
|
|
4371
|
+
};
|
|
4372
|
+
|
|
4373
|
+
type RegisterWebhookRequest = {
|
|
4374
|
+
url: string;
|
|
4375
|
+
chainId: string;
|
|
4376
|
+
eventType: EventType;
|
|
4377
|
+
metadata: AddressActivityMetadata;
|
|
4378
|
+
/**
|
|
4379
|
+
* Whether to include traces in the webhook payload.
|
|
4380
|
+
*/
|
|
4381
|
+
includeInternalTxs?: boolean;
|
|
4382
|
+
/**
|
|
4383
|
+
* Whether to include logs in the webhook payload.
|
|
4384
|
+
*/
|
|
4385
|
+
includeLogs?: boolean;
|
|
4386
|
+
};
|
|
4387
|
+
|
|
4388
|
+
type SharedSecretsResponse = {
|
|
4389
|
+
secret: string;
|
|
4390
|
+
};
|
|
4391
|
+
|
|
4392
|
+
type UpdateWebhookRequest = {
|
|
4393
|
+
name?: string;
|
|
4394
|
+
description?: string;
|
|
4395
|
+
url?: string;
|
|
4396
|
+
status?: WebhookStatusType;
|
|
4397
|
+
includeInternalTxs?: boolean;
|
|
4398
|
+
includeLogs?: boolean;
|
|
4399
|
+
};
|
|
4400
|
+
|
|
4401
|
+
declare enum WebhookStatus {
|
|
4402
|
+
ACTIVE = "active",
|
|
4403
|
+
INACTIVE = "inactive"
|
|
4404
|
+
}
|
|
4405
|
+
|
|
4406
|
+
declare class WebhooksService {
|
|
4407
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4408
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4409
|
+
/**
|
|
4410
|
+
* Register a webhook
|
|
4411
|
+
* Registers a new webhook.
|
|
4412
|
+
* @returns WebhookResponse
|
|
4413
|
+
* @throws ApiError
|
|
4414
|
+
*/
|
|
4415
|
+
registerWebhook({ requestBody, }: {
|
|
4416
|
+
requestBody: RegisterWebhookRequest;
|
|
4417
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4418
|
+
/**
|
|
4419
|
+
* List webhooks
|
|
4420
|
+
* Lists webhooks for the user.
|
|
4421
|
+
* @returns ListWebhooksResponse
|
|
4422
|
+
* @throws ApiError
|
|
4423
|
+
*/
|
|
4424
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
4425
|
+
/**
|
|
4426
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4427
|
+
*/
|
|
4428
|
+
pageToken?: string;
|
|
4429
|
+
/**
|
|
4430
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4431
|
+
*/
|
|
4432
|
+
pageSize?: number;
|
|
4433
|
+
/**
|
|
4434
|
+
* 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.
|
|
4435
|
+
*/
|
|
4436
|
+
status?: WebhookStatus;
|
|
4437
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
4438
|
+
/**
|
|
4439
|
+
* Get a webhook by ID
|
|
4440
|
+
* Retrieves a webhook by ID.
|
|
4441
|
+
* @returns WebhookResponse
|
|
4442
|
+
* @throws ApiError
|
|
4443
|
+
*/
|
|
4444
|
+
getWebhook({ id, }: {
|
|
4445
|
+
/**
|
|
4446
|
+
* The webhook identifier.
|
|
4447
|
+
*/
|
|
4448
|
+
id: string;
|
|
4449
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4450
|
+
/**
|
|
4451
|
+
* Deactivate a webhook
|
|
4452
|
+
* Deactivates a webhook by ID.
|
|
4453
|
+
* @returns WebhookResponse
|
|
4454
|
+
* @throws ApiError
|
|
4455
|
+
*/
|
|
4456
|
+
deactivateWebhook({ id, }: {
|
|
4457
|
+
/**
|
|
4458
|
+
* The webhook identifier.
|
|
4459
|
+
*/
|
|
4460
|
+
id: string;
|
|
4461
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4462
|
+
/**
|
|
4463
|
+
* Update a webhook
|
|
4464
|
+
* Updates an existing webhook.
|
|
4465
|
+
* @returns WebhookResponse
|
|
4466
|
+
* @throws ApiError
|
|
4467
|
+
*/
|
|
4468
|
+
updateWebhook({ id, requestBody, }: {
|
|
4469
|
+
/**
|
|
4470
|
+
* The webhook identifier.
|
|
4471
|
+
*/
|
|
4472
|
+
id: string;
|
|
4473
|
+
requestBody: UpdateWebhookRequest;
|
|
4474
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4475
|
+
/**
|
|
4476
|
+
* Generate a shared secret
|
|
4477
|
+
* Generates a new shared secret.
|
|
4478
|
+
* @returns SharedSecretsResponse
|
|
4479
|
+
* @throws ApiError
|
|
4480
|
+
*/
|
|
4481
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4482
|
+
/**
|
|
4483
|
+
* Get a shared secret
|
|
4484
|
+
* Get a previously generated shared secret.
|
|
4485
|
+
* @returns SharedSecretsResponse
|
|
4486
|
+
* @throws ApiError
|
|
4487
|
+
*/
|
|
4488
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4489
|
+
}
|
|
4490
|
+
|
|
4194
4491
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
4195
4492
|
declare class Glacier {
|
|
4196
4493
|
readonly default: DefaultService;
|
|
@@ -4209,6 +4506,9 @@ declare class Glacier {
|
|
|
4209
4506
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4210
4507
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4211
4508
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4509
|
+
readonly rpc: RpcService;
|
|
4510
|
+
readonly teleporter: TeleporterService;
|
|
4511
|
+
readonly webhooks: WebhooksService;
|
|
4212
4512
|
readonly request: BaseHttpRequest;
|
|
4213
4513
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
4214
4514
|
}
|
|
@@ -4230,4 +4530,4 @@ declare class ApiError extends Error {
|
|
|
4230
4530
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4231
4531
|
}
|
|
4232
4532
|
|
|
4233
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError,
|
|
4533
|
+
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 };
|