A collection of Ethereum smart contracts to be used on the Viewly platform.
VideoPublisher acts as a gatekeeper to making videos public on Viewly.
Users need to pay a small fee in VIEW Tokens to have their videos published.
The fee can be changed at any time by changing VideoPublisher.price
, however the fee change does
not impact already published videos.
Published videos receive the following perks:
- Backup, storage and retreival of original video files on the IPFS network
- Future re-transcoding for higher visual fidelity when new encoders become available (VP9, AV1)
- Unlimited streaming from Viewly's CDN
- Public Listing on Viewly (Alpha)
NameRegistrar is the contract for registering (brand) names on Viewly. The brand names proxy (point to) an arbitrary channel on Viewly, as set by the transient owner.
eg:
view.ly/<name>
view.ly/apple
view.ly/pewdiepie
In an effort to prevent name-squatting, the names on Viewly cannot be permanently owned. Rather, names have transient owners, where a user who stakes the most tokens behind a name, has control over said name. If another user stakes more tokens than the current transient owner, he/she will become a new transient owner after the challenge period.
Users can withdraw their stake from a name at any-time, and can withdraw all of the staked tokens after a withdraw period is over.
The withdraw period has to be longer than the challenge period, such that the users cannot hijack the names by repeated stake/unstake behavior. Further, the challenge period only resets when the staking action has potential transient ownership consequences.
Exhibit A
1.) A name-squatter or an impostor stakes 10 VIEW behind view.ly/pewdiepie
.
2.) The real pewdiepie joins Viewly. His brand name is worth more to him, so he stakes 1,000 VIEW behind view.ly/pewdiepie
. During the challenge period, the impostor can engage in a bidding war. However the brand is more valuable to the legitimate brand owner, and as such, he is more likely to stake more.
3.) After the challenge period, the highest stakeholder (assuming pewdiepie) wins the control of the name, and sets view.ly/pewdiepie
to point to view.ly/c/<real-pewdiepie-channel-id>
.
Exhibit B
Sometimes names have long term interests from multiple users, or groups of users. Sometimes the interests of said users/groups shift with passing of time. An example of such name would be bitcoin
or view.ly/bitcoin
. In the traditional domain name registration system, an early stakeholder (initial buyer of the domain) could acquire the name for cheap, and remain in control despite the value and interest in such name increasing in orders of magnitude.
The flexibility of the Transient Ownership system allows for the ownership (control) over a name to change over time, based on free market forces. No capital is destroyed in the process, since tokens are merely locked up (not spent or destroyed), and can be withdrawn at any time in full.
Edge Case Limitations
a.) A sufficiently wealthy user stakes a large amount of tokens behind a name X. Assuming a condition where user dies, and/or if his keys are permanently lost, the name might remain locked forever, if the amount of tokens staked surpasses name's practical utility value. Adding an expiry or TTL to active stakes would remedy this inefficiency, at the expense of some inconvenience to all users.
b.) A malicious and sufficiently wealthy user could acquire control of valuable brand names, and demand a ransom or a "fee" for unstaking, and releasing control to the brand owner, assuming that the ransom is sufficient to offset the negative effects of such behavior on the value of the locked stake. If this edge case materializes as a systemic problem, this contract could be improved by adding identity oracles and offsetting the amplitude of locked stake on the transient ownership.
VotingStakeDelegator allows VIEW Token holders to delegate the voting power belonging to their tokens to another Ethereum account, while keeping the tokens in their wallet. This is useful for two purposes:
a.) Security. Allowing users to delegate their voting power to a convenient hot wallet - such as Metamask running in the browser - while keeping the tokens safe in cold storage.
b.) Liquid Democracy. Stakeholders whom chose to abstain from participation in governance or distribution game voting may delegate their voting power to others, and enable a form of liquid democracy. Ideally, individuals posessing good intent, skill and effort would be the beneficiaries of the delegation.
All contracts in this repository have an option of setting an authority, such that the authority would have the ability of changing some contract parameters.
Once an appropriate governance model is found, the ownership of the contracts owners should be revoked, and the governance contract should become the new authority.
This would enable the community and/or stakeholders to propose parameter changes and apply/reject those changes based on some - currently undefined - governance process.
- ViewToken
- VideoPublisher (deprecated)
- VideoPublisher 2.0
- VotingStakeDelegator