Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OnCompletion ¶
type OnCompletion uint64
OnCompletion is an enum representing some layer 1 side effect that an ApplicationCall transaction will have if it is included in a block.
const ( // NoOpOC indicates that an application transaction will simply call its // ApprovalProgram NoOpOC OnCompletion = 0 // OptInOC indicates that an application transaction will allocate some // LocalState for the application in the sender's account OptInOC OnCompletion = 1 // CloseOutOC indicates that an application transaction will deallocate // some LocalState for the application from the user's account CloseOutOC OnCompletion = 2 // ClearStateOC is similar to CloseOutOC, but may never fail. This // allows users to reclaim their minimum balance from an application // they no longer wish to opt in to. When an ApplicationCall // transaction's OnCompletion is ClearStateOC, the ClearStateProgram // executes instead of the ApprovalProgram ClearStateOC OnCompletion = 3 // UpdateApplicationOC indicates that an application transaction will // update the ApprovalProgram and ClearStateProgram for the application UpdateApplicationOC OnCompletion = 4 // DeleteApplicationOC indicates that an application transaction will // delete the AppParams for the application from the creator's balance // record DeleteApplicationOC OnCompletion = 5 )
Click to show internal directories.
Click to hide internal directories.