@aptos-labs/ts-sdk 0.0.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/LICENSE +201 -0
- package/README.md +144 -0
- package/dist/browser/index.global.js +410 -0
- package/dist/browser/index.global.js.map +1 -0
- package/dist/cjs/index.d.ts +4965 -0
- package/dist/cjs/index.js +4762 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/esm/index.d.ts +4965 -0
- package/dist/esm/index.mjs +4645 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/types/index.d.ts +1247 -0
- package/dist/types/index.js +151 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +79 -0
- package/src/api/account.ts +360 -0
- package/src/api/aptos.ts +103 -0
- package/src/api/aptosConfig.ts +77 -0
- package/src/api/coin.ts +39 -0
- package/src/api/digitalAsset.ts +192 -0
- package/src/api/event.ts +78 -0
- package/src/api/faucet.ts +30 -0
- package/src/api/fungibleAsset.ts +82 -0
- package/src/api/general.ts +188 -0
- package/src/api/index.ts +5 -0
- package/src/api/staking.ts +58 -0
- package/src/api/transaction.ts +135 -0
- package/src/api/transactionSubmission.ts +168 -0
- package/src/bcs/consts.ts +12 -0
- package/src/bcs/deserializer.ts +248 -0
- package/src/bcs/index.ts +9 -0
- package/src/bcs/serializable/entryFunctionBytes.ts +61 -0
- package/src/bcs/serializable/fixedBytes.ts +65 -0
- package/src/bcs/serializable/movePrimitives.ts +211 -0
- package/src/bcs/serializable/moveStructs.ts +462 -0
- package/src/bcs/serializer.ts +353 -0
- package/src/client/core.ts +106 -0
- package/src/client/get.ts +109 -0
- package/src/client/index.ts +7 -0
- package/src/client/post.ts +90 -0
- package/src/client/types.ts +58 -0
- package/src/core/account.ts +180 -0
- package/src/core/accountAddress.ts +407 -0
- package/src/core/authenticationKey.ts +102 -0
- package/src/core/common.ts +40 -0
- package/src/core/crypto/asymmetricCrypto.ts +77 -0
- package/src/core/crypto/ed25519.ts +224 -0
- package/src/core/crypto/index.ts +7 -0
- package/src/core/crypto/multiEd25519.ts +251 -0
- package/src/core/crypto/secp256k1.ts +227 -0
- package/src/core/hex.ts +177 -0
- package/src/core/index.ts +9 -0
- package/src/index.ts +12 -0
- package/src/internal/account.ts +484 -0
- package/src/internal/coin.ts +32 -0
- package/src/internal/digitalAsset.ts +302 -0
- package/src/internal/event.ts +88 -0
- package/src/internal/faucet.ts +41 -0
- package/src/internal/fungibleAsset.ts +114 -0
- package/src/internal/general.ts +160 -0
- package/src/internal/queries/TokenActivitiesFieldsFragment.graphql +17 -0
- package/src/internal/queries/currentTokenOwnershipFieldsFragment.graphql +45 -0
- package/src/internal/queries/getAccountCoinCount.graphql +7 -0
- package/src/internal/queries/getAccountCoinsData.graphql +32 -0
- package/src/internal/queries/getAccountCollectionsWithOwnedTokens.graphql +33 -0
- package/src/internal/queries/getAccountOwnedObjects.graphql +16 -0
- package/src/internal/queries/getAccountOwnedTokens.graphql +11 -0
- package/src/internal/queries/getAccountOwnedTokensByTokenData.graphql +11 -0
- package/src/internal/queries/getAccountOwnedTokensFromCollectionAddress.graphql +11 -0
- package/src/internal/queries/getAccountTokensCount.graphql +7 -0
- package/src/internal/queries/getAccountTransactionsCount.graphql +7 -0
- package/src/internal/queries/getChainTopUserTransactions.graphql +5 -0
- package/src/internal/queries/getCollectionData.graphql +20 -0
- package/src/internal/queries/getCurrentFungibleAssetBalances.graphql +17 -0
- package/src/internal/queries/getDelegatedStakingActivities.graphql +12 -0
- package/src/internal/queries/getEvents.graphql +12 -0
- package/src/internal/queries/getFungibleAssetActivities.graphql +20 -0
- package/src/internal/queries/getFungibleAssetMetadata.graphql +16 -0
- package/src/internal/queries/getNumberOfDelegatorsQuery.graphql +9 -0
- package/src/internal/queries/getProcessorStatus.graphql +7 -0
- package/src/internal/queries/getTokenActivity.graphql +11 -0
- package/src/internal/queries/getTokenCurrentOwner.graphql +11 -0
- package/src/internal/queries/getTokenData.graphql +38 -0
- package/src/internal/staking.ts +68 -0
- package/src/internal/transaction.ts +245 -0
- package/src/internal/transactionSubmission.ts +162 -0
- package/src/transactions/authenticator/account.ts +121 -0
- package/src/transactions/authenticator/transaction.ts +222 -0
- package/src/transactions/instances/chainId.ts +26 -0
- package/src/transactions/instances/identifier.ts +28 -0
- package/src/transactions/instances/index.ts +9 -0
- package/src/transactions/instances/moduleId.ts +53 -0
- package/src/transactions/instances/rawTransaction.ts +199 -0
- package/src/transactions/instances/signedTransaction.ts +43 -0
- package/src/transactions/instances/transactionArgument.ts +37 -0
- package/src/transactions/instances/transactionPayload.ts +407 -0
- package/src/transactions/transaction_builder/transaction_builder.ts +541 -0
- package/src/transactions/typeTag/typeTag.ts +487 -0
- package/src/transactions/types.ts +262 -0
- package/src/types/codegen.yaml +33 -0
- package/src/types/generated/operations.ts +623 -0
- package/src/types/generated/queries.ts +737 -0
- package/src/types/generated/types.ts +10387 -0
- package/src/types/index.ts +944 -0
- package/src/types/indexer.ts +93 -0
- package/src/utils/apiEndpoints.ts +36 -0
- package/src/utils/const.ts +51 -0
- package/src/utils/hdKey.ts +113 -0
- package/src/utils/helpers.ts +12 -0
- package/src/utils/memoize.ts +68 -0
- package/src/version.ts +9 -0
|
@@ -0,0 +1,623 @@
|
|
|
1
|
+
import * as Types from "./types";
|
|
2
|
+
|
|
3
|
+
export type CurrentTokenOwnershipFieldsFragment = {
|
|
4
|
+
token_standard: string;
|
|
5
|
+
token_properties_mutated_v1?: any | null;
|
|
6
|
+
token_data_id: string;
|
|
7
|
+
table_type_v1?: string | null;
|
|
8
|
+
storage_id: string;
|
|
9
|
+
property_version_v1: any;
|
|
10
|
+
owner_address: string;
|
|
11
|
+
last_transaction_version: any;
|
|
12
|
+
last_transaction_timestamp: any;
|
|
13
|
+
is_soulbound_v2?: boolean | null;
|
|
14
|
+
is_fungible_v2?: boolean | null;
|
|
15
|
+
amount: any;
|
|
16
|
+
current_token_data?: {
|
|
17
|
+
collection_id: string;
|
|
18
|
+
description: string;
|
|
19
|
+
is_fungible_v2?: boolean | null;
|
|
20
|
+
largest_property_version_v1?: any | null;
|
|
21
|
+
last_transaction_timestamp: any;
|
|
22
|
+
last_transaction_version: any;
|
|
23
|
+
maximum?: any | null;
|
|
24
|
+
supply: any;
|
|
25
|
+
token_data_id: string;
|
|
26
|
+
token_name: string;
|
|
27
|
+
token_properties: any;
|
|
28
|
+
token_standard: string;
|
|
29
|
+
token_uri: string;
|
|
30
|
+
current_collection?: {
|
|
31
|
+
collection_id: string;
|
|
32
|
+
collection_name: string;
|
|
33
|
+
creator_address: string;
|
|
34
|
+
current_supply: any;
|
|
35
|
+
description: string;
|
|
36
|
+
last_transaction_timestamp: any;
|
|
37
|
+
last_transaction_version: any;
|
|
38
|
+
max_supply?: any | null;
|
|
39
|
+
mutable_description?: boolean | null;
|
|
40
|
+
mutable_uri?: boolean | null;
|
|
41
|
+
table_handle_v1?: string | null;
|
|
42
|
+
token_standard: string;
|
|
43
|
+
total_minted_v2?: any | null;
|
|
44
|
+
uri: string;
|
|
45
|
+
} | null;
|
|
46
|
+
} | null;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export type TokenActivitiesFieldsFragment = {
|
|
50
|
+
after_value?: string | null;
|
|
51
|
+
before_value?: string | null;
|
|
52
|
+
entry_function_id_str?: string | null;
|
|
53
|
+
event_account_address: string;
|
|
54
|
+
event_index: any;
|
|
55
|
+
from_address?: string | null;
|
|
56
|
+
is_fungible_v2?: boolean | null;
|
|
57
|
+
property_version_v1: any;
|
|
58
|
+
to_address?: string | null;
|
|
59
|
+
token_amount: any;
|
|
60
|
+
token_data_id: string;
|
|
61
|
+
token_standard: string;
|
|
62
|
+
transaction_timestamp: any;
|
|
63
|
+
transaction_version: any;
|
|
64
|
+
type: string;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export type GetAccountCoinsCountQueryVariables = Types.Exact<{
|
|
68
|
+
address?: Types.InputMaybe<Types.Scalars["String"]>;
|
|
69
|
+
}>;
|
|
70
|
+
|
|
71
|
+
export type GetAccountCoinsCountQuery = {
|
|
72
|
+
current_fungible_asset_balances_aggregate: { aggregate?: { count: number } | null };
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export type GetAccountCoinsDataQueryVariables = Types.Exact<{
|
|
76
|
+
where_condition: Types.CurrentFungibleAssetBalancesBoolExp;
|
|
77
|
+
offset?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
78
|
+
limit?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
79
|
+
order_by?: Types.InputMaybe<
|
|
80
|
+
Array<Types.CurrentFungibleAssetBalancesOrderBy> | Types.CurrentFungibleAssetBalancesOrderBy
|
|
81
|
+
>;
|
|
82
|
+
}>;
|
|
83
|
+
|
|
84
|
+
export type GetAccountCoinsDataQuery = {
|
|
85
|
+
current_fungible_asset_balances: Array<{
|
|
86
|
+
amount: any;
|
|
87
|
+
asset_type: string;
|
|
88
|
+
is_frozen: boolean;
|
|
89
|
+
is_primary: boolean;
|
|
90
|
+
last_transaction_timestamp: any;
|
|
91
|
+
last_transaction_version: any;
|
|
92
|
+
owner_address: string;
|
|
93
|
+
storage_id: string;
|
|
94
|
+
token_standard: string;
|
|
95
|
+
metadata?: {
|
|
96
|
+
token_standard: string;
|
|
97
|
+
symbol: string;
|
|
98
|
+
supply_aggregator_table_key_v1?: string | null;
|
|
99
|
+
supply_aggregator_table_handle_v1?: string | null;
|
|
100
|
+
project_uri?: string | null;
|
|
101
|
+
name: string;
|
|
102
|
+
last_transaction_version: any;
|
|
103
|
+
last_transaction_timestamp: any;
|
|
104
|
+
icon_uri?: string | null;
|
|
105
|
+
decimals: number;
|
|
106
|
+
creator_address: string;
|
|
107
|
+
asset_type: string;
|
|
108
|
+
} | null;
|
|
109
|
+
}>;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
export type GetAccountCollectionsWithOwnedTokensQueryVariables = Types.Exact<{
|
|
113
|
+
where_condition: Types.CurrentCollectionOwnershipV2ViewBoolExp;
|
|
114
|
+
offset?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
115
|
+
limit?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
116
|
+
order_by?: Types.InputMaybe<
|
|
117
|
+
Array<Types.CurrentCollectionOwnershipV2ViewOrderBy> | Types.CurrentCollectionOwnershipV2ViewOrderBy
|
|
118
|
+
>;
|
|
119
|
+
}>;
|
|
120
|
+
|
|
121
|
+
export type GetAccountCollectionsWithOwnedTokensQuery = {
|
|
122
|
+
current_collection_ownership_v2_view: Array<{
|
|
123
|
+
collection_id?: string | null;
|
|
124
|
+
collection_name?: string | null;
|
|
125
|
+
collection_uri?: string | null;
|
|
126
|
+
creator_address?: string | null;
|
|
127
|
+
distinct_tokens?: any | null;
|
|
128
|
+
last_transaction_version?: any | null;
|
|
129
|
+
owner_address?: string | null;
|
|
130
|
+
single_token_uri?: string | null;
|
|
131
|
+
current_collection?: {
|
|
132
|
+
collection_id: string;
|
|
133
|
+
collection_name: string;
|
|
134
|
+
creator_address: string;
|
|
135
|
+
current_supply: any;
|
|
136
|
+
description: string;
|
|
137
|
+
last_transaction_timestamp: any;
|
|
138
|
+
last_transaction_version: any;
|
|
139
|
+
mutable_description?: boolean | null;
|
|
140
|
+
max_supply?: any | null;
|
|
141
|
+
mutable_uri?: boolean | null;
|
|
142
|
+
table_handle_v1?: string | null;
|
|
143
|
+
token_standard: string;
|
|
144
|
+
total_minted_v2?: any | null;
|
|
145
|
+
uri: string;
|
|
146
|
+
} | null;
|
|
147
|
+
}>;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
export type GetAccountOwnedObjectsQueryVariables = Types.Exact<{
|
|
151
|
+
where_condition?: Types.InputMaybe<Types.CurrentObjectsBoolExp>;
|
|
152
|
+
offset?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
153
|
+
limit?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
154
|
+
order_by?: Types.InputMaybe<Array<Types.CurrentObjectsOrderBy> | Types.CurrentObjectsOrderBy>;
|
|
155
|
+
}>;
|
|
156
|
+
|
|
157
|
+
export type GetAccountOwnedObjectsQuery = {
|
|
158
|
+
current_objects: Array<{
|
|
159
|
+
allow_ungated_transfer: boolean;
|
|
160
|
+
state_key_hash: string;
|
|
161
|
+
owner_address: string;
|
|
162
|
+
object_address: string;
|
|
163
|
+
last_transaction_version: any;
|
|
164
|
+
last_guid_creation_num: any;
|
|
165
|
+
is_deleted: boolean;
|
|
166
|
+
}>;
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
export type GetAccountOwnedTokensQueryVariables = Types.Exact<{
|
|
170
|
+
where_condition: Types.CurrentTokenOwnershipsV2BoolExp;
|
|
171
|
+
offset?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
172
|
+
limit?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
173
|
+
order_by?: Types.InputMaybe<Array<Types.CurrentTokenOwnershipsV2OrderBy> | Types.CurrentTokenOwnershipsV2OrderBy>;
|
|
174
|
+
}>;
|
|
175
|
+
|
|
176
|
+
export type GetAccountOwnedTokensQuery = {
|
|
177
|
+
current_token_ownerships_v2: Array<{
|
|
178
|
+
token_standard: string;
|
|
179
|
+
token_properties_mutated_v1?: any | null;
|
|
180
|
+
token_data_id: string;
|
|
181
|
+
table_type_v1?: string | null;
|
|
182
|
+
storage_id: string;
|
|
183
|
+
property_version_v1: any;
|
|
184
|
+
owner_address: string;
|
|
185
|
+
last_transaction_version: any;
|
|
186
|
+
last_transaction_timestamp: any;
|
|
187
|
+
is_soulbound_v2?: boolean | null;
|
|
188
|
+
is_fungible_v2?: boolean | null;
|
|
189
|
+
amount: any;
|
|
190
|
+
current_token_data?: {
|
|
191
|
+
collection_id: string;
|
|
192
|
+
description: string;
|
|
193
|
+
is_fungible_v2?: boolean | null;
|
|
194
|
+
largest_property_version_v1?: any | null;
|
|
195
|
+
last_transaction_timestamp: any;
|
|
196
|
+
last_transaction_version: any;
|
|
197
|
+
maximum?: any | null;
|
|
198
|
+
supply: any;
|
|
199
|
+
token_data_id: string;
|
|
200
|
+
token_name: string;
|
|
201
|
+
token_properties: any;
|
|
202
|
+
token_standard: string;
|
|
203
|
+
token_uri: string;
|
|
204
|
+
current_collection?: {
|
|
205
|
+
collection_id: string;
|
|
206
|
+
collection_name: string;
|
|
207
|
+
creator_address: string;
|
|
208
|
+
current_supply: any;
|
|
209
|
+
description: string;
|
|
210
|
+
last_transaction_timestamp: any;
|
|
211
|
+
last_transaction_version: any;
|
|
212
|
+
max_supply?: any | null;
|
|
213
|
+
mutable_description?: boolean | null;
|
|
214
|
+
mutable_uri?: boolean | null;
|
|
215
|
+
table_handle_v1?: string | null;
|
|
216
|
+
token_standard: string;
|
|
217
|
+
total_minted_v2?: any | null;
|
|
218
|
+
uri: string;
|
|
219
|
+
} | null;
|
|
220
|
+
} | null;
|
|
221
|
+
}>;
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
export type GetAccountOwnedTokensByTokenDataQueryVariables = Types.Exact<{
|
|
225
|
+
where_condition: Types.CurrentTokenOwnershipsV2BoolExp;
|
|
226
|
+
offset?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
227
|
+
limit?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
228
|
+
order_by?: Types.InputMaybe<Array<Types.CurrentTokenOwnershipsV2OrderBy> | Types.CurrentTokenOwnershipsV2OrderBy>;
|
|
229
|
+
}>;
|
|
230
|
+
|
|
231
|
+
export type GetAccountOwnedTokensByTokenDataQuery = {
|
|
232
|
+
current_token_ownerships_v2: Array<{
|
|
233
|
+
token_standard: string;
|
|
234
|
+
token_properties_mutated_v1?: any | null;
|
|
235
|
+
token_data_id: string;
|
|
236
|
+
table_type_v1?: string | null;
|
|
237
|
+
storage_id: string;
|
|
238
|
+
property_version_v1: any;
|
|
239
|
+
owner_address: string;
|
|
240
|
+
last_transaction_version: any;
|
|
241
|
+
last_transaction_timestamp: any;
|
|
242
|
+
is_soulbound_v2?: boolean | null;
|
|
243
|
+
is_fungible_v2?: boolean | null;
|
|
244
|
+
amount: any;
|
|
245
|
+
current_token_data?: {
|
|
246
|
+
collection_id: string;
|
|
247
|
+
description: string;
|
|
248
|
+
is_fungible_v2?: boolean | null;
|
|
249
|
+
largest_property_version_v1?: any | null;
|
|
250
|
+
last_transaction_timestamp: any;
|
|
251
|
+
last_transaction_version: any;
|
|
252
|
+
maximum?: any | null;
|
|
253
|
+
supply: any;
|
|
254
|
+
token_data_id: string;
|
|
255
|
+
token_name: string;
|
|
256
|
+
token_properties: any;
|
|
257
|
+
token_standard: string;
|
|
258
|
+
token_uri: string;
|
|
259
|
+
current_collection?: {
|
|
260
|
+
collection_id: string;
|
|
261
|
+
collection_name: string;
|
|
262
|
+
creator_address: string;
|
|
263
|
+
current_supply: any;
|
|
264
|
+
description: string;
|
|
265
|
+
last_transaction_timestamp: any;
|
|
266
|
+
last_transaction_version: any;
|
|
267
|
+
max_supply?: any | null;
|
|
268
|
+
mutable_description?: boolean | null;
|
|
269
|
+
mutable_uri?: boolean | null;
|
|
270
|
+
table_handle_v1?: string | null;
|
|
271
|
+
token_standard: string;
|
|
272
|
+
total_minted_v2?: any | null;
|
|
273
|
+
uri: string;
|
|
274
|
+
} | null;
|
|
275
|
+
} | null;
|
|
276
|
+
}>;
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
export type GetAccountOwnedTokensFromCollectionQueryVariables = Types.Exact<{
|
|
280
|
+
where_condition: Types.CurrentTokenOwnershipsV2BoolExp;
|
|
281
|
+
offset?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
282
|
+
limit?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
283
|
+
order_by?: Types.InputMaybe<Array<Types.CurrentTokenOwnershipsV2OrderBy> | Types.CurrentTokenOwnershipsV2OrderBy>;
|
|
284
|
+
}>;
|
|
285
|
+
|
|
286
|
+
export type GetAccountOwnedTokensFromCollectionQuery = {
|
|
287
|
+
current_token_ownerships_v2: Array<{
|
|
288
|
+
token_standard: string;
|
|
289
|
+
token_properties_mutated_v1?: any | null;
|
|
290
|
+
token_data_id: string;
|
|
291
|
+
table_type_v1?: string | null;
|
|
292
|
+
storage_id: string;
|
|
293
|
+
property_version_v1: any;
|
|
294
|
+
owner_address: string;
|
|
295
|
+
last_transaction_version: any;
|
|
296
|
+
last_transaction_timestamp: any;
|
|
297
|
+
is_soulbound_v2?: boolean | null;
|
|
298
|
+
is_fungible_v2?: boolean | null;
|
|
299
|
+
amount: any;
|
|
300
|
+
current_token_data?: {
|
|
301
|
+
collection_id: string;
|
|
302
|
+
description: string;
|
|
303
|
+
is_fungible_v2?: boolean | null;
|
|
304
|
+
largest_property_version_v1?: any | null;
|
|
305
|
+
last_transaction_timestamp: any;
|
|
306
|
+
last_transaction_version: any;
|
|
307
|
+
maximum?: any | null;
|
|
308
|
+
supply: any;
|
|
309
|
+
token_data_id: string;
|
|
310
|
+
token_name: string;
|
|
311
|
+
token_properties: any;
|
|
312
|
+
token_standard: string;
|
|
313
|
+
token_uri: string;
|
|
314
|
+
current_collection?: {
|
|
315
|
+
collection_id: string;
|
|
316
|
+
collection_name: string;
|
|
317
|
+
creator_address: string;
|
|
318
|
+
current_supply: any;
|
|
319
|
+
description: string;
|
|
320
|
+
last_transaction_timestamp: any;
|
|
321
|
+
last_transaction_version: any;
|
|
322
|
+
max_supply?: any | null;
|
|
323
|
+
mutable_description?: boolean | null;
|
|
324
|
+
mutable_uri?: boolean | null;
|
|
325
|
+
table_handle_v1?: string | null;
|
|
326
|
+
token_standard: string;
|
|
327
|
+
total_minted_v2?: any | null;
|
|
328
|
+
uri: string;
|
|
329
|
+
} | null;
|
|
330
|
+
} | null;
|
|
331
|
+
}>;
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
export type GetAccountTokensCountQueryVariables = Types.Exact<{
|
|
335
|
+
where_condition?: Types.InputMaybe<Types.CurrentTokenOwnershipsV2BoolExp>;
|
|
336
|
+
offset?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
337
|
+
limit?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
338
|
+
}>;
|
|
339
|
+
|
|
340
|
+
export type GetAccountTokensCountQuery = {
|
|
341
|
+
current_token_ownerships_v2_aggregate: { aggregate?: { count: number } | null };
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
export type GetAccountTransactionsCountQueryVariables = Types.Exact<{
|
|
345
|
+
address?: Types.InputMaybe<Types.Scalars["String"]>;
|
|
346
|
+
}>;
|
|
347
|
+
|
|
348
|
+
export type GetAccountTransactionsCountQuery = {
|
|
349
|
+
account_transactions_aggregate: { aggregate?: { count: number } | null };
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
export type GetChainTopUserTransactionsQueryVariables = Types.Exact<{
|
|
353
|
+
limit?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
354
|
+
}>;
|
|
355
|
+
|
|
356
|
+
export type GetChainTopUserTransactionsQuery = { user_transactions: Array<{ version: any }> };
|
|
357
|
+
|
|
358
|
+
export type GetCollectionDataQueryVariables = Types.Exact<{
|
|
359
|
+
where_condition: Types.CurrentCollectionsV2BoolExp;
|
|
360
|
+
}>;
|
|
361
|
+
|
|
362
|
+
export type GetCollectionDataQuery = {
|
|
363
|
+
current_collections_v2: Array<{
|
|
364
|
+
collection_id: string;
|
|
365
|
+
collection_name: string;
|
|
366
|
+
creator_address: string;
|
|
367
|
+
current_supply: any;
|
|
368
|
+
description: string;
|
|
369
|
+
last_transaction_timestamp: any;
|
|
370
|
+
last_transaction_version: any;
|
|
371
|
+
max_supply?: any | null;
|
|
372
|
+
mutable_description?: boolean | null;
|
|
373
|
+
mutable_uri?: boolean | null;
|
|
374
|
+
table_handle_v1?: string | null;
|
|
375
|
+
token_standard: string;
|
|
376
|
+
total_minted_v2?: any | null;
|
|
377
|
+
uri: string;
|
|
378
|
+
}>;
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
export type GetCurrentFungibleAssetBalancesQueryVariables = Types.Exact<{
|
|
382
|
+
where_condition?: Types.InputMaybe<Types.CurrentFungibleAssetBalancesBoolExp>;
|
|
383
|
+
offset?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
384
|
+
limit?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
385
|
+
}>;
|
|
386
|
+
|
|
387
|
+
export type GetCurrentFungibleAssetBalancesQuery = {
|
|
388
|
+
current_fungible_asset_balances: Array<{
|
|
389
|
+
amount: any;
|
|
390
|
+
asset_type: string;
|
|
391
|
+
is_frozen: boolean;
|
|
392
|
+
is_primary: boolean;
|
|
393
|
+
last_transaction_timestamp: any;
|
|
394
|
+
last_transaction_version: any;
|
|
395
|
+
owner_address: string;
|
|
396
|
+
storage_id: string;
|
|
397
|
+
token_standard: string;
|
|
398
|
+
}>;
|
|
399
|
+
};
|
|
400
|
+
|
|
401
|
+
export type GetDelegatedStakingActivitiesQueryVariables = Types.Exact<{
|
|
402
|
+
delegatorAddress?: Types.InputMaybe<Types.Scalars["String"]>;
|
|
403
|
+
poolAddress?: Types.InputMaybe<Types.Scalars["String"]>;
|
|
404
|
+
}>;
|
|
405
|
+
|
|
406
|
+
export type GetDelegatedStakingActivitiesQuery = {
|
|
407
|
+
delegated_staking_activities: Array<{
|
|
408
|
+
amount: any;
|
|
409
|
+
delegator_address: string;
|
|
410
|
+
event_index: any;
|
|
411
|
+
event_type: string;
|
|
412
|
+
pool_address: string;
|
|
413
|
+
transaction_version: any;
|
|
414
|
+
}>;
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
export type GetEventsQueryVariables = Types.Exact<{
|
|
418
|
+
where_condition?: Types.InputMaybe<Types.EventsBoolExp>;
|
|
419
|
+
offset?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
420
|
+
limit?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
421
|
+
order_by?: Types.InputMaybe<Array<Types.EventsOrderBy> | Types.EventsOrderBy>;
|
|
422
|
+
}>;
|
|
423
|
+
|
|
424
|
+
export type GetEventsQuery = {
|
|
425
|
+
events: Array<{
|
|
426
|
+
account_address: string;
|
|
427
|
+
creation_number: any;
|
|
428
|
+
data: any;
|
|
429
|
+
event_index: any;
|
|
430
|
+
sequence_number: any;
|
|
431
|
+
transaction_block_height: any;
|
|
432
|
+
transaction_version: any;
|
|
433
|
+
type: string;
|
|
434
|
+
}>;
|
|
435
|
+
};
|
|
436
|
+
|
|
437
|
+
export type GetFungibleAssetActivitiesQueryVariables = Types.Exact<{
|
|
438
|
+
where_condition?: Types.InputMaybe<Types.FungibleAssetActivitiesBoolExp>;
|
|
439
|
+
offset?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
440
|
+
limit?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
441
|
+
}>;
|
|
442
|
+
|
|
443
|
+
export type GetFungibleAssetActivitiesQuery = {
|
|
444
|
+
fungible_asset_activities: Array<{
|
|
445
|
+
amount?: any | null;
|
|
446
|
+
asset_type: string;
|
|
447
|
+
block_height: any;
|
|
448
|
+
entry_function_id_str?: string | null;
|
|
449
|
+
event_index: any;
|
|
450
|
+
gas_fee_payer_address?: string | null;
|
|
451
|
+
is_frozen?: boolean | null;
|
|
452
|
+
is_gas_fee: boolean;
|
|
453
|
+
is_transaction_success: boolean;
|
|
454
|
+
owner_address: string;
|
|
455
|
+
storage_id: string;
|
|
456
|
+
storage_refund_amount: any;
|
|
457
|
+
token_standard: string;
|
|
458
|
+
transaction_timestamp: any;
|
|
459
|
+
transaction_version: any;
|
|
460
|
+
type: string;
|
|
461
|
+
}>;
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
export type GetFungibleAssetMetadataQueryVariables = Types.Exact<{
|
|
465
|
+
where_condition?: Types.InputMaybe<Types.FungibleAssetMetadataBoolExp>;
|
|
466
|
+
offset?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
467
|
+
limit?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
468
|
+
}>;
|
|
469
|
+
|
|
470
|
+
export type GetFungibleAssetMetadataQuery = {
|
|
471
|
+
fungible_asset_metadata: Array<{
|
|
472
|
+
icon_uri?: string | null;
|
|
473
|
+
project_uri?: string | null;
|
|
474
|
+
supply_aggregator_table_handle_v1?: string | null;
|
|
475
|
+
supply_aggregator_table_key_v1?: string | null;
|
|
476
|
+
creator_address: string;
|
|
477
|
+
asset_type: string;
|
|
478
|
+
decimals: number;
|
|
479
|
+
last_transaction_timestamp: any;
|
|
480
|
+
last_transaction_version: any;
|
|
481
|
+
name: string;
|
|
482
|
+
symbol: string;
|
|
483
|
+
token_standard: string;
|
|
484
|
+
}>;
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
export type GetNumberOfDelegatorsQueryVariables = Types.Exact<{
|
|
488
|
+
where_condition: Types.NumActiveDelegatorPerPoolBoolExp;
|
|
489
|
+
order_by?: Types.InputMaybe<Array<Types.NumActiveDelegatorPerPoolOrderBy> | Types.NumActiveDelegatorPerPoolOrderBy>;
|
|
490
|
+
}>;
|
|
491
|
+
|
|
492
|
+
export type GetNumberOfDelegatorsQuery = {
|
|
493
|
+
num_active_delegator_per_pool: Array<{ num_active_delegator?: any | null; pool_address?: string | null }>;
|
|
494
|
+
};
|
|
495
|
+
|
|
496
|
+
export type GetProcessorStatusQueryVariables = Types.Exact<{ [key: string]: never }>;
|
|
497
|
+
|
|
498
|
+
export type GetProcessorStatusQuery = {
|
|
499
|
+
processor_status: Array<{ last_success_version: any; processor: string; last_updated: any }>;
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
export type GetTokenActivityQueryVariables = Types.Exact<{
|
|
503
|
+
where_condition: Types.TokenActivitiesV2BoolExp;
|
|
504
|
+
offset?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
505
|
+
limit?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
506
|
+
order_by?: Types.InputMaybe<Array<Types.TokenActivitiesV2OrderBy> | Types.TokenActivitiesV2OrderBy>;
|
|
507
|
+
}>;
|
|
508
|
+
|
|
509
|
+
export type GetTokenActivityQuery = {
|
|
510
|
+
token_activities_v2: Array<{
|
|
511
|
+
after_value?: string | null;
|
|
512
|
+
before_value?: string | null;
|
|
513
|
+
entry_function_id_str?: string | null;
|
|
514
|
+
event_account_address: string;
|
|
515
|
+
event_index: any;
|
|
516
|
+
from_address?: string | null;
|
|
517
|
+
is_fungible_v2?: boolean | null;
|
|
518
|
+
property_version_v1: any;
|
|
519
|
+
to_address?: string | null;
|
|
520
|
+
token_amount: any;
|
|
521
|
+
token_data_id: string;
|
|
522
|
+
token_standard: string;
|
|
523
|
+
transaction_timestamp: any;
|
|
524
|
+
transaction_version: any;
|
|
525
|
+
type: string;
|
|
526
|
+
}>;
|
|
527
|
+
};
|
|
528
|
+
|
|
529
|
+
export type GetCurrentTokenOwnershipQueryVariables = Types.Exact<{
|
|
530
|
+
where_condition: Types.CurrentTokenOwnershipsV2BoolExp;
|
|
531
|
+
offset?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
532
|
+
limit?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
533
|
+
order_by?: Types.InputMaybe<Array<Types.CurrentTokenOwnershipsV2OrderBy> | Types.CurrentTokenOwnershipsV2OrderBy>;
|
|
534
|
+
}>;
|
|
535
|
+
|
|
536
|
+
export type GetCurrentTokenOwnershipQuery = {
|
|
537
|
+
current_token_ownerships_v2: Array<{
|
|
538
|
+
token_standard: string;
|
|
539
|
+
token_properties_mutated_v1?: any | null;
|
|
540
|
+
token_data_id: string;
|
|
541
|
+
table_type_v1?: string | null;
|
|
542
|
+
storage_id: string;
|
|
543
|
+
property_version_v1: any;
|
|
544
|
+
owner_address: string;
|
|
545
|
+
last_transaction_version: any;
|
|
546
|
+
last_transaction_timestamp: any;
|
|
547
|
+
is_soulbound_v2?: boolean | null;
|
|
548
|
+
is_fungible_v2?: boolean | null;
|
|
549
|
+
amount: any;
|
|
550
|
+
current_token_data?: {
|
|
551
|
+
collection_id: string;
|
|
552
|
+
description: string;
|
|
553
|
+
is_fungible_v2?: boolean | null;
|
|
554
|
+
largest_property_version_v1?: any | null;
|
|
555
|
+
last_transaction_timestamp: any;
|
|
556
|
+
last_transaction_version: any;
|
|
557
|
+
maximum?: any | null;
|
|
558
|
+
supply: any;
|
|
559
|
+
token_data_id: string;
|
|
560
|
+
token_name: string;
|
|
561
|
+
token_properties: any;
|
|
562
|
+
token_standard: string;
|
|
563
|
+
token_uri: string;
|
|
564
|
+
current_collection?: {
|
|
565
|
+
collection_id: string;
|
|
566
|
+
collection_name: string;
|
|
567
|
+
creator_address: string;
|
|
568
|
+
current_supply: any;
|
|
569
|
+
description: string;
|
|
570
|
+
last_transaction_timestamp: any;
|
|
571
|
+
last_transaction_version: any;
|
|
572
|
+
max_supply?: any | null;
|
|
573
|
+
mutable_description?: boolean | null;
|
|
574
|
+
mutable_uri?: boolean | null;
|
|
575
|
+
table_handle_v1?: string | null;
|
|
576
|
+
token_standard: string;
|
|
577
|
+
total_minted_v2?: any | null;
|
|
578
|
+
uri: string;
|
|
579
|
+
} | null;
|
|
580
|
+
} | null;
|
|
581
|
+
}>;
|
|
582
|
+
};
|
|
583
|
+
|
|
584
|
+
export type GetTokenDataQueryVariables = Types.Exact<{
|
|
585
|
+
where_condition?: Types.InputMaybe<Types.CurrentTokenDatasV2BoolExp>;
|
|
586
|
+
offset?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
587
|
+
limit?: Types.InputMaybe<Types.Scalars["Int"]>;
|
|
588
|
+
order_by?: Types.InputMaybe<Array<Types.CurrentTokenDatasV2OrderBy> | Types.CurrentTokenDatasV2OrderBy>;
|
|
589
|
+
}>;
|
|
590
|
+
|
|
591
|
+
export type GetTokenDataQuery = {
|
|
592
|
+
current_token_datas_v2: Array<{
|
|
593
|
+
collection_id: string;
|
|
594
|
+
description: string;
|
|
595
|
+
is_fungible_v2?: boolean | null;
|
|
596
|
+
largest_property_version_v1?: any | null;
|
|
597
|
+
last_transaction_timestamp: any;
|
|
598
|
+
last_transaction_version: any;
|
|
599
|
+
maximum?: any | null;
|
|
600
|
+
supply: any;
|
|
601
|
+
token_data_id: string;
|
|
602
|
+
token_name: string;
|
|
603
|
+
token_properties: any;
|
|
604
|
+
token_standard: string;
|
|
605
|
+
token_uri: string;
|
|
606
|
+
current_collection?: {
|
|
607
|
+
collection_id: string;
|
|
608
|
+
collection_name: string;
|
|
609
|
+
creator_address: string;
|
|
610
|
+
current_supply: any;
|
|
611
|
+
description: string;
|
|
612
|
+
last_transaction_timestamp: any;
|
|
613
|
+
last_transaction_version: any;
|
|
614
|
+
max_supply?: any | null;
|
|
615
|
+
mutable_description?: boolean | null;
|
|
616
|
+
mutable_uri?: boolean | null;
|
|
617
|
+
table_handle_v1?: string | null;
|
|
618
|
+
token_standard: string;
|
|
619
|
+
total_minted_v2?: any | null;
|
|
620
|
+
uri: string;
|
|
621
|
+
} | null;
|
|
622
|
+
}>;
|
|
623
|
+
};
|