@avalabs/glacier-sdk 2.8.0-canary.2de3663.0 → 2.8.0-canary.430ff95.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 +423 -60
- package/dist/index.js +179 -28
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.js +3 -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 +9 -0
- package/esm/generated/models/ChainInfo.d.ts +1 -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/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- package/esm/generated/models/PChainTransaction.d.ts +1 -0
- package/esm/generated/models/PChainTransactionType.d.ts +1 -0
- package/esm/generated/models/PChainTransactionType.js +1 -0
- package/esm/generated/models/PendingDelegatorDetails.d.ts +1 -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 +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -0
- package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -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/UpdateContractResponse.d.ts +10 -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 +59 -0
- package/esm/generated/services/DefaultService.js +49 -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 -20
- package/esm/generated/services/EvmTransactionsService.js +1 -14
- 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 +10 -2
- package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +32 -8
- package/esm/generated/services/PrimaryNetworkService.js +16 -4
- package/esm/index.d.ts +17 -0
- package/esm/index.js +9 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,107 @@ 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
|
+
declare enum WebhookStatus {
|
|
109
|
+
ACTIVE = "active",
|
|
110
|
+
INACTIVE = "inactive"
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
declare class DefaultService {
|
|
114
|
+
readonly httpRequest: BaseHttpRequest;
|
|
115
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
116
|
+
/**
|
|
117
|
+
* @returns any
|
|
118
|
+
* @throws ApiError
|
|
119
|
+
*/
|
|
120
|
+
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
121
|
+
/**
|
|
122
|
+
* Register a webhook
|
|
123
|
+
* Registers a new webhook.
|
|
124
|
+
* @returns WebhookResponse
|
|
125
|
+
* @throws ApiError
|
|
126
|
+
*/
|
|
127
|
+
registerWebhook({ requestBody, }: {
|
|
128
|
+
requestBody: RegisterWebhookRequest;
|
|
129
|
+
}): CancelablePromise<WebhookResponse>;
|
|
130
|
+
/**
|
|
131
|
+
* List webhooks
|
|
132
|
+
* Lists webhooks for the user.
|
|
133
|
+
* @returns ListWebhooksResponse
|
|
134
|
+
* @throws ApiError
|
|
135
|
+
*/
|
|
136
|
+
listWebhooks({ pageSize, pageToken, status, }: {
|
|
137
|
+
/**
|
|
138
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
139
|
+
*/
|
|
140
|
+
pageSize?: number;
|
|
141
|
+
/**
|
|
142
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
143
|
+
*/
|
|
144
|
+
pageToken?: string;
|
|
145
|
+
/**
|
|
146
|
+
* 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.
|
|
147
|
+
*/
|
|
148
|
+
status?: WebhookStatus;
|
|
149
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
150
|
+
/**
|
|
151
|
+
* Deactivate a webhook
|
|
152
|
+
* Deactivates a webhook by ID.
|
|
153
|
+
* @returns WebhookResponse
|
|
154
|
+
* @throws ApiError
|
|
155
|
+
*/
|
|
156
|
+
deactivateWebhook({ id, }: {
|
|
157
|
+
/**
|
|
158
|
+
* The webhook identifier.
|
|
159
|
+
*/
|
|
160
|
+
id: string;
|
|
161
|
+
}): CancelablePromise<WebhookResponse>;
|
|
162
|
+
}
|
|
163
|
+
|
|
63
164
|
declare enum CurrencyCode {
|
|
64
165
|
USD = "usd",
|
|
65
166
|
EUR = "eur",
|
|
@@ -680,6 +781,7 @@ type GetChainResponse = {
|
|
|
680
781
|
utilityAddresses?: UtilityAddresses;
|
|
681
782
|
networkToken: NetworkToken;
|
|
682
783
|
chainLogoUri?: string;
|
|
784
|
+
private?: boolean;
|
|
683
785
|
};
|
|
684
786
|
|
|
685
787
|
type ChainInfo = {
|
|
@@ -701,6 +803,7 @@ type ChainInfo = {
|
|
|
701
803
|
utilityAddresses?: UtilityAddresses;
|
|
702
804
|
networkToken: NetworkToken;
|
|
703
805
|
chainLogoUri?: string;
|
|
806
|
+
private?: boolean;
|
|
704
807
|
};
|
|
705
808
|
|
|
706
809
|
type ListChainsResponse = {
|
|
@@ -741,18 +844,6 @@ declare class EvmChainsService {
|
|
|
741
844
|
}): CancelablePromise<GetChainResponse>;
|
|
742
845
|
}
|
|
743
846
|
|
|
744
|
-
type ContractDeploymentDetails = {
|
|
745
|
-
txHash: string;
|
|
746
|
-
/**
|
|
747
|
-
* The address that initiated the transaction which deployed this contract.
|
|
748
|
-
*/
|
|
749
|
-
deployerAddress: string;
|
|
750
|
-
/**
|
|
751
|
-
* 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.
|
|
752
|
-
*/
|
|
753
|
-
deployerContractAddress?: string;
|
|
754
|
-
};
|
|
755
|
-
|
|
756
847
|
type ImageAsset = {
|
|
757
848
|
assetId?: string;
|
|
758
849
|
/**
|
|
@@ -791,6 +882,120 @@ type ResourceLink = {
|
|
|
791
882
|
url: string;
|
|
792
883
|
};
|
|
793
884
|
|
|
885
|
+
type ContractSubmissionErc1155 = {
|
|
886
|
+
description?: string;
|
|
887
|
+
officialSite?: string;
|
|
888
|
+
email?: string;
|
|
889
|
+
logoAsset?: ImageAsset;
|
|
890
|
+
bannerAsset?: ImageAsset;
|
|
891
|
+
color?: string;
|
|
892
|
+
resourceLinks?: Array<ResourceLink>;
|
|
893
|
+
tags?: Array<string>;
|
|
894
|
+
/**
|
|
895
|
+
* The contract name.
|
|
896
|
+
*/
|
|
897
|
+
name: string;
|
|
898
|
+
ercType: ContractSubmissionErc1155.ercType;
|
|
899
|
+
/**
|
|
900
|
+
* The contract symbol.
|
|
901
|
+
*/
|
|
902
|
+
symbol: string;
|
|
903
|
+
pricingProviders?: PricingProviders;
|
|
904
|
+
};
|
|
905
|
+
declare namespace ContractSubmissionErc1155 {
|
|
906
|
+
enum ercType {
|
|
907
|
+
ERC_1155 = "ERC-1155"
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
type ContractSubmissionErc20 = {
|
|
912
|
+
description?: string;
|
|
913
|
+
officialSite?: string;
|
|
914
|
+
email?: string;
|
|
915
|
+
logoAsset?: ImageAsset;
|
|
916
|
+
bannerAsset?: ImageAsset;
|
|
917
|
+
color?: string;
|
|
918
|
+
resourceLinks?: Array<ResourceLink>;
|
|
919
|
+
tags?: Array<string>;
|
|
920
|
+
/**
|
|
921
|
+
* The contract name.
|
|
922
|
+
*/
|
|
923
|
+
name: string;
|
|
924
|
+
ercType: ContractSubmissionErc20.ercType;
|
|
925
|
+
/**
|
|
926
|
+
* The contract symbol.
|
|
927
|
+
*/
|
|
928
|
+
symbol: string;
|
|
929
|
+
pricingProviders?: PricingProviders;
|
|
930
|
+
};
|
|
931
|
+
declare namespace ContractSubmissionErc20 {
|
|
932
|
+
enum ercType {
|
|
933
|
+
ERC_20 = "ERC-20"
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
type ContractSubmissionErc721 = {
|
|
938
|
+
description?: string;
|
|
939
|
+
officialSite?: string;
|
|
940
|
+
email?: string;
|
|
941
|
+
logoAsset?: ImageAsset;
|
|
942
|
+
bannerAsset?: ImageAsset;
|
|
943
|
+
color?: string;
|
|
944
|
+
resourceLinks?: Array<ResourceLink>;
|
|
945
|
+
tags?: Array<string>;
|
|
946
|
+
/**
|
|
947
|
+
* The contract name.
|
|
948
|
+
*/
|
|
949
|
+
name: string;
|
|
950
|
+
ercType: ContractSubmissionErc721.ercType;
|
|
951
|
+
/**
|
|
952
|
+
* The contract symbol.
|
|
953
|
+
*/
|
|
954
|
+
symbol: string;
|
|
955
|
+
};
|
|
956
|
+
declare namespace ContractSubmissionErc721 {
|
|
957
|
+
enum ercType {
|
|
958
|
+
ERC_721 = "ERC-721"
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
type ContractSubmissionUnknown = {
|
|
963
|
+
description?: string;
|
|
964
|
+
officialSite?: string;
|
|
965
|
+
email?: string;
|
|
966
|
+
logoAsset?: ImageAsset;
|
|
967
|
+
bannerAsset?: ImageAsset;
|
|
968
|
+
color?: string;
|
|
969
|
+
resourceLinks?: Array<ResourceLink>;
|
|
970
|
+
tags?: Array<string>;
|
|
971
|
+
/**
|
|
972
|
+
* The contract name.
|
|
973
|
+
*/
|
|
974
|
+
name: string;
|
|
975
|
+
ercType: ContractSubmissionUnknown.ercType;
|
|
976
|
+
};
|
|
977
|
+
declare namespace ContractSubmissionUnknown {
|
|
978
|
+
enum ercType {
|
|
979
|
+
UNKNOWN = "UNKNOWN"
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
type ContractSubmissionBody = {
|
|
984
|
+
contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
|
|
985
|
+
};
|
|
986
|
+
|
|
987
|
+
type ContractDeploymentDetails = {
|
|
988
|
+
txHash: string;
|
|
989
|
+
/**
|
|
990
|
+
* The address that initiated the transaction which deployed this contract.
|
|
991
|
+
*/
|
|
992
|
+
deployerAddress: string;
|
|
993
|
+
/**
|
|
994
|
+
* 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.
|
|
995
|
+
*/
|
|
996
|
+
deployerContractAddress?: string;
|
|
997
|
+
};
|
|
998
|
+
|
|
794
999
|
type Erc1155Contract = {
|
|
795
1000
|
/**
|
|
796
1001
|
* The contract name.
|
|
@@ -913,6 +1118,10 @@ declare namespace UnknownContract {
|
|
|
913
1118
|
}
|
|
914
1119
|
}
|
|
915
1120
|
|
|
1121
|
+
type UpdateContractResponse = {
|
|
1122
|
+
contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
|
|
1123
|
+
};
|
|
1124
|
+
|
|
916
1125
|
declare class EvmContractsService {
|
|
917
1126
|
readonly httpRequest: BaseHttpRequest;
|
|
918
1127
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -932,6 +1141,23 @@ declare class EvmContractsService {
|
|
|
932
1141
|
*/
|
|
933
1142
|
address: string;
|
|
934
1143
|
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1144
|
+
/**
|
|
1145
|
+
* Update contract information
|
|
1146
|
+
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1147
|
+
* @returns UpdateContractResponse
|
|
1148
|
+
* @throws ApiError
|
|
1149
|
+
*/
|
|
1150
|
+
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1151
|
+
/**
|
|
1152
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1153
|
+
*/
|
|
1154
|
+
chainId: string;
|
|
1155
|
+
/**
|
|
1156
|
+
* Contract address on the relevant chain.
|
|
1157
|
+
*/
|
|
1158
|
+
address: string;
|
|
1159
|
+
requestBody: ContractSubmissionBody;
|
|
1160
|
+
}): CancelablePromise<UpdateContractResponse>;
|
|
935
1161
|
}
|
|
936
1162
|
|
|
937
1163
|
type Erc1155Token = {
|
|
@@ -1487,22 +1713,6 @@ declare class EvmTransactionsService {
|
|
|
1487
1713
|
*/
|
|
1488
1714
|
pageToken?: string;
|
|
1489
1715
|
}): CancelablePromise<ListContractsResponse>;
|
|
1490
|
-
/**
|
|
1491
|
-
* Get contract metadata
|
|
1492
|
-
* Gets metadata about the contract at the given address.
|
|
1493
|
-
* @returns any
|
|
1494
|
-
* @throws ApiError
|
|
1495
|
-
*/
|
|
1496
|
-
getContractMetadata({ chainId, address, }: {
|
|
1497
|
-
/**
|
|
1498
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1499
|
-
*/
|
|
1500
|
-
chainId: string;
|
|
1501
|
-
/**
|
|
1502
|
-
* Contract address on the relevant chain.
|
|
1503
|
-
*/
|
|
1504
|
-
address: string;
|
|
1505
|
-
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1506
1716
|
/**
|
|
1507
1717
|
* List ERC transfers
|
|
1508
1718
|
* Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
|
|
@@ -1518,7 +1728,13 @@ declare class EvmTransactionsService {
|
|
|
1518
1728
|
* A wallet address.
|
|
1519
1729
|
*/
|
|
1520
1730
|
address: string;
|
|
1731
|
+
/**
|
|
1732
|
+
* 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.
|
|
1733
|
+
*/
|
|
1521
1734
|
startBlock?: number;
|
|
1735
|
+
/**
|
|
1736
|
+
* 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.
|
|
1737
|
+
*/
|
|
1522
1738
|
endBlock?: number;
|
|
1523
1739
|
/**
|
|
1524
1740
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1554,7 +1770,13 @@ declare class EvmTransactionsService {
|
|
|
1554
1770
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1555
1771
|
*/
|
|
1556
1772
|
pageToken?: string;
|
|
1773
|
+
/**
|
|
1774
|
+
* 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.
|
|
1775
|
+
*/
|
|
1557
1776
|
startBlock?: number;
|
|
1777
|
+
/**
|
|
1778
|
+
* 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.
|
|
1779
|
+
*/
|
|
1558
1780
|
endBlock?: number;
|
|
1559
1781
|
/**
|
|
1560
1782
|
* 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.
|
|
@@ -1576,7 +1798,13 @@ declare class EvmTransactionsService {
|
|
|
1576
1798
|
* A wallet address.
|
|
1577
1799
|
*/
|
|
1578
1800
|
address: string;
|
|
1801
|
+
/**
|
|
1802
|
+
* 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.
|
|
1803
|
+
*/
|
|
1579
1804
|
startBlock?: number;
|
|
1805
|
+
/**
|
|
1806
|
+
* 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.
|
|
1807
|
+
*/
|
|
1580
1808
|
endBlock?: number;
|
|
1581
1809
|
/**
|
|
1582
1810
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1602,7 +1830,13 @@ declare class EvmTransactionsService {
|
|
|
1602
1830
|
* A wallet address.
|
|
1603
1831
|
*/
|
|
1604
1832
|
address: string;
|
|
1833
|
+
/**
|
|
1834
|
+
* 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.
|
|
1835
|
+
*/
|
|
1605
1836
|
startBlock?: number;
|
|
1837
|
+
/**
|
|
1838
|
+
* 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.
|
|
1839
|
+
*/
|
|
1606
1840
|
endBlock?: number;
|
|
1607
1841
|
/**
|
|
1608
1842
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1628,7 +1862,13 @@ declare class EvmTransactionsService {
|
|
|
1628
1862
|
* A wallet address.
|
|
1629
1863
|
*/
|
|
1630
1864
|
address: string;
|
|
1865
|
+
/**
|
|
1866
|
+
* 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.
|
|
1867
|
+
*/
|
|
1631
1868
|
startBlock?: number;
|
|
1869
|
+
/**
|
|
1870
|
+
* 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.
|
|
1871
|
+
*/
|
|
1632
1872
|
endBlock?: number;
|
|
1633
1873
|
/**
|
|
1634
1874
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1654,7 +1894,13 @@ declare class EvmTransactionsService {
|
|
|
1654
1894
|
* A wallet address.
|
|
1655
1895
|
*/
|
|
1656
1896
|
address: string;
|
|
1897
|
+
/**
|
|
1898
|
+
* 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.
|
|
1899
|
+
*/
|
|
1657
1900
|
startBlock?: number;
|
|
1901
|
+
/**
|
|
1902
|
+
* 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.
|
|
1903
|
+
*/
|
|
1658
1904
|
endBlock?: number;
|
|
1659
1905
|
/**
|
|
1660
1906
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1682,7 +1928,13 @@ declare class EvmTransactionsService {
|
|
|
1682
1928
|
* A wallet address.
|
|
1683
1929
|
*/
|
|
1684
1930
|
address: string;
|
|
1931
|
+
/**
|
|
1932
|
+
* 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.
|
|
1933
|
+
*/
|
|
1685
1934
|
startBlock?: number;
|
|
1935
|
+
/**
|
|
1936
|
+
* 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.
|
|
1937
|
+
*/
|
|
1686
1938
|
endBlock?: number;
|
|
1687
1939
|
/**
|
|
1688
1940
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1767,6 +2019,14 @@ declare class HealthCheckService {
|
|
|
1767
2019
|
}>;
|
|
1768
2020
|
}
|
|
1769
2021
|
|
|
2022
|
+
type ListNftTokens = {
|
|
2023
|
+
/**
|
|
2024
|
+
* 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.
|
|
2025
|
+
*/
|
|
2026
|
+
nextPageToken?: string;
|
|
2027
|
+
tokens: (Array<Erc721Token> | Array<Erc1155Token>);
|
|
2028
|
+
};
|
|
2029
|
+
|
|
1770
2030
|
declare class NfTsService {
|
|
1771
2031
|
readonly httpRequest: BaseHttpRequest;
|
|
1772
2032
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -1790,6 +2050,30 @@ declare class NfTsService {
|
|
|
1790
2050
|
*/
|
|
1791
2051
|
tokenId: string;
|
|
1792
2052
|
}): CancelablePromise<any>;
|
|
2053
|
+
/**
|
|
2054
|
+
* List tokens
|
|
2055
|
+
* Lists tokens for an NFT contract.
|
|
2056
|
+
* @returns ListNftTokens
|
|
2057
|
+
* @throws ApiError
|
|
2058
|
+
*/
|
|
2059
|
+
listTokens({ chainId, address, pageSize, pageToken, }: {
|
|
2060
|
+
/**
|
|
2061
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2062
|
+
*/
|
|
2063
|
+
chainId: string;
|
|
2064
|
+
/**
|
|
2065
|
+
* Contract address on the relevant chain.
|
|
2066
|
+
*/
|
|
2067
|
+
address: string;
|
|
2068
|
+
/**
|
|
2069
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2070
|
+
*/
|
|
2071
|
+
pageSize?: number;
|
|
2072
|
+
/**
|
|
2073
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2074
|
+
*/
|
|
2075
|
+
pageToken?: string;
|
|
2076
|
+
}): CancelablePromise<ListNftTokens>;
|
|
1793
2077
|
/**
|
|
1794
2078
|
* Get token details
|
|
1795
2079
|
* Gets token details for a specific token of an NFT contract.
|
|
@@ -1906,17 +2190,6 @@ type OperationStatusResponse = {
|
|
|
1906
2190
|
declare class OperationsService {
|
|
1907
2191
|
readonly httpRequest: BaseHttpRequest;
|
|
1908
2192
|
constructor(httpRequest: BaseHttpRequest);
|
|
1909
|
-
/**
|
|
1910
|
-
* Create transaction export operation
|
|
1911
|
-
* Trigger a transaction export operation with given parameters.
|
|
1912
|
-
*
|
|
1913
|
-
* 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.
|
|
1914
|
-
* @returns OperationStatusResponse
|
|
1915
|
-
* @throws ApiError
|
|
1916
|
-
*/
|
|
1917
|
-
postTransactionExportJob({ requestBody, }: {
|
|
1918
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
1919
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
1920
2193
|
/**
|
|
1921
2194
|
* Get operation
|
|
1922
2195
|
* Gets operation details for the given operation id.
|
|
@@ -1929,6 +2202,17 @@ declare class OperationsService {
|
|
|
1929
2202
|
*/
|
|
1930
2203
|
operationId: string;
|
|
1931
2204
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2205
|
+
/**
|
|
2206
|
+
* Create transaction export operation
|
|
2207
|
+
* Trigger a transaction export operation with given parameters.
|
|
2208
|
+
*
|
|
2209
|
+
* 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.
|
|
2210
|
+
* @returns OperationStatusResponse
|
|
2211
|
+
* @throws ApiError
|
|
2212
|
+
*/
|
|
2213
|
+
postTransactionExportJob({ requestBody, }: {
|
|
2214
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2215
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
1932
2216
|
}
|
|
1933
2217
|
|
|
1934
2218
|
declare enum BlockchainIds {
|
|
@@ -1997,6 +2281,7 @@ type ListBlockchainsResponse = {
|
|
|
1997
2281
|
|
|
1998
2282
|
type ActiveDelegatorDetails = {
|
|
1999
2283
|
txHash: string;
|
|
2284
|
+
nodeId: string;
|
|
2000
2285
|
rewardAddresses: Array<string>;
|
|
2001
2286
|
amountDelegated: string;
|
|
2002
2287
|
delegationFee: string;
|
|
@@ -2014,6 +2299,7 @@ declare namespace ActiveDelegatorDetails {
|
|
|
2014
2299
|
|
|
2015
2300
|
type CompletedDelegatorDetails = {
|
|
2016
2301
|
txHash: string;
|
|
2302
|
+
nodeId: string;
|
|
2017
2303
|
rewardAddresses: Array<string>;
|
|
2018
2304
|
amountDelegated: string;
|
|
2019
2305
|
delegationFee: string;
|
|
@@ -2031,6 +2317,7 @@ declare namespace CompletedDelegatorDetails {
|
|
|
2031
2317
|
|
|
2032
2318
|
type PendingDelegatorDetails = {
|
|
2033
2319
|
txHash: string;
|
|
2320
|
+
nodeId: string;
|
|
2034
2321
|
rewardAddresses: Array<string>;
|
|
2035
2322
|
amountDelegated: string;
|
|
2036
2323
|
delegationFee: string;
|
|
@@ -2082,22 +2369,46 @@ type ListSubnetsResponse = {
|
|
|
2082
2369
|
type Rewards = {
|
|
2083
2370
|
validationRewardAmount: string;
|
|
2084
2371
|
delegationRewardAmount: string;
|
|
2372
|
+
rewardAddresses?: Array<string>;
|
|
2373
|
+
rewardTxHash?: string;
|
|
2374
|
+
};
|
|
2375
|
+
|
|
2376
|
+
type ValidatorHealthDetails = {
|
|
2377
|
+
/**
|
|
2378
|
+
* Percent of requests responded to in last polling.
|
|
2379
|
+
*/
|
|
2380
|
+
reachabilityPercent: number;
|
|
2381
|
+
/**
|
|
2382
|
+
* Percent of requests benched on the P-Chain in last polling.
|
|
2383
|
+
*/
|
|
2384
|
+
benchedPChainRequestsPercent: number;
|
|
2385
|
+
/**
|
|
2386
|
+
* Percentage of requests benched on the X-Chain in last polling.
|
|
2387
|
+
*/
|
|
2388
|
+
benchedXChainRequestsPercent: number;
|
|
2389
|
+
/**
|
|
2390
|
+
* Percentage of requests benched on the C-Chain in last polling.
|
|
2391
|
+
*/
|
|
2392
|
+
benchedCChainRequestsPercent: number;
|
|
2085
2393
|
};
|
|
2086
2394
|
|
|
2087
2395
|
type ActiveValidatorDetails = {
|
|
2396
|
+
txHash: string;
|
|
2088
2397
|
nodeId: string;
|
|
2398
|
+
subnetId: string;
|
|
2089
2399
|
amountStaked: string;
|
|
2090
|
-
delegationFee
|
|
2400
|
+
delegationFee?: string;
|
|
2091
2401
|
startTimestamp: number;
|
|
2092
2402
|
endTimestamp: number;
|
|
2093
2403
|
stakePercentage: number;
|
|
2094
2404
|
delegatorCount: number;
|
|
2095
|
-
amountDelegated
|
|
2405
|
+
amountDelegated?: string;
|
|
2096
2406
|
uptimePerformance: number;
|
|
2097
|
-
avalancheGoVersion
|
|
2098
|
-
delegationCapacity
|
|
2407
|
+
avalancheGoVersion?: string;
|
|
2408
|
+
delegationCapacity?: string;
|
|
2099
2409
|
potentialRewards: Rewards;
|
|
2100
2410
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2411
|
+
validatorHealth: ValidatorHealthDetails;
|
|
2101
2412
|
};
|
|
2102
2413
|
declare namespace ActiveValidatorDetails {
|
|
2103
2414
|
enum validationStatus {
|
|
@@ -2106,9 +2417,11 @@ declare namespace ActiveValidatorDetails {
|
|
|
2106
2417
|
}
|
|
2107
2418
|
|
|
2108
2419
|
type CompletedValidatorDetails = {
|
|
2420
|
+
txHash: string;
|
|
2109
2421
|
nodeId: string;
|
|
2422
|
+
subnetId: string;
|
|
2110
2423
|
amountStaked: string;
|
|
2111
|
-
delegationFee
|
|
2424
|
+
delegationFee?: string;
|
|
2112
2425
|
startTimestamp: number;
|
|
2113
2426
|
endTimestamp: number;
|
|
2114
2427
|
delegatorCount: number;
|
|
@@ -2122,9 +2435,11 @@ declare namespace CompletedValidatorDetails {
|
|
|
2122
2435
|
}
|
|
2123
2436
|
|
|
2124
2437
|
type PendingValidatorDetails = {
|
|
2438
|
+
txHash: string;
|
|
2125
2439
|
nodeId: string;
|
|
2440
|
+
subnetId: string;
|
|
2126
2441
|
amountStaked: string;
|
|
2127
|
-
delegationFee
|
|
2442
|
+
delegationFee?: string;
|
|
2128
2443
|
startTimestamp: number;
|
|
2129
2444
|
endTimestamp: number;
|
|
2130
2445
|
validationStatus: PendingValidatorDetails.validationStatus;
|
|
@@ -2141,7 +2456,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2141
2456
|
*/
|
|
2142
2457
|
nextPageToken?: string;
|
|
2143
2458
|
/**
|
|
2144
|
-
* The list of
|
|
2459
|
+
* The list of validator Details.
|
|
2145
2460
|
*/
|
|
2146
2461
|
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2147
2462
|
};
|
|
@@ -2299,7 +2614,7 @@ declare class PrimaryNetworkService {
|
|
|
2299
2614
|
* @returns ListValidatorDetailsResponse
|
|
2300
2615
|
* @throws ApiError
|
|
2301
2616
|
*/
|
|
2302
|
-
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus,
|
|
2617
|
+
listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
|
|
2303
2618
|
/**
|
|
2304
2619
|
* Either mainnet or a testnet.
|
|
2305
2620
|
*/
|
|
@@ -2312,6 +2627,30 @@ declare class PrimaryNetworkService {
|
|
|
2312
2627
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2313
2628
|
*/
|
|
2314
2629
|
pageToken?: string;
|
|
2630
|
+
/**
|
|
2631
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2632
|
+
*/
|
|
2633
|
+
minTimeRemaining?: any;
|
|
2634
|
+
/**
|
|
2635
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2636
|
+
*/
|
|
2637
|
+
maxTimeRemaining?: any;
|
|
2638
|
+
/**
|
|
2639
|
+
* 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
|
|
2640
|
+
*/
|
|
2641
|
+
minDelegationCapacity?: number;
|
|
2642
|
+
/**
|
|
2643
|
+
* 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.
|
|
2644
|
+
*/
|
|
2645
|
+
maxDelegationCapacity?: number;
|
|
2646
|
+
/**
|
|
2647
|
+
* 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.
|
|
2648
|
+
*/
|
|
2649
|
+
minFeePercentage?: any;
|
|
2650
|
+
/**
|
|
2651
|
+
* 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.
|
|
2652
|
+
*/
|
|
2653
|
+
maxFeePercentage?: any;
|
|
2315
2654
|
/**
|
|
2316
2655
|
* A comma separated list of node ids to filter by.
|
|
2317
2656
|
*/
|
|
@@ -2325,9 +2664,9 @@ declare class PrimaryNetworkService {
|
|
|
2325
2664
|
*/
|
|
2326
2665
|
validationStatus?: ValidationStatusType;
|
|
2327
2666
|
/**
|
|
2328
|
-
* The
|
|
2667
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2329
2668
|
*/
|
|
2330
|
-
|
|
2669
|
+
subnetId?: string;
|
|
2331
2670
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2332
2671
|
/**
|
|
2333
2672
|
* Get single validator details
|
|
@@ -2367,7 +2706,7 @@ declare class PrimaryNetworkService {
|
|
|
2367
2706
|
* @returns ListDelegatorDetailsResponse
|
|
2368
2707
|
* @throws ApiError
|
|
2369
2708
|
*/
|
|
2370
|
-
listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus,
|
|
2709
|
+
listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2371
2710
|
/**
|
|
2372
2711
|
* Either mainnet or a testnet.
|
|
2373
2712
|
*/
|
|
@@ -2380,6 +2719,10 @@ declare class PrimaryNetworkService {
|
|
|
2380
2719
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2381
2720
|
*/
|
|
2382
2721
|
pageToken?: string;
|
|
2722
|
+
/**
|
|
2723
|
+
* A comma separated list of reward addresses to filter by.
|
|
2724
|
+
*/
|
|
2725
|
+
rewardAddresses?: string;
|
|
2383
2726
|
/**
|
|
2384
2727
|
* 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.
|
|
2385
2728
|
*/
|
|
@@ -2388,10 +2731,6 @@ declare class PrimaryNetworkService {
|
|
|
2388
2731
|
* Delegation status of the node.
|
|
2389
2732
|
*/
|
|
2390
2733
|
delegationStatus?: DelegationStatusType;
|
|
2391
|
-
/**
|
|
2392
|
-
* A comma separated list of reward addresses to filter by.
|
|
2393
|
-
*/
|
|
2394
|
-
rewardAddresses?: string;
|
|
2395
2734
|
/**
|
|
2396
2735
|
* A comma separated list of node ids to filter by.
|
|
2397
2736
|
*/
|
|
@@ -2640,6 +2979,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2640
2979
|
txCount: number;
|
|
2641
2980
|
transactions: Array<string>;
|
|
2642
2981
|
blockSizeBytes: number;
|
|
2982
|
+
currentSupply?: string;
|
|
2643
2983
|
proposerDetails?: ProposerDetails;
|
|
2644
2984
|
};
|
|
2645
2985
|
|
|
@@ -2652,6 +2992,7 @@ type PrimaryNetworkBlock = {
|
|
|
2652
2992
|
txCount: number;
|
|
2653
2993
|
transactions: Array<string>;
|
|
2654
2994
|
blockSizeBytes: number;
|
|
2995
|
+
currentSupply?: string;
|
|
2655
2996
|
proposerDetails?: ProposerDetails;
|
|
2656
2997
|
};
|
|
2657
2998
|
|
|
@@ -2743,7 +3084,8 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2743
3084
|
|
|
2744
3085
|
declare enum RewardType {
|
|
2745
3086
|
VALIDATOR = "VALIDATOR",
|
|
2746
|
-
DELEGATOR = "DELEGATOR"
|
|
3087
|
+
DELEGATOR = "DELEGATOR",
|
|
3088
|
+
VALIDATOR_FEE = "VALIDATOR_FEE"
|
|
2747
3089
|
}
|
|
2748
3090
|
|
|
2749
3091
|
type HistoricalReward = {
|
|
@@ -2809,7 +3151,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2809
3151
|
* @returns ListPendingRewardsResponse
|
|
2810
3152
|
* @throws ApiError
|
|
2811
3153
|
*/
|
|
2812
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
3154
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
2813
3155
|
/**
|
|
2814
3156
|
* Either mainnet or a testnet.
|
|
2815
3157
|
*/
|
|
@@ -2826,6 +3168,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2826
3168
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2827
3169
|
*/
|
|
2828
3170
|
pageToken?: string;
|
|
3171
|
+
/**
|
|
3172
|
+
* A comma separated list of node ids to filter by.
|
|
3173
|
+
*/
|
|
3174
|
+
nodeIds?: string;
|
|
2829
3175
|
/**
|
|
2830
3176
|
* 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.
|
|
2831
3177
|
*/
|
|
@@ -2837,7 +3183,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2837
3183
|
* @returns ListHistoricalRewardsResponse
|
|
2838
3184
|
* @throws ApiError
|
|
2839
3185
|
*/
|
|
2840
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
3186
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
2841
3187
|
/**
|
|
2842
3188
|
* Either mainnet or a testnet.
|
|
2843
3189
|
*/
|
|
@@ -2854,6 +3200,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2854
3200
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2855
3201
|
*/
|
|
2856
3202
|
pageToken?: string;
|
|
3203
|
+
/**
|
|
3204
|
+
* A comma separated list of node ids to filter by.
|
|
3205
|
+
*/
|
|
3206
|
+
nodeIds?: string;
|
|
2857
3207
|
/**
|
|
2858
3208
|
* 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.
|
|
2859
3209
|
*/
|
|
@@ -3108,6 +3458,7 @@ declare enum PChainTransactionType {
|
|
|
3108
3458
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3109
3459
|
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3110
3460
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3461
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3111
3462
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3112
3463
|
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3113
3464
|
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
@@ -3210,6 +3561,7 @@ type PChainTransaction = {
|
|
|
3210
3561
|
*/
|
|
3211
3562
|
estimatedReward?: string;
|
|
3212
3563
|
rewardTxHash?: string;
|
|
3564
|
+
rewardAddresses?: Array<string>;
|
|
3213
3565
|
memo?: string;
|
|
3214
3566
|
/**
|
|
3215
3567
|
* Present for RewardValidatorTx
|
|
@@ -3226,6 +3578,15 @@ type ListPChainTransactionsResponse = {
|
|
|
3226
3578
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3227
3579
|
};
|
|
3228
3580
|
|
|
3581
|
+
declare enum XChainTransactionType {
|
|
3582
|
+
BASE_TX = "BaseTx",
|
|
3583
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3584
|
+
OPERATION_TX = "OperationTx",
|
|
3585
|
+
IMPORT_TX = "ImportTx",
|
|
3586
|
+
EXPORT_TX = "ExportTx",
|
|
3587
|
+
UNKNOWN = "UNKNOWN"
|
|
3588
|
+
}
|
|
3589
|
+
|
|
3229
3590
|
type XChainLinearTransaction = {
|
|
3230
3591
|
/**
|
|
3231
3592
|
* Unique ID for this transaction.
|
|
@@ -3242,7 +3603,7 @@ type XChainLinearTransaction = {
|
|
|
3242
3603
|
/**
|
|
3243
3604
|
* Type of transaction.
|
|
3244
3605
|
*/
|
|
3245
|
-
txType:
|
|
3606
|
+
txType: XChainTransactionType;
|
|
3246
3607
|
/**
|
|
3247
3608
|
* Hex encoded memo bytes for this transaction.
|
|
3248
3609
|
*/
|
|
@@ -3319,7 +3680,7 @@ type XChainNonLinearTransaction = {
|
|
|
3319
3680
|
/**
|
|
3320
3681
|
* Type of transaction.
|
|
3321
3682
|
*/
|
|
3322
|
-
txType:
|
|
3683
|
+
txType: XChainTransactionType;
|
|
3323
3684
|
/**
|
|
3324
3685
|
* Hex encoded memo bytes for this transaction.
|
|
3325
3686
|
*/
|
|
@@ -3379,6 +3740,7 @@ declare enum PrimaryNetworkTxType {
|
|
|
3379
3740
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3380
3741
|
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3381
3742
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3743
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3382
3744
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3383
3745
|
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3384
3746
|
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
@@ -3716,6 +4078,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3716
4078
|
|
|
3717
4079
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3718
4080
|
declare class Glacier {
|
|
4081
|
+
readonly default: DefaultService;
|
|
3719
4082
|
readonly evmBalances: EvmBalancesService;
|
|
3720
4083
|
readonly evmBlocks: EvmBlocksService;
|
|
3721
4084
|
readonly evmChains: EvmChainsService;
|
|
@@ -3752,4 +4115,4 @@ declare class ApiError extends Error {
|
|
|
3752
4115
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3753
4116
|
}
|
|
3754
4117
|
|
|
3755
|
-
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, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorsDetails, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };
|
|
4118
|
+
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, PChainAsset, 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, 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 };
|