Versions in this module Expand all Collapse all v0 v0.1.0 Mar 17, 2026 Changes in this version + var TokenABI = TokenMetaData.ABI + var TokenBin = TokenMetaData.Bin + var TokenMetaData = &bind.MetaData + type Option func(*Stub) + func WithCollateralContract(collateralContract string) Option + func WithPrivateKey(pk string) Option + func WithPublicKey(pk string) Option + type Stub struct + func NewTokenStub(client *ethclient.Client, options ...Option) (*Stub, error) + func (s *Stub) Approve(amount *big.Int) (string, error) + func (s *Stub) BalanceOf() (string, error) + func (s *Stub) Transfer(to string, amount *big.Int) (string, error) + type Token struct + func DeployToken(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Token, error) + func NewToken(address common.Address, backend bind.ContractBackend) (*Token, error) + type TokenAddedAdmin struct + Admin common.Address + Raw types.Log + type TokenAddedAdminIterator struct + Event *TokenAddedAdmin + func (it *TokenAddedAdminIterator) Close() error + func (it *TokenAddedAdminIterator) Error() error + func (it *TokenAddedAdminIterator) Next() bool + type TokenAddedBlackList struct + Raw types.Log + User common.Address + type TokenAddedBlackListIterator struct + Event *TokenAddedBlackList + func (it *TokenAddedBlackListIterator) Close() error + func (it *TokenAddedBlackListIterator) Error() error + func (it *TokenAddedBlackListIterator) Next() bool + type TokenApproval struct + Owner common.Address + Raw types.Log + Spender common.Address + Value *big.Int + type TokenApprovalIterator struct + Event *TokenApproval + func (it *TokenApprovalIterator) Close() error + func (it *TokenApprovalIterator) Error() error + func (it *TokenApprovalIterator) Next() bool + type TokenCaller struct + func NewTokenCaller(address common.Address, caller bind.ContractCaller) (*TokenCaller, error) + func (_Token *TokenCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) + func (_Token *TokenCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error) + func (_Token *TokenCaller) Decimals(opts *bind.CallOpts) (uint8, error) + func (_Token *TokenCaller) GetBlackListStatus(opts *bind.CallOpts, _maker common.Address) (bool, error) + func (_Token *TokenCaller) IsAdmin(opts *bind.CallOpts, arg0 common.Address) (bool, error) + func (_Token *TokenCaller) IsBlackListed(opts *bind.CallOpts, arg0 common.Address) (bool, error) + func (_Token *TokenCaller) Name(opts *bind.CallOpts) (string, error) + func (_Token *TokenCaller) Owner(opts *bind.CallOpts) (common.Address, error) + func (_Token *TokenCaller) ProxiableUUID(opts *bind.CallOpts) ([32]byte, error) + func (_Token *TokenCaller) Symbol(opts *bind.CallOpts) (string, error) + func (_Token *TokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) + func (_Token *TokenCaller) UPGRADEINTERFACEVERSION(opts *bind.CallOpts) (string, error) + type TokenCallerRaw struct + Contract *TokenCaller + func (_Token *TokenCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + type TokenCallerSession struct + CallOpts bind.CallOpts + Contract *TokenCaller + func (_Token *TokenCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) + func (_Token *TokenCallerSession) BalanceOf(account common.Address) (*big.Int, error) + func (_Token *TokenCallerSession) Decimals() (uint8, error) + func (_Token *TokenCallerSession) GetBlackListStatus(_maker common.Address) (bool, error) + func (_Token *TokenCallerSession) IsAdmin(arg0 common.Address) (bool, error) + func (_Token *TokenCallerSession) IsBlackListed(arg0 common.Address) (bool, error) + func (_Token *TokenCallerSession) Name() (string, error) + func (_Token *TokenCallerSession) Owner() (common.Address, error) + func (_Token *TokenCallerSession) ProxiableUUID() ([32]byte, error) + func (_Token *TokenCallerSession) Symbol() (string, error) + func (_Token *TokenCallerSession) TotalSupply() (*big.Int, error) + func (_Token *TokenCallerSession) UPGRADEINTERFACEVERSION() (string, error) + type TokenDestroyedBlackFunds struct + Balance *big.Int + BlackListedUser common.Address + Raw types.Log + type TokenDestroyedBlackFundsIterator struct + Event *TokenDestroyedBlackFunds + func (it *TokenDestroyedBlackFundsIterator) Close() error + func (it *TokenDestroyedBlackFundsIterator) Error() error + func (it *TokenDestroyedBlackFundsIterator) Next() bool + type TokenFilterer struct + func NewTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*TokenFilterer, error) + func (_Token *TokenFilterer) FilterAddedAdmin(opts *bind.FilterOpts) (*TokenAddedAdminIterator, error) + func (_Token *TokenFilterer) FilterAddedBlackList(opts *bind.FilterOpts) (*TokenAddedBlackListIterator, error) + func (_Token *TokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*TokenApprovalIterator, error) + func (_Token *TokenFilterer) FilterDestroyedBlackFunds(opts *bind.FilterOpts) (*TokenDestroyedBlackFundsIterator, error) + func (_Token *TokenFilterer) FilterInitialized(opts *bind.FilterOpts) (*TokenInitializedIterator, error) + func (_Token *TokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*TokenOwnershipTransferredIterator, error) + func (_Token *TokenFilterer) FilterRemovedAdmin(opts *bind.FilterOpts) (*TokenRemovedAdminIterator, error) + func (_Token *TokenFilterer) FilterRemovedBlackList(opts *bind.FilterOpts) (*TokenRemovedBlackListIterator, error) + func (_Token *TokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*TokenTransferIterator, error) + func (_Token *TokenFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*TokenUpgradedIterator, error) + func (_Token *TokenFilterer) ParseAddedAdmin(log types.Log) (*TokenAddedAdmin, error) + func (_Token *TokenFilterer) ParseAddedBlackList(log types.Log) (*TokenAddedBlackList, error) + func (_Token *TokenFilterer) ParseApproval(log types.Log) (*TokenApproval, error) + func (_Token *TokenFilterer) ParseDestroyedBlackFunds(log types.Log) (*TokenDestroyedBlackFunds, error) + func (_Token *TokenFilterer) ParseInitialized(log types.Log) (*TokenInitialized, error) + func (_Token *TokenFilterer) ParseOwnershipTransferred(log types.Log) (*TokenOwnershipTransferred, error) + func (_Token *TokenFilterer) ParseRemovedAdmin(log types.Log) (*TokenRemovedAdmin, error) + func (_Token *TokenFilterer) ParseRemovedBlackList(log types.Log) (*TokenRemovedBlackList, error) + func (_Token *TokenFilterer) ParseTransfer(log types.Log) (*TokenTransfer, error) + func (_Token *TokenFilterer) ParseUpgraded(log types.Log) (*TokenUpgraded, error) + func (_Token *TokenFilterer) WatchAddedAdmin(opts *bind.WatchOpts, sink chan<- *TokenAddedAdmin) (event.Subscription, error) + func (_Token *TokenFilterer) WatchAddedBlackList(opts *bind.WatchOpts, sink chan<- *TokenAddedBlackList) (event.Subscription, error) + func (_Token *TokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *TokenApproval, owner []common.Address, ...) (event.Subscription, error) + func (_Token *TokenFilterer) WatchDestroyedBlackFunds(opts *bind.WatchOpts, sink chan<- *TokenDestroyedBlackFunds) (event.Subscription, error) + func (_Token *TokenFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *TokenInitialized) (event.Subscription, error) + func (_Token *TokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TokenOwnershipTransferred, ...) (event.Subscription, error) + func (_Token *TokenFilterer) WatchRemovedAdmin(opts *bind.WatchOpts, sink chan<- *TokenRemovedAdmin) (event.Subscription, error) + func (_Token *TokenFilterer) WatchRemovedBlackList(opts *bind.WatchOpts, sink chan<- *TokenRemovedBlackList) (event.Subscription, error) + func (_Token *TokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *TokenTransfer, from []common.Address, ...) (event.Subscription, error) + func (_Token *TokenFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *TokenUpgraded, ...) (event.Subscription, error) + type TokenInitialized struct + Raw types.Log + Version uint64 + type TokenInitializedIterator struct + Event *TokenInitialized + func (it *TokenInitializedIterator) Close() error + func (it *TokenInitializedIterator) Error() error + func (it *TokenInitializedIterator) Next() bool + type TokenOwnershipTransferred struct + NewOwner common.Address + PreviousOwner common.Address + Raw types.Log + type TokenOwnershipTransferredIterator struct + Event *TokenOwnershipTransferred + func (it *TokenOwnershipTransferredIterator) Close() error + func (it *TokenOwnershipTransferredIterator) Error() error + func (it *TokenOwnershipTransferredIterator) Next() bool + type TokenRaw struct + Contract *Token + func (_Token *TokenRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + func (_Token *TokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Token *TokenRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type TokenRemovedAdmin struct + Admin common.Address + Raw types.Log + type TokenRemovedAdminIterator struct + Event *TokenRemovedAdmin + func (it *TokenRemovedAdminIterator) Close() error + func (it *TokenRemovedAdminIterator) Error() error + func (it *TokenRemovedAdminIterator) Next() bool + type TokenRemovedBlackList struct + Raw types.Log + User common.Address + type TokenRemovedBlackListIterator struct + Event *TokenRemovedBlackList + func (it *TokenRemovedBlackListIterator) Close() error + func (it *TokenRemovedBlackListIterator) Error() error + func (it *TokenRemovedBlackListIterator) Next() bool + type TokenSession struct + CallOpts bind.CallOpts + Contract *Token + TransactOpts bind.TransactOpts + func (_Token *TokenSession) AddAdmin(newAdmin common.Address) (*types.Transaction, error) + func (_Token *TokenSession) AddBlackList(_evilUser common.Address) (*types.Transaction, error) + func (_Token *TokenSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) + func (_Token *TokenSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) + func (_Token *TokenSession) BalanceOf(account common.Address) (*big.Int, error) + func (_Token *TokenSession) Burn(value *big.Int) (*types.Transaction, error) + func (_Token *TokenSession) BurnFrom(account common.Address, value *big.Int) (*types.Transaction, error) + func (_Token *TokenSession) Decimals() (uint8, error) + func (_Token *TokenSession) DestroyBlackFunds(_blackListedUser common.Address) (*types.Transaction, error) + func (_Token *TokenSession) GetBlackListStatus(_maker common.Address) (bool, error) + func (_Token *TokenSession) Initialize(initialOwner common.Address) (*types.Transaction, error) + func (_Token *TokenSession) IsAdmin(arg0 common.Address) (bool, error) + func (_Token *TokenSession) IsBlackListed(arg0 common.Address) (bool, error) + func (_Token *TokenSession) Mint(to common.Address, amount *big.Int) (*types.Transaction, error) + func (_Token *TokenSession) Name() (string, error) + func (_Token *TokenSession) Owner() (common.Address, error) + func (_Token *TokenSession) ProxiableUUID() ([32]byte, error) + func (_Token *TokenSession) RemoveAdmin(admin common.Address) (*types.Transaction, error) + func (_Token *TokenSession) RemoveBlackList(_clearedUser common.Address) (*types.Transaction, error) + func (_Token *TokenSession) RenounceOwnership() (*types.Transaction, error) + func (_Token *TokenSession) Symbol() (string, error) + func (_Token *TokenSession) TotalSupply() (*big.Int, error) + func (_Token *TokenSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error) + func (_Token *TokenSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) + func (_Token *TokenSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) + func (_Token *TokenSession) UPGRADEINTERFACEVERSION() (string, error) + func (_Token *TokenSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error) + type TokenTransactor struct + func NewTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*TokenTransactor, error) + func (_Token *TokenTransactor) AddAdmin(opts *bind.TransactOpts, newAdmin common.Address) (*types.Transaction, error) + func (_Token *TokenTransactor) AddBlackList(opts *bind.TransactOpts, _evilUser common.Address) (*types.Transaction, error) + func (_Token *TokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) + func (_Token *TokenTransactor) Burn(opts *bind.TransactOpts, value *big.Int) (*types.Transaction, error) + func (_Token *TokenTransactor) BurnFrom(opts *bind.TransactOpts, account common.Address, value *big.Int) (*types.Transaction, error) + func (_Token *TokenTransactor) DestroyBlackFunds(opts *bind.TransactOpts, _blackListedUser common.Address) (*types.Transaction, error) + func (_Token *TokenTransactor) Initialize(opts *bind.TransactOpts, initialOwner common.Address) (*types.Transaction, error) + func (_Token *TokenTransactor) Mint(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error) + func (_Token *TokenTransactor) RemoveAdmin(opts *bind.TransactOpts, admin common.Address) (*types.Transaction, error) + func (_Token *TokenTransactor) RemoveBlackList(opts *bind.TransactOpts, _clearedUser common.Address) (*types.Transaction, error) + func (_Token *TokenTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) + func (_Token *TokenTransactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error) + func (_Token *TokenTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ...) (*types.Transaction, error) + func (_Token *TokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) + func (_Token *TokenTransactor) UpgradeToAndCall(opts *bind.TransactOpts, newImplementation common.Address, data []byte) (*types.Transaction, error) + type TokenTransactorRaw struct + Contract *TokenTransactor + func (_Token *TokenTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Token *TokenTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type TokenTransactorSession struct + Contract *TokenTransactor + TransactOpts bind.TransactOpts + func (_Token *TokenTransactorSession) AddAdmin(newAdmin common.Address) (*types.Transaction, error) + func (_Token *TokenTransactorSession) AddBlackList(_evilUser common.Address) (*types.Transaction, error) + func (_Token *TokenTransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) + func (_Token *TokenTransactorSession) Burn(value *big.Int) (*types.Transaction, error) + func (_Token *TokenTransactorSession) BurnFrom(account common.Address, value *big.Int) (*types.Transaction, error) + func (_Token *TokenTransactorSession) DestroyBlackFunds(_blackListedUser common.Address) (*types.Transaction, error) + func (_Token *TokenTransactorSession) Initialize(initialOwner common.Address) (*types.Transaction, error) + func (_Token *TokenTransactorSession) Mint(to common.Address, amount *big.Int) (*types.Transaction, error) + func (_Token *TokenTransactorSession) RemoveAdmin(admin common.Address) (*types.Transaction, error) + func (_Token *TokenTransactorSession) RemoveBlackList(_clearedUser common.Address) (*types.Transaction, error) + func (_Token *TokenTransactorSession) RenounceOwnership() (*types.Transaction, error) + func (_Token *TokenTransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error) + func (_Token *TokenTransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) + func (_Token *TokenTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) + func (_Token *TokenTransactorSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error) + type TokenTransfer struct + From common.Address + Raw types.Log + To common.Address + Value *big.Int + type TokenTransferIterator struct + Event *TokenTransfer + func (it *TokenTransferIterator) Close() error + func (it *TokenTransferIterator) Error() error + func (it *TokenTransferIterator) Next() bool + type TokenUpgraded struct + Implementation common.Address + Raw types.Log + type TokenUpgradedIterator struct + Event *TokenUpgraded + func (it *TokenUpgradedIterator) Close() error + func (it *TokenUpgradedIterator) Error() error + func (it *TokenUpgradedIterator) Next() bool