Skip to main content

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

Permissions

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

Permissions

dummy()

dummy: () => Permissions;

Returns

Permissions

fromJSON()

fromJSON: (permissions: {}) => Permissions;

Parameters

permissions

Returns

Permissions

fromString()

fromString: (permission: AuthRequired) => AuthRequired;

Parameters

permission: AuthRequired

Returns

AuthRequired

impossible()

impossible: () => AuthRequired;

Modification is impossible.

Returns

AuthRequired

initial()

initial: () => Permissions;

Returns

Permissions

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

Source

lib/mina/account-update.ts:209