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: 6 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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