Documentation ¶
Index ¶
- Variables
- type Wallet
- type WalletCaller
- type WalletCallerRaw
- type WalletCallerSession
- type WalletFilterer
- type WalletRaw
- func (_Wallet *WalletRaw) Call(opts *bind.CallOpts, result *[]any, method string, params ...any) error
- func (_Wallet *WalletRaw) Transact(opts *bind.TransactOpts, method string, params ...any) (*types.Transaction, error)
- func (_Wallet *WalletRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type WalletSession
- type WalletTransactor
- type WalletTransactorRaw
- type WalletTransactorSession
Constants ¶
This section is empty.
Variables ¶
var WalletABI = WalletMetaData.ABI
WalletABI is the input ABI used to generate the binding from. Deprecated: Use WalletMetaData.ABI instead.
var WalletMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"Balance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amt\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amt\",\"type\":\"uint256\"}],\"name\":\"Winthdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"admin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
WalletMetaData contains all meta data concerning the Wallet contract.
Functions ¶
This section is empty.
Types ¶
type Wallet ¶
type Wallet struct { WalletCaller // Read-only binding to the contract WalletTransactor // Write-only binding to the contract WalletFilterer // Log filterer for contract events }
Wallet is an auto generated Go binding around an Ethereum contract.
type WalletCaller ¶
type WalletCaller struct {
// contains filtered or unexported fields
}
WalletCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewWalletCaller ¶
func NewWalletCaller(address common.Address, caller bind.ContractCaller) (*WalletCaller, error)
NewWalletCaller creates a new read-only instance of Wallet, bound to a specific deployed contract.
type WalletCallerRaw ¶
type WalletCallerRaw struct {
Contract *WalletCaller // Generic read-only contract binding to access the raw methods on
}
WalletCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*WalletCallerRaw) Call ¶
func (_Wallet *WalletCallerRaw) Call(opts *bind.CallOpts, result *[]any, method string, params ...any) 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 WalletCallerSession ¶
type WalletCallerSession struct { Contract *WalletCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
WalletCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type WalletFilterer ¶
type WalletFilterer struct {
// contains filtered or unexported fields
}
WalletFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewWalletFilterer ¶
func NewWalletFilterer(address common.Address, filterer bind.ContractFilterer) (*WalletFilterer, error)
NewWalletFilterer creates a new log filterer instance of Wallet, bound to a specific deployed contract.
type WalletRaw ¶
type WalletRaw struct {
Contract *Wallet // Generic contract binding to access the raw methods on
}
WalletRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*WalletRaw) Call ¶
func (_Wallet *WalletRaw) Call(opts *bind.CallOpts, result *[]any, method string, params ...any) 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 (*WalletRaw) Transact ¶
func (_Wallet *WalletRaw) Transact(opts *bind.TransactOpts, method string, params ...any) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*WalletRaw) Transfer ¶
func (_Wallet *WalletRaw) 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 WalletSession ¶
type WalletSession struct { Contract *Wallet // 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 }
WalletSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*WalletSession) Admin ¶
func (_Wallet *WalletSession) Admin() (common.Address, error)
Admin is a free data retrieval call binding the contract method 0xf851a440.
Solidity: function admin() view returns(address)
func (*WalletSession) Balance ¶
func (_Wallet *WalletSession) Balance() (*big.Int, error)
Balance is a free data retrieval call binding the contract method 0x0ef67887.
Solidity: function Balance() view returns(uint256)
func (*WalletSession) Deposit ¶
func (_Wallet *WalletSession) Deposit(amt *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x4d6ce1e5.
Solidity: function Deposit(uint256 amt) returns(uint256)
func (*WalletSession) Winthdraw ¶
func (_Wallet *WalletSession) Winthdraw(_amt *big.Int) (*types.Transaction, error)
Winthdraw is a paid mutator transaction binding the contract method 0xba17e540.
Solidity: function Winthdraw(uint256 _amt) returns()
type WalletTransactor ¶
type WalletTransactor struct {
// contains filtered or unexported fields
}
WalletTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewWalletTransactor ¶
func NewWalletTransactor(address common.Address, transactor bind.ContractTransactor) (*WalletTransactor, error)
NewWalletTransactor creates a new write-only instance of Wallet, bound to a specific deployed contract.
func (*WalletTransactor) Deposit ¶
func (_Wallet *WalletTransactor) Deposit(opts *bind.TransactOpts, amt *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x4d6ce1e5.
Solidity: function Deposit(uint256 amt) returns(uint256)
func (*WalletTransactor) Winthdraw ¶
func (_Wallet *WalletTransactor) Winthdraw(opts *bind.TransactOpts, _amt *big.Int) (*types.Transaction, error)
Winthdraw is a paid mutator transaction binding the contract method 0xba17e540.
Solidity: function Winthdraw(uint256 _amt) returns()
type WalletTransactorRaw ¶
type WalletTransactorRaw struct {
Contract *WalletTransactor // Generic write-only contract binding to access the raw methods on
}
WalletTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*WalletTransactorRaw) Transact ¶
func (_Wallet *WalletTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...any) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*WalletTransactorRaw) Transfer ¶
func (_Wallet *WalletTransactorRaw) 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 WalletTransactorSession ¶
type WalletTransactorSession struct { Contract *WalletTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
WalletTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*WalletTransactorSession) Deposit ¶
func (_Wallet *WalletTransactorSession) Deposit(amt *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x4d6ce1e5.
Solidity: function Deposit(uint256 amt) returns(uint256)
func (*WalletTransactorSession) Winthdraw ¶
func (_Wallet *WalletTransactorSession) Winthdraw(_amt *big.Int) (*types.Transaction, error)
Winthdraw is a paid mutator transaction binding the contract method 0xba17e540.
Solidity: function Winthdraw(uint256 _amt) returns()