DegenGambit

package
v0.0.0-...-9240c2f Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NativeTokenAddress = "0x0000000000000000000000000000000000000000"
)

Variables

View Source
var DegenGambitABI = DegenGambitMetaData.ABI

DegenGambitABI is the input ABI used to generate the binding from. Deprecated: Use DegenGambitMetaData.ABI instead.

View Source
var DegenGambitBin = DegenGambitMetaData.Bin

DegenGambitBin is the compiled bytecode used for deploying new contracts. Deprecated: Use DegenGambitMetaData.Bin instead.

View Source
var DegenGambitMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"blocksToAct\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"costToSpin\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"costToRespin\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"BlocksToAct\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"CostToRespin\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"CostToSpin\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"DailyStreakReward\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"ImprovedCenterReel\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"ImprovedLeftReel\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"ImprovedRightReel\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"LastSpinBlock\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"LastSpinBoosted\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"LastStreakDay\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"LastStreakWeek\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"UnmodifiedCenterReel\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"UnmodifiedLeftReel\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"UnmodifiedRightReel\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"WeeklyStreakReward\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"accept\",\"inputs\":[],\"outputs\":[{\"name\":\"left\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"center\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"right\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"remainingEntropy\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"prize\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"allowance\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"spender\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"approve\",\"inputs\":[{\"name\":\"spender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"balanceOf\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"decimals\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"uint8\"}],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"inspectEntropy\",\"inputs\":[{\"name\":\"degenerate\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"inspectOutcome\",\"inputs\":[{\"name\":\"degenerate\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"left\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"center\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"right\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"remainingEntropy\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"prize\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"name\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"outcome\",\"inputs\":[{\"name\":\"entropy\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"boosted\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[{\"name\":\"left\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"center\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"right\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"remainingEntropy\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"payout\",\"inputs\":[{\"name\":\"left\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"center\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"right\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"result\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"prizes\",\"inputs\":[],\"outputs\":[{\"name\":\"payouts\",\"type\":\"uint256[5]\",\"internalType\":\"uint256[5]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"sampleImprovedCenterReel\",\"inputs\":[{\"name\":\"entropy\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"sampleImprovedLeftReel\",\"inputs\":[{\"name\":\"entropy\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"sampleImprovedRightReel\",\"inputs\":[{\"name\":\"entropy\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"sampleUnmodifiedCenterReel\",\"inputs\":[{\"name\":\"entropy\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"sampleUnmodifiedLeftReel\",\"inputs\":[{\"name\":\"entropy\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"sampleUnmodifiedRightReel\",\"inputs\":[{\"name\":\"entropy\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"spin\",\"inputs\":[{\"name\":\"boost\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"spinCost\",\"inputs\":[{\"name\":\"degenerate\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"supportsInterface\",\"inputs\":[{\"name\":\"interfaceID\",\"type\":\"bytes4\",\"internalType\":\"bytes4\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"symbol\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"totalSupply\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transfer\",\"inputs\":[{\"name\":\"to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferFrom\",\"inputs\":[{\"name\":\"from\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"Approval\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"spender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Award\",\"inputs\":[{\"name\":\"player\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"DailyStreak\",\"inputs\":[{\"name\":\"player\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"day\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Spin\",\"inputs\":[{\"name\":\"player\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"bonus\",\"type\":\"bool\",\"indexed\":true,\"internalType\":\"bool\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Transfer\",\"inputs\":[{\"name\":\"from\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"to\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"WeeklyStreak\",\"inputs\":[{\"name\":\"player\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"week\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"DeadlineExceeded\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ERC20InsufficientAllowance\",\"inputs\":[{\"name\":\"spender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"allowance\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"needed\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"ERC20InsufficientBalance\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"balance\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"needed\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"ERC20InvalidApprover\",\"inputs\":[{\"name\":\"approver\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"ERC20InvalidReceiver\",\"inputs\":[{\"name\":\"receiver\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"ERC20InvalidSender\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"ERC20InvalidSpender\",\"inputs\":[{\"name\":\"spender\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"InsufficientValue\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"OutcomeOutOfBounds\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ReentrancyGuardReentrantCall\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"WaitForTick\",\"inputs\":[]}]",
	Bin: "0x6102e060405263017d05f860809081526307711dc860a052630a6b29b060c052630d65359860e0526313594d686101005263165359506101205263194d653861014052631f417d086101605263223b88f06101805263253594d86101a052632b29aca86101c052632e23b8906101e05263311dc47861020052633711dc4861022052633a0be83061024052633d05f41861026052633e82fa0c61028052633f417d066102a05263400000006102c0526100bc9060069060136105ca565b50604080516102608101825263017d05f8815263047711e06020820152630a6b29b091810191909152630d653598606082015263105f41806080820152631653595060a082015263194d653860c0820152631c47712060e082015263223b88f061010082015263253594d861012082015263282fa0c0610140820152632e23b89061016082015263311dc478610180820152633417d0606101a0820152633a0be8306101c0820152633d05f4186101e0820152633dc47712610200820152633f417d06610220820152634000000061024082015261019e9060199060136105ca565b50604080516102608101825263017d05f8815263047711e060208201526307711dc891810191909152630d653598606082015263105f418060808201526313594d6860a082015263194d653860c0820152631c47712060e0820152631f417d0861010082015263253594d861012082015263282fa0c0610140820152632b29aca861016082015263311dc478610180820152633417d0606101a0820152633711dc486101c0820152633d05f4186101e0820152633dc47712610200820152633e82fa0c610220820152634000000061024082015261028090602c9060136105ca565b50604080516102608101825262268cce815263063bfca56020820152630946b47891810191909152630c516c4b6060820152631266dc22608082015263157193f560a082015263187c4bc860c0820152631e91bb9f60e082015263219c73726101008201526324a72b45610120820152632abc9b1c610140820152632dc752ef6101608201526330d20ac26101808201526336e77a996101a08201526339f2326c6101c0820152633cfcea3f6101e0820152633e7e7520610200820152633f3f3a90610220820152634000000061024082015261036190603f9060136105ca565b50604080516102608101825262268cce815263033144a16020820152630946b47891810191909152630c516c4b6060820152630f5c241e608082015263157193f560a082015263187c4bc860c0820152631b87039b60e082015263219c73726101008201526324a72b456101208201526327b1e318610140820152632dc752ef6101608201526330d20ac26101808201526333dcc2956101a08201526339f2326c6101c0820152633cfcea3f6101e0820152633dbdafaf610200820152633f3f3a9061022082015263400000006102408201526104429060529060136105ca565b50604080516102608101825262268cce815263033144a1602082015263063bfc7491810191909152630c516c4b6060820152630f5c241e6080820152631266dbf160a082015263187c4bc860c0820152631b87039b60e0820152631e91bb6e6101008201526324a72b456101208201526327b1e318610140820152632abc9aeb6101608201526330d20ac26101808201526333dcc2956101a08201526336e77a686101c0820152633cfcea3f6101e0820152633dbdafaf610200820152633e7e751f61022082015263400000006102408201526105239060659060136105ca565b5034801561053057600080fd5b506040516126dd3803806126dd83398101604081905261054f91610625565b6040518060400160405280600e81526020016d111959d95b89dcc811d85b589a5d60921b8152506040518060400160405280600681526020016511d05350925560d21b81525081600390816105a491906106f2565b5060046105b182826106f2565b5050600160055550607892909255607b55607c556107b0565b8260138101928215610600579160200282015b82811115610600578251829063ffffffff169055916020019190600101906105dd565b5061060c929150610610565b5090565b5b8082111561060c5760008155600101610611565b60008060006060848603121561063a57600080fd5b5050815160208301516040909301519094929350919050565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168061067d57607f821691505b60208210810361069d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156106ed57806000526020600020601f840160051c810160208510156106ca5750805b601f840160051c820191505b818110156106ea57600081556001016106d6565b50505b505050565b81516001600160401b0381111561070b5761070b610653565b61071f816107198454610669565b846106a3565b6020601f821160018114610753576000831561073b5750848201515b600019600385901b1c1916600184901b1784556106ea565b600084815260208120601f198516915b828110156107835787850151825560209485019460019092019101610763565b50848210156107a15786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b611f1e806107bf6000396000f3fe6080604052600436106102345760003560e01c806370a082311161012e578063bd0ebd4b116100ab578063df43230f1161006f578063df43230f14610706578063e4a2e5b31461071b578063eca8b78814610731578063fcb13e2614610751578063fcb9f0031461077e57600080fd5b8063bd0ebd4b1461063a578063be59cce31461065a578063d19476a014610670578063dd62ed3e14610690578063dd6fc50f146106d657600080fd5b8063a8b530e4116100f2578063a8b530e4146105a4578063a9059cbb146105c4578063ab6282c8146105e4578063b3dfa13d146105fa578063bac1d2311461061a57600080fd5b806370a082311461050457806382e826341461053a578063873c12271461055a57806395d89b411461057a57806397c870501461058f57600080fd5b80631e3dac95116101bc578063313ce56711610180578063313ce5671461046657806339fdf45f146104825780636499572f146104a257806365d032ea146104b75780636f785558146104e457600080fd5b80631e3dac951461039c57806321c58fba146103bc57806323b872dd146103e95780632852b71c146104095780632c932d011461044657600080fd5b8063095ea7b311610203578063095ea7b31461030557806311cceaf61461032557806317df75a81461034757806318160ddd146103675780631b5029621461037c57600080fd5b806301ffc9a71461024057806302de1a7e1461027557806306fdde03146102a3578063090ec510146102c557600080fd5b3661023b57005b600080fd5b34801561024c57600080fd5b5061026061025b366004611c26565b61079e565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b50610295610290366004611c50565b6107d5565b60405190815260200161026c565b3480156102af57600080fd5b506102b8610943565b60405161026c9190611c69565b3480156102d157600080fd5b506102e56102e0366004611ccc565b6109d5565b60408051948552602085019390935291830152606082015260800161026c565b34801561031157600080fd5b50610260610320366004611d0f565b610a39565b34801561033157600080fd5b5061033a610a51565b60405161026c9190611d39565b34801561035357600080fd5b50610295610362366004611d6a565b610add565b34801561037357600080fd5b50600254610295565b34801561038857600080fd5b50610295610397366004611c50565b610af1565b3480156103a857600080fd5b506102956103b7366004611c50565b610b08565b3480156103c857600080fd5b506102956103d7366004611d6a565b607e6020526000908152604090205481565b3480156103f557600080fd5b50610260610404366004611d85565b610b18565b34801561041557600080fd5b5061041e610b3e565b604080519586526020860194909452928401919091526060830152608082015260a00161026c565b34801561045257600080fd5b50610295610461366004611c50565b610c32565b34801561047257600080fd5b506040516000815260200161026c565b34801561048e57600080fd5b5061029561049d366004611c50565b610c42565b6104b56104b0366004611dc2565b610c52565b005b3480156104c357600080fd5b506102956104d2366004611d6a565b60796020526000908152604090205481565b3480156104f057600080fd5b506102956104ff366004611d6a565b610dfb565b34801561051057600080fd5b5061029561051f366004611d6a565b6001600160a01b031660009081526020819052604090205490565b34801561054657600080fd5b50610295610555366004611c50565b610e3f565b34801561056657600080fd5b50610295610575366004611c50565b610f9a565b34801561058657600080fd5b506102b86110f5565b34801561059b57600080fd5b50610295600581565b3480156105b057600080fd5b506102956105bf366004611c50565b611104565b3480156105d057600080fd5b506102606105df366004611d0f565b61125b565b3480156105f057600080fd5b50610295607b5481565b34801561060657600080fd5b50610295610615366004611ddd565b611269565b34801561062657600080fd5b50610295610635366004611c50565b61140a565b34801561064657600080fd5b50610295610655366004611c50565b611565565b34801561066657600080fd5b5061029560785481565b34801561067c57600080fd5b5061029561068b366004611c50565b611575565b34801561069c57600080fd5b506102956106ab366004611e09565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156106e257600080fd5b506102606106f1366004611d6a565b607a6020526000908152604090205460ff1681565b34801561071257600080fd5b50610295600181565b34801561072757600080fd5b50610295607c5481565b34801561073d57600080fd5b5061041e61074c366004611d6a565b611585565b34801561075d57600080fd5b5061029561076c366004611d6a565b607d6020526000908152604090205481565b34801561078a57600080fd5b50610295610799366004611c50565b6115e3565b60006301ffc9a760e01b6001600160e01b0319831614806107cf57506336372b0760e01b6001600160e01b03198316145b92915050565b6000633fffffff8216602c8201548110156107f35750600092915050565b602d548110156108065750600192915050565b602e548110156108195750600292915050565b602f5481101561082c5750600392915050565b60305481101561083f5750600492915050565b6031548110156108525750600592915050565b6032548110156108655750600692915050565b6033548110156108785750600792915050565b60345481101561088b5750600892915050565b60355481101561089e5750600992915050565b6036548110156108b15750600a92915050565b6037548110156108c45750600b92915050565b6038548110156108d75750600c92915050565b6039548110156108ea5750600d92915050565b603a548110156108fd5750600e92915050565b603b548110156109105750600f92915050565b603c548110156109235750601092915050565b602c60115b015481101561093a5750601192915050565b50601292915050565b60606003805461095290611e33565b80601f016020809104026020016040519081016040528092919081815260200182805461097e90611e33565b80156109cb5780601f106109a0576101008083540402835291602001916109cb565b820191906000526020600020905b8154815290600101906020018083116109ae57829003601f168201915b5050505050905090565b6000806000808415610a07576109ea8661140a565b93506109f586610e3f565b9250610a0086611104565b9150610a29565b610a10866115e3565b9350610a1b86610f9a565b9250610a26866107d5565b91505b605a86901c905092959194509250565b600033610a4781858561173e565b5060019392505050565b610a59611c08565b607b544760061c90610a6c906032611e83565b10610a7a574760061c610a88565b607b54610a88906032611e83565b8152607b544760041c90610a9d906064611e83565b10610aab574760041c610ab9565b607b54610ab9906064611e83565b602082015247600390811c604083015247901c60608201524760011c608082015290565b6000610ae882611750565b6107cf826117a0565b603f8160138110610b0157600080fd5b0154905081565b60528160138110610b0157600080fd5b600033610b268582856117e4565b610b31858585611867565b60019150505b9392505050565b6000806000806000610b4e6118c6565b610b57336118f0565b610b6033611750565b610b84610b6c336117a0565b336000908152607a602052604090205460ff166109d5565b92975090955093509150610b99858585611269565b604051909150339082156108fc029083906000818181858888f19350505050158015610bc9573d6000803e3d6000fd5b5060405181815233907f473edf73b107bf5d270ea55a7ea4ce98a1b5618dd196e00d5a48e101299b26d49060200160405180910390a2336000908152607a60209081526040808320805460ff191690556079909152812055610c2b6001600555565b9091929394565b60068160138110610b0157600080fd5b602c8160138110610b0157600080fd5b6000610c5d33610dfb565b905080341015610c805760405163044044a560e21b815260040160405180910390fd5b6000610c8f6201518042611e9a565b336000908152607d60205260409020549091508190610caf906001611ebc565b03610cf557610cbf33600161192f565b60405181815233907f7339b32ad075be5edc58045122d15281790b96f35286f3f1634c035214d641089060200160405180910390a25b336000908152607d60205260408120829055610d12600783611e9a565b336000908152607e60205260409020549091508190610d32906001611ebc565b03610d7857610d4233600561192f565b60405181815233907f54d4da66b33929b2506145c261e8c545c26a646f1bc3223a83cbd46daa391cf39060200160405180910390a25b336000908152607e602052604090208190558315610d9b57610d9b336001611969565b610da361199f565b33600081815260796020908152604080832094909455607a9052828120805460ff191688151590811790915592517fc028bd493df31fdde3d19c91126b5780fc658410d5fe9b0234e3c65675e0d9579190a350505050565b6078546001600160a01b0382166000908152607960205260408120549091610e2291611ebc565b610e2a61199f565b11610e37575050607c5490565b5050607b5490565b6000601e82901c633fffffff166052820154811015610e615750600092915050565b605354811015610e745750600192915050565b605454811015610e875750600292915050565b605554811015610e9a5750600392915050565b605654811015610ead5750600492915050565b605754811015610ec05750600592915050565b605854811015610ed35750600692915050565b605954811015610ee65750600792915050565b605a54811015610ef95750600892915050565b605b54811015610f0c5750600992915050565b605c54811015610f1f5750600a92915050565b605d54811015610f325750600b92915050565b605e54811015610f455750600c92915050565b605f54811015610f585750600d92915050565b606054811015610f6b5750600e92915050565b606154811015610f7e5750600f92915050565b606254811015610f915750601092915050565b60526011610928565b6000601e82901c633fffffff166019820154811015610fbc5750600092915050565b601a54811015610fcf5750600192915050565b601b54811015610fe25750600292915050565b601c54811015610ff55750600392915050565b601d548110156110085750600492915050565b601e5481101561101b5750600592915050565b601f5481101561102e5750600692915050565b6020548110156110415750600792915050565b6021548110156110545750600892915050565b6022548110156110675750600992915050565b60235481101561107a5750600a92915050565b60245481101561108d5750600b92915050565b6025548110156110a05750600c92915050565b6026548110156110b35750600d92915050565b6027548110156110c65750600e92915050565b6028548110156110d95750600f92915050565b6029548110156110ec5750601092915050565b60196011610928565b60606004805461095290611e33565b6000633fffffff821660658201548110156111225750600092915050565b6066548110156111355750600192915050565b6067548110156111485750600292915050565b60685481101561115b5750600392915050565b60695481101561116e5750600492915050565b606a548110156111815750600592915050565b606b548110156111945750600692915050565b606c548110156111a75750600792915050565b606d548110156111ba5750600892915050565b606e548110156111cd5750600992915050565b606f548110156111e05750600a92915050565b6070548110156111f35750600b92915050565b6071548110156112065750600c92915050565b6072548110156112195750600d92915050565b60735481101561122c5750600e92915050565b60745481101561123f5750600f92915050565b6075548110156112525750601092915050565b60656011610928565b600033610a47818585611867565b600060138410158061127c575060138310155b80611288575060138210155b156112a65760405163e1185f0160e01b815260040160405180910390fd5b50600083158015906112b757508115155b80156112c257508215155b15610b375781841480156112d557508284145b80156112e25750600f8411155b1561130d57607b546112f5906032611e83565b90504760061c81111561130857504760061c5b610b37565b818414801561131d575060108310155b801561132a5750600f8411155b1561135457607b5461133d906064611e83565b90504760041c81111561130857504760041c610b37565b8184141580156113645750838314155b80156113705750818314155b801561137d575060108410155b801561138a575060108310155b8015611397575060108210155b156113a657504760031c610b37565b81841480156113b55750828414155b80156113c2575060108410155b80156113cf575060108310155b156113de57504760031c610b37565b82841480156113ec57508183145b80156113f9575060108410155b15610b3757504760011c9392505050565b6000603c82901c633fffffff16603f82015481101561142c5750600092915050565b60405481101561143f5750600192915050565b6041548110156114525750600292915050565b6042548110156114655750600392915050565b6043548110156114785750600492915050565b60445481101561148b5750600592915050565b60455481101561149e5750600692915050565b6046548110156114b15750600792915050565b6047548110156114c45750600892915050565b6048548110156114d75750600992915050565b6049548110156114ea5750600a92915050565b604a548110156114fd5750600b92915050565b604b548110156115105750600c92915050565b604c548110156115235750600d92915050565b604d548110156115365750600e92915050565b604e548110156115495750600f92915050565b604f5481101561155c5750601092915050565b603f6011610928565b60198160138110610b0157600080fd5b60658160138110610b0157600080fd5b600080600080600061159686611750565b6115c36115a2876117a0565b6001600160a01b0388166000908152607a602052604090205460ff166109d5565b929750909550935091506115d8858585611269565b905091939590929450565b6000603c82901c633fffffff1660068201548110156116055750600092915050565b6007548110156116185750600192915050565b60085481101561162b5750600292915050565b60095481101561163e5750600392915050565b600a548110156116515750600492915050565b600b548110156116645750600592915050565b600c548110156116775750600692915050565b600d5481101561168a5750600792915050565b600e5481101561169d5750600892915050565b600f548110156116b05750600992915050565b6010548110156116c35750600a92915050565b6011548110156116d65750600b92915050565b6012548110156116e95750600c92915050565b6013548110156116fc5750600d92915050565b60145481101561170f5750600e92915050565b6015548110156117225750600f92915050565b6016548110156117355750601092915050565b60066011610928565b61174b8383836001611a09565b505050565b6078546001600160a01b0382166000908152607960205260409020546117769190611ebc565b61177e61199f565b111561179d5760405163559895a360e01b815260040160405180910390fd5b50565b6001600160a01b0316600081815260796020908152604091829020548251904081830152808301939093528151808403830181526060909301909152815191012090565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114611861578181101561185257604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064015b60405180910390fd5b61186184848484036000611a09565b50505050565b6001600160a01b03831661189157604051634b637e8f60e11b815260006004820152602401611849565b6001600160a01b0382166118bb5760405163ec442f0560e01b815260006004820152602401611849565b61174b838383611ade565b6002600554036118e957604051633ee5aeb560e01b815260040160405180910390fd5b6002600555565b6001600160a01b03811660009081526079602052604090205461191161199f565b1161179d5760405163bfc2936d60e01b815260040160405180910390fd5b6001600160a01b0382166119595760405163ec442f0560e01b815260006004820152602401611849565b61196560008383611ade565b5050565b6001600160a01b03821661199357604051634b637e8f60e11b815260006004820152602401611849565b61196582600083611ade565b600060646001600160a01b031663a3b1b31d6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156119e0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a049190611ecf565b905090565b6001600160a01b038416611a335760405163e602df0560e01b815260006004820152602401611849565b6001600160a01b038316611a5d57604051634a1406b160e11b815260006004820152602401611849565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561186157826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051611ad091815260200190565b60405180910390a350505050565b6001600160a01b038316611b09578060026000828254611afe9190611ebc565b90915550611b7b9050565b6001600160a01b03831660009081526020819052604090205481811015611b5c5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401611849565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216611b9757600280548290039055611bb6565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611bfb91815260200190565b60405180910390a3505050565b6040518060a001604052806005906020820280368337509192915050565b600060208284031215611c3857600080fd5b81356001600160e01b031981168114610b3757600080fd5b600060208284031215611c6257600080fd5b5035919050565b602081526000825180602084015260005b81811015611c975760208186018101516040868401015201611c7a565b506000604082850101526040601f19601f83011684010191505092915050565b80358015158114611cc757600080fd5b919050565b60008060408385031215611cdf57600080fd5b82359150611cef60208401611cb7565b90509250929050565b80356001600160a01b0381168114611cc757600080fd5b60008060408385031215611d2257600080fd5b611d2b83611cf8565b946020939093013593505050565b60a08101818360005b6005811015611d61578151835260209283019290910190600101611d42565b50505092915050565b600060208284031215611d7c57600080fd5b610b3782611cf8565b600080600060608486031215611d9a57600080fd5b611da384611cf8565b9250611db160208501611cf8565b929592945050506040919091013590565b600060208284031215611dd457600080fd5b610b3782611cb7565b600080600060608486031215611df257600080fd5b505081359360208301359350604090920135919050565b60008060408385031215611e1c57600080fd5b611e2583611cf8565b9150611cef60208401611cf8565b600181811c90821680611e4757607f821691505b602082108103611e6757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176107cf576107cf611e6d565b600082611eb757634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156107cf576107cf611e6d565b600060208284031215611ee157600080fd5b505191905056fea2646970667358221220a74b94ab7f75294bd19159e34452d7968c92ae8c85c1ee4ef232664b3a6a6ab764736f6c634300081a0033",
}
View Source
var ErrNoRPCURL error = errors.New("no RPC URL provided -- please pass an RPC URL from the command line or set the DEGEN_GAMBIT_RPC_URL environment variable")

Functions

func CalculateSafeTxHash

func CalculateSafeTxHash(safeAddress common.Address, txData SafeTransactionData, chainID *big.Int) (common.Hash, error)

func CreateAcceptCommand

func CreateAcceptCommand() *cobra.Command

func CreateAllowanceCommand

func CreateAllowanceCommand() *cobra.Command

func CreateApproveCommand

func CreateApproveCommand() *cobra.Command

func CreateBalanceOfCommand

func CreateBalanceOfCommand() *cobra.Command

func CreateBlocksToActCommand

func CreateBlocksToActCommand() *cobra.Command

func CreateCostToRespinCommand

func CreateCostToRespinCommand() *cobra.Command

func CreateCostToSpinCommand

func CreateCostToSpinCommand() *cobra.Command

func CreateDailyStreakRewardCommand

func CreateDailyStreakRewardCommand() *cobra.Command

func CreateDecimalsCommand

func CreateDecimalsCommand() *cobra.Command

func CreateDegenGambitCommand

func CreateDegenGambitCommand() *cobra.Command

func CreateDegenGambitDeploymentCommand

func CreateDegenGambitDeploymentCommand() *cobra.Command

func CreateImprovedCenterReelCommand

func CreateImprovedCenterReelCommand() *cobra.Command

func CreateImprovedLeftReelCommand

func CreateImprovedLeftReelCommand() *cobra.Command

func CreateImprovedRightReelCommand

func CreateImprovedRightReelCommand() *cobra.Command

func CreateInspectEntropyCommand

func CreateInspectEntropyCommand() *cobra.Command

func CreateInspectOutcomeCommand

func CreateInspectOutcomeCommand() *cobra.Command

func CreateLastSpinBlockCommand

func CreateLastSpinBlockCommand() *cobra.Command

func CreateLastSpinBoostedCommand

func CreateLastSpinBoostedCommand() *cobra.Command

func CreateLastStreakDayCommand

func CreateLastStreakDayCommand() *cobra.Command

func CreateLastStreakWeekCommand

func CreateLastStreakWeekCommand() *cobra.Command

func CreateNameCommand

func CreateNameCommand() *cobra.Command

func CreateOutcomeCommand

func CreateOutcomeCommand() *cobra.Command

func CreatePayoutCommand

func CreatePayoutCommand() *cobra.Command

func CreatePrizesCommand

func CreatePrizesCommand() *cobra.Command

func CreateReceiveCommand

func CreateReceiveCommand() *cobra.Command

func CreateSafeProposal

func CreateSafeProposal(client *ethclient.Client, key *keystore.Key, safeAddress common.Address, to common.Address, data []byte, value *big.Int, safeApi string, safeOperationType SafeOperationType) error

func CreateSampleImprovedCenterReelCommand

func CreateSampleImprovedCenterReelCommand() *cobra.Command

func CreateSampleImprovedLeftReelCommand

func CreateSampleImprovedLeftReelCommand() *cobra.Command

func CreateSampleImprovedRightReelCommand

func CreateSampleImprovedRightReelCommand() *cobra.Command

func CreateSampleUnmodifiedCenterReelCommand

func CreateSampleUnmodifiedCenterReelCommand() *cobra.Command

func CreateSampleUnmodifiedLeftReelCommand

func CreateSampleUnmodifiedLeftReelCommand() *cobra.Command

func CreateSampleUnmodifiedRightReelCommand

func CreateSampleUnmodifiedRightReelCommand() *cobra.Command

func CreateSpinCommand

func CreateSpinCommand() *cobra.Command

func CreateSpinCostCommand

func CreateSpinCostCommand() *cobra.Command

func CreateSupportsInterfaceCommand

func CreateSupportsInterfaceCommand() *cobra.Command

func CreateSymbolCommand

func CreateSymbolCommand() *cobra.Command

func CreateTotalSupplyCommand

func CreateTotalSupplyCommand() *cobra.Command

func CreateTransferCommand

func CreateTransferCommand() *cobra.Command

func CreateTransferFromCommand

func CreateTransferFromCommand() *cobra.Command

func CreateUnmodifiedCenterReelCommand

func CreateUnmodifiedCenterReelCommand() *cobra.Command

func CreateUnmodifiedLeftReelCommand

func CreateUnmodifiedLeftReelCommand() *cobra.Command

func CreateUnmodifiedRightReelCommand

func CreateUnmodifiedRightReelCommand() *cobra.Command

func CreateWeeklyStreakRewardCommand

func CreateWeeklyStreakRewardCommand() *cobra.Command

func DeployWithSafe

func DeployWithSafe(client *ethclient.Client, key *keystore.Key, safeAddress common.Address, factoryAddress common.Address, value *big.Int, safeApi string, deployBytecode []byte, safeOperationType SafeOperationType, salt [32]byte) error

func KeyFromFile

func KeyFromFile(keystoreFile string, password string) (*keystore.Key, error)

Loads a key from file, prompting the user for the password if it is not provided as a function argument.

func NewChainContext

func NewChainContext(timeout uint) (context.Context, context.CancelFunc)

Creates a new context to be used when interacting with the chain client.

func NewClient

func NewClient(rpcURL string) (*ethclient.Client, error)

Generates an Ethereum client to the JSONRPC API at the given URL. If rpcURL is empty, then it attempts to read the RPC URL from the DEGEN_GAMBIT_RPC_URL environment variable. If that is empty, too, then it returns an error.

func PredictDeploymentAddressSafe

func PredictDeploymentAddressSafe(from common.Address, salt [32]byte, deployBytecode []byte) (common.Address, error)

func SetCallParametersFromArgs

func SetCallParametersFromArgs(opts *bind.CallOpts, pending bool, fromAddress, blockNumber string)

This method is used to set the parameters on a view call from command line arguments (represented mostly as strings).

func SetTransactionParametersFromArgs

func SetTransactionParametersFromArgs(opts *bind.TransactOpts, nonce, value, gasPrice, maxFeePerGas, maxPriorityFeePerGas string, gasLimit uint64, noSend bool)

This method is used to set the parameters on a transaction from command line arguments (represented mostly as strings).

func UnlockKeystore

func UnlockKeystore(keystoreData []byte, password string) (*keystore.Key, error)

Unlocks a key from a keystore (byte contents of a keystore file) with the given password.

Types

type DegenGambit

type DegenGambit struct {
	DegenGambitCaller     // Read-only binding to the contract
	DegenGambitTransactor // Write-only binding to the contract
	DegenGambitFilterer   // Log filterer for contract events
}

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

func DeployDegenGambit

func DeployDegenGambit(auth *bind.TransactOpts, backend bind.ContractBackend, blocksToAct *big.Int, costToSpin *big.Int, costToRespin *big.Int) (common.Address, *types.Transaction, *DegenGambit, error)

DeployDegenGambit deploys a new Ethereum contract, binding an instance of DegenGambit to it.

func NewDegenGambit

func NewDegenGambit(address common.Address, backend bind.ContractBackend) (*DegenGambit, error)

NewDegenGambit creates a new instance of DegenGambit, bound to a specific deployed contract.

type DegenGambitApproval

type DegenGambitApproval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

DegenGambitApproval represents a Approval event raised by the DegenGambit contract.

type DegenGambitApprovalIterator

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

DegenGambitApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the DegenGambit contract.

func (*DegenGambitApprovalIterator) Close

func (it *DegenGambitApprovalIterator) Close() error

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

func (*DegenGambitApprovalIterator) Error

func (it *DegenGambitApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DegenGambitApprovalIterator) Next

func (it *DegenGambitApprovalIterator) 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 DegenGambitAward

type DegenGambitAward struct {
	Player common.Address
	Value  *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

DegenGambitAward represents a Award event raised by the DegenGambit contract.

type DegenGambitAwardIterator

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

DegenGambitAwardIterator is returned from FilterAward and is used to iterate over the raw logs and unpacked data for Award events raised by the DegenGambit contract.

func (*DegenGambitAwardIterator) Close

func (it *DegenGambitAwardIterator) Close() error

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

func (*DegenGambitAwardIterator) Error

func (it *DegenGambitAwardIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DegenGambitAwardIterator) Next

func (it *DegenGambitAwardIterator) 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 DegenGambitCaller

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

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

func NewDegenGambitCaller

func NewDegenGambitCaller(address common.Address, caller bind.ContractCaller) (*DegenGambitCaller, error)

NewDegenGambitCaller creates a new read-only instance of DegenGambit, bound to a specific deployed contract.

func (*DegenGambitCaller) Allowance

func (_DegenGambit *DegenGambitCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*DegenGambitCaller) BalanceOf

func (_DegenGambit *DegenGambitCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

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

func (*DegenGambitCaller) BlocksToAct

func (_DegenGambit *DegenGambitCaller) BlocksToAct(opts *bind.CallOpts) (*big.Int, error)

BlocksToAct is a free data retrieval call binding the contract method 0xbe59cce3.

Solidity: function BlocksToAct() view returns(uint256)

func (*DegenGambitCaller) CostToRespin

func (_DegenGambit *DegenGambitCaller) CostToRespin(opts *bind.CallOpts) (*big.Int, error)

CostToRespin is a free data retrieval call binding the contract method 0xe4a2e5b3.

Solidity: function CostToRespin() view returns(uint256)

func (*DegenGambitCaller) CostToSpin

func (_DegenGambit *DegenGambitCaller) CostToSpin(opts *bind.CallOpts) (*big.Int, error)

CostToSpin is a free data retrieval call binding the contract method 0xab6282c8.

Solidity: function CostToSpin() view returns(uint256)

func (*DegenGambitCaller) DailyStreakReward

func (_DegenGambit *DegenGambitCaller) DailyStreakReward(opts *bind.CallOpts) (*big.Int, error)

DailyStreakReward is a free data retrieval call binding the contract method 0xdf43230f.

Solidity: function DailyStreakReward() view returns(uint256)

func (*DegenGambitCaller) Decimals

func (_DegenGambit *DegenGambitCaller) Decimals(opts *bind.CallOpts) (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() pure returns(uint8)

func (*DegenGambitCaller) ImprovedCenterReel

func (_DegenGambit *DegenGambitCaller) ImprovedCenterReel(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

ImprovedCenterReel is a free data retrieval call binding the contract method 0x1e3dac95.

Solidity: function ImprovedCenterReel(uint256 ) view returns(uint256)

func (*DegenGambitCaller) ImprovedLeftReel

func (_DegenGambit *DegenGambitCaller) ImprovedLeftReel(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

ImprovedLeftReel is a free data retrieval call binding the contract method 0x1b502962.

Solidity: function ImprovedLeftReel(uint256 ) view returns(uint256)

func (*DegenGambitCaller) ImprovedRightReel

func (_DegenGambit *DegenGambitCaller) ImprovedRightReel(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

ImprovedRightReel is a free data retrieval call binding the contract method 0xd19476a0.

Solidity: function ImprovedRightReel(uint256 ) view returns(uint256)

func (*DegenGambitCaller) InspectEntropy

func (_DegenGambit *DegenGambitCaller) InspectEntropy(opts *bind.CallOpts, degenerate common.Address) (*big.Int, error)

InspectEntropy is a free data retrieval call binding the contract method 0x17df75a8.

Solidity: function inspectEntropy(address degenerate) view returns(uint256)

func (*DegenGambitCaller) InspectOutcome

func (_DegenGambit *DegenGambitCaller) InspectOutcome(opts *bind.CallOpts, degenerate common.Address) (struct {
	Left             *big.Int
	Center           *big.Int
	Right            *big.Int
	RemainingEntropy *big.Int
	Prize            *big.Int
}, error)

InspectOutcome is a free data retrieval call binding the contract method 0xeca8b788.

Solidity: function inspectOutcome(address degenerate) view returns(uint256 left, uint256 center, uint256 right, uint256 remainingEntropy, uint256 prize)

func (*DegenGambitCaller) LastSpinBlock

func (_DegenGambit *DegenGambitCaller) LastSpinBlock(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

LastSpinBlock is a free data retrieval call binding the contract method 0x65d032ea.

Solidity: function LastSpinBlock(address ) view returns(uint256)

func (*DegenGambitCaller) LastSpinBoosted

func (_DegenGambit *DegenGambitCaller) LastSpinBoosted(opts *bind.CallOpts, arg0 common.Address) (bool, error)

LastSpinBoosted is a free data retrieval call binding the contract method 0xdd6fc50f.

Solidity: function LastSpinBoosted(address ) view returns(bool)

func (*DegenGambitCaller) LastStreakDay

func (_DegenGambit *DegenGambitCaller) LastStreakDay(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

LastStreakDay is a free data retrieval call binding the contract method 0xfcb13e26.

Solidity: function LastStreakDay(address ) view returns(uint256)

func (*DegenGambitCaller) LastStreakWeek

func (_DegenGambit *DegenGambitCaller) LastStreakWeek(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

LastStreakWeek is a free data retrieval call binding the contract method 0x21c58fba.

Solidity: function LastStreakWeek(address ) view returns(uint256)

func (*DegenGambitCaller) Name

func (_DegenGambit *DegenGambitCaller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*DegenGambitCaller) Outcome

func (_DegenGambit *DegenGambitCaller) Outcome(opts *bind.CallOpts, entropy *big.Int, boosted bool) (struct {
	Left             *big.Int
	Center           *big.Int
	Right            *big.Int
	RemainingEntropy *big.Int
}, error)

Outcome is a free data retrieval call binding the contract method 0x090ec510.

Solidity: function outcome(uint256 entropy, bool boosted) view returns(uint256 left, uint256 center, uint256 right, uint256 remainingEntropy)

func (*DegenGambitCaller) Payout

func (_DegenGambit *DegenGambitCaller) Payout(opts *bind.CallOpts, left *big.Int, center *big.Int, right *big.Int) (*big.Int, error)

Payout is a free data retrieval call binding the contract method 0xb3dfa13d.

Solidity: function payout(uint256 left, uint256 center, uint256 right) view returns(uint256 result)

func (*DegenGambitCaller) Prizes

func (_DegenGambit *DegenGambitCaller) Prizes(opts *bind.CallOpts) ([5]*big.Int, error)

Prizes is a free data retrieval call binding the contract method 0x11cceaf6.

Solidity: function prizes() view returns(uint256[5] payouts)

func (*DegenGambitCaller) SampleImprovedCenterReel

func (_DegenGambit *DegenGambitCaller) SampleImprovedCenterReel(opts *bind.CallOpts, entropy *big.Int) (*big.Int, error)

SampleImprovedCenterReel is a free data retrieval call binding the contract method 0x82e82634.

Solidity: function sampleImprovedCenterReel(uint256 entropy) view returns(uint256)

func (*DegenGambitCaller) SampleImprovedLeftReel

func (_DegenGambit *DegenGambitCaller) SampleImprovedLeftReel(opts *bind.CallOpts, entropy *big.Int) (*big.Int, error)

SampleImprovedLeftReel is a free data retrieval call binding the contract method 0xbac1d231.

Solidity: function sampleImprovedLeftReel(uint256 entropy) view returns(uint256)

func (*DegenGambitCaller) SampleImprovedRightReel

func (_DegenGambit *DegenGambitCaller) SampleImprovedRightReel(opts *bind.CallOpts, entropy *big.Int) (*big.Int, error)

SampleImprovedRightReel is a free data retrieval call binding the contract method 0xa8b530e4.

Solidity: function sampleImprovedRightReel(uint256 entropy) view returns(uint256)

func (*DegenGambitCaller) SampleUnmodifiedCenterReel

func (_DegenGambit *DegenGambitCaller) SampleUnmodifiedCenterReel(opts *bind.CallOpts, entropy *big.Int) (*big.Int, error)

SampleUnmodifiedCenterReel is a free data retrieval call binding the contract method 0x873c1227.

Solidity: function sampleUnmodifiedCenterReel(uint256 entropy) view returns(uint256)

func (*DegenGambitCaller) SampleUnmodifiedLeftReel

func (_DegenGambit *DegenGambitCaller) SampleUnmodifiedLeftReel(opts *bind.CallOpts, entropy *big.Int) (*big.Int, error)

SampleUnmodifiedLeftReel is a free data retrieval call binding the contract method 0xfcb9f003.

Solidity: function sampleUnmodifiedLeftReel(uint256 entropy) view returns(uint256)

func (*DegenGambitCaller) SampleUnmodifiedRightReel

func (_DegenGambit *DegenGambitCaller) SampleUnmodifiedRightReel(opts *bind.CallOpts, entropy *big.Int) (*big.Int, error)

SampleUnmodifiedRightReel is a free data retrieval call binding the contract method 0x02de1a7e.

Solidity: function sampleUnmodifiedRightReel(uint256 entropy) view returns(uint256)

func (*DegenGambitCaller) SpinCost

func (_DegenGambit *DegenGambitCaller) SpinCost(opts *bind.CallOpts, degenerate common.Address) (*big.Int, error)

SpinCost is a free data retrieval call binding the contract method 0x6f785558.

Solidity: function spinCost(address degenerate) view returns(uint256)

func (*DegenGambitCaller) SupportsInterface

func (_DegenGambit *DegenGambitCaller) SupportsInterface(opts *bind.CallOpts, interfaceID [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceID) pure returns(bool)

func (*DegenGambitCaller) Symbol

func (_DegenGambit *DegenGambitCaller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*DegenGambitCaller) TotalSupply

func (_DegenGambit *DegenGambitCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*DegenGambitCaller) UnmodifiedCenterReel

func (_DegenGambit *DegenGambitCaller) UnmodifiedCenterReel(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

UnmodifiedCenterReel is a free data retrieval call binding the contract method 0xbd0ebd4b.

Solidity: function UnmodifiedCenterReel(uint256 ) view returns(uint256)

func (*DegenGambitCaller) UnmodifiedLeftReel

func (_DegenGambit *DegenGambitCaller) UnmodifiedLeftReel(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

UnmodifiedLeftReel is a free data retrieval call binding the contract method 0x2c932d01.

Solidity: function UnmodifiedLeftReel(uint256 ) view returns(uint256)

func (*DegenGambitCaller) UnmodifiedRightReel

func (_DegenGambit *DegenGambitCaller) UnmodifiedRightReel(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

UnmodifiedRightReel is a free data retrieval call binding the contract method 0x39fdf45f.

Solidity: function UnmodifiedRightReel(uint256 ) view returns(uint256)

func (*DegenGambitCaller) WeeklyStreakReward

func (_DegenGambit *DegenGambitCaller) WeeklyStreakReward(opts *bind.CallOpts) (*big.Int, error)

WeeklyStreakReward is a free data retrieval call binding the contract method 0x97c87050.

Solidity: function WeeklyStreakReward() view returns(uint256)

type DegenGambitCallerRaw

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

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

func (*DegenGambitCallerRaw) Call

func (_DegenGambit *DegenGambitCallerRaw) 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 DegenGambitCallerSession

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

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

func (*DegenGambitCallerSession) Allowance

func (_DegenGambit *DegenGambitCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*DegenGambitCallerSession) BalanceOf

func (_DegenGambit *DegenGambitCallerSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

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

func (*DegenGambitCallerSession) BlocksToAct

func (_DegenGambit *DegenGambitCallerSession) BlocksToAct() (*big.Int, error)

BlocksToAct is a free data retrieval call binding the contract method 0xbe59cce3.

Solidity: function BlocksToAct() view returns(uint256)

func (*DegenGambitCallerSession) CostToRespin

func (_DegenGambit *DegenGambitCallerSession) CostToRespin() (*big.Int, error)

CostToRespin is a free data retrieval call binding the contract method 0xe4a2e5b3.

Solidity: function CostToRespin() view returns(uint256)

func (*DegenGambitCallerSession) CostToSpin

func (_DegenGambit *DegenGambitCallerSession) CostToSpin() (*big.Int, error)

CostToSpin is a free data retrieval call binding the contract method 0xab6282c8.

Solidity: function CostToSpin() view returns(uint256)

func (*DegenGambitCallerSession) DailyStreakReward

func (_DegenGambit *DegenGambitCallerSession) DailyStreakReward() (*big.Int, error)

DailyStreakReward is a free data retrieval call binding the contract method 0xdf43230f.

Solidity: function DailyStreakReward() view returns(uint256)

func (*DegenGambitCallerSession) Decimals

func (_DegenGambit *DegenGambitCallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() pure returns(uint8)

func (*DegenGambitCallerSession) ImprovedCenterReel

func (_DegenGambit *DegenGambitCallerSession) ImprovedCenterReel(arg0 *big.Int) (*big.Int, error)

ImprovedCenterReel is a free data retrieval call binding the contract method 0x1e3dac95.

Solidity: function ImprovedCenterReel(uint256 ) view returns(uint256)

func (*DegenGambitCallerSession) ImprovedLeftReel

func (_DegenGambit *DegenGambitCallerSession) ImprovedLeftReel(arg0 *big.Int) (*big.Int, error)

ImprovedLeftReel is a free data retrieval call binding the contract method 0x1b502962.

Solidity: function ImprovedLeftReel(uint256 ) view returns(uint256)

func (*DegenGambitCallerSession) ImprovedRightReel

func (_DegenGambit *DegenGambitCallerSession) ImprovedRightReel(arg0 *big.Int) (*big.Int, error)

ImprovedRightReel is a free data retrieval call binding the contract method 0xd19476a0.

Solidity: function ImprovedRightReel(uint256 ) view returns(uint256)

func (*DegenGambitCallerSession) InspectEntropy

func (_DegenGambit *DegenGambitCallerSession) InspectEntropy(degenerate common.Address) (*big.Int, error)

InspectEntropy is a free data retrieval call binding the contract method 0x17df75a8.

Solidity: function inspectEntropy(address degenerate) view returns(uint256)

func (*DegenGambitCallerSession) InspectOutcome

func (_DegenGambit *DegenGambitCallerSession) InspectOutcome(degenerate common.Address) (struct {
	Left             *big.Int
	Center           *big.Int
	Right            *big.Int
	RemainingEntropy *big.Int
	Prize            *big.Int
}, error)

InspectOutcome is a free data retrieval call binding the contract method 0xeca8b788.

Solidity: function inspectOutcome(address degenerate) view returns(uint256 left, uint256 center, uint256 right, uint256 remainingEntropy, uint256 prize)

func (*DegenGambitCallerSession) LastSpinBlock

func (_DegenGambit *DegenGambitCallerSession) LastSpinBlock(arg0 common.Address) (*big.Int, error)

LastSpinBlock is a free data retrieval call binding the contract method 0x65d032ea.

Solidity: function LastSpinBlock(address ) view returns(uint256)

func (*DegenGambitCallerSession) LastSpinBoosted

func (_DegenGambit *DegenGambitCallerSession) LastSpinBoosted(arg0 common.Address) (bool, error)

LastSpinBoosted is a free data retrieval call binding the contract method 0xdd6fc50f.

Solidity: function LastSpinBoosted(address ) view returns(bool)

func (*DegenGambitCallerSession) LastStreakDay

func (_DegenGambit *DegenGambitCallerSession) LastStreakDay(arg0 common.Address) (*big.Int, error)

LastStreakDay is a free data retrieval call binding the contract method 0xfcb13e26.

Solidity: function LastStreakDay(address ) view returns(uint256)

func (*DegenGambitCallerSession) LastStreakWeek

func (_DegenGambit *DegenGambitCallerSession) LastStreakWeek(arg0 common.Address) (*big.Int, error)

LastStreakWeek is a free data retrieval call binding the contract method 0x21c58fba.

Solidity: function LastStreakWeek(address ) view returns(uint256)

func (*DegenGambitCallerSession) Name

func (_DegenGambit *DegenGambitCallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*DegenGambitCallerSession) Outcome

func (_DegenGambit *DegenGambitCallerSession) Outcome(entropy *big.Int, boosted bool) (struct {
	Left             *big.Int
	Center           *big.Int
	Right            *big.Int
	RemainingEntropy *big.Int
}, error)

Outcome is a free data retrieval call binding the contract method 0x090ec510.

Solidity: function outcome(uint256 entropy, bool boosted) view returns(uint256 left, uint256 center, uint256 right, uint256 remainingEntropy)

func (*DegenGambitCallerSession) Payout

func (_DegenGambit *DegenGambitCallerSession) Payout(left *big.Int, center *big.Int, right *big.Int) (*big.Int, error)

Payout is a free data retrieval call binding the contract method 0xb3dfa13d.

Solidity: function payout(uint256 left, uint256 center, uint256 right) view returns(uint256 result)

func (*DegenGambitCallerSession) Prizes

func (_DegenGambit *DegenGambitCallerSession) Prizes() ([5]*big.Int, error)

Prizes is a free data retrieval call binding the contract method 0x11cceaf6.

Solidity: function prizes() view returns(uint256[5] payouts)

func (*DegenGambitCallerSession) SampleImprovedCenterReel

func (_DegenGambit *DegenGambitCallerSession) SampleImprovedCenterReel(entropy *big.Int) (*big.Int, error)

SampleImprovedCenterReel is a free data retrieval call binding the contract method 0x82e82634.

Solidity: function sampleImprovedCenterReel(uint256 entropy) view returns(uint256)

func (*DegenGambitCallerSession) SampleImprovedLeftReel

func (_DegenGambit *DegenGambitCallerSession) SampleImprovedLeftReel(entropy *big.Int) (*big.Int, error)

SampleImprovedLeftReel is a free data retrieval call binding the contract method 0xbac1d231.

Solidity: function sampleImprovedLeftReel(uint256 entropy) view returns(uint256)

func (*DegenGambitCallerSession) SampleImprovedRightReel

func (_DegenGambit *DegenGambitCallerSession) SampleImprovedRightReel(entropy *big.Int) (*big.Int, error)

SampleImprovedRightReel is a free data retrieval call binding the contract method 0xa8b530e4.

Solidity: function sampleImprovedRightReel(uint256 entropy) view returns(uint256)

func (*DegenGambitCallerSession) SampleUnmodifiedCenterReel

func (_DegenGambit *DegenGambitCallerSession) SampleUnmodifiedCenterReel(entropy *big.Int) (*big.Int, error)

SampleUnmodifiedCenterReel is a free data retrieval call binding the contract method 0x873c1227.

Solidity: function sampleUnmodifiedCenterReel(uint256 entropy) view returns(uint256)

func (*DegenGambitCallerSession) SampleUnmodifiedLeftReel

func (_DegenGambit *DegenGambitCallerSession) SampleUnmodifiedLeftReel(entropy *big.Int) (*big.Int, error)

SampleUnmodifiedLeftReel is a free data retrieval call binding the contract method 0xfcb9f003.

Solidity: function sampleUnmodifiedLeftReel(uint256 entropy) view returns(uint256)

func (*DegenGambitCallerSession) SampleUnmodifiedRightReel

func (_DegenGambit *DegenGambitCallerSession) SampleUnmodifiedRightReel(entropy *big.Int) (*big.Int, error)

SampleUnmodifiedRightReel is a free data retrieval call binding the contract method 0x02de1a7e.

Solidity: function sampleUnmodifiedRightReel(uint256 entropy) view returns(uint256)

func (*DegenGambitCallerSession) SpinCost

func (_DegenGambit *DegenGambitCallerSession) SpinCost(degenerate common.Address) (*big.Int, error)

SpinCost is a free data retrieval call binding the contract method 0x6f785558.

Solidity: function spinCost(address degenerate) view returns(uint256)

func (*DegenGambitCallerSession) SupportsInterface

func (_DegenGambit *DegenGambitCallerSession) SupportsInterface(interfaceID [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceID) pure returns(bool)

func (*DegenGambitCallerSession) Symbol

func (_DegenGambit *DegenGambitCallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*DegenGambitCallerSession) TotalSupply

func (_DegenGambit *DegenGambitCallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*DegenGambitCallerSession) UnmodifiedCenterReel

func (_DegenGambit *DegenGambitCallerSession) UnmodifiedCenterReel(arg0 *big.Int) (*big.Int, error)

UnmodifiedCenterReel is a free data retrieval call binding the contract method 0xbd0ebd4b.

Solidity: function UnmodifiedCenterReel(uint256 ) view returns(uint256)

func (*DegenGambitCallerSession) UnmodifiedLeftReel

func (_DegenGambit *DegenGambitCallerSession) UnmodifiedLeftReel(arg0 *big.Int) (*big.Int, error)

UnmodifiedLeftReel is a free data retrieval call binding the contract method 0x2c932d01.

Solidity: function UnmodifiedLeftReel(uint256 ) view returns(uint256)

func (*DegenGambitCallerSession) UnmodifiedRightReel

func (_DegenGambit *DegenGambitCallerSession) UnmodifiedRightReel(arg0 *big.Int) (*big.Int, error)

UnmodifiedRightReel is a free data retrieval call binding the contract method 0x39fdf45f.

Solidity: function UnmodifiedRightReel(uint256 ) view returns(uint256)

func (*DegenGambitCallerSession) WeeklyStreakReward

func (_DegenGambit *DegenGambitCallerSession) WeeklyStreakReward() (*big.Int, error)

WeeklyStreakReward is a free data retrieval call binding the contract method 0x97c87050.

Solidity: function WeeklyStreakReward() view returns(uint256)

type DegenGambitDailyStreak

type DegenGambitDailyStreak struct {
	Player common.Address
	Day    *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

DegenGambitDailyStreak represents a DailyStreak event raised by the DegenGambit contract.

type DegenGambitDailyStreakIterator

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

DegenGambitDailyStreakIterator is returned from FilterDailyStreak and is used to iterate over the raw logs and unpacked data for DailyStreak events raised by the DegenGambit contract.

func (*DegenGambitDailyStreakIterator) Close

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

func (*DegenGambitDailyStreakIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DegenGambitDailyStreakIterator) Next

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 DegenGambitFilterer

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

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

func NewDegenGambitFilterer

func NewDegenGambitFilterer(address common.Address, filterer bind.ContractFilterer) (*DegenGambitFilterer, error)

NewDegenGambitFilterer creates a new log filterer instance of DegenGambit, bound to a specific deployed contract.

func (*DegenGambitFilterer) FilterApproval

func (_DegenGambit *DegenGambitFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*DegenGambitApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*DegenGambitFilterer) FilterAward

func (_DegenGambit *DegenGambitFilterer) FilterAward(opts *bind.FilterOpts, player []common.Address) (*DegenGambitAwardIterator, error)

FilterAward is a free log retrieval operation binding the contract event 0x473edf73b107bf5d270ea55a7ea4ce98a1b5618dd196e00d5a48e101299b26d4.

Solidity: event Award(address indexed player, uint256 value)

func (*DegenGambitFilterer) FilterDailyStreak

func (_DegenGambit *DegenGambitFilterer) FilterDailyStreak(opts *bind.FilterOpts, player []common.Address) (*DegenGambitDailyStreakIterator, error)

FilterDailyStreak is a free log retrieval operation binding the contract event 0x7339b32ad075be5edc58045122d15281790b96f35286f3f1634c035214d64108.

Solidity: event DailyStreak(address indexed player, uint256 day)

func (*DegenGambitFilterer) FilterSpin

func (_DegenGambit *DegenGambitFilterer) FilterSpin(opts *bind.FilterOpts, player []common.Address, bonus []bool) (*DegenGambitSpinIterator, error)

FilterSpin is a free log retrieval operation binding the contract event 0xc028bd493df31fdde3d19c91126b5780fc658410d5fe9b0234e3c65675e0d957.

Solidity: event Spin(address indexed player, bool indexed bonus)

func (*DegenGambitFilterer) FilterTransfer

func (_DegenGambit *DegenGambitFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*DegenGambitTransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*DegenGambitFilterer) FilterWeeklyStreak

func (_DegenGambit *DegenGambitFilterer) FilterWeeklyStreak(opts *bind.FilterOpts, player []common.Address) (*DegenGambitWeeklyStreakIterator, error)

FilterWeeklyStreak is a free log retrieval operation binding the contract event 0x54d4da66b33929b2506145c261e8c545c26a646f1bc3223a83cbd46daa391cf3.

Solidity: event WeeklyStreak(address indexed player, uint256 week)

func (*DegenGambitFilterer) ParseApproval

func (_DegenGambit *DegenGambitFilterer) ParseApproval(log types.Log) (*DegenGambitApproval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*DegenGambitFilterer) ParseAward

func (_DegenGambit *DegenGambitFilterer) ParseAward(log types.Log) (*DegenGambitAward, error)

ParseAward is a log parse operation binding the contract event 0x473edf73b107bf5d270ea55a7ea4ce98a1b5618dd196e00d5a48e101299b26d4.

Solidity: event Award(address indexed player, uint256 value)

func (*DegenGambitFilterer) ParseDailyStreak

func (_DegenGambit *DegenGambitFilterer) ParseDailyStreak(log types.Log) (*DegenGambitDailyStreak, error)

ParseDailyStreak is a log parse operation binding the contract event 0x7339b32ad075be5edc58045122d15281790b96f35286f3f1634c035214d64108.

Solidity: event DailyStreak(address indexed player, uint256 day)

func (*DegenGambitFilterer) ParseSpin

func (_DegenGambit *DegenGambitFilterer) ParseSpin(log types.Log) (*DegenGambitSpin, error)

ParseSpin is a log parse operation binding the contract event 0xc028bd493df31fdde3d19c91126b5780fc658410d5fe9b0234e3c65675e0d957.

Solidity: event Spin(address indexed player, bool indexed bonus)

func (*DegenGambitFilterer) ParseTransfer

func (_DegenGambit *DegenGambitFilterer) ParseTransfer(log types.Log) (*DegenGambitTransfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*DegenGambitFilterer) ParseWeeklyStreak

func (_DegenGambit *DegenGambitFilterer) ParseWeeklyStreak(log types.Log) (*DegenGambitWeeklyStreak, error)

ParseWeeklyStreak is a log parse operation binding the contract event 0x54d4da66b33929b2506145c261e8c545c26a646f1bc3223a83cbd46daa391cf3.

Solidity: event WeeklyStreak(address indexed player, uint256 week)

func (*DegenGambitFilterer) WatchApproval

func (_DegenGambit *DegenGambitFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *DegenGambitApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*DegenGambitFilterer) WatchAward

func (_DegenGambit *DegenGambitFilterer) WatchAward(opts *bind.WatchOpts, sink chan<- *DegenGambitAward, player []common.Address) (event.Subscription, error)

WatchAward is a free log subscription operation binding the contract event 0x473edf73b107bf5d270ea55a7ea4ce98a1b5618dd196e00d5a48e101299b26d4.

Solidity: event Award(address indexed player, uint256 value)

func (*DegenGambitFilterer) WatchDailyStreak

func (_DegenGambit *DegenGambitFilterer) WatchDailyStreak(opts *bind.WatchOpts, sink chan<- *DegenGambitDailyStreak, player []common.Address) (event.Subscription, error)

WatchDailyStreak is a free log subscription operation binding the contract event 0x7339b32ad075be5edc58045122d15281790b96f35286f3f1634c035214d64108.

Solidity: event DailyStreak(address indexed player, uint256 day)

func (*DegenGambitFilterer) WatchSpin

func (_DegenGambit *DegenGambitFilterer) WatchSpin(opts *bind.WatchOpts, sink chan<- *DegenGambitSpin, player []common.Address, bonus []bool) (event.Subscription, error)

WatchSpin is a free log subscription operation binding the contract event 0xc028bd493df31fdde3d19c91126b5780fc658410d5fe9b0234e3c65675e0d957.

Solidity: event Spin(address indexed player, bool indexed bonus)

func (*DegenGambitFilterer) WatchTransfer

func (_DegenGambit *DegenGambitFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *DegenGambitTransfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*DegenGambitFilterer) WatchWeeklyStreak

func (_DegenGambit *DegenGambitFilterer) WatchWeeklyStreak(opts *bind.WatchOpts, sink chan<- *DegenGambitWeeklyStreak, player []common.Address) (event.Subscription, error)

WatchWeeklyStreak is a free log subscription operation binding the contract event 0x54d4da66b33929b2506145c261e8c545c26a646f1bc3223a83cbd46daa391cf3.

Solidity: event WeeklyStreak(address indexed player, uint256 week)

type DegenGambitRaw

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

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

func (*DegenGambitRaw) Call

func (_DegenGambit *DegenGambitRaw) 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 (*DegenGambitRaw) Transact

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

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

func (*DegenGambitRaw) Transfer

func (_DegenGambit *DegenGambitRaw) 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 DegenGambitSession

type DegenGambitSession struct {
	Contract     *DegenGambit      // 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
}

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

func (*DegenGambitSession) Accept

func (_DegenGambit *DegenGambitSession) Accept() (*types.Transaction, error)

Accept is a paid mutator transaction binding the contract method 0x2852b71c.

Solidity: function accept() returns(uint256 left, uint256 center, uint256 right, uint256 remainingEntropy, uint256 prize)

func (*DegenGambitSession) Allowance

func (_DegenGambit *DegenGambitSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*DegenGambitSession) Approve

func (_DegenGambit *DegenGambitSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 value) returns(bool)

func (*DegenGambitSession) BalanceOf

func (_DegenGambit *DegenGambitSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

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

func (*DegenGambitSession) BlocksToAct

func (_DegenGambit *DegenGambitSession) BlocksToAct() (*big.Int, error)

BlocksToAct is a free data retrieval call binding the contract method 0xbe59cce3.

Solidity: function BlocksToAct() view returns(uint256)

func (*DegenGambitSession) CostToRespin

func (_DegenGambit *DegenGambitSession) CostToRespin() (*big.Int, error)

CostToRespin is a free data retrieval call binding the contract method 0xe4a2e5b3.

Solidity: function CostToRespin() view returns(uint256)

func (*DegenGambitSession) CostToSpin

func (_DegenGambit *DegenGambitSession) CostToSpin() (*big.Int, error)

CostToSpin is a free data retrieval call binding the contract method 0xab6282c8.

Solidity: function CostToSpin() view returns(uint256)

func (*DegenGambitSession) DailyStreakReward

func (_DegenGambit *DegenGambitSession) DailyStreakReward() (*big.Int, error)

DailyStreakReward is a free data retrieval call binding the contract method 0xdf43230f.

Solidity: function DailyStreakReward() view returns(uint256)

func (*DegenGambitSession) Decimals

func (_DegenGambit *DegenGambitSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() pure returns(uint8)

func (*DegenGambitSession) ImprovedCenterReel

func (_DegenGambit *DegenGambitSession) ImprovedCenterReel(arg0 *big.Int) (*big.Int, error)

ImprovedCenterReel is a free data retrieval call binding the contract method 0x1e3dac95.

Solidity: function ImprovedCenterReel(uint256 ) view returns(uint256)

func (*DegenGambitSession) ImprovedLeftReel

func (_DegenGambit *DegenGambitSession) ImprovedLeftReel(arg0 *big.Int) (*big.Int, error)

ImprovedLeftReel is a free data retrieval call binding the contract method 0x1b502962.

Solidity: function ImprovedLeftReel(uint256 ) view returns(uint256)

func (*DegenGambitSession) ImprovedRightReel

func (_DegenGambit *DegenGambitSession) ImprovedRightReel(arg0 *big.Int) (*big.Int, error)

ImprovedRightReel is a free data retrieval call binding the contract method 0xd19476a0.

Solidity: function ImprovedRightReel(uint256 ) view returns(uint256)

func (*DegenGambitSession) InspectEntropy

func (_DegenGambit *DegenGambitSession) InspectEntropy(degenerate common.Address) (*big.Int, error)

InspectEntropy is a free data retrieval call binding the contract method 0x17df75a8.

Solidity: function inspectEntropy(address degenerate) view returns(uint256)

func (*DegenGambitSession) InspectOutcome

func (_DegenGambit *DegenGambitSession) InspectOutcome(degenerate common.Address) (struct {
	Left             *big.Int
	Center           *big.Int
	Right            *big.Int
	RemainingEntropy *big.Int
	Prize            *big.Int
}, error)

InspectOutcome is a free data retrieval call binding the contract method 0xeca8b788.

Solidity: function inspectOutcome(address degenerate) view returns(uint256 left, uint256 center, uint256 right, uint256 remainingEntropy, uint256 prize)

func (*DegenGambitSession) LastSpinBlock

func (_DegenGambit *DegenGambitSession) LastSpinBlock(arg0 common.Address) (*big.Int, error)

LastSpinBlock is a free data retrieval call binding the contract method 0x65d032ea.

Solidity: function LastSpinBlock(address ) view returns(uint256)

func (*DegenGambitSession) LastSpinBoosted

func (_DegenGambit *DegenGambitSession) LastSpinBoosted(arg0 common.Address) (bool, error)

LastSpinBoosted is a free data retrieval call binding the contract method 0xdd6fc50f.

Solidity: function LastSpinBoosted(address ) view returns(bool)

func (*DegenGambitSession) LastStreakDay

func (_DegenGambit *DegenGambitSession) LastStreakDay(arg0 common.Address) (*big.Int, error)

LastStreakDay is a free data retrieval call binding the contract method 0xfcb13e26.

Solidity: function LastStreakDay(address ) view returns(uint256)

func (*DegenGambitSession) LastStreakWeek

func (_DegenGambit *DegenGambitSession) LastStreakWeek(arg0 common.Address) (*big.Int, error)

LastStreakWeek is a free data retrieval call binding the contract method 0x21c58fba.

Solidity: function LastStreakWeek(address ) view returns(uint256)

func (*DegenGambitSession) Name

func (_DegenGambit *DegenGambitSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*DegenGambitSession) Outcome

func (_DegenGambit *DegenGambitSession) Outcome(entropy *big.Int, boosted bool) (struct {
	Left             *big.Int
	Center           *big.Int
	Right            *big.Int
	RemainingEntropy *big.Int
}, error)

Outcome is a free data retrieval call binding the contract method 0x090ec510.

Solidity: function outcome(uint256 entropy, bool boosted) view returns(uint256 left, uint256 center, uint256 right, uint256 remainingEntropy)

func (*DegenGambitSession) Payout

func (_DegenGambit *DegenGambitSession) Payout(left *big.Int, center *big.Int, right *big.Int) (*big.Int, error)

Payout is a free data retrieval call binding the contract method 0xb3dfa13d.

Solidity: function payout(uint256 left, uint256 center, uint256 right) view returns(uint256 result)

func (*DegenGambitSession) Prizes

func (_DegenGambit *DegenGambitSession) Prizes() ([5]*big.Int, error)

Prizes is a free data retrieval call binding the contract method 0x11cceaf6.

Solidity: function prizes() view returns(uint256[5] payouts)

func (*DegenGambitSession) Receive

func (_DegenGambit *DegenGambitSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*DegenGambitSession) SampleImprovedCenterReel

func (_DegenGambit *DegenGambitSession) SampleImprovedCenterReel(entropy *big.Int) (*big.Int, error)

SampleImprovedCenterReel is a free data retrieval call binding the contract method 0x82e82634.

Solidity: function sampleImprovedCenterReel(uint256 entropy) view returns(uint256)

func (*DegenGambitSession) SampleImprovedLeftReel

func (_DegenGambit *DegenGambitSession) SampleImprovedLeftReel(entropy *big.Int) (*big.Int, error)

SampleImprovedLeftReel is a free data retrieval call binding the contract method 0xbac1d231.

Solidity: function sampleImprovedLeftReel(uint256 entropy) view returns(uint256)

func (*DegenGambitSession) SampleImprovedRightReel

func (_DegenGambit *DegenGambitSession) SampleImprovedRightReel(entropy *big.Int) (*big.Int, error)

SampleImprovedRightReel is a free data retrieval call binding the contract method 0xa8b530e4.

Solidity: function sampleImprovedRightReel(uint256 entropy) view returns(uint256)

func (*DegenGambitSession) SampleUnmodifiedCenterReel

func (_DegenGambit *DegenGambitSession) SampleUnmodifiedCenterReel(entropy *big.Int) (*big.Int, error)

SampleUnmodifiedCenterReel is a free data retrieval call binding the contract method 0x873c1227.

Solidity: function sampleUnmodifiedCenterReel(uint256 entropy) view returns(uint256)

func (*DegenGambitSession) SampleUnmodifiedLeftReel

func (_DegenGambit *DegenGambitSession) SampleUnmodifiedLeftReel(entropy *big.Int) (*big.Int, error)

SampleUnmodifiedLeftReel is a free data retrieval call binding the contract method 0xfcb9f003.

Solidity: function sampleUnmodifiedLeftReel(uint256 entropy) view returns(uint256)

func (*DegenGambitSession) SampleUnmodifiedRightReel

func (_DegenGambit *DegenGambitSession) SampleUnmodifiedRightReel(entropy *big.Int) (*big.Int, error)

SampleUnmodifiedRightReel is a free data retrieval call binding the contract method 0x02de1a7e.

Solidity: function sampleUnmodifiedRightReel(uint256 entropy) view returns(uint256)

func (*DegenGambitSession) Spin

func (_DegenGambit *DegenGambitSession) Spin(boost bool) (*types.Transaction, error)

Spin is a paid mutator transaction binding the contract method 0x6499572f.

Solidity: function spin(bool boost) payable returns()

func (*DegenGambitSession) SpinCost

func (_DegenGambit *DegenGambitSession) SpinCost(degenerate common.Address) (*big.Int, error)

SpinCost is a free data retrieval call binding the contract method 0x6f785558.

Solidity: function spinCost(address degenerate) view returns(uint256)

func (*DegenGambitSession) SupportsInterface

func (_DegenGambit *DegenGambitSession) SupportsInterface(interfaceID [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceID) pure returns(bool)

func (*DegenGambitSession) Symbol

func (_DegenGambit *DegenGambitSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*DegenGambitSession) TotalSupply

func (_DegenGambit *DegenGambitSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*DegenGambitSession) Transfer

func (_DegenGambit *DegenGambitSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*DegenGambitSession) TransferFrom

func (_DegenGambit *DegenGambitSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

func (*DegenGambitSession) UnmodifiedCenterReel

func (_DegenGambit *DegenGambitSession) UnmodifiedCenterReel(arg0 *big.Int) (*big.Int, error)

UnmodifiedCenterReel is a free data retrieval call binding the contract method 0xbd0ebd4b.

Solidity: function UnmodifiedCenterReel(uint256 ) view returns(uint256)

func (*DegenGambitSession) UnmodifiedLeftReel

func (_DegenGambit *DegenGambitSession) UnmodifiedLeftReel(arg0 *big.Int) (*big.Int, error)

UnmodifiedLeftReel is a free data retrieval call binding the contract method 0x2c932d01.

Solidity: function UnmodifiedLeftReel(uint256 ) view returns(uint256)

func (*DegenGambitSession) UnmodifiedRightReel

func (_DegenGambit *DegenGambitSession) UnmodifiedRightReel(arg0 *big.Int) (*big.Int, error)

UnmodifiedRightReel is a free data retrieval call binding the contract method 0x39fdf45f.

Solidity: function UnmodifiedRightReel(uint256 ) view returns(uint256)

func (*DegenGambitSession) WeeklyStreakReward

func (_DegenGambit *DegenGambitSession) WeeklyStreakReward() (*big.Int, error)

WeeklyStreakReward is a free data retrieval call binding the contract method 0x97c87050.

Solidity: function WeeklyStreakReward() view returns(uint256)

type DegenGambitSpin

type DegenGambitSpin struct {
	Player common.Address
	Bonus  bool
	Raw    types.Log // Blockchain specific contextual infos
}

DegenGambitSpin represents a Spin event raised by the DegenGambit contract.

type DegenGambitSpinIterator

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

DegenGambitSpinIterator is returned from FilterSpin and is used to iterate over the raw logs and unpacked data for Spin events raised by the DegenGambit contract.

func (*DegenGambitSpinIterator) Close

func (it *DegenGambitSpinIterator) Close() error

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

func (*DegenGambitSpinIterator) Error

func (it *DegenGambitSpinIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DegenGambitSpinIterator) Next

func (it *DegenGambitSpinIterator) 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 DegenGambitTransactor

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

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

func NewDegenGambitTransactor

func NewDegenGambitTransactor(address common.Address, transactor bind.ContractTransactor) (*DegenGambitTransactor, error)

NewDegenGambitTransactor creates a new write-only instance of DegenGambit, bound to a specific deployed contract.

func (*DegenGambitTransactor) Accept

func (_DegenGambit *DegenGambitTransactor) Accept(opts *bind.TransactOpts) (*types.Transaction, error)

Accept is a paid mutator transaction binding the contract method 0x2852b71c.

Solidity: function accept() returns(uint256 left, uint256 center, uint256 right, uint256 remainingEntropy, uint256 prize)

func (*DegenGambitTransactor) Approve

func (_DegenGambit *DegenGambitTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 value) returns(bool)

func (*DegenGambitTransactor) Receive

func (_DegenGambit *DegenGambitTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*DegenGambitTransactor) Spin

func (_DegenGambit *DegenGambitTransactor) Spin(opts *bind.TransactOpts, boost bool) (*types.Transaction, error)

Spin is a paid mutator transaction binding the contract method 0x6499572f.

Solidity: function spin(bool boost) payable returns()

func (*DegenGambitTransactor) Transfer

func (_DegenGambit *DegenGambitTransactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*DegenGambitTransactor) TransferFrom

func (_DegenGambit *DegenGambitTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

type DegenGambitTransactorRaw

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

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

func (*DegenGambitTransactorRaw) Transact

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

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

func (*DegenGambitTransactorRaw) Transfer

func (_DegenGambit *DegenGambitTransactorRaw) 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 DegenGambitTransactorSession

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

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

func (*DegenGambitTransactorSession) Accept

func (_DegenGambit *DegenGambitTransactorSession) Accept() (*types.Transaction, error)

Accept is a paid mutator transaction binding the contract method 0x2852b71c.

Solidity: function accept() returns(uint256 left, uint256 center, uint256 right, uint256 remainingEntropy, uint256 prize)

func (*DegenGambitTransactorSession) Approve

func (_DegenGambit *DegenGambitTransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 value) returns(bool)

func (*DegenGambitTransactorSession) Receive

func (_DegenGambit *DegenGambitTransactorSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*DegenGambitTransactorSession) Spin

func (_DegenGambit *DegenGambitTransactorSession) Spin(boost bool) (*types.Transaction, error)

Spin is a paid mutator transaction binding the contract method 0x6499572f.

Solidity: function spin(bool boost) payable returns()

func (*DegenGambitTransactorSession) Transfer

func (_DegenGambit *DegenGambitTransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*DegenGambitTransactorSession) TransferFrom

func (_DegenGambit *DegenGambitTransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

type DegenGambitTransfer

type DegenGambitTransfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

DegenGambitTransfer represents a Transfer event raised by the DegenGambit contract.

type DegenGambitTransferIterator

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

DegenGambitTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the DegenGambit contract.

func (*DegenGambitTransferIterator) Close

func (it *DegenGambitTransferIterator) Close() error

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

func (*DegenGambitTransferIterator) Error

func (it *DegenGambitTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DegenGambitTransferIterator) Next

func (it *DegenGambitTransferIterator) 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 DegenGambitWeeklyStreak

type DegenGambitWeeklyStreak struct {
	Player common.Address
	Week   *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

DegenGambitWeeklyStreak represents a WeeklyStreak event raised by the DegenGambit contract.

type DegenGambitWeeklyStreakIterator

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

DegenGambitWeeklyStreakIterator is returned from FilterWeeklyStreak and is used to iterate over the raw logs and unpacked data for WeeklyStreak events raised by the DegenGambit contract.

func (*DegenGambitWeeklyStreakIterator) Close

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

func (*DegenGambitWeeklyStreakIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DegenGambitWeeklyStreakIterator) Next

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 SafeOperationType

type SafeOperationType uint8

SafeOperationType represents the type of operation for a Safe transaction

const (
	Call         SafeOperationType = 0
	DelegateCall SafeOperationType = 1
)

func (SafeOperationType) String

func (o SafeOperationType) String() string

String returns the string representation of the SafeOperationType

type SafeTransactionData

type SafeTransactionData struct {
	To             string            `json:"to"`
	Value          string            `json:"value"`
	Data           string            `json:"data"`
	Operation      SafeOperationType `json:"operation"`
	SafeTxGas      uint64            `json:"safeTxGas"`
	BaseGas        uint64            `json:"baseGas"`
	GasPrice       string            `json:"gasPrice"`
	GasToken       string            `json:"gasToken"`
	RefundReceiver string            `json:"refundReceiver"`
	Nonce          uint64            `json:"nonce"`
	SafeTxHash     string            `json:"safeTxHash"`
	Sender         string            `json:"sender"`
	Signature      string            `json:"signature"`
	Origin         string            `json:"origin"`
}

SafeTransactionData represents the data for a Safe transaction

Jump to

Keyboard shortcuts

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