@typemove/sui 1.6.12-rc.2 → 1.7.0-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 +28 -0
- package/dist/cjs/builtin/0x2.d.ts.map +1 -1
- package/dist/cjs/builtin/0x2.js +126 -1
- package/dist/cjs/builtin/0x2.js.map +1 -1
- package/dist/cjs/to-internal.js +1 -0
- package/dist/cjs/to-internal.js.map +1 -1
- package/dist/esm/builtin/0x2.d.ts +28 -0
- package/dist/esm/builtin/0x2.d.ts.map +1 -1
- package/dist/esm/builtin/0x2.js +126 -1
- package/dist/esm/builtin/0x2.js.map +1 -1
- package/dist/esm/to-internal.js +1 -0
- package/dist/esm/to-internal.js.map +1 -1
- package/package.json +3 -3
- package/src/abis/0x2.json +235 -0
- package/src/builtin/0x2.ts +187 -1
- package/src/to-internal.ts +1 -0
|
@@ -300,6 +300,13 @@ export declare namespace bls12381 {
|
|
|
300
300
|
const TYPE_QNAME = "0x2::bls12381::Scalar";
|
|
301
301
|
function type(): TypeDescriptor<Scalar>;
|
|
302
302
|
}
|
|
303
|
+
interface UncompressedG1 {
|
|
304
|
+
dummy_field: boolean;
|
|
305
|
+
}
|
|
306
|
+
namespace UncompressedG1 {
|
|
307
|
+
const TYPE_QNAME = "0x2::bls12381::UncompressedG1";
|
|
308
|
+
function type(): TypeDescriptor<UncompressedG1>;
|
|
309
|
+
}
|
|
303
310
|
namespace builder {
|
|
304
311
|
function bls12381MinPkVerify(tx: Transaction, args: [
|
|
305
312
|
string | TransactionObjectArgument | TransactionArgument,
|
|
@@ -343,6 +350,7 @@ export declare namespace bls12381 {
|
|
|
343
350
|
string | TransactionObjectArgument | TransactionArgument,
|
|
344
351
|
string | TransactionObjectArgument | TransactionArgument
|
|
345
352
|
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
353
|
+
function g1ToUncompressedG1(tx: Transaction, args: [string | TransactionObjectArgument | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
346
354
|
function g2Add(tx: Transaction, args: [
|
|
347
355
|
string | TransactionObjectArgument | TransactionArgument,
|
|
348
356
|
string | TransactionObjectArgument | TransactionArgument
|
|
@@ -414,6 +422,8 @@ export declare namespace bls12381 {
|
|
|
414
422
|
string | TransactionObjectArgument | TransactionArgument
|
|
415
423
|
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
416
424
|
function scalarZero(tx: Transaction, args: []): TransactionArgument & [];
|
|
425
|
+
function uncompressedG1Sum(tx: Transaction, args: [string | TransactionObjectArgument | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
426
|
+
function uncompressedG1ToG1(tx: Transaction, args: [string | TransactionObjectArgument | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
417
427
|
}
|
|
418
428
|
namespace view {
|
|
419
429
|
function bls12381MinPkVerify(client: SuiClient, args: [string, string, string]): Promise<TypedDevInspectResults<[boolean]>>;
|
|
@@ -427,6 +437,7 @@ export declare namespace bls12381 {
|
|
|
427
437
|
function g1MultiScalarMultiplication(client: SuiClient, args: [string, string]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G1>]>>;
|
|
428
438
|
function g1Neg(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G1>]>>;
|
|
429
439
|
function g1Sub(client: SuiClient, args: [string, string]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G1>]>>;
|
|
440
|
+
function g1ToUncompressedG1(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.UncompressedG1>]>>;
|
|
430
441
|
function g2Add(client: SuiClient, args: [string, string]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G2>]>>;
|
|
431
442
|
function g2Div(client: SuiClient, args: [string, string]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G2>]>>;
|
|
432
443
|
function g2FromBytes(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G2>]>>;
|
|
@@ -456,6 +467,8 @@ export declare namespace bls12381 {
|
|
|
456
467
|
function scalarOne(client: SuiClient, args: []): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.Scalar>]>>;
|
|
457
468
|
function scalarSub(client: SuiClient, args: [string, string]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.Scalar>]>>;
|
|
458
469
|
function scalarZero(client: SuiClient, args: []): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.Scalar>]>>;
|
|
470
|
+
function uncompressedG1Sum(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.UncompressedG1>]>>;
|
|
471
|
+
function uncompressedG1ToG1(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[group_ops.Element<bls12381.G1>]>>;
|
|
459
472
|
}
|
|
460
473
|
}
|
|
461
474
|
export declare namespace borrow {
|
|
@@ -1689,6 +1702,15 @@ export declare namespace group_ops {
|
|
|
1689
1702
|
TransactionArgument
|
|
1690
1703
|
];
|
|
1691
1704
|
function bytes<T0 = any>(tx: Transaction, args: [string | TransactionObjectArgument | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
1705
|
+
function convert<T0 = any, T1 = any>(tx: Transaction, args: [
|
|
1706
|
+
number | TransactionArgument,
|
|
1707
|
+
number | TransactionArgument,
|
|
1708
|
+
string | TransactionObjectArgument | TransactionArgument
|
|
1709
|
+
], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): TransactionArgument & [
|
|
1710
|
+
TransactionArgument,
|
|
1711
|
+
TransactionArgument,
|
|
1712
|
+
TransactionArgument
|
|
1713
|
+
];
|
|
1692
1714
|
function div<T0 = any, T1 = any>(tx: Transaction, args: [
|
|
1693
1715
|
number | TransactionArgument,
|
|
1694
1716
|
string | TransactionObjectArgument | TransactionArgument,
|
|
@@ -1764,10 +1786,15 @@ export declare namespace group_ops {
|
|
|
1764
1786
|
TransactionArgument,
|
|
1765
1787
|
TransactionArgument
|
|
1766
1788
|
];
|
|
1789
|
+
function sum<T0 = any>(tx: Transaction, args: [
|
|
1790
|
+
number | TransactionArgument,
|
|
1791
|
+
string | TransactionObjectArgument | TransactionArgument
|
|
1792
|
+
], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
1767
1793
|
}
|
|
1768
1794
|
namespace view {
|
|
1769
1795
|
function add<T0 = any>(client: SuiClient, args: [number, string, string], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[group_ops.Element<T0>]>>;
|
|
1770
1796
|
function bytes<T0 = any>(client: SuiClient, args: [string], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[string]>>;
|
|
1797
|
+
function convert<T0 = any, T1 = any>(client: SuiClient, args: [number, number, string], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): Promise<TypedDevInspectResults<[group_ops.Element<T1>]>>;
|
|
1771
1798
|
function div<T0 = any, T1 = any>(client: SuiClient, args: [number, string, string], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): Promise<TypedDevInspectResults<[group_ops.Element<T1>]>>;
|
|
1772
1799
|
function equal<T0 = any>(client: SuiClient, args: [string, string], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[boolean]>>;
|
|
1773
1800
|
function fromBytes<T0 = any>(client: SuiClient, args: [number, string, boolean], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[group_ops.Element<T0>]>>;
|
|
@@ -1781,6 +1808,7 @@ export declare namespace group_ops {
|
|
|
1781
1808
|
]): Promise<TypedDevInspectResults<[group_ops.Element<T2>]>>;
|
|
1782
1809
|
function setAsPrefix(client: SuiClient, args: [bigint, boolean, string]): Promise<TypedDevInspectResults<[]>>;
|
|
1783
1810
|
function sub<T0 = any>(client: SuiClient, args: [number, string, string], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[group_ops.Element<T0>]>>;
|
|
1811
|
+
function sum<T0 = any>(client: SuiClient, args: [number, string], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[group_ops.Element<T0>]>>;
|
|
1784
1812
|
}
|
|
1785
1813
|
}
|
|
1786
1814
|
export declare namespace hash {
|