@avalabs/glacier-sdk 2.8.0-canary.f195b3d.0 → 2.8.0-canary.f220003.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 +378 -289
- package/dist/index.js +116 -67
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.js +3 -0
- package/esm/generated/models/{Asset.d.ts → AggregatedAssetAmount.d.ts} +3 -5
- package/esm/generated/models/{XChainAssetBalance.d.ts → AssetAmount.d.ts} +2 -6
- package/esm/generated/models/AssetWithPriceInfo.d.ts +0 -3
- package/esm/generated/models/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 +5 -2
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +5 -2
- 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/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 +5 -2
- 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/Subnet.d.ts +17 -0
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
- package/esm/generated/models/TeleporterReceipt.d.ts +6 -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 +10 -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/EvmBalancesService.d.ts +5 -5
- package/esm/generated/services/EvmBlocksService.d.ts +2 -2
- package/esm/generated/services/EvmChainsService.d.ts +7 -2
- package/esm/generated/services/EvmChainsService.js +4 -2
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmTransactionsService.d.ts +12 -12
- package/esm/generated/services/NfTsService.d.ts +3 -3
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +2 -2
- package/esm/generated/services/PrimaryNetworkService.d.ts +1 -1
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/TeleporterService.d.ts +9 -17
- package/esm/generated/services/TeleporterService.js +2 -6
- package/esm/generated/services/WebhooksService.d.ts +95 -0
- package/esm/generated/services/WebhooksService.js +80 -0
- package/esm/index.d.ts +9 -2
- package/esm/index.js +4 -2
- package/package.json +2 -2
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
package/dist/index.d.ts
CHANGED
|
@@ -60,63 +60,6 @@ declare abstract class BaseHttpRequest {
|
|
|
60
60
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
61
61
|
}
|
|
62
62
|
|
|
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
|
-
};
|
|
92
|
-
|
|
93
|
-
type ListWebhooksResponse = {
|
|
94
|
-
/**
|
|
95
|
-
* 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.
|
|
96
|
-
*/
|
|
97
|
-
nextPageToken?: string;
|
|
98
|
-
webhooks: Array<WebhookResponse>;
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
type RegisterWebhookRequest = {
|
|
102
|
-
url: string;
|
|
103
|
-
chainId: string;
|
|
104
|
-
/**
|
|
105
|
-
* The type of event for the webhook
|
|
106
|
-
*/
|
|
107
|
-
eventType: EventType;
|
|
108
|
-
metadata: AddressActivityMetadata;
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
type SharedSecretsResponse = {
|
|
112
|
-
secret: string;
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
declare enum WebhookStatus {
|
|
116
|
-
ACTIVE = "active",
|
|
117
|
-
INACTIVE = "inactive"
|
|
118
|
-
}
|
|
119
|
-
|
|
120
63
|
declare class DefaultService {
|
|
121
64
|
readonly httpRequest: BaseHttpRequest;
|
|
122
65
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -125,56 +68,11 @@ declare class DefaultService {
|
|
|
125
68
|
* @throws ApiError
|
|
126
69
|
*/
|
|
127
70
|
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
128
|
-
/**
|
|
129
|
-
* Register a webhook
|
|
130
|
-
* Registers a new webhook.
|
|
131
|
-
* @returns WebhookResponse
|
|
132
|
-
* @throws ApiError
|
|
133
|
-
*/
|
|
134
|
-
registerWebhook({ requestBody, }: {
|
|
135
|
-
requestBody: RegisterWebhookRequest;
|
|
136
|
-
}): CancelablePromise<WebhookResponse>;
|
|
137
|
-
/**
|
|
138
|
-
* List webhooks
|
|
139
|
-
* Lists webhooks for the user.
|
|
140
|
-
* @returns ListWebhooksResponse
|
|
141
|
-
* @throws ApiError
|
|
142
|
-
*/
|
|
143
|
-
listWebhooks({ pageToken, pageSize, status, }: {
|
|
144
|
-
/**
|
|
145
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
146
|
-
*/
|
|
147
|
-
pageToken?: string;
|
|
148
|
-
/**
|
|
149
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
150
|
-
*/
|
|
151
|
-
pageSize?: number;
|
|
152
|
-
/**
|
|
153
|
-
* 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.
|
|
154
|
-
*/
|
|
155
|
-
status?: WebhookStatus;
|
|
156
|
-
}): CancelablePromise<ListWebhooksResponse>;
|
|
157
|
-
/**
|
|
158
|
-
* Deactivate a webhook
|
|
159
|
-
* Deactivates a webhook by ID.
|
|
160
|
-
* @returns WebhookResponse
|
|
161
|
-
* @throws ApiError
|
|
162
|
-
*/
|
|
163
|
-
deactivateWebhook({ id, }: {
|
|
164
|
-
/**
|
|
165
|
-
* The webhook identifier.
|
|
166
|
-
*/
|
|
167
|
-
id: string;
|
|
168
|
-
}): CancelablePromise<WebhookResponse>;
|
|
169
|
-
/**
|
|
170
|
-
* Generate a shared secret
|
|
171
|
-
* Generates a new shared secret.
|
|
172
|
-
* @returns SharedSecretsResponse
|
|
173
|
-
* @throws ApiError
|
|
174
|
-
*/
|
|
175
|
-
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
176
71
|
}
|
|
177
72
|
|
|
73
|
+
/**
|
|
74
|
+
* ISO 4217 currency code.
|
|
75
|
+
*/
|
|
178
76
|
declare enum CurrencyCode {
|
|
179
77
|
USD = "usd",
|
|
180
78
|
EUR = "eur",
|
|
@@ -193,9 +91,6 @@ declare enum CurrencyCode {
|
|
|
193
91
|
}
|
|
194
92
|
|
|
195
93
|
type Money = {
|
|
196
|
-
/**
|
|
197
|
-
* ISO 4217 currency code.
|
|
198
|
-
*/
|
|
199
94
|
currencyCode: CurrencyCode;
|
|
200
95
|
/**
|
|
201
96
|
* Monetary value in base 10 decimals.
|
|
@@ -245,6 +140,9 @@ type GetNativeBalanceResponse = {
|
|
|
245
140
|
nativeTokenBalance: NativeTokenBalance;
|
|
246
141
|
};
|
|
247
142
|
|
|
143
|
+
/**
|
|
144
|
+
* The metadata indexing status of the nft.
|
|
145
|
+
*/
|
|
248
146
|
declare enum NftTokenMetadataStatus {
|
|
249
147
|
UNKNOWN = "UNKNOWN",
|
|
250
148
|
MISSING_TOKEN = "MISSING_TOKEN",
|
|
@@ -260,9 +158,6 @@ declare enum NftTokenMetadataStatus {
|
|
|
260
158
|
}
|
|
261
159
|
|
|
262
160
|
type Erc1155TokenMetadata = {
|
|
263
|
-
/**
|
|
264
|
-
* The metadata indexing status of the nft.
|
|
265
|
-
*/
|
|
266
161
|
indexStatus: NftTokenMetadataStatus;
|
|
267
162
|
metadataLastUpdatedTimestamp?: number;
|
|
268
163
|
name?: string;
|
|
@@ -301,9 +196,6 @@ declare namespace Erc1155TokenBalance {
|
|
|
301
196
|
}
|
|
302
197
|
|
|
303
198
|
type Erc721TokenMetadata = {
|
|
304
|
-
/**
|
|
305
|
-
* The metadata indexing status of the nft.
|
|
306
|
-
*/
|
|
307
199
|
indexStatus: NftTokenMetadataStatus;
|
|
308
200
|
metadataLastUpdatedTimestamp?: number;
|
|
309
201
|
name?: string;
|
|
@@ -450,7 +342,7 @@ declare class EvmBalancesService {
|
|
|
450
342
|
*/
|
|
451
343
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
452
344
|
/**
|
|
453
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
345
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
454
346
|
*/
|
|
455
347
|
chainId: string;
|
|
456
348
|
/**
|
|
@@ -478,7 +370,7 @@ declare class EvmBalancesService {
|
|
|
478
370
|
*/
|
|
479
371
|
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
480
372
|
/**
|
|
481
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
373
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
482
374
|
*/
|
|
483
375
|
chainId: string;
|
|
484
376
|
/**
|
|
@@ -516,7 +408,7 @@ declare class EvmBalancesService {
|
|
|
516
408
|
*/
|
|
517
409
|
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
518
410
|
/**
|
|
519
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
411
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
520
412
|
*/
|
|
521
413
|
chainId: string;
|
|
522
414
|
/**
|
|
@@ -548,7 +440,7 @@ declare class EvmBalancesService {
|
|
|
548
440
|
*/
|
|
549
441
|
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
550
442
|
/**
|
|
551
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
443
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
552
444
|
*/
|
|
553
445
|
chainId: string;
|
|
554
446
|
/**
|
|
@@ -582,7 +474,7 @@ declare class EvmBalancesService {
|
|
|
582
474
|
*/
|
|
583
475
|
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
584
476
|
/**
|
|
585
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
477
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
586
478
|
*/
|
|
587
479
|
chainId: string;
|
|
588
480
|
/**
|
|
@@ -711,7 +603,7 @@ declare class EvmBlocksService {
|
|
|
711
603
|
*/
|
|
712
604
|
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
713
605
|
/**
|
|
714
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
606
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
715
607
|
*/
|
|
716
608
|
chainId: string;
|
|
717
609
|
/**
|
|
@@ -731,7 +623,7 @@ declare class EvmBlocksService {
|
|
|
731
623
|
*/
|
|
732
624
|
getBlock({ chainId, blockId, }: {
|
|
733
625
|
/**
|
|
734
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
626
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
735
627
|
*/
|
|
736
628
|
chainId: string;
|
|
737
629
|
/**
|
|
@@ -741,6 +633,9 @@ declare class EvmBlocksService {
|
|
|
741
633
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
742
634
|
}
|
|
743
635
|
|
|
636
|
+
/**
|
|
637
|
+
* 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.
|
|
638
|
+
*/
|
|
744
639
|
declare enum ChainStatus {
|
|
745
640
|
OK = "OK",
|
|
746
641
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -778,9 +673,6 @@ declare enum VmName {
|
|
|
778
673
|
|
|
779
674
|
type GetChainResponse = {
|
|
780
675
|
chainId: string;
|
|
781
|
-
/**
|
|
782
|
-
* 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.
|
|
783
|
-
*/
|
|
784
676
|
status: ChainStatus;
|
|
785
677
|
chainName: string;
|
|
786
678
|
description: string;
|
|
@@ -796,13 +688,15 @@ type GetChainResponse = {
|
|
|
796
688
|
networkToken: NetworkToken;
|
|
797
689
|
chainLogoUri?: string;
|
|
798
690
|
private?: boolean;
|
|
691
|
+
enabledFeatures?: Array<'nftIndexing'>;
|
|
799
692
|
};
|
|
800
693
|
|
|
694
|
+
declare enum GlacierApiFeature {
|
|
695
|
+
NFT_INDEXING = "nftIndexing"
|
|
696
|
+
}
|
|
697
|
+
|
|
801
698
|
type ChainInfo = {
|
|
802
699
|
chainId: string;
|
|
803
|
-
/**
|
|
804
|
-
* 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.
|
|
805
|
-
*/
|
|
806
700
|
status: ChainStatus;
|
|
807
701
|
chainName: string;
|
|
808
702
|
description: string;
|
|
@@ -818,6 +712,7 @@ type ChainInfo = {
|
|
|
818
712
|
networkToken: NetworkToken;
|
|
819
713
|
chainLogoUri?: string;
|
|
820
714
|
private?: boolean;
|
|
715
|
+
enabledFeatures?: Array<'nftIndexing'>;
|
|
821
716
|
};
|
|
822
717
|
|
|
823
718
|
type ListChainsResponse = {
|
|
@@ -838,11 +733,15 @@ declare class EvmChainsService {
|
|
|
838
733
|
* @returns ListChainsResponse
|
|
839
734
|
* @throws ApiError
|
|
840
735
|
*/
|
|
841
|
-
supportedChains({ network, }: {
|
|
736
|
+
supportedChains({ network, feature, }: {
|
|
842
737
|
/**
|
|
843
738
|
* mainnet or testnet.
|
|
844
739
|
*/
|
|
845
740
|
network?: NetworkType;
|
|
741
|
+
/**
|
|
742
|
+
* Filter by feature.
|
|
743
|
+
*/
|
|
744
|
+
feature?: GlacierApiFeature;
|
|
846
745
|
}): CancelablePromise<ListChainsResponse>;
|
|
847
746
|
/**
|
|
848
747
|
* Get chain information
|
|
@@ -852,7 +751,7 @@ declare class EvmChainsService {
|
|
|
852
751
|
*/
|
|
853
752
|
getChainInfo({ chainId, }: {
|
|
854
753
|
/**
|
|
855
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
754
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
856
755
|
*/
|
|
857
756
|
chainId: string;
|
|
858
757
|
}): CancelablePromise<GetChainResponse>;
|
|
@@ -1147,7 +1046,7 @@ declare class EvmContractsService {
|
|
|
1147
1046
|
*/
|
|
1148
1047
|
getContractMetadata({ chainId, address, }: {
|
|
1149
1048
|
/**
|
|
1150
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1049
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1151
1050
|
*/
|
|
1152
1051
|
chainId: string;
|
|
1153
1052
|
/**
|
|
@@ -1163,7 +1062,7 @@ declare class EvmContractsService {
|
|
|
1163
1062
|
*/
|
|
1164
1063
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1165
1064
|
/**
|
|
1166
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1065
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1167
1066
|
*/
|
|
1168
1067
|
chainId: string;
|
|
1169
1068
|
/**
|
|
@@ -1297,6 +1196,9 @@ type Erc721TransferDetails = {
|
|
|
1297
1196
|
erc721Token: Erc721Token;
|
|
1298
1197
|
};
|
|
1299
1198
|
|
|
1199
|
+
/**
|
|
1200
|
+
* 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.
|
|
1201
|
+
*/
|
|
1300
1202
|
declare enum TransactionMethodType {
|
|
1301
1203
|
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1302
1204
|
CONTRACT_CALL = "CONTRACT_CALL",
|
|
@@ -1304,9 +1206,6 @@ declare enum TransactionMethodType {
|
|
|
1304
1206
|
}
|
|
1305
1207
|
|
|
1306
1208
|
type Method = {
|
|
1307
|
-
/**
|
|
1308
|
-
* 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.
|
|
1309
|
-
*/
|
|
1310
1209
|
callType: TransactionMethodType;
|
|
1311
1210
|
/**
|
|
1312
1211
|
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
@@ -1667,7 +1566,7 @@ type ListTransfersResponse = {
|
|
|
1667
1566
|
* 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.
|
|
1668
1567
|
*/
|
|
1669
1568
|
nextPageToken?: string;
|
|
1670
|
-
transfers:
|
|
1569
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1671
1570
|
};
|
|
1672
1571
|
|
|
1673
1572
|
declare enum SortOrder {
|
|
@@ -1691,7 +1590,7 @@ declare class EvmTransactionsService {
|
|
|
1691
1590
|
*/
|
|
1692
1591
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1693
1592
|
/**
|
|
1694
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1593
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1695
1594
|
*/
|
|
1696
1595
|
chainId: string;
|
|
1697
1596
|
/**
|
|
@@ -1711,7 +1610,7 @@ declare class EvmTransactionsService {
|
|
|
1711
1610
|
*/
|
|
1712
1611
|
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1713
1612
|
/**
|
|
1714
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1613
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1715
1614
|
*/
|
|
1716
1615
|
chainId: string;
|
|
1717
1616
|
/**
|
|
@@ -1735,7 +1634,7 @@ declare class EvmTransactionsService {
|
|
|
1735
1634
|
*/
|
|
1736
1635
|
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1737
1636
|
/**
|
|
1738
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1637
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1739
1638
|
*/
|
|
1740
1639
|
chainId: string;
|
|
1741
1640
|
/**
|
|
@@ -1769,7 +1668,7 @@ declare class EvmTransactionsService {
|
|
|
1769
1668
|
*/
|
|
1770
1669
|
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1771
1670
|
/**
|
|
1772
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1671
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1773
1672
|
*/
|
|
1774
1673
|
chainId: string;
|
|
1775
1674
|
/**
|
|
@@ -1805,7 +1704,7 @@ declare class EvmTransactionsService {
|
|
|
1805
1704
|
*/
|
|
1806
1705
|
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1807
1706
|
/**
|
|
1808
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1707
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1809
1708
|
*/
|
|
1810
1709
|
chainId: string;
|
|
1811
1710
|
/**
|
|
@@ -1837,7 +1736,7 @@ declare class EvmTransactionsService {
|
|
|
1837
1736
|
*/
|
|
1838
1737
|
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1839
1738
|
/**
|
|
1840
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1739
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1841
1740
|
*/
|
|
1842
1741
|
chainId: string;
|
|
1843
1742
|
/**
|
|
@@ -1869,7 +1768,7 @@ declare class EvmTransactionsService {
|
|
|
1869
1768
|
*/
|
|
1870
1769
|
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1871
1770
|
/**
|
|
1872
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1771
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1873
1772
|
*/
|
|
1874
1773
|
chainId: string;
|
|
1875
1774
|
/**
|
|
@@ -1901,7 +1800,7 @@ declare class EvmTransactionsService {
|
|
|
1901
1800
|
*/
|
|
1902
1801
|
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1903
1802
|
/**
|
|
1904
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1803
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1905
1804
|
*/
|
|
1906
1805
|
chainId: string;
|
|
1907
1806
|
/**
|
|
@@ -1935,7 +1834,7 @@ declare class EvmTransactionsService {
|
|
|
1935
1834
|
*/
|
|
1936
1835
|
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1937
1836
|
/**
|
|
1938
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1837
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1939
1838
|
*/
|
|
1940
1839
|
chainId: string;
|
|
1941
1840
|
/**
|
|
@@ -1967,7 +1866,7 @@ declare class EvmTransactionsService {
|
|
|
1967
1866
|
*/
|
|
1968
1867
|
getTransaction({ chainId, txHash, }: {
|
|
1969
1868
|
/**
|
|
1970
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1869
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1971
1870
|
*/
|
|
1972
1871
|
chainId: string;
|
|
1973
1872
|
/**
|
|
@@ -1983,7 +1882,7 @@ declare class EvmTransactionsService {
|
|
|
1983
1882
|
*/
|
|
1984
1883
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1985
1884
|
/**
|
|
1986
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1885
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1987
1886
|
*/
|
|
1988
1887
|
chainId: string;
|
|
1989
1888
|
/**
|
|
@@ -1999,7 +1898,7 @@ declare class EvmTransactionsService {
|
|
|
1999
1898
|
*/
|
|
2000
1899
|
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
2001
1900
|
/**
|
|
2002
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1901
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2003
1902
|
*/
|
|
2004
1903
|
chainId: string;
|
|
2005
1904
|
/**
|
|
@@ -2038,7 +1937,7 @@ type ListNftTokens = {
|
|
|
2038
1937
|
* 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.
|
|
2039
1938
|
*/
|
|
2040
1939
|
nextPageToken?: string;
|
|
2041
|
-
tokens:
|
|
1940
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2042
1941
|
};
|
|
2043
1942
|
|
|
2044
1943
|
declare class NfTsService {
|
|
@@ -2052,7 +1951,7 @@ declare class NfTsService {
|
|
|
2052
1951
|
*/
|
|
2053
1952
|
reindexNft({ chainId, address, tokenId, }: {
|
|
2054
1953
|
/**
|
|
2055
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1954
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2056
1955
|
*/
|
|
2057
1956
|
chainId: string;
|
|
2058
1957
|
/**
|
|
@@ -2072,7 +1971,7 @@ declare class NfTsService {
|
|
|
2072
1971
|
*/
|
|
2073
1972
|
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2074
1973
|
/**
|
|
2075
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1974
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2076
1975
|
*/
|
|
2077
1976
|
chainId: string;
|
|
2078
1977
|
/**
|
|
@@ -2096,7 +1995,7 @@ declare class NfTsService {
|
|
|
2096
1995
|
*/
|
|
2097
1996
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2098
1997
|
/**
|
|
2099
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1998
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2100
1999
|
*/
|
|
2101
2000
|
chainId: string;
|
|
2102
2001
|
/**
|
|
@@ -2115,8 +2014,12 @@ type EvmNetworkOptions = {
|
|
|
2115
2014
|
includeChains: Array<string>;
|
|
2116
2015
|
};
|
|
2117
2016
|
|
|
2017
|
+
declare enum EVMOperationType {
|
|
2018
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2118
2021
|
type CreateEvmTransactionExportRequest = {
|
|
2119
|
-
type:
|
|
2022
|
+
type: EVMOperationType;
|
|
2120
2023
|
firstDate: string;
|
|
2121
2024
|
lastDate: string;
|
|
2122
2025
|
/**
|
|
@@ -2129,20 +2032,21 @@ type CreateEvmTransactionExportRequest = {
|
|
|
2129
2032
|
endDate: string;
|
|
2130
2033
|
options: EvmNetworkOptions;
|
|
2131
2034
|
};
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2035
|
+
|
|
2036
|
+
declare enum PrimaryNetworkOperationType {
|
|
2037
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2038
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2039
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
2136
2040
|
}
|
|
2137
2041
|
|
|
2138
2042
|
type PrimaryNetworkOptions = {
|
|
2139
|
-
addresses
|
|
2043
|
+
addresses?: Array<string>;
|
|
2140
2044
|
cChainEvmAddresses?: Array<string>;
|
|
2141
2045
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2142
2046
|
};
|
|
2143
2047
|
|
|
2144
2048
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2145
|
-
type:
|
|
2049
|
+
type: PrimaryNetworkOperationType;
|
|
2146
2050
|
firstDate: string;
|
|
2147
2051
|
lastDate: string;
|
|
2148
2052
|
/**
|
|
@@ -2155,11 +2059,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
2155
2059
|
endDate: string;
|
|
2156
2060
|
options: PrimaryNetworkOptions;
|
|
2157
2061
|
};
|
|
2158
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
2159
|
-
enum type {
|
|
2160
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
2161
|
-
}
|
|
2162
|
-
}
|
|
2163
2062
|
|
|
2164
2063
|
declare enum OperationStatus {
|
|
2165
2064
|
RUNNING = "RUNNING",
|
|
@@ -2169,8 +2068,10 @@ declare enum OperationStatus {
|
|
|
2169
2068
|
}
|
|
2170
2069
|
|
|
2171
2070
|
declare enum OperationType {
|
|
2172
|
-
|
|
2173
|
-
|
|
2071
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2072
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2073
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2074
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2174
2075
|
}
|
|
2175
2076
|
|
|
2176
2077
|
declare enum OperationStatusCode {
|
|
@@ -2362,13 +2263,44 @@ type BlockchainInfo = {
|
|
|
2362
2263
|
blockchainId: string;
|
|
2363
2264
|
};
|
|
2364
2265
|
|
|
2266
|
+
type SubnetOwnershipInfo = {
|
|
2267
|
+
/**
|
|
2268
|
+
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
2269
|
+
*/
|
|
2270
|
+
locktime: number;
|
|
2271
|
+
/**
|
|
2272
|
+
* Minimum number of signatures required to sign the Subnet update transactions.
|
|
2273
|
+
*/
|
|
2274
|
+
threshold: number;
|
|
2275
|
+
/**
|
|
2276
|
+
* Addresses that are eligible to sign the Subnet update transactions.
|
|
2277
|
+
*/
|
|
2278
|
+
addresses: Array<string>;
|
|
2279
|
+
};
|
|
2280
|
+
|
|
2365
2281
|
type Subnet = {
|
|
2366
2282
|
createBlockTimestamp: number;
|
|
2367
2283
|
createBlockIndex: string;
|
|
2368
2284
|
subnetId: string;
|
|
2285
|
+
/**
|
|
2286
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2287
|
+
* @deprecated
|
|
2288
|
+
*/
|
|
2369
2289
|
ownerAddresses: Array<string>;
|
|
2290
|
+
/**
|
|
2291
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2292
|
+
* @deprecated
|
|
2293
|
+
*/
|
|
2370
2294
|
threshold: number;
|
|
2295
|
+
/**
|
|
2296
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2297
|
+
* @deprecated
|
|
2298
|
+
*/
|
|
2371
2299
|
locktime: number;
|
|
2300
|
+
/**
|
|
2301
|
+
* Latest subnet owner details for this Subnet.
|
|
2302
|
+
*/
|
|
2303
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2372
2304
|
blockchains: Array<BlockchainInfo>;
|
|
2373
2305
|
};
|
|
2374
2306
|
|
|
@@ -2505,11 +2437,17 @@ declare enum ValidationStatusType {
|
|
|
2505
2437
|
REMOVED = "removed"
|
|
2506
2438
|
}
|
|
2507
2439
|
|
|
2440
|
+
/**
|
|
2441
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2442
|
+
*/
|
|
2508
2443
|
declare enum PrimaryNetworkAssetCap {
|
|
2509
2444
|
FIXED = "fixed",
|
|
2510
2445
|
VARIABLE = "variable"
|
|
2511
2446
|
}
|
|
2512
2447
|
|
|
2448
|
+
/**
|
|
2449
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2450
|
+
*/
|
|
2513
2451
|
declare enum PrimaryNetworkAssetType {
|
|
2514
2452
|
SECP256K1 = "secp256k1",
|
|
2515
2453
|
NFT = "nft"
|
|
@@ -2532,17 +2470,11 @@ type XChainAssetDetails = {
|
|
|
2532
2470
|
* Denomination of this asset to represent fungibility.
|
|
2533
2471
|
*/
|
|
2534
2472
|
denomination: number;
|
|
2535
|
-
/**
|
|
2536
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2537
|
-
*/
|
|
2538
2473
|
type: PrimaryNetworkAssetType;
|
|
2539
2474
|
/**
|
|
2540
2475
|
* Timestamp in seconds this asset was created on.
|
|
2541
2476
|
*/
|
|
2542
2477
|
createdAtTimestamp: number;
|
|
2543
|
-
/**
|
|
2544
|
-
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2545
|
-
*/
|
|
2546
2478
|
cap: PrimaryNetworkAssetCap;
|
|
2547
2479
|
};
|
|
2548
2480
|
|
|
@@ -2709,7 +2641,7 @@ declare class PrimaryNetworkService {
|
|
|
2709
2641
|
/**
|
|
2710
2642
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2711
2643
|
*/
|
|
2712
|
-
subnetId?:
|
|
2644
|
+
subnetId?: any;
|
|
2713
2645
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2714
2646
|
/**
|
|
2715
2647
|
* Get single validator details
|
|
@@ -2809,9 +2741,6 @@ type CChainSharedAssetBalance = {
|
|
|
2809
2741
|
* Denomination of this asset to represent fungibility.
|
|
2810
2742
|
*/
|
|
2811
2743
|
denomination: number;
|
|
2812
|
-
/**
|
|
2813
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2814
|
-
*/
|
|
2815
2744
|
type: PrimaryNetworkAssetType;
|
|
2816
2745
|
/**
|
|
2817
2746
|
* Amount of the asset.
|
|
@@ -2847,7 +2776,7 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2847
2776
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2848
2777
|
};
|
|
2849
2778
|
|
|
2850
|
-
type
|
|
2779
|
+
type AggregatedAssetAmount = {
|
|
2851
2780
|
/**
|
|
2852
2781
|
* Unique ID for an asset.
|
|
2853
2782
|
*/
|
|
@@ -2864,14 +2793,12 @@ type Asset = {
|
|
|
2864
2793
|
* Denomination of this asset to represent fungibility.
|
|
2865
2794
|
*/
|
|
2866
2795
|
denomination: number;
|
|
2867
|
-
/**
|
|
2868
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2869
|
-
*/
|
|
2870
2796
|
type: PrimaryNetworkAssetType;
|
|
2871
2797
|
/**
|
|
2872
2798
|
* Amount of the asset.
|
|
2873
2799
|
*/
|
|
2874
2800
|
amount: string;
|
|
2801
|
+
utxoCount: number;
|
|
2875
2802
|
};
|
|
2876
2803
|
|
|
2877
2804
|
type PChainSharedAsset = {
|
|
@@ -2891,49 +2818,47 @@ type PChainSharedAsset = {
|
|
|
2891
2818
|
* Denomination of this asset to represent fungibility.
|
|
2892
2819
|
*/
|
|
2893
2820
|
denomination: number;
|
|
2894
|
-
/**
|
|
2895
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2896
|
-
*/
|
|
2897
2821
|
type: PrimaryNetworkAssetType;
|
|
2898
2822
|
/**
|
|
2899
2823
|
* Amount of the asset.
|
|
2900
2824
|
*/
|
|
2901
2825
|
amount: string;
|
|
2826
|
+
utxoCount: number;
|
|
2902
2827
|
sharedWithChainId: string;
|
|
2903
2828
|
status: string;
|
|
2904
2829
|
};
|
|
2905
2830
|
|
|
2906
2831
|
type PChainBalance = {
|
|
2907
2832
|
/**
|
|
2908
|
-
* A list of objects containing P-chain Asset
|
|
2833
|
+
* 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.
|
|
2909
2834
|
*/
|
|
2910
|
-
unlockedUnstaked: Array<
|
|
2835
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2911
2836
|
/**
|
|
2912
|
-
* A list of objects containing P-chain Asset
|
|
2837
|
+
* 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.
|
|
2913
2838
|
*/
|
|
2914
|
-
unlockedStaked: Array<
|
|
2839
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2915
2840
|
/**
|
|
2916
|
-
* A list of objects containing P-chain Asset
|
|
2841
|
+
* 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.
|
|
2917
2842
|
*/
|
|
2918
|
-
lockedPlatform: Array<
|
|
2843
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2919
2844
|
/**
|
|
2920
|
-
* A list of objects containing P-chain Asset
|
|
2845
|
+
* 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.
|
|
2921
2846
|
*/
|
|
2922
|
-
lockedStakeable: Array<
|
|
2847
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2923
2848
|
/**
|
|
2924
|
-
* A list of objects containing P-chain Asset
|
|
2849
|
+
* 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.
|
|
2925
2850
|
*/
|
|
2926
|
-
lockedStaked: Array<
|
|
2851
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2927
2852
|
/**
|
|
2928
|
-
* A list of objects containing P-chain Asset
|
|
2853
|
+
* 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.
|
|
2929
2854
|
*/
|
|
2930
|
-
pendingStaked: Array<
|
|
2855
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2931
2856
|
/**
|
|
2932
|
-
* A list of objects containing P-chain Asset
|
|
2857
|
+
* 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.
|
|
2933
2858
|
*/
|
|
2934
2859
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2935
2860
|
/**
|
|
2936
|
-
* A list of objects containing P-chain Asset
|
|
2861
|
+
* 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.
|
|
2937
2862
|
*/
|
|
2938
2863
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2939
2864
|
};
|
|
@@ -2943,34 +2868,6 @@ type ListPChainBalancesResponse = {
|
|
|
2943
2868
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2944
2869
|
};
|
|
2945
2870
|
|
|
2946
|
-
type XChainAssetBalance = {
|
|
2947
|
-
/**
|
|
2948
|
-
* Unique ID for an asset.
|
|
2949
|
-
*/
|
|
2950
|
-
assetId: string;
|
|
2951
|
-
/**
|
|
2952
|
-
* Name of this asset.
|
|
2953
|
-
*/
|
|
2954
|
-
name: string;
|
|
2955
|
-
/**
|
|
2956
|
-
* Symbol for this asset (max 4 characters).
|
|
2957
|
-
*/
|
|
2958
|
-
symbol: string;
|
|
2959
|
-
/**
|
|
2960
|
-
* Denomination of this asset to represent fungibility.
|
|
2961
|
-
*/
|
|
2962
|
-
denomination: number;
|
|
2963
|
-
/**
|
|
2964
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2965
|
-
*/
|
|
2966
|
-
type: PrimaryNetworkAssetType;
|
|
2967
|
-
/**
|
|
2968
|
-
* Amount of the asset.
|
|
2969
|
-
*/
|
|
2970
|
-
amount: string;
|
|
2971
|
-
utxoCount: number;
|
|
2972
|
-
};
|
|
2973
|
-
|
|
2974
2871
|
type XChainSharedAssetBalance = {
|
|
2975
2872
|
/**
|
|
2976
2873
|
* Unique ID for an asset.
|
|
@@ -2988,9 +2885,6 @@ type XChainSharedAssetBalance = {
|
|
|
2988
2885
|
* Denomination of this asset to represent fungibility.
|
|
2989
2886
|
*/
|
|
2990
2887
|
denomination: number;
|
|
2991
|
-
/**
|
|
2992
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2993
|
-
*/
|
|
2994
2888
|
type: PrimaryNetworkAssetType;
|
|
2995
2889
|
/**
|
|
2996
2890
|
* Amount of the asset.
|
|
@@ -3004,11 +2898,11 @@ type XChainBalances = {
|
|
|
3004
2898
|
/**
|
|
3005
2899
|
* A list of objects containing X-chain Asset balance information.
|
|
3006
2900
|
*/
|
|
3007
|
-
locked: Array<
|
|
2901
|
+
locked: Array<AggregatedAssetAmount>;
|
|
3008
2902
|
/**
|
|
3009
2903
|
* A list of objects containing X-chain Asset balance information.
|
|
3010
2904
|
*/
|
|
3011
|
-
unlocked: Array<
|
|
2905
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
3012
2906
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
3013
2907
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
3014
2908
|
};
|
|
@@ -3186,9 +3080,6 @@ type AssetWithPriceInfo = {
|
|
|
3186
3080
|
* Denomination of this asset to represent fungibility.
|
|
3187
3081
|
*/
|
|
3188
3082
|
denomination: number;
|
|
3189
|
-
/**
|
|
3190
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3191
|
-
*/
|
|
3192
3083
|
type: PrimaryNetworkAssetType;
|
|
3193
3084
|
/**
|
|
3194
3085
|
* Amount of the asset.
|
|
@@ -3231,6 +3122,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
3231
3122
|
historicalRewards: Array<HistoricalReward>;
|
|
3232
3123
|
};
|
|
3233
3124
|
|
|
3125
|
+
type AssetAmount = {
|
|
3126
|
+
/**
|
|
3127
|
+
* Unique ID for an asset.
|
|
3128
|
+
*/
|
|
3129
|
+
assetId: string;
|
|
3130
|
+
/**
|
|
3131
|
+
* Name of this asset.
|
|
3132
|
+
*/
|
|
3133
|
+
name: string;
|
|
3134
|
+
/**
|
|
3135
|
+
* Symbol for this asset (max 4 characters).
|
|
3136
|
+
*/
|
|
3137
|
+
symbol: string;
|
|
3138
|
+
/**
|
|
3139
|
+
* Denomination of this asset to represent fungibility.
|
|
3140
|
+
*/
|
|
3141
|
+
denomination: number;
|
|
3142
|
+
type: PrimaryNetworkAssetType;
|
|
3143
|
+
/**
|
|
3144
|
+
* Amount of the asset.
|
|
3145
|
+
*/
|
|
3146
|
+
amount: string;
|
|
3147
|
+
};
|
|
3148
|
+
|
|
3234
3149
|
type PendingReward = {
|
|
3235
3150
|
/**
|
|
3236
3151
|
* An array of P-Chain wallet addresses.
|
|
@@ -3244,9 +3159,9 @@ type PendingReward = {
|
|
|
3244
3159
|
rewardType: RewardType;
|
|
3245
3160
|
progress: number;
|
|
3246
3161
|
/**
|
|
3247
|
-
* An object containing P-chain Asset
|
|
3162
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3248
3163
|
*/
|
|
3249
|
-
estimatedReward:
|
|
3164
|
+
estimatedReward: AssetAmount;
|
|
3250
3165
|
};
|
|
3251
3166
|
|
|
3252
3167
|
type ListPendingRewardsResponse = {
|
|
@@ -3272,7 +3187,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3272
3187
|
*/
|
|
3273
3188
|
network: Network;
|
|
3274
3189
|
/**
|
|
3275
|
-
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
3190
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". One of addresses or nodeIds is required.
|
|
3276
3191
|
*/
|
|
3277
3192
|
addresses?: string;
|
|
3278
3193
|
/**
|
|
@@ -3284,7 +3199,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3284
3199
|
*/
|
|
3285
3200
|
pageSize?: number;
|
|
3286
3201
|
/**
|
|
3287
|
-
* A comma separated list of node ids to filter by.
|
|
3202
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
3288
3203
|
*/
|
|
3289
3204
|
nodeIds?: string;
|
|
3290
3205
|
/**
|
|
@@ -3347,9 +3262,9 @@ type EVMInput = {
|
|
|
3347
3262
|
*/
|
|
3348
3263
|
fromAddress: string;
|
|
3349
3264
|
/**
|
|
3350
|
-
*
|
|
3265
|
+
* AssetAmount details for the asset being transferred.
|
|
3351
3266
|
*/
|
|
3352
|
-
asset:
|
|
3267
|
+
asset: AssetAmount;
|
|
3353
3268
|
/**
|
|
3354
3269
|
* Credentials that signed this transaction.
|
|
3355
3270
|
*/
|
|
@@ -3361,7 +3276,7 @@ type Utxo = {
|
|
|
3361
3276
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3362
3277
|
*/
|
|
3363
3278
|
addresses: Array<string>;
|
|
3364
|
-
asset:
|
|
3279
|
+
asset: AssetAmount;
|
|
3365
3280
|
/**
|
|
3366
3281
|
* Blockchain ID on which this output is consumed on.
|
|
3367
3282
|
*/
|
|
@@ -3444,11 +3359,11 @@ type CChainExportTransaction = {
|
|
|
3444
3359
|
/**
|
|
3445
3360
|
* Assets unlocked by inputs of this transaction.
|
|
3446
3361
|
*/
|
|
3447
|
-
amountUnlocked: Array<
|
|
3362
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3448
3363
|
/**
|
|
3449
3364
|
* Assets created by outputs of this transaction.
|
|
3450
3365
|
*/
|
|
3451
|
-
amountCreated: Array<
|
|
3366
|
+
amountCreated: Array<AssetAmount>;
|
|
3452
3367
|
/**
|
|
3453
3368
|
* Source chain for an atomic transaction.
|
|
3454
3369
|
*/
|
|
@@ -3479,9 +3394,9 @@ type EVMOutput = {
|
|
|
3479
3394
|
*/
|
|
3480
3395
|
toAddress: string;
|
|
3481
3396
|
/**
|
|
3482
|
-
*
|
|
3397
|
+
* AssetAmount details for the asset being transferred.
|
|
3483
3398
|
*/
|
|
3484
|
-
asset:
|
|
3399
|
+
asset: AssetAmount;
|
|
3485
3400
|
};
|
|
3486
3401
|
|
|
3487
3402
|
type CChainImportTransaction = {
|
|
@@ -3508,11 +3423,11 @@ type CChainImportTransaction = {
|
|
|
3508
3423
|
/**
|
|
3509
3424
|
* Assets unlocked by inputs of this transaction.
|
|
3510
3425
|
*/
|
|
3511
|
-
amountUnlocked: Array<
|
|
3426
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3512
3427
|
/**
|
|
3513
3428
|
* Assets created by outputs of this transaction.
|
|
3514
3429
|
*/
|
|
3515
|
-
amountCreated: Array<
|
|
3430
|
+
amountCreated: Array<AssetAmount>;
|
|
3516
3431
|
/**
|
|
3517
3432
|
* Source chain for an atomic transaction.
|
|
3518
3433
|
*/
|
|
@@ -3560,6 +3475,8 @@ declare enum PChainTransactionType {
|
|
|
3560
3475
|
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3561
3476
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3562
3477
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3478
|
+
BASE_TX = "BaseTx",
|
|
3479
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3563
3480
|
UNKNOWN = "UNKNOWN"
|
|
3564
3481
|
}
|
|
3565
3482
|
|
|
@@ -3573,7 +3490,7 @@ type PChainUtxo = {
|
|
|
3573
3490
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3574
3491
|
*/
|
|
3575
3492
|
addresses: Array<string>;
|
|
3576
|
-
asset:
|
|
3493
|
+
asset: AssetAmount;
|
|
3577
3494
|
/**
|
|
3578
3495
|
* Blockchain ID on which this output is consumed on.
|
|
3579
3496
|
*/
|
|
@@ -3637,17 +3554,17 @@ type PChainTransaction = {
|
|
|
3637
3554
|
*/
|
|
3638
3555
|
destinationChain?: string;
|
|
3639
3556
|
/**
|
|
3640
|
-
* A list of objects containing P-chain Asset
|
|
3557
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3641
3558
|
*/
|
|
3642
|
-
value: Array<
|
|
3559
|
+
value: Array<AssetAmount>;
|
|
3643
3560
|
/**
|
|
3644
|
-
* A list of objects containing P-chain Asset
|
|
3561
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3645
3562
|
*/
|
|
3646
|
-
amountBurned: Array<
|
|
3563
|
+
amountBurned: Array<AssetAmount>;
|
|
3647
3564
|
/**
|
|
3648
|
-
* A list of objects containing P-chain Asset
|
|
3565
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3649
3566
|
*/
|
|
3650
|
-
amountStaked: Array<
|
|
3567
|
+
amountStaked: Array<AssetAmount>;
|
|
3651
3568
|
/**
|
|
3652
3569
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3653
3570
|
*/
|
|
@@ -3679,6 +3596,10 @@ type PChainTransaction = {
|
|
|
3679
3596
|
* Present for RewardValidatorTx
|
|
3680
3597
|
*/
|
|
3681
3598
|
stakingTxHash?: string;
|
|
3599
|
+
/**
|
|
3600
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3601
|
+
*/
|
|
3602
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3682
3603
|
};
|
|
3683
3604
|
|
|
3684
3605
|
type ListPChainTransactionsResponse = {
|
|
@@ -3690,6 +3611,9 @@ type ListPChainTransactionsResponse = {
|
|
|
3690
3611
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3691
3612
|
};
|
|
3692
3613
|
|
|
3614
|
+
/**
|
|
3615
|
+
* Type of transaction.
|
|
3616
|
+
*/
|
|
3693
3617
|
declare enum XChainTransactionType {
|
|
3694
3618
|
BASE_TX = "BaseTx",
|
|
3695
3619
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3712,9 +3636,6 @@ type XChainLinearTransaction = {
|
|
|
3712
3636
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3713
3637
|
*/
|
|
3714
3638
|
timestamp: number;
|
|
3715
|
-
/**
|
|
3716
|
-
* Type of transaction.
|
|
3717
|
-
*/
|
|
3718
3639
|
txType: XChainTransactionType;
|
|
3719
3640
|
/**
|
|
3720
3641
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3725,11 +3646,11 @@ type XChainLinearTransaction = {
|
|
|
3725
3646
|
/**
|
|
3726
3647
|
* Assets unlocked by inputs of this transaction.
|
|
3727
3648
|
*/
|
|
3728
|
-
amountUnlocked: Array<
|
|
3649
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3729
3650
|
/**
|
|
3730
3651
|
* Assets created by outputs of this transaction.
|
|
3731
3652
|
*/
|
|
3732
|
-
amountCreated: Array<
|
|
3653
|
+
amountCreated: Array<AssetAmount>;
|
|
3733
3654
|
/**
|
|
3734
3655
|
* Source chain for an atomic transaction.
|
|
3735
3656
|
*/
|
|
@@ -3739,7 +3660,7 @@ type XChainLinearTransaction = {
|
|
|
3739
3660
|
*/
|
|
3740
3661
|
destinationChain?: string;
|
|
3741
3662
|
/**
|
|
3742
|
-
*
|
|
3663
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3743
3664
|
*/
|
|
3744
3665
|
assetCreated?: XChainAssetDetails;
|
|
3745
3666
|
/**
|
|
@@ -3789,9 +3710,6 @@ type XChainNonLinearTransaction = {
|
|
|
3789
3710
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3790
3711
|
*/
|
|
3791
3712
|
timestamp: number;
|
|
3792
|
-
/**
|
|
3793
|
-
* Type of transaction.
|
|
3794
|
-
*/
|
|
3795
3713
|
txType: XChainTransactionType;
|
|
3796
3714
|
/**
|
|
3797
3715
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3802,11 +3720,11 @@ type XChainNonLinearTransaction = {
|
|
|
3802
3720
|
/**
|
|
3803
3721
|
* Assets unlocked by inputs of this transaction.
|
|
3804
3722
|
*/
|
|
3805
|
-
amountUnlocked: Array<
|
|
3723
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3806
3724
|
/**
|
|
3807
3725
|
* Assets created by outputs of this transaction.
|
|
3808
3726
|
*/
|
|
3809
|
-
amountCreated: Array<
|
|
3727
|
+
amountCreated: Array<AssetAmount>;
|
|
3810
3728
|
/**
|
|
3811
3729
|
* Source chain for an atomic transaction.
|
|
3812
3730
|
*/
|
|
@@ -3816,7 +3734,7 @@ type XChainNonLinearTransaction = {
|
|
|
3816
3734
|
*/
|
|
3817
3735
|
destinationChain?: string;
|
|
3818
3736
|
/**
|
|
3819
|
-
*
|
|
3737
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3820
3738
|
*/
|
|
3821
3739
|
assetCreated?: XChainAssetDetails;
|
|
3822
3740
|
/**
|
|
@@ -3862,8 +3780,9 @@ declare enum PrimaryNetworkTxType {
|
|
|
3862
3780
|
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3863
3781
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3864
3782
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3865
|
-
UNKNOWN = "UNKNOWN",
|
|
3866
3783
|
BASE_TX = "BaseTx",
|
|
3784
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3785
|
+
UNKNOWN = "UNKNOWN",
|
|
3867
3786
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3868
3787
|
OPERATION_TX = "OperationTx"
|
|
3869
3788
|
}
|
|
@@ -4197,6 +4116,11 @@ type TeleporterDestinationTransaction = {
|
|
|
4197
4116
|
delivererAddress: string;
|
|
4198
4117
|
};
|
|
4199
4118
|
|
|
4119
|
+
type TeleporterReceipt = {
|
|
4120
|
+
receivedMessageNonce: string;
|
|
4121
|
+
relayerRewardAddress: string;
|
|
4122
|
+
};
|
|
4123
|
+
|
|
4200
4124
|
type TeleporterRewardDetails = {
|
|
4201
4125
|
/**
|
|
4202
4126
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
@@ -4232,14 +4156,16 @@ declare namespace TeleporterRewardDetails {
|
|
|
4232
4156
|
}
|
|
4233
4157
|
|
|
4234
4158
|
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4159
|
+
messageId: string;
|
|
4160
|
+
teleporterContractAddress: string;
|
|
4235
4161
|
sourceBlockchainId: string;
|
|
4236
4162
|
destinationBlockchainId: string;
|
|
4237
|
-
|
|
4163
|
+
messageNonce: string;
|
|
4238
4164
|
from: string;
|
|
4239
4165
|
to: string;
|
|
4240
4166
|
data?: string;
|
|
4241
4167
|
messageExecuted: boolean;
|
|
4242
|
-
receipts: Array<
|
|
4168
|
+
receipts: Array<TeleporterReceipt>;
|
|
4243
4169
|
receiptDelivered: boolean;
|
|
4244
4170
|
rewardDetails: TeleporterRewardDetails;
|
|
4245
4171
|
destinationTransaction: TeleporterDestinationTransaction;
|
|
@@ -4258,14 +4184,16 @@ type TeleporterSourceTransaction = {
|
|
|
4258
4184
|
};
|
|
4259
4185
|
|
|
4260
4186
|
type DeliveredTeleporterMessage = {
|
|
4187
|
+
messageId: string;
|
|
4188
|
+
teleporterContractAddress: string;
|
|
4261
4189
|
sourceBlockchainId: string;
|
|
4262
4190
|
destinationBlockchainId: string;
|
|
4263
|
-
|
|
4191
|
+
messageNonce: string;
|
|
4264
4192
|
from: string;
|
|
4265
4193
|
to: string;
|
|
4266
4194
|
data?: string;
|
|
4267
4195
|
messageExecuted: boolean;
|
|
4268
|
-
receipts: Array<
|
|
4196
|
+
receipts: Array<TeleporterReceipt>;
|
|
4269
4197
|
receiptDelivered: boolean;
|
|
4270
4198
|
rewardDetails: TeleporterRewardDetails;
|
|
4271
4199
|
sourceTransaction: TeleporterSourceTransaction;
|
|
@@ -4286,14 +4214,16 @@ type NextPageToken = {
|
|
|
4286
4214
|
};
|
|
4287
4215
|
|
|
4288
4216
|
type PendingTeleporterMessage = {
|
|
4217
|
+
messageId: string;
|
|
4218
|
+
teleporterContractAddress: string;
|
|
4289
4219
|
sourceBlockchainId: string;
|
|
4290
4220
|
destinationBlockchainId: string;
|
|
4291
|
-
|
|
4221
|
+
messageNonce: string;
|
|
4292
4222
|
from: string;
|
|
4293
4223
|
to: string;
|
|
4294
4224
|
data?: string;
|
|
4295
4225
|
messageExecuted: boolean;
|
|
4296
|
-
receipts: Array<
|
|
4226
|
+
receipts: Array<TeleporterReceipt>;
|
|
4297
4227
|
receiptDelivered: boolean;
|
|
4298
4228
|
rewardDetails: TeleporterRewardDetails;
|
|
4299
4229
|
sourceTransaction: TeleporterSourceTransaction;
|
|
@@ -4310,23 +4240,15 @@ declare class TeleporterService {
|
|
|
4310
4240
|
constructor(httpRequest: BaseHttpRequest);
|
|
4311
4241
|
/**
|
|
4312
4242
|
* Get a teleporter message
|
|
4313
|
-
* Gets a teleporter message by
|
|
4243
|
+
* Gets a teleporter message by message ID.
|
|
4314
4244
|
* @returns any
|
|
4315
4245
|
* @throws ApiError
|
|
4316
4246
|
*/
|
|
4317
|
-
getTeleporterMessage({
|
|
4318
|
-
/**
|
|
4319
|
-
* The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
|
|
4320
|
-
*/
|
|
4321
|
-
sourceBlockchainId: any;
|
|
4322
|
-
/**
|
|
4323
|
-
* The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
|
|
4324
|
-
*/
|
|
4325
|
-
destinationBlockchainId: any;
|
|
4247
|
+
getTeleporterMessage({ messageId, }: {
|
|
4326
4248
|
/**
|
|
4327
4249
|
* The message ID of the teleporter message.
|
|
4328
4250
|
*/
|
|
4329
|
-
messageId:
|
|
4251
|
+
messageId: string;
|
|
4330
4252
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4331
4253
|
/**
|
|
4332
4254
|
* List teleporter messages
|
|
@@ -4344,24 +4266,190 @@ declare class TeleporterService {
|
|
|
4344
4266
|
*/
|
|
4345
4267
|
pageSize?: number;
|
|
4346
4268
|
/**
|
|
4347
|
-
* The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
|
|
4269
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4348
4270
|
*/
|
|
4349
|
-
sourceBlockchainId?:
|
|
4271
|
+
sourceBlockchainId?: string;
|
|
4350
4272
|
/**
|
|
4351
|
-
* The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
|
|
4273
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4352
4274
|
*/
|
|
4353
|
-
destinationBlockchainId?:
|
|
4275
|
+
destinationBlockchainId?: string;
|
|
4354
4276
|
/**
|
|
4355
4277
|
* The address of the recipient of the teleporter message.
|
|
4356
4278
|
*/
|
|
4357
|
-
to?:
|
|
4279
|
+
to?: string;
|
|
4358
4280
|
/**
|
|
4359
4281
|
* The address of the sender of the teleporter message.
|
|
4360
4282
|
*/
|
|
4361
|
-
from?:
|
|
4283
|
+
from?: string;
|
|
4362
4284
|
}): CancelablePromise<NextPageToken>;
|
|
4363
4285
|
}
|
|
4364
4286
|
|
|
4287
|
+
type AddressActivityMetadata = {
|
|
4288
|
+
/**
|
|
4289
|
+
* Ethereum address for the address_activity event type
|
|
4290
|
+
*/
|
|
4291
|
+
address: string;
|
|
4292
|
+
/**
|
|
4293
|
+
* Array of hexadecimal strings of the event signatures.
|
|
4294
|
+
*/
|
|
4295
|
+
eventSignatures?: Array<string>;
|
|
4296
|
+
};
|
|
4297
|
+
|
|
4298
|
+
declare enum EventType {
|
|
4299
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
4300
|
+
}
|
|
4301
|
+
|
|
4302
|
+
declare enum WebhookStatusType {
|
|
4303
|
+
ACTIVE = "active",
|
|
4304
|
+
INACTIVE = "inactive"
|
|
4305
|
+
}
|
|
4306
|
+
|
|
4307
|
+
type WebhookResponse = {
|
|
4308
|
+
id: string;
|
|
4309
|
+
eventType: EventType;
|
|
4310
|
+
metadata: AddressActivityMetadata;
|
|
4311
|
+
/**
|
|
4312
|
+
* Whether to include traces in the webhook payload.
|
|
4313
|
+
*/
|
|
4314
|
+
includeTraces?: boolean;
|
|
4315
|
+
/**
|
|
4316
|
+
* Whether to include logs in the webhook payload.
|
|
4317
|
+
*/
|
|
4318
|
+
includeLogs?: boolean;
|
|
4319
|
+
url: string;
|
|
4320
|
+
chainId: string;
|
|
4321
|
+
status: WebhookStatusType;
|
|
4322
|
+
createdAt: number;
|
|
4323
|
+
name: string;
|
|
4324
|
+
description: string;
|
|
4325
|
+
};
|
|
4326
|
+
|
|
4327
|
+
type ListWebhooksResponse = {
|
|
4328
|
+
/**
|
|
4329
|
+
* 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.
|
|
4330
|
+
*/
|
|
4331
|
+
nextPageToken?: string;
|
|
4332
|
+
webhooks: Array<WebhookResponse>;
|
|
4333
|
+
};
|
|
4334
|
+
|
|
4335
|
+
type RegisterWebhookRequest = {
|
|
4336
|
+
url: string;
|
|
4337
|
+
chainId: string;
|
|
4338
|
+
eventType: EventType;
|
|
4339
|
+
metadata: AddressActivityMetadata;
|
|
4340
|
+
/**
|
|
4341
|
+
* Whether to include traces in the webhook payload.
|
|
4342
|
+
*/
|
|
4343
|
+
includeTraces?: boolean;
|
|
4344
|
+
/**
|
|
4345
|
+
* Whether to include logs in the webhook payload.
|
|
4346
|
+
*/
|
|
4347
|
+
includeLogs?: boolean;
|
|
4348
|
+
};
|
|
4349
|
+
|
|
4350
|
+
type SharedSecretsResponse = {
|
|
4351
|
+
secret: string;
|
|
4352
|
+
};
|
|
4353
|
+
|
|
4354
|
+
type UpdateWebhookRequest = {
|
|
4355
|
+
name?: string;
|
|
4356
|
+
description?: string;
|
|
4357
|
+
url?: string;
|
|
4358
|
+
status?: WebhookStatusType;
|
|
4359
|
+
includeTraces?: boolean;
|
|
4360
|
+
includeLogs?: boolean;
|
|
4361
|
+
};
|
|
4362
|
+
|
|
4363
|
+
declare enum WebhookStatus {
|
|
4364
|
+
ACTIVE = "active",
|
|
4365
|
+
INACTIVE = "inactive"
|
|
4366
|
+
}
|
|
4367
|
+
|
|
4368
|
+
declare class WebhooksService {
|
|
4369
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4370
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4371
|
+
/**
|
|
4372
|
+
* Register a webhook
|
|
4373
|
+
* Registers a new webhook.
|
|
4374
|
+
* @returns WebhookResponse
|
|
4375
|
+
* @throws ApiError
|
|
4376
|
+
*/
|
|
4377
|
+
registerWebhook({ requestBody, }: {
|
|
4378
|
+
requestBody: RegisterWebhookRequest;
|
|
4379
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4380
|
+
/**
|
|
4381
|
+
* List webhooks
|
|
4382
|
+
* Lists webhooks for the user.
|
|
4383
|
+
* @returns ListWebhooksResponse
|
|
4384
|
+
* @throws ApiError
|
|
4385
|
+
*/
|
|
4386
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
4387
|
+
/**
|
|
4388
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4389
|
+
*/
|
|
4390
|
+
pageToken?: string;
|
|
4391
|
+
/**
|
|
4392
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4393
|
+
*/
|
|
4394
|
+
pageSize?: number;
|
|
4395
|
+
/**
|
|
4396
|
+
* 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.
|
|
4397
|
+
*/
|
|
4398
|
+
status?: WebhookStatus;
|
|
4399
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
4400
|
+
/**
|
|
4401
|
+
* Get a webhook by ID
|
|
4402
|
+
* Retrieves a webhook by ID.
|
|
4403
|
+
* @returns WebhookResponse
|
|
4404
|
+
* @throws ApiError
|
|
4405
|
+
*/
|
|
4406
|
+
getWebhook({ id, }: {
|
|
4407
|
+
/**
|
|
4408
|
+
* The webhook identifier.
|
|
4409
|
+
*/
|
|
4410
|
+
id: string;
|
|
4411
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4412
|
+
/**
|
|
4413
|
+
* Deactivate a webhook
|
|
4414
|
+
* Deactivates a webhook by ID.
|
|
4415
|
+
* @returns WebhookResponse
|
|
4416
|
+
* @throws ApiError
|
|
4417
|
+
*/
|
|
4418
|
+
deactivateWebhook({ id, }: {
|
|
4419
|
+
/**
|
|
4420
|
+
* The webhook identifier.
|
|
4421
|
+
*/
|
|
4422
|
+
id: string;
|
|
4423
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4424
|
+
/**
|
|
4425
|
+
* Update a webhook
|
|
4426
|
+
* Updates an existing webhook.
|
|
4427
|
+
* @returns WebhookResponse
|
|
4428
|
+
* @throws ApiError
|
|
4429
|
+
*/
|
|
4430
|
+
updateWebhook({ id, requestBody, }: {
|
|
4431
|
+
/**
|
|
4432
|
+
* The webhook identifier.
|
|
4433
|
+
*/
|
|
4434
|
+
id: string;
|
|
4435
|
+
requestBody: UpdateWebhookRequest;
|
|
4436
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4437
|
+
/**
|
|
4438
|
+
* Generate a shared secret
|
|
4439
|
+
* Generates a new shared secret.
|
|
4440
|
+
* @returns SharedSecretsResponse
|
|
4441
|
+
* @throws ApiError
|
|
4442
|
+
*/
|
|
4443
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4444
|
+
/**
|
|
4445
|
+
* Get a shared secret
|
|
4446
|
+
* Get a previously generated shared secret.
|
|
4447
|
+
* @returns SharedSecretsResponse
|
|
4448
|
+
* @throws ApiError
|
|
4449
|
+
*/
|
|
4450
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4451
|
+
}
|
|
4452
|
+
|
|
4365
4453
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
4366
4454
|
declare class Glacier {
|
|
4367
4455
|
readonly default: DefaultService;
|
|
@@ -4381,6 +4469,7 @@ declare class Glacier {
|
|
|
4381
4469
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4382
4470
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4383
4471
|
readonly teleporter: TeleporterService;
|
|
4472
|
+
readonly webhooks: WebhooksService;
|
|
4384
4473
|
readonly request: BaseHttpRequest;
|
|
4385
4474
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
4386
4475
|
}
|
|
@@ -4402,4 +4491,4 @@ declare class ApiError extends Error {
|
|
|
4402
4491
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4403
4492
|
}
|
|
4404
4493
|
|
|
4405
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError,
|
|
4494
|
+
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, 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 };
|