@avalabs/glacier-sdk 2.8.0-canary.1b2916c.0 → 2.8.0-canary.1bfc6ae.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 +234 -47
- package/dist/index.js +83 -18
- 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/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/GetChainResponse.d.ts +1 -0
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
- 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/PrimaryNetworkTxType.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -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/services/DefaultService.d.ts +14 -0
- package/esm/generated/services/DefaultService.js +13 -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 +0 -20
- package/esm/generated/services/EvmTransactionsService.js +1 -14
- 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 +8 -0
- package/esm/index.js +5 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,16 @@ declare abstract class BaseHttpRequest {
|
|
|
60
60
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
declare class DefaultService {
|
|
64
|
+
readonly httpRequest: BaseHttpRequest;
|
|
65
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
66
|
+
/**
|
|
67
|
+
* @returns any
|
|
68
|
+
* @throws ApiError
|
|
69
|
+
*/
|
|
70
|
+
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
71
|
+
}
|
|
72
|
+
|
|
63
73
|
declare enum CurrencyCode {
|
|
64
74
|
USD = "usd",
|
|
65
75
|
EUR = "eur",
|
|
@@ -680,6 +690,7 @@ type GetChainResponse = {
|
|
|
680
690
|
utilityAddresses?: UtilityAddresses;
|
|
681
691
|
networkToken: NetworkToken;
|
|
682
692
|
chainLogoUri?: string;
|
|
693
|
+
private?: boolean;
|
|
683
694
|
};
|
|
684
695
|
|
|
685
696
|
type ChainInfo = {
|
|
@@ -701,6 +712,7 @@ type ChainInfo = {
|
|
|
701
712
|
utilityAddresses?: UtilityAddresses;
|
|
702
713
|
networkToken: NetworkToken;
|
|
703
714
|
chainLogoUri?: string;
|
|
715
|
+
private?: boolean;
|
|
704
716
|
};
|
|
705
717
|
|
|
706
718
|
type ListChainsResponse = {
|
|
@@ -741,18 +753,6 @@ declare class EvmChainsService {
|
|
|
741
753
|
}): CancelablePromise<GetChainResponse>;
|
|
742
754
|
}
|
|
743
755
|
|
|
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
756
|
type ImageAsset = {
|
|
757
757
|
assetId?: string;
|
|
758
758
|
/**
|
|
@@ -791,6 +791,120 @@ type ResourceLink = {
|
|
|
791
791
|
url: string;
|
|
792
792
|
};
|
|
793
793
|
|
|
794
|
+
type ContractSubmissionErc1155 = {
|
|
795
|
+
description?: string;
|
|
796
|
+
officialSite?: string;
|
|
797
|
+
email?: string;
|
|
798
|
+
logoAsset?: ImageAsset;
|
|
799
|
+
bannerAsset?: ImageAsset;
|
|
800
|
+
color?: string;
|
|
801
|
+
resourceLinks?: Array<ResourceLink>;
|
|
802
|
+
tags?: Array<string>;
|
|
803
|
+
/**
|
|
804
|
+
* The contract name.
|
|
805
|
+
*/
|
|
806
|
+
name: string;
|
|
807
|
+
ercType: ContractSubmissionErc1155.ercType;
|
|
808
|
+
/**
|
|
809
|
+
* The contract symbol.
|
|
810
|
+
*/
|
|
811
|
+
symbol: string;
|
|
812
|
+
pricingProviders?: PricingProviders;
|
|
813
|
+
};
|
|
814
|
+
declare namespace ContractSubmissionErc1155 {
|
|
815
|
+
enum ercType {
|
|
816
|
+
ERC_1155 = "ERC-1155"
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
type ContractSubmissionErc20 = {
|
|
821
|
+
description?: string;
|
|
822
|
+
officialSite?: string;
|
|
823
|
+
email?: string;
|
|
824
|
+
logoAsset?: ImageAsset;
|
|
825
|
+
bannerAsset?: ImageAsset;
|
|
826
|
+
color?: string;
|
|
827
|
+
resourceLinks?: Array<ResourceLink>;
|
|
828
|
+
tags?: Array<string>;
|
|
829
|
+
/**
|
|
830
|
+
* The contract name.
|
|
831
|
+
*/
|
|
832
|
+
name: string;
|
|
833
|
+
ercType: ContractSubmissionErc20.ercType;
|
|
834
|
+
/**
|
|
835
|
+
* The contract symbol.
|
|
836
|
+
*/
|
|
837
|
+
symbol: string;
|
|
838
|
+
pricingProviders?: PricingProviders;
|
|
839
|
+
};
|
|
840
|
+
declare namespace ContractSubmissionErc20 {
|
|
841
|
+
enum ercType {
|
|
842
|
+
ERC_20 = "ERC-20"
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
type ContractSubmissionErc721 = {
|
|
847
|
+
description?: string;
|
|
848
|
+
officialSite?: string;
|
|
849
|
+
email?: string;
|
|
850
|
+
logoAsset?: ImageAsset;
|
|
851
|
+
bannerAsset?: ImageAsset;
|
|
852
|
+
color?: string;
|
|
853
|
+
resourceLinks?: Array<ResourceLink>;
|
|
854
|
+
tags?: Array<string>;
|
|
855
|
+
/**
|
|
856
|
+
* The contract name.
|
|
857
|
+
*/
|
|
858
|
+
name: string;
|
|
859
|
+
ercType: ContractSubmissionErc721.ercType;
|
|
860
|
+
/**
|
|
861
|
+
* The contract symbol.
|
|
862
|
+
*/
|
|
863
|
+
symbol: string;
|
|
864
|
+
};
|
|
865
|
+
declare namespace ContractSubmissionErc721 {
|
|
866
|
+
enum ercType {
|
|
867
|
+
ERC_721 = "ERC-721"
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
type ContractSubmissionUnknown = {
|
|
872
|
+
description?: string;
|
|
873
|
+
officialSite?: string;
|
|
874
|
+
email?: string;
|
|
875
|
+
logoAsset?: ImageAsset;
|
|
876
|
+
bannerAsset?: ImageAsset;
|
|
877
|
+
color?: string;
|
|
878
|
+
resourceLinks?: Array<ResourceLink>;
|
|
879
|
+
tags?: Array<string>;
|
|
880
|
+
/**
|
|
881
|
+
* The contract name.
|
|
882
|
+
*/
|
|
883
|
+
name: string;
|
|
884
|
+
ercType: ContractSubmissionUnknown.ercType;
|
|
885
|
+
};
|
|
886
|
+
declare namespace ContractSubmissionUnknown {
|
|
887
|
+
enum ercType {
|
|
888
|
+
UNKNOWN = "UNKNOWN"
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
type ContractSubmissionBody = {
|
|
893
|
+
contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
|
|
894
|
+
};
|
|
895
|
+
|
|
896
|
+
type ContractDeploymentDetails = {
|
|
897
|
+
txHash: string;
|
|
898
|
+
/**
|
|
899
|
+
* The address that initiated the transaction which deployed this contract.
|
|
900
|
+
*/
|
|
901
|
+
deployerAddress: string;
|
|
902
|
+
/**
|
|
903
|
+
* 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.
|
|
904
|
+
*/
|
|
905
|
+
deployerContractAddress?: string;
|
|
906
|
+
};
|
|
907
|
+
|
|
794
908
|
type Erc1155Contract = {
|
|
795
909
|
/**
|
|
796
910
|
* The contract name.
|
|
@@ -913,6 +1027,10 @@ declare namespace UnknownContract {
|
|
|
913
1027
|
}
|
|
914
1028
|
}
|
|
915
1029
|
|
|
1030
|
+
type UpdateContractResponse = {
|
|
1031
|
+
contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
|
|
1032
|
+
};
|
|
1033
|
+
|
|
916
1034
|
declare class EvmContractsService {
|
|
917
1035
|
readonly httpRequest: BaseHttpRequest;
|
|
918
1036
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -932,6 +1050,23 @@ declare class EvmContractsService {
|
|
|
932
1050
|
*/
|
|
933
1051
|
address: string;
|
|
934
1052
|
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1053
|
+
/**
|
|
1054
|
+
* Update contract information
|
|
1055
|
+
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1056
|
+
* @returns UpdateContractResponse
|
|
1057
|
+
* @throws ApiError
|
|
1058
|
+
*/
|
|
1059
|
+
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1060
|
+
/**
|
|
1061
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1062
|
+
*/
|
|
1063
|
+
chainId: string;
|
|
1064
|
+
/**
|
|
1065
|
+
* Contract address on the relevant chain.
|
|
1066
|
+
*/
|
|
1067
|
+
address: string;
|
|
1068
|
+
requestBody: ContractSubmissionBody;
|
|
1069
|
+
}): CancelablePromise<UpdateContractResponse>;
|
|
935
1070
|
}
|
|
936
1071
|
|
|
937
1072
|
type Erc1155Token = {
|
|
@@ -1487,22 +1622,6 @@ declare class EvmTransactionsService {
|
|
|
1487
1622
|
*/
|
|
1488
1623
|
pageToken?: string;
|
|
1489
1624
|
}): 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
1625
|
/**
|
|
1507
1626
|
* List ERC transfers
|
|
1508
1627
|
* Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
|
|
@@ -1997,6 +2116,7 @@ type ListBlockchainsResponse = {
|
|
|
1997
2116
|
|
|
1998
2117
|
type ActiveDelegatorDetails = {
|
|
1999
2118
|
txHash: string;
|
|
2119
|
+
nodeId: string;
|
|
2000
2120
|
rewardAddresses: Array<string>;
|
|
2001
2121
|
amountDelegated: string;
|
|
2002
2122
|
delegationFee: string;
|
|
@@ -2014,6 +2134,7 @@ declare namespace ActiveDelegatorDetails {
|
|
|
2014
2134
|
|
|
2015
2135
|
type CompletedDelegatorDetails = {
|
|
2016
2136
|
txHash: string;
|
|
2137
|
+
nodeId: string;
|
|
2017
2138
|
rewardAddresses: Array<string>;
|
|
2018
2139
|
amountDelegated: string;
|
|
2019
2140
|
delegationFee: string;
|
|
@@ -2031,6 +2152,7 @@ declare namespace CompletedDelegatorDetails {
|
|
|
2031
2152
|
|
|
2032
2153
|
type PendingDelegatorDetails = {
|
|
2033
2154
|
txHash: string;
|
|
2155
|
+
nodeId: string;
|
|
2034
2156
|
rewardAddresses: Array<string>;
|
|
2035
2157
|
amountDelegated: string;
|
|
2036
2158
|
delegationFee: string;
|
|
@@ -2082,22 +2204,46 @@ type ListSubnetsResponse = {
|
|
|
2082
2204
|
type Rewards = {
|
|
2083
2205
|
validationRewardAmount: string;
|
|
2084
2206
|
delegationRewardAmount: string;
|
|
2207
|
+
rewardAddresses?: Array<string>;
|
|
2208
|
+
rewardTxHash?: string;
|
|
2209
|
+
};
|
|
2210
|
+
|
|
2211
|
+
type ValidatorHealthDetails = {
|
|
2212
|
+
/**
|
|
2213
|
+
* Percent of requests responded to in last polling.
|
|
2214
|
+
*/
|
|
2215
|
+
reachabilityPercent: number;
|
|
2216
|
+
/**
|
|
2217
|
+
* Percent of requests benched on the P-Chain in last polling.
|
|
2218
|
+
*/
|
|
2219
|
+
benchedPChainRequestsPercent: number;
|
|
2220
|
+
/**
|
|
2221
|
+
* Percentage of requests benched on the X-Chain in last polling.
|
|
2222
|
+
*/
|
|
2223
|
+
benchedXChainRequestsPercent: number;
|
|
2224
|
+
/**
|
|
2225
|
+
* Percentage of requests benched on the C-Chain in last polling.
|
|
2226
|
+
*/
|
|
2227
|
+
benchedCChainRequestsPercent: number;
|
|
2085
2228
|
};
|
|
2086
2229
|
|
|
2087
2230
|
type ActiveValidatorDetails = {
|
|
2231
|
+
txHash: string;
|
|
2088
2232
|
nodeId: string;
|
|
2233
|
+
subnetId: string;
|
|
2089
2234
|
amountStaked: string;
|
|
2090
|
-
delegationFee
|
|
2235
|
+
delegationFee?: string;
|
|
2091
2236
|
startTimestamp: number;
|
|
2092
2237
|
endTimestamp: number;
|
|
2093
2238
|
stakePercentage: number;
|
|
2094
2239
|
delegatorCount: number;
|
|
2095
|
-
amountDelegated
|
|
2240
|
+
amountDelegated?: string;
|
|
2096
2241
|
uptimePerformance: number;
|
|
2097
|
-
avalancheGoVersion
|
|
2098
|
-
delegationCapacity
|
|
2242
|
+
avalancheGoVersion?: string;
|
|
2243
|
+
delegationCapacity?: string;
|
|
2099
2244
|
potentialRewards: Rewards;
|
|
2100
2245
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2246
|
+
validatorHealth: ValidatorHealthDetails;
|
|
2101
2247
|
};
|
|
2102
2248
|
declare namespace ActiveValidatorDetails {
|
|
2103
2249
|
enum validationStatus {
|
|
@@ -2106,9 +2252,11 @@ declare namespace ActiveValidatorDetails {
|
|
|
2106
2252
|
}
|
|
2107
2253
|
|
|
2108
2254
|
type CompletedValidatorDetails = {
|
|
2255
|
+
txHash: string;
|
|
2109
2256
|
nodeId: string;
|
|
2257
|
+
subnetId: string;
|
|
2110
2258
|
amountStaked: string;
|
|
2111
|
-
delegationFee
|
|
2259
|
+
delegationFee?: string;
|
|
2112
2260
|
startTimestamp: number;
|
|
2113
2261
|
endTimestamp: number;
|
|
2114
2262
|
delegatorCount: number;
|
|
@@ -2122,9 +2270,11 @@ declare namespace CompletedValidatorDetails {
|
|
|
2122
2270
|
}
|
|
2123
2271
|
|
|
2124
2272
|
type PendingValidatorDetails = {
|
|
2273
|
+
txHash: string;
|
|
2125
2274
|
nodeId: string;
|
|
2275
|
+
subnetId: string;
|
|
2126
2276
|
amountStaked: string;
|
|
2127
|
-
delegationFee
|
|
2277
|
+
delegationFee?: string;
|
|
2128
2278
|
startTimestamp: number;
|
|
2129
2279
|
endTimestamp: number;
|
|
2130
2280
|
validationStatus: PendingValidatorDetails.validationStatus;
|
|
@@ -2141,7 +2291,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2141
2291
|
*/
|
|
2142
2292
|
nextPageToken?: string;
|
|
2143
2293
|
/**
|
|
2144
|
-
* The list of
|
|
2294
|
+
* The list of validator Details.
|
|
2145
2295
|
*/
|
|
2146
2296
|
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2147
2297
|
};
|
|
@@ -2299,7 +2449,7 @@ declare class PrimaryNetworkService {
|
|
|
2299
2449
|
* @returns ListValidatorDetailsResponse
|
|
2300
2450
|
* @throws ApiError
|
|
2301
2451
|
*/
|
|
2302
|
-
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus,
|
|
2452
|
+
listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
|
|
2303
2453
|
/**
|
|
2304
2454
|
* Either mainnet or a testnet.
|
|
2305
2455
|
*/
|
|
@@ -2312,6 +2462,30 @@ declare class PrimaryNetworkService {
|
|
|
2312
2462
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2313
2463
|
*/
|
|
2314
2464
|
pageToken?: string;
|
|
2465
|
+
/**
|
|
2466
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2467
|
+
*/
|
|
2468
|
+
minTimeRemaining?: any;
|
|
2469
|
+
/**
|
|
2470
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2471
|
+
*/
|
|
2472
|
+
maxTimeRemaining?: any;
|
|
2473
|
+
/**
|
|
2474
|
+
* The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
|
|
2475
|
+
*/
|
|
2476
|
+
minDelegationCapacity?: number;
|
|
2477
|
+
/**
|
|
2478
|
+
* The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
|
|
2479
|
+
*/
|
|
2480
|
+
maxDelegationCapacity?: number;
|
|
2481
|
+
/**
|
|
2482
|
+
* 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.
|
|
2483
|
+
*/
|
|
2484
|
+
minFeePercentage?: any;
|
|
2485
|
+
/**
|
|
2486
|
+
* The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
|
|
2487
|
+
*/
|
|
2488
|
+
maxFeePercentage?: any;
|
|
2315
2489
|
/**
|
|
2316
2490
|
* A comma separated list of node ids to filter by.
|
|
2317
2491
|
*/
|
|
@@ -2325,9 +2499,9 @@ declare class PrimaryNetworkService {
|
|
|
2325
2499
|
*/
|
|
2326
2500
|
validationStatus?: ValidationStatusType;
|
|
2327
2501
|
/**
|
|
2328
|
-
* The
|
|
2502
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2329
2503
|
*/
|
|
2330
|
-
|
|
2504
|
+
subnetId?: string;
|
|
2331
2505
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2332
2506
|
/**
|
|
2333
2507
|
* Get single validator details
|
|
@@ -2367,7 +2541,7 @@ declare class PrimaryNetworkService {
|
|
|
2367
2541
|
* @returns ListDelegatorDetailsResponse
|
|
2368
2542
|
* @throws ApiError
|
|
2369
2543
|
*/
|
|
2370
|
-
listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus,
|
|
2544
|
+
listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2371
2545
|
/**
|
|
2372
2546
|
* Either mainnet or a testnet.
|
|
2373
2547
|
*/
|
|
@@ -2380,6 +2554,10 @@ declare class PrimaryNetworkService {
|
|
|
2380
2554
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2381
2555
|
*/
|
|
2382
2556
|
pageToken?: string;
|
|
2557
|
+
/**
|
|
2558
|
+
* A comma separated list of reward addresses to filter by.
|
|
2559
|
+
*/
|
|
2560
|
+
rewardAddresses?: string;
|
|
2383
2561
|
/**
|
|
2384
2562
|
* 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
2563
|
*/
|
|
@@ -2388,10 +2566,6 @@ declare class PrimaryNetworkService {
|
|
|
2388
2566
|
* Delegation status of the node.
|
|
2389
2567
|
*/
|
|
2390
2568
|
delegationStatus?: DelegationStatusType;
|
|
2391
|
-
/**
|
|
2392
|
-
* A comma separated list of reward addresses to filter by.
|
|
2393
|
-
*/
|
|
2394
|
-
rewardAddresses?: string;
|
|
2395
2569
|
/**
|
|
2396
2570
|
* A comma separated list of node ids to filter by.
|
|
2397
2571
|
*/
|
|
@@ -2743,7 +2917,8 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2743
2917
|
|
|
2744
2918
|
declare enum RewardType {
|
|
2745
2919
|
VALIDATOR = "VALIDATOR",
|
|
2746
|
-
DELEGATOR = "DELEGATOR"
|
|
2920
|
+
DELEGATOR = "DELEGATOR",
|
|
2921
|
+
VALIDATOR_FEE = "VALIDATOR_FEE"
|
|
2747
2922
|
}
|
|
2748
2923
|
|
|
2749
2924
|
type HistoricalReward = {
|
|
@@ -2809,7 +2984,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2809
2984
|
* @returns ListPendingRewardsResponse
|
|
2810
2985
|
* @throws ApiError
|
|
2811
2986
|
*/
|
|
2812
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
2987
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
2813
2988
|
/**
|
|
2814
2989
|
* Either mainnet or a testnet.
|
|
2815
2990
|
*/
|
|
@@ -2826,6 +3001,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2826
3001
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2827
3002
|
*/
|
|
2828
3003
|
pageToken?: string;
|
|
3004
|
+
/**
|
|
3005
|
+
* A comma separated list of node ids to filter by.
|
|
3006
|
+
*/
|
|
3007
|
+
nodeIds?: string;
|
|
2829
3008
|
/**
|
|
2830
3009
|
* 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
3010
|
*/
|
|
@@ -2837,7 +3016,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2837
3016
|
* @returns ListHistoricalRewardsResponse
|
|
2838
3017
|
* @throws ApiError
|
|
2839
3018
|
*/
|
|
2840
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
3019
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
2841
3020
|
/**
|
|
2842
3021
|
* Either mainnet or a testnet.
|
|
2843
3022
|
*/
|
|
@@ -2854,6 +3033,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2854
3033
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2855
3034
|
*/
|
|
2856
3035
|
pageToken?: string;
|
|
3036
|
+
/**
|
|
3037
|
+
* A comma separated list of node ids to filter by.
|
|
3038
|
+
*/
|
|
3039
|
+
nodeIds?: string;
|
|
2857
3040
|
/**
|
|
2858
3041
|
* 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
3042
|
*/
|
|
@@ -3108,6 +3291,7 @@ declare enum PChainTransactionType {
|
|
|
3108
3291
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3109
3292
|
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3110
3293
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3294
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3111
3295
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3112
3296
|
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3113
3297
|
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
@@ -3210,6 +3394,7 @@ type PChainTransaction = {
|
|
|
3210
3394
|
*/
|
|
3211
3395
|
estimatedReward?: string;
|
|
3212
3396
|
rewardTxHash?: string;
|
|
3397
|
+
rewardAddresses?: Array<string>;
|
|
3213
3398
|
memo?: string;
|
|
3214
3399
|
/**
|
|
3215
3400
|
* Present for RewardValidatorTx
|
|
@@ -3379,6 +3564,7 @@ declare enum PrimaryNetworkTxType {
|
|
|
3379
3564
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3380
3565
|
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3381
3566
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3567
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3382
3568
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3383
3569
|
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3384
3570
|
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
@@ -3716,6 +3902,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3716
3902
|
|
|
3717
3903
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3718
3904
|
declare class Glacier {
|
|
3905
|
+
readonly default: DefaultService;
|
|
3719
3906
|
readonly evmBalances: EvmBalancesService;
|
|
3720
3907
|
readonly evmBlocks: EvmBlocksService;
|
|
3721
3908
|
readonly evmChains: EvmChainsService;
|
|
@@ -3752,4 +3939,4 @@ declare class ApiError extends Error {
|
|
|
3752
3939
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3753
3940
|
}
|
|
3754
3941
|
|
|
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 };
|
|
3942
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, 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, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };
|