permission

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Root             account.Permissions = 1 << iota // 0x0001
	Send                                             // 0x0002
	Call                                             // 0x0004
	CreateContract                                   // 0x0008
	CreateAccount                                    // 0x0010
	Bond                                             // 0x0020
	ModifyPermission                                 // 0x0040
	CreateChain                                      // 0x0080
	InterChainTx                                     // 0x0100

	Reserved
	None account.Permissions = 0
)

------------------------------------------------------------------------------------------------ Base permission references are like unix (the index is already bit shifted)

Variables

View Source
var (
	ZeroPermissions    account.Permissions
	AllPermissions     account.Permissions = (Reserved - 1)
	DefaultPermissions account.Permissions = Call | Send | CreateAccount | CreateContract
)

Functions

func EnsureValid

func EnsureValid(perm account.Permissions) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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