permission/types pkg, Base and Roles

This commit is contained in:
Ethan Buchman
2015-07-07 14:07:56 -07:00
committed by Jae Kwon
parent 94f21ad012
commit 87ed1f5fda
9 changed files with 286 additions and 67 deletions
+1 -11
View File
@@ -45,7 +45,7 @@ type Account struct {
Code []byte `json:"code"` // VM code
StorageRoot []byte `json:"storage_root"` // VM storage merkle root.
Permissions *ptypes.Permissions `json:"permissions"`
Permissions *ptypes.AccountPermissions `json:"permissions"`
}
func (acc *Account) Copy() *Account {
@@ -70,13 +70,3 @@ var AccountCodec = binary.Codec{
Encode: AccountEncoder,
Decode: AccountDecoder,
}
//-----------------------------------------------------------------------------
// defaults for a Big Bad Public Blockchain
var DefaultPermissions = ptypes.Permissions{
Send: true,
Call: true,
Create: true,
Bond: true,
}