Coins and fees and gas...
This commit is contained in:
+3
-7
@@ -5,8 +5,6 @@ import (
|
||||
)
|
||||
|
||||
// Value is any floating value. It must be given to someone.
|
||||
// Gas is a pointer to remainig gas. Decrement as you go,
|
||||
// if any gas is left the user is
|
||||
type Plugin interface {
|
||||
SetOption(key string, value string) (log string)
|
||||
RunTx(ctx CallContext, txBytes []byte) (res tmsp.Result)
|
||||
@@ -25,16 +23,14 @@ type NamedPlugin struct {
|
||||
type CallContext struct {
|
||||
Cache AccountCacher
|
||||
Caller *Account
|
||||
Value int64
|
||||
Gas *int64
|
||||
Coins Coins
|
||||
}
|
||||
|
||||
func NewCallContext(cache AccountCacher, caller *Account, value int64, gas *int64) CallContext {
|
||||
func NewCallContext(cache AccountCacher, caller *Account, coins Coins) CallContext {
|
||||
return CallContext{
|
||||
Cache: cache,
|
||||
Caller: caller,
|
||||
Value: value,
|
||||
Gas: gas,
|
||||
Coins: coins,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user