bank_account

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BankAccountABI = BankAccountMetaData.ABI

BankAccountABI is the input ABI used to generate the binding from. Deprecated: Use BankAccountMetaData.ABI instead.

View Source
var BankAccountBin = BankAccountMetaData.Bin

BankAccountBin is the compiled bytecode used for deploying new contracts. Deprecated: Use BankAccountMetaData.Bin instead.

View Source
var BankAccountMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"accountHolder\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561001057600080fd5b50600080546001600160a01b0319163317905561068b806100326000396000f3fe60806040526004361061003f5760003560e01c8063030ba25d14610044578063ad7a672f14610066578063be5460791461008f578063d0e30db0146100c7575b600080fd5b34801561005057600080fd5b5061006461005f366004610548565b6100cf565b005b34801561007257600080fd5b5061007c60015481565b6040519081526020015b60405180910390f35b34801561009b57600080fd5b506000546100af906001600160a01b031681565b6040516001600160a01b039091168152602001610086565b61006461029d565b6040516bffffffffffffffffffffffff1930606090811b8216602084015233901b166034820152600090604801604051602081830303815290604052805190602001209050600061015783610151847f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b906102b6565b6000549091506001600160a01b038083169116146101ad5760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b21039b4b3b732b960911b60448201526064015b60405180910390fd5b8360015410156101f55760405162461bcd60e51b8152602060048201526013602482015272496e737566666963656e742062616c616e636560681b60448201526064016101a4565b83600160008282546102079190610619565b9091555050604051600090339086908381818185875af1925050503d806000811461024e576040519150601f19603f3d011682016040523d82523d6000602084013e610253565b606091505b50509050806102965760405162461bcd60e51b815260206004820152600f60248201526e15da5d1a191c985dc819985a5b1959608a1b60448201526064016101a4565b5050505050565b34600160008282546102af919061062c565b9091555050565b60008060006102c585856102dc565b915091506102d281610321565b5090505b92915050565b60008082516041036103125760208301516040840151606085015160001a6103068782858561046e565b9450945050505061031a565b506000905060025b9250929050565b60008160048111156103355761033561063f565b0361033d5750565b60018160048111156103515761035161063f565b0361039e5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016101a4565b60028160048111156103b2576103b261063f565b036103ff5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016101a4565b60038160048111156104135761041361063f565b0361046b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016101a4565b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156104a55750600090506003610529565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156104f9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661052257600060019250925050610529565b9150600090505b94509492505050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561055b57600080fd5b82359150602083013567ffffffffffffffff8082111561057a57600080fd5b818501915085601f83011261058e57600080fd5b8135818111156105a0576105a0610532565b604051601f8201601f19908116603f011681019083821181831017156105c8576105c8610532565b816040528281528860208487010111156105e157600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b634e487b7160e01b600052601160045260246000fd5b818103818111156102d6576102d6610603565b808201808211156102d6576102d6610603565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220a73de4cbb8a5e27177307ac6e686d6feae6c5831842443aa6662a0d5dd6ec1aa64736f6c63430008110033",
}

BankAccountMetaData contains all meta data concerning the BankAccount contract.

Functions

This section is empty.

Types

type BankAccount

type BankAccount struct {
	BankAccountCaller     // Read-only binding to the contract
	BankAccountTransactor // Write-only binding to the contract
	BankAccountFilterer   // Log filterer for contract events
}

BankAccount is an auto generated Go binding around an Ethereum contract.

func DeployBankAccount

func DeployBankAccount(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *BankAccount, error)

DeployBankAccount deploys a new Ethereum contract, binding an instance of BankAccount to it.

func NewBankAccount

func NewBankAccount(address common.Address, backend bind.ContractBackend) (*BankAccount, error)

NewBankAccount creates a new instance of BankAccount, bound to a specific deployed contract.

type BankAccountCaller

type BankAccountCaller struct {
	// contains filtered or unexported fields
}

BankAccountCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewBankAccountCaller

func NewBankAccountCaller(address common.Address, caller bind.ContractCaller) (*BankAccountCaller, error)

NewBankAccountCaller creates a new read-only instance of BankAccount, bound to a specific deployed contract.

func (*BankAccountCaller) AccountHolder

func (_BankAccount *BankAccountCaller) AccountHolder(opts *bind.CallOpts) (common.Address, error)

AccountHolder is a free data retrieval call binding the contract method 0xbe546079.

Solidity: function accountHolder() view returns(address)

func (*BankAccountCaller) TotalBalance

func (_BankAccount *BankAccountCaller) TotalBalance(opts *bind.CallOpts) (*big.Int, error)

TotalBalance is a free data retrieval call binding the contract method 0xad7a672f.

Solidity: function totalBalance() view returns(uint256)

type BankAccountCallerRaw

type BankAccountCallerRaw struct {
	Contract *BankAccountCaller // Generic read-only contract binding to access the raw methods on
}

BankAccountCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*BankAccountCallerRaw) Call

func (_BankAccount *BankAccountCallerRaw) 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 BankAccountCallerSession

type BankAccountCallerSession struct {
	Contract *BankAccountCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts      // Call options to use throughout this session
}

BankAccountCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*BankAccountCallerSession) AccountHolder

func (_BankAccount *BankAccountCallerSession) AccountHolder() (common.Address, error)

AccountHolder is a free data retrieval call binding the contract method 0xbe546079.

Solidity: function accountHolder() view returns(address)

func (*BankAccountCallerSession) TotalBalance

func (_BankAccount *BankAccountCallerSession) TotalBalance() (*big.Int, error)

TotalBalance is a free data retrieval call binding the contract method 0xad7a672f.

Solidity: function totalBalance() view returns(uint256)

type BankAccountFilterer

type BankAccountFilterer struct {
	// contains filtered or unexported fields
}

BankAccountFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewBankAccountFilterer

func NewBankAccountFilterer(address common.Address, filterer bind.ContractFilterer) (*BankAccountFilterer, error)

NewBankAccountFilterer creates a new log filterer instance of BankAccount, bound to a specific deployed contract.

type BankAccountRaw

type BankAccountRaw struct {
	Contract *BankAccount // Generic contract binding to access the raw methods on
}

BankAccountRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*BankAccountRaw) Call

func (_BankAccount *BankAccountRaw) 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 (*BankAccountRaw) Transact

func (_BankAccount *BankAccountRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*BankAccountRaw) Transfer

func (_BankAccount *BankAccountRaw) 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 BankAccountSession

type BankAccountSession struct {
	Contract     *BankAccount      // 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
}

BankAccountSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*BankAccountSession) AccountHolder

func (_BankAccount *BankAccountSession) AccountHolder() (common.Address, error)

AccountHolder is a free data retrieval call binding the contract method 0xbe546079.

Solidity: function accountHolder() view returns(address)

func (*BankAccountSession) Deposit

func (_BankAccount *BankAccountSession) Deposit() (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.

Solidity: function deposit() payable returns()

func (*BankAccountSession) TotalBalance

func (_BankAccount *BankAccountSession) TotalBalance() (*big.Int, error)

TotalBalance is a free data retrieval call binding the contract method 0xad7a672f.

Solidity: function totalBalance() view returns(uint256)

func (*BankAccountSession) Withdraw

func (_BankAccount *BankAccountSession) Withdraw(amount *big.Int, signature []byte) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x030ba25d.

Solidity: function withdraw(uint256 amount, bytes signature) returns()

type BankAccountTransactor

type BankAccountTransactor struct {
	// contains filtered or unexported fields
}

BankAccountTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewBankAccountTransactor

func NewBankAccountTransactor(address common.Address, transactor bind.ContractTransactor) (*BankAccountTransactor, error)

NewBankAccountTransactor creates a new write-only instance of BankAccount, bound to a specific deployed contract.

func (*BankAccountTransactor) Deposit

func (_BankAccount *BankAccountTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.

Solidity: function deposit() payable returns()

func (*BankAccountTransactor) Withdraw

func (_BankAccount *BankAccountTransactor) Withdraw(opts *bind.TransactOpts, amount *big.Int, signature []byte) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x030ba25d.

Solidity: function withdraw(uint256 amount, bytes signature) returns()

type BankAccountTransactorRaw

type BankAccountTransactorRaw struct {
	Contract *BankAccountTransactor // Generic write-only contract binding to access the raw methods on
}

BankAccountTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*BankAccountTransactorRaw) Transact

func (_BankAccount *BankAccountTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*BankAccountTransactorRaw) Transfer

func (_BankAccount *BankAccountTransactorRaw) 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 BankAccountTransactorSession

type BankAccountTransactorSession struct {
	Contract     *BankAccountTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts      // Transaction auth options to use throughout this session
}

BankAccountTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*BankAccountTransactorSession) Deposit

func (_BankAccount *BankAccountTransactorSession) Deposit() (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.

Solidity: function deposit() payable returns()

func (*BankAccountTransactorSession) Withdraw

func (_BankAccount *BankAccountTransactorSession) Withdraw(amount *big.Int, signature []byte) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x030ba25d.

Solidity: function withdraw(uint256 amount, bytes signature) returns()

Jump to

Keyboard shortcuts

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