Documentation ¶
Index ¶
- Constants
- Variables
- type ChainEthereum
- func (c *ChainEthereum) BalanceAt(ctx context.Context, addr []byte) (*big.Int, error)
- func (c *ChainEthereum) BalanceAtICST(ctx context.Context, addr []byte) (*big.Int, error)
- func (c *ChainEthereum) Call(ctx context.Context, from []byte, contractType string, contractAddr []byte, ...) (*transaction.Transaction, error)
- func (c *ChainEthereum) CallWithAbi(ctx context.Context, from []byte, contractAddr []byte, methodName string, ...) (*transaction.Transaction, error)
- func (c *ChainEthereum) ConfirmTrans(ctx context.Context, trans *transaction.Transaction, sig []byte) error
- func (c *ChainEthereum) GenerateKey(ctx context.Context) (*ecdsa.PrivateKey, error)
- func (c *ChainEthereum) GetContract(addr []byte, contractType string) (interface{}, error)
- func (c *ChainEthereum) GetContractEvents(ctx context.Context, addr []byte, fromBlock, toBlock *big.Int, ...) ([]*chain.ContractEvent, error)
- func (c *ChainEthereum) MarshalPubKey(pub *ecdsa.PublicKey) string
- func (c *ChainEthereum) NewContract(ctx context.Context, from []byte, contractType string, ...) (*transaction.Transaction, error)
- func (c *ChainEthereum) PubKeyToAddress(pub *ecdsa.PublicKey) []byte
- func (c *ChainEthereum) Query(ctx context.Context, addr []byte, abiString string, methodName string, ...) error
- func (c *ChainEthereum) Sign(hash []byte, prv *ecdsa.PrivateKey) (sig []byte, err error)
- func (c *ChainEthereum) Transfer(ctx context.Context, from []byte, to []byte, value *big.Int) (*transaction.Transaction, error)
- func (c *ChainEthereum) TransferICST(ctx context.Context, from []byte, to []byte, value *big.Int) (*transaction.Transaction, error)
- func (c *ChainEthereum) UnmarshalPubkey(pub string) (*ecdsa.PublicKey, error)
- func (c *ChainEthereum) WaitContractDeployed(ctx context.Context, tx interface{}) (common.Address, error)
- func (c *ChainEthereum) WaitMined(ctx context.Context, trans *transaction.Transaction) error
- func (c *ChainEthereum) WatchBlocks(ctx context.Context, blockStart *big.Int) (<-chan *transaction.Block, <-chan error)
- func (c *ChainEthereum) WatchContractEvent(ctx context.Context, addr []byte, contractType string, eventName string, ...) (<-chan *chain.ContractEvent, error)
- func (c *ChainEthereum) WatchICSTTransfer(ctx context.Context, blockStart *big.Int) (<-chan *transaction.Block, <-chan error)
- type ConsumeContent
- type ConsumeContentCaller
- func (_ConsumeContent *ConsumeContentCaller) Count(opts *bind.CallOpts) (*big.Int, error)
- func (_ConsumeContent *ConsumeContentCaller) Platform(opts *bind.CallOpts) (common.Address, error)
- func (_ConsumeContent *ConsumeContentCaller) Price(opts *bind.CallOpts) (uint32, error)
- func (_ConsumeContent *ConsumeContentCaller) Publisher(opts *bind.CallOpts) (common.Address, error)
- func (_ConsumeContent *ConsumeContentCaller) Ratio(opts *bind.CallOpts) (uint8, error)
- type ConsumeContentCallerRaw
- type ConsumeContentCallerSession
- func (_ConsumeContent *ConsumeContentCallerSession) Count() (*big.Int, error)
- func (_ConsumeContent *ConsumeContentCallerSession) Platform() (common.Address, error)
- func (_ConsumeContent *ConsumeContentCallerSession) Price() (uint32, error)
- func (_ConsumeContent *ConsumeContentCallerSession) Publisher() (common.Address, error)
- func (_ConsumeContent *ConsumeContentCallerSession) Ratio() (uint8, error)
- type ConsumeContentEventConsume
- type ConsumeContentEventConsumeIterator
- type ConsumeContentFilterer
- type ConsumeContentRaw
- func (_ConsumeContent *ConsumeContentRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_ConsumeContent *ConsumeContentRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ConsumeContent *ConsumeContentRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ConsumeContentSession
- func (_ConsumeContent *ConsumeContentSession) Consume() (*types.Transaction, error)
- func (_ConsumeContent *ConsumeContentSession) Count() (*big.Int, error)
- func (_ConsumeContent *ConsumeContentSession) Platform() (common.Address, error)
- func (_ConsumeContent *ConsumeContentSession) Price() (uint32, error)
- func (_ConsumeContent *ConsumeContentSession) Publisher() (common.Address, error)
- func (_ConsumeContent *ConsumeContentSession) Ratio() (uint8, error)
- func (_ConsumeContent *ConsumeContentSession) WithDraw() (*types.Transaction, error)
- type ConsumeContentTransactor
- type ConsumeContentTransactorRaw
- type ConsumeContentTransactorSession
- type ConsumeSkill
- type ConsumeSkillCaller
- func (_ConsumeSkill *ConsumeSkillCaller) Consumer(opts *bind.CallOpts) (common.Address, error)
- func (_ConsumeSkill *ConsumeSkillCaller) Hash(opts *bind.CallOpts) (string, error)
- func (_ConsumeSkill *ConsumeSkillCaller) Platform(opts *bind.CallOpts) (common.Address, error)
- func (_ConsumeSkill *ConsumeSkillCaller) Price(opts *bind.CallOpts) (uint32, error)
- func (_ConsumeSkill *ConsumeSkillCaller) Publisher(opts *bind.CallOpts) (common.Address, error)
- func (_ConsumeSkill *ConsumeSkillCaller) Ratio(opts *bind.CallOpts) (uint8, error)
- func (_ConsumeSkill *ConsumeSkillCaller) State(opts *bind.CallOpts) (uint8, error)
- type ConsumeSkillCallerRaw
- type ConsumeSkillCallerSession
- func (_ConsumeSkill *ConsumeSkillCallerSession) Consumer() (common.Address, error)
- func (_ConsumeSkill *ConsumeSkillCallerSession) Hash() (string, error)
- func (_ConsumeSkill *ConsumeSkillCallerSession) Platform() (common.Address, error)
- func (_ConsumeSkill *ConsumeSkillCallerSession) Price() (uint32, error)
- func (_ConsumeSkill *ConsumeSkillCallerSession) Publisher() (common.Address, error)
- func (_ConsumeSkill *ConsumeSkillCallerSession) Ratio() (uint8, error)
- func (_ConsumeSkill *ConsumeSkillCallerSession) State() (uint8, error)
- type ConsumeSkillFilterer
- type ConsumeSkillRaw
- func (_ConsumeSkill *ConsumeSkillRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_ConsumeSkill *ConsumeSkillRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ConsumeSkill *ConsumeSkillRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ConsumeSkillSession
- func (_ConsumeSkill *ConsumeSkillSession) Abort() (*types.Transaction, error)
- func (_ConsumeSkill *ConsumeSkillSession) Complete() (*types.Transaction, error)
- func (_ConsumeSkill *ConsumeSkillSession) Consumer() (common.Address, error)
- func (_ConsumeSkill *ConsumeSkillSession) Hash() (string, error)
- func (_ConsumeSkill *ConsumeSkillSession) Platform() (common.Address, error)
- func (_ConsumeSkill *ConsumeSkillSession) Price() (uint32, error)
- func (_ConsumeSkill *ConsumeSkillSession) Publisher() (common.Address, error)
- func (_ConsumeSkill *ConsumeSkillSession) Ratio() (uint8, error)
- func (_ConsumeSkill *ConsumeSkillSession) Start() (*types.Transaction, error)
- func (_ConsumeSkill *ConsumeSkillSession) State() (uint8, error)
- func (_ConsumeSkill *ConsumeSkillSession) WithDraw() (*types.Transaction, error)
- type ConsumeSkillStateChange
- type ConsumeSkillStateChangeIterator
- type ConsumeSkillTransactor
- func (_ConsumeSkill *ConsumeSkillTransactor) Abort(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_ConsumeSkill *ConsumeSkillTransactor) Complete(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_ConsumeSkill *ConsumeSkillTransactor) Start(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_ConsumeSkill *ConsumeSkillTransactor) WithDraw(opts *bind.TransactOpts) (*types.Transaction, error)
- type ConsumeSkillTransactorRaw
- type ConsumeSkillTransactorSession
- func (_ConsumeSkill *ConsumeSkillTransactorSession) Abort() (*types.Transaction, error)
- func (_ConsumeSkill *ConsumeSkillTransactorSession) Complete() (*types.Transaction, error)
- func (_ConsumeSkill *ConsumeSkillTransactorSession) Start() (*types.Transaction, error)
- func (_ConsumeSkill *ConsumeSkillTransactorSession) WithDraw() (*types.Transaction, error)
- type ICST
- type ICSTBurn
- type ICSTBurnIterator
- type ICSTCaller
- func (_ICST *ICSTCaller) Allowance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_ICST *ICSTCaller) BalanceOf(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_ICST *ICSTCaller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_ICST *ICSTCaller) Name(opts *bind.CallOpts) (string, error)
- func (_ICST *ICSTCaller) Symbol(opts *bind.CallOpts) (string, error)
- func (_ICST *ICSTCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- type ICSTCallerRaw
- type ICSTCallerSession
- func (_ICST *ICSTCallerSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_ICST *ICSTCallerSession) BalanceOf(arg0 common.Address) (*big.Int, error)
- func (_ICST *ICSTCallerSession) Decimals() (uint8, error)
- func (_ICST *ICSTCallerSession) Name() (string, error)
- func (_ICST *ICSTCallerSession) Symbol() (string, error)
- func (_ICST *ICSTCallerSession) TotalSupply() (*big.Int, error)
- type ICSTFilterer
- func (_ICST *ICSTFilterer) FilterBurn(opts *bind.FilterOpts, from []common.Address) (*ICSTBurnIterator, error)
- func (_ICST *ICSTFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ICSTTransferIterator, error)
- func (_ICST *ICSTFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *ICSTBurn, from []common.Address) (event.Subscription, error)
- func (_ICST *ICSTFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ICSTTransfer, from []common.Address, ...) (event.Subscription, error)
- type ICSTRaw
- func (_ICST *ICSTRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_ICST *ICSTRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ICST *ICSTRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ICSTSession
- func (_ICST *ICSTSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_ICST *ICSTSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)
- func (_ICST *ICSTSession) ApproveAndCall(_spender common.Address, _value *big.Int, _extraData []byte) (*types.Transaction, error)
- func (_ICST *ICSTSession) BalanceOf(arg0 common.Address) (*big.Int, error)
- func (_ICST *ICSTSession) Burn(_value *big.Int) (*types.Transaction, error)
- func (_ICST *ICSTSession) BurnFrom(_from common.Address, _value *big.Int) (*types.Transaction, error)
- func (_ICST *ICSTSession) Decimals() (uint8, error)
- func (_ICST *ICSTSession) Name() (string, error)
- func (_ICST *ICSTSession) Symbol() (string, error)
- func (_ICST *ICSTSession) TotalSupply() (*big.Int, error)
- func (_ICST *ICSTSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)
- func (_ICST *ICSTSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
- type ICSTTransactor
- func (_ICST *ICSTTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error)
- func (_ICST *ICSTTransactor) ApproveAndCall(opts *bind.TransactOpts, _spender common.Address, _value *big.Int, ...) (*types.Transaction, error)
- func (_ICST *ICSTTransactor) Burn(opts *bind.TransactOpts, _value *big.Int) (*types.Transaction, error)
- func (_ICST *ICSTTransactor) BurnFrom(opts *bind.TransactOpts, _from common.Address, _value *big.Int) (*types.Transaction, error)
- func (_ICST *ICSTTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)
- func (_ICST *ICSTTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, ...) (*types.Transaction, error)
- type ICSTTransactorRaw
- type ICSTTransactorSession
- func (_ICST *ICSTTransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)
- func (_ICST *ICSTTransactorSession) ApproveAndCall(_spender common.Address, _value *big.Int, _extraData []byte) (*types.Transaction, error)
- func (_ICST *ICSTTransactorSession) Burn(_value *big.Int) (*types.Transaction, error)
- func (_ICST *ICSTTransactorSession) BurnFrom(_from common.Address, _value *big.Int) (*types.Transaction, error)
- func (_ICST *ICSTTransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)
- func (_ICST *ICSTTransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
- type ICSTTransfer
- type ICSTTransferIterator
Constants ¶
const ConsumeContentABI = "" /* 1627-byte string literal not displayed */
ConsumeContentABI is the input ABI used to generate the binding from.
const ConsumeContentBin = `` /* 2140-byte string literal not displayed */
ConsumeContentBin is the compiled bytecode used for deploying new contracts.
const ConsumeSkillABI = "" /* 2473-byte string literal not displayed */
ConsumeSkillABI is the input ABI used to generate the binding from.
const ConsumeSkillBin = `` /* 4702-byte string literal not displayed */
ConsumeSkillBin is the compiled bytecode used for deploying new contracts.
const ICSTABI = "" /* 3474-byte string literal not displayed */
ICSTABI is the input ABI used to generate the binding from.
const ICSTBin = `` /* 9518-byte string literal not displayed */
ICSTBin is the compiled bytecode used for deploying new contracts.
Variables ¶
var ErrorMethodNameNotFound = errors.New("contract method name not found")
ErrorMethodNameNotFound indicates the method to call of a contract does not exist
var ErrorUnknownContractType = errors.New("unknown contract type")
ErrorUnknownContractType indicates an unsupported contract type
var ICSTAddr = "a2780e78c78b6c624a16e07694c4fae619cbe57c"
Functions ¶
This section is empty.
Types ¶
type ChainEthereum ¶
type ChainEthereum struct {
// contains filtered or unexported fields
}
ChainEthereum is a wrapper for ethereum client
func DialEthereum ¶
func DialEthereum(url string) (*ChainEthereum, error)
DialEthereum creates a new Ethereum chain object by dialing to the given url
func NewChainEthereum ¶
func NewChainEthereum(client *ethclient.Client) *ChainEthereum
NewChainEthereum creates a new Ethereum chain object with an existing ethclient
func NewSimChainEthereum ¶
func NewSimChainEthereum(backend *backends.SimulatedBackend) *ChainEthereum
NewSimChainEthereum creates a new Ethereum chain object with the SimulatedBackend Don't support ChainReader interface
func (*ChainEthereum) BalanceAtICST ¶
BalanceAtICST returns the ICST balance of an account
func (*ChainEthereum) Call ¶
func (c *ChainEthereum) Call(ctx context.Context, from []byte, contractType string, contractAddr []byte, methodName string, value *big.Int, callData interface{}) (*transaction.Transaction, error)
Call inits a transaction to call a contract method The transaction is not sent out yet and must be confirmed later by sender param "value" is the money to sent to the transaction address param "callData" is a container of all the args needed for method
func (*ChainEthereum) CallWithAbi ¶
func (c *ChainEthereum) CallWithAbi(ctx context.Context, from []byte, contractAddr []byte, methodName string, value *big.Int, callData interface{}, abiStr string) (*transaction.Transaction, error)
CallWithAbi inits a transaction to call a contract method The transaction is not sent out yet and must be confirmed later by sender param "value" is the money to sent to the transaction address param "callData" is a container of all the args needed for method
func (*ChainEthereum) ConfirmTrans ¶
func (c *ChainEthereum) ConfirmTrans(ctx context.Context, trans *transaction.Transaction, sig []byte) error
ConfirmTrans update the raw transaction with given signature and send it to the underlying block chain.
func (*ChainEthereum) GenerateKey ¶
func (c *ChainEthereum) GenerateKey(ctx context.Context) (*ecdsa.PrivateKey, error)
GenerateKey generates a new ecdsa public/private key pair
func (*ChainEthereum) GetContract ¶
func (c *ChainEthereum) GetContract(addr []byte, contractType string) (interface{}, error)
GetContract gets smart contract from Ethereum chain with its address.
func (*ChainEthereum) GetContractEvents ¶
func (c *ChainEthereum) GetContractEvents(ctx context.Context, addr []byte, fromBlock, toBlock *big.Int, abiString string, eventTypes map[string]reflect.Type) ([]*chain.ContractEvent, error)
GetContractEvents returns multiple contract events of the same contract together, with the same order inside block This method ensures that all events needed will be returned, or none of them will be returned if an error happen.
func (*ChainEthereum) MarshalPubKey ¶
func (c *ChainEthereum) MarshalPubKey(pub *ecdsa.PublicKey) string
MarshalPubKey convert a public key to base 64 string
func (*ChainEthereum) NewContract ¶
func (c *ChainEthereum) NewContract(ctx context.Context, from []byte, contractType string, contractData interface{}) (*transaction.Transaction, error)
NewContract makes a new contract creation transaction. The transaction is not sent out yet and must be confirmed later by sender.
func (*ChainEthereum) PubKeyToAddress ¶
func (c *ChainEthereum) PubKeyToAddress(pub *ecdsa.PublicKey) []byte
PubKeyToAddress convert public key to chain specific address
func (*ChainEthereum) Query ¶
func (c *ChainEthereum) Query(ctx context.Context, addr []byte, abiString string, methodName string, result interface{}, params ...interface{}) error
Call without send transaction
func (*ChainEthereum) Sign ¶
func (c *ChainEthereum) Sign(hash []byte, prv *ecdsa.PrivateKey) (sig []byte, err error)
Sign data with privatekey
func (*ChainEthereum) Transfer ¶
func (c *ChainEthereum) Transfer(ctx context.Context, from []byte, to []byte, value *big.Int) (*transaction.Transaction, error)
Transfer to other address
func (*ChainEthereum) TransferICST ¶
func (c *ChainEthereum) TransferICST(ctx context.Context, from []byte, to []byte, value *big.Int) (*transaction.Transaction, error)
TransferICST token to other address
func (*ChainEthereum) UnmarshalPubkey ¶
func (c *ChainEthereum) UnmarshalPubkey(pub string) (*ecdsa.PublicKey, error)
UnmarshalPubkey converts base64 string to a secp256k1 public key.
func (*ChainEthereum) WaitContractDeployed ¶
func (c *ChainEthereum) WaitContractDeployed(ctx context.Context, tx interface{}) (common.Address, error)
WaitContractDeployed blocks the caller untile the transactio to create a contract is mined, or gets an error. The difference with WaitMined is that it also make sure the contrace code is not empty.
func (*ChainEthereum) WaitMined ¶
func (c *ChainEthereum) WaitMined(ctx context.Context, trans *transaction.Transaction) error
WaitMined blocks the caller until the transaction is mined, or gets an error
func (*ChainEthereum) WatchBlocks ¶
func (c *ChainEthereum) WatchBlocks(ctx context.Context, blockStart *big.Int) (<-chan *transaction.Block, <-chan error)
WatchBlocks loops for the blocks starting from the blockStart number. Order of blocks is guaranteed. Loops do not break even if there is some error happen Params:
blockStart: block number to start from; nil means start from latest block
func (*ChainEthereum) WatchContractEvent ¶
func (c *ChainEthereum) WatchContractEvent(ctx context.Context, addr []byte, contractType string, eventName string, eventVType reflect.Type) (<-chan *chain.ContractEvent, error)
WatchContractEvent listening on the events from contract, and wrap it in a general contract event struct It returns error if the given event if not found by name
func (*ChainEthereum) WatchICSTTransfer ¶
func (c *ChainEthereum) WatchICSTTransfer(ctx context.Context, blockStart *big.Int) (<-chan *transaction.Block, <-chan error)
WatchICSTTransfer loops for the blocks just like WatchBlocks, but filter out block's transactions not transferring ICST. Transactions in block are also different, `to` and `amount` has been change to the ICST receiver and amount.
type ConsumeContent ¶
type ConsumeContent struct { ConsumeContentCaller // Read-only binding to the contract ConsumeContentTransactor // Write-only binding to the contract ConsumeContentFilterer // Log filterer for contract events }
ConsumeContent is an auto generated Go binding around an Ethereum contract.
func DeployConsumeContent ¶
func DeployConsumeContent(auth *bind.TransactOpts, backend bind.ContractBackend, pPublisher common.Address, pPlatform common.Address, pPrice uint32, pRatio uint8) (common.Address, *types.Transaction, *ConsumeContent, error)
DeployConsumeContent deploys a new Ethereum contract, binding an instance of ConsumeContent to it.
func NewConsumeContent ¶
func NewConsumeContent(address common.Address, backend bind.ContractBackend) (*ConsumeContent, error)
NewConsumeContent creates a new instance of ConsumeContent, bound to a specific deployed contract.
type ConsumeContentCaller ¶
type ConsumeContentCaller struct {
// contains filtered or unexported fields
}
ConsumeContentCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewConsumeContentCaller ¶
func NewConsumeContentCaller(address common.Address, caller bind.ContractCaller) (*ConsumeContentCaller, error)
NewConsumeContentCaller creates a new read-only instance of ConsumeContent, bound to a specific deployed contract.
func (*ConsumeContentCaller) Count ¶
Count is a free data retrieval call binding the contract method 0x06661abd.
Solidity: function count() constant returns(uint256)
func (*ConsumeContentCaller) Platform ¶
Platform is a free data retrieval call binding the contract method 0x4bde38c8.
Solidity: function platform() constant returns(address)
func (*ConsumeContentCaller) Price ¶
func (_ConsumeContent *ConsumeContentCaller) Price(opts *bind.CallOpts) (uint32, error)
Price is a free data retrieval call binding the contract method 0xa035b1fe.
Solidity: function price() constant returns(uint32)
type ConsumeContentCallerRaw ¶
type ConsumeContentCallerRaw struct {
Contract *ConsumeContentCaller // Generic read-only contract binding to access the raw methods on
}
ConsumeContentCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ConsumeContentCallerRaw) Call ¶
func (_ConsumeContent *ConsumeContentCallerRaw) 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 ConsumeContentCallerSession ¶
type ConsumeContentCallerSession struct { Contract *ConsumeContentCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ConsumeContentCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ConsumeContentCallerSession) Count ¶
func (_ConsumeContent *ConsumeContentCallerSession) Count() (*big.Int, error)
Count is a free data retrieval call binding the contract method 0x06661abd.
Solidity: function count() constant returns(uint256)
func (*ConsumeContentCallerSession) Platform ¶
func (_ConsumeContent *ConsumeContentCallerSession) Platform() (common.Address, error)
Platform is a free data retrieval call binding the contract method 0x4bde38c8.
Solidity: function platform() constant returns(address)
func (*ConsumeContentCallerSession) Price ¶
func (_ConsumeContent *ConsumeContentCallerSession) Price() (uint32, error)
Price is a free data retrieval call binding the contract method 0xa035b1fe.
Solidity: function price() constant returns(uint32)
func (*ConsumeContentCallerSession) Publisher ¶
func (_ConsumeContent *ConsumeContentCallerSession) Publisher() (common.Address, error)
Publisher is a free data retrieval call binding the contract method 0x8c72c54e.
Solidity: function publisher() constant returns(address)
func (*ConsumeContentCallerSession) Ratio ¶
func (_ConsumeContent *ConsumeContentCallerSession) Ratio() (uint8, error)
Ratio is a free data retrieval call binding the contract method 0x71ca337d.
Solidity: function ratio() constant returns(uint8)
type ConsumeContentEventConsume ¶
type ConsumeContentEventConsume struct { User common.Address Count *big.Int Raw types.Log // Blockchain specific contextual infos }
ConsumeContentEventConsume represents a EventConsume event raised by the ConsumeContent contract.
type ConsumeContentEventConsumeIterator ¶
type ConsumeContentEventConsumeIterator struct { Event *ConsumeContentEventConsume // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ConsumeContentEventConsumeIterator is returned from FilterEventConsume and is used to iterate over the raw logs and unpacked data for EventConsume events raised by the ConsumeContent contract.
func (*ConsumeContentEventConsumeIterator) Close ¶
func (it *ConsumeContentEventConsumeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ConsumeContentEventConsumeIterator) Error ¶
func (it *ConsumeContentEventConsumeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ConsumeContentEventConsumeIterator) Next ¶
func (it *ConsumeContentEventConsumeIterator) 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 ConsumeContentFilterer ¶
type ConsumeContentFilterer struct {
// contains filtered or unexported fields
}
ConsumeContentFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewConsumeContentFilterer ¶
func NewConsumeContentFilterer(address common.Address, filterer bind.ContractFilterer) (*ConsumeContentFilterer, error)
NewConsumeContentFilterer creates a new log filterer instance of ConsumeContent, bound to a specific deployed contract.
func (*ConsumeContentFilterer) FilterEventConsume ¶
func (_ConsumeContent *ConsumeContentFilterer) FilterEventConsume(opts *bind.FilterOpts) (*ConsumeContentEventConsumeIterator, error)
FilterEventConsume is a free log retrieval operation binding the contract event 0xe7092102cafaeb2e518d7d55510eec03f722fc75b987ac4d6b7fb8ea57d63f67.
Solidity: e EventConsume(user address, count uint256)
func (*ConsumeContentFilterer) WatchEventConsume ¶
func (_ConsumeContent *ConsumeContentFilterer) WatchEventConsume(opts *bind.WatchOpts, sink chan<- *ConsumeContentEventConsume) (event.Subscription, error)
WatchEventConsume is a free log subscription operation binding the contract event 0xe7092102cafaeb2e518d7d55510eec03f722fc75b987ac4d6b7fb8ea57d63f67.
Solidity: e EventConsume(user address, count uint256)
type ConsumeContentRaw ¶
type ConsumeContentRaw struct {
Contract *ConsumeContent // Generic contract binding to access the raw methods on
}
ConsumeContentRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ConsumeContentRaw) Call ¶
func (_ConsumeContent *ConsumeContentRaw) 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 (*ConsumeContentRaw) Transact ¶
func (_ConsumeContent *ConsumeContentRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ConsumeContentRaw) Transfer ¶
func (_ConsumeContent *ConsumeContentRaw) 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 ConsumeContentSession ¶
type ConsumeContentSession struct { Contract *ConsumeContent // 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 }
ConsumeContentSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ConsumeContentSession) Consume ¶
func (_ConsumeContent *ConsumeContentSession) Consume() (*types.Transaction, error)
Consume is a paid mutator transaction binding the contract method 0x1dedc6f7.
Solidity: function consume() returns()
func (*ConsumeContentSession) Count ¶
func (_ConsumeContent *ConsumeContentSession) Count() (*big.Int, error)
Count is a free data retrieval call binding the contract method 0x06661abd.
Solidity: function count() constant returns(uint256)
func (*ConsumeContentSession) Platform ¶
func (_ConsumeContent *ConsumeContentSession) Platform() (common.Address, error)
Platform is a free data retrieval call binding the contract method 0x4bde38c8.
Solidity: function platform() constant returns(address)
func (*ConsumeContentSession) Price ¶
func (_ConsumeContent *ConsumeContentSession) Price() (uint32, error)
Price is a free data retrieval call binding the contract method 0xa035b1fe.
Solidity: function price() constant returns(uint32)
func (*ConsumeContentSession) Publisher ¶
func (_ConsumeContent *ConsumeContentSession) Publisher() (common.Address, error)
Publisher is a free data retrieval call binding the contract method 0x8c72c54e.
Solidity: function publisher() constant returns(address)
func (*ConsumeContentSession) Ratio ¶
func (_ConsumeContent *ConsumeContentSession) Ratio() (uint8, error)
Ratio is a free data retrieval call binding the contract method 0x71ca337d.
Solidity: function ratio() constant returns(uint8)
func (*ConsumeContentSession) WithDraw ¶
func (_ConsumeContent *ConsumeContentSession) WithDraw() (*types.Transaction, error)
WithDraw is a paid mutator transaction binding the contract method 0x0fdb1c10.
Solidity: function withDraw() returns()
type ConsumeContentTransactor ¶
type ConsumeContentTransactor struct {
// contains filtered or unexported fields
}
ConsumeContentTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewConsumeContentTransactor ¶
func NewConsumeContentTransactor(address common.Address, transactor bind.ContractTransactor) (*ConsumeContentTransactor, error)
NewConsumeContentTransactor creates a new write-only instance of ConsumeContent, bound to a specific deployed contract.
func (*ConsumeContentTransactor) Consume ¶
func (_ConsumeContent *ConsumeContentTransactor) Consume(opts *bind.TransactOpts) (*types.Transaction, error)
Consume is a paid mutator transaction binding the contract method 0x1dedc6f7.
Solidity: function consume() returns()
func (*ConsumeContentTransactor) WithDraw ¶
func (_ConsumeContent *ConsumeContentTransactor) WithDraw(opts *bind.TransactOpts) (*types.Transaction, error)
WithDraw is a paid mutator transaction binding the contract method 0x0fdb1c10.
Solidity: function withDraw() returns()
type ConsumeContentTransactorRaw ¶
type ConsumeContentTransactorRaw struct {
Contract *ConsumeContentTransactor // Generic write-only contract binding to access the raw methods on
}
ConsumeContentTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ConsumeContentTransactorRaw) Transact ¶
func (_ConsumeContent *ConsumeContentTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ConsumeContentTransactorRaw) Transfer ¶
func (_ConsumeContent *ConsumeContentTransactorRaw) 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 ConsumeContentTransactorSession ¶
type ConsumeContentTransactorSession struct { Contract *ConsumeContentTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ConsumeContentTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ConsumeContentTransactorSession) Consume ¶
func (_ConsumeContent *ConsumeContentTransactorSession) Consume() (*types.Transaction, error)
Consume is a paid mutator transaction binding the contract method 0x1dedc6f7.
Solidity: function consume() returns()
func (*ConsumeContentTransactorSession) WithDraw ¶
func (_ConsumeContent *ConsumeContentTransactorSession) WithDraw() (*types.Transaction, error)
WithDraw is a paid mutator transaction binding the contract method 0x0fdb1c10.
Solidity: function withDraw() returns()
type ConsumeSkill ¶
type ConsumeSkill struct { ConsumeSkillCaller // Read-only binding to the contract ConsumeSkillTransactor // Write-only binding to the contract ConsumeSkillFilterer // Log filterer for contract events }
ConsumeSkill is an auto generated Go binding around an Ethereum contract.
func DeployConsumeSkill ¶
func DeployConsumeSkill(auth *bind.TransactOpts, backend bind.ContractBackend, pHash string, pPublisher common.Address, pPlatform common.Address, pConsumer common.Address, pPrice uint32, pRatio uint8) (common.Address, *types.Transaction, *ConsumeSkill, error)
DeployConsumeSkill deploys a new Ethereum contract, binding an instance of ConsumeSkill to it.
func NewConsumeSkill ¶
func NewConsumeSkill(address common.Address, backend bind.ContractBackend) (*ConsumeSkill, error)
NewConsumeSkill creates a new instance of ConsumeSkill, bound to a specific deployed contract.
type ConsumeSkillCaller ¶
type ConsumeSkillCaller struct {
// contains filtered or unexported fields
}
ConsumeSkillCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewConsumeSkillCaller ¶
func NewConsumeSkillCaller(address common.Address, caller bind.ContractCaller) (*ConsumeSkillCaller, error)
NewConsumeSkillCaller creates a new read-only instance of ConsumeSkill, bound to a specific deployed contract.
func (*ConsumeSkillCaller) Consumer ¶
Consumer is a free data retrieval call binding the contract method 0xb4fd7296.
Solidity: function consumer() constant returns(address)
func (*ConsumeSkillCaller) Hash ¶
func (_ConsumeSkill *ConsumeSkillCaller) Hash(opts *bind.CallOpts) (string, error)
Hash is a free data retrieval call binding the contract method 0x09bd5a60.
Solidity: function hash() constant returns(string)
func (*ConsumeSkillCaller) Platform ¶
Platform is a free data retrieval call binding the contract method 0x4bde38c8.
Solidity: function platform() constant returns(address)
func (*ConsumeSkillCaller) Price ¶
func (_ConsumeSkill *ConsumeSkillCaller) Price(opts *bind.CallOpts) (uint32, error)
Price is a free data retrieval call binding the contract method 0xa035b1fe.
Solidity: function price() constant returns(uint32)
func (*ConsumeSkillCaller) Publisher ¶
Publisher is a free data retrieval call binding the contract method 0x8c72c54e.
Solidity: function publisher() constant returns(address)
type ConsumeSkillCallerRaw ¶
type ConsumeSkillCallerRaw struct {
Contract *ConsumeSkillCaller // Generic read-only contract binding to access the raw methods on
}
ConsumeSkillCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ConsumeSkillCallerRaw) Call ¶
func (_ConsumeSkill *ConsumeSkillCallerRaw) 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 ConsumeSkillCallerSession ¶
type ConsumeSkillCallerSession struct { Contract *ConsumeSkillCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ConsumeSkillCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ConsumeSkillCallerSession) Consumer ¶
func (_ConsumeSkill *ConsumeSkillCallerSession) Consumer() (common.Address, error)
Consumer is a free data retrieval call binding the contract method 0xb4fd7296.
Solidity: function consumer() constant returns(address)
func (*ConsumeSkillCallerSession) Hash ¶
func (_ConsumeSkill *ConsumeSkillCallerSession) Hash() (string, error)
Hash is a free data retrieval call binding the contract method 0x09bd5a60.
Solidity: function hash() constant returns(string)
func (*ConsumeSkillCallerSession) Platform ¶
func (_ConsumeSkill *ConsumeSkillCallerSession) Platform() (common.Address, error)
Platform is a free data retrieval call binding the contract method 0x4bde38c8.
Solidity: function platform() constant returns(address)
func (*ConsumeSkillCallerSession) Price ¶
func (_ConsumeSkill *ConsumeSkillCallerSession) Price() (uint32, error)
Price is a free data retrieval call binding the contract method 0xa035b1fe.
Solidity: function price() constant returns(uint32)
func (*ConsumeSkillCallerSession) Publisher ¶
func (_ConsumeSkill *ConsumeSkillCallerSession) Publisher() (common.Address, error)
Publisher is a free data retrieval call binding the contract method 0x8c72c54e.
Solidity: function publisher() constant returns(address)
func (*ConsumeSkillCallerSession) Ratio ¶
func (_ConsumeSkill *ConsumeSkillCallerSession) Ratio() (uint8, error)
Ratio is a free data retrieval call binding the contract method 0x71ca337d.
Solidity: function ratio() constant returns(uint8)
func (*ConsumeSkillCallerSession) State ¶
func (_ConsumeSkill *ConsumeSkillCallerSession) State() (uint8, error)
State is a free data retrieval call binding the contract method 0xc19d93fb.
Solidity: function state() constant returns(uint8)
type ConsumeSkillFilterer ¶
type ConsumeSkillFilterer struct {
// contains filtered or unexported fields
}
ConsumeSkillFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewConsumeSkillFilterer ¶
func NewConsumeSkillFilterer(address common.Address, filterer bind.ContractFilterer) (*ConsumeSkillFilterer, error)
NewConsumeSkillFilterer creates a new log filterer instance of ConsumeSkill, bound to a specific deployed contract.
func (*ConsumeSkillFilterer) FilterStateChange ¶
func (_ConsumeSkill *ConsumeSkillFilterer) FilterStateChange(opts *bind.FilterOpts) (*ConsumeSkillStateChangeIterator, error)
FilterStateChange is a free log retrieval operation binding the contract event 0xedab99fa21b022682599c9a93397843b51e5a93cec30fc4940f231578a32bd0e.
Solidity: event StateChange(actor address, from uint8, to uint8)
func (*ConsumeSkillFilterer) WatchStateChange ¶
func (_ConsumeSkill *ConsumeSkillFilterer) WatchStateChange(opts *bind.WatchOpts, sink chan<- *ConsumeSkillStateChange) (event.Subscription, error)
WatchStateChange is a free log subscription operation binding the contract event 0xedab99fa21b022682599c9a93397843b51e5a93cec30fc4940f231578a32bd0e.
Solidity: event StateChange(actor address, from uint8, to uint8)
type ConsumeSkillRaw ¶
type ConsumeSkillRaw struct {
Contract *ConsumeSkill // Generic contract binding to access the raw methods on
}
ConsumeSkillRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ConsumeSkillRaw) Call ¶
func (_ConsumeSkill *ConsumeSkillRaw) 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 (*ConsumeSkillRaw) Transact ¶
func (_ConsumeSkill *ConsumeSkillRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ConsumeSkillRaw) Transfer ¶
func (_ConsumeSkill *ConsumeSkillRaw) 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 ConsumeSkillSession ¶
type ConsumeSkillSession struct { Contract *ConsumeSkill // 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 }
ConsumeSkillSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ConsumeSkillSession) Abort ¶
func (_ConsumeSkill *ConsumeSkillSession) Abort() (*types.Transaction, error)
Abort is a paid mutator transaction binding the contract method 0x35a063b4.
Solidity: function abort() returns()
func (*ConsumeSkillSession) Complete ¶
func (_ConsumeSkill *ConsumeSkillSession) Complete() (*types.Transaction, error)
Complete is a paid mutator transaction binding the contract method 0x01b7dcb4.
Solidity: function Complete() returns()
func (*ConsumeSkillSession) Consumer ¶
func (_ConsumeSkill *ConsumeSkillSession) Consumer() (common.Address, error)
Consumer is a free data retrieval call binding the contract method 0xb4fd7296.
Solidity: function consumer() constant returns(address)
func (*ConsumeSkillSession) Hash ¶
func (_ConsumeSkill *ConsumeSkillSession) Hash() (string, error)
Hash is a free data retrieval call binding the contract method 0x09bd5a60.
Solidity: function hash() constant returns(string)
func (*ConsumeSkillSession) Platform ¶
func (_ConsumeSkill *ConsumeSkillSession) Platform() (common.Address, error)
Platform is a free data retrieval call binding the contract method 0x4bde38c8.
Solidity: function platform() constant returns(address)
func (*ConsumeSkillSession) Price ¶
func (_ConsumeSkill *ConsumeSkillSession) Price() (uint32, error)
Price is a free data retrieval call binding the contract method 0xa035b1fe.
Solidity: function price() constant returns(uint32)
func (*ConsumeSkillSession) Publisher ¶
func (_ConsumeSkill *ConsumeSkillSession) Publisher() (common.Address, error)
Publisher is a free data retrieval call binding the contract method 0x8c72c54e.
Solidity: function publisher() constant returns(address)
func (*ConsumeSkillSession) Ratio ¶
func (_ConsumeSkill *ConsumeSkillSession) Ratio() (uint8, error)
Ratio is a free data retrieval call binding the contract method 0x71ca337d.
Solidity: function ratio() constant returns(uint8)
func (*ConsumeSkillSession) Start ¶
func (_ConsumeSkill *ConsumeSkillSession) Start() (*types.Transaction, error)
Start is a paid mutator transaction binding the contract method 0xbe9a6555.
Solidity: function start() returns()
func (*ConsumeSkillSession) State ¶
func (_ConsumeSkill *ConsumeSkillSession) State() (uint8, error)
State is a free data retrieval call binding the contract method 0xc19d93fb.
Solidity: function state() constant returns(uint8)
func (*ConsumeSkillSession) WithDraw ¶
func (_ConsumeSkill *ConsumeSkillSession) WithDraw() (*types.Transaction, error)
WithDraw is a paid mutator transaction binding the contract method 0x0fdb1c10.
Solidity: function withDraw() returns()
type ConsumeSkillStateChange ¶
type ConsumeSkillStateChange struct { Actor common.Address From uint8 To uint8 Raw types.Log // Blockchain specific contextual infos }
ConsumeSkillStateChange represents a StateChange event raised by the ConsumeSkill contract.
type ConsumeSkillStateChangeIterator ¶
type ConsumeSkillStateChangeIterator struct { Event *ConsumeSkillStateChange // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ConsumeSkillStateChangeIterator is returned from FilterStateChange and is used to iterate over the raw logs and unpacked data for StateChange events raised by the ConsumeSkill contract.
func (*ConsumeSkillStateChangeIterator) Close ¶
func (it *ConsumeSkillStateChangeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ConsumeSkillStateChangeIterator) Error ¶
func (it *ConsumeSkillStateChangeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ConsumeSkillStateChangeIterator) Next ¶
func (it *ConsumeSkillStateChangeIterator) 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 ConsumeSkillTransactor ¶
type ConsumeSkillTransactor struct {
// contains filtered or unexported fields
}
ConsumeSkillTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewConsumeSkillTransactor ¶
func NewConsumeSkillTransactor(address common.Address, transactor bind.ContractTransactor) (*ConsumeSkillTransactor, error)
NewConsumeSkillTransactor creates a new write-only instance of ConsumeSkill, bound to a specific deployed contract.
func (*ConsumeSkillTransactor) Abort ¶
func (_ConsumeSkill *ConsumeSkillTransactor) Abort(opts *bind.TransactOpts) (*types.Transaction, error)
Abort is a paid mutator transaction binding the contract method 0x35a063b4.
Solidity: function abort() returns()
func (*ConsumeSkillTransactor) Complete ¶
func (_ConsumeSkill *ConsumeSkillTransactor) Complete(opts *bind.TransactOpts) (*types.Transaction, error)
Complete is a paid mutator transaction binding the contract method 0x01b7dcb4.
Solidity: function Complete() returns()
func (*ConsumeSkillTransactor) Start ¶
func (_ConsumeSkill *ConsumeSkillTransactor) Start(opts *bind.TransactOpts) (*types.Transaction, error)
Start is a paid mutator transaction binding the contract method 0xbe9a6555.
Solidity: function start() returns()
func (*ConsumeSkillTransactor) WithDraw ¶
func (_ConsumeSkill *ConsumeSkillTransactor) WithDraw(opts *bind.TransactOpts) (*types.Transaction, error)
WithDraw is a paid mutator transaction binding the contract method 0x0fdb1c10.
Solidity: function withDraw() returns()
type ConsumeSkillTransactorRaw ¶
type ConsumeSkillTransactorRaw struct {
Contract *ConsumeSkillTransactor // Generic write-only contract binding to access the raw methods on
}
ConsumeSkillTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ConsumeSkillTransactorRaw) Transact ¶
func (_ConsumeSkill *ConsumeSkillTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ConsumeSkillTransactorRaw) Transfer ¶
func (_ConsumeSkill *ConsumeSkillTransactorRaw) 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 ConsumeSkillTransactorSession ¶
type ConsumeSkillTransactorSession struct { Contract *ConsumeSkillTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ConsumeSkillTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ConsumeSkillTransactorSession) Abort ¶
func (_ConsumeSkill *ConsumeSkillTransactorSession) Abort() (*types.Transaction, error)
Abort is a paid mutator transaction binding the contract method 0x35a063b4.
Solidity: function abort() returns()
func (*ConsumeSkillTransactorSession) Complete ¶
func (_ConsumeSkill *ConsumeSkillTransactorSession) Complete() (*types.Transaction, error)
Complete is a paid mutator transaction binding the contract method 0x01b7dcb4.
Solidity: function Complete() returns()
func (*ConsumeSkillTransactorSession) Start ¶
func (_ConsumeSkill *ConsumeSkillTransactorSession) Start() (*types.Transaction, error)
Start is a paid mutator transaction binding the contract method 0xbe9a6555.
Solidity: function start() returns()
func (*ConsumeSkillTransactorSession) WithDraw ¶
func (_ConsumeSkill *ConsumeSkillTransactorSession) WithDraw() (*types.Transaction, error)
WithDraw is a paid mutator transaction binding the contract method 0x0fdb1c10.
Solidity: function withDraw() returns()
type ICST ¶
type ICST struct { ICSTCaller // Read-only binding to the contract ICSTTransactor // Write-only binding to the contract ICSTFilterer // Log filterer for contract events }
ICST is an auto generated Go binding around an Ethereum contract.
func DeployICST ¶
func DeployICST(auth *bind.TransactOpts, backend bind.ContractBackend, initialSupply *big.Int, tokenName string, tokenSymbol string) (common.Address, *types.Transaction, *ICST, error)
DeployICST deploys a new Ethereum contract, binding an instance of ICST to it.
type ICSTBurn ¶
type ICSTBurn struct { From common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
ICSTBurn represents a Burn event raised by the ICST contract.
type ICSTBurnIterator ¶
type ICSTBurnIterator struct { Event *ICSTBurn // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ICSTBurnIterator is returned from FilterBurn and is used to iterate over the raw logs and unpacked data for Burn events raised by the ICST contract.
func (*ICSTBurnIterator) Close ¶
func (it *ICSTBurnIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ICSTBurnIterator) Error ¶
func (it *ICSTBurnIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ICSTBurnIterator) Next ¶
func (it *ICSTBurnIterator) 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 ICSTCaller ¶
type ICSTCaller struct {
// contains filtered or unexported fields
}
ICSTCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewICSTCaller ¶
func NewICSTCaller(address common.Address, caller bind.ContractCaller) (*ICSTCaller, error)
NewICSTCaller creates a new read-only instance of ICST, bound to a specific deployed contract.
func (*ICSTCaller) Allowance ¶
func (_ICST *ICSTCaller) Allowance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance( address, address) constant returns(uint256)
func (*ICSTCaller) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf( address) constant returns(uint256)
func (*ICSTCaller) Decimals ¶
func (_ICST *ICSTCaller) 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 (*ICSTCaller) Name ¶
func (_ICST *ICSTCaller) 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 (*ICSTCaller) Symbol ¶
func (_ICST *ICSTCaller) 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 (*ICSTCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() constant returns(uint256)
type ICSTCallerRaw ¶
type ICSTCallerRaw struct {
Contract *ICSTCaller // Generic read-only contract binding to access the raw methods on
}
ICSTCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ICSTCallerRaw) Call ¶
func (_ICST *ICSTCallerRaw) 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 ICSTCallerSession ¶
type ICSTCallerSession struct { Contract *ICSTCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ICSTCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ICSTCallerSession) Allowance ¶
func (_ICST *ICSTCallerSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance( address, address) constant returns(uint256)
func (*ICSTCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf( address) constant returns(uint256)
func (*ICSTCallerSession) Decimals ¶
func (_ICST *ICSTCallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() constant returns(uint8)
func (*ICSTCallerSession) Name ¶
func (_ICST *ICSTCallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() constant returns(string)
func (*ICSTCallerSession) Symbol ¶
func (_ICST *ICSTCallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() constant returns(string)
func (*ICSTCallerSession) TotalSupply ¶
func (_ICST *ICSTCallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() constant returns(uint256)
type ICSTFilterer ¶
type ICSTFilterer struct {
// contains filtered or unexported fields
}
ICSTFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewICSTFilterer ¶
func NewICSTFilterer(address common.Address, filterer bind.ContractFilterer) (*ICSTFilterer, error)
NewICSTFilterer creates a new log filterer instance of ICST, bound to a specific deployed contract.
func (*ICSTFilterer) FilterBurn ¶
func (_ICST *ICSTFilterer) FilterBurn(opts *bind.FilterOpts, from []common.Address) (*ICSTBurnIterator, error)
FilterBurn is a free log retrieval operation binding the contract event 0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5.
Solidity: e Burn(from indexed address, value uint256)
func (*ICSTFilterer) FilterTransfer ¶
func (_ICST *ICSTFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ICSTTransferIterator, error)
FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: e Transfer(from indexed address, to indexed address, value uint256)
func (*ICSTFilterer) WatchBurn ¶
func (_ICST *ICSTFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *ICSTBurn, from []common.Address) (event.Subscription, error)
WatchBurn is a free log subscription operation binding the contract event 0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5.
Solidity: e Burn(from indexed address, value uint256)
func (*ICSTFilterer) WatchTransfer ¶
func (_ICST *ICSTFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ICSTTransfer, from []common.Address, to []common.Address) (event.Subscription, error)
WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: e Transfer(from indexed address, to indexed address, value uint256)
type ICSTRaw ¶
type ICSTRaw struct {
Contract *ICST // Generic contract binding to access the raw methods on
}
ICSTRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ICSTRaw) Call ¶
func (_ICST *ICSTRaw) 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 (*ICSTRaw) Transact ¶
func (_ICST *ICSTRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ICSTRaw) Transfer ¶
func (_ICST *ICSTRaw) 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 ICSTSession ¶
type ICSTSession struct { Contract *ICST // 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 }
ICSTSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ICSTSession) Allowance ¶
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance( address, address) constant returns(uint256)
func (*ICSTSession) Approve ¶
func (_ICST *ICSTSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(_spender address, _value uint256) returns(success bool)
func (*ICSTSession) ApproveAndCall ¶
func (_ICST *ICSTSession) ApproveAndCall(_spender common.Address, _value *big.Int, _extraData []byte) (*types.Transaction, error)
ApproveAndCall is a paid mutator transaction binding the contract method 0xcae9ca51.
Solidity: function approveAndCall(_spender address, _value uint256, _extraData bytes) returns(success bool)
func (*ICSTSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf( address) constant returns(uint256)
func (*ICSTSession) Burn ¶
func (_ICST *ICSTSession) Burn(_value *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x42966c68.
Solidity: function burn(_value uint256) returns(success bool)
func (*ICSTSession) BurnFrom ¶
func (_ICST *ICSTSession) BurnFrom(_from common.Address, _value *big.Int) (*types.Transaction, error)
BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790.
Solidity: function burnFrom(_from address, _value uint256) returns(success bool)
func (*ICSTSession) Decimals ¶
func (_ICST *ICSTSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() constant returns(uint8)
func (*ICSTSession) Name ¶
func (_ICST *ICSTSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() constant returns(string)
func (*ICSTSession) Symbol ¶
func (_ICST *ICSTSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() constant returns(string)
func (*ICSTSession) TotalSupply ¶
func (_ICST *ICSTSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() constant returns(uint256)
func (*ICSTSession) Transfer ¶
func (_ICST *ICSTSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(_to address, _value uint256) returns()
func (*ICSTSession) TransferFrom ¶
func (_ICST *ICSTSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(_from address, _to address, _value uint256) returns(success bool)
type ICSTTransactor ¶
type ICSTTransactor struct {
// contains filtered or unexported fields
}
ICSTTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewICSTTransactor ¶
func NewICSTTransactor(address common.Address, transactor bind.ContractTransactor) (*ICSTTransactor, error)
NewICSTTransactor creates a new write-only instance of ICST, bound to a specific deployed contract.
func (*ICSTTransactor) Approve ¶
func (_ICST *ICSTTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(_spender address, _value uint256) returns(success bool)
func (*ICSTTransactor) ApproveAndCall ¶
func (_ICST *ICSTTransactor) ApproveAndCall(opts *bind.TransactOpts, _spender common.Address, _value *big.Int, _extraData []byte) (*types.Transaction, error)
ApproveAndCall is a paid mutator transaction binding the contract method 0xcae9ca51.
Solidity: function approveAndCall(_spender address, _value uint256, _extraData bytes) returns(success bool)
func (*ICSTTransactor) Burn ¶
func (_ICST *ICSTTransactor) Burn(opts *bind.TransactOpts, _value *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x42966c68.
Solidity: function burn(_value uint256) returns(success bool)
func (*ICSTTransactor) BurnFrom ¶
func (_ICST *ICSTTransactor) BurnFrom(opts *bind.TransactOpts, _from common.Address, _value *big.Int) (*types.Transaction, error)
BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790.
Solidity: function burnFrom(_from address, _value uint256) returns(success bool)
func (*ICSTTransactor) Transfer ¶
func (_ICST *ICSTTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(_to address, _value uint256) returns()
func (*ICSTTransactor) TransferFrom ¶
func (_ICST *ICSTTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(_from address, _to address, _value uint256) returns(success bool)
type ICSTTransactorRaw ¶
type ICSTTransactorRaw struct {
Contract *ICSTTransactor // Generic write-only contract binding to access the raw methods on
}
ICSTTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ICSTTransactorRaw) Transact ¶
func (_ICST *ICSTTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ICSTTransactorRaw) Transfer ¶
func (_ICST *ICSTTransactorRaw) 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 ICSTTransactorSession ¶
type ICSTTransactorSession struct { Contract *ICSTTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ICSTTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ICSTTransactorSession) Approve ¶
func (_ICST *ICSTTransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(_spender address, _value uint256) returns(success bool)
func (*ICSTTransactorSession) ApproveAndCall ¶
func (_ICST *ICSTTransactorSession) ApproveAndCall(_spender common.Address, _value *big.Int, _extraData []byte) (*types.Transaction, error)
ApproveAndCall is a paid mutator transaction binding the contract method 0xcae9ca51.
Solidity: function approveAndCall(_spender address, _value uint256, _extraData bytes) returns(success bool)
func (*ICSTTransactorSession) Burn ¶
func (_ICST *ICSTTransactorSession) Burn(_value *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x42966c68.
Solidity: function burn(_value uint256) returns(success bool)
func (*ICSTTransactorSession) BurnFrom ¶
func (_ICST *ICSTTransactorSession) BurnFrom(_from common.Address, _value *big.Int) (*types.Transaction, error)
BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790.
Solidity: function burnFrom(_from address, _value uint256) returns(success bool)
func (*ICSTTransactorSession) Transfer ¶
func (_ICST *ICSTTransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(_to address, _value uint256) returns()
func (*ICSTTransactorSession) TransferFrom ¶
func (_ICST *ICSTTransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(_from address, _to address, _value uint256) returns(success bool)
type ICSTTransfer ¶
type ICSTTransfer struct { From common.Address To common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
ICSTTransfer represents a Transfer event raised by the ICST contract.
type ICSTTransferIterator ¶
type ICSTTransferIterator struct { Event *ICSTTransfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ICSTTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the ICST contract.
func (*ICSTTransferIterator) Close ¶
func (it *ICSTTransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ICSTTransferIterator) Error ¶
func (it *ICSTTransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ICSTTransferIterator) Next ¶
func (it *ICSTTransferIterator) 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.