@typemove/sui 1.6.12 → 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.
@@ -45,6 +45,7 @@ function toInternalStruct(name, struct) {
45
45
  return { constraints: p.constraints.abilities };
46
46
  }),
47
47
  isNative: false,
48
+ isEvent: false,
48
49
  name: name
49
50
  };
50
51
  }
@@ -1 +1 @@
1
- {"version":3,"file":"to-internal.js","sourceRoot":"","sources":["../../src/to-internal.ts"],"names":[],"mappings":";;;AAOA,yCAQuB;AAEvB,SAAgB,gBAAgB,CAAC,MAA+B;IAC9D,OAAO;QACL,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,gBAAgB,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACnG,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;KAChF,CAAA;AACH,CAAC;AAPD,4CAOC;AAED,SAAS,kBAAkB,CAAC,IAAY,EAAE,IAA+B;IACvE,IAAI,UAAU,CAAA;IACd,QAAQ,IAAI,CAAC,UAAU,EAAE,CAAC;QACxB,KAAK,SAAS;YACZ,UAAU,GAAG,qCAA8B,CAAC,OAAO,CAAA;YACnD,MAAK;QACP,KAAK,QAAQ;YACX,UAAU,GAAG,qCAA8B,CAAC,MAAM,CAAA;YAClD,MAAK;QACP,KAAK,QAAQ;YACX,UAAU,GAAG,qCAA8B,CAAC,MAAM,CAAA;YAClD,MAAK;QACP;YACE,MAAM,KAAK,CAAC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AO,IAAI,qBAAc,CAAC,QAAQ,EAAE,CAAC,gBAAgB,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;IAChF,CAAC;IACD,IAAI,eAAe,IAAI,cAAc,EAAE,CAAC;QACtC,OAAO,IAAI,qBAAc,CAAC,GAAG,GAAG,cAAc,CAAC,aAAa,CAAC,CAAA;IAC/D,CAAC;IAED,IAAI,WAAW,IAAI,cAAc,EAAE,CAAC;QAClC,MAAM,GAAG,GAAG,gBAAgB,CAAC,cAAc,CAAC,SAAS,CAAC,CAAA;QACtD,GAAG,CAAC,SAAS,GAAG,IAAI,CAAA;QACpB,OAAO,GAAG,CAAA;IACZ,CAAC;IAED,IAAI,kBAAkB,IAAI,cAAc,EAAE,CAAC;QACzC,MAAM,GAAG,GAAG,gBAAgB,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAA;QAC7D,GAAG,CAAC,SAAS,GAAG,IAAI,CAAA;QACpB,GAAG,CAAC,OAAO,GAAG,IAAI,CAAA;QAClB,OAAO,GAAG,CAAA;IACZ,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAA;AACxC,CAAC"}
@@ -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 {