Documentation ¶
Index ¶
- Constants
- Variables
- type KNWToken
- type KNWTokenBurn
- type KNWTokenBurnIterator
- type KNWTokenCaller
- func (_KNWToken *KNWTokenCaller) AmountOfIDs(opts *bind.CallOpts) (*big.Int, error)
- func (_KNWToken *KNWTokenCaller) AuthorizedAddresses(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- func (_KNWToken *KNWTokenCaller) BalanceOfID(opts *bind.CallOpts, _address common.Address, _id *big.Int) (*big.Int, error)
- func (_KNWToken *KNWTokenCaller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_KNWToken *KNWTokenCaller) FreeBalanceOfID(opts *bind.CallOpts, _address common.Address, _id *big.Int) (*big.Int, error)
- func (_KNWToken *KNWTokenCaller) LabelOfID(opts *bind.CallOpts, _id *big.Int) (string, error)
- func (_KNWToken *KNWTokenCaller) Manager(opts *bind.CallOpts) (common.Address, error)
- func (_KNWToken *KNWTokenCaller) Name(opts *bind.CallOpts) (string, error)
- func (_KNWToken *KNWTokenCaller) Symbol(opts *bind.CallOpts) (string, error)
- func (_KNWToken *KNWTokenCaller) TotalIDSupply(opts *bind.CallOpts, _id *big.Int) (*big.Int, error)
- func (_KNWToken *KNWTokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- type KNWTokenCallerRaw
- type KNWTokenCallerSession
- func (_KNWToken *KNWTokenCallerSession) AmountOfIDs() (*big.Int, error)
- func (_KNWToken *KNWTokenCallerSession) AuthorizedAddresses(arg0 common.Address) (bool, error)
- func (_KNWToken *KNWTokenCallerSession) BalanceOfID(_address common.Address, _id *big.Int) (*big.Int, error)
- func (_KNWToken *KNWTokenCallerSession) Decimals() (uint8, error)
- func (_KNWToken *KNWTokenCallerSession) FreeBalanceOfID(_address common.Address, _id *big.Int) (*big.Int, error)
- func (_KNWToken *KNWTokenCallerSession) LabelOfID(_id *big.Int) (string, error)
- func (_KNWToken *KNWTokenCallerSession) Manager() (common.Address, error)
- func (_KNWToken *KNWTokenCallerSession) Name() (string, error)
- func (_KNWToken *KNWTokenCallerSession) Symbol() (string, error)
- func (_KNWToken *KNWTokenCallerSession) TotalIDSupply(_id *big.Int) (*big.Int, error)
- func (_KNWToken *KNWTokenCallerSession) TotalSupply() (*big.Int, error)
- type KNWTokenFilterer
- func (_KNWToken *KNWTokenFilterer) FilterBurn(opts *bind.FilterOpts, who []common.Address) (*KNWTokenBurnIterator, error)
- func (_KNWToken *KNWTokenFilterer) FilterMint(opts *bind.FilterOpts, who []common.Address) (*KNWTokenMintIterator, error)
- func (_KNWToken *KNWTokenFilterer) FilterNewLabel(opts *bind.FilterOpts, id []*big.Int) (*KNWTokenNewLabelIterator, error)
- func (_KNWToken *KNWTokenFilterer) ParseBurn(log types.Log) (*KNWTokenBurn, error)
- func (_KNWToken *KNWTokenFilterer) ParseMint(log types.Log) (*KNWTokenMint, error)
- func (_KNWToken *KNWTokenFilterer) ParseNewLabel(log types.Log) (*KNWTokenNewLabel, error)
- func (_KNWToken *KNWTokenFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *KNWTokenBurn, who []common.Address) (event.Subscription, error)
- func (_KNWToken *KNWTokenFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *KNWTokenMint, who []common.Address) (event.Subscription, error)
- func (_KNWToken *KNWTokenFilterer) WatchNewLabel(opts *bind.WatchOpts, sink chan<- *KNWTokenNewLabel, id []*big.Int) (event.Subscription, error)
- type KNWTokenMint
- type KNWTokenMintIterator
- type KNWTokenNewLabel
- type KNWTokenNewLabelIterator
- type KNWTokenRaw
- func (_KNWToken *KNWTokenRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_KNWToken *KNWTokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_KNWToken *KNWTokenRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type KNWTokenSession
- func (_KNWToken *KNWTokenSession) AddNewLabel(_newLabel string) (*types.Transaction, error)
- func (_KNWToken *KNWTokenSession) AmountOfIDs() (*big.Int, error)
- func (_KNWToken *KNWTokenSession) AuthorizeAddress(_address common.Address) (*types.Transaction, error)
- func (_KNWToken *KNWTokenSession) AuthorizedAddresses(arg0 common.Address) (bool, error)
- func (_KNWToken *KNWTokenSession) BalanceOfID(_address common.Address, _id *big.Int) (*big.Int, error)
- func (_KNWToken *KNWTokenSession) Burn(_address common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)
- func (_KNWToken *KNWTokenSession) Decimals() (uint8, error)
- func (_KNWToken *KNWTokenSession) FreeBalanceOfID(_address common.Address, _id *big.Int) (*big.Int, error)
- func (_KNWToken *KNWTokenSession) LabelOfID(_id *big.Int) (string, error)
- func (_KNWToken *KNWTokenSession) LockTokens(_address common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)
- func (_KNWToken *KNWTokenSession) Manager() (common.Address, error)
- func (_KNWToken *KNWTokenSession) Mint(_address common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)
- func (_KNWToken *KNWTokenSession) Name() (string, error)
- func (_KNWToken *KNWTokenSession) RemoveAddress(_address common.Address) (*types.Transaction, error)
- func (_KNWToken *KNWTokenSession) ReplaceManager(_address common.Address) (*types.Transaction, error)
- func (_KNWToken *KNWTokenSession) Symbol() (string, error)
- func (_KNWToken *KNWTokenSession) TotalIDSupply(_id *big.Int) (*big.Int, error)
- func (_KNWToken *KNWTokenSession) TotalSupply() (*big.Int, error)
- func (_KNWToken *KNWTokenSession) UnlockTokens(_address common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)
- type KNWTokenTransactor
- func (_KNWToken *KNWTokenTransactor) AddNewLabel(opts *bind.TransactOpts, _newLabel string) (*types.Transaction, error)
- func (_KNWToken *KNWTokenTransactor) AuthorizeAddress(opts *bind.TransactOpts, _address common.Address) (*types.Transaction, error)
- func (_KNWToken *KNWTokenTransactor) Burn(opts *bind.TransactOpts, _address common.Address, _id *big.Int, ...) (*types.Transaction, error)
- func (_KNWToken *KNWTokenTransactor) LockTokens(opts *bind.TransactOpts, _address common.Address, _id *big.Int, ...) (*types.Transaction, error)
- func (_KNWToken *KNWTokenTransactor) Mint(opts *bind.TransactOpts, _address common.Address, _id *big.Int, ...) (*types.Transaction, error)
- func (_KNWToken *KNWTokenTransactor) RemoveAddress(opts *bind.TransactOpts, _address common.Address) (*types.Transaction, error)
- func (_KNWToken *KNWTokenTransactor) ReplaceManager(opts *bind.TransactOpts, _address common.Address) (*types.Transaction, error)
- func (_KNWToken *KNWTokenTransactor) UnlockTokens(opts *bind.TransactOpts, _address common.Address, _id *big.Int, ...) (*types.Transaction, error)
- type KNWTokenTransactorRaw
- type KNWTokenTransactorSession
- func (_KNWToken *KNWTokenTransactorSession) AddNewLabel(_newLabel string) (*types.Transaction, error)
- func (_KNWToken *KNWTokenTransactorSession) AuthorizeAddress(_address common.Address) (*types.Transaction, error)
- func (_KNWToken *KNWTokenTransactorSession) Burn(_address common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)
- func (_KNWToken *KNWTokenTransactorSession) LockTokens(_address common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)
- func (_KNWToken *KNWTokenTransactorSession) Mint(_address common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)
- func (_KNWToken *KNWTokenTransactorSession) RemoveAddress(_address common.Address) (*types.Transaction, error)
- func (_KNWToken *KNWTokenTransactorSession) ReplaceManager(_address common.Address) (*types.Transaction, error)
- func (_KNWToken *KNWTokenTransactorSession) UnlockTokens(_address common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)
- type SafeMath
- type SafeMathCaller
- type SafeMathCallerRaw
- type SafeMathCallerSession
- type SafeMathFilterer
- type SafeMathRaw
- func (_SafeMath *SafeMathRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_SafeMath *SafeMathRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_SafeMath *SafeMathRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type SafeMathSession
- type SafeMathTransactor
- type SafeMathTransactorRaw
- type SafeMathTransactorSession
Constants ¶
const KNWTokenABI = "" /* 5262-byte string literal not displayed */
KNWTokenABI is the input ABI used to generate the binding from.
const SafeMathABI = "" /* 210-byte string literal not displayed */
SafeMathABI is the input ABI used to generate the binding from.
Variables ¶
var KNWTokenBin = "" /* 8254-byte string literal not displayed */
KNWTokenBin is the compiled bytecode used for deploying new contracts.
var KNWTokenFuncSigs = map[string]string{
"4ac99804": "addNewLabel(string)",
"ffe03eba": "amountOfIDs()",
"4a5db3b5": "authorizeAddress(address)",
"f19e207e": "authorizedAddresses(address)",
"3938400b": "balanceOfID(address,uint256)",
"f5298aca": "burn(address,uint256,uint256)",
"313ce567": "decimals()",
"b5c2cdba": "freeBalanceOfID(address,uint256)",
"cce38484": "labelOfID(uint256)",
"a25983e5": "lockTokens(address,uint256,uint256)",
"481c6a75": "manager()",
"156e29f6": "mint(address,uint256,uint256)",
"06fdde03": "name()",
"4ba79dfe": "removeAddress(address)",
"23447982": "replaceManager(address)",
"95d89b41": "symbol()",
"2d243d1e": "totalIDSupply(uint256)",
"18160ddd": "totalSupply()",
"cd3877df": "unlockTokens(address,uint256,uint256)",
}
KNWTokenFuncSigs maps the 4-byte function signature to its string representation.
var SafeMathBin = "" /* 672-byte string literal not displayed */
SafeMathBin is the compiled bytecode used for deploying new contracts.
var SafeMathFuncSigs = map[string]string{
"677342ce": "sqrt(uint256)",
}
SafeMathFuncSigs maps the 4-byte function signature to its string representation.
Functions ¶
This section is empty.
Types ¶
type KNWToken ¶
type KNWToken struct { KNWTokenCaller // Read-only binding to the contract KNWTokenTransactor // Write-only binding to the contract KNWTokenFilterer // Log filterer for contract events }
KNWToken is an auto generated Go binding around an Ethereum contract.
func DeployKNWToken ¶
func DeployKNWToken(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *KNWToken, error)
DeployKNWToken deploys a new Ethereum contract, binding an instance of KNWToken to it.
func NewKNWToken ¶
NewKNWToken creates a new instance of KNWToken, bound to a specific deployed contract.
type KNWTokenBurn ¶
type KNWTokenBurn struct { Who common.Address Id *big.Int Value *big.Int Raw types.Log // Blockchain specific contextual infos }
KNWTokenBurn represents a Burn event raised by the KNWToken contract.
type KNWTokenBurnIterator ¶
type KNWTokenBurnIterator struct { Event *KNWTokenBurn // Event containing the contract specifics and raw log // contains filtered or unexported fields }
KNWTokenBurnIterator is returned from FilterBurn and is used to iterate over the raw logs and unpacked data for Burn events raised by the KNWToken contract.
func (*KNWTokenBurnIterator) Close ¶
func (it *KNWTokenBurnIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*KNWTokenBurnIterator) Error ¶
func (it *KNWTokenBurnIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*KNWTokenBurnIterator) Next ¶
func (it *KNWTokenBurnIterator) 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 KNWTokenCaller ¶
type KNWTokenCaller struct {
// contains filtered or unexported fields
}
KNWTokenCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewKNWTokenCaller ¶
func NewKNWTokenCaller(address common.Address, caller bind.ContractCaller) (*KNWTokenCaller, error)
NewKNWTokenCaller creates a new read-only instance of KNWToken, bound to a specific deployed contract.
func (*KNWTokenCaller) AmountOfIDs ¶
AmountOfIDs is a free data retrieval call binding the contract method 0xffe03eba.
Solidity: function amountOfIDs() constant returns(uint256 amount)
func (*KNWTokenCaller) AuthorizedAddresses ¶
func (_KNWToken *KNWTokenCaller) AuthorizedAddresses(opts *bind.CallOpts, arg0 common.Address) (bool, error)
AuthorizedAddresses is a free data retrieval call binding the contract method 0xf19e207e.
Solidity: function authorizedAddresses(address ) constant returns(bool)
func (*KNWTokenCaller) BalanceOfID ¶
func (_KNWToken *KNWTokenCaller) BalanceOfID(opts *bind.CallOpts, _address common.Address, _id *big.Int) (*big.Int, error)
BalanceOfID is a free data retrieval call binding the contract method 0x3938400b.
Solidity: function balanceOfID(address _address, uint256 _id) constant returns(uint256 balance)
func (*KNWTokenCaller) Decimals ¶
func (_KNWToken *KNWTokenCaller) 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 (*KNWTokenCaller) FreeBalanceOfID ¶
func (_KNWToken *KNWTokenCaller) FreeBalanceOfID(opts *bind.CallOpts, _address common.Address, _id *big.Int) (*big.Int, error)
FreeBalanceOfID is a free data retrieval call binding the contract method 0xb5c2cdba.
Solidity: function freeBalanceOfID(address _address, uint256 _id) constant returns(uint256 freeBalance)
func (*KNWTokenCaller) LabelOfID ¶
LabelOfID is a free data retrieval call binding the contract method 0xcce38484.
Solidity: function labelOfID(uint256 _id) constant returns(string label)
func (*KNWTokenCaller) Manager ¶
Manager is a free data retrieval call binding the contract method 0x481c6a75.
Solidity: function manager() constant returns(address)
func (*KNWTokenCaller) Name ¶
func (_KNWToken *KNWTokenCaller) 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 (*KNWTokenCaller) Symbol ¶
func (_KNWToken *KNWTokenCaller) 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 (*KNWTokenCaller) TotalIDSupply ¶
TotalIDSupply is a free data retrieval call binding the contract method 0x2d243d1e.
Solidity: function totalIDSupply(uint256 _id) constant returns(uint256 totalSupplyOfID)
func (*KNWTokenCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() constant returns(uint256)
type KNWTokenCallerRaw ¶
type KNWTokenCallerRaw struct {
Contract *KNWTokenCaller // Generic read-only contract binding to access the raw methods on
}
KNWTokenCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*KNWTokenCallerRaw) Call ¶
func (_KNWToken *KNWTokenCallerRaw) 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 KNWTokenCallerSession ¶
type KNWTokenCallerSession struct { Contract *KNWTokenCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
KNWTokenCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*KNWTokenCallerSession) AmountOfIDs ¶
func (_KNWToken *KNWTokenCallerSession) AmountOfIDs() (*big.Int, error)
AmountOfIDs is a free data retrieval call binding the contract method 0xffe03eba.
Solidity: function amountOfIDs() constant returns(uint256 amount)
func (*KNWTokenCallerSession) AuthorizedAddresses ¶
func (_KNWToken *KNWTokenCallerSession) AuthorizedAddresses(arg0 common.Address) (bool, error)
AuthorizedAddresses is a free data retrieval call binding the contract method 0xf19e207e.
Solidity: function authorizedAddresses(address ) constant returns(bool)
func (*KNWTokenCallerSession) BalanceOfID ¶
func (_KNWToken *KNWTokenCallerSession) BalanceOfID(_address common.Address, _id *big.Int) (*big.Int, error)
BalanceOfID is a free data retrieval call binding the contract method 0x3938400b.
Solidity: function balanceOfID(address _address, uint256 _id) constant returns(uint256 balance)
func (*KNWTokenCallerSession) Decimals ¶
func (_KNWToken *KNWTokenCallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() constant returns(uint8)
func (*KNWTokenCallerSession) FreeBalanceOfID ¶
func (_KNWToken *KNWTokenCallerSession) FreeBalanceOfID(_address common.Address, _id *big.Int) (*big.Int, error)
FreeBalanceOfID is a free data retrieval call binding the contract method 0xb5c2cdba.
Solidity: function freeBalanceOfID(address _address, uint256 _id) constant returns(uint256 freeBalance)
func (*KNWTokenCallerSession) LabelOfID ¶
func (_KNWToken *KNWTokenCallerSession) LabelOfID(_id *big.Int) (string, error)
LabelOfID is a free data retrieval call binding the contract method 0xcce38484.
Solidity: function labelOfID(uint256 _id) constant returns(string label)
func (*KNWTokenCallerSession) Manager ¶
func (_KNWToken *KNWTokenCallerSession) Manager() (common.Address, error)
Manager is a free data retrieval call binding the contract method 0x481c6a75.
Solidity: function manager() constant returns(address)
func (*KNWTokenCallerSession) Name ¶
func (_KNWToken *KNWTokenCallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() constant returns(string)
func (*KNWTokenCallerSession) Symbol ¶
func (_KNWToken *KNWTokenCallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() constant returns(string)
func (*KNWTokenCallerSession) TotalIDSupply ¶
TotalIDSupply is a free data retrieval call binding the contract method 0x2d243d1e.
Solidity: function totalIDSupply(uint256 _id) constant returns(uint256 totalSupplyOfID)
func (*KNWTokenCallerSession) TotalSupply ¶
func (_KNWToken *KNWTokenCallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() constant returns(uint256)
type KNWTokenFilterer ¶
type KNWTokenFilterer struct {
// contains filtered or unexported fields
}
KNWTokenFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewKNWTokenFilterer ¶
func NewKNWTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*KNWTokenFilterer, error)
NewKNWTokenFilterer creates a new log filterer instance of KNWToken, bound to a specific deployed contract.
func (*KNWTokenFilterer) FilterBurn ¶
func (_KNWToken *KNWTokenFilterer) FilterBurn(opts *bind.FilterOpts, who []common.Address) (*KNWTokenBurnIterator, error)
FilterBurn is a free log retrieval operation binding the contract event 0x49995e5dd6158cf69ad3e9777c46755a1a826a446c6416992167462dad033b2a.
Solidity: event Burn(address indexed who, uint256 id, uint256 value)
func (*KNWTokenFilterer) FilterMint ¶
func (_KNWToken *KNWTokenFilterer) FilterMint(opts *bind.FilterOpts, who []common.Address) (*KNWTokenMintIterator, error)
FilterMint is a free log retrieval operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f.
Solidity: event Mint(address indexed who, uint256 id, uint256 value)
func (*KNWTokenFilterer) FilterNewLabel ¶
func (_KNWToken *KNWTokenFilterer) FilterNewLabel(opts *bind.FilterOpts, id []*big.Int) (*KNWTokenNewLabelIterator, error)
FilterNewLabel is a free log retrieval operation binding the contract event 0xf7e3164ba69dd943954519f6bce38af5edcad970e8160eace0ff12489b95ea3b.
Solidity: event NewLabel(uint256 indexed id, string label)
func (*KNWTokenFilterer) ParseBurn ¶
func (_KNWToken *KNWTokenFilterer) ParseBurn(log types.Log) (*KNWTokenBurn, error)
ParseBurn is a log parse operation binding the contract event 0x49995e5dd6158cf69ad3e9777c46755a1a826a446c6416992167462dad033b2a.
Solidity: event Burn(address indexed who, uint256 id, uint256 value)
func (*KNWTokenFilterer) ParseMint ¶
func (_KNWToken *KNWTokenFilterer) ParseMint(log types.Log) (*KNWTokenMint, error)
ParseMint is a log parse operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f.
Solidity: event Mint(address indexed who, uint256 id, uint256 value)
func (*KNWTokenFilterer) ParseNewLabel ¶
func (_KNWToken *KNWTokenFilterer) ParseNewLabel(log types.Log) (*KNWTokenNewLabel, error)
ParseNewLabel is a log parse operation binding the contract event 0xf7e3164ba69dd943954519f6bce38af5edcad970e8160eace0ff12489b95ea3b.
Solidity: event NewLabel(uint256 indexed id, string label)
func (*KNWTokenFilterer) WatchBurn ¶
func (_KNWToken *KNWTokenFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *KNWTokenBurn, who []common.Address) (event.Subscription, error)
WatchBurn is a free log subscription operation binding the contract event 0x49995e5dd6158cf69ad3e9777c46755a1a826a446c6416992167462dad033b2a.
Solidity: event Burn(address indexed who, uint256 id, uint256 value)
func (*KNWTokenFilterer) WatchMint ¶
func (_KNWToken *KNWTokenFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *KNWTokenMint, who []common.Address) (event.Subscription, error)
WatchMint is a free log subscription operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f.
Solidity: event Mint(address indexed who, uint256 id, uint256 value)
func (*KNWTokenFilterer) WatchNewLabel ¶
func (_KNWToken *KNWTokenFilterer) WatchNewLabel(opts *bind.WatchOpts, sink chan<- *KNWTokenNewLabel, id []*big.Int) (event.Subscription, error)
WatchNewLabel is a free log subscription operation binding the contract event 0xf7e3164ba69dd943954519f6bce38af5edcad970e8160eace0ff12489b95ea3b.
Solidity: event NewLabel(uint256 indexed id, string label)
type KNWTokenMint ¶
type KNWTokenMint struct { Who common.Address Id *big.Int Value *big.Int Raw types.Log // Blockchain specific contextual infos }
KNWTokenMint represents a Mint event raised by the KNWToken contract.
type KNWTokenMintIterator ¶
type KNWTokenMintIterator struct { Event *KNWTokenMint // Event containing the contract specifics and raw log // contains filtered or unexported fields }
KNWTokenMintIterator is returned from FilterMint and is used to iterate over the raw logs and unpacked data for Mint events raised by the KNWToken contract.
func (*KNWTokenMintIterator) Close ¶
func (it *KNWTokenMintIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*KNWTokenMintIterator) Error ¶
func (it *KNWTokenMintIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*KNWTokenMintIterator) Next ¶
func (it *KNWTokenMintIterator) 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 KNWTokenNewLabel ¶
type KNWTokenNewLabel struct { Id *big.Int Label string Raw types.Log // Blockchain specific contextual infos }
KNWTokenNewLabel represents a NewLabel event raised by the KNWToken contract.
type KNWTokenNewLabelIterator ¶
type KNWTokenNewLabelIterator struct { Event *KNWTokenNewLabel // Event containing the contract specifics and raw log // contains filtered or unexported fields }
KNWTokenNewLabelIterator is returned from FilterNewLabel and is used to iterate over the raw logs and unpacked data for NewLabel events raised by the KNWToken contract.
func (*KNWTokenNewLabelIterator) Close ¶
func (it *KNWTokenNewLabelIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*KNWTokenNewLabelIterator) Error ¶
func (it *KNWTokenNewLabelIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*KNWTokenNewLabelIterator) Next ¶
func (it *KNWTokenNewLabelIterator) 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 KNWTokenRaw ¶
type KNWTokenRaw struct {
Contract *KNWToken // Generic contract binding to access the raw methods on
}
KNWTokenRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*KNWTokenRaw) Call ¶
func (_KNWToken *KNWTokenRaw) 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 (*KNWTokenRaw) Transact ¶
func (_KNWToken *KNWTokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*KNWTokenRaw) Transfer ¶
func (_KNWToken *KNWTokenRaw) 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 KNWTokenSession ¶
type KNWTokenSession struct { Contract *KNWToken // 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 }
KNWTokenSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*KNWTokenSession) AddNewLabel ¶
func (_KNWToken *KNWTokenSession) AddNewLabel(_newLabel string) (*types.Transaction, error)
AddNewLabel is a paid mutator transaction binding the contract method 0x4ac99804.
Solidity: function addNewLabel(string _newLabel) returns(bool success)
func (*KNWTokenSession) AmountOfIDs ¶
func (_KNWToken *KNWTokenSession) AmountOfIDs() (*big.Int, error)
AmountOfIDs is a free data retrieval call binding the contract method 0xffe03eba.
Solidity: function amountOfIDs() constant returns(uint256 amount)
func (*KNWTokenSession) AuthorizeAddress ¶
func (_KNWToken *KNWTokenSession) AuthorizeAddress(_address common.Address) (*types.Transaction, error)
AuthorizeAddress is a paid mutator transaction binding the contract method 0x4a5db3b5.
Solidity: function authorizeAddress(address _address) returns(bool success)
func (*KNWTokenSession) AuthorizedAddresses ¶
func (_KNWToken *KNWTokenSession) AuthorizedAddresses(arg0 common.Address) (bool, error)
AuthorizedAddresses is a free data retrieval call binding the contract method 0xf19e207e.
Solidity: function authorizedAddresses(address ) constant returns(bool)
func (*KNWTokenSession) BalanceOfID ¶
func (_KNWToken *KNWTokenSession) BalanceOfID(_address common.Address, _id *big.Int) (*big.Int, error)
BalanceOfID is a free data retrieval call binding the contract method 0x3938400b.
Solidity: function balanceOfID(address _address, uint256 _id) constant returns(uint256 balance)
func (*KNWTokenSession) Burn ¶
func (_KNWToken *KNWTokenSession) Burn(_address common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0xf5298aca.
Solidity: function burn(address _address, uint256 _id, uint256 _amount) returns(bool success)
func (*KNWTokenSession) Decimals ¶
func (_KNWToken *KNWTokenSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() constant returns(uint8)
func (*KNWTokenSession) FreeBalanceOfID ¶
func (_KNWToken *KNWTokenSession) FreeBalanceOfID(_address common.Address, _id *big.Int) (*big.Int, error)
FreeBalanceOfID is a free data retrieval call binding the contract method 0xb5c2cdba.
Solidity: function freeBalanceOfID(address _address, uint256 _id) constant returns(uint256 freeBalance)
func (*KNWTokenSession) LabelOfID ¶
func (_KNWToken *KNWTokenSession) LabelOfID(_id *big.Int) (string, error)
LabelOfID is a free data retrieval call binding the contract method 0xcce38484.
Solidity: function labelOfID(uint256 _id) constant returns(string label)
func (*KNWTokenSession) LockTokens ¶
func (_KNWToken *KNWTokenSession) LockTokens(_address common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)
LockTokens is a paid mutator transaction binding the contract method 0xa25983e5.
Solidity: function lockTokens(address _address, uint256 _id, uint256 _amount) returns(bool success)
func (*KNWTokenSession) Manager ¶
func (_KNWToken *KNWTokenSession) Manager() (common.Address, error)
Manager is a free data retrieval call binding the contract method 0x481c6a75.
Solidity: function manager() constant returns(address)
func (*KNWTokenSession) Mint ¶
func (_KNWToken *KNWTokenSession) Mint(_address common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x156e29f6.
Solidity: function mint(address _address, uint256 _id, uint256 _amount) returns(bool success)
func (*KNWTokenSession) Name ¶
func (_KNWToken *KNWTokenSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() constant returns(string)
func (*KNWTokenSession) RemoveAddress ¶
func (_KNWToken *KNWTokenSession) RemoveAddress(_address common.Address) (*types.Transaction, error)
RemoveAddress is a paid mutator transaction binding the contract method 0x4ba79dfe.
Solidity: function removeAddress(address _address) returns(bool success)
func (*KNWTokenSession) ReplaceManager ¶
func (_KNWToken *KNWTokenSession) ReplaceManager(_address common.Address) (*types.Transaction, error)
ReplaceManager is a paid mutator transaction binding the contract method 0x23447982.
Solidity: function replaceManager(address _address) returns(bool success)
func (*KNWTokenSession) Symbol ¶
func (_KNWToken *KNWTokenSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() constant returns(string)
func (*KNWTokenSession) TotalIDSupply ¶
TotalIDSupply is a free data retrieval call binding the contract method 0x2d243d1e.
Solidity: function totalIDSupply(uint256 _id) constant returns(uint256 totalSupplyOfID)
func (*KNWTokenSession) TotalSupply ¶
func (_KNWToken *KNWTokenSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() constant returns(uint256)
func (*KNWTokenSession) UnlockTokens ¶
func (_KNWToken *KNWTokenSession) UnlockTokens(_address common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)
UnlockTokens is a paid mutator transaction binding the contract method 0xcd3877df.
Solidity: function unlockTokens(address _address, uint256 _id, uint256 _amount) returns(bool success)
type KNWTokenTransactor ¶
type KNWTokenTransactor struct {
// contains filtered or unexported fields
}
KNWTokenTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewKNWTokenTransactor ¶
func NewKNWTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*KNWTokenTransactor, error)
NewKNWTokenTransactor creates a new write-only instance of KNWToken, bound to a specific deployed contract.
func (*KNWTokenTransactor) AddNewLabel ¶
func (_KNWToken *KNWTokenTransactor) AddNewLabel(opts *bind.TransactOpts, _newLabel string) (*types.Transaction, error)
AddNewLabel is a paid mutator transaction binding the contract method 0x4ac99804.
Solidity: function addNewLabel(string _newLabel) returns(bool success)
func (*KNWTokenTransactor) AuthorizeAddress ¶
func (_KNWToken *KNWTokenTransactor) AuthorizeAddress(opts *bind.TransactOpts, _address common.Address) (*types.Transaction, error)
AuthorizeAddress is a paid mutator transaction binding the contract method 0x4a5db3b5.
Solidity: function authorizeAddress(address _address) returns(bool success)
func (*KNWTokenTransactor) Burn ¶
func (_KNWToken *KNWTokenTransactor) Burn(opts *bind.TransactOpts, _address common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0xf5298aca.
Solidity: function burn(address _address, uint256 _id, uint256 _amount) returns(bool success)
func (*KNWTokenTransactor) LockTokens ¶
func (_KNWToken *KNWTokenTransactor) LockTokens(opts *bind.TransactOpts, _address common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)
LockTokens is a paid mutator transaction binding the contract method 0xa25983e5.
Solidity: function lockTokens(address _address, uint256 _id, uint256 _amount) returns(bool success)
func (*KNWTokenTransactor) Mint ¶
func (_KNWToken *KNWTokenTransactor) Mint(opts *bind.TransactOpts, _address common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x156e29f6.
Solidity: function mint(address _address, uint256 _id, uint256 _amount) returns(bool success)
func (*KNWTokenTransactor) RemoveAddress ¶
func (_KNWToken *KNWTokenTransactor) RemoveAddress(opts *bind.TransactOpts, _address common.Address) (*types.Transaction, error)
RemoveAddress is a paid mutator transaction binding the contract method 0x4ba79dfe.
Solidity: function removeAddress(address _address) returns(bool success)
func (*KNWTokenTransactor) ReplaceManager ¶
func (_KNWToken *KNWTokenTransactor) ReplaceManager(opts *bind.TransactOpts, _address common.Address) (*types.Transaction, error)
ReplaceManager is a paid mutator transaction binding the contract method 0x23447982.
Solidity: function replaceManager(address _address) returns(bool success)
func (*KNWTokenTransactor) UnlockTokens ¶
func (_KNWToken *KNWTokenTransactor) UnlockTokens(opts *bind.TransactOpts, _address common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)
UnlockTokens is a paid mutator transaction binding the contract method 0xcd3877df.
Solidity: function unlockTokens(address _address, uint256 _id, uint256 _amount) returns(bool success)
type KNWTokenTransactorRaw ¶
type KNWTokenTransactorRaw struct {
Contract *KNWTokenTransactor // Generic write-only contract binding to access the raw methods on
}
KNWTokenTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*KNWTokenTransactorRaw) Transact ¶
func (_KNWToken *KNWTokenTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*KNWTokenTransactorRaw) Transfer ¶
func (_KNWToken *KNWTokenTransactorRaw) 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 KNWTokenTransactorSession ¶
type KNWTokenTransactorSession struct { Contract *KNWTokenTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
KNWTokenTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*KNWTokenTransactorSession) AddNewLabel ¶
func (_KNWToken *KNWTokenTransactorSession) AddNewLabel(_newLabel string) (*types.Transaction, error)
AddNewLabel is a paid mutator transaction binding the contract method 0x4ac99804.
Solidity: function addNewLabel(string _newLabel) returns(bool success)
func (*KNWTokenTransactorSession) AuthorizeAddress ¶
func (_KNWToken *KNWTokenTransactorSession) AuthorizeAddress(_address common.Address) (*types.Transaction, error)
AuthorizeAddress is a paid mutator transaction binding the contract method 0x4a5db3b5.
Solidity: function authorizeAddress(address _address) returns(bool success)
func (*KNWTokenTransactorSession) Burn ¶
func (_KNWToken *KNWTokenTransactorSession) Burn(_address common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0xf5298aca.
Solidity: function burn(address _address, uint256 _id, uint256 _amount) returns(bool success)
func (*KNWTokenTransactorSession) LockTokens ¶
func (_KNWToken *KNWTokenTransactorSession) LockTokens(_address common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)
LockTokens is a paid mutator transaction binding the contract method 0xa25983e5.
Solidity: function lockTokens(address _address, uint256 _id, uint256 _amount) returns(bool success)
func (*KNWTokenTransactorSession) Mint ¶
func (_KNWToken *KNWTokenTransactorSession) Mint(_address common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x156e29f6.
Solidity: function mint(address _address, uint256 _id, uint256 _amount) returns(bool success)
func (*KNWTokenTransactorSession) RemoveAddress ¶
func (_KNWToken *KNWTokenTransactorSession) RemoveAddress(_address common.Address) (*types.Transaction, error)
RemoveAddress is a paid mutator transaction binding the contract method 0x4ba79dfe.
Solidity: function removeAddress(address _address) returns(bool success)
func (*KNWTokenTransactorSession) ReplaceManager ¶
func (_KNWToken *KNWTokenTransactorSession) ReplaceManager(_address common.Address) (*types.Transaction, error)
ReplaceManager is a paid mutator transaction binding the contract method 0x23447982.
Solidity: function replaceManager(address _address) returns(bool success)
func (*KNWTokenTransactorSession) UnlockTokens ¶
func (_KNWToken *KNWTokenTransactorSession) UnlockTokens(_address common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)
UnlockTokens is a paid mutator transaction binding the contract method 0xcd3877df.
Solidity: function unlockTokens(address _address, uint256 _id, uint256 _amount) returns(bool success)
type SafeMath ¶
type SafeMath struct { SafeMathCaller // Read-only binding to the contract SafeMathTransactor // Write-only binding to the contract SafeMathFilterer // Log filterer for contract events }
SafeMath is an auto generated Go binding around an Ethereum contract.
func DeploySafeMath ¶
func DeploySafeMath(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *SafeMath, error)
DeploySafeMath deploys a new Ethereum contract, binding an instance of SafeMath to it.
func NewSafeMath ¶
NewSafeMath creates a new instance of SafeMath, bound to a specific deployed contract.
type SafeMathCaller ¶
type SafeMathCaller struct {
// contains filtered or unexported fields
}
SafeMathCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewSafeMathCaller ¶
func NewSafeMathCaller(address common.Address, caller bind.ContractCaller) (*SafeMathCaller, error)
NewSafeMathCaller creates a new read-only instance of SafeMath, bound to a specific deployed contract.
type SafeMathCallerRaw ¶
type SafeMathCallerRaw struct {
Contract *SafeMathCaller // Generic read-only contract binding to access the raw methods on
}
SafeMathCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*SafeMathCallerRaw) Call ¶
func (_SafeMath *SafeMathCallerRaw) 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 SafeMathCallerSession ¶
type SafeMathCallerSession struct { Contract *SafeMathCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
SafeMathCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type SafeMathFilterer ¶
type SafeMathFilterer struct {
// contains filtered or unexported fields
}
SafeMathFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewSafeMathFilterer ¶
func NewSafeMathFilterer(address common.Address, filterer bind.ContractFilterer) (*SafeMathFilterer, error)
NewSafeMathFilterer creates a new log filterer instance of SafeMath, bound to a specific deployed contract.
type SafeMathRaw ¶
type SafeMathRaw struct {
Contract *SafeMath // Generic contract binding to access the raw methods on
}
SafeMathRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*SafeMathRaw) Call ¶
func (_SafeMath *SafeMathRaw) 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 (*SafeMathRaw) Transact ¶
func (_SafeMath *SafeMathRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SafeMathRaw) Transfer ¶
func (_SafeMath *SafeMathRaw) 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 SafeMathSession ¶
type SafeMathSession struct { Contract *SafeMath // 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 }
SafeMathSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
type SafeMathTransactor ¶
type SafeMathTransactor struct {
// contains filtered or unexported fields
}
SafeMathTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewSafeMathTransactor ¶
func NewSafeMathTransactor(address common.Address, transactor bind.ContractTransactor) (*SafeMathTransactor, error)
NewSafeMathTransactor creates a new write-only instance of SafeMath, bound to a specific deployed contract.
type SafeMathTransactorRaw ¶
type SafeMathTransactorRaw struct {
Contract *SafeMathTransactor // Generic write-only contract binding to access the raw methods on
}
SafeMathTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*SafeMathTransactorRaw) Transact ¶
func (_SafeMath *SafeMathTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SafeMathTransactorRaw) Transfer ¶
func (_SafeMath *SafeMathTransactorRaw) 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 SafeMathTransactorSession ¶
type SafeMathTransactorSession struct { Contract *SafeMathTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
SafeMathTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.