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

Smart Contract code is generally organised around three key areas:

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

Contents


More Related Answers


Smart Contract code is generally organised around three key areas:

0

A series of hooks, which are Python functions that implement different aspects of financial behaviour from the account lifecycle - e.g. pre_posting_code hook is invoked by Vault every time there is an incoming posting (credit or debit) to the account backed by that contract. The pre_posting_code may instruct Vault to reject the posting if, for example, there are insufficient funds in the account.

A set of parameters that provide configuration values for the contract to utilise - e.g. an "overdraft limit" parameter can be used by the pre_posting_code of the contract to assess whether to accept a debit posting that takes the account balance below 0.

A collection of metadata that statically define various other configuration data for the contract. 

Popularity 1/10 Helpfulness 1/10 Language whatever
Source: Grepper
Link to this answer
Share Copy Link
Contributed on Apr 22 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.