@avalabs/glacier-sdk 2.8.0-canary.e49772d.0 → 2.8.0-canary.f0b0684.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 +305 -185
- package/dist/index.js +116 -0
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +6 -0
- 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/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/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.d.ts +20 -0
- package/esm/generated/services/EvmTransactionsService.js +13 -0
- package/esm/generated/services/NfTsService.d.ts +51 -0
- package/esm/generated/services/NfTsService.js +37 -0
- 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
|
@@ -741,6 +741,199 @@ declare class EvmChainsService {
|
|
|
741
741
|
}): CancelablePromise<GetChainResponse>;
|
|
742
742
|
}
|
|
743
743
|
|
|
744
|
+
type ContractDeploymentDetails = {
|
|
745
|
+
txHash: string;
|
|
746
|
+
/**
|
|
747
|
+
* The address that initiated the transaction which deployed this contract.
|
|
748
|
+
*/
|
|
749
|
+
deployerAddress: string;
|
|
750
|
+
/**
|
|
751
|
+
* The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
|
|
752
|
+
*/
|
|
753
|
+
deployerContractAddress?: string;
|
|
754
|
+
};
|
|
755
|
+
|
|
756
|
+
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 Erc1155Contract = {
|
|
795
|
+
/**
|
|
796
|
+
* The contract name.
|
|
797
|
+
*/
|
|
798
|
+
name?: string;
|
|
799
|
+
description?: string;
|
|
800
|
+
officialSite?: string;
|
|
801
|
+
email?: string;
|
|
802
|
+
logoAsset?: ImageAsset;
|
|
803
|
+
bannerAsset?: ImageAsset;
|
|
804
|
+
color?: string;
|
|
805
|
+
resourceLinks?: Array<ResourceLink>;
|
|
806
|
+
tags?: Array<string>;
|
|
807
|
+
/**
|
|
808
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
809
|
+
*/
|
|
810
|
+
address: string;
|
|
811
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
812
|
+
ercType: Erc1155Contract.ercType;
|
|
813
|
+
/**
|
|
814
|
+
* The contract symbol.
|
|
815
|
+
*/
|
|
816
|
+
symbol?: string;
|
|
817
|
+
pricingProviders?: PricingProviders;
|
|
818
|
+
};
|
|
819
|
+
declare namespace Erc1155Contract {
|
|
820
|
+
enum ercType {
|
|
821
|
+
ERC_1155 = "ERC-1155"
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
type Erc20Contract = {
|
|
826
|
+
/**
|
|
827
|
+
* The contract name.
|
|
828
|
+
*/
|
|
829
|
+
name?: string;
|
|
830
|
+
description?: string;
|
|
831
|
+
officialSite?: string;
|
|
832
|
+
email?: string;
|
|
833
|
+
logoAsset?: ImageAsset;
|
|
834
|
+
bannerAsset?: ImageAsset;
|
|
835
|
+
color?: string;
|
|
836
|
+
resourceLinks?: Array<ResourceLink>;
|
|
837
|
+
tags?: Array<string>;
|
|
838
|
+
/**
|
|
839
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
840
|
+
*/
|
|
841
|
+
address: string;
|
|
842
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
843
|
+
ercType: Erc20Contract.ercType;
|
|
844
|
+
/**
|
|
845
|
+
* The contract symbol.
|
|
846
|
+
*/
|
|
847
|
+
symbol?: string;
|
|
848
|
+
/**
|
|
849
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
850
|
+
*/
|
|
851
|
+
decimals: number;
|
|
852
|
+
pricingProviders?: PricingProviders;
|
|
853
|
+
};
|
|
854
|
+
declare namespace Erc20Contract {
|
|
855
|
+
enum ercType {
|
|
856
|
+
ERC_20 = "ERC-20"
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
type Erc721Contract = {
|
|
861
|
+
/**
|
|
862
|
+
* The contract name.
|
|
863
|
+
*/
|
|
864
|
+
name?: string;
|
|
865
|
+
description?: string;
|
|
866
|
+
officialSite?: string;
|
|
867
|
+
email?: string;
|
|
868
|
+
logoAsset?: ImageAsset;
|
|
869
|
+
bannerAsset?: ImageAsset;
|
|
870
|
+
color?: string;
|
|
871
|
+
resourceLinks?: Array<ResourceLink>;
|
|
872
|
+
tags?: Array<string>;
|
|
873
|
+
/**
|
|
874
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
875
|
+
*/
|
|
876
|
+
address: string;
|
|
877
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
878
|
+
ercType: Erc721Contract.ercType;
|
|
879
|
+
/**
|
|
880
|
+
* The contract symbol.
|
|
881
|
+
*/
|
|
882
|
+
symbol?: string;
|
|
883
|
+
};
|
|
884
|
+
declare namespace Erc721Contract {
|
|
885
|
+
enum ercType {
|
|
886
|
+
ERC_721 = "ERC-721"
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
type UnknownContract = {
|
|
891
|
+
/**
|
|
892
|
+
* The contract name.
|
|
893
|
+
*/
|
|
894
|
+
name?: string;
|
|
895
|
+
description?: string;
|
|
896
|
+
officialSite?: string;
|
|
897
|
+
email?: string;
|
|
898
|
+
logoAsset?: ImageAsset;
|
|
899
|
+
bannerAsset?: ImageAsset;
|
|
900
|
+
color?: string;
|
|
901
|
+
resourceLinks?: Array<ResourceLink>;
|
|
902
|
+
tags?: Array<string>;
|
|
903
|
+
/**
|
|
904
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
905
|
+
*/
|
|
906
|
+
address: string;
|
|
907
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
908
|
+
ercType: UnknownContract.ercType;
|
|
909
|
+
};
|
|
910
|
+
declare namespace UnknownContract {
|
|
911
|
+
enum ercType {
|
|
912
|
+
UNKNOWN = "UNKNOWN"
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
declare class EvmContractsService {
|
|
917
|
+
readonly httpRequest: BaseHttpRequest;
|
|
918
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
919
|
+
/**
|
|
920
|
+
* Get contract metadata
|
|
921
|
+
* Gets metadata about the contract at the given address.
|
|
922
|
+
* @returns any
|
|
923
|
+
* @throws ApiError
|
|
924
|
+
*/
|
|
925
|
+
getContractMetadata({ chainId, address, }: {
|
|
926
|
+
/**
|
|
927
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
928
|
+
*/
|
|
929
|
+
chainId: string;
|
|
930
|
+
/**
|
|
931
|
+
* Contract address on the relevant chain.
|
|
932
|
+
*/
|
|
933
|
+
address: string;
|
|
934
|
+
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
935
|
+
}
|
|
936
|
+
|
|
744
937
|
type Erc1155Token = {
|
|
745
938
|
/**
|
|
746
939
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
@@ -999,182 +1192,12 @@ type GetTransactionResponse = {
|
|
|
999
1192
|
nativeTransaction: FullNativeTransactionDetails;
|
|
1000
1193
|
};
|
|
1001
1194
|
|
|
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
|
-
declare enum ResourceLinkType {
|
|
1023
|
-
BLOG = "Blog",
|
|
1024
|
-
COIN_GECKO = "CoinGecko",
|
|
1025
|
-
COIN_MARKET_CAP = "CoinMarketCap",
|
|
1026
|
-
DISCORD = "Discord",
|
|
1027
|
-
DOCUMENTATION = "Documentation",
|
|
1028
|
-
FACEBOOK = "Facebook",
|
|
1029
|
-
GITHUB = "Github",
|
|
1030
|
-
INSTAGRAM = "Instagram",
|
|
1031
|
-
LINKED_IN = "LinkedIn",
|
|
1032
|
-
MEDIUM = "Medium",
|
|
1033
|
-
REDDIT = "Reddit",
|
|
1034
|
-
SUPPORT = "Support",
|
|
1035
|
-
TELEGRAM = "Telegram",
|
|
1036
|
-
TIK_TOK = "TikTok",
|
|
1037
|
-
TWITTER = "Twitter",
|
|
1038
|
-
WEBSITE = "Website",
|
|
1039
|
-
WHITEPAPER = "Whitepaper",
|
|
1040
|
-
YOUTUBE = "Youtube"
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
|
-
type ResourceLink = {
|
|
1044
|
-
type: ResourceLinkType;
|
|
1045
|
-
url: string;
|
|
1046
|
-
};
|
|
1047
|
-
|
|
1048
|
-
type Erc1155Contract = {
|
|
1049
|
-
/**
|
|
1050
|
-
* The contract name.
|
|
1051
|
-
*/
|
|
1052
|
-
name?: string;
|
|
1053
|
-
description?: string;
|
|
1054
|
-
officialSite?: string;
|
|
1055
|
-
email?: string;
|
|
1056
|
-
logoAsset?: ImageAsset;
|
|
1057
|
-
bannerAsset?: ImageAsset;
|
|
1058
|
-
color?: string;
|
|
1059
|
-
coingeckoCoinId?: string;
|
|
1060
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1061
|
-
tags?: Array<string>;
|
|
1062
|
-
/**
|
|
1063
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1064
|
-
*/
|
|
1065
|
-
address: string;
|
|
1066
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1067
|
-
ercType: Erc1155Contract.ercType;
|
|
1068
|
-
/**
|
|
1069
|
-
* The contract symbol.
|
|
1070
|
-
*/
|
|
1071
|
-
symbol?: string;
|
|
1072
|
-
};
|
|
1073
|
-
declare namespace Erc1155Contract {
|
|
1074
|
-
enum ercType {
|
|
1075
|
-
ERC_1155 = "ERC-1155"
|
|
1076
|
-
}
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1079
|
-
type Erc20Contract = {
|
|
1080
|
-
/**
|
|
1081
|
-
* The contract name.
|
|
1082
|
-
*/
|
|
1083
|
-
name?: string;
|
|
1084
|
-
description?: string;
|
|
1085
|
-
officialSite?: string;
|
|
1086
|
-
email?: string;
|
|
1087
|
-
logoAsset?: ImageAsset;
|
|
1088
|
-
bannerAsset?: ImageAsset;
|
|
1089
|
-
color?: string;
|
|
1090
|
-
coingeckoCoinId?: string;
|
|
1091
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1092
|
-
tags?: Array<string>;
|
|
1093
|
-
/**
|
|
1094
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1095
|
-
*/
|
|
1096
|
-
address: string;
|
|
1097
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1098
|
-
ercType: Erc20Contract.ercType;
|
|
1099
|
-
/**
|
|
1100
|
-
* The contract symbol.
|
|
1101
|
-
*/
|
|
1102
|
-
symbol?: string;
|
|
1103
|
-
/**
|
|
1104
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1105
|
-
*/
|
|
1106
|
-
decimals: number;
|
|
1107
|
-
};
|
|
1108
|
-
declare namespace Erc20Contract {
|
|
1109
|
-
enum ercType {
|
|
1110
|
-
ERC_20 = "ERC-20"
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
type Erc721Contract = {
|
|
1115
|
-
/**
|
|
1116
|
-
* The contract name.
|
|
1117
|
-
*/
|
|
1118
|
-
name?: string;
|
|
1119
|
-
description?: string;
|
|
1120
|
-
officialSite?: string;
|
|
1121
|
-
email?: string;
|
|
1122
|
-
logoAsset?: ImageAsset;
|
|
1123
|
-
bannerAsset?: ImageAsset;
|
|
1124
|
-
color?: string;
|
|
1125
|
-
coingeckoCoinId?: string;
|
|
1126
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1127
|
-
tags?: Array<string>;
|
|
1128
|
-
/**
|
|
1129
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1130
|
-
*/
|
|
1131
|
-
address: string;
|
|
1132
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1133
|
-
ercType: Erc721Contract.ercType;
|
|
1134
|
-
/**
|
|
1135
|
-
* The contract symbol.
|
|
1136
|
-
*/
|
|
1137
|
-
symbol?: string;
|
|
1138
|
-
};
|
|
1139
|
-
declare namespace Erc721Contract {
|
|
1140
|
-
enum ercType {
|
|
1141
|
-
ERC_721 = "ERC-721"
|
|
1142
|
-
}
|
|
1143
|
-
}
|
|
1144
|
-
|
|
1145
|
-
type UnknownContract = {
|
|
1146
|
-
/**
|
|
1147
|
-
* The contract name.
|
|
1148
|
-
*/
|
|
1149
|
-
name?: string;
|
|
1150
|
-
description?: string;
|
|
1151
|
-
officialSite?: string;
|
|
1152
|
-
email?: string;
|
|
1153
|
-
logoAsset?: ImageAsset;
|
|
1154
|
-
bannerAsset?: ImageAsset;
|
|
1155
|
-
color?: string;
|
|
1156
|
-
coingeckoCoinId?: string;
|
|
1157
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1158
|
-
tags?: Array<string>;
|
|
1159
|
-
/**
|
|
1160
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1161
|
-
*/
|
|
1162
|
-
address: string;
|
|
1163
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1164
|
-
ercType: UnknownContract.ercType;
|
|
1165
|
-
};
|
|
1166
|
-
declare namespace UnknownContract {
|
|
1167
|
-
enum ercType {
|
|
1168
|
-
UNKNOWN = "UNKNOWN"
|
|
1169
|
-
}
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
1195
|
type ListContractsResponse = {
|
|
1173
1196
|
/**
|
|
1174
1197
|
* 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.
|
|
1175
1198
|
*/
|
|
1176
1199
|
nextPageToken?: string;
|
|
1177
|
-
contracts: Array<(
|
|
1200
|
+
contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1178
1201
|
};
|
|
1179
1202
|
|
|
1180
1203
|
type Erc1155Transfer = {
|
|
@@ -1464,6 +1487,22 @@ declare class EvmTransactionsService {
|
|
|
1464
1487
|
*/
|
|
1465
1488
|
pageToken?: string;
|
|
1466
1489
|
}): CancelablePromise<ListContractsResponse>;
|
|
1490
|
+
/**
|
|
1491
|
+
* Get contract metadata
|
|
1492
|
+
* Gets metadata about the contract at the given address.
|
|
1493
|
+
* @returns any
|
|
1494
|
+
* @throws ApiError
|
|
1495
|
+
*/
|
|
1496
|
+
getContractMetadata({ chainId, address, }: {
|
|
1497
|
+
/**
|
|
1498
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1499
|
+
*/
|
|
1500
|
+
chainId: string;
|
|
1501
|
+
/**
|
|
1502
|
+
* Contract address on the relevant chain.
|
|
1503
|
+
*/
|
|
1504
|
+
address: string;
|
|
1505
|
+
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1467
1506
|
/**
|
|
1468
1507
|
* List ERC transfers
|
|
1469
1508
|
* Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
|
|
@@ -1728,6 +1767,51 @@ declare class HealthCheckService {
|
|
|
1728
1767
|
}>;
|
|
1729
1768
|
}
|
|
1730
1769
|
|
|
1770
|
+
declare class NfTsService {
|
|
1771
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1772
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1773
|
+
/**
|
|
1774
|
+
* Reindex NFT metadata
|
|
1775
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
1776
|
+
* @returns any
|
|
1777
|
+
* @throws ApiError
|
|
1778
|
+
*/
|
|
1779
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
1780
|
+
/**
|
|
1781
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1782
|
+
*/
|
|
1783
|
+
chainId: string;
|
|
1784
|
+
/**
|
|
1785
|
+
* Contract address on the relevant chain.
|
|
1786
|
+
*/
|
|
1787
|
+
address: string;
|
|
1788
|
+
/**
|
|
1789
|
+
* TokenId on the contract
|
|
1790
|
+
*/
|
|
1791
|
+
tokenId: string;
|
|
1792
|
+
}): CancelablePromise<any>;
|
|
1793
|
+
/**
|
|
1794
|
+
* Get token details
|
|
1795
|
+
* Gets token details for a specific token of an NFT contract.
|
|
1796
|
+
* @returns any
|
|
1797
|
+
* @throws ApiError
|
|
1798
|
+
*/
|
|
1799
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
1800
|
+
/**
|
|
1801
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1802
|
+
*/
|
|
1803
|
+
chainId: string;
|
|
1804
|
+
/**
|
|
1805
|
+
* Contract address on the relevant chain.
|
|
1806
|
+
*/
|
|
1807
|
+
address: string;
|
|
1808
|
+
/**
|
|
1809
|
+
* TokenId on the contract
|
|
1810
|
+
*/
|
|
1811
|
+
tokenId: string;
|
|
1812
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1731
1815
|
type EvmNetworkOptions = {
|
|
1732
1816
|
addresses: Array<string>;
|
|
1733
1817
|
includeChains: Array<string>;
|
|
@@ -1918,10 +2002,15 @@ type ActiveDelegatorDetails = {
|
|
|
1918
2002
|
delegationFee: string;
|
|
1919
2003
|
startTimestamp: number;
|
|
1920
2004
|
endTimestamp: number;
|
|
1921
|
-
delegationStatus: DelegationStatusType;
|
|
1922
2005
|
estimatedGrossReward: string;
|
|
1923
2006
|
estimatedNetReward: string;
|
|
2007
|
+
delegationStatus: ActiveDelegatorDetails.delegationStatus;
|
|
1924
2008
|
};
|
|
2009
|
+
declare namespace ActiveDelegatorDetails {
|
|
2010
|
+
enum delegationStatus {
|
|
2011
|
+
ACTIVE = "active"
|
|
2012
|
+
}
|
|
2013
|
+
}
|
|
1925
2014
|
|
|
1926
2015
|
type CompletedDelegatorDetails = {
|
|
1927
2016
|
txHash: string;
|
|
@@ -1930,10 +2019,15 @@ type CompletedDelegatorDetails = {
|
|
|
1930
2019
|
delegationFee: string;
|
|
1931
2020
|
startTimestamp: number;
|
|
1932
2021
|
endTimestamp: number;
|
|
1933
|
-
delegationStatus: DelegationStatusType;
|
|
1934
2022
|
grossReward: string;
|
|
1935
2023
|
netReward: string;
|
|
2024
|
+
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
1936
2025
|
};
|
|
2026
|
+
declare namespace CompletedDelegatorDetails {
|
|
2027
|
+
enum delegationStatus {
|
|
2028
|
+
COMPLETED = "completed"
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
1937
2031
|
|
|
1938
2032
|
type PendingDelegatorDetails = {
|
|
1939
2033
|
txHash: string;
|
|
@@ -1942,10 +2036,15 @@ type PendingDelegatorDetails = {
|
|
|
1942
2036
|
delegationFee: string;
|
|
1943
2037
|
startTimestamp: number;
|
|
1944
2038
|
endTimestamp: number;
|
|
1945
|
-
delegationStatus: DelegationStatusType;
|
|
1946
2039
|
estimatedGrossReward: string;
|
|
1947
2040
|
estimatedNetReward: string;
|
|
2041
|
+
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
1948
2042
|
};
|
|
2043
|
+
declare namespace PendingDelegatorDetails {
|
|
2044
|
+
enum delegationStatus {
|
|
2045
|
+
PENDING = "pending"
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
1949
2048
|
|
|
1950
2049
|
type ListDelegatorDetailsResponse = {
|
|
1951
2050
|
/**
|
|
@@ -1985,19 +2084,12 @@ type Rewards = {
|
|
|
1985
2084
|
delegationRewardAmount: string;
|
|
1986
2085
|
};
|
|
1987
2086
|
|
|
1988
|
-
declare enum ValidationStatusType {
|
|
1989
|
-
COMPLETED = "completed",
|
|
1990
|
-
ACTIVE = "active",
|
|
1991
|
-
PENDING = "pending"
|
|
1992
|
-
}
|
|
1993
|
-
|
|
1994
2087
|
type ActiveValidatorDetails = {
|
|
1995
2088
|
nodeId: string;
|
|
1996
2089
|
amountStaked: string;
|
|
1997
2090
|
delegationFee: string;
|
|
1998
2091
|
startTimestamp: number;
|
|
1999
2092
|
endTimestamp: number;
|
|
2000
|
-
validationStatus: ValidationStatusType;
|
|
2001
2093
|
stakePercentage: number;
|
|
2002
2094
|
delegatorCount: number;
|
|
2003
2095
|
amountDelegated: string;
|
|
@@ -2005,7 +2097,13 @@ type ActiveValidatorDetails = {
|
|
|
2005
2097
|
avalancheGoVersion: string;
|
|
2006
2098
|
delegationCapacity: string;
|
|
2007
2099
|
potentialRewards: Rewards;
|
|
2100
|
+
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2008
2101
|
};
|
|
2102
|
+
declare namespace ActiveValidatorDetails {
|
|
2103
|
+
enum validationStatus {
|
|
2104
|
+
ACTIVE = "active"
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2009
2107
|
|
|
2010
2108
|
type CompletedValidatorDetails = {
|
|
2011
2109
|
nodeId: string;
|
|
@@ -2013,10 +2111,15 @@ type CompletedValidatorDetails = {
|
|
|
2013
2111
|
delegationFee: string;
|
|
2014
2112
|
startTimestamp: number;
|
|
2015
2113
|
endTimestamp: number;
|
|
2016
|
-
validationStatus: ValidationStatusType;
|
|
2017
2114
|
delegatorCount: number;
|
|
2018
2115
|
rewards: Rewards;
|
|
2116
|
+
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2019
2117
|
};
|
|
2118
|
+
declare namespace CompletedValidatorDetails {
|
|
2119
|
+
enum validationStatus {
|
|
2120
|
+
COMPLETED = "completed"
|
|
2121
|
+
}
|
|
2122
|
+
}
|
|
2020
2123
|
|
|
2021
2124
|
type PendingValidatorDetails = {
|
|
2022
2125
|
nodeId: string;
|
|
@@ -2024,8 +2127,13 @@ type PendingValidatorDetails = {
|
|
|
2024
2127
|
delegationFee: string;
|
|
2025
2128
|
startTimestamp: number;
|
|
2026
2129
|
endTimestamp: number;
|
|
2027
|
-
validationStatus:
|
|
2130
|
+
validationStatus: PendingValidatorDetails.validationStatus;
|
|
2028
2131
|
};
|
|
2132
|
+
declare namespace PendingValidatorDetails {
|
|
2133
|
+
enum validationStatus {
|
|
2134
|
+
PENDING = "pending"
|
|
2135
|
+
}
|
|
2136
|
+
}
|
|
2029
2137
|
|
|
2030
2138
|
type ListValidatorDetailsResponse = {
|
|
2031
2139
|
/**
|
|
@@ -2043,6 +2151,12 @@ declare enum Network {
|
|
|
2043
2151
|
FUJI = "fuji"
|
|
2044
2152
|
}
|
|
2045
2153
|
|
|
2154
|
+
declare enum ValidationStatusType {
|
|
2155
|
+
COMPLETED = "completed",
|
|
2156
|
+
ACTIVE = "active",
|
|
2157
|
+
PENDING = "pending"
|
|
2158
|
+
}
|
|
2159
|
+
|
|
2046
2160
|
type XChainAssetDetails = {
|
|
2047
2161
|
/**
|
|
2048
2162
|
* Unique ID for an asset.
|
|
@@ -3304,7 +3418,11 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3304
3418
|
}): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
|
|
3305
3419
|
/**
|
|
3306
3420
|
* List latest transactions
|
|
3307
|
-
* Lists the latest transactions on one of the Primary Network chains.
|
|
3421
|
+
* Lists the latest transactions on one of the Primary Network chains.
|
|
3422
|
+
*
|
|
3423
|
+
* Transactions are filterable by addresses.
|
|
3424
|
+
*
|
|
3425
|
+
* 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.
|
|
3308
3426
|
* @returns any
|
|
3309
3427
|
* @throws ApiError
|
|
3310
3428
|
*/
|
|
@@ -3601,8 +3719,10 @@ declare class Glacier {
|
|
|
3601
3719
|
readonly evmBalances: EvmBalancesService;
|
|
3602
3720
|
readonly evmBlocks: EvmBlocksService;
|
|
3603
3721
|
readonly evmChains: EvmChainsService;
|
|
3722
|
+
readonly evmContracts: EvmContractsService;
|
|
3604
3723
|
readonly evmTransactions: EvmTransactionsService;
|
|
3605
3724
|
readonly healthCheck: HealthCheckService;
|
|
3725
|
+
readonly nfTs: NfTsService;
|
|
3606
3726
|
readonly operations: OperationsService;
|
|
3607
3727
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
3608
3728
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -3632,4 +3752,4 @@ declare class ApiError extends Error {
|
|
|
3632
3752
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3633
3753
|
}
|
|
3634
3754
|
|
|
3635
|
-
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 };
|
|
3755
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorsDetails, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };
|