Skip to content

driemworks/contracts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Iris Contracts

Built with ink!

A collection of smart contracts used on the iris blockchain.

Setup

Follow the ink! documentation for a complete guide on getting started.

To compile a wasm blob and metadata for a contract, navigate to the contract's root directory and run:

Note on Binaryen/wasm-opt

If your package manager doesn't have binaryen versions >= 99, then:

# unzip the tarball
sudo tar xzvf binaryen-version_100-x86_64-linux.tar.gz
# update permissions
chmod +x binaryen-version_100
# move to /opt
sudo mv binaryen-version_100 /opt/
# navigate to /opt
cd /opt
# make it executable
chmod +x binaryen-version_100
# add symbolic link to /usr/bin
sudo ln -s /opt/binaryen-version_100/bin/wasm-opt /usr/bin/wasm-opt

Verify the installation by running wasm-opt --version. If the command executes and the printed version matches the downloaded version, then the installation is complete.

Build

cargo +nightly contract build

Test

cargo test 

Deployment

The simplest method to deploy contracts is to use the polkadot.js ui. After starting an Iris node, navigate to the contracts tab and follow the instructions here.

Contracts

Iris Asset Exchange

A decentralized marketplace for exchanging tokens for assets. That is, a marketplace for buying and selling access to and ownership of data.

Composable Access Rules

Composable Access Rules is a set of contracts that data owners can use to configure additional business logic that must be executed before consumers can access data. These contracts execute when a consumer (token holder) requests data from the network. Rules include contracts such as a "single use" for an owned asset, or placing expiration dates on assets.

About

Smart contracts used in the iris blockchain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 65.2%
  • Makefile 34.0%
  • Other 0.8%