abi

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: LGPL-3.0 Imports: 14 Imported by: 0

README

This folder contains ABI of the custom precompiled contracts.

Contract Address EIP
Staking 0xcc01000000000000000000000000000000000001 ESIP-179
Bech32 0xcc02000000000000000000000000000000000002 ESIP-181
ERC20 (dynamic) EIP-20

Documentation

Index

Constants

View Source
const (
	StakingMessageActionDelegate   = "Delegate"
	StakingMessageActionUndelegate = "Undelegate"
	StakingMessageActionRedelegate = "Redelegate"
)
View Source
const WithdrawRewardMessageActionWithdrawFromAllValidators = "all"

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomPrecompiledContractInfo

type CustomPrecompiledContractInfo struct {
	Name string
	ABI  abi.ABI
}

func (CustomPrecompiledContractInfo) PackMethodOutput

func (s CustomPrecompiledContractInfo) PackMethodOutput(methodName string, args ...any) ([]byte, error)

func (*CustomPrecompiledContractInfo) UnmarshalJSON

func (s *CustomPrecompiledContractInfo) UnmarshalJSON(data []byte) error

func (CustomPrecompiledContractInfo) UnpackMethodInput

func (s CustomPrecompiledContractInfo) UnpackMethodInput(methodName string, fullInput []byte) ([]interface{}, error)

type StakingMessage

type StakingMessage struct {
	Action       string         `json:"action"`
	Delegator    common.Address `json:"delegator"`
	Validator    string         `json:"validator"`
	Amount       *big.Int       `json:"amount"`
	Denom        string         `json:"denom"`
	OldValidator string         `json:"oldValidator"`
}

func (*StakingMessage) FromUnpackedStruct

func (m *StakingMessage) FromUnpackedStruct(v any) error

func (StakingMessage) ToTypedData

func (m StakingMessage) ToTypedData(chainId *big.Int) apitypes.TypedData

func (StakingMessage) Validate

func (m StakingMessage) Validate(valAddrCodec addresscodec.Codec, bondDenom string) error

type WithdrawRewardMessage

type WithdrawRewardMessage struct {
	Delegator     common.Address `json:"delegator"`
	FromValidator string         `json:"fromValidator"`
}

func (*WithdrawRewardMessage) FromUnpackedStruct

func (m *WithdrawRewardMessage) FromUnpackedStruct(v any) error

func (WithdrawRewardMessage) ToTypedData

func (m WithdrawRewardMessage) ToTypedData(chainId *big.Int) apitypes.TypedData

func (WithdrawRewardMessage) Validate

func (m WithdrawRewardMessage) Validate(valAddrCodec addresscodec.Codec) error

Jump to

Keyboard shortcuts

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