@avalabs/glacier-sdk 2.8.0-canary.b80d643.0 → 2.8.0-canary.bf2dc9b.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 +502 -136
- package/dist/index.js +185 -30
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.js +3 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +1 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +9 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +1 -0
- 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/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/ListWebhooksResponse.d.ts +11 -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/PendingValidatorDetails.d.ts +1 -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/SharedSecretsResponse.d.ts +5 -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/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/PrimaryNetworkService.d.ts +21 -17
- package/esm/generated/services/PrimaryNetworkService.js +12 -10
- package/esm/index.d.ts +17 -1
- package/esm/index.js +9 -0
- package/package.json +2 -2
- package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,118 @@ 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
|
+
topic0?: string;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
declare enum EventType {
|
|
72
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
declare enum WebhookStatusType {
|
|
76
|
+
ACTIVE = "active",
|
|
77
|
+
INACTIVE = "inactive"
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
type WebhookResponse = {
|
|
81
|
+
id: string;
|
|
82
|
+
eventType: EventType;
|
|
83
|
+
metadata: AddressActivityMetadata;
|
|
84
|
+
url: string;
|
|
85
|
+
chainId: string;
|
|
86
|
+
status: WebhookStatusType;
|
|
87
|
+
createdAt: number;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
type ListWebhooksResponse = {
|
|
91
|
+
/**
|
|
92
|
+
* 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.
|
|
93
|
+
*/
|
|
94
|
+
nextPageToken?: string;
|
|
95
|
+
webhooks: Array<WebhookResponse>;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
type RegisterWebhookRequest = {
|
|
99
|
+
url: string;
|
|
100
|
+
chainId: string;
|
|
101
|
+
/**
|
|
102
|
+
* The type of event for the webhook
|
|
103
|
+
*/
|
|
104
|
+
eventType: EventType;
|
|
105
|
+
metadata: AddressActivityMetadata;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
type SharedSecretsResponse = {
|
|
109
|
+
secret: string;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
declare enum WebhookStatus {
|
|
113
|
+
ACTIVE = "active",
|
|
114
|
+
INACTIVE = "inactive"
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
declare class DefaultService {
|
|
118
|
+
readonly httpRequest: BaseHttpRequest;
|
|
119
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
120
|
+
/**
|
|
121
|
+
* @returns any
|
|
122
|
+
* @throws ApiError
|
|
123
|
+
*/
|
|
124
|
+
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
125
|
+
/**
|
|
126
|
+
* Register a webhook
|
|
127
|
+
* Registers a new webhook.
|
|
128
|
+
* @returns WebhookResponse
|
|
129
|
+
* @throws ApiError
|
|
130
|
+
*/
|
|
131
|
+
registerWebhook({ requestBody, }: {
|
|
132
|
+
requestBody: RegisterWebhookRequest;
|
|
133
|
+
}): CancelablePromise<WebhookResponse>;
|
|
134
|
+
/**
|
|
135
|
+
* List webhooks
|
|
136
|
+
* Lists webhooks for the user.
|
|
137
|
+
* @returns ListWebhooksResponse
|
|
138
|
+
* @throws ApiError
|
|
139
|
+
*/
|
|
140
|
+
listWebhooks({ pageSize, pageToken, status, }: {
|
|
141
|
+
/**
|
|
142
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
143
|
+
*/
|
|
144
|
+
pageSize?: number;
|
|
145
|
+
/**
|
|
146
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
147
|
+
*/
|
|
148
|
+
pageToken?: string;
|
|
149
|
+
/**
|
|
150
|
+
* 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.
|
|
151
|
+
*/
|
|
152
|
+
status?: WebhookStatus;
|
|
153
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
154
|
+
/**
|
|
155
|
+
* Deactivate a webhook
|
|
156
|
+
* Deactivates a webhook by ID.
|
|
157
|
+
* @returns WebhookResponse
|
|
158
|
+
* @throws ApiError
|
|
159
|
+
*/
|
|
160
|
+
deactivateWebhook({ id, }: {
|
|
161
|
+
/**
|
|
162
|
+
* The webhook identifier.
|
|
163
|
+
*/
|
|
164
|
+
id: string;
|
|
165
|
+
}): CancelablePromise<WebhookResponse>;
|
|
166
|
+
/**
|
|
167
|
+
* Generate a shared secret
|
|
168
|
+
* Generates a new shared secret.
|
|
169
|
+
* @returns SharedSecretsResponse
|
|
170
|
+
* @throws ApiError
|
|
171
|
+
*/
|
|
172
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
173
|
+
}
|
|
174
|
+
|
|
63
175
|
declare enum CurrencyCode {
|
|
64
176
|
USD = "usd",
|
|
65
177
|
EUR = "eur",
|
|
@@ -743,18 +855,6 @@ declare class EvmChainsService {
|
|
|
743
855
|
}): CancelablePromise<GetChainResponse>;
|
|
744
856
|
}
|
|
745
857
|
|
|
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
858
|
type ImageAsset = {
|
|
759
859
|
assetId?: string;
|
|
760
860
|
/**
|
|
@@ -793,6 +893,120 @@ type ResourceLink = {
|
|
|
793
893
|
url: string;
|
|
794
894
|
};
|
|
795
895
|
|
|
896
|
+
type ContractSubmissionErc1155 = {
|
|
897
|
+
description?: string;
|
|
898
|
+
officialSite?: string;
|
|
899
|
+
email?: string;
|
|
900
|
+
logoAsset?: ImageAsset;
|
|
901
|
+
bannerAsset?: ImageAsset;
|
|
902
|
+
color?: string;
|
|
903
|
+
resourceLinks?: Array<ResourceLink>;
|
|
904
|
+
tags?: Array<string>;
|
|
905
|
+
/**
|
|
906
|
+
* The contract name.
|
|
907
|
+
*/
|
|
908
|
+
name: string;
|
|
909
|
+
ercType: ContractSubmissionErc1155.ercType;
|
|
910
|
+
/**
|
|
911
|
+
* The contract symbol.
|
|
912
|
+
*/
|
|
913
|
+
symbol: string;
|
|
914
|
+
pricingProviders?: PricingProviders;
|
|
915
|
+
};
|
|
916
|
+
declare namespace ContractSubmissionErc1155 {
|
|
917
|
+
enum ercType {
|
|
918
|
+
ERC_1155 = "ERC-1155"
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
type ContractSubmissionErc20 = {
|
|
923
|
+
description?: string;
|
|
924
|
+
officialSite?: string;
|
|
925
|
+
email?: string;
|
|
926
|
+
logoAsset?: ImageAsset;
|
|
927
|
+
bannerAsset?: ImageAsset;
|
|
928
|
+
color?: string;
|
|
929
|
+
resourceLinks?: Array<ResourceLink>;
|
|
930
|
+
tags?: Array<string>;
|
|
931
|
+
/**
|
|
932
|
+
* The contract name.
|
|
933
|
+
*/
|
|
934
|
+
name: string;
|
|
935
|
+
ercType: ContractSubmissionErc20.ercType;
|
|
936
|
+
/**
|
|
937
|
+
* The contract symbol.
|
|
938
|
+
*/
|
|
939
|
+
symbol: string;
|
|
940
|
+
pricingProviders?: PricingProviders;
|
|
941
|
+
};
|
|
942
|
+
declare namespace ContractSubmissionErc20 {
|
|
943
|
+
enum ercType {
|
|
944
|
+
ERC_20 = "ERC-20"
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
type ContractSubmissionErc721 = {
|
|
949
|
+
description?: string;
|
|
950
|
+
officialSite?: string;
|
|
951
|
+
email?: string;
|
|
952
|
+
logoAsset?: ImageAsset;
|
|
953
|
+
bannerAsset?: ImageAsset;
|
|
954
|
+
color?: string;
|
|
955
|
+
resourceLinks?: Array<ResourceLink>;
|
|
956
|
+
tags?: Array<string>;
|
|
957
|
+
/**
|
|
958
|
+
* The contract name.
|
|
959
|
+
*/
|
|
960
|
+
name: string;
|
|
961
|
+
ercType: ContractSubmissionErc721.ercType;
|
|
962
|
+
/**
|
|
963
|
+
* The contract symbol.
|
|
964
|
+
*/
|
|
965
|
+
symbol: string;
|
|
966
|
+
};
|
|
967
|
+
declare namespace ContractSubmissionErc721 {
|
|
968
|
+
enum ercType {
|
|
969
|
+
ERC_721 = "ERC-721"
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
type ContractSubmissionUnknown = {
|
|
974
|
+
description?: string;
|
|
975
|
+
officialSite?: string;
|
|
976
|
+
email?: string;
|
|
977
|
+
logoAsset?: ImageAsset;
|
|
978
|
+
bannerAsset?: ImageAsset;
|
|
979
|
+
color?: string;
|
|
980
|
+
resourceLinks?: Array<ResourceLink>;
|
|
981
|
+
tags?: Array<string>;
|
|
982
|
+
/**
|
|
983
|
+
* The contract name.
|
|
984
|
+
*/
|
|
985
|
+
name: string;
|
|
986
|
+
ercType: ContractSubmissionUnknown.ercType;
|
|
987
|
+
};
|
|
988
|
+
declare namespace ContractSubmissionUnknown {
|
|
989
|
+
enum ercType {
|
|
990
|
+
UNKNOWN = "UNKNOWN"
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
type ContractSubmissionBody = {
|
|
995
|
+
contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
|
|
996
|
+
};
|
|
997
|
+
|
|
998
|
+
type ContractDeploymentDetails = {
|
|
999
|
+
txHash: string;
|
|
1000
|
+
/**
|
|
1001
|
+
* The address that initiated the transaction which deployed this contract.
|
|
1002
|
+
*/
|
|
1003
|
+
deployerAddress: string;
|
|
1004
|
+
/**
|
|
1005
|
+
* 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.
|
|
1006
|
+
*/
|
|
1007
|
+
deployerContractAddress?: string;
|
|
1008
|
+
};
|
|
1009
|
+
|
|
796
1010
|
type Erc1155Contract = {
|
|
797
1011
|
/**
|
|
798
1012
|
* The contract name.
|
|
@@ -915,6 +1129,10 @@ declare namespace UnknownContract {
|
|
|
915
1129
|
}
|
|
916
1130
|
}
|
|
917
1131
|
|
|
1132
|
+
type UpdateContractResponse = {
|
|
1133
|
+
contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
|
|
1134
|
+
};
|
|
1135
|
+
|
|
918
1136
|
declare class EvmContractsService {
|
|
919
1137
|
readonly httpRequest: BaseHttpRequest;
|
|
920
1138
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -934,6 +1152,23 @@ declare class EvmContractsService {
|
|
|
934
1152
|
*/
|
|
935
1153
|
address: string;
|
|
936
1154
|
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1155
|
+
/**
|
|
1156
|
+
* Update contract information
|
|
1157
|
+
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1158
|
+
* @returns UpdateContractResponse
|
|
1159
|
+
* @throws ApiError
|
|
1160
|
+
*/
|
|
1161
|
+
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1162
|
+
/**
|
|
1163
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1164
|
+
*/
|
|
1165
|
+
chainId: string;
|
|
1166
|
+
/**
|
|
1167
|
+
* Contract address on the relevant chain.
|
|
1168
|
+
*/
|
|
1169
|
+
address: string;
|
|
1170
|
+
requestBody: ContractSubmissionBody;
|
|
1171
|
+
}): CancelablePromise<UpdateContractResponse>;
|
|
937
1172
|
}
|
|
938
1173
|
|
|
939
1174
|
type Erc1155Token = {
|
|
@@ -1504,7 +1739,13 @@ declare class EvmTransactionsService {
|
|
|
1504
1739
|
* A wallet address.
|
|
1505
1740
|
*/
|
|
1506
1741
|
address: string;
|
|
1742
|
+
/**
|
|
1743
|
+
* 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.
|
|
1744
|
+
*/
|
|
1507
1745
|
startBlock?: number;
|
|
1746
|
+
/**
|
|
1747
|
+
* 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.
|
|
1748
|
+
*/
|
|
1508
1749
|
endBlock?: number;
|
|
1509
1750
|
/**
|
|
1510
1751
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1540,7 +1781,13 @@ declare class EvmTransactionsService {
|
|
|
1540
1781
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1541
1782
|
*/
|
|
1542
1783
|
pageToken?: string;
|
|
1784
|
+
/**
|
|
1785
|
+
* 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.
|
|
1786
|
+
*/
|
|
1543
1787
|
startBlock?: number;
|
|
1788
|
+
/**
|
|
1789
|
+
* 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.
|
|
1790
|
+
*/
|
|
1544
1791
|
endBlock?: number;
|
|
1545
1792
|
/**
|
|
1546
1793
|
* 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 +1809,13 @@ declare class EvmTransactionsService {
|
|
|
1562
1809
|
* A wallet address.
|
|
1563
1810
|
*/
|
|
1564
1811
|
address: string;
|
|
1812
|
+
/**
|
|
1813
|
+
* 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.
|
|
1814
|
+
*/
|
|
1565
1815
|
startBlock?: number;
|
|
1816
|
+
/**
|
|
1817
|
+
* 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.
|
|
1818
|
+
*/
|
|
1566
1819
|
endBlock?: number;
|
|
1567
1820
|
/**
|
|
1568
1821
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1588,7 +1841,13 @@ declare class EvmTransactionsService {
|
|
|
1588
1841
|
* A wallet address.
|
|
1589
1842
|
*/
|
|
1590
1843
|
address: string;
|
|
1844
|
+
/**
|
|
1845
|
+
* 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.
|
|
1846
|
+
*/
|
|
1591
1847
|
startBlock?: number;
|
|
1848
|
+
/**
|
|
1849
|
+
* 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.
|
|
1850
|
+
*/
|
|
1592
1851
|
endBlock?: number;
|
|
1593
1852
|
/**
|
|
1594
1853
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1614,7 +1873,13 @@ declare class EvmTransactionsService {
|
|
|
1614
1873
|
* A wallet address.
|
|
1615
1874
|
*/
|
|
1616
1875
|
address: string;
|
|
1876
|
+
/**
|
|
1877
|
+
* 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.
|
|
1878
|
+
*/
|
|
1617
1879
|
startBlock?: number;
|
|
1880
|
+
/**
|
|
1881
|
+
* 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.
|
|
1882
|
+
*/
|
|
1618
1883
|
endBlock?: number;
|
|
1619
1884
|
/**
|
|
1620
1885
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1640,7 +1905,13 @@ declare class EvmTransactionsService {
|
|
|
1640
1905
|
* A wallet address.
|
|
1641
1906
|
*/
|
|
1642
1907
|
address: string;
|
|
1908
|
+
/**
|
|
1909
|
+
* 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.
|
|
1910
|
+
*/
|
|
1643
1911
|
startBlock?: number;
|
|
1912
|
+
/**
|
|
1913
|
+
* 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.
|
|
1914
|
+
*/
|
|
1644
1915
|
endBlock?: number;
|
|
1645
1916
|
/**
|
|
1646
1917
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1668,7 +1939,13 @@ declare class EvmTransactionsService {
|
|
|
1668
1939
|
* A wallet address.
|
|
1669
1940
|
*/
|
|
1670
1941
|
address: string;
|
|
1942
|
+
/**
|
|
1943
|
+
* 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.
|
|
1944
|
+
*/
|
|
1671
1945
|
startBlock?: number;
|
|
1946
|
+
/**
|
|
1947
|
+
* 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.
|
|
1948
|
+
*/
|
|
1672
1949
|
endBlock?: number;
|
|
1673
1950
|
/**
|
|
1674
1951
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1753,6 +2030,14 @@ declare class HealthCheckService {
|
|
|
1753
2030
|
}>;
|
|
1754
2031
|
}
|
|
1755
2032
|
|
|
2033
|
+
type ListNftTokens = {
|
|
2034
|
+
/**
|
|
2035
|
+
* 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.
|
|
2036
|
+
*/
|
|
2037
|
+
nextPageToken?: string;
|
|
2038
|
+
tokens: (Array<Erc721Token> | Array<Erc1155Token>);
|
|
2039
|
+
};
|
|
2040
|
+
|
|
1756
2041
|
declare class NfTsService {
|
|
1757
2042
|
readonly httpRequest: BaseHttpRequest;
|
|
1758
2043
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -1776,6 +2061,30 @@ declare class NfTsService {
|
|
|
1776
2061
|
*/
|
|
1777
2062
|
tokenId: string;
|
|
1778
2063
|
}): CancelablePromise<any>;
|
|
2064
|
+
/**
|
|
2065
|
+
* List tokens
|
|
2066
|
+
* Lists tokens for an NFT contract.
|
|
2067
|
+
* @returns ListNftTokens
|
|
2068
|
+
* @throws ApiError
|
|
2069
|
+
*/
|
|
2070
|
+
listTokens({ chainId, address, pageSize, pageToken, }: {
|
|
2071
|
+
/**
|
|
2072
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2073
|
+
*/
|
|
2074
|
+
chainId: string;
|
|
2075
|
+
/**
|
|
2076
|
+
* Contract address on the relevant chain.
|
|
2077
|
+
*/
|
|
2078
|
+
address: string;
|
|
2079
|
+
/**
|
|
2080
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2081
|
+
*/
|
|
2082
|
+
pageSize?: number;
|
|
2083
|
+
/**
|
|
2084
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2085
|
+
*/
|
|
2086
|
+
pageToken?: string;
|
|
2087
|
+
}): CancelablePromise<ListNftTokens>;
|
|
1779
2088
|
/**
|
|
1780
2089
|
* Get token details
|
|
1781
2090
|
* Gets token details for a specific token of an NFT contract.
|
|
@@ -1892,17 +2201,6 @@ type OperationStatusResponse = {
|
|
|
1892
2201
|
declare class OperationsService {
|
|
1893
2202
|
readonly httpRequest: BaseHttpRequest;
|
|
1894
2203
|
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
2204
|
/**
|
|
1907
2205
|
* Get operation
|
|
1908
2206
|
* Gets operation details for the given operation id.
|
|
@@ -1915,6 +2213,17 @@ declare class OperationsService {
|
|
|
1915
2213
|
*/
|
|
1916
2214
|
operationId: string;
|
|
1917
2215
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2216
|
+
/**
|
|
2217
|
+
* Create transaction export operation
|
|
2218
|
+
* Trigger a transaction export operation with given parameters.
|
|
2219
|
+
*
|
|
2220
|
+
* 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.
|
|
2221
|
+
* @returns OperationStatusResponse
|
|
2222
|
+
* @throws ApiError
|
|
2223
|
+
*/
|
|
2224
|
+
postTransactionExportJob({ requestBody, }: {
|
|
2225
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2226
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
1918
2227
|
}
|
|
1919
2228
|
|
|
1920
2229
|
declare enum BlockchainIds {
|
|
@@ -2095,6 +2404,7 @@ type ValidatorHealthDetails = {
|
|
|
2095
2404
|
};
|
|
2096
2405
|
|
|
2097
2406
|
type ActiveValidatorDetails = {
|
|
2407
|
+
txHash: string;
|
|
2098
2408
|
nodeId: string;
|
|
2099
2409
|
subnetId: string;
|
|
2100
2410
|
amountStaked: string;
|
|
@@ -2118,6 +2428,7 @@ declare namespace ActiveValidatorDetails {
|
|
|
2118
2428
|
}
|
|
2119
2429
|
|
|
2120
2430
|
type CompletedValidatorDetails = {
|
|
2431
|
+
txHash: string;
|
|
2121
2432
|
nodeId: string;
|
|
2122
2433
|
subnetId: string;
|
|
2123
2434
|
amountStaked: string;
|
|
@@ -2135,6 +2446,7 @@ declare namespace CompletedValidatorDetails {
|
|
|
2135
2446
|
}
|
|
2136
2447
|
|
|
2137
2448
|
type PendingValidatorDetails = {
|
|
2449
|
+
txHash: string;
|
|
2138
2450
|
nodeId: string;
|
|
2139
2451
|
subnetId: string;
|
|
2140
2452
|
amountStaked: string;
|
|
@@ -2313,7 +2625,7 @@ declare class PrimaryNetworkService {
|
|
|
2313
2625
|
* @returns ListValidatorDetailsResponse
|
|
2314
2626
|
* @throws ApiError
|
|
2315
2627
|
*/
|
|
2316
|
-
listValidators({ network, pageSize, pageToken,
|
|
2628
|
+
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2317
2629
|
/**
|
|
2318
2630
|
* Either mainnet or a testnet.
|
|
2319
2631
|
*/
|
|
@@ -2327,41 +2639,45 @@ declare class PrimaryNetworkService {
|
|
|
2327
2639
|
*/
|
|
2328
2640
|
pageToken?: string;
|
|
2329
2641
|
/**
|
|
2330
|
-
*
|
|
2642
|
+
* A comma separated list of node ids to filter by.
|
|
2331
2643
|
*/
|
|
2332
|
-
|
|
2644
|
+
nodeIds?: string;
|
|
2333
2645
|
/**
|
|
2334
|
-
* The
|
|
2646
|
+
* 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.
|
|
2335
2647
|
*/
|
|
2336
|
-
|
|
2648
|
+
sortOrder?: SortOrder;
|
|
2649
|
+
/**
|
|
2650
|
+
* Validation status of the node.
|
|
2651
|
+
*/
|
|
2652
|
+
validationStatus?: ValidationStatusType;
|
|
2337
2653
|
/**
|
|
2338
2654
|
* 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
|
|
2339
2655
|
*/
|
|
2340
|
-
minDelegationCapacity?:
|
|
2656
|
+
minDelegationCapacity?: any;
|
|
2341
2657
|
/**
|
|
2342
2658
|
* 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.
|
|
2343
2659
|
*/
|
|
2344
|
-
maxDelegationCapacity?:
|
|
2660
|
+
maxDelegationCapacity?: any;
|
|
2345
2661
|
/**
|
|
2346
|
-
* The minimum
|
|
2662
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2347
2663
|
*/
|
|
2348
|
-
|
|
2664
|
+
minTimeRemaining?: any;
|
|
2349
2665
|
/**
|
|
2350
|
-
* The maximum
|
|
2666
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2351
2667
|
*/
|
|
2352
|
-
|
|
2668
|
+
maxTimeRemaining?: any;
|
|
2353
2669
|
/**
|
|
2354
|
-
*
|
|
2670
|
+
* 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.
|
|
2355
2671
|
*/
|
|
2356
|
-
|
|
2672
|
+
minFeePercentage?: any;
|
|
2357
2673
|
/**
|
|
2358
|
-
* The
|
|
2674
|
+
* 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.
|
|
2359
2675
|
*/
|
|
2360
|
-
|
|
2676
|
+
maxFeePercentage?: any;
|
|
2361
2677
|
/**
|
|
2362
|
-
*
|
|
2678
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2363
2679
|
*/
|
|
2364
|
-
|
|
2680
|
+
subnetId?: string;
|
|
2365
2681
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2366
2682
|
/**
|
|
2367
2683
|
* Get single validator details
|
|
@@ -2499,13 +2815,57 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2499
2815
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2500
2816
|
};
|
|
2501
2817
|
|
|
2502
|
-
type
|
|
2818
|
+
type Asset = {
|
|
2819
|
+
/**
|
|
2820
|
+
* Unique ID for an asset.
|
|
2821
|
+
*/
|
|
2503
2822
|
assetId: string;
|
|
2823
|
+
/**
|
|
2824
|
+
* Name of this asset.
|
|
2825
|
+
*/
|
|
2826
|
+
name: string;
|
|
2827
|
+
/**
|
|
2828
|
+
* Symbol for this asset (max 4 characters).
|
|
2829
|
+
*/
|
|
2830
|
+
symbol: string;
|
|
2831
|
+
/**
|
|
2832
|
+
* Denomination of this asset to represent fungibility.
|
|
2833
|
+
*/
|
|
2834
|
+
denomination: number;
|
|
2835
|
+
/**
|
|
2836
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2837
|
+
*/
|
|
2838
|
+
type: string;
|
|
2839
|
+
/**
|
|
2840
|
+
* Amount of the asset.
|
|
2841
|
+
*/
|
|
2504
2842
|
amount: string;
|
|
2505
2843
|
};
|
|
2506
2844
|
|
|
2507
2845
|
type PChainSharedAsset = {
|
|
2846
|
+
/**
|
|
2847
|
+
* Unique ID for an asset.
|
|
2848
|
+
*/
|
|
2508
2849
|
assetId: string;
|
|
2850
|
+
/**
|
|
2851
|
+
* Name of this asset.
|
|
2852
|
+
*/
|
|
2853
|
+
name: string;
|
|
2854
|
+
/**
|
|
2855
|
+
* Symbol for this asset (max 4 characters).
|
|
2856
|
+
*/
|
|
2857
|
+
symbol: string;
|
|
2858
|
+
/**
|
|
2859
|
+
* Denomination of this asset to represent fungibility.
|
|
2860
|
+
*/
|
|
2861
|
+
denomination: number;
|
|
2862
|
+
/**
|
|
2863
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2864
|
+
*/
|
|
2865
|
+
type: string;
|
|
2866
|
+
/**
|
|
2867
|
+
* Amount of the asset.
|
|
2868
|
+
*/
|
|
2509
2869
|
amount: string;
|
|
2510
2870
|
sharedWithChainId: string;
|
|
2511
2871
|
status: string;
|
|
@@ -2515,27 +2875,27 @@ type PChainBalance = {
|
|
|
2515
2875
|
/**
|
|
2516
2876
|
* 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.
|
|
2517
2877
|
*/
|
|
2518
|
-
unlockedUnstaked: Array<
|
|
2878
|
+
unlockedUnstaked: Array<Asset>;
|
|
2519
2879
|
/**
|
|
2520
2880
|
* 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.
|
|
2521
2881
|
*/
|
|
2522
|
-
unlockedStaked: Array<
|
|
2882
|
+
unlockedStaked: Array<Asset>;
|
|
2523
2883
|
/**
|
|
2524
2884
|
* 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.
|
|
2525
2885
|
*/
|
|
2526
|
-
lockedPlatform: Array<
|
|
2886
|
+
lockedPlatform: Array<Asset>;
|
|
2527
2887
|
/**
|
|
2528
2888
|
* 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.
|
|
2529
2889
|
*/
|
|
2530
|
-
lockedStakeable: Array<
|
|
2890
|
+
lockedStakeable: Array<Asset>;
|
|
2531
2891
|
/**
|
|
2532
2892
|
* 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.
|
|
2533
2893
|
*/
|
|
2534
|
-
lockedStaked: Array<
|
|
2894
|
+
lockedStaked: Array<Asset>;
|
|
2535
2895
|
/**
|
|
2536
2896
|
* 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.
|
|
2537
2897
|
*/
|
|
2538
|
-
pendingStaked: Array<
|
|
2898
|
+
pendingStaked: Array<Asset>;
|
|
2539
2899
|
/**
|
|
2540
2900
|
* 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.
|
|
2541
2901
|
*/
|
|
@@ -2674,6 +3034,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2674
3034
|
txCount: number;
|
|
2675
3035
|
transactions: Array<string>;
|
|
2676
3036
|
blockSizeBytes: number;
|
|
3037
|
+
currentSupply?: string;
|
|
2677
3038
|
proposerDetails?: ProposerDetails;
|
|
2678
3039
|
};
|
|
2679
3040
|
|
|
@@ -2686,6 +3047,7 @@ type PrimaryNetworkBlock = {
|
|
|
2686
3047
|
txCount: number;
|
|
2687
3048
|
transactions: Array<string>;
|
|
2688
3049
|
blockSizeBytes: number;
|
|
3050
|
+
currentSupply?: string;
|
|
2689
3051
|
proposerDetails?: ProposerDetails;
|
|
2690
3052
|
};
|
|
2691
3053
|
|
|
@@ -2797,7 +3159,7 @@ type HistoricalReward = {
|
|
|
2797
3159
|
/**
|
|
2798
3160
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2799
3161
|
*/
|
|
2800
|
-
reward:
|
|
3162
|
+
reward: Asset;
|
|
2801
3163
|
rewardTxHash: string;
|
|
2802
3164
|
};
|
|
2803
3165
|
|
|
@@ -2824,7 +3186,7 @@ type PendingReward = {
|
|
|
2824
3186
|
/**
|
|
2825
3187
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2826
3188
|
*/
|
|
2827
|
-
estimatedReward:
|
|
3189
|
+
estimatedReward: Asset;
|
|
2828
3190
|
};
|
|
2829
3191
|
|
|
2830
3192
|
type ListPendingRewardsResponse = {
|
|
@@ -2904,40 +3266,13 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2904
3266
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
2905
3267
|
}
|
|
2906
3268
|
|
|
2907
|
-
type Asset = {
|
|
2908
|
-
/**
|
|
2909
|
-
* Unique ID for an asset.
|
|
2910
|
-
*/
|
|
2911
|
-
assetId: string;
|
|
2912
|
-
/**
|
|
2913
|
-
* Name of this asset.
|
|
2914
|
-
*/
|
|
2915
|
-
name: string;
|
|
2916
|
-
/**
|
|
2917
|
-
* Symbol for this asset (max 4 characters).
|
|
2918
|
-
*/
|
|
2919
|
-
symbol: string;
|
|
2920
|
-
/**
|
|
2921
|
-
* Denomination of this asset to represent fungibility.
|
|
2922
|
-
*/
|
|
2923
|
-
denomination: number;
|
|
2924
|
-
/**
|
|
2925
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2926
|
-
*/
|
|
2927
|
-
type: string;
|
|
2928
|
-
/**
|
|
2929
|
-
* Amount of the asset.
|
|
2930
|
-
*/
|
|
2931
|
-
amount: string;
|
|
2932
|
-
};
|
|
2933
|
-
|
|
2934
3269
|
type UtxoCredential = {
|
|
2935
3270
|
/**
|
|
2936
|
-
* Signature provided to consume the output
|
|
3271
|
+
* Signature provided to consume the output.
|
|
2937
3272
|
*/
|
|
2938
3273
|
signature?: string;
|
|
2939
3274
|
/**
|
|
2940
|
-
* Public key associated with the signature
|
|
3275
|
+
* Public key associated with the signature.
|
|
2941
3276
|
*/
|
|
2942
3277
|
publicKey?: string;
|
|
2943
3278
|
};
|
|
@@ -2959,66 +3294,66 @@ type EVMInput = {
|
|
|
2959
3294
|
|
|
2960
3295
|
type Utxo = {
|
|
2961
3296
|
/**
|
|
2962
|
-
*
|
|
3297
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
2963
3298
|
*/
|
|
2964
|
-
|
|
3299
|
+
addresses: Array<string>;
|
|
2965
3300
|
asset: Asset;
|
|
2966
3301
|
/**
|
|
2967
|
-
*
|
|
3302
|
+
* Blockchain ID on which this output is consumed on.
|
|
2968
3303
|
*/
|
|
2969
|
-
|
|
3304
|
+
consumedOnChainId: string;
|
|
2970
3305
|
/**
|
|
2971
|
-
*
|
|
3306
|
+
* Transaction ID that consumed this output.
|
|
2972
3307
|
*/
|
|
2973
|
-
|
|
3308
|
+
consumingTxHash?: string;
|
|
2974
3309
|
/**
|
|
2975
|
-
* Blockchain ID on which this output is
|
|
3310
|
+
* Blockchain ID on which this output is created on.
|
|
2976
3311
|
*/
|
|
2977
|
-
|
|
3312
|
+
createdOnChainId: string;
|
|
2978
3313
|
/**
|
|
2979
|
-
*
|
|
3314
|
+
* UTXO ID for this output.
|
|
2980
3315
|
*/
|
|
2981
|
-
|
|
3316
|
+
utxoId: string;
|
|
2982
3317
|
/**
|
|
2983
|
-
*
|
|
3318
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
2984
3319
|
*/
|
|
2985
|
-
|
|
3320
|
+
consumingTxTimestamp?: number;
|
|
2986
3321
|
/**
|
|
2987
|
-
*
|
|
3322
|
+
* Transaction ID that created this output.
|
|
2988
3323
|
*/
|
|
2989
|
-
|
|
3324
|
+
creationTxHash: string;
|
|
2990
3325
|
/**
|
|
2991
|
-
*
|
|
3326
|
+
* Credentials that signed the transaction to consume this utxo
|
|
2992
3327
|
*/
|
|
2993
|
-
|
|
3328
|
+
credentials?: Array<UtxoCredential>;
|
|
2994
3329
|
/**
|
|
2995
|
-
*
|
|
3330
|
+
* Index representing the minting set for the NFT mint output.
|
|
2996
3331
|
*/
|
|
2997
|
-
|
|
3332
|
+
groupId?: number;
|
|
2998
3333
|
/**
|
|
2999
3334
|
* Locktime in seconds after which this output can be consumed.
|
|
3000
3335
|
*/
|
|
3001
3336
|
locktime: number;
|
|
3002
3337
|
/**
|
|
3003
|
-
*
|
|
3338
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
3004
3339
|
*/
|
|
3005
|
-
|
|
3340
|
+
outputIndex: string;
|
|
3006
3341
|
/**
|
|
3007
|
-
*
|
|
3342
|
+
* Hex encoded data for NFT assets.
|
|
3008
3343
|
*/
|
|
3009
|
-
|
|
3344
|
+
payload?: string;
|
|
3010
3345
|
/**
|
|
3011
|
-
*
|
|
3346
|
+
* Minimum number of signatures required to consume this output.
|
|
3012
3347
|
*/
|
|
3013
|
-
|
|
3348
|
+
threshold: number;
|
|
3014
3349
|
/**
|
|
3015
|
-
*
|
|
3350
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
3016
3351
|
*/
|
|
3017
|
-
|
|
3352
|
+
timestamp: number;
|
|
3018
3353
|
/**
|
|
3019
|
-
*
|
|
3354
|
+
* Type of output.
|
|
3020
3355
|
*/
|
|
3021
|
-
|
|
3356
|
+
utxoType: string;
|
|
3022
3357
|
};
|
|
3023
3358
|
|
|
3024
3359
|
type CChainExportTransaction = {
|
|
@@ -3149,17 +3484,18 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3149
3484
|
|
|
3150
3485
|
declare enum PChainTransactionType {
|
|
3151
3486
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3152
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3153
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3154
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3155
3487
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3156
|
-
|
|
3157
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3488
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3158
3489
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3159
3490
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3160
3491
|
IMPORT_TX = "ImportTx",
|
|
3161
3492
|
EXPORT_TX = "ExportTx",
|
|
3162
3493
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3494
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3495
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3496
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3497
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3498
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3163
3499
|
UNKNOWN = "UNKNOWN"
|
|
3164
3500
|
}
|
|
3165
3501
|
|
|
@@ -3170,29 +3506,48 @@ declare enum UtxoType {
|
|
|
3170
3506
|
|
|
3171
3507
|
type PChainUtxo = {
|
|
3172
3508
|
/**
|
|
3173
|
-
*
|
|
3509
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3174
3510
|
*/
|
|
3175
3511
|
addresses: Array<string>;
|
|
3512
|
+
asset: Asset;
|
|
3513
|
+
/**
|
|
3514
|
+
* Blockchain ID on which this output is consumed on.
|
|
3515
|
+
*/
|
|
3516
|
+
consumedOnChainId: string;
|
|
3517
|
+
/**
|
|
3518
|
+
* Transaction ID that consumed this output.
|
|
3519
|
+
*/
|
|
3520
|
+
consumingTxHash?: string;
|
|
3521
|
+
/**
|
|
3522
|
+
* Blockchain ID on which this output is created on.
|
|
3523
|
+
*/
|
|
3524
|
+
createdOnChainId: string;
|
|
3525
|
+
/**
|
|
3526
|
+
* UTXO ID for this output.
|
|
3527
|
+
*/
|
|
3176
3528
|
utxoId: string;
|
|
3177
|
-
|
|
3178
|
-
|
|
3529
|
+
/**
|
|
3530
|
+
* @deprecated
|
|
3531
|
+
*/
|
|
3532
|
+
amount: string;
|
|
3533
|
+
/**
|
|
3534
|
+
* @deprecated
|
|
3535
|
+
*/
|
|
3536
|
+
assetId: string;
|
|
3179
3537
|
blockNumber: string;
|
|
3180
3538
|
blockTimestamp: number;
|
|
3181
|
-
consumingTxHash?: string;
|
|
3182
|
-
consumingBlockTimestamp?: number;
|
|
3183
3539
|
consumingBlockNumber?: string;
|
|
3184
|
-
|
|
3185
|
-
utxoType: UtxoType;
|
|
3186
|
-
amount: string;
|
|
3187
|
-
stakeableLocktime?: number;
|
|
3540
|
+
consumingBlockTimestamp?: number;
|
|
3188
3541
|
platformLocktime?: number;
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3542
|
+
outputIndex: number;
|
|
3543
|
+
rewardType?: RewardType;
|
|
3544
|
+
stakeableLocktime?: number;
|
|
3192
3545
|
staked?: boolean;
|
|
3193
|
-
|
|
3546
|
+
threshold?: number;
|
|
3547
|
+
txHash: string;
|
|
3194
3548
|
utxoEndTimestamp?: number;
|
|
3195
|
-
|
|
3549
|
+
utxoStartTimestamp?: number;
|
|
3550
|
+
utxoType: UtxoType;
|
|
3196
3551
|
};
|
|
3197
3552
|
|
|
3198
3553
|
type PChainTransaction = {
|
|
@@ -3220,15 +3575,15 @@ type PChainTransaction = {
|
|
|
3220
3575
|
/**
|
|
3221
3576
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3222
3577
|
*/
|
|
3223
|
-
value: Array<
|
|
3578
|
+
value: Array<Asset>;
|
|
3224
3579
|
/**
|
|
3225
3580
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3226
3581
|
*/
|
|
3227
|
-
amountBurned: Array<
|
|
3582
|
+
amountBurned: Array<Asset>;
|
|
3228
3583
|
/**
|
|
3229
3584
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3230
3585
|
*/
|
|
3231
|
-
amountStaked: Array<
|
|
3586
|
+
amountStaked: Array<Asset>;
|
|
3232
3587
|
/**
|
|
3233
3588
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3234
3589
|
*/
|
|
@@ -3271,6 +3626,15 @@ type ListPChainTransactionsResponse = {
|
|
|
3271
3626
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3272
3627
|
};
|
|
3273
3628
|
|
|
3629
|
+
declare enum XChainTransactionType {
|
|
3630
|
+
BASE_TX = "BaseTx",
|
|
3631
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3632
|
+
OPERATION_TX = "OperationTx",
|
|
3633
|
+
IMPORT_TX = "ImportTx",
|
|
3634
|
+
EXPORT_TX = "ExportTx",
|
|
3635
|
+
UNKNOWN = "UNKNOWN"
|
|
3636
|
+
}
|
|
3637
|
+
|
|
3274
3638
|
type XChainLinearTransaction = {
|
|
3275
3639
|
/**
|
|
3276
3640
|
* Unique ID for this transaction.
|
|
@@ -3287,7 +3651,7 @@ type XChainLinearTransaction = {
|
|
|
3287
3651
|
/**
|
|
3288
3652
|
* Type of transaction.
|
|
3289
3653
|
*/
|
|
3290
|
-
txType:
|
|
3654
|
+
txType: XChainTransactionType;
|
|
3291
3655
|
/**
|
|
3292
3656
|
* Hex encoded memo bytes for this transaction.
|
|
3293
3657
|
*/
|
|
@@ -3364,7 +3728,7 @@ type XChainNonLinearTransaction = {
|
|
|
3364
3728
|
/**
|
|
3365
3729
|
* Type of transaction.
|
|
3366
3730
|
*/
|
|
3367
|
-
txType:
|
|
3731
|
+
txType: XChainTransactionType;
|
|
3368
3732
|
/**
|
|
3369
3733
|
* Hex encoded memo bytes for this transaction.
|
|
3370
3734
|
*/
|
|
@@ -3422,17 +3786,18 @@ declare enum PChainId {
|
|
|
3422
3786
|
|
|
3423
3787
|
declare enum PrimaryNetworkTxType {
|
|
3424
3788
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3425
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3426
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3427
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3428
3789
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3429
|
-
|
|
3430
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3790
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3431
3791
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3432
3792
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3433
3793
|
IMPORT_TX = "ImportTx",
|
|
3434
3794
|
EXPORT_TX = "ExportTx",
|
|
3435
3795
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3796
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3797
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3798
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3799
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3800
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3436
3801
|
UNKNOWN = "UNKNOWN",
|
|
3437
3802
|
BASE_TX = "BaseTx",
|
|
3438
3803
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3762,6 +4127,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3762
4127
|
|
|
3763
4128
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3764
4129
|
declare class Glacier {
|
|
4130
|
+
readonly default: DefaultService;
|
|
3765
4131
|
readonly evmBalances: EvmBalancesService;
|
|
3766
4132
|
readonly evmBlocks: EvmBlocksService;
|
|
3767
4133
|
readonly evmChains: EvmChainsService;
|
|
@@ -3798,4 +4164,4 @@ declare class ApiError extends Error {
|
|
|
3798
4164
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3799
4165
|
}
|
|
3800
4166
|
|
|
3801
|
-
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,
|
|
4167
|
+
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, 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, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, 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 };
|