Versions in this module Expand all Collapse all v1 v1.0.3 Mar 8, 2023 v1.0.2 Feb 13, 2023 Changes in this version type StampConf + func (sc *StampConf) String() string v1.0.1 Feb 1, 2023 Changes in this version + const ChainAPIURL + const StampABI + var EmptyRecord = StampRecord + type Stamp struct + func EthTxCli(stampAddr string, pri *ecdsa.PrivateKey) (*Stamp, *bind.TransactOpts, error) + func NewStamp(address common.Address, backend bind.ContractBackend) (*Stamp, error) + type StampAdminOP struct + Add bool + NewAdmin common.Address + Raw types.Log + type StampAdminOPIterator struct + Event *StampAdminOP + func (it *StampAdminOPIterator) Close() error + func (it *StampAdminOPIterator) Error() error + func (it *StampAdminOPIterator) Next() bool + type StampCaller struct + func NewStampCaller(address common.Address, caller bind.ContractCaller) (*StampCaller, error) + func (_Stamp *StampCaller) Admins(opts *bind.CallOpts, arg0 common.Address) (bool, error) + func (_Stamp *StampCaller) BalanceOf(opts *bind.CallOpts, user common.Address) (StampRecord, error) + func (_Stamp *StampCaller) Conf(opts *bind.CallOpts) (struct{ ... }, error) + func (_Stamp *StampCaller) Decimals(opts *bind.CallOpts) (uint8, error) + func (_Stamp *StampCaller) Owner(opts *bind.CallOpts) (common.Address, error) + func (_Stamp *StampCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) + type StampCallerRaw struct + Contract *StampCaller + func (_Stamp *StampCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + type StampCallerSession struct + CallOpts bind.CallOpts + Contract *StampCaller + func (_Stamp *StampCallerSession) Admins(arg0 common.Address) (bool, error) + func (_Stamp *StampCallerSession) BalanceOf(user common.Address) (StampRecord, error) + func (_Stamp *StampCallerSession) Conf() (struct{ ... }, error) + func (_Stamp *StampCallerSession) Decimals() (uint8, error) + func (_Stamp *StampCallerSession) Owner() (common.Address, error) + func (_Stamp *StampCallerSession) TotalSupply() (*big.Int, error) + type StampConf struct + Addr string + Balance map[common.Address]*StampRecord + IsConsumable bool + MailBox string + func StampConfigFromBlockChain(addr string) (*StampConf, error) + func (sc *StampConf) GetBalance(ethAddr common.Address, force bool) *StampRecord + type StampFilterer struct + func NewStampFilterer(address common.Address, filterer bind.ContractFilterer) (*StampFilterer, error) + func (_Stamp *StampFilterer) FilterAdminOP(opts *bind.FilterOpts, newAdmin []common.Address) (*StampAdminOPIterator, error) + func (_Stamp *StampFilterer) FilterOwnerSet(opts *bind.FilterOpts, oldOwner []common.Address, newOwner []common.Address) (*StampOwnerSetIterator, error) + func (_Stamp *StampFilterer) FilterRevoke(opts *bind.FilterOpts, to []common.Address) (*StampRevokeIterator, error) + func (_Stamp *StampFilterer) FilterTransfer(opts *bind.FilterOpts, to []common.Address) (*StampTransferIterator, error) + func (_Stamp *StampFilterer) ParseAdminOP(log types.Log) (*StampAdminOP, error) + func (_Stamp *StampFilterer) ParseOwnerSet(log types.Log) (*StampOwnerSet, error) + func (_Stamp *StampFilterer) ParseRevoke(log types.Log) (*StampRevoke, error) + func (_Stamp *StampFilterer) ParseTransfer(log types.Log) (*StampTransfer, error) + func (_Stamp *StampFilterer) WatchAdminOP(opts *bind.WatchOpts, sink chan<- *StampAdminOP, newAdmin []common.Address) (event.Subscription, error) + func (_Stamp *StampFilterer) WatchOwnerSet(opts *bind.WatchOpts, sink chan<- *StampOwnerSet, oldOwner []common.Address, ...) (event.Subscription, error) + func (_Stamp *StampFilterer) WatchRevoke(opts *bind.WatchOpts, sink chan<- *StampRevoke, to []common.Address) (event.Subscription, error) + func (_Stamp *StampFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *StampTransfer, to []common.Address) (event.Subscription, error) + type StampOwnerSet struct + NewOwner common.Address + OldOwner common.Address + Raw types.Log + type StampOwnerSetIterator struct + Event *StampOwnerSet + func (it *StampOwnerSetIterator) Close() error + func (it *StampOwnerSetIterator) Error() error + func (it *StampOwnerSetIterator) Next() bool + type StampRaw struct + Contract *Stamp + func (_Stamp *StampRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + func (_Stamp *StampRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Stamp *StampRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type StampRecord struct + Nonce *big.Int + Value *big.Int + func StampBalanceOfWallet(stampAddr, userAddr common.Address) (StampRecord, error) + type StampRevoke struct + Raw types.Log + To common.Address + Value *big.Int + type StampRevokeIterator struct + Event *StampRevoke + func (it *StampRevokeIterator) Close() error + func (it *StampRevokeIterator) Error() error + func (it *StampRevokeIterator) Next() bool + type StampSession struct + CallOpts bind.CallOpts + Contract *Stamp + TransactOpts bind.TransactOpts + func (_Stamp *StampSession) AdminOp(addr common.Address, isAdd bool) (*types.Transaction, error) + func (_Stamp *StampSession) Admins(arg0 common.Address) (bool, error) + func (_Stamp *StampSession) BalanceOf(user common.Address) (StampRecord, error) + func (_Stamp *StampSession) ChangeOwner(newOwner common.Address) (*types.Transaction, error) + func (_Stamp *StampSession) Conf() (struct{ ... }, error) + func (_Stamp *StampSession) Decimals() (uint8, error) + func (_Stamp *StampSession) Owner() (common.Address, error) + func (_Stamp *StampSession) Revoke(to common.Address, value *big.Int) (*types.Transaction, error) + func (_Stamp *StampSession) TotalSupply() (*big.Int, error) + func (_Stamp *StampSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error) + type StampTransactor struct + func NewStampTransactor(address common.Address, transactor bind.ContractTransactor) (*StampTransactor, error) + func (_Stamp *StampTransactor) AdminOp(opts *bind.TransactOpts, addr common.Address, isAdd bool) (*types.Transaction, error) + func (_Stamp *StampTransactor) ChangeOwner(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) + func (_Stamp *StampTransactor) Revoke(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error) + func (_Stamp *StampTransactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error) + type StampTransactorRaw struct + Contract *StampTransactor + func (_Stamp *StampTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Stamp *StampTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type StampTransactorSession struct + Contract *StampTransactor + TransactOpts bind.TransactOpts + func (_Stamp *StampTransactorSession) AdminOp(addr common.Address, isAdd bool) (*types.Transaction, error) + func (_Stamp *StampTransactorSession) ChangeOwner(newOwner common.Address) (*types.Transaction, error) + func (_Stamp *StampTransactorSession) Revoke(to common.Address, value *big.Int) (*types.Transaction, error) + func (_Stamp *StampTransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error) + type StampTransfer struct + Raw types.Log + To common.Address + Value *big.Int + type StampTransferIterator struct + Event *StampTransfer + func (it *StampTransferIterator) Close() error + func (it *StampTransferIterator) Error() error + func (it *StampTransferIterator) Next() bool