Crates.io | oracle-soroban-kit |
lib.rs | oracle-soroban-kit |
version | 0.1.11 |
source | src |
created_at | 2023-12-21 12:50:33.982037 |
updated_at | 2024-02-28 17:43:23.312491 |
description | Demo oracle soroban smart contract for soroban-kit. |
homepage | |
repository | https://github.com/fredericrezeau/soroban-kit |
max_upload_size | |
id | 1076851 |
size | 9,568 |
This crate is part of soroban-kit
: Github | crates.io.
oracle-soroban-kit
implements a simple demo oracle broker charging a fee from subscribers for each data request. It uses the oracle
feature in soroban-kit
.
soroban-kit
is designed for compactness, focusing on slim constructs. It is built on Rust's dependency-free core
library and the soroban-sdk
. All modules are feature-gated, offering you the flexibility to compile only the components essential for your project.
Take a look at Litemint Smart Contracts to see an integration of the library in real-world smart contracts.
Building the Contract:
soroban contract build
Running Tests:
cargo test -- --nocapture
Deploying to Testnet:
soroban contract deploy --wasm target/wasm32-unknown-unknown/release/hello_soroban_kit.wasm --rpc-url https://soroban-testnet.stellar.org:443 --network-passphrase "Test SDF Network ; September 2015" --source ACCOUNT
output > CONTRACT_ID
Invoking the contract:
Publish data
soroban contract invoke --id CONTRACT_ID --source ACCOUNT --rpc-url https://soroban-testnet.stellar.org:443 --network-passphrase "Test SDF Network ; September 2015" -- publish --publisher ACCOUNT --topic 00 --data 00
output > TODO
Contributions are welcome! If you have a suggestion that would make this better, please fork the repo and create a pull request.
soroban-kit
is licensed under the MIT License. See LICENSE for more details.
For inquiries or collaborations:
Fred Kyung-jin Rezeau - @FredericRezeau