https://github.com/wpdas/kibi-greeting-contract
A Smart Contract that works using Kibi Blockchain.
https://github.com/wpdas/kibi-greeting-contract
Last synced: 9 months ago
JSON representation
A Smart Contract that works using Kibi Blockchain.
- Host: GitHub
- URL: https://github.com/wpdas/kibi-greeting-contract
- Owner: wpdas
- Created: 2023-07-08T01:51:11.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-18T15:35:16.000Z (almost 3 years ago)
- Last Synced: 2025-03-02T13:14:46.258Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 242 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Greetings Smart Contract (Kibi)
This is a smart contract that runs inside the [Kibi Blockchain](https://github.com/wpdas/kibi-blockchain).
## How to use
- 1 - Go to [Kibi Blockchain repo](https://github.com/wpdas/kibi-blockchain), clone it;
- 2 - Inside the Kibi Blockchain repo/folder, run `cargo run`;
- 3 - Clone this repo;
- 4 - Inside this repo's folder, run one of the commands below:
Persisting a `greeting`:
```sh
# dev-1234 = the contract id
# set_greeting = is a contract's method
# "Hello from Wendz!" = is the string value to be stored on chain under the contract
cargo run -- call dev-1234 set_greeting "Hello from Wendz!"
```
Viewing the current `greeting`:
```sh
# dev-1234 = the contract id
# greeting = is a contract's field
cargo run -- view dev-1234 greeting
```