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