Coder Social home page Coder Social logo

disperseaurora's Introduction

Disperse DAPP on Aurora Testnet

Disperse DAPP is a batching protocol for both native currency and ERC20 tokens that can help reduce gas cost for multiple transfers by batching them in a single block.

DAPP is live at https://blissful-tereshkova-0e2032.netlify.app/

Slides : https://docs.google.com/presentation/d/19wzOvgACY7dBTs_fTPHB9Llhplx8xCL5zqILMo2Cy7Q/edit#slide=id.gb59c7ace29_0_66

Demo Video : https://vimeo.com/679863822 [ No Audio ]

Contract Address : 0x30d25c739BF4859DC8C12c67E89954824bfb39FE [on AURORA Testnet]

MIT License

Installation and Tests

Backend (Truffle)

Use .secret file to store mnemonic or make suitable changes to truffle-config.js

npm install truffle-hdwallet-provider @openzeppelin/[email protected] To install dependencies

truffle test to run tests. (You may have to install ganache-cli)

truffle migrate --reset --network aurora to migrate to the Aurora testnet.

Frontend (create-react-app)

yarn install

yarn start

Documentation

This DAPP is based on Artem K's disperse app on ethereum. (PDF Link)

My contract is compatible with solidity 0.5.x (and higher). It is available here.

To batch together native currency.

function disperseEther(address payable[] calldata recipients, uint256[] calldata values) external payable

recipients is an array of addresses and the values is the array of amount that is being send to each of the addresses respectively.

To batch together ERC20 tokens.

function disperseToken(address tokenAddress, address payable[] calldata recipients, uint256[] calldata values) external

tokenAddress is the contract address of the ERC20 contract. The other values are same as above.

There is also a simplified and unoptimized version of disperseToken that we won't be using for our dapp.

function disperseTokenSimple(address tokenAddress, address payable[] calldata recipients, uint256[] calldata values) external

disperseaurora's People

Contributors

rafat 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.