Skip to content

This is a CosmWasm! smartcontract implementing a p2p delivery logic.

License

Notifications You must be signed in to change notification settings

bsn-si/figaro-contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disclaimer

💀 This is a Work in Progress.
Current status: Common PoC data storage and methods available. Partially tested.
Use at your own risk.

🔑 ✨ Figaro 📦 👛

This is a CosmWasm! smartcontract implementing a p2p delivery logic.
With this contract you can create a delivery request worth an amount of tokens based on cw20 for Cosmos blockchain users.

Related repositories

Design and features

  • The contract works on the principle of mutual deposit.
  • Verification is based on a signature with a secp256k1 secret key, which a sender gives to the recipient who receives the package.
  • None of the parties can withdraw the deposit before the contract terms execution, or an expiration of obligations.

How to

Install Prerequisites

Please follow installation instructions provided here. Also we have a simple helper script to configure wasmd here.

Clone this repo

git clone https://github.com/bsn-si/figaro-contract

Build Contract + metadata

cd figaro-contract/
RUSTFLAGS='-C link-arg=-s' cargo wasm

Example usage

Please use our CLI to interact with the contract, or use original wasmd query command.

Related repos

License

Apache License 2.0 © Bela Supernova (bsn.si)