@typemove/sui 1.5.3 → 1.5.4-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/builtin/0x2.d.ts +245 -0
- package/dist/cjs/builtin/0x2.d.ts.map +1 -1
- package/dist/cjs/builtin/0x2.js +898 -22
- package/dist/cjs/builtin/0x2.js.map +1 -1
- package/dist/esm/builtin/0x2.d.ts +245 -0
- package/dist/esm/builtin/0x2.d.ts.map +1 -1
- package/dist/esm/builtin/0x2.js +897 -21
- package/dist/esm/builtin/0x2.js.map +1 -1
- package/package.json +2 -2
- package/src/abis/0x2.json +4865 -2450
- package/src/builtin/0x2.ts +1393 -41
|
@@ -286,6 +286,34 @@ export declare namespace bcs {
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
export declare namespace bls12381 {
|
|
289
|
+
interface G1 {
|
|
290
|
+
dummy_field: Boolean;
|
|
291
|
+
}
|
|
292
|
+
namespace G1 {
|
|
293
|
+
const TYPE_QNAME = "0x2::bls12381::G1";
|
|
294
|
+
function type(): TypeDescriptor<G1>;
|
|
295
|
+
}
|
|
296
|
+
interface G2 {
|
|
297
|
+
dummy_field: Boolean;
|
|
298
|
+
}
|
|
299
|
+
namespace G2 {
|
|
300
|
+
const TYPE_QNAME = "0x2::bls12381::G2";
|
|
301
|
+
function type(): TypeDescriptor<G2>;
|
|
302
|
+
}
|
|
303
|
+
interface GT {
|
|
304
|
+
dummy_field: Boolean;
|
|
305
|
+
}
|
|
306
|
+
namespace GT {
|
|
307
|
+
const TYPE_QNAME = "0x2::bls12381::GT";
|
|
308
|
+
function type(): TypeDescriptor<GT>;
|
|
309
|
+
}
|
|
310
|
+
interface Scalar {
|
|
311
|
+
dummy_field: Boolean;
|
|
312
|
+
}
|
|
313
|
+
namespace Scalar {
|
|
314
|
+
const TYPE_QNAME = "0x2::bls12381::Scalar";
|
|
315
|
+
function type(): TypeDescriptor<Scalar>;
|
|
316
|
+
}
|
|
289
317
|
namespace builder {
|
|
290
318
|
function bls12381MinPkVerify(tx: TransactionBlock, args: [
|
|
291
319
|
string | ObjectCallArg | TransactionArgument,
|
|
@@ -305,6 +333,101 @@ export declare namespace bls12381 {
|
|
|
305
333
|
TransactionArgument,
|
|
306
334
|
TransactionArgument
|
|
307
335
|
];
|
|
336
|
+
function g1Add(tx: TransactionBlock, args: [
|
|
337
|
+
string | ObjectCallArg | TransactionArgument,
|
|
338
|
+
string | ObjectCallArg | TransactionArgument
|
|
339
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
340
|
+
function g1Div(tx: TransactionBlock, args: [
|
|
341
|
+
string | ObjectCallArg | TransactionArgument,
|
|
342
|
+
string | ObjectCallArg | TransactionArgument
|
|
343
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
344
|
+
function g1FromBytes(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
345
|
+
function g1Generator(tx: TransactionBlock, args: []): TransactionArgument & [];
|
|
346
|
+
function g1Identity(tx: TransactionBlock, args: []): TransactionArgument & [];
|
|
347
|
+
function g1Mul(tx: TransactionBlock, args: [
|
|
348
|
+
string | ObjectCallArg | TransactionArgument,
|
|
349
|
+
string | ObjectCallArg | TransactionArgument
|
|
350
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
351
|
+
function g1MultiScalarMultiplication(tx: TransactionBlock, args: [
|
|
352
|
+
string | ObjectCallArg | TransactionArgument,
|
|
353
|
+
string | ObjectCallArg | TransactionArgument
|
|
354
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
355
|
+
function g1Neg(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
356
|
+
function g1Sub(tx: TransactionBlock, args: [
|
|
357
|
+
string | ObjectCallArg | TransactionArgument,
|
|
358
|
+
string | ObjectCallArg | TransactionArgument
|
|
359
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
360
|
+
function g2Add(tx: TransactionBlock, args: [
|
|
361
|
+
string | ObjectCallArg | TransactionArgument,
|
|
362
|
+
string | ObjectCallArg | TransactionArgument
|
|
363
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
364
|
+
function g2Div(tx: TransactionBlock, args: [
|
|
365
|
+
string | ObjectCallArg | TransactionArgument,
|
|
366
|
+
string | ObjectCallArg | TransactionArgument
|
|
367
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
368
|
+
function g2FromBytes(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
369
|
+
function g2Generator(tx: TransactionBlock, args: []): TransactionArgument & [];
|
|
370
|
+
function g2Identity(tx: TransactionBlock, args: []): TransactionArgument & [];
|
|
371
|
+
function g2Mul(tx: TransactionBlock, args: [
|
|
372
|
+
string | ObjectCallArg | TransactionArgument,
|
|
373
|
+
string | ObjectCallArg | TransactionArgument
|
|
374
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
375
|
+
function g2MultiScalarMultiplication(tx: TransactionBlock, args: [
|
|
376
|
+
string | ObjectCallArg | TransactionArgument,
|
|
377
|
+
string | ObjectCallArg | TransactionArgument
|
|
378
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
379
|
+
function g2Neg(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
380
|
+
function g2Sub(tx: TransactionBlock, args: [
|
|
381
|
+
string | ObjectCallArg | TransactionArgument,
|
|
382
|
+
string | ObjectCallArg | TransactionArgument
|
|
383
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
384
|
+
function gtAdd(tx: TransactionBlock, args: [
|
|
385
|
+
string | ObjectCallArg | TransactionArgument,
|
|
386
|
+
string | ObjectCallArg | TransactionArgument
|
|
387
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
388
|
+
function gtDiv(tx: TransactionBlock, args: [
|
|
389
|
+
string | ObjectCallArg | TransactionArgument,
|
|
390
|
+
string | ObjectCallArg | TransactionArgument
|
|
391
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
392
|
+
function gtGenerator(tx: TransactionBlock, args: []): TransactionArgument & [];
|
|
393
|
+
function gtIdentity(tx: TransactionBlock, args: []): TransactionArgument & [];
|
|
394
|
+
function gtMul(tx: TransactionBlock, args: [
|
|
395
|
+
string | ObjectCallArg | TransactionArgument,
|
|
396
|
+
string | ObjectCallArg | TransactionArgument
|
|
397
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
398
|
+
function gtNeg(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
399
|
+
function gtSub(tx: TransactionBlock, args: [
|
|
400
|
+
string | ObjectCallArg | TransactionArgument,
|
|
401
|
+
string | ObjectCallArg | TransactionArgument
|
|
402
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
403
|
+
function hashToG1(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
404
|
+
function hashToG2(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
405
|
+
function pairing(tx: TransactionBlock, args: [
|
|
406
|
+
string | ObjectCallArg | TransactionArgument,
|
|
407
|
+
string | ObjectCallArg | TransactionArgument
|
|
408
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
409
|
+
function scalarAdd(tx: TransactionBlock, args: [
|
|
410
|
+
string | ObjectCallArg | TransactionArgument,
|
|
411
|
+
string | ObjectCallArg | TransactionArgument
|
|
412
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
413
|
+
function scalarDiv(tx: TransactionBlock, args: [
|
|
414
|
+
string | ObjectCallArg | TransactionArgument,
|
|
415
|
+
string | ObjectCallArg | TransactionArgument
|
|
416
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
417
|
+
function scalarFromBytes(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
418
|
+
function scalarFromU64(tx: TransactionBlock, args: [bigint | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
419
|
+
function scalarInv(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
420
|
+
function scalarMul(tx: TransactionBlock, args: [
|
|
421
|
+
string | ObjectCallArg | TransactionArgument,
|
|
422
|
+
string | ObjectCallArg | TransactionArgument
|
|
423
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
424
|
+
function scalarNeg(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
425
|
+
function scalarOne(tx: TransactionBlock, args: []): TransactionArgument & [];
|
|
426
|
+
function scalarSub(tx: TransactionBlock, args: [
|
|
427
|
+
string | ObjectCallArg | TransactionArgument,
|
|
428
|
+
string | ObjectCallArg | TransactionArgument
|
|
429
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
430
|
+
function scalarZero(tx: TransactionBlock, args: []): TransactionArgument & [];
|
|
308
431
|
}
|
|
309
432
|
namespace view {
|
|
310
433
|
function bls12381MinPkVerify(client: SuiClient, args: [
|
|
@@ -317,6 +440,101 @@ export declare namespace bls12381 {
|
|
|
317
440
|
string | ObjectCallArg | TransactionArgument,
|
|
318
441
|
string | ObjectCallArg | TransactionArgument
|
|
319
442
|
]): Promise<TypedDevInspectResults<[Boolean]>>;
|
|
443
|
+
function g1Add(client: SuiClient, args: [
|
|
444
|
+
string | ObjectCallArg | TransactionArgument,
|
|
445
|
+
string | ObjectCallArg | TransactionArgument
|
|
446
|
+
]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G1>]>>;
|
|
447
|
+
function g1Div(client: SuiClient, args: [
|
|
448
|
+
string | ObjectCallArg | TransactionArgument,
|
|
449
|
+
string | ObjectCallArg | TransactionArgument
|
|
450
|
+
]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G1>]>>;
|
|
451
|
+
function g1FromBytes(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G1>]>>;
|
|
452
|
+
function g1Generator(client: SuiClient, args: []): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G1>]>>;
|
|
453
|
+
function g1Identity(client: SuiClient, args: []): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G1>]>>;
|
|
454
|
+
function g1Mul(client: SuiClient, args: [
|
|
455
|
+
string | ObjectCallArg | TransactionArgument,
|
|
456
|
+
string | ObjectCallArg | TransactionArgument
|
|
457
|
+
]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G1>]>>;
|
|
458
|
+
function g1MultiScalarMultiplication(client: SuiClient, args: [
|
|
459
|
+
string | ObjectCallArg | TransactionArgument,
|
|
460
|
+
string | ObjectCallArg | TransactionArgument
|
|
461
|
+
]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G1>]>>;
|
|
462
|
+
function g1Neg(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G1>]>>;
|
|
463
|
+
function g1Sub(client: SuiClient, args: [
|
|
464
|
+
string | ObjectCallArg | TransactionArgument,
|
|
465
|
+
string | ObjectCallArg | TransactionArgument
|
|
466
|
+
]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G1>]>>;
|
|
467
|
+
function g2Add(client: SuiClient, args: [
|
|
468
|
+
string | ObjectCallArg | TransactionArgument,
|
|
469
|
+
string | ObjectCallArg | TransactionArgument
|
|
470
|
+
]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G2>]>>;
|
|
471
|
+
function g2Div(client: SuiClient, args: [
|
|
472
|
+
string | ObjectCallArg | TransactionArgument,
|
|
473
|
+
string | ObjectCallArg | TransactionArgument
|
|
474
|
+
]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G2>]>>;
|
|
475
|
+
function g2FromBytes(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G2>]>>;
|
|
476
|
+
function g2Generator(client: SuiClient, args: []): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G2>]>>;
|
|
477
|
+
function g2Identity(client: SuiClient, args: []): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G2>]>>;
|
|
478
|
+
function g2Mul(client: SuiClient, args: [
|
|
479
|
+
string | ObjectCallArg | TransactionArgument,
|
|
480
|
+
string | ObjectCallArg | TransactionArgument
|
|
481
|
+
]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G2>]>>;
|
|
482
|
+
function g2MultiScalarMultiplication(client: SuiClient, args: [
|
|
483
|
+
string | ObjectCallArg | TransactionArgument,
|
|
484
|
+
string | ObjectCallArg | TransactionArgument
|
|
485
|
+
]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G2>]>>;
|
|
486
|
+
function g2Neg(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G2>]>>;
|
|
487
|
+
function g2Sub(client: SuiClient, args: [
|
|
488
|
+
string | ObjectCallArg | TransactionArgument,
|
|
489
|
+
string | ObjectCallArg | TransactionArgument
|
|
490
|
+
]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G2>]>>;
|
|
491
|
+
function gtAdd(client: SuiClient, args: [
|
|
492
|
+
string | ObjectCallArg | TransactionArgument,
|
|
493
|
+
string | ObjectCallArg | TransactionArgument
|
|
494
|
+
]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.GT>]>>;
|
|
495
|
+
function gtDiv(client: SuiClient, args: [
|
|
496
|
+
string | ObjectCallArg | TransactionArgument,
|
|
497
|
+
string | ObjectCallArg | TransactionArgument
|
|
498
|
+
]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.GT>]>>;
|
|
499
|
+
function gtGenerator(client: SuiClient, args: []): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.GT>]>>;
|
|
500
|
+
function gtIdentity(client: SuiClient, args: []): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.GT>]>>;
|
|
501
|
+
function gtMul(client: SuiClient, args: [
|
|
502
|
+
string | ObjectCallArg | TransactionArgument,
|
|
503
|
+
string | ObjectCallArg | TransactionArgument
|
|
504
|
+
]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.GT>]>>;
|
|
505
|
+
function gtNeg(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.GT>]>>;
|
|
506
|
+
function gtSub(client: SuiClient, args: [
|
|
507
|
+
string | ObjectCallArg | TransactionArgument,
|
|
508
|
+
string | ObjectCallArg | TransactionArgument
|
|
509
|
+
]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.GT>]>>;
|
|
510
|
+
function hashToG1(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G1>]>>;
|
|
511
|
+
function hashToG2(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G2>]>>;
|
|
512
|
+
function pairing(client: SuiClient, args: [
|
|
513
|
+
string | ObjectCallArg | TransactionArgument,
|
|
514
|
+
string | ObjectCallArg | TransactionArgument
|
|
515
|
+
]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.GT>]>>;
|
|
516
|
+
function scalarAdd(client: SuiClient, args: [
|
|
517
|
+
string | ObjectCallArg | TransactionArgument,
|
|
518
|
+
string | ObjectCallArg | TransactionArgument
|
|
519
|
+
]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.Scalar>]>>;
|
|
520
|
+
function scalarDiv(client: SuiClient, args: [
|
|
521
|
+
string | ObjectCallArg | TransactionArgument,
|
|
522
|
+
string | ObjectCallArg | TransactionArgument
|
|
523
|
+
]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.Scalar>]>>;
|
|
524
|
+
function scalarFromBytes(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.Scalar>]>>;
|
|
525
|
+
function scalarFromU64(client: SuiClient, args: [bigint | TransactionArgument]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.Scalar>]>>;
|
|
526
|
+
function scalarInv(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.Scalar>]>>;
|
|
527
|
+
function scalarMul(client: SuiClient, args: [
|
|
528
|
+
string | ObjectCallArg | TransactionArgument,
|
|
529
|
+
string | ObjectCallArg | TransactionArgument
|
|
530
|
+
]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.Scalar>]>>;
|
|
531
|
+
function scalarNeg(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.Scalar>]>>;
|
|
532
|
+
function scalarOne(client: SuiClient, args: []): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.Scalar>]>>;
|
|
533
|
+
function scalarSub(client: SuiClient, args: [
|
|
534
|
+
string | ObjectCallArg | TransactionArgument,
|
|
535
|
+
string | ObjectCallArg | TransactionArgument
|
|
536
|
+
]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.Scalar>]>>;
|
|
537
|
+
function scalarZero(client: SuiClient, args: []): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.Scalar>]>>;
|
|
320
538
|
}
|
|
321
539
|
}
|
|
322
540
|
export declare namespace borrow {
|
|
@@ -1213,6 +1431,33 @@ export declare namespace groth16 {
|
|
|
1213
1431
|
]): Promise<TypedDevInspectResults<[Boolean]>>;
|
|
1214
1432
|
}
|
|
1215
1433
|
}
|
|
1434
|
+
export declare namespace group_ops {
|
|
1435
|
+
interface Element<T0> {
|
|
1436
|
+
bytes: number[];
|
|
1437
|
+
}
|
|
1438
|
+
namespace Element {
|
|
1439
|
+
const TYPE_QNAME = "0x2::group_ops::Element";
|
|
1440
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Element<T0>>;
|
|
1441
|
+
}
|
|
1442
|
+
interface ElementInstance extends TypedEventInstance<Element<any>> {
|
|
1443
|
+
data_decoded: Element<any>;
|
|
1444
|
+
type_arguments: [string];
|
|
1445
|
+
}
|
|
1446
|
+
namespace builder {
|
|
1447
|
+
function bytes<T0 = any>(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
1448
|
+
function equal<T0 = any>(tx: TransactionBlock, args: [
|
|
1449
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1450
|
+
string | ObjectCallArg | TransactionArgument
|
|
1451
|
+
], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
1452
|
+
}
|
|
1453
|
+
namespace view {
|
|
1454
|
+
function bytes<T0 = any>(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[string]>>;
|
|
1455
|
+
function equal<T0 = any>(client: SuiClient, args: [
|
|
1456
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1457
|
+
string | ObjectCallArg | TransactionArgument
|
|
1458
|
+
], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[Boolean]>>;
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1216
1461
|
export declare namespace hash {
|
|
1217
1462
|
namespace builder {
|
|
1218
1463
|
function blake2b256(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument]): TransactionArgument & [TransactionArgument];
|