Skip to content

v26-solutions/raas-dapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Referrals-as-a-Service (RaaS) dApp

Overview

Hook into a network-wide referral program.

For Contract Developers

Register your dApp with the service to incentivise 'Referrers' (e.g. web apps, telegram bots) to interface with your contract.

You specify what percentage of contract premiums to share with any referrers.

This will drive traffic to your service while also making it more resilient with multiple, independent front-end providers.

Simply add a referral-code field to the messages you wish to incentivise, and forward the code to the RaaS contract when you recieve one of those messages.

For UI/UX & Chat Bot Experts

Register for a referral code and check out which dApps have registered, along with their proposed fee split.

Drive traffic to those dApps to earn those referral rewards.

Also...

This dapp dog foods itself!

Development

❯ : cargo x
Usage: xtask <COMMAND>

Commands:
  coverage  run test coverage
  test      run tests
  dist      compile contracts for distribution
  dev       watch source files and run tests on changes
  install   install used cargo plugins (if not using Nix)
  archway   archway deployment tasks
  help      Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

Cargo will automatically build the xtask binary when you run cargo x for the first time.

Archway

Archway's novel economic model makes this project feasible, with the ability to integrate closely with the network layer and get out of the user's and developer's way.

Currently the project requires the latest main branch of archwayd for the following PRs:

  • Allow contracts to change the metadata of other contracts (of which they are the x/rewards owner). PR #326
  • Contract premiums to be included in rewards records. PR #338

Try it out locally!

With just docker and Rust installed on your system, run the following commands to deploy locally:

# Build the contracts...
❯ : cargo x dist

# Initialise the local archway deployment node
❯ : cargo x archway init-local

# Start the local node in a docker container
❯ : cargo x archway start-local

# In a fresh terminal, deploy the contracts.
# This also runs through a test scenario using the Hub as the test app (remember, it dog foods itself)!
❯ : cargo x archway deploy-local

Releases

No releases published

Packages

No packages published