You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
413 B

  1. package state
  2. import (
  3. ac "github.com/tendermint/tendermint/account"
  4. . "github.com/tendermint/tendermint/common"
  5. "github.com/tendermint/tendermint/vm"
  6. )
  7. type AccountGetter interface {
  8. GetAccount(addr []byte) *ac.Account
  9. }
  10. type VMAccountState interface {
  11. GetAccount(addr Word256) *vm.Account
  12. UpdateAccount(acc *vm.Account)
  13. RemoveAccount(acc *vm.Account)
  14. CreateAccount(creator *vm.Account) *vm.Account
  15. }