Skip to content

btn-group/az_safe_send

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AZ Safe Send

A smart contract for Aleph Zero that enables the safe sending of crypto via a decentralised chequeing (send/collect) system. Also integrates AZERO.ID to provide an optional, extra check by validating that the receiver's wallet address matches a provided AZERO.ID.

Getting Started

Prerequisites

cargo install --force --locked cargo-contract --version 3.2.0

Checking code

cargo checkmate
cargo sort

Testing

Run unit tests

cargo test

Run integration tests

export CONTRACTS_NODE="/Users/myname/.cargo/bin/substrate-contracts-node"
cargo test --features e2e-tests

Deployment

  1. Build contract:
# You may need to run
# chmod +x build.sh f
./build.sh
  1. If setting up locally, start a local development chain.
substrate-contracts-node --dev
  1. Upload, initialise and interact with contract at Contracts UI.

References

  1. https://github.com/btn-group/safe_send
  2. https://github.com/btn-group/az_safe_send
  3. https://github.com/btn-group/squid_safe_send

About

Safe Send smart contract for Aleph Zero

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published