/referral-system-contracts

Primary LanguageTypeScriptGNU Affero General Public License v3.0AGPL-3.0

Referral Token System

Demo Implenetation of a Referral System within a Hooked MultiToken Bridge between EVM-compatible networks, based directly on the erc20 token bridge.

Protocols

Currently Supports TIP4.1

Docs

See basic overview on Referral System

Development

DevContainer in VsCode:

Local:

Tests

# Install Dependencies
npm install
# Run Local Node
docker run -d --name local-node -e USER_AGREEMENT=yes -p80:80 tonlabs/local-node
# Run Tests
npx locklift test --network local

Deployment

# Deploy RefFactory 
npx locklift run --script scripts/1-deploy-ref-factory.ts --network main