Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

IVesting

Fully qualified path: openzeppelin_interfaces::finance::vesting::IVesting

pub trait IVesting<TState>

Trait functions

start

Returns the timestamp marking the beginning of the vesting period.

Fully qualified path: openzeppelin_interfaces::finance::vesting::IVesting::start

fn start(self: @TState) -> u64

cliff

Returns the timestamp marking the end of the cliff period.

Fully qualified path: openzeppelin_interfaces::finance::vesting::IVesting::cliff

fn cliff(self: @TState) -> u64

duration

Returns the total duration of the vesting period.

Fully qualified path: openzeppelin_interfaces::finance::vesting::IVesting::duration

fn duration(self: @TState) -> u64

end

Returns the timestamp marking the end of the vesting period.

Fully qualified path: openzeppelin_interfaces::finance::vesting::IVesting::end

fn end(self: @TState) -> u64

released

Returns the already released amount for a given token.

Fully qualified path: openzeppelin_interfaces::finance::vesting::IVesting::released

fn released(self: @TState, token: ContractAddress) -> u256

releasable

Returns the amount of a given token that can be released at the time of the call.

Fully qualified path: openzeppelin_interfaces::finance::vesting::IVesting::releasable

fn releasable(self: @TState, token: ContractAddress) -> u256

vested_amount

Returns the total vested amount of a specified token at a given timestamp.

Fully qualified path: openzeppelin_interfaces::finance::vesting::IVesting::vested_amount

fn vested_amount(self: @TState, token: ContractAddress, timestamp: u64) -> u256

release

Releases the amount of a given token that has already vested.

Fully qualified path: openzeppelin_interfaces::finance::vesting::IVesting::release

fn release(ref self: TState, token: ContractAddress) -> u256