blockchain

package
v0.0.0-...-42c6bbb Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: GPL-2.0, GPL-3.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

View Source
const YTokenABI = "" /* 7999-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type YToken

type YToken struct {
	YTokenCaller     // Read-only binding to the contract
	YTokenTransactor // Write-only binding to the contract
	YTokenFilterer   // Log filterer for contract events
}

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

func NewYToken

func NewYToken(address common.Address, backend bind.ContractBackend) (*YToken, error)

NewYToken creates a new instance of YToken, bound to a specific deployed contract.

type YTokenApproval

type YTokenApproval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

YTokenApproval represents a Approval event raised by the YToken contract.

type YTokenApprovalIterator

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

YTokenApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the YToken contract.

func (*YTokenApprovalIterator) Close

func (it *YTokenApprovalIterator) Close() error

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

func (*YTokenApprovalIterator) Error

func (it *YTokenApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*YTokenApprovalIterator) Next

func (it *YTokenApprovalIterator) Next() bool

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 YTokenCaller

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

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

func NewYTokenCaller

func NewYTokenCaller(address common.Address, caller bind.ContractCaller) (*YTokenCaller, error)

NewYTokenCaller creates a new read-only instance of YToken, bound to a specific deployed contract.

func (*YTokenCaller) Allowance

func (_YToken *YTokenCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(owner address, spender address) constant returns(uint256)

func (*YTokenCaller) BalanceOf

func (_YToken *YTokenCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(account address) constant returns(uint256)

func (*YTokenCaller) Balances

func (_YToken *YTokenCaller) Balances(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

Balances is a free data retrieval call binding the contract method 0x6ebcf607.

Solidity: function _balances( address) constant returns(uint256)

func (*YTokenCaller) Decimals

func (_YToken *YTokenCaller) Decimals(opts *bind.CallOpts) (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() constant returns(uint8)

func (*YTokenCaller) IsMinter

func (_YToken *YTokenCaller) IsMinter(opts *bind.CallOpts, account common.Address) (bool, error)

IsMinter is a free data retrieval call binding the contract method 0xaa271e1a.

Solidity: function isMinter(account address) constant returns(bool)

func (*YTokenCaller) IsOwner

func (_YToken *YTokenCaller) IsOwner(opts *bind.CallOpts) (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.

Solidity: function isOwner() constant returns(bool)

func (*YTokenCaller) IsPauser

func (_YToken *YTokenCaller) IsPauser(opts *bind.CallOpts, account common.Address) (bool, error)

IsPauser is a free data retrieval call binding the contract method 0x46fbf68e.

Solidity: function isPauser(account address) constant returns(bool)

func (*YTokenCaller) Name

func (_YToken *YTokenCaller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() constant returns(string)

func (*YTokenCaller) Owner

func (_YToken *YTokenCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() constant returns(address)

func (*YTokenCaller) Paused

func (_YToken *YTokenCaller) Paused(opts *bind.CallOpts) (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() constant returns(bool)

func (*YTokenCaller) Symbol

func (_YToken *YTokenCaller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() constant returns(string)

func (*YTokenCaller) TotalSupply

func (_YToken *YTokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() constant returns(uint256)

type YTokenCallerRaw

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

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

func (*YTokenCallerRaw) Call

func (_YToken *YTokenCallerRaw) 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 YTokenCallerSession

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

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

func (*YTokenCallerSession) Allowance

func (_YToken *YTokenCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(owner address, spender address) constant returns(uint256)

func (*YTokenCallerSession) BalanceOf

func (_YToken *YTokenCallerSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(account address) constant returns(uint256)

func (*YTokenCallerSession) Balances

func (_YToken *YTokenCallerSession) Balances(arg0 common.Address) (*big.Int, error)

Balances is a free data retrieval call binding the contract method 0x6ebcf607.

Solidity: function _balances( address) constant returns(uint256)

func (*YTokenCallerSession) Decimals

func (_YToken *YTokenCallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() constant returns(uint8)

func (*YTokenCallerSession) IsMinter

func (_YToken *YTokenCallerSession) IsMinter(account common.Address) (bool, error)

IsMinter is a free data retrieval call binding the contract method 0xaa271e1a.

Solidity: function isMinter(account address) constant returns(bool)

func (*YTokenCallerSession) IsOwner

func (_YToken *YTokenCallerSession) IsOwner() (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.

Solidity: function isOwner() constant returns(bool)

func (*YTokenCallerSession) IsPauser

func (_YToken *YTokenCallerSession) IsPauser(account common.Address) (bool, error)

IsPauser is a free data retrieval call binding the contract method 0x46fbf68e.

Solidity: function isPauser(account address) constant returns(bool)

func (*YTokenCallerSession) Name

func (_YToken *YTokenCallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() constant returns(string)

func (*YTokenCallerSession) Owner

func (_YToken *YTokenCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() constant returns(address)

func (*YTokenCallerSession) Paused

func (_YToken *YTokenCallerSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() constant returns(bool)

func (*YTokenCallerSession) Symbol

func (_YToken *YTokenCallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() constant returns(string)

func (*YTokenCallerSession) TotalSupply

func (_YToken *YTokenCallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() constant returns(uint256)

type YTokenFilterer

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

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

func NewYTokenFilterer

func NewYTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*YTokenFilterer, error)

NewYTokenFilterer creates a new log filterer instance of YToken, bound to a specific deployed contract.

func (*YTokenFilterer) FilterApproval

func (_YToken *YTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*YTokenApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: e Approval(owner indexed address, spender indexed address, value uint256)

func (*YTokenFilterer) FilterMinterAdded

func (_YToken *YTokenFilterer) FilterMinterAdded(opts *bind.FilterOpts, account []common.Address) (*YTokenMinterAddedIterator, error)

FilterMinterAdded is a free log retrieval operation binding the contract event 0x6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f6.

Solidity: e MinterAdded(account indexed address)

func (*YTokenFilterer) FilterMinterRemoved

func (_YToken *YTokenFilterer) FilterMinterRemoved(opts *bind.FilterOpts, account []common.Address) (*YTokenMinterRemovedIterator, error)

FilterMinterRemoved is a free log retrieval operation binding the contract event 0xe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb66692.

Solidity: e MinterRemoved(account indexed address)

func (*YTokenFilterer) FilterOwnershipTransferred

func (_YToken *YTokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*YTokenOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: e OwnershipTransferred(previousOwner indexed address, newOwner indexed address)

func (*YTokenFilterer) FilterPaused

func (_YToken *YTokenFilterer) FilterPaused(opts *bind.FilterOpts) (*YTokenPausedIterator, error)

FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: e Paused(account address)

func (*YTokenFilterer) FilterPauserAdded

func (_YToken *YTokenFilterer) FilterPauserAdded(opts *bind.FilterOpts, account []common.Address) (*YTokenPauserAddedIterator, error)

FilterPauserAdded is a free log retrieval operation binding the contract event 0x6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f8.

Solidity: e PauserAdded(account indexed address)

func (*YTokenFilterer) FilterPauserRemoved

func (_YToken *YTokenFilterer) FilterPauserRemoved(opts *bind.FilterOpts, account []common.Address) (*YTokenPauserRemovedIterator, error)

FilterPauserRemoved is a free log retrieval operation binding the contract event 0xcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e.

Solidity: e PauserRemoved(account indexed address)

func (*YTokenFilterer) FilterTransfer

func (_YToken *YTokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*YTokenTransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: e Transfer(from indexed address, to indexed address, value uint256)

func (*YTokenFilterer) FilterUnpaused

func (_YToken *YTokenFilterer) FilterUnpaused(opts *bind.FilterOpts) (*YTokenUnpausedIterator, error)

FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: e Unpaused(account address)

func (*YTokenFilterer) WatchApproval

func (_YToken *YTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *YTokenApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: e Approval(owner indexed address, spender indexed address, value uint256)

func (*YTokenFilterer) WatchMinterAdded

func (_YToken *YTokenFilterer) WatchMinterAdded(opts *bind.WatchOpts, sink chan<- *YTokenMinterAdded, account []common.Address) (event.Subscription, error)

WatchMinterAdded is a free log subscription operation binding the contract event 0x6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f6.

Solidity: e MinterAdded(account indexed address)

func (*YTokenFilterer) WatchMinterRemoved

func (_YToken *YTokenFilterer) WatchMinterRemoved(opts *bind.WatchOpts, sink chan<- *YTokenMinterRemoved, account []common.Address) (event.Subscription, error)

WatchMinterRemoved is a free log subscription operation binding the contract event 0xe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb66692.

Solidity: e MinterRemoved(account indexed address)

func (*YTokenFilterer) WatchOwnershipTransferred

func (_YToken *YTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *YTokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: e OwnershipTransferred(previousOwner indexed address, newOwner indexed address)

func (*YTokenFilterer) WatchPaused

func (_YToken *YTokenFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *YTokenPaused) (event.Subscription, error)

WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: e Paused(account address)

func (*YTokenFilterer) WatchPauserAdded

func (_YToken *YTokenFilterer) WatchPauserAdded(opts *bind.WatchOpts, sink chan<- *YTokenPauserAdded, account []common.Address) (event.Subscription, error)

WatchPauserAdded is a free log subscription operation binding the contract event 0x6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f8.

Solidity: e PauserAdded(account indexed address)

func (*YTokenFilterer) WatchPauserRemoved

func (_YToken *YTokenFilterer) WatchPauserRemoved(opts *bind.WatchOpts, sink chan<- *YTokenPauserRemoved, account []common.Address) (event.Subscription, error)

WatchPauserRemoved is a free log subscription operation binding the contract event 0xcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e.

Solidity: e PauserRemoved(account indexed address)

func (*YTokenFilterer) WatchTransfer

func (_YToken *YTokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *YTokenTransfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: e Transfer(from indexed address, to indexed address, value uint256)

func (*YTokenFilterer) WatchUnpaused

func (_YToken *YTokenFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *YTokenUnpaused) (event.Subscription, error)

WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: e Unpaused(account address)

type YTokenMinterAdded

type YTokenMinterAdded struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

YTokenMinterAdded represents a MinterAdded event raised by the YToken contract.

type YTokenMinterAddedIterator

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

YTokenMinterAddedIterator is returned from FilterMinterAdded and is used to iterate over the raw logs and unpacked data for MinterAdded events raised by the YToken contract.

func (*YTokenMinterAddedIterator) Close

func (it *YTokenMinterAddedIterator) Close() error

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

func (*YTokenMinterAddedIterator) Error

func (it *YTokenMinterAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*YTokenMinterAddedIterator) Next

func (it *YTokenMinterAddedIterator) Next() bool

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 YTokenMinterRemoved

type YTokenMinterRemoved struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

YTokenMinterRemoved represents a MinterRemoved event raised by the YToken contract.

type YTokenMinterRemovedIterator

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

YTokenMinterRemovedIterator is returned from FilterMinterRemoved and is used to iterate over the raw logs and unpacked data for MinterRemoved events raised by the YToken contract.

func (*YTokenMinterRemovedIterator) Close

func (it *YTokenMinterRemovedIterator) Close() error

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

func (*YTokenMinterRemovedIterator) Error

func (it *YTokenMinterRemovedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*YTokenMinterRemovedIterator) Next

func (it *YTokenMinterRemovedIterator) Next() bool

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 YTokenOwnershipTransferred

type YTokenOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

YTokenOwnershipTransferred represents a OwnershipTransferred event raised by the YToken contract.

type YTokenOwnershipTransferredIterator

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

YTokenOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the YToken contract.

func (*YTokenOwnershipTransferredIterator) Close

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

func (*YTokenOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*YTokenOwnershipTransferredIterator) 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 YTokenPaused

type YTokenPaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

YTokenPaused represents a Paused event raised by the YToken contract.

type YTokenPausedIterator

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

YTokenPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the YToken contract.

func (*YTokenPausedIterator) Close

func (it *YTokenPausedIterator) Close() error

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

func (*YTokenPausedIterator) Error

func (it *YTokenPausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*YTokenPausedIterator) Next

func (it *YTokenPausedIterator) Next() bool

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 YTokenPauserAdded

type YTokenPauserAdded struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

YTokenPauserAdded represents a PauserAdded event raised by the YToken contract.

type YTokenPauserAddedIterator

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

YTokenPauserAddedIterator is returned from FilterPauserAdded and is used to iterate over the raw logs and unpacked data for PauserAdded events raised by the YToken contract.

func (*YTokenPauserAddedIterator) Close

func (it *YTokenPauserAddedIterator) Close() error

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

func (*YTokenPauserAddedIterator) Error

func (it *YTokenPauserAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*YTokenPauserAddedIterator) Next

func (it *YTokenPauserAddedIterator) Next() bool

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 YTokenPauserRemoved

type YTokenPauserRemoved struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

YTokenPauserRemoved represents a PauserRemoved event raised by the YToken contract.

type YTokenPauserRemovedIterator

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

YTokenPauserRemovedIterator is returned from FilterPauserRemoved and is used to iterate over the raw logs and unpacked data for PauserRemoved events raised by the YToken contract.

func (*YTokenPauserRemovedIterator) Close

func (it *YTokenPauserRemovedIterator) Close() error

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

func (*YTokenPauserRemovedIterator) Error

func (it *YTokenPauserRemovedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*YTokenPauserRemovedIterator) Next

func (it *YTokenPauserRemovedIterator) Next() bool

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 YTokenRaw

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

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

func (*YTokenRaw) Call

func (_YToken *YTokenRaw) 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 (*YTokenRaw) Transact

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

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

func (*YTokenRaw) Transfer

func (_YToken *YTokenRaw) 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 YTokenSession

type YTokenSession struct {
	Contract     *YToken           // 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
}

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

func (*YTokenSession) AddMinter

func (_YToken *YTokenSession) AddMinter(account common.Address) (*types.Transaction, error)

AddMinter is a paid mutator transaction binding the contract method 0x983b2d56.

Solidity: function addMinter(account address) returns()

func (*YTokenSession) AddPauser

func (_YToken *YTokenSession) AddPauser(account common.Address) (*types.Transaction, error)

AddPauser is a paid mutator transaction binding the contract method 0x82dc1ec4.

Solidity: function addPauser(account address) returns()

func (*YTokenSession) Allowance

func (_YToken *YTokenSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(owner address, spender address) constant returns(uint256)

func (*YTokenSession) Approve

func (_YToken *YTokenSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(spender address, value uint256) returns(bool)

func (*YTokenSession) BalanceOf

func (_YToken *YTokenSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(account address) constant returns(uint256)

func (*YTokenSession) Balances

func (_YToken *YTokenSession) Balances(arg0 common.Address) (*big.Int, error)

Balances is a free data retrieval call binding the contract method 0x6ebcf607.

Solidity: function _balances( address) constant returns(uint256)

func (*YTokenSession) Burn

func (_YToken *YTokenSession) Burn(amount *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x42966c68.

Solidity: function burn(amount uint256) returns()

func (*YTokenSession) BurnFrom

func (_YToken *YTokenSession) BurnFrom(account common.Address, amount *big.Int) (*types.Transaction, error)

BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790.

Solidity: function burnFrom(account address, amount uint256) returns()

func (*YTokenSession) Decimals

func (_YToken *YTokenSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() constant returns(uint8)

func (*YTokenSession) DecreaseAllowance

func (_YToken *YTokenSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(spender address, subtractedValue uint256) returns(bool)

func (*YTokenSession) IncreaseAllowance

func (_YToken *YTokenSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(spender address, addedValue uint256) returns(bool)

func (*YTokenSession) IsMinter

func (_YToken *YTokenSession) IsMinter(account common.Address) (bool, error)

IsMinter is a free data retrieval call binding the contract method 0xaa271e1a.

Solidity: function isMinter(account address) constant returns(bool)

func (*YTokenSession) IsOwner

func (_YToken *YTokenSession) IsOwner() (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.

Solidity: function isOwner() constant returns(bool)

func (*YTokenSession) IsPauser

func (_YToken *YTokenSession) IsPauser(account common.Address) (bool, error)

IsPauser is a free data retrieval call binding the contract method 0x46fbf68e.

Solidity: function isPauser(account address) constant returns(bool)

func (*YTokenSession) Mint

func (_YToken *YTokenSession) Mint(account common.Address, amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(account address, amount uint256) returns(bool)

func (*YTokenSession) Name

func (_YToken *YTokenSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() constant returns(string)

func (*YTokenSession) Owner

func (_YToken *YTokenSession) Owner() (common.Address, error)

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

Solidity: function owner() constant returns(address)

func (*YTokenSession) Pause

func (_YToken *YTokenSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*YTokenSession) Paused

func (_YToken *YTokenSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() constant returns(bool)

func (*YTokenSession) RenounceMinter

func (_YToken *YTokenSession) RenounceMinter() (*types.Transaction, error)

RenounceMinter is a paid mutator transaction binding the contract method 0x98650275.

Solidity: function renounceMinter() returns()

func (*YTokenSession) RenounceOwnership

func (_YToken *YTokenSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*YTokenSession) RenouncePauser

func (_YToken *YTokenSession) RenouncePauser() (*types.Transaction, error)

RenouncePauser is a paid mutator transaction binding the contract method 0x6ef8d66d.

Solidity: function renouncePauser() returns()

func (*YTokenSession) Symbol

func (_YToken *YTokenSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() constant returns(string)

func (*YTokenSession) TotalSupply

func (_YToken *YTokenSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() constant returns(uint256)

func (*YTokenSession) Transfer

func (_YToken *YTokenSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(to address, value uint256) returns(bool)

func (*YTokenSession) TransferFrom

func (_YToken *YTokenSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(from address, to address, value uint256) returns(bool)

func (*YTokenSession) TransferGRCOwnership

func (_YToken *YTokenSession) TransferGRCOwnership(newOwner common.Address) (*types.Transaction, error)

TransferGRCOwnership is a paid mutator transaction binding the contract method 0xcf8eb89c.

Solidity: function transferGRCOwnership(newOwner address) returns()

func (*YTokenSession) TransferOwnership

func (_YToken *YTokenSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(newOwner address) returns()

func (*YTokenSession) Unpause

func (_YToken *YTokenSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

type YTokenTransactor

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

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

func NewYTokenTransactor

func NewYTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*YTokenTransactor, error)

NewYTokenTransactor creates a new write-only instance of YToken, bound to a specific deployed contract.

func (*YTokenTransactor) AddMinter

func (_YToken *YTokenTransactor) AddMinter(opts *bind.TransactOpts, account common.Address) (*types.Transaction, error)

AddMinter is a paid mutator transaction binding the contract method 0x983b2d56.

Solidity: function addMinter(account address) returns()

func (*YTokenTransactor) AddPauser

func (_YToken *YTokenTransactor) AddPauser(opts *bind.TransactOpts, account common.Address) (*types.Transaction, error)

AddPauser is a paid mutator transaction binding the contract method 0x82dc1ec4.

Solidity: function addPauser(account address) returns()

func (*YTokenTransactor) Approve

func (_YToken *YTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(spender address, value uint256) returns(bool)

func (*YTokenTransactor) Burn

func (_YToken *YTokenTransactor) Burn(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x42966c68.

Solidity: function burn(amount uint256) returns()

func (*YTokenTransactor) BurnFrom

func (_YToken *YTokenTransactor) BurnFrom(opts *bind.TransactOpts, account common.Address, amount *big.Int) (*types.Transaction, error)

BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790.

Solidity: function burnFrom(account address, amount uint256) returns()

func (*YTokenTransactor) DecreaseAllowance

func (_YToken *YTokenTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(spender address, subtractedValue uint256) returns(bool)

func (*YTokenTransactor) IncreaseAllowance

func (_YToken *YTokenTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(spender address, addedValue uint256) returns(bool)

func (*YTokenTransactor) Mint

func (_YToken *YTokenTransactor) Mint(opts *bind.TransactOpts, account common.Address, amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(account address, amount uint256) returns(bool)

func (*YTokenTransactor) Pause

func (_YToken *YTokenTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*YTokenTransactor) RenounceMinter

func (_YToken *YTokenTransactor) RenounceMinter(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceMinter is a paid mutator transaction binding the contract method 0x98650275.

Solidity: function renounceMinter() returns()

func (*YTokenTransactor) RenounceOwnership

func (_YToken *YTokenTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*YTokenTransactor) RenouncePauser

func (_YToken *YTokenTransactor) RenouncePauser(opts *bind.TransactOpts) (*types.Transaction, error)

RenouncePauser is a paid mutator transaction binding the contract method 0x6ef8d66d.

Solidity: function renouncePauser() returns()

func (*YTokenTransactor) Transfer

func (_YToken *YTokenTransactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(to address, value uint256) returns(bool)

func (*YTokenTransactor) TransferFrom

func (_YToken *YTokenTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(from address, to address, value uint256) returns(bool)

func (*YTokenTransactor) TransferGRCOwnership

func (_YToken *YTokenTransactor) TransferGRCOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferGRCOwnership is a paid mutator transaction binding the contract method 0xcf8eb89c.

Solidity: function transferGRCOwnership(newOwner address) returns()

func (*YTokenTransactor) TransferOwnership

func (_YToken *YTokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(newOwner address) returns()

func (*YTokenTransactor) Unpause

func (_YToken *YTokenTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

type YTokenTransactorRaw

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

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

func (*YTokenTransactorRaw) Transact

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

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

func (*YTokenTransactorRaw) Transfer

func (_YToken *YTokenTransactorRaw) 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 YTokenTransactorSession

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

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

func (*YTokenTransactorSession) AddMinter

func (_YToken *YTokenTransactorSession) AddMinter(account common.Address) (*types.Transaction, error)

AddMinter is a paid mutator transaction binding the contract method 0x983b2d56.

Solidity: function addMinter(account address) returns()

func (*YTokenTransactorSession) AddPauser

func (_YToken *YTokenTransactorSession) AddPauser(account common.Address) (*types.Transaction, error)

AddPauser is a paid mutator transaction binding the contract method 0x82dc1ec4.

Solidity: function addPauser(account address) returns()

func (*YTokenTransactorSession) Approve

func (_YToken *YTokenTransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(spender address, value uint256) returns(bool)

func (*YTokenTransactorSession) Burn

func (_YToken *YTokenTransactorSession) Burn(amount *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x42966c68.

Solidity: function burn(amount uint256) returns()

func (*YTokenTransactorSession) BurnFrom

func (_YToken *YTokenTransactorSession) BurnFrom(account common.Address, amount *big.Int) (*types.Transaction, error)

BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790.

Solidity: function burnFrom(account address, amount uint256) returns()

func (*YTokenTransactorSession) DecreaseAllowance

func (_YToken *YTokenTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(spender address, subtractedValue uint256) returns(bool)

func (*YTokenTransactorSession) IncreaseAllowance

func (_YToken *YTokenTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(spender address, addedValue uint256) returns(bool)

func (*YTokenTransactorSession) Mint

func (_YToken *YTokenTransactorSession) Mint(account common.Address, amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(account address, amount uint256) returns(bool)

func (*YTokenTransactorSession) Pause

func (_YToken *YTokenTransactorSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*YTokenTransactorSession) RenounceMinter

func (_YToken *YTokenTransactorSession) RenounceMinter() (*types.Transaction, error)

RenounceMinter is a paid mutator transaction binding the contract method 0x98650275.

Solidity: function renounceMinter() returns()

func (*YTokenTransactorSession) RenounceOwnership

func (_YToken *YTokenTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*YTokenTransactorSession) RenouncePauser

func (_YToken *YTokenTransactorSession) RenouncePauser() (*types.Transaction, error)

RenouncePauser is a paid mutator transaction binding the contract method 0x6ef8d66d.

Solidity: function renouncePauser() returns()

func (*YTokenTransactorSession) Transfer

func (_YToken *YTokenTransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(to address, value uint256) returns(bool)

func (*YTokenTransactorSession) TransferFrom

func (_YToken *YTokenTransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(from address, to address, value uint256) returns(bool)

func (*YTokenTransactorSession) TransferGRCOwnership

func (_YToken *YTokenTransactorSession) TransferGRCOwnership(newOwner common.Address) (*types.Transaction, error)

TransferGRCOwnership is a paid mutator transaction binding the contract method 0xcf8eb89c.

Solidity: function transferGRCOwnership(newOwner address) returns()

func (*YTokenTransactorSession) TransferOwnership

func (_YToken *YTokenTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(newOwner address) returns()

func (*YTokenTransactorSession) Unpause

func (_YToken *YTokenTransactorSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

type YTokenTransfer

type YTokenTransfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

YTokenTransfer represents a Transfer event raised by the YToken contract.

type YTokenTransferIterator

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

YTokenTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the YToken contract.

func (*YTokenTransferIterator) Close

func (it *YTokenTransferIterator) Close() error

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

func (*YTokenTransferIterator) Error

func (it *YTokenTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*YTokenTransferIterator) Next

func (it *YTokenTransferIterator) Next() bool

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 YTokenUnpaused

type YTokenUnpaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

YTokenUnpaused represents a Unpaused event raised by the YToken contract.

type YTokenUnpausedIterator

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

YTokenUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the YToken contract.

func (*YTokenUnpausedIterator) Close

func (it *YTokenUnpausedIterator) Close() error

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

func (*YTokenUnpausedIterator) Error

func (it *YTokenUnpausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*YTokenUnpausedIterator) Next

func (it *YTokenUnpausedIterator) Next() bool

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.

Jump to

Keyboard shortcuts

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