@typemove/sui 1.5.1 → 1.5.2-rc.2
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 +8 -4
- package/dist/cjs/builtin/0x1.d.ts +2 -0
- package/dist/cjs/builtin/0x1.d.ts.map +1 -1
- package/dist/cjs/builtin/0x1.js +187 -167
- package/dist/cjs/builtin/0x1.js.map +1 -1
- package/dist/cjs/builtin/0x2.d.ts +121 -0
- package/dist/cjs/builtin/0x2.d.ts.map +1 -1
- package/dist/cjs/builtin/0x2.js +1077 -856
- package/dist/cjs/builtin/0x2.js.map +1 -1
- package/dist/cjs/builtin/0x3.js +212 -212
- package/dist/cjs/codegen/codegen.js +2 -2
- package/dist/cjs/move-coder.d.ts +1 -1
- package/dist/cjs/move-coder.js +4 -4
- package/dist/esm/builtin/0x1.d.ts +2 -0
- package/dist/esm/builtin/0x1.d.ts.map +1 -1
- package/dist/esm/builtin/0x1.js +187 -167
- package/dist/esm/builtin/0x1.js.map +1 -1
- package/dist/esm/builtin/0x2.d.ts +121 -0
- package/dist/esm/builtin/0x2.d.ts.map +1 -1
- package/dist/esm/builtin/0x2.js +1076 -855
- package/dist/esm/builtin/0x2.js.map +1 -1
- package/dist/esm/builtin/0x3.js +212 -212
- package/dist/esm/codegen/codegen.js +2 -2
- package/dist/esm/move-coder.d.ts +1 -1
- package/dist/esm/move-coder.js +4 -4
- package/package.json +2 -2
- package/src/abis/0x1.json +20 -0
- package/src/abis/0x2.json +551 -0
- package/src/builtin/0x1.ts +195 -167
- package/src/builtin/0x2.ts +1238 -855
- package/src/builtin/0x3.ts +212 -212
- package/src/codegen/codegen.ts +2 -2
- package/src/move-coder.ts +4 -4
- package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +8 -8
- package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +96 -96
- package/src/tests/types/testnet/0xdee9.ts +94 -94
- package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +310 -310
|
@@ -133,12 +133,12 @@ export class SuiCodegen extends AbstractCodegen {
|
|
|
133
133
|
${typeParamArg.length > 0 ? `typeArguments: [${typeParamArg}]` : ``} ): Promise<TypedDevInspectResults<${returnType}>> {
|
|
134
134
|
const tx = new TransactionBlock()
|
|
135
135
|
builder.${camel(normalizeToJSName(func.name))}(tx, args ${typeParamArg.length > 0 ? `, typeArguments` : ''})
|
|
136
|
-
const
|
|
136
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
137
137
|
transactionBlock: tx,
|
|
138
138
|
sender: ZERO_ADDRESS
|
|
139
139
|
})
|
|
140
140
|
|
|
141
|
-
return (await getMoveCoder(client)).decodeDevInspectResult<${returnType}>(
|
|
141
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<${returnType}>(inspectRes)
|
|
142
142
|
}`;
|
|
143
143
|
}
|
|
144
144
|
generateBuilderForFunction(module, func) {
|
package/dist/esm/move-coder.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare class MoveCoder extends AbstractMoveCoder<SuiMoveNormalizedModule
|
|
|
18
18
|
private bcsRegistered;
|
|
19
19
|
registerBCSTypes(type: TypeDescriptor): Promise<void>;
|
|
20
20
|
decodeBCS(type: TypeDescriptor, data: Uint8Array | string, encoding?: Encoding): Promise<any>;
|
|
21
|
-
decodeDevInspectResult<T extends any[]>(
|
|
21
|
+
decodeDevInspectResult<T extends any[]>(inspectRes: DevInspectResults): Promise<TypedDevInspectResults<T>>;
|
|
22
22
|
}
|
|
23
23
|
export declare function defaultMoveCoder(endpoint?: string): MoveCoder;
|
|
24
24
|
export declare function getMoveCoder(client: SuiClient): Promise<MoveCoder>;
|
package/dist/esm/move-coder.js
CHANGED
|
@@ -172,10 +172,10 @@ export class MoveCoder extends AbstractMoveCoder {
|
|
|
172
172
|
await this.registerBCSTypes(type);
|
|
173
173
|
return this.bcs.de(type.getNormalizedSignature(), data, encoding);
|
|
174
174
|
}
|
|
175
|
-
async decodeDevInspectResult(
|
|
175
|
+
async decodeDevInspectResult(inspectRes) {
|
|
176
176
|
const returnValues = [];
|
|
177
|
-
if (
|
|
178
|
-
for (const r of
|
|
177
|
+
if (inspectRes.results != null) {
|
|
178
|
+
for (const r of inspectRes.results) {
|
|
179
179
|
if (r.returnValues) {
|
|
180
180
|
const type = parseMoveType(r.returnValues[0][1]);
|
|
181
181
|
const value = r.returnValues[0][0];
|
|
@@ -188,7 +188,7 @@ export class MoveCoder extends AbstractMoveCoder {
|
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
return { ...
|
|
191
|
+
return { ...inspectRes, results_decoded: returnValues };
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
const DEFAULT_ENDPOINT = 'https://fullnode.mainnet.sui.io/';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typemove/sui",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2-rc.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"commander": "^11.1.0",
|
|
37
37
|
"prettier": "^3.2.4",
|
|
38
38
|
"radash": "^11.0.0",
|
|
39
|
-
"@typemove/move": "1.5.
|
|
39
|
+
"@typemove/move": "1.5.2-rc.2"
|
|
40
40
|
},
|
|
41
41
|
"url": "https://github.com/sentioxyz/typemove",
|
|
42
42
|
"scripts": {
|
package/src/abis/0x1.json
CHANGED
|
@@ -1779,6 +1779,26 @@
|
|
|
1779
1779
|
}
|
|
1780
1780
|
}
|
|
1781
1781
|
]
|
|
1782
|
+
},
|
|
1783
|
+
"is_primitive": {
|
|
1784
|
+
"visibility": "Public",
|
|
1785
|
+
"isEntry": false,
|
|
1786
|
+
"typeParameters": [],
|
|
1787
|
+
"parameters": [
|
|
1788
|
+
{
|
|
1789
|
+
"Reference": {
|
|
1790
|
+
"Struct": {
|
|
1791
|
+
"address": "0x1",
|
|
1792
|
+
"module": "type_name",
|
|
1793
|
+
"name": "TypeName",
|
|
1794
|
+
"typeArguments": []
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
}
|
|
1798
|
+
],
|
|
1799
|
+
"return": [
|
|
1800
|
+
"Bool"
|
|
1801
|
+
]
|
|
1782
1802
|
}
|
|
1783
1803
|
}
|
|
1784
1804
|
},
|
package/src/abis/0x2.json
CHANGED
|
@@ -6,6 +6,21 @@
|
|
|
6
6
|
"friends": [],
|
|
7
7
|
"structs": {},
|
|
8
8
|
"exposedFunctions": {
|
|
9
|
+
"from_ascii_bytes": {
|
|
10
|
+
"visibility": "Public",
|
|
11
|
+
"isEntry": false,
|
|
12
|
+
"typeParameters": [],
|
|
13
|
+
"parameters": [
|
|
14
|
+
{
|
|
15
|
+
"Reference": {
|
|
16
|
+
"Vector": "U8"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"return": [
|
|
21
|
+
"Address"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
9
24
|
"from_bytes": {
|
|
10
25
|
"visibility": "Public",
|
|
11
26
|
"isEntry": false,
|
|
@@ -1327,6 +1342,26 @@
|
|
|
1327
1342
|
"U128"
|
|
1328
1343
|
]
|
|
1329
1344
|
},
|
|
1345
|
+
"peel_u256": {
|
|
1346
|
+
"visibility": "Public",
|
|
1347
|
+
"isEntry": false,
|
|
1348
|
+
"typeParameters": [],
|
|
1349
|
+
"parameters": [
|
|
1350
|
+
{
|
|
1351
|
+
"MutableReference": {
|
|
1352
|
+
"Struct": {
|
|
1353
|
+
"address": "0x2",
|
|
1354
|
+
"module": "bcs",
|
|
1355
|
+
"name": "BCS",
|
|
1356
|
+
"typeArguments": []
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
],
|
|
1361
|
+
"return": [
|
|
1362
|
+
"U256"
|
|
1363
|
+
]
|
|
1364
|
+
},
|
|
1330
1365
|
"peel_u64": {
|
|
1331
1366
|
"visibility": "Public",
|
|
1332
1367
|
"isEntry": false,
|
|
@@ -2041,6 +2076,85 @@
|
|
|
2041
2076
|
}
|
|
2042
2077
|
]
|
|
2043
2078
|
},
|
|
2079
|
+
"DenyCap": {
|
|
2080
|
+
"abilities": {
|
|
2081
|
+
"abilities": [
|
|
2082
|
+
"Store",
|
|
2083
|
+
"Key"
|
|
2084
|
+
]
|
|
2085
|
+
},
|
|
2086
|
+
"typeParameters": [
|
|
2087
|
+
{
|
|
2088
|
+
"constraints": {
|
|
2089
|
+
"abilities": []
|
|
2090
|
+
},
|
|
2091
|
+
"isPhantom": true
|
|
2092
|
+
}
|
|
2093
|
+
],
|
|
2094
|
+
"fields": [
|
|
2095
|
+
{
|
|
2096
|
+
"name": "id",
|
|
2097
|
+
"type": {
|
|
2098
|
+
"Struct": {
|
|
2099
|
+
"address": "0x2",
|
|
2100
|
+
"module": "object",
|
|
2101
|
+
"name": "UID",
|
|
2102
|
+
"typeArguments": []
|
|
2103
|
+
}
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
]
|
|
2107
|
+
},
|
|
2108
|
+
"RegulatedCoinMetadata": {
|
|
2109
|
+
"abilities": {
|
|
2110
|
+
"abilities": [
|
|
2111
|
+
"Key"
|
|
2112
|
+
]
|
|
2113
|
+
},
|
|
2114
|
+
"typeParameters": [
|
|
2115
|
+
{
|
|
2116
|
+
"constraints": {
|
|
2117
|
+
"abilities": []
|
|
2118
|
+
},
|
|
2119
|
+
"isPhantom": true
|
|
2120
|
+
}
|
|
2121
|
+
],
|
|
2122
|
+
"fields": [
|
|
2123
|
+
{
|
|
2124
|
+
"name": "id",
|
|
2125
|
+
"type": {
|
|
2126
|
+
"Struct": {
|
|
2127
|
+
"address": "0x2",
|
|
2128
|
+
"module": "object",
|
|
2129
|
+
"name": "UID",
|
|
2130
|
+
"typeArguments": []
|
|
2131
|
+
}
|
|
2132
|
+
}
|
|
2133
|
+
},
|
|
2134
|
+
{
|
|
2135
|
+
"name": "coin_metadata_object",
|
|
2136
|
+
"type": {
|
|
2137
|
+
"Struct": {
|
|
2138
|
+
"address": "0x2",
|
|
2139
|
+
"module": "object",
|
|
2140
|
+
"name": "ID",
|
|
2141
|
+
"typeArguments": []
|
|
2142
|
+
}
|
|
2143
|
+
}
|
|
2144
|
+
},
|
|
2145
|
+
{
|
|
2146
|
+
"name": "deny_cap_object",
|
|
2147
|
+
"type": {
|
|
2148
|
+
"Struct": {
|
|
2149
|
+
"address": "0x2",
|
|
2150
|
+
"module": "object",
|
|
2151
|
+
"name": "ID",
|
|
2152
|
+
"typeArguments": []
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2155
|
+
}
|
|
2156
|
+
]
|
|
2157
|
+
},
|
|
2044
2158
|
"TreasuryCap": {
|
|
2045
2159
|
"abilities": {
|
|
2046
2160
|
"abilities": [
|
|
@@ -2288,6 +2402,216 @@
|
|
|
2288
2402
|
}
|
|
2289
2403
|
]
|
|
2290
2404
|
},
|
|
2405
|
+
"create_regulated_currency": {
|
|
2406
|
+
"visibility": "Public",
|
|
2407
|
+
"isEntry": false,
|
|
2408
|
+
"typeParameters": [
|
|
2409
|
+
{
|
|
2410
|
+
"abilities": [
|
|
2411
|
+
"Drop"
|
|
2412
|
+
]
|
|
2413
|
+
}
|
|
2414
|
+
],
|
|
2415
|
+
"parameters": [
|
|
2416
|
+
{
|
|
2417
|
+
"TypeParameter": 0
|
|
2418
|
+
},
|
|
2419
|
+
"U8",
|
|
2420
|
+
{
|
|
2421
|
+
"Vector": "U8"
|
|
2422
|
+
},
|
|
2423
|
+
{
|
|
2424
|
+
"Vector": "U8"
|
|
2425
|
+
},
|
|
2426
|
+
{
|
|
2427
|
+
"Vector": "U8"
|
|
2428
|
+
},
|
|
2429
|
+
{
|
|
2430
|
+
"Struct": {
|
|
2431
|
+
"address": "0x1",
|
|
2432
|
+
"module": "option",
|
|
2433
|
+
"name": "Option",
|
|
2434
|
+
"typeArguments": [
|
|
2435
|
+
{
|
|
2436
|
+
"Struct": {
|
|
2437
|
+
"address": "0x2",
|
|
2438
|
+
"module": "url",
|
|
2439
|
+
"name": "Url",
|
|
2440
|
+
"typeArguments": []
|
|
2441
|
+
}
|
|
2442
|
+
}
|
|
2443
|
+
]
|
|
2444
|
+
}
|
|
2445
|
+
},
|
|
2446
|
+
{
|
|
2447
|
+
"MutableReference": {
|
|
2448
|
+
"Struct": {
|
|
2449
|
+
"address": "0x2",
|
|
2450
|
+
"module": "tx_context",
|
|
2451
|
+
"name": "TxContext",
|
|
2452
|
+
"typeArguments": []
|
|
2453
|
+
}
|
|
2454
|
+
}
|
|
2455
|
+
}
|
|
2456
|
+
],
|
|
2457
|
+
"return": [
|
|
2458
|
+
{
|
|
2459
|
+
"Struct": {
|
|
2460
|
+
"address": "0x2",
|
|
2461
|
+
"module": "coin",
|
|
2462
|
+
"name": "TreasuryCap",
|
|
2463
|
+
"typeArguments": [
|
|
2464
|
+
{
|
|
2465
|
+
"TypeParameter": 0
|
|
2466
|
+
}
|
|
2467
|
+
]
|
|
2468
|
+
}
|
|
2469
|
+
},
|
|
2470
|
+
{
|
|
2471
|
+
"Struct": {
|
|
2472
|
+
"address": "0x2",
|
|
2473
|
+
"module": "coin",
|
|
2474
|
+
"name": "DenyCap",
|
|
2475
|
+
"typeArguments": [
|
|
2476
|
+
{
|
|
2477
|
+
"TypeParameter": 0
|
|
2478
|
+
}
|
|
2479
|
+
]
|
|
2480
|
+
}
|
|
2481
|
+
},
|
|
2482
|
+
{
|
|
2483
|
+
"Struct": {
|
|
2484
|
+
"address": "0x2",
|
|
2485
|
+
"module": "coin",
|
|
2486
|
+
"name": "CoinMetadata",
|
|
2487
|
+
"typeArguments": [
|
|
2488
|
+
{
|
|
2489
|
+
"TypeParameter": 0
|
|
2490
|
+
}
|
|
2491
|
+
]
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
]
|
|
2495
|
+
},
|
|
2496
|
+
"deny_list_add": {
|
|
2497
|
+
"visibility": "Public",
|
|
2498
|
+
"isEntry": false,
|
|
2499
|
+
"typeParameters": [
|
|
2500
|
+
{
|
|
2501
|
+
"abilities": []
|
|
2502
|
+
}
|
|
2503
|
+
],
|
|
2504
|
+
"parameters": [
|
|
2505
|
+
{
|
|
2506
|
+
"MutableReference": {
|
|
2507
|
+
"Struct": {
|
|
2508
|
+
"address": "0x2",
|
|
2509
|
+
"module": "deny_list",
|
|
2510
|
+
"name": "DenyList",
|
|
2511
|
+
"typeArguments": []
|
|
2512
|
+
}
|
|
2513
|
+
}
|
|
2514
|
+
},
|
|
2515
|
+
{
|
|
2516
|
+
"MutableReference": {
|
|
2517
|
+
"Struct": {
|
|
2518
|
+
"address": "0x2",
|
|
2519
|
+
"module": "coin",
|
|
2520
|
+
"name": "DenyCap",
|
|
2521
|
+
"typeArguments": [
|
|
2522
|
+
{
|
|
2523
|
+
"TypeParameter": 0
|
|
2524
|
+
}
|
|
2525
|
+
]
|
|
2526
|
+
}
|
|
2527
|
+
}
|
|
2528
|
+
},
|
|
2529
|
+
"Address",
|
|
2530
|
+
{
|
|
2531
|
+
"MutableReference": {
|
|
2532
|
+
"Struct": {
|
|
2533
|
+
"address": "0x2",
|
|
2534
|
+
"module": "tx_context",
|
|
2535
|
+
"name": "TxContext",
|
|
2536
|
+
"typeArguments": []
|
|
2537
|
+
}
|
|
2538
|
+
}
|
|
2539
|
+
}
|
|
2540
|
+
],
|
|
2541
|
+
"return": []
|
|
2542
|
+
},
|
|
2543
|
+
"deny_list_contains": {
|
|
2544
|
+
"visibility": "Public",
|
|
2545
|
+
"isEntry": false,
|
|
2546
|
+
"typeParameters": [
|
|
2547
|
+
{
|
|
2548
|
+
"abilities": []
|
|
2549
|
+
}
|
|
2550
|
+
],
|
|
2551
|
+
"parameters": [
|
|
2552
|
+
{
|
|
2553
|
+
"Reference": {
|
|
2554
|
+
"Struct": {
|
|
2555
|
+
"address": "0x2",
|
|
2556
|
+
"module": "deny_list",
|
|
2557
|
+
"name": "DenyList",
|
|
2558
|
+
"typeArguments": []
|
|
2559
|
+
}
|
|
2560
|
+
}
|
|
2561
|
+
},
|
|
2562
|
+
"Address"
|
|
2563
|
+
],
|
|
2564
|
+
"return": [
|
|
2565
|
+
"Bool"
|
|
2566
|
+
]
|
|
2567
|
+
},
|
|
2568
|
+
"deny_list_remove": {
|
|
2569
|
+
"visibility": "Public",
|
|
2570
|
+
"isEntry": false,
|
|
2571
|
+
"typeParameters": [
|
|
2572
|
+
{
|
|
2573
|
+
"abilities": []
|
|
2574
|
+
}
|
|
2575
|
+
],
|
|
2576
|
+
"parameters": [
|
|
2577
|
+
{
|
|
2578
|
+
"MutableReference": {
|
|
2579
|
+
"Struct": {
|
|
2580
|
+
"address": "0x2",
|
|
2581
|
+
"module": "deny_list",
|
|
2582
|
+
"name": "DenyList",
|
|
2583
|
+
"typeArguments": []
|
|
2584
|
+
}
|
|
2585
|
+
}
|
|
2586
|
+
},
|
|
2587
|
+
{
|
|
2588
|
+
"MutableReference": {
|
|
2589
|
+
"Struct": {
|
|
2590
|
+
"address": "0x2",
|
|
2591
|
+
"module": "coin",
|
|
2592
|
+
"name": "DenyCap",
|
|
2593
|
+
"typeArguments": [
|
|
2594
|
+
{
|
|
2595
|
+
"TypeParameter": 0
|
|
2596
|
+
}
|
|
2597
|
+
]
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2600
|
+
},
|
|
2601
|
+
"Address",
|
|
2602
|
+
{
|
|
2603
|
+
"MutableReference": {
|
|
2604
|
+
"Struct": {
|
|
2605
|
+
"address": "0x2",
|
|
2606
|
+
"module": "tx_context",
|
|
2607
|
+
"name": "TxContext",
|
|
2608
|
+
"typeArguments": []
|
|
2609
|
+
}
|
|
2610
|
+
}
|
|
2611
|
+
}
|
|
2612
|
+
],
|
|
2613
|
+
"return": []
|
|
2614
|
+
},
|
|
2291
2615
|
"destroy_zero": {
|
|
2292
2616
|
"visibility": "Public",
|
|
2293
2617
|
"isEntry": false,
|
|
@@ -3374,6 +3698,185 @@
|
|
|
3374
3698
|
}
|
|
3375
3699
|
}
|
|
3376
3700
|
},
|
|
3701
|
+
"deny_list": {
|
|
3702
|
+
"fileFormatVersion": 6,
|
|
3703
|
+
"address": "0x2",
|
|
3704
|
+
"name": "deny_list",
|
|
3705
|
+
"friends": [
|
|
3706
|
+
{
|
|
3707
|
+
"address": "0x2",
|
|
3708
|
+
"name": "coin"
|
|
3709
|
+
}
|
|
3710
|
+
],
|
|
3711
|
+
"structs": {
|
|
3712
|
+
"DenyList": {
|
|
3713
|
+
"abilities": {
|
|
3714
|
+
"abilities": [
|
|
3715
|
+
"Key"
|
|
3716
|
+
]
|
|
3717
|
+
},
|
|
3718
|
+
"typeParameters": [],
|
|
3719
|
+
"fields": [
|
|
3720
|
+
{
|
|
3721
|
+
"name": "id",
|
|
3722
|
+
"type": {
|
|
3723
|
+
"Struct": {
|
|
3724
|
+
"address": "0x2",
|
|
3725
|
+
"module": "object",
|
|
3726
|
+
"name": "UID",
|
|
3727
|
+
"typeArguments": []
|
|
3728
|
+
}
|
|
3729
|
+
}
|
|
3730
|
+
},
|
|
3731
|
+
{
|
|
3732
|
+
"name": "lists",
|
|
3733
|
+
"type": {
|
|
3734
|
+
"Struct": {
|
|
3735
|
+
"address": "0x2",
|
|
3736
|
+
"module": "bag",
|
|
3737
|
+
"name": "Bag",
|
|
3738
|
+
"typeArguments": []
|
|
3739
|
+
}
|
|
3740
|
+
}
|
|
3741
|
+
}
|
|
3742
|
+
]
|
|
3743
|
+
},
|
|
3744
|
+
"PerTypeList": {
|
|
3745
|
+
"abilities": {
|
|
3746
|
+
"abilities": [
|
|
3747
|
+
"Store",
|
|
3748
|
+
"Key"
|
|
3749
|
+
]
|
|
3750
|
+
},
|
|
3751
|
+
"typeParameters": [],
|
|
3752
|
+
"fields": [
|
|
3753
|
+
{
|
|
3754
|
+
"name": "id",
|
|
3755
|
+
"type": {
|
|
3756
|
+
"Struct": {
|
|
3757
|
+
"address": "0x2",
|
|
3758
|
+
"module": "object",
|
|
3759
|
+
"name": "UID",
|
|
3760
|
+
"typeArguments": []
|
|
3761
|
+
}
|
|
3762
|
+
}
|
|
3763
|
+
},
|
|
3764
|
+
{
|
|
3765
|
+
"name": "denied_count",
|
|
3766
|
+
"type": {
|
|
3767
|
+
"Struct": {
|
|
3768
|
+
"address": "0x2",
|
|
3769
|
+
"module": "table",
|
|
3770
|
+
"name": "Table",
|
|
3771
|
+
"typeArguments": [
|
|
3772
|
+
"Address",
|
|
3773
|
+
"U64"
|
|
3774
|
+
]
|
|
3775
|
+
}
|
|
3776
|
+
}
|
|
3777
|
+
},
|
|
3778
|
+
{
|
|
3779
|
+
"name": "denied_addresses",
|
|
3780
|
+
"type": {
|
|
3781
|
+
"Struct": {
|
|
3782
|
+
"address": "0x2",
|
|
3783
|
+
"module": "table",
|
|
3784
|
+
"name": "Table",
|
|
3785
|
+
"typeArguments": [
|
|
3786
|
+
{
|
|
3787
|
+
"Vector": "U8"
|
|
3788
|
+
},
|
|
3789
|
+
{
|
|
3790
|
+
"Struct": {
|
|
3791
|
+
"address": "0x2",
|
|
3792
|
+
"module": "vec_set",
|
|
3793
|
+
"name": "VecSet",
|
|
3794
|
+
"typeArguments": [
|
|
3795
|
+
"Address"
|
|
3796
|
+
]
|
|
3797
|
+
}
|
|
3798
|
+
}
|
|
3799
|
+
]
|
|
3800
|
+
}
|
|
3801
|
+
}
|
|
3802
|
+
}
|
|
3803
|
+
]
|
|
3804
|
+
}
|
|
3805
|
+
},
|
|
3806
|
+
"exposedFunctions": {
|
|
3807
|
+
"add": {
|
|
3808
|
+
"visibility": "Friend",
|
|
3809
|
+
"isEntry": false,
|
|
3810
|
+
"typeParameters": [],
|
|
3811
|
+
"parameters": [
|
|
3812
|
+
{
|
|
3813
|
+
"MutableReference": {
|
|
3814
|
+
"Struct": {
|
|
3815
|
+
"address": "0x2",
|
|
3816
|
+
"module": "deny_list",
|
|
3817
|
+
"name": "DenyList",
|
|
3818
|
+
"typeArguments": []
|
|
3819
|
+
}
|
|
3820
|
+
}
|
|
3821
|
+
},
|
|
3822
|
+
"U64",
|
|
3823
|
+
{
|
|
3824
|
+
"Vector": "U8"
|
|
3825
|
+
},
|
|
3826
|
+
"Address"
|
|
3827
|
+
],
|
|
3828
|
+
"return": []
|
|
3829
|
+
},
|
|
3830
|
+
"contains": {
|
|
3831
|
+
"visibility": "Friend",
|
|
3832
|
+
"isEntry": false,
|
|
3833
|
+
"typeParameters": [],
|
|
3834
|
+
"parameters": [
|
|
3835
|
+
{
|
|
3836
|
+
"Reference": {
|
|
3837
|
+
"Struct": {
|
|
3838
|
+
"address": "0x2",
|
|
3839
|
+
"module": "deny_list",
|
|
3840
|
+
"name": "DenyList",
|
|
3841
|
+
"typeArguments": []
|
|
3842
|
+
}
|
|
3843
|
+
}
|
|
3844
|
+
},
|
|
3845
|
+
"U64",
|
|
3846
|
+
{
|
|
3847
|
+
"Vector": "U8"
|
|
3848
|
+
},
|
|
3849
|
+
"Address"
|
|
3850
|
+
],
|
|
3851
|
+
"return": [
|
|
3852
|
+
"Bool"
|
|
3853
|
+
]
|
|
3854
|
+
},
|
|
3855
|
+
"remove": {
|
|
3856
|
+
"visibility": "Friend",
|
|
3857
|
+
"isEntry": false,
|
|
3858
|
+
"typeParameters": [],
|
|
3859
|
+
"parameters": [
|
|
3860
|
+
{
|
|
3861
|
+
"MutableReference": {
|
|
3862
|
+
"Struct": {
|
|
3863
|
+
"address": "0x2",
|
|
3864
|
+
"module": "deny_list",
|
|
3865
|
+
"name": "DenyList",
|
|
3866
|
+
"typeArguments": []
|
|
3867
|
+
}
|
|
3868
|
+
}
|
|
3869
|
+
},
|
|
3870
|
+
"U64",
|
|
3871
|
+
{
|
|
3872
|
+
"Vector": "U8"
|
|
3873
|
+
},
|
|
3874
|
+
"Address"
|
|
3875
|
+
],
|
|
3876
|
+
"return": []
|
|
3877
|
+
}
|
|
3878
|
+
}
|
|
3879
|
+
},
|
|
3377
3880
|
"display": {
|
|
3378
3881
|
"fileFormatVersion": 6,
|
|
3379
3882
|
"address": "0x2",
|
|
@@ -9013,6 +9516,14 @@
|
|
|
9013
9516
|
"address": "0x2",
|
|
9014
9517
|
"name": "clock"
|
|
9015
9518
|
},
|
|
9519
|
+
{
|
|
9520
|
+
"address": "0x2",
|
|
9521
|
+
"name": "coin"
|
|
9522
|
+
},
|
|
9523
|
+
{
|
|
9524
|
+
"address": "0x2",
|
|
9525
|
+
"name": "deny_list"
|
|
9526
|
+
},
|
|
9016
9527
|
{
|
|
9017
9528
|
"address": "0x2",
|
|
9018
9529
|
"name": "dynamic_field"
|
|
@@ -9361,6 +9872,22 @@
|
|
|
9361
9872
|
}
|
|
9362
9873
|
]
|
|
9363
9874
|
},
|
|
9875
|
+
"sui_deny_list_object_id": {
|
|
9876
|
+
"visibility": "Friend",
|
|
9877
|
+
"isEntry": false,
|
|
9878
|
+
"typeParameters": [],
|
|
9879
|
+
"parameters": [],
|
|
9880
|
+
"return": [
|
|
9881
|
+
{
|
|
9882
|
+
"Struct": {
|
|
9883
|
+
"address": "0x2",
|
|
9884
|
+
"module": "object",
|
|
9885
|
+
"name": "UID",
|
|
9886
|
+
"typeArguments": []
|
|
9887
|
+
}
|
|
9888
|
+
}
|
|
9889
|
+
]
|
|
9890
|
+
},
|
|
9364
9891
|
"uid_as_inner": {
|
|
9365
9892
|
"visibility": "Public",
|
|
9366
9893
|
"isEntry": false,
|
|
@@ -11345,6 +11872,30 @@
|
|
|
11345
11872
|
}
|
|
11346
11873
|
}
|
|
11347
11874
|
},
|
|
11875
|
+
"poseidon": {
|
|
11876
|
+
"fileFormatVersion": 6,
|
|
11877
|
+
"address": "0x2",
|
|
11878
|
+
"name": "poseidon",
|
|
11879
|
+
"friends": [],
|
|
11880
|
+
"structs": {},
|
|
11881
|
+
"exposedFunctions": {
|
|
11882
|
+
"poseidon_bn254": {
|
|
11883
|
+
"visibility": "Public",
|
|
11884
|
+
"isEntry": false,
|
|
11885
|
+
"typeParameters": [],
|
|
11886
|
+
"parameters": [
|
|
11887
|
+
{
|
|
11888
|
+
"Reference": {
|
|
11889
|
+
"Vector": "U256"
|
|
11890
|
+
}
|
|
11891
|
+
}
|
|
11892
|
+
],
|
|
11893
|
+
"return": [
|
|
11894
|
+
"U256"
|
|
11895
|
+
]
|
|
11896
|
+
}
|
|
11897
|
+
}
|
|
11898
|
+
},
|
|
11348
11899
|
"priority_queue": {
|
|
11349
11900
|
"fileFormatVersion": 6,
|
|
11350
11901
|
"address": "0x2",
|