contracts

package
v0.1.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 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/MultiHashConsensus.json --pkg=hashConsensus --out=contracts/hashConsensus/multi_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

abigen --abi=contracts/largeStaking/LargeStaking.json --pkg=largeStaking --out=contracts/largeStaking/large_staking.go

abigen --abi=contracts/largeStakeOracle/LargeStakeOracle.json --pkg=largeStakeOracle --out=contracts/largeStakeOracle/large_stake_oracle.go

Documentation

Index

Constants

View Source
const (
	MAINNET = "mainnet"
	GOERLI  = "goerli"
)
View Source
const (
	HASH_CONSENSUS_ADDRESS_MAINNET = ""
	HASH_CONSENSUS_ADDRESS_GOERLI  = "0xBF7b3b741052D33ca0f522A0D70589e350d38bb7"

	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"

	LARGE_STAKING_ADDRESS_MAINNET = ""
	LARGE_STAKING_ADDRESS_GOERLI  = "0xB71D8903Ae22df40DdDb189AfBcE5e99B23b7077"

	LARGE_STAKE_ORACLE_ADDRESS_MAINNET = ""
	LARGE_STAKE_ORACLE_ADDRESS_GOERLI  = "0xB8E0EE431d78273d7BAefEB0Fb64897626b0B8FA"
)

Variables

View Source
var (
	WithdrawOracleContract   *withdrawOracleHelper
	VnftContract             *vnftHelper
	LiqContract              *liqHelper
	OperatorContract         *nodeOperatorHelper
	LargeStakingContract     *largeStakingHelper
	LargeStakeOracleContract *largeStakeOracleHelper
	HashConsensusContract    *hashConsensusHelper
)

Functions

func GetClVaultAddress

func GetClVaultAddress() string

func InitContracts

func InitContracts()

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