Anna Shaleva
884428ab93
cli: add 'jump' command
...
Close #2606 .
2022-10-13 16:07:34 +03:00
Anna Shaleva
811e09675f
cli: simplify VM preparation for VM CLI
...
Load script from provided transaction if so.
2022-10-13 16:07:34 +03:00
Anna Shaleva
d09a0c18a7
cli: unify signers parsing
...
Share signers parsing code between 'contract invokefunction' and
'vm load*' commands, quite a useful thing when it comes to witness
checks.
2022-10-13 16:07:34 +03:00
Anna Shaleva
7eb87afab8
cli: unify parameters parsing
...
Share parameters parsing code between 'contract invokefunction' and
'vm run' commands. It allows VM CLI to parse more complicated parameter
types including arrays and file-backed bytestrings.
2022-10-13 08:20:27 +03:00
Anna Shaleva
3fba4e4f17
cli: support 'loaddeployed' VM CLI command
2022-10-12 14:57:13 +03:00
Anna Shaleva
9977606e40
cli: support 'loadtx' VM CLI command
2022-10-12 14:57:10 +03:00
Roman Khimov
4d2afa2624
cli/vm: use ParseInt to properly (and easily) check for int32
2022-10-07 17:10:04 +03:00
Anna Shaleva
eac5e1526e
cli: rename VMCLI to CLI
2022-10-07 15:57:33 +03:00
Anna Shaleva
16f5ae3812
cli: add upper bound check for contract ID for 'storage' VM CLI cmd
2022-10-07 15:57:33 +03:00
Anna Shaleva
95cbddf19e
cli: use custom logger to filter out runtime.Log messages
...
```
anna@kiwi:~/Documents/GitProjects/nspcc-dev/neo-go$ ./bin/neo-go vm -p
_ ____________ __________ _ ____ ___
/ | / / ____/ __ \ / ____/ __ \ | | / / |/ /
/ |/ / __/ / / / /_____/ / __/ / / /____| | / / /|_/ /
/ /| / /___/ /_/ /_____/ /_/ / /_/ /_____/ |/ / / / /
/_/ |_/_____/\____/ \____/\____/ |___/_/ /_/
NEO-GO-VM > loadgo ./1-print/1-print.go
READY: loaded 21 instructions
NEO-GO-VM 0 > run
2022-10-07T15:28:20.461+0300 INFO runtime log {"tx": "", "script": "db03ceb3f672ee8cd0d714989b4d103ff7eed2f3", "msg": "Hello, world!"}
[]
```
2022-10-07 15:57:33 +03:00
Anna Shaleva
b3c8192d2e
cli: add 'changes' command for VM CLI
2022-10-07 15:57:31 +03:00
Anna Shaleva
cac4f6a4a6
cli: allow to dump storage diff for 'storage' VM CLI command
2022-10-07 15:56:34 +03:00
Anna Shaleva
8c78177806
vm: add 'storage' VM CLI command to dump storage items
...
Another nice one, very useful for debugging.
2022-10-07 15:56:34 +03:00
Anna Shaleva
ff03c33e6d
vm: allow historic calls inside VM CLI
2022-10-07 15:56:34 +03:00
Anna Shaleva
79e13f73d8
core, rpc: move getFakeNextBlock to Blockchain
...
It's needed for VM CLI as far and may be improved later.
2022-10-07 15:56:34 +03:00
Anna Shaleva
0036c89d63
vm: add 'env' command showing state of the blockchain-backed VM CLI
...
A useful one.
2022-10-07 15:56:34 +03:00
Anna Shaleva
f1ecdb82cc
vm: add 'events' command to VM CLI
...
And dump events automatically after HALTed or FAULTed end of execution.
2022-10-07 15:56:34 +03:00
Anna Shaleva
33ae8d0ddc
vm: clear manifest on VM CLI reset
...
Fix the bug when outdated manifest was stored after new program was loaded.
2022-10-07 15:56:34 +03:00
Anna Shaleva
513821cfff
vm: allow to provide state for VM CLI
...
Close #2528 .
Also, add new simple testchain as an analogue for basicchain.
2022-10-07 15:56:34 +03:00
Anna Shaleva
0b717b0c22
vm: move vm CLI to cli/vm package
2022-10-07 15:56:34 +03:00