wasm
deepmove
use wasm
as its underlying core tech to interact with move vm
locally.
therefor, it will be quite easy and convenient to test move codes using typescript and clone on chain move modules to run in local move env
Install
bash
pnpm add -d @deepmove/sui
bash
npm install --save @deepmove/sui
bash
yarn add @deepmove/sui
bash
bun install @deepmove/sui
new_wasm
new deepmove
wasm client it will get SuiWasm typescript object
typescript
import { new_wasm } from '@deepmove/sui';
let wasm = new_wasm();
get_wasm
get deepmove
wasm client
typescript
import { get_wasm } from '@deepmove/sui';
let wasm = get_wasm();
new_move_gen
new deepmove
MoveGen
it will get MoveGen typescript object
typescript
import { new_move_gen } from '@deepmove/sui';
let move_gen = new_move_gen();
get_move_gen
get deepmove
MoveGen
typescript
import { get_move_gen } from '@deepmove/sui';
let move_gen = get_move_gen();
refresh_vm
refresh deepmove
wasm move vm core runtine
typescript
import { refresh_vm } from '@deepmove/sui';
refresh_vm();
new_sui_client
new SuiClient
typescript
import { new_sui_client } from "@deepmove/sui";
let client = new_sui_client();
sign_execute_transaction
sign and execute sui ptb transaction
typescript
import { sign_execute_transaction } from "@deepmove/sui";
let client = new_sui_client();
const tx = new Transaction();
const result = await sign_execute_transaction(client, tx);