Other Functions

The Vault.sol contract includes additional functions for advanced management:

  • emergencyWithdraw: Allows the emergency owner to withdraw all assets. Requires the caller to be the emergencyOwner.

  • setEmergencyOwner: Sets the emergency owner address. Callable only by the owner when not paused.

  • setAuthorizedPinger: Authorizes a pinger to call pingByPinger. Requires an ECDSA signature from the owner.

  • pingByPinger: Updates the heartbeat by the authorized pinger. Requires the Vault to be unclaimed.

  • setHeirModule: Updates the heirsModule address. Requires an ECDSA signature and a valid HeirModule contract.

  • pause: Pauses sensitive operations (withdraw, setEmergencyOwner, setHeirModule, setAuthorizedPinger). Callable only by the owner.

  • unpause: Re-enables paused operations. Callable only by the owner.

  • trackedTokensView: Returns the list of tracked ERC-20 tokens.

  • getFailedTokensLength: Returns the number of failed tokens for an heir.

  • getFailedTokenAtIndex: Returns a failed token address at a specific index for an heir.

Refer to the Vault.sol source code for full details.

Last updated