types

package
v0.0.0-...-70a0e40 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToBigInt

func BytesToBigInt(data []byte) *big.Int

Types

type BaseContract

type BaseContract interface {
	Registrable
	ContractCaller
}

func NewBaseContract

func NewBaseContract(address common.Address) BaseContract

type ContractCaller

type ContractCaller interface {
	CallContract(
		ctx sdk.Context,
		fungibleKeeper *fungiblekeeper.Keeper,
		abi *abi.ABI,
		dst common.Address,
		method string,
		args []interface{}) ([]interface{}, error)
}

type ErrDisabledMethod

type ErrDisabledMethod struct {
	Method string
}

func (ErrDisabledMethod) Error

func (e ErrDisabledMethod) Error() string

type ErrInsufficientBalance

type ErrInsufficientBalance struct {
	Requested string
	Got       string
}

func (ErrInsufficientBalance) Error

func (e ErrInsufficientBalance) Error() string

type ErrInvalidAddr

type ErrInvalidAddr struct {
	Got    string
	Reason string
}

func (ErrInvalidAddr) Error

func (e ErrInvalidAddr) Error() string

type ErrInvalidAmount

type ErrInvalidAmount struct {
	Got string
}

func (ErrInvalidAmount) Error

func (e ErrInvalidAmount) Error() string

type ErrInvalidArgument

type ErrInvalidArgument struct {
	Got any
}

func (ErrInvalidArgument) Error

func (e ErrInvalidArgument) Error() string

type ErrInvalidCoin

type ErrInvalidCoin struct {
	Got      string
	Negative bool
	Nil      bool
	Empty    bool
}

func (ErrInvalidCoin) Error

func (e ErrInvalidCoin) Error() string

type ErrInvalidMethod

type ErrInvalidMethod struct {
	Method string
}

func (ErrInvalidMethod) Error

func (e ErrInvalidMethod) Error() string

type ErrInvalidNumberOfArgs

type ErrInvalidNumberOfArgs struct {
	Got, Expect int
}

func (ErrInvalidNumberOfArgs) Error

func (e ErrInvalidNumberOfArgs) Error() string

type ErrInvalidToken

type ErrInvalidToken struct {
	Got    string
	Reason string
}

func (ErrInvalidToken) Error

func (e ErrInvalidToken) Error() string

type ErrUnexpected

type ErrUnexpected struct {
	When string
	Got  string
}

func (ErrUnexpected) Error

func (e ErrUnexpected) Error() string

type ErrWriteMethod

type ErrWriteMethod struct {
	Method string
}

func (ErrWriteMethod) Error

func (e ErrWriteMethod) Error() string

type ExtStateDB

type ExtStateDB interface {
	vm.StateDB
	ExecuteNativeAction(
		contract common.Address,
		converter statedb.EventConverter,
		action func(ctx sdk.Context) error,
	) error
	CacheContext() sdk.Context
}

ExtStateDB defines extra methods of statedb to support stateful precompiled contracts. It's used to persist changes into the store.

type Registrable

type Registrable interface {
	RegistryKey() common.Address
}

Jump to

Keyboard shortcuts

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