@typemove/sui 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/Readme.md +19 -17
- package/package.json +3 -3
- package/dist/esm/builtin/0x1.d.ts +0 -1030
- package/dist/esm/builtin/0x1.d.ts.map +0 -1
- package/dist/esm/builtin/0x1.js +0 -7799
- package/dist/esm/builtin/0x1.js.map +0 -1
- package/dist/esm/builtin/0x2.d.ts +0 -4766
- package/dist/esm/builtin/0x2.d.ts.map +0 -1
- package/dist/esm/builtin/0x2.js +0 -23180
- package/dist/esm/builtin/0x2.js.map +0 -1
- package/dist/esm/builtin/0x3.d.ts +0 -1964
- package/dist/esm/builtin/0x3.d.ts.map +0 -1
- package/dist/esm/builtin/0x3.js +0 -7606
- package/dist/esm/builtin/0x3.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/codegen/codegen.d.ts +0 -20
- package/dist/esm/codegen/codegen.d.ts.map +0 -1
- package/dist/esm/codegen/codegen.js +0 -247
- 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/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 -21
- 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 -28
- package/dist/esm/move-coder.d.ts.map +0 -1
- package/dist/esm/move-coder.js +0 -311
- package/dist/esm/move-coder.js.map +0 -1
- package/dist/esm/move-coder.test.d.ts +0 -2
- package/dist/esm/move-coder.test.d.ts.map +0 -1
- package/dist/esm/move-coder.test.js.map +0 -1
- package/dist/esm/sui-chain-adapter.d.ts +0 -28
- package/dist/esm/sui-chain-adapter.d.ts.map +0 -1
- package/dist/esm/sui-chain-adapter.js +0 -109
- package/dist/esm/sui-chain-adapter.js.map +0 -1
- package/dist/esm/to-internal.d.ts +0 -6
- package/dist/esm/to-internal.d.ts.map +0 -1
- package/dist/esm/to-internal.js +0 -170
- package/dist/esm/to-internal.js.map +0 -1
- package/dist/esm/transaction.d.ts +0 -15
- package/dist/esm/transaction.d.ts.map +0 -1
- package/dist/esm/transaction.js +0 -83
- package/dist/esm/transaction.js.map +0 -1
- package/src/abis/0x1.json +0 -9096
- package/src/abis/0x2.json +0 -38512
- package/src/abis/0x3.json +0 -14755
- package/src/builtin/0x1.ts +0 -10657
- package/src/builtin/0x2.ts +0 -33567
- package/src/builtin/0x3.ts +0 -11437
- package/src/builtin/index.ts +0 -6
- package/src/codegen/codegen.ts +0 -292
- package/src/codegen/index.ts +0 -1
- package/src/codegen/run.ts +0 -57
- package/src/index.ts +0 -13
- package/src/models.ts +0 -32
- package/src/move-coder.ts +0 -364
- package/src/sui-chain-adapter.ts +0 -142
- package/src/tests/abis/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.json +0 -341
- package/src/tests/abis/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.json +0 -3375
- package/src/tests/abis/testnet/0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e.json +0 -1535
- package/src/tests/abis/testnet/0xdee9.json +0 -10176
- package/src/tests/abis/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.json +0 -12904
- package/src/tests/abis/testnet/enum.json +0 -6859
- package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +0 -314
- package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +0 -2819
- package/src/tests/types/testnet/0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e.ts +0 -1594
- package/src/tests/types/testnet/0xdee9.ts +0 -7049
- package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +0 -10609
- package/src/tests/types/testnet/enum.ts +0 -6297
- package/src/tests/types/testnet/index.ts +0 -9
- package/src/to-internal.ts +0 -201
- package/src/transaction.ts +0 -127
|
@@ -1,314 +0,0 @@
|
|
|
1
|
-
/* Autogenerated file. Do not edit manually. */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
|
|
5
|
-
/* Generated types for 0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5, original address 0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5 */
|
|
6
|
-
|
|
7
|
-
import { TypeDescriptor, ANY_TYPE } from "@typemove/move";
|
|
8
|
-
import { MoveCoder, TypedEventInstance } from "@typemove/sui";
|
|
9
|
-
|
|
10
|
-
import { defaultMoveCoder } from "@typemove/sui";
|
|
11
|
-
|
|
12
|
-
import {
|
|
13
|
-
ZERO_ADDRESS,
|
|
14
|
-
TypedSimulateResults,
|
|
15
|
-
getMoveCoder,
|
|
16
|
-
} from "@typemove/sui";
|
|
17
|
-
import {
|
|
18
|
-
Transaction,
|
|
19
|
-
TransactionArgument,
|
|
20
|
-
TransactionObjectArgument,
|
|
21
|
-
} from "@mysten/sui/transactions";
|
|
22
|
-
import { SuiGrpcClient } from "@mysten/sui/grpc";
|
|
23
|
-
import {
|
|
24
|
-
transactionArgumentOrObject,
|
|
25
|
-
transactionArgumentOrVec,
|
|
26
|
-
transactionArgumentOrPure,
|
|
27
|
-
transactionArgumentOrPureU8,
|
|
28
|
-
transactionArgumentOrPureU16,
|
|
29
|
-
transactionArgumentOrPureU32,
|
|
30
|
-
transactionArgumentOrPureU64,
|
|
31
|
-
transactionArgumentOrPureU128,
|
|
32
|
-
transactionArgumentOrPureU256,
|
|
33
|
-
transactionArgumentOrPureBool,
|
|
34
|
-
transactionArgumentOrPureString,
|
|
35
|
-
transactionArgumentOrPureAddress,
|
|
36
|
-
} from "@typemove/sui";
|
|
37
|
-
|
|
38
|
-
import * as _0x2 from "@typemove/sui/builtin/0x2";
|
|
39
|
-
import * as _0x1 from "@typemove/sui/builtin/0x1";
|
|
40
|
-
|
|
41
|
-
export namespace oracle {
|
|
42
|
-
export interface Key<T0> {
|
|
43
|
-
id: _0x2.object$.UID;
|
|
44
|
-
for: _0x2.object$.ID;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export namespace Key {
|
|
48
|
-
export const TYPE_QNAME =
|
|
49
|
-
"0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5::oracle::Key";
|
|
50
|
-
|
|
51
|
-
const TYPE = new TypeDescriptor<Key<any>>(Key.TYPE_QNAME);
|
|
52
|
-
|
|
53
|
-
export function type<T0>(
|
|
54
|
-
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
55
|
-
): TypeDescriptor<Key<T0>> {
|
|
56
|
-
return TYPE.apply(arg0);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface Oracle<T0> {
|
|
61
|
-
id: _0x2.object$.UID;
|
|
62
|
-
decimal: bigint;
|
|
63
|
-
price: bigint;
|
|
64
|
-
twap_price_1h: bigint;
|
|
65
|
-
ts_ms: bigint;
|
|
66
|
-
epoch: bigint;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export namespace Oracle {
|
|
70
|
-
export const TYPE_QNAME =
|
|
71
|
-
"0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5::oracle::Oracle";
|
|
72
|
-
|
|
73
|
-
const TYPE = new TypeDescriptor<Oracle<any>>(Oracle.TYPE_QNAME);
|
|
74
|
-
|
|
75
|
-
export function type<T0>(
|
|
76
|
-
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
77
|
-
): TypeDescriptor<Oracle<T0>> {
|
|
78
|
-
return TYPE.apply(arg0);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export interface PriceEvent {
|
|
83
|
-
token: _0x1.ascii.String;
|
|
84
|
-
price: bigint;
|
|
85
|
-
ts_ms: bigint;
|
|
86
|
-
epoch: bigint;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export namespace PriceEvent {
|
|
90
|
-
export const TYPE_QNAME =
|
|
91
|
-
"0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5::oracle::PriceEvent";
|
|
92
|
-
|
|
93
|
-
const TYPE = new TypeDescriptor<PriceEvent>(PriceEvent.TYPE_QNAME);
|
|
94
|
-
|
|
95
|
-
export function type(): TypeDescriptor<PriceEvent> {
|
|
96
|
-
return TYPE.apply();
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export type PriceEventInstance = TypedEventInstance<PriceEvent> & {
|
|
101
|
-
data_decoded: PriceEvent;
|
|
102
|
-
type_arguments: [];
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
export namespace builder {
|
|
106
|
-
export function copyKey<T0 = any>(
|
|
107
|
-
tx: Transaction,
|
|
108
|
-
args: [string | TransactionObjectArgument, string | TransactionArgument],
|
|
109
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
110
|
-
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
111
|
-
const _args: any[] = [];
|
|
112
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
113
|
-
_args.push(transactionArgumentOrPureAddress(args[1], tx));
|
|
114
|
-
|
|
115
|
-
// @ts-ignore
|
|
116
|
-
return tx.moveCall({
|
|
117
|
-
target:
|
|
118
|
-
"0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5::oracle::copy_key",
|
|
119
|
-
arguments: _args,
|
|
120
|
-
typeArguments: [
|
|
121
|
-
typeof typeArguments[0] === "string"
|
|
122
|
-
? typeArguments[0]
|
|
123
|
-
: typeArguments[0].getSignature(),
|
|
124
|
-
],
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
export function getOracle<T0 = any>(
|
|
128
|
-
tx: Transaction,
|
|
129
|
-
args: [string | TransactionObjectArgument],
|
|
130
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
131
|
-
): TransactionArgument & [TransactionArgument] {
|
|
132
|
-
const _args: any[] = [];
|
|
133
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
134
|
-
|
|
135
|
-
// @ts-ignore
|
|
136
|
-
return tx.moveCall({
|
|
137
|
-
target:
|
|
138
|
-
"0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5::oracle::get_oracle",
|
|
139
|
-
arguments: _args,
|
|
140
|
-
typeArguments: [
|
|
141
|
-
typeof typeArguments[0] === "string"
|
|
142
|
-
? typeArguments[0]
|
|
143
|
-
: typeArguments[0].getSignature(),
|
|
144
|
-
],
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
export function newOracle<T0 = any>(
|
|
148
|
-
tx: Transaction,
|
|
149
|
-
args: [bigint | TransactionArgument],
|
|
150
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
151
|
-
): TransactionArgument & [TransactionArgument] {
|
|
152
|
-
const _args: any[] = [];
|
|
153
|
-
_args.push(transactionArgumentOrPureU64(args[0], tx));
|
|
154
|
-
|
|
155
|
-
// @ts-ignore
|
|
156
|
-
return tx.moveCall({
|
|
157
|
-
target:
|
|
158
|
-
"0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5::oracle::new_oracle",
|
|
159
|
-
arguments: _args,
|
|
160
|
-
typeArguments: [
|
|
161
|
-
typeof typeArguments[0] === "string"
|
|
162
|
-
? typeArguments[0]
|
|
163
|
-
: typeArguments[0].getSignature(),
|
|
164
|
-
],
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
export function update<T0 = any>(
|
|
168
|
-
tx: Transaction,
|
|
169
|
-
args: [
|
|
170
|
-
string | TransactionObjectArgument,
|
|
171
|
-
string | TransactionObjectArgument,
|
|
172
|
-
bigint | TransactionArgument,
|
|
173
|
-
bigint | TransactionArgument,
|
|
174
|
-
bigint | TransactionArgument,
|
|
175
|
-
],
|
|
176
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
177
|
-
): TransactionArgument &
|
|
178
|
-
[
|
|
179
|
-
TransactionArgument,
|
|
180
|
-
TransactionArgument,
|
|
181
|
-
TransactionArgument,
|
|
182
|
-
TransactionArgument,
|
|
183
|
-
TransactionArgument,
|
|
184
|
-
] {
|
|
185
|
-
const _args: any[] = [];
|
|
186
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
187
|
-
_args.push(transactionArgumentOrObject(args[1], tx));
|
|
188
|
-
_args.push(transactionArgumentOrPureU64(args[2], tx));
|
|
189
|
-
_args.push(transactionArgumentOrPureU64(args[3], tx));
|
|
190
|
-
_args.push(transactionArgumentOrPureU64(args[4], tx));
|
|
191
|
-
|
|
192
|
-
// @ts-ignore
|
|
193
|
-
return tx.moveCall({
|
|
194
|
-
target:
|
|
195
|
-
"0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5::oracle::update",
|
|
196
|
-
arguments: _args,
|
|
197
|
-
typeArguments: [
|
|
198
|
-
typeof typeArguments[0] === "string"
|
|
199
|
-
? typeArguments[0]
|
|
200
|
-
: typeArguments[0].getSignature(),
|
|
201
|
-
],
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
export namespace view {
|
|
206
|
-
export async function copyKey<T0 = any>(
|
|
207
|
-
client: SuiGrpcClient,
|
|
208
|
-
args: [string, string],
|
|
209
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
210
|
-
): Promise<TypedSimulateResults<[]>> {
|
|
211
|
-
const tx = new Transaction();
|
|
212
|
-
builder.copyKey(tx, args, typeArguments);
|
|
213
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
214
|
-
// semantics — allow simulating view calls without validating object
|
|
215
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
216
|
-
const simulateRes = await client.simulateTransaction({
|
|
217
|
-
transaction: tx,
|
|
218
|
-
sender: ZERO_ADDRESS,
|
|
219
|
-
include: { commandResults: true },
|
|
220
|
-
checksEnabled: false,
|
|
221
|
-
} as any);
|
|
222
|
-
|
|
223
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[]>(
|
|
224
|
-
simulateRes,
|
|
225
|
-
[],
|
|
226
|
-
typeArguments,
|
|
227
|
-
);
|
|
228
|
-
}
|
|
229
|
-
export async function getOracle<T0 = any>(
|
|
230
|
-
client: SuiGrpcClient,
|
|
231
|
-
args: [string],
|
|
232
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
233
|
-
): Promise<TypedSimulateResults<[bigint, bigint, bigint, bigint]>> {
|
|
234
|
-
const tx = new Transaction();
|
|
235
|
-
builder.getOracle(tx, args, typeArguments);
|
|
236
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
237
|
-
// semantics — allow simulating view calls without validating object
|
|
238
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
239
|
-
const simulateRes = await client.simulateTransaction({
|
|
240
|
-
transaction: tx,
|
|
241
|
-
sender: ZERO_ADDRESS,
|
|
242
|
-
include: { commandResults: true },
|
|
243
|
-
checksEnabled: false,
|
|
244
|
-
} as any);
|
|
245
|
-
|
|
246
|
-
return (await getMoveCoder(client)).decodeSimulateResult<
|
|
247
|
-
[bigint, bigint, bigint, bigint]
|
|
248
|
-
>(simulateRes, ["U64", "U64", "U64", "U64"], typeArguments);
|
|
249
|
-
}
|
|
250
|
-
export async function newOracle<T0 = any>(
|
|
251
|
-
client: SuiGrpcClient,
|
|
252
|
-
args: [bigint],
|
|
253
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
254
|
-
): Promise<TypedSimulateResults<[]>> {
|
|
255
|
-
const tx = new Transaction();
|
|
256
|
-
builder.newOracle(tx, args, typeArguments);
|
|
257
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
258
|
-
// semantics — allow simulating view calls without validating object
|
|
259
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
260
|
-
const simulateRes = await client.simulateTransaction({
|
|
261
|
-
transaction: tx,
|
|
262
|
-
sender: ZERO_ADDRESS,
|
|
263
|
-
include: { commandResults: true },
|
|
264
|
-
checksEnabled: false,
|
|
265
|
-
} as any);
|
|
266
|
-
|
|
267
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[]>(
|
|
268
|
-
simulateRes,
|
|
269
|
-
[],
|
|
270
|
-
typeArguments,
|
|
271
|
-
);
|
|
272
|
-
}
|
|
273
|
-
export async function update<T0 = any>(
|
|
274
|
-
client: SuiGrpcClient,
|
|
275
|
-
args: [string, string, bigint, bigint, bigint],
|
|
276
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
277
|
-
): Promise<TypedSimulateResults<[]>> {
|
|
278
|
-
const tx = new Transaction();
|
|
279
|
-
builder.update(tx, args, typeArguments);
|
|
280
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
281
|
-
// semantics — allow simulating view calls without validating object
|
|
282
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
283
|
-
const simulateRes = await client.simulateTransaction({
|
|
284
|
-
transaction: tx,
|
|
285
|
-
sender: ZERO_ADDRESS,
|
|
286
|
-
include: { commandResults: true },
|
|
287
|
-
checksEnabled: false,
|
|
288
|
-
} as any);
|
|
289
|
-
|
|
290
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[]>(
|
|
291
|
-
simulateRes,
|
|
292
|
-
[],
|
|
293
|
-
typeArguments,
|
|
294
|
-
);
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
const MODULES = JSON.parse(
|
|
300
|
-
'[{"address":"0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5","module":{"name":"oracle","datatypes":[{"name":"Key","kind":1,"abilities":[4],"typeParameters":[{"constraints":[]}],"fields":[{"name":"id","position":0,"type":{"type":10,"typeName":"0x2::object::UID","typeParameterInstantiation":[]}},{"name":"for","position":1,"type":{"type":10,"typeName":"0x2::object::ID","typeParameterInstantiation":[]}}],"variants":[]},{"name":"Oracle","kind":1,"abilities":[4],"typeParameters":[{"constraints":[]}],"fields":[{"name":"id","position":0,"type":{"type":10,"typeName":"0x2::object::UID","typeParameterInstantiation":[]}},{"name":"decimal","position":1,"type":{"type":6,"typeParameterInstantiation":[]}},{"name":"price","position":2,"type":{"type":6,"typeParameterInstantiation":[]}},{"name":"twap_price_1h","position":3,"type":{"type":6,"typeParameterInstantiation":[]}},{"name":"ts_ms","position":4,"type":{"type":6,"typeParameterInstantiation":[]}},{"name":"epoch","position":5,"type":{"type":6,"typeParameterInstantiation":[]}}],"variants":[]},{"name":"PriceEvent","kind":1,"abilities":[1,2],"typeParameters":[],"fields":[{"name":"token","position":0,"type":{"type":10,"typeName":"0x1::ascii::String","typeParameterInstantiation":[]}},{"name":"price","position":1,"type":{"type":6,"typeParameterInstantiation":[]}},{"name":"ts_ms","position":2,"type":{"type":6,"typeParameterInstantiation":[]}},{"name":"epoch","position":3,"type":{"type":6,"typeParameterInstantiation":[]}}],"variants":[]}],"functions":[{"name":"copy_key","visibility":2,"isEntry":true,"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"type":10,"typeName":"0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5::oracle::Key","typeParameterInstantiation":[{"type":11,"typeParameter":0,"typeParameterInstantiation":[]}]}},{"body":{"type":1,"typeParameterInstantiation":[]}},{"reference":2,"body":{"type":10,"typeName":"0x2::tx_context::TxContext","typeParameterInstantiation":[]}}],"returns":[]},{"name":"get_oracle","visibility":2,"isEntry":false,"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"type":10,"typeName":"0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5::oracle::Oracle","typeParameterInstantiation":[{"type":11,"typeParameter":0,"typeParameterInstantiation":[]}]}}],"returns":[{"body":{"type":6,"typeParameterInstantiation":[]}},{"body":{"type":6,"typeParameterInstantiation":[]}},{"body":{"type":6,"typeParameterInstantiation":[]}},{"body":{"type":6,"typeParameterInstantiation":[]}}]},{"name":"new_oracle","visibility":2,"isEntry":true,"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"type":6,"typeParameterInstantiation":[]}},{"reference":2,"body":{"type":10,"typeName":"0x2::tx_context::TxContext","typeParameterInstantiation":[]}}],"returns":[]},{"name":"update","visibility":2,"isEntry":true,"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"type":10,"typeName":"0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5::oracle::Oracle","typeParameterInstantiation":[{"type":11,"typeParameter":0,"typeParameterInstantiation":[]}]}},{"reference":1,"body":{"type":10,"typeName":"0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5::oracle::Key","typeParameterInstantiation":[{"type":11,"typeParameter":0,"typeParameterInstantiation":[]}]}},{"body":{"type":6,"typeParameterInstantiation":[]}},{"body":{"type":6,"typeParameterInstantiation":[]}},{"body":{"type":6,"typeParameterInstantiation":[]}},{"reference":2,"body":{"type":10,"typeName":"0x2::tx_context::TxContext","typeParameterInstantiation":[]}}],"returns":[]}]}}]',
|
|
301
|
-
);
|
|
302
|
-
|
|
303
|
-
export function loadAllTypes(coder: MoveCoder) {
|
|
304
|
-
_0x2.loadAllTypes(coder);
|
|
305
|
-
_0x1.loadAllTypes(coder);
|
|
306
|
-
for (const m of Object.values(MODULES)) {
|
|
307
|
-
coder.load(
|
|
308
|
-
m as any,
|
|
309
|
-
"0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5",
|
|
310
|
-
);
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
loadAllTypes(defaultMoveCoder());
|