Removed UseGas method from Contract interface

This commit is contained in:
philip-morlier 2021-09-03 15:16:14 -07:00
parent b7b64de53a
commit 1fb2754193
No known key found for this signature in database
GPG Key ID: 0323A143B7B6F663

View File

@ -4,6 +4,7 @@ import (
"context" "context"
"math/big" "math/big"
"time" "time"
"github.com/holiman/uint256" "github.com/holiman/uint256"
) )
@ -58,7 +59,6 @@ type Backend interface {
// Engine() consensus.Engine // Engine() consensus.Engine
} }
type OpCode byte type OpCode byte
type TracerResult interface { type TracerResult interface {
@ -90,7 +90,6 @@ type Contract interface {
GetOp(n uint64) OpCode GetOp(n uint64) OpCode
GetByte(n uint64) byte GetByte(n uint64) byte
Caller() Address Caller() Address
UseGas(gas uint64) (ok bool)
Address() Address Address() Address
Value() *big.Int Value() *big.Int
} }
@ -107,7 +106,6 @@ type Progress interface{
KnownStates() uint64 KnownStates() uint64
} }
type Node interface { type Node interface {
Server() Server Server() Server
DataDir() string DataDir() string
@ -118,12 +116,10 @@ type Node interface{
ResolvePath(x string) string ResolvePath(x string) string
} }
type Server interface { type Server interface {
PeerCount() int PeerCount() int
} }
type Logger interface { type Logger interface {
Trace(string, ...interface{}) Trace(string, ...interface{})
Debug(string, ...interface{}) Debug(string, ...interface{})
@ -136,5 +132,3 @@ type Logger interface {
type PluginLoader interface { type PluginLoader interface {
Lookup(name string, validate func(interface{}) bool) []interface{} Lookup(name string, validate func(interface{}) bool) []interface{}
} }