Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@espresso-org/aragon-comments
Advanced tools
Readme
Aragon Comments
offers an easy way for developers to integrate discussion threads to their Aragon app.
npm install --save @espresso-org/aragon-comments
HasComments
solidity smart contract.import "@espresso-org/aragon-comments/contracts/HasComments.sol";
contract MyApp is HasComments, AragonApp {
...
}
postComment
function to your smart contract. This function lets you write custom validation logic on the author and message content before posting a comment to a discussion thread.contract MyApp is HasComments, AragonApp {
function postComment(string comment, string threadName) public {
aragonComments.postComment(comment, msg.sender, threadName);
}
}
CommentThread
react component to your javascript frontend.import { CommentThread } from '@espresso-org/aragon-comments'
class App extends React.Component {
render () {
return (
<div>
...
<CommentThread
aragonApp={this.props.app}
thread="my-comment-thread"
/>
</div>
)
}
}
Aragon Comments
app to your DAO.aragon dao install <dao address> aragon-comments
FAQs
Add comments to any Aragon app
The npm package @espresso-org/aragon-comments receives a total of 8 weekly downloads. As such, @espresso-org/aragon-comments popularity was classified as not popular.
We found that @espresso-org/aragon-comments demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.