Skip to content

Smart contract that allows convenient way to send 1 to 100 deposits in one transaction to PulseChain Deposit Contract

License

Notifications You must be signed in to change notification settings

abyssfinance/abyss-plsdepositor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Abyss Finance PulseChain Depositor

Abyss PulseChain Depositor allows convenient way to send 1 to 100 deposits in one transaction to PulseChain 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.
AbyssPlsDepositor
A smart contract that accepts up to 3,200,000,000 PLS and sends up to 100 transactions with required collateral (32,000,000 PLS) to PulseChain Deposit Contract.

Installation

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

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

Setup your truffle environment, write migrations:

truffle develop
migrate --reset

Deployment (Mainnet)

Smart contracts should be deployed with such constructor parameters:

  1. AbyssPlsDepositor.sol (true, 0x0000000000000000000000000000000000000000)

How to Use

  1. Choose amount of PulseChain 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 AbyssPlsDepositor with required PLS value to make deposits to PulseChain 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 2023, Abyss Finance

About

Smart contract that allows convenient way to send 1 to 100 deposits in one transaction to PulseChain Deposit Contract

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published