@avalabs/glacier-sdk 2.8.0-canary.aeb3588.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 +762 -140
- package/dist/index.js +275 -22
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +6 -0
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +1 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +8 -4
- package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +1 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -1
- package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
- package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
- package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc20.js +8 -0
- package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
- package/esm/generated/models/ContractSubmissionErc721.js +8 -0
- package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
- package/esm/generated/models/ContractSubmissionUnknown.js +8 -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 +3 -2
- 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 +5 -4
- package/esm/generated/models/PChainTransactionType.d.ts +6 -4
- package/esm/generated/models/PChainTransactionType.js +6 -4
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- package/esm/generated/models/PendingDelegatorDetails.d.ts +1 -0
- 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/PendingValidatorDetails.d.ts +3 -1
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -4
- package/esm/generated/models/PrimaryNetworkTxType.js +6 -4
- 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/RewardType.d.ts +2 -1
- package/esm/generated/models/RewardType.js +1 -0
- package/esm/generated/models/Rewards.d.ts +2 -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/UpdateContractResponse.d.ts +10 -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/ValidatorHealthDetails.d.ts +20 -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 +67 -0
- package/esm/generated/services/DefaultService.js +55 -0
- package/esm/generated/services/EvmContractsService.d.ts +19 -0
- package/esm/generated/services/EvmContractsService.js +16 -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 +12 -4
- package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +31 -7
- package/esm/generated/services/PrimaryNetworkService.js +16 -4
- package/esm/generated/services/TeleporterService.d.ts +65 -0
- package/esm/generated/services/TeleporterService.js +43 -0
- package/esm/index.d.ts +27 -1
- package/esm/index.js +15 -0
- package/package.json +2 -2
- package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,121 @@ 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
|
+
declare class DefaultService {
|
|
121
|
+
readonly httpRequest: BaseHttpRequest;
|
|
122
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
123
|
+
/**
|
|
124
|
+
* @returns any
|
|
125
|
+
* @throws ApiError
|
|
126
|
+
*/
|
|
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>;
|
|
176
|
+
}
|
|
177
|
+
|
|
63
178
|
declare enum CurrencyCode {
|
|
64
179
|
USD = "usd",
|
|
65
180
|
EUR = "eur",
|
|
@@ -743,18 +858,6 @@ declare class EvmChainsService {
|
|
|
743
858
|
}): CancelablePromise<GetChainResponse>;
|
|
744
859
|
}
|
|
745
860
|
|
|
746
|
-
type ContractDeploymentDetails = {
|
|
747
|
-
txHash: string;
|
|
748
|
-
/**
|
|
749
|
-
* The address that initiated the transaction which deployed this contract.
|
|
750
|
-
*/
|
|
751
|
-
deployerAddress: string;
|
|
752
|
-
/**
|
|
753
|
-
* The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
|
|
754
|
-
*/
|
|
755
|
-
deployerContractAddress?: string;
|
|
756
|
-
};
|
|
757
|
-
|
|
758
861
|
type ImageAsset = {
|
|
759
862
|
assetId?: string;
|
|
760
863
|
/**
|
|
@@ -793,6 +896,120 @@ type ResourceLink = {
|
|
|
793
896
|
url: string;
|
|
794
897
|
};
|
|
795
898
|
|
|
899
|
+
type ContractSubmissionErc1155 = {
|
|
900
|
+
description?: string;
|
|
901
|
+
officialSite?: string;
|
|
902
|
+
email?: string;
|
|
903
|
+
logoAsset?: ImageAsset;
|
|
904
|
+
bannerAsset?: ImageAsset;
|
|
905
|
+
color?: string;
|
|
906
|
+
resourceLinks?: Array<ResourceLink>;
|
|
907
|
+
tags?: Array<string>;
|
|
908
|
+
/**
|
|
909
|
+
* The contract name.
|
|
910
|
+
*/
|
|
911
|
+
name: string;
|
|
912
|
+
ercType: ContractSubmissionErc1155.ercType;
|
|
913
|
+
/**
|
|
914
|
+
* The contract symbol.
|
|
915
|
+
*/
|
|
916
|
+
symbol: string;
|
|
917
|
+
pricingProviders?: PricingProviders;
|
|
918
|
+
};
|
|
919
|
+
declare namespace ContractSubmissionErc1155 {
|
|
920
|
+
enum ercType {
|
|
921
|
+
ERC_1155 = "ERC-1155"
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
type ContractSubmissionErc20 = {
|
|
926
|
+
description?: string;
|
|
927
|
+
officialSite?: string;
|
|
928
|
+
email?: string;
|
|
929
|
+
logoAsset?: ImageAsset;
|
|
930
|
+
bannerAsset?: ImageAsset;
|
|
931
|
+
color?: string;
|
|
932
|
+
resourceLinks?: Array<ResourceLink>;
|
|
933
|
+
tags?: Array<string>;
|
|
934
|
+
/**
|
|
935
|
+
* The contract name.
|
|
936
|
+
*/
|
|
937
|
+
name: string;
|
|
938
|
+
ercType: ContractSubmissionErc20.ercType;
|
|
939
|
+
/**
|
|
940
|
+
* The contract symbol.
|
|
941
|
+
*/
|
|
942
|
+
symbol: string;
|
|
943
|
+
pricingProviders?: PricingProviders;
|
|
944
|
+
};
|
|
945
|
+
declare namespace ContractSubmissionErc20 {
|
|
946
|
+
enum ercType {
|
|
947
|
+
ERC_20 = "ERC-20"
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
type ContractSubmissionErc721 = {
|
|
952
|
+
description?: string;
|
|
953
|
+
officialSite?: string;
|
|
954
|
+
email?: string;
|
|
955
|
+
logoAsset?: ImageAsset;
|
|
956
|
+
bannerAsset?: ImageAsset;
|
|
957
|
+
color?: string;
|
|
958
|
+
resourceLinks?: Array<ResourceLink>;
|
|
959
|
+
tags?: Array<string>;
|
|
960
|
+
/**
|
|
961
|
+
* The contract name.
|
|
962
|
+
*/
|
|
963
|
+
name: string;
|
|
964
|
+
ercType: ContractSubmissionErc721.ercType;
|
|
965
|
+
/**
|
|
966
|
+
* The contract symbol.
|
|
967
|
+
*/
|
|
968
|
+
symbol: string;
|
|
969
|
+
};
|
|
970
|
+
declare namespace ContractSubmissionErc721 {
|
|
971
|
+
enum ercType {
|
|
972
|
+
ERC_721 = "ERC-721"
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
type ContractSubmissionUnknown = {
|
|
977
|
+
description?: string;
|
|
978
|
+
officialSite?: string;
|
|
979
|
+
email?: string;
|
|
980
|
+
logoAsset?: ImageAsset;
|
|
981
|
+
bannerAsset?: ImageAsset;
|
|
982
|
+
color?: string;
|
|
983
|
+
resourceLinks?: Array<ResourceLink>;
|
|
984
|
+
tags?: Array<string>;
|
|
985
|
+
/**
|
|
986
|
+
* The contract name.
|
|
987
|
+
*/
|
|
988
|
+
name: string;
|
|
989
|
+
ercType: ContractSubmissionUnknown.ercType;
|
|
990
|
+
};
|
|
991
|
+
declare namespace ContractSubmissionUnknown {
|
|
992
|
+
enum ercType {
|
|
993
|
+
UNKNOWN = "UNKNOWN"
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
type ContractSubmissionBody = {
|
|
998
|
+
contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
|
|
999
|
+
};
|
|
1000
|
+
|
|
1001
|
+
type ContractDeploymentDetails = {
|
|
1002
|
+
txHash: string;
|
|
1003
|
+
/**
|
|
1004
|
+
* The address that initiated the transaction which deployed this contract.
|
|
1005
|
+
*/
|
|
1006
|
+
deployerAddress: string;
|
|
1007
|
+
/**
|
|
1008
|
+
* The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
|
|
1009
|
+
*/
|
|
1010
|
+
deployerContractAddress?: string;
|
|
1011
|
+
};
|
|
1012
|
+
|
|
796
1013
|
type Erc1155Contract = {
|
|
797
1014
|
/**
|
|
798
1015
|
* The contract name.
|
|
@@ -915,6 +1132,10 @@ declare namespace UnknownContract {
|
|
|
915
1132
|
}
|
|
916
1133
|
}
|
|
917
1134
|
|
|
1135
|
+
type UpdateContractResponse = {
|
|
1136
|
+
contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
|
|
1137
|
+
};
|
|
1138
|
+
|
|
918
1139
|
declare class EvmContractsService {
|
|
919
1140
|
readonly httpRequest: BaseHttpRequest;
|
|
920
1141
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -934,6 +1155,23 @@ declare class EvmContractsService {
|
|
|
934
1155
|
*/
|
|
935
1156
|
address: string;
|
|
936
1157
|
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1158
|
+
/**
|
|
1159
|
+
* Update contract information
|
|
1160
|
+
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1161
|
+
* @returns UpdateContractResponse
|
|
1162
|
+
* @throws ApiError
|
|
1163
|
+
*/
|
|
1164
|
+
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1165
|
+
/**
|
|
1166
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1167
|
+
*/
|
|
1168
|
+
chainId: string;
|
|
1169
|
+
/**
|
|
1170
|
+
* Contract address on the relevant chain.
|
|
1171
|
+
*/
|
|
1172
|
+
address: string;
|
|
1173
|
+
requestBody: ContractSubmissionBody;
|
|
1174
|
+
}): CancelablePromise<UpdateContractResponse>;
|
|
937
1175
|
}
|
|
938
1176
|
|
|
939
1177
|
type Erc1155Token = {
|
|
@@ -1504,7 +1742,13 @@ declare class EvmTransactionsService {
|
|
|
1504
1742
|
* A wallet address.
|
|
1505
1743
|
*/
|
|
1506
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
|
+
*/
|
|
1507
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
|
+
*/
|
|
1508
1752
|
endBlock?: number;
|
|
1509
1753
|
/**
|
|
1510
1754
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1540,7 +1784,13 @@ declare class EvmTransactionsService {
|
|
|
1540
1784
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1541
1785
|
*/
|
|
1542
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
|
+
*/
|
|
1543
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
|
+
*/
|
|
1544
1794
|
endBlock?: number;
|
|
1545
1795
|
/**
|
|
1546
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.
|
|
@@ -1562,7 +1812,13 @@ declare class EvmTransactionsService {
|
|
|
1562
1812
|
* A wallet address.
|
|
1563
1813
|
*/
|
|
1564
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
|
+
*/
|
|
1565
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
|
+
*/
|
|
1566
1822
|
endBlock?: number;
|
|
1567
1823
|
/**
|
|
1568
1824
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1588,7 +1844,13 @@ declare class EvmTransactionsService {
|
|
|
1588
1844
|
* A wallet address.
|
|
1589
1845
|
*/
|
|
1590
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
|
+
*/
|
|
1591
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
|
+
*/
|
|
1592
1854
|
endBlock?: number;
|
|
1593
1855
|
/**
|
|
1594
1856
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1614,7 +1876,13 @@ declare class EvmTransactionsService {
|
|
|
1614
1876
|
* A wallet address.
|
|
1615
1877
|
*/
|
|
1616
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
|
+
*/
|
|
1617
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
|
+
*/
|
|
1618
1886
|
endBlock?: number;
|
|
1619
1887
|
/**
|
|
1620
1888
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1640,7 +1908,13 @@ declare class EvmTransactionsService {
|
|
|
1640
1908
|
* A wallet address.
|
|
1641
1909
|
*/
|
|
1642
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
|
+
*/
|
|
1643
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
|
+
*/
|
|
1644
1918
|
endBlock?: number;
|
|
1645
1919
|
/**
|
|
1646
1920
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1668,7 +1942,13 @@ declare class EvmTransactionsService {
|
|
|
1668
1942
|
* A wallet address.
|
|
1669
1943
|
*/
|
|
1670
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
|
+
*/
|
|
1671
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
|
+
*/
|
|
1672
1952
|
endBlock?: number;
|
|
1673
1953
|
/**
|
|
1674
1954
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1753,6 +2033,14 @@ declare class HealthCheckService {
|
|
|
1753
2033
|
}>;
|
|
1754
2034
|
}
|
|
1755
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
|
+
|
|
1756
2044
|
declare class NfTsService {
|
|
1757
2045
|
readonly httpRequest: BaseHttpRequest;
|
|
1758
2046
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -1776,6 +2064,30 @@ declare class NfTsService {
|
|
|
1776
2064
|
*/
|
|
1777
2065
|
tokenId: string;
|
|
1778
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>;
|
|
1779
2091
|
/**
|
|
1780
2092
|
* Get token details
|
|
1781
2093
|
* Gets token details for a specific token of an NFT contract.
|
|
@@ -1892,17 +2204,6 @@ type OperationStatusResponse = {
|
|
|
1892
2204
|
declare class OperationsService {
|
|
1893
2205
|
readonly httpRequest: BaseHttpRequest;
|
|
1894
2206
|
constructor(httpRequest: BaseHttpRequest);
|
|
1895
|
-
/**
|
|
1896
|
-
* Create transaction export operation
|
|
1897
|
-
* Trigger a transaction export operation with given parameters.
|
|
1898
|
-
*
|
|
1899
|
-
* 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.
|
|
1900
|
-
* @returns OperationStatusResponse
|
|
1901
|
-
* @throws ApiError
|
|
1902
|
-
*/
|
|
1903
|
-
postTransactionExportJob({ requestBody, }: {
|
|
1904
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
1905
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
1906
2207
|
/**
|
|
1907
2208
|
* Get operation
|
|
1908
2209
|
* Gets operation details for the given operation id.
|
|
@@ -1915,8 +2216,19 @@ declare class OperationsService {
|
|
|
1915
2216
|
*/
|
|
1916
2217
|
operationId: string;
|
|
1917
2218
|
}): CancelablePromise<OperationStatusResponse>;
|
|
1918
|
-
|
|
1919
|
-
|
|
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>;
|
|
2230
|
+
}
|
|
2231
|
+
|
|
1920
2232
|
declare enum BlockchainIds {
|
|
1921
2233
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
1922
2234
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
@@ -1983,6 +2295,7 @@ type ListBlockchainsResponse = {
|
|
|
1983
2295
|
|
|
1984
2296
|
type ActiveDelegatorDetails = {
|
|
1985
2297
|
txHash: string;
|
|
2298
|
+
nodeId: string;
|
|
1986
2299
|
rewardAddresses: Array<string>;
|
|
1987
2300
|
amountDelegated: string;
|
|
1988
2301
|
delegationFee: string;
|
|
@@ -2000,6 +2313,7 @@ declare namespace ActiveDelegatorDetails {
|
|
|
2000
2313
|
|
|
2001
2314
|
type CompletedDelegatorDetails = {
|
|
2002
2315
|
txHash: string;
|
|
2316
|
+
nodeId: string;
|
|
2003
2317
|
rewardAddresses: Array<string>;
|
|
2004
2318
|
amountDelegated: string;
|
|
2005
2319
|
delegationFee: string;
|
|
@@ -2017,6 +2331,7 @@ declare namespace CompletedDelegatorDetails {
|
|
|
2017
2331
|
|
|
2018
2332
|
type PendingDelegatorDetails = {
|
|
2019
2333
|
txHash: string;
|
|
2334
|
+
nodeId: string;
|
|
2020
2335
|
rewardAddresses: Array<string>;
|
|
2021
2336
|
amountDelegated: string;
|
|
2022
2337
|
delegationFee: string;
|
|
@@ -2068,22 +2383,46 @@ type ListSubnetsResponse = {
|
|
|
2068
2383
|
type Rewards = {
|
|
2069
2384
|
validationRewardAmount: string;
|
|
2070
2385
|
delegationRewardAmount: string;
|
|
2386
|
+
rewardAddresses?: Array<string>;
|
|
2387
|
+
rewardTxHash?: string;
|
|
2388
|
+
};
|
|
2389
|
+
|
|
2390
|
+
type ValidatorHealthDetails = {
|
|
2391
|
+
/**
|
|
2392
|
+
* Percent of requests responded to in last polling.
|
|
2393
|
+
*/
|
|
2394
|
+
reachabilityPercent: number;
|
|
2395
|
+
/**
|
|
2396
|
+
* Percent of requests benched on the P-Chain in last polling.
|
|
2397
|
+
*/
|
|
2398
|
+
benchedPChainRequestsPercent: number;
|
|
2399
|
+
/**
|
|
2400
|
+
* Percentage of requests benched on the X-Chain in last polling.
|
|
2401
|
+
*/
|
|
2402
|
+
benchedXChainRequestsPercent: number;
|
|
2403
|
+
/**
|
|
2404
|
+
* Percentage of requests benched on the C-Chain in last polling.
|
|
2405
|
+
*/
|
|
2406
|
+
benchedCChainRequestsPercent: number;
|
|
2071
2407
|
};
|
|
2072
2408
|
|
|
2073
2409
|
type ActiveValidatorDetails = {
|
|
2410
|
+
txHash: string;
|
|
2074
2411
|
nodeId: string;
|
|
2412
|
+
subnetId: string;
|
|
2075
2413
|
amountStaked: string;
|
|
2076
|
-
delegationFee
|
|
2414
|
+
delegationFee?: string;
|
|
2077
2415
|
startTimestamp: number;
|
|
2078
2416
|
endTimestamp: number;
|
|
2079
2417
|
stakePercentage: number;
|
|
2080
2418
|
delegatorCount: number;
|
|
2081
|
-
amountDelegated
|
|
2419
|
+
amountDelegated?: string;
|
|
2082
2420
|
uptimePerformance: number;
|
|
2083
|
-
avalancheGoVersion
|
|
2084
|
-
delegationCapacity
|
|
2421
|
+
avalancheGoVersion?: string;
|
|
2422
|
+
delegationCapacity?: string;
|
|
2085
2423
|
potentialRewards: Rewards;
|
|
2086
2424
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2425
|
+
validatorHealth: ValidatorHealthDetails;
|
|
2087
2426
|
};
|
|
2088
2427
|
declare namespace ActiveValidatorDetails {
|
|
2089
2428
|
enum validationStatus {
|
|
@@ -2092,9 +2431,11 @@ declare namespace ActiveValidatorDetails {
|
|
|
2092
2431
|
}
|
|
2093
2432
|
|
|
2094
2433
|
type CompletedValidatorDetails = {
|
|
2434
|
+
txHash: string;
|
|
2095
2435
|
nodeId: string;
|
|
2436
|
+
subnetId: string;
|
|
2096
2437
|
amountStaked: string;
|
|
2097
|
-
delegationFee
|
|
2438
|
+
delegationFee?: string;
|
|
2098
2439
|
startTimestamp: number;
|
|
2099
2440
|
endTimestamp: number;
|
|
2100
2441
|
delegatorCount: number;
|
|
@@ -2108,9 +2449,11 @@ declare namespace CompletedValidatorDetails {
|
|
|
2108
2449
|
}
|
|
2109
2450
|
|
|
2110
2451
|
type PendingValidatorDetails = {
|
|
2452
|
+
txHash: string;
|
|
2111
2453
|
nodeId: string;
|
|
2454
|
+
subnetId: string;
|
|
2112
2455
|
amountStaked: string;
|
|
2113
|
-
delegationFee
|
|
2456
|
+
delegationFee?: string;
|
|
2114
2457
|
startTimestamp: number;
|
|
2115
2458
|
endTimestamp: number;
|
|
2116
2459
|
validationStatus: PendingValidatorDetails.validationStatus;
|
|
@@ -2121,15 +2464,33 @@ declare namespace PendingValidatorDetails {
|
|
|
2121
2464
|
}
|
|
2122
2465
|
}
|
|
2123
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
|
+
|
|
2124
2485
|
type ListValidatorDetailsResponse = {
|
|
2125
2486
|
/**
|
|
2126
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.
|
|
2127
2488
|
*/
|
|
2128
2489
|
nextPageToken?: string;
|
|
2129
2490
|
/**
|
|
2130
|
-
* The list of
|
|
2491
|
+
* The list of validator Details.
|
|
2131
2492
|
*/
|
|
2132
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2493
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2133
2494
|
};
|
|
2134
2495
|
|
|
2135
2496
|
declare enum Network {
|
|
@@ -2140,7 +2501,8 @@ declare enum Network {
|
|
|
2140
2501
|
declare enum ValidationStatusType {
|
|
2141
2502
|
COMPLETED = "completed",
|
|
2142
2503
|
ACTIVE = "active",
|
|
2143
|
-
PENDING = "pending"
|
|
2504
|
+
PENDING = "pending",
|
|
2505
|
+
REMOVED = "removed"
|
|
2144
2506
|
}
|
|
2145
2507
|
|
|
2146
2508
|
type XChainAssetDetails = {
|
|
@@ -2285,7 +2647,7 @@ declare class PrimaryNetworkService {
|
|
|
2285
2647
|
* @returns ListValidatorDetailsResponse
|
|
2286
2648
|
* @throws ApiError
|
|
2287
2649
|
*/
|
|
2288
|
-
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
|
|
2650
|
+
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2289
2651
|
/**
|
|
2290
2652
|
* Either mainnet or a testnet.
|
|
2291
2653
|
*/
|
|
@@ -2311,9 +2673,33 @@ declare class PrimaryNetworkService {
|
|
|
2311
2673
|
*/
|
|
2312
2674
|
validationStatus?: ValidationStatusType;
|
|
2313
2675
|
/**
|
|
2314
|
-
* The minimum delegation capacity, used to filter the set of nodes being returned
|
|
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
|
|
2315
2677
|
*/
|
|
2316
2678
|
minDelegationCapacity?: any;
|
|
2679
|
+
/**
|
|
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.
|
|
2681
|
+
*/
|
|
2682
|
+
maxDelegationCapacity?: any;
|
|
2683
|
+
/**
|
|
2684
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2685
|
+
*/
|
|
2686
|
+
minTimeRemaining?: any;
|
|
2687
|
+
/**
|
|
2688
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2689
|
+
*/
|
|
2690
|
+
maxTimeRemaining?: any;
|
|
2691
|
+
/**
|
|
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.
|
|
2693
|
+
*/
|
|
2694
|
+
minFeePercentage?: any;
|
|
2695
|
+
/**
|
|
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.
|
|
2697
|
+
*/
|
|
2698
|
+
maxFeePercentage?: any;
|
|
2699
|
+
/**
|
|
2700
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2701
|
+
*/
|
|
2702
|
+
subnetId?: string;
|
|
2317
2703
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2318
2704
|
/**
|
|
2319
2705
|
* Get single validator details
|
|
@@ -2353,7 +2739,7 @@ declare class PrimaryNetworkService {
|
|
|
2353
2739
|
* @returns ListDelegatorDetailsResponse
|
|
2354
2740
|
* @throws ApiError
|
|
2355
2741
|
*/
|
|
2356
|
-
listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus,
|
|
2742
|
+
listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2357
2743
|
/**
|
|
2358
2744
|
* Either mainnet or a testnet.
|
|
2359
2745
|
*/
|
|
@@ -2366,6 +2752,10 @@ declare class PrimaryNetworkService {
|
|
|
2366
2752
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2367
2753
|
*/
|
|
2368
2754
|
pageToken?: string;
|
|
2755
|
+
/**
|
|
2756
|
+
* A comma separated list of reward addresses to filter by.
|
|
2757
|
+
*/
|
|
2758
|
+
rewardAddresses?: string;
|
|
2369
2759
|
/**
|
|
2370
2760
|
* 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.
|
|
2371
2761
|
*/
|
|
@@ -2374,10 +2764,6 @@ declare class PrimaryNetworkService {
|
|
|
2374
2764
|
* Delegation status of the node.
|
|
2375
2765
|
*/
|
|
2376
2766
|
delegationStatus?: DelegationStatusType;
|
|
2377
|
-
/**
|
|
2378
|
-
* A comma separated list of reward addresses to filter by.
|
|
2379
|
-
*/
|
|
2380
|
-
rewardAddresses?: string;
|
|
2381
2767
|
/**
|
|
2382
2768
|
* A comma separated list of node ids to filter by.
|
|
2383
2769
|
*/
|
|
@@ -2451,13 +2837,57 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2451
2837
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2452
2838
|
};
|
|
2453
2839
|
|
|
2454
|
-
type
|
|
2840
|
+
type Asset = {
|
|
2841
|
+
/**
|
|
2842
|
+
* Unique ID for an asset.
|
|
2843
|
+
*/
|
|
2455
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
|
+
*/
|
|
2456
2864
|
amount: string;
|
|
2457
2865
|
};
|
|
2458
2866
|
|
|
2459
2867
|
type PChainSharedAsset = {
|
|
2868
|
+
/**
|
|
2869
|
+
* Unique ID for an asset.
|
|
2870
|
+
*/
|
|
2460
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
|
+
*/
|
|
2461
2891
|
amount: string;
|
|
2462
2892
|
sharedWithChainId: string;
|
|
2463
2893
|
status: string;
|
|
@@ -2467,27 +2897,27 @@ type PChainBalance = {
|
|
|
2467
2897
|
/**
|
|
2468
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.
|
|
2469
2899
|
*/
|
|
2470
|
-
unlockedUnstaked: Array<
|
|
2900
|
+
unlockedUnstaked: Array<Asset>;
|
|
2471
2901
|
/**
|
|
2472
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.
|
|
2473
2903
|
*/
|
|
2474
|
-
unlockedStaked: Array<
|
|
2904
|
+
unlockedStaked: Array<Asset>;
|
|
2475
2905
|
/**
|
|
2476
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.
|
|
2477
2907
|
*/
|
|
2478
|
-
lockedPlatform: Array<
|
|
2908
|
+
lockedPlatform: Array<Asset>;
|
|
2479
2909
|
/**
|
|
2480
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.
|
|
2481
2911
|
*/
|
|
2482
|
-
lockedStakeable: Array<
|
|
2912
|
+
lockedStakeable: Array<Asset>;
|
|
2483
2913
|
/**
|
|
2484
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.
|
|
2485
2915
|
*/
|
|
2486
|
-
lockedStaked: Array<
|
|
2916
|
+
lockedStaked: Array<Asset>;
|
|
2487
2917
|
/**
|
|
2488
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.
|
|
2489
2919
|
*/
|
|
2490
|
-
pendingStaked: Array<
|
|
2920
|
+
pendingStaked: Array<Asset>;
|
|
2491
2921
|
/**
|
|
2492
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.
|
|
2493
2923
|
*/
|
|
@@ -2626,6 +3056,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2626
3056
|
txCount: number;
|
|
2627
3057
|
transactions: Array<string>;
|
|
2628
3058
|
blockSizeBytes: number;
|
|
3059
|
+
currentSupply?: string;
|
|
2629
3060
|
proposerDetails?: ProposerDetails;
|
|
2630
3061
|
};
|
|
2631
3062
|
|
|
@@ -2638,6 +3069,7 @@ type PrimaryNetworkBlock = {
|
|
|
2638
3069
|
txCount: number;
|
|
2639
3070
|
transactions: Array<string>;
|
|
2640
3071
|
blockSizeBytes: number;
|
|
3072
|
+
currentSupply?: string;
|
|
2641
3073
|
proposerDetails?: ProposerDetails;
|
|
2642
3074
|
};
|
|
2643
3075
|
|
|
@@ -2729,7 +3161,8 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2729
3161
|
|
|
2730
3162
|
declare enum RewardType {
|
|
2731
3163
|
VALIDATOR = "VALIDATOR",
|
|
2732
|
-
DELEGATOR = "DELEGATOR"
|
|
3164
|
+
DELEGATOR = "DELEGATOR",
|
|
3165
|
+
VALIDATOR_FEE = "VALIDATOR_FEE"
|
|
2733
3166
|
}
|
|
2734
3167
|
|
|
2735
3168
|
type HistoricalReward = {
|
|
@@ -2748,7 +3181,7 @@ type HistoricalReward = {
|
|
|
2748
3181
|
/**
|
|
2749
3182
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2750
3183
|
*/
|
|
2751
|
-
reward:
|
|
3184
|
+
reward: Asset;
|
|
2752
3185
|
rewardTxHash: string;
|
|
2753
3186
|
};
|
|
2754
3187
|
|
|
@@ -2775,7 +3208,7 @@ type PendingReward = {
|
|
|
2775
3208
|
/**
|
|
2776
3209
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2777
3210
|
*/
|
|
2778
|
-
estimatedReward:
|
|
3211
|
+
estimatedReward: Asset;
|
|
2779
3212
|
};
|
|
2780
3213
|
|
|
2781
3214
|
type ListPendingRewardsResponse = {
|
|
@@ -2795,13 +3228,13 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2795
3228
|
* @returns ListPendingRewardsResponse
|
|
2796
3229
|
* @throws ApiError
|
|
2797
3230
|
*/
|
|
2798
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
3231
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
2799
3232
|
/**
|
|
2800
3233
|
* Either mainnet or a testnet.
|
|
2801
3234
|
*/
|
|
2802
3235
|
network: Network;
|
|
2803
3236
|
/**
|
|
2804
|
-
* 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.
|
|
2805
3238
|
*/
|
|
2806
3239
|
addresses?: string;
|
|
2807
3240
|
/**
|
|
@@ -2812,6 +3245,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2812
3245
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2813
3246
|
*/
|
|
2814
3247
|
pageToken?: string;
|
|
3248
|
+
/**
|
|
3249
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3250
|
+
*/
|
|
3251
|
+
nodeIds?: string;
|
|
2815
3252
|
/**
|
|
2816
3253
|
* 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.
|
|
2817
3254
|
*/
|
|
@@ -2823,13 +3260,13 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2823
3260
|
* @returns ListHistoricalRewardsResponse
|
|
2824
3261
|
* @throws ApiError
|
|
2825
3262
|
*/
|
|
2826
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
3263
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
2827
3264
|
/**
|
|
2828
3265
|
* Either mainnet or a testnet.
|
|
2829
3266
|
*/
|
|
2830
3267
|
network: Network;
|
|
2831
3268
|
/**
|
|
2832
|
-
* 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.
|
|
2833
3270
|
*/
|
|
2834
3271
|
addresses?: string;
|
|
2835
3272
|
/**
|
|
@@ -2840,6 +3277,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2840
3277
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2841
3278
|
*/
|
|
2842
3279
|
pageToken?: string;
|
|
3280
|
+
/**
|
|
3281
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3282
|
+
*/
|
|
3283
|
+
nodeIds?: string;
|
|
2843
3284
|
/**
|
|
2844
3285
|
* 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.
|
|
2845
3286
|
*/
|
|
@@ -2847,40 +3288,13 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2847
3288
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
2848
3289
|
}
|
|
2849
3290
|
|
|
2850
|
-
type Asset = {
|
|
2851
|
-
/**
|
|
2852
|
-
* Unique ID for an asset.
|
|
2853
|
-
*/
|
|
2854
|
-
assetId: string;
|
|
2855
|
-
/**
|
|
2856
|
-
* Name of this asset.
|
|
2857
|
-
*/
|
|
2858
|
-
name: string;
|
|
2859
|
-
/**
|
|
2860
|
-
* Symbol for this asset (max 4 characters).
|
|
2861
|
-
*/
|
|
2862
|
-
symbol: string;
|
|
2863
|
-
/**
|
|
2864
|
-
* Denomination of this asset to represent fungibility.
|
|
2865
|
-
*/
|
|
2866
|
-
denomination: number;
|
|
2867
|
-
/**
|
|
2868
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2869
|
-
*/
|
|
2870
|
-
type: string;
|
|
2871
|
-
/**
|
|
2872
|
-
* Amount of the asset.
|
|
2873
|
-
*/
|
|
2874
|
-
amount: string;
|
|
2875
|
-
};
|
|
2876
|
-
|
|
2877
3291
|
type UtxoCredential = {
|
|
2878
3292
|
/**
|
|
2879
|
-
* Signature provided to consume the output
|
|
3293
|
+
* Signature provided to consume the output.
|
|
2880
3294
|
*/
|
|
2881
3295
|
signature?: string;
|
|
2882
3296
|
/**
|
|
2883
|
-
* Public key associated with the signature
|
|
3297
|
+
* Public key associated with the signature.
|
|
2884
3298
|
*/
|
|
2885
3299
|
publicKey?: string;
|
|
2886
3300
|
};
|
|
@@ -2902,66 +3316,66 @@ type EVMInput = {
|
|
|
2902
3316
|
|
|
2903
3317
|
type Utxo = {
|
|
2904
3318
|
/**
|
|
2905
|
-
*
|
|
3319
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
2906
3320
|
*/
|
|
2907
|
-
|
|
3321
|
+
addresses: Array<string>;
|
|
2908
3322
|
asset: Asset;
|
|
2909
3323
|
/**
|
|
2910
|
-
*
|
|
3324
|
+
* Blockchain ID on which this output is consumed on.
|
|
2911
3325
|
*/
|
|
2912
|
-
|
|
3326
|
+
consumedOnChainId: string;
|
|
2913
3327
|
/**
|
|
2914
|
-
*
|
|
3328
|
+
* Transaction ID that consumed this output.
|
|
2915
3329
|
*/
|
|
2916
|
-
|
|
3330
|
+
consumingTxHash?: string;
|
|
2917
3331
|
/**
|
|
2918
|
-
* Blockchain ID on which this output is
|
|
3332
|
+
* Blockchain ID on which this output is created on.
|
|
2919
3333
|
*/
|
|
2920
|
-
|
|
3334
|
+
createdOnChainId: string;
|
|
2921
3335
|
/**
|
|
2922
|
-
*
|
|
3336
|
+
* UTXO ID for this output.
|
|
2923
3337
|
*/
|
|
2924
|
-
|
|
3338
|
+
utxoId: string;
|
|
2925
3339
|
/**
|
|
2926
|
-
*
|
|
3340
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
2927
3341
|
*/
|
|
2928
|
-
|
|
3342
|
+
consumingTxTimestamp?: number;
|
|
2929
3343
|
/**
|
|
2930
|
-
*
|
|
3344
|
+
* Transaction ID that created this output.
|
|
2931
3345
|
*/
|
|
2932
|
-
|
|
3346
|
+
creationTxHash: string;
|
|
2933
3347
|
/**
|
|
2934
|
-
*
|
|
3348
|
+
* Credentials that signed the transaction to consume this utxo
|
|
2935
3349
|
*/
|
|
2936
|
-
|
|
3350
|
+
credentials?: Array<UtxoCredential>;
|
|
2937
3351
|
/**
|
|
2938
|
-
*
|
|
3352
|
+
* Index representing the minting set for the NFT mint output.
|
|
2939
3353
|
*/
|
|
2940
|
-
|
|
3354
|
+
groupId?: number;
|
|
2941
3355
|
/**
|
|
2942
3356
|
* Locktime in seconds after which this output can be consumed.
|
|
2943
3357
|
*/
|
|
2944
3358
|
locktime: number;
|
|
2945
3359
|
/**
|
|
2946
|
-
*
|
|
3360
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
2947
3361
|
*/
|
|
2948
|
-
|
|
3362
|
+
outputIndex: string;
|
|
2949
3363
|
/**
|
|
2950
|
-
*
|
|
3364
|
+
* Hex encoded data for NFT assets.
|
|
2951
3365
|
*/
|
|
2952
|
-
|
|
3366
|
+
payload?: string;
|
|
2953
3367
|
/**
|
|
2954
|
-
*
|
|
3368
|
+
* Minimum number of signatures required to consume this output.
|
|
2955
3369
|
*/
|
|
2956
|
-
|
|
3370
|
+
threshold: number;
|
|
2957
3371
|
/**
|
|
2958
|
-
*
|
|
3372
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
2959
3373
|
*/
|
|
2960
|
-
|
|
3374
|
+
timestamp: number;
|
|
2961
3375
|
/**
|
|
2962
|
-
*
|
|
3376
|
+
* Type of output.
|
|
2963
3377
|
*/
|
|
2964
|
-
|
|
3378
|
+
utxoType: string;
|
|
2965
3379
|
};
|
|
2966
3380
|
|
|
2967
3381
|
type CChainExportTransaction = {
|
|
@@ -3092,16 +3506,18 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3092
3506
|
|
|
3093
3507
|
declare enum PChainTransactionType {
|
|
3094
3508
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3095
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3096
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3097
3509
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3098
|
-
|
|
3099
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3510
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3100
3511
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3101
3512
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3102
3513
|
IMPORT_TX = "ImportTx",
|
|
3103
3514
|
EXPORT_TX = "ExportTx",
|
|
3104
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",
|
|
3105
3521
|
UNKNOWN = "UNKNOWN"
|
|
3106
3522
|
}
|
|
3107
3523
|
|
|
@@ -3112,29 +3528,48 @@ declare enum UtxoType {
|
|
|
3112
3528
|
|
|
3113
3529
|
type PChainUtxo = {
|
|
3114
3530
|
/**
|
|
3115
|
-
*
|
|
3531
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3116
3532
|
*/
|
|
3117
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
|
+
*/
|
|
3118
3550
|
utxoId: string;
|
|
3119
|
-
|
|
3120
|
-
|
|
3551
|
+
/**
|
|
3552
|
+
* @deprecated
|
|
3553
|
+
*/
|
|
3554
|
+
amount: string;
|
|
3555
|
+
/**
|
|
3556
|
+
* @deprecated
|
|
3557
|
+
*/
|
|
3558
|
+
assetId: string;
|
|
3121
3559
|
blockNumber: string;
|
|
3122
3560
|
blockTimestamp: number;
|
|
3123
|
-
consumingTxHash?: string;
|
|
3124
|
-
consumingBlockTimestamp?: number;
|
|
3125
3561
|
consumingBlockNumber?: string;
|
|
3126
|
-
|
|
3127
|
-
utxoType: UtxoType;
|
|
3128
|
-
amount: string;
|
|
3129
|
-
stakeableLocktime?: number;
|
|
3562
|
+
consumingBlockTimestamp?: number;
|
|
3130
3563
|
platformLocktime?: number;
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3564
|
+
outputIndex: number;
|
|
3565
|
+
rewardType?: RewardType;
|
|
3566
|
+
stakeableLocktime?: number;
|
|
3134
3567
|
staked?: boolean;
|
|
3135
|
-
|
|
3568
|
+
threshold?: number;
|
|
3569
|
+
txHash: string;
|
|
3136
3570
|
utxoEndTimestamp?: number;
|
|
3137
|
-
|
|
3571
|
+
utxoStartTimestamp?: number;
|
|
3572
|
+
utxoType: UtxoType;
|
|
3138
3573
|
};
|
|
3139
3574
|
|
|
3140
3575
|
type PChainTransaction = {
|
|
@@ -3162,15 +3597,15 @@ type PChainTransaction = {
|
|
|
3162
3597
|
/**
|
|
3163
3598
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3164
3599
|
*/
|
|
3165
|
-
value: Array<
|
|
3600
|
+
value: Array<Asset>;
|
|
3166
3601
|
/**
|
|
3167
3602
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3168
3603
|
*/
|
|
3169
|
-
amountBurned: Array<
|
|
3604
|
+
amountBurned: Array<Asset>;
|
|
3170
3605
|
/**
|
|
3171
3606
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3172
3607
|
*/
|
|
3173
|
-
amountStaked: Array<
|
|
3608
|
+
amountStaked: Array<Asset>;
|
|
3174
3609
|
/**
|
|
3175
3610
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3176
3611
|
*/
|
|
@@ -3196,6 +3631,7 @@ type PChainTransaction = {
|
|
|
3196
3631
|
*/
|
|
3197
3632
|
estimatedReward?: string;
|
|
3198
3633
|
rewardTxHash?: string;
|
|
3634
|
+
rewardAddresses?: Array<string>;
|
|
3199
3635
|
memo?: string;
|
|
3200
3636
|
/**
|
|
3201
3637
|
* Present for RewardValidatorTx
|
|
@@ -3212,6 +3648,15 @@ type ListPChainTransactionsResponse = {
|
|
|
3212
3648
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3213
3649
|
};
|
|
3214
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
|
+
|
|
3215
3660
|
type XChainLinearTransaction = {
|
|
3216
3661
|
/**
|
|
3217
3662
|
* Unique ID for this transaction.
|
|
@@ -3228,7 +3673,7 @@ type XChainLinearTransaction = {
|
|
|
3228
3673
|
/**
|
|
3229
3674
|
* Type of transaction.
|
|
3230
3675
|
*/
|
|
3231
|
-
txType:
|
|
3676
|
+
txType: XChainTransactionType;
|
|
3232
3677
|
/**
|
|
3233
3678
|
* Hex encoded memo bytes for this transaction.
|
|
3234
3679
|
*/
|
|
@@ -3305,7 +3750,7 @@ type XChainNonLinearTransaction = {
|
|
|
3305
3750
|
/**
|
|
3306
3751
|
* Type of transaction.
|
|
3307
3752
|
*/
|
|
3308
|
-
txType:
|
|
3753
|
+
txType: XChainTransactionType;
|
|
3309
3754
|
/**
|
|
3310
3755
|
* Hex encoded memo bytes for this transaction.
|
|
3311
3756
|
*/
|
|
@@ -3363,16 +3808,18 @@ declare enum PChainId {
|
|
|
3363
3808
|
|
|
3364
3809
|
declare enum PrimaryNetworkTxType {
|
|
3365
3810
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3366
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3367
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3368
3811
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3369
|
-
|
|
3370
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3812
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3371
3813
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3372
3814
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3373
3815
|
IMPORT_TX = "ImportTx",
|
|
3374
3816
|
EXPORT_TX = "ExportTx",
|
|
3375
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",
|
|
3376
3823
|
UNKNOWN = "UNKNOWN",
|
|
3377
3824
|
BASE_TX = "BaseTx",
|
|
3378
3825
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3700,8 +4147,182 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3700
4147
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3701
4148
|
}
|
|
3702
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
|
+
|
|
3703
4323
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3704
4324
|
declare class Glacier {
|
|
4325
|
+
readonly default: DefaultService;
|
|
3705
4326
|
readonly evmBalances: EvmBalancesService;
|
|
3706
4327
|
readonly evmBlocks: EvmBlocksService;
|
|
3707
4328
|
readonly evmChains: EvmChainsService;
|
|
@@ -3717,6 +4338,7 @@ declare class Glacier {
|
|
|
3717
4338
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
3718
4339
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
3719
4340
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4341
|
+
readonly teleporter: TeleporterService;
|
|
3720
4342
|
readonly request: BaseHttpRequest;
|
|
3721
4343
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
3722
4344
|
}
|
|
@@ -3738,4 +4360,4 @@ declare class ApiError extends Error {
|
|
|
3738
4360
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3739
4361
|
}
|
|
3740
4362
|
|
|
3741
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, 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 };
|