Permissions
Permissions: {
"allImpossible": () => Permissions;
"default": () => Permissions;
"dummy": () => Permissions;
"fromJSON": (permissions: {}) => Permissions;
"fromString": (permission: AuthRequired) => AuthRequired;
"impossible": () => AuthRequired;
"initial": () => Permissions;
"none": () => AuthRequired;
"proof": () => AuthRequired;
"proofOrSignature": () => AuthRequired;
"signature": () => AuthRequired;
};
Type declaration
allImpossible()
allImpossible: () => Permissions;
Returns
default()
default: () => Permissions;
Default permissions are:
Permissions.editState = Permission.proof
Permissions.send = Permission.signature
Permissions.receive = Permission.none
Permissions.setDelegate = Permission.signature
Permissions.setPermissions = Permission.signature
Permissions.setVerificationKey = Permission.signature
Permissions.setZkappUri = Permission.signature
Permissions.editActionState = Permission.proof
Permissions.setTokenSymbol = Permission.signature
Returns
dummy()
dummy: () => Permissions;
Returns
fromJSON()
fromJSON: (permissions: {}) => Permissions;
Parameters
• permissions
Returns
fromString()
fromString: (permission: AuthRequired) => AuthRequired;
Parameters
• permission: AuthRequired
Returns
AuthRequired
impossible()
impossible: () => AuthRequired;
Modification is impossible.
Returns
AuthRequired
initial()
initial: () => Permissions;
Returns
none()
none: () => AuthRequired;
Modification is always permitted
Returns
AuthRequired
proof()
proof: () => AuthRequired;
Modification is permitted by zkapp proofs only
Returns
AuthRequired
proofOrSignature()
proofOrSignature: () => AuthRequired;
Modification is permitted by zkapp proofs or signatures
Returns
AuthRequired
signature()
signature: () => AuthRequired;
Modification is permitted by signatures only, using the private key of the zkapp account
Returns
AuthRequired