Skip to content

Your toolkit for writing private smart contracts on SkyeKiwi

Notifications You must be signed in to change notification settings

skyekiwi/kiwi-contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KiwiContract

Your toolkit for writing private smart contracts on SkyeKiwi

Commands

yarn random-seed: Generate a random seed and inject it to the .env file. You may use the testnet faucet channel to claim some testnet token.

yarn contract:compile: will compile the WASM contract and output the .wasm file to ./src/res

yarn contract:test: will run offchain Rust tests on the contract file.

yarn chain:create-account: will instruct the blockchain to create an offchain account for you inside the offchain runtime

yarn chain:deploy: will run yarn contract:test, then yarn contract:compile and instruct the blockchain to deploy a smart contract inside the enclave.

yarn chain:interact: will send your customized contract call to chain and parse an outcome summary for you.

Config

The Config file is located at ./scripts/config.mjs

rpcEndpoint: ws://127.0.0.1:9944 for local testnet, wss://staging.rpc.skye.kiwi for the Alpha Public Testnet of SkyeKiwi

contractName: name of the contract

About

Your toolkit for writing private smart contracts on SkyeKiwi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published