@avalabs/glacier-sdk 2.8.0-canary.c83789f.0 → 2.8.0-canary.df4401e.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 +455 -219
- package/dist/index.js +147 -18
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +6 -0
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +13 -6
- package/esm/generated/models/ActiveValidatorDetails.js +8 -0
- package/esm/generated/models/ChainInfo.d.ts +1 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +8 -3
- package/esm/generated/models/CompletedValidatorDetails.js +8 -0
- package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
- package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
- package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc20.js +8 -0
- package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
- package/esm/generated/models/ContractSubmissionErc721.js +8 -0
- package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
- package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
- package/esm/generated/models/Erc20Contract.d.ts +1 -1
- package/esm/generated/models/GetChainResponse.d.ts +1 -0
- package/esm/generated/models/ListContractsResponse.d.ts +1 -1
- 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 +7 -3
- package/esm/generated/models/PendingDelegatorDetails.js +8 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +8 -4
- package/esm/generated/models/PendingValidatorDetails.js +8 -0
- 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 +48 -0
- package/esm/generated/services/EvmContractsService.js +36 -0
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/NfTsService.d.ts +0 -18
- package/esm/generated/services/NfTsService.js +0 -13
- 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 +9 -0
- package/esm/index.js +12 -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,6 +753,322 @@ declare class EvmChainsService {
|
|
|
741
753
|
}): CancelablePromise<GetChainResponse>;
|
|
742
754
|
}
|
|
743
755
|
|
|
756
|
+
type ImageAsset = {
|
|
757
|
+
assetId?: string;
|
|
758
|
+
/**
|
|
759
|
+
* OUTPUT ONLY
|
|
760
|
+
*/
|
|
761
|
+
imageUri?: string;
|
|
762
|
+
};
|
|
763
|
+
|
|
764
|
+
type PricingProviders = {
|
|
765
|
+
coingeckoCoinId?: string;
|
|
766
|
+
};
|
|
767
|
+
|
|
768
|
+
declare enum ResourceLinkType {
|
|
769
|
+
BLOG = "Blog",
|
|
770
|
+
COIN_GECKO = "CoinGecko",
|
|
771
|
+
COIN_MARKET_CAP = "CoinMarketCap",
|
|
772
|
+
DISCORD = "Discord",
|
|
773
|
+
DOCUMENTATION = "Documentation",
|
|
774
|
+
FACEBOOK = "Facebook",
|
|
775
|
+
GITHUB = "Github",
|
|
776
|
+
INSTAGRAM = "Instagram",
|
|
777
|
+
LINKED_IN = "LinkedIn",
|
|
778
|
+
MEDIUM = "Medium",
|
|
779
|
+
REDDIT = "Reddit",
|
|
780
|
+
SUPPORT = "Support",
|
|
781
|
+
TELEGRAM = "Telegram",
|
|
782
|
+
TIK_TOK = "TikTok",
|
|
783
|
+
TWITTER = "Twitter",
|
|
784
|
+
WEBSITE = "Website",
|
|
785
|
+
WHITEPAPER = "Whitepaper",
|
|
786
|
+
YOUTUBE = "Youtube"
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
type ResourceLink = {
|
|
790
|
+
type: ResourceLinkType;
|
|
791
|
+
url: string;
|
|
792
|
+
};
|
|
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
|
+
|
|
908
|
+
type Erc1155Contract = {
|
|
909
|
+
/**
|
|
910
|
+
* The contract name.
|
|
911
|
+
*/
|
|
912
|
+
name?: string;
|
|
913
|
+
description?: string;
|
|
914
|
+
officialSite?: string;
|
|
915
|
+
email?: string;
|
|
916
|
+
logoAsset?: ImageAsset;
|
|
917
|
+
bannerAsset?: ImageAsset;
|
|
918
|
+
color?: string;
|
|
919
|
+
resourceLinks?: Array<ResourceLink>;
|
|
920
|
+
tags?: Array<string>;
|
|
921
|
+
/**
|
|
922
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
923
|
+
*/
|
|
924
|
+
address: string;
|
|
925
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
926
|
+
ercType: Erc1155Contract.ercType;
|
|
927
|
+
/**
|
|
928
|
+
* The contract symbol.
|
|
929
|
+
*/
|
|
930
|
+
symbol?: string;
|
|
931
|
+
pricingProviders?: PricingProviders;
|
|
932
|
+
};
|
|
933
|
+
declare namespace Erc1155Contract {
|
|
934
|
+
enum ercType {
|
|
935
|
+
ERC_1155 = "ERC-1155"
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
type Erc20Contract = {
|
|
940
|
+
/**
|
|
941
|
+
* The contract name.
|
|
942
|
+
*/
|
|
943
|
+
name?: string;
|
|
944
|
+
description?: string;
|
|
945
|
+
officialSite?: string;
|
|
946
|
+
email?: string;
|
|
947
|
+
logoAsset?: ImageAsset;
|
|
948
|
+
bannerAsset?: ImageAsset;
|
|
949
|
+
color?: string;
|
|
950
|
+
resourceLinks?: Array<ResourceLink>;
|
|
951
|
+
tags?: Array<string>;
|
|
952
|
+
/**
|
|
953
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
954
|
+
*/
|
|
955
|
+
address: string;
|
|
956
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
957
|
+
ercType: Erc20Contract.ercType;
|
|
958
|
+
/**
|
|
959
|
+
* The contract symbol.
|
|
960
|
+
*/
|
|
961
|
+
symbol?: string;
|
|
962
|
+
/**
|
|
963
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
964
|
+
*/
|
|
965
|
+
decimals: number;
|
|
966
|
+
pricingProviders?: PricingProviders;
|
|
967
|
+
};
|
|
968
|
+
declare namespace Erc20Contract {
|
|
969
|
+
enum ercType {
|
|
970
|
+
ERC_20 = "ERC-20"
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
type Erc721Contract = {
|
|
975
|
+
/**
|
|
976
|
+
* The contract name.
|
|
977
|
+
*/
|
|
978
|
+
name?: string;
|
|
979
|
+
description?: string;
|
|
980
|
+
officialSite?: string;
|
|
981
|
+
email?: string;
|
|
982
|
+
logoAsset?: ImageAsset;
|
|
983
|
+
bannerAsset?: ImageAsset;
|
|
984
|
+
color?: string;
|
|
985
|
+
resourceLinks?: Array<ResourceLink>;
|
|
986
|
+
tags?: Array<string>;
|
|
987
|
+
/**
|
|
988
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
989
|
+
*/
|
|
990
|
+
address: string;
|
|
991
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
992
|
+
ercType: Erc721Contract.ercType;
|
|
993
|
+
/**
|
|
994
|
+
* The contract symbol.
|
|
995
|
+
*/
|
|
996
|
+
symbol?: string;
|
|
997
|
+
};
|
|
998
|
+
declare namespace Erc721Contract {
|
|
999
|
+
enum ercType {
|
|
1000
|
+
ERC_721 = "ERC-721"
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
type UnknownContract = {
|
|
1005
|
+
/**
|
|
1006
|
+
* The contract name.
|
|
1007
|
+
*/
|
|
1008
|
+
name?: string;
|
|
1009
|
+
description?: string;
|
|
1010
|
+
officialSite?: string;
|
|
1011
|
+
email?: string;
|
|
1012
|
+
logoAsset?: ImageAsset;
|
|
1013
|
+
bannerAsset?: ImageAsset;
|
|
1014
|
+
color?: string;
|
|
1015
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1016
|
+
tags?: Array<string>;
|
|
1017
|
+
/**
|
|
1018
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1019
|
+
*/
|
|
1020
|
+
address: string;
|
|
1021
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1022
|
+
ercType: UnknownContract.ercType;
|
|
1023
|
+
};
|
|
1024
|
+
declare namespace UnknownContract {
|
|
1025
|
+
enum ercType {
|
|
1026
|
+
UNKNOWN = "UNKNOWN"
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
type UpdateContractResponse = {
|
|
1031
|
+
contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
|
|
1032
|
+
};
|
|
1033
|
+
|
|
1034
|
+
declare class EvmContractsService {
|
|
1035
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1036
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1037
|
+
/**
|
|
1038
|
+
* Get contract metadata
|
|
1039
|
+
* Gets metadata about the contract at the given address.
|
|
1040
|
+
* @returns any
|
|
1041
|
+
* @throws ApiError
|
|
1042
|
+
*/
|
|
1043
|
+
getContractMetadata({ chainId, address, }: {
|
|
1044
|
+
/**
|
|
1045
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1046
|
+
*/
|
|
1047
|
+
chainId: string;
|
|
1048
|
+
/**
|
|
1049
|
+
* Contract address on the relevant chain.
|
|
1050
|
+
*/
|
|
1051
|
+
address: string;
|
|
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>;
|
|
1070
|
+
}
|
|
1071
|
+
|
|
744
1072
|
type Erc1155Token = {
|
|
745
1073
|
/**
|
|
746
1074
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
@@ -999,184 +1327,12 @@ type GetTransactionResponse = {
|
|
|
999
1327
|
nativeTransaction: FullNativeTransactionDetails;
|
|
1000
1328
|
};
|
|
1001
1329
|
|
|
1002
|
-
type ContractDeploymentDetails = {
|
|
1003
|
-
txHash: string;
|
|
1004
|
-
/**
|
|
1005
|
-
* The address that initiated the transaction which deployed this contract.
|
|
1006
|
-
*/
|
|
1007
|
-
deployerAddress: string;
|
|
1008
|
-
/**
|
|
1009
|
-
* 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.
|
|
1010
|
-
*/
|
|
1011
|
-
deployerContractAddress?: string;
|
|
1012
|
-
};
|
|
1013
|
-
|
|
1014
|
-
type ImageAsset = {
|
|
1015
|
-
assetId?: string;
|
|
1016
|
-
/**
|
|
1017
|
-
* OUTPUT ONLY
|
|
1018
|
-
*/
|
|
1019
|
-
imageUri?: string;
|
|
1020
|
-
};
|
|
1021
|
-
|
|
1022
|
-
type PricingProviders = {
|
|
1023
|
-
coingeckoCoinId?: string;
|
|
1024
|
-
};
|
|
1025
|
-
|
|
1026
|
-
declare enum ResourceLinkType {
|
|
1027
|
-
BLOG = "Blog",
|
|
1028
|
-
COIN_GECKO = "CoinGecko",
|
|
1029
|
-
COIN_MARKET_CAP = "CoinMarketCap",
|
|
1030
|
-
DISCORD = "Discord",
|
|
1031
|
-
DOCUMENTATION = "Documentation",
|
|
1032
|
-
FACEBOOK = "Facebook",
|
|
1033
|
-
GITHUB = "Github",
|
|
1034
|
-
INSTAGRAM = "Instagram",
|
|
1035
|
-
LINKED_IN = "LinkedIn",
|
|
1036
|
-
MEDIUM = "Medium",
|
|
1037
|
-
REDDIT = "Reddit",
|
|
1038
|
-
SUPPORT = "Support",
|
|
1039
|
-
TELEGRAM = "Telegram",
|
|
1040
|
-
TIK_TOK = "TikTok",
|
|
1041
|
-
TWITTER = "Twitter",
|
|
1042
|
-
WEBSITE = "Website",
|
|
1043
|
-
WHITEPAPER = "Whitepaper",
|
|
1044
|
-
YOUTUBE = "Youtube"
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
type ResourceLink = {
|
|
1048
|
-
type: ResourceLinkType;
|
|
1049
|
-
url: string;
|
|
1050
|
-
};
|
|
1051
|
-
|
|
1052
|
-
type Erc1155Contract = {
|
|
1053
|
-
/**
|
|
1054
|
-
* The contract name.
|
|
1055
|
-
*/
|
|
1056
|
-
name?: string;
|
|
1057
|
-
description?: string;
|
|
1058
|
-
officialSite?: string;
|
|
1059
|
-
email?: string;
|
|
1060
|
-
logoAsset?: ImageAsset;
|
|
1061
|
-
bannerAsset?: ImageAsset;
|
|
1062
|
-
color?: string;
|
|
1063
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1064
|
-
tags?: Array<string>;
|
|
1065
|
-
/**
|
|
1066
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1067
|
-
*/
|
|
1068
|
-
address: string;
|
|
1069
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1070
|
-
ercType: Erc1155Contract.ercType;
|
|
1071
|
-
/**
|
|
1072
|
-
* The contract symbol.
|
|
1073
|
-
*/
|
|
1074
|
-
symbol?: string;
|
|
1075
|
-
pricingProviders?: PricingProviders;
|
|
1076
|
-
};
|
|
1077
|
-
declare namespace Erc1155Contract {
|
|
1078
|
-
enum ercType {
|
|
1079
|
-
ERC_1155 = "ERC-1155"
|
|
1080
|
-
}
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
type Erc20Contract = {
|
|
1084
|
-
/**
|
|
1085
|
-
* The contract name.
|
|
1086
|
-
*/
|
|
1087
|
-
name?: string;
|
|
1088
|
-
description?: string;
|
|
1089
|
-
officialSite?: string;
|
|
1090
|
-
email?: string;
|
|
1091
|
-
logoAsset?: ImageAsset;
|
|
1092
|
-
bannerAsset?: ImageAsset;
|
|
1093
|
-
color?: string;
|
|
1094
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1095
|
-
tags?: Array<string>;
|
|
1096
|
-
/**
|
|
1097
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1098
|
-
*/
|
|
1099
|
-
address: string;
|
|
1100
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1101
|
-
ercType: Erc20Contract.ercType;
|
|
1102
|
-
/**
|
|
1103
|
-
* The contract symbol.
|
|
1104
|
-
*/
|
|
1105
|
-
symbol?: string;
|
|
1106
|
-
/**
|
|
1107
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1108
|
-
*/
|
|
1109
|
-
decimals: number;
|
|
1110
|
-
pricingProviders: PricingProviders;
|
|
1111
|
-
};
|
|
1112
|
-
declare namespace Erc20Contract {
|
|
1113
|
-
enum ercType {
|
|
1114
|
-
ERC_20 = "ERC-20"
|
|
1115
|
-
}
|
|
1116
|
-
}
|
|
1117
|
-
|
|
1118
|
-
type Erc721Contract = {
|
|
1119
|
-
/**
|
|
1120
|
-
* The contract name.
|
|
1121
|
-
*/
|
|
1122
|
-
name?: string;
|
|
1123
|
-
description?: string;
|
|
1124
|
-
officialSite?: string;
|
|
1125
|
-
email?: string;
|
|
1126
|
-
logoAsset?: ImageAsset;
|
|
1127
|
-
bannerAsset?: ImageAsset;
|
|
1128
|
-
color?: string;
|
|
1129
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1130
|
-
tags?: Array<string>;
|
|
1131
|
-
/**
|
|
1132
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1133
|
-
*/
|
|
1134
|
-
address: string;
|
|
1135
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1136
|
-
ercType: Erc721Contract.ercType;
|
|
1137
|
-
/**
|
|
1138
|
-
* The contract symbol.
|
|
1139
|
-
*/
|
|
1140
|
-
symbol?: string;
|
|
1141
|
-
};
|
|
1142
|
-
declare namespace Erc721Contract {
|
|
1143
|
-
enum ercType {
|
|
1144
|
-
ERC_721 = "ERC-721"
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
type UnknownContract = {
|
|
1149
|
-
/**
|
|
1150
|
-
* The contract name.
|
|
1151
|
-
*/
|
|
1152
|
-
name?: string;
|
|
1153
|
-
description?: string;
|
|
1154
|
-
officialSite?: string;
|
|
1155
|
-
email?: string;
|
|
1156
|
-
logoAsset?: ImageAsset;
|
|
1157
|
-
bannerAsset?: ImageAsset;
|
|
1158
|
-
color?: string;
|
|
1159
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1160
|
-
tags?: Array<string>;
|
|
1161
|
-
/**
|
|
1162
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1163
|
-
*/
|
|
1164
|
-
address: string;
|
|
1165
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1166
|
-
ercType: UnknownContract.ercType;
|
|
1167
|
-
};
|
|
1168
|
-
declare namespace UnknownContract {
|
|
1169
|
-
enum ercType {
|
|
1170
|
-
UNKNOWN = "UNKNOWN"
|
|
1171
|
-
}
|
|
1172
|
-
}
|
|
1173
|
-
|
|
1174
1330
|
type ListContractsResponse = {
|
|
1175
1331
|
/**
|
|
1176
1332
|
* 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.
|
|
1177
1333
|
*/
|
|
1178
1334
|
nextPageToken?: string;
|
|
1179
|
-
contracts: Array<(
|
|
1335
|
+
contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1180
1336
|
};
|
|
1181
1337
|
|
|
1182
1338
|
type Erc1155Transfer = {
|
|
@@ -1773,22 +1929,6 @@ declare class NfTsService {
|
|
|
1773
1929
|
*/
|
|
1774
1930
|
tokenId: string;
|
|
1775
1931
|
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
1776
|
-
/**
|
|
1777
|
-
* Get collection details
|
|
1778
|
-
* Gets collection details for a NFT contract.
|
|
1779
|
-
* @returns any
|
|
1780
|
-
* @throws ApiError
|
|
1781
|
-
*/
|
|
1782
|
-
getCollection({ chainId, address, }: {
|
|
1783
|
-
/**
|
|
1784
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1785
|
-
*/
|
|
1786
|
-
chainId: string;
|
|
1787
|
-
/**
|
|
1788
|
-
* Contract address on the relevant chain.
|
|
1789
|
-
*/
|
|
1790
|
-
address: string;
|
|
1791
|
-
}): CancelablePromise<(Erc721Contract | Erc1155Contract)>;
|
|
1792
1932
|
}
|
|
1793
1933
|
|
|
1794
1934
|
type EvmNetworkOptions = {
|
|
@@ -1976,39 +2116,57 @@ type ListBlockchainsResponse = {
|
|
|
1976
2116
|
|
|
1977
2117
|
type ActiveDelegatorDetails = {
|
|
1978
2118
|
txHash: string;
|
|
2119
|
+
nodeId: string;
|
|
1979
2120
|
rewardAddresses: Array<string>;
|
|
1980
2121
|
amountDelegated: string;
|
|
1981
2122
|
delegationFee: string;
|
|
1982
2123
|
startTimestamp: number;
|
|
1983
2124
|
endTimestamp: number;
|
|
1984
|
-
delegationStatus: DelegationStatusType;
|
|
1985
2125
|
estimatedGrossReward: string;
|
|
1986
2126
|
estimatedNetReward: string;
|
|
2127
|
+
delegationStatus: ActiveDelegatorDetails.delegationStatus;
|
|
1987
2128
|
};
|
|
2129
|
+
declare namespace ActiveDelegatorDetails {
|
|
2130
|
+
enum delegationStatus {
|
|
2131
|
+
ACTIVE = "active"
|
|
2132
|
+
}
|
|
2133
|
+
}
|
|
1988
2134
|
|
|
1989
2135
|
type CompletedDelegatorDetails = {
|
|
1990
2136
|
txHash: string;
|
|
2137
|
+
nodeId: string;
|
|
1991
2138
|
rewardAddresses: Array<string>;
|
|
1992
2139
|
amountDelegated: string;
|
|
1993
2140
|
delegationFee: string;
|
|
1994
2141
|
startTimestamp: number;
|
|
1995
2142
|
endTimestamp: number;
|
|
1996
|
-
delegationStatus: DelegationStatusType;
|
|
1997
2143
|
grossReward: string;
|
|
1998
2144
|
netReward: string;
|
|
2145
|
+
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
1999
2146
|
};
|
|
2147
|
+
declare namespace CompletedDelegatorDetails {
|
|
2148
|
+
enum delegationStatus {
|
|
2149
|
+
COMPLETED = "completed"
|
|
2150
|
+
}
|
|
2151
|
+
}
|
|
2000
2152
|
|
|
2001
2153
|
type PendingDelegatorDetails = {
|
|
2002
2154
|
txHash: string;
|
|
2155
|
+
nodeId: string;
|
|
2003
2156
|
rewardAddresses: Array<string>;
|
|
2004
2157
|
amountDelegated: string;
|
|
2005
2158
|
delegationFee: string;
|
|
2006
2159
|
startTimestamp: number;
|
|
2007
2160
|
endTimestamp: number;
|
|
2008
|
-
delegationStatus: DelegationStatusType;
|
|
2009
2161
|
estimatedGrossReward: string;
|
|
2010
2162
|
estimatedNetReward: string;
|
|
2163
|
+
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2011
2164
|
};
|
|
2165
|
+
declare namespace PendingDelegatorDetails {
|
|
2166
|
+
enum delegationStatus {
|
|
2167
|
+
PENDING = "pending"
|
|
2168
|
+
}
|
|
2169
|
+
}
|
|
2012
2170
|
|
|
2013
2171
|
type ListDelegatorDetailsResponse = {
|
|
2014
2172
|
/**
|
|
@@ -2046,49 +2204,83 @@ type ListSubnetsResponse = {
|
|
|
2046
2204
|
type Rewards = {
|
|
2047
2205
|
validationRewardAmount: string;
|
|
2048
2206
|
delegationRewardAmount: string;
|
|
2207
|
+
rewardAddresses?: Array<string>;
|
|
2208
|
+
rewardTxHash?: string;
|
|
2049
2209
|
};
|
|
2050
2210
|
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
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;
|
|
2228
|
+
};
|
|
2056
2229
|
|
|
2057
2230
|
type ActiveValidatorDetails = {
|
|
2058
2231
|
nodeId: string;
|
|
2232
|
+
subnetId: string;
|
|
2059
2233
|
amountStaked: string;
|
|
2060
|
-
delegationFee
|
|
2234
|
+
delegationFee?: string;
|
|
2061
2235
|
startTimestamp: number;
|
|
2062
2236
|
endTimestamp: number;
|
|
2063
|
-
validationStatus: ValidationStatusType;
|
|
2064
2237
|
stakePercentage: number;
|
|
2065
2238
|
delegatorCount: number;
|
|
2066
|
-
amountDelegated
|
|
2239
|
+
amountDelegated?: string;
|
|
2067
2240
|
uptimePerformance: number;
|
|
2068
|
-
avalancheGoVersion
|
|
2069
|
-
delegationCapacity
|
|
2241
|
+
avalancheGoVersion?: string;
|
|
2242
|
+
delegationCapacity?: string;
|
|
2070
2243
|
potentialRewards: Rewards;
|
|
2244
|
+
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2245
|
+
validatorHealth: ValidatorHealthDetails;
|
|
2071
2246
|
};
|
|
2247
|
+
declare namespace ActiveValidatorDetails {
|
|
2248
|
+
enum validationStatus {
|
|
2249
|
+
ACTIVE = "active"
|
|
2250
|
+
}
|
|
2251
|
+
}
|
|
2072
2252
|
|
|
2073
2253
|
type CompletedValidatorDetails = {
|
|
2074
2254
|
nodeId: string;
|
|
2255
|
+
subnetId: string;
|
|
2075
2256
|
amountStaked: string;
|
|
2076
|
-
delegationFee
|
|
2257
|
+
delegationFee?: string;
|
|
2077
2258
|
startTimestamp: number;
|
|
2078
2259
|
endTimestamp: number;
|
|
2079
|
-
validationStatus: ValidationStatusType;
|
|
2080
2260
|
delegatorCount: number;
|
|
2081
2261
|
rewards: Rewards;
|
|
2262
|
+
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2082
2263
|
};
|
|
2264
|
+
declare namespace CompletedValidatorDetails {
|
|
2265
|
+
enum validationStatus {
|
|
2266
|
+
COMPLETED = "completed"
|
|
2267
|
+
}
|
|
2268
|
+
}
|
|
2083
2269
|
|
|
2084
2270
|
type PendingValidatorDetails = {
|
|
2085
2271
|
nodeId: string;
|
|
2272
|
+
subnetId: string;
|
|
2086
2273
|
amountStaked: string;
|
|
2087
|
-
delegationFee
|
|
2274
|
+
delegationFee?: string;
|
|
2088
2275
|
startTimestamp: number;
|
|
2089
2276
|
endTimestamp: number;
|
|
2090
|
-
validationStatus:
|
|
2277
|
+
validationStatus: PendingValidatorDetails.validationStatus;
|
|
2091
2278
|
};
|
|
2279
|
+
declare namespace PendingValidatorDetails {
|
|
2280
|
+
enum validationStatus {
|
|
2281
|
+
PENDING = "pending"
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
2092
2284
|
|
|
2093
2285
|
type ListValidatorDetailsResponse = {
|
|
2094
2286
|
/**
|
|
@@ -2096,7 +2288,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2096
2288
|
*/
|
|
2097
2289
|
nextPageToken?: string;
|
|
2098
2290
|
/**
|
|
2099
|
-
* The list of
|
|
2291
|
+
* The list of validator Details.
|
|
2100
2292
|
*/
|
|
2101
2293
|
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2102
2294
|
};
|
|
@@ -2106,6 +2298,12 @@ declare enum Network {
|
|
|
2106
2298
|
FUJI = "fuji"
|
|
2107
2299
|
}
|
|
2108
2300
|
|
|
2301
|
+
declare enum ValidationStatusType {
|
|
2302
|
+
COMPLETED = "completed",
|
|
2303
|
+
ACTIVE = "active",
|
|
2304
|
+
PENDING = "pending"
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2109
2307
|
type XChainAssetDetails = {
|
|
2110
2308
|
/**
|
|
2111
2309
|
* Unique ID for an asset.
|
|
@@ -2248,7 +2446,7 @@ declare class PrimaryNetworkService {
|
|
|
2248
2446
|
* @returns ListValidatorDetailsResponse
|
|
2249
2447
|
* @throws ApiError
|
|
2250
2448
|
*/
|
|
2251
|
-
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus,
|
|
2449
|
+
listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
|
|
2252
2450
|
/**
|
|
2253
2451
|
* Either mainnet or a testnet.
|
|
2254
2452
|
*/
|
|
@@ -2261,6 +2459,30 @@ declare class PrimaryNetworkService {
|
|
|
2261
2459
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2262
2460
|
*/
|
|
2263
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;
|
|
2264
2486
|
/**
|
|
2265
2487
|
* A comma separated list of node ids to filter by.
|
|
2266
2488
|
*/
|
|
@@ -2274,9 +2496,9 @@ declare class PrimaryNetworkService {
|
|
|
2274
2496
|
*/
|
|
2275
2497
|
validationStatus?: ValidationStatusType;
|
|
2276
2498
|
/**
|
|
2277
|
-
* The
|
|
2499
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2278
2500
|
*/
|
|
2279
|
-
|
|
2501
|
+
subnetId?: string;
|
|
2280
2502
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2281
2503
|
/**
|
|
2282
2504
|
* Get single validator details
|
|
@@ -2316,7 +2538,7 @@ declare class PrimaryNetworkService {
|
|
|
2316
2538
|
* @returns ListDelegatorDetailsResponse
|
|
2317
2539
|
* @throws ApiError
|
|
2318
2540
|
*/
|
|
2319
|
-
listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus,
|
|
2541
|
+
listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2320
2542
|
/**
|
|
2321
2543
|
* Either mainnet or a testnet.
|
|
2322
2544
|
*/
|
|
@@ -2329,6 +2551,10 @@ declare class PrimaryNetworkService {
|
|
|
2329
2551
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2330
2552
|
*/
|
|
2331
2553
|
pageToken?: string;
|
|
2554
|
+
/**
|
|
2555
|
+
* A comma separated list of reward addresses to filter by.
|
|
2556
|
+
*/
|
|
2557
|
+
rewardAddresses?: string;
|
|
2332
2558
|
/**
|
|
2333
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.
|
|
2334
2560
|
*/
|
|
@@ -2337,10 +2563,6 @@ declare class PrimaryNetworkService {
|
|
|
2337
2563
|
* Delegation status of the node.
|
|
2338
2564
|
*/
|
|
2339
2565
|
delegationStatus?: DelegationStatusType;
|
|
2340
|
-
/**
|
|
2341
|
-
* A comma separated list of reward addresses to filter by.
|
|
2342
|
-
*/
|
|
2343
|
-
rewardAddresses?: string;
|
|
2344
2566
|
/**
|
|
2345
2567
|
* A comma separated list of node ids to filter by.
|
|
2346
2568
|
*/
|
|
@@ -2692,7 +2914,8 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2692
2914
|
|
|
2693
2915
|
declare enum RewardType {
|
|
2694
2916
|
VALIDATOR = "VALIDATOR",
|
|
2695
|
-
DELEGATOR = "DELEGATOR"
|
|
2917
|
+
DELEGATOR = "DELEGATOR",
|
|
2918
|
+
VALIDATOR_FEE = "VALIDATOR_FEE"
|
|
2696
2919
|
}
|
|
2697
2920
|
|
|
2698
2921
|
type HistoricalReward = {
|
|
@@ -2758,7 +2981,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2758
2981
|
* @returns ListPendingRewardsResponse
|
|
2759
2982
|
* @throws ApiError
|
|
2760
2983
|
*/
|
|
2761
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
2984
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
2762
2985
|
/**
|
|
2763
2986
|
* Either mainnet or a testnet.
|
|
2764
2987
|
*/
|
|
@@ -2775,6 +2998,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2775
2998
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2776
2999
|
*/
|
|
2777
3000
|
pageToken?: string;
|
|
3001
|
+
/**
|
|
3002
|
+
* A comma separated list of node ids to filter by.
|
|
3003
|
+
*/
|
|
3004
|
+
nodeIds?: string;
|
|
2778
3005
|
/**
|
|
2779
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.
|
|
2780
3007
|
*/
|
|
@@ -2786,7 +3013,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2786
3013
|
* @returns ListHistoricalRewardsResponse
|
|
2787
3014
|
* @throws ApiError
|
|
2788
3015
|
*/
|
|
2789
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
3016
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
2790
3017
|
/**
|
|
2791
3018
|
* Either mainnet or a testnet.
|
|
2792
3019
|
*/
|
|
@@ -2803,6 +3030,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2803
3030
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2804
3031
|
*/
|
|
2805
3032
|
pageToken?: string;
|
|
3033
|
+
/**
|
|
3034
|
+
* A comma separated list of node ids to filter by.
|
|
3035
|
+
*/
|
|
3036
|
+
nodeIds?: string;
|
|
2806
3037
|
/**
|
|
2807
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.
|
|
2808
3039
|
*/
|
|
@@ -3057,6 +3288,7 @@ declare enum PChainTransactionType {
|
|
|
3057
3288
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3058
3289
|
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3059
3290
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3291
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3060
3292
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3061
3293
|
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3062
3294
|
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
@@ -3159,6 +3391,7 @@ type PChainTransaction = {
|
|
|
3159
3391
|
*/
|
|
3160
3392
|
estimatedReward?: string;
|
|
3161
3393
|
rewardTxHash?: string;
|
|
3394
|
+
rewardAddresses?: Array<string>;
|
|
3162
3395
|
memo?: string;
|
|
3163
3396
|
/**
|
|
3164
3397
|
* Present for RewardValidatorTx
|
|
@@ -3328,6 +3561,7 @@ declare enum PrimaryNetworkTxType {
|
|
|
3328
3561
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3329
3562
|
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3330
3563
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3564
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3331
3565
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3332
3566
|
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3333
3567
|
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
@@ -3665,9 +3899,11 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3665
3899
|
|
|
3666
3900
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3667
3901
|
declare class Glacier {
|
|
3902
|
+
readonly default: DefaultService;
|
|
3668
3903
|
readonly evmBalances: EvmBalancesService;
|
|
3669
3904
|
readonly evmBlocks: EvmBlocksService;
|
|
3670
3905
|
readonly evmChains: EvmChainsService;
|
|
3906
|
+
readonly evmContracts: EvmContractsService;
|
|
3671
3907
|
readonly evmTransactions: EvmTransactionsService;
|
|
3672
3908
|
readonly healthCheck: HealthCheckService;
|
|
3673
3909
|
readonly nfTs: NfTsService;
|
|
@@ -3700,4 +3936,4 @@ declare class ApiError extends Error {
|
|
|
3700
3936
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3701
3937
|
}
|
|
3702
3938
|
|
|
3703
|
-
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, 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 };
|