Module solana_budget_program::budget_expr[][src]

Expand description

The budget_expr module provides a domain-specific language for payment plans. Users create BudgetExpr objects that are given to an interpreter. The interpreter listens for Witness transactions, which it uses to reduce the payment plan. When the budget is reduced to a Payment, the payment is executed.

Structs

AccountConstraints

The account constraints a Condition would wait on. Note: ideally this would be function that accepts an Account and returns a bool, but we don’t have a way to pass functions over the wire. To simulate higher order programming, create your own program that includes an instruction that sets account data to a boolean. Pass that account key and program_id here.

Payment

Some amount of lamports that should be sent to the to Pubkey.

Enums

BudgetExpr

A data type representing a payment plan.

Condition

A data type representing a Witness that the payment plan is waiting on.

Witness

The types of events a payment plan can process.