@avalabs/glacier-sdk 2.8.0-alpha.130 → 2.8.0-alpha.131

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 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,184 +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
- type PricingProviders = {
1023
- coingeckoCoinId?: string;
1024
- };
1025
-
1026
- declare enum ResourceLinkType {
1027
- BLOG = "Blog",
1028
- COIN_GECKO = "CoinGecko",
1029
- COIN_MARKET_CAP = "CoinMarketCap",
1030
- DISCORD = "Discord",
1031
- DOCUMENTATION = "Documentation",
1032
- FACEBOOK = "Facebook",
1033
- GITHUB = "Github",
1034
- INSTAGRAM = "Instagram",
1035
- LINKED_IN = "LinkedIn",
1036
- MEDIUM = "Medium",
1037
- REDDIT = "Reddit",
1038
- SUPPORT = "Support",
1039
- TELEGRAM = "Telegram",
1040
- TIK_TOK = "TikTok",
1041
- TWITTER = "Twitter",
1042
- WEBSITE = "Website",
1043
- WHITEPAPER = "Whitepaper",
1044
- YOUTUBE = "Youtube"
1045
- }
1046
-
1047
- type ResourceLink = {
1048
- type: ResourceLinkType;
1049
- url: string;
1050
- };
1051
-
1052
- type Erc1155Contract = {
1053
- /**
1054
- * The contract name.
1055
- */
1056
- name?: string;
1057
- description?: string;
1058
- officialSite?: string;
1059
- email?: string;
1060
- logoAsset?: ImageAsset;
1061
- bannerAsset?: ImageAsset;
1062
- color?: string;
1063
- resourceLinks?: Array<ResourceLink>;
1064
- tags?: Array<string>;
1065
- /**
1066
- * A wallet or contract address in mixed-case checksum encoding.
1067
- */
1068
- address: string;
1069
- deploymentDetails: ContractDeploymentDetails;
1070
- ercType: Erc1155Contract.ercType;
1071
- /**
1072
- * The contract symbol.
1073
- */
1074
- symbol?: string;
1075
- pricingProviders?: PricingProviders;
1076
- };
1077
- declare namespace Erc1155Contract {
1078
- enum ercType {
1079
- ERC_1155 = "ERC-1155"
1080
- }
1081
- }
1082
-
1083
- type Erc20Contract = {
1084
- /**
1085
- * The contract name.
1086
- */
1087
- name?: string;
1088
- description?: string;
1089
- officialSite?: string;
1090
- email?: string;
1091
- logoAsset?: ImageAsset;
1092
- bannerAsset?: ImageAsset;
1093
- color?: string;
1094
- resourceLinks?: Array<ResourceLink>;
1095
- tags?: Array<string>;
1096
- /**
1097
- * A wallet or contract address in mixed-case checksum encoding.
1098
- */
1099
- address: string;
1100
- deploymentDetails: ContractDeploymentDetails;
1101
- ercType: Erc20Contract.ercType;
1102
- /**
1103
- * The contract symbol.
1104
- */
1105
- symbol?: string;
1106
- /**
1107
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1108
- */
1109
- decimals: number;
1110
- pricingProviders: PricingProviders;
1111
- };
1112
- declare namespace Erc20Contract {
1113
- enum ercType {
1114
- ERC_20 = "ERC-20"
1115
- }
1116
- }
1117
-
1118
- type Erc721Contract = {
1119
- /**
1120
- * The contract name.
1121
- */
1122
- name?: string;
1123
- description?: string;
1124
- officialSite?: string;
1125
- email?: string;
1126
- logoAsset?: ImageAsset;
1127
- bannerAsset?: ImageAsset;
1128
- color?: string;
1129
- resourceLinks?: Array<ResourceLink>;
1130
- tags?: Array<string>;
1131
- /**
1132
- * A wallet or contract address in mixed-case checksum encoding.
1133
- */
1134
- address: string;
1135
- deploymentDetails: ContractDeploymentDetails;
1136
- ercType: Erc721Contract.ercType;
1137
- /**
1138
- * The contract symbol.
1139
- */
1140
- symbol?: string;
1141
- };
1142
- declare namespace Erc721Contract {
1143
- enum ercType {
1144
- ERC_721 = "ERC-721"
1145
- }
1146
- }
1147
-
1148
- type UnknownContract = {
1149
- /**
1150
- * The contract name.
1151
- */
1152
- name?: string;
1153
- description?: string;
1154
- officialSite?: string;
1155
- email?: string;
1156
- logoAsset?: ImageAsset;
1157
- bannerAsset?: ImageAsset;
1158
- color?: string;
1159
- resourceLinks?: Array<ResourceLink>;
1160
- tags?: Array<string>;
1161
- /**
1162
- * A wallet or contract address in mixed-case checksum encoding.
1163
- */
1164
- address: string;
1165
- deploymentDetails: ContractDeploymentDetails;
1166
- ercType: UnknownContract.ercType;
1167
- };
1168
- declare namespace UnknownContract {
1169
- enum ercType {
1170
- UNKNOWN = "UNKNOWN"
1171
- }
1172
- }
1173
-
1174
1195
  type ListContractsResponse = {
1175
1196
  /**
1176
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.
1177
1198
  */
1178
1199
  nextPageToken?: string;
1179
- contracts: Array<(UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract)>;
1200
+ contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1180
1201
  };
1181
1202
 
1182
1203
  type Erc1155Transfer = {
@@ -1466,6 +1487,22 @@ declare class EvmTransactionsService {
1466
1487
  */
1467
1488
  pageToken?: string;
1468
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)>;
1469
1506
  /**
1470
1507
  * List ERC transfers
1471
1508
  * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
@@ -1773,22 +1810,6 @@ declare class NfTsService {
1773
1810
  */
1774
1811
  tokenId: string;
1775
1812
  }): CancelablePromise<(Erc721Token | Erc1155Token)>;
1776
- /**
1777
- * Get collection details
1778
- * Gets collection details for a NFT contract.
1779
- * @returns any
1780
- * @throws ApiError
1781
- */
1782
- getCollection({ chainId, address, }: {
1783
- /**
1784
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1785
- */
1786
- chainId: string;
1787
- /**
1788
- * Contract address on the relevant chain.
1789
- */
1790
- address: string;
1791
- }): CancelablePromise<(Erc721Contract | Erc1155Contract)>;
1792
1813
  }
1793
1814
 
1794
1815
  type EvmNetworkOptions = {
@@ -1981,10 +2002,15 @@ type ActiveDelegatorDetails = {
1981
2002
  delegationFee: string;
1982
2003
  startTimestamp: number;
1983
2004
  endTimestamp: number;
1984
- delegationStatus: DelegationStatusType;
1985
2005
  estimatedGrossReward: string;
1986
2006
  estimatedNetReward: string;
2007
+ delegationStatus: ActiveDelegatorDetails.delegationStatus;
1987
2008
  };
2009
+ declare namespace ActiveDelegatorDetails {
2010
+ enum delegationStatus {
2011
+ ACTIVE = "active"
2012
+ }
2013
+ }
1988
2014
 
1989
2015
  type CompletedDelegatorDetails = {
1990
2016
  txHash: string;
@@ -1993,10 +2019,15 @@ type CompletedDelegatorDetails = {
1993
2019
  delegationFee: string;
1994
2020
  startTimestamp: number;
1995
2021
  endTimestamp: number;
1996
- delegationStatus: DelegationStatusType;
1997
2022
  grossReward: string;
1998
2023
  netReward: string;
2024
+ delegationStatus: CompletedDelegatorDetails.delegationStatus;
1999
2025
  };
2026
+ declare namespace CompletedDelegatorDetails {
2027
+ enum delegationStatus {
2028
+ COMPLETED = "completed"
2029
+ }
2030
+ }
2000
2031
 
2001
2032
  type PendingDelegatorDetails = {
2002
2033
  txHash: string;
@@ -2005,10 +2036,15 @@ type PendingDelegatorDetails = {
2005
2036
  delegationFee: string;
2006
2037
  startTimestamp: number;
2007
2038
  endTimestamp: number;
2008
- delegationStatus: DelegationStatusType;
2009
2039
  estimatedGrossReward: string;
2010
2040
  estimatedNetReward: string;
2041
+ delegationStatus: PendingDelegatorDetails.delegationStatus;
2011
2042
  };
2043
+ declare namespace PendingDelegatorDetails {
2044
+ enum delegationStatus {
2045
+ PENDING = "pending"
2046
+ }
2047
+ }
2012
2048
 
2013
2049
  type ListDelegatorDetailsResponse = {
2014
2050
  /**
@@ -2048,19 +2084,12 @@ type Rewards = {
2048
2084
  delegationRewardAmount: string;
2049
2085
  };
2050
2086
 
2051
- declare enum ValidationStatusType {
2052
- COMPLETED = "completed",
2053
- ACTIVE = "active",
2054
- PENDING = "pending"
2055
- }
2056
-
2057
2087
  type ActiveValidatorDetails = {
2058
2088
  nodeId: string;
2059
2089
  amountStaked: string;
2060
2090
  delegationFee: string;
2061
2091
  startTimestamp: number;
2062
2092
  endTimestamp: number;
2063
- validationStatus: ValidationStatusType;
2064
2093
  stakePercentage: number;
2065
2094
  delegatorCount: number;
2066
2095
  amountDelegated: string;
@@ -2068,7 +2097,13 @@ type ActiveValidatorDetails = {
2068
2097
  avalancheGoVersion: string;
2069
2098
  delegationCapacity: string;
2070
2099
  potentialRewards: Rewards;
2100
+ validationStatus: ActiveValidatorDetails.validationStatus;
2071
2101
  };
2102
+ declare namespace ActiveValidatorDetails {
2103
+ enum validationStatus {
2104
+ ACTIVE = "active"
2105
+ }
2106
+ }
2072
2107
 
2073
2108
  type CompletedValidatorDetails = {
2074
2109
  nodeId: string;
@@ -2076,10 +2111,15 @@ type CompletedValidatorDetails = {
2076
2111
  delegationFee: string;
2077
2112
  startTimestamp: number;
2078
2113
  endTimestamp: number;
2079
- validationStatus: ValidationStatusType;
2080
2114
  delegatorCount: number;
2081
2115
  rewards: Rewards;
2116
+ validationStatus: CompletedValidatorDetails.validationStatus;
2082
2117
  };
2118
+ declare namespace CompletedValidatorDetails {
2119
+ enum validationStatus {
2120
+ COMPLETED = "completed"
2121
+ }
2122
+ }
2083
2123
 
2084
2124
  type PendingValidatorDetails = {
2085
2125
  nodeId: string;
@@ -2087,8 +2127,13 @@ type PendingValidatorDetails = {
2087
2127
  delegationFee: string;
2088
2128
  startTimestamp: number;
2089
2129
  endTimestamp: number;
2090
- validationStatus: ValidationStatusType;
2130
+ validationStatus: PendingValidatorDetails.validationStatus;
2091
2131
  };
2132
+ declare namespace PendingValidatorDetails {
2133
+ enum validationStatus {
2134
+ PENDING = "pending"
2135
+ }
2136
+ }
2092
2137
 
2093
2138
  type ListValidatorDetailsResponse = {
2094
2139
  /**
@@ -2106,6 +2151,12 @@ declare enum Network {
2106
2151
  FUJI = "fuji"
2107
2152
  }
2108
2153
 
2154
+ declare enum ValidationStatusType {
2155
+ COMPLETED = "completed",
2156
+ ACTIVE = "active",
2157
+ PENDING = "pending"
2158
+ }
2159
+
2109
2160
  type XChainAssetDetails = {
2110
2161
  /**
2111
2162
  * Unique ID for an asset.
@@ -3668,6 +3719,7 @@ declare class Glacier {
3668
3719
  readonly evmBalances: EvmBalancesService;
3669
3720
  readonly evmBlocks: EvmBlocksService;
3670
3721
  readonly evmChains: EvmChainsService;
3722
+ readonly evmContracts: EvmContractsService;
3671
3723
  readonly evmTransactions: EvmTransactionsService;
3672
3724
  readonly healthCheck: HealthCheckService;
3673
3725
  readonly nfTs: NfTsService;
@@ -3700,4 +3752,4 @@ declare class ApiError extends Error {
3700
3752
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3701
3753
  }
3702
3754
 
3703
- export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorsDetails, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };
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 };
package/dist/index.js CHANGED
@@ -524,6 +524,25 @@ class EvmChainsService {
524
524
  }
525
525
  }
526
526
 
527
+ class EvmContractsService {
528
+ constructor(httpRequest) {
529
+ this.httpRequest = httpRequest;
530
+ }
531
+ getContractMetadata({
532
+ chainId,
533
+ address
534
+ }) {
535
+ return this.httpRequest.request({
536
+ method: "GET",
537
+ url: "/v1/chains/{chainId}/addresses/{address}",
538
+ path: {
539
+ "chainId": chainId,
540
+ "address": address
541
+ }
542
+ });
543
+ }
544
+ }
545
+
527
546
  class EvmTransactionsService {
528
547
  constructor(httpRequest) {
529
548
  this.httpRequest = httpRequest;
@@ -564,6 +583,19 @@ class EvmTransactionsService {
564
583
  }
565
584
  });
566
585
  }
586
+ getContractMetadata({
587
+ chainId,
588
+ address
589
+ }) {
590
+ return this.httpRequest.request({
591
+ method: "GET",
592
+ url: "/v1/chains/{chainId}/addresses/{address}",
593
+ path: {
594
+ "chainId": chainId,
595
+ "address": address
596
+ }
597
+ });
598
+ }
567
599
  listTransfers({
568
600
  chainId,
569
601
  address,
@@ -823,19 +855,6 @@ class NfTsService {
823
855
  }
824
856
  });
825
857
  }
826
- getCollection({
827
- chainId,
828
- address
829
- }) {
830
- return this.httpRequest.request({
831
- method: "GET",
832
- url: "/v1/chains/{chainId}/nfts/collections/{address}",
833
- path: {
834
- "chainId": chainId,
835
- "address": address
836
- }
837
- });
838
- }
839
858
  }
840
859
 
841
860
  class OperationsService {
@@ -1363,6 +1382,7 @@ class Glacier {
1363
1382
  evmBalances;
1364
1383
  evmBlocks;
1365
1384
  evmChains;
1385
+ evmContracts;
1366
1386
  evmTransactions;
1367
1387
  healthCheck;
1368
1388
  nfTs;
@@ -1390,6 +1410,7 @@ class Glacier {
1390
1410
  this.evmBalances = new EvmBalancesService(this.request);
1391
1411
  this.evmBlocks = new EvmBlocksService(this.request);
1392
1412
  this.evmChains = new EvmChainsService(this.request);
1413
+ this.evmContracts = new EvmContractsService(this.request);
1393
1414
  this.evmTransactions = new EvmTransactionsService(this.request);
1394
1415
  this.healthCheck = new HealthCheckService(this.request);
1395
1416
  this.nfTs = new NfTsService(this.request);
@@ -1416,6 +1437,20 @@ const OpenAPI = {
1416
1437
  ENCODE_PATH: void 0
1417
1438
  };
1418
1439
 
1440
+ exports.ActiveDelegatorDetails = void 0;
1441
+ ((ActiveDelegatorDetails2) => {
1442
+ ((delegationStatus2) => {
1443
+ delegationStatus2["ACTIVE"] = "active";
1444
+ })(ActiveDelegatorDetails2.delegationStatus || (ActiveDelegatorDetails2.delegationStatus = {}));
1445
+ })(exports.ActiveDelegatorDetails || (exports.ActiveDelegatorDetails = {}));
1446
+
1447
+ exports.ActiveValidatorDetails = void 0;
1448
+ ((ActiveValidatorDetails2) => {
1449
+ ((validationStatus2) => {
1450
+ validationStatus2["ACTIVE"] = "active";
1451
+ })(ActiveValidatorDetails2.validationStatus || (ActiveValidatorDetails2.validationStatus = {}));
1452
+ })(exports.ActiveValidatorDetails || (exports.ActiveValidatorDetails = {}));
1453
+
1419
1454
  var BlockchainId = /* @__PURE__ */ ((BlockchainId2) => {
1420
1455
  BlockchainId2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
1421
1456
  BlockchainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
@@ -1457,6 +1492,20 @@ var ChainStatus = /* @__PURE__ */ ((ChainStatus2) => {
1457
1492
  return ChainStatus2;
1458
1493
  })(ChainStatus || {});
1459
1494
 
1495
+ exports.CompletedDelegatorDetails = void 0;
1496
+ ((CompletedDelegatorDetails2) => {
1497
+ ((delegationStatus2) => {
1498
+ delegationStatus2["COMPLETED"] = "completed";
1499
+ })(CompletedDelegatorDetails2.delegationStatus || (CompletedDelegatorDetails2.delegationStatus = {}));
1500
+ })(exports.CompletedDelegatorDetails || (exports.CompletedDelegatorDetails = {}));
1501
+
1502
+ exports.CompletedValidatorDetails = void 0;
1503
+ ((CompletedValidatorDetails2) => {
1504
+ ((validationStatus2) => {
1505
+ validationStatus2["COMPLETED"] = "completed";
1506
+ })(CompletedValidatorDetails2.validationStatus || (CompletedValidatorDetails2.validationStatus = {}));
1507
+ })(exports.CompletedValidatorDetails || (exports.CompletedValidatorDetails = {}));
1508
+
1460
1509
  exports.CreateEvmTransactionExportRequest = void 0;
1461
1510
  ((CreateEvmTransactionExportRequest2) => {
1462
1511
  ((type2) => {
@@ -1640,6 +1689,20 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
1640
1689
  return PChainTransactionType2;
1641
1690
  })(PChainTransactionType || {});
1642
1691
 
1692
+ exports.PendingDelegatorDetails = void 0;
1693
+ ((PendingDelegatorDetails2) => {
1694
+ ((delegationStatus2) => {
1695
+ delegationStatus2["PENDING"] = "pending";
1696
+ })(PendingDelegatorDetails2.delegationStatus || (PendingDelegatorDetails2.delegationStatus = {}));
1697
+ })(exports.PendingDelegatorDetails || (exports.PendingDelegatorDetails = {}));
1698
+
1699
+ exports.PendingValidatorDetails = void 0;
1700
+ ((PendingValidatorDetails2) => {
1701
+ ((validationStatus2) => {
1702
+ validationStatus2["PENDING"] = "pending";
1703
+ })(PendingValidatorDetails2.validationStatus || (PendingValidatorDetails2.validationStatus = {}));
1704
+ })(exports.PendingValidatorDetails || (exports.PendingValidatorDetails = {}));
1705
+
1643
1706
  var PrimaryNetwork = /* @__PURE__ */ ((PrimaryNetwork2) => {
1644
1707
  PrimaryNetwork2["MAINNET"] = "mainnet";
1645
1708
  PrimaryNetwork2["FUJI"] = "fuji";
@@ -1781,6 +1844,7 @@ exports.DelegationStatusType = DelegationStatusType;
1781
1844
  exports.EvmBalancesService = EvmBalancesService;
1782
1845
  exports.EvmBlocksService = EvmBlocksService;
1783
1846
  exports.EvmChainsService = EvmChainsService;
1847
+ exports.EvmContractsService = EvmContractsService;
1784
1848
  exports.EvmTransactionsService = EvmTransactionsService;
1785
1849
  exports.Glacier = Glacier;
1786
1850
  exports.HealthCheckService = HealthCheckService;
@@ -3,6 +3,7 @@ import { OpenAPIConfig } from './core/OpenAPI.js';
3
3
  import { EvmBalancesService } from './services/EvmBalancesService.js';
4
4
  import { EvmBlocksService } from './services/EvmBlocksService.js';
5
5
  import { EvmChainsService } from './services/EvmChainsService.js';
6
+ import { EvmContractsService } from './services/EvmContractsService.js';
6
7
  import { EvmTransactionsService } from './services/EvmTransactionsService.js';
7
8
  import { HealthCheckService } from './services/HealthCheckService.js';
8
9
  import { NfTsService } from './services/NfTsService.js';
@@ -20,6 +21,7 @@ declare class Glacier {
20
21
  readonly evmBalances: EvmBalancesService;
21
22
  readonly evmBlocks: EvmBlocksService;
22
23
  readonly evmChains: EvmChainsService;
24
+ readonly evmContracts: EvmContractsService;
23
25
  readonly evmTransactions: EvmTransactionsService;
24
26
  readonly healthCheck: HealthCheckService;
25
27
  readonly nfTs: NfTsService;
@@ -2,6 +2,7 @@ import { FetchHttpRequest } from './core/FetchHttpRequest.js';
2
2
  import { EvmBalancesService } from './services/EvmBalancesService.js';
3
3
  import { EvmBlocksService } from './services/EvmBlocksService.js';
4
4
  import { EvmChainsService } from './services/EvmChainsService.js';
5
+ import { EvmContractsService } from './services/EvmContractsService.js';
5
6
  import { EvmTransactionsService } from './services/EvmTransactionsService.js';
6
7
  import { HealthCheckService } from './services/HealthCheckService.js';
7
8
  import { NfTsService } from './services/NfTsService.js';
@@ -18,6 +19,7 @@ class Glacier {
18
19
  evmBalances;
19
20
  evmBlocks;
20
21
  evmChains;
22
+ evmContracts;
21
23
  evmTransactions;
22
24
  healthCheck;
23
25
  nfTs;
@@ -45,6 +47,7 @@ class Glacier {
45
47
  this.evmBalances = new EvmBalancesService(this.request);
46
48
  this.evmBlocks = new EvmBlocksService(this.request);
47
49
  this.evmChains = new EvmChainsService(this.request);
50
+ this.evmContracts = new EvmContractsService(this.request);
48
51
  this.evmTransactions = new EvmTransactionsService(this.request);
49
52
  this.healthCheck = new HealthCheckService(this.request);
50
53
  this.nfTs = new NfTsService(this.request);
@@ -1,5 +1,3 @@
1
- import { DelegationStatusType } from './DelegationStatusType.js';
2
-
3
1
  type ActiveDelegatorDetails = {
4
2
  txHash: string;
5
3
  rewardAddresses: Array<string>;
@@ -7,9 +5,14 @@ type ActiveDelegatorDetails = {
7
5
  delegationFee: string;
8
6
  startTimestamp: number;
9
7
  endTimestamp: number;
10
- delegationStatus: DelegationStatusType;
11
8
  estimatedGrossReward: string;
12
9
  estimatedNetReward: string;
10
+ delegationStatus: ActiveDelegatorDetails.delegationStatus;
13
11
  };
12
+ declare namespace ActiveDelegatorDetails {
13
+ enum delegationStatus {
14
+ ACTIVE = "active"
15
+ }
16
+ }
14
17
 
15
18
  export { ActiveDelegatorDetails };
@@ -0,0 +1,8 @@
1
+ var ActiveDelegatorDetails;
2
+ ((ActiveDelegatorDetails2) => {
3
+ ((delegationStatus2) => {
4
+ delegationStatus2["ACTIVE"] = "active";
5
+ })(ActiveDelegatorDetails2.delegationStatus || (ActiveDelegatorDetails2.delegationStatus = {}));
6
+ })(ActiveDelegatorDetails || (ActiveDelegatorDetails = {}));
7
+
8
+ export { ActiveDelegatorDetails };
@@ -1,5 +1,4 @@
1
1
  import { Rewards } from './Rewards.js';
2
- import { ValidationStatusType } from './ValidationStatusType.js';
3
2
 
4
3
  type ActiveValidatorDetails = {
5
4
  nodeId: string;
@@ -7,7 +6,6 @@ type ActiveValidatorDetails = {
7
6
  delegationFee: string;
8
7
  startTimestamp: number;
9
8
  endTimestamp: number;
10
- validationStatus: ValidationStatusType;
11
9
  stakePercentage: number;
12
10
  delegatorCount: number;
13
11
  amountDelegated: string;
@@ -15,6 +13,12 @@ type ActiveValidatorDetails = {
15
13
  avalancheGoVersion: string;
16
14
  delegationCapacity: string;
17
15
  potentialRewards: Rewards;
16
+ validationStatus: ActiveValidatorDetails.validationStatus;
18
17
  };
18
+ declare namespace ActiveValidatorDetails {
19
+ enum validationStatus {
20
+ ACTIVE = "active"
21
+ }
22
+ }
19
23
 
20
24
  export { ActiveValidatorDetails };
@@ -0,0 +1,8 @@
1
+ var ActiveValidatorDetails;
2
+ ((ActiveValidatorDetails2) => {
3
+ ((validationStatus2) => {
4
+ validationStatus2["ACTIVE"] = "active";
5
+ })(ActiveValidatorDetails2.validationStatus || (ActiveValidatorDetails2.validationStatus = {}));
6
+ })(ActiveValidatorDetails || (ActiveValidatorDetails = {}));
7
+
8
+ export { ActiveValidatorDetails };
@@ -1,5 +1,3 @@
1
- import { DelegationStatusType } from './DelegationStatusType.js';
2
-
3
1
  type CompletedDelegatorDetails = {
4
2
  txHash: string;
5
3
  rewardAddresses: Array<string>;
@@ -7,9 +5,14 @@ type CompletedDelegatorDetails = {
7
5
  delegationFee: string;
8
6
  startTimestamp: number;
9
7
  endTimestamp: number;
10
- delegationStatus: DelegationStatusType;
11
8
  grossReward: string;
12
9
  netReward: string;
10
+ delegationStatus: CompletedDelegatorDetails.delegationStatus;
13
11
  };
12
+ declare namespace CompletedDelegatorDetails {
13
+ enum delegationStatus {
14
+ COMPLETED = "completed"
15
+ }
16
+ }
14
17
 
15
18
  export { CompletedDelegatorDetails };
@@ -0,0 +1,8 @@
1
+ var CompletedDelegatorDetails;
2
+ ((CompletedDelegatorDetails2) => {
3
+ ((delegationStatus2) => {
4
+ delegationStatus2["COMPLETED"] = "completed";
5
+ })(CompletedDelegatorDetails2.delegationStatus || (CompletedDelegatorDetails2.delegationStatus = {}));
6
+ })(CompletedDelegatorDetails || (CompletedDelegatorDetails = {}));
7
+
8
+ export { CompletedDelegatorDetails };
@@ -1,5 +1,4 @@
1
1
  import { Rewards } from './Rewards.js';
2
- import { ValidationStatusType } from './ValidationStatusType.js';
3
2
 
4
3
  type CompletedValidatorDetails = {
5
4
  nodeId: string;
@@ -7,9 +6,14 @@ type CompletedValidatorDetails = {
7
6
  delegationFee: string;
8
7
  startTimestamp: number;
9
8
  endTimestamp: number;
10
- validationStatus: ValidationStatusType;
11
9
  delegatorCount: number;
12
10
  rewards: Rewards;
11
+ validationStatus: CompletedValidatorDetails.validationStatus;
13
12
  };
13
+ declare namespace CompletedValidatorDetails {
14
+ enum validationStatus {
15
+ COMPLETED = "completed"
16
+ }
17
+ }
14
18
 
15
19
  export { CompletedValidatorDetails };
@@ -0,0 +1,8 @@
1
+ var CompletedValidatorDetails;
2
+ ((CompletedValidatorDetails2) => {
3
+ ((validationStatus2) => {
4
+ validationStatus2["COMPLETED"] = "completed";
5
+ })(CompletedValidatorDetails2.validationStatus || (CompletedValidatorDetails2.validationStatus = {}));
6
+ })(CompletedValidatorDetails || (CompletedValidatorDetails = {}));
7
+
8
+ export { CompletedValidatorDetails };
@@ -30,7 +30,7 @@ type Erc20Contract = {
30
30
  * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
31
31
  */
32
32
  decimals: number;
33
- pricingProviders: PricingProviders;
33
+ pricingProviders?: PricingProviders;
34
34
  };
35
35
  declare namespace Erc20Contract {
36
36
  enum ercType {
@@ -8,7 +8,7 @@ type ListContractsResponse = {
8
8
  * 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.
9
9
  */
10
10
  nextPageToken?: string;
11
- contracts: Array<(UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract)>;
11
+ contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
12
12
  };
13
13
 
14
14
  export { ListContractsResponse };
@@ -1,5 +1,3 @@
1
- import { DelegationStatusType } from './DelegationStatusType.js';
2
-
3
1
  type PendingDelegatorDetails = {
4
2
  txHash: string;
5
3
  rewardAddresses: Array<string>;
@@ -7,9 +5,14 @@ type PendingDelegatorDetails = {
7
5
  delegationFee: string;
8
6
  startTimestamp: number;
9
7
  endTimestamp: number;
10
- delegationStatus: DelegationStatusType;
11
8
  estimatedGrossReward: string;
12
9
  estimatedNetReward: string;
10
+ delegationStatus: PendingDelegatorDetails.delegationStatus;
13
11
  };
12
+ declare namespace PendingDelegatorDetails {
13
+ enum delegationStatus {
14
+ PENDING = "pending"
15
+ }
16
+ }
14
17
 
15
18
  export { PendingDelegatorDetails };
@@ -0,0 +1,8 @@
1
+ var PendingDelegatorDetails;
2
+ ((PendingDelegatorDetails2) => {
3
+ ((delegationStatus2) => {
4
+ delegationStatus2["PENDING"] = "pending";
5
+ })(PendingDelegatorDetails2.delegationStatus || (PendingDelegatorDetails2.delegationStatus = {}));
6
+ })(PendingDelegatorDetails || (PendingDelegatorDetails = {}));
7
+
8
+ export { PendingDelegatorDetails };
@@ -1,12 +1,15 @@
1
- import { ValidationStatusType } from './ValidationStatusType.js';
2
-
3
1
  type PendingValidatorDetails = {
4
2
  nodeId: string;
5
3
  amountStaked: string;
6
4
  delegationFee: string;
7
5
  startTimestamp: number;
8
6
  endTimestamp: number;
9
- validationStatus: ValidationStatusType;
7
+ validationStatus: PendingValidatorDetails.validationStatus;
10
8
  };
9
+ declare namespace PendingValidatorDetails {
10
+ enum validationStatus {
11
+ PENDING = "pending"
12
+ }
13
+ }
11
14
 
12
15
  export { PendingValidatorDetails };
@@ -0,0 +1,8 @@
1
+ var PendingValidatorDetails;
2
+ ((PendingValidatorDetails2) => {
3
+ ((validationStatus2) => {
4
+ validationStatus2["PENDING"] = "pending";
5
+ })(PendingValidatorDetails2.validationStatus || (PendingValidatorDetails2.validationStatus = {}));
6
+ })(PendingValidatorDetails || (PendingValidatorDetails = {}));
7
+
8
+ export { PendingValidatorDetails };
@@ -0,0 +1,29 @@
1
+ import { Erc1155Contract } from '../models/Erc1155Contract.js';
2
+ import { Erc20Contract } from '../models/Erc20Contract.js';
3
+ import { Erc721Contract } from '../models/Erc721Contract.js';
4
+ import { UnknownContract } from '../models/UnknownContract.js';
5
+ import { CancelablePromise } from '../core/CancelablePromise.js';
6
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
7
+
8
+ declare class EvmContractsService {
9
+ readonly httpRequest: BaseHttpRequest;
10
+ constructor(httpRequest: BaseHttpRequest);
11
+ /**
12
+ * Get contract metadata
13
+ * Gets metadata about the contract at the given address.
14
+ * @returns any
15
+ * @throws ApiError
16
+ */
17
+ getContractMetadata({ chainId, address, }: {
18
+ /**
19
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
20
+ */
21
+ chainId: string;
22
+ /**
23
+ * Contract address on the relevant chain.
24
+ */
25
+ address: string;
26
+ }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
27
+ }
28
+
29
+ export { EvmContractsService };
@@ -0,0 +1,20 @@
1
+ class EvmContractsService {
2
+ constructor(httpRequest) {
3
+ this.httpRequest = httpRequest;
4
+ }
5
+ getContractMetadata({
6
+ chainId,
7
+ address
8
+ }) {
9
+ return this.httpRequest.request({
10
+ method: "GET",
11
+ url: "/v1/chains/{chainId}/addresses/{address}",
12
+ path: {
13
+ "chainId": chainId,
14
+ "address": address
15
+ }
16
+ });
17
+ }
18
+ }
19
+
20
+ export { EvmContractsService };
@@ -1,4 +1,7 @@
1
1
  import { CurrencyCode } from '../models/CurrencyCode.js';
2
+ import { Erc1155Contract } from '../models/Erc1155Contract.js';
3
+ import { Erc20Contract } from '../models/Erc20Contract.js';
4
+ import { Erc721Contract } from '../models/Erc721Contract.js';
2
5
  import { GetTransactionResponse } from '../models/GetTransactionResponse.js';
3
6
  import { ListContractsResponse } from '../models/ListContractsResponse.js';
4
7
  import { ListErc1155TransactionsResponse } from '../models/ListErc1155TransactionsResponse.js';
@@ -10,6 +13,7 @@ import { ListTransactionDetailsResponse } from '../models/ListTransactionDetails
10
13
  import { ListTransfersResponse } from '../models/ListTransfersResponse.js';
11
14
  import { SortOrder } from '../models/SortOrder.js';
12
15
  import { TransactionStatus } from '../models/TransactionStatus.js';
16
+ import { UnknownContract } from '../models/UnknownContract.js';
13
17
  import { CancelablePromise } from '../core/CancelablePromise.js';
14
18
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
15
19
 
@@ -60,6 +64,22 @@ declare class EvmTransactionsService {
60
64
  */
61
65
  pageToken?: string;
62
66
  }): CancelablePromise<ListContractsResponse>;
67
+ /**
68
+ * Get contract metadata
69
+ * Gets metadata about the contract at the given address.
70
+ * @returns any
71
+ * @throws ApiError
72
+ */
73
+ getContractMetadata({ chainId, address, }: {
74
+ /**
75
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
76
+ */
77
+ chainId: string;
78
+ /**
79
+ * Contract address on the relevant chain.
80
+ */
81
+ address: string;
82
+ }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
63
83
  /**
64
84
  * List ERC transfers
65
85
  * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
@@ -38,6 +38,19 @@ class EvmTransactionsService {
38
38
  }
39
39
  });
40
40
  }
41
+ getContractMetadata({
42
+ chainId,
43
+ address
44
+ }) {
45
+ return this.httpRequest.request({
46
+ method: "GET",
47
+ url: "/v1/chains/{chainId}/addresses/{address}",
48
+ path: {
49
+ "chainId": chainId,
50
+ "address": address
51
+ }
52
+ });
53
+ }
41
54
  listTransfers({
42
55
  chainId,
43
56
  address,
@@ -1,6 +1,4 @@
1
- import { Erc1155Contract } from '../models/Erc1155Contract.js';
2
1
  import { Erc1155Token } from '../models/Erc1155Token.js';
3
- import { Erc721Contract } from '../models/Erc721Contract.js';
4
2
  import { Erc721Token } from '../models/Erc721Token.js';
5
3
  import { CancelablePromise } from '../core/CancelablePromise.js';
6
4
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
@@ -48,22 +46,6 @@ declare class NfTsService {
48
46
  */
49
47
  tokenId: string;
50
48
  }): CancelablePromise<(Erc721Token | Erc1155Token)>;
51
- /**
52
- * Get collection details
53
- * Gets collection details for a NFT contract.
54
- * @returns any
55
- * @throws ApiError
56
- */
57
- getCollection({ chainId, address, }: {
58
- /**
59
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
60
- */
61
- chainId: string;
62
- /**
63
- * Contract address on the relevant chain.
64
- */
65
- address: string;
66
- }): CancelablePromise<(Erc721Contract | Erc1155Contract)>;
67
49
  }
68
50
 
69
51
  export { NfTsService };
@@ -32,19 +32,6 @@ class NfTsService {
32
32
  }
33
33
  });
34
34
  }
35
- getCollection({
36
- chainId,
37
- address
38
- }) {
39
- return this.httpRequest.request({
40
- method: "GET",
41
- url: "/v1/chains/{chainId}/nfts/collections/{address}",
42
- path: {
43
- "chainId": chainId,
44
- "address": address
45
- }
46
- });
47
- }
48
35
  }
49
36
 
50
37
  export { NfTsService };
package/esm/index.d.ts CHANGED
@@ -152,6 +152,7 @@ export { XChainVertex } from './generated/models/XChainVertex.js';
152
152
  export { EvmBalancesService } from './generated/services/EvmBalancesService.js';
153
153
  export { EvmBlocksService } from './generated/services/EvmBlocksService.js';
154
154
  export { EvmChainsService } from './generated/services/EvmChainsService.js';
155
+ export { EvmContractsService } from './generated/services/EvmContractsService.js';
155
156
  export { EvmTransactionsService } from './generated/services/EvmTransactionsService.js';
156
157
  export { HealthCheckService } from './generated/services/HealthCheckService.js';
157
158
  export { NfTsService } from './generated/services/NfTsService.js';
package/esm/index.js CHANGED
@@ -3,11 +3,15 @@ export { ApiError } from './generated/core/ApiError.js';
3
3
  export { BaseHttpRequest } from './generated/core/BaseHttpRequest.js';
4
4
  export { CancelError, CancelablePromise } from './generated/core/CancelablePromise.js';
5
5
  export { OpenAPI } from './generated/core/OpenAPI.js';
6
+ export { ActiveDelegatorDetails } from './generated/models/ActiveDelegatorDetails.js';
7
+ export { ActiveValidatorDetails } from './generated/models/ActiveValidatorDetails.js';
6
8
  export { BlockchainId } from './generated/models/BlockchainId.js';
7
9
  export { BlockchainIds } from './generated/models/BlockchainIds.js';
8
10
  export { CChainExportTransaction } from './generated/models/CChainExportTransaction.js';
9
11
  export { CChainImportTransaction } from './generated/models/CChainImportTransaction.js';
10
12
  export { ChainStatus } from './generated/models/ChainStatus.js';
13
+ export { CompletedDelegatorDetails } from './generated/models/CompletedDelegatorDetails.js';
14
+ export { CompletedValidatorDetails } from './generated/models/CompletedValidatorDetails.js';
11
15
  export { CreateEvmTransactionExportRequest } from './generated/models/CreateEvmTransactionExportRequest.js';
12
16
  export { CreatePrimaryNetworkTransactionExportRequest } from './generated/models/CreatePrimaryNetworkTransactionExportRequest.js';
13
17
  export { CurrencyCode } from './generated/models/CurrencyCode.js';
@@ -30,6 +34,8 @@ export { OperationStatusCode } from './generated/models/OperationStatusCode.js';
30
34
  export { OperationType } from './generated/models/OperationType.js';
31
35
  export { PChainId } from './generated/models/PChainId.js';
32
36
  export { PChainTransactionType } from './generated/models/PChainTransactionType.js';
37
+ export { PendingDelegatorDetails } from './generated/models/PendingDelegatorDetails.js';
38
+ export { PendingValidatorDetails } from './generated/models/PendingValidatorDetails.js';
33
39
  export { PrimaryNetwork } from './generated/models/PrimaryNetwork.js';
34
40
  export { PrimaryNetworkChainName } from './generated/models/PrimaryNetworkChainName.js';
35
41
  export { PrimaryNetworkTxType } from './generated/models/PrimaryNetworkTxType.js';
@@ -48,6 +54,7 @@ export { XChainNonLinearTransaction } from './generated/models/XChainNonLinearTr
48
54
  export { EvmBalancesService } from './generated/services/EvmBalancesService.js';
49
55
  export { EvmBlocksService } from './generated/services/EvmBlocksService.js';
50
56
  export { EvmChainsService } from './generated/services/EvmChainsService.js';
57
+ export { EvmContractsService } from './generated/services/EvmContractsService.js';
51
58
  export { EvmTransactionsService } from './generated/services/EvmTransactionsService.js';
52
59
  export { HealthCheckService } from './generated/services/HealthCheckService.js';
53
60
  export { NfTsService } from './generated/services/NfTsService.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avalabs/glacier-sdk",
3
- "version": "2.8.0-alpha.130",
3
+ "version": "2.8.0-alpha.131",
4
4
  "description": "sdk for interacting with glacier-api",
5
5
  "author": "Oliver Wang <oliver.wang@avalabs.org>",
6
6
  "homepage": "https://github.com/ava-labs/avalanche-sdks#readme",
@@ -29,5 +29,5 @@
29
29
  "bugs": {
30
30
  "url": "https://github.com/ava-labs/avalanche-sdks/issues"
31
31
  },
32
- "gitHead": "7517a9c0f925c74bc978a958fcf2a54a1c283924"
32
+ "gitHead": "ffa0c73e9d575d8257049145b329da5b296b0c36"
33
33
  }