Created
November 11, 2017 13:29
-
-
Save termslang/d2f3490755376ed00f92b437210e9413 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.9; | |
contract Publication { | |
address public author; | |
address[] public sources; | |
address[] public referrers; | |
address[] public positive_reviews; | |
address[] public negative_reviews; | |
function Publication(string weblink, address[] sources) { | |
} | |
function rating() constant returns (uint256 rating) { | |
} | |
} | |
contract Publisher { | |
address[] authors; | |
event Published(address newAddr, string weblink); | |
function Publisher() { | |
} | |
function publish(string weblink, address[] sources) returns (address publication) { | |
address newPublication = new Publication(weblink, sources); | |
return newPublication; | |
Published(newPublication, weblink); | |
} | |
function addPositiveReview(string weblink, address publication) { | |
} | |
function addNegativeReview(string weblink, address publication) { | |
} | |
function rationgOf(address author) { | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment