statemanager

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ContractPermFlags = permission.Call | permission.Send

Permissions for contract to send CallTx or SendTx to another contract

Variables

View Source
var ContractPerms = types.AccountPermissions{
	Base: types.BasePermissions{
		Perms:  ContractPermFlags,
		SetBit: ContractPermFlags,
	},
	Roles: []string{},
}

Functions

This section is empty.

Types

type StateManager

type StateManager interface {
	GetAccount(address account.Address) (account.Account, error)
	GetStorage(address account.Address, key binary.Word256) (binary.Word256, error)
	UpdateAccount(updatedAccount account.Account) error
	RemoveAccount(address account.Address) error
	SetStorage(address account.Address, key, value binary.Word256) error
}

func NewStateManager

func NewStateManager(stub shim.ChaincodeStubInterface) StateManager

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL