FungibleTokenAdmin
Hierarchy
- SmartContract
- FungibleTokenAdmin
Implements
Index
Constructors
Methods
Constructors
externalconstructor
Parameters
externaladdress: PublicKey
externaloptionaltokenId: Field
Returns FungibleTokenAdmin
Methods
publiccanChangeAdmin
Parameters
_admin: PublicKey
Returns Promise<Bool>
publiccanMint
Parameters
_accountUpdate: AccountUpdate
Returns Promise<Bool>
publiccanPause
Returns Promise<Bool>
publiccanResume
Returns Promise<Bool>
deploy
Parameters
Returns Promise<void>
updateVerificationKey
Update the verification key. Note that because we have set the permissions for setting the verification key to
impossibleDuringCurrentVersion()
, this will only be possible in case of a protocol update that requires an update.Parameters
vk: VerificationKey
Returns Promise<void>
A contract that grants permissions for administrative actions on a token.
We separate this out into a dedicated contract. That way, when issuing a token, a user can specify their own rules for administrative actions, without changing the token contract itself.
The advantage is that third party applications that only use the token in a non-privileged way can integrate against the unchanged token contract.