| Crates.io | ceres-cli |
| lib.rs | ceres-cli |
| version | 0.2.0 |
| created_at | 2021-06-14 07:54:02.625798+00 |
| updated_at | 2021-08-02 09:50:28.93556+00 |
| description | Run ink! contract in command line! |
| homepage | |
| repository | https://github.com/patractlabs/ceres |
| max_upload_size | |
| id | 409847 |
| size | 63,442 |
Run ink! contract anywhere.
This Ceres CLI can be installed on Linux and macOS with a small install script:
$ cargo install --git https://github.com/patractlabs/ceres --bin ceres
ceres 0.2.0
Ceres command tool
USAGE:
ceres [*.contract | name | code-hash] <SUBCOMMAND>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
ARGS:
<*.contract | name | code-hash> If empty, ceres will load the last contract which has been executed
SUBCOMMANDS:
call Calls a call method
deploy Calls a deploy method
help Prints this message or the help of the given subcommand(s)
info Prints info of *.contract
list Lists all contracts
$ ceres flipper.contract deploy default
Deploy contract succeed!
$ ceres list
contract code-hash
---------------------------------------------------------------------------------------
flipper 0x97994513522c4cdf681c3377ef043ccefd865df0bd3ce86c599aab7b23de211f
$ ceres info
name: flipper
code_hash: 0x97994513522c4cdf681c3377ef043ccefd865df0bd3ce86c599aab7b23de211f
contructors:
- default [ ]
- new [ bool ]
methods:
- flip [ ]
- get [ ]
$ ceres call get
result: [0]
$ ceres call flip
result: []
$ ceres call get
result: [1]
Ceres is an independent ink! contract environment, the runtime of Ceres
supports both wasmtime and wasmi, with the wasmi feature of Ceres, you
can run your ink! contract anywhere, even in the browser.
Apache-2.0