ethapi

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfContractAddr = "0x03B1d127f023548Fd5c258a6d0E9F5d82e8D76F9" //kovan network
)
View Source
const NinjaConfigABI = "" /* 4278-byte string literal not displayed */

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

View Source
const NinjaLicenseABI = "" /* 3364-byte string literal not displayed */

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

View Source
const NinjaTokenABI = "" /* 4164-byte string literal not displayed */

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

Variables

This section is empty.

Functions

func BalanceMonitor

func BalanceMonitor(stop chan struct{}, outer chan string) (err error)

func ConfigMonitor

func ConfigMonitor(stop chan struct{}, outer chan string) (err error)

func EthBalance

func EthBalance(addr string) (*big.Float, error)

func GetExpireTimeFromBlockChain

func GetExpireTimeFromBlockChain(uid string) (int64, error)

func GetValidSwordSrv

func GetValidSwordSrv() (string, error)

func PrimeNodeID

func PrimeNodeID() (string, error)

func TransferBalance

func TransferBalance(from, to string, amount uint32, key *ecdsa.PrivateKey) (string, error)

Types

type BootsTrap

type BootsTrap []net.IP

func GetAllNinjaNode

func GetAllNinjaNode() (BootsTrap, error)

func GetAllSwordNode

func GetAllSwordNode() (BootsTrap, error)

func (BootsTrap) String

func (bt BootsTrap) String() string

type NinjaConfig

type NinjaConfig struct {
	NinjaConfigCaller     // Read-only binding to the contract
	NinjaConfigTransactor // Write-only binding to the contract
	NinjaConfigFilterer   // Log filterer for contract events
}

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

func NewNinjaConfig

func NewNinjaConfig(address common.Address, backend bind.ContractBackend) (*NinjaConfig, error)

NewNinjaConfig creates a new instance of NinjaConfig, bound to a specific deployed contract.

type NinjaConfigCaller

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

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

func NewNinjaConfigCaller

func NewNinjaConfigCaller(address common.Address, caller bind.ContractCaller) (*NinjaConfigCaller, error)

NewNinjaConfigCaller creates a new read-only instance of NinjaConfig, bound to a specific deployed contract.

func (*NinjaConfigCaller) AllBootsIPs

func (_NinjaConfig *NinjaConfigCaller) AllBootsIPs(opts *bind.CallOpts) ([][4]byte, error)

AllBootsIPs is a free data retrieval call binding the contract method 0xea0527a5.

Solidity: function allBootsIPs() view returns(bytes4[])

func (*NinjaConfigCaller) AllPushNodeIPs

func (_NinjaConfig *NinjaConfigCaller) AllPushNodeIPs(opts *bind.CallOpts) ([][4]byte, error)

AllPushNodeIPs is a free data retrieval call binding the contract method 0x07bfb1fc.

Solidity: function allPushNodeIPs() view returns(bytes4[])

func (*NinjaConfigCaller) BootsIPList

func (_NinjaConfig *NinjaConfigCaller) BootsIPList(opts *bind.CallOpts, arg0 *big.Int) ([4]byte, error)

BootsIPList is a free data retrieval call binding the contract method 0x67a84aa1.

Solidity: function bootsIPList(uint256 ) view returns(bytes4)

func (*NinjaConfigCaller) ConvertStrToIp

func (_NinjaConfig *NinjaConfigCaller) ConvertStrToIp(opts *bind.CallOpts, ipStr string) ([]byte, error)

ConvertStrToIp is a free data retrieval call binding the contract method 0xe28f2fbb.

Solidity: function convertStrToIp(string ipStr) pure returns(bytes)

func (*NinjaConfigCaller) LicenseContractAddr

func (_NinjaConfig *NinjaConfigCaller) LicenseContractAddr(opts *bind.CallOpts) (common.Address, error)

LicenseContractAddr is a free data retrieval call binding the contract method 0x7a746b78.

Solidity: function licenseContractAddr() view returns(address)

func (*NinjaConfigCaller) Owner

func (_NinjaConfig *NinjaConfigCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*NinjaConfigCaller) PrimeNode

func (_NinjaConfig *NinjaConfigCaller) PrimeNode(opts *bind.CallOpts) (string, error)

PrimeNode is a free data retrieval call binding the contract method 0xe01af7f5.

Solidity: function primeNode() view returns(string)

func (*NinjaConfigCaller) PushNodes

func (_NinjaConfig *NinjaConfigCaller) PushNodes(opts *bind.CallOpts, arg0 *big.Int) ([4]byte, error)

PushNodes is a free data retrieval call binding the contract method 0x5a4d2c7c.

Solidity: function PushNodes(uint256 ) view returns(bytes4)

func (*NinjaConfigCaller) TokenAddr

func (_NinjaConfig *NinjaConfigCaller) TokenAddr(opts *bind.CallOpts) (common.Address, error)

TokenAddr is a free data retrieval call binding the contract method 0x5fbe4d1d.

Solidity: function tokenAddr() view returns(address)

type NinjaConfigCallerRaw

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

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

func (*NinjaConfigCallerRaw) Call

func (_NinjaConfig *NinjaConfigCallerRaw) 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 NinjaConfigCallerSession

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

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

func (*NinjaConfigCallerSession) AllBootsIPs

func (_NinjaConfig *NinjaConfigCallerSession) AllBootsIPs() ([][4]byte, error)

AllBootsIPs is a free data retrieval call binding the contract method 0xea0527a5.

Solidity: function allBootsIPs() view returns(bytes4[])

func (*NinjaConfigCallerSession) AllPushNodeIPs

func (_NinjaConfig *NinjaConfigCallerSession) AllPushNodeIPs() ([][4]byte, error)

AllPushNodeIPs is a free data retrieval call binding the contract method 0x07bfb1fc.

Solidity: function allPushNodeIPs() view returns(bytes4[])

func (*NinjaConfigCallerSession) BootsIPList

func (_NinjaConfig *NinjaConfigCallerSession) BootsIPList(arg0 *big.Int) ([4]byte, error)

BootsIPList is a free data retrieval call binding the contract method 0x67a84aa1.

Solidity: function bootsIPList(uint256 ) view returns(bytes4)

func (*NinjaConfigCallerSession) ConvertStrToIp

func (_NinjaConfig *NinjaConfigCallerSession) ConvertStrToIp(ipStr string) ([]byte, error)

ConvertStrToIp is a free data retrieval call binding the contract method 0xe28f2fbb.

Solidity: function convertStrToIp(string ipStr) pure returns(bytes)

func (*NinjaConfigCallerSession) LicenseContractAddr

func (_NinjaConfig *NinjaConfigCallerSession) LicenseContractAddr() (common.Address, error)

LicenseContractAddr is a free data retrieval call binding the contract method 0x7a746b78.

Solidity: function licenseContractAddr() view returns(address)

func (*NinjaConfigCallerSession) Owner

func (_NinjaConfig *NinjaConfigCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*NinjaConfigCallerSession) PrimeNode

func (_NinjaConfig *NinjaConfigCallerSession) PrimeNode() (string, error)

PrimeNode is a free data retrieval call binding the contract method 0xe01af7f5.

Solidity: function primeNode() view returns(string)

func (*NinjaConfigCallerSession) PushNodes

func (_NinjaConfig *NinjaConfigCallerSession) PushNodes(arg0 *big.Int) ([4]byte, error)

PushNodes is a free data retrieval call binding the contract method 0x5a4d2c7c.

Solidity: function PushNodes(uint256 ) view returns(bytes4)

func (*NinjaConfigCallerSession) TokenAddr

func (_NinjaConfig *NinjaConfigCallerSession) TokenAddr() (common.Address, error)

TokenAddr is a free data retrieval call binding the contract method 0x5fbe4d1d.

Solidity: function tokenAddr() view returns(address)

type NinjaConfigConfigChange

type NinjaConfigConfigChange struct {
	Arg0 common.Address
	Arg1 *big.Int
	Arg2 string
	Raw  types.Log // Blockchain specific contextual infos
}

NinjaConfigConfigChange represents a ConfigChange event raised by the NinjaConfig contract.

type NinjaConfigConfigChangeIterator

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

NinjaConfigConfigChangeIterator is returned from FilterConfigChange and is used to iterate over the raw logs and unpacked data for ConfigChange events raised by the NinjaConfig contract.

func (*NinjaConfigConfigChangeIterator) Close

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

func (*NinjaConfigConfigChangeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NinjaConfigConfigChangeIterator) 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 NinjaConfigFilterer

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

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

func NewNinjaConfigFilterer

func NewNinjaConfigFilterer(address common.Address, filterer bind.ContractFilterer) (*NinjaConfigFilterer, error)

NewNinjaConfigFilterer creates a new log filterer instance of NinjaConfig, bound to a specific deployed contract.

func (*NinjaConfigFilterer) FilterConfigChange

func (_NinjaConfig *NinjaConfigFilterer) FilterConfigChange(opts *bind.FilterOpts, arg0 []common.Address, arg1 []*big.Int) (*NinjaConfigConfigChangeIterator, error)

FilterConfigChange is a free log retrieval operation binding the contract event 0x951c9666872a0169d46e556930f3dfd473b0fd58b76c028892bc1a05ed75be99.

Solidity: event ConfigChange(address indexed arg0, uint256 indexed arg1, string arg2)

func (*NinjaConfigFilterer) FilterPrimeNodeChanged

func (_NinjaConfig *NinjaConfigFilterer) FilterPrimeNodeChanged(opts *bind.FilterOpts) (*NinjaConfigPrimeNodeChangedIterator, error)

FilterPrimeNodeChanged is a free log retrieval operation binding the contract event 0xbc292dfe9e37e095f3a4caf4b1144d417af87fef36e19e84d2c9e43ae7f395c1.

Solidity: event PrimeNodeChanged(string arg0)

func (*NinjaConfigFilterer) ParseConfigChange

func (_NinjaConfig *NinjaConfigFilterer) ParseConfigChange(log types.Log) (*NinjaConfigConfigChange, error)

ParseConfigChange is a log parse operation binding the contract event 0x951c9666872a0169d46e556930f3dfd473b0fd58b76c028892bc1a05ed75be99.

Solidity: event ConfigChange(address indexed arg0, uint256 indexed arg1, string arg2)

func (*NinjaConfigFilterer) ParsePrimeNodeChanged

func (_NinjaConfig *NinjaConfigFilterer) ParsePrimeNodeChanged(log types.Log) (*NinjaConfigPrimeNodeChanged, error)

ParsePrimeNodeChanged is a log parse operation binding the contract event 0xbc292dfe9e37e095f3a4caf4b1144d417af87fef36e19e84d2c9e43ae7f395c1.

Solidity: event PrimeNodeChanged(string arg0)

func (*NinjaConfigFilterer) WatchConfigChange

func (_NinjaConfig *NinjaConfigFilterer) WatchConfigChange(opts *bind.WatchOpts, sink chan<- *NinjaConfigConfigChange, arg0 []common.Address, arg1 []*big.Int) (event.Subscription, error)

WatchConfigChange is a free log subscription operation binding the contract event 0x951c9666872a0169d46e556930f3dfd473b0fd58b76c028892bc1a05ed75be99.

Solidity: event ConfigChange(address indexed arg0, uint256 indexed arg1, string arg2)

func (*NinjaConfigFilterer) WatchPrimeNodeChanged

func (_NinjaConfig *NinjaConfigFilterer) WatchPrimeNodeChanged(opts *bind.WatchOpts, sink chan<- *NinjaConfigPrimeNodeChanged) (event.Subscription, error)

WatchPrimeNodeChanged is a free log subscription operation binding the contract event 0xbc292dfe9e37e095f3a4caf4b1144d417af87fef36e19e84d2c9e43ae7f395c1.

Solidity: event PrimeNodeChanged(string arg0)

type NinjaConfigPrimeNodeChanged

type NinjaConfigPrimeNodeChanged struct {
	Arg0 string
	Raw  types.Log // Blockchain specific contextual infos
}

NinjaConfigPrimeNodeChanged represents a PrimeNodeChanged event raised by the NinjaConfig contract.

type NinjaConfigPrimeNodeChangedIterator

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

NinjaConfigPrimeNodeChangedIterator is returned from FilterPrimeNodeChanged and is used to iterate over the raw logs and unpacked data for PrimeNodeChanged events raised by the NinjaConfig contract.

func (*NinjaConfigPrimeNodeChangedIterator) Close

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

func (*NinjaConfigPrimeNodeChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NinjaConfigPrimeNodeChangedIterator) 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 NinjaConfigRaw

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

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

func (*NinjaConfigRaw) Call

func (_NinjaConfig *NinjaConfigRaw) 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 (*NinjaConfigRaw) Transact

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

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

func (*NinjaConfigRaw) Transfer

func (_NinjaConfig *NinjaConfigRaw) 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 NinjaConfigSession

type NinjaConfigSession struct {
	Contract     *NinjaConfig      // 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
}

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

func (*NinjaConfigSession) AddAdmin

func (_NinjaConfig *NinjaConfigSession) AddAdmin(admin common.Address) (*types.Transaction, error)

AddAdmin is a paid mutator transaction binding the contract method 0x70480275.

Solidity: function addAdmin(address admin) returns()

func (*NinjaConfigSession) AddBootIp

func (_NinjaConfig *NinjaConfigSession) AddBootIp(newIP [4]byte) (*types.Transaction, error)

AddBootIp is a paid mutator transaction binding the contract method 0xf6176d80.

Solidity: function addBootIp(bytes4 newIP) returns()

func (*NinjaConfigSession) AddPushNodeIp

func (_NinjaConfig *NinjaConfigSession) AddPushNodeIp(newIP [4]byte) (*types.Transaction, error)

AddPushNodeIp is a paid mutator transaction binding the contract method 0x1626b90b.

Solidity: function addPushNodeIp(bytes4 newIP) returns()

func (*NinjaConfigSession) AllBootsIPs

func (_NinjaConfig *NinjaConfigSession) AllBootsIPs() ([][4]byte, error)

AllBootsIPs is a free data retrieval call binding the contract method 0xea0527a5.

Solidity: function allBootsIPs() view returns(bytes4[])

func (*NinjaConfigSession) AllPushNodeIPs

func (_NinjaConfig *NinjaConfigSession) AllPushNodeIPs() ([][4]byte, error)

AllPushNodeIPs is a free data retrieval call binding the contract method 0x07bfb1fc.

Solidity: function allPushNodeIPs() view returns(bytes4[])

func (*NinjaConfigSession) BootsIPList

func (_NinjaConfig *NinjaConfigSession) BootsIPList(arg0 *big.Int) ([4]byte, error)

BootsIPList is a free data retrieval call binding the contract method 0x67a84aa1.

Solidity: function bootsIPList(uint256 ) view returns(bytes4)

func (*NinjaConfigSession) ConvertStrToIp

func (_NinjaConfig *NinjaConfigSession) ConvertStrToIp(ipStr string) ([]byte, error)

ConvertStrToIp is a free data retrieval call binding the contract method 0xe28f2fbb.

Solidity: function convertStrToIp(string ipStr) pure returns(bytes)

func (*NinjaConfigSession) DelAdmin

func (_NinjaConfig *NinjaConfigSession) DelAdmin(admin common.Address) (*types.Transaction, error)

DelAdmin is a paid mutator transaction binding the contract method 0x62d91855.

Solidity: function delAdmin(address admin) returns()

func (*NinjaConfigSession) LicenseContractAddr

func (_NinjaConfig *NinjaConfigSession) LicenseContractAddr() (common.Address, error)

LicenseContractAddr is a free data retrieval call binding the contract method 0x7a746b78.

Solidity: function licenseContractAddr() view returns(address)

func (*NinjaConfigSession) Owner

func (_NinjaConfig *NinjaConfigSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*NinjaConfigSession) PrimeNode

func (_NinjaConfig *NinjaConfigSession) PrimeNode() (string, error)

PrimeNode is a free data retrieval call binding the contract method 0xe01af7f5.

Solidity: function primeNode() view returns(string)

func (*NinjaConfigSession) PushNodes

func (_NinjaConfig *NinjaConfigSession) PushNodes(arg0 *big.Int) ([4]byte, error)

PushNodes is a free data retrieval call binding the contract method 0x5a4d2c7c.

Solidity: function PushNodes(uint256 ) view returns(bytes4)

func (*NinjaConfigSession) RemoveBootIP

func (_NinjaConfig *NinjaConfigSession) RemoveBootIP(theIP [4]byte) (*types.Transaction, error)

RemoveBootIP is a paid mutator transaction binding the contract method 0x0c13ce80.

Solidity: function removeBootIP(bytes4 theIP) returns()

func (*NinjaConfigSession) RemovePushNodeIP

func (_NinjaConfig *NinjaConfigSession) RemovePushNodeIP(theIP [4]byte) (*types.Transaction, error)

RemovePushNodeIP is a paid mutator transaction binding the contract method 0xe1dffd2d.

Solidity: function removePushNodeIP(bytes4 theIP) returns()

func (*NinjaConfigSession) SetLicenseAddr

func (_NinjaConfig *NinjaConfigSession) SetLicenseAddr(addr common.Address) (*types.Transaction, error)

SetLicenseAddr is a paid mutator transaction binding the contract method 0x832a07e2.

Solidity: function SetLicenseAddr(address addr) returns()

func (*NinjaConfigSession) SetPrimeNodeID

func (_NinjaConfig *NinjaConfigSession) SetPrimeNodeID(nid string) (*types.Transaction, error)

SetPrimeNodeID is a paid mutator transaction binding the contract method 0xf7c0d56b.

Solidity: function setPrimeNodeID(string nid) returns()

func (*NinjaConfigSession) SetTokenAddr

func (_NinjaConfig *NinjaConfigSession) SetTokenAddr(addr common.Address) (*types.Transaction, error)

SetTokenAddr is a paid mutator transaction binding the contract method 0x72e7a223.

Solidity: function SetTokenAddr(address addr) returns()

func (*NinjaConfigSession) TokenAddr

func (_NinjaConfig *NinjaConfigSession) TokenAddr() (common.Address, error)

TokenAddr is a free data retrieval call binding the contract method 0x5fbe4d1d.

Solidity: function tokenAddr() view returns(address)

func (*NinjaConfigSession) TransferOwnership

func (_NinjaConfig *NinjaConfigSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

type NinjaConfigTransactor

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

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

func NewNinjaConfigTransactor

func NewNinjaConfigTransactor(address common.Address, transactor bind.ContractTransactor) (*NinjaConfigTransactor, error)

NewNinjaConfigTransactor creates a new write-only instance of NinjaConfig, bound to a specific deployed contract.

func (*NinjaConfigTransactor) AddAdmin

func (_NinjaConfig *NinjaConfigTransactor) AddAdmin(opts *bind.TransactOpts, admin common.Address) (*types.Transaction, error)

AddAdmin is a paid mutator transaction binding the contract method 0x70480275.

Solidity: function addAdmin(address admin) returns()

func (*NinjaConfigTransactor) AddBootIp

func (_NinjaConfig *NinjaConfigTransactor) AddBootIp(opts *bind.TransactOpts, newIP [4]byte) (*types.Transaction, error)

AddBootIp is a paid mutator transaction binding the contract method 0xf6176d80.

Solidity: function addBootIp(bytes4 newIP) returns()

func (*NinjaConfigTransactor) AddPushNodeIp

func (_NinjaConfig *NinjaConfigTransactor) AddPushNodeIp(opts *bind.TransactOpts, newIP [4]byte) (*types.Transaction, error)

AddPushNodeIp is a paid mutator transaction binding the contract method 0x1626b90b.

Solidity: function addPushNodeIp(bytes4 newIP) returns()

func (*NinjaConfigTransactor) DelAdmin

func (_NinjaConfig *NinjaConfigTransactor) DelAdmin(opts *bind.TransactOpts, admin common.Address) (*types.Transaction, error)

DelAdmin is a paid mutator transaction binding the contract method 0x62d91855.

Solidity: function delAdmin(address admin) returns()

func (*NinjaConfigTransactor) RemoveBootIP

func (_NinjaConfig *NinjaConfigTransactor) RemoveBootIP(opts *bind.TransactOpts, theIP [4]byte) (*types.Transaction, error)

RemoveBootIP is a paid mutator transaction binding the contract method 0x0c13ce80.

Solidity: function removeBootIP(bytes4 theIP) returns()

func (*NinjaConfigTransactor) RemovePushNodeIP

func (_NinjaConfig *NinjaConfigTransactor) RemovePushNodeIP(opts *bind.TransactOpts, theIP [4]byte) (*types.Transaction, error)

RemovePushNodeIP is a paid mutator transaction binding the contract method 0xe1dffd2d.

Solidity: function removePushNodeIP(bytes4 theIP) returns()

func (*NinjaConfigTransactor) SetLicenseAddr

func (_NinjaConfig *NinjaConfigTransactor) SetLicenseAddr(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error)

SetLicenseAddr is a paid mutator transaction binding the contract method 0x832a07e2.

Solidity: function SetLicenseAddr(address addr) returns()

func (*NinjaConfigTransactor) SetPrimeNodeID

func (_NinjaConfig *NinjaConfigTransactor) SetPrimeNodeID(opts *bind.TransactOpts, nid string) (*types.Transaction, error)

SetPrimeNodeID is a paid mutator transaction binding the contract method 0xf7c0d56b.

Solidity: function setPrimeNodeID(string nid) returns()

func (*NinjaConfigTransactor) SetTokenAddr

func (_NinjaConfig *NinjaConfigTransactor) SetTokenAddr(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error)

SetTokenAddr is a paid mutator transaction binding the contract method 0x72e7a223.

Solidity: function SetTokenAddr(address addr) returns()

func (*NinjaConfigTransactor) TransferOwnership

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

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

Solidity: function transferOwnership(address newOwner) returns()

type NinjaConfigTransactorRaw

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

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

func (*NinjaConfigTransactorRaw) Transact

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

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

func (*NinjaConfigTransactorRaw) Transfer

func (_NinjaConfig *NinjaConfigTransactorRaw) 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 NinjaConfigTransactorSession

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

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

func (*NinjaConfigTransactorSession) AddAdmin

func (_NinjaConfig *NinjaConfigTransactorSession) AddAdmin(admin common.Address) (*types.Transaction, error)

AddAdmin is a paid mutator transaction binding the contract method 0x70480275.

Solidity: function addAdmin(address admin) returns()

func (*NinjaConfigTransactorSession) AddBootIp

func (_NinjaConfig *NinjaConfigTransactorSession) AddBootIp(newIP [4]byte) (*types.Transaction, error)

AddBootIp is a paid mutator transaction binding the contract method 0xf6176d80.

Solidity: function addBootIp(bytes4 newIP) returns()

func (*NinjaConfigTransactorSession) AddPushNodeIp

func (_NinjaConfig *NinjaConfigTransactorSession) AddPushNodeIp(newIP [4]byte) (*types.Transaction, error)

AddPushNodeIp is a paid mutator transaction binding the contract method 0x1626b90b.

Solidity: function addPushNodeIp(bytes4 newIP) returns()

func (*NinjaConfigTransactorSession) DelAdmin

func (_NinjaConfig *NinjaConfigTransactorSession) DelAdmin(admin common.Address) (*types.Transaction, error)

DelAdmin is a paid mutator transaction binding the contract method 0x62d91855.

Solidity: function delAdmin(address admin) returns()

func (*NinjaConfigTransactorSession) RemoveBootIP

func (_NinjaConfig *NinjaConfigTransactorSession) RemoveBootIP(theIP [4]byte) (*types.Transaction, error)

RemoveBootIP is a paid mutator transaction binding the contract method 0x0c13ce80.

Solidity: function removeBootIP(bytes4 theIP) returns()

func (*NinjaConfigTransactorSession) RemovePushNodeIP

func (_NinjaConfig *NinjaConfigTransactorSession) RemovePushNodeIP(theIP [4]byte) (*types.Transaction, error)

RemovePushNodeIP is a paid mutator transaction binding the contract method 0xe1dffd2d.

Solidity: function removePushNodeIP(bytes4 theIP) returns()

func (*NinjaConfigTransactorSession) SetLicenseAddr

func (_NinjaConfig *NinjaConfigTransactorSession) SetLicenseAddr(addr common.Address) (*types.Transaction, error)

SetLicenseAddr is a paid mutator transaction binding the contract method 0x832a07e2.

Solidity: function SetLicenseAddr(address addr) returns()

func (*NinjaConfigTransactorSession) SetPrimeNodeID

func (_NinjaConfig *NinjaConfigTransactorSession) SetPrimeNodeID(nid string) (*types.Transaction, error)

SetPrimeNodeID is a paid mutator transaction binding the contract method 0xf7c0d56b.

Solidity: function setPrimeNodeID(string nid) returns()

func (*NinjaConfigTransactorSession) SetTokenAddr

func (_NinjaConfig *NinjaConfigTransactorSession) SetTokenAddr(addr common.Address) (*types.Transaction, error)

SetTokenAddr is a paid mutator transaction binding the contract method 0x72e7a223.

Solidity: function SetTokenAddr(address addr) returns()

func (*NinjaConfigTransactorSession) TransferOwnership

func (_NinjaConfig *NinjaConfigTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

type NinjaLicense

type NinjaLicense struct {
	NinjaLicenseCaller     // Read-only binding to the contract
	NinjaLicenseTransactor // Write-only binding to the contract
	NinjaLicenseFilterer   // Log filterer for contract events
}

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

func NewNinjaLicense

func NewNinjaLicense(address common.Address, backend bind.ContractBackend) (*NinjaLicense, error)

NewNinjaLicense creates a new instance of NinjaLicense, bound to a specific deployed contract.

type NinjaLicenseCaller

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

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

func NewNinjaLicenseCaller

func NewNinjaLicenseCaller(address common.Address, caller bind.ContractCaller) (*NinjaLicenseCaller, error)

NewNinjaLicenseCaller creates a new read-only instance of NinjaLicense, bound to a specific deployed contract.

func (*NinjaLicenseCaller) AdminMap

func (_NinjaLicense *NinjaLicenseCaller) AdminMap(opts *bind.CallOpts, arg0 common.Address) (bool, error)

AdminMap is a free data retrieval call binding the contract method 0xffa04f04.

Solidity: function AdminMap(address ) view returns(bool)

func (*NinjaLicenseCaller) Owner

func (_NinjaLicense *NinjaLicenseCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*NinjaLicenseCaller) Token

func (_NinjaLicense *NinjaLicenseCaller) Token(opts *bind.CallOpts) (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

func (*NinjaLicenseCaller) TokenPerDay

func (_NinjaLicense *NinjaLicenseCaller) TokenPerDay(opts *bind.CallOpts) (*big.Int, error)

TokenPerDay is a free data retrieval call binding the contract method 0x497d1229.

Solidity: function TokenPerDay() view returns(uint256)

func (*NinjaLicenseCaller) UserLicenseMap

func (_NinjaLicense *NinjaLicenseCaller) UserLicenseMap(opts *bind.CallOpts, arg0 string) (*big.Int, error)

UserLicenseMap is a free data retrieval call binding the contract method 0xa33ebca0.

Solidity: function UserLicenseMap(string ) view returns(uint256)

type NinjaLicenseCallerRaw

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

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

func (*NinjaLicenseCallerRaw) Call

func (_NinjaLicense *NinjaLicenseCallerRaw) 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 NinjaLicenseCallerSession

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

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

func (*NinjaLicenseCallerSession) AdminMap

func (_NinjaLicense *NinjaLicenseCallerSession) AdminMap(arg0 common.Address) (bool, error)

AdminMap is a free data retrieval call binding the contract method 0xffa04f04.

Solidity: function AdminMap(address ) view returns(bool)

func (*NinjaLicenseCallerSession) Owner

func (_NinjaLicense *NinjaLicenseCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*NinjaLicenseCallerSession) Token

func (_NinjaLicense *NinjaLicenseCallerSession) Token() (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

func (*NinjaLicenseCallerSession) TokenPerDay

func (_NinjaLicense *NinjaLicenseCallerSession) TokenPerDay() (*big.Int, error)

TokenPerDay is a free data retrieval call binding the contract method 0x497d1229.

Solidity: function TokenPerDay() view returns(uint256)

func (*NinjaLicenseCallerSession) UserLicenseMap

func (_NinjaLicense *NinjaLicenseCallerSession) UserLicenseMap(arg0 string) (*big.Int, error)

UserLicenseMap is a free data retrieval call binding the contract method 0xa33ebca0.

Solidity: function UserLicenseMap(string ) view returns(uint256)

type NinjaLicenseFilterer

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

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

func NewNinjaLicenseFilterer

func NewNinjaLicenseFilterer(address common.Address, filterer bind.ContractFilterer) (*NinjaLicenseFilterer, error)

NewNinjaLicenseFilterer creates a new log filterer instance of NinjaLicense, bound to a specific deployed contract.

func (*NinjaLicenseFilterer) FilterGenerateLicenseEvent

func (_NinjaLicense *NinjaLicenseFilterer) FilterGenerateLicenseEvent(opts *bind.FilterOpts) (*NinjaLicenseGenerateLicenseEventIterator, error)

FilterGenerateLicenseEvent is a free log retrieval operation binding the contract event 0xc862f01bcf46792f9cffbc2f97a986f4c1f5345ed5d70d244f2d4e031bcf59d8.

Solidity: event GenerateLicenseEvent(address arg0, string arg1, uint256 arg2)

func (*NinjaLicenseFilterer) FilterTransferLicenseEvent

func (_NinjaLicense *NinjaLicenseFilterer) FilterTransferLicenseEvent(opts *bind.FilterOpts) (*NinjaLicenseTransferLicenseEventIterator, error)

FilterTransferLicenseEvent is a free log retrieval operation binding the contract event 0xaf629d58c7d40b375ad41fe939263948139bac1593044f526b5ffc06eaa368d7.

Solidity: event TransferLicenseEvent(string arg0, string arg1, uint256 arg2)

func (*NinjaLicenseFilterer) ParseGenerateLicenseEvent

func (_NinjaLicense *NinjaLicenseFilterer) ParseGenerateLicenseEvent(log types.Log) (*NinjaLicenseGenerateLicenseEvent, error)

ParseGenerateLicenseEvent is a log parse operation binding the contract event 0xc862f01bcf46792f9cffbc2f97a986f4c1f5345ed5d70d244f2d4e031bcf59d8.

Solidity: event GenerateLicenseEvent(address arg0, string arg1, uint256 arg2)

func (*NinjaLicenseFilterer) ParseTransferLicenseEvent

func (_NinjaLicense *NinjaLicenseFilterer) ParseTransferLicenseEvent(log types.Log) (*NinjaLicenseTransferLicenseEvent, error)

ParseTransferLicenseEvent is a log parse operation binding the contract event 0xaf629d58c7d40b375ad41fe939263948139bac1593044f526b5ffc06eaa368d7.

Solidity: event TransferLicenseEvent(string arg0, string arg1, uint256 arg2)

func (*NinjaLicenseFilterer) WatchGenerateLicenseEvent

func (_NinjaLicense *NinjaLicenseFilterer) WatchGenerateLicenseEvent(opts *bind.WatchOpts, sink chan<- *NinjaLicenseGenerateLicenseEvent) (event.Subscription, error)

WatchGenerateLicenseEvent is a free log subscription operation binding the contract event 0xc862f01bcf46792f9cffbc2f97a986f4c1f5345ed5d70d244f2d4e031bcf59d8.

Solidity: event GenerateLicenseEvent(address arg0, string arg1, uint256 arg2)

func (*NinjaLicenseFilterer) WatchTransferLicenseEvent

func (_NinjaLicense *NinjaLicenseFilterer) WatchTransferLicenseEvent(opts *bind.WatchOpts, sink chan<- *NinjaLicenseTransferLicenseEvent) (event.Subscription, error)

WatchTransferLicenseEvent is a free log subscription operation binding the contract event 0xaf629d58c7d40b375ad41fe939263948139bac1593044f526b5ffc06eaa368d7.

Solidity: event TransferLicenseEvent(string arg0, string arg1, uint256 arg2)

type NinjaLicenseGenerateLicenseEvent

type NinjaLicenseGenerateLicenseEvent struct {
	Arg0 common.Address
	Arg1 string
	Arg2 *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

NinjaLicenseGenerateLicenseEvent represents a GenerateLicenseEvent event raised by the NinjaLicense contract.

type NinjaLicenseGenerateLicenseEventIterator

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

NinjaLicenseGenerateLicenseEventIterator is returned from FilterGenerateLicenseEvent and is used to iterate over the raw logs and unpacked data for GenerateLicenseEvent events raised by the NinjaLicense contract.

func (*NinjaLicenseGenerateLicenseEventIterator) Close

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

func (*NinjaLicenseGenerateLicenseEventIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NinjaLicenseGenerateLicenseEventIterator) 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 NinjaLicenseRaw

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

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

func (*NinjaLicenseRaw) Call

func (_NinjaLicense *NinjaLicenseRaw) 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 (*NinjaLicenseRaw) Transact

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

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

func (*NinjaLicenseRaw) Transfer

func (_NinjaLicense *NinjaLicenseRaw) 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 NinjaLicenseSession

type NinjaLicenseSession struct {
	Contract     *NinjaLicense     // 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
}

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

func (*NinjaLicenseSession) AddAmin

func (_NinjaLicense *NinjaLicenseSession) AddAmin(admin common.Address) (*types.Transaction, error)

AddAmin is a paid mutator transaction binding the contract method 0xa6e76467.

Solidity: function addAmin(address admin) returns()

func (*NinjaLicenseSession) AdminMap

func (_NinjaLicense *NinjaLicenseSession) AdminMap(arg0 common.Address) (bool, error)

AdminMap is a free data retrieval call binding the contract method 0xffa04f04.

Solidity: function AdminMap(address ) view returns(bool)

func (*NinjaLicenseSession) ChangePrice

func (_NinjaLicense *NinjaLicenseSession) ChangePrice(newPrice *big.Int) (*types.Transaction, error)

ChangePrice is a paid mutator transaction binding the contract method 0xa2b40d19.

Solidity: function changePrice(uint256 newPrice) returns()

func (*NinjaLicenseSession) DelAmin

func (_NinjaLicense *NinjaLicenseSession) DelAmin(admin common.Address) (*types.Transaction, error)

DelAmin is a paid mutator transaction binding the contract method 0x19b29086.

Solidity: function delAmin(address admin) returns()

func (*NinjaLicenseSession) GenerateLicense

func (_NinjaLicense *NinjaLicenseSession) GenerateLicense(nDays *big.Int, userAddr string) (*types.Transaction, error)

GenerateLicense is a paid mutator transaction binding the contract method 0xad6a3358.

Solidity: function generateLicense(uint256 nDays, string userAddr) returns()

func (*NinjaLicenseSession) Owner

func (_NinjaLicense *NinjaLicenseSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*NinjaLicenseSession) Token

func (_NinjaLicense *NinjaLicenseSession) Token() (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

func (*NinjaLicenseSession) TokenPerDay

func (_NinjaLicense *NinjaLicenseSession) TokenPerDay() (*big.Int, error)

TokenPerDay is a free data retrieval call binding the contract method 0x497d1229.

Solidity: function TokenPerDay() view returns(uint256)

func (*NinjaLicenseSession) TransferLicense

func (_NinjaLicense *NinjaLicenseSession) TransferLicense(from string, to string, nDays uint32) (*types.Transaction, error)

TransferLicense is a paid mutator transaction binding the contract method 0x02776036.

Solidity: function transferLicense(string from, string to, uint32 nDays) returns()

func (*NinjaLicenseSession) TransferOwnership

func (_NinjaLicense *NinjaLicenseSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

func (*NinjaLicenseSession) UserLicenseMap

func (_NinjaLicense *NinjaLicenseSession) UserLicenseMap(arg0 string) (*big.Int, error)

UserLicenseMap is a free data retrieval call binding the contract method 0xa33ebca0.

Solidity: function UserLicenseMap(string ) view returns(uint256)

func (*NinjaLicenseSession) WithDrawToken

func (_NinjaLicense *NinjaLicenseSession) WithDrawToken(reciver common.Address, no *big.Int) (*types.Transaction, error)

WithDrawToken is a paid mutator transaction binding the contract method 0x85bc7071.

Solidity: function withDrawToken(address reciver, uint256 no) returns()

type NinjaLicenseTransactor

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

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

func NewNinjaLicenseTransactor

func NewNinjaLicenseTransactor(address common.Address, transactor bind.ContractTransactor) (*NinjaLicenseTransactor, error)

NewNinjaLicenseTransactor creates a new write-only instance of NinjaLicense, bound to a specific deployed contract.

func (*NinjaLicenseTransactor) AddAmin

func (_NinjaLicense *NinjaLicenseTransactor) AddAmin(opts *bind.TransactOpts, admin common.Address) (*types.Transaction, error)

AddAmin is a paid mutator transaction binding the contract method 0xa6e76467.

Solidity: function addAmin(address admin) returns()

func (*NinjaLicenseTransactor) ChangePrice

func (_NinjaLicense *NinjaLicenseTransactor) ChangePrice(opts *bind.TransactOpts, newPrice *big.Int) (*types.Transaction, error)

ChangePrice is a paid mutator transaction binding the contract method 0xa2b40d19.

Solidity: function changePrice(uint256 newPrice) returns()

func (*NinjaLicenseTransactor) DelAmin

func (_NinjaLicense *NinjaLicenseTransactor) DelAmin(opts *bind.TransactOpts, admin common.Address) (*types.Transaction, error)

DelAmin is a paid mutator transaction binding the contract method 0x19b29086.

Solidity: function delAmin(address admin) returns()

func (*NinjaLicenseTransactor) GenerateLicense

func (_NinjaLicense *NinjaLicenseTransactor) GenerateLicense(opts *bind.TransactOpts, nDays *big.Int, userAddr string) (*types.Transaction, error)

GenerateLicense is a paid mutator transaction binding the contract method 0xad6a3358.

Solidity: function generateLicense(uint256 nDays, string userAddr) returns()

func (*NinjaLicenseTransactor) TransferLicense

func (_NinjaLicense *NinjaLicenseTransactor) TransferLicense(opts *bind.TransactOpts, from string, to string, nDays uint32) (*types.Transaction, error)

TransferLicense is a paid mutator transaction binding the contract method 0x02776036.

Solidity: function transferLicense(string from, string to, uint32 nDays) returns()

func (*NinjaLicenseTransactor) TransferOwnership

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

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

Solidity: function transferOwnership(address newOwner) returns()

func (*NinjaLicenseTransactor) WithDrawToken

func (_NinjaLicense *NinjaLicenseTransactor) WithDrawToken(opts *bind.TransactOpts, reciver common.Address, no *big.Int) (*types.Transaction, error)

WithDrawToken is a paid mutator transaction binding the contract method 0x85bc7071.

Solidity: function withDrawToken(address reciver, uint256 no) returns()

type NinjaLicenseTransactorRaw

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

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

func (*NinjaLicenseTransactorRaw) Transact

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

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

func (*NinjaLicenseTransactorRaw) Transfer

func (_NinjaLicense *NinjaLicenseTransactorRaw) 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 NinjaLicenseTransactorSession

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

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

func (*NinjaLicenseTransactorSession) AddAmin

func (_NinjaLicense *NinjaLicenseTransactorSession) AddAmin(admin common.Address) (*types.Transaction, error)

AddAmin is a paid mutator transaction binding the contract method 0xa6e76467.

Solidity: function addAmin(address admin) returns()

func (*NinjaLicenseTransactorSession) ChangePrice

func (_NinjaLicense *NinjaLicenseTransactorSession) ChangePrice(newPrice *big.Int) (*types.Transaction, error)

ChangePrice is a paid mutator transaction binding the contract method 0xa2b40d19.

Solidity: function changePrice(uint256 newPrice) returns()

func (*NinjaLicenseTransactorSession) DelAmin

func (_NinjaLicense *NinjaLicenseTransactorSession) DelAmin(admin common.Address) (*types.Transaction, error)

DelAmin is a paid mutator transaction binding the contract method 0x19b29086.

Solidity: function delAmin(address admin) returns()

func (*NinjaLicenseTransactorSession) GenerateLicense

func (_NinjaLicense *NinjaLicenseTransactorSession) GenerateLicense(nDays *big.Int, userAddr string) (*types.Transaction, error)

GenerateLicense is a paid mutator transaction binding the contract method 0xad6a3358.

Solidity: function generateLicense(uint256 nDays, string userAddr) returns()

func (*NinjaLicenseTransactorSession) TransferLicense

func (_NinjaLicense *NinjaLicenseTransactorSession) TransferLicense(from string, to string, nDays uint32) (*types.Transaction, error)

TransferLicense is a paid mutator transaction binding the contract method 0x02776036.

Solidity: function transferLicense(string from, string to, uint32 nDays) returns()

func (*NinjaLicenseTransactorSession) TransferOwnership

func (_NinjaLicense *NinjaLicenseTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

func (*NinjaLicenseTransactorSession) WithDrawToken

func (_NinjaLicense *NinjaLicenseTransactorSession) WithDrawToken(reciver common.Address, no *big.Int) (*types.Transaction, error)

WithDrawToken is a paid mutator transaction binding the contract method 0x85bc7071.

Solidity: function withDrawToken(address reciver, uint256 no) returns()

type NinjaLicenseTransferLicenseEvent

type NinjaLicenseTransferLicenseEvent struct {
	Arg0 string
	Arg1 string
	Arg2 *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

NinjaLicenseTransferLicenseEvent represents a TransferLicenseEvent event raised by the NinjaLicense contract.

type NinjaLicenseTransferLicenseEventIterator

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

NinjaLicenseTransferLicenseEventIterator is returned from FilterTransferLicenseEvent and is used to iterate over the raw logs and unpacked data for TransferLicenseEvent events raised by the NinjaLicense contract.

func (*NinjaLicenseTransferLicenseEventIterator) Close

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

func (*NinjaLicenseTransferLicenseEventIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NinjaLicenseTransferLicenseEventIterator) 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 NinjaToken

type NinjaToken struct {
	NinjaTokenCaller     // Read-only binding to the contract
	NinjaTokenTransactor // Write-only binding to the contract
	NinjaTokenFilterer   // Log filterer for contract events
}

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

func NewNinjaToken

func NewNinjaToken(address common.Address, backend bind.ContractBackend) (*NinjaToken, error)

NewNinjaToken creates a new instance of NinjaToken, bound to a specific deployed contract.

type NinjaTokenApproval

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

NinjaTokenApproval represents a Approval event raised by the NinjaToken contract.

type NinjaTokenApprovalIterator

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

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

func (*NinjaTokenApprovalIterator) Close

func (it *NinjaTokenApprovalIterator) Close() error

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

func (*NinjaTokenApprovalIterator) Error

func (it *NinjaTokenApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NinjaTokenApprovalIterator) Next

func (it *NinjaTokenApprovalIterator) 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 NinjaTokenCaller

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

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

func NewNinjaTokenCaller

func NewNinjaTokenCaller(address common.Address, caller bind.ContractCaller) (*NinjaTokenCaller, error)

NewNinjaTokenCaller creates a new read-only instance of NinjaToken, bound to a specific deployed contract.

func (*NinjaTokenCaller) Allowance

func (_NinjaToken *NinjaTokenCaller) 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(address owner, address spender) view returns(uint256)

func (*NinjaTokenCaller) BalanceOf

func (_NinjaToken *NinjaTokenCaller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address owner) view returns(uint256)

func (*NinjaTokenCaller) Decimals

func (_NinjaToken *NinjaTokenCaller) Decimals(opts *bind.CallOpts) (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*NinjaTokenCaller) INITIALSUPPLY

func (_NinjaToken *NinjaTokenCaller) INITIALSUPPLY(opts *bind.CallOpts) (*big.Int, error)

INITIALSUPPLY is a free data retrieval call binding the contract method 0x2ff2e9dc.

Solidity: function INITIAL_SUPPLY() view returns(uint256)

func (*NinjaTokenCaller) Name

func (_NinjaToken *NinjaTokenCaller) Name(opts *bind.CallOpts) (string, error)

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

Solidity: function name() view returns(string)

func (*NinjaTokenCaller) Owner

func (_NinjaToken *NinjaTokenCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*NinjaTokenCaller) Symbol

func (_NinjaToken *NinjaTokenCaller) Symbol(opts *bind.CallOpts) (string, error)

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

Solidity: function symbol() view returns(string)

func (*NinjaTokenCaller) TotalSupply

func (_NinjaToken *NinjaTokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type NinjaTokenCallerRaw

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

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

func (*NinjaTokenCallerRaw) Call

func (_NinjaToken *NinjaTokenCallerRaw) 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 NinjaTokenCallerSession

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

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

func (*NinjaTokenCallerSession) Allowance

func (_NinjaToken *NinjaTokenCallerSession) 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(address owner, address spender) view returns(uint256)

func (*NinjaTokenCallerSession) BalanceOf

func (_NinjaToken *NinjaTokenCallerSession) BalanceOf(owner common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address owner) view returns(uint256)

func (*NinjaTokenCallerSession) Decimals

func (_NinjaToken *NinjaTokenCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*NinjaTokenCallerSession) INITIALSUPPLY

func (_NinjaToken *NinjaTokenCallerSession) INITIALSUPPLY() (*big.Int, error)

INITIALSUPPLY is a free data retrieval call binding the contract method 0x2ff2e9dc.

Solidity: function INITIAL_SUPPLY() view returns(uint256)

func (*NinjaTokenCallerSession) Name

func (_NinjaToken *NinjaTokenCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*NinjaTokenCallerSession) Owner

func (_NinjaToken *NinjaTokenCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*NinjaTokenCallerSession) Symbol

func (_NinjaToken *NinjaTokenCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*NinjaTokenCallerSession) TotalSupply

func (_NinjaToken *NinjaTokenCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type NinjaTokenFilterer

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

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

func NewNinjaTokenFilterer

func NewNinjaTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*NinjaTokenFilterer, error)

NewNinjaTokenFilterer creates a new log filterer instance of NinjaToken, bound to a specific deployed contract.

func (*NinjaTokenFilterer) FilterApproval

func (_NinjaToken *NinjaTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*NinjaTokenApprovalIterator, error)

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

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

func (*NinjaTokenFilterer) FilterTransfer

func (_NinjaToken *NinjaTokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*NinjaTokenTransferIterator, error)

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

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

func (*NinjaTokenFilterer) ParseApproval

func (_NinjaToken *NinjaTokenFilterer) ParseApproval(log types.Log) (*NinjaTokenApproval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

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

func (*NinjaTokenFilterer) ParseTransfer

func (_NinjaToken *NinjaTokenFilterer) ParseTransfer(log types.Log) (*NinjaTokenTransfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

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

func (*NinjaTokenFilterer) WatchApproval

func (_NinjaToken *NinjaTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *NinjaTokenApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)

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

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

func (*NinjaTokenFilterer) WatchTransfer

func (_NinjaToken *NinjaTokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *NinjaTokenTransfer, from []common.Address, to []common.Address) (event.Subscription, error)

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

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

type NinjaTokenRaw

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

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

func (*NinjaTokenRaw) Call

func (_NinjaToken *NinjaTokenRaw) 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 (*NinjaTokenRaw) Transact

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

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

func (*NinjaTokenRaw) Transfer

func (_NinjaToken *NinjaTokenRaw) 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 NinjaTokenSession

type NinjaTokenSession struct {
	Contract     *NinjaToken       // 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
}

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

func (*NinjaTokenSession) Allowance

func (_NinjaToken *NinjaTokenSession) 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(address owner, address spender) view returns(uint256)

func (*NinjaTokenSession) Approve

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

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

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

func (*NinjaTokenSession) BalanceOf

func (_NinjaToken *NinjaTokenSession) BalanceOf(owner common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address owner) view returns(uint256)

func (*NinjaTokenSession) Decimals

func (_NinjaToken *NinjaTokenSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*NinjaTokenSession) DecreaseAllowance

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

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

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

func (*NinjaTokenSession) INITIALSUPPLY

func (_NinjaToken *NinjaTokenSession) INITIALSUPPLY() (*big.Int, error)

INITIALSUPPLY is a free data retrieval call binding the contract method 0x2ff2e9dc.

Solidity: function INITIAL_SUPPLY() view returns(uint256)

func (*NinjaTokenSession) IncreaseAllowance

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

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

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

func (*NinjaTokenSession) Name

func (_NinjaToken *NinjaTokenSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*NinjaTokenSession) Owner

func (_NinjaToken *NinjaTokenSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*NinjaTokenSession) Symbol

func (_NinjaToken *NinjaTokenSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*NinjaTokenSession) TotalSupply

func (_NinjaToken *NinjaTokenSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*NinjaTokenSession) Transfer

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

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

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

func (*NinjaTokenSession) TransferFrom

func (_NinjaToken *NinjaTokenSession) 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(address from, address to, uint256 value) returns(bool)

func (*NinjaTokenSession) TransferOwnership

func (_NinjaToken *NinjaTokenSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

type NinjaTokenTransactor

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

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

func NewNinjaTokenTransactor

func NewNinjaTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*NinjaTokenTransactor, error)

NewNinjaTokenTransactor creates a new write-only instance of NinjaToken, bound to a specific deployed contract.

func (*NinjaTokenTransactor) Approve

func (_NinjaToken *NinjaTokenTransactor) 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(address spender, uint256 value) returns(bool)

func (*NinjaTokenTransactor) DecreaseAllowance

func (_NinjaToken *NinjaTokenTransactor) 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(address spender, uint256 subtractedValue) returns(bool)

func (*NinjaTokenTransactor) IncreaseAllowance

func (_NinjaToken *NinjaTokenTransactor) 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(address spender, uint256 addedValue) returns(bool)

func (*NinjaTokenTransactor) Transfer

func (_NinjaToken *NinjaTokenTransactor) 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(address to, uint256 value) returns(bool)

func (*NinjaTokenTransactor) TransferFrom

func (_NinjaToken *NinjaTokenTransactor) 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(address from, address to, uint256 value) returns(bool)

func (*NinjaTokenTransactor) TransferOwnership

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

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

Solidity: function transferOwnership(address newOwner) returns()

type NinjaTokenTransactorRaw

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

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

func (*NinjaTokenTransactorRaw) Transact

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

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

func (*NinjaTokenTransactorRaw) Transfer

func (_NinjaToken *NinjaTokenTransactorRaw) 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 NinjaTokenTransactorSession

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

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

func (*NinjaTokenTransactorSession) Approve

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

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

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

func (*NinjaTokenTransactorSession) DecreaseAllowance

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

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

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

func (*NinjaTokenTransactorSession) IncreaseAllowance

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

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

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

func (*NinjaTokenTransactorSession) Transfer

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

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

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

func (*NinjaTokenTransactorSession) TransferFrom

func (_NinjaToken *NinjaTokenTransactorSession) 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(address from, address to, uint256 value) returns(bool)

func (*NinjaTokenTransactorSession) TransferOwnership

func (_NinjaToken *NinjaTokenTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

type NinjaTokenTransfer

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

NinjaTokenTransfer represents a Transfer event raised by the NinjaToken contract.

type NinjaTokenTransferIterator

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

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

func (*NinjaTokenTransferIterator) Close

func (it *NinjaTokenTransferIterator) Close() error

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

func (*NinjaTokenTransferIterator) Error

func (it *NinjaTokenTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NinjaTokenTransferIterator) Next

func (it *NinjaTokenTransferIterator) 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