UrsaPolarisRecords / Polaris

A visualized decentralized incentivized music encyclopedia, with tokens awarded to curators and artists, and used for native advertising
Other
6 stars 0 forks source link

Review Music Encyclopedia Smart Contract Design #12

Open UrsaPolarisRecords opened 1 year ago

UrsaPolarisRecords commented 1 year ago

Acceptance Criteria:

Background:

Base operation:

The smart contract is used as an event source for the music encyclopedia database. The database should be able to be reconstructed by replaying each blockchain action, including additions, deletions, and edits, in sequence.

The contract will create a token, maybe called POL or PLR or POLR. In the future, we hope to expand the scope to include another token, to be used to reward artists based on their representation on the graph. However, this is not part of the current scope and is mentioned only to share the north star of the project.

Upon signup, the user stakes a number of EOS sufficient to cover their resource usage.

This contract will allow any person to stake a number of tokens (either native POL or EOS/USDT/?) and then publish a proposed addition to the Polaris Music Encyclopedia. The submission will then enter the queue that waits for other users to stake their own tokens to verify the submission as good or bad data. Each subsequent submission by the user will result in an increase in the required stake.

Bad data is punished by having the submission user's stake slashed, as are verifiers who vote against the consensus result. Original stake and a portion of slashed funds are returned to those verifiers who reached consensus.

Good data is rewarded with the minting of new tokens to be shared between the submitter and the verifiers. Potentially 70% to submitter, 20% to verifiers, and 10% to the team.

Each subsequent token reward diminishes the amount of the next reward, such that if this reward is "R" and the number of previous transactions is "t", R = log(t) / t . This formula is based on Metcalfe's law of network growth (n)(log(n)) combined with the inverse square law 1/n^2.

Front-end interaction:

Front end consists of a graph visualization displaying nodes and edges representing the relationships between musical artists, as well as a text sidebar that displays information about the selected node. It also includes a submission form for adding new data.

State Needs

The contract must keep the following in its global state:

The contract must keep the following data in state for each account:

The contract must keep the following data in state for each submitted data item, temporarily, until the data is verified by a supermajority after 10 days:

More detailed explorations and explanations are in the pseudocode for the smart contract https://github.com/UrsaPolarisRecords/Polaris/blob/main/eosSmartContractPSEUDO.md as well as in the rudimentary initial smart contract https://github.com/UrsaPolarisRecords/Polaris/blob/main/ursa.cpp