wallet

package
v0.0.0-...-5c9d423 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WalletABI = WalletMetaData.ABI

WalletABI is the input ABI used to generate the binding from. Deprecated: Use WalletMetaData.ABI instead.

View Source
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.

func NewWallet

func NewWallet(address common.Address, backend bind.ContractBackend) (*Wallet, error)

NewWallet creates a new instance of Wallet, bound to a specific deployed 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.

func (*WalletCaller) Admin

func (_Wallet *WalletCaller) Admin(opts *bind.CallOpts) (common.Address, error)

Admin is a free data retrieval call binding the contract method 0xf851a440.

Solidity: function admin() view returns(address)

func (*WalletCaller) Balance

func (_Wallet *WalletCaller) Balance(opts *bind.CallOpts) (*big.Int, error)

Balance is a free data retrieval call binding the contract method 0x0ef67887.

Solidity: function Balance() view returns(uint256)

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.

func (*WalletCallerSession) Admin

func (_Wallet *WalletCallerSession) Admin() (common.Address, error)

Admin is a free data retrieval call binding the contract method 0xf851a440.

Solidity: function admin() view returns(address)

func (*WalletCallerSession) Balance

func (_Wallet *WalletCallerSession) Balance() (*big.Int, error)

Balance is a free data retrieval call binding the contract method 0x0ef67887.

Solidity: function Balance() view returns(uint256)

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL