2015-03-28 23:44:07 -07:00
|
|
|
package state
|
|
|
|
|
|
|
|
import (
|
2015-07-19 09:40:55 -07:00
|
|
|
acm "github.com/tendermint/tendermint/account"
|
2015-04-01 17:30:16 -07:00
|
|
|
. "github.com/tendermint/tendermint/common"
|
|
|
|
"github.com/tendermint/tendermint/vm"
|
2015-03-28 23:44:07 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
type AccountGetter interface {
|
2015-07-19 09:40:55 -07:00
|
|
|
GetAccount(addr []byte) *acm.Account
|
2015-03-28 23:44:07 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
type VMAccountState interface {
|
|
|
|
GetAccount(addr Word256) *vm.Account
|
|
|
|
UpdateAccount(acc *vm.Account)
|
|
|
|
RemoveAccount(acc *vm.Account)
|
|
|
|
CreateAccount(creator *vm.Account) *vm.Account
|
|
|
|
}
|