Skip to content

Commit 2493a9b

Browse files
Oxydixigitbook-bot
authored andcommitted
GITBOOK-44: Added wasm instr and some fix
1 parent b55b6e9 commit 2493a9b

2 files changed

Lines changed: 23 additions & 21 deletions

File tree

docs/how-to-deploy-a-multisig-wallet.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,7 @@ description: Create a Multisig wallet with TVM CLI
66

77
## Prerequisites <a href="#create-a-wallet" id="create-a-wallet"></a>
88

9-
* latest Rust release&#x20;
10-
* cargo
11-
12-
## **Build and install CLI tool** <a href="#create-a-wallet" id="create-a-wallet"></a>
13-
14-
<pre><code>cd ~
15-
git clone https://github.com/tvmlabs/tvm-sdk
16-
<strong>cd tvm-sdk
17-
</strong>cargo install --path tvm_cli --force
18-
</code></pre>
19-
20-
The path to the `tvm-cli` is now publicly accessible. You can also add it to your environment variables (ENVs).
21-
22-
`export PATH=$PATH:~/tvm-sdk/target/release`
9+
* [tvm-cli](https://github.com/tvmlabs/tvm-sdk/releases)
2310

2411
## **Prepare wallet binary and ABI** <a href="#create-a-wallet" id="create-a-wallet"></a>
2512

docs/vm-instructions/acki-nacki-vm-instructions.md

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# Gosh VM Instructions
2-
3-
1+
# Acki Nacki VM Instructions
42

53
## MINTECC (C726)
64

@@ -34,7 +32,7 @@ Mint some VMSHELL tokens, allowed by available credit in Dapp Config for this Da
3432
Input: amount of nanoVMSHELL to mint
3533
```
3634

37-
[link to the opcode](https://github.com/tvmlabs/tvm-sdk/blob/a58e859e68e14a17a8acd2f142d260127a0a3f2d/tvm_assembler/src/simple.rs#L842)
35+
[link to the opcode](https://github.com/tvmlabs/tvm-sdk/blob/main/tvm_assembler/src/simple.rs#L842)
3836

3937
## CALCBKREWARD (С729)
4038

@@ -50,7 +48,7 @@ Input: params of bkroot state:
5048
uint128 epochDuration
5149
```
5250

53-
[link to the opcode](https://github.com/tvmlabs/tvm-sdk/blob/a58e859e68e14a17a8acd2f142d260127a0a3f2d/tvm_assembler/src/simple.rs#L843)
51+
[link to the opcode](https://github.com/tvmlabs/tvm-sdk/blob/main/tvm_assembler/src/simple.rs#L843)
5452

5553
## CALCMINSTAKE (С730)
5654

@@ -64,7 +62,7 @@ Input: params of bkroot state:
6462
uint128 numberOfNeededActiveBlockKeeper
6563
```
6664

67-
[link to the opcode](https://github.com/tvmlabs/tvm-sdk/blob/a58e859e68e14a17a8acd2f142d260127a0a3f2d/tvm_assembler/src/simple.rs#L844)
65+
[link to the opcode](https://github.com/tvmlabs/tvm-sdk/blob/main/tvm_assembler/src/simple.rs#L844)
6866

6967
## VERGRTH16 (С731)
7068

@@ -107,4 +105,21 @@ Outputs:
107105
```
108106

109107
Note: There is: zkaddr = Poseidon(JWT.stable\_id, JWT.iss, User salt password), where JWT.stable\_id and User salt password are secrets. ephimeral\_pub\_key is a temporary key that will be used sign transactions (i.e. the related secret key) till Unix timestamp max\_epoch (ephimeral\_pub\_key is embedded into JWT.nonce and JWT is a kind of TLS certificate for ephimeral\_pub\_key). modulus is RSA JWK public fresh modulus published by OpenId provider (the JWK is used to sign JWT tokens). iss\_base\_64, index\_mod\_4 is JWT public data describing OpenId provider. header\_base\_64 is JWT public data containing “kid” (key id) of JWK.\
110-
[link to the opcode](https://github.com/tvmlabs/tvm-sdk/blob/vrgth_fixes_and_tests/tvm_assembler/src/simple.rs#L846)
108+
[link to the opcode](https://github.com/tvmlabs/tvm-sdk/blob/main/tvm_assembler/src/simple.rs#L846)
109+
110+
## RUNWASM
111+
112+
Instruction allows arbitrary pre-compiled wasm code to be executed directly by the node.
113+
114+
```
115+
Input:
116+
wasmHash,
117+
wasmArgs,
118+
wasmFunction,
119+
wasmModule,
120+
wasmBinary
121+
```
122+
123+
\
124+
You can find official documentation [here](https://github.com/tvmlabs/tvm-sdk/blob/main/tvm_vm/WASM.md) and example project [here](https://github.com/tvmlabs/tvm-sdk/blob/main/examples/wasm/WASM_EXAMPLES.md)\
125+
[link to the opcode](https://github.com/tvmlabs/tvm-sdk/blob/main/tvm_assembler/src/simple.rs#L853)

0 commit comments

Comments
 (0)