@avalabs/glacier-sdk 2.8.0-canary.ae0a5d3.0 → 2.8.0-canary.b05020f.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +553 -132
- package/dist/index.js +205 -30
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.js +3 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +24 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +26 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
- package/esm/generated/models/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -2
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- package/esm/generated/models/NextPageToken.d.ts +8 -0
- package/esm/generated/models/PChainBalance.d.ts +7 -7
- package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
- package/esm/generated/models/PChainTransaction.d.ts +4 -4
- package/esm/generated/models/PChainTransactionType.d.ts +6 -5
- package/esm/generated/models/PChainTransactionType.js +6 -5
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- package/esm/generated/models/PendingReward.d.ts +2 -2
- package/esm/generated/models/PendingTeleporterMessage.d.ts +24 -0
- package/esm/generated/models/PendingTeleporterMessage.js +8 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -5
- package/esm/generated/models/PrimaryNetworkTxType.js +6 -5
- package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
- package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.js +8 -0
- package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -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/Utxo.d.ts +28 -28
- package/esm/generated/models/UtxoCredential.d.ts +2 -2
- package/esm/generated/models/ValidationStatusType.d.ts +2 -1
- package/esm/generated/models/ValidationStatusType.js +1 -0
- package/esm/generated/models/WebhookResponse.d.ts +15 -0
- package/esm/generated/models/WebhookStatus.d.ts +6 -0
- package/esm/generated/models/WebhookStatus.js +7 -0
- package/esm/generated/models/WebhookStatusType.d.ts +6 -0
- package/esm/generated/models/WebhookStatusType.js +7 -0
- package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainTransactionType.d.ts +10 -0
- package/esm/generated/models/XChainTransactionType.js +11 -0
- package/esm/generated/services/DefaultService.d.ts +53 -0
- package/esm/generated/services/DefaultService.js +42 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +42 -0
- package/esm/generated/services/NfTsService.d.ts +25 -0
- package/esm/generated/services/NfTsService.js +19 -0
- package/esm/generated/services/OperationsService.d.ts +11 -11
- package/esm/generated/services/OperationsService.js +10 -10
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +4 -4
- package/esm/generated/services/PrimaryNetworkService.d.ts +19 -19
- package/esm/generated/services/PrimaryNetworkService.js +10 -10
- package/esm/generated/services/TeleporterService.d.ts +65 -0
- package/esm/generated/services/TeleporterService.js +43 -0
- package/esm/index.d.ts +19 -1
- package/esm/index.js +10 -0
- package/package.json +2 -2
- package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,63 @@ 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
|
+
|
|
63
120
|
declare class DefaultService {
|
|
64
121
|
readonly httpRequest: BaseHttpRequest;
|
|
65
122
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -68,6 +125,54 @@ declare class DefaultService {
|
|
|
68
125
|
* @throws ApiError
|
|
69
126
|
*/
|
|
70
127
|
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({ pageSize, pageToken, status, }: {
|
|
144
|
+
/**
|
|
145
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
146
|
+
*/
|
|
147
|
+
pageSize?: number;
|
|
148
|
+
/**
|
|
149
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
150
|
+
*/
|
|
151
|
+
pageToken?: string;
|
|
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>;
|
|
71
176
|
}
|
|
72
177
|
|
|
73
178
|
declare enum CurrencyCode {
|
|
@@ -1637,7 +1742,13 @@ declare class EvmTransactionsService {
|
|
|
1637
1742
|
* A wallet address.
|
|
1638
1743
|
*/
|
|
1639
1744
|
address: string;
|
|
1745
|
+
/**
|
|
1746
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1747
|
+
*/
|
|
1640
1748
|
startBlock?: number;
|
|
1749
|
+
/**
|
|
1750
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1751
|
+
*/
|
|
1641
1752
|
endBlock?: number;
|
|
1642
1753
|
/**
|
|
1643
1754
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1673,7 +1784,13 @@ declare class EvmTransactionsService {
|
|
|
1673
1784
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1674
1785
|
*/
|
|
1675
1786
|
pageToken?: string;
|
|
1787
|
+
/**
|
|
1788
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1789
|
+
*/
|
|
1676
1790
|
startBlock?: number;
|
|
1791
|
+
/**
|
|
1792
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1793
|
+
*/
|
|
1677
1794
|
endBlock?: number;
|
|
1678
1795
|
/**
|
|
1679
1796
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
@@ -1695,7 +1812,13 @@ declare class EvmTransactionsService {
|
|
|
1695
1812
|
* A wallet address.
|
|
1696
1813
|
*/
|
|
1697
1814
|
address: string;
|
|
1815
|
+
/**
|
|
1816
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1817
|
+
*/
|
|
1698
1818
|
startBlock?: number;
|
|
1819
|
+
/**
|
|
1820
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1821
|
+
*/
|
|
1699
1822
|
endBlock?: number;
|
|
1700
1823
|
/**
|
|
1701
1824
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1721,7 +1844,13 @@ declare class EvmTransactionsService {
|
|
|
1721
1844
|
* A wallet address.
|
|
1722
1845
|
*/
|
|
1723
1846
|
address: string;
|
|
1847
|
+
/**
|
|
1848
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1849
|
+
*/
|
|
1724
1850
|
startBlock?: number;
|
|
1851
|
+
/**
|
|
1852
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1853
|
+
*/
|
|
1725
1854
|
endBlock?: number;
|
|
1726
1855
|
/**
|
|
1727
1856
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1747,7 +1876,13 @@ declare class EvmTransactionsService {
|
|
|
1747
1876
|
* A wallet address.
|
|
1748
1877
|
*/
|
|
1749
1878
|
address: string;
|
|
1879
|
+
/**
|
|
1880
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1881
|
+
*/
|
|
1750
1882
|
startBlock?: number;
|
|
1883
|
+
/**
|
|
1884
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1885
|
+
*/
|
|
1751
1886
|
endBlock?: number;
|
|
1752
1887
|
/**
|
|
1753
1888
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1773,7 +1908,13 @@ declare class EvmTransactionsService {
|
|
|
1773
1908
|
* A wallet address.
|
|
1774
1909
|
*/
|
|
1775
1910
|
address: string;
|
|
1911
|
+
/**
|
|
1912
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1913
|
+
*/
|
|
1776
1914
|
startBlock?: number;
|
|
1915
|
+
/**
|
|
1916
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1917
|
+
*/
|
|
1777
1918
|
endBlock?: number;
|
|
1778
1919
|
/**
|
|
1779
1920
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1801,7 +1942,13 @@ declare class EvmTransactionsService {
|
|
|
1801
1942
|
* A wallet address.
|
|
1802
1943
|
*/
|
|
1803
1944
|
address: string;
|
|
1945
|
+
/**
|
|
1946
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1947
|
+
*/
|
|
1804
1948
|
startBlock?: number;
|
|
1949
|
+
/**
|
|
1950
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1951
|
+
*/
|
|
1805
1952
|
endBlock?: number;
|
|
1806
1953
|
/**
|
|
1807
1954
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1886,6 +2033,14 @@ declare class HealthCheckService {
|
|
|
1886
2033
|
}>;
|
|
1887
2034
|
}
|
|
1888
2035
|
|
|
2036
|
+
type ListNftTokens = {
|
|
2037
|
+
/**
|
|
2038
|
+
* 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
|
+
*/
|
|
2040
|
+
nextPageToken?: string;
|
|
2041
|
+
tokens: (Array<Erc721Token> | Array<Erc1155Token>);
|
|
2042
|
+
};
|
|
2043
|
+
|
|
1889
2044
|
declare class NfTsService {
|
|
1890
2045
|
readonly httpRequest: BaseHttpRequest;
|
|
1891
2046
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -1909,6 +2064,30 @@ declare class NfTsService {
|
|
|
1909
2064
|
*/
|
|
1910
2065
|
tokenId: string;
|
|
1911
2066
|
}): CancelablePromise<any>;
|
|
2067
|
+
/**
|
|
2068
|
+
* List tokens
|
|
2069
|
+
* Lists tokens for an NFT contract.
|
|
2070
|
+
* @returns ListNftTokens
|
|
2071
|
+
* @throws ApiError
|
|
2072
|
+
*/
|
|
2073
|
+
listTokens({ chainId, address, pageSize, pageToken, }: {
|
|
2074
|
+
/**
|
|
2075
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2076
|
+
*/
|
|
2077
|
+
chainId: string;
|
|
2078
|
+
/**
|
|
2079
|
+
* Contract address on the relevant chain.
|
|
2080
|
+
*/
|
|
2081
|
+
address: string;
|
|
2082
|
+
/**
|
|
2083
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2084
|
+
*/
|
|
2085
|
+
pageSize?: number;
|
|
2086
|
+
/**
|
|
2087
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2088
|
+
*/
|
|
2089
|
+
pageToken?: string;
|
|
2090
|
+
}): CancelablePromise<ListNftTokens>;
|
|
1912
2091
|
/**
|
|
1913
2092
|
* Get token details
|
|
1914
2093
|
* Gets token details for a specific token of an NFT contract.
|
|
@@ -2025,17 +2204,6 @@ type OperationStatusResponse = {
|
|
|
2025
2204
|
declare class OperationsService {
|
|
2026
2205
|
readonly httpRequest: BaseHttpRequest;
|
|
2027
2206
|
constructor(httpRequest: BaseHttpRequest);
|
|
2028
|
-
/**
|
|
2029
|
-
* Create transaction export operation
|
|
2030
|
-
* Trigger a transaction export operation with given parameters.
|
|
2031
|
-
*
|
|
2032
|
-
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
2033
|
-
* @returns OperationStatusResponse
|
|
2034
|
-
* @throws ApiError
|
|
2035
|
-
*/
|
|
2036
|
-
postTransactionExportJob({ requestBody, }: {
|
|
2037
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2038
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
2039
2207
|
/**
|
|
2040
2208
|
* Get operation
|
|
2041
2209
|
* Gets operation details for the given operation id.
|
|
@@ -2048,6 +2216,17 @@ declare class OperationsService {
|
|
|
2048
2216
|
*/
|
|
2049
2217
|
operationId: string;
|
|
2050
2218
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2219
|
+
/**
|
|
2220
|
+
* Create transaction export operation
|
|
2221
|
+
* Trigger a transaction export operation with given parameters.
|
|
2222
|
+
*
|
|
2223
|
+
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
2224
|
+
* @returns OperationStatusResponse
|
|
2225
|
+
* @throws ApiError
|
|
2226
|
+
*/
|
|
2227
|
+
postTransactionExportJob({ requestBody, }: {
|
|
2228
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2229
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
2051
2230
|
}
|
|
2052
2231
|
|
|
2053
2232
|
declare enum BlockchainIds {
|
|
@@ -2285,6 +2464,24 @@ declare namespace PendingValidatorDetails {
|
|
|
2285
2464
|
}
|
|
2286
2465
|
}
|
|
2287
2466
|
|
|
2467
|
+
type RemovedValidatorDetails = {
|
|
2468
|
+
txHash: string;
|
|
2469
|
+
nodeId: string;
|
|
2470
|
+
subnetId: string;
|
|
2471
|
+
amountStaked: string;
|
|
2472
|
+
delegationFee?: string;
|
|
2473
|
+
startTimestamp: number;
|
|
2474
|
+
endTimestamp: number;
|
|
2475
|
+
removeTxHash: string;
|
|
2476
|
+
removeTimestamp: number;
|
|
2477
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2478
|
+
};
|
|
2479
|
+
declare namespace RemovedValidatorDetails {
|
|
2480
|
+
enum validationStatus {
|
|
2481
|
+
REMOVED = "removed"
|
|
2482
|
+
}
|
|
2483
|
+
}
|
|
2484
|
+
|
|
2288
2485
|
type ListValidatorDetailsResponse = {
|
|
2289
2486
|
/**
|
|
2290
2487
|
* 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.
|
|
@@ -2293,7 +2490,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2293
2490
|
/**
|
|
2294
2491
|
* The list of validator Details.
|
|
2295
2492
|
*/
|
|
2296
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2493
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2297
2494
|
};
|
|
2298
2495
|
|
|
2299
2496
|
declare enum Network {
|
|
@@ -2304,7 +2501,8 @@ declare enum Network {
|
|
|
2304
2501
|
declare enum ValidationStatusType {
|
|
2305
2502
|
COMPLETED = "completed",
|
|
2306
2503
|
ACTIVE = "active",
|
|
2307
|
-
PENDING = "pending"
|
|
2504
|
+
PENDING = "pending",
|
|
2505
|
+
REMOVED = "removed"
|
|
2308
2506
|
}
|
|
2309
2507
|
|
|
2310
2508
|
type XChainAssetDetails = {
|
|
@@ -2449,7 +2647,7 @@ declare class PrimaryNetworkService {
|
|
|
2449
2647
|
* @returns ListValidatorDetailsResponse
|
|
2450
2648
|
* @throws ApiError
|
|
2451
2649
|
*/
|
|
2452
|
-
listValidators({ network, pageSize, pageToken,
|
|
2650
|
+
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2453
2651
|
/**
|
|
2454
2652
|
* Either mainnet or a testnet.
|
|
2455
2653
|
*/
|
|
@@ -2463,41 +2661,41 @@ declare class PrimaryNetworkService {
|
|
|
2463
2661
|
*/
|
|
2464
2662
|
pageToken?: string;
|
|
2465
2663
|
/**
|
|
2466
|
-
*
|
|
2664
|
+
* A comma separated list of node ids to filter by.
|
|
2467
2665
|
*/
|
|
2468
|
-
|
|
2666
|
+
nodeIds?: string;
|
|
2469
2667
|
/**
|
|
2470
|
-
* The
|
|
2668
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2471
2669
|
*/
|
|
2472
|
-
|
|
2670
|
+
sortOrder?: SortOrder;
|
|
2671
|
+
/**
|
|
2672
|
+
* Validation status of the node.
|
|
2673
|
+
*/
|
|
2674
|
+
validationStatus?: ValidationStatusType;
|
|
2473
2675
|
/**
|
|
2474
2676
|
* The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
|
|
2475
2677
|
*/
|
|
2476
|
-
minDelegationCapacity?:
|
|
2678
|
+
minDelegationCapacity?: any;
|
|
2477
2679
|
/**
|
|
2478
2680
|
* The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
|
|
2479
2681
|
*/
|
|
2480
|
-
maxDelegationCapacity?:
|
|
2682
|
+
maxDelegationCapacity?: any;
|
|
2481
2683
|
/**
|
|
2482
|
-
* The minimum
|
|
2483
|
-
*/
|
|
2484
|
-
minFeePercentage?: any;
|
|
2485
|
-
/**
|
|
2486
|
-
* The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
|
|
2684
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2487
2685
|
*/
|
|
2488
|
-
|
|
2686
|
+
minTimeRemaining?: any;
|
|
2489
2687
|
/**
|
|
2490
|
-
*
|
|
2688
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2491
2689
|
*/
|
|
2492
|
-
|
|
2690
|
+
maxTimeRemaining?: any;
|
|
2493
2691
|
/**
|
|
2494
|
-
* The
|
|
2692
|
+
* The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
|
|
2495
2693
|
*/
|
|
2496
|
-
|
|
2694
|
+
minFeePercentage?: any;
|
|
2497
2695
|
/**
|
|
2498
|
-
*
|
|
2696
|
+
* The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
|
|
2499
2697
|
*/
|
|
2500
|
-
|
|
2698
|
+
maxFeePercentage?: any;
|
|
2501
2699
|
/**
|
|
2502
2700
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2503
2701
|
*/
|
|
@@ -2639,13 +2837,57 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2639
2837
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2640
2838
|
};
|
|
2641
2839
|
|
|
2642
|
-
type
|
|
2840
|
+
type Asset = {
|
|
2841
|
+
/**
|
|
2842
|
+
* Unique ID for an asset.
|
|
2843
|
+
*/
|
|
2643
2844
|
assetId: string;
|
|
2845
|
+
/**
|
|
2846
|
+
* Name of this asset.
|
|
2847
|
+
*/
|
|
2848
|
+
name: string;
|
|
2849
|
+
/**
|
|
2850
|
+
* Symbol for this asset (max 4 characters).
|
|
2851
|
+
*/
|
|
2852
|
+
symbol: string;
|
|
2853
|
+
/**
|
|
2854
|
+
* Denomination of this asset to represent fungibility.
|
|
2855
|
+
*/
|
|
2856
|
+
denomination: number;
|
|
2857
|
+
/**
|
|
2858
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2859
|
+
*/
|
|
2860
|
+
type: string;
|
|
2861
|
+
/**
|
|
2862
|
+
* Amount of the asset.
|
|
2863
|
+
*/
|
|
2644
2864
|
amount: string;
|
|
2645
2865
|
};
|
|
2646
2866
|
|
|
2647
2867
|
type PChainSharedAsset = {
|
|
2868
|
+
/**
|
|
2869
|
+
* Unique ID for an asset.
|
|
2870
|
+
*/
|
|
2648
2871
|
assetId: string;
|
|
2872
|
+
/**
|
|
2873
|
+
* Name of this asset.
|
|
2874
|
+
*/
|
|
2875
|
+
name: string;
|
|
2876
|
+
/**
|
|
2877
|
+
* Symbol for this asset (max 4 characters).
|
|
2878
|
+
*/
|
|
2879
|
+
symbol: string;
|
|
2880
|
+
/**
|
|
2881
|
+
* Denomination of this asset to represent fungibility.
|
|
2882
|
+
*/
|
|
2883
|
+
denomination: number;
|
|
2884
|
+
/**
|
|
2885
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2886
|
+
*/
|
|
2887
|
+
type: string;
|
|
2888
|
+
/**
|
|
2889
|
+
* Amount of the asset.
|
|
2890
|
+
*/
|
|
2649
2891
|
amount: string;
|
|
2650
2892
|
sharedWithChainId: string;
|
|
2651
2893
|
status: string;
|
|
@@ -2655,27 +2897,27 @@ type PChainBalance = {
|
|
|
2655
2897
|
/**
|
|
2656
2898
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
|
|
2657
2899
|
*/
|
|
2658
|
-
unlockedUnstaked: Array<
|
|
2900
|
+
unlockedUnstaked: Array<Asset>;
|
|
2659
2901
|
/**
|
|
2660
2902
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
|
|
2661
2903
|
*/
|
|
2662
|
-
unlockedStaked: Array<
|
|
2904
|
+
unlockedStaked: Array<Asset>;
|
|
2663
2905
|
/**
|
|
2664
2906
|
* A list of objects containing P-chain Asset ID and the amount 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.
|
|
2665
2907
|
*/
|
|
2666
|
-
lockedPlatform: Array<
|
|
2908
|
+
lockedPlatform: Array<Asset>;
|
|
2667
2909
|
/**
|
|
2668
2910
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
|
|
2669
2911
|
*/
|
|
2670
|
-
lockedStakeable: Array<
|
|
2912
|
+
lockedStakeable: Array<Asset>;
|
|
2671
2913
|
/**
|
|
2672
2914
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
|
|
2673
2915
|
*/
|
|
2674
|
-
lockedStaked: Array<
|
|
2916
|
+
lockedStaked: Array<Asset>;
|
|
2675
2917
|
/**
|
|
2676
2918
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
|
|
2677
2919
|
*/
|
|
2678
|
-
pendingStaked: Array<
|
|
2920
|
+
pendingStaked: Array<Asset>;
|
|
2679
2921
|
/**
|
|
2680
2922
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
|
|
2681
2923
|
*/
|
|
@@ -2814,6 +3056,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2814
3056
|
txCount: number;
|
|
2815
3057
|
transactions: Array<string>;
|
|
2816
3058
|
blockSizeBytes: number;
|
|
3059
|
+
currentSupply?: string;
|
|
2817
3060
|
proposerDetails?: ProposerDetails;
|
|
2818
3061
|
};
|
|
2819
3062
|
|
|
@@ -2826,6 +3069,7 @@ type PrimaryNetworkBlock = {
|
|
|
2826
3069
|
txCount: number;
|
|
2827
3070
|
transactions: Array<string>;
|
|
2828
3071
|
blockSizeBytes: number;
|
|
3072
|
+
currentSupply?: string;
|
|
2829
3073
|
proposerDetails?: ProposerDetails;
|
|
2830
3074
|
};
|
|
2831
3075
|
|
|
@@ -2937,7 +3181,7 @@ type HistoricalReward = {
|
|
|
2937
3181
|
/**
|
|
2938
3182
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2939
3183
|
*/
|
|
2940
|
-
reward:
|
|
3184
|
+
reward: Asset;
|
|
2941
3185
|
rewardTxHash: string;
|
|
2942
3186
|
};
|
|
2943
3187
|
|
|
@@ -2964,7 +3208,7 @@ type PendingReward = {
|
|
|
2964
3208
|
/**
|
|
2965
3209
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2966
3210
|
*/
|
|
2967
|
-
estimatedReward:
|
|
3211
|
+
estimatedReward: Asset;
|
|
2968
3212
|
};
|
|
2969
3213
|
|
|
2970
3214
|
type ListPendingRewardsResponse = {
|
|
@@ -2990,7 +3234,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2990
3234
|
*/
|
|
2991
3235
|
network: Network;
|
|
2992
3236
|
/**
|
|
2993
|
-
* 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".
|
|
3237
|
+
* 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". Optional, but at least one of addresses or nodeIds is required.
|
|
2994
3238
|
*/
|
|
2995
3239
|
addresses?: string;
|
|
2996
3240
|
/**
|
|
@@ -3002,7 +3246,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3002
3246
|
*/
|
|
3003
3247
|
pageToken?: string;
|
|
3004
3248
|
/**
|
|
3005
|
-
* A comma separated list of node ids to filter by.
|
|
3249
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3006
3250
|
*/
|
|
3007
3251
|
nodeIds?: string;
|
|
3008
3252
|
/**
|
|
@@ -3022,7 +3266,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3022
3266
|
*/
|
|
3023
3267
|
network: Network;
|
|
3024
3268
|
/**
|
|
3025
|
-
* 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".
|
|
3269
|
+
* 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". Optional, but at least one of addresses or nodeIds is required.
|
|
3026
3270
|
*/
|
|
3027
3271
|
addresses?: string;
|
|
3028
3272
|
/**
|
|
@@ -3034,7 +3278,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3034
3278
|
*/
|
|
3035
3279
|
pageToken?: string;
|
|
3036
3280
|
/**
|
|
3037
|
-
* A comma separated list of node ids to filter by.
|
|
3281
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3038
3282
|
*/
|
|
3039
3283
|
nodeIds?: string;
|
|
3040
3284
|
/**
|
|
@@ -3044,40 +3288,13 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3044
3288
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
3045
3289
|
}
|
|
3046
3290
|
|
|
3047
|
-
type Asset = {
|
|
3048
|
-
/**
|
|
3049
|
-
* Unique ID for an asset.
|
|
3050
|
-
*/
|
|
3051
|
-
assetId: string;
|
|
3052
|
-
/**
|
|
3053
|
-
* Name of this asset.
|
|
3054
|
-
*/
|
|
3055
|
-
name: string;
|
|
3056
|
-
/**
|
|
3057
|
-
* Symbol for this asset (max 4 characters).
|
|
3058
|
-
*/
|
|
3059
|
-
symbol: string;
|
|
3060
|
-
/**
|
|
3061
|
-
* Denomination of this asset to represent fungibility.
|
|
3062
|
-
*/
|
|
3063
|
-
denomination: number;
|
|
3064
|
-
/**
|
|
3065
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3066
|
-
*/
|
|
3067
|
-
type: string;
|
|
3068
|
-
/**
|
|
3069
|
-
* Amount of the asset.
|
|
3070
|
-
*/
|
|
3071
|
-
amount: string;
|
|
3072
|
-
};
|
|
3073
|
-
|
|
3074
3291
|
type UtxoCredential = {
|
|
3075
3292
|
/**
|
|
3076
|
-
* Signature provided to consume the output
|
|
3293
|
+
* Signature provided to consume the output.
|
|
3077
3294
|
*/
|
|
3078
3295
|
signature?: string;
|
|
3079
3296
|
/**
|
|
3080
|
-
* Public key associated with the signature
|
|
3297
|
+
* Public key associated with the signature.
|
|
3081
3298
|
*/
|
|
3082
3299
|
publicKey?: string;
|
|
3083
3300
|
};
|
|
@@ -3099,66 +3316,66 @@ type EVMInput = {
|
|
|
3099
3316
|
|
|
3100
3317
|
type Utxo = {
|
|
3101
3318
|
/**
|
|
3102
|
-
*
|
|
3319
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3103
3320
|
*/
|
|
3104
|
-
|
|
3321
|
+
addresses: Array<string>;
|
|
3105
3322
|
asset: Asset;
|
|
3106
3323
|
/**
|
|
3107
|
-
*
|
|
3324
|
+
* Blockchain ID on which this output is consumed on.
|
|
3108
3325
|
*/
|
|
3109
|
-
|
|
3326
|
+
consumedOnChainId: string;
|
|
3110
3327
|
/**
|
|
3111
|
-
*
|
|
3328
|
+
* Transaction ID that consumed this output.
|
|
3112
3329
|
*/
|
|
3113
|
-
|
|
3330
|
+
consumingTxHash?: string;
|
|
3114
3331
|
/**
|
|
3115
|
-
* Blockchain ID on which this output is
|
|
3332
|
+
* Blockchain ID on which this output is created on.
|
|
3116
3333
|
*/
|
|
3117
|
-
|
|
3334
|
+
createdOnChainId: string;
|
|
3118
3335
|
/**
|
|
3119
|
-
*
|
|
3336
|
+
* UTXO ID for this output.
|
|
3120
3337
|
*/
|
|
3121
|
-
|
|
3338
|
+
utxoId: string;
|
|
3122
3339
|
/**
|
|
3123
|
-
*
|
|
3340
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
3124
3341
|
*/
|
|
3125
|
-
|
|
3342
|
+
consumingTxTimestamp?: number;
|
|
3126
3343
|
/**
|
|
3127
|
-
*
|
|
3344
|
+
* Transaction ID that created this output.
|
|
3128
3345
|
*/
|
|
3129
|
-
|
|
3346
|
+
creationTxHash: string;
|
|
3130
3347
|
/**
|
|
3131
|
-
*
|
|
3348
|
+
* Credentials that signed the transaction to consume this utxo
|
|
3132
3349
|
*/
|
|
3133
|
-
|
|
3350
|
+
credentials?: Array<UtxoCredential>;
|
|
3134
3351
|
/**
|
|
3135
|
-
*
|
|
3352
|
+
* Index representing the minting set for the NFT mint output.
|
|
3136
3353
|
*/
|
|
3137
|
-
|
|
3354
|
+
groupId?: number;
|
|
3138
3355
|
/**
|
|
3139
3356
|
* Locktime in seconds after which this output can be consumed.
|
|
3140
3357
|
*/
|
|
3141
3358
|
locktime: number;
|
|
3142
3359
|
/**
|
|
3143
|
-
*
|
|
3360
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
3144
3361
|
*/
|
|
3145
|
-
|
|
3362
|
+
outputIndex: string;
|
|
3146
3363
|
/**
|
|
3147
|
-
*
|
|
3364
|
+
* Hex encoded data for NFT assets.
|
|
3148
3365
|
*/
|
|
3149
|
-
|
|
3366
|
+
payload?: string;
|
|
3150
3367
|
/**
|
|
3151
|
-
*
|
|
3368
|
+
* Minimum number of signatures required to consume this output.
|
|
3152
3369
|
*/
|
|
3153
|
-
|
|
3370
|
+
threshold: number;
|
|
3154
3371
|
/**
|
|
3155
|
-
*
|
|
3372
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
3156
3373
|
*/
|
|
3157
|
-
|
|
3374
|
+
timestamp: number;
|
|
3158
3375
|
/**
|
|
3159
|
-
*
|
|
3376
|
+
* Type of output.
|
|
3160
3377
|
*/
|
|
3161
|
-
|
|
3378
|
+
utxoType: string;
|
|
3162
3379
|
};
|
|
3163
3380
|
|
|
3164
3381
|
type CChainExportTransaction = {
|
|
@@ -3289,17 +3506,18 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3289
3506
|
|
|
3290
3507
|
declare enum PChainTransactionType {
|
|
3291
3508
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3292
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3293
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3294
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3295
3509
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3296
|
-
|
|
3297
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3510
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3298
3511
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3299
3512
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3300
3513
|
IMPORT_TX = "ImportTx",
|
|
3301
3514
|
EXPORT_TX = "ExportTx",
|
|
3302
3515
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3516
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3517
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3518
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3519
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3520
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3303
3521
|
UNKNOWN = "UNKNOWN"
|
|
3304
3522
|
}
|
|
3305
3523
|
|
|
@@ -3310,29 +3528,48 @@ declare enum UtxoType {
|
|
|
3310
3528
|
|
|
3311
3529
|
type PChainUtxo = {
|
|
3312
3530
|
/**
|
|
3313
|
-
*
|
|
3531
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3314
3532
|
*/
|
|
3315
3533
|
addresses: Array<string>;
|
|
3534
|
+
asset: Asset;
|
|
3535
|
+
/**
|
|
3536
|
+
* Blockchain ID on which this output is consumed on.
|
|
3537
|
+
*/
|
|
3538
|
+
consumedOnChainId: string;
|
|
3539
|
+
/**
|
|
3540
|
+
* Transaction ID that consumed this output.
|
|
3541
|
+
*/
|
|
3542
|
+
consumingTxHash?: string;
|
|
3543
|
+
/**
|
|
3544
|
+
* Blockchain ID on which this output is created on.
|
|
3545
|
+
*/
|
|
3546
|
+
createdOnChainId: string;
|
|
3547
|
+
/**
|
|
3548
|
+
* UTXO ID for this output.
|
|
3549
|
+
*/
|
|
3316
3550
|
utxoId: string;
|
|
3317
|
-
|
|
3318
|
-
|
|
3551
|
+
/**
|
|
3552
|
+
* @deprecated
|
|
3553
|
+
*/
|
|
3554
|
+
amount: string;
|
|
3555
|
+
/**
|
|
3556
|
+
* @deprecated
|
|
3557
|
+
*/
|
|
3558
|
+
assetId: string;
|
|
3319
3559
|
blockNumber: string;
|
|
3320
3560
|
blockTimestamp: number;
|
|
3321
|
-
consumingTxHash?: string;
|
|
3322
|
-
consumingBlockTimestamp?: number;
|
|
3323
3561
|
consumingBlockNumber?: string;
|
|
3324
|
-
|
|
3325
|
-
utxoType: UtxoType;
|
|
3326
|
-
amount: string;
|
|
3327
|
-
stakeableLocktime?: number;
|
|
3562
|
+
consumingBlockTimestamp?: number;
|
|
3328
3563
|
platformLocktime?: number;
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3564
|
+
outputIndex: number;
|
|
3565
|
+
rewardType?: RewardType;
|
|
3566
|
+
stakeableLocktime?: number;
|
|
3332
3567
|
staked?: boolean;
|
|
3333
|
-
|
|
3568
|
+
threshold?: number;
|
|
3569
|
+
txHash: string;
|
|
3334
3570
|
utxoEndTimestamp?: number;
|
|
3335
|
-
|
|
3571
|
+
utxoStartTimestamp?: number;
|
|
3572
|
+
utxoType: UtxoType;
|
|
3336
3573
|
};
|
|
3337
3574
|
|
|
3338
3575
|
type PChainTransaction = {
|
|
@@ -3360,15 +3597,15 @@ type PChainTransaction = {
|
|
|
3360
3597
|
/**
|
|
3361
3598
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3362
3599
|
*/
|
|
3363
|
-
value: Array<
|
|
3600
|
+
value: Array<Asset>;
|
|
3364
3601
|
/**
|
|
3365
3602
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3366
3603
|
*/
|
|
3367
|
-
amountBurned: Array<
|
|
3604
|
+
amountBurned: Array<Asset>;
|
|
3368
3605
|
/**
|
|
3369
3606
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3370
3607
|
*/
|
|
3371
|
-
amountStaked: Array<
|
|
3608
|
+
amountStaked: Array<Asset>;
|
|
3372
3609
|
/**
|
|
3373
3610
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3374
3611
|
*/
|
|
@@ -3411,6 +3648,15 @@ type ListPChainTransactionsResponse = {
|
|
|
3411
3648
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3412
3649
|
};
|
|
3413
3650
|
|
|
3651
|
+
declare enum XChainTransactionType {
|
|
3652
|
+
BASE_TX = "BaseTx",
|
|
3653
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3654
|
+
OPERATION_TX = "OperationTx",
|
|
3655
|
+
IMPORT_TX = "ImportTx",
|
|
3656
|
+
EXPORT_TX = "ExportTx",
|
|
3657
|
+
UNKNOWN = "UNKNOWN"
|
|
3658
|
+
}
|
|
3659
|
+
|
|
3414
3660
|
type XChainLinearTransaction = {
|
|
3415
3661
|
/**
|
|
3416
3662
|
* Unique ID for this transaction.
|
|
@@ -3427,7 +3673,7 @@ type XChainLinearTransaction = {
|
|
|
3427
3673
|
/**
|
|
3428
3674
|
* Type of transaction.
|
|
3429
3675
|
*/
|
|
3430
|
-
txType:
|
|
3676
|
+
txType: XChainTransactionType;
|
|
3431
3677
|
/**
|
|
3432
3678
|
* Hex encoded memo bytes for this transaction.
|
|
3433
3679
|
*/
|
|
@@ -3504,7 +3750,7 @@ type XChainNonLinearTransaction = {
|
|
|
3504
3750
|
/**
|
|
3505
3751
|
* Type of transaction.
|
|
3506
3752
|
*/
|
|
3507
|
-
txType:
|
|
3753
|
+
txType: XChainTransactionType;
|
|
3508
3754
|
/**
|
|
3509
3755
|
* Hex encoded memo bytes for this transaction.
|
|
3510
3756
|
*/
|
|
@@ -3562,17 +3808,18 @@ declare enum PChainId {
|
|
|
3562
3808
|
|
|
3563
3809
|
declare enum PrimaryNetworkTxType {
|
|
3564
3810
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3565
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3566
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3567
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3568
3811
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3569
|
-
|
|
3570
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3812
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3571
3813
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3572
3814
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3573
3815
|
IMPORT_TX = "ImportTx",
|
|
3574
3816
|
EXPORT_TX = "ExportTx",
|
|
3575
3817
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3818
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3819
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3820
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3821
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3822
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3576
3823
|
UNKNOWN = "UNKNOWN",
|
|
3577
3824
|
BASE_TX = "BaseTx",
|
|
3578
3825
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3900,6 +4147,179 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3900
4147
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3901
4148
|
}
|
|
3902
4149
|
|
|
4150
|
+
type TeleporterDestinationTransaction = {
|
|
4151
|
+
txHash: string;
|
|
4152
|
+
timestamp: number;
|
|
4153
|
+
gasSpent: string;
|
|
4154
|
+
rewardRedeemer: string;
|
|
4155
|
+
delivererAddress: string;
|
|
4156
|
+
};
|
|
4157
|
+
|
|
4158
|
+
type TeleporterRewardDetails = {
|
|
4159
|
+
/**
|
|
4160
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
4161
|
+
*/
|
|
4162
|
+
address: string;
|
|
4163
|
+
/**
|
|
4164
|
+
* The contract name.
|
|
4165
|
+
*/
|
|
4166
|
+
name: string;
|
|
4167
|
+
/**
|
|
4168
|
+
* The contract symbol.
|
|
4169
|
+
*/
|
|
4170
|
+
symbol: string;
|
|
4171
|
+
/**
|
|
4172
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
4173
|
+
*/
|
|
4174
|
+
decimals: number;
|
|
4175
|
+
/**
|
|
4176
|
+
* The logo uri for the address.
|
|
4177
|
+
*/
|
|
4178
|
+
logoUri?: string;
|
|
4179
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
4180
|
+
/**
|
|
4181
|
+
* The token price, if available.
|
|
4182
|
+
*/
|
|
4183
|
+
price?: Money;
|
|
4184
|
+
value: string;
|
|
4185
|
+
};
|
|
4186
|
+
declare namespace TeleporterRewardDetails {
|
|
4187
|
+
enum ercType {
|
|
4188
|
+
ERC_20 = "ERC-20"
|
|
4189
|
+
}
|
|
4190
|
+
}
|
|
4191
|
+
|
|
4192
|
+
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4193
|
+
sourceBlockchainId: string;
|
|
4194
|
+
destinationBlockchainId: string;
|
|
4195
|
+
messageId: string;
|
|
4196
|
+
from: string;
|
|
4197
|
+
to: string;
|
|
4198
|
+
data?: string;
|
|
4199
|
+
messageExecuted: boolean;
|
|
4200
|
+
receipts: Array<string>;
|
|
4201
|
+
receiptDelivered: boolean;
|
|
4202
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4203
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4204
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4205
|
+
};
|
|
4206
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4207
|
+
enum status {
|
|
4208
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4209
|
+
}
|
|
4210
|
+
}
|
|
4211
|
+
|
|
4212
|
+
type TeleporterSourceTransaction = {
|
|
4213
|
+
txHash: string;
|
|
4214
|
+
timestamp: number;
|
|
4215
|
+
gasSpent: string;
|
|
4216
|
+
};
|
|
4217
|
+
|
|
4218
|
+
type DeliveredTeleporterMessage = {
|
|
4219
|
+
sourceBlockchainId: string;
|
|
4220
|
+
destinationBlockchainId: string;
|
|
4221
|
+
messageId: string;
|
|
4222
|
+
from: string;
|
|
4223
|
+
to: string;
|
|
4224
|
+
data?: string;
|
|
4225
|
+
messageExecuted: boolean;
|
|
4226
|
+
receipts: Array<string>;
|
|
4227
|
+
receiptDelivered: boolean;
|
|
4228
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4229
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4230
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4231
|
+
status: DeliveredTeleporterMessage.status;
|
|
4232
|
+
};
|
|
4233
|
+
declare namespace DeliveredTeleporterMessage {
|
|
4234
|
+
enum status {
|
|
4235
|
+
DELIVERED = "delivered"
|
|
4236
|
+
}
|
|
4237
|
+
}
|
|
4238
|
+
|
|
4239
|
+
type NextPageToken = {
|
|
4240
|
+
/**
|
|
4241
|
+
* 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.
|
|
4242
|
+
*/
|
|
4243
|
+
nextPageToken?: string;
|
|
4244
|
+
};
|
|
4245
|
+
|
|
4246
|
+
type PendingTeleporterMessage = {
|
|
4247
|
+
sourceBlockchainId: string;
|
|
4248
|
+
destinationBlockchainId: string;
|
|
4249
|
+
messageId: string;
|
|
4250
|
+
from: string;
|
|
4251
|
+
to: string;
|
|
4252
|
+
data?: string;
|
|
4253
|
+
messageExecuted: boolean;
|
|
4254
|
+
receipts: Array<string>;
|
|
4255
|
+
receiptDelivered: boolean;
|
|
4256
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4257
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4258
|
+
status: PendingTeleporterMessage.status;
|
|
4259
|
+
};
|
|
4260
|
+
declare namespace PendingTeleporterMessage {
|
|
4261
|
+
enum status {
|
|
4262
|
+
PENDING = "pending"
|
|
4263
|
+
}
|
|
4264
|
+
}
|
|
4265
|
+
|
|
4266
|
+
declare class TeleporterService {
|
|
4267
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4268
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4269
|
+
/**
|
|
4270
|
+
* Get a teleporter message
|
|
4271
|
+
* Gets a teleporter message by source chain, destination chain, and message ID.
|
|
4272
|
+
* @returns any
|
|
4273
|
+
* @throws ApiError
|
|
4274
|
+
*/
|
|
4275
|
+
getTeleporterMessage({ sourceBlockchainId, destinationBlockchainId, messageId, }: {
|
|
4276
|
+
/**
|
|
4277
|
+
* The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
|
|
4278
|
+
*/
|
|
4279
|
+
sourceBlockchainId: any;
|
|
4280
|
+
/**
|
|
4281
|
+
* The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
|
|
4282
|
+
*/
|
|
4283
|
+
destinationBlockchainId: any;
|
|
4284
|
+
/**
|
|
4285
|
+
* The message ID of the teleporter message.
|
|
4286
|
+
*/
|
|
4287
|
+
messageId: any;
|
|
4288
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4289
|
+
/**
|
|
4290
|
+
* List teleporter messages
|
|
4291
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4292
|
+
* @returns any
|
|
4293
|
+
* @throws ApiError
|
|
4294
|
+
*/
|
|
4295
|
+
listTeleporterMessages({ pageSize, pageToken, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
4296
|
+
/**
|
|
4297
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4298
|
+
*/
|
|
4299
|
+
pageSize?: number;
|
|
4300
|
+
/**
|
|
4301
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4302
|
+
*/
|
|
4303
|
+
pageToken?: string;
|
|
4304
|
+
/**
|
|
4305
|
+
* The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
|
|
4306
|
+
*/
|
|
4307
|
+
sourceBlockchainId?: any;
|
|
4308
|
+
/**
|
|
4309
|
+
* The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
|
|
4310
|
+
*/
|
|
4311
|
+
destinationBlockchainId?: any;
|
|
4312
|
+
/**
|
|
4313
|
+
* The address of the recipient of the teleporter message.
|
|
4314
|
+
*/
|
|
4315
|
+
to?: any;
|
|
4316
|
+
/**
|
|
4317
|
+
* The address of the sender of the teleporter message.
|
|
4318
|
+
*/
|
|
4319
|
+
from?: any;
|
|
4320
|
+
}): CancelablePromise<NextPageToken>;
|
|
4321
|
+
}
|
|
4322
|
+
|
|
3903
4323
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3904
4324
|
declare class Glacier {
|
|
3905
4325
|
readonly default: DefaultService;
|
|
@@ -3918,6 +4338,7 @@ declare class Glacier {
|
|
|
3918
4338
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
3919
4339
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
3920
4340
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4341
|
+
readonly teleporter: TeleporterService;
|
|
3921
4342
|
readonly request: BaseHttpRequest;
|
|
3922
4343
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
3923
4344
|
}
|
|
@@ -3939,4 +4360,4 @@ declare class ApiError extends Error {
|
|
|
3939
4360
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3940
4361
|
}
|
|
3941
4362
|
|
|
3942
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, Asset, 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, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService,
|
|
4363
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, 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, 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, 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, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, TeleporterDestinationTransaction, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|