Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cosmos-fundraiser

Package Overview
Dependencies
Maintainers
3
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cosmos-fundraiser

Tools for the Cosmos Fundraiser

  • 7.14.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by100%
Maintainers
3
Weekly downloads
 
Created
Source

Test the Fundraiser.sol

Truffle is great for excercising the smart contract.

Install truffle and testrpc.

npm install -g truffle
npm install -g ethereumjs-testrpc

In one window, run testrpc. In another, run truffle test

Deploy the contract

Run node scripts/deployCode.js --admin <admin> --treasury <treasury> --begin <beginBlock> --end <endBlock> to get the gas and txdata to deploy the contract. Deployment can be done manually anywhere.

Generate tx data for a donation

Run node scripts/donateData.js --cosmos <cosmosAddress> --ether <etherAddress> to get the transaction data for a donation on behalf of <cosmosAddress>.

Test the deployment data and the lib (without truffle)

We can't use truffle because we don't want to assume that much - just want data for raw txs. Run node scripts/test.js. Make sure testrpc is running. (TODO: use mocha or something).

Keywords

FAQs

Package last updated on 08 Nov 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc