Welcome to our Basic referral feature for Sustainations DAO project and to the internet computer development community.
💚 SUSTAINATIONS is a global private community of change-makers, founders, farmers, and builders who work together to write a greener future for our community and the Earth.
Verify the following before running this demo:
-
Install DFX 0.12.0
DFX_VERSION=0.12.0 sh -ci "$(curl -fsSL https://smartcontracts.org/install.sh)"
-
Install vessel: https://github.com/dfinity/vessel
-
To run the test scripts, you need to download ic-repl.
-
Start a local internet computer.
dfx start
-
Open a new terminal window.
-
Create test identities
$ dfx identity new Alice --disable-encryption; dfx identity use Alice; export ALICE=$(dfx identity get-principal); $ dfx identity new Bob --disable-encryption; dfx identity use Bob; export BOB=$(dfx identity get-principal);
-
Deploy canisters
$ ./scripts/deploy_local.sh $ export BASIC_REFERRAL=$(dfx canister id backend);
-
Run the
ic-repl
test script.ic-repl scripts/referral.test.sh