Skip to content

Script to automatically delegate your ERD tokens on Elrond Genesis smart contract

Notifications You must be signed in to change notification settings

LuaxY/elrond-auto-delegate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elrond Auto Delegate

Copy config.yml to mainnet.yml and edit configuration.

Approve Genesis contract to use your ERD tokens

go run ./cmd/approve -c mainnet.yml

Delegate for the first time your ERD tokens

go run ./cmd/delegate -c mainnet.yml

Increase amount of delegated ERD tokens

go run ./cmd/increase -c mainnet.yml

Regenerate Smart Contract Go code

solc --abi genesis.sol
solc --bin genesis.sol
abigen --bin genesis_sol_GenesisSC.bin --abi genesis_sol_GenesisSC.abi --pkg genesis --out genesis.go
solc --abi token.sol
solc --bin token.sol
abigen --bin token_sol_ERDToken.bin --abi token_sol_ERDToken.abi --pkg token --out token.go

About

Script to automatically delegate your ERD tokens on Elrond Genesis smart contract

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages