@typemove/aptos 1.8.2 → 1.8.3
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/cjs/builtin/0x1.d.ts +673 -658
- package/dist/cjs/builtin/0x1.d.ts.map +1 -1
- package/dist/cjs/builtin/0x1.js +931 -882
- package/dist/cjs/builtin/0x1.js.map +1 -1
- package/dist/cjs/builtin/0x3.d.ts +62 -48
- package/dist/cjs/builtin/0x3.d.ts.map +1 -1
- package/dist/cjs/builtin/0x3.js +46 -37
- package/dist/cjs/builtin/0x3.js.map +1 -1
- package/dist/cjs/builtin/0x4.d.ts +72 -72
- package/dist/cjs/builtin/0x4.d.ts.map +1 -1
- package/dist/cjs/builtin/0x4.js +121 -121
- package/dist/cjs/builtin/0x4.js.map +1 -1
- package/dist/esm/builtin/0x1.d.ts +673 -658
- package/dist/esm/builtin/0x1.d.ts.map +1 -1
- package/dist/esm/builtin/0x1.js +931 -882
- package/dist/esm/builtin/0x1.js.map +1 -1
- package/dist/esm/builtin/0x3.d.ts +62 -48
- package/dist/esm/builtin/0x3.d.ts.map +1 -1
- package/dist/esm/builtin/0x3.js +46 -37
- package/dist/esm/builtin/0x3.js.map +1 -1
- package/dist/esm/builtin/0x4.d.ts +72 -72
- package/dist/esm/builtin/0x4.d.ts.map +1 -1
- package/dist/esm/builtin/0x4.js +121 -121
- package/dist/esm/builtin/0x4.js.map +1 -1
- package/package.json +2 -2
- package/src/abis/0x1.json +3816 -3657
- package/src/abis/0x3.json +247 -219
- package/src/abis/0x4.json +576 -576
- package/src/builtin/0x1.ts +1560 -1471
- package/src/builtin/0x3.ts +109 -83
- package/src/builtin/0x4.ts +183 -185
- package/src/tests/abis/0x6b3720cd988adeaf721ed9d4730da4324d52364871a68eac62b46d21e4d2fa99.json +1099 -0
- package/src/tests/abis/0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615.json +409 -0
- package/src/tests/abis/0x87978b35bf1eb73ae6cf04cfedcaa1f48254a683ebd00a21e7516a991edae3ac.json +219 -0
- package/src/tests/types/0x6b3720cd988adeaf721ed9d4730da4324d52364871a68eac62b46d21e4d2fa99.ts +1652 -0
- package/src/tests/types/0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615.ts +743 -0
- package/src/tests/types/0x87978b35bf1eb73ae6cf04cfedcaa1f48254a683ebd00a21e7516a991edae3ac.ts +125 -0
- package/src/tests/types/index.ts +3 -0
|
@@ -0,0 +1,743 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
/* Generated types for 0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615, original address 0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615 */
|
|
6
|
+
|
|
7
|
+
import { TypeDescriptor, ANY_TYPE } from "@typemove/move";
|
|
8
|
+
import { MoveCoder, TypedEventInstance } from "@typemove/aptos";
|
|
9
|
+
|
|
10
|
+
import { defaultMoveCoder } from "@typemove/aptos";
|
|
11
|
+
|
|
12
|
+
import {
|
|
13
|
+
Aptos,
|
|
14
|
+
Account as AptosAccount,
|
|
15
|
+
MoveAddressType,
|
|
16
|
+
PendingTransactionResponse,
|
|
17
|
+
InputGenerateTransactionOptions,
|
|
18
|
+
MoveStructId,
|
|
19
|
+
InputViewFunctionData,
|
|
20
|
+
} from "@aptos-labs/ts-sdk";
|
|
21
|
+
|
|
22
|
+
import * as _0x1 from "@typemove/aptos/builtin/0x1";
|
|
23
|
+
|
|
24
|
+
export namespace package$ {
|
|
25
|
+
export interface ResourceSignerCapability {
|
|
26
|
+
signer_cap: _0x1.account.SignerCapability;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export namespace ResourceSignerCapability {
|
|
30
|
+
export const TYPE_QNAME =
|
|
31
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::package::ResourceSignerCapability";
|
|
32
|
+
|
|
33
|
+
const TYPE = new TypeDescriptor<ResourceSignerCapability>(
|
|
34
|
+
ResourceSignerCapability.TYPE_QNAME,
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
export function type(): TypeDescriptor<ResourceSignerCapability> {
|
|
38
|
+
return TYPE.apply();
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export namespace entry {
|
|
43
|
+
export async function publishPackage(
|
|
44
|
+
client: Aptos,
|
|
45
|
+
account: AptosAccount,
|
|
46
|
+
request: {
|
|
47
|
+
typeArguments: [];
|
|
48
|
+
functionArguments: [string, string[]];
|
|
49
|
+
},
|
|
50
|
+
options?: InputGenerateTransactionOptions,
|
|
51
|
+
): Promise<PendingTransactionResponse> {
|
|
52
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
53
|
+
const transaction = await client.transaction.build.simple({
|
|
54
|
+
sender: account.accountAddress,
|
|
55
|
+
data: {
|
|
56
|
+
function:
|
|
57
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::package::publish_package",
|
|
58
|
+
functionArguments: coder.encodeArray(request.functionArguments),
|
|
59
|
+
typeArguments: [],
|
|
60
|
+
},
|
|
61
|
+
options,
|
|
62
|
+
});
|
|
63
|
+
return await client.signAndSubmitTransaction({
|
|
64
|
+
signer: account,
|
|
65
|
+
transaction,
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
export namespace view {}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export namespace thl_coin {
|
|
73
|
+
export interface Capabilities {
|
|
74
|
+
burn_capability: _0x1.coin.BurnCapability<thl_coin.THL>;
|
|
75
|
+
freeze_capability: _0x1.coin.FreezeCapability<thl_coin.THL>;
|
|
76
|
+
mint_capability: _0x1.coin.MintCapability<thl_coin.THL>;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export namespace Capabilities {
|
|
80
|
+
export const TYPE_QNAME =
|
|
81
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::Capabilities";
|
|
82
|
+
|
|
83
|
+
const TYPE = new TypeDescriptor<Capabilities>(Capabilities.TYPE_QNAME);
|
|
84
|
+
|
|
85
|
+
export function type(): TypeDescriptor<Capabilities> {
|
|
86
|
+
return TYPE.apply();
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface THL {
|
|
91
|
+
dummy_field: boolean;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export namespace THL {
|
|
95
|
+
export const TYPE_QNAME =
|
|
96
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::THL";
|
|
97
|
+
|
|
98
|
+
const TYPE = new TypeDescriptor<THL>(THL.TYPE_QNAME);
|
|
99
|
+
|
|
100
|
+
export function type(): TypeDescriptor<THL> {
|
|
101
|
+
return TYPE.apply();
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export namespace entry {
|
|
106
|
+
export async function burnFrom(
|
|
107
|
+
client: Aptos,
|
|
108
|
+
account: AptosAccount,
|
|
109
|
+
request: {
|
|
110
|
+
typeArguments: [];
|
|
111
|
+
functionArguments: [MoveAddressType, bigint];
|
|
112
|
+
},
|
|
113
|
+
options?: InputGenerateTransactionOptions,
|
|
114
|
+
): Promise<PendingTransactionResponse> {
|
|
115
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
116
|
+
const transaction = await client.transaction.build.simple({
|
|
117
|
+
sender: account.accountAddress,
|
|
118
|
+
data: {
|
|
119
|
+
function:
|
|
120
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::burn_from",
|
|
121
|
+
functionArguments: coder.encodeArray(request.functionArguments),
|
|
122
|
+
typeArguments: [],
|
|
123
|
+
},
|
|
124
|
+
options,
|
|
125
|
+
});
|
|
126
|
+
return await client.signAndSubmitTransaction({
|
|
127
|
+
signer: account,
|
|
128
|
+
transaction,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
export async function freezeCoinStores(
|
|
132
|
+
client: Aptos,
|
|
133
|
+
account: AptosAccount,
|
|
134
|
+
request: {
|
|
135
|
+
typeArguments: [];
|
|
136
|
+
functionArguments: [MoveAddressType[]];
|
|
137
|
+
},
|
|
138
|
+
options?: InputGenerateTransactionOptions,
|
|
139
|
+
): Promise<PendingTransactionResponse> {
|
|
140
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
141
|
+
const transaction = await client.transaction.build.simple({
|
|
142
|
+
sender: account.accountAddress,
|
|
143
|
+
data: {
|
|
144
|
+
function:
|
|
145
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::freeze_coin_stores",
|
|
146
|
+
functionArguments: coder.encodeArray(request.functionArguments),
|
|
147
|
+
typeArguments: [],
|
|
148
|
+
},
|
|
149
|
+
options,
|
|
150
|
+
});
|
|
151
|
+
return await client.signAndSubmitTransaction({
|
|
152
|
+
signer: account,
|
|
153
|
+
transaction,
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
export async function freezeFungibleStores(
|
|
157
|
+
client: Aptos,
|
|
158
|
+
account: AptosAccount,
|
|
159
|
+
request: {
|
|
160
|
+
typeArguments: [];
|
|
161
|
+
functionArguments: [MoveAddressType[]];
|
|
162
|
+
},
|
|
163
|
+
options?: InputGenerateTransactionOptions,
|
|
164
|
+
): Promise<PendingTransactionResponse> {
|
|
165
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
166
|
+
const transaction = await client.transaction.build.simple({
|
|
167
|
+
sender: account.accountAddress,
|
|
168
|
+
data: {
|
|
169
|
+
function:
|
|
170
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::freeze_fungible_stores",
|
|
171
|
+
functionArguments: coder.encodeArray(request.functionArguments),
|
|
172
|
+
typeArguments: [],
|
|
173
|
+
},
|
|
174
|
+
options,
|
|
175
|
+
});
|
|
176
|
+
return await client.signAndSubmitTransaction({
|
|
177
|
+
signer: account,
|
|
178
|
+
transaction,
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
export async function freezeStores(
|
|
182
|
+
client: Aptos,
|
|
183
|
+
account: AptosAccount,
|
|
184
|
+
request: {
|
|
185
|
+
typeArguments: [];
|
|
186
|
+
functionArguments: [MoveAddressType[]];
|
|
187
|
+
},
|
|
188
|
+
options?: InputGenerateTransactionOptions,
|
|
189
|
+
): Promise<PendingTransactionResponse> {
|
|
190
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
191
|
+
const transaction = await client.transaction.build.simple({
|
|
192
|
+
sender: account.accountAddress,
|
|
193
|
+
data: {
|
|
194
|
+
function:
|
|
195
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::freeze_stores",
|
|
196
|
+
functionArguments: coder.encodeArray(request.functionArguments),
|
|
197
|
+
typeArguments: [],
|
|
198
|
+
},
|
|
199
|
+
options,
|
|
200
|
+
});
|
|
201
|
+
return await client.signAndSubmitTransaction({
|
|
202
|
+
signer: account,
|
|
203
|
+
transaction,
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
export async function initialize(
|
|
207
|
+
client: Aptos,
|
|
208
|
+
account: AptosAccount,
|
|
209
|
+
request: {
|
|
210
|
+
typeArguments: [];
|
|
211
|
+
functionArguments: [];
|
|
212
|
+
},
|
|
213
|
+
options?: InputGenerateTransactionOptions,
|
|
214
|
+
): Promise<PendingTransactionResponse> {
|
|
215
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
216
|
+
const transaction = await client.transaction.build.simple({
|
|
217
|
+
sender: account.accountAddress,
|
|
218
|
+
data: {
|
|
219
|
+
function:
|
|
220
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::initialize",
|
|
221
|
+
functionArguments: coder.encodeArray(request.functionArguments),
|
|
222
|
+
typeArguments: [],
|
|
223
|
+
},
|
|
224
|
+
options,
|
|
225
|
+
});
|
|
226
|
+
return await client.signAndSubmitTransaction({
|
|
227
|
+
signer: account,
|
|
228
|
+
transaction,
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export async function mint(
|
|
233
|
+
client: Aptos,
|
|
234
|
+
account: AptosAccount,
|
|
235
|
+
request: {
|
|
236
|
+
typeArguments: [];
|
|
237
|
+
functionArguments: [MoveAddressType, bigint];
|
|
238
|
+
},
|
|
239
|
+
options?: InputGenerateTransactionOptions,
|
|
240
|
+
): Promise<PendingTransactionResponse> {
|
|
241
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
242
|
+
const transaction = await client.transaction.build.simple({
|
|
243
|
+
sender: account.accountAddress,
|
|
244
|
+
data: {
|
|
245
|
+
function:
|
|
246
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::mint",
|
|
247
|
+
functionArguments: coder.encodeArray(request.functionArguments),
|
|
248
|
+
typeArguments: [],
|
|
249
|
+
},
|
|
250
|
+
options,
|
|
251
|
+
});
|
|
252
|
+
return await client.signAndSubmitTransaction({
|
|
253
|
+
signer: account,
|
|
254
|
+
transaction,
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
export async function register(
|
|
258
|
+
client: Aptos,
|
|
259
|
+
account: AptosAccount,
|
|
260
|
+
request: {
|
|
261
|
+
typeArguments: [];
|
|
262
|
+
functionArguments: [];
|
|
263
|
+
},
|
|
264
|
+
options?: InputGenerateTransactionOptions,
|
|
265
|
+
): Promise<PendingTransactionResponse> {
|
|
266
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
267
|
+
const transaction = await client.transaction.build.simple({
|
|
268
|
+
sender: account.accountAddress,
|
|
269
|
+
data: {
|
|
270
|
+
function:
|
|
271
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::register",
|
|
272
|
+
functionArguments: coder.encodeArray(request.functionArguments),
|
|
273
|
+
typeArguments: [],
|
|
274
|
+
},
|
|
275
|
+
options,
|
|
276
|
+
});
|
|
277
|
+
return await client.signAndSubmitTransaction({
|
|
278
|
+
signer: account,
|
|
279
|
+
transaction,
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
export namespace view {}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export namespace thl_vetoken {
|
|
287
|
+
export interface BaseMultipliers {
|
|
288
|
+
thl_multiplier_percent: bigint;
|
|
289
|
+
lpt_multiplier_percent: bigint;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
export namespace BaseMultipliers {
|
|
293
|
+
export const TYPE_QNAME =
|
|
294
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::BaseMultipliers";
|
|
295
|
+
|
|
296
|
+
const TYPE = new TypeDescriptor<BaseMultipliers>(
|
|
297
|
+
BaseMultipliers.TYPE_QNAME,
|
|
298
|
+
);
|
|
299
|
+
|
|
300
|
+
export function type(): TypeDescriptor<BaseMultipliers> {
|
|
301
|
+
return TYPE.apply();
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export namespace entry {
|
|
306
|
+
export async function initializeDividend<T0 = any>(
|
|
307
|
+
client: Aptos,
|
|
308
|
+
account: AptosAccount,
|
|
309
|
+
request: {
|
|
310
|
+
typeArguments: [MoveStructId];
|
|
311
|
+
functionArguments: [];
|
|
312
|
+
},
|
|
313
|
+
options?: InputGenerateTransactionOptions,
|
|
314
|
+
): Promise<PendingTransactionResponse> {
|
|
315
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
316
|
+
const transaction = await client.transaction.build.simple({
|
|
317
|
+
sender: account.accountAddress,
|
|
318
|
+
data: {
|
|
319
|
+
function:
|
|
320
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::initialize_dividend",
|
|
321
|
+
functionArguments: coder.encodeArray(request.functionArguments),
|
|
322
|
+
typeArguments: request.typeArguments,
|
|
323
|
+
},
|
|
324
|
+
options,
|
|
325
|
+
});
|
|
326
|
+
return await client.signAndSubmitTransaction({
|
|
327
|
+
signer: account,
|
|
328
|
+
transaction,
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
export async function initializeVethl(
|
|
332
|
+
client: Aptos,
|
|
333
|
+
account: AptosAccount,
|
|
334
|
+
request: {
|
|
335
|
+
typeArguments: [];
|
|
336
|
+
functionArguments: [bigint, bigint];
|
|
337
|
+
},
|
|
338
|
+
options?: InputGenerateTransactionOptions,
|
|
339
|
+
): Promise<PendingTransactionResponse> {
|
|
340
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
341
|
+
const transaction = await client.transaction.build.simple({
|
|
342
|
+
sender: account.accountAddress,
|
|
343
|
+
data: {
|
|
344
|
+
function:
|
|
345
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::initialize_vethl",
|
|
346
|
+
functionArguments: coder.encodeArray(request.functionArguments),
|
|
347
|
+
typeArguments: [],
|
|
348
|
+
},
|
|
349
|
+
options,
|
|
350
|
+
});
|
|
351
|
+
return await client.signAndSubmitTransaction({
|
|
352
|
+
signer: account,
|
|
353
|
+
transaction,
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
export async function initializeVethlEvents(
|
|
357
|
+
client: Aptos,
|
|
358
|
+
account: AptosAccount,
|
|
359
|
+
request: {
|
|
360
|
+
typeArguments: [];
|
|
361
|
+
functionArguments: [];
|
|
362
|
+
},
|
|
363
|
+
options?: InputGenerateTransactionOptions,
|
|
364
|
+
): Promise<PendingTransactionResponse> {
|
|
365
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
366
|
+
const transaction = await client.transaction.build.simple({
|
|
367
|
+
sender: account.accountAddress,
|
|
368
|
+
data: {
|
|
369
|
+
function:
|
|
370
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::initialize_vethl_events",
|
|
371
|
+
functionArguments: coder.encodeArray(request.functionArguments),
|
|
372
|
+
typeArguments: [],
|
|
373
|
+
},
|
|
374
|
+
options,
|
|
375
|
+
});
|
|
376
|
+
return await client.signAndSubmitTransaction({
|
|
377
|
+
signer: account,
|
|
378
|
+
transaction,
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
export async function refreshComposableVetokenMultipliers(
|
|
383
|
+
client: Aptos,
|
|
384
|
+
account: AptosAccount,
|
|
385
|
+
request: {
|
|
386
|
+
typeArguments: [];
|
|
387
|
+
functionArguments: [];
|
|
388
|
+
},
|
|
389
|
+
options?: InputGenerateTransactionOptions,
|
|
390
|
+
): Promise<PendingTransactionResponse> {
|
|
391
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
392
|
+
const transaction = await client.transaction.build.simple({
|
|
393
|
+
sender: account.accountAddress,
|
|
394
|
+
data: {
|
|
395
|
+
function:
|
|
396
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::refresh_composable_vetoken_multipliers",
|
|
397
|
+
functionArguments: [],
|
|
398
|
+
typeArguments: [],
|
|
399
|
+
},
|
|
400
|
+
options,
|
|
401
|
+
});
|
|
402
|
+
return await client.signAndSubmitTransaction({
|
|
403
|
+
signer: account,
|
|
404
|
+
transaction,
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
export async function updateMultipliers(
|
|
409
|
+
client: Aptos,
|
|
410
|
+
account: AptosAccount,
|
|
411
|
+
request: {
|
|
412
|
+
typeArguments: [];
|
|
413
|
+
functionArguments: [bigint, bigint];
|
|
414
|
+
},
|
|
415
|
+
options?: InputGenerateTransactionOptions,
|
|
416
|
+
): Promise<PendingTransactionResponse> {
|
|
417
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
418
|
+
const transaction = await client.transaction.build.simple({
|
|
419
|
+
sender: account.accountAddress,
|
|
420
|
+
data: {
|
|
421
|
+
function:
|
|
422
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::update_multipliers",
|
|
423
|
+
functionArguments: coder.encodeArray(request.functionArguments),
|
|
424
|
+
typeArguments: [],
|
|
425
|
+
},
|
|
426
|
+
options,
|
|
427
|
+
});
|
|
428
|
+
return await client.signAndSubmitTransaction({
|
|
429
|
+
signer: account,
|
|
430
|
+
transaction,
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
export namespace view {
|
|
435
|
+
export async function balance(
|
|
436
|
+
client: Aptos,
|
|
437
|
+
request: {
|
|
438
|
+
functionArguments: [MoveAddressType];
|
|
439
|
+
},
|
|
440
|
+
version?: bigint,
|
|
441
|
+
): Promise<[bigint]> {
|
|
442
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
443
|
+
const data: InputViewFunctionData = {
|
|
444
|
+
function:
|
|
445
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::balance",
|
|
446
|
+
functionArguments: coder.encodeArray(request.functionArguments),
|
|
447
|
+
typeArguments: [],
|
|
448
|
+
};
|
|
449
|
+
const res = await client.view({
|
|
450
|
+
payload: data,
|
|
451
|
+
options: { ledgerVersion: version },
|
|
452
|
+
});
|
|
453
|
+
const type = await coder.getMoveFunction(
|
|
454
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::balance",
|
|
455
|
+
);
|
|
456
|
+
return (await coder.decodeArray(res, type.return)) as any;
|
|
457
|
+
}
|
|
458
|
+
export async function balanceBreakdown(
|
|
459
|
+
client: Aptos,
|
|
460
|
+
request: {
|
|
461
|
+
functionArguments: [MoveAddressType];
|
|
462
|
+
},
|
|
463
|
+
version?: bigint,
|
|
464
|
+
): Promise<[bigint, bigint, bigint]> {
|
|
465
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
466
|
+
const data: InputViewFunctionData = {
|
|
467
|
+
function:
|
|
468
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::balance_breakdown",
|
|
469
|
+
functionArguments: coder.encodeArray(request.functionArguments),
|
|
470
|
+
typeArguments: [],
|
|
471
|
+
};
|
|
472
|
+
const res = await client.view({
|
|
473
|
+
payload: data,
|
|
474
|
+
options: { ledgerVersion: version },
|
|
475
|
+
});
|
|
476
|
+
const type = await coder.getMoveFunction(
|
|
477
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::balance_breakdown",
|
|
478
|
+
);
|
|
479
|
+
return (await coder.decodeArray(res, type.return)) as any;
|
|
480
|
+
}
|
|
481
|
+
export async function baseMultipliers(
|
|
482
|
+
client: Aptos,
|
|
483
|
+
|
|
484
|
+
version?: bigint,
|
|
485
|
+
): Promise<[bigint, bigint]> {
|
|
486
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
487
|
+
const data: InputViewFunctionData = {
|
|
488
|
+
function:
|
|
489
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::base_multipliers",
|
|
490
|
+
functionArguments: [],
|
|
491
|
+
typeArguments: [],
|
|
492
|
+
};
|
|
493
|
+
const res = await client.view({
|
|
494
|
+
payload: data,
|
|
495
|
+
options: { ledgerVersion: version },
|
|
496
|
+
});
|
|
497
|
+
const type = await coder.getMoveFunction(
|
|
498
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::base_multipliers",
|
|
499
|
+
);
|
|
500
|
+
return (await coder.decodeArray(res, type.return)) as any;
|
|
501
|
+
}
|
|
502
|
+
export async function delegatedBalance(
|
|
503
|
+
client: Aptos,
|
|
504
|
+
request: {
|
|
505
|
+
functionArguments: [MoveAddressType];
|
|
506
|
+
},
|
|
507
|
+
version?: bigint,
|
|
508
|
+
): Promise<[bigint]> {
|
|
509
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
510
|
+
const data: InputViewFunctionData = {
|
|
511
|
+
function:
|
|
512
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::delegated_balance",
|
|
513
|
+
functionArguments: coder.encodeArray(request.functionArguments),
|
|
514
|
+
typeArguments: [],
|
|
515
|
+
};
|
|
516
|
+
const res = await client.view({
|
|
517
|
+
payload: data,
|
|
518
|
+
options: { ledgerVersion: version },
|
|
519
|
+
});
|
|
520
|
+
const type = await coder.getMoveFunction(
|
|
521
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::delegated_balance",
|
|
522
|
+
);
|
|
523
|
+
return (await coder.decodeArray(res, type.return)) as any;
|
|
524
|
+
}
|
|
525
|
+
export async function derivedComposableVetokenMultipliers(
|
|
526
|
+
client: Aptos,
|
|
527
|
+
|
|
528
|
+
version?: bigint,
|
|
529
|
+
): Promise<[bigint, bigint]> {
|
|
530
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
531
|
+
const data: InputViewFunctionData = {
|
|
532
|
+
function:
|
|
533
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::derived_composable_vetoken_multipliers",
|
|
534
|
+
functionArguments: [],
|
|
535
|
+
typeArguments: [],
|
|
536
|
+
};
|
|
537
|
+
const res = await client.view({
|
|
538
|
+
payload: data,
|
|
539
|
+
options: { ledgerVersion: version },
|
|
540
|
+
});
|
|
541
|
+
const type = await coder.getMoveFunction(
|
|
542
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::derived_composable_vetoken_multipliers",
|
|
543
|
+
);
|
|
544
|
+
return (await coder.decodeArray(res, type.return)) as any;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
export async function multipliedUnderlyingTotalSupply(
|
|
548
|
+
client: Aptos,
|
|
549
|
+
|
|
550
|
+
version?: bigint,
|
|
551
|
+
): Promise<[bigint, bigint]> {
|
|
552
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
553
|
+
const data: InputViewFunctionData = {
|
|
554
|
+
function:
|
|
555
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::multiplied_underlying_total_supply",
|
|
556
|
+
functionArguments: [],
|
|
557
|
+
typeArguments: [],
|
|
558
|
+
};
|
|
559
|
+
const res = await client.view({
|
|
560
|
+
payload: data,
|
|
561
|
+
options: { ledgerVersion: version },
|
|
562
|
+
});
|
|
563
|
+
const type = await coder.getMoveFunction(
|
|
564
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::multiplied_underlying_total_supply",
|
|
565
|
+
);
|
|
566
|
+
return (await coder.decodeArray(res, type.return)) as any;
|
|
567
|
+
}
|
|
568
|
+
export async function oneLptThlAmount(
|
|
569
|
+
client: Aptos,
|
|
570
|
+
|
|
571
|
+
version?: bigint,
|
|
572
|
+
): Promise<[bigint]> {
|
|
573
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
574
|
+
const data: InputViewFunctionData = {
|
|
575
|
+
function:
|
|
576
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::one_lpt_thl_amount",
|
|
577
|
+
functionArguments: [],
|
|
578
|
+
typeArguments: [],
|
|
579
|
+
};
|
|
580
|
+
const res = await client.view({
|
|
581
|
+
payload: data,
|
|
582
|
+
options: { ledgerVersion: version },
|
|
583
|
+
});
|
|
584
|
+
const type = await coder.getMoveFunction(
|
|
585
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::one_lpt_thl_amount",
|
|
586
|
+
);
|
|
587
|
+
return (await coder.decodeArray(res, type.return)) as any;
|
|
588
|
+
}
|
|
589
|
+
export async function pastBalance(
|
|
590
|
+
client: Aptos,
|
|
591
|
+
request: {
|
|
592
|
+
functionArguments: [MoveAddressType, bigint];
|
|
593
|
+
},
|
|
594
|
+
version?: bigint,
|
|
595
|
+
): Promise<[bigint]> {
|
|
596
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
597
|
+
const data: InputViewFunctionData = {
|
|
598
|
+
function:
|
|
599
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::past_balance",
|
|
600
|
+
functionArguments: coder.encodeArray(request.functionArguments),
|
|
601
|
+
typeArguments: [],
|
|
602
|
+
};
|
|
603
|
+
const res = await client.view({
|
|
604
|
+
payload: data,
|
|
605
|
+
options: { ledgerVersion: version },
|
|
606
|
+
});
|
|
607
|
+
const type = await coder.getMoveFunction(
|
|
608
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::past_balance",
|
|
609
|
+
);
|
|
610
|
+
return (await coder.decodeArray(res, type.return)) as any;
|
|
611
|
+
}
|
|
612
|
+
export async function pastBalanceBreakdown(
|
|
613
|
+
client: Aptos,
|
|
614
|
+
request: {
|
|
615
|
+
functionArguments: [MoveAddressType, bigint];
|
|
616
|
+
},
|
|
617
|
+
version?: bigint,
|
|
618
|
+
): Promise<[bigint, bigint, bigint]> {
|
|
619
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
620
|
+
const data: InputViewFunctionData = {
|
|
621
|
+
function:
|
|
622
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::past_balance_breakdown",
|
|
623
|
+
functionArguments: coder.encodeArray(request.functionArguments),
|
|
624
|
+
typeArguments: [],
|
|
625
|
+
};
|
|
626
|
+
const res = await client.view({
|
|
627
|
+
payload: data,
|
|
628
|
+
options: { ledgerVersion: version },
|
|
629
|
+
});
|
|
630
|
+
const type = await coder.getMoveFunction(
|
|
631
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::past_balance_breakdown",
|
|
632
|
+
);
|
|
633
|
+
return (await coder.decodeArray(res, type.return)) as any;
|
|
634
|
+
}
|
|
635
|
+
export async function pastDelegatedBalance(
|
|
636
|
+
client: Aptos,
|
|
637
|
+
request: {
|
|
638
|
+
functionArguments: [MoveAddressType, bigint];
|
|
639
|
+
},
|
|
640
|
+
version?: bigint,
|
|
641
|
+
): Promise<[bigint]> {
|
|
642
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
643
|
+
const data: InputViewFunctionData = {
|
|
644
|
+
function:
|
|
645
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::past_delegated_balance",
|
|
646
|
+
functionArguments: coder.encodeArray(request.functionArguments),
|
|
647
|
+
typeArguments: [],
|
|
648
|
+
};
|
|
649
|
+
const res = await client.view({
|
|
650
|
+
payload: data,
|
|
651
|
+
options: { ledgerVersion: version },
|
|
652
|
+
});
|
|
653
|
+
const type = await coder.getMoveFunction(
|
|
654
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::past_delegated_balance",
|
|
655
|
+
);
|
|
656
|
+
return (await coder.decodeArray(res, type.return)) as any;
|
|
657
|
+
}
|
|
658
|
+
export async function pastMultipliedUnderlyingTotalSupply(
|
|
659
|
+
client: Aptos,
|
|
660
|
+
request: {
|
|
661
|
+
functionArguments: [bigint];
|
|
662
|
+
},
|
|
663
|
+
version?: bigint,
|
|
664
|
+
): Promise<[bigint, bigint]> {
|
|
665
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
666
|
+
const data: InputViewFunctionData = {
|
|
667
|
+
function:
|
|
668
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::past_multiplied_underlying_total_supply",
|
|
669
|
+
functionArguments: coder.encodeArray(request.functionArguments),
|
|
670
|
+
typeArguments: [],
|
|
671
|
+
};
|
|
672
|
+
const res = await client.view({
|
|
673
|
+
payload: data,
|
|
674
|
+
options: { ledgerVersion: version },
|
|
675
|
+
});
|
|
676
|
+
const type = await coder.getMoveFunction(
|
|
677
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::past_multiplied_underlying_total_supply",
|
|
678
|
+
);
|
|
679
|
+
return (await coder.decodeArray(res, type.return)) as any;
|
|
680
|
+
}
|
|
681
|
+
export async function pastTotalSupply(
|
|
682
|
+
client: Aptos,
|
|
683
|
+
request: {
|
|
684
|
+
functionArguments: [bigint];
|
|
685
|
+
},
|
|
686
|
+
version?: bigint,
|
|
687
|
+
): Promise<[bigint]> {
|
|
688
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
689
|
+
const data: InputViewFunctionData = {
|
|
690
|
+
function:
|
|
691
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::past_total_supply",
|
|
692
|
+
functionArguments: coder.encodeArray(request.functionArguments),
|
|
693
|
+
typeArguments: [],
|
|
694
|
+
};
|
|
695
|
+
const res = await client.view({
|
|
696
|
+
payload: data,
|
|
697
|
+
options: { ledgerVersion: version },
|
|
698
|
+
});
|
|
699
|
+
const type = await coder.getMoveFunction(
|
|
700
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::past_total_supply",
|
|
701
|
+
);
|
|
702
|
+
return (await coder.decodeArray(res, type.return)) as any;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
export async function totalSupply(
|
|
706
|
+
client: Aptos,
|
|
707
|
+
|
|
708
|
+
version?: bigint,
|
|
709
|
+
): Promise<[bigint]> {
|
|
710
|
+
const coder = defaultMoveCoder(client.config.fullnode);
|
|
711
|
+
const data: InputViewFunctionData = {
|
|
712
|
+
function:
|
|
713
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::total_supply",
|
|
714
|
+
functionArguments: [],
|
|
715
|
+
typeArguments: [],
|
|
716
|
+
};
|
|
717
|
+
const res = await client.view({
|
|
718
|
+
payload: data,
|
|
719
|
+
options: { ledgerVersion: version },
|
|
720
|
+
});
|
|
721
|
+
const type = await coder.getMoveFunction(
|
|
722
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken::total_supply",
|
|
723
|
+
);
|
|
724
|
+
return (await coder.decodeArray(res, type.return)) as any;
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
const MODULES = JSON.parse(
|
|
730
|
+
'[{"bytecode":"0xa11ceb0b0700000a0c01000c020c08031454056826078e01ab0308b9046006990578109106af010ac007060cc607c5010d8b09020f8d09040002010301040105010602070008080001120600000900010001000a02000001000b00030001000c04000001000d02050001000e00010001000f0001000100100005000101130601000104140201000103150809000105160203000102170400000101180a05000100010501060c010103060c0a020a0a02010c0206050a020205080102060c05010801010608010874686c5f636f696e0b74686c5f7665746f6b656e077061636b616765076163636f756e7404636f6465107265736f757263655f6163636f756e74067369676e6572076d616e61676572185265736f757263655369676e65724361706162696c69747920646572697665645f7265736f757263655f6163636f756e745f616464726573730b696e69745f6d6f64756c650b696e697469616c697a65640f7075626c6973685f7061636b6167650e726571756573745f7369676e6572187265736f757263655f6163636f756e745f61646472657373217265736f757263655f6163636f756e745f6465706c6f7965725f61646472657373177265736f757263655f6163636f756e745f7369676e65720a7369676e65725f636170105369676e65724361706162696c697479176372656174655f7265736f757263655f616464726573730a616464726573735f6f661d72657472696576655f7265736f757263655f6163636f756e745f6361700d69735f617574686f72697a6564137075626c6973685f7061636b6167655f74786e1d6372656174655f7369676e65725f776974685f6361706162696c69747907fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615000000000000000000000000000000000000000000000000000000000000000193aa044a65a27bd89b163f8b3be3777b160b09a25c336643dcc2878dfd8f2a8d05201bf23f0881f8fa149500ff6b7a047f608967c028a8ad7a2100caa84833ce851d03080300000000000000030801000000000000000308000000000000000003080200000000000000052007fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b1272556436150a02090874686c5f636f696e126170746f733a3a6d657461646174615f76319a01040000000000000000184552525f5041434b4147455f554e415554484f52495a45440b4572726f7220436f6465730100000000000000174552525f5041434b4147455f494e495449414c495a4544000200000000000000194552525f5041434b4147455f554e494e495449414c495a45440003000000000000001c4552525f5041434b4147455f414444524553535f4d49534d4154434800000000020111080100000000010607000c000e0007061108020100000007270a0011090c010a012900200408050c0b00010702270a01110021041105150b00010701270b01110521041a051e0b00010701270a000700110a0c020b000b0212002d000202010000000311052900020301040100050d0b00110b0404050607032711070c030e030b010b02110c02040100010000080b00110b040405060703271107020501000000020705020601000000020700020703000100000a11020403050507042711052b001000110d0200000000000100","abi":{"address":"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615","name":"package","friends":["0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin","0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_vetoken"],"exposed_functions":[{"name":"initialized","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":[],"return":["bool"]},{"name":"publish_package","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["&signer","vector<u8>","vector<vector<u8>>"],"return":[]},{"name":"request_signer","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer"],"return":["signer"]},{"name":"resource_account_address","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":[],"return":["address"]},{"name":"resource_account_deployer_address","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":[],"return":["address"]},{"name":"resource_account_signer","visibility":"friend","is_entry":false,"is_view":false,"generic_type_params":[],"params":[],"return":["signer"]}],"structs":[{"name":"ResourceSignerCapability","is_native":false,"is_event":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"signer_cap","type":"0x1::account::SignerCapability"}]}]}},{"bytecode":"0xa11ceb0b0700000a0c0100140214320346c501048b021605a102db0107fc03db0408d7086006b709810110b80a97010acf0b1a0ce90bf0030dd90f060000010101020103010401050106010700080209000a0800000b0000010c04010001011805010001011a05010001011c050100010224060001250000062a0700032d07010000000d00010001000e02010001000f03010001001003010001001103010001001204010001001301050001001402010001001506070001001604010001091e04050001051f0409000109200a050001082101090001010d0c01010001010e0e01010001072210010100010123110101000101261314010001042715010001012814010001081301050001091301050001082901170001062b1819000101121a1b010001012c1c01010001012e011e010001032f202101000101142223010001011604010100010e0b0f0b1009110b120b190b1a0b1b0b1c1f1d0b1e0b02060c0b020108010003060c050302060c0a0501060c01010103010b020108010201060800010502050a02010801020b02010900060b0301090001060800030503060b0301090004060800030a050a0501070a09000205060b040109000605030a050a050806080701060b040109000208060807030608060501040b030108010b040108010b050108010c010c010a0201080805060c080808080201030b030109000b040109000b0501090002050b02010900020b090104060800010b090104010401060b09010900010609000203060b05010900010b020109000874686c5f636f696e04636f696e0e66756e6769626c655f6173736574066f7074696f6e167072696d6172795f66756e6769626c655f73746f7265067369676e657206737472696e6706766563746f72077061636b616765076d616e616765720c4361706162696c69746965730354484c04436f696e046275726e096275726e5f66726f6d12667265657a655f636f696e5f73746f72657316667265657a655f66756e6769626c655f73746f7265730d667265657a655f73746f7265730a696e697469616c697a650b696e697469616c697a6564046d696e740d6d696e745f696e7465726e616c0872656769737465720f6275726e5f6361706162696c6974790e4275726e4361706162696c69747911667265657a655f6361706162696c69747910467265657a654361706162696c6974790f6d696e745f6361706162696c6974790e4d696e744361706162696c6974790b64756d6d795f6669656c640d69735f617574686f72697a65640a616464726573735f6f660e69735f726f6c655f6d656d626572187265736f757263655f6163636f756e745f61646472657373077265766572736511667265657a655f636f696e5f73746f72650b5472616e73666572526566125472616e7366657252656652656365697074176765745f7061697265645f7472616e736665725f7265660f7365745f66726f7a656e5f666c61671a72657475726e5f7061697265645f7472616e736665725f726566177265736f757263655f6163636f756e745f7369676e657206537472696e670475746638076465706f736974064f7074696f6e06737570706c7906626f72726f7707fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615000000000000000000000000000000000000000000000000000000000000000193aa044a65a27bd89b163f8b3be3777b160b09a25c336643dcc2878dfd8f2a8d030803000000000000000308020000000000000003080100000000000000030800000000000000000a020c0b6665655f6d616e6167657204100000c16ff2862300000000000000000005201bf23f0881f8fa149500ff6b7a047f608967c028a8ad7a2100caa84833ce851d0a020c0b5468616c6120546f6b656e0a02040354484c126170746f733a3a6d657461646174615f76318201040000000000000000104552525f554e415554484f52495a4544000100000000000000194552525f5041434b4147455f554e494e495449414c495a4544000200000000000000194552525f4d414e414745525f554e494e495449414c495a4544000300000000000000154552525f4558434545445f4d41585f535550504c59000000000203170b03010801190b040108011b0b050108010102011d010001000100081a0a00110a04080b0001080c02050d0b00110b0704110c0c020b0204100512070327110d2b000c030b010b03100038000201010401000d0f0b00110a04040506070327110d2b000c030b010b020b03100038010202010401000f260b00110a04040506070327110d2b000c020b010c040d0438020b040c050e0541090c030a0306000000000000000024042105170d0545090a02100138030b03060100000000000000170c0305120b02010b0546090000000000000000020301040100122c0b00110a04040506070327110d2b00100138040c070c060b010c040d0438020b040c050e0541090c030a03060000000000000000240426051a0d0545090c020e060b020811130b03060100000000000000170c0305150b05460900000000000000000b060b07111402040104010001070a000a0111020b000b011103020501040016260b00110b070621040605080703271115040b050d07022711160410051207012711170c040e04070711180708111831080838050c030c020c010e040b010b020b0312002d0002060100000103110d2900020701040100070d0b00110a040405060703270b0211080c030b010b0338060208000001001d1638070c010e013808140a003516070525040c050e070027110d2b000c020b000b0210023809020901040001030b00380a0200000001000200","abi":{"address":"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615","name":"thl_coin","friends":[],"exposed_functions":[{"name":"burn","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::coin::Coin<0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::THL>"],"return":[]},{"name":"burn_from","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["&signer","address","u64"],"return":[]},{"name":"freeze_coin_stores","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["&signer","vector<address>"],"return":[]},{"name":"freeze_fungible_stores","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["&signer","vector<address>"],"return":[]},{"name":"freeze_stores","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["&signer","vector<address>"],"return":[]},{"name":"initialize","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["&signer"],"return":[]},{"name":"initialized","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":[],"return":["bool"]},{"name":"mint","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["&signer","address","u64"],"return":[]},{"name":"register","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["&signer"],"return":[]}],"structs":[{"name":"Capabilities","is_native":false,"is_event":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"burn_capability","type":"0x1::coin::BurnCapability<0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::THL>"},{"name":"freeze_capability","type":"0x1::coin::FreezeCapability<0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::THL>"},{"name":"mint_capability","type":"0x1::coin::MintCapability<0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::THL>"}]},{"name":"THL","is_native":false,"is_event":false,"abilities":[],"generic_type_params":[],"fields":[{"name":"dummy_field","type":"bool"}]}]}},{"bytecode":"0xa11ceb0b0700000a0c01001e021e2c034ab6020480033005b003b20107e204a00708820ce00106e20d3210940ee1030af511070cfc11d3040dcf160400000101010201030004000502060207020803090304030a040b050c060d000e0800052400000b250008000100010001000100010001000100010c260000092700000b2800000b290000000f0001000100100002000100110304000100120001000100130504000100140304000100150603010001001607030001001706030001001803080001001903090001001a0a010001001b0a020001001c0a010001001d09080001001e09010001001f03030001002003010001002107030001060f0001020000010610000202000001042a030000010612000102000001012b030e010001032c04090001022d090900010d2e06100001082f03100100010430031200010a31061200010732060302000001083216030100010632170302000001083306030100010618030802000001093403090100010b35031a080000000000000000010e361b090001061a0a0102000001061b0a0202000001061c0a0102000001061d090802000001061e09010200000106210703020000010620030102000001130b140b160b170d1b0d1b111e131e141f0d1f11200b210d2111220b171123112419260b270b280b290b2a0b2b0b2c0b0105010403040404000203030106080001060c03060c030302040401030205030208010b020808030801080408040805080608040804060303030303030108010102020c0c0101010b020808030801080408040805080608040804010c0208010900020b0208080308010804080408050806080408040900050308000c030c04060c03030304060c0303010303030a030808030801080408040805080608040804020a030a03030303030303030c010708000b74686c5f7665746f6b656e04636f696e056572726f72066d6174683634077061636b6167650874686c5f636f696e12636f6d706f7361626c655f7665746f6b656e146469766964656e645f6469737472696275746f72077665746f6b656e09626173655f706f6f6c0d77656967687465645f706f6f6c086d6f645f636f696e076d616e616765720d77656967687465645f6d6174680f426173654d756c7469706c696572730762616c616e63651162616c616e63655f627265616b646f776e10626173655f6d756c7469706c696572731164656c6567617465645f62616c616e6365256465726976655f636f6d706f7361626c655f7665746f6b656e5f6d756c7469706c6965727326646572697665645f636f6d706f7361626c655f7665746f6b656e5f6d756c7469706c6965727313696e697469616c697a655f6469766964656e6410696e697469616c697a655f766574686c17696e697469616c697a655f766574686c5f6576656e7473226d756c7469706c6965645f756e6465726c79696e675f746f74616c5f737570706c79126f6e655f6c70745f74686c5f616d6f756e740c706173745f62616c616e636516706173745f62616c616e63655f627265616b646f776e16706173745f64656c6567617465645f62616c616e636527706173745f6d756c7469706c6965645f756e6465726c79696e675f746f74616c5f737570706c7911706173745f746f74616c5f737570706c7926726566726573685f636f6d706f7361626c655f7665746f6b656e5f6d756c7469706c696572730c746f74616c5f737570706c79127570646174655f6d756c7469706c696572731674686c5f6d756c7469706c6965725f70657263656e74166c70745f6d756c7469706c6965725f70657263656e740354484c115765696768746564506f6f6c546f6b656e034d4f44044e756c6c095765696768745f3230095765696768745f3830187265736f757263655f6163636f756e745f6164647265737308646563696d616c7303706f7710696e76616c69645f617267756d656e740d69735f617574686f72697a65640b696e697469616c697a6564177265736f757263655f6163636f756e745f7369676e65720e726571756573745f7369676e65720a696e697469616c697a6511696e697469616c697a655f6576656e747311706f6f6c5f746f6b656e5f737570706c7919706f6f6c5f62616c616e6365735f616e645f776569676874731e636f6d707574655f61737365745f616d6f756e745f746f5f72657475726e07fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b1272556436150000000000000000000000000000000000000000000000000000000000000001167f411fc5a678fb40d86e0af646fa8f62458b686ad8996215248447037af40c48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac0193aa044a65a27bd89b163f8b3be3777b160b09a25c336643dcc2878dfd8f2a8dfb6e709add23c710c40e4844d889938f703719f72d2d4439ee682d67f07a15c50308803a09000000000003080100000000000000030800000000000000000308020000000000000003083400000000000000126170746f733a3a6d657461646174615f7631cc03040000000000000000164552525f564554484c5f554e415554484f52495a4544064572726f72730100000000000000154552525f564554484c5f494e495449414c495a4544000200000000000000174552525f564554484c5f554e494e495449414c495a454400803a0900000000001645504f43485f4455524154494f4e5f5345434f4e445300000d0762616c616e63650101000c706173745f62616c616e63650101000c746f74616c5f737570706c7901010010626173655f6d756c7469706c696572730101001162616c616e63655f627265616b646f776e0101001164656c6567617465645f62616c616e636501010011706173745f746f74616c5f737570706c79010100126f6e655f6c70745f74686c5f616d6f756e7401010016706173745f62616c616e63655f627265616b646f776e01010016706173745f64656c6567617465645f62616c616e6365010100226d756c7469706c6965645f756e6465726c79696e675f746f74616c5f737570706c7901010026646572697665645f636f6d706f7361626c655f7665746f6b656e5f6d756c7469706c6965727301010027706173745f6d756c7469706c6965645f756e6465726c79696e675f746f74616c5f737570706c79010100000202220323030001000003030b003800020101000003030b0038010202010001000510111529000404050607032711152b000c000a001000140b00100114020301000003030b00380202040000000c28110a0c05060a0000000000000038033411180c060a001001140b050b060c030c020c010a0306000000000000000022041405190b00010604000000000000001119270b01350b0235180b03351a340c040b001000140b04020501000100030a111529000404050607032711152b00110402060104000f200a00111a040405080b00010702273804040b050f0b00010703273805041205160b0001070327111c0c020b00111d0c010e0238060e013807020701040015310a00111a040405080b00010702271115290020040d05110b00010701270b010b0212000c040e0411040c030c06111c0c070b00111d0c050e0707030704070038080e0507030704070038090e070b060b0308380a0e070b042d0002080104000f120a00111a040405080b0001070227111c0c020b00111d0c010e02380b0e01380c02090100000302380d020a0100001812060a00000000000000380e3411180c01380f0c003810010c020e020601000000000000004209140b010b001125020b01000003040b000b013811020c01000003040b000b013812020d01000003040b000b013813020e01000003030b003814020f01000003030b0038150210010401001c0a111c0c0211050c000c010e020b010b0038160211010000030238170212010401001d190b00111a0404050607022711152900040a050c07032711152a000c030b020a030f01150b010b030f00151110020000000100","abi":{"address":"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615","name":"thl_vetoken","friends":[],"exposed_functions":[{"name":"balance","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[],"params":["address"],"return":["u128"]},{"name":"balance_breakdown","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[],"params":["address"],"return":["u128","u128","u128"]},{"name":"base_multipliers","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[],"params":[],"return":["u64","u64"]},{"name":"delegated_balance","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[],"params":["address"],"return":["u128"]},{"name":"derived_composable_vetoken_multipliers","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[],"params":[],"return":["u64","u64"]},{"name":"initialize_dividend","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[{"constraints":[]}],"params":["&signer"],"return":[]},{"name":"initialize_vethl","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["&signer","u64","u64"],"return":[]},{"name":"initialize_vethl_events","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["&signer"],"return":[]},{"name":"multiplied_underlying_total_supply","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[],"params":[],"return":["u128","u128"]},{"name":"one_lpt_thl_amount","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[],"params":[],"return":["u64"]},{"name":"past_balance","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[],"params":["address","u64"],"return":["u128"]},{"name":"past_balance_breakdown","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[],"params":["address","u64"],"return":["u128","u128","u128"]},{"name":"past_delegated_balance","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[],"params":["address","u64"],"return":["u128"]},{"name":"past_multiplied_underlying_total_supply","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[],"params":["u64"],"return":["u128","u128"]},{"name":"past_total_supply","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[],"params":["u64"],"return":["u128"]},{"name":"refresh_composable_vetoken_multipliers","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":[],"return":[]},{"name":"total_supply","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[],"params":[],"return":["u128"]},{"name":"update_multipliers","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["&signer","u64","u64"],"return":[]}],"structs":[{"name":"BaseMultipliers","is_native":false,"is_event":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"thl_multiplier_percent","type":"u64"},{"name":"lpt_multiplier_percent","type":"u64"}]}]}}]',
|
|
731
|
+
);
|
|
732
|
+
|
|
733
|
+
export function loadAllTypes(coder: MoveCoder) {
|
|
734
|
+
_0x1.loadAllTypes(coder);
|
|
735
|
+
for (const m of Object.values(MODULES)) {
|
|
736
|
+
coder.load(
|
|
737
|
+
m as any,
|
|
738
|
+
"0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615",
|
|
739
|
+
);
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
loadAllTypes(defaultMoveCoder());
|