Page cover image

📃Contracts

Some technical description on how Zurf works.

Zurf contracts form the backbone of all the services offered by Zurf, enabling seamless transactions for deploying wav3s. While primarily designed for zurf.social, certain versions of these contracts also function effectively on other social networks.

Its main function is to allow users to deposit budgets in ERC20 tokens and bind them to publications and parameters of web3 social graphs. The contract then pays the users the amount of currency (previously set by the promoter in the wav3) that they earned for engaging with this user's promoted content. Distribution of rewards can be done in two Reward Modes, direct and raffle mode.

There are 4 types of participants that interact with the contract to enable it's economy, each of them executes different functions in the contract, those are: Trigger Functions, Admin Functions, Client App Fees Functions and User Functions.

You can access most of the information about how wav3s are configured by calling mappings and structs in the contract.

You can find the complete source code on our Github.

Last updated