Bonds

What is a Bond?

The Bonds Layer adds functionality for backing individual items with fungible tokens that can be released at a certain time point, or when an item is consumed or destroyed.

Table Breakdown

Table Name: bonds

Table Scope: serial

If a Bond has no release event then the Bond can only be released when the item is consumed or destroyed.

Create a Bond

To create a new Bond call the newbond() action. This will draw tokens from the group manager's account balance to fund the bond.

Required Auth: group.manager

Action Parameters

Examples

cleos push action ...

Add to a Bond

To add to an existing Bond call the addtobond() action. This allows a bond to be "topped up" with additional funds. Like with newbond() this action will draw tokens from the manager's account.

Required Auth: group.manager

Action Parameters

Bond that have been locked cannot be topped up.

Examples

cleos push action ...

Release Bond

The release() action can be called to release backed funds from an item if the defined release event time has been reached or exceeded.

Required Auth: contract

Action Parameters

Examples

cleos push action ...

Lock Bond

Bonds can be locked to prevent altering the backed amount.

Required Auth: group.manager

Action Parameters

Examples

cleos push action ...

Last updated