@avalabs/glacier-sdk 2.8.0-canary.9b911e2.0 → 2.8.0-canary.aeb3588.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 +292 -193
- package/dist/index.js +158 -51
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +29 -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 +6 -3
- package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +6 -2
- package/esm/generated/models/ActiveValidatorDetails.js +8 -0
- package/esm/generated/models/ChainInfo.d.ts +1 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -3
- package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +6 -2
- package/esm/generated/models/CompletedValidatorDetails.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/PendingDelegatorDetails.d.ts +6 -3
- package/esm/generated/models/PendingDelegatorDetails.js +8 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +6 -3
- package/esm/generated/models/PendingValidatorDetails.js +8 -0
- package/esm/generated/models/PricingProviders.d.ts +5 -0
- package/esm/generated/models/UnknownContract.d.ts +0 -1
- package/esm/generated/services/EvmContractsService.d.ts +29 -0
- package/esm/generated/services/EvmContractsService.js +20 -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/PrimaryNetworkService.d.ts +1 -5
- package/esm/generated/services/PrimaryNetworkService.js +1 -3
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +5 -1
- package/esm/index.d.ts +3 -0
- package/esm/index.js +8 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -680,6 +680,7 @@ type GetChainResponse = {
|
|
|
680
680
|
utilityAddresses?: UtilityAddresses;
|
|
681
681
|
networkToken: NetworkToken;
|
|
682
682
|
chainLogoUri?: string;
|
|
683
|
+
private?: boolean;
|
|
683
684
|
};
|
|
684
685
|
|
|
685
686
|
type ChainInfo = {
|
|
@@ -701,6 +702,7 @@ type ChainInfo = {
|
|
|
701
702
|
utilityAddresses?: UtilityAddresses;
|
|
702
703
|
networkToken: NetworkToken;
|
|
703
704
|
chainLogoUri?: string;
|
|
705
|
+
private?: boolean;
|
|
704
706
|
};
|
|
705
707
|
|
|
706
708
|
type ListChainsResponse = {
|
|
@@ -741,6 +743,199 @@ declare class EvmChainsService {
|
|
|
741
743
|
}): CancelablePromise<GetChainResponse>;
|
|
742
744
|
}
|
|
743
745
|
|
|
746
|
+
type ContractDeploymentDetails = {
|
|
747
|
+
txHash: string;
|
|
748
|
+
/**
|
|
749
|
+
* The address that initiated the transaction which deployed this contract.
|
|
750
|
+
*/
|
|
751
|
+
deployerAddress: string;
|
|
752
|
+
/**
|
|
753
|
+
* 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.
|
|
754
|
+
*/
|
|
755
|
+
deployerContractAddress?: string;
|
|
756
|
+
};
|
|
757
|
+
|
|
758
|
+
type ImageAsset = {
|
|
759
|
+
assetId?: string;
|
|
760
|
+
/**
|
|
761
|
+
* OUTPUT ONLY
|
|
762
|
+
*/
|
|
763
|
+
imageUri?: string;
|
|
764
|
+
};
|
|
765
|
+
|
|
766
|
+
type PricingProviders = {
|
|
767
|
+
coingeckoCoinId?: string;
|
|
768
|
+
};
|
|
769
|
+
|
|
770
|
+
declare enum ResourceLinkType {
|
|
771
|
+
BLOG = "Blog",
|
|
772
|
+
COIN_GECKO = "CoinGecko",
|
|
773
|
+
COIN_MARKET_CAP = "CoinMarketCap",
|
|
774
|
+
DISCORD = "Discord",
|
|
775
|
+
DOCUMENTATION = "Documentation",
|
|
776
|
+
FACEBOOK = "Facebook",
|
|
777
|
+
GITHUB = "Github",
|
|
778
|
+
INSTAGRAM = "Instagram",
|
|
779
|
+
LINKED_IN = "LinkedIn",
|
|
780
|
+
MEDIUM = "Medium",
|
|
781
|
+
REDDIT = "Reddit",
|
|
782
|
+
SUPPORT = "Support",
|
|
783
|
+
TELEGRAM = "Telegram",
|
|
784
|
+
TIK_TOK = "TikTok",
|
|
785
|
+
TWITTER = "Twitter",
|
|
786
|
+
WEBSITE = "Website",
|
|
787
|
+
WHITEPAPER = "Whitepaper",
|
|
788
|
+
YOUTUBE = "Youtube"
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
type ResourceLink = {
|
|
792
|
+
type: ResourceLinkType;
|
|
793
|
+
url: string;
|
|
794
|
+
};
|
|
795
|
+
|
|
796
|
+
type Erc1155Contract = {
|
|
797
|
+
/**
|
|
798
|
+
* The contract name.
|
|
799
|
+
*/
|
|
800
|
+
name?: string;
|
|
801
|
+
description?: string;
|
|
802
|
+
officialSite?: string;
|
|
803
|
+
email?: string;
|
|
804
|
+
logoAsset?: ImageAsset;
|
|
805
|
+
bannerAsset?: ImageAsset;
|
|
806
|
+
color?: string;
|
|
807
|
+
resourceLinks?: Array<ResourceLink>;
|
|
808
|
+
tags?: Array<string>;
|
|
809
|
+
/**
|
|
810
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
811
|
+
*/
|
|
812
|
+
address: string;
|
|
813
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
814
|
+
ercType: Erc1155Contract.ercType;
|
|
815
|
+
/**
|
|
816
|
+
* The contract symbol.
|
|
817
|
+
*/
|
|
818
|
+
symbol?: string;
|
|
819
|
+
pricingProviders?: PricingProviders;
|
|
820
|
+
};
|
|
821
|
+
declare namespace Erc1155Contract {
|
|
822
|
+
enum ercType {
|
|
823
|
+
ERC_1155 = "ERC-1155"
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
type Erc20Contract = {
|
|
828
|
+
/**
|
|
829
|
+
* The contract name.
|
|
830
|
+
*/
|
|
831
|
+
name?: string;
|
|
832
|
+
description?: string;
|
|
833
|
+
officialSite?: string;
|
|
834
|
+
email?: string;
|
|
835
|
+
logoAsset?: ImageAsset;
|
|
836
|
+
bannerAsset?: ImageAsset;
|
|
837
|
+
color?: string;
|
|
838
|
+
resourceLinks?: Array<ResourceLink>;
|
|
839
|
+
tags?: Array<string>;
|
|
840
|
+
/**
|
|
841
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
842
|
+
*/
|
|
843
|
+
address: string;
|
|
844
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
845
|
+
ercType: Erc20Contract.ercType;
|
|
846
|
+
/**
|
|
847
|
+
* The contract symbol.
|
|
848
|
+
*/
|
|
849
|
+
symbol?: string;
|
|
850
|
+
/**
|
|
851
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
852
|
+
*/
|
|
853
|
+
decimals: number;
|
|
854
|
+
pricingProviders?: PricingProviders;
|
|
855
|
+
};
|
|
856
|
+
declare namespace Erc20Contract {
|
|
857
|
+
enum ercType {
|
|
858
|
+
ERC_20 = "ERC-20"
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
type Erc721Contract = {
|
|
863
|
+
/**
|
|
864
|
+
* The contract name.
|
|
865
|
+
*/
|
|
866
|
+
name?: string;
|
|
867
|
+
description?: string;
|
|
868
|
+
officialSite?: string;
|
|
869
|
+
email?: string;
|
|
870
|
+
logoAsset?: ImageAsset;
|
|
871
|
+
bannerAsset?: ImageAsset;
|
|
872
|
+
color?: string;
|
|
873
|
+
resourceLinks?: Array<ResourceLink>;
|
|
874
|
+
tags?: Array<string>;
|
|
875
|
+
/**
|
|
876
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
877
|
+
*/
|
|
878
|
+
address: string;
|
|
879
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
880
|
+
ercType: Erc721Contract.ercType;
|
|
881
|
+
/**
|
|
882
|
+
* The contract symbol.
|
|
883
|
+
*/
|
|
884
|
+
symbol?: string;
|
|
885
|
+
};
|
|
886
|
+
declare namespace Erc721Contract {
|
|
887
|
+
enum ercType {
|
|
888
|
+
ERC_721 = "ERC-721"
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
type UnknownContract = {
|
|
893
|
+
/**
|
|
894
|
+
* The contract name.
|
|
895
|
+
*/
|
|
896
|
+
name?: string;
|
|
897
|
+
description?: string;
|
|
898
|
+
officialSite?: string;
|
|
899
|
+
email?: string;
|
|
900
|
+
logoAsset?: ImageAsset;
|
|
901
|
+
bannerAsset?: ImageAsset;
|
|
902
|
+
color?: string;
|
|
903
|
+
resourceLinks?: Array<ResourceLink>;
|
|
904
|
+
tags?: Array<string>;
|
|
905
|
+
/**
|
|
906
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
907
|
+
*/
|
|
908
|
+
address: string;
|
|
909
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
910
|
+
ercType: UnknownContract.ercType;
|
|
911
|
+
};
|
|
912
|
+
declare namespace UnknownContract {
|
|
913
|
+
enum ercType {
|
|
914
|
+
UNKNOWN = "UNKNOWN"
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
declare class EvmContractsService {
|
|
919
|
+
readonly httpRequest: BaseHttpRequest;
|
|
920
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
921
|
+
/**
|
|
922
|
+
* Get contract metadata
|
|
923
|
+
* Gets metadata about the contract at the given address.
|
|
924
|
+
* @returns any
|
|
925
|
+
* @throws ApiError
|
|
926
|
+
*/
|
|
927
|
+
getContractMetadata({ chainId, address, }: {
|
|
928
|
+
/**
|
|
929
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
930
|
+
*/
|
|
931
|
+
chainId: string;
|
|
932
|
+
/**
|
|
933
|
+
* Contract address on the relevant chain.
|
|
934
|
+
*/
|
|
935
|
+
address: string;
|
|
936
|
+
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
937
|
+
}
|
|
938
|
+
|
|
744
939
|
type Erc1155Token = {
|
|
745
940
|
/**
|
|
746
941
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
@@ -999,185 +1194,12 @@ type GetTransactionResponse = {
|
|
|
999
1194
|
nativeTransaction: FullNativeTransactionDetails;
|
|
1000
1195
|
};
|
|
1001
1196
|
|
|
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>;
|
|
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
|
-
};
|
|
1076
|
-
declare namespace Erc1155Contract {
|
|
1077
|
-
enum ercType {
|
|
1078
|
-
ERC_1155 = "ERC-1155"
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
type Erc20Contract = {
|
|
1083
|
-
/**
|
|
1084
|
-
* The contract name.
|
|
1085
|
-
*/
|
|
1086
|
-
name?: string;
|
|
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>;
|
|
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
|
-
};
|
|
1111
|
-
declare namespace Erc20Contract {
|
|
1112
|
-
enum ercType {
|
|
1113
|
-
ERC_20 = "ERC-20"
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
|
-
type Erc721Contract = {
|
|
1118
|
-
/**
|
|
1119
|
-
* The contract name.
|
|
1120
|
-
*/
|
|
1121
|
-
name?: string;
|
|
1122
|
-
description?: string;
|
|
1123
|
-
officialSite?: string;
|
|
1124
|
-
email?: string;
|
|
1125
|
-
logoAsset?: ImageAsset;
|
|
1126
|
-
bannerAsset?: ImageAsset;
|
|
1127
|
-
color?: string;
|
|
1128
|
-
coingeckoCoinId?: 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
|
-
coingeckoCoinId?: string;
|
|
1160
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1161
|
-
tags?: Array<string>;
|
|
1162
|
-
/**
|
|
1163
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1164
|
-
*/
|
|
1165
|
-
address: string;
|
|
1166
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1167
|
-
ercType: UnknownContract.ercType;
|
|
1168
|
-
};
|
|
1169
|
-
declare namespace UnknownContract {
|
|
1170
|
-
enum ercType {
|
|
1171
|
-
UNKNOWN = "UNKNOWN"
|
|
1172
|
-
}
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
1197
|
type ListContractsResponse = {
|
|
1176
1198
|
/**
|
|
1177
1199
|
* 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
1200
|
*/
|
|
1179
1201
|
nextPageToken?: string;
|
|
1180
|
-
contracts: Array<(
|
|
1202
|
+
contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1181
1203
|
};
|
|
1182
1204
|
|
|
1183
1205
|
type Erc1155Transfer = {
|
|
@@ -1731,6 +1753,51 @@ declare class HealthCheckService {
|
|
|
1731
1753
|
}>;
|
|
1732
1754
|
}
|
|
1733
1755
|
|
|
1756
|
+
declare class NfTsService {
|
|
1757
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1758
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1759
|
+
/**
|
|
1760
|
+
* Reindex NFT metadata
|
|
1761
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
1762
|
+
* @returns any
|
|
1763
|
+
* @throws ApiError
|
|
1764
|
+
*/
|
|
1765
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
1766
|
+
/**
|
|
1767
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1768
|
+
*/
|
|
1769
|
+
chainId: string;
|
|
1770
|
+
/**
|
|
1771
|
+
* Contract address on the relevant chain.
|
|
1772
|
+
*/
|
|
1773
|
+
address: string;
|
|
1774
|
+
/**
|
|
1775
|
+
* TokenId on the contract
|
|
1776
|
+
*/
|
|
1777
|
+
tokenId: string;
|
|
1778
|
+
}): CancelablePromise<any>;
|
|
1779
|
+
/**
|
|
1780
|
+
* Get token details
|
|
1781
|
+
* Gets token details for a specific token of an NFT contract.
|
|
1782
|
+
* @returns any
|
|
1783
|
+
* @throws ApiError
|
|
1784
|
+
*/
|
|
1785
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
1786
|
+
/**
|
|
1787
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1788
|
+
*/
|
|
1789
|
+
chainId: string;
|
|
1790
|
+
/**
|
|
1791
|
+
* Contract address on the relevant chain.
|
|
1792
|
+
*/
|
|
1793
|
+
address: string;
|
|
1794
|
+
/**
|
|
1795
|
+
* TokenId on the contract
|
|
1796
|
+
*/
|
|
1797
|
+
tokenId: string;
|
|
1798
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1734
1801
|
type EvmNetworkOptions = {
|
|
1735
1802
|
addresses: Array<string>;
|
|
1736
1803
|
includeChains: Array<string>;
|
|
@@ -1921,10 +1988,15 @@ type ActiveDelegatorDetails = {
|
|
|
1921
1988
|
delegationFee: string;
|
|
1922
1989
|
startTimestamp: number;
|
|
1923
1990
|
endTimestamp: number;
|
|
1924
|
-
delegationStatus: DelegationStatusType;
|
|
1925
1991
|
estimatedGrossReward: string;
|
|
1926
1992
|
estimatedNetReward: string;
|
|
1993
|
+
delegationStatus: ActiveDelegatorDetails.delegationStatus;
|
|
1927
1994
|
};
|
|
1995
|
+
declare namespace ActiveDelegatorDetails {
|
|
1996
|
+
enum delegationStatus {
|
|
1997
|
+
ACTIVE = "active"
|
|
1998
|
+
}
|
|
1999
|
+
}
|
|
1928
2000
|
|
|
1929
2001
|
type CompletedDelegatorDetails = {
|
|
1930
2002
|
txHash: string;
|
|
@@ -1933,10 +2005,15 @@ type CompletedDelegatorDetails = {
|
|
|
1933
2005
|
delegationFee: string;
|
|
1934
2006
|
startTimestamp: number;
|
|
1935
2007
|
endTimestamp: number;
|
|
1936
|
-
delegationStatus: DelegationStatusType;
|
|
1937
2008
|
grossReward: string;
|
|
1938
2009
|
netReward: string;
|
|
2010
|
+
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
1939
2011
|
};
|
|
2012
|
+
declare namespace CompletedDelegatorDetails {
|
|
2013
|
+
enum delegationStatus {
|
|
2014
|
+
COMPLETED = "completed"
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
1940
2017
|
|
|
1941
2018
|
type PendingDelegatorDetails = {
|
|
1942
2019
|
txHash: string;
|
|
@@ -1945,10 +2022,15 @@ type PendingDelegatorDetails = {
|
|
|
1945
2022
|
delegationFee: string;
|
|
1946
2023
|
startTimestamp: number;
|
|
1947
2024
|
endTimestamp: number;
|
|
1948
|
-
delegationStatus: DelegationStatusType;
|
|
1949
2025
|
estimatedGrossReward: string;
|
|
1950
2026
|
estimatedNetReward: string;
|
|
2027
|
+
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
1951
2028
|
};
|
|
2029
|
+
declare namespace PendingDelegatorDetails {
|
|
2030
|
+
enum delegationStatus {
|
|
2031
|
+
PENDING = "pending"
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
1952
2034
|
|
|
1953
2035
|
type ListDelegatorDetailsResponse = {
|
|
1954
2036
|
/**
|
|
@@ -1988,19 +2070,12 @@ type Rewards = {
|
|
|
1988
2070
|
delegationRewardAmount: string;
|
|
1989
2071
|
};
|
|
1990
2072
|
|
|
1991
|
-
declare enum ValidationStatusType {
|
|
1992
|
-
COMPLETED = "completed",
|
|
1993
|
-
ACTIVE = "active",
|
|
1994
|
-
PENDING = "pending"
|
|
1995
|
-
}
|
|
1996
|
-
|
|
1997
2073
|
type ActiveValidatorDetails = {
|
|
1998
2074
|
nodeId: string;
|
|
1999
2075
|
amountStaked: string;
|
|
2000
2076
|
delegationFee: string;
|
|
2001
2077
|
startTimestamp: number;
|
|
2002
2078
|
endTimestamp: number;
|
|
2003
|
-
validationStatus: ValidationStatusType;
|
|
2004
2079
|
stakePercentage: number;
|
|
2005
2080
|
delegatorCount: number;
|
|
2006
2081
|
amountDelegated: string;
|
|
@@ -2008,7 +2083,13 @@ type ActiveValidatorDetails = {
|
|
|
2008
2083
|
avalancheGoVersion: string;
|
|
2009
2084
|
delegationCapacity: string;
|
|
2010
2085
|
potentialRewards: Rewards;
|
|
2086
|
+
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2011
2087
|
};
|
|
2088
|
+
declare namespace ActiveValidatorDetails {
|
|
2089
|
+
enum validationStatus {
|
|
2090
|
+
ACTIVE = "active"
|
|
2091
|
+
}
|
|
2092
|
+
}
|
|
2012
2093
|
|
|
2013
2094
|
type CompletedValidatorDetails = {
|
|
2014
2095
|
nodeId: string;
|
|
@@ -2016,10 +2097,15 @@ type CompletedValidatorDetails = {
|
|
|
2016
2097
|
delegationFee: string;
|
|
2017
2098
|
startTimestamp: number;
|
|
2018
2099
|
endTimestamp: number;
|
|
2019
|
-
validationStatus: ValidationStatusType;
|
|
2020
2100
|
delegatorCount: number;
|
|
2021
2101
|
rewards: Rewards;
|
|
2102
|
+
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2022
2103
|
};
|
|
2104
|
+
declare namespace CompletedValidatorDetails {
|
|
2105
|
+
enum validationStatus {
|
|
2106
|
+
COMPLETED = "completed"
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2023
2109
|
|
|
2024
2110
|
type PendingValidatorDetails = {
|
|
2025
2111
|
nodeId: string;
|
|
@@ -2027,8 +2113,13 @@ type PendingValidatorDetails = {
|
|
|
2027
2113
|
delegationFee: string;
|
|
2028
2114
|
startTimestamp: number;
|
|
2029
2115
|
endTimestamp: number;
|
|
2030
|
-
validationStatus:
|
|
2116
|
+
validationStatus: PendingValidatorDetails.validationStatus;
|
|
2031
2117
|
};
|
|
2118
|
+
declare namespace PendingValidatorDetails {
|
|
2119
|
+
enum validationStatus {
|
|
2120
|
+
PENDING = "pending"
|
|
2121
|
+
}
|
|
2122
|
+
}
|
|
2032
2123
|
|
|
2033
2124
|
type ListValidatorDetailsResponse = {
|
|
2034
2125
|
/**
|
|
@@ -2046,6 +2137,12 @@ declare enum Network {
|
|
|
2046
2137
|
FUJI = "fuji"
|
|
2047
2138
|
}
|
|
2048
2139
|
|
|
2140
|
+
declare enum ValidationStatusType {
|
|
2141
|
+
COMPLETED = "completed",
|
|
2142
|
+
ACTIVE = "active",
|
|
2143
|
+
PENDING = "pending"
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2049
2146
|
type XChainAssetDetails = {
|
|
2050
2147
|
/**
|
|
2051
2148
|
* Unique ID for an asset.
|
|
@@ -2256,15 +2353,11 @@ declare class PrimaryNetworkService {
|
|
|
2256
2353
|
* @returns ListDelegatorDetailsResponse
|
|
2257
2354
|
* @throws ApiError
|
|
2258
2355
|
*/
|
|
2259
|
-
listDelegators({ network,
|
|
2356
|
+
listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus, rewardAddresses, nodeIds, }: {
|
|
2260
2357
|
/**
|
|
2261
2358
|
* Either mainnet or a testnet.
|
|
2262
2359
|
*/
|
|
2263
2360
|
network: Network;
|
|
2264
|
-
/**
|
|
2265
|
-
* A primary network (P or X chain) nodeId.
|
|
2266
|
-
*/
|
|
2267
|
-
nodeId: string;
|
|
2268
2361
|
/**
|
|
2269
2362
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2270
2363
|
*/
|
|
@@ -3311,7 +3404,11 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3311
3404
|
}): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
|
|
3312
3405
|
/**
|
|
3313
3406
|
* List latest transactions
|
|
3314
|
-
* Lists the latest transactions on one of the Primary Network chains.
|
|
3407
|
+
* Lists the latest transactions on one of the Primary Network chains.
|
|
3408
|
+
*
|
|
3409
|
+
* Transactions are filterable by addresses.
|
|
3410
|
+
*
|
|
3411
|
+
* 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
3412
|
* @returns any
|
|
3316
3413
|
* @throws ApiError
|
|
3317
3414
|
*/
|
|
@@ -3608,8 +3705,10 @@ declare class Glacier {
|
|
|
3608
3705
|
readonly evmBalances: EvmBalancesService;
|
|
3609
3706
|
readonly evmBlocks: EvmBlocksService;
|
|
3610
3707
|
readonly evmChains: EvmChainsService;
|
|
3708
|
+
readonly evmContracts: EvmContractsService;
|
|
3611
3709
|
readonly evmTransactions: EvmTransactionsService;
|
|
3612
3710
|
readonly healthCheck: HealthCheckService;
|
|
3711
|
+
readonly nfTs: NfTsService;
|
|
3613
3712
|
readonly operations: OperationsService;
|
|
3614
3713
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
3615
3714
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -3639,4 +3738,4 @@ declare class ApiError extends Error {
|
|
|
3639
3738
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3640
3739
|
}
|
|
3641
3740
|
|
|
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 };
|
|
3741
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorsDetails, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };
|