challenger

package module
v0.0.0-...-a934766 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2024 License: MIT Imports: 9 Imported by: 0

README

Contract Caller Repo

Contract Caller is contracts call template project, everyone can develop theirs business requirement base this project

Note: Requires Go 1.18+

Installation

For prerequisites and detailed build instructions please read the Installation instructions. Once the dependencies are installed, run:

go mod tidy

Or check out the latest release.

Quick Start

Generate bindings

make bindings

Build project

make 
make contracts-caller

Setup and run project

  • change env config according to your requirement, please env example .evn
source .env

Run

./contracts-caller

If you run succcess, you can see following logs

INFO [08-10|20:51:03.084] ContractCaller wallet params parsed successfully wallet_address=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 contract_address=0x0B306BF915C4d645ff596e518fAf3F9669b97016
INFO [08-10|20:51:03.084] Contract Caller Client init success
INFO [08-10|20:51:03.085] Contract caller hsm                      EnableHsm=false HsmAPIName= HsmAddress=
INFO [08-10|20:51:03.086] Contract caller start exec set withdraw manager
INFO [08-10|20:51:03.087] Contract wallet address balance          balance=9,999,993,061,903,973,142,891
INFO [08-10|20:51:03.088] Contract caller setWithdrawManager update gas price
INFO [08-10|20:51:04.092] Contract caller set withdraw manager success TxHash=e7d3d3..1f22cb
INFO [08-10|20:51:04.093] Contract caller set withdraw manager success WithdrawManageAddr=0x0B306BF915C4d645ff596e518fAf3F9669b97016 txHash=0xe7d3d3010e6d358df4f1b682688067c06e72bd342aa45b0921a08d76e31f22cb
INFO [08-10|20:51:04.093] Contract caller service start
INFO [08-10|20:51:08.087] Contract caller get loop
INFO [08-10|20:51:08.089] token white list address                 address=0xdAC17F958D2ee523a2206206994597C13D831ec7
INFO [08-10|20:51:08.089] token white list address                 address=0x8D983cb9388EaC77af0474fA441C4815500Cb7BB
INFO [08-10|20:51:08.089] token white list address                 address=0x3c3a81e81dc49A522A592e7622A7E711c06bf354
INFO [08-10|20:51:08.090] withdraw manager address                 withdrawManagerAddr=0x0B306BF915C4d645ff596e518fAf3F9669b97016
INFO [08-10|20:51:08.091] treasure manage address                  treasureManageAddress=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266

Contributing

Looking for a good place to start contributing? Check out some good first issues.

For additional instructions, standards and style guides, please refer to the Contributing document.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(gitVersion string) func(ctx *cli.Context) error

Types

type Config

type Config struct {
	ChainRpcUrl                    string
	ChainId                        uint64
	PrivateKey                     string
	Mnemonic                       string
	SequencerHDPath                string
	LoopInterval                   time.Duration
	Passphrase                     string
	TreasureManagerContractAddress string
	WithdrawManagerAddress         string
	ResubmissionTimeout            time.Duration
	NumConfirmations               uint64
	SafeAbortNonceTooLowCount      uint64

	EnableHsm  bool
	HsmAPIName string
	HsmCreden  string
	HsmAddress string
}

func NewConfig

func NewConfig(ctx *cli.Context) (Config, error)

Directories

Path Synopsis
cmd
Package etherkeyms utilises the Key Management Service (KMS) from the Google Cloud Platform (GCP) for Ethereum operations.
Package etherkeyms utilises the Key Management Service (KMS) from the Google Cloud Platform (GCP) for Ethereum operations.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL