contracts

package
v0.0.2-beta Latest Latest
Warning

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

Go to latest
Published: Apr 19, 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 = ""
	LIQ_ADDRESS_GOERLI  = "0xa8256fD3A31648D49D0f3551e6e45Db6f5f91d53"

	VNFT_ADDRESS_MAINNET = ""
	VNFT_ADDRESS_GOERLI  = "0xe3CE494D51Cb9806187b5Deca1B4B06c97e52EFc"

	NODE_OPERATOR_ADDRESS_MAINNET = ""
	NODE_OPERATOR_ADDRESS_GOERLI  = "0xD9d87abAd8651e1E69799416AEc54fCCdd1dAAcE"

	WITHDRAW_ORACLE_ADDRESS_MAINNET = ""
	WITHDRAW_ORACLE_ADDRESS_GOERLI  = "0x682997ff9D94739bFe52232AEeC82A9Ddd56694C"

	CL_VAULT_ADDRESS_MAINNET = ""
	CL_VAULT_ADDRESS_GOERLi  = "0x22e172cb3b7a333d73f321462EEBcadd3f0775a6"

	OPERATOR_SLASH_ADDRESS_MAINNET = ""
	OPERATOR_SLASH_ADDRESS_GOERLi  = "0x4C34d8E2aA27d6428c7093DA2de88c9b402E2d1D"

	WITHDRAWAL_REQUEST_ADDRESS_MAINNET = ""
	WITHDRAWAL_REQUEST_ADDRESS_GOERLi  = "0x78f02E11d86A6cCFF9E7912004F6deA10889d1f9"
)

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