@typemove/sui 1.0.0-rc.9 → 1.0.0
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 +128 -0
- package/builtin/package.json +5 -0
- package/codegen/package.json +5 -0
- package/dist/cjs/builtin/0x1.d.ts +495 -0
- package/dist/cjs/builtin/0x1.d.ts.map +1 -0
- package/dist/cjs/builtin/0x1.js +2083 -0
- package/dist/cjs/builtin/0x1.js.map +1 -0
- package/dist/cjs/builtin/0x2.d.ts +2929 -0
- package/dist/cjs/builtin/0x2.d.ts.map +1 -0
- package/dist/cjs/builtin/0x2.js +9641 -0
- package/dist/cjs/builtin/0x2.js.map +1 -0
- package/dist/cjs/builtin/0x3.d.ts +1207 -0
- package/dist/cjs/builtin/0x3.d.ts.map +1 -0
- package/dist/cjs/builtin/0x3.js +2625 -0
- package/dist/cjs/builtin/0x3.js.map +1 -0
- package/dist/cjs/builtin/index.d.ts +4 -0
- package/dist/cjs/builtin/index.d.ts.map +1 -0
- package/dist/cjs/builtin/index.js +11 -0
- package/dist/cjs/builtin/index.js.map +1 -0
- package/dist/cjs/codegen/codegen.d.ts +19 -0
- package/dist/cjs/codegen/codegen.d.ts.map +1 -0
- package/dist/cjs/codegen/codegen.js +177 -0
- package/dist/cjs/codegen/codegen.js.map +1 -0
- package/dist/cjs/codegen/index.d.ts +2 -0
- package/dist/cjs/codegen/index.d.ts.map +1 -0
- package/dist/cjs/codegen/index.js +5 -0
- package/dist/cjs/codegen/index.js.map +1 -0
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +10 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/models.d.ts +12 -0
- package/dist/cjs/models.d.ts.map +1 -0
- package/dist/cjs/models.js +8 -0
- package/dist/cjs/models.js.map +1 -0
- package/dist/cjs/move-coder.d.ts +16 -0
- package/dist/cjs/move-coder.d.ts.map +1 -0
- package/dist/cjs/move-coder.js +104 -0
- package/dist/cjs/move-coder.js.map +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/sui-chain-adapter.d.ts +12 -0
- package/dist/cjs/sui-chain-adapter.d.ts.map +1 -0
- package/dist/cjs/sui-chain-adapter.js +86 -0
- package/dist/cjs/sui-chain-adapter.js.map +1 -0
- package/dist/cjs/to-internal.d.ts +4 -0
- package/dist/cjs/to-internal.d.ts.map +1 -0
- package/dist/cjs/to-internal.js +85 -0
- package/dist/cjs/to-internal.js.map +1 -0
- package/dist/cjs/utils.d.ts +15 -0
- package/dist/cjs/utils.d.ts.map +1 -0
- package/dist/cjs/utils.js +49 -0
- package/dist/cjs/utils.js.map +1 -0
- package/dist/esm/builtin/0x1.d.ts +495 -0
- package/dist/esm/builtin/0x1.d.ts.map +1 -0
- package/dist/esm/builtin/0x1.js +2079 -0
- package/dist/esm/builtin/0x1.js.map +1 -0
- package/dist/esm/builtin/0x2.d.ts +2929 -0
- package/dist/esm/builtin/0x2.d.ts.map +1 -0
- package/dist/esm/builtin/0x2.js +9636 -0
- package/dist/esm/builtin/0x2.js.map +1 -0
- package/dist/esm/builtin/0x3.d.ts +1207 -0
- package/dist/esm/builtin/0x3.d.ts.map +1 -0
- package/dist/esm/builtin/0x3.js +2620 -0
- package/dist/esm/builtin/0x3.js.map +1 -0
- package/dist/esm/builtin/index.d.ts +4 -0
- package/dist/esm/builtin/index.d.ts.map +1 -0
- package/dist/esm/builtin/index.js +7 -0
- package/dist/esm/builtin/index.js.map +1 -0
- package/dist/esm/codegen/codegen.d.ts +19 -0
- package/dist/esm/codegen/codegen.d.ts.map +1 -0
- package/dist/esm/codegen/codegen.js +171 -0
- package/dist/esm/codegen/codegen.js.map +1 -0
- package/dist/esm/codegen/index.d.ts +2 -0
- package/dist/esm/codegen/index.d.ts.map +1 -0
- package/dist/esm/codegen/index.js +2 -0
- package/dist/esm/codegen/index.js.map +1 -0
- package/dist/esm/codegen/run.d.ts +2 -0
- package/dist/esm/codegen/run.d.ts.map +1 -0
- package/dist/esm/codegen/run.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/{index.js → esm/index.js} +0 -1
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/models.d.ts +12 -0
- package/dist/esm/models.d.ts.map +1 -0
- package/dist/esm/models.js +5 -0
- package/dist/esm/models.js.map +1 -0
- package/dist/esm/move-coder.d.ts +16 -0
- package/dist/esm/move-coder.d.ts.map +1 -0
- package/dist/esm/move-coder.js +99 -0
- package/dist/esm/move-coder.js.map +1 -0
- package/dist/esm/sui-chain-adapter.d.ts +12 -0
- package/dist/esm/sui-chain-adapter.d.ts.map +1 -0
- package/dist/esm/sui-chain-adapter.js +82 -0
- package/dist/esm/sui-chain-adapter.js.map +1 -0
- package/dist/esm/to-internal.d.ts +4 -0
- package/dist/esm/to-internal.d.ts.map +1 -0
- package/dist/esm/to-internal.js +81 -0
- package/dist/esm/to-internal.js.map +1 -0
- package/dist/esm/utils.d.ts +15 -0
- package/dist/esm/utils.d.ts.map +1 -0
- package/dist/esm/utils.js +45 -0
- package/dist/esm/utils.js.map +1 -0
- package/package.json +20 -13
- package/src/builtin/0x1.ts +1359 -231
- package/src/builtin/0x2.ts +6364 -1302
- package/src/builtin/0x3.ts +1909 -495
- package/src/codegen/codegen.ts +63 -49
- package/src/index.ts +0 -2
- package/src/models.ts +9 -12
- package/src/move-coder.ts +6 -20
- package/src/sui-chain-adapter.ts +13 -15
- package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +98 -30
- package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +1084 -282
- package/src/tests/types/testnet/0xdee9.ts +1112 -308
- package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +3973 -1201
- package/src/to-internal.ts +12 -32
- package/src/module-client.ts +0 -23
- /package/dist/{codegen → esm/codegen}/run.js +0 -0
package/Readme.md
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Typemove
|
|
2
|
+
Generate TypeScript bindings for Sui contracts.
|
|
3
|
+
## Features
|
|
4
|
+
- Code generation for SUI smart contract based on ABI
|
|
5
|
+
- Typesafe encode/decoding, object filtering, transaction building, etc
|
|
6
|
+
- Automatically manage depended modules
|
|
7
|
+
- BCS schema (WIP)
|
|
8
|
+
## Usage
|
|
9
|
+
### Install package
|
|
10
|
+
```shell
|
|
11
|
+
yarn add @typemove/sui
|
|
12
|
+
```
|
|
13
|
+
or
|
|
14
|
+
|
|
15
|
+
```shell
|
|
16
|
+
pnpm add @typemove/sui
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Code Generation
|
|
20
|
+
```typescript
|
|
21
|
+
yarn typemove-sui <path-of-abi-file> <path-of-target-ts-directory> <testnet|mainnet>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Decode Object
|
|
25
|
+
```typescript
|
|
26
|
+
import { defaultMoveCoder } from '../move-coder.js'
|
|
27
|
+
import { single_collateral } from './types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.js'
|
|
28
|
+
|
|
29
|
+
const res = await defaultMoveCoder().decodedType(
|
|
30
|
+
data,
|
|
31
|
+
single_collateral.Info.type()
|
|
32
|
+
)
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
<details>
|
|
36
|
+
<summary>Without TypeMove</summary>
|
|
37
|
+
|
|
38
|
+
```typescript
|
|
39
|
+
export interface Info {
|
|
40
|
+
index: string;
|
|
41
|
+
creator: string;
|
|
42
|
+
createTsMs: string;
|
|
43
|
+
round: string;
|
|
44
|
+
deliveryInfo?: DeliveryInfo;
|
|
45
|
+
}
|
|
46
|
+
export interface DeliveryInfo {
|
|
47
|
+
round: string;
|
|
48
|
+
price: string;
|
|
49
|
+
size: string;
|
|
50
|
+
premium: string;
|
|
51
|
+
tsMs: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
let deliveryInfo: DeliveryInfo | undefined =
|
|
55
|
+
// @ts-ignore
|
|
56
|
+
data.content.fields.info.fields.delivery_info
|
|
57
|
+
? {
|
|
58
|
+
// @ts-ignore
|
|
59
|
+
round: data.content.fields.info.fields.delivery_info.fields.round,
|
|
60
|
+
// @ts-ignore
|
|
61
|
+
price: data.content.fields.info.fields.delivery_info.fields.price,
|
|
62
|
+
// @ts-ignore
|
|
63
|
+
size: data.content.fields.info.fields.delivery_info.fields.size,
|
|
64
|
+
// @ts-ignore
|
|
65
|
+
premium: data.content.fields.info.fields.delivery_info.fields.premium,
|
|
66
|
+
// @ts-ignore
|
|
67
|
+
tsMs: data.content.fields.info.fields.delivery_info.fields.ts_ms,
|
|
68
|
+
}
|
|
69
|
+
: undefined;
|
|
70
|
+
let info: Info = {
|
|
71
|
+
// @ts-ignore
|
|
72
|
+
index: data.content.fields.info.fields.index,
|
|
73
|
+
// @ts-ignore
|
|
74
|
+
creator: data.content.fields.info.fields.creator,
|
|
75
|
+
// @ts-ignore
|
|
76
|
+
createTsMs: data.content.fields.info.fields.create_ts_ms,
|
|
77
|
+
// @ts-ignore
|
|
78
|
+
round: data.content.fields.info.fields.round,
|
|
79
|
+
deliveryInfo,
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
```
|
|
83
|
+
</details>
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
### Decode dynamic fields
|
|
87
|
+
Get objects with specified type from a list of dynamic objects, and access field with fully typed object
|
|
88
|
+
```typescript
|
|
89
|
+
const decodedObjects = await coder.getDynamicFields(
|
|
90
|
+
objects,
|
|
91
|
+
BUILTIN_TYPES.U64_TYPE,
|
|
92
|
+
single_collateral.PortfolioVault.type()
|
|
93
|
+
)
|
|
94
|
+
console.log(decodedObjects[0].value.info.delivery_info?.price)
|
|
95
|
+
```
|
|
96
|
+
IDE could infer result type correctly.
|
|
97
|
+

|
|
98
|
+
|
|
99
|
+
### Building transaction
|
|
100
|
+
```typescript
|
|
101
|
+
import { clob_v2 } from './types/0xdee9.js'
|
|
102
|
+
|
|
103
|
+
clob_v2.builder.getMarketPrice(
|
|
104
|
+
tx,
|
|
105
|
+
['0x5d2687b354f2ad4bce90c828974346d91ac1787ff170e5d09cb769e5dbcdefae'],
|
|
106
|
+
[
|
|
107
|
+
'0x2::sui::SUI',
|
|
108
|
+
'0x219d80b1be5d586ff3bdbfeaf4d051ec721442c3a6498a3222773c6945a73d9f::usdt::USDT',
|
|
109
|
+
]
|
|
110
|
+
)
|
|
111
|
+
|
|
112
|
+
const result = await provider.devInspectTransactionBlock({
|
|
113
|
+
transactionBlock: tx
|
|
114
|
+
})
|
|
115
|
+
```
|
|
116
|
+
If you just want to call `devInspectTransactionBlock` for single function, you can simply do
|
|
117
|
+
```typescript
|
|
118
|
+
import { clob_v2 } from './types/0xdee9.js'
|
|
119
|
+
|
|
120
|
+
await clob_v2.view.getMarketPrice(provider,
|
|
121
|
+
['0x5d2687b354f2ad4bce90c828974346d91ac1787ff170e5d09cb769e5dbcdefae'],
|
|
122
|
+
[
|
|
123
|
+
'0x2::sui::SUI',
|
|
124
|
+
'0x219d80b1be5d586ff3bdbfeaf4d051ec721442c3a6498a3222773c6945a73d9f::usdt::USDT',
|
|
125
|
+
])
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Checkout our [example](./examples/sui) for full codes。
|
|
@@ -0,0 +1,495 @@
|
|
|
1
|
+
import { TypeDescriptor } from "@typemove/move";
|
|
2
|
+
import { MoveCoder, TypedEventInstance } from "@typemove/sui";
|
|
3
|
+
import { TransactionBlock } from "@mysten/sui.js/transactions";
|
|
4
|
+
import { ObjectCallArg, TransactionArgument } from "@mysten/sui.js";
|
|
5
|
+
import { SuiClient } from "@mysten/sui.js/client";
|
|
6
|
+
export declare namespace address {
|
|
7
|
+
namespace builder {
|
|
8
|
+
function length(tx: TransactionBlock, args: []): TransactionArgument & [];
|
|
9
|
+
}
|
|
10
|
+
namespace view {
|
|
11
|
+
function length(client: SuiClient, args: []): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export declare namespace ascii {
|
|
15
|
+
type Char = string;
|
|
16
|
+
namespace Char {
|
|
17
|
+
const TYPE_QNAME = "0x1::ascii::Char";
|
|
18
|
+
function type(): TypeDescriptor<Char>;
|
|
19
|
+
}
|
|
20
|
+
type String = string;
|
|
21
|
+
namespace String {
|
|
22
|
+
const TYPE_QNAME = "0x1::ascii::String";
|
|
23
|
+
function type(): TypeDescriptor<String>;
|
|
24
|
+
}
|
|
25
|
+
namespace builder {
|
|
26
|
+
function allCharactersPrintable(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
27
|
+
function asBytes(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
28
|
+
function byte(tx: TransactionBlock, args: [ascii.Char | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
29
|
+
function char(tx: TransactionBlock, args: [number | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
30
|
+
function intoBytes(tx: TransactionBlock, args: [ascii.String | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
31
|
+
function isPrintableChar(tx: TransactionBlock, args: [number | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
32
|
+
function isValidChar(tx: TransactionBlock, args: [number | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
33
|
+
function length(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
34
|
+
function popChar(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
35
|
+
function pushChar(tx: TransactionBlock, args: [
|
|
36
|
+
string | ObjectCallArg | TransactionArgument,
|
|
37
|
+
ascii.Char | TransactionArgument
|
|
38
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
39
|
+
function string_(tx: TransactionBlock, args: [(string | ObjectCallArg)[] | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
40
|
+
function tryString(tx: TransactionBlock, args: [(string | ObjectCallArg)[] | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
41
|
+
}
|
|
42
|
+
namespace view {
|
|
43
|
+
function allCharactersPrintable(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
44
|
+
function asBytes(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
45
|
+
function byte(client: SuiClient, args: [ascii.Char | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
46
|
+
function char(client: SuiClient, args: [number | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
47
|
+
function intoBytes(client: SuiClient, args: [ascii.String | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
48
|
+
function isPrintableChar(client: SuiClient, args: [number | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
49
|
+
function isValidChar(client: SuiClient, args: [number | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
50
|
+
function length(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
51
|
+
function popChar(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
52
|
+
function pushChar(client: SuiClient, args: [
|
|
53
|
+
string | ObjectCallArg | TransactionArgument,
|
|
54
|
+
ascii.Char | TransactionArgument
|
|
55
|
+
]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
56
|
+
function string_(client: SuiClient, args: [(string | ObjectCallArg)[] | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
57
|
+
function tryString(client: SuiClient, args: [(string | ObjectCallArg)[] | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
export declare namespace bcs {
|
|
61
|
+
namespace builder {
|
|
62
|
+
function toBytes<T0 = any>(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
63
|
+
}
|
|
64
|
+
namespace view {
|
|
65
|
+
function toBytes<T0 = any>(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
export declare namespace bit_vector {
|
|
69
|
+
interface BitVector {
|
|
70
|
+
length: bigint;
|
|
71
|
+
bit_field: Boolean[];
|
|
72
|
+
}
|
|
73
|
+
namespace BitVector {
|
|
74
|
+
const TYPE_QNAME = "0x1::bit_vector::BitVector";
|
|
75
|
+
function type(): TypeDescriptor<BitVector>;
|
|
76
|
+
}
|
|
77
|
+
interface BitVectorInstance extends TypedEventInstance<BitVector> {
|
|
78
|
+
data_decoded: BitVector;
|
|
79
|
+
type_arguments: [];
|
|
80
|
+
}
|
|
81
|
+
namespace builder {
|
|
82
|
+
function isIndexSet(tx: TransactionBlock, args: [
|
|
83
|
+
string | ObjectCallArg | TransactionArgument,
|
|
84
|
+
bigint | TransactionArgument
|
|
85
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
86
|
+
function length(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
87
|
+
function longestSetSequenceStartingAt(tx: TransactionBlock, args: [
|
|
88
|
+
string | ObjectCallArg | TransactionArgument,
|
|
89
|
+
bigint | TransactionArgument
|
|
90
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
91
|
+
function new_(tx: TransactionBlock, args: [bigint | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
92
|
+
function set(tx: TransactionBlock, args: [
|
|
93
|
+
string | ObjectCallArg | TransactionArgument,
|
|
94
|
+
bigint | TransactionArgument
|
|
95
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
96
|
+
function shiftLeft(tx: TransactionBlock, args: [
|
|
97
|
+
string | ObjectCallArg | TransactionArgument,
|
|
98
|
+
bigint | TransactionArgument
|
|
99
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
100
|
+
function unset(tx: TransactionBlock, args: [
|
|
101
|
+
string | ObjectCallArg | TransactionArgument,
|
|
102
|
+
bigint | TransactionArgument
|
|
103
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
104
|
+
}
|
|
105
|
+
namespace view {
|
|
106
|
+
function isIndexSet(client: SuiClient, args: [
|
|
107
|
+
string | ObjectCallArg | TransactionArgument,
|
|
108
|
+
bigint | TransactionArgument
|
|
109
|
+
]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
110
|
+
function length(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
111
|
+
function longestSetSequenceStartingAt(client: SuiClient, args: [
|
|
112
|
+
string | ObjectCallArg | TransactionArgument,
|
|
113
|
+
bigint | TransactionArgument
|
|
114
|
+
]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
115
|
+
function new_(client: SuiClient, args: [bigint | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
116
|
+
function set(client: SuiClient, args: [
|
|
117
|
+
string | ObjectCallArg | TransactionArgument,
|
|
118
|
+
bigint | TransactionArgument
|
|
119
|
+
]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
120
|
+
function shiftLeft(client: SuiClient, args: [
|
|
121
|
+
string | ObjectCallArg | TransactionArgument,
|
|
122
|
+
bigint | TransactionArgument
|
|
123
|
+
]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
124
|
+
function unset(client: SuiClient, args: [
|
|
125
|
+
string | ObjectCallArg | TransactionArgument,
|
|
126
|
+
bigint | TransactionArgument
|
|
127
|
+
]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
export declare namespace debug {
|
|
131
|
+
namespace builder {
|
|
132
|
+
function print<T0 = any>(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
133
|
+
function printStackTrace(tx: TransactionBlock, args: []): TransactionArgument & [];
|
|
134
|
+
}
|
|
135
|
+
namespace view {
|
|
136
|
+
function print<T0 = any>(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
137
|
+
function printStackTrace(client: SuiClient, args: []): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
export declare namespace fixed_point32 {
|
|
141
|
+
interface FixedPoint32 {
|
|
142
|
+
value: bigint;
|
|
143
|
+
}
|
|
144
|
+
namespace FixedPoint32 {
|
|
145
|
+
const TYPE_QNAME = "0x1::fixed_point32::FixedPoint32";
|
|
146
|
+
function type(): TypeDescriptor<FixedPoint32>;
|
|
147
|
+
}
|
|
148
|
+
interface FixedPoint32Instance extends TypedEventInstance<FixedPoint32> {
|
|
149
|
+
data_decoded: FixedPoint32;
|
|
150
|
+
type_arguments: [];
|
|
151
|
+
}
|
|
152
|
+
namespace builder {
|
|
153
|
+
function createFromRational(tx: TransactionBlock, args: [bigint | TransactionArgument, bigint | TransactionArgument]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
154
|
+
function createFromRawValue(tx: TransactionBlock, args: [bigint | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
155
|
+
function divideU64(tx: TransactionBlock, args: [
|
|
156
|
+
bigint | TransactionArgument,
|
|
157
|
+
fixed_point32.FixedPoint32 | TransactionArgument
|
|
158
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
159
|
+
function getRawValue(tx: TransactionBlock, args: [fixed_point32.FixedPoint32 | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
160
|
+
function isZero(tx: TransactionBlock, args: [fixed_point32.FixedPoint32 | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
161
|
+
function multiplyU64(tx: TransactionBlock, args: [
|
|
162
|
+
bigint | TransactionArgument,
|
|
163
|
+
fixed_point32.FixedPoint32 | TransactionArgument
|
|
164
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
165
|
+
}
|
|
166
|
+
namespace view {
|
|
167
|
+
function createFromRational(client: SuiClient, args: [bigint | TransactionArgument, bigint | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
168
|
+
function createFromRawValue(client: SuiClient, args: [bigint | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
169
|
+
function divideU64(client: SuiClient, args: [
|
|
170
|
+
bigint | TransactionArgument,
|
|
171
|
+
fixed_point32.FixedPoint32 | TransactionArgument
|
|
172
|
+
]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
173
|
+
function getRawValue(client: SuiClient, args: [fixed_point32.FixedPoint32 | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
174
|
+
function isZero(client: SuiClient, args: [fixed_point32.FixedPoint32 | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
175
|
+
function multiplyU64(client: SuiClient, args: [
|
|
176
|
+
bigint | TransactionArgument,
|
|
177
|
+
fixed_point32.FixedPoint32 | TransactionArgument
|
|
178
|
+
]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
export declare namespace hash {
|
|
182
|
+
namespace builder {
|
|
183
|
+
function sha2256(tx: TransactionBlock, args: [(string | ObjectCallArg)[] | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
184
|
+
function sha3256(tx: TransactionBlock, args: [(string | ObjectCallArg)[] | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
185
|
+
}
|
|
186
|
+
namespace view {
|
|
187
|
+
function sha2256(client: SuiClient, args: [(string | ObjectCallArg)[] | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
188
|
+
function sha3256(client: SuiClient, args: [(string | ObjectCallArg)[] | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
export declare namespace option {
|
|
192
|
+
type Option<T> = T | undefined;
|
|
193
|
+
namespace Option {
|
|
194
|
+
const TYPE_QNAME = "0x1::option::Option";
|
|
195
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Option<T0>>;
|
|
196
|
+
}
|
|
197
|
+
namespace builder {
|
|
198
|
+
function borrow<T0 = any>(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
199
|
+
function borrowMut<T0 = any>(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
200
|
+
function borrowWithDefault<T0 = any>(tx: TransactionBlock, args: [
|
|
201
|
+
string | ObjectCallArg | TransactionArgument,
|
|
202
|
+
string | ObjectCallArg | TransactionArgument
|
|
203
|
+
], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
204
|
+
function contains<T0 = any>(tx: TransactionBlock, args: [
|
|
205
|
+
string | ObjectCallArg | TransactionArgument,
|
|
206
|
+
string | ObjectCallArg | TransactionArgument
|
|
207
|
+
], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
208
|
+
function destroyNone<T0 = any>(tx: TransactionBlock, args: [option.Option<T0> | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
209
|
+
function destroySome<T0 = any>(tx: TransactionBlock, args: [option.Option<T0> | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
210
|
+
function destroyWithDefault<T0 = any>(tx: TransactionBlock, args: [option.Option<T0> | TransactionArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
211
|
+
function extract<T0 = any>(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
212
|
+
function fill<T0 = any>(tx: TransactionBlock, args: [
|
|
213
|
+
string | ObjectCallArg | TransactionArgument,
|
|
214
|
+
T0 | TransactionArgument
|
|
215
|
+
], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
216
|
+
function getWithDefault<T0 = any>(tx: TransactionBlock, args: [
|
|
217
|
+
string | ObjectCallArg | TransactionArgument,
|
|
218
|
+
T0 | TransactionArgument
|
|
219
|
+
], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
220
|
+
function isNone<T0 = any>(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
221
|
+
function isSome<T0 = any>(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
222
|
+
function none<T0 = any>(tx: TransactionBlock, args: [], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [];
|
|
223
|
+
function some<T0 = any>(tx: TransactionBlock, args: [T0 | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
224
|
+
function swap<T0 = any>(tx: TransactionBlock, args: [
|
|
225
|
+
string | ObjectCallArg | TransactionArgument,
|
|
226
|
+
T0 | TransactionArgument
|
|
227
|
+
], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
228
|
+
function swapOrFill<T0 = any>(tx: TransactionBlock, args: [
|
|
229
|
+
string | ObjectCallArg | TransactionArgument,
|
|
230
|
+
T0 | TransactionArgument
|
|
231
|
+
], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
232
|
+
function toVec<T0 = any>(tx: TransactionBlock, args: [option.Option<T0> | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
233
|
+
}
|
|
234
|
+
namespace view {
|
|
235
|
+
function borrow<T0 = any>(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
236
|
+
function borrowMut<T0 = any>(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
237
|
+
function borrowWithDefault<T0 = any>(client: SuiClient, args: [
|
|
238
|
+
string | ObjectCallArg | TransactionArgument,
|
|
239
|
+
string | ObjectCallArg | TransactionArgument
|
|
240
|
+
], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
241
|
+
function contains<T0 = any>(client: SuiClient, args: [
|
|
242
|
+
string | ObjectCallArg | TransactionArgument,
|
|
243
|
+
string | ObjectCallArg | TransactionArgument
|
|
244
|
+
], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
245
|
+
function destroyNone<T0 = any>(client: SuiClient, args: [option.Option<T0> | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
246
|
+
function destroySome<T0 = any>(client: SuiClient, args: [option.Option<T0> | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
247
|
+
function destroyWithDefault<T0 = any>(client: SuiClient, args: [option.Option<T0> | TransactionArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
248
|
+
function extract<T0 = any>(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
249
|
+
function fill<T0 = any>(client: SuiClient, args: [
|
|
250
|
+
string | ObjectCallArg | TransactionArgument,
|
|
251
|
+
T0 | TransactionArgument
|
|
252
|
+
], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
253
|
+
function getWithDefault<T0 = any>(client: SuiClient, args: [
|
|
254
|
+
string | ObjectCallArg | TransactionArgument,
|
|
255
|
+
T0 | TransactionArgument
|
|
256
|
+
], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
257
|
+
function isNone<T0 = any>(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
258
|
+
function isSome<T0 = any>(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
259
|
+
function none<T0 = any>(client: SuiClient, args: [], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
260
|
+
function some<T0 = any>(client: SuiClient, args: [T0 | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
261
|
+
function swap<T0 = any>(client: SuiClient, args: [
|
|
262
|
+
string | ObjectCallArg | TransactionArgument,
|
|
263
|
+
T0 | TransactionArgument
|
|
264
|
+
], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
265
|
+
function swapOrFill<T0 = any>(client: SuiClient, args: [
|
|
266
|
+
string | ObjectCallArg | TransactionArgument,
|
|
267
|
+
T0 | TransactionArgument
|
|
268
|
+
], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
269
|
+
function toVec<T0 = any>(client: SuiClient, args: [option.Option<T0> | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
export declare namespace string_ {
|
|
273
|
+
interface String {
|
|
274
|
+
bytes: number[];
|
|
275
|
+
}
|
|
276
|
+
namespace String {
|
|
277
|
+
const TYPE_QNAME = "0x1::string::String";
|
|
278
|
+
function type(): TypeDescriptor<String>;
|
|
279
|
+
}
|
|
280
|
+
interface StringInstance extends TypedEventInstance<String> {
|
|
281
|
+
data_decoded: String;
|
|
282
|
+
type_arguments: [];
|
|
283
|
+
}
|
|
284
|
+
namespace builder {
|
|
285
|
+
function append(tx: TransactionBlock, args: [
|
|
286
|
+
string | ObjectCallArg | TransactionArgument,
|
|
287
|
+
string | TransactionArgument
|
|
288
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
289
|
+
function appendUtf8(tx: TransactionBlock, args: [
|
|
290
|
+
string | ObjectCallArg | TransactionArgument,
|
|
291
|
+
(string | ObjectCallArg)[] | TransactionArgument
|
|
292
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
293
|
+
function bytes(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
294
|
+
function fromAscii(tx: TransactionBlock, args: [ascii.String | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
295
|
+
function indexOf(tx: TransactionBlock, args: [
|
|
296
|
+
string | ObjectCallArg | TransactionArgument,
|
|
297
|
+
string | ObjectCallArg | TransactionArgument
|
|
298
|
+
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
299
|
+
function insert(tx: TransactionBlock, args: [
|
|
300
|
+
string | ObjectCallArg | TransactionArgument,
|
|
301
|
+
bigint | TransactionArgument,
|
|
302
|
+
string | TransactionArgument
|
|
303
|
+
]): TransactionArgument & [
|
|
304
|
+
TransactionArgument,
|
|
305
|
+
TransactionArgument,
|
|
306
|
+
TransactionArgument
|
|
307
|
+
];
|
|
308
|
+
function isEmpty(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
309
|
+
function length(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
310
|
+
function subString(tx: TransactionBlock, args: [
|
|
311
|
+
string | ObjectCallArg | TransactionArgument,
|
|
312
|
+
bigint | TransactionArgument,
|
|
313
|
+
bigint | TransactionArgument
|
|
314
|
+
]): TransactionArgument & [
|
|
315
|
+
TransactionArgument,
|
|
316
|
+
TransactionArgument,
|
|
317
|
+
TransactionArgument
|
|
318
|
+
];
|
|
319
|
+
function toAscii(tx: TransactionBlock, args: [string | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
320
|
+
function tryUtf8(tx: TransactionBlock, args: [(string | ObjectCallArg)[] | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
321
|
+
function utf8(tx: TransactionBlock, args: [(string | ObjectCallArg)[] | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
322
|
+
}
|
|
323
|
+
namespace view {
|
|
324
|
+
function append(client: SuiClient, args: [
|
|
325
|
+
string | ObjectCallArg | TransactionArgument,
|
|
326
|
+
string | TransactionArgument
|
|
327
|
+
]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
328
|
+
function appendUtf8(client: SuiClient, args: [
|
|
329
|
+
string | ObjectCallArg | TransactionArgument,
|
|
330
|
+
(string | ObjectCallArg)[] | TransactionArgument
|
|
331
|
+
]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
332
|
+
function bytes(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
333
|
+
function fromAscii(client: SuiClient, args: [ascii.String | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
334
|
+
function indexOf(client: SuiClient, args: [
|
|
335
|
+
string | ObjectCallArg | TransactionArgument,
|
|
336
|
+
string | ObjectCallArg | TransactionArgument
|
|
337
|
+
]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
338
|
+
function insert(client: SuiClient, args: [
|
|
339
|
+
string | ObjectCallArg | TransactionArgument,
|
|
340
|
+
bigint | TransactionArgument,
|
|
341
|
+
string | TransactionArgument
|
|
342
|
+
]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
343
|
+
function isEmpty(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
344
|
+
function length(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
345
|
+
function subString(client: SuiClient, args: [
|
|
346
|
+
string | ObjectCallArg | TransactionArgument,
|
|
347
|
+
bigint | TransactionArgument,
|
|
348
|
+
bigint | TransactionArgument
|
|
349
|
+
]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
350
|
+
function toAscii(client: SuiClient, args: [string | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
351
|
+
function tryUtf8(client: SuiClient, args: [(string | ObjectCallArg)[] | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
352
|
+
function utf8(client: SuiClient, args: [(string | ObjectCallArg)[] | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
export declare namespace type_name {
|
|
356
|
+
interface TypeName {
|
|
357
|
+
name: ascii.String;
|
|
358
|
+
}
|
|
359
|
+
namespace TypeName {
|
|
360
|
+
const TYPE_QNAME = "0x1::type_name::TypeName";
|
|
361
|
+
function type(): TypeDescriptor<TypeName>;
|
|
362
|
+
}
|
|
363
|
+
interface TypeNameInstance extends TypedEventInstance<TypeName> {
|
|
364
|
+
data_decoded: TypeName;
|
|
365
|
+
type_arguments: [];
|
|
366
|
+
}
|
|
367
|
+
namespace builder {
|
|
368
|
+
function borrowString(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
369
|
+
function get<T0 = any>(tx: TransactionBlock, args: [], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [];
|
|
370
|
+
function getAddress(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
371
|
+
function getModule(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
372
|
+
function intoString(tx: TransactionBlock, args: [type_name.TypeName | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
373
|
+
}
|
|
374
|
+
namespace view {
|
|
375
|
+
function borrowString(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
376
|
+
function get<T0 = any>(client: SuiClient, args: [], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
377
|
+
function getAddress(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
378
|
+
function getModule(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
379
|
+
function intoString(client: SuiClient, args: [type_name.TypeName | TransactionArgument]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
export declare namespace vector {
|
|
383
|
+
namespace builder {
|
|
384
|
+
function append<T0 = any>(tx: TransactionBlock, args: [
|
|
385
|
+
string | ObjectCallArg | TransactionArgument,
|
|
386
|
+
(string | ObjectCallArg)[] | TransactionArgument
|
|
387
|
+
], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
388
|
+
function borrow<T0 = any>(tx: TransactionBlock, args: [
|
|
389
|
+
string | ObjectCallArg | TransactionArgument,
|
|
390
|
+
bigint | TransactionArgument
|
|
391
|
+
], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
392
|
+
function borrowMut<T0 = any>(tx: TransactionBlock, args: [
|
|
393
|
+
string | ObjectCallArg | TransactionArgument,
|
|
394
|
+
bigint | TransactionArgument
|
|
395
|
+
], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
396
|
+
function contains<T0 = any>(tx: TransactionBlock, args: [
|
|
397
|
+
string | ObjectCallArg | TransactionArgument,
|
|
398
|
+
string | ObjectCallArg | TransactionArgument
|
|
399
|
+
], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
400
|
+
function destroyEmpty<T0 = any>(tx: TransactionBlock, args: [(string | ObjectCallArg)[] | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
401
|
+
function empty<T0 = any>(tx: TransactionBlock, args: [], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [];
|
|
402
|
+
function indexOf<T0 = any>(tx: TransactionBlock, args: [
|
|
403
|
+
string | ObjectCallArg | TransactionArgument,
|
|
404
|
+
string | ObjectCallArg | TransactionArgument
|
|
405
|
+
], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
406
|
+
function insert<T0 = any>(tx: TransactionBlock, args: [
|
|
407
|
+
string | ObjectCallArg | TransactionArgument,
|
|
408
|
+
T0 | TransactionArgument,
|
|
409
|
+
bigint | TransactionArgument
|
|
410
|
+
], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [
|
|
411
|
+
TransactionArgument,
|
|
412
|
+
TransactionArgument,
|
|
413
|
+
TransactionArgument
|
|
414
|
+
];
|
|
415
|
+
function isEmpty<T0 = any>(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
416
|
+
function length<T0 = any>(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
417
|
+
function popBack<T0 = any>(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
418
|
+
function pushBack<T0 = any>(tx: TransactionBlock, args: [
|
|
419
|
+
string | ObjectCallArg | TransactionArgument,
|
|
420
|
+
T0 | TransactionArgument
|
|
421
|
+
], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
422
|
+
function remove<T0 = any>(tx: TransactionBlock, args: [
|
|
423
|
+
string | ObjectCallArg | TransactionArgument,
|
|
424
|
+
bigint | TransactionArgument
|
|
425
|
+
], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
426
|
+
function reverse<T0 = any>(tx: TransactionBlock, args: [string | ObjectCallArg | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
427
|
+
function singleton<T0 = any>(tx: TransactionBlock, args: [T0 | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
428
|
+
function swap<T0 = any>(tx: TransactionBlock, args: [
|
|
429
|
+
string | ObjectCallArg | TransactionArgument,
|
|
430
|
+
bigint | TransactionArgument,
|
|
431
|
+
bigint | TransactionArgument
|
|
432
|
+
], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [
|
|
433
|
+
TransactionArgument,
|
|
434
|
+
TransactionArgument,
|
|
435
|
+
TransactionArgument
|
|
436
|
+
];
|
|
437
|
+
function swapRemove<T0 = any>(tx: TransactionBlock, args: [
|
|
438
|
+
string | ObjectCallArg | TransactionArgument,
|
|
439
|
+
bigint | TransactionArgument
|
|
440
|
+
], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
441
|
+
}
|
|
442
|
+
namespace view {
|
|
443
|
+
function append<T0 = any>(client: SuiClient, args: [
|
|
444
|
+
string | ObjectCallArg | TransactionArgument,
|
|
445
|
+
(string | ObjectCallArg)[] | TransactionArgument
|
|
446
|
+
], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
447
|
+
function borrow<T0 = any>(client: SuiClient, args: [
|
|
448
|
+
string | ObjectCallArg | TransactionArgument,
|
|
449
|
+
bigint | TransactionArgument
|
|
450
|
+
], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
451
|
+
function borrowMut<T0 = any>(client: SuiClient, args: [
|
|
452
|
+
string | ObjectCallArg | TransactionArgument,
|
|
453
|
+
bigint | TransactionArgument
|
|
454
|
+
], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
455
|
+
function contains<T0 = any>(client: SuiClient, args: [
|
|
456
|
+
string | ObjectCallArg | TransactionArgument,
|
|
457
|
+
string | ObjectCallArg | TransactionArgument
|
|
458
|
+
], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
459
|
+
function destroyEmpty<T0 = any>(client: SuiClient, args: [(string | ObjectCallArg)[] | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
460
|
+
function empty<T0 = any>(client: SuiClient, args: [], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
461
|
+
function indexOf<T0 = any>(client: SuiClient, args: [
|
|
462
|
+
string | ObjectCallArg | TransactionArgument,
|
|
463
|
+
string | ObjectCallArg | TransactionArgument
|
|
464
|
+
], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
465
|
+
function insert<T0 = any>(client: SuiClient, args: [
|
|
466
|
+
string | ObjectCallArg | TransactionArgument,
|
|
467
|
+
T0 | TransactionArgument,
|
|
468
|
+
bigint | TransactionArgument
|
|
469
|
+
], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
470
|
+
function isEmpty<T0 = any>(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
471
|
+
function length<T0 = any>(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
472
|
+
function popBack<T0 = any>(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
473
|
+
function pushBack<T0 = any>(client: SuiClient, args: [
|
|
474
|
+
string | ObjectCallArg | TransactionArgument,
|
|
475
|
+
T0 | TransactionArgument
|
|
476
|
+
], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
477
|
+
function remove<T0 = any>(client: SuiClient, args: [
|
|
478
|
+
string | ObjectCallArg | TransactionArgument,
|
|
479
|
+
bigint | TransactionArgument
|
|
480
|
+
], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
481
|
+
function reverse<T0 = any>(client: SuiClient, args: [string | ObjectCallArg | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
482
|
+
function singleton<T0 = any>(client: SuiClient, args: [T0 | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
483
|
+
function swap<T0 = any>(client: SuiClient, args: [
|
|
484
|
+
string | ObjectCallArg | TransactionArgument,
|
|
485
|
+
bigint | TransactionArgument,
|
|
486
|
+
bigint | TransactionArgument
|
|
487
|
+
], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
488
|
+
function swapRemove<T0 = any>(client: SuiClient, args: [
|
|
489
|
+
string | ObjectCallArg | TransactionArgument,
|
|
490
|
+
bigint | TransactionArgument
|
|
491
|
+
], typeArguments: [TypeDescriptor<T0> | string]): Promise<import("@mysten/sui.js/dist/cjs/client").DevInspectResults>;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
export declare function loadAllTypes(coder: MoveCoder): void;
|
|
495
|
+
//# sourceMappingURL=0x1.d.ts.map
|