book

package
v0.0.0-...-0653a19 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var BookABI = BookMetaData.ABI

BookABI is the input ABI used to generate the binding from. Deprecated: Use BookMetaData.ABI instead.

View Source
var BookBin = BookMetaData.Bin

BookBin is the compiled bytecode used for deploying new contracts. Deprecated: Use BookMetaData.Bin instead.

View Source
var BookMetaData = &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\":[{\"internalType\":\"string\",\"name\":\"betID\",\"type\":\"string\"}],\"name\":\"BetDetails\",\"outputs\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"State\",\"type\":\"uint8\"},{\"internalType\":\"address[]\",\"name\":\"Participants\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"Moderator\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"AmountBetWei\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"Expiration\",\"type\":\"uint256\"}],\"internalType\":\"structBook.BetInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"betID\",\"type\":\"string\"}],\"name\":\"CancelBetExpired\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"betID\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"amountFeeWei\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"CancelBetModerator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"betID\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"amountFeeWei\",\"type\":\"uint256\"}],\"name\":\"CancelBetOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"betID\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"amountFeeWei\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"nonces\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\"}],\"name\":\"CancelBetParticipants\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"Deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"Drain\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Nonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"Owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"betID\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"amountBetWei\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountFeeWei\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiration\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"moderator\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"participants\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"nonces\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\"}],\"name\":\"PlaceBet\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"betID\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"address[]\",\"name\":\"winners\",\"type\":\"address[]\"}],\"name\":\"ReconcileBet\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"Withdraw\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550614c9d806100606000396000f3fe6080604052600436106100dd5760003560e01c80637c64ce361161007f578063e2a06aca11610059578063e2a06aca1461026a578063e63f341f14610293578063ed21248c146102d0578063f8856b88146102da576100dd565b80637c64ce361461020c578063b4a99a4e14610235578063d67a073f14610260576100dd565b8063221da6a5116100bb578063221da6a51461015f57806330d0cee914610188578063364529e5146101c557806357ea89b614610202576100dd565b80630e302132146100e25780630ee216b71461010b5780630ef6788714610134575b600080fd5b3480156100ee57600080fd5b50610109600480360381019061010491906132e8565b610303565b005b34801561011757600080fd5b50610132600480360381019061012d91906133a8565b6108e5565b005b34801561014057600080fd5b50610149610b9c565b6040516101569190613413565b60405180910390f35b34801561016b57600080fd5b5061018660048036038101906101819190613547565b610be6565b005b34801561019457600080fd5b506101af60048036038101906101aa9190613607565b6111f2565b6040516101bc9190613413565b60405180910390f35b3480156101d157600080fd5b506101ec60048036038101906101e79190613634565b611297565b6040516101f991906137dc565b60405180910390f35b61020a6114b9565b005b34801561021857600080fd5b50610233600480360381019061022e91906137fe565b611654565b005b34801561024157600080fd5b5061024a611b83565b60405161025791906138b1565b60405180910390f35b610268611ba7565b005b34801561027657600080fd5b50610291600480360381019061028c91906138cc565b611cbc565b005b34801561029f57600080fd5b506102ba60048036038101906102b59190613607565b6124da565b6040516102c79190613413565b60405180910390f35b6102d861257f565b005b3480156102e657600080fd5b5061030160048036038101906102fc9190613634565b612684565b005b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461035b57600080fd5b600060028660405161036d9190613a67565b90815260200160405180910390209050600160ff168160000160000160009054906101000a900460ff1660ff16146103da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d190613adb565b60405180910390fd5b806000016004015442101561045e576103f242612947565b6104028260000160040154612947565b604051602001610413929190613bb9565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104559190613c3f565b60405180910390fd5b84600160008360000160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002015414610509576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161050090613cad565b60405180910390fd5b6000868260000160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168760405160200161054793929190613ccd565b60405160208183030381529060405280519060200120905060008061056d838888612acf565b915091508060000151156105bc5780602001516040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105b39190613c3f565b60405180910390fd5b8360000160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610651576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161064890613d57565b60405180910390fd5b60005b85518110156107185784600501600087838151811061067657610675613d77565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610705576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106fc90613e18565b60405180910390fd5b808061071090613e67565b915050610654565b5060006002856000016003015461072f9190613eaf565b905060008651826107409190613f20565b905060005b87518110156107d45781600160008a848151811061076657610765613d77565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010160008282546107ba9190613f51565b9250508190555080806107cc90613e67565b915050610745565b50600160008760000160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201600081548092919061084f90613e67565b919050555060028660000160000160006101000a81548160ff021916908360ff160217905550600086600001600301819055507fd3c51ea1865a5f43e30629abcc5e5f1f5a8a28d7cd45aface7cb4bb5c4a1a18a8b6040516020016108b49190613fab565b6040516020818303038152906040526040516108d09190613c3f565b60405180910390a15050505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461093d57600080fd5b600060028360405161094f9190613a67565b90815260200160405180910390209050600160ff168160000160000160009054906101000a900460ff1660ff16146109bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b390613adb565b60405180910390fd5b60008282600001600301546109d19190613fd1565b905060005b8260000160010180549050811015610b11578160016000856000016001018481548110610a0657610a05613d77565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000828254610a7d9190613f51565b9250508190555083600160008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000828254610af79190613f51565b925050819055508080610b0990613e67565b9150506109d6565b5060038260000160000160006101000a81548160ff021916908360ff160217905550600082600001600301819055507fd3c51ea1865a5f43e30629abcc5e5f1f5a8a28d7cd45aface7cb4bb5c4a1a18a84604051602001610b72919061402b565b604051602081830303815290604052604051610b8e9190613c3f565b60405180910390a150505050565b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154905090565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c3e57600080fd5b6000600286604051610c509190613a67565b90815260200160405180910390209050600160ff168160000160000160009054906101000a900460ff1660ff1614610cbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb490613adb565b60405180910390fd5b828290508160000160010180549050141580610ce457508351816000016001018054905014155b15610d24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1b906140c3565b60405180910390fd5b60005b816000016001018054905081101561100e576000826000016001018281548110610d5457610d53613d77565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000868381518110610d9657610d95613d77565b5b60200260200101519050366000878786818110610db657610db5613d77565b5b9050602002810190610dc891906140f2565b9150915082600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002015414610e7957610e1e84612c68565b604051602001610e2e919061417b565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e709190613c3f565b60405180910390fd5b60008b8585604051602001610e9093929190613ccd565b604051602081830303815290604052805190602001209050600080610eb6838686612acf565b91509150806000015115610f055780602001516040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610efc9190613c3f565b60405180910390fd5b8673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610f9c57610f4187612c68565b604051602001610f5191906141c7565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f939190613c3f565b60405180910390fd5b600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002016000815480929190610fef90613e67565b919050555050505050505050808061100690613e67565b915050610d27565b5060008582600001600301546110249190613fd1565b905060005b826000016001018054905081101561116457816001600085600001600101848154811061105957611058613d77565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010160008282546110d09190613f51565b9250508190555086600160008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101600082825461114a9190613f51565b92505081905550808061115c90613e67565b915050611029565b5060038260000160000160006101000a81548160ff021916908360ff160217905550600082600001600301819055507fd3c51ea1865a5f43e30629abcc5e5f1f5a8a28d7cd45aface7cb4bb5c4a1a18a876040516020016111c5919061425f565b6040516020818303038152906040526040516111e19190613c3f565b60405180910390a150505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461124d57600080fd5b600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201549050919050565b61129f612ecc565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146112f757600080fd5b600060ff1660028360405161130c9190613a67565b908152602001604051809103902060000160000160009054906101000a900460ff1660ff1603611371576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611368906142cd565b60405180910390fd5b6002826040516113819190613a67565b90815260200160405180910390206000016040518060a00160405290816000820160009054906101000a900460ff1660ff1660ff1681526020016001820180548060200260200160405190810160405280929190818152602001828054801561143f57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190600101908083116113f5575b505050505081526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015481526020016004820154815250509050919050565b60003390506000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154905060008103611548576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153f90614339565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561158e573d6000803e3d6000fd5b5080600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010160008282546115e19190613fd1565b925050819055507fd3c51ea1865a5f43e30629abcc5e5f1f5a8a28d7cd45aface7cb4bb5c4a1a18a61161233612c68565b61161b83612947565b60405160200161162c9291906143a5565b6040516020818303038152906040526040516116489190613c3f565b60405180910390a15050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146116ac57600080fd5b60006002866040516116be9190613a67565b90815260200160405180910390209050600160ff168160000160000160009054906101000a900460ff1660ff161461172b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172290613adb565b60405180910390fd5b83600160008360000160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020154146117d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117cd90613cad565b60405180910390fd5b6000868260000160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168660405160200161181493929190613ccd565b60405160208183030381529060405280519060200120905060008061183a838787612acf565b915091508060000151156118895780602001516040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118809190613c3f565b60405180910390fd5b8360000160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461191e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191590613d57565b60405180910390fd5b60008885600001600301546119339190613fd1565b905060005b8560000160010180549050811015611a7357816001600088600001600101848154811061196857611967613d77565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010160008282546119df9190613f51565b9250508190555089600160008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000828254611a599190613f51565b925050819055508080611a6b90613e67565b915050611938565b50600160008660000160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002016000815480929190611aee90613e67565b919050555060038560000160000160006101000a81548160ff021916908360ff160217905550600085600001600301819055507fd3c51ea1865a5f43e30629abcc5e5f1f5a8a28d7cd45aface7cb4bb5c4a1a18a8a604051602001611b53919061441c565b604051602081830303815290604052604051611b6f9190613c3f565b60405180910390a150505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611bff57600080fd5b600033905060004790508173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611c4f573d6000803e3d6000fd5b507fd3c51ea1865a5f43e30629abcc5e5f1f5a8a28d7cd45aface7cb4bb5c4a1a18a611c7a83612c68565b611c8383612947565b604051602001611c94929190614468565b604051602081830303815290604052604051611cb09190613c3f565b60405180910390a15050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d1457600080fd5b600060ff1660028a604051611d299190613a67565b908152602001604051809103902060000160000160009054906101000a900460ff1660ff1614611d8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8590614505565b60405180910390fd5b60008789611d9c9190613f51565b905060005b85518110156120ac576000868281518110611dbf57611dbe613d77565b5b602002602001015190506000868381518110611dde57611ddd613d77565b5b60200260200101519050366000878786818110611dfe57611dfd613d77565b5b9050602002810190611e1091906140f2565b9150915085600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101541015611ec257611e6784612c68565b604051602001611e77919061454b565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb99190613c3f565b60405180910390fd5b82600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002015414611f6f57611f1484612c68565b604051602001611f249190614597565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f669190613c3f565b60405180910390fd5b60008f8585604051602001611f8693929190613ccd565b604051602081830303815290604052805190602001209050600080611fac838686612acf565b91509150806000015115611ffb5780602001516040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ff29190613c3f565b60405180910390fd5b8673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146120925761203787612c68565b60405160200161204791906141c7565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120899190613c3f565b60405180910390fd5b5050505050505080806120a490613e67565b915050611da1565b506040518060a00160405280600160ff1681526020018681526020018773ffffffffffffffffffffffffffffffffffffffff1681526020018a81526020018881525060028b6040516120fe9190613a67565b908152602001604051809103902060000160008201518160000160006101000a81548160ff021916908360ff160217905550602082015181600101908051906020019061214c929190612f14565b5060408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550606082015181600301556080820151816004015590505060005b855181101561238c5760008682815181106121cc576121cb613d77565b5b6020026020010151905082600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010160008282546122289190613fd1565b92505081905550600160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201600081548092919061228290613e67565b919050555089600160008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010160008282546122fa9190613f51565b92505081905550600160028d6040516123139190613a67565b908152602001604051809103902060050160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050808061238490613e67565b9150506121ae565b50600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff16612478576040518060600160405280600115158152602001600081526020016000815250600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160010155604082015181600201559050505b7fd3c51ea1865a5f43e30629abcc5e5f1f5a8a28d7cd45aface7cb4bb5c4a1a18a8a6040516020016124aa91906145e3565b6040516020818303038152906040526040516124c69190613c3f565b60405180910390a150505050505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461253557600080fd5b600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101549050919050565b34600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010160008282546125d19190613f51565b925050819055507fd3c51ea1865a5f43e30629abcc5e5f1f5a8a28d7cd45aface7cb4bb5c4a1a18a61260233612c68565b61264d600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154612947565b60405160200161265e929190614655565b60405160208183030381529060405260405161267a9190613c3f565b60405180910390a1565b60006002826040516126969190613a67565b90815260200160405180910390209050600160ff168160000160000160009054906101000a900460ff1660ff1614612703576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126fa90613adb565b60405180910390fd5b62278d0081600001600401546127199190613f51565b42101561275b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161275290614718565b60405180910390fd5b8060050160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166127e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e0906147aa565b60405180910390fd5b60005b81600001600101805490508110156128b45781600001600301546001600084600001600101848154811061282357612822613d77565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101600082825461289a9190613f51565b9250508190555080806128ac90613e67565b9150506127ec565b5060038160000160000160006101000a81548160ff021916908360ff160217905550600081600001600301819055507fd3c51ea1865a5f43e30629abcc5e5f1f5a8a28d7cd45aface7cb4bb5c4a1a18a8261290e33612c68565b60405160200161291f929190614816565b60405160208183030381529060405260405161293b9190613c3f565b60405180910390a15050565b60606000820361298e576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612aca565b600082905060005b600082146129c05780806129a990613e67565b915050600a826129b99190613f20565b9150612996565b60008167ffffffffffffffff8111156129dc576129db613006565b5b6040519080825280601f01601f191660200182016040528015612a0e5781602001600182028036833780820191505090505b50905060008290505b60008614612ac257600181612a2c9190613fd1565b90506000600a8088612a3e9190613f20565b612a489190613eaf565b87612a539190613fd1565b6030612a5f9190614858565b905060008160f81b905080848481518110612a7d57612a7c613d77565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a88612ab99190613f20565b97505050612a17565b819450505050505b919050565b6000612ad9612f9e565b60418484905014612b2d576000612b246040518060400160405280601881526020017f696e76616c6964207369676e6174757265206c656e6774680000000000000000815250612e2b565b91509150612c60565b60006040518060400160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a333200000000815250905060008187604051602001612b7c9291906148ff565b60405160208183030381529060405280519060200120905060008686600090602092612baa93929190614931565b90612bb59190614984565b905060008787602090604092612bcd93929190614931565b90612bd89190614984565b9050600088886040818110612bf057612bef613d77565b5b9050013560f81c60f81b60f81c905060018482858560405160008152602001604052604051612c229493929190614a01565b6020604051602081039080840390855afa158015612c44573d6000803e3d6000fd5b50505060206040510351612c56612e52565b9650965050505050505b935093915050565b60606000602867ffffffffffffffff811115612c8757612c86613006565b5b6040519080825280601f01601f191660200182016040528015612cb95781602001600182028036833780820191505090505b50905060005b6014811015612e21576000816013612cd79190613fd1565b6008612ce39190613eaf565b6002612cef9190614b79565b8573ffffffffffffffffffffffffffffffffffffffff16612d109190613f20565b60f81b9050600060108260f81c612d279190614bc4565b60f81b905060008160f81c6010612d3e9190614bf5565b8360f81c612d4c9190614c32565b60f81b9050612d5a82612e86565b85856002612d689190613eaf565b81518110612d7957612d78613d77565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612db181612e86565b856001866002612dc19190613eaf565b612dcb9190613f51565b81518110612ddc57612ddb613d77565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505050508080612e1990613e67565b915050612cbf565b5080915050919050565b612e33612f9e565b6040518060400160405280600115158152602001838152509050919050565b612e5a612f9e565b604051806040016040528060001515815260200160405180602001604052806000815250815250905090565b6000600a8260f81c60ff161015612eb15760308260f81c612ea79190614858565b60f81b9050612ec7565b60578260f81c612ec19190614858565b60f81b90505b919050565b6040518060a00160405280600060ff16815260200160608152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081525090565b828054828255906000526020600020908101928215612f8d579160200282015b82811115612f8c5782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190612f34565b5b509050612f9a9190612fba565b5090565b6040518060400160405280600015158152602001606081525090565b5b80821115612fd3576000816000905550600101612fbb565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61303e82612ff5565b810181811067ffffffffffffffff8211171561305d5761305c613006565b5b80604052505050565b6000613070612fd7565b905061307c8282613035565b919050565b600067ffffffffffffffff82111561309c5761309b613006565b5b6130a582612ff5565b9050602081019050919050565b82818337600083830152505050565b60006130d46130cf84613081565b613066565b9050828152602081018484840111156130f0576130ef612ff0565b5b6130fb8482856130b2565b509392505050565b600082601f83011261311857613117612feb565b5b81356131288482602086016130c1565b91505092915050565b6000819050919050565b61314481613131565b811461314f57600080fd5b50565b6000813590506131618161313b565b92915050565b600080fd5b600080fd5b60008083601f84011261318757613186612feb565b5b8235905067ffffffffffffffff8111156131a4576131a3613167565b5b6020830191508360018202830111156131c0576131bf61316c565b5b9250929050565b600067ffffffffffffffff8211156131e2576131e1613006565b5b602082029050602081019050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061321e826131f3565b9050919050565b61322e81613213565b811461323957600080fd5b50565b60008135905061324b81613225565b92915050565b600061326461325f846131c7565b613066565b905080838252602082019050602084028301858111156132875761328661316c565b5b835b818110156132b0578061329c888261323c565b845260208401935050602081019050613289565b5050509392505050565b600082601f8301126132cf576132ce612feb565b5b81356132df848260208601613251565b91505092915050565b60008060008060006080868803121561330457613303612fe1565b5b600086013567ffffffffffffffff81111561332257613321612fe6565b5b61332e88828901613103565b955050602061333f88828901613152565b945050604086013567ffffffffffffffff8111156133605761335f612fe6565b5b61336c88828901613171565b9350935050606086013567ffffffffffffffff81111561338f5761338e612fe6565b5b61339b888289016132ba565b9150509295509295909350565b600080604083850312156133bf576133be612fe1565b5b600083013567ffffffffffffffff8111156133dd576133dc612fe6565b5b6133e985828601613103565b92505060206133fa85828601613152565b9150509250929050565b61340d81613131565b82525050565b60006020820190506134286000830184613404565b92915050565b600067ffffffffffffffff82111561344957613448613006565b5b602082029050602081019050919050565b600061346d6134688461342e565b613066565b905080838252602082019050602084028301858111156134905761348f61316c565b5b835b818110156134b957806134a58882613152565b845260208401935050602081019050613492565b5050509392505050565b600082601f8301126134d8576134d7612feb565b5b81356134e884826020860161345a565b91505092915050565b60008083601f84011261350757613506612feb565b5b8235905067ffffffffffffffff81111561352457613523613167565b5b6020830191508360208202830111156135405761353f61316c565b5b9250929050565b60008060008060006080868803121561356357613562612fe1565b5b600086013567ffffffffffffffff81111561358157613580612fe6565b5b61358d88828901613103565b955050602061359e88828901613152565b945050604086013567ffffffffffffffff8111156135bf576135be612fe6565b5b6135cb888289016134c3565b935050606086013567ffffffffffffffff8111156135ec576135eb612fe6565b5b6135f8888289016134f1565b92509250509295509295909350565b60006020828403121561361d5761361c612fe1565b5b600061362b8482850161323c565b91505092915050565b60006020828403121561364a57613649612fe1565b5b600082013567ffffffffffffffff81111561366857613667612fe6565b5b61367484828501613103565b91505092915050565b600060ff82169050919050565b6136938161367d565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6136ce81613213565b82525050565b60006136e083836136c5565b60208301905092915050565b6000602082019050919050565b600061370482613699565b61370e81856136a4565b9350613719836136b5565b8060005b8381101561374a57815161373188826136d4565b975061373c836136ec565b92505060018101905061371d565b5085935050505092915050565b61376081613131565b82525050565b600060a08301600083015161377e600086018261368a565b506020830151848203602086015261379682826136f9565b91505060408301516137ab60408601826136c5565b5060608301516137be6060860182613757565b5060808301516137d16080860182613757565b508091505092915050565b600060208201905081810360008301526137f68184613766565b905092915050565b60008060008060006080868803121561381a57613819612fe1565b5b600086013567ffffffffffffffff81111561383857613837612fe6565b5b61384488828901613103565b955050602061385588828901613152565b945050604061386688828901613152565b935050606086013567ffffffffffffffff81111561388757613886612fe6565b5b61389388828901613171565b92509250509295509295909350565b6138ab81613213565b82525050565b60006020820190506138c660008301846138a2565b92915050565b60008060008060008060008060006101008a8c0312156138ef576138ee612fe1565b5b60008a013567ffffffffffffffff81111561390d5761390c612fe6565b5b6139198c828d01613103565b995050602061392a8c828d01613152565b985050604061393b8c828d01613152565b975050606061394c8c828d01613152565b965050608061395d8c828d0161323c565b95505060a08a013567ffffffffffffffff81111561397e5761397d612fe6565b5b61398a8c828d016132ba565b94505060c08a013567ffffffffffffffff8111156139ab576139aa612fe6565b5b6139b78c828d016134c3565b93505060e08a013567ffffffffffffffff8111156139d8576139d7612fe6565b5b6139e48c828d016134f1565b92509250509295985092959850929598565b600081519050919050565b600081905092915050565b60005b83811015613a2a578082015181840152602081019050613a0f565b60008484015250505050565b6000613a41826139f6565b613a4b8185613a01565b9350613a5b818560208601613a0c565b80840191505092915050565b6000613a738284613a36565b915081905092915050565b600082825260208201905092915050565b7f626574206973206e6f74206c6976650000000000000000000000000000000000600082015250565b6000613ac5600f83613a7e565b9150613ad082613a8f565b602082019050919050565b60006020820190508181036000830152613af481613ab8565b9050919050565b7f62657420686173206e6f74207965742065787069726564203a20626c6f636b2e60008201527f74696d657374616d705b00000000000000000000000000000000000000000000602082015250565b6000613b57602a83613a01565b9150613b6282613afb565b602a82019050919050565b7f5d2065787069726174696f6e5b00000000000000000000000000000000000000815250565b7f5d00000000000000000000000000000000000000000000000000000000000000815250565b6000613bc482613b4a565b9150613bd08285613a36565b9150613bdb82613b6d565b600d82019150613beb8284613a36565b9150613bf682613b93565b6001820191508190509392505050565b6000613c11826139f6565b613c1b8185613a7e565b9350613c2b818560208601613a0c565b613c3481612ff5565b840191505092915050565b60006020820190508181036000830152613c598184613c06565b905092915050565b7f696e76616c6964206d6f64657261746f72206e6f6e6365000000000000000000600082015250565b6000613c97601783613a7e565b9150613ca282613c61565b602082019050919050565b60006020820190508181036000830152613cc681613c8a565b9050919050565b60006060820190508181036000830152613ce78186613c06565b9050613cf660208301856138a2565b613d036040830184613404565b949350505050565b7f696e76616c6964206d6f64657261746f72207369676e61747572650000000000600082015250565b6000613d41601b83613a7e565b9150613d4c82613d0b565b602082019050919050565b60006020820190508181036000830152613d7081613d34565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f77696e6e65722061646472657373206973206e6f74206120706172746963697060008201527f616e740000000000000000000000000000000000000000000000000000000000602082015250565b6000613e02602383613a7e565b9150613e0d82613da6565b604082019050919050565b60006020820190508181036000830152613e3181613df5565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613e7282613131565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613ea457613ea3613e38565b5b600182019050919050565b6000613eba82613131565b9150613ec583613131565b9250828202613ed381613131565b91508282048414831517613eea57613ee9613e38565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613f2b82613131565b9150613f3683613131565b925082613f4657613f45613ef1565b5b828204905092915050565b6000613f5c82613131565b9150613f6783613131565b9250828201905080821115613f7f57613f7e613e38565b5b92915050565b7f20686173206265656e207265636f6e63696c6564000000000000000000000000815250565b6000613fb78284613a36565b9150613fc282613f85565b60148201915081905092915050565b6000613fdc82613131565b9150613fe783613131565b9250828203905081811115613fff57613ffe613e38565b5b92915050565b7f20686173206265656e2063616e63656c6c6564206279206f776e657200000000815250565b60006140378284613a36565b915061404282614005565b601c8201915081905092915050565b7f696e76616c6964206e756d626572206f66207369676e617475726573206f722060008201527f6e6f6e6365730000000000000000000000000000000000000000000000000000602082015250565b60006140ad602683613a7e565b91506140b882614051565b604082019050919050565b600060208201905081810360008301526140dc816140a0565b9050919050565b600080fd5b600080fd5b600080fd5b6000808335600160200384360303811261410f5761410e6140e3565b5b80840192508235915067ffffffffffffffff821115614131576141306140e8565b5b60208301925060018202360383131561414d5761414c6140ed565b5b509250929050565b7f5d2068617320616e20696e76616c6964206e6f6e636500000000000000000000815250565b60006141878284613a36565b915061419282614155565b60168201915081905092915050565b7f206164647265737320646f65736e2774206d61746368207369676e6174757265815250565b60006141d38284613a36565b91506141de826141a1565b60208201915081905092915050565b7f20686173206265656e2063616e63656c6c656420627920616c6c20706172746960008201527f636970616e747300000000000000000000000000000000000000000000000000602082015250565b6000614249602783613a01565b9150614254826141ed565b602782019050919050565b600061426b8284613a36565b91506142768261423c565b915081905092915050565b7f62657420696420646f6573206e6f742065786973740000000000000000000000600082015250565b60006142b7601583613a7e565b91506142c282614281565b602082019050919050565b600060208201905081810360008301526142e6816142aa565b9050919050565b7f6e6f7420656e6f7567682062616c616e63650000000000000000000000000000600082015250565b6000614323601283613a7e565b915061432e826142ed565b602082019050919050565b6000602082019050818103600083015261435281614316565b9050919050565b7f77697468647261775b0000000000000000000000000000000000000000000000815250565b7f5d20616d6f756e745b0000000000000000000000000000000000000000000000815250565b60006143b082614359565b6009820191506143c08285613a36565b91506143cb8261437f565b6009820191506143db8284613a36565b91506143e682613b93565b6001820191508190509392505050565b7f20686173206265656e2063616e63656c6c6564206279206d6f64657261746f72815250565b60006144288284613a36565b9150614433826143f6565b60208201915081905092915050565b7f647261696e5b0000000000000000000000000000000000000000000000000000815250565b600061447382614442565b6006820191506144838285613a36565b915061448e8261437f565b60098201915061449e8284613a36565b91506144a982613b93565b6001820191508190509392505050565b7f62657420696420616c7265616479206578697374730000000000000000000000600082015250565b60006144ef601583613a7e565b91506144fa826144b9565b602082019050919050565b6000602082019050818103600083015261451e816144e2565b9050919050565b7f2068617320616e20696e73756666696369656e742062616c616e636500000000815250565b60006145578284613a36565b915061456282614525565b601c8201915081905092915050565b7f2068617320616e20696e76616c6964206e6f6e63650000000000000000000000815250565b60006145a38284613a36565b91506145ae82614571565b60158201915081905092915050565b7f20686173206265656e20616464656420746f207468652073797374656d000000815250565b60006145ef8284613a36565b91506145fa826145bd565b601d8201915081905092915050565b7f6465706f7369745b000000000000000000000000000000000000000000000000815250565b7f5d2062616c616e63655b00000000000000000000000000000000000000000000815250565b600061466082614609565b6008820191506146708285613a36565b915061467b8261462f565b600a8201915061468b8284613a36565b915061469682613b93565b6001820191508190509392505050565b7f62657473206d6179206f6e6c792062652063616e63656c65642033302b20646160008201527f79732061667465722065787069726174696f6e00000000000000000000000000602082015250565b6000614702603383613a7e565b915061470d826146a6565b604082019050919050565b60006020820190508181036000830152614731816146f5565b9050919050565b7f63616e63656c6572206973206e6f7420617574686f72697a656420746f20636160008201527f6e63656c20746869732062657400000000000000000000000000000000000000602082015250565b6000614794602d83613a7e565b915061479f82614738565b604082019050919050565b600060208201905081810360008301526147c381614787565b9050919050565b7f20686173206265656e2063616e63656c6c656420627920000000000000000000815250565b7f2073696e63652065787069726564000000000000000000000000000000000000815250565b60006148228285613a36565b915061482d826147ca565b60178201915061483d8284613a36565b9150614848826147f0565b600e820191508190509392505050565b60006148638261367d565b915061486e8361367d565b9250828201905060ff81111561488757614886613e38565b5b92915050565b600081519050919050565b600081905092915050565b60006148ae8261488d565b6148b88185614898565b93506148c8818560208601613a0c565b80840191505092915050565b6000819050919050565b6000819050919050565b6148f96148f4826148d4565b6148de565b82525050565b600061490b82856148a3565b915061491782846148e8565b6020820191508190509392505050565b600080fd5b600080fd5b6000808585111561494557614944614927565b5b838611156149565761495561492c565b5b6001850283019150848603905094509492505050565b600082905092915050565b600082821b905092915050565b6000614990838361496c565b8261499b81356148d4565b925060208210156149db576149d67fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83602003600802614977565b831692505b505092915050565b6149ec816148d4565b82525050565b6149fb8161367d565b82525050565b6000608082019050614a1660008301876149e3565b614a2360208301866149f2565b614a3060408301856149e3565b614a3d60608301846149e3565b95945050505050565b60008160011c9050919050565b6000808291508390505b6001851115614a9d57808604811115614a7957614a78613e38565b5b6001851615614a885780820291505b8081029050614a9685614a46565b9450614a5d565b94509492505050565b600082614ab65760019050614b72565b81614ac45760009050614b72565b8160018114614ada5760028114614ae457614b13565b6001915050614b72565b60ff841115614af657614af5613e38565b5b8360020a915084821115614b0d57614b0c613e38565b5b50614b72565b5060208310610133831016604e8410600b8410161715614b485782820a905083811115614b4357614b42613e38565b5b614b72565b614b558484846001614a53565b92509050818404811115614b6c57614b6b613e38565b5b81810290505b9392505050565b6000614b8482613131565b9150614b8f83613131565b9250614bbc7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484614aa6565b905092915050565b6000614bcf8261367d565b9150614bda8361367d565b925082614bea57614be9613ef1565b5b828204905092915050565b6000614c008261367d565b9150614c0b8361367d565b9250828202614c198161367d565b9150808214614c2b57614c2a613e38565b5b5092915050565b6000614c3d8261367d565b9150614c488361367d565b9250828203905060ff811115614c6157614c60613e38565b5b9291505056fea26469706673582212207a8077ee03e6e33a24287f207c41b62c236c7c1843683782034ed7dae0c008b964736f6c63430008110033",
}

BookMetaData contains all meta data concerning the Book contract.

Functions

This section is empty.

Types

type Book

type Book struct {
	BookCaller     // Read-only binding to the contract
	BookTransactor // Write-only binding to the contract
	BookFilterer   // Log filterer for contract events
}

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

func DeployBook

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

DeployBook deploys a new Ethereum contract, binding an instance of Book to it.

func NewBook

func NewBook(address common.Address, backend bind.ContractBackend) (*Book, error)

NewBook creates a new instance of Book, bound to a specific deployed contract.

type BookBetInfo

type BookBetInfo struct {
	State        uint8
	Participants []common.Address
	Moderator    common.Address
	AmountBetWei *big.Int
	Expiration   *big.Int
}

BookBetInfo is an auto generated low-level Go binding around an user-defined struct.

type BookCaller

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

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

func NewBookCaller

func NewBookCaller(address common.Address, caller bind.ContractCaller) (*BookCaller, error)

NewBookCaller creates a new read-only instance of Book, bound to a specific deployed contract.

func (*BookCaller) AccountBalance

func (_Book *BookCaller) 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 (*BookCaller) Balance

func (_Book *BookCaller) 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 (*BookCaller) BetDetails

func (_Book *BookCaller) BetDetails(opts *bind.CallOpts, betID string) (BookBetInfo, error)

BetDetails is a free data retrieval call binding the contract method 0x364529e5.

Solidity: function BetDetails(string betID) view returns((uint8,address[],address,uint256,uint256))

func (*BookCaller) Nonce

func (_Book *BookCaller) Nonce(opts *bind.CallOpts, account common.Address) (*big.Int, error)

Nonce is a free data retrieval call binding the contract method 0x30d0cee9.

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

func (*BookCaller) Owner

func (_Book *BookCaller) 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)

type BookCallerRaw

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

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

func (*BookCallerRaw) Call

func (_Book *BookCallerRaw) 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 BookCallerSession

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

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

func (*BookCallerSession) AccountBalance

func (_Book *BookCallerSession) 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 (*BookCallerSession) Balance

func (_Book *BookCallerSession) Balance() (*big.Int, error)

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

Solidity: function Balance() view returns(uint256)

func (*BookCallerSession) BetDetails

func (_Book *BookCallerSession) BetDetails(betID string) (BookBetInfo, error)

BetDetails is a free data retrieval call binding the contract method 0x364529e5.

Solidity: function BetDetails(string betID) view returns((uint8,address[],address,uint256,uint256))

func (*BookCallerSession) Nonce

func (_Book *BookCallerSession) Nonce(account common.Address) (*big.Int, error)

Nonce is a free data retrieval call binding the contract method 0x30d0cee9.

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

func (*BookCallerSession) Owner

func (_Book *BookCallerSession) Owner() (common.Address, error)

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

Solidity: function Owner() view returns(address)

type BookEventLog

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

BookEventLog represents a EventLog event raised by the Book contract.

type BookEventLogIterator

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

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

func (*BookEventLogIterator) Close

func (it *BookEventLogIterator) Close() error

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

func (*BookEventLogIterator) Error

func (it *BookEventLogIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BookEventLogIterator) Next

func (it *BookEventLogIterator) 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 BookFilterer

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

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

func NewBookFilterer

func NewBookFilterer(address common.Address, filterer bind.ContractFilterer) (*BookFilterer, error)

NewBookFilterer creates a new log filterer instance of Book, bound to a specific deployed contract.

func (*BookFilterer) FilterEventLog

func (_Book *BookFilterer) FilterEventLog(opts *bind.FilterOpts) (*BookEventLogIterator, error)

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

Solidity: event EventLog(string value)

func (*BookFilterer) ParseEventLog

func (_Book *BookFilterer) ParseEventLog(log types.Log) (*BookEventLog, error)

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

Solidity: event EventLog(string value)

func (*BookFilterer) WatchEventLog

func (_Book *BookFilterer) WatchEventLog(opts *bind.WatchOpts, sink chan<- *BookEventLog) (event.Subscription, error)

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

Solidity: event EventLog(string value)

type BookRaw

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

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

func (*BookRaw) Call

func (_Book *BookRaw) 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 (*BookRaw) Transact

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

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

func (*BookRaw) Transfer

func (_Book *BookRaw) 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 BookSession

type BookSession struct {
	Contract     *Book             // 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
}

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

func (*BookSession) AccountBalance

func (_Book *BookSession) 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 (*BookSession) Balance

func (_Book *BookSession) Balance() (*big.Int, error)

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

Solidity: function Balance() view returns(uint256)

func (*BookSession) BetDetails

func (_Book *BookSession) BetDetails(betID string) (BookBetInfo, error)

BetDetails is a free data retrieval call binding the contract method 0x364529e5.

Solidity: function BetDetails(string betID) view returns((uint8,address[],address,uint256,uint256))

func (*BookSession) CancelBetExpired

func (_Book *BookSession) CancelBetExpired(betID string) (*types.Transaction, error)

CancelBetExpired is a paid mutator transaction binding the contract method 0xf8856b88.

Solidity: function CancelBetExpired(string betID) returns()

func (*BookSession) CancelBetModerator

func (_Book *BookSession) CancelBetModerator(betID string, amountFeeWei *big.Int, nonce *big.Int, signature []byte) (*types.Transaction, error)

CancelBetModerator is a paid mutator transaction binding the contract method 0x7c64ce36.

Solidity: function CancelBetModerator(string betID, uint256 amountFeeWei, uint256 nonce, bytes signature) returns()

func (*BookSession) CancelBetOwner

func (_Book *BookSession) CancelBetOwner(betID string, amountFeeWei *big.Int) (*types.Transaction, error)

CancelBetOwner is a paid mutator transaction binding the contract method 0x0ee216b7.

Solidity: function CancelBetOwner(string betID, uint256 amountFeeWei) returns()

func (*BookSession) CancelBetParticipants

func (_Book *BookSession) CancelBetParticipants(betID string, amountFeeWei *big.Int, nonces []*big.Int, signatures [][]byte) (*types.Transaction, error)

CancelBetParticipants is a paid mutator transaction binding the contract method 0x221da6a5.

Solidity: function CancelBetParticipants(string betID, uint256 amountFeeWei, uint256[] nonces, bytes[] signatures) returns()

func (*BookSession) Deposit

func (_Book *BookSession) Deposit() (*types.Transaction, error)

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

Solidity: function Deposit() payable returns()

func (*BookSession) Drain

func (_Book *BookSession) Drain() (*types.Transaction, error)

Drain is a paid mutator transaction binding the contract method 0xd67a073f.

Solidity: function Drain() payable returns()

func (*BookSession) Nonce

func (_Book *BookSession) Nonce(account common.Address) (*big.Int, error)

Nonce is a free data retrieval call binding the contract method 0x30d0cee9.

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

func (*BookSession) Owner

func (_Book *BookSession) Owner() (common.Address, error)

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

Solidity: function Owner() view returns(address)

func (*BookSession) PlaceBet

func (_Book *BookSession) PlaceBet(betID string, amountBetWei *big.Int, amountFeeWei *big.Int, expiration *big.Int, moderator common.Address, participants []common.Address, nonces []*big.Int, signatures [][]byte) (*types.Transaction, error)

PlaceBet is a paid mutator transaction binding the contract method 0xe2a06aca.

Solidity: function PlaceBet(string betID, uint256 amountBetWei, uint256 amountFeeWei, uint256 expiration, address moderator, address[] participants, uint256[] nonces, bytes[] signatures) returns()

func (*BookSession) ReconcileBet

func (_Book *BookSession) ReconcileBet(betID string, nonce *big.Int, signature []byte, winners []common.Address) (*types.Transaction, error)

ReconcileBet is a paid mutator transaction binding the contract method 0x0e302132.

Solidity: function ReconcileBet(string betID, uint256 nonce, bytes signature, address[] winners) returns()

func (*BookSession) Withdraw

func (_Book *BookSession) Withdraw() (*types.Transaction, error)

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

Solidity: function Withdraw() payable returns()

type BookTransactor

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

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

func NewBookTransactor

func NewBookTransactor(address common.Address, transactor bind.ContractTransactor) (*BookTransactor, error)

NewBookTransactor creates a new write-only instance of Book, bound to a specific deployed contract.

func (*BookTransactor) CancelBetExpired

func (_Book *BookTransactor) CancelBetExpired(opts *bind.TransactOpts, betID string) (*types.Transaction, error)

CancelBetExpired is a paid mutator transaction binding the contract method 0xf8856b88.

Solidity: function CancelBetExpired(string betID) returns()

func (*BookTransactor) CancelBetModerator

func (_Book *BookTransactor) CancelBetModerator(opts *bind.TransactOpts, betID string, amountFeeWei *big.Int, nonce *big.Int, signature []byte) (*types.Transaction, error)

CancelBetModerator is a paid mutator transaction binding the contract method 0x7c64ce36.

Solidity: function CancelBetModerator(string betID, uint256 amountFeeWei, uint256 nonce, bytes signature) returns()

func (*BookTransactor) CancelBetOwner

func (_Book *BookTransactor) CancelBetOwner(opts *bind.TransactOpts, betID string, amountFeeWei *big.Int) (*types.Transaction, error)

CancelBetOwner is a paid mutator transaction binding the contract method 0x0ee216b7.

Solidity: function CancelBetOwner(string betID, uint256 amountFeeWei) returns()

func (*BookTransactor) CancelBetParticipants

func (_Book *BookTransactor) CancelBetParticipants(opts *bind.TransactOpts, betID string, amountFeeWei *big.Int, nonces []*big.Int, signatures [][]byte) (*types.Transaction, error)

CancelBetParticipants is a paid mutator transaction binding the contract method 0x221da6a5.

Solidity: function CancelBetParticipants(string betID, uint256 amountFeeWei, uint256[] nonces, bytes[] signatures) returns()

func (*BookTransactor) Deposit

func (_Book *BookTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function Deposit() payable returns()

func (*BookTransactor) Drain

func (_Book *BookTransactor) Drain(opts *bind.TransactOpts) (*types.Transaction, error)

Drain is a paid mutator transaction binding the contract method 0xd67a073f.

Solidity: function Drain() payable returns()

func (*BookTransactor) PlaceBet

func (_Book *BookTransactor) PlaceBet(opts *bind.TransactOpts, betID string, amountBetWei *big.Int, amountFeeWei *big.Int, expiration *big.Int, moderator common.Address, participants []common.Address, nonces []*big.Int, signatures [][]byte) (*types.Transaction, error)

PlaceBet is a paid mutator transaction binding the contract method 0xe2a06aca.

Solidity: function PlaceBet(string betID, uint256 amountBetWei, uint256 amountFeeWei, uint256 expiration, address moderator, address[] participants, uint256[] nonces, bytes[] signatures) returns()

func (*BookTransactor) ReconcileBet

func (_Book *BookTransactor) ReconcileBet(opts *bind.TransactOpts, betID string, nonce *big.Int, signature []byte, winners []common.Address) (*types.Transaction, error)

ReconcileBet is a paid mutator transaction binding the contract method 0x0e302132.

Solidity: function ReconcileBet(string betID, uint256 nonce, bytes signature, address[] winners) returns()

func (*BookTransactor) Withdraw

func (_Book *BookTransactor) Withdraw(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function Withdraw() payable returns()

type BookTransactorRaw

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

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

func (*BookTransactorRaw) Transact

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

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

func (*BookTransactorRaw) Transfer

func (_Book *BookTransactorRaw) 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 BookTransactorSession

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

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

func (*BookTransactorSession) CancelBetExpired

func (_Book *BookTransactorSession) CancelBetExpired(betID string) (*types.Transaction, error)

CancelBetExpired is a paid mutator transaction binding the contract method 0xf8856b88.

Solidity: function CancelBetExpired(string betID) returns()

func (*BookTransactorSession) CancelBetModerator

func (_Book *BookTransactorSession) CancelBetModerator(betID string, amountFeeWei *big.Int, nonce *big.Int, signature []byte) (*types.Transaction, error)

CancelBetModerator is a paid mutator transaction binding the contract method 0x7c64ce36.

Solidity: function CancelBetModerator(string betID, uint256 amountFeeWei, uint256 nonce, bytes signature) returns()

func (*BookTransactorSession) CancelBetOwner

func (_Book *BookTransactorSession) CancelBetOwner(betID string, amountFeeWei *big.Int) (*types.Transaction, error)

CancelBetOwner is a paid mutator transaction binding the contract method 0x0ee216b7.

Solidity: function CancelBetOwner(string betID, uint256 amountFeeWei) returns()

func (*BookTransactorSession) CancelBetParticipants

func (_Book *BookTransactorSession) CancelBetParticipants(betID string, amountFeeWei *big.Int, nonces []*big.Int, signatures [][]byte) (*types.Transaction, error)

CancelBetParticipants is a paid mutator transaction binding the contract method 0x221da6a5.

Solidity: function CancelBetParticipants(string betID, uint256 amountFeeWei, uint256[] nonces, bytes[] signatures) returns()

func (*BookTransactorSession) Deposit

func (_Book *BookTransactorSession) Deposit() (*types.Transaction, error)

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

Solidity: function Deposit() payable returns()

func (*BookTransactorSession) Drain

func (_Book *BookTransactorSession) Drain() (*types.Transaction, error)

Drain is a paid mutator transaction binding the contract method 0xd67a073f.

Solidity: function Drain() payable returns()

func (*BookTransactorSession) PlaceBet

func (_Book *BookTransactorSession) PlaceBet(betID string, amountBetWei *big.Int, amountFeeWei *big.Int, expiration *big.Int, moderator common.Address, participants []common.Address, nonces []*big.Int, signatures [][]byte) (*types.Transaction, error)

PlaceBet is a paid mutator transaction binding the contract method 0xe2a06aca.

Solidity: function PlaceBet(string betID, uint256 amountBetWei, uint256 amountFeeWei, uint256 expiration, address moderator, address[] participants, uint256[] nonces, bytes[] signatures) returns()

func (*BookTransactorSession) ReconcileBet

func (_Book *BookTransactorSession) ReconcileBet(betID string, nonce *big.Int, signature []byte, winners []common.Address) (*types.Transaction, error)

ReconcileBet is a paid mutator transaction binding the contract method 0x0e302132.

Solidity: function ReconcileBet(string betID, uint256 nonce, bytes signature, address[] winners) returns()

func (*BookTransactorSession) Withdraw

func (_Book *BookTransactorSession) 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