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

Smart Contract Structure Parameters (Time Series & Flags)

Vinay Rawal answered on March 9, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • Smart Contract Structure Metadata
  • Smart Contract Structure Parameters
  • Smart Contract Parameters have 3 levels:
  • Contract parameters

  • Smart Contract Structure Parameters (Time Series & Flags)

    0

    Time series

    It means you are able to go back in time and retrieve past values of a resource, even if the current value is not the same as it was

    previously or if it has changed multiple different times.

    Some examples of how you might use the time series in a Smart Contract hook:

    Retrieving the latest denomination, used to check that a posting currency is valid.

    Retrieving a past balance according to a provided timestamp.

    Retrieving a past balance according to the previous day’send of dayy balance for that account.

    Retrieving all of the flag values for a repayment holiday flag over the previous month.

    Retrieving only the latest value for a repayment holiday flag.

    Flags

    Often a contract writer might wish to customize the behavior of the contract for some customers and not others. For thes e binary cases,

    we recommend the use of account flags. Flags are stored against individual Payment Devices, Accounts, and Customers. They are a Boolean

    piece of state that allows us to control the flow of a contract

    Example use cases for flags include:

    Marking a customer account as delinquent because they stopped paying their bills.

    Adding a repayment holiday flag to an account so the customer doesn't have to repay their bill on time.

    Flagging a customer as dormant when they stop using their product, leading to a freeze on the account.

    Tier based features such as a better deal for employees, to help with staff retention. 

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