contracts

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: GPL-2.0 Imports: 8 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/withdrawalRequest/withdrawalRequest.json --pkg=withdrawalRequest --out=contracts/withdrawalRequest/withdrawal_request.go

Documentation

Index

Constants

View Source
const (
	LIQ_ADDRESS_MAINNET = "0x8103151E2377e78C04a3d2564e20542680ed3096"
	LIQ_ADDRESS_GOERLI  = "0x949AC43bb71F8710B0F1193880b338f0323DeB1a"

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

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

Variables

This section is empty.

Functions

func LiqContractAddress

func LiqContractAddress(network string) string

Types

type LiqContract

type LiqContract struct {
	Network  string
	Address  string
	Contract *liq.Liq
}

func NewLiqContract

func NewLiqContract(network string, eth1Client bind.ContractBackend) (*LiqContract, error)

type VnftContract

type VnftContract struct {
	Network  string
	Address  string
	Contract *vnft.Vnft
}

func NewVnftContract

func NewVnftContract(network string, eth1Client bind.ContractBackend) (*VnftContract, error)

type WithdrawalRequestContract

type WithdrawalRequestContract struct {
	Network  string
	Address  string
	Contract *withdrawalRequest.WithdrawalRequest
}

func NewWithdrawalRequestContract

func NewWithdrawalRequestContract(network string, eth1Client bind.ContractBackend) (*WithdrawalRequestContract, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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