@typemove/sui 1.9.1-rc.4 → 1.10.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 +66 -0
- package/dist/cjs/builtin/0x2.d.ts.map +1 -1
- package/dist/cjs/builtin/0x2.js +220 -3
- package/dist/cjs/builtin/0x2.js.map +1 -1
- package/dist/cjs/builtin/0x3.d.ts +2 -0
- package/dist/cjs/builtin/0x3.d.ts.map +1 -1
- package/dist/cjs/builtin/0x3.js +21 -1
- package/dist/cjs/builtin/0x3.js.map +1 -1
- package/dist/cjs/sui-chain-adapter.js +0 -7
- package/dist/cjs/sui-chain-adapter.js.map +1 -1
- package/dist/esm/builtin/0x2.d.ts +66 -0
- package/dist/esm/builtin/0x2.d.ts.map +1 -1
- package/dist/esm/builtin/0x2.js +218 -1
- package/dist/esm/builtin/0x2.js.map +1 -1
- package/dist/esm/builtin/0x3.d.ts +2 -0
- package/dist/esm/builtin/0x3.d.ts.map +1 -1
- package/dist/esm/builtin/0x3.js +21 -1
- package/dist/esm/builtin/0x3.js.map +1 -1
- package/dist/esm/sui-chain-adapter.js +0 -7
- package/dist/esm/sui-chain-adapter.js.map +1 -1
- package/package.json +2 -2
- package/src/abis/0x2.json +269 -0
- package/src/abis/0x3.json +29 -0
- package/src/builtin/0x2.ts +327 -1
- package/src/builtin/0x3.ts +29 -1
- package/src/sui-chain-adapter.ts +0 -8
|
@@ -4,6 +4,17 @@ import { TypedDevInspectResults } from "@typemove/sui";
|
|
|
4
4
|
import { Transaction, TransactionArgument, TransactionObjectArgument } from "@mysten/sui/transactions";
|
|
5
5
|
import { SuiClient } from "@mysten/sui/client";
|
|
6
6
|
import * as _0x1 from "./0x1.js";
|
|
7
|
+
export declare namespace accumulator {
|
|
8
|
+
interface AccumulatorRoot {
|
|
9
|
+
id: object$.UID;
|
|
10
|
+
}
|
|
11
|
+
namespace AccumulatorRoot {
|
|
12
|
+
const TYPE_QNAME = "0x2::accumulator::AccumulatorRoot";
|
|
13
|
+
function type(): TypeDescriptor<AccumulatorRoot>;
|
|
14
|
+
}
|
|
15
|
+
namespace builder { }
|
|
16
|
+
namespace view { }
|
|
17
|
+
}
|
|
7
18
|
export declare namespace address {
|
|
8
19
|
namespace builder {
|
|
9
20
|
function fromAsciiBytes(tx: Transaction, args: [string | TransactionObjectArgument | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
@@ -2500,6 +2511,8 @@ export declare namespace object$ {
|
|
|
2500
2511
|
function new$(tx: Transaction, args: []): TransactionArgument & [];
|
|
2501
2512
|
function newUidFromHash(tx: Transaction, args: [string | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
2502
2513
|
function randomnessState(tx: Transaction, args: []): TransactionArgument & [];
|
|
2514
|
+
function suiAccumulatorRootAddress(tx: Transaction, args: []): TransactionArgument & [];
|
|
2515
|
+
function suiAccumulatorRootObjectId(tx: Transaction, args: []): TransactionArgument & [];
|
|
2503
2516
|
function suiDenyListObjectId(tx: Transaction, args: []): TransactionArgument & [];
|
|
2504
2517
|
function uidAsInner(tx: Transaction, args: [string | TransactionObjectArgument | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
2505
2518
|
function uidToAddress(tx: Transaction, args: [string | TransactionObjectArgument | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
@@ -2521,6 +2534,8 @@ export declare namespace object$ {
|
|
|
2521
2534
|
function new$(client: SuiClient, args: []): Promise<TypedDevInspectResults<[object$.UID]>>;
|
|
2522
2535
|
function newUidFromHash(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[object$.UID]>>;
|
|
2523
2536
|
function randomnessState(client: SuiClient, args: []): Promise<TypedDevInspectResults<[object$.UID]>>;
|
|
2537
|
+
function suiAccumulatorRootAddress(client: SuiClient, args: []): Promise<TypedDevInspectResults<[string]>>;
|
|
2538
|
+
function suiAccumulatorRootObjectId(client: SuiClient, args: []): Promise<TypedDevInspectResults<[object$.UID]>>;
|
|
2524
2539
|
function suiDenyListObjectId(client: SuiClient, args: []): Promise<TypedDevInspectResults<[object$.UID]>>;
|
|
2525
2540
|
function uidAsInner(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[string]>>;
|
|
2526
2541
|
function uidToAddress(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[string]>>;
|
|
@@ -2747,6 +2762,41 @@ export declare namespace package$ {
|
|
|
2747
2762
|
function version(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[bigint]>>;
|
|
2748
2763
|
}
|
|
2749
2764
|
}
|
|
2765
|
+
export declare namespace party {
|
|
2766
|
+
interface Party {
|
|
2767
|
+
default: party.Permissions;
|
|
2768
|
+
members: vec_map.VecMap<string, party.Permissions>;
|
|
2769
|
+
}
|
|
2770
|
+
namespace Party {
|
|
2771
|
+
const TYPE_QNAME = "0x2::party::Party";
|
|
2772
|
+
function type(): TypeDescriptor<Party>;
|
|
2773
|
+
}
|
|
2774
|
+
type PartyInstance = TypedEventInstance<Party> & {
|
|
2775
|
+
data_decoded: Party;
|
|
2776
|
+
type_arguments: [];
|
|
2777
|
+
};
|
|
2778
|
+
interface Permissions {
|
|
2779
|
+
pos0: bigint;
|
|
2780
|
+
}
|
|
2781
|
+
namespace Permissions {
|
|
2782
|
+
const TYPE_QNAME = "0x2::party::Permissions";
|
|
2783
|
+
function type(): TypeDescriptor<Permissions>;
|
|
2784
|
+
}
|
|
2785
|
+
type PermissionsInstance = TypedEventInstance<Permissions> & {
|
|
2786
|
+
data_decoded: Permissions;
|
|
2787
|
+
type_arguments: [];
|
|
2788
|
+
};
|
|
2789
|
+
namespace builder {
|
|
2790
|
+
function intoNative(tx: Transaction, args: [party.Party | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
2791
|
+
function isSingleOwner(tx: Transaction, args: [string | TransactionObjectArgument | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
2792
|
+
function singleOwner(tx: Transaction, args: [string | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
2793
|
+
}
|
|
2794
|
+
namespace view {
|
|
2795
|
+
function intoNative(client: SuiClient, args: [party.Party]): Promise<TypedDevInspectResults<[bigint, string[], bigint[]]>>;
|
|
2796
|
+
function isSingleOwner(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[boolean]>>;
|
|
2797
|
+
function singleOwner(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[party.Party]>>;
|
|
2798
|
+
}
|
|
2799
|
+
}
|
|
2750
2800
|
export declare namespace pay {
|
|
2751
2801
|
namespace builder {
|
|
2752
2802
|
function divideAndKeep<T0 = any>(tx: Transaction, args: [
|
|
@@ -3425,7 +3475,20 @@ export declare namespace transfer {
|
|
|
3425
3475
|
namespace builder {
|
|
3426
3476
|
function freezeObject<T0 = any>(tx: Transaction, args: [T0 | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
3427
3477
|
function freezeObjectImpl<T0 = any>(tx: Transaction, args: [T0 | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
3478
|
+
function partyTransfer<T0 = any>(tx: Transaction, args: [T0 | TransactionArgument, party.Party | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
3479
|
+
function partyTransferImpl<T0 = any>(tx: Transaction, args: [
|
|
3480
|
+
T0 | TransactionArgument,
|
|
3481
|
+
bigint | TransactionArgument,
|
|
3482
|
+
(string | TransactionObjectArgument)[] | TransactionArgument,
|
|
3483
|
+
(string | TransactionObjectArgument)[] | TransactionArgument
|
|
3484
|
+
], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [
|
|
3485
|
+
TransactionArgument,
|
|
3486
|
+
TransactionArgument,
|
|
3487
|
+
TransactionArgument,
|
|
3488
|
+
TransactionArgument
|
|
3489
|
+
];
|
|
3428
3490
|
function publicFreezeObject<T0 = any>(tx: Transaction, args: [T0 | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
3491
|
+
function publicPartyTransfer<T0 = any>(tx: Transaction, args: [T0 | TransactionArgument, party.Party | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
3429
3492
|
function publicReceive<T0 = any>(tx: Transaction, args: [
|
|
3430
3493
|
string | TransactionObjectArgument | TransactionArgument,
|
|
3431
3494
|
transfer.Receiving<T0> | TransactionArgument
|
|
@@ -3445,7 +3508,10 @@ export declare namespace transfer {
|
|
|
3445
3508
|
namespace view {
|
|
3446
3509
|
function freezeObject<T0 = any>(client: SuiClient, args: [T0], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[]>>;
|
|
3447
3510
|
function freezeObjectImpl<T0 = any>(client: SuiClient, args: [T0], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[]>>;
|
|
3511
|
+
function partyTransfer<T0 = any>(client: SuiClient, args: [T0, party.Party], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[]>>;
|
|
3512
|
+
function partyTransferImpl<T0 = any>(client: SuiClient, args: [T0, bigint, string[], string[]], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[]>>;
|
|
3448
3513
|
function publicFreezeObject<T0 = any>(client: SuiClient, args: [T0], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[]>>;
|
|
3514
|
+
function publicPartyTransfer<T0 = any>(client: SuiClient, args: [T0, party.Party], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[]>>;
|
|
3449
3515
|
function publicReceive<T0 = any>(client: SuiClient, args: [string, transfer.Receiving<T0>], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[T0]>>;
|
|
3450
3516
|
function publicShareObject<T0 = any>(client: SuiClient, args: [T0], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[]>>;
|
|
3451
3517
|
function publicTransfer<T0 = any>(client: SuiClient, args: [T0, string], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[]>>;
|