
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
distense-contracts
Advanced tools
Distense is a decentralized code cooperative: a company without executives, offices, meetings and bosses. Every contributor to Distense earns DID, an Ethereum token. There's no ICO, but code contributors may invest small amounts, initially. Hodlers of DID govern Distense on a one-vote-per-DID basis.
npm inpm test (if this fails make sure you don't have another testrpc shell running)Once you get past the initial code->testing phase and want to view your changes in the UI
ganache, an application that is a local Ethereum testnet: Download the appropriate version from here: https://github.com/trufflesuite/ganache/releasesnpm run migrateLocalgit clone https://github.com/Distense/distense-uicd distense-uinpm installrm -r node_modules/distense-contracts.sudo ln ~/distense-contracts ~/distense-ui/node_modulesnpm run startThe following is an overview of how Distense's smart contracts are structured.
addTask (Tasks.sol)taskRewardVote (Tasks.sol)addTask and taskRewardVote are found here.
taskRewardVote is so long because we effectively house the modifiers in this function within it to minimize the size of the call stack which would exceed the limits if we didn't use require statements here.distense.getParameterValueByTitle(distense.numDIDRequiredToTaskRewardVoteParameterTitle())); quite a few times.TENTATIVE, DETERMINED, and PAID. Each task at the time of creation will be TENTATIVE. We default the reward to 100 initially, because we can't loop really in Solidity. Tasks become DETERMINED when enough holders of DID vote on the task reward. Tasks are PAID after a pullRequest is submitted and enough DID holders vote to approve them.addPullRequest and approvePullRequestapprovePullRequest -- in other words when enough DID holders have voted to approve a pull request. There are no votes against pull requests, at least not nowIn both PullRequests.sol and Tasks.sol, we have lists of the tasks ids and pullRequest ids. This is so we can loop through the mappings that hold them client-side. We get query in order of indexes the ids from the mappings.
All Rights Reserved © 2018 Distense
FAQs
Distense Ethereum smart contracts and tests
We found that distense-contracts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.