@avalabs/glacier-sdk 2.8.0-canary.ca01c76.0 → 2.8.0-canary.cfb38f5.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 +770 -344
- package/dist/index.js +299 -71
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +30 -10
- package/esm/generated/core/ApiError.js +5 -0
- package/esm/generated/core/CancelablePromise.js +11 -6
- package/esm/generated/core/request.js +14 -31
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +14 -6
- package/esm/generated/models/ActiveValidatorDetails.js +8 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +9 -0
- package/esm/generated/models/ChainInfo.d.ts +1 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +9 -3
- package/esm/generated/models/CompletedValidatorDetails.js +8 -0
- package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
- package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
- package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc20.js +8 -0
- package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
- package/esm/generated/models/ContractSubmissionErc721.js +8 -0
- package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
- package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
- package/esm/generated/models/Erc20Contract.d.ts +1 -1
- package/esm/generated/models/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/ListContractsResponse.d.ts +1 -1
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- package/esm/generated/models/PChainTransaction.d.ts +1 -0
- package/esm/generated/models/PChainTransactionType.d.ts +1 -0
- package/esm/generated/models/PChainTransactionType.js +1 -0
- package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/PendingDelegatorDetails.js +8 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
- package/esm/generated/models/PendingValidatorDetails.js +8 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -0
- package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
- package/esm/generated/models/RewardType.d.ts +2 -1
- package/esm/generated/models/RewardType.js +1 -0
- package/esm/generated/models/Rewards.d.ts +2 -0
- package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
- package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
- package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
- package/esm/generated/models/WebhookResponse.d.ts +15 -0
- package/esm/generated/models/WebhookStatus.d.ts +6 -0
- package/esm/generated/models/WebhookStatus.js +7 -0
- package/esm/generated/models/WebhookStatusType.d.ts +6 -0
- package/esm/generated/models/WebhookStatusType.js +7 -0
- package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainTransactionType.d.ts +10 -0
- package/esm/generated/models/XChainTransactionType.js +11 -0
- package/esm/generated/services/DefaultService.d.ts +67 -0
- package/esm/generated/services/DefaultService.js +55 -0
- package/esm/generated/services/EvmContractsService.d.ts +48 -0
- package/esm/generated/services/EvmContractsService.js +36 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +42 -0
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/NfTsService.d.ts +20 -13
- package/esm/generated/services/NfTsService.js +15 -9
- package/esm/generated/services/OperationsService.d.ts +11 -11
- package/esm/generated/services/OperationsService.js +10 -10
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +10 -2
- package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +32 -8
- package/esm/generated/services/PrimaryNetworkService.js +16 -4
- package/esm/index.d.ts +19 -0
- package/esm/index.js +16 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,118 @@ declare abstract class BaseHttpRequest {
|
|
|
60
60
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
type AddressActivityMetadata = {
|
|
64
|
+
/**
|
|
65
|
+
* Ethereum address for the address_activity event type
|
|
66
|
+
*/
|
|
67
|
+
address: string;
|
|
68
|
+
topic0?: string;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
declare enum EventType {
|
|
72
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
declare enum WebhookStatusType {
|
|
76
|
+
ACTIVE = "active",
|
|
77
|
+
INACTIVE = "inactive"
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
type WebhookResponse = {
|
|
81
|
+
id: string;
|
|
82
|
+
eventType: EventType;
|
|
83
|
+
metadata: AddressActivityMetadata;
|
|
84
|
+
url: string;
|
|
85
|
+
chainId: string;
|
|
86
|
+
status: WebhookStatusType;
|
|
87
|
+
createdAt: number;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
type ListWebhooksResponse = {
|
|
91
|
+
/**
|
|
92
|
+
* 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.
|
|
93
|
+
*/
|
|
94
|
+
nextPageToken?: string;
|
|
95
|
+
webhooks: Array<WebhookResponse>;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
type RegisterWebhookRequest = {
|
|
99
|
+
url: string;
|
|
100
|
+
chainId: string;
|
|
101
|
+
/**
|
|
102
|
+
* The type of event for the webhook
|
|
103
|
+
*/
|
|
104
|
+
eventType: EventType;
|
|
105
|
+
metadata: AddressActivityMetadata;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
type SharedSecretsResponse = {
|
|
109
|
+
secret: string;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
declare enum WebhookStatus {
|
|
113
|
+
ACTIVE = "active",
|
|
114
|
+
INACTIVE = "inactive"
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
declare class DefaultService {
|
|
118
|
+
readonly httpRequest: BaseHttpRequest;
|
|
119
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
120
|
+
/**
|
|
121
|
+
* @returns any
|
|
122
|
+
* @throws ApiError
|
|
123
|
+
*/
|
|
124
|
+
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
125
|
+
/**
|
|
126
|
+
* Register a webhook
|
|
127
|
+
* Registers a new webhook.
|
|
128
|
+
* @returns WebhookResponse
|
|
129
|
+
* @throws ApiError
|
|
130
|
+
*/
|
|
131
|
+
registerWebhook({ requestBody, }: {
|
|
132
|
+
requestBody: RegisterWebhookRequest;
|
|
133
|
+
}): CancelablePromise<WebhookResponse>;
|
|
134
|
+
/**
|
|
135
|
+
* List webhooks
|
|
136
|
+
* Lists webhooks for the user.
|
|
137
|
+
* @returns ListWebhooksResponse
|
|
138
|
+
* @throws ApiError
|
|
139
|
+
*/
|
|
140
|
+
listWebhooks({ pageSize, pageToken, status, }: {
|
|
141
|
+
/**
|
|
142
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
143
|
+
*/
|
|
144
|
+
pageSize?: number;
|
|
145
|
+
/**
|
|
146
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
147
|
+
*/
|
|
148
|
+
pageToken?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
|
|
151
|
+
*/
|
|
152
|
+
status?: WebhookStatus;
|
|
153
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
154
|
+
/**
|
|
155
|
+
* Deactivate a webhook
|
|
156
|
+
* Deactivates a webhook by ID.
|
|
157
|
+
* @returns WebhookResponse
|
|
158
|
+
* @throws ApiError
|
|
159
|
+
*/
|
|
160
|
+
deactivateWebhook({ id, }: {
|
|
161
|
+
/**
|
|
162
|
+
* The webhook identifier.
|
|
163
|
+
*/
|
|
164
|
+
id: string;
|
|
165
|
+
}): CancelablePromise<WebhookResponse>;
|
|
166
|
+
/**
|
|
167
|
+
* Generate a shared secret
|
|
168
|
+
* Generates a new shared secret.
|
|
169
|
+
* @returns SharedSecretsResponse
|
|
170
|
+
* @throws ApiError
|
|
171
|
+
*/
|
|
172
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
173
|
+
}
|
|
174
|
+
|
|
63
175
|
declare enum CurrencyCode {
|
|
64
176
|
USD = "usd",
|
|
65
177
|
EUR = "eur",
|
|
@@ -680,6 +792,7 @@ type GetChainResponse = {
|
|
|
680
792
|
utilityAddresses?: UtilityAddresses;
|
|
681
793
|
networkToken: NetworkToken;
|
|
682
794
|
chainLogoUri?: string;
|
|
795
|
+
private?: boolean;
|
|
683
796
|
};
|
|
684
797
|
|
|
685
798
|
type ChainInfo = {
|
|
@@ -701,6 +814,7 @@ type ChainInfo = {
|
|
|
701
814
|
utilityAddresses?: UtilityAddresses;
|
|
702
815
|
networkToken: NetworkToken;
|
|
703
816
|
chainLogoUri?: string;
|
|
817
|
+
private?: boolean;
|
|
704
818
|
};
|
|
705
819
|
|
|
706
820
|
type ListChainsResponse = {
|
|
@@ -741,442 +855,586 @@ declare class EvmChainsService {
|
|
|
741
855
|
}): CancelablePromise<GetChainResponse>;
|
|
742
856
|
}
|
|
743
857
|
|
|
744
|
-
type
|
|
858
|
+
type ImageAsset = {
|
|
859
|
+
assetId?: string;
|
|
745
860
|
/**
|
|
746
|
-
*
|
|
861
|
+
* OUTPUT ONLY
|
|
747
862
|
*/
|
|
748
|
-
|
|
749
|
-
ercType: Erc1155Token.ercType;
|
|
750
|
-
tokenId: string;
|
|
751
|
-
tokenUri: string;
|
|
752
|
-
metadata: Erc1155TokenMetadata;
|
|
863
|
+
imageUri?: string;
|
|
753
864
|
};
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
865
|
+
|
|
866
|
+
type PricingProviders = {
|
|
867
|
+
coingeckoCoinId?: string;
|
|
868
|
+
};
|
|
869
|
+
|
|
870
|
+
declare enum ResourceLinkType {
|
|
871
|
+
BLOG = "Blog",
|
|
872
|
+
COIN_GECKO = "CoinGecko",
|
|
873
|
+
COIN_MARKET_CAP = "CoinMarketCap",
|
|
874
|
+
DISCORD = "Discord",
|
|
875
|
+
DOCUMENTATION = "Documentation",
|
|
876
|
+
FACEBOOK = "Facebook",
|
|
877
|
+
GITHUB = "Github",
|
|
878
|
+
INSTAGRAM = "Instagram",
|
|
879
|
+
LINKED_IN = "LinkedIn",
|
|
880
|
+
MEDIUM = "Medium",
|
|
881
|
+
REDDIT = "Reddit",
|
|
882
|
+
SUPPORT = "Support",
|
|
883
|
+
TELEGRAM = "Telegram",
|
|
884
|
+
TIK_TOK = "TikTok",
|
|
885
|
+
TWITTER = "Twitter",
|
|
886
|
+
WEBSITE = "Website",
|
|
887
|
+
WHITEPAPER = "Whitepaper",
|
|
888
|
+
YOUTUBE = "Youtube"
|
|
758
889
|
}
|
|
759
890
|
|
|
760
|
-
type
|
|
891
|
+
type ResourceLink = {
|
|
892
|
+
type: ResourceLinkType;
|
|
893
|
+
url: string;
|
|
894
|
+
};
|
|
895
|
+
|
|
896
|
+
type ContractSubmissionErc1155 = {
|
|
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>;
|
|
761
905
|
/**
|
|
762
906
|
* The contract name.
|
|
763
907
|
*/
|
|
764
|
-
name
|
|
908
|
+
name: string;
|
|
909
|
+
ercType: ContractSubmissionErc1155.ercType;
|
|
765
910
|
/**
|
|
766
911
|
* The contract symbol.
|
|
767
912
|
*/
|
|
768
|
-
symbol
|
|
769
|
-
|
|
770
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
771
|
-
*/
|
|
772
|
-
decimals?: number;
|
|
773
|
-
/**
|
|
774
|
-
* The logo uri for the address.
|
|
775
|
-
*/
|
|
776
|
-
logoUri?: string;
|
|
777
|
-
/**
|
|
778
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
779
|
-
*/
|
|
780
|
-
address: string;
|
|
781
|
-
};
|
|
782
|
-
|
|
783
|
-
type Erc1155TransferDetails = {
|
|
784
|
-
from: RichAddress;
|
|
785
|
-
to: RichAddress;
|
|
786
|
-
logIndex: number;
|
|
787
|
-
value: string;
|
|
788
|
-
erc1155Token: Erc1155Token;
|
|
913
|
+
symbol: string;
|
|
914
|
+
pricingProviders?: PricingProviders;
|
|
789
915
|
};
|
|
916
|
+
declare namespace ContractSubmissionErc1155 {
|
|
917
|
+
enum ercType {
|
|
918
|
+
ERC_1155 = "ERC-1155"
|
|
919
|
+
}
|
|
920
|
+
}
|
|
790
921
|
|
|
791
|
-
type
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
922
|
+
type ContractSubmissionErc20 = {
|
|
923
|
+
description?: string;
|
|
924
|
+
officialSite?: string;
|
|
925
|
+
email?: string;
|
|
926
|
+
logoAsset?: ImageAsset;
|
|
927
|
+
bannerAsset?: ImageAsset;
|
|
928
|
+
color?: string;
|
|
929
|
+
resourceLinks?: Array<ResourceLink>;
|
|
930
|
+
tags?: Array<string>;
|
|
796
931
|
/**
|
|
797
932
|
* The contract name.
|
|
798
933
|
*/
|
|
799
934
|
name: string;
|
|
935
|
+
ercType: ContractSubmissionErc20.ercType;
|
|
800
936
|
/**
|
|
801
937
|
* The contract symbol.
|
|
802
938
|
*/
|
|
803
939
|
symbol: string;
|
|
804
|
-
|
|
805
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
806
|
-
*/
|
|
807
|
-
decimals: number;
|
|
808
|
-
/**
|
|
809
|
-
* The logo uri for the address.
|
|
810
|
-
*/
|
|
811
|
-
logoUri?: string;
|
|
812
|
-
ercType: Erc20Token.ercType;
|
|
813
|
-
/**
|
|
814
|
-
* The token price, if available.
|
|
815
|
-
*/
|
|
816
|
-
price?: Money;
|
|
940
|
+
pricingProviders?: PricingProviders;
|
|
817
941
|
};
|
|
818
|
-
declare namespace
|
|
942
|
+
declare namespace ContractSubmissionErc20 {
|
|
819
943
|
enum ercType {
|
|
820
944
|
ERC_20 = "ERC-20"
|
|
821
945
|
}
|
|
822
946
|
}
|
|
823
947
|
|
|
824
|
-
type
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
/**
|
|
834
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
835
|
-
*/
|
|
836
|
-
address: string;
|
|
948
|
+
type ContractSubmissionErc721 = {
|
|
949
|
+
description?: string;
|
|
950
|
+
officialSite?: string;
|
|
951
|
+
email?: string;
|
|
952
|
+
logoAsset?: ImageAsset;
|
|
953
|
+
bannerAsset?: ImageAsset;
|
|
954
|
+
color?: string;
|
|
955
|
+
resourceLinks?: Array<ResourceLink>;
|
|
956
|
+
tags?: Array<string>;
|
|
837
957
|
/**
|
|
838
958
|
* The contract name.
|
|
839
959
|
*/
|
|
840
960
|
name: string;
|
|
961
|
+
ercType: ContractSubmissionErc721.ercType;
|
|
841
962
|
/**
|
|
842
963
|
* The contract symbol.
|
|
843
964
|
*/
|
|
844
965
|
symbol: string;
|
|
845
|
-
ercType: Erc721Token.ercType;
|
|
846
|
-
tokenId: string;
|
|
847
|
-
tokenUri: string;
|
|
848
|
-
metadata: Erc721TokenMetadata;
|
|
849
|
-
/**
|
|
850
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
851
|
-
*/
|
|
852
|
-
ownerAddress?: string;
|
|
853
966
|
};
|
|
854
|
-
declare namespace
|
|
967
|
+
declare namespace ContractSubmissionErc721 {
|
|
855
968
|
enum ercType {
|
|
856
969
|
ERC_721 = "ERC-721"
|
|
857
970
|
}
|
|
858
971
|
}
|
|
859
972
|
|
|
860
|
-
type
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
973
|
+
type ContractSubmissionUnknown = {
|
|
974
|
+
description?: string;
|
|
975
|
+
officialSite?: string;
|
|
976
|
+
email?: string;
|
|
977
|
+
logoAsset?: ImageAsset;
|
|
978
|
+
bannerAsset?: ImageAsset;
|
|
979
|
+
color?: string;
|
|
980
|
+
resourceLinks?: Array<ResourceLink>;
|
|
981
|
+
tags?: Array<string>;
|
|
982
|
+
/**
|
|
983
|
+
* The contract name.
|
|
984
|
+
*/
|
|
985
|
+
name: string;
|
|
986
|
+
ercType: ContractSubmissionUnknown.ercType;
|
|
865
987
|
};
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
988
|
+
declare namespace ContractSubmissionUnknown {
|
|
989
|
+
enum ercType {
|
|
990
|
+
UNKNOWN = "UNKNOWN"
|
|
991
|
+
}
|
|
871
992
|
}
|
|
872
993
|
|
|
873
|
-
type
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
994
|
+
type ContractSubmissionBody = {
|
|
995
|
+
contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
|
|
996
|
+
};
|
|
997
|
+
|
|
998
|
+
type ContractDeploymentDetails = {
|
|
999
|
+
txHash: string;
|
|
878
1000
|
/**
|
|
879
|
-
* The
|
|
1001
|
+
* The address that initiated the transaction which deployed this contract.
|
|
880
1002
|
*/
|
|
881
|
-
|
|
1003
|
+
deployerAddress: string;
|
|
882
1004
|
/**
|
|
883
|
-
* The contract
|
|
1005
|
+
* 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.
|
|
884
1006
|
*/
|
|
885
|
-
|
|
1007
|
+
deployerContractAddress?: string;
|
|
886
1008
|
};
|
|
887
1009
|
|
|
888
|
-
type
|
|
889
|
-
/**
|
|
890
|
-
* The block number on the chain.
|
|
891
|
-
*/
|
|
892
|
-
blockNumber: string;
|
|
1010
|
+
type Erc1155Contract = {
|
|
893
1011
|
/**
|
|
894
|
-
* The
|
|
1012
|
+
* The contract name.
|
|
895
1013
|
*/
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
1014
|
+
name?: string;
|
|
1015
|
+
description?: string;
|
|
1016
|
+
officialSite?: string;
|
|
1017
|
+
email?: string;
|
|
1018
|
+
logoAsset?: ImageAsset;
|
|
1019
|
+
bannerAsset?: ImageAsset;
|
|
1020
|
+
color?: string;
|
|
1021
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1022
|
+
tags?: Array<string>;
|
|
901
1023
|
/**
|
|
902
|
-
*
|
|
1024
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
903
1025
|
*/
|
|
904
|
-
|
|
1026
|
+
address: string;
|
|
1027
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1028
|
+
ercType: Erc1155Contract.ercType;
|
|
905
1029
|
/**
|
|
906
|
-
* The
|
|
1030
|
+
* The contract symbol.
|
|
907
1031
|
*/
|
|
908
|
-
|
|
1032
|
+
symbol?: string;
|
|
1033
|
+
pricingProviders?: PricingProviders;
|
|
1034
|
+
};
|
|
1035
|
+
declare namespace Erc1155Contract {
|
|
1036
|
+
enum ercType {
|
|
1037
|
+
ERC_1155 = "ERC-1155"
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
type Erc20Contract = {
|
|
909
1042
|
/**
|
|
910
|
-
* The
|
|
1043
|
+
* The contract name.
|
|
911
1044
|
*/
|
|
912
|
-
|
|
1045
|
+
name?: string;
|
|
1046
|
+
description?: string;
|
|
1047
|
+
officialSite?: string;
|
|
1048
|
+
email?: string;
|
|
1049
|
+
logoAsset?: ImageAsset;
|
|
1050
|
+
bannerAsset?: ImageAsset;
|
|
1051
|
+
color?: string;
|
|
1052
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1053
|
+
tags?: Array<string>;
|
|
913
1054
|
/**
|
|
914
|
-
*
|
|
1055
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
915
1056
|
*/
|
|
916
|
-
|
|
1057
|
+
address: string;
|
|
1058
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1059
|
+
ercType: Erc20Contract.ercType;
|
|
917
1060
|
/**
|
|
918
|
-
* The
|
|
1061
|
+
* The contract symbol.
|
|
919
1062
|
*/
|
|
920
|
-
|
|
1063
|
+
symbol?: string;
|
|
921
1064
|
/**
|
|
922
|
-
* The
|
|
1065
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
923
1066
|
*/
|
|
924
|
-
|
|
1067
|
+
decimals: number;
|
|
1068
|
+
pricingProviders?: PricingProviders;
|
|
1069
|
+
};
|
|
1070
|
+
declare namespace Erc20Contract {
|
|
1071
|
+
enum ercType {
|
|
1072
|
+
ERC_20 = "ERC-20"
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
type Erc721Contract = {
|
|
925
1077
|
/**
|
|
926
|
-
* The
|
|
1078
|
+
* The contract name.
|
|
927
1079
|
*/
|
|
928
|
-
|
|
1080
|
+
name?: string;
|
|
1081
|
+
description?: string;
|
|
1082
|
+
officialSite?: string;
|
|
1083
|
+
email?: string;
|
|
1084
|
+
logoAsset?: ImageAsset;
|
|
1085
|
+
bannerAsset?: ImageAsset;
|
|
1086
|
+
color?: string;
|
|
1087
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1088
|
+
tags?: Array<string>;
|
|
929
1089
|
/**
|
|
930
|
-
*
|
|
1090
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
931
1091
|
*/
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
method?: Method;
|
|
936
|
-
value: string;
|
|
1092
|
+
address: string;
|
|
1093
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1094
|
+
ercType: Erc721Contract.ercType;
|
|
937
1095
|
/**
|
|
938
|
-
* The
|
|
1096
|
+
* The contract symbol.
|
|
939
1097
|
*/
|
|
940
|
-
|
|
941
|
-
baseFeePerGas: string;
|
|
942
|
-
maxFeePerGas?: string;
|
|
943
|
-
maxPriorityFeePerGas?: string;
|
|
1098
|
+
symbol?: string;
|
|
944
1099
|
};
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
CREATE = "CREATE",
|
|
950
|
-
CREATE2 = "CREATE2",
|
|
951
|
-
CALLCODE = "CALLCODE",
|
|
952
|
-
DELEGATECALL = "DELEGATECALL",
|
|
953
|
-
STATICCALL = "STATICCALL"
|
|
1100
|
+
declare namespace Erc721Contract {
|
|
1101
|
+
enum ercType {
|
|
1102
|
+
ERC_721 = "ERC-721"
|
|
1103
|
+
}
|
|
954
1104
|
}
|
|
955
1105
|
|
|
956
|
-
type
|
|
957
|
-
from: RichAddress;
|
|
958
|
-
to: RichAddress;
|
|
959
|
-
internalTxType: InternalTransactionOpCall;
|
|
960
|
-
value: string;
|
|
1106
|
+
type UnknownContract = {
|
|
961
1107
|
/**
|
|
962
|
-
*
|
|
1108
|
+
* The contract name.
|
|
963
1109
|
*/
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
1110
|
+
name?: string;
|
|
1111
|
+
description?: string;
|
|
1112
|
+
officialSite?: string;
|
|
1113
|
+
email?: string;
|
|
1114
|
+
logoAsset?: ImageAsset;
|
|
1115
|
+
bannerAsset?: ImageAsset;
|
|
1116
|
+
color?: string;
|
|
1117
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1118
|
+
tags?: Array<string>;
|
|
1119
|
+
/**
|
|
1120
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1121
|
+
*/
|
|
1122
|
+
address: string;
|
|
1123
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1124
|
+
ercType: UnknownContract.ercType;
|
|
967
1125
|
};
|
|
1126
|
+
declare namespace UnknownContract {
|
|
1127
|
+
enum ercType {
|
|
1128
|
+
UNKNOWN = "UNKNOWN"
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
968
1131
|
|
|
969
|
-
type
|
|
970
|
-
|
|
1132
|
+
type UpdateContractResponse = {
|
|
1133
|
+
contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
|
|
1134
|
+
};
|
|
1135
|
+
|
|
1136
|
+
declare class EvmContractsService {
|
|
1137
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1138
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
971
1139
|
/**
|
|
972
|
-
*
|
|
1140
|
+
* Get contract metadata
|
|
1141
|
+
* Gets metadata about the contract at the given address.
|
|
1142
|
+
* @returns any
|
|
1143
|
+
* @throws ApiError
|
|
973
1144
|
*/
|
|
974
|
-
|
|
1145
|
+
getContractMetadata({ chainId, address, }: {
|
|
1146
|
+
/**
|
|
1147
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1148
|
+
*/
|
|
1149
|
+
chainId: string;
|
|
1150
|
+
/**
|
|
1151
|
+
* Contract address on the relevant chain.
|
|
1152
|
+
*/
|
|
1153
|
+
address: string;
|
|
1154
|
+
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
975
1155
|
/**
|
|
976
|
-
*
|
|
1156
|
+
* Update contract information
|
|
1157
|
+
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1158
|
+
* @returns UpdateContractResponse
|
|
1159
|
+
* @throws ApiError
|
|
977
1160
|
*/
|
|
978
|
-
|
|
1161
|
+
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1162
|
+
/**
|
|
1163
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1164
|
+
*/
|
|
1165
|
+
chainId: string;
|
|
1166
|
+
/**
|
|
1167
|
+
* Contract address on the relevant chain.
|
|
1168
|
+
*/
|
|
1169
|
+
address: string;
|
|
1170
|
+
requestBody: ContractSubmissionBody;
|
|
1171
|
+
}): CancelablePromise<UpdateContractResponse>;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
type Erc1155Token = {
|
|
1175
|
+
/**
|
|
1176
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1177
|
+
*/
|
|
1178
|
+
address: string;
|
|
1179
|
+
ercType: Erc1155Token.ercType;
|
|
1180
|
+
tokenId: string;
|
|
1181
|
+
tokenUri: string;
|
|
1182
|
+
metadata: Erc1155TokenMetadata;
|
|
979
1183
|
};
|
|
1184
|
+
declare namespace Erc1155Token {
|
|
1185
|
+
enum ercType {
|
|
1186
|
+
ERC_1155 = "ERC-1155"
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
980
1189
|
|
|
981
|
-
type
|
|
1190
|
+
type RichAddress = {
|
|
982
1191
|
/**
|
|
983
|
-
* The
|
|
1192
|
+
* The contract name.
|
|
984
1193
|
*/
|
|
985
|
-
|
|
1194
|
+
name?: string;
|
|
986
1195
|
/**
|
|
987
|
-
* The
|
|
1196
|
+
* The contract symbol.
|
|
988
1197
|
*/
|
|
989
|
-
|
|
1198
|
+
symbol?: string;
|
|
990
1199
|
/**
|
|
991
|
-
* The
|
|
1200
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
992
1201
|
*/
|
|
993
|
-
|
|
1202
|
+
decimals?: number;
|
|
994
1203
|
/**
|
|
995
|
-
* The
|
|
1204
|
+
* The logo uri for the address.
|
|
996
1205
|
*/
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1206
|
+
logoUri?: string;
|
|
1207
|
+
/**
|
|
1208
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1209
|
+
*/
|
|
1210
|
+
address: string;
|
|
1000
1211
|
};
|
|
1001
1212
|
|
|
1002
|
-
type
|
|
1003
|
-
|
|
1213
|
+
type Erc1155TransferDetails = {
|
|
1214
|
+
from: RichAddress;
|
|
1215
|
+
to: RichAddress;
|
|
1216
|
+
logIndex: number;
|
|
1217
|
+
value: string;
|
|
1218
|
+
erc1155Token: Erc1155Token;
|
|
1219
|
+
};
|
|
1220
|
+
|
|
1221
|
+
type Erc20Token = {
|
|
1004
1222
|
/**
|
|
1005
|
-
*
|
|
1223
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1006
1224
|
*/
|
|
1007
|
-
|
|
1225
|
+
address: string;
|
|
1008
1226
|
/**
|
|
1009
|
-
* The contract
|
|
1227
|
+
* The contract name.
|
|
1010
1228
|
*/
|
|
1011
|
-
|
|
1012
|
-
};
|
|
1013
|
-
|
|
1014
|
-
type ImageAsset = {
|
|
1015
|
-
assetId?: string;
|
|
1229
|
+
name: string;
|
|
1016
1230
|
/**
|
|
1017
|
-
*
|
|
1231
|
+
* The contract symbol.
|
|
1018
1232
|
*/
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1233
|
+
symbol: string;
|
|
1234
|
+
/**
|
|
1235
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1236
|
+
*/
|
|
1237
|
+
decimals: number;
|
|
1238
|
+
/**
|
|
1239
|
+
* The logo uri for the address.
|
|
1240
|
+
*/
|
|
1241
|
+
logoUri?: string;
|
|
1242
|
+
ercType: Erc20Token.ercType;
|
|
1243
|
+
/**
|
|
1244
|
+
* The token price, if available.
|
|
1245
|
+
*/
|
|
1246
|
+
price?: Money;
|
|
1024
1247
|
};
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
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"
|
|
1248
|
+
declare namespace Erc20Token {
|
|
1249
|
+
enum ercType {
|
|
1250
|
+
ERC_20 = "ERC-20"
|
|
1251
|
+
}
|
|
1045
1252
|
}
|
|
1046
1253
|
|
|
1047
|
-
type
|
|
1048
|
-
|
|
1049
|
-
|
|
1254
|
+
type Erc20TransferDetails = {
|
|
1255
|
+
from: RichAddress;
|
|
1256
|
+
to: RichAddress;
|
|
1257
|
+
logIndex: number;
|
|
1258
|
+
value: string;
|
|
1259
|
+
erc20Token: Erc20Token;
|
|
1050
1260
|
};
|
|
1051
1261
|
|
|
1052
|
-
type
|
|
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>;
|
|
1262
|
+
type Erc721Token = {
|
|
1065
1263
|
/**
|
|
1066
1264
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1067
1265
|
*/
|
|
1068
1266
|
address: string;
|
|
1069
|
-
|
|
1070
|
-
|
|
1267
|
+
/**
|
|
1268
|
+
* The contract name.
|
|
1269
|
+
*/
|
|
1270
|
+
name: string;
|
|
1071
1271
|
/**
|
|
1072
1272
|
* The contract symbol.
|
|
1073
1273
|
*/
|
|
1074
|
-
symbol
|
|
1075
|
-
|
|
1274
|
+
symbol: string;
|
|
1275
|
+
ercType: Erc721Token.ercType;
|
|
1276
|
+
tokenId: string;
|
|
1277
|
+
tokenUri: string;
|
|
1278
|
+
metadata: Erc721TokenMetadata;
|
|
1279
|
+
/**
|
|
1280
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1281
|
+
*/
|
|
1282
|
+
ownerAddress?: string;
|
|
1076
1283
|
};
|
|
1077
|
-
declare namespace
|
|
1284
|
+
declare namespace Erc721Token {
|
|
1078
1285
|
enum ercType {
|
|
1079
|
-
|
|
1286
|
+
ERC_721 = "ERC-721"
|
|
1080
1287
|
}
|
|
1081
1288
|
}
|
|
1082
1289
|
|
|
1083
|
-
type
|
|
1290
|
+
type Erc721TransferDetails = {
|
|
1291
|
+
from: RichAddress;
|
|
1292
|
+
to: RichAddress;
|
|
1293
|
+
logIndex: number;
|
|
1294
|
+
erc721Token: Erc721Token;
|
|
1295
|
+
};
|
|
1296
|
+
|
|
1297
|
+
declare enum TransactionMethodType {
|
|
1298
|
+
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1299
|
+
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1300
|
+
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
type Method = {
|
|
1084
1304
|
/**
|
|
1085
|
-
* The contract
|
|
1305
|
+
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1086
1306
|
*/
|
|
1087
|
-
|
|
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>;
|
|
1307
|
+
callType: TransactionMethodType;
|
|
1096
1308
|
/**
|
|
1097
|
-
*
|
|
1309
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1098
1310
|
*/
|
|
1099
|
-
|
|
1100
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1101
|
-
ercType: Erc20Contract.ercType;
|
|
1311
|
+
methodHash: string;
|
|
1102
1312
|
/**
|
|
1103
|
-
* The contract
|
|
1313
|
+
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
1104
1314
|
*/
|
|
1105
|
-
|
|
1315
|
+
methodName?: string;
|
|
1316
|
+
};
|
|
1317
|
+
|
|
1318
|
+
type FullNativeTransactionDetails = {
|
|
1319
|
+
/**
|
|
1320
|
+
* The block number on the chain.
|
|
1321
|
+
*/
|
|
1322
|
+
blockNumber: string;
|
|
1323
|
+
/**
|
|
1324
|
+
* The block finality timestamp.
|
|
1325
|
+
*/
|
|
1326
|
+
blockTimestamp: number;
|
|
1327
|
+
/**
|
|
1328
|
+
* The block hash identifier.
|
|
1329
|
+
*/
|
|
1330
|
+
blockHash: string;
|
|
1331
|
+
/**
|
|
1332
|
+
* The index at which the transaction occured in the block (0-indexed).
|
|
1333
|
+
*/
|
|
1334
|
+
blockIndex: number;
|
|
1335
|
+
/**
|
|
1336
|
+
* The transaction hash identifier.
|
|
1337
|
+
*/
|
|
1338
|
+
txHash: string;
|
|
1339
|
+
/**
|
|
1340
|
+
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1341
|
+
*/
|
|
1342
|
+
txStatus: string;
|
|
1343
|
+
/**
|
|
1344
|
+
* The transaction type.
|
|
1345
|
+
*/
|
|
1346
|
+
txType: number;
|
|
1347
|
+
/**
|
|
1348
|
+
* The gas limit set for the transaction.
|
|
1349
|
+
*/
|
|
1350
|
+
gasLimit: string;
|
|
1351
|
+
/**
|
|
1352
|
+
* The amount of gas used.
|
|
1353
|
+
*/
|
|
1354
|
+
gasUsed: string;
|
|
1355
|
+
/**
|
|
1356
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1357
|
+
*/
|
|
1358
|
+
gasPrice: string;
|
|
1359
|
+
/**
|
|
1360
|
+
* The nonce used by the sender of the transaction.
|
|
1361
|
+
*/
|
|
1362
|
+
nonce: string;
|
|
1363
|
+
from: RichAddress;
|
|
1364
|
+
to: RichAddress;
|
|
1365
|
+
method?: Method;
|
|
1366
|
+
value: string;
|
|
1106
1367
|
/**
|
|
1107
|
-
* The
|
|
1368
|
+
* The data sent for the transaction.
|
|
1108
1369
|
*/
|
|
1109
|
-
|
|
1110
|
-
|
|
1370
|
+
input: string;
|
|
1371
|
+
baseFeePerGas: string;
|
|
1372
|
+
maxFeePerGas?: string;
|
|
1373
|
+
maxPriorityFeePerGas?: string;
|
|
1111
1374
|
};
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1375
|
+
|
|
1376
|
+
declare enum InternalTransactionOpCall {
|
|
1377
|
+
UNKNOWN = "UNKNOWN",
|
|
1378
|
+
CALL = "CALL",
|
|
1379
|
+
CREATE = "CREATE",
|
|
1380
|
+
CREATE2 = "CREATE2",
|
|
1381
|
+
CALLCODE = "CALLCODE",
|
|
1382
|
+
DELEGATECALL = "DELEGATECALL",
|
|
1383
|
+
STATICCALL = "STATICCALL"
|
|
1116
1384
|
}
|
|
1117
1385
|
|
|
1118
|
-
type
|
|
1386
|
+
type InternalTransactionDetails = {
|
|
1387
|
+
from: RichAddress;
|
|
1388
|
+
to: RichAddress;
|
|
1389
|
+
internalTxType: InternalTransactionOpCall;
|
|
1390
|
+
value: string;
|
|
1119
1391
|
/**
|
|
1120
|
-
*
|
|
1392
|
+
* True if the internal transaction was reverted.
|
|
1121
1393
|
*/
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1130
|
-
tags?: Array<string>;
|
|
1394
|
+
isReverted: boolean;
|
|
1395
|
+
gasUsed: string;
|
|
1396
|
+
gasLimit: string;
|
|
1397
|
+
};
|
|
1398
|
+
|
|
1399
|
+
type NetworkTokenDetails = {
|
|
1400
|
+
networkToken: NetworkToken;
|
|
1131
1401
|
/**
|
|
1132
|
-
*
|
|
1402
|
+
* The current token price, if available.
|
|
1133
1403
|
*/
|
|
1134
|
-
|
|
1135
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1136
|
-
ercType: Erc721Contract.ercType;
|
|
1404
|
+
currentPrice?: Money;
|
|
1137
1405
|
/**
|
|
1138
|
-
* The
|
|
1406
|
+
* The historical token price at the time the transaction occured, if available. Note, this is only provided if the transaction occured more than 24 hours ago.
|
|
1139
1407
|
*/
|
|
1140
|
-
|
|
1408
|
+
historicalPrice?: Money;
|
|
1141
1409
|
};
|
|
1142
|
-
declare namespace Erc721Contract {
|
|
1143
|
-
enum ercType {
|
|
1144
|
-
ERC_721 = "ERC-721"
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
1410
|
|
|
1148
|
-
type
|
|
1411
|
+
type GetTransactionResponse = {
|
|
1149
1412
|
/**
|
|
1150
|
-
* The
|
|
1413
|
+
* The list of ERC-20 transfers.
|
|
1151
1414
|
*/
|
|
1152
|
-
|
|
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>;
|
|
1415
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1161
1416
|
/**
|
|
1162
|
-
*
|
|
1417
|
+
* The list of ERC-721 transfers.
|
|
1163
1418
|
*/
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1419
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1420
|
+
/**
|
|
1421
|
+
* The list of ERC-1155 transfers.
|
|
1422
|
+
*/
|
|
1423
|
+
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1424
|
+
/**
|
|
1425
|
+
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
1426
|
+
*/
|
|
1427
|
+
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1428
|
+
networkTokenDetails: NetworkTokenDetails;
|
|
1429
|
+
nativeTransaction: FullNativeTransactionDetails;
|
|
1167
1430
|
};
|
|
1168
|
-
declare namespace UnknownContract {
|
|
1169
|
-
enum ercType {
|
|
1170
|
-
UNKNOWN = "UNKNOWN"
|
|
1171
|
-
}
|
|
1172
|
-
}
|
|
1173
1431
|
|
|
1174
1432
|
type ListContractsResponse = {
|
|
1175
1433
|
/**
|
|
1176
1434
|
* 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
1435
|
*/
|
|
1178
1436
|
nextPageToken?: string;
|
|
1179
|
-
contracts: Array<(
|
|
1437
|
+
contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1180
1438
|
};
|
|
1181
1439
|
|
|
1182
1440
|
type Erc1155Transfer = {
|
|
@@ -1481,7 +1739,13 @@ declare class EvmTransactionsService {
|
|
|
1481
1739
|
* A wallet address.
|
|
1482
1740
|
*/
|
|
1483
1741
|
address: string;
|
|
1742
|
+
/**
|
|
1743
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1744
|
+
*/
|
|
1484
1745
|
startBlock?: number;
|
|
1746
|
+
/**
|
|
1747
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1748
|
+
*/
|
|
1485
1749
|
endBlock?: number;
|
|
1486
1750
|
/**
|
|
1487
1751
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1517,7 +1781,13 @@ declare class EvmTransactionsService {
|
|
|
1517
1781
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1518
1782
|
*/
|
|
1519
1783
|
pageToken?: string;
|
|
1784
|
+
/**
|
|
1785
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1786
|
+
*/
|
|
1520
1787
|
startBlock?: number;
|
|
1788
|
+
/**
|
|
1789
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1790
|
+
*/
|
|
1521
1791
|
endBlock?: number;
|
|
1522
1792
|
/**
|
|
1523
1793
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
@@ -1539,7 +1809,13 @@ declare class EvmTransactionsService {
|
|
|
1539
1809
|
* A wallet address.
|
|
1540
1810
|
*/
|
|
1541
1811
|
address: string;
|
|
1812
|
+
/**
|
|
1813
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1814
|
+
*/
|
|
1542
1815
|
startBlock?: number;
|
|
1816
|
+
/**
|
|
1817
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1818
|
+
*/
|
|
1543
1819
|
endBlock?: number;
|
|
1544
1820
|
/**
|
|
1545
1821
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1565,7 +1841,13 @@ declare class EvmTransactionsService {
|
|
|
1565
1841
|
* A wallet address.
|
|
1566
1842
|
*/
|
|
1567
1843
|
address: string;
|
|
1844
|
+
/**
|
|
1845
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1846
|
+
*/
|
|
1568
1847
|
startBlock?: number;
|
|
1848
|
+
/**
|
|
1849
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1850
|
+
*/
|
|
1569
1851
|
endBlock?: number;
|
|
1570
1852
|
/**
|
|
1571
1853
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1591,7 +1873,13 @@ declare class EvmTransactionsService {
|
|
|
1591
1873
|
* A wallet address.
|
|
1592
1874
|
*/
|
|
1593
1875
|
address: string;
|
|
1876
|
+
/**
|
|
1877
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1878
|
+
*/
|
|
1594
1879
|
startBlock?: number;
|
|
1880
|
+
/**
|
|
1881
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1882
|
+
*/
|
|
1595
1883
|
endBlock?: number;
|
|
1596
1884
|
/**
|
|
1597
1885
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1617,7 +1905,13 @@ declare class EvmTransactionsService {
|
|
|
1617
1905
|
* A wallet address.
|
|
1618
1906
|
*/
|
|
1619
1907
|
address: string;
|
|
1908
|
+
/**
|
|
1909
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1910
|
+
*/
|
|
1620
1911
|
startBlock?: number;
|
|
1912
|
+
/**
|
|
1913
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1914
|
+
*/
|
|
1621
1915
|
endBlock?: number;
|
|
1622
1916
|
/**
|
|
1623
1917
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1645,7 +1939,13 @@ declare class EvmTransactionsService {
|
|
|
1645
1939
|
* A wallet address.
|
|
1646
1940
|
*/
|
|
1647
1941
|
address: string;
|
|
1942
|
+
/**
|
|
1943
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1944
|
+
*/
|
|
1648
1945
|
startBlock?: number;
|
|
1946
|
+
/**
|
|
1947
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1948
|
+
*/
|
|
1649
1949
|
endBlock?: number;
|
|
1650
1950
|
/**
|
|
1651
1951
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1730,6 +2030,14 @@ declare class HealthCheckService {
|
|
|
1730
2030
|
}>;
|
|
1731
2031
|
}
|
|
1732
2032
|
|
|
2033
|
+
type ListNftTokens = {
|
|
2034
|
+
/**
|
|
2035
|
+
* 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.
|
|
2036
|
+
*/
|
|
2037
|
+
nextPageToken?: string;
|
|
2038
|
+
tokens: (Array<Erc721Token> | Array<Erc1155Token>);
|
|
2039
|
+
};
|
|
2040
|
+
|
|
1733
2041
|
declare class NfTsService {
|
|
1734
2042
|
readonly httpRequest: BaseHttpRequest;
|
|
1735
2043
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -1754,12 +2062,12 @@ declare class NfTsService {
|
|
|
1754
2062
|
tokenId: string;
|
|
1755
2063
|
}): CancelablePromise<any>;
|
|
1756
2064
|
/**
|
|
1757
|
-
*
|
|
1758
|
-
*
|
|
1759
|
-
* @returns
|
|
2065
|
+
* List tokens
|
|
2066
|
+
* Lists tokens for an NFT contract.
|
|
2067
|
+
* @returns ListNftTokens
|
|
1760
2068
|
* @throws ApiError
|
|
1761
2069
|
*/
|
|
1762
|
-
|
|
2070
|
+
listTokens({ chainId, address, pageSize, pageToken, }: {
|
|
1763
2071
|
/**
|
|
1764
2072
|
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1765
2073
|
*/
|
|
@@ -1769,17 +2077,21 @@ declare class NfTsService {
|
|
|
1769
2077
|
*/
|
|
1770
2078
|
address: string;
|
|
1771
2079
|
/**
|
|
1772
|
-
*
|
|
2080
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1773
2081
|
*/
|
|
1774
|
-
|
|
1775
|
-
|
|
2082
|
+
pageSize?: number;
|
|
2083
|
+
/**
|
|
2084
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2085
|
+
*/
|
|
2086
|
+
pageToken?: string;
|
|
2087
|
+
}): CancelablePromise<ListNftTokens>;
|
|
1776
2088
|
/**
|
|
1777
|
-
* Get
|
|
1778
|
-
* Gets
|
|
2089
|
+
* Get token details
|
|
2090
|
+
* Gets token details for a specific token of an NFT contract.
|
|
1779
2091
|
* @returns any
|
|
1780
2092
|
* @throws ApiError
|
|
1781
2093
|
*/
|
|
1782
|
-
|
|
2094
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
1783
2095
|
/**
|
|
1784
2096
|
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1785
2097
|
*/
|
|
@@ -1788,7 +2100,11 @@ declare class NfTsService {
|
|
|
1788
2100
|
* Contract address on the relevant chain.
|
|
1789
2101
|
*/
|
|
1790
2102
|
address: string;
|
|
1791
|
-
|
|
2103
|
+
/**
|
|
2104
|
+
* TokenId on the contract
|
|
2105
|
+
*/
|
|
2106
|
+
tokenId: string;
|
|
2107
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
1792
2108
|
}
|
|
1793
2109
|
|
|
1794
2110
|
type EvmNetworkOptions = {
|
|
@@ -1885,17 +2201,6 @@ type OperationStatusResponse = {
|
|
|
1885
2201
|
declare class OperationsService {
|
|
1886
2202
|
readonly httpRequest: BaseHttpRequest;
|
|
1887
2203
|
constructor(httpRequest: BaseHttpRequest);
|
|
1888
|
-
/**
|
|
1889
|
-
* Create transaction export operation
|
|
1890
|
-
* Trigger a transaction export operation with given parameters.
|
|
1891
|
-
*
|
|
1892
|
-
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
1893
|
-
* @returns OperationStatusResponse
|
|
1894
|
-
* @throws ApiError
|
|
1895
|
-
*/
|
|
1896
|
-
postTransactionExportJob({ requestBody, }: {
|
|
1897
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
1898
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
1899
2204
|
/**
|
|
1900
2205
|
* Get operation
|
|
1901
2206
|
* Gets operation details for the given operation id.
|
|
@@ -1908,6 +2213,17 @@ declare class OperationsService {
|
|
|
1908
2213
|
*/
|
|
1909
2214
|
operationId: string;
|
|
1910
2215
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2216
|
+
/**
|
|
2217
|
+
* Create transaction export operation
|
|
2218
|
+
* Trigger a transaction export operation with given parameters.
|
|
2219
|
+
*
|
|
2220
|
+
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
2221
|
+
* @returns OperationStatusResponse
|
|
2222
|
+
* @throws ApiError
|
|
2223
|
+
*/
|
|
2224
|
+
postTransactionExportJob({ requestBody, }: {
|
|
2225
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2226
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
1911
2227
|
}
|
|
1912
2228
|
|
|
1913
2229
|
declare enum BlockchainIds {
|
|
@@ -1976,39 +2292,57 @@ type ListBlockchainsResponse = {
|
|
|
1976
2292
|
|
|
1977
2293
|
type ActiveDelegatorDetails = {
|
|
1978
2294
|
txHash: string;
|
|
2295
|
+
nodeId: string;
|
|
1979
2296
|
rewardAddresses: Array<string>;
|
|
1980
2297
|
amountDelegated: string;
|
|
1981
2298
|
delegationFee: string;
|
|
1982
2299
|
startTimestamp: number;
|
|
1983
2300
|
endTimestamp: number;
|
|
1984
|
-
delegationStatus: DelegationStatusType;
|
|
1985
2301
|
estimatedGrossReward: string;
|
|
1986
2302
|
estimatedNetReward: string;
|
|
2303
|
+
delegationStatus: ActiveDelegatorDetails.delegationStatus;
|
|
1987
2304
|
};
|
|
2305
|
+
declare namespace ActiveDelegatorDetails {
|
|
2306
|
+
enum delegationStatus {
|
|
2307
|
+
ACTIVE = "active"
|
|
2308
|
+
}
|
|
2309
|
+
}
|
|
1988
2310
|
|
|
1989
2311
|
type CompletedDelegatorDetails = {
|
|
1990
2312
|
txHash: string;
|
|
2313
|
+
nodeId: string;
|
|
1991
2314
|
rewardAddresses: Array<string>;
|
|
1992
2315
|
amountDelegated: string;
|
|
1993
2316
|
delegationFee: string;
|
|
1994
2317
|
startTimestamp: number;
|
|
1995
2318
|
endTimestamp: number;
|
|
1996
|
-
delegationStatus: DelegationStatusType;
|
|
1997
2319
|
grossReward: string;
|
|
1998
2320
|
netReward: string;
|
|
2321
|
+
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
1999
2322
|
};
|
|
2323
|
+
declare namespace CompletedDelegatorDetails {
|
|
2324
|
+
enum delegationStatus {
|
|
2325
|
+
COMPLETED = "completed"
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2000
2328
|
|
|
2001
2329
|
type PendingDelegatorDetails = {
|
|
2002
2330
|
txHash: string;
|
|
2331
|
+
nodeId: string;
|
|
2003
2332
|
rewardAddresses: Array<string>;
|
|
2004
2333
|
amountDelegated: string;
|
|
2005
2334
|
delegationFee: string;
|
|
2006
2335
|
startTimestamp: number;
|
|
2007
2336
|
endTimestamp: number;
|
|
2008
|
-
delegationStatus: DelegationStatusType;
|
|
2009
2337
|
estimatedGrossReward: string;
|
|
2010
2338
|
estimatedNetReward: string;
|
|
2339
|
+
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2011
2340
|
};
|
|
2341
|
+
declare namespace PendingDelegatorDetails {
|
|
2342
|
+
enum delegationStatus {
|
|
2343
|
+
PENDING = "pending"
|
|
2344
|
+
}
|
|
2345
|
+
}
|
|
2012
2346
|
|
|
2013
2347
|
type ListDelegatorDetailsResponse = {
|
|
2014
2348
|
/**
|
|
@@ -2046,49 +2380,86 @@ type ListSubnetsResponse = {
|
|
|
2046
2380
|
type Rewards = {
|
|
2047
2381
|
validationRewardAmount: string;
|
|
2048
2382
|
delegationRewardAmount: string;
|
|
2383
|
+
rewardAddresses?: Array<string>;
|
|
2384
|
+
rewardTxHash?: string;
|
|
2049
2385
|
};
|
|
2050
2386
|
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2387
|
+
type ValidatorHealthDetails = {
|
|
2388
|
+
/**
|
|
2389
|
+
* Percent of requests responded to in last polling.
|
|
2390
|
+
*/
|
|
2391
|
+
reachabilityPercent: number;
|
|
2392
|
+
/**
|
|
2393
|
+
* Percent of requests benched on the P-Chain in last polling.
|
|
2394
|
+
*/
|
|
2395
|
+
benchedPChainRequestsPercent: number;
|
|
2396
|
+
/**
|
|
2397
|
+
* Percentage of requests benched on the X-Chain in last polling.
|
|
2398
|
+
*/
|
|
2399
|
+
benchedXChainRequestsPercent: number;
|
|
2400
|
+
/**
|
|
2401
|
+
* Percentage of requests benched on the C-Chain in last polling.
|
|
2402
|
+
*/
|
|
2403
|
+
benchedCChainRequestsPercent: number;
|
|
2404
|
+
};
|
|
2056
2405
|
|
|
2057
2406
|
type ActiveValidatorDetails = {
|
|
2407
|
+
txHash: string;
|
|
2058
2408
|
nodeId: string;
|
|
2409
|
+
subnetId: string;
|
|
2059
2410
|
amountStaked: string;
|
|
2060
|
-
delegationFee
|
|
2411
|
+
delegationFee?: string;
|
|
2061
2412
|
startTimestamp: number;
|
|
2062
2413
|
endTimestamp: number;
|
|
2063
|
-
validationStatus: ValidationStatusType;
|
|
2064
2414
|
stakePercentage: number;
|
|
2065
2415
|
delegatorCount: number;
|
|
2066
|
-
amountDelegated
|
|
2416
|
+
amountDelegated?: string;
|
|
2067
2417
|
uptimePerformance: number;
|
|
2068
|
-
avalancheGoVersion
|
|
2069
|
-
delegationCapacity
|
|
2418
|
+
avalancheGoVersion?: string;
|
|
2419
|
+
delegationCapacity?: string;
|
|
2070
2420
|
potentialRewards: Rewards;
|
|
2421
|
+
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2422
|
+
validatorHealth: ValidatorHealthDetails;
|
|
2071
2423
|
};
|
|
2424
|
+
declare namespace ActiveValidatorDetails {
|
|
2425
|
+
enum validationStatus {
|
|
2426
|
+
ACTIVE = "active"
|
|
2427
|
+
}
|
|
2428
|
+
}
|
|
2072
2429
|
|
|
2073
2430
|
type CompletedValidatorDetails = {
|
|
2431
|
+
txHash: string;
|
|
2074
2432
|
nodeId: string;
|
|
2433
|
+
subnetId: string;
|
|
2075
2434
|
amountStaked: string;
|
|
2076
|
-
delegationFee
|
|
2435
|
+
delegationFee?: string;
|
|
2077
2436
|
startTimestamp: number;
|
|
2078
2437
|
endTimestamp: number;
|
|
2079
|
-
validationStatus: ValidationStatusType;
|
|
2080
2438
|
delegatorCount: number;
|
|
2081
2439
|
rewards: Rewards;
|
|
2440
|
+
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2082
2441
|
};
|
|
2442
|
+
declare namespace CompletedValidatorDetails {
|
|
2443
|
+
enum validationStatus {
|
|
2444
|
+
COMPLETED = "completed"
|
|
2445
|
+
}
|
|
2446
|
+
}
|
|
2083
2447
|
|
|
2084
2448
|
type PendingValidatorDetails = {
|
|
2449
|
+
txHash: string;
|
|
2085
2450
|
nodeId: string;
|
|
2451
|
+
subnetId: string;
|
|
2086
2452
|
amountStaked: string;
|
|
2087
|
-
delegationFee
|
|
2453
|
+
delegationFee?: string;
|
|
2088
2454
|
startTimestamp: number;
|
|
2089
2455
|
endTimestamp: number;
|
|
2090
|
-
validationStatus:
|
|
2456
|
+
validationStatus: PendingValidatorDetails.validationStatus;
|
|
2091
2457
|
};
|
|
2458
|
+
declare namespace PendingValidatorDetails {
|
|
2459
|
+
enum validationStatus {
|
|
2460
|
+
PENDING = "pending"
|
|
2461
|
+
}
|
|
2462
|
+
}
|
|
2092
2463
|
|
|
2093
2464
|
type ListValidatorDetailsResponse = {
|
|
2094
2465
|
/**
|
|
@@ -2096,7 +2467,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2096
2467
|
*/
|
|
2097
2468
|
nextPageToken?: string;
|
|
2098
2469
|
/**
|
|
2099
|
-
* The list of
|
|
2470
|
+
* The list of validator Details.
|
|
2100
2471
|
*/
|
|
2101
2472
|
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2102
2473
|
};
|
|
@@ -2106,6 +2477,12 @@ declare enum Network {
|
|
|
2106
2477
|
FUJI = "fuji"
|
|
2107
2478
|
}
|
|
2108
2479
|
|
|
2480
|
+
declare enum ValidationStatusType {
|
|
2481
|
+
COMPLETED = "completed",
|
|
2482
|
+
ACTIVE = "active",
|
|
2483
|
+
PENDING = "pending"
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2109
2486
|
type XChainAssetDetails = {
|
|
2110
2487
|
/**
|
|
2111
2488
|
* Unique ID for an asset.
|
|
@@ -2248,7 +2625,7 @@ declare class PrimaryNetworkService {
|
|
|
2248
2625
|
* @returns ListValidatorDetailsResponse
|
|
2249
2626
|
* @throws ApiError
|
|
2250
2627
|
*/
|
|
2251
|
-
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus,
|
|
2628
|
+
listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
|
|
2252
2629
|
/**
|
|
2253
2630
|
* Either mainnet or a testnet.
|
|
2254
2631
|
*/
|
|
@@ -2261,6 +2638,30 @@ declare class PrimaryNetworkService {
|
|
|
2261
2638
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2262
2639
|
*/
|
|
2263
2640
|
pageToken?: string;
|
|
2641
|
+
/**
|
|
2642
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2643
|
+
*/
|
|
2644
|
+
minTimeRemaining?: any;
|
|
2645
|
+
/**
|
|
2646
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2647
|
+
*/
|
|
2648
|
+
maxTimeRemaining?: any;
|
|
2649
|
+
/**
|
|
2650
|
+
* The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
|
|
2651
|
+
*/
|
|
2652
|
+
minDelegationCapacity?: number;
|
|
2653
|
+
/**
|
|
2654
|
+
* The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
|
|
2655
|
+
*/
|
|
2656
|
+
maxDelegationCapacity?: number;
|
|
2657
|
+
/**
|
|
2658
|
+
* The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
|
|
2659
|
+
*/
|
|
2660
|
+
minFeePercentage?: any;
|
|
2661
|
+
/**
|
|
2662
|
+
* The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
|
|
2663
|
+
*/
|
|
2664
|
+
maxFeePercentage?: any;
|
|
2264
2665
|
/**
|
|
2265
2666
|
* A comma separated list of node ids to filter by.
|
|
2266
2667
|
*/
|
|
@@ -2274,9 +2675,9 @@ declare class PrimaryNetworkService {
|
|
|
2274
2675
|
*/
|
|
2275
2676
|
validationStatus?: ValidationStatusType;
|
|
2276
2677
|
/**
|
|
2277
|
-
* The
|
|
2678
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2278
2679
|
*/
|
|
2279
|
-
|
|
2680
|
+
subnetId?: string;
|
|
2280
2681
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2281
2682
|
/**
|
|
2282
2683
|
* Get single validator details
|
|
@@ -2316,7 +2717,7 @@ declare class PrimaryNetworkService {
|
|
|
2316
2717
|
* @returns ListDelegatorDetailsResponse
|
|
2317
2718
|
* @throws ApiError
|
|
2318
2719
|
*/
|
|
2319
|
-
listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus,
|
|
2720
|
+
listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2320
2721
|
/**
|
|
2321
2722
|
* Either mainnet or a testnet.
|
|
2322
2723
|
*/
|
|
@@ -2329,6 +2730,10 @@ declare class PrimaryNetworkService {
|
|
|
2329
2730
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2330
2731
|
*/
|
|
2331
2732
|
pageToken?: string;
|
|
2733
|
+
/**
|
|
2734
|
+
* A comma separated list of reward addresses to filter by.
|
|
2735
|
+
*/
|
|
2736
|
+
rewardAddresses?: string;
|
|
2332
2737
|
/**
|
|
2333
2738
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2334
2739
|
*/
|
|
@@ -2337,10 +2742,6 @@ declare class PrimaryNetworkService {
|
|
|
2337
2742
|
* Delegation status of the node.
|
|
2338
2743
|
*/
|
|
2339
2744
|
delegationStatus?: DelegationStatusType;
|
|
2340
|
-
/**
|
|
2341
|
-
* A comma separated list of reward addresses to filter by.
|
|
2342
|
-
*/
|
|
2343
|
-
rewardAddresses?: string;
|
|
2344
2745
|
/**
|
|
2345
2746
|
* A comma separated list of node ids to filter by.
|
|
2346
2747
|
*/
|
|
@@ -2589,6 +2990,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2589
2990
|
txCount: number;
|
|
2590
2991
|
transactions: Array<string>;
|
|
2591
2992
|
blockSizeBytes: number;
|
|
2993
|
+
currentSupply?: string;
|
|
2592
2994
|
proposerDetails?: ProposerDetails;
|
|
2593
2995
|
};
|
|
2594
2996
|
|
|
@@ -2601,6 +3003,7 @@ type PrimaryNetworkBlock = {
|
|
|
2601
3003
|
txCount: number;
|
|
2602
3004
|
transactions: Array<string>;
|
|
2603
3005
|
blockSizeBytes: number;
|
|
3006
|
+
currentSupply?: string;
|
|
2604
3007
|
proposerDetails?: ProposerDetails;
|
|
2605
3008
|
};
|
|
2606
3009
|
|
|
@@ -2692,7 +3095,8 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2692
3095
|
|
|
2693
3096
|
declare enum RewardType {
|
|
2694
3097
|
VALIDATOR = "VALIDATOR",
|
|
2695
|
-
DELEGATOR = "DELEGATOR"
|
|
3098
|
+
DELEGATOR = "DELEGATOR",
|
|
3099
|
+
VALIDATOR_FEE = "VALIDATOR_FEE"
|
|
2696
3100
|
}
|
|
2697
3101
|
|
|
2698
3102
|
type HistoricalReward = {
|
|
@@ -2758,7 +3162,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2758
3162
|
* @returns ListPendingRewardsResponse
|
|
2759
3163
|
* @throws ApiError
|
|
2760
3164
|
*/
|
|
2761
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
3165
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
2762
3166
|
/**
|
|
2763
3167
|
* Either mainnet or a testnet.
|
|
2764
3168
|
*/
|
|
@@ -2775,6 +3179,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2775
3179
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2776
3180
|
*/
|
|
2777
3181
|
pageToken?: string;
|
|
3182
|
+
/**
|
|
3183
|
+
* A comma separated list of node ids to filter by.
|
|
3184
|
+
*/
|
|
3185
|
+
nodeIds?: string;
|
|
2778
3186
|
/**
|
|
2779
3187
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2780
3188
|
*/
|
|
@@ -2786,7 +3194,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2786
3194
|
* @returns ListHistoricalRewardsResponse
|
|
2787
3195
|
* @throws ApiError
|
|
2788
3196
|
*/
|
|
2789
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
3197
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
2790
3198
|
/**
|
|
2791
3199
|
* Either mainnet or a testnet.
|
|
2792
3200
|
*/
|
|
@@ -2803,6 +3211,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2803
3211
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2804
3212
|
*/
|
|
2805
3213
|
pageToken?: string;
|
|
3214
|
+
/**
|
|
3215
|
+
* A comma separated list of node ids to filter by.
|
|
3216
|
+
*/
|
|
3217
|
+
nodeIds?: string;
|
|
2806
3218
|
/**
|
|
2807
3219
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2808
3220
|
*/
|
|
@@ -3057,6 +3469,7 @@ declare enum PChainTransactionType {
|
|
|
3057
3469
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3058
3470
|
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3059
3471
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3472
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3060
3473
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3061
3474
|
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3062
3475
|
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
@@ -3159,6 +3572,7 @@ type PChainTransaction = {
|
|
|
3159
3572
|
*/
|
|
3160
3573
|
estimatedReward?: string;
|
|
3161
3574
|
rewardTxHash?: string;
|
|
3575
|
+
rewardAddresses?: Array<string>;
|
|
3162
3576
|
memo?: string;
|
|
3163
3577
|
/**
|
|
3164
3578
|
* Present for RewardValidatorTx
|
|
@@ -3175,6 +3589,15 @@ type ListPChainTransactionsResponse = {
|
|
|
3175
3589
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3176
3590
|
};
|
|
3177
3591
|
|
|
3592
|
+
declare enum XChainTransactionType {
|
|
3593
|
+
BASE_TX = "BaseTx",
|
|
3594
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3595
|
+
OPERATION_TX = "OperationTx",
|
|
3596
|
+
IMPORT_TX = "ImportTx",
|
|
3597
|
+
EXPORT_TX = "ExportTx",
|
|
3598
|
+
UNKNOWN = "UNKNOWN"
|
|
3599
|
+
}
|
|
3600
|
+
|
|
3178
3601
|
type XChainLinearTransaction = {
|
|
3179
3602
|
/**
|
|
3180
3603
|
* Unique ID for this transaction.
|
|
@@ -3191,7 +3614,7 @@ type XChainLinearTransaction = {
|
|
|
3191
3614
|
/**
|
|
3192
3615
|
* Type of transaction.
|
|
3193
3616
|
*/
|
|
3194
|
-
txType:
|
|
3617
|
+
txType: XChainTransactionType;
|
|
3195
3618
|
/**
|
|
3196
3619
|
* Hex encoded memo bytes for this transaction.
|
|
3197
3620
|
*/
|
|
@@ -3268,7 +3691,7 @@ type XChainNonLinearTransaction = {
|
|
|
3268
3691
|
/**
|
|
3269
3692
|
* Type of transaction.
|
|
3270
3693
|
*/
|
|
3271
|
-
txType:
|
|
3694
|
+
txType: XChainTransactionType;
|
|
3272
3695
|
/**
|
|
3273
3696
|
* Hex encoded memo bytes for this transaction.
|
|
3274
3697
|
*/
|
|
@@ -3328,6 +3751,7 @@ declare enum PrimaryNetworkTxType {
|
|
|
3328
3751
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3329
3752
|
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3330
3753
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3754
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3331
3755
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3332
3756
|
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3333
3757
|
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
@@ -3665,9 +4089,11 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3665
4089
|
|
|
3666
4090
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3667
4091
|
declare class Glacier {
|
|
4092
|
+
readonly default: DefaultService;
|
|
3668
4093
|
readonly evmBalances: EvmBalancesService;
|
|
3669
4094
|
readonly evmBlocks: EvmBlocksService;
|
|
3670
4095
|
readonly evmChains: EvmChainsService;
|
|
4096
|
+
readonly evmContracts: EvmContractsService;
|
|
3671
4097
|
readonly evmTransactions: EvmTransactionsService;
|
|
3672
4098
|
readonly healthCheck: HealthCheckService;
|
|
3673
4099
|
readonly nfTs: NfTsService;
|
|
@@ -3700,4 +4126,4 @@ declare class ApiError extends Error {
|
|
|
3700
4126
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3701
4127
|
}
|
|
3702
4128
|
|
|
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 };
|
|
4129
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, 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, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, 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, RegisterWebhookRequest, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|