Documentation ¶
Index ¶
- Constants
- Variables
- type Usdt
- type UsdtApproval
- type UsdtApprovalIterator
- type UsdtCaller
- func (_Usdt *UsdtCaller) Allowance(opts *bind.CallOpts, _owner common.Address, _spender common.Address) (*big.Int, error)
- func (_Usdt *UsdtCaller) BalanceOf(opts *bind.CallOpts, _owner common.Address) (*big.Int, error)
- func (_Usdt *UsdtCaller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_Usdt *UsdtCaller) Name(opts *bind.CallOpts) (string, error)
- func (_Usdt *UsdtCaller) Symbol(opts *bind.CallOpts) (string, error)
- func (_Usdt *UsdtCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- type UsdtCallerRaw
- type UsdtCallerSession
- func (_Usdt *UsdtCallerSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)
- func (_Usdt *UsdtCallerSession) BalanceOf(_owner common.Address) (*big.Int, error)
- func (_Usdt *UsdtCallerSession) Decimals() (uint8, error)
- func (_Usdt *UsdtCallerSession) Name() (string, error)
- func (_Usdt *UsdtCallerSession) Symbol() (string, error)
- func (_Usdt *UsdtCallerSession) TotalSupply() (*big.Int, error)
- type UsdtFilterer
- func (_Usdt *UsdtFilterer) FilterApproval(opts *bind.FilterOpts) (*UsdtApprovalIterator, error)
- func (_Usdt *UsdtFilterer) FilterTransfer(opts *bind.FilterOpts) (*UsdtTransferIterator, error)
- func (_Usdt *UsdtFilterer) ParseApproval(log types.Log) (*UsdtApproval, error)
- func (_Usdt *UsdtFilterer) ParseTransfer(log types.Log) (*UsdtTransfer, error)
- func (_Usdt *UsdtFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *UsdtApproval) (event.Subscription, error)
- func (_Usdt *UsdtFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *UsdtTransfer) (event.Subscription, error)
- type UsdtRaw
- func (_Usdt *UsdtRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Usdt *UsdtRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Usdt *UsdtRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type UsdtSession
- func (_Usdt *UsdtSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)
- func (_Usdt *UsdtSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Usdt *UsdtSession) BalanceOf(_owner common.Address) (*big.Int, error)
- func (_Usdt *UsdtSession) Decimals() (uint8, error)
- func (_Usdt *UsdtSession) InitCoin(initialSupply *big.Int, holder common.Address) (*types.Transaction, error)
- func (_Usdt *UsdtSession) Name() (string, error)
- func (_Usdt *UsdtSession) Symbol() (string, error)
- func (_Usdt *UsdtSession) TotalSupply() (*big.Int, error)
- func (_Usdt *UsdtSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Usdt *UsdtSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
- type UsdtTransactor
- func (_Usdt *UsdtTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Usdt *UsdtTransactor) InitCoin(opts *bind.TransactOpts, initialSupply *big.Int, holder common.Address) (*types.Transaction, error)
- func (_Usdt *UsdtTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Usdt *UsdtTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, ...) (*types.Transaction, error)
- type UsdtTransactorRaw
- type UsdtTransactorSession
- func (_Usdt *UsdtTransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Usdt *UsdtTransactorSession) InitCoin(initialSupply *big.Int, holder common.Address) (*types.Transaction, error)
- func (_Usdt *UsdtTransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Usdt *UsdtTransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
- type UsdtTransfer
- type UsdtTransferIterator
Constants ¶
const UsdtABI = "" /* 3209-byte string literal not displayed */
UsdtABI is the input ABI used to generate the binding from.
Variables ¶
var UsdtBin = "" /* 9674-byte string literal not displayed */
UsdtBin is the compiled bytecode used for deploying new contracts.
Functions ¶
This section is empty.
Types ¶
type Usdt ¶
type Usdt struct { UsdtCaller // Read-only binding to the contract UsdtTransactor // Write-only binding to the contract UsdtFilterer // Log filterer for contract events }
Usdt is an auto generated Go binding around an Ethereum contract.
func DeployUsdt ¶
func DeployUsdt(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Usdt, error)
DeployUsdt deploys a new Ethereum contract, binding an instance of Usdt to it.
type UsdtApproval ¶
type UsdtApproval struct { Owner common.Address Spender common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
UsdtApproval represents a Approval event raised by the Usdt contract.
type UsdtApprovalIterator ¶
type UsdtApprovalIterator struct { Event *UsdtApproval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
UsdtApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Usdt contract.
func (*UsdtApprovalIterator) Close ¶
func (it *UsdtApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*UsdtApprovalIterator) Error ¶
func (it *UsdtApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*UsdtApprovalIterator) Next ¶
func (it *UsdtApprovalIterator) 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 UsdtCaller ¶
type UsdtCaller struct {
// contains filtered or unexported fields
}
UsdtCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewUsdtCaller ¶
func NewUsdtCaller(address common.Address, caller bind.ContractCaller) (*UsdtCaller, error)
NewUsdtCaller creates a new read-only instance of Usdt, bound to a specific deployed contract.
func (*UsdtCaller) Allowance ¶
func (_Usdt *UsdtCaller) Allowance(opts *bind.CallOpts, _owner common.Address, _spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address _owner, address _spender) view returns(uint256 remaining)
func (*UsdtCaller) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address _owner) view returns(uint256 balance)
func (*UsdtCaller) Decimals ¶
func (_Usdt *UsdtCaller) Decimals(opts *bind.CallOpts) (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*UsdtCaller) Name ¶
func (_Usdt *UsdtCaller) Name(opts *bind.CallOpts) (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*UsdtCaller) Symbol ¶
func (_Usdt *UsdtCaller) Symbol(opts *bind.CallOpts) (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*UsdtCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type UsdtCallerRaw ¶
type UsdtCallerRaw struct {
Contract *UsdtCaller // Generic read-only contract binding to access the raw methods on
}
UsdtCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*UsdtCallerRaw) Call ¶
func (_Usdt *UsdtCallerRaw) 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 UsdtCallerSession ¶
type UsdtCallerSession struct { Contract *UsdtCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
UsdtCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*UsdtCallerSession) Allowance ¶
func (_Usdt *UsdtCallerSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address _owner, address _spender) view returns(uint256 remaining)
func (*UsdtCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address _owner) view returns(uint256 balance)
func (*UsdtCallerSession) Decimals ¶
func (_Usdt *UsdtCallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*UsdtCallerSession) Name ¶
func (_Usdt *UsdtCallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*UsdtCallerSession) Symbol ¶
func (_Usdt *UsdtCallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*UsdtCallerSession) TotalSupply ¶
func (_Usdt *UsdtCallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type UsdtFilterer ¶
type UsdtFilterer struct {
// contains filtered or unexported fields
}
UsdtFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewUsdtFilterer ¶
func NewUsdtFilterer(address common.Address, filterer bind.ContractFilterer) (*UsdtFilterer, error)
NewUsdtFilterer creates a new log filterer instance of Usdt, bound to a specific deployed contract.
func (*UsdtFilterer) FilterApproval ¶
func (_Usdt *UsdtFilterer) FilterApproval(opts *bind.FilterOpts) (*UsdtApprovalIterator, error)
FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address owner, address spender, uint256 value)
func (*UsdtFilterer) FilterTransfer ¶
func (_Usdt *UsdtFilterer) FilterTransfer(opts *bind.FilterOpts) (*UsdtTransferIterator, error)
FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address owner, address spender, uint256 value)
func (*UsdtFilterer) ParseApproval ¶
func (_Usdt *UsdtFilterer) ParseApproval(log types.Log) (*UsdtApproval, error)
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address owner, address spender, uint256 value)
func (*UsdtFilterer) ParseTransfer ¶
func (_Usdt *UsdtFilterer) ParseTransfer(log types.Log) (*UsdtTransfer, error)
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address owner, address spender, uint256 value)
func (*UsdtFilterer) WatchApproval ¶
func (_Usdt *UsdtFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *UsdtApproval) (event.Subscription, error)
WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address owner, address spender, uint256 value)
func (*UsdtFilterer) WatchTransfer ¶
func (_Usdt *UsdtFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *UsdtTransfer) (event.Subscription, error)
WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address owner, address spender, uint256 value)
type UsdtRaw ¶
type UsdtRaw struct {
Contract *Usdt // Generic contract binding to access the raw methods on
}
UsdtRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*UsdtRaw) Call ¶
func (_Usdt *UsdtRaw) 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 (*UsdtRaw) Transact ¶
func (_Usdt *UsdtRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*UsdtRaw) Transfer ¶
func (_Usdt *UsdtRaw) 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 UsdtSession ¶
type UsdtSession struct { Contract *Usdt // 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 }
UsdtSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*UsdtSession) Allowance ¶
func (_Usdt *UsdtSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address _owner, address _spender) view returns(uint256 remaining)
func (*UsdtSession) Approve ¶
func (_Usdt *UsdtSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address _spender, uint256 _value) returns(bool success)
func (*UsdtSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address _owner) view returns(uint256 balance)
func (*UsdtSession) Decimals ¶
func (_Usdt *UsdtSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*UsdtSession) InitCoin ¶
func (_Usdt *UsdtSession) InitCoin(initialSupply *big.Int, holder common.Address) (*types.Transaction, error)
InitCoin is a paid mutator transaction binding the contract method 0xf50c3f4c.
Solidity: function initCoin(uint256 initialSupply, address holder) returns()
func (*UsdtSession) Name ¶
func (_Usdt *UsdtSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*UsdtSession) Symbol ¶
func (_Usdt *UsdtSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*UsdtSession) TotalSupply ¶
func (_Usdt *UsdtSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*UsdtSession) Transfer ¶
func (_Usdt *UsdtSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address _to, uint256 _value) payable returns(bool success)
func (*UsdtSession) TransferFrom ¶
func (_Usdt *UsdtSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address _from, address _to, uint256 _value) payable returns(bool success)
type UsdtTransactor ¶
type UsdtTransactor struct {
// contains filtered or unexported fields
}
UsdtTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewUsdtTransactor ¶
func NewUsdtTransactor(address common.Address, transactor bind.ContractTransactor) (*UsdtTransactor, error)
NewUsdtTransactor creates a new write-only instance of Usdt, bound to a specific deployed contract.
func (*UsdtTransactor) Approve ¶
func (_Usdt *UsdtTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address _spender, uint256 _value) returns(bool success)
func (*UsdtTransactor) InitCoin ¶
func (_Usdt *UsdtTransactor) InitCoin(opts *bind.TransactOpts, initialSupply *big.Int, holder common.Address) (*types.Transaction, error)
InitCoin is a paid mutator transaction binding the contract method 0xf50c3f4c.
Solidity: function initCoin(uint256 initialSupply, address holder) returns()
func (*UsdtTransactor) Transfer ¶
func (_Usdt *UsdtTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address _to, uint256 _value) payable returns(bool success)
func (*UsdtTransactor) TransferFrom ¶
func (_Usdt *UsdtTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address _from, address _to, uint256 _value) payable returns(bool success)
type UsdtTransactorRaw ¶
type UsdtTransactorRaw struct {
Contract *UsdtTransactor // Generic write-only contract binding to access the raw methods on
}
UsdtTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*UsdtTransactorRaw) Transact ¶
func (_Usdt *UsdtTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*UsdtTransactorRaw) Transfer ¶
func (_Usdt *UsdtTransactorRaw) 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 UsdtTransactorSession ¶
type UsdtTransactorSession struct { Contract *UsdtTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
UsdtTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*UsdtTransactorSession) Approve ¶
func (_Usdt *UsdtTransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address _spender, uint256 _value) returns(bool success)
func (*UsdtTransactorSession) InitCoin ¶
func (_Usdt *UsdtTransactorSession) InitCoin(initialSupply *big.Int, holder common.Address) (*types.Transaction, error)
InitCoin is a paid mutator transaction binding the contract method 0xf50c3f4c.
Solidity: function initCoin(uint256 initialSupply, address holder) returns()
func (*UsdtTransactorSession) Transfer ¶
func (_Usdt *UsdtTransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address _to, uint256 _value) payable returns(bool success)
func (*UsdtTransactorSession) TransferFrom ¶
func (_Usdt *UsdtTransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address _from, address _to, uint256 _value) payable returns(bool success)
type UsdtTransfer ¶
type UsdtTransfer struct { Owner common.Address Spender common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
UsdtTransfer represents a Transfer event raised by the Usdt contract.
type UsdtTransferIterator ¶
type UsdtTransferIterator struct { Event *UsdtTransfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
UsdtTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Usdt contract.
func (*UsdtTransferIterator) Close ¶
func (it *UsdtTransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*UsdtTransferIterator) Error ¶
func (it *UsdtTransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*UsdtTransferIterator) Next ¶
func (it *UsdtTransferIterator) 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.