Skip to content

snarlsas/ocs01-test-6

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ocs01-test

rust cli for testing ocs01 smart contract

what it does

  • tests all ocs01 contract methods
  • interactive menu for easy navigation
  • shows results instantly for view methods
  • handles tx signing for call methods

works on

  • linux
  • macos
  • windows

install rust (if not installed)

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env

build from source

git clone https://github.com/octra-labs/ocs01-test.git
cd ocs01-test
cargo build --release

setup

# copy contract interface
cp EI/exec_interface.json .

required files in same directory

  • wallet.json - create with your credentials
  • exec_interface.json - copy from EI/ folder

run

you must copy the release binary to your cli folder and also copy the EI file (execution interface file) to the same location

the release binary is located in this folder after successful build.

./target/release/ocs01-test

for this task the ei file contains the interface for contract at address octBUHw585BrAMPMLQvGuWx4vqEsybYH9N7a3WNj1WBwrDn, do not modify it

after running, follow the menu to interact with the contract

About

contract pre testing (OCS01 standard)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%