vesting

package
v0.0.0-...-c2006ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const VestingABI = "" /* 2505-byte string literal not displayed */

VestingABI is the input ABI used to generate the binding from.

Variables

View Source
var VestingBin = "" /* 4118-byte string literal not displayed */

VestingBin is the compiled bytecode used for deploying new contracts.

Functions

This section is empty.

Types

type Vesting

type Vesting struct {
	VestingCaller     // Read-only binding to the contract
	VestingTransactor // Write-only binding to the contract
	VestingFilterer   // Log filterer for contract events
}

Vesting is an auto generated Go binding around an Ethereum contract.

func DeployVesting

func DeployVesting(auth *bind.TransactOpts, backend bind.ContractBackend, _levTokenAddress common.Address, _dateTimeContract common.Address, _owner common.Address) (common.Address, *types.Transaction, *Vesting, error)

DeployVesting deploys a new Ethereum contract, binding an instance of Vesting to it.

func NewVesting

func NewVesting(address common.Address, backend bind.ContractBackend) (*Vesting, error)

NewVesting creates a new instance of Vesting, bound to a specific deployed contract.

type VestingCaller

type VestingCaller struct {
	// contains filtered or unexported fields
}

VestingCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewVestingCaller

func NewVestingCaller(address common.Address, caller bind.ContractCaller) (*VestingCaller, error)

NewVestingCaller creates a new read-only instance of Vesting, bound to a specific deployed contract.

func (*VestingCaller) CurrentCycle

func (_Vesting *VestingCaller) CurrentCycle(opts *bind.CallOpts) (*big.Int, error)

CurrentCycle is a free data retrieval call binding the contract method 0xbab2f552.

Solidity: function currentCycle() view returns(uint256)

func (*VestingCaller) EndTime

func (_Vesting *VestingCaller) EndTime(opts *bind.CallOpts) (*big.Int, error)

EndTime is a free data retrieval call binding the contract method 0x3197cbb6.

Solidity: function endTime() view returns(uint256)

func (*VestingCaller) IsPrepared

func (_Vesting *VestingCaller) IsPrepared(opts *bind.CallOpts) (bool, error)

IsPrepared is a free data retrieval call binding the contract method 0x939c28e6.

Solidity: function isPrepared() view returns(bool)

func (*VestingCaller) IsReleased

func (_Vesting *VestingCaller) IsReleased(opts *bind.CallOpts, _cycle *big.Int) (bool, error)

IsReleased is a free data retrieval call binding the contract method 0x73962b26.

Solidity: function isReleased(uint256 _cycle) view returns(bool)

func (*VestingCaller) Owner

func (_Vesting *VestingCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*VestingCaller) Receiver

func (_Vesting *VestingCaller) Receiver(opts *bind.CallOpts) (common.Address, error)

Receiver is a free data retrieval call binding the contract method 0xf7260d3e.

Solidity: function receiver() view returns(address)

func (*VestingCaller) ReleaseAmount

func (_Vesting *VestingCaller) ReleaseAmount(opts *bind.CallOpts) (*big.Int, error)

ReleaseAmount is a free data retrieval call binding the contract method 0xc062dc5f.

Solidity: function releaseAmount() view returns(uint256)

func (*VestingCaller) Releases

func (_Vesting *VestingCaller) Releases(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Timestamp *big.Int
	Released  *big.Int
}, error)

Releases is a free data retrieval call binding the contract method 0xb6a9f40f.

Solidity: function releases(uint256 ) view returns(uint256 timestamp, uint256 released)

func (*VestingCaller) StartTime

func (_Vesting *VestingCaller) StartTime(opts *bind.CallOpts) (*big.Int, error)

StartTime is a free data retrieval call binding the contract method 0x78e97925.

Solidity: function startTime() view returns(uint256)

type VestingCallerRaw

type VestingCallerRaw struct {
	Contract *VestingCaller // Generic read-only contract binding to access the raw methods on
}

VestingCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*VestingCallerRaw) Call

func (_Vesting *VestingCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type VestingCallerSession

type VestingCallerSession struct {
	Contract *VestingCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts  // Call options to use throughout this session
}

VestingCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*VestingCallerSession) CurrentCycle

func (_Vesting *VestingCallerSession) CurrentCycle() (*big.Int, error)

CurrentCycle is a free data retrieval call binding the contract method 0xbab2f552.

Solidity: function currentCycle() view returns(uint256)

func (*VestingCallerSession) EndTime

func (_Vesting *VestingCallerSession) EndTime() (*big.Int, error)

EndTime is a free data retrieval call binding the contract method 0x3197cbb6.

Solidity: function endTime() view returns(uint256)

func (*VestingCallerSession) IsPrepared

func (_Vesting *VestingCallerSession) IsPrepared() (bool, error)

IsPrepared is a free data retrieval call binding the contract method 0x939c28e6.

Solidity: function isPrepared() view returns(bool)

func (*VestingCallerSession) IsReleased

func (_Vesting *VestingCallerSession) IsReleased(_cycle *big.Int) (bool, error)

IsReleased is a free data retrieval call binding the contract method 0x73962b26.

Solidity: function isReleased(uint256 _cycle) view returns(bool)

func (*VestingCallerSession) Owner

func (_Vesting *VestingCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*VestingCallerSession) Receiver

func (_Vesting *VestingCallerSession) Receiver() (common.Address, error)

Receiver is a free data retrieval call binding the contract method 0xf7260d3e.

Solidity: function receiver() view returns(address)

func (*VestingCallerSession) ReleaseAmount

func (_Vesting *VestingCallerSession) ReleaseAmount() (*big.Int, error)

ReleaseAmount is a free data retrieval call binding the contract method 0xc062dc5f.

Solidity: function releaseAmount() view returns(uint256)

func (*VestingCallerSession) Releases

func (_Vesting *VestingCallerSession) Releases(arg0 *big.Int) (struct {
	Timestamp *big.Int
	Released  *big.Int
}, error)

Releases is a free data retrieval call binding the contract method 0xb6a9f40f.

Solidity: function releases(uint256 ) view returns(uint256 timestamp, uint256 released)

func (*VestingCallerSession) StartTime

func (_Vesting *VestingCallerSession) StartTime() (*big.Int, error)

StartTime is a free data retrieval call binding the contract method 0x78e97925.

Solidity: function startTime() view returns(uint256)

type VestingFilterer

type VestingFilterer struct {
	// contains filtered or unexported fields
}

VestingFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewVestingFilterer

func NewVestingFilterer(address common.Address, filterer bind.ContractFilterer) (*VestingFilterer, error)

NewVestingFilterer creates a new log filterer instance of Vesting, bound to a specific deployed contract.

func (*VestingFilterer) FilterTokensReleased

func (_Vesting *VestingFilterer) FilterTokensReleased(opts *bind.FilterOpts) (*VestingTokensReleasedIterator, error)

FilterTokensReleased is a free log retrieval operation binding the contract event 0x3cf447e1c5a595a578bfe340289a0dad7a7f22771c57c9443ad7eedea1964d76.

Solidity: event TokensReleased()

func (*VestingFilterer) ParseTokensReleased

func (_Vesting *VestingFilterer) ParseTokensReleased(log types.Log) (*VestingTokensReleased, error)

ParseTokensReleased is a log parse operation binding the contract event 0x3cf447e1c5a595a578bfe340289a0dad7a7f22771c57c9443ad7eedea1964d76.

Solidity: event TokensReleased()

func (*VestingFilterer) WatchTokensReleased

func (_Vesting *VestingFilterer) WatchTokensReleased(opts *bind.WatchOpts, sink chan<- *VestingTokensReleased) (event.Subscription, error)

WatchTokensReleased is a free log subscription operation binding the contract event 0x3cf447e1c5a595a578bfe340289a0dad7a7f22771c57c9443ad7eedea1964d76.

Solidity: event TokensReleased()

type VestingRaw

type VestingRaw struct {
	Contract *Vesting // Generic contract binding to access the raw methods on
}

VestingRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*VestingRaw) Call

func (_Vesting *VestingRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*VestingRaw) Transact

func (_Vesting *VestingRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*VestingRaw) Transfer

func (_Vesting *VestingRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type VestingSession

type VestingSession struct {
	Contract     *Vesting          // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

VestingSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*VestingSession) CurrentCycle

func (_Vesting *VestingSession) CurrentCycle() (*big.Int, error)

CurrentCycle is a free data retrieval call binding the contract method 0xbab2f552.

Solidity: function currentCycle() view returns(uint256)

func (*VestingSession) EndTime

func (_Vesting *VestingSession) EndTime() (*big.Int, error)

EndTime is a free data retrieval call binding the contract method 0x3197cbb6.

Solidity: function endTime() view returns(uint256)

func (*VestingSession) IsPrepared

func (_Vesting *VestingSession) IsPrepared() (bool, error)

IsPrepared is a free data retrieval call binding the contract method 0x939c28e6.

Solidity: function isPrepared() view returns(bool)

func (*VestingSession) IsReleased

func (_Vesting *VestingSession) IsReleased(_cycle *big.Int) (bool, error)

IsReleased is a free data retrieval call binding the contract method 0x73962b26.

Solidity: function isReleased(uint256 _cycle) view returns(bool)

func (*VestingSession) Owner

func (_Vesting *VestingSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*VestingSession) Prepare

func (_Vesting *VestingSession) Prepare(_amountToVest *big.Int, _receiver common.Address) (*types.Transaction, error)

Prepare is a paid mutator transaction binding the contract method 0x7c0c3e02.

Solidity: function prepare(uint256 _amountToVest, address _receiver) returns()

func (*VestingSession) Receiver

func (_Vesting *VestingSession) Receiver() (common.Address, error)

Receiver is a free data retrieval call binding the contract method 0xf7260d3e.

Solidity: function receiver() view returns(address)

func (*VestingSession) Release

func (_Vesting *VestingSession) Release() (*types.Transaction, error)

Release is a paid mutator transaction binding the contract method 0x86d1a69f.

Solidity: function release() returns()

func (*VestingSession) ReleaseAmount

func (_Vesting *VestingSession) ReleaseAmount() (*big.Int, error)

ReleaseAmount is a free data retrieval call binding the contract method 0xc062dc5f.

Solidity: function releaseAmount() view returns(uint256)

func (*VestingSession) Releases

func (_Vesting *VestingSession) Releases(arg0 *big.Int) (struct {
	Timestamp *big.Int
	Released  *big.Int
}, error)

Releases is a free data retrieval call binding the contract method 0xb6a9f40f.

Solidity: function releases(uint256 ) view returns(uint256 timestamp, uint256 released)

func (*VestingSession) StartTime

func (_Vesting *VestingSession) StartTime() (*big.Int, error)

StartTime is a free data retrieval call binding the contract method 0x78e97925.

Solidity: function startTime() view returns(uint256)

type VestingTokensReleased

type VestingTokensReleased struct {
	Raw types.Log // Blockchain specific contextual infos
}

VestingTokensReleased represents a TokensReleased event raised by the Vesting contract.

type VestingTokensReleasedIterator

type VestingTokensReleasedIterator struct {
	Event *VestingTokensReleased // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VestingTokensReleasedIterator is returned from FilterTokensReleased and is used to iterate over the raw logs and unpacked data for TokensReleased events raised by the Vesting contract.

func (*VestingTokensReleasedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*VestingTokensReleasedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VestingTokensReleasedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VestingTransactor

type VestingTransactor struct {
	// contains filtered or unexported fields
}

VestingTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewVestingTransactor

func NewVestingTransactor(address common.Address, transactor bind.ContractTransactor) (*VestingTransactor, error)

NewVestingTransactor creates a new write-only instance of Vesting, bound to a specific deployed contract.

func (*VestingTransactor) Prepare

func (_Vesting *VestingTransactor) Prepare(opts *bind.TransactOpts, _amountToVest *big.Int, _receiver common.Address) (*types.Transaction, error)

Prepare is a paid mutator transaction binding the contract method 0x7c0c3e02.

Solidity: function prepare(uint256 _amountToVest, address _receiver) returns()

func (*VestingTransactor) Release

func (_Vesting *VestingTransactor) Release(opts *bind.TransactOpts) (*types.Transaction, error)

Release is a paid mutator transaction binding the contract method 0x86d1a69f.

Solidity: function release() returns()

type VestingTransactorRaw

type VestingTransactorRaw struct {
	Contract *VestingTransactor // Generic write-only contract binding to access the raw methods on
}

VestingTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*VestingTransactorRaw) Transact

func (_Vesting *VestingTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*VestingTransactorRaw) Transfer

func (_Vesting *VestingTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type VestingTransactorSession

type VestingTransactorSession struct {
	Contract     *VestingTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts  // Transaction auth options to use throughout this session
}

VestingTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*VestingTransactorSession) Prepare

func (_Vesting *VestingTransactorSession) Prepare(_amountToVest *big.Int, _receiver common.Address) (*types.Transaction, error)

Prepare is a paid mutator transaction binding the contract method 0x7c0c3e02.

Solidity: function prepare(uint256 _amountToVest, address _receiver) returns()

func (*VestingTransactorSession) Release

func (_Vesting *VestingTransactorSession) Release() (*types.Transaction, error)

Release is a paid mutator transaction binding the contract method 0x86d1a69f.

Solidity: function release() returns()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL