项目作者: abyssfinance

项目描述 :
Smart contract that allows convenient way to send 1 to 100 deposits in one transaction to Eth2 Deposit Contract
高级语言: Solidity
项目地址: git://github.com/abyssfinance/abyss-eth2depositor.git
创建时间: 2020-12-12T15:31:10Z
项目社区:https://github.com/abyssfinance/abyss-eth2depositor

开源协议:MIT License

下载


Abyss Finance Eth2 Depositor

Abyss Eth2 Depositor allows convenient way to send 1 to 100 deposits in one transaction to Eth2 Deposit Contract.

Contracts

Below is a list of contracts we use for this service:


Ownable, Pausable

Openzepellin smart contracts. The first contract allows for managing ownership. The second contract allows for pausing the contract and vice versa.


AbyssEth2Depositor

A smart contract that accepts up to 3200 ETH and sends up to 100 transactions with required collateral (32 ETH) to Eth2 Deposit Contract.

Installation

To run lockup service, install Homebrew, Node.js, Truffle, OpenZeppelin and pull the repository from GitHub:

  1. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
  2. brew install node
  3. npm install -g truffle
  4. npm install -g @openzeppelin/contracts
  5. mkdir projects
  6. cd projects
  7. git clone https://github.com/abyssfinance/abyss-eth2depositor
  8. cd abyss-eth2depositor
  9. truffle init

Setup your truffle environment, write migrations:

  1. truffle develop
  2. migrate --reset

Deployment (Mainnet)

Smart contracts should be deployed with such constructor parameters:

  1. AbyssEth2Depositor.sol (true, 0x0000000000000000000000000000000000000000)

How to Use

  1. Choose amount of Eth2 validator nodes you want to create.
  2. Create array with your pubkeys, withdrawal_credentials, signatures and calldata deposit_data_roots.
  3. Use deposit() function on AbyssEth2Depositor with required ETH value to make deposits to Eth2 Deposit Contract.

License

MIT

Discussion

For any concerns or suggestions visit us on Telegram to discuss.

For security concerns, please email security@abyss.finance.

© Copyright 2020, Abyss Finance