Documentation ¶
Index ¶
- func BytesToBigInt(data []byte) *big.Int
- type BaseContract
- type ContractCaller
- type ErrDisabledMethod
- type ErrInsufficientBalance
- type ErrInvalidAddr
- type ErrInvalidAmount
- type ErrInvalidArgument
- type ErrInvalidCoin
- type ErrInvalidMethod
- type ErrInvalidNumberOfArgs
- type ErrInvalidToken
- type ErrUnexpected
- type ErrWriteMethod
- type ExtStateDB
- type Registrable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToBigInt ¶
Types ¶
type BaseContract ¶
type BaseContract interface { Registrable ContractCaller }
func NewBaseContract ¶
func NewBaseContract(address common.Address) BaseContract
type ContractCaller ¶
type ErrDisabledMethod ¶
type ErrDisabledMethod struct {
Method string
}
func (ErrDisabledMethod) Error ¶
func (e ErrDisabledMethod) Error() string
type ErrInsufficientBalance ¶
func (ErrInsufficientBalance) Error ¶
func (e ErrInsufficientBalance) Error() string
type ErrInvalidAddr ¶
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 ¶
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 ¶
func (ErrInvalidToken) Error ¶
func (e ErrInvalidToken) Error() string
type ErrUnexpected ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.