Removed UseGas method from Contract interface
This commit is contained in:
parent
b7b64de53a
commit
1fb2754193
@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"math/big"
|
||||
"time"
|
||||
|
||||
"github.com/holiman/uint256"
|
||||
)
|
||||
|
||||
@ -58,7 +59,6 @@ type Backend interface {
|
||||
// Engine() consensus.Engine
|
||||
}
|
||||
|
||||
|
||||
type OpCode byte
|
||||
|
||||
type TracerResult interface {
|
||||
@ -90,16 +90,15 @@ type Contract interface {
|
||||
GetOp(n uint64) OpCode
|
||||
GetByte(n uint64) byte
|
||||
Caller() Address
|
||||
UseGas(gas uint64) (ok bool)
|
||||
Address() Address
|
||||
Value() *big.Int
|
||||
}
|
||||
|
||||
type Downloader interface{
|
||||
type Downloader interface {
|
||||
Progress() Progress
|
||||
}
|
||||
|
||||
type Progress interface{
|
||||
type Progress interface {
|
||||
StartingBlock() uint64
|
||||
CurrentBlock() uint64
|
||||
HighestBlock() uint64
|
||||
@ -107,8 +106,7 @@ type Progress interface{
|
||||
KnownStates() uint64
|
||||
}
|
||||
|
||||
|
||||
type Node interface{
|
||||
type Node interface {
|
||||
Server() Server
|
||||
DataDir() string
|
||||
InstanceDir() string
|
||||
@ -118,12 +116,10 @@ type Node interface{
|
||||
ResolvePath(x string) string
|
||||
}
|
||||
|
||||
|
||||
type Server interface{
|
||||
type Server interface {
|
||||
PeerCount() int
|
||||
}
|
||||
|
||||
|
||||
type Logger interface {
|
||||
Trace(string, ...interface{})
|
||||
Debug(string, ...interface{})
|
||||
@ -133,8 +129,6 @@ type Logger interface {
|
||||
Error(string, ...interface{})
|
||||
}
|
||||
|
||||
type PluginLoader interface{
|
||||
type PluginLoader interface {
|
||||
Lookup(name string, validate func(interface{}) bool) []interface{}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user