Giter Club home page Giter Club logo

gnosisproxysender's Introduction

ProxySender contract for Gnosis ICO

Tools for Gnosis ICO:

  • constracts/proxysender.sol: smart contract to collect ethers from different users and proxy ico bids
  • bidProxy.js: small tool that wait for ico start and immediatelly call bidProxy() on the ProxySender contract

Requirement

Run the bidProxy tool

The tool requires an ethereum node on main network, rpc enabled, accound 0 unlocked with some ethers to pay transaction fees. Run:

./bidProxy.js <proxy_address>

where <proxy_address> is the address of an istance of the ProxySender smart contract initialized with the address of the official DutchAuction smart contract for gnosis ico.

Reminder: to start a node (geth or parity) with an unlocked account use the --unlock <address> --password <file> parameters.

ICO simulation

The simulation works only with TestRPC node because it requires the evm_increaseTime rpc method to skip the 1 week waiting period at the end of the auction.

Run ethereum node:

testrpc

Run ICO simulation:

truffle test test/ico_simulation.js

ICO steps and ProxySender interactions

Before deploying the ProxySender smart contract, a DutchAuction instance is required and it must be initialized with the token address (the setup() method). ProxySender constructor requires the DutchAuction address as argument.

Steps:

  • Before ICO start, users send own ethers to the ProxySender smartcontract using a normal transaction.
  • Before ICO start, users can ask a refund calling the refund() method.
  • After ICO start, bidProxy() must be called to send funds to the ICO contract (the bidProxy tool can be used).
  • After ICO end, claimProxy() must be called to reclaim tokens for the proxy.
  • After the tokens are reclaimed for the proxy, users reclaim own tokens sending a normal transaction with value 0 to the proxy address

Use the following method ids in the data field of transaction to call the contract methods:

ed9a3ac1 bidProxy()
30b66cee claimProxy()
590e1ae3 refund()

gnosisproxysender's People

Contributors

mpolci avatar

Watchers

James Cloos avatar Adrianclv avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.