Documentation ¶
Index ¶
Constants ¶
View Source
const ( DelegateMethod = "delegate" RedelegateMethod = "redelegate" UndelegateMethod = "undelegate" )
View Source
const (
StakingAddress = "0x0000000000000000000000000000000000001005"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Precompile ¶
type Precompile struct { pcommon.Precompile DelegateID []byte RedelegateID []byte UndelegateID []byte // contains filtered or unexported fields }
func NewPrecompile ¶
func NewPrecompile(stakingKeeper pcommon.StakingKeeper, evmKeeper pcommon.EVMKeeper, bankKeeper pcommon.BankKeeper) (*Precompile, error)
func (Precompile) Address ¶
func (p Precompile) Address() common.Address
func (Precompile) GetName ¶
func (p Precompile) GetName() string
func (Precompile) RequiredGas ¶
func (p Precompile) RequiredGas(input []byte) uint64
RequiredGas returns the required bare minimum gas to execute the precompile.
Click to show internal directories.
Click to hide internal directories.