Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

contract hooks.

Satinder Rawal answered on April 23, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • 2. How many hooks can be there in smart contracts?
  • Hooks in Smart Contract
  • Hooks in Smart Contract Continued…
  • Smart Contract hook called on Account creation
  • Smart Contract hook called on migration
  • CONTRACT ADD.

  • contract hooks.

    0

    Smart Contracts encode the financial T&Cs of a Vault account in the form of Python code. One of the main building blocks of a Smart Contract is the contract hooks. Hooks are Python functions called by Vault throughout the Smart Contract lifecycle. This can involve:

    Reacting to external account events, such as performing a balance check during an attempted withdrawal of funds

    Performing periodic actions such as calculating and paying monthly interest into an account

    Triggering hook execution typically produces a set of outputs termed hook directives, or a Python exception. Hook directives typically involve:

    Intruction of one or more postings (financial value mutation)

    Modification of account state, such as adding an account note or amending an account schedule (resource mutation)

    Triggering a Vault Workflow (operational mutation)

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Apr 23 2023
    Satinder Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.