Versions in this module Expand all Collapse all v0 v0.0.1 Jul 31, 2020 Changes in this version + const DhTokenABI + type DhToken struct + func NewDhToken(address common.Address, backend bind.ContractBackend) (*DhToken, error) + type DhTokenApproval struct + Owner common.Address + Raw types.Log + Spender common.Address + Value *big.Int + type DhTokenApprovalIterator struct + Event *DhTokenApproval + func (it *DhTokenApprovalIterator) Close() error + func (it *DhTokenApprovalIterator) Error() error + func (it *DhTokenApprovalIterator) Next() bool + type DhTokenCaller struct + func NewDhTokenCaller(address common.Address, caller bind.ContractCaller) (*DhTokenCaller, error) + func (_DhToken *DhTokenCaller) AcceptRelayedCall(opts *bind.CallOpts, relay common.Address, from common.Address, ...) (*big.Int, []byte, error) + func (_DhToken *DhTokenCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) + func (_DhToken *DhTokenCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error) + func (_DhToken *DhTokenCaller) Decimals(opts *bind.CallOpts) (uint8, error) + func (_DhToken *DhTokenCaller) GetHubAddr(opts *bind.CallOpts) (common.Address, error) + func (_DhToken *DhTokenCaller) GetUserRepo(opts *bind.CallOpts, user common.Address) ([]string, error) + func (_DhToken *DhTokenCaller) IsOwner(opts *bind.CallOpts) (bool, error) + func (_DhToken *DhTokenCaller) Name(opts *bind.CallOpts) (string, error) + func (_DhToken *DhTokenCaller) Owner(opts *bind.CallOpts) (common.Address, error) + func (_DhToken *DhTokenCaller) RelayHubVersion(opts *bind.CallOpts) (string, error) + func (_DhToken *DhTokenCaller) Symbol(opts *bind.CallOpts) (string, error) + func (_DhToken *DhTokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) + type DhTokenCallerRaw struct + Contract *DhTokenCaller + func (_DhToken *DhTokenCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + type DhTokenCallerSession struct + CallOpts bind.CallOpts + Contract *DhTokenCaller + func (_DhToken *DhTokenCallerSession) AcceptRelayedCall(relay common.Address, from common.Address, encodedFunction []byte, ...) (*big.Int, []byte, error) + func (_DhToken *DhTokenCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) + func (_DhToken *DhTokenCallerSession) BalanceOf(account common.Address) (*big.Int, error) + func (_DhToken *DhTokenCallerSession) Decimals() (uint8, error) + func (_DhToken *DhTokenCallerSession) GetHubAddr() (common.Address, error) + func (_DhToken *DhTokenCallerSession) GetUserRepo(user common.Address) ([]string, error) + func (_DhToken *DhTokenCallerSession) IsOwner() (bool, error) + func (_DhToken *DhTokenCallerSession) Name() (string, error) + func (_DhToken *DhTokenCallerSession) Owner() (common.Address, error) + func (_DhToken *DhTokenCallerSession) RelayHubVersion() (string, error) + func (_DhToken *DhTokenCallerSession) Symbol() (string, error) + func (_DhToken *DhTokenCallerSession) TotalSupply() (*big.Int, error) + type DhTokenFilterer struct + func NewDhTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*DhTokenFilterer, error) + func (_DhToken *DhTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*DhTokenApprovalIterator, error) + func (_DhToken *DhTokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*DhTokenOwnershipTransferredIterator, error) + func (_DhToken *DhTokenFilterer) FilterPinSuccess(opts *bind.FilterOpts, user []common.Address) (*DhTokenPinSuccessIterator, error) + func (_DhToken *DhTokenFilterer) FilterRelayHubChanged(opts *bind.FilterOpts, oldRelayHub []common.Address, ...) (*DhTokenRelayHubChangedIterator, error) + func (_DhToken *DhTokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*DhTokenTransferIterator, error) + func (_DhToken *DhTokenFilterer) ParseApproval(log types.Log) (*DhTokenApproval, error) + func (_DhToken *DhTokenFilterer) ParseOwnershipTransferred(log types.Log) (*DhTokenOwnershipTransferred, error) + func (_DhToken *DhTokenFilterer) ParsePinSuccess(log types.Log) (*DhTokenPinSuccess, error) + func (_DhToken *DhTokenFilterer) ParseRelayHubChanged(log types.Log) (*DhTokenRelayHubChanged, error) + func (_DhToken *DhTokenFilterer) ParseTransfer(log types.Log) (*DhTokenTransfer, error) + func (_DhToken *DhTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *DhTokenApproval, owner []common.Address, ...) (event.Subscription, error) + func (_DhToken *DhTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *DhTokenOwnershipTransferred, ...) (event.Subscription, error) + func (_DhToken *DhTokenFilterer) WatchPinSuccess(opts *bind.WatchOpts, sink chan<- *DhTokenPinSuccess, user []common.Address) (event.Subscription, error) + func (_DhToken *DhTokenFilterer) WatchRelayHubChanged(opts *bind.WatchOpts, sink chan<- *DhTokenRelayHubChanged, ...) (event.Subscription, error) + func (_DhToken *DhTokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *DhTokenTransfer, from []common.Address, ...) (event.Subscription, error) + type DhTokenOwnershipTransferred struct + NewOwner common.Address + PreviousOwner common.Address + Raw types.Log + type DhTokenOwnershipTransferredIterator struct + Event *DhTokenOwnershipTransferred + func (it *DhTokenOwnershipTransferredIterator) Close() error + func (it *DhTokenOwnershipTransferredIterator) Error() error + func (it *DhTokenOwnershipTransferredIterator) Next() bool + type DhTokenPinSuccess struct + Date string + Hash string + Raw types.Log + User common.Address + type DhTokenPinSuccessIterator struct + Event *DhTokenPinSuccess + func (it *DhTokenPinSuccessIterator) Close() error + func (it *DhTokenPinSuccessIterator) Error() error + func (it *DhTokenPinSuccessIterator) Next() bool + type DhTokenRaw struct + Contract *DhToken + func (_DhToken *DhTokenRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + func (_DhToken *DhTokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_DhToken *DhTokenRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type DhTokenRelayHubChanged struct + NewRelayHub common.Address + OldRelayHub common.Address + Raw types.Log + type DhTokenRelayHubChangedIterator struct + Event *DhTokenRelayHubChanged + func (it *DhTokenRelayHubChangedIterator) Close() error + func (it *DhTokenRelayHubChangedIterator) Error() error + func (it *DhTokenRelayHubChangedIterator) Next() bool + type DhTokenSession struct + CallOpts bind.CallOpts + Contract *DhToken + TransactOpts bind.TransactOpts + func (_DhToken *DhTokenSession) AcceptRelayedCall(relay common.Address, from common.Address, encodedFunction []byte, ...) (*big.Int, []byte, error) + func (_DhToken *DhTokenSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) + func (_DhToken *DhTokenSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) + func (_DhToken *DhTokenSession) BalanceOf(account common.Address) (*big.Int, error) + func (_DhToken *DhTokenSession) Decimals() (uint8, error) + func (_DhToken *DhTokenSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) + func (_DhToken *DhTokenSession) GenerateTokens(amount *big.Int) (*types.Transaction, error) + func (_DhToken *DhTokenSession) GetHubAddr() (common.Address, error) + func (_DhToken *DhTokenSession) GetUserRepo(user common.Address) ([]string, error) + func (_DhToken *DhTokenSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error) + func (_DhToken *DhTokenSession) IsOwner() (bool, error) + func (_DhToken *DhTokenSession) Name() (string, error) + func (_DhToken *DhTokenSession) Owner() (common.Address, error) + func (_DhToken *DhTokenSession) Pin(user common.Address, hash string, date string) (*types.Transaction, error) + func (_DhToken *DhTokenSession) PostRelayedCall(context []byte, success bool, actualCharge *big.Int, preRetVal [32]byte) (*types.Transaction, error) + func (_DhToken *DhTokenSession) PreRelayedCall(context []byte) (*types.Transaction, error) + func (_DhToken *DhTokenSession) RelayHubVersion() (string, error) + func (_DhToken *DhTokenSession) RenounceOwnership() (*types.Transaction, error) + func (_DhToken *DhTokenSession) Symbol() (string, error) + func (_DhToken *DhTokenSession) TotalSupply() (*big.Int, error) + func (_DhToken *DhTokenSession) Transfer(recipient common.Address, value *big.Int) (*types.Transaction, error) + func (_DhToken *DhTokenSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error) + func (_DhToken *DhTokenSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) + type DhTokenTransactor struct + func NewDhTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*DhTokenTransactor, error) + func (_DhToken *DhTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) + func (_DhToken *DhTokenTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) + func (_DhToken *DhTokenTransactor) GenerateTokens(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error) + func (_DhToken *DhTokenTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error) + func (_DhToken *DhTokenTransactor) Pin(opts *bind.TransactOpts, user common.Address, hash string, date string) (*types.Transaction, error) + func (_DhToken *DhTokenTransactor) PostRelayedCall(opts *bind.TransactOpts, context []byte, success bool, actualCharge *big.Int, ...) (*types.Transaction, error) + func (_DhToken *DhTokenTransactor) PreRelayedCall(opts *bind.TransactOpts, context []byte) (*types.Transaction, error) + func (_DhToken *DhTokenTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) + func (_DhToken *DhTokenTransactor) Transfer(opts *bind.TransactOpts, recipient common.Address, value *big.Int) (*types.Transaction, error) + func (_DhToken *DhTokenTransactor) TransferFrom(opts *bind.TransactOpts, sender common.Address, recipient common.Address, ...) (*types.Transaction, error) + func (_DhToken *DhTokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) + type DhTokenTransactorRaw struct + Contract *DhTokenTransactor + func (_DhToken *DhTokenTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_DhToken *DhTokenTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type DhTokenTransactorSession struct + Contract *DhTokenTransactor + TransactOpts bind.TransactOpts + func (_DhToken *DhTokenTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) + func (_DhToken *DhTokenTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) + func (_DhToken *DhTokenTransactorSession) GenerateTokens(amount *big.Int) (*types.Transaction, error) + func (_DhToken *DhTokenTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error) + func (_DhToken *DhTokenTransactorSession) Pin(user common.Address, hash string, date string) (*types.Transaction, error) + func (_DhToken *DhTokenTransactorSession) PostRelayedCall(context []byte, success bool, actualCharge *big.Int, preRetVal [32]byte) (*types.Transaction, error) + func (_DhToken *DhTokenTransactorSession) PreRelayedCall(context []byte) (*types.Transaction, error) + func (_DhToken *DhTokenTransactorSession) RenounceOwnership() (*types.Transaction, error) + func (_DhToken *DhTokenTransactorSession) Transfer(recipient common.Address, value *big.Int) (*types.Transaction, error) + func (_DhToken *DhTokenTransactorSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error) + func (_DhToken *DhTokenTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) + type DhTokenTransfer struct + From common.Address + Raw types.Log + To common.Address + Value *big.Int + type DhTokenTransferIterator struct + Event *DhTokenTransfer + func (it *DhTokenTransferIterator) Close() error + func (it *DhTokenTransferIterator) Error() error + func (it *DhTokenTransferIterator) Next() bool