A collection of smart contracts used on the iris blockchain.
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:
If your package manager doesn't have binaryen versions >= 99, then:
-
Download the latest version here: https://github.com/WebAssembly/binaryen/releases
-
follow these instrutions to install:
# 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-optVerify the installation by running wasm-opt --version. If the command executes and the printed version matches the downloaded version, then the installation is complete.
cargo +nightly contract buildcargo test 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.
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 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.