@avalabs/glacier-sdk 2.8.0-canary.ca01c76.0 → 2.8.0-canary.cde943d.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 +757 -342
- package/dist/index.js +293 -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/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 +59 -0
- package/esm/generated/services/DefaultService.js +49 -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 +18 -0
- package/esm/index.js +16 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,107 @@ 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
|
+
declare enum WebhookStatus {
|
|
109
|
+
ACTIVE = "active",
|
|
110
|
+
INACTIVE = "inactive"
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
declare class DefaultService {
|
|
114
|
+
readonly httpRequest: BaseHttpRequest;
|
|
115
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
116
|
+
/**
|
|
117
|
+
* @returns any
|
|
118
|
+
* @throws ApiError
|
|
119
|
+
*/
|
|
120
|
+
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
121
|
+
/**
|
|
122
|
+
* Register a webhook
|
|
123
|
+
* Registers a new webhook.
|
|
124
|
+
* @returns WebhookResponse
|
|
125
|
+
* @throws ApiError
|
|
126
|
+
*/
|
|
127
|
+
registerWebhook({ requestBody, }: {
|
|
128
|
+
requestBody: RegisterWebhookRequest;
|
|
129
|
+
}): CancelablePromise<WebhookResponse>;
|
|
130
|
+
/**
|
|
131
|
+
* List webhooks
|
|
132
|
+
* Lists webhooks for the user.
|
|
133
|
+
* @returns ListWebhooksResponse
|
|
134
|
+
* @throws ApiError
|
|
135
|
+
*/
|
|
136
|
+
listWebhooks({ pageSize, pageToken, status, }: {
|
|
137
|
+
/**
|
|
138
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
139
|
+
*/
|
|
140
|
+
pageSize?: number;
|
|
141
|
+
/**
|
|
142
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
143
|
+
*/
|
|
144
|
+
pageToken?: string;
|
|
145
|
+
/**
|
|
146
|
+
* 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.
|
|
147
|
+
*/
|
|
148
|
+
status?: WebhookStatus;
|
|
149
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
150
|
+
/**
|
|
151
|
+
* Deactivate a webhook
|
|
152
|
+
* Deactivates a webhook by ID.
|
|
153
|
+
* @returns WebhookResponse
|
|
154
|
+
* @throws ApiError
|
|
155
|
+
*/
|
|
156
|
+
deactivateWebhook({ id, }: {
|
|
157
|
+
/**
|
|
158
|
+
* The webhook identifier.
|
|
159
|
+
*/
|
|
160
|
+
id: string;
|
|
161
|
+
}): CancelablePromise<WebhookResponse>;
|
|
162
|
+
}
|
|
163
|
+
|
|
63
164
|
declare enum CurrencyCode {
|
|
64
165
|
USD = "usd",
|
|
65
166
|
EUR = "eur",
|
|
@@ -680,6 +781,7 @@ type GetChainResponse = {
|
|
|
680
781
|
utilityAddresses?: UtilityAddresses;
|
|
681
782
|
networkToken: NetworkToken;
|
|
682
783
|
chainLogoUri?: string;
|
|
784
|
+
private?: boolean;
|
|
683
785
|
};
|
|
684
786
|
|
|
685
787
|
type ChainInfo = {
|
|
@@ -701,6 +803,7 @@ type ChainInfo = {
|
|
|
701
803
|
utilityAddresses?: UtilityAddresses;
|
|
702
804
|
networkToken: NetworkToken;
|
|
703
805
|
chainLogoUri?: string;
|
|
806
|
+
private?: boolean;
|
|
704
807
|
};
|
|
705
808
|
|
|
706
809
|
type ListChainsResponse = {
|
|
@@ -741,442 +844,586 @@ declare class EvmChainsService {
|
|
|
741
844
|
}): CancelablePromise<GetChainResponse>;
|
|
742
845
|
}
|
|
743
846
|
|
|
744
|
-
type
|
|
847
|
+
type ImageAsset = {
|
|
848
|
+
assetId?: string;
|
|
745
849
|
/**
|
|
746
|
-
*
|
|
850
|
+
* OUTPUT ONLY
|
|
747
851
|
*/
|
|
748
|
-
|
|
749
|
-
ercType: Erc1155Token.ercType;
|
|
750
|
-
tokenId: string;
|
|
751
|
-
tokenUri: string;
|
|
752
|
-
metadata: Erc1155TokenMetadata;
|
|
852
|
+
imageUri?: string;
|
|
753
853
|
};
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
854
|
+
|
|
855
|
+
type PricingProviders = {
|
|
856
|
+
coingeckoCoinId?: string;
|
|
857
|
+
};
|
|
858
|
+
|
|
859
|
+
declare enum ResourceLinkType {
|
|
860
|
+
BLOG = "Blog",
|
|
861
|
+
COIN_GECKO = "CoinGecko",
|
|
862
|
+
COIN_MARKET_CAP = "CoinMarketCap",
|
|
863
|
+
DISCORD = "Discord",
|
|
864
|
+
DOCUMENTATION = "Documentation",
|
|
865
|
+
FACEBOOK = "Facebook",
|
|
866
|
+
GITHUB = "Github",
|
|
867
|
+
INSTAGRAM = "Instagram",
|
|
868
|
+
LINKED_IN = "LinkedIn",
|
|
869
|
+
MEDIUM = "Medium",
|
|
870
|
+
REDDIT = "Reddit",
|
|
871
|
+
SUPPORT = "Support",
|
|
872
|
+
TELEGRAM = "Telegram",
|
|
873
|
+
TIK_TOK = "TikTok",
|
|
874
|
+
TWITTER = "Twitter",
|
|
875
|
+
WEBSITE = "Website",
|
|
876
|
+
WHITEPAPER = "Whitepaper",
|
|
877
|
+
YOUTUBE = "Youtube"
|
|
758
878
|
}
|
|
759
879
|
|
|
760
|
-
type
|
|
880
|
+
type ResourceLink = {
|
|
881
|
+
type: ResourceLinkType;
|
|
882
|
+
url: string;
|
|
883
|
+
};
|
|
884
|
+
|
|
885
|
+
type ContractSubmissionErc1155 = {
|
|
886
|
+
description?: string;
|
|
887
|
+
officialSite?: string;
|
|
888
|
+
email?: string;
|
|
889
|
+
logoAsset?: ImageAsset;
|
|
890
|
+
bannerAsset?: ImageAsset;
|
|
891
|
+
color?: string;
|
|
892
|
+
resourceLinks?: Array<ResourceLink>;
|
|
893
|
+
tags?: Array<string>;
|
|
761
894
|
/**
|
|
762
895
|
* The contract name.
|
|
763
896
|
*/
|
|
764
|
-
name
|
|
897
|
+
name: string;
|
|
898
|
+
ercType: ContractSubmissionErc1155.ercType;
|
|
765
899
|
/**
|
|
766
900
|
* The contract symbol.
|
|
767
901
|
*/
|
|
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;
|
|
902
|
+
symbol: string;
|
|
903
|
+
pricingProviders?: PricingProviders;
|
|
789
904
|
};
|
|
905
|
+
declare namespace ContractSubmissionErc1155 {
|
|
906
|
+
enum ercType {
|
|
907
|
+
ERC_1155 = "ERC-1155"
|
|
908
|
+
}
|
|
909
|
+
}
|
|
790
910
|
|
|
791
|
-
type
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
911
|
+
type ContractSubmissionErc20 = {
|
|
912
|
+
description?: string;
|
|
913
|
+
officialSite?: string;
|
|
914
|
+
email?: string;
|
|
915
|
+
logoAsset?: ImageAsset;
|
|
916
|
+
bannerAsset?: ImageAsset;
|
|
917
|
+
color?: string;
|
|
918
|
+
resourceLinks?: Array<ResourceLink>;
|
|
919
|
+
tags?: Array<string>;
|
|
796
920
|
/**
|
|
797
921
|
* The contract name.
|
|
798
922
|
*/
|
|
799
923
|
name: string;
|
|
924
|
+
ercType: ContractSubmissionErc20.ercType;
|
|
800
925
|
/**
|
|
801
926
|
* The contract symbol.
|
|
802
927
|
*/
|
|
803
928
|
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;
|
|
929
|
+
pricingProviders?: PricingProviders;
|
|
817
930
|
};
|
|
818
|
-
declare namespace
|
|
931
|
+
declare namespace ContractSubmissionErc20 {
|
|
819
932
|
enum ercType {
|
|
820
933
|
ERC_20 = "ERC-20"
|
|
821
934
|
}
|
|
822
935
|
}
|
|
823
936
|
|
|
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;
|
|
937
|
+
type ContractSubmissionErc721 = {
|
|
938
|
+
description?: string;
|
|
939
|
+
officialSite?: string;
|
|
940
|
+
email?: string;
|
|
941
|
+
logoAsset?: ImageAsset;
|
|
942
|
+
bannerAsset?: ImageAsset;
|
|
943
|
+
color?: string;
|
|
944
|
+
resourceLinks?: Array<ResourceLink>;
|
|
945
|
+
tags?: Array<string>;
|
|
837
946
|
/**
|
|
838
947
|
* The contract name.
|
|
839
948
|
*/
|
|
840
949
|
name: string;
|
|
950
|
+
ercType: ContractSubmissionErc721.ercType;
|
|
841
951
|
/**
|
|
842
952
|
* The contract symbol.
|
|
843
953
|
*/
|
|
844
954
|
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
955
|
};
|
|
854
|
-
declare namespace
|
|
956
|
+
declare namespace ContractSubmissionErc721 {
|
|
855
957
|
enum ercType {
|
|
856
958
|
ERC_721 = "ERC-721"
|
|
857
959
|
}
|
|
858
960
|
}
|
|
859
961
|
|
|
860
|
-
type
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
962
|
+
type ContractSubmissionUnknown = {
|
|
963
|
+
description?: string;
|
|
964
|
+
officialSite?: string;
|
|
965
|
+
email?: string;
|
|
966
|
+
logoAsset?: ImageAsset;
|
|
967
|
+
bannerAsset?: ImageAsset;
|
|
968
|
+
color?: string;
|
|
969
|
+
resourceLinks?: Array<ResourceLink>;
|
|
970
|
+
tags?: Array<string>;
|
|
971
|
+
/**
|
|
972
|
+
* The contract name.
|
|
973
|
+
*/
|
|
974
|
+
name: string;
|
|
975
|
+
ercType: ContractSubmissionUnknown.ercType;
|
|
865
976
|
};
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
977
|
+
declare namespace ContractSubmissionUnknown {
|
|
978
|
+
enum ercType {
|
|
979
|
+
UNKNOWN = "UNKNOWN"
|
|
980
|
+
}
|
|
871
981
|
}
|
|
872
982
|
|
|
873
|
-
type
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
983
|
+
type ContractSubmissionBody = {
|
|
984
|
+
contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
|
|
985
|
+
};
|
|
986
|
+
|
|
987
|
+
type ContractDeploymentDetails = {
|
|
988
|
+
txHash: string;
|
|
878
989
|
/**
|
|
879
|
-
* The
|
|
990
|
+
* The address that initiated the transaction which deployed this contract.
|
|
880
991
|
*/
|
|
881
|
-
|
|
992
|
+
deployerAddress: string;
|
|
882
993
|
/**
|
|
883
|
-
* The contract
|
|
994
|
+
* 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
995
|
*/
|
|
885
|
-
|
|
996
|
+
deployerContractAddress?: string;
|
|
886
997
|
};
|
|
887
998
|
|
|
888
|
-
type
|
|
999
|
+
type Erc1155Contract = {
|
|
889
1000
|
/**
|
|
890
|
-
* The
|
|
1001
|
+
* The contract name.
|
|
891
1002
|
*/
|
|
892
|
-
|
|
1003
|
+
name?: string;
|
|
1004
|
+
description?: string;
|
|
1005
|
+
officialSite?: string;
|
|
1006
|
+
email?: string;
|
|
1007
|
+
logoAsset?: ImageAsset;
|
|
1008
|
+
bannerAsset?: ImageAsset;
|
|
1009
|
+
color?: string;
|
|
1010
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1011
|
+
tags?: Array<string>;
|
|
893
1012
|
/**
|
|
894
|
-
*
|
|
1013
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
895
1014
|
*/
|
|
896
|
-
|
|
1015
|
+
address: string;
|
|
1016
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1017
|
+
ercType: Erc1155Contract.ercType;
|
|
897
1018
|
/**
|
|
898
|
-
* The
|
|
1019
|
+
* The contract symbol.
|
|
899
1020
|
*/
|
|
900
|
-
|
|
1021
|
+
symbol?: string;
|
|
1022
|
+
pricingProviders?: PricingProviders;
|
|
1023
|
+
};
|
|
1024
|
+
declare namespace Erc1155Contract {
|
|
1025
|
+
enum ercType {
|
|
1026
|
+
ERC_1155 = "ERC-1155"
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
type Erc20Contract = {
|
|
901
1031
|
/**
|
|
902
|
-
* The
|
|
1032
|
+
* The contract name.
|
|
903
1033
|
*/
|
|
904
|
-
|
|
1034
|
+
name?: string;
|
|
1035
|
+
description?: string;
|
|
1036
|
+
officialSite?: string;
|
|
1037
|
+
email?: string;
|
|
1038
|
+
logoAsset?: ImageAsset;
|
|
1039
|
+
bannerAsset?: ImageAsset;
|
|
1040
|
+
color?: string;
|
|
1041
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1042
|
+
tags?: Array<string>;
|
|
905
1043
|
/**
|
|
906
|
-
*
|
|
1044
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
907
1045
|
*/
|
|
908
|
-
|
|
1046
|
+
address: string;
|
|
1047
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1048
|
+
ercType: Erc20Contract.ercType;
|
|
909
1049
|
/**
|
|
910
|
-
* The
|
|
1050
|
+
* The contract symbol.
|
|
911
1051
|
*/
|
|
912
|
-
|
|
1052
|
+
symbol?: string;
|
|
913
1053
|
/**
|
|
914
|
-
* The
|
|
1054
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
915
1055
|
*/
|
|
916
|
-
|
|
1056
|
+
decimals: number;
|
|
1057
|
+
pricingProviders?: PricingProviders;
|
|
1058
|
+
};
|
|
1059
|
+
declare namespace Erc20Contract {
|
|
1060
|
+
enum ercType {
|
|
1061
|
+
ERC_20 = "ERC-20"
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
type Erc721Contract = {
|
|
917
1066
|
/**
|
|
918
|
-
* The
|
|
1067
|
+
* The contract name.
|
|
919
1068
|
*/
|
|
920
|
-
|
|
1069
|
+
name?: string;
|
|
1070
|
+
description?: string;
|
|
1071
|
+
officialSite?: string;
|
|
1072
|
+
email?: string;
|
|
1073
|
+
logoAsset?: ImageAsset;
|
|
1074
|
+
bannerAsset?: ImageAsset;
|
|
1075
|
+
color?: string;
|
|
1076
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1077
|
+
tags?: Array<string>;
|
|
921
1078
|
/**
|
|
922
|
-
*
|
|
1079
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
923
1080
|
*/
|
|
924
|
-
|
|
1081
|
+
address: string;
|
|
1082
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1083
|
+
ercType: Erc721Contract.ercType;
|
|
925
1084
|
/**
|
|
926
|
-
* The
|
|
1085
|
+
* The contract symbol.
|
|
927
1086
|
*/
|
|
928
|
-
|
|
1087
|
+
symbol?: string;
|
|
1088
|
+
};
|
|
1089
|
+
declare namespace Erc721Contract {
|
|
1090
|
+
enum ercType {
|
|
1091
|
+
ERC_721 = "ERC-721"
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
type UnknownContract = {
|
|
929
1096
|
/**
|
|
930
|
-
* The
|
|
1097
|
+
* The contract name.
|
|
931
1098
|
*/
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
1099
|
+
name?: string;
|
|
1100
|
+
description?: string;
|
|
1101
|
+
officialSite?: string;
|
|
1102
|
+
email?: string;
|
|
1103
|
+
logoAsset?: ImageAsset;
|
|
1104
|
+
bannerAsset?: ImageAsset;
|
|
1105
|
+
color?: string;
|
|
1106
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1107
|
+
tags?: Array<string>;
|
|
937
1108
|
/**
|
|
938
|
-
*
|
|
1109
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
939
1110
|
*/
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
maxPriorityFeePerGas?: string;
|
|
1111
|
+
address: string;
|
|
1112
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1113
|
+
ercType: UnknownContract.ercType;
|
|
944
1114
|
};
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
CREATE = "CREATE",
|
|
950
|
-
CREATE2 = "CREATE2",
|
|
951
|
-
CALLCODE = "CALLCODE",
|
|
952
|
-
DELEGATECALL = "DELEGATECALL",
|
|
953
|
-
STATICCALL = "STATICCALL"
|
|
1115
|
+
declare namespace UnknownContract {
|
|
1116
|
+
enum ercType {
|
|
1117
|
+
UNKNOWN = "UNKNOWN"
|
|
1118
|
+
}
|
|
954
1119
|
}
|
|
955
1120
|
|
|
956
|
-
type
|
|
957
|
-
|
|
958
|
-
to: RichAddress;
|
|
959
|
-
internalTxType: InternalTransactionOpCall;
|
|
960
|
-
value: string;
|
|
961
|
-
/**
|
|
962
|
-
* True if the internal transaction was reverted.
|
|
963
|
-
*/
|
|
964
|
-
isReverted: boolean;
|
|
965
|
-
gasUsed: string;
|
|
966
|
-
gasLimit: string;
|
|
1121
|
+
type UpdateContractResponse = {
|
|
1122
|
+
contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
|
|
967
1123
|
};
|
|
968
1124
|
|
|
969
|
-
|
|
970
|
-
|
|
1125
|
+
declare class EvmContractsService {
|
|
1126
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1127
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
971
1128
|
/**
|
|
972
|
-
*
|
|
1129
|
+
* Get contract metadata
|
|
1130
|
+
* Gets metadata about the contract at the given address.
|
|
1131
|
+
* @returns any
|
|
1132
|
+
* @throws ApiError
|
|
973
1133
|
*/
|
|
974
|
-
|
|
1134
|
+
getContractMetadata({ chainId, address, }: {
|
|
1135
|
+
/**
|
|
1136
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1137
|
+
*/
|
|
1138
|
+
chainId: string;
|
|
1139
|
+
/**
|
|
1140
|
+
* Contract address on the relevant chain.
|
|
1141
|
+
*/
|
|
1142
|
+
address: string;
|
|
1143
|
+
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
975
1144
|
/**
|
|
976
|
-
*
|
|
1145
|
+
* Update contract information
|
|
1146
|
+
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1147
|
+
* @returns UpdateContractResponse
|
|
1148
|
+
* @throws ApiError
|
|
977
1149
|
*/
|
|
978
|
-
|
|
1150
|
+
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1151
|
+
/**
|
|
1152
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1153
|
+
*/
|
|
1154
|
+
chainId: string;
|
|
1155
|
+
/**
|
|
1156
|
+
* Contract address on the relevant chain.
|
|
1157
|
+
*/
|
|
1158
|
+
address: string;
|
|
1159
|
+
requestBody: ContractSubmissionBody;
|
|
1160
|
+
}): CancelablePromise<UpdateContractResponse>;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
type Erc1155Token = {
|
|
1164
|
+
/**
|
|
1165
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1166
|
+
*/
|
|
1167
|
+
address: string;
|
|
1168
|
+
ercType: Erc1155Token.ercType;
|
|
1169
|
+
tokenId: string;
|
|
1170
|
+
tokenUri: string;
|
|
1171
|
+
metadata: Erc1155TokenMetadata;
|
|
979
1172
|
};
|
|
1173
|
+
declare namespace Erc1155Token {
|
|
1174
|
+
enum ercType {
|
|
1175
|
+
ERC_1155 = "ERC-1155"
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
980
1178
|
|
|
981
|
-
type
|
|
1179
|
+
type RichAddress = {
|
|
982
1180
|
/**
|
|
983
|
-
* The
|
|
1181
|
+
* The contract name.
|
|
984
1182
|
*/
|
|
985
|
-
|
|
1183
|
+
name?: string;
|
|
986
1184
|
/**
|
|
987
|
-
* The
|
|
1185
|
+
* The contract symbol.
|
|
988
1186
|
*/
|
|
989
|
-
|
|
1187
|
+
symbol?: string;
|
|
990
1188
|
/**
|
|
991
|
-
* The
|
|
1189
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
992
1190
|
*/
|
|
993
|
-
|
|
1191
|
+
decimals?: number;
|
|
994
1192
|
/**
|
|
995
|
-
* The
|
|
1193
|
+
* The logo uri for the address.
|
|
996
1194
|
*/
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1195
|
+
logoUri?: string;
|
|
1196
|
+
/**
|
|
1197
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1198
|
+
*/
|
|
1199
|
+
address: string;
|
|
1000
1200
|
};
|
|
1001
1201
|
|
|
1002
|
-
type
|
|
1003
|
-
|
|
1202
|
+
type Erc1155TransferDetails = {
|
|
1203
|
+
from: RichAddress;
|
|
1204
|
+
to: RichAddress;
|
|
1205
|
+
logIndex: number;
|
|
1206
|
+
value: string;
|
|
1207
|
+
erc1155Token: Erc1155Token;
|
|
1208
|
+
};
|
|
1209
|
+
|
|
1210
|
+
type Erc20Token = {
|
|
1004
1211
|
/**
|
|
1005
|
-
*
|
|
1212
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1006
1213
|
*/
|
|
1007
|
-
|
|
1214
|
+
address: string;
|
|
1008
1215
|
/**
|
|
1009
|
-
* The contract
|
|
1216
|
+
* The contract name.
|
|
1010
1217
|
*/
|
|
1011
|
-
|
|
1012
|
-
};
|
|
1013
|
-
|
|
1014
|
-
type ImageAsset = {
|
|
1015
|
-
assetId?: string;
|
|
1218
|
+
name: string;
|
|
1016
1219
|
/**
|
|
1017
|
-
*
|
|
1220
|
+
* The contract symbol.
|
|
1018
1221
|
*/
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1222
|
+
symbol: string;
|
|
1223
|
+
/**
|
|
1224
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1225
|
+
*/
|
|
1226
|
+
decimals: number;
|
|
1227
|
+
/**
|
|
1228
|
+
* The logo uri for the address.
|
|
1229
|
+
*/
|
|
1230
|
+
logoUri?: string;
|
|
1231
|
+
ercType: Erc20Token.ercType;
|
|
1232
|
+
/**
|
|
1233
|
+
* The token price, if available.
|
|
1234
|
+
*/
|
|
1235
|
+
price?: Money;
|
|
1024
1236
|
};
|
|
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"
|
|
1237
|
+
declare namespace Erc20Token {
|
|
1238
|
+
enum ercType {
|
|
1239
|
+
ERC_20 = "ERC-20"
|
|
1240
|
+
}
|
|
1045
1241
|
}
|
|
1046
1242
|
|
|
1047
|
-
type
|
|
1048
|
-
|
|
1049
|
-
|
|
1243
|
+
type Erc20TransferDetails = {
|
|
1244
|
+
from: RichAddress;
|
|
1245
|
+
to: RichAddress;
|
|
1246
|
+
logIndex: number;
|
|
1247
|
+
value: string;
|
|
1248
|
+
erc20Token: Erc20Token;
|
|
1050
1249
|
};
|
|
1051
1250
|
|
|
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>;
|
|
1251
|
+
type Erc721Token = {
|
|
1065
1252
|
/**
|
|
1066
1253
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1067
1254
|
*/
|
|
1068
1255
|
address: string;
|
|
1069
|
-
|
|
1070
|
-
|
|
1256
|
+
/**
|
|
1257
|
+
* The contract name.
|
|
1258
|
+
*/
|
|
1259
|
+
name: string;
|
|
1071
1260
|
/**
|
|
1072
1261
|
* The contract symbol.
|
|
1073
1262
|
*/
|
|
1074
|
-
symbol
|
|
1075
|
-
|
|
1263
|
+
symbol: string;
|
|
1264
|
+
ercType: Erc721Token.ercType;
|
|
1265
|
+
tokenId: string;
|
|
1266
|
+
tokenUri: string;
|
|
1267
|
+
metadata: Erc721TokenMetadata;
|
|
1268
|
+
/**
|
|
1269
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1270
|
+
*/
|
|
1271
|
+
ownerAddress?: string;
|
|
1076
1272
|
};
|
|
1077
|
-
declare namespace
|
|
1273
|
+
declare namespace Erc721Token {
|
|
1078
1274
|
enum ercType {
|
|
1079
|
-
|
|
1275
|
+
ERC_721 = "ERC-721"
|
|
1080
1276
|
}
|
|
1081
1277
|
}
|
|
1082
1278
|
|
|
1083
|
-
type
|
|
1279
|
+
type Erc721TransferDetails = {
|
|
1280
|
+
from: RichAddress;
|
|
1281
|
+
to: RichAddress;
|
|
1282
|
+
logIndex: number;
|
|
1283
|
+
erc721Token: Erc721Token;
|
|
1284
|
+
};
|
|
1285
|
+
|
|
1286
|
+
declare enum TransactionMethodType {
|
|
1287
|
+
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1288
|
+
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1289
|
+
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
type Method = {
|
|
1084
1293
|
/**
|
|
1085
|
-
* The contract
|
|
1294
|
+
* 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
1295
|
*/
|
|
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>;
|
|
1296
|
+
callType: TransactionMethodType;
|
|
1096
1297
|
/**
|
|
1097
|
-
*
|
|
1298
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1098
1299
|
*/
|
|
1099
|
-
|
|
1100
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1101
|
-
ercType: Erc20Contract.ercType;
|
|
1300
|
+
methodHash: string;
|
|
1102
1301
|
/**
|
|
1103
|
-
* The contract
|
|
1302
|
+
* 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
1303
|
*/
|
|
1105
|
-
|
|
1304
|
+
methodName?: string;
|
|
1305
|
+
};
|
|
1306
|
+
|
|
1307
|
+
type FullNativeTransactionDetails = {
|
|
1308
|
+
/**
|
|
1309
|
+
* The block number on the chain.
|
|
1310
|
+
*/
|
|
1311
|
+
blockNumber: string;
|
|
1312
|
+
/**
|
|
1313
|
+
* The block finality timestamp.
|
|
1314
|
+
*/
|
|
1315
|
+
blockTimestamp: number;
|
|
1316
|
+
/**
|
|
1317
|
+
* The block hash identifier.
|
|
1318
|
+
*/
|
|
1319
|
+
blockHash: string;
|
|
1320
|
+
/**
|
|
1321
|
+
* The index at which the transaction occured in the block (0-indexed).
|
|
1322
|
+
*/
|
|
1323
|
+
blockIndex: number;
|
|
1324
|
+
/**
|
|
1325
|
+
* The transaction hash identifier.
|
|
1326
|
+
*/
|
|
1327
|
+
txHash: string;
|
|
1328
|
+
/**
|
|
1329
|
+
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1330
|
+
*/
|
|
1331
|
+
txStatus: string;
|
|
1332
|
+
/**
|
|
1333
|
+
* The transaction type.
|
|
1334
|
+
*/
|
|
1335
|
+
txType: number;
|
|
1336
|
+
/**
|
|
1337
|
+
* The gas limit set for the transaction.
|
|
1338
|
+
*/
|
|
1339
|
+
gasLimit: string;
|
|
1340
|
+
/**
|
|
1341
|
+
* The amount of gas used.
|
|
1342
|
+
*/
|
|
1343
|
+
gasUsed: string;
|
|
1344
|
+
/**
|
|
1345
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1346
|
+
*/
|
|
1347
|
+
gasPrice: string;
|
|
1348
|
+
/**
|
|
1349
|
+
* The nonce used by the sender of the transaction.
|
|
1350
|
+
*/
|
|
1351
|
+
nonce: string;
|
|
1352
|
+
from: RichAddress;
|
|
1353
|
+
to: RichAddress;
|
|
1354
|
+
method?: Method;
|
|
1355
|
+
value: string;
|
|
1106
1356
|
/**
|
|
1107
|
-
* The
|
|
1357
|
+
* The data sent for the transaction.
|
|
1108
1358
|
*/
|
|
1109
|
-
|
|
1110
|
-
|
|
1359
|
+
input: string;
|
|
1360
|
+
baseFeePerGas: string;
|
|
1361
|
+
maxFeePerGas?: string;
|
|
1362
|
+
maxPriorityFeePerGas?: string;
|
|
1111
1363
|
};
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1364
|
+
|
|
1365
|
+
declare enum InternalTransactionOpCall {
|
|
1366
|
+
UNKNOWN = "UNKNOWN",
|
|
1367
|
+
CALL = "CALL",
|
|
1368
|
+
CREATE = "CREATE",
|
|
1369
|
+
CREATE2 = "CREATE2",
|
|
1370
|
+
CALLCODE = "CALLCODE",
|
|
1371
|
+
DELEGATECALL = "DELEGATECALL",
|
|
1372
|
+
STATICCALL = "STATICCALL"
|
|
1116
1373
|
}
|
|
1117
1374
|
|
|
1118
|
-
type
|
|
1375
|
+
type InternalTransactionDetails = {
|
|
1376
|
+
from: RichAddress;
|
|
1377
|
+
to: RichAddress;
|
|
1378
|
+
internalTxType: InternalTransactionOpCall;
|
|
1379
|
+
value: string;
|
|
1119
1380
|
/**
|
|
1120
|
-
*
|
|
1381
|
+
* True if the internal transaction was reverted.
|
|
1121
1382
|
*/
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1130
|
-
tags?: Array<string>;
|
|
1383
|
+
isReverted: boolean;
|
|
1384
|
+
gasUsed: string;
|
|
1385
|
+
gasLimit: string;
|
|
1386
|
+
};
|
|
1387
|
+
|
|
1388
|
+
type NetworkTokenDetails = {
|
|
1389
|
+
networkToken: NetworkToken;
|
|
1131
1390
|
/**
|
|
1132
|
-
*
|
|
1391
|
+
* The current token price, if available.
|
|
1133
1392
|
*/
|
|
1134
|
-
|
|
1135
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1136
|
-
ercType: Erc721Contract.ercType;
|
|
1393
|
+
currentPrice?: Money;
|
|
1137
1394
|
/**
|
|
1138
|
-
* The
|
|
1395
|
+
* 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
1396
|
*/
|
|
1140
|
-
|
|
1397
|
+
historicalPrice?: Money;
|
|
1141
1398
|
};
|
|
1142
|
-
declare namespace Erc721Contract {
|
|
1143
|
-
enum ercType {
|
|
1144
|
-
ERC_721 = "ERC-721"
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
1399
|
|
|
1148
|
-
type
|
|
1400
|
+
type GetTransactionResponse = {
|
|
1149
1401
|
/**
|
|
1150
|
-
* The
|
|
1402
|
+
* The list of ERC-20 transfers.
|
|
1151
1403
|
*/
|
|
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>;
|
|
1404
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1161
1405
|
/**
|
|
1162
|
-
*
|
|
1406
|
+
* The list of ERC-721 transfers.
|
|
1163
1407
|
*/
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1408
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1409
|
+
/**
|
|
1410
|
+
* The list of ERC-1155 transfers.
|
|
1411
|
+
*/
|
|
1412
|
+
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1413
|
+
/**
|
|
1414
|
+
* 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.
|
|
1415
|
+
*/
|
|
1416
|
+
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1417
|
+
networkTokenDetails: NetworkTokenDetails;
|
|
1418
|
+
nativeTransaction: FullNativeTransactionDetails;
|
|
1167
1419
|
};
|
|
1168
|
-
declare namespace UnknownContract {
|
|
1169
|
-
enum ercType {
|
|
1170
|
-
UNKNOWN = "UNKNOWN"
|
|
1171
|
-
}
|
|
1172
|
-
}
|
|
1173
1420
|
|
|
1174
1421
|
type ListContractsResponse = {
|
|
1175
1422
|
/**
|
|
1176
1423
|
* 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
1424
|
*/
|
|
1178
1425
|
nextPageToken?: string;
|
|
1179
|
-
contracts: Array<(
|
|
1426
|
+
contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1180
1427
|
};
|
|
1181
1428
|
|
|
1182
1429
|
type Erc1155Transfer = {
|
|
@@ -1481,7 +1728,13 @@ declare class EvmTransactionsService {
|
|
|
1481
1728
|
* A wallet address.
|
|
1482
1729
|
*/
|
|
1483
1730
|
address: string;
|
|
1731
|
+
/**
|
|
1732
|
+
* 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.
|
|
1733
|
+
*/
|
|
1484
1734
|
startBlock?: number;
|
|
1735
|
+
/**
|
|
1736
|
+
* 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.
|
|
1737
|
+
*/
|
|
1485
1738
|
endBlock?: number;
|
|
1486
1739
|
/**
|
|
1487
1740
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1517,7 +1770,13 @@ declare class EvmTransactionsService {
|
|
|
1517
1770
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1518
1771
|
*/
|
|
1519
1772
|
pageToken?: string;
|
|
1773
|
+
/**
|
|
1774
|
+
* 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.
|
|
1775
|
+
*/
|
|
1520
1776
|
startBlock?: number;
|
|
1777
|
+
/**
|
|
1778
|
+
* 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.
|
|
1779
|
+
*/
|
|
1521
1780
|
endBlock?: number;
|
|
1522
1781
|
/**
|
|
1523
1782
|
* 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 +1798,13 @@ declare class EvmTransactionsService {
|
|
|
1539
1798
|
* A wallet address.
|
|
1540
1799
|
*/
|
|
1541
1800
|
address: string;
|
|
1801
|
+
/**
|
|
1802
|
+
* 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.
|
|
1803
|
+
*/
|
|
1542
1804
|
startBlock?: number;
|
|
1805
|
+
/**
|
|
1806
|
+
* 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.
|
|
1807
|
+
*/
|
|
1543
1808
|
endBlock?: number;
|
|
1544
1809
|
/**
|
|
1545
1810
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1565,7 +1830,13 @@ declare class EvmTransactionsService {
|
|
|
1565
1830
|
* A wallet address.
|
|
1566
1831
|
*/
|
|
1567
1832
|
address: string;
|
|
1833
|
+
/**
|
|
1834
|
+
* 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.
|
|
1835
|
+
*/
|
|
1568
1836
|
startBlock?: number;
|
|
1837
|
+
/**
|
|
1838
|
+
* 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.
|
|
1839
|
+
*/
|
|
1569
1840
|
endBlock?: number;
|
|
1570
1841
|
/**
|
|
1571
1842
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1591,7 +1862,13 @@ declare class EvmTransactionsService {
|
|
|
1591
1862
|
* A wallet address.
|
|
1592
1863
|
*/
|
|
1593
1864
|
address: string;
|
|
1865
|
+
/**
|
|
1866
|
+
* 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.
|
|
1867
|
+
*/
|
|
1594
1868
|
startBlock?: number;
|
|
1869
|
+
/**
|
|
1870
|
+
* 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.
|
|
1871
|
+
*/
|
|
1595
1872
|
endBlock?: number;
|
|
1596
1873
|
/**
|
|
1597
1874
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1617,7 +1894,13 @@ declare class EvmTransactionsService {
|
|
|
1617
1894
|
* A wallet address.
|
|
1618
1895
|
*/
|
|
1619
1896
|
address: string;
|
|
1897
|
+
/**
|
|
1898
|
+
* 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.
|
|
1899
|
+
*/
|
|
1620
1900
|
startBlock?: number;
|
|
1901
|
+
/**
|
|
1902
|
+
* 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.
|
|
1903
|
+
*/
|
|
1621
1904
|
endBlock?: number;
|
|
1622
1905
|
/**
|
|
1623
1906
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1645,7 +1928,13 @@ declare class EvmTransactionsService {
|
|
|
1645
1928
|
* A wallet address.
|
|
1646
1929
|
*/
|
|
1647
1930
|
address: string;
|
|
1931
|
+
/**
|
|
1932
|
+
* 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.
|
|
1933
|
+
*/
|
|
1648
1934
|
startBlock?: number;
|
|
1935
|
+
/**
|
|
1936
|
+
* 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.
|
|
1937
|
+
*/
|
|
1649
1938
|
endBlock?: number;
|
|
1650
1939
|
/**
|
|
1651
1940
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1730,6 +2019,14 @@ declare class HealthCheckService {
|
|
|
1730
2019
|
}>;
|
|
1731
2020
|
}
|
|
1732
2021
|
|
|
2022
|
+
type ListNftTokens = {
|
|
2023
|
+
/**
|
|
2024
|
+
* 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.
|
|
2025
|
+
*/
|
|
2026
|
+
nextPageToken?: string;
|
|
2027
|
+
tokens: (Array<Erc721Token> | Array<Erc1155Token>);
|
|
2028
|
+
};
|
|
2029
|
+
|
|
1733
2030
|
declare class NfTsService {
|
|
1734
2031
|
readonly httpRequest: BaseHttpRequest;
|
|
1735
2032
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -1754,12 +2051,12 @@ declare class NfTsService {
|
|
|
1754
2051
|
tokenId: string;
|
|
1755
2052
|
}): CancelablePromise<any>;
|
|
1756
2053
|
/**
|
|
1757
|
-
*
|
|
1758
|
-
*
|
|
1759
|
-
* @returns
|
|
2054
|
+
* List tokens
|
|
2055
|
+
* Lists tokens for an NFT contract.
|
|
2056
|
+
* @returns ListNftTokens
|
|
1760
2057
|
* @throws ApiError
|
|
1761
2058
|
*/
|
|
1762
|
-
|
|
2059
|
+
listTokens({ chainId, address, pageSize, pageToken, }: {
|
|
1763
2060
|
/**
|
|
1764
2061
|
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1765
2062
|
*/
|
|
@@ -1769,17 +2066,21 @@ declare class NfTsService {
|
|
|
1769
2066
|
*/
|
|
1770
2067
|
address: string;
|
|
1771
2068
|
/**
|
|
1772
|
-
*
|
|
2069
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1773
2070
|
*/
|
|
1774
|
-
|
|
1775
|
-
|
|
2071
|
+
pageSize?: number;
|
|
2072
|
+
/**
|
|
2073
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2074
|
+
*/
|
|
2075
|
+
pageToken?: string;
|
|
2076
|
+
}): CancelablePromise<ListNftTokens>;
|
|
1776
2077
|
/**
|
|
1777
|
-
* Get
|
|
1778
|
-
* Gets
|
|
2078
|
+
* Get token details
|
|
2079
|
+
* Gets token details for a specific token of an NFT contract.
|
|
1779
2080
|
* @returns any
|
|
1780
2081
|
* @throws ApiError
|
|
1781
2082
|
*/
|
|
1782
|
-
|
|
2083
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
1783
2084
|
/**
|
|
1784
2085
|
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1785
2086
|
*/
|
|
@@ -1788,7 +2089,11 @@ declare class NfTsService {
|
|
|
1788
2089
|
* Contract address on the relevant chain.
|
|
1789
2090
|
*/
|
|
1790
2091
|
address: string;
|
|
1791
|
-
|
|
2092
|
+
/**
|
|
2093
|
+
* TokenId on the contract
|
|
2094
|
+
*/
|
|
2095
|
+
tokenId: string;
|
|
2096
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
1792
2097
|
}
|
|
1793
2098
|
|
|
1794
2099
|
type EvmNetworkOptions = {
|
|
@@ -1885,17 +2190,6 @@ type OperationStatusResponse = {
|
|
|
1885
2190
|
declare class OperationsService {
|
|
1886
2191
|
readonly httpRequest: BaseHttpRequest;
|
|
1887
2192
|
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
2193
|
/**
|
|
1900
2194
|
* Get operation
|
|
1901
2195
|
* Gets operation details for the given operation id.
|
|
@@ -1908,6 +2202,17 @@ declare class OperationsService {
|
|
|
1908
2202
|
*/
|
|
1909
2203
|
operationId: string;
|
|
1910
2204
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2205
|
+
/**
|
|
2206
|
+
* Create transaction export operation
|
|
2207
|
+
* Trigger a transaction export operation with given parameters.
|
|
2208
|
+
*
|
|
2209
|
+
* 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.
|
|
2210
|
+
* @returns OperationStatusResponse
|
|
2211
|
+
* @throws ApiError
|
|
2212
|
+
*/
|
|
2213
|
+
postTransactionExportJob({ requestBody, }: {
|
|
2214
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2215
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
1911
2216
|
}
|
|
1912
2217
|
|
|
1913
2218
|
declare enum BlockchainIds {
|
|
@@ -1976,39 +2281,57 @@ type ListBlockchainsResponse = {
|
|
|
1976
2281
|
|
|
1977
2282
|
type ActiveDelegatorDetails = {
|
|
1978
2283
|
txHash: string;
|
|
2284
|
+
nodeId: string;
|
|
1979
2285
|
rewardAddresses: Array<string>;
|
|
1980
2286
|
amountDelegated: string;
|
|
1981
2287
|
delegationFee: string;
|
|
1982
2288
|
startTimestamp: number;
|
|
1983
2289
|
endTimestamp: number;
|
|
1984
|
-
delegationStatus: DelegationStatusType;
|
|
1985
2290
|
estimatedGrossReward: string;
|
|
1986
2291
|
estimatedNetReward: string;
|
|
2292
|
+
delegationStatus: ActiveDelegatorDetails.delegationStatus;
|
|
1987
2293
|
};
|
|
2294
|
+
declare namespace ActiveDelegatorDetails {
|
|
2295
|
+
enum delegationStatus {
|
|
2296
|
+
ACTIVE = "active"
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
1988
2299
|
|
|
1989
2300
|
type CompletedDelegatorDetails = {
|
|
1990
2301
|
txHash: string;
|
|
2302
|
+
nodeId: string;
|
|
1991
2303
|
rewardAddresses: Array<string>;
|
|
1992
2304
|
amountDelegated: string;
|
|
1993
2305
|
delegationFee: string;
|
|
1994
2306
|
startTimestamp: number;
|
|
1995
2307
|
endTimestamp: number;
|
|
1996
|
-
delegationStatus: DelegationStatusType;
|
|
1997
2308
|
grossReward: string;
|
|
1998
2309
|
netReward: string;
|
|
2310
|
+
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
1999
2311
|
};
|
|
2312
|
+
declare namespace CompletedDelegatorDetails {
|
|
2313
|
+
enum delegationStatus {
|
|
2314
|
+
COMPLETED = "completed"
|
|
2315
|
+
}
|
|
2316
|
+
}
|
|
2000
2317
|
|
|
2001
2318
|
type PendingDelegatorDetails = {
|
|
2002
2319
|
txHash: string;
|
|
2320
|
+
nodeId: string;
|
|
2003
2321
|
rewardAddresses: Array<string>;
|
|
2004
2322
|
amountDelegated: string;
|
|
2005
2323
|
delegationFee: string;
|
|
2006
2324
|
startTimestamp: number;
|
|
2007
2325
|
endTimestamp: number;
|
|
2008
|
-
delegationStatus: DelegationStatusType;
|
|
2009
2326
|
estimatedGrossReward: string;
|
|
2010
2327
|
estimatedNetReward: string;
|
|
2328
|
+
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2011
2329
|
};
|
|
2330
|
+
declare namespace PendingDelegatorDetails {
|
|
2331
|
+
enum delegationStatus {
|
|
2332
|
+
PENDING = "pending"
|
|
2333
|
+
}
|
|
2334
|
+
}
|
|
2012
2335
|
|
|
2013
2336
|
type ListDelegatorDetailsResponse = {
|
|
2014
2337
|
/**
|
|
@@ -2046,49 +2369,86 @@ type ListSubnetsResponse = {
|
|
|
2046
2369
|
type Rewards = {
|
|
2047
2370
|
validationRewardAmount: string;
|
|
2048
2371
|
delegationRewardAmount: string;
|
|
2372
|
+
rewardAddresses?: Array<string>;
|
|
2373
|
+
rewardTxHash?: string;
|
|
2049
2374
|
};
|
|
2050
2375
|
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2376
|
+
type ValidatorHealthDetails = {
|
|
2377
|
+
/**
|
|
2378
|
+
* Percent of requests responded to in last polling.
|
|
2379
|
+
*/
|
|
2380
|
+
reachabilityPercent: number;
|
|
2381
|
+
/**
|
|
2382
|
+
* Percent of requests benched on the P-Chain in last polling.
|
|
2383
|
+
*/
|
|
2384
|
+
benchedPChainRequestsPercent: number;
|
|
2385
|
+
/**
|
|
2386
|
+
* Percentage of requests benched on the X-Chain in last polling.
|
|
2387
|
+
*/
|
|
2388
|
+
benchedXChainRequestsPercent: number;
|
|
2389
|
+
/**
|
|
2390
|
+
* Percentage of requests benched on the C-Chain in last polling.
|
|
2391
|
+
*/
|
|
2392
|
+
benchedCChainRequestsPercent: number;
|
|
2393
|
+
};
|
|
2056
2394
|
|
|
2057
2395
|
type ActiveValidatorDetails = {
|
|
2396
|
+
txHash: string;
|
|
2058
2397
|
nodeId: string;
|
|
2398
|
+
subnetId: string;
|
|
2059
2399
|
amountStaked: string;
|
|
2060
|
-
delegationFee
|
|
2400
|
+
delegationFee?: string;
|
|
2061
2401
|
startTimestamp: number;
|
|
2062
2402
|
endTimestamp: number;
|
|
2063
|
-
validationStatus: ValidationStatusType;
|
|
2064
2403
|
stakePercentage: number;
|
|
2065
2404
|
delegatorCount: number;
|
|
2066
|
-
amountDelegated
|
|
2405
|
+
amountDelegated?: string;
|
|
2067
2406
|
uptimePerformance: number;
|
|
2068
|
-
avalancheGoVersion
|
|
2069
|
-
delegationCapacity
|
|
2407
|
+
avalancheGoVersion?: string;
|
|
2408
|
+
delegationCapacity?: string;
|
|
2070
2409
|
potentialRewards: Rewards;
|
|
2410
|
+
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2411
|
+
validatorHealth: ValidatorHealthDetails;
|
|
2071
2412
|
};
|
|
2413
|
+
declare namespace ActiveValidatorDetails {
|
|
2414
|
+
enum validationStatus {
|
|
2415
|
+
ACTIVE = "active"
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2072
2418
|
|
|
2073
2419
|
type CompletedValidatorDetails = {
|
|
2420
|
+
txHash: string;
|
|
2074
2421
|
nodeId: string;
|
|
2422
|
+
subnetId: string;
|
|
2075
2423
|
amountStaked: string;
|
|
2076
|
-
delegationFee
|
|
2424
|
+
delegationFee?: string;
|
|
2077
2425
|
startTimestamp: number;
|
|
2078
2426
|
endTimestamp: number;
|
|
2079
|
-
validationStatus: ValidationStatusType;
|
|
2080
2427
|
delegatorCount: number;
|
|
2081
2428
|
rewards: Rewards;
|
|
2429
|
+
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2082
2430
|
};
|
|
2431
|
+
declare namespace CompletedValidatorDetails {
|
|
2432
|
+
enum validationStatus {
|
|
2433
|
+
COMPLETED = "completed"
|
|
2434
|
+
}
|
|
2435
|
+
}
|
|
2083
2436
|
|
|
2084
2437
|
type PendingValidatorDetails = {
|
|
2438
|
+
txHash: string;
|
|
2085
2439
|
nodeId: string;
|
|
2440
|
+
subnetId: string;
|
|
2086
2441
|
amountStaked: string;
|
|
2087
|
-
delegationFee
|
|
2442
|
+
delegationFee?: string;
|
|
2088
2443
|
startTimestamp: number;
|
|
2089
2444
|
endTimestamp: number;
|
|
2090
|
-
validationStatus:
|
|
2445
|
+
validationStatus: PendingValidatorDetails.validationStatus;
|
|
2091
2446
|
};
|
|
2447
|
+
declare namespace PendingValidatorDetails {
|
|
2448
|
+
enum validationStatus {
|
|
2449
|
+
PENDING = "pending"
|
|
2450
|
+
}
|
|
2451
|
+
}
|
|
2092
2452
|
|
|
2093
2453
|
type ListValidatorDetailsResponse = {
|
|
2094
2454
|
/**
|
|
@@ -2096,7 +2456,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2096
2456
|
*/
|
|
2097
2457
|
nextPageToken?: string;
|
|
2098
2458
|
/**
|
|
2099
|
-
* The list of
|
|
2459
|
+
* The list of validator Details.
|
|
2100
2460
|
*/
|
|
2101
2461
|
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2102
2462
|
};
|
|
@@ -2106,6 +2466,12 @@ declare enum Network {
|
|
|
2106
2466
|
FUJI = "fuji"
|
|
2107
2467
|
}
|
|
2108
2468
|
|
|
2469
|
+
declare enum ValidationStatusType {
|
|
2470
|
+
COMPLETED = "completed",
|
|
2471
|
+
ACTIVE = "active",
|
|
2472
|
+
PENDING = "pending"
|
|
2473
|
+
}
|
|
2474
|
+
|
|
2109
2475
|
type XChainAssetDetails = {
|
|
2110
2476
|
/**
|
|
2111
2477
|
* Unique ID for an asset.
|
|
@@ -2248,7 +2614,7 @@ declare class PrimaryNetworkService {
|
|
|
2248
2614
|
* @returns ListValidatorDetailsResponse
|
|
2249
2615
|
* @throws ApiError
|
|
2250
2616
|
*/
|
|
2251
|
-
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus,
|
|
2617
|
+
listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
|
|
2252
2618
|
/**
|
|
2253
2619
|
* Either mainnet or a testnet.
|
|
2254
2620
|
*/
|
|
@@ -2261,6 +2627,30 @@ declare class PrimaryNetworkService {
|
|
|
2261
2627
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2262
2628
|
*/
|
|
2263
2629
|
pageToken?: string;
|
|
2630
|
+
/**
|
|
2631
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2632
|
+
*/
|
|
2633
|
+
minTimeRemaining?: any;
|
|
2634
|
+
/**
|
|
2635
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2636
|
+
*/
|
|
2637
|
+
maxTimeRemaining?: any;
|
|
2638
|
+
/**
|
|
2639
|
+
* 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
|
|
2640
|
+
*/
|
|
2641
|
+
minDelegationCapacity?: number;
|
|
2642
|
+
/**
|
|
2643
|
+
* 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.
|
|
2644
|
+
*/
|
|
2645
|
+
maxDelegationCapacity?: number;
|
|
2646
|
+
/**
|
|
2647
|
+
* 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.
|
|
2648
|
+
*/
|
|
2649
|
+
minFeePercentage?: any;
|
|
2650
|
+
/**
|
|
2651
|
+
* 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.
|
|
2652
|
+
*/
|
|
2653
|
+
maxFeePercentage?: any;
|
|
2264
2654
|
/**
|
|
2265
2655
|
* A comma separated list of node ids to filter by.
|
|
2266
2656
|
*/
|
|
@@ -2274,9 +2664,9 @@ declare class PrimaryNetworkService {
|
|
|
2274
2664
|
*/
|
|
2275
2665
|
validationStatus?: ValidationStatusType;
|
|
2276
2666
|
/**
|
|
2277
|
-
* The
|
|
2667
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2278
2668
|
*/
|
|
2279
|
-
|
|
2669
|
+
subnetId?: string;
|
|
2280
2670
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2281
2671
|
/**
|
|
2282
2672
|
* Get single validator details
|
|
@@ -2316,7 +2706,7 @@ declare class PrimaryNetworkService {
|
|
|
2316
2706
|
* @returns ListDelegatorDetailsResponse
|
|
2317
2707
|
* @throws ApiError
|
|
2318
2708
|
*/
|
|
2319
|
-
listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus,
|
|
2709
|
+
listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2320
2710
|
/**
|
|
2321
2711
|
* Either mainnet or a testnet.
|
|
2322
2712
|
*/
|
|
@@ -2329,6 +2719,10 @@ declare class PrimaryNetworkService {
|
|
|
2329
2719
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2330
2720
|
*/
|
|
2331
2721
|
pageToken?: string;
|
|
2722
|
+
/**
|
|
2723
|
+
* A comma separated list of reward addresses to filter by.
|
|
2724
|
+
*/
|
|
2725
|
+
rewardAddresses?: string;
|
|
2332
2726
|
/**
|
|
2333
2727
|
* 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
2728
|
*/
|
|
@@ -2337,10 +2731,6 @@ declare class PrimaryNetworkService {
|
|
|
2337
2731
|
* Delegation status of the node.
|
|
2338
2732
|
*/
|
|
2339
2733
|
delegationStatus?: DelegationStatusType;
|
|
2340
|
-
/**
|
|
2341
|
-
* A comma separated list of reward addresses to filter by.
|
|
2342
|
-
*/
|
|
2343
|
-
rewardAddresses?: string;
|
|
2344
2734
|
/**
|
|
2345
2735
|
* A comma separated list of node ids to filter by.
|
|
2346
2736
|
*/
|
|
@@ -2589,6 +2979,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2589
2979
|
txCount: number;
|
|
2590
2980
|
transactions: Array<string>;
|
|
2591
2981
|
blockSizeBytes: number;
|
|
2982
|
+
currentSupply?: string;
|
|
2592
2983
|
proposerDetails?: ProposerDetails;
|
|
2593
2984
|
};
|
|
2594
2985
|
|
|
@@ -2601,6 +2992,7 @@ type PrimaryNetworkBlock = {
|
|
|
2601
2992
|
txCount: number;
|
|
2602
2993
|
transactions: Array<string>;
|
|
2603
2994
|
blockSizeBytes: number;
|
|
2995
|
+
currentSupply?: string;
|
|
2604
2996
|
proposerDetails?: ProposerDetails;
|
|
2605
2997
|
};
|
|
2606
2998
|
|
|
@@ -2692,7 +3084,8 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2692
3084
|
|
|
2693
3085
|
declare enum RewardType {
|
|
2694
3086
|
VALIDATOR = "VALIDATOR",
|
|
2695
|
-
DELEGATOR = "DELEGATOR"
|
|
3087
|
+
DELEGATOR = "DELEGATOR",
|
|
3088
|
+
VALIDATOR_FEE = "VALIDATOR_FEE"
|
|
2696
3089
|
}
|
|
2697
3090
|
|
|
2698
3091
|
type HistoricalReward = {
|
|
@@ -2758,7 +3151,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2758
3151
|
* @returns ListPendingRewardsResponse
|
|
2759
3152
|
* @throws ApiError
|
|
2760
3153
|
*/
|
|
2761
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
3154
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
2762
3155
|
/**
|
|
2763
3156
|
* Either mainnet or a testnet.
|
|
2764
3157
|
*/
|
|
@@ -2775,6 +3168,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2775
3168
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2776
3169
|
*/
|
|
2777
3170
|
pageToken?: string;
|
|
3171
|
+
/**
|
|
3172
|
+
* A comma separated list of node ids to filter by.
|
|
3173
|
+
*/
|
|
3174
|
+
nodeIds?: string;
|
|
2778
3175
|
/**
|
|
2779
3176
|
* 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
3177
|
*/
|
|
@@ -2786,7 +3183,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2786
3183
|
* @returns ListHistoricalRewardsResponse
|
|
2787
3184
|
* @throws ApiError
|
|
2788
3185
|
*/
|
|
2789
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
3186
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
2790
3187
|
/**
|
|
2791
3188
|
* Either mainnet or a testnet.
|
|
2792
3189
|
*/
|
|
@@ -2803,6 +3200,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2803
3200
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2804
3201
|
*/
|
|
2805
3202
|
pageToken?: string;
|
|
3203
|
+
/**
|
|
3204
|
+
* A comma separated list of node ids to filter by.
|
|
3205
|
+
*/
|
|
3206
|
+
nodeIds?: string;
|
|
2806
3207
|
/**
|
|
2807
3208
|
* 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
3209
|
*/
|
|
@@ -3057,6 +3458,7 @@ declare enum PChainTransactionType {
|
|
|
3057
3458
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3058
3459
|
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3059
3460
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3461
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3060
3462
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3061
3463
|
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3062
3464
|
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
@@ -3159,6 +3561,7 @@ type PChainTransaction = {
|
|
|
3159
3561
|
*/
|
|
3160
3562
|
estimatedReward?: string;
|
|
3161
3563
|
rewardTxHash?: string;
|
|
3564
|
+
rewardAddresses?: Array<string>;
|
|
3162
3565
|
memo?: string;
|
|
3163
3566
|
/**
|
|
3164
3567
|
* Present for RewardValidatorTx
|
|
@@ -3175,6 +3578,15 @@ type ListPChainTransactionsResponse = {
|
|
|
3175
3578
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3176
3579
|
};
|
|
3177
3580
|
|
|
3581
|
+
declare enum XChainTransactionType {
|
|
3582
|
+
BASE_TX = "BaseTx",
|
|
3583
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3584
|
+
OPERATION_TX = "OperationTx",
|
|
3585
|
+
IMPORT_TX = "ImportTx",
|
|
3586
|
+
EXPORT_TX = "ExportTx",
|
|
3587
|
+
UNKNOWN = "UNKNOWN"
|
|
3588
|
+
}
|
|
3589
|
+
|
|
3178
3590
|
type XChainLinearTransaction = {
|
|
3179
3591
|
/**
|
|
3180
3592
|
* Unique ID for this transaction.
|
|
@@ -3191,7 +3603,7 @@ type XChainLinearTransaction = {
|
|
|
3191
3603
|
/**
|
|
3192
3604
|
* Type of transaction.
|
|
3193
3605
|
*/
|
|
3194
|
-
txType:
|
|
3606
|
+
txType: XChainTransactionType;
|
|
3195
3607
|
/**
|
|
3196
3608
|
* Hex encoded memo bytes for this transaction.
|
|
3197
3609
|
*/
|
|
@@ -3268,7 +3680,7 @@ type XChainNonLinearTransaction = {
|
|
|
3268
3680
|
/**
|
|
3269
3681
|
* Type of transaction.
|
|
3270
3682
|
*/
|
|
3271
|
-
txType:
|
|
3683
|
+
txType: XChainTransactionType;
|
|
3272
3684
|
/**
|
|
3273
3685
|
* Hex encoded memo bytes for this transaction.
|
|
3274
3686
|
*/
|
|
@@ -3328,6 +3740,7 @@ declare enum PrimaryNetworkTxType {
|
|
|
3328
3740
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3329
3741
|
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3330
3742
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3743
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3331
3744
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3332
3745
|
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3333
3746
|
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
@@ -3665,9 +4078,11 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3665
4078
|
|
|
3666
4079
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3667
4080
|
declare class Glacier {
|
|
4081
|
+
readonly default: DefaultService;
|
|
3668
4082
|
readonly evmBalances: EvmBalancesService;
|
|
3669
4083
|
readonly evmBlocks: EvmBlocksService;
|
|
3670
4084
|
readonly evmChains: EvmChainsService;
|
|
4085
|
+
readonly evmContracts: EvmContractsService;
|
|
3671
4086
|
readonly evmTransactions: EvmTransactionsService;
|
|
3672
4087
|
readonly healthCheck: HealthCheckService;
|
|
3673
4088
|
readonly nfTs: NfTsService;
|
|
@@ -3700,4 +4115,4 @@ declare class ApiError extends Error {
|
|
|
3700
4115
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3701
4116
|
}
|
|
3702
4117
|
|
|
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 };
|
|
4118
|
+
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, 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 };
|