contracts

package
v0.0.6-rc3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

README

生成abi

solc --abi --bin <your-contract.sol> -o <output-directory>

生成合约代码

abigen --abi=contracts/liq/LiquidStaking.json --pkg=liq --out=contracts/liq/LiquidStaking.go

abigen --abi=contracts/vnft/VNFT.json --pkg=vnft --out=contracts/vnft/vnft.go

abigen --abi=contracts/hashConsensus/HashConsensus.json --pkg=hashConsensus --out=contracts/hashConsensus/hash_consensus.go

abigen --abi=contracts/withdrawOracle/WithdrawOracle.json --pkg=withdrawOracle --out=contracts/withdrawOracle/withdraw_oracle.go

abigen --abi=contracts/operator/operator.json --pkg=operator --out=contracts/operator/operator.go

abigen --abi=contracts/operatorSlash/operatorSlash.json --pkg=operatorSlash --out=contracts/operatorSlash/operator_slash.go

abigen --abi=contracts/withdrawalRequest/withdrawalRequest.json --pkg=withdrawalRequest --out=contracts/withdrawalRequest/withdrawal_request.go

Documentation

Index

Constants

View Source
const (
	MAINNET = "mainnet"
	GOERLI  = "goerli"
)
View Source
const (
	LIQ_ADDRESS_MAINNET = "0x8103151E2377e78C04a3d2564e20542680ed3096"
	LIQ_ADDRESS_GOERLI  = "0x949AC43bb71F8710B0F1193880b338f0323DeB1a"

	VNFT_ADDRESS_MAINNET = "0x58553F5c5a6AEE89EaBFd42c231A18aB0872700d"
	VNFT_ADDRESS_GOERLI  = "0x3CB42bb75Cf1BcC077010ac1E3d3Be22D13326FA"

	NODE_OPERATOR_ADDRESS_MAINNET = "0x8742178Ac172eC7235E54808d5F327C30A51c492"
	NODE_OPERATOR_ADDRESS_GOERLI  = "0x20C43025E44984375c4dC882bFF2016C6E601f0A"

	WITHDRAW_ORACLE_ADDRESS_MAINNET = "0x2B74f97aDC698b571C2F046673Fd5Cd028673c41"
	WITHDRAW_ORACLE_ADDRESS_GOERLI  = "0x1E726f6111B58e74CCD63d5b659191A49366CaD9"

	CL_VAULT_ADDRESS_MAINNET = "0x4b8Dc35b44296D8D6DCc7aFEBBbe283c997E80Ae"
	CL_VAULT_ADDRESS_GOERLi  = "0x138d5D3C2d7d68bFC653726c8a5E8bA301452202"

	OPERATOR_SLASH_ADDRESS_MAINNET = "0x82c87cC83c9fA09DAdBEBFB8f8b9152Ee6104B5d"
	OPERATOR_SLASH_ADDRESS_GOERLi  = "0x69b11EF441EEb3A7cb2A3d82bC31F90596A7C48d"

	WITHDRAWAL_REQUEST_ADDRESS_MAINNET = "0xE81fC969D14Cad8537ebAFa2a1c478F29d7840FC"
	WITHDRAWAL_REQUEST_ADDRESS_GOERLi  = "0x006e69F509E31c91263C03a744B47c3b03eAC391"
)

Variables

View Source
var (
	WithdrawOracleContract    *withdrawOracleHelper
	VnftContract              *vnftHelper
	LiqContract               *liqHelper
	OperatorContract          *nodeOperatorHelper
	OperatorSlashContract     *operatorSlashHelper
	WithdrawalRequestContract *withdrawalRequestHelper
)

Functions

func GetClVaultAddress

func GetClVaultAddress() string

func InitContracts

func InitContracts()

func NewLiq

func NewLiq() (*liqHelper, error)

func NewNodeOperator

func NewNodeOperator() (*nodeOperatorHelper, error)

func NewOperatorSlash

func NewOperatorSlash() (*operatorSlashHelper, error)

func NewVnft

func NewVnft() (*vnftHelper, error)

func NewWithdrawOracle

func NewWithdrawOracle() (*withdrawOracleHelper, error)

func NewWithdrawalRequest

func NewWithdrawalRequest() (*withdrawalRequestHelper, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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