bank

package
v0.0.0-...-4a160f0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Overview

Package bank is generated code for accessing the single smart contract.

Index

Constants

This section is empty.

Variables

View Source
var BankABI = BankMetaData.ABI

BankABI is the input ABI used to generate the binding from. Deprecated: Use BankMetaData.ABI instead.

View Source
var BankBin = BankMetaData.Bin

BankBin is the compiled bytecode used for deploying new contracts. Deprecated: Use BankMetaData.Bin instead.

View Source
var BankMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"value\",\"type\":\"string\"}],\"name\":\"EventLog\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"AccountBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"Balance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"Deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"Owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"winner\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"losers\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"anteWei\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gameFeeWei\",\"type\":\"uint256\"}],\"name\":\"Reconcile\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"Version\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"Withdraw\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561000f575f80fd5b50335f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040518060400160405280600581526020017f302e312e300000000000000000000000000000000000000000000000000000008152506001908161009391906102d3565b506103a2565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061011457607f821691505b602082108103610127576101266100d0565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026101897fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261014e565b610193868361014e565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f6101d76101d26101cd846101ab565b6101b4565b6101ab565b9050919050565b5f819050919050565b6101f0836101bd565b6102046101fc826101de565b84845461015a565b825550505050565b5f90565b61021861020c565b6102238184846101e7565b505050565b5b818110156102465761023b5f82610210565b600181019050610229565b5050565b601f82111561028b5761025c8161012d565b6102658461013f565b81016020851015610274578190505b6102886102808561013f565b830182610228565b50505b505050565b5f82821c905092915050565b5f6102ab5f1984600802610290565b1980831691505092915050565b5f6102c3838361029c565b9150826002028217905092915050565b6102dc82610099565b67ffffffffffffffff8111156102f5576102f46100a3565b5b6102ff82546100fd565b61030a82828561024a565b5f60209050601f83116001811461033b575f8415610329578287015190505b61033385826102b8565b86555061039a565b601f1984166103498661012d565b5f5b828110156103705784890151825560018201915060208501945060208101905061034b565b8683101561038d5784890151610389601f89168261029c565b8355505b6001600288020188555050505b505050505050565b611b88806103af5f395ff3fe60806040526004361061006f575f3560e01c8063bb62860d1161004d578063bb62860d146100d1578063e63f341f146100fb578063ed21248c14610137578063fa84fd8e146101415761006f565b80630ef678871461007357806357ea89b61461009d578063b4a99a4e146100a7575b5f80fd5b34801561007e575f80fd5b50610087610169565b6040516100949190610f28565b60405180910390f35b6100a56101ad565b005b3480156100b2575f80fd5b506100bb610363565b6040516100c89190610f80565b60405180910390f35b3480156100dc575f80fd5b506100e5610386565b6040516100f29190611009565b60405180910390f35b348015610106575f80fd5b50610121600480360381019061011c919061105b565b610412565b60405161012e9190610f28565b60405180910390f35b61013f6104af565b005b34801561014c575f80fd5b5061016760048036038101906101629190611111565b6105a9565b005b5f60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905090565b5f3390505f60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205403610230576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610227906111df565b60405180910390fd5b5f60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508173ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f193505050501580156102b4573d5f803e3d5ffd5b505f60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055507fd3c51ea1865a5f43e30629abcc5e5f1f5a8a28d7cd45aface7cb4bb5c4a1a18a61032133610b97565b61032a83610d4d565b60405160200161033b9291906112a9565b6040516020818303038152906040526040516103579190611009565b60405180910390a15050565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6001805461039390611326565b80601f01602080910402602001604051908101604052809291908181526020018280546103bf90611326565b801561040a5780601f106103e15761010080835404028352916020019161040a565b820191905f5260205f20905b8154815290600101906020018083116103ed57829003601f168201915b505050505081565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461046a575f80fd5b60025f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b3460025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546104fb9190611383565b925050819055507fd3c51ea1865a5f43e30629abcc5e5f1f5a8a28d7cd45aface7cb4bb5c4a1a18a61052c33610b97565b61057260025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054610d4d565b604051602001610583929190611402565b60405160208183030381529060405260405161059f9190611009565b60405180910390a1565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146105ff575f80fd5b5f8290505f5b858590508110156108be578360025f88888581811061062757610626611452565b5b905060200201602081019061063c919061105b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20541015610828577fd3c51ea1865a5f43e30629abcc5e5f1f5a8a28d7cd45aface7cb4bb5c4a1a18a61070a60025f8989868181106106b6576106b5611452565b5b90506020020160208101906106cb919061105b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054610d4d565b61071386610d4d565b6040516020016107249291906114cb565b6040516020818303038152906040526040516107409190611009565b60405180910390a160025f87878481811061075e5761075d611452565b5b9050602002016020810190610773919061105b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054826107b89190611383565b91505f60025f8888858181106107d1576107d0611452565b5b90506020020160208101906107e6919061105b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055506108b1565b83826108349190611383565b91508360025f88888581811061084d5761084c611452565b5b9050602002016020810190610862919061105b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546108a9919061150c565b925050819055505b8080600101915050610605565b507fd3c51ea1865a5f43e30629abcc5e5f1f5a8a28d7cd45aface7cb4bb5c4a1a18a6108e984610d4d565b6108f284610d4d565b6108fb84610d4d565b60405160200161090d939291906115b1565b6040516020818303038152906040526040516109299190611009565b60405180910390a15f8103610973576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096a9061168d565b60405180910390fd5b81811015610a52578060025f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546109e79190611383565b925050819055507fd3c51ea1865a5f43e30629abcc5e5f1f5a8a28d7cd45aface7cb4bb5c4a1a18a610a1882610d4d565b604051602001610a28919061171b565b604051602081830303815290604052604051610a449190611009565b60405180910390a150610b90565b8181610a5e919061150c565b90508060025f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254610aac9190611383565b925050819055508160025f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254610b1f9190611383565b925050819055507fd3c51ea1865a5f43e30629abcc5e5f1f5a8a28d7cd45aface7cb4bb5c4a1a18a610b5082610d4d565b610b5984610d4d565b604051602001610b6a929190611797565b604051602081830303815290604052604051610b869190611009565b60405180910390a1505b5050505050565b60605f602867ffffffffffffffff811115610bb557610bb46117e7565b5b6040519080825280601f01601f191660200182016040528015610be75781602001600182028036833780820191505090505b5090505f5b6014811015610d43575f816013610c03919061150c565b6008610c0f9190611814565b6002610c1b9190611984565b8573ffffffffffffffffffffffffffffffffffffffff16610c3c91906119fb565b60f81b90505f60108260f81c610c529190611a37565b60f81b90505f8160f81c6010610c689190611a67565b8360f81c610c769190611aa3565b60f81b9050610c8482610ecb565b85856002610c929190611814565b81518110610ca357610ca2611452565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a905350610cda81610ecb565b856001866002610cea9190611814565b610cf49190611383565b81518110610d0557610d04611452565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053505050508080600101915050610bec565b5080915050919050565b60605f8203610d93576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050610ec6565b5f8290505f5b5f8214610dc2578080610dab90611ad7565b915050600a82610dbb91906119fb565b9150610d99565b5f8167ffffffffffffffff811115610ddd57610ddc6117e7565b5b6040519080825280601f01601f191660200182016040528015610e0f5781602001600182028036833780820191505090505b5090505f8290505b5f8614610ebe57600181610e2b919061150c565b90505f600a8088610e3c91906119fb565b610e469190611814565b87610e51919061150c565b6030610e5d9190611b1e565b90505f8160f81b905080848481518110610e7a57610e79611452565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a905350600a88610eb591906119fb565b97505050610e17565b819450505050505b919050565b5f600a8260f81c60ff161015610ef55760308260f81c610eeb9190611b1e565b60f81b9050610f0b565b60578260f81c610f059190611b1e565b60f81b90505b919050565b5f819050919050565b610f2281610f10565b82525050565b5f602082019050610f3b5f830184610f19565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610f6a82610f41565b9050919050565b610f7a81610f60565b82525050565b5f602082019050610f935f830184610f71565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f610fdb82610f99565b610fe58185610fa3565b9350610ff5818560208601610fb3565b610ffe81610fc1565b840191505092915050565b5f6020820190508181035f8301526110218184610fd1565b905092915050565b5f80fd5b5f80fd5b61103a81610f60565b8114611044575f80fd5b50565b5f8135905061105581611031565b92915050565b5f602082840312156110705761106f611029565b5b5f61107d84828501611047565b91505092915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126110a7576110a6611086565b5b8235905067ffffffffffffffff8111156110c4576110c361108a565b5b6020830191508360208202830111156110e0576110df61108e565b5b9250929050565b6110f081610f10565b81146110fa575f80fd5b50565b5f8135905061110b816110e7565b92915050565b5f805f805f6080868803121561112a57611129611029565b5b5f61113788828901611047565b955050602086013567ffffffffffffffff8111156111585761115761102d565b5b61116488828901611092565b94509450506040611177888289016110fd565b9250506060611188888289016110fd565b9150509295509295909350565b7f6e6f7420656e6f7567682062616c616e636500000000000000000000000000005f82015250565b5f6111c9601283610fa3565b91506111d482611195565b602082019050919050565b5f6020820190508181035f8301526111f6816111bd565b9050919050565b7f77697468647261775b0000000000000000000000000000000000000000000000815250565b5f81905092915050565b5f61123782610f99565b6112418185611223565b9350611251818560208601610fb3565b80840191505092915050565b7f5d20616d6f756e745b0000000000000000000000000000000000000000000000815250565b7f5d00000000000000000000000000000000000000000000000000000000000000815250565b5f6112b3826111fd565b6009820191506112c3828561122d565b91506112ce8261125d565b6009820191506112de828461122d565b91506112e982611283565b6001820191508190509392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061133d57607f821691505b6020821081036113505761134f6112f9565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61138d82610f10565b915061139883610f10565b92508282019050808211156113b0576113af611356565b5b92915050565b7f6465706f7369745b000000000000000000000000000000000000000000000000815250565b7f5d2062616c616e63655b00000000000000000000000000000000000000000000815250565b5f61140c826113b6565b60088201915061141c828561122d565b9150611427826113dc565b600a82019150611437828461122d565b915061144282611283565b6001820191508190509392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f6163636f756e742062616c616e63652000000000000000000000000000000000815250565b7f206973206c657373207468616e20616e74652000000000000000000000000000815250565b5f6114d58261147f565b6010820191506114e5828561122d565b91506114f0826114a5565b601382019150611500828461122d565b91508190509392505050565b5f61151682610f10565b915061152183610f10565b925082820390508181111561153957611538611356565b5b92915050565b7f616e74655b000000000000000000000000000000000000000000000000000000815250565b7f5d2067616d654665655b00000000000000000000000000000000000000000000815250565b7f5d20706f745b0000000000000000000000000000000000000000000000000000815250565b5f6115bb8261153f565b6005820191506115cb828661122d565b91506115d682611565565b600a820191506115e6828561122d565b91506115f18261158b565b600682019150611601828461122d565b915061160c82611283565b600182019150819050949350505050565b7f6e6f20706f74207761732063726561746564206261736564206f6e206163636f5f8201527f756e742062616c616e6365730000000000000000000000000000000000000000602082015250565b5f611677602c83610fa3565b91506116828261161d565b604082019050919050565b5f6020820190508181035f8301526116a48161166b565b9050919050565b7f706f74206c657373207468616e206665653a2077696e6e65725b305d206f776e5f8201527f65725b0000000000000000000000000000000000000000000000000000000000602082015250565b5f611705602383611223565b9150611710826116ab565b602382019050919050565b5f611725826116f9565b9150611731828461122d565b915061173c82611283565b60018201915081905092915050565b7f77696e6e65725b00000000000000000000000000000000000000000000000000815250565b7f5d206f776e65725b000000000000000000000000000000000000000000000000815250565b5f6117a18261174b565b6007820191506117b1828561122d565b91506117bc82611771565b6008820191506117cc828461122d565b91506117d782611283565b6001820191508190509392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f61181e82610f10565b915061182983610f10565b925082820261183781610f10565b9150828204841483151761184e5761184d611356565b5b5092915050565b5f8160011c9050919050565b5f808291508390505b60018511156118aa5780860481111561188657611885611356565b5b60018516156118955780820291505b80810290506118a385611855565b945061186a565b94509492505050565b5f826118c2576001905061197d565b816118cf575f905061197d565b81600181146118e557600281146118ef5761191e565b600191505061197d565b60ff84111561190157611900611356565b5b8360020a91508482111561191857611917611356565b5b5061197d565b5060208310610133831016604e8410600b84101617156119535782820a90508381111561194e5761194d611356565b5b61197d565b6119608484846001611861565b9250905081840481111561197757611976611356565b5b81810290505b9392505050565b5f61198e82610f10565b915061199983610f10565b92506119c67fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84846118b3565b905092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f611a0582610f10565b9150611a1083610f10565b925082611a2057611a1f6119ce565b5b828204905092915050565b5f60ff82169050919050565b5f611a4182611a2b565b9150611a4c83611a2b565b925082611a5c57611a5b6119ce565b5b828204905092915050565b5f611a7182611a2b565b9150611a7c83611a2b565b9250828202611a8a81611a2b565b9150808214611a9c57611a9b611356565b5b5092915050565b5f611aad82611a2b565b9150611ab883611a2b565b9250828203905060ff811115611ad157611ad0611356565b5b92915050565b5f611ae182610f10565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611b1357611b12611356565b5b600182019050919050565b5f611b2882611a2b565b9150611b3383611a2b565b9250828201905060ff811115611b4c57611b4b611356565b5b9291505056fea2646970667358221220f743320baa973005a218477e183398970762a245c8fe30b03412adaf6ebf5cb164736f6c63430008190033",
}

BankMetaData contains all meta data concerning the Bank contract.

Functions

This section is empty.

Types

type Bank

type Bank struct {
	BankCaller     // Read-only binding to the contract
	BankTransactor // Write-only binding to the contract
	BankFilterer   // Log filterer for contract events
}

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

func DeployBank

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

DeployBank deploys a new Ethereum contract, binding an instance of Bank to it.

func NewBank

func NewBank(address common.Address, backend bind.ContractBackend) (*Bank, error)

NewBank creates a new instance of Bank, bound to a specific deployed contract.

type BankCaller

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

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

func NewBankCaller

func NewBankCaller(address common.Address, caller bind.ContractCaller) (*BankCaller, error)

NewBankCaller creates a new read-only instance of Bank, bound to a specific deployed contract.

func (*BankCaller) AccountBalance

func (_Bank *BankCaller) AccountBalance(opts *bind.CallOpts, account common.Address) (*big.Int, error)

AccountBalance is a free data retrieval call binding the contract method 0xe63f341f.

Solidity: function AccountBalance(address account) view returns(uint256)

func (*BankCaller) Balance

func (_Bank *BankCaller) 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)

func (*BankCaller) Owner

func (_Bank *BankCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0xb4a99a4e.

Solidity: function Owner() view returns(address)

func (*BankCaller) Version

func (_Bank *BankCaller) Version(opts *bind.CallOpts) (string, error)

Version is a free data retrieval call binding the contract method 0xbb62860d.

Solidity: function Version() view returns(string)

type BankCallerRaw

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

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

func (*BankCallerRaw) Call

func (_Bank *BankCallerRaw) 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 BankCallerSession

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

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

func (*BankCallerSession) AccountBalance

func (_Bank *BankCallerSession) AccountBalance(account common.Address) (*big.Int, error)

AccountBalance is a free data retrieval call binding the contract method 0xe63f341f.

Solidity: function AccountBalance(address account) view returns(uint256)

func (*BankCallerSession) Balance

func (_Bank *BankCallerSession) Balance() (*big.Int, error)

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

Solidity: function Balance() view returns(uint256)

func (*BankCallerSession) Owner

func (_Bank *BankCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0xb4a99a4e.

Solidity: function Owner() view returns(address)

func (*BankCallerSession) Version

func (_Bank *BankCallerSession) Version() (string, error)

Version is a free data retrieval call binding the contract method 0xbb62860d.

Solidity: function Version() view returns(string)

type BankEventLog

type BankEventLog struct {
	Value string
	Raw   types.Log // Blockchain specific contextual infos
}

BankEventLog represents a EventLog event raised by the Bank contract.

type BankEventLogIterator

type BankEventLogIterator struct {
	Event *BankEventLog // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

BankEventLogIterator is returned from FilterEventLog and is used to iterate over the raw logs and unpacked data for EventLog events raised by the Bank contract.

func (*BankEventLogIterator) Close

func (it *BankEventLogIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*BankEventLogIterator) Error

func (it *BankEventLogIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BankEventLogIterator) Next

func (it *BankEventLogIterator) 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 BankFilterer

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

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

func NewBankFilterer

func NewBankFilterer(address common.Address, filterer bind.ContractFilterer) (*BankFilterer, error)

NewBankFilterer creates a new log filterer instance of Bank, bound to a specific deployed contract.

func (*BankFilterer) FilterEventLog

func (_Bank *BankFilterer) FilterEventLog(opts *bind.FilterOpts) (*BankEventLogIterator, error)

FilterEventLog is a free log retrieval operation binding the contract event 0xd3c51ea1865a5f43e30629abcc5e5f1f5a8a28d7cd45aface7cb4bb5c4a1a18a.

Solidity: event EventLog(string value)

func (*BankFilterer) ParseEventLog

func (_Bank *BankFilterer) ParseEventLog(log types.Log) (*BankEventLog, error)

ParseEventLog is a log parse operation binding the contract event 0xd3c51ea1865a5f43e30629abcc5e5f1f5a8a28d7cd45aface7cb4bb5c4a1a18a.

Solidity: event EventLog(string value)

func (*BankFilterer) WatchEventLog

func (_Bank *BankFilterer) WatchEventLog(opts *bind.WatchOpts, sink chan<- *BankEventLog) (event.Subscription, error)

WatchEventLog is a free log subscription operation binding the contract event 0xd3c51ea1865a5f43e30629abcc5e5f1f5a8a28d7cd45aface7cb4bb5c4a1a18a.

Solidity: event EventLog(string value)

type BankRaw

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

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

func (*BankRaw) Call

func (_Bank *BankRaw) 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 (*BankRaw) Transact

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

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

func (*BankRaw) Transfer

func (_Bank *BankRaw) 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 BankSession

type BankSession struct {
	Contract     *Bank             // 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
}

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

func (*BankSession) AccountBalance

func (_Bank *BankSession) AccountBalance(account common.Address) (*big.Int, error)

AccountBalance is a free data retrieval call binding the contract method 0xe63f341f.

Solidity: function AccountBalance(address account) view returns(uint256)

func (*BankSession) Balance

func (_Bank *BankSession) Balance() (*big.Int, error)

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

Solidity: function Balance() view returns(uint256)

func (*BankSession) Deposit

func (_Bank *BankSession) Deposit() (*types.Transaction, error)

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

Solidity: function Deposit() payable returns()

func (*BankSession) Owner

func (_Bank *BankSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0xb4a99a4e.

Solidity: function Owner() view returns(address)

func (*BankSession) Reconcile

func (_Bank *BankSession) Reconcile(winner common.Address, losers []common.Address, anteWei *big.Int, gameFeeWei *big.Int) (*types.Transaction, error)

Reconcile is a paid mutator transaction binding the contract method 0xfa84fd8e.

Solidity: function Reconcile(address winner, address[] losers, uint256 anteWei, uint256 gameFeeWei) returns()

func (*BankSession) Version

func (_Bank *BankSession) Version() (string, error)

Version is a free data retrieval call binding the contract method 0xbb62860d.

Solidity: function Version() view returns(string)

func (*BankSession) Withdraw

func (_Bank *BankSession) Withdraw() (*types.Transaction, error)

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

Solidity: function Withdraw() payable returns()

type BankTransactor

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

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

func NewBankTransactor

func NewBankTransactor(address common.Address, transactor bind.ContractTransactor) (*BankTransactor, error)

NewBankTransactor creates a new write-only instance of Bank, bound to a specific deployed contract.

func (*BankTransactor) Deposit

func (_Bank *BankTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function Deposit() payable returns()

func (*BankTransactor) Reconcile

func (_Bank *BankTransactor) Reconcile(opts *bind.TransactOpts, winner common.Address, losers []common.Address, anteWei *big.Int, gameFeeWei *big.Int) (*types.Transaction, error)

Reconcile is a paid mutator transaction binding the contract method 0xfa84fd8e.

Solidity: function Reconcile(address winner, address[] losers, uint256 anteWei, uint256 gameFeeWei) returns()

func (*BankTransactor) Withdraw

func (_Bank *BankTransactor) Withdraw(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function Withdraw() payable returns()

type BankTransactorRaw

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

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

func (*BankTransactorRaw) Transact

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

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

func (*BankTransactorRaw) Transfer

func (_Bank *BankTransactorRaw) 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 BankTransactorSession

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

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

func (*BankTransactorSession) Deposit

func (_Bank *BankTransactorSession) Deposit() (*types.Transaction, error)

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

Solidity: function Deposit() payable returns()

func (*BankTransactorSession) Reconcile

func (_Bank *BankTransactorSession) Reconcile(winner common.Address, losers []common.Address, anteWei *big.Int, gameFeeWei *big.Int) (*types.Transaction, error)

Reconcile is a paid mutator transaction binding the contract method 0xfa84fd8e.

Solidity: function Reconcile(address winner, address[] losers, uint256 anteWei, uint256 gameFeeWei) returns()

func (*BankTransactorSession) Withdraw

func (_Bank *BankTransactorSession) Withdraw() (*types.Transaction, error)

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

Solidity: function Withdraw() payable returns()

Jump to

Keyboard shortcuts

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