@avalabs/glacier-sdk 2.8.0-canary.f35ad12.0 → 2.8.0-canary.f6c173d.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 +572 -272
- package/dist/index.js +240 -55
- package/esm/generated/Glacier.d.ts +6 -0
- package/esm/generated/Glacier.js +32 -10
- package/esm/generated/core/ApiError.js +5 -0
- package/esm/generated/core/CancelablePromise.js +11 -6
- package/esm/generated/core/request.js +14 -31
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +14 -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 +9 -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/Erc1155Contract.d.ts +2 -1
- package/esm/generated/models/Erc20Contract.d.ts +2 -1
- package/esm/generated/models/Erc721Contract.d.ts +0 -1
- package/esm/generated/models/GetChainResponse.d.ts +1 -0
- package/esm/generated/models/ImageAsset.d.ts +0 -3
- 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 +9 -4
- package/esm/generated/models/PendingValidatorDetails.js +8 -0
- package/esm/generated/models/PricingProviders.d.ts +5 -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/UnknownContract.d.ts +0 -1
- 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 +51 -0
- package/esm/generated/services/NfTsService.js +37 -0
- 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 -12
- package/esm/generated/services/PrimaryNetworkService.js +17 -7
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +5 -1
- package/esm/index.d.ts +11 -0
- package/esm/index.js +13 -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.
|
|
@@ -907,277 +1235,104 @@ type FullNativeTransactionDetails = {
|
|
|
907
1235
|
*/
|
|
908
1236
|
txHash: string;
|
|
909
1237
|
/**
|
|
910
|
-
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
911
|
-
*/
|
|
912
|
-
txStatus: string;
|
|
913
|
-
/**
|
|
914
|
-
* The transaction type.
|
|
915
|
-
*/
|
|
916
|
-
txType: number;
|
|
917
|
-
/**
|
|
918
|
-
* The gas limit set for the transaction.
|
|
919
|
-
*/
|
|
920
|
-
gasLimit: string;
|
|
921
|
-
/**
|
|
922
|
-
* The amount of gas used.
|
|
923
|
-
*/
|
|
924
|
-
gasUsed: string;
|
|
925
|
-
/**
|
|
926
|
-
* The gas price denominated by the number of decimals of the native token.
|
|
927
|
-
*/
|
|
928
|
-
gasPrice: string;
|
|
929
|
-
/**
|
|
930
|
-
* The nonce used by the sender of the transaction.
|
|
931
|
-
*/
|
|
932
|
-
nonce: string;
|
|
933
|
-
from: RichAddress;
|
|
934
|
-
to: RichAddress;
|
|
935
|
-
method?: Method;
|
|
936
|
-
value: string;
|
|
937
|
-
/**
|
|
938
|
-
* The data sent for the transaction.
|
|
939
|
-
*/
|
|
940
|
-
input: string;
|
|
941
|
-
baseFeePerGas: string;
|
|
942
|
-
maxFeePerGas?: string;
|
|
943
|
-
maxPriorityFeePerGas?: string;
|
|
944
|
-
};
|
|
945
|
-
|
|
946
|
-
declare enum InternalTransactionOpCall {
|
|
947
|
-
UNKNOWN = "UNKNOWN",
|
|
948
|
-
CALL = "CALL",
|
|
949
|
-
CREATE = "CREATE",
|
|
950
|
-
CREATE2 = "CREATE2",
|
|
951
|
-
CALLCODE = "CALLCODE",
|
|
952
|
-
DELEGATECALL = "DELEGATECALL",
|
|
953
|
-
STATICCALL = "STATICCALL"
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
type InternalTransactionDetails = {
|
|
957
|
-
from: RichAddress;
|
|
958
|
-
to: RichAddress;
|
|
959
|
-
internalTxType: InternalTransactionOpCall;
|
|
960
|
-
value: string;
|
|
961
|
-
/**
|
|
962
|
-
* True if the internal transaction was reverted.
|
|
963
|
-
*/
|
|
964
|
-
isReverted: boolean;
|
|
965
|
-
gasUsed: string;
|
|
966
|
-
gasLimit: string;
|
|
967
|
-
};
|
|
968
|
-
|
|
969
|
-
type NetworkTokenDetails = {
|
|
970
|
-
networkToken: NetworkToken;
|
|
971
|
-
/**
|
|
972
|
-
* The current token price, if available.
|
|
973
|
-
*/
|
|
974
|
-
currentPrice?: Money;
|
|
975
|
-
/**
|
|
976
|
-
* The historical token price at the time the transaction occured, if available. Note, this is only provided if the transaction occured more than 24 hours ago.
|
|
977
|
-
*/
|
|
978
|
-
historicalPrice?: Money;
|
|
979
|
-
};
|
|
980
|
-
|
|
981
|
-
type GetTransactionResponse = {
|
|
982
|
-
/**
|
|
983
|
-
* The list of ERC-20 transfers.
|
|
984
|
-
*/
|
|
985
|
-
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
986
|
-
/**
|
|
987
|
-
* The list of ERC-721 transfers.
|
|
988
|
-
*/
|
|
989
|
-
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
990
|
-
/**
|
|
991
|
-
* The list of ERC-1155 transfers.
|
|
992
|
-
*/
|
|
993
|
-
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
994
|
-
/**
|
|
995
|
-
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
996
|
-
*/
|
|
997
|
-
internalTransactions?: Array<InternalTransactionDetails>;
|
|
998
|
-
networkTokenDetails: NetworkTokenDetails;
|
|
999
|
-
nativeTransaction: FullNativeTransactionDetails;
|
|
1000
|
-
};
|
|
1001
|
-
|
|
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
|
-
/**
|
|
1016
|
-
* INPUT ONLY
|
|
1017
|
-
*/
|
|
1018
|
-
assetId?: string;
|
|
1019
|
-
/**
|
|
1020
|
-
* OUTPUT ONLY
|
|
1021
|
-
*/
|
|
1022
|
-
imageUri?: string;
|
|
1023
|
-
};
|
|
1024
|
-
|
|
1025
|
-
declare enum ResourceLinkType {
|
|
1026
|
-
BLOG = "Blog",
|
|
1027
|
-
COIN_GECKO = "CoinGecko",
|
|
1028
|
-
COIN_MARKET_CAP = "CoinMarketCap",
|
|
1029
|
-
DISCORD = "Discord",
|
|
1030
|
-
DOCUMENTATION = "Documentation",
|
|
1031
|
-
FACEBOOK = "Facebook",
|
|
1032
|
-
GITHUB = "Github",
|
|
1033
|
-
INSTAGRAM = "Instagram",
|
|
1034
|
-
LINKED_IN = "LinkedIn",
|
|
1035
|
-
MEDIUM = "Medium",
|
|
1036
|
-
REDDIT = "Reddit",
|
|
1037
|
-
SUPPORT = "Support",
|
|
1038
|
-
TELEGRAM = "Telegram",
|
|
1039
|
-
TIK_TOK = "TikTok",
|
|
1040
|
-
TWITTER = "Twitter",
|
|
1041
|
-
WEBSITE = "Website",
|
|
1042
|
-
WHITEPAPER = "Whitepaper",
|
|
1043
|
-
YOUTUBE = "Youtube"
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
type ResourceLink = {
|
|
1047
|
-
type: ResourceLinkType;
|
|
1048
|
-
url: string;
|
|
1049
|
-
};
|
|
1050
|
-
|
|
1051
|
-
type Erc1155Contract = {
|
|
1052
|
-
/**
|
|
1053
|
-
* The contract name.
|
|
1054
|
-
*/
|
|
1055
|
-
name?: string;
|
|
1056
|
-
description?: string;
|
|
1057
|
-
officialSite?: string;
|
|
1058
|
-
email?: string;
|
|
1059
|
-
logoAsset?: ImageAsset;
|
|
1060
|
-
bannerAsset?: ImageAsset;
|
|
1061
|
-
color?: string;
|
|
1062
|
-
coingeckoCoinId?: string;
|
|
1063
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1064
|
-
tags?: Array<string>;
|
|
1238
|
+
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1239
|
+
*/
|
|
1240
|
+
txStatus: string;
|
|
1065
1241
|
/**
|
|
1066
|
-
*
|
|
1242
|
+
* The transaction type.
|
|
1067
1243
|
*/
|
|
1068
|
-
|
|
1069
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1070
|
-
ercType: Erc1155Contract.ercType;
|
|
1244
|
+
txType: number;
|
|
1071
1245
|
/**
|
|
1072
|
-
* The
|
|
1246
|
+
* The gas limit set for the transaction.
|
|
1073
1247
|
*/
|
|
1074
|
-
|
|
1075
|
-
};
|
|
1076
|
-
declare namespace Erc1155Contract {
|
|
1077
|
-
enum ercType {
|
|
1078
|
-
ERC_1155 = "ERC-1155"
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
type Erc20Contract = {
|
|
1248
|
+
gasLimit: string;
|
|
1083
1249
|
/**
|
|
1084
|
-
* The
|
|
1250
|
+
* The amount of gas used.
|
|
1085
1251
|
*/
|
|
1086
|
-
|
|
1087
|
-
description?: string;
|
|
1088
|
-
officialSite?: string;
|
|
1089
|
-
email?: string;
|
|
1090
|
-
logoAsset?: ImageAsset;
|
|
1091
|
-
bannerAsset?: ImageAsset;
|
|
1092
|
-
color?: string;
|
|
1093
|
-
coingeckoCoinId?: string;
|
|
1094
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1095
|
-
tags?: Array<string>;
|
|
1252
|
+
gasUsed: string;
|
|
1096
1253
|
/**
|
|
1097
|
-
*
|
|
1254
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1098
1255
|
*/
|
|
1099
|
-
|
|
1100
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1101
|
-
ercType: Erc20Contract.ercType;
|
|
1256
|
+
gasPrice: string;
|
|
1102
1257
|
/**
|
|
1103
|
-
* The
|
|
1258
|
+
* The nonce used by the sender of the transaction.
|
|
1104
1259
|
*/
|
|
1105
|
-
|
|
1260
|
+
nonce: string;
|
|
1261
|
+
from: RichAddress;
|
|
1262
|
+
to: RichAddress;
|
|
1263
|
+
method?: Method;
|
|
1264
|
+
value: string;
|
|
1106
1265
|
/**
|
|
1107
|
-
* The
|
|
1266
|
+
* The data sent for the transaction.
|
|
1108
1267
|
*/
|
|
1109
|
-
|
|
1268
|
+
input: string;
|
|
1269
|
+
baseFeePerGas: string;
|
|
1270
|
+
maxFeePerGas?: string;
|
|
1271
|
+
maxPriorityFeePerGas?: string;
|
|
1110
1272
|
};
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1273
|
+
|
|
1274
|
+
declare enum InternalTransactionOpCall {
|
|
1275
|
+
UNKNOWN = "UNKNOWN",
|
|
1276
|
+
CALL = "CALL",
|
|
1277
|
+
CREATE = "CREATE",
|
|
1278
|
+
CREATE2 = "CREATE2",
|
|
1279
|
+
CALLCODE = "CALLCODE",
|
|
1280
|
+
DELEGATECALL = "DELEGATECALL",
|
|
1281
|
+
STATICCALL = "STATICCALL"
|
|
1115
1282
|
}
|
|
1116
1283
|
|
|
1117
|
-
type
|
|
1284
|
+
type InternalTransactionDetails = {
|
|
1285
|
+
from: RichAddress;
|
|
1286
|
+
to: RichAddress;
|
|
1287
|
+
internalTxType: InternalTransactionOpCall;
|
|
1288
|
+
value: string;
|
|
1118
1289
|
/**
|
|
1119
|
-
*
|
|
1290
|
+
* True if the internal transaction was reverted.
|
|
1120
1291
|
*/
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
coingeckoCoinId?: string;
|
|
1129
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1130
|
-
tags?: Array<string>;
|
|
1292
|
+
isReverted: boolean;
|
|
1293
|
+
gasUsed: string;
|
|
1294
|
+
gasLimit: string;
|
|
1295
|
+
};
|
|
1296
|
+
|
|
1297
|
+
type NetworkTokenDetails = {
|
|
1298
|
+
networkToken: NetworkToken;
|
|
1131
1299
|
/**
|
|
1132
|
-
*
|
|
1300
|
+
* The current token price, if available.
|
|
1133
1301
|
*/
|
|
1134
|
-
|
|
1135
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1136
|
-
ercType: Erc721Contract.ercType;
|
|
1302
|
+
currentPrice?: Money;
|
|
1137
1303
|
/**
|
|
1138
|
-
* The
|
|
1304
|
+
* The historical token price at the time the transaction occured, if available. Note, this is only provided if the transaction occured more than 24 hours ago.
|
|
1139
1305
|
*/
|
|
1140
|
-
|
|
1306
|
+
historicalPrice?: Money;
|
|
1141
1307
|
};
|
|
1142
|
-
declare namespace Erc721Contract {
|
|
1143
|
-
enum ercType {
|
|
1144
|
-
ERC_721 = "ERC-721"
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
1308
|
|
|
1148
|
-
type
|
|
1309
|
+
type GetTransactionResponse = {
|
|
1149
1310
|
/**
|
|
1150
|
-
* The
|
|
1311
|
+
* The list of ERC-20 transfers.
|
|
1151
1312
|
*/
|
|
1152
|
-
|
|
1153
|
-
description?: string;
|
|
1154
|
-
officialSite?: string;
|
|
1155
|
-
email?: string;
|
|
1156
|
-
logoAsset?: ImageAsset;
|
|
1157
|
-
bannerAsset?: ImageAsset;
|
|
1158
|
-
color?: string;
|
|
1159
|
-
coingeckoCoinId?: string;
|
|
1160
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1161
|
-
tags?: Array<string>;
|
|
1313
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1162
1314
|
/**
|
|
1163
|
-
*
|
|
1315
|
+
* The list of ERC-721 transfers.
|
|
1164
1316
|
*/
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1317
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1318
|
+
/**
|
|
1319
|
+
* The list of ERC-1155 transfers.
|
|
1320
|
+
*/
|
|
1321
|
+
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1322
|
+
/**
|
|
1323
|
+
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
1324
|
+
*/
|
|
1325
|
+
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1326
|
+
networkTokenDetails: NetworkTokenDetails;
|
|
1327
|
+
nativeTransaction: FullNativeTransactionDetails;
|
|
1168
1328
|
};
|
|
1169
|
-
declare namespace UnknownContract {
|
|
1170
|
-
enum ercType {
|
|
1171
|
-
UNKNOWN = "UNKNOWN"
|
|
1172
|
-
}
|
|
1173
|
-
}
|
|
1174
1329
|
|
|
1175
1330
|
type ListContractsResponse = {
|
|
1176
1331
|
/**
|
|
1177
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.
|
|
1178
1333
|
*/
|
|
1179
1334
|
nextPageToken?: string;
|
|
1180
|
-
contracts: Array<(
|
|
1335
|
+
contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1181
1336
|
};
|
|
1182
1337
|
|
|
1183
1338
|
type Erc1155Transfer = {
|
|
@@ -1731,6 +1886,51 @@ declare class HealthCheckService {
|
|
|
1731
1886
|
}>;
|
|
1732
1887
|
}
|
|
1733
1888
|
|
|
1889
|
+
declare class NfTsService {
|
|
1890
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1891
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1892
|
+
/**
|
|
1893
|
+
* Reindex NFT metadata
|
|
1894
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
1895
|
+
* @returns any
|
|
1896
|
+
* @throws ApiError
|
|
1897
|
+
*/
|
|
1898
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
1899
|
+
/**
|
|
1900
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1901
|
+
*/
|
|
1902
|
+
chainId: string;
|
|
1903
|
+
/**
|
|
1904
|
+
* Contract address on the relevant chain.
|
|
1905
|
+
*/
|
|
1906
|
+
address: string;
|
|
1907
|
+
/**
|
|
1908
|
+
* TokenId on the contract
|
|
1909
|
+
*/
|
|
1910
|
+
tokenId: string;
|
|
1911
|
+
}): CancelablePromise<any>;
|
|
1912
|
+
/**
|
|
1913
|
+
* Get token details
|
|
1914
|
+
* Gets token details for a specific token of an NFT contract.
|
|
1915
|
+
* @returns any
|
|
1916
|
+
* @throws ApiError
|
|
1917
|
+
*/
|
|
1918
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
1919
|
+
/**
|
|
1920
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1921
|
+
*/
|
|
1922
|
+
chainId: string;
|
|
1923
|
+
/**
|
|
1924
|
+
* Contract address on the relevant chain.
|
|
1925
|
+
*/
|
|
1926
|
+
address: string;
|
|
1927
|
+
/**
|
|
1928
|
+
* TokenId on the contract
|
|
1929
|
+
*/
|
|
1930
|
+
tokenId: string;
|
|
1931
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1734
1934
|
type EvmNetworkOptions = {
|
|
1735
1935
|
addresses: Array<string>;
|
|
1736
1936
|
includeChains: Array<string>;
|
|
@@ -1916,39 +2116,57 @@ type ListBlockchainsResponse = {
|
|
|
1916
2116
|
|
|
1917
2117
|
type ActiveDelegatorDetails = {
|
|
1918
2118
|
txHash: string;
|
|
2119
|
+
nodeId: string;
|
|
1919
2120
|
rewardAddresses: Array<string>;
|
|
1920
2121
|
amountDelegated: string;
|
|
1921
2122
|
delegationFee: string;
|
|
1922
2123
|
startTimestamp: number;
|
|
1923
2124
|
endTimestamp: number;
|
|
1924
|
-
delegationStatus: DelegationStatusType;
|
|
1925
2125
|
estimatedGrossReward: string;
|
|
1926
2126
|
estimatedNetReward: string;
|
|
2127
|
+
delegationStatus: ActiveDelegatorDetails.delegationStatus;
|
|
1927
2128
|
};
|
|
2129
|
+
declare namespace ActiveDelegatorDetails {
|
|
2130
|
+
enum delegationStatus {
|
|
2131
|
+
ACTIVE = "active"
|
|
2132
|
+
}
|
|
2133
|
+
}
|
|
1928
2134
|
|
|
1929
2135
|
type CompletedDelegatorDetails = {
|
|
1930
2136
|
txHash: string;
|
|
2137
|
+
nodeId: string;
|
|
1931
2138
|
rewardAddresses: Array<string>;
|
|
1932
2139
|
amountDelegated: string;
|
|
1933
2140
|
delegationFee: string;
|
|
1934
2141
|
startTimestamp: number;
|
|
1935
2142
|
endTimestamp: number;
|
|
1936
|
-
delegationStatus: DelegationStatusType;
|
|
1937
2143
|
grossReward: string;
|
|
1938
2144
|
netReward: string;
|
|
2145
|
+
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
1939
2146
|
};
|
|
2147
|
+
declare namespace CompletedDelegatorDetails {
|
|
2148
|
+
enum delegationStatus {
|
|
2149
|
+
COMPLETED = "completed"
|
|
2150
|
+
}
|
|
2151
|
+
}
|
|
1940
2152
|
|
|
1941
2153
|
type PendingDelegatorDetails = {
|
|
1942
2154
|
txHash: string;
|
|
2155
|
+
nodeId: string;
|
|
1943
2156
|
rewardAddresses: Array<string>;
|
|
1944
2157
|
amountDelegated: string;
|
|
1945
2158
|
delegationFee: string;
|
|
1946
2159
|
startTimestamp: number;
|
|
1947
2160
|
endTimestamp: number;
|
|
1948
|
-
delegationStatus: DelegationStatusType;
|
|
1949
2161
|
estimatedGrossReward: string;
|
|
1950
2162
|
estimatedNetReward: string;
|
|
2163
|
+
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
1951
2164
|
};
|
|
2165
|
+
declare namespace PendingDelegatorDetails {
|
|
2166
|
+
enum delegationStatus {
|
|
2167
|
+
PENDING = "pending"
|
|
2168
|
+
}
|
|
2169
|
+
}
|
|
1952
2170
|
|
|
1953
2171
|
type ListDelegatorDetailsResponse = {
|
|
1954
2172
|
/**
|
|
@@ -1986,49 +2204,86 @@ type ListSubnetsResponse = {
|
|
|
1986
2204
|
type Rewards = {
|
|
1987
2205
|
validationRewardAmount: string;
|
|
1988
2206
|
delegationRewardAmount: string;
|
|
2207
|
+
rewardAddresses?: Array<string>;
|
|
2208
|
+
rewardTxHash?: string;
|
|
1989
2209
|
};
|
|
1990
2210
|
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
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
|
+
};
|
|
1996
2229
|
|
|
1997
2230
|
type ActiveValidatorDetails = {
|
|
2231
|
+
txHash: string;
|
|
1998
2232
|
nodeId: string;
|
|
2233
|
+
subnetId: string;
|
|
1999
2234
|
amountStaked: string;
|
|
2000
|
-
delegationFee
|
|
2235
|
+
delegationFee?: string;
|
|
2001
2236
|
startTimestamp: number;
|
|
2002
2237
|
endTimestamp: number;
|
|
2003
|
-
validationStatus: ValidationStatusType;
|
|
2004
2238
|
stakePercentage: number;
|
|
2005
2239
|
delegatorCount: number;
|
|
2006
|
-
amountDelegated
|
|
2240
|
+
amountDelegated?: string;
|
|
2007
2241
|
uptimePerformance: number;
|
|
2008
|
-
avalancheGoVersion
|
|
2009
|
-
delegationCapacity
|
|
2242
|
+
avalancheGoVersion?: string;
|
|
2243
|
+
delegationCapacity?: string;
|
|
2010
2244
|
potentialRewards: Rewards;
|
|
2245
|
+
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2246
|
+
validatorHealth: ValidatorHealthDetails;
|
|
2011
2247
|
};
|
|
2248
|
+
declare namespace ActiveValidatorDetails {
|
|
2249
|
+
enum validationStatus {
|
|
2250
|
+
ACTIVE = "active"
|
|
2251
|
+
}
|
|
2252
|
+
}
|
|
2012
2253
|
|
|
2013
2254
|
type CompletedValidatorDetails = {
|
|
2255
|
+
txHash: string;
|
|
2014
2256
|
nodeId: string;
|
|
2257
|
+
subnetId: string;
|
|
2015
2258
|
amountStaked: string;
|
|
2016
|
-
delegationFee
|
|
2259
|
+
delegationFee?: string;
|
|
2017
2260
|
startTimestamp: number;
|
|
2018
2261
|
endTimestamp: number;
|
|
2019
|
-
validationStatus: ValidationStatusType;
|
|
2020
2262
|
delegatorCount: number;
|
|
2021
2263
|
rewards: Rewards;
|
|
2264
|
+
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2022
2265
|
};
|
|
2266
|
+
declare namespace CompletedValidatorDetails {
|
|
2267
|
+
enum validationStatus {
|
|
2268
|
+
COMPLETED = "completed"
|
|
2269
|
+
}
|
|
2270
|
+
}
|
|
2023
2271
|
|
|
2024
2272
|
type PendingValidatorDetails = {
|
|
2273
|
+
txHash: string;
|
|
2025
2274
|
nodeId: string;
|
|
2275
|
+
subnetId: string;
|
|
2026
2276
|
amountStaked: string;
|
|
2027
|
-
delegationFee
|
|
2277
|
+
delegationFee?: string;
|
|
2028
2278
|
startTimestamp: number;
|
|
2029
2279
|
endTimestamp: number;
|
|
2030
|
-
validationStatus:
|
|
2280
|
+
validationStatus: PendingValidatorDetails.validationStatus;
|
|
2031
2281
|
};
|
|
2282
|
+
declare namespace PendingValidatorDetails {
|
|
2283
|
+
enum validationStatus {
|
|
2284
|
+
PENDING = "pending"
|
|
2285
|
+
}
|
|
2286
|
+
}
|
|
2032
2287
|
|
|
2033
2288
|
type ListValidatorDetailsResponse = {
|
|
2034
2289
|
/**
|
|
@@ -2036,7 +2291,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2036
2291
|
*/
|
|
2037
2292
|
nextPageToken?: string;
|
|
2038
2293
|
/**
|
|
2039
|
-
* The list of
|
|
2294
|
+
* The list of validator Details.
|
|
2040
2295
|
*/
|
|
2041
2296
|
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2042
2297
|
};
|
|
@@ -2046,6 +2301,12 @@ declare enum Network {
|
|
|
2046
2301
|
FUJI = "fuji"
|
|
2047
2302
|
}
|
|
2048
2303
|
|
|
2304
|
+
declare enum ValidationStatusType {
|
|
2305
|
+
COMPLETED = "completed",
|
|
2306
|
+
ACTIVE = "active",
|
|
2307
|
+
PENDING = "pending"
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2049
2310
|
type XChainAssetDetails = {
|
|
2050
2311
|
/**
|
|
2051
2312
|
* Unique ID for an asset.
|
|
@@ -2188,7 +2449,7 @@ declare class PrimaryNetworkService {
|
|
|
2188
2449
|
* @returns ListValidatorDetailsResponse
|
|
2189
2450
|
* @throws ApiError
|
|
2190
2451
|
*/
|
|
2191
|
-
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus,
|
|
2452
|
+
listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
|
|
2192
2453
|
/**
|
|
2193
2454
|
* Either mainnet or a testnet.
|
|
2194
2455
|
*/
|
|
@@ -2201,6 +2462,30 @@ declare class PrimaryNetworkService {
|
|
|
2201
2462
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2202
2463
|
*/
|
|
2203
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;
|
|
2204
2489
|
/**
|
|
2205
2490
|
* A comma separated list of node ids to filter by.
|
|
2206
2491
|
*/
|
|
@@ -2214,9 +2499,9 @@ declare class PrimaryNetworkService {
|
|
|
2214
2499
|
*/
|
|
2215
2500
|
validationStatus?: ValidationStatusType;
|
|
2216
2501
|
/**
|
|
2217
|
-
* The
|
|
2502
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2218
2503
|
*/
|
|
2219
|
-
|
|
2504
|
+
subnetId?: string;
|
|
2220
2505
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2221
2506
|
/**
|
|
2222
2507
|
* Get single validator details
|
|
@@ -2256,15 +2541,11 @@ declare class PrimaryNetworkService {
|
|
|
2256
2541
|
* @returns ListDelegatorDetailsResponse
|
|
2257
2542
|
* @throws ApiError
|
|
2258
2543
|
*/
|
|
2259
|
-
listDelegators({ network,
|
|
2544
|
+
listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2260
2545
|
/**
|
|
2261
2546
|
* Either mainnet or a testnet.
|
|
2262
2547
|
*/
|
|
2263
2548
|
network: Network;
|
|
2264
|
-
/**
|
|
2265
|
-
* A primary network (P or X chain) nodeId.
|
|
2266
|
-
*/
|
|
2267
|
-
nodeId: string;
|
|
2268
2549
|
/**
|
|
2269
2550
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2270
2551
|
*/
|
|
@@ -2273,6 +2554,10 @@ declare class PrimaryNetworkService {
|
|
|
2273
2554
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2274
2555
|
*/
|
|
2275
2556
|
pageToken?: string;
|
|
2557
|
+
/**
|
|
2558
|
+
* A comma separated list of reward addresses to filter by.
|
|
2559
|
+
*/
|
|
2560
|
+
rewardAddresses?: string;
|
|
2276
2561
|
/**
|
|
2277
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.
|
|
2278
2563
|
*/
|
|
@@ -2281,10 +2566,6 @@ declare class PrimaryNetworkService {
|
|
|
2281
2566
|
* Delegation status of the node.
|
|
2282
2567
|
*/
|
|
2283
2568
|
delegationStatus?: DelegationStatusType;
|
|
2284
|
-
/**
|
|
2285
|
-
* A comma separated list of reward addresses to filter by.
|
|
2286
|
-
*/
|
|
2287
|
-
rewardAddresses?: string;
|
|
2288
2569
|
/**
|
|
2289
2570
|
* A comma separated list of node ids to filter by.
|
|
2290
2571
|
*/
|
|
@@ -2636,7 +2917,8 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2636
2917
|
|
|
2637
2918
|
declare enum RewardType {
|
|
2638
2919
|
VALIDATOR = "VALIDATOR",
|
|
2639
|
-
DELEGATOR = "DELEGATOR"
|
|
2920
|
+
DELEGATOR = "DELEGATOR",
|
|
2921
|
+
VALIDATOR_FEE = "VALIDATOR_FEE"
|
|
2640
2922
|
}
|
|
2641
2923
|
|
|
2642
2924
|
type HistoricalReward = {
|
|
@@ -2702,7 +2984,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2702
2984
|
* @returns ListPendingRewardsResponse
|
|
2703
2985
|
* @throws ApiError
|
|
2704
2986
|
*/
|
|
2705
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
2987
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
2706
2988
|
/**
|
|
2707
2989
|
* Either mainnet or a testnet.
|
|
2708
2990
|
*/
|
|
@@ -2719,6 +3001,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2719
3001
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2720
3002
|
*/
|
|
2721
3003
|
pageToken?: string;
|
|
3004
|
+
/**
|
|
3005
|
+
* A comma separated list of node ids to filter by.
|
|
3006
|
+
*/
|
|
3007
|
+
nodeIds?: string;
|
|
2722
3008
|
/**
|
|
2723
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.
|
|
2724
3010
|
*/
|
|
@@ -2730,7 +3016,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2730
3016
|
* @returns ListHistoricalRewardsResponse
|
|
2731
3017
|
* @throws ApiError
|
|
2732
3018
|
*/
|
|
2733
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
3019
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
2734
3020
|
/**
|
|
2735
3021
|
* Either mainnet or a testnet.
|
|
2736
3022
|
*/
|
|
@@ -2747,6 +3033,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2747
3033
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2748
3034
|
*/
|
|
2749
3035
|
pageToken?: string;
|
|
3036
|
+
/**
|
|
3037
|
+
* A comma separated list of node ids to filter by.
|
|
3038
|
+
*/
|
|
3039
|
+
nodeIds?: string;
|
|
2750
3040
|
/**
|
|
2751
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.
|
|
2752
3042
|
*/
|
|
@@ -3001,6 +3291,7 @@ declare enum PChainTransactionType {
|
|
|
3001
3291
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3002
3292
|
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3003
3293
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3294
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3004
3295
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3005
3296
|
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3006
3297
|
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
@@ -3103,6 +3394,7 @@ type PChainTransaction = {
|
|
|
3103
3394
|
*/
|
|
3104
3395
|
estimatedReward?: string;
|
|
3105
3396
|
rewardTxHash?: string;
|
|
3397
|
+
rewardAddresses?: Array<string>;
|
|
3106
3398
|
memo?: string;
|
|
3107
3399
|
/**
|
|
3108
3400
|
* Present for RewardValidatorTx
|
|
@@ -3272,6 +3564,7 @@ declare enum PrimaryNetworkTxType {
|
|
|
3272
3564
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3273
3565
|
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3274
3566
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3567
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3275
3568
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3276
3569
|
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3277
3570
|
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
@@ -3311,7 +3604,11 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3311
3604
|
}): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
|
|
3312
3605
|
/**
|
|
3313
3606
|
* List latest transactions
|
|
3314
|
-
* Lists the latest transactions on one of the Primary Network chains.
|
|
3607
|
+
* Lists the latest transactions on one of the Primary Network chains.
|
|
3608
|
+
*
|
|
3609
|
+
* Transactions are filterable by addresses.
|
|
3610
|
+
*
|
|
3611
|
+
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
3315
3612
|
* @returns any
|
|
3316
3613
|
* @throws ApiError
|
|
3317
3614
|
*/
|
|
@@ -3605,11 +3902,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3605
3902
|
|
|
3606
3903
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3607
3904
|
declare class Glacier {
|
|
3905
|
+
readonly default: DefaultService;
|
|
3608
3906
|
readonly evmBalances: EvmBalancesService;
|
|
3609
3907
|
readonly evmBlocks: EvmBlocksService;
|
|
3610
3908
|
readonly evmChains: EvmChainsService;
|
|
3909
|
+
readonly evmContracts: EvmContractsService;
|
|
3611
3910
|
readonly evmTransactions: EvmTransactionsService;
|
|
3612
3911
|
readonly healthCheck: HealthCheckService;
|
|
3912
|
+
readonly nfTs: NfTsService;
|
|
3613
3913
|
readonly operations: OperationsService;
|
|
3614
3914
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
3615
3915
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -3639,4 +3939,4 @@ declare class ApiError extends Error {
|
|
|
3639
3939
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3640
3940
|
}
|
|
3641
3941
|
|
|
3642
|
-
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, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, 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 };
|