@avalabs/glacier-sdk 2.8.0-canary.2de3663.0 → 2.8.0-canary.45b841e.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 +231 -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 +7 -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 +2 -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 +2 -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,45 @@ 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 = {
|
|
2088
2231
|
nodeId: string;
|
|
2232
|
+
subnetId: string;
|
|
2089
2233
|
amountStaked: string;
|
|
2090
|
-
delegationFee
|
|
2234
|
+
delegationFee?: string;
|
|
2091
2235
|
startTimestamp: number;
|
|
2092
2236
|
endTimestamp: number;
|
|
2093
2237
|
stakePercentage: number;
|
|
2094
2238
|
delegatorCount: number;
|
|
2095
|
-
amountDelegated
|
|
2239
|
+
amountDelegated?: string;
|
|
2096
2240
|
uptimePerformance: number;
|
|
2097
|
-
avalancheGoVersion
|
|
2098
|
-
delegationCapacity
|
|
2241
|
+
avalancheGoVersion?: string;
|
|
2242
|
+
delegationCapacity?: string;
|
|
2099
2243
|
potentialRewards: Rewards;
|
|
2100
2244
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2245
|
+
validatorHealth: ValidatorHealthDetails;
|
|
2101
2246
|
};
|
|
2102
2247
|
declare namespace ActiveValidatorDetails {
|
|
2103
2248
|
enum validationStatus {
|
|
@@ -2107,8 +2252,9 @@ declare namespace ActiveValidatorDetails {
|
|
|
2107
2252
|
|
|
2108
2253
|
type CompletedValidatorDetails = {
|
|
2109
2254
|
nodeId: string;
|
|
2255
|
+
subnetId: string;
|
|
2110
2256
|
amountStaked: string;
|
|
2111
|
-
delegationFee
|
|
2257
|
+
delegationFee?: string;
|
|
2112
2258
|
startTimestamp: number;
|
|
2113
2259
|
endTimestamp: number;
|
|
2114
2260
|
delegatorCount: number;
|
|
@@ -2123,8 +2269,9 @@ declare namespace CompletedValidatorDetails {
|
|
|
2123
2269
|
|
|
2124
2270
|
type PendingValidatorDetails = {
|
|
2125
2271
|
nodeId: string;
|
|
2272
|
+
subnetId: string;
|
|
2126
2273
|
amountStaked: string;
|
|
2127
|
-
delegationFee
|
|
2274
|
+
delegationFee?: string;
|
|
2128
2275
|
startTimestamp: number;
|
|
2129
2276
|
endTimestamp: number;
|
|
2130
2277
|
validationStatus: PendingValidatorDetails.validationStatus;
|
|
@@ -2141,7 +2288,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2141
2288
|
*/
|
|
2142
2289
|
nextPageToken?: string;
|
|
2143
2290
|
/**
|
|
2144
|
-
* The list of
|
|
2291
|
+
* The list of validator Details.
|
|
2145
2292
|
*/
|
|
2146
2293
|
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2147
2294
|
};
|
|
@@ -2299,7 +2446,7 @@ declare class PrimaryNetworkService {
|
|
|
2299
2446
|
* @returns ListValidatorDetailsResponse
|
|
2300
2447
|
* @throws ApiError
|
|
2301
2448
|
*/
|
|
2302
|
-
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus,
|
|
2449
|
+
listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
|
|
2303
2450
|
/**
|
|
2304
2451
|
* Either mainnet or a testnet.
|
|
2305
2452
|
*/
|
|
@@ -2312,6 +2459,30 @@ declare class PrimaryNetworkService {
|
|
|
2312
2459
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2313
2460
|
*/
|
|
2314
2461
|
pageToken?: string;
|
|
2462
|
+
/**
|
|
2463
|
+
* The minimum delegation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2464
|
+
*/
|
|
2465
|
+
minTimeRemaining?: any;
|
|
2466
|
+
/**
|
|
2467
|
+
* The maximum delegation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2468
|
+
*/
|
|
2469
|
+
maxTimeRemaining?: any;
|
|
2470
|
+
/**
|
|
2471
|
+
* 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
|
|
2472
|
+
*/
|
|
2473
|
+
minDelegationCapacity?: number;
|
|
2474
|
+
/**
|
|
2475
|
+
* 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.
|
|
2476
|
+
*/
|
|
2477
|
+
maxDelegationCapacity?: number;
|
|
2478
|
+
/**
|
|
2479
|
+
* 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.
|
|
2480
|
+
*/
|
|
2481
|
+
minFeePercentage?: any;
|
|
2482
|
+
/**
|
|
2483
|
+
* 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.
|
|
2484
|
+
*/
|
|
2485
|
+
maxFeePercentage?: any;
|
|
2315
2486
|
/**
|
|
2316
2487
|
* A comma separated list of node ids to filter by.
|
|
2317
2488
|
*/
|
|
@@ -2325,9 +2496,9 @@ declare class PrimaryNetworkService {
|
|
|
2325
2496
|
*/
|
|
2326
2497
|
validationStatus?: ValidationStatusType;
|
|
2327
2498
|
/**
|
|
2328
|
-
* The
|
|
2499
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2329
2500
|
*/
|
|
2330
|
-
|
|
2501
|
+
subnetId?: string;
|
|
2331
2502
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2332
2503
|
/**
|
|
2333
2504
|
* Get single validator details
|
|
@@ -2367,7 +2538,7 @@ declare class PrimaryNetworkService {
|
|
|
2367
2538
|
* @returns ListDelegatorDetailsResponse
|
|
2368
2539
|
* @throws ApiError
|
|
2369
2540
|
*/
|
|
2370
|
-
listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus,
|
|
2541
|
+
listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2371
2542
|
/**
|
|
2372
2543
|
* Either mainnet or a testnet.
|
|
2373
2544
|
*/
|
|
@@ -2380,6 +2551,10 @@ declare class PrimaryNetworkService {
|
|
|
2380
2551
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2381
2552
|
*/
|
|
2382
2553
|
pageToken?: string;
|
|
2554
|
+
/**
|
|
2555
|
+
* A comma separated list of reward addresses to filter by.
|
|
2556
|
+
*/
|
|
2557
|
+
rewardAddresses?: string;
|
|
2383
2558
|
/**
|
|
2384
2559
|
* 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
2560
|
*/
|
|
@@ -2388,10 +2563,6 @@ declare class PrimaryNetworkService {
|
|
|
2388
2563
|
* Delegation status of the node.
|
|
2389
2564
|
*/
|
|
2390
2565
|
delegationStatus?: DelegationStatusType;
|
|
2391
|
-
/**
|
|
2392
|
-
* A comma separated list of reward addresses to filter by.
|
|
2393
|
-
*/
|
|
2394
|
-
rewardAddresses?: string;
|
|
2395
2566
|
/**
|
|
2396
2567
|
* A comma separated list of node ids to filter by.
|
|
2397
2568
|
*/
|
|
@@ -2743,7 +2914,8 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2743
2914
|
|
|
2744
2915
|
declare enum RewardType {
|
|
2745
2916
|
VALIDATOR = "VALIDATOR",
|
|
2746
|
-
DELEGATOR = "DELEGATOR"
|
|
2917
|
+
DELEGATOR = "DELEGATOR",
|
|
2918
|
+
VALIDATOR_FEE = "VALIDATOR_FEE"
|
|
2747
2919
|
}
|
|
2748
2920
|
|
|
2749
2921
|
type HistoricalReward = {
|
|
@@ -2809,7 +2981,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2809
2981
|
* @returns ListPendingRewardsResponse
|
|
2810
2982
|
* @throws ApiError
|
|
2811
2983
|
*/
|
|
2812
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
2984
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
2813
2985
|
/**
|
|
2814
2986
|
* Either mainnet or a testnet.
|
|
2815
2987
|
*/
|
|
@@ -2826,6 +2998,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2826
2998
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2827
2999
|
*/
|
|
2828
3000
|
pageToken?: string;
|
|
3001
|
+
/**
|
|
3002
|
+
* A comma separated list of node ids to filter by.
|
|
3003
|
+
*/
|
|
3004
|
+
nodeIds?: string;
|
|
2829
3005
|
/**
|
|
2830
3006
|
* 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
3007
|
*/
|
|
@@ -2837,7 +3013,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2837
3013
|
* @returns ListHistoricalRewardsResponse
|
|
2838
3014
|
* @throws ApiError
|
|
2839
3015
|
*/
|
|
2840
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
3016
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
2841
3017
|
/**
|
|
2842
3018
|
* Either mainnet or a testnet.
|
|
2843
3019
|
*/
|
|
@@ -2854,6 +3030,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2854
3030
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2855
3031
|
*/
|
|
2856
3032
|
pageToken?: string;
|
|
3033
|
+
/**
|
|
3034
|
+
* A comma separated list of node ids to filter by.
|
|
3035
|
+
*/
|
|
3036
|
+
nodeIds?: string;
|
|
2857
3037
|
/**
|
|
2858
3038
|
* 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
3039
|
*/
|
|
@@ -3108,6 +3288,7 @@ declare enum PChainTransactionType {
|
|
|
3108
3288
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3109
3289
|
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3110
3290
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3291
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3111
3292
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3112
3293
|
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3113
3294
|
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
@@ -3210,6 +3391,7 @@ type PChainTransaction = {
|
|
|
3210
3391
|
*/
|
|
3211
3392
|
estimatedReward?: string;
|
|
3212
3393
|
rewardTxHash?: string;
|
|
3394
|
+
rewardAddresses?: Array<string>;
|
|
3213
3395
|
memo?: string;
|
|
3214
3396
|
/**
|
|
3215
3397
|
* Present for RewardValidatorTx
|
|
@@ -3379,6 +3561,7 @@ declare enum PrimaryNetworkTxType {
|
|
|
3379
3561
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3380
3562
|
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3381
3563
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3564
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3382
3565
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3383
3566
|
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3384
3567
|
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
@@ -3716,6 +3899,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3716
3899
|
|
|
3717
3900
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3718
3901
|
declare class Glacier {
|
|
3902
|
+
readonly default: DefaultService;
|
|
3719
3903
|
readonly evmBalances: EvmBalancesService;
|
|
3720
3904
|
readonly evmBlocks: EvmBlocksService;
|
|
3721
3905
|
readonly evmChains: EvmChainsService;
|
|
@@ -3752,4 +3936,4 @@ declare class ApiError extends Error {
|
|
|
3752
3936
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3753
3937
|
}
|
|
3754
3938
|
|
|
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 };
|
|
3939
|
+
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 };
|