Skip to main content

Vesting

Solidity Interface & ABI

Vesting.sol is an interface through which Solidity contracts can interact with HyperPaxeer vesting module. This is convenient for developers as they don’t need to know the implementation details behind the x/vesting module in HyperPaxeer. Instead, they can interact with vesting accounts using the Ethereum interface they are familiar with. :::tip To learn more about the x/vesting module, check out the module’s docs. :::

Interface Vesting.sol

Find the Solidity interface in the HyperPaxeer/extensions repo.

ABI

Find the ABI in the HyperPaxeer/extensions repo.

Transactions

The Vesting solidity interface includes the following transactions
  • createClawbackVestingAccount createClawbackVestingAccount defines a method for the creation of a ClawbackVestingAccount.
  • fundVestingAccount fundVestingAccount defines a method for funding a vesting account.
  • clawback clawback defines a method for clawing back coins from a vesting account.
  • updateVestingFunder updateVestingFunder defines a method for updating the funder of a vesting account.
  • convertVestingAccount convertVestingAccount defines a method for converting a clawback vesting account to an eth account.

Queries

  • balances balances query the balances of a vesting account

Events

Each of the transactions emits its corresponding event. These are:
  • CreateClawbackVestingAccount Event that is emitted when a clawback vesting account is created.
  • FundVestingAccount Event that is emitted when a clawback vesting account is funded.
  • Clawback Event that is emitted when a vesting account is clawed back.
  • UpdateVestingFunder Event that is emitted when a vesting account’s funder is updated.
  • ConvertVestingAccount Event that is emitted when a vesting account is converted to a clawback vesting account.