api

package
v0.0.0-...-5362a35 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BLSABI = BLSMetaData.ABI

BLSABI is the input ABI used to generate the binding from. Deprecated: Use BLSMetaData.ABI instead.

View Source
var BLSBin = BLSMetaData.Bin

BLSBin is the compiled bytecode used for deploying new contracts. Deprecated: Use BLSMetaData.Bin instead.

View Source
var BLSFuncSigs = BLSMetaData.Sigs

Deprecated: Use BLSMetaData.Sigs instead. BLSFuncSigs maps the 4-byte function signature to its string representation.

View Source
var BLSMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_x\",\"type\":\"bytes32\"}],\"name\":\"mapToPoint\",\"outputs\":[{\"internalType\":\"uint256[2]\",\"name\":\"p\",\"type\":\"uint256[2]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_x\",\"type\":\"bytes32\"},{\"internalType\":\"uint256[]\",\"name\":\"expected_roots\",\"type\":\"uint256[]\"}],\"name\":\"mapToPointWithHelp\",\"outputs\":[{\"internalType\":\"uint256[2]\",\"name\":\"p\",\"type\":\"uint256[2]\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[2]\",\"name\":\"signature\",\"type\":\"uint256[2]\"},{\"internalType\":\"uint256[4]\",\"name\":\"pubkey\",\"type\":\"uint256[4]\"},{\"internalType\":\"uint256[2]\",\"name\":\"message\",\"type\":\"uint256[2]\"}],\"name\":\"verifySingle\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
	Sigs: map[string]string{
		"c8ce9571": "mapToPoint(bytes32)",
		"f25c3485": "mapToPointWithHelp(bytes32,uint256[])",
		"ebbdac91": "verifySingle(uint256[2],uint256[4],uint256[2])",
	},
	Bin: "0x61091761003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061004b5760003560e01c8063c8ce957114610050578063ebbdac9114610079578063f25c34851461009c575b600080fd5b61006361005e3660046105e4565b6100af565b60405161007091906105fd565b60405180910390f35b61008c6100873660046106e5565b610159565b6040519015158152602001610070565b6100636100aa366004610785565b61034a565b6100b76105a8565b60006100d16000805160206108c283398151915284610837565b90506000805b6000805160206108c283398151915283840991506000805160206108c283398151915283830991506000805160206108c283398151915260038308915061011d826104d2565b909250905080156101375782845260208401829052610151565b6000805160206108c28339815191526001840892506100d7565b505050919050565b6000806040518061018001604052808660006002811061017b5761017b610859565b602002015181526020018660016002811061019857610198610859565b602002015181526020017f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c281526020017f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed81526020017f275dc4a288d1afb3cbb1ac09187524c7db36395df7be3b99e673b13a075a65ec81526020017f1d9befcd05a5323e6da4d435f3b617cdb3af83285c2df711ef39c01571827f9d81526020018460006002811061024d5761024d610859565b602002015181526020018460016002811061026a5761026a610859565b602002015181526020018560016004811061028757610287610859565b60200201518152602001856000600481106102a4576102a4610859565b60200201518152602001856003600481106102c1576102c1610859565b60200201518152602001856002600481106102de576102de610859565b6020020151905290506102ef6105c6565b60006020826101808560086107d05a03fa905080801561030e57610310565bfe5b508061033d5760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b5051151595945050505050565b6103526105a8565b600061036c6000805160206108c283398151915285610837565b9050600080805b6000805160206108c283398151915284850991506000805160206108c283398151915284830991506000805160206108c28339815191526003830891506000805160206108c2833981519152868460ff16815181106103d4576103d4610859565b6020026020010151878560ff16815181106103f1576103f1610859565b602002602001015109905081811415610443578385528551869060ff851690811061041e5761041e610859565b60200260200101518560016002811061043957610439610859565b60200201526104c8565b8161045c826000805160206108c2833981519152610885565b1415610489576000805160206108c283398151915260018508935061048260018461089c565b9250610373565b60405162461bcd60e51b81526020600482015260146024820152732bb937b7339032bc3832b1ba32b2103937b7ba1760611b6044820152606401610334565b5050505092915050565b600080600060405160208152602080820152602060408201528460608201527f0c19139cb84c680a6e14116da060561765e05aa45a1c72a34f082305b61f3f5260808201526000805160206108c283398151915260a082015260208160c08360056107d05a03fa9051935090506000805160206108c283398151915283800984149150806105a25760405162461bcd60e51b815260206004820152601c60248201527f424c533a2073717274206d6f646578702063616c6c206661696c6564000000006044820152606401610334565b50915091565b60405180604001604052806002906020820280368337509192915050565b60405180602001604052806001906020820280368337509192915050565b6000602082840312156105f657600080fd5b5035919050565b60408101818360005b6002811015610625578151835260209283019290910190600101610606565b50505092915050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561066d5761066d61062e565b604052919050565b600082601f83011261068657600080fd5b6040516040810181811067ffffffffffffffff821117156106a9576106a961062e565b80604052508060408401858111156106c057600080fd5b845b818110156106da5780358352602092830192016106c2565b509195945050505050565b600080600061010084860312156106fb57600080fd5b6107058585610675565b925084605f85011261071657600080fd5b6040516080810181811067ffffffffffffffff821117156107395761073961062e565b6040528060c086018781111561074e57600080fd5b604087015b8181101561076b578035835260209283019201610753565b508294506107798882610675565b93505050509250925092565b6000806040838503121561079857600080fd5b8235915060208084013567ffffffffffffffff808211156107b857600080fd5b818601915086601f8301126107cc57600080fd5b8135818111156107de576107de61062e565b8060051b91506107ef848301610644565b818152918301840191848101908984111561080957600080fd5b938501935b838510156108275784358252938501939085019061080e565b8096505050505050509250929050565b60008261085457634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000828210156108975761089761086f565b500390565b600060ff821660ff84168060ff038211156108b9576108b961086f565b01939250505056fe30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47a2646970667358221220a39abf74535e16919c623982fbc5147cc9f165571106ca5b8cc99739a4f55a6d64736f6c634300080a0033",
}

BLSMetaData contains all meta data concerning the BLS contract.

View Source
var BytesLibABI = BytesLibMetaData.ABI

BytesLibABI is the input ABI used to generate the binding from. Deprecated: Use BytesLibMetaData.ABI instead.

View Source
var BytesLibBin = BytesLibMetaData.Bin

BytesLibBin is the compiled bytecode used for deploying new contracts. Deprecated: Use BytesLibMetaData.Bin instead.

View Source
var BytesLibMetaData = &bind.MetaData{
	ABI: "[]",
	Bin: "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220edd6f6ea194a1a6796c67b8fd0f2c9512c8fba162b6f80e4913f54264bec197e64736f6c634300080a0033",
}

BytesLibMetaData contains all meta data concerning the BytesLib contract.

View Source
var HodlABI = HodlMetaData.ABI

HodlABI is the input ABI used to generate the binding from. Deprecated: Use HodlMetaData.ABI instead.

View Source
var HodlBin = HodlMetaData.Bin

HodlBin is the compiled bytecode used for deploying new contracts. Deprecated: Use HodlMetaData.Bin instead.

View Source
var HodlFuncSigs = HodlMetaData.Sigs

Deprecated: Use HodlMetaData.Sigs instead. HodlFuncSigs maps the 4-byte function signature to its string representation.

View Source
var HodlMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"pid_\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"asset\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"timestamp\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extra\",\"type\":\"bytes\"}],\"name\":\"MixinEvent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"MixinTransaction\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ActionLock\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ActionUnlock\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"GROUPS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"NONCE\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PID\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"name\":\"custodian\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"members\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"raw\",\"type\":\"bytes\"}],\"name\":\"mixin\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"name\":\"vats\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"asset\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"guy\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"end\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
	Sigs: map[string]string{
		"d6654437": "ActionLock()",
		"b7f1c1b1": "ActionUnlock()",
		"50cc55ae": "GROUPS(uint256)",
		"e091dd1a": "NONCE()",
		"5eaec0e4": "PID()",
		"2d459b6b": "custodian(uint128)",
		"08ae4b0c": "members(address)",
		"5cae8005": "mixin(bytes)",
		"322e9910": "vats(uint64)",
	},
	Bin: "0x6101006040527f2f741961cea2e88cfa2680eeaac040d41f41f3fedb01e38c06f4c6058fd7e42560809081527e7d68aef83f9690b04f463e13eadd9b18f4869041f1b67e7f1a30c9d1d2c42c60a0527f2a32fa1736807486256ad8dc6a8740dfb91917cf8d15848133819275be92b67360c0527f257ad901f02f8a442ccf4f1b1d0d7d3a8e8fe791102706e575d36de1c2a4a40f60e052620000a69060009060046200011f565b50600480546001600160c01b0319166fd402f2c61ba04d82a75c5674fae1acca179055348015620000d657600080fd5b5060405162001e8c38038062001e8c833981016040819052620000f99162000179565b600480546001600160801b0319166001600160801b0392909216919091179055620001ab565b826004810192821562000150579160200282015b828111156200015057825182559160200191906001019062000133565b506200015e92915062000162565b5090565b5b808211156200015e576000815560010162000163565b6000602082840312156200018c57600080fd5b81516001600160801b0381168114620001a457600080fd5b9392505050565b611cd180620001bb6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80635cae8005116100665780635cae8005146101975780635eaec0e4146101ba578063b7f1c1b1146101e5578063d665443714610200578063e091dd1a1461020857600080fd5b806308ae4b0c146100985780632d459b6b146100c1578063322e9910146100ef57806350cc55ae14610184575b600080fd5b6100ab6100a63660046118b2565b61023a565b6040516100b8919061192f565b60405180910390f35b6100e16100cf366004611942565b60056020526000908152604090205481565b6040519081526020016100b8565b6101436100fd36600461196b565b6007602052600090815260409020805460018201546002909201546001600160801b0390911691906001600160a01b03811690600160a01b90046001600160401b031684565b604080516001600160801b03909516855260208501939093526001600160a01b03909116918301919091526001600160401b031660608201526080016100b8565b6100e1610192366004611994565b6102d4565b6101aa6101a53660046119ad565b6102eb565b60405190151581526020016100b8565b6004546101cd906001600160801b031681565b6040516001600160801b0390911681526020016100b8565b6101ed600281565b60405161ffff90911681526020016100b8565b6101ed600181565b60045461022290600160801b90046001600160401b031681565b6040516001600160401b0390911681526020016100b8565b6006602052600090815260409020805461025390611a1e565b80601f016020809104026020016040519081016040528092919081815260200182805461027f90611a1e565b80156102cc5780601f106102a1576101008083540402835291602001916102cc565b820191906000526020600020905b8154815290600101906020018083116102af57829003601f168201915b505050505081565b600081600481106102e457600080fd5b0154905081565b6000608d82101561033a5760405162461bcd60e51b8152602060048201526014602482015273195d995b9d0819185d18481d1bdbc81cdb585b1b60621b60448201526064015b60405180910390fd5b60008060006103828287878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509293925050610a0f9050565b6004549091506001600160801b038083169116146103d45760405162461bcd60e51b815260206004820152600f60248201526e696e76616c69642070726f6365737360881b6044820152606401610331565b6103df826010611a6f565b915060006104268388888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509293925050610a6d9050565b6004549091506001600160401b03600160801b9091048116908216101561047f5760405162461bcd60e51b815260206004820152600d60248201526c696e76616c6964206e6f6e636560981b6044820152606401610331565b60045461049d90600160801b90046001600160401b03166001611a87565b600480546001600160401b0392909216600160801b0267ffffffffffffffff60801b199092169190911790556104d4836008611a6f565b9250600061051b8489898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509293925050610a0f9050565b9050610528846010611a6f565b935061056d8489898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509293925050610aca9050565b61ffff16945061057e846002611a6f565b935060208511156105c95760405162461bcd60e51b8152602060048201526015602482015274696e7465676572206f7574206f6620626f756e647360581b6044820152606401610331565b6000610671600061066b610618888a8e8e8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929493925050610b279050565b6106238a6020611ab2565b6001600160401b0381111561063a5761063a611ac9565b6040519080825280601f01601f191660200182016040528015610664576020820181803683370190505b5090610c34565b90610cb1565b905061067d8686611a6f565b94506106c2858a8a8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509293925050610aca9050565b61ffff1695506106d3856002611a6f565b9450600061071c86888c8c8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929493925050610b279050565b90506107288787611a6f565b9550600061076f878c8c8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509293925050610a6d9050565b905061077c876008611a6f565b96506107c1878c8c8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509293925050610aca9050565b61ffff1697506107d2886010611adf565b6107dd906002611a6f565b6107e8906002611a6f565b97506000610831888a8e8e8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929493925050610b279050565b905061083d8989611a6f565b975061084a886002611a6f565b975061088d8c8c8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508c9250610d0f915050565b6108cd5760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964207369676e617475726560781b6044820152606401610331565b6108d8886040611a6f565b97508a88146109295760405162461bcd60e51b815260206004820152601860248201527f6d616c666f726d6564206576656e7420656e636f64696e6700000000000000006044820152606401610331565b6001600160801b03851660009081526005602052604090205461094d908590611a6f565b6001600160801b03861660009081526005602052604081209190915561097882805160209091012090565b6001600160a01b038116600090815260066020908152604090912084519293506109a69290918501906117fb565b50806001600160a01b03167fed126a3daa455d580cce3268a123812d4eece1deca8bf9b0e6c72eb535e28cd088888887896040516109e8959493929190611afe565b60405180910390a26109fe818888888789610e25565b9d9c50505050505050505050505050565b6000610a1c826010611a6f565b83511015610a645760405162461bcd60e51b8152602060048201526015602482015274746f55696e743132385f6f75744f66426f756e647360581b6044820152606401610331565b50016010015190565b6000610a7a826008611a6f565b83511015610ac15760405162461bcd60e51b8152602060048201526014602482015273746f55696e7436345f6f75744f66426f756e647360601b6044820152606401610331565b50016008015190565b6000610ad7826002611a6f565b83511015610b1e5760405162461bcd60e51b8152602060048201526014602482015273746f55696e7431365f6f75744f66426f756e647360601b6044820152606401610331565b50016002015190565b606081610b3581601f611a6f565b1015610b745760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b6044820152606401610331565b610b7e8284611a6f565b84511015610bc25760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b6044820152606401610331565b606082158015610be15760405191506000825260208201604052610c2b565b6040519150601f8416801560200281840101858101878315602002848b0101015b81831015610c1a578051835260209283019201610c02565b5050858452601f01601f1916604052505b50949350505050565b6060806040519050835180825260208201818101602087015b81831015610c65578051835260209283019201610c4d565b50855184518101855292509050808201602086015b81831015610c92578051835260209283019201610c7a565b508651929092011591909101601f01601f191660405250905092915050565b6000610cbe826020611a6f565b83511015610d065760405162461bcd60e51b8152602060048201526015602482015274746f55696e743235365f6f75744f66426f756e647360581b6044820152606401610331565b50016020015190565b6000806040518060400160405280610d308587610cb190919063ffffffff16565b8152602001610d4c856020610d459190611a6f565b8790610cb1565b9052604080516002808252818301909252919250600091610d9c91610d97919060208201818036833701905050610d916000610d8960028a611ab2565b8a9190610b27565b90610c34565b610ea8565b60405163ebbdac9160e01b815290915073__$f8599c2da3d5c7b9f587eddf89abb6c346$__9063ebbdac9190610ddb9085906000908690600401611b73565b602060405180830381865af4158015610df8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1c9190611bc1565b95945050505050565b600080600080610e3485610ec6565b9194509250905061ffff831660011415610e7057610e53896001611a87565b9150610e6b8289898d610e66868c611a87565b610f10565b610e96565b61ffff831660021415610e8a57610e6b89838c8989610fc5565b60009350505050610e9e565b600193505050505b9695505050505050565b610eb061187f565b610ec0828051906020012061120d565b92915050565b6000808080610ed58582610aca565b9350610ee2600282611a6f565b9050610eee8582610a6d565b9250610efb600882611a6f565b9050610f078582610a6d565b93959294505050565b6001600160a01b038216610f545760405162461bcd60e51b815260206004820152600b60248201526a19dd5e4b5b9bdd0b5cd95d60aa1b6044820152606401610331565b6001600160401b03948516600090815260076020526040902080546001600160801b039095166001600160801b031990951694909417845560018401929092556002909201805491909316600160a01b026001600160e01b03199091166001600160a01b0390921691909117179055565b6001600160401b0384166000908152600760205260409020600201546001600160a01b038481169116146110275760405162461bcd60e51b81526020600482015260096024820152683737ba16b7bbb732b960b91b6044820152606401610331565b6001600160401b03848116600090815260076020526040902060020154818416600160a01b909104909116106110895760405162461bcd60e51b81526020600482015260076024820152661b9bdd0b595b9960ca1b6044820152606401610331565b6001600160401b0384166000908152600760205260408120805460019091015460045461118f9289926001600160801b039182169290916110d0918891610d9191166112b7565b6001600160401b038a166000908152600760209081526040808320600201546001600160a01b0316835260069091529020805461110c90611a1e565b80601f016020809104026020016040519081016040528092919081815260200182805461113890611a1e565b80156111855780601f1061115a57610100808354040283529160200191611185565b820191906000526020600020905b81548152906001019060200180831161116857829003601f168201915b5050505050611347565b90507fdb53e751d28ed0d6e3682814bf8d23f7dd7b29c94f74a56fbb7f88e9dca9f39b816040516111c0919061192f565b60405180910390a1505050506001600160401b0316600090815260076020526040812080546001600160801b0319168155600181019190915560020180546001600160e01b031916905550565b61121561187f565b600061122f600080516020611c7c83398151915284611be3565b90506000805b600080516020611c7c8339815191528384099150600080516020611c7c8339815191528383099150600080516020611c7c83398151915260038308915061127b82611509565b9092509050801561129557828452602084018290526112af565b600080516020611c7c833981519152600184089250611235565b505050919050565b60408051601080825281830190925260609160009190602082018180368337019050509050608083901b60005b601081101561133e578181601081106112ff576112ff611c05565b1a60f81b83828151811061131557611315611c05565b60200101906001600160f81b031916908160001a9053508061133681611c1b565b9150506112e4565b50909392505050565b6060608083511061138c5760405162461bcd60e51b815260206004820152600f60248201526e657874726120746f6f206c6172676560881b6044820152606401610331565b6001600160801b0385166000908152600560205260409020548411156113ed5760405162461bcd60e51b815260206004820152601660248201527534b739bab33334b1b4b2b73a1031bab9ba37b234b0b760511b6044820152606401610331565b6001600160801b038516600090815260056020526040902054611411908590611ab2565b6001600160801b0380871660009081526005602052604081209290925560045461143b91166112b7565b9050611450611449886115df565b8290610c34565b905061145e611449876112b7565b905060008061146c87611666565b9150915061148361147c82611774565b8490610c34565b925061148f8383610c34565b925061149e61147c8751611774565b92506114aa8387610c34565b92506114e460085b6040519080825280601f01601f1916602001820160405280156114dc576020820181803683370190505b508490610c34565b92506114f08386610c34565b92506114fc60026114b2565b9998505050505050505050565b600080600060405160208152602080820152602060408201528460608201527f0c19139cb84c680a6e14116da060561765e05aa45a1c72a34f082305b61f3f526080820152600080516020611c7c83398151915260a082015260208160c08360056107d05a03fa905193509050600080516020611c7c83398151915283800984149150806115d95760405162461bcd60e51b815260206004820152601c60248201527f424c533a2073717274206d6f646578702063616c6c206661696c6564000000006044820152606401610331565b50915091565b6040805160088082528183019092526060916000919060208201818036833701905050905060c083901b60005b600881101561133e5781816008811061162757611627611c05565b1a60f81b83828151811061163d5761163d611c05565b60200101906001600160f81b031916908160001a9053508061165e81611c1b565b91505061160c565b6040805160208082528183019092526060916000918291602082018180368337019050509050836000805b60208161ffff16101561173957828161ffff16602081106116b4576116b4611c05565b1a60f81b848261ffff16815181106116ce576116ce611c05565b60200101906001600160f81b031916908160001a905350600060f81b848261ffff168151811061170057611700611c05565b01602001516001600160f81b03191611801561171e575061ffff8216155b15611727578091505b8061173181611c36565b915050611691565b506000611747826020611c58565b905061176861ffff831661175c846020611c58565b86919061ffff16610b27565b97909650945050505050565b6040805160028082528183019092526060916000919060208201818036833701905050905060f083901b60005b600281101561133e578181600281106117bc576117bc611c05565b1a60f81b8382815181106117d2576117d2611c05565b60200101906001600160f81b031916908160001a905350806117f381611c1b565b9150506117a1565b82805461180790611a1e565b90600052602060002090601f016020900481019282611829576000855561186f565b82601f1061184257805160ff191683800117855561186f565b8280016001018555821561186f579182015b8281111561186f578251825591602001919060010190611854565b5061187b92915061189d565b5090565b60405180604001604052806002906020820280368337509192915050565b5b8082111561187b576000815560010161189e565b6000602082840312156118c457600080fd5b81356001600160a01b03811681146118db57600080fd5b9392505050565b6000815180845260005b81811015611908576020818501810151868301820152016118ec565b8181111561191a576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006118db60208301846118e2565b60006020828403121561195457600080fd5b81356001600160801b03811681146118db57600080fd5b60006020828403121561197d57600080fd5b81356001600160401b03811681146118db57600080fd5b6000602082840312156119a657600080fd5b5035919050565b600080602083850312156119c057600080fd5b82356001600160401b03808211156119d757600080fd5b818501915085601f8301126119eb57600080fd5b8135818111156119fa57600080fd5b866020828501011115611a0c57600080fd5b60209290920196919550909350505050565b600181811c90821680611a3257607f821691505b60208210811415611a5357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115611a8257611a82611a59565b500190565b60006001600160401b03808316818516808303821115611aa957611aa9611a59565b01949350505050565b600082821015611ac457611ac4611a59565b500390565b634e487b7160e01b600052604160045260246000fd5b6000816000190483118215151615611af957611af9611a59565b500290565b60006001600160401b0380881683526001600160801b038716602084015285604084015280851660608401525060a06080830152611b3f60a08301846118e2565b979650505050505050565b8060005b6002811015611b6d578151845260209384019390910190600101611b4e565b50505050565b6101008101611b828286611b4a565b604082018460005b6004811015611ba9578154835260209092019160019182019101611b8a565b505050611bb960c0830184611b4a565b949350505050565b600060208284031215611bd357600080fd5b815180151581146118db57600080fd5b600082611c0057634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052603260045260246000fd5b6000600019821415611c2f57611c2f611a59565b5060010190565b600061ffff80831681811415611c4e57611c4e611a59565b6001019392505050565b600061ffff83811690831681811015611c7357611c73611a59565b03939250505056fe30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47a2646970667358221220a8c4004ddacf26eaea9e36cb6c5dcffae64175682d77faf6826218558d190fa564736f6c634300080a0033",
}

HodlMetaData contains all meta data concerning the Hodl contract.

Functions

This section is empty.

Types

type BLS

type BLS struct {
	BLSCaller     // Read-only binding to the contract
	BLSTransactor // Write-only binding to the contract
	BLSFilterer   // Log filterer for contract events
}

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

func DeployBLS

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

DeployBLS deploys a new Ethereum contract, binding an instance of BLS to it.

func NewBLS

func NewBLS(address common.Address, backend bind.ContractBackend) (*BLS, error)

NewBLS creates a new instance of BLS, bound to a specific deployed contract.

type BLSCaller

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

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

func NewBLSCaller

func NewBLSCaller(address common.Address, caller bind.ContractCaller) (*BLSCaller, error)

NewBLSCaller creates a new read-only instance of BLS, bound to a specific deployed contract.

func (*BLSCaller) MapToPoint

func (_BLS *BLSCaller) MapToPoint(opts *bind.CallOpts, _x [32]byte) ([2]*big.Int, error)

MapToPoint is a free data retrieval call binding the contract method 0xc8ce9571.

Solidity: function mapToPoint(bytes32 _x) view returns(uint256[2] p)

func (*BLSCaller) MapToPointWithHelp

func (_BLS *BLSCaller) MapToPointWithHelp(opts *bind.CallOpts, _x [32]byte, expected_roots []*big.Int) ([2]*big.Int, error)

MapToPointWithHelp is a free data retrieval call binding the contract method 0xf25c3485.

Solidity: function mapToPointWithHelp(bytes32 _x, uint256[] expected_roots) pure returns(uint256[2] p)

func (*BLSCaller) VerifySingle

func (_BLS *BLSCaller) VerifySingle(opts *bind.CallOpts, signature [2]*big.Int, pubkey [4]*big.Int, message [2]*big.Int) (bool, error)

VerifySingle is a free data retrieval call binding the contract method 0xebbdac91.

Solidity: function verifySingle(uint256[2] signature, uint256[4] pubkey, uint256[2] message) view returns(bool)

type BLSCallerRaw

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

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

func (*BLSCallerRaw) Call

func (_BLS *BLSCallerRaw) 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 BLSCallerSession

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

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

func (*BLSCallerSession) MapToPoint

func (_BLS *BLSCallerSession) MapToPoint(_x [32]byte) ([2]*big.Int, error)

MapToPoint is a free data retrieval call binding the contract method 0xc8ce9571.

Solidity: function mapToPoint(bytes32 _x) view returns(uint256[2] p)

func (*BLSCallerSession) MapToPointWithHelp

func (_BLS *BLSCallerSession) MapToPointWithHelp(_x [32]byte, expected_roots []*big.Int) ([2]*big.Int, error)

MapToPointWithHelp is a free data retrieval call binding the contract method 0xf25c3485.

Solidity: function mapToPointWithHelp(bytes32 _x, uint256[] expected_roots) pure returns(uint256[2] p)

func (*BLSCallerSession) VerifySingle

func (_BLS *BLSCallerSession) VerifySingle(signature [2]*big.Int, pubkey [4]*big.Int, message [2]*big.Int) (bool, error)

VerifySingle is a free data retrieval call binding the contract method 0xebbdac91.

Solidity: function verifySingle(uint256[2] signature, uint256[4] pubkey, uint256[2] message) view returns(bool)

type BLSFilterer

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

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

func NewBLSFilterer

func NewBLSFilterer(address common.Address, filterer bind.ContractFilterer) (*BLSFilterer, error)

NewBLSFilterer creates a new log filterer instance of BLS, bound to a specific deployed contract.

type BLSRaw

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

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

func (*BLSRaw) Call

func (_BLS *BLSRaw) 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 (*BLSRaw) Transact

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

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

func (*BLSRaw) Transfer

func (_BLS *BLSRaw) 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 BLSSession

type BLSSession struct {
	Contract     *BLS              // 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
}

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

func (*BLSSession) MapToPoint

func (_BLS *BLSSession) MapToPoint(_x [32]byte) ([2]*big.Int, error)

MapToPoint is a free data retrieval call binding the contract method 0xc8ce9571.

Solidity: function mapToPoint(bytes32 _x) view returns(uint256[2] p)

func (*BLSSession) MapToPointWithHelp

func (_BLS *BLSSession) MapToPointWithHelp(_x [32]byte, expected_roots []*big.Int) ([2]*big.Int, error)

MapToPointWithHelp is a free data retrieval call binding the contract method 0xf25c3485.

Solidity: function mapToPointWithHelp(bytes32 _x, uint256[] expected_roots) pure returns(uint256[2] p)

func (*BLSSession) VerifySingle

func (_BLS *BLSSession) VerifySingle(signature [2]*big.Int, pubkey [4]*big.Int, message [2]*big.Int) (bool, error)

VerifySingle is a free data retrieval call binding the contract method 0xebbdac91.

Solidity: function verifySingle(uint256[2] signature, uint256[4] pubkey, uint256[2] message) view returns(bool)

type BLSTransactor

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

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

func NewBLSTransactor

func NewBLSTransactor(address common.Address, transactor bind.ContractTransactor) (*BLSTransactor, error)

NewBLSTransactor creates a new write-only instance of BLS, bound to a specific deployed contract.

type BLSTransactorRaw

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

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

func (*BLSTransactorRaw) Transact

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

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

func (*BLSTransactorRaw) Transfer

func (_BLS *BLSTransactorRaw) 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 BLSTransactorSession

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

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

type BytesLib

type BytesLib struct {
	BytesLibCaller     // Read-only binding to the contract
	BytesLibTransactor // Write-only binding to the contract
	BytesLibFilterer   // Log filterer for contract events
}

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

func DeployBytesLib

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

DeployBytesLib deploys a new Ethereum contract, binding an instance of BytesLib to it.

func NewBytesLib

func NewBytesLib(address common.Address, backend bind.ContractBackend) (*BytesLib, error)

NewBytesLib creates a new instance of BytesLib, bound to a specific deployed contract.

type BytesLibCaller

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

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

func NewBytesLibCaller

func NewBytesLibCaller(address common.Address, caller bind.ContractCaller) (*BytesLibCaller, error)

NewBytesLibCaller creates a new read-only instance of BytesLib, bound to a specific deployed contract.

type BytesLibCallerRaw

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

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

func (*BytesLibCallerRaw) Call

func (_BytesLib *BytesLibCallerRaw) 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 BytesLibCallerSession

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

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

type BytesLibFilterer

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

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

func NewBytesLibFilterer

func NewBytesLibFilterer(address common.Address, filterer bind.ContractFilterer) (*BytesLibFilterer, error)

NewBytesLibFilterer creates a new log filterer instance of BytesLib, bound to a specific deployed contract.

type BytesLibRaw

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

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

func (*BytesLibRaw) Call

func (_BytesLib *BytesLibRaw) 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 (*BytesLibRaw) Transact

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

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

func (*BytesLibRaw) Transfer

func (_BytesLib *BytesLibRaw) 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 BytesLibSession

type BytesLibSession struct {
	Contract     *BytesLib         // 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
}

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

type BytesLibTransactor

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

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

func NewBytesLibTransactor

func NewBytesLibTransactor(address common.Address, transactor bind.ContractTransactor) (*BytesLibTransactor, error)

NewBytesLibTransactor creates a new write-only instance of BytesLib, bound to a specific deployed contract.

type BytesLibTransactorRaw

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

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

func (*BytesLibTransactorRaw) Transact

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

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

func (*BytesLibTransactorRaw) Transfer

func (_BytesLib *BytesLibTransactorRaw) 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 BytesLibTransactorSession

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

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

type Hodl

type Hodl struct {
	HodlCaller     // Read-only binding to the contract
	HodlTransactor // Write-only binding to the contract
	HodlFilterer   // Log filterer for contract events
}

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

func DeployHodl

func DeployHodl(auth *bind.TransactOpts, backend bind.ContractBackend, pid_ *big.Int) (common.Address, *types.Transaction, *Hodl, error)

DeployHodl deploys a new Ethereum contract, binding an instance of Hodl to it.

func NewHodl

func NewHodl(address common.Address, backend bind.ContractBackend) (*Hodl, error)

NewHodl creates a new instance of Hodl, bound to a specific deployed contract.

type HodlCaller

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

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

func NewHodlCaller

func NewHodlCaller(address common.Address, caller bind.ContractCaller) (*HodlCaller, error)

NewHodlCaller creates a new read-only instance of Hodl, bound to a specific deployed contract.

func (*HodlCaller) ActionLock

func (_Hodl *HodlCaller) ActionLock(opts *bind.CallOpts) (uint16, error)

ActionLock is a free data retrieval call binding the contract method 0xd6654437.

Solidity: function ActionLock() view returns(uint16)

func (*HodlCaller) ActionUnlock

func (_Hodl *HodlCaller) ActionUnlock(opts *bind.CallOpts) (uint16, error)

ActionUnlock is a free data retrieval call binding the contract method 0xb7f1c1b1.

Solidity: function ActionUnlock() view returns(uint16)

func (*HodlCaller) Custodian

func (_Hodl *HodlCaller) Custodian(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

Custodian is a free data retrieval call binding the contract method 0x2d459b6b.

Solidity: function custodian(uint128 ) view returns(uint256)

func (*HodlCaller) GROUPS

func (_Hodl *HodlCaller) GROUPS(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

GROUPS is a free data retrieval call binding the contract method 0x50cc55ae.

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

func (*HodlCaller) Members

func (_Hodl *HodlCaller) Members(opts *bind.CallOpts, arg0 common.Address) ([]byte, error)

Members is a free data retrieval call binding the contract method 0x08ae4b0c.

Solidity: function members(address ) view returns(bytes)

func (*HodlCaller) NONCE

func (_Hodl *HodlCaller) NONCE(opts *bind.CallOpts) (uint64, error)

NONCE is a free data retrieval call binding the contract method 0xe091dd1a.

Solidity: function NONCE() view returns(uint64)

func (*HodlCaller) PID

func (_Hodl *HodlCaller) PID(opts *bind.CallOpts) (*big.Int, error)

PID is a free data retrieval call binding the contract method 0x5eaec0e4.

Solidity: function PID() view returns(uint128)

func (*HodlCaller) Vats

func (_Hodl *HodlCaller) Vats(opts *bind.CallOpts, arg0 uint64) (struct {
	Asset  *big.Int
	Amount *big.Int
	Guy    common.Address
	End    uint64
}, error)

Vats is a free data retrieval call binding the contract method 0x322e9910.

Solidity: function vats(uint64 ) view returns(uint128 asset, uint256 amount, address guy, uint64 end)

type HodlCallerRaw

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

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

func (*HodlCallerRaw) Call

func (_Hodl *HodlCallerRaw) 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 HodlCallerSession

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

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

func (*HodlCallerSession) ActionLock

func (_Hodl *HodlCallerSession) ActionLock() (uint16, error)

ActionLock is a free data retrieval call binding the contract method 0xd6654437.

Solidity: function ActionLock() view returns(uint16)

func (*HodlCallerSession) ActionUnlock

func (_Hodl *HodlCallerSession) ActionUnlock() (uint16, error)

ActionUnlock is a free data retrieval call binding the contract method 0xb7f1c1b1.

Solidity: function ActionUnlock() view returns(uint16)

func (*HodlCallerSession) Custodian

func (_Hodl *HodlCallerSession) Custodian(arg0 *big.Int) (*big.Int, error)

Custodian is a free data retrieval call binding the contract method 0x2d459b6b.

Solidity: function custodian(uint128 ) view returns(uint256)

func (*HodlCallerSession) GROUPS

func (_Hodl *HodlCallerSession) GROUPS(arg0 *big.Int) (*big.Int, error)

GROUPS is a free data retrieval call binding the contract method 0x50cc55ae.

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

func (*HodlCallerSession) Members

func (_Hodl *HodlCallerSession) Members(arg0 common.Address) ([]byte, error)

Members is a free data retrieval call binding the contract method 0x08ae4b0c.

Solidity: function members(address ) view returns(bytes)

func (*HodlCallerSession) NONCE

func (_Hodl *HodlCallerSession) NONCE() (uint64, error)

NONCE is a free data retrieval call binding the contract method 0xe091dd1a.

Solidity: function NONCE() view returns(uint64)

func (*HodlCallerSession) PID

func (_Hodl *HodlCallerSession) PID() (*big.Int, error)

PID is a free data retrieval call binding the contract method 0x5eaec0e4.

Solidity: function PID() view returns(uint128)

func (*HodlCallerSession) Vats

func (_Hodl *HodlCallerSession) Vats(arg0 uint64) (struct {
	Asset  *big.Int
	Amount *big.Int
	Guy    common.Address
	End    uint64
}, error)

Vats is a free data retrieval call binding the contract method 0x322e9910.

Solidity: function vats(uint64 ) view returns(uint128 asset, uint256 amount, address guy, uint64 end)

type HodlFilterer

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

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

func NewHodlFilterer

func NewHodlFilterer(address common.Address, filterer bind.ContractFilterer) (*HodlFilterer, error)

NewHodlFilterer creates a new log filterer instance of Hodl, bound to a specific deployed contract.

func (*HodlFilterer) FilterMixinEvent

func (_Hodl *HodlFilterer) FilterMixinEvent(opts *bind.FilterOpts, sender []common.Address) (*HodlMixinEventIterator, error)

FilterMixinEvent is a free log retrieval operation binding the contract event 0xed126a3daa455d580cce3268a123812d4eece1deca8bf9b0e6c72eb535e28cd0.

Solidity: event MixinEvent(address indexed sender, uint256 nonce, uint128 asset, uint256 amount, uint64 timestamp, bytes extra)

func (*HodlFilterer) FilterMixinTransaction

func (_Hodl *HodlFilterer) FilterMixinTransaction(opts *bind.FilterOpts) (*HodlMixinTransactionIterator, error)

FilterMixinTransaction is a free log retrieval operation binding the contract event 0xdb53e751d28ed0d6e3682814bf8d23f7dd7b29c94f74a56fbb7f88e9dca9f39b.

Solidity: event MixinTransaction(bytes arg0)

func (*HodlFilterer) ParseMixinEvent

func (_Hodl *HodlFilterer) ParseMixinEvent(log types.Log) (*HodlMixinEvent, error)

ParseMixinEvent is a log parse operation binding the contract event 0xed126a3daa455d580cce3268a123812d4eece1deca8bf9b0e6c72eb535e28cd0.

Solidity: event MixinEvent(address indexed sender, uint256 nonce, uint128 asset, uint256 amount, uint64 timestamp, bytes extra)

func (*HodlFilterer) ParseMixinTransaction

func (_Hodl *HodlFilterer) ParseMixinTransaction(log types.Log) (*HodlMixinTransaction, error)

ParseMixinTransaction is a log parse operation binding the contract event 0xdb53e751d28ed0d6e3682814bf8d23f7dd7b29c94f74a56fbb7f88e9dca9f39b.

Solidity: event MixinTransaction(bytes arg0)

func (*HodlFilterer) WatchMixinEvent

func (_Hodl *HodlFilterer) WatchMixinEvent(opts *bind.WatchOpts, sink chan<- *HodlMixinEvent, sender []common.Address) (event.Subscription, error)

WatchMixinEvent is a free log subscription operation binding the contract event 0xed126a3daa455d580cce3268a123812d4eece1deca8bf9b0e6c72eb535e28cd0.

Solidity: event MixinEvent(address indexed sender, uint256 nonce, uint128 asset, uint256 amount, uint64 timestamp, bytes extra)

func (*HodlFilterer) WatchMixinTransaction

func (_Hodl *HodlFilterer) WatchMixinTransaction(opts *bind.WatchOpts, sink chan<- *HodlMixinTransaction) (event.Subscription, error)

WatchMixinTransaction is a free log subscription operation binding the contract event 0xdb53e751d28ed0d6e3682814bf8d23f7dd7b29c94f74a56fbb7f88e9dca9f39b.

Solidity: event MixinTransaction(bytes arg0)

type HodlMixinEvent

type HodlMixinEvent struct {
	Sender    common.Address
	Nonce     *big.Int
	Asset     *big.Int
	Amount    *big.Int
	Timestamp uint64
	Extra     []byte
	Raw       types.Log // Blockchain specific contextual infos
}

HodlMixinEvent represents a MixinEvent event raised by the Hodl contract.

type HodlMixinEventIterator

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

HodlMixinEventIterator is returned from FilterMixinEvent and is used to iterate over the raw logs and unpacked data for MixinEvent events raised by the Hodl contract.

func (*HodlMixinEventIterator) Close

func (it *HodlMixinEventIterator) Close() error

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

func (*HodlMixinEventIterator) Error

func (it *HodlMixinEventIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*HodlMixinEventIterator) Next

func (it *HodlMixinEventIterator) 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 HodlMixinTransaction

type HodlMixinTransaction struct {
	Arg0 []byte
	Raw  types.Log // Blockchain specific contextual infos
}

HodlMixinTransaction represents a MixinTransaction event raised by the Hodl contract.

type HodlMixinTransactionIterator

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

HodlMixinTransactionIterator is returned from FilterMixinTransaction and is used to iterate over the raw logs and unpacked data for MixinTransaction events raised by the Hodl contract.

func (*HodlMixinTransactionIterator) Close

func (it *HodlMixinTransactionIterator) Close() error

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

func (*HodlMixinTransactionIterator) Error

func (it *HodlMixinTransactionIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*HodlMixinTransactionIterator) 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 HodlRaw

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

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

func (*HodlRaw) Call

func (_Hodl *HodlRaw) 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 (*HodlRaw) Transact

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

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

func (*HodlRaw) Transfer

func (_Hodl *HodlRaw) 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 HodlSession

type HodlSession struct {
	Contract     *Hodl             // 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
}

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

func (*HodlSession) ActionLock

func (_Hodl *HodlSession) ActionLock() (uint16, error)

ActionLock is a free data retrieval call binding the contract method 0xd6654437.

Solidity: function ActionLock() view returns(uint16)

func (*HodlSession) ActionUnlock

func (_Hodl *HodlSession) ActionUnlock() (uint16, error)

ActionUnlock is a free data retrieval call binding the contract method 0xb7f1c1b1.

Solidity: function ActionUnlock() view returns(uint16)

func (*HodlSession) Custodian

func (_Hodl *HodlSession) Custodian(arg0 *big.Int) (*big.Int, error)

Custodian is a free data retrieval call binding the contract method 0x2d459b6b.

Solidity: function custodian(uint128 ) view returns(uint256)

func (*HodlSession) GROUPS

func (_Hodl *HodlSession) GROUPS(arg0 *big.Int) (*big.Int, error)

GROUPS is a free data retrieval call binding the contract method 0x50cc55ae.

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

func (*HodlSession) Members

func (_Hodl *HodlSession) Members(arg0 common.Address) ([]byte, error)

Members is a free data retrieval call binding the contract method 0x08ae4b0c.

Solidity: function members(address ) view returns(bytes)

func (*HodlSession) Mixin

func (_Hodl *HodlSession) Mixin(raw []byte) (*types.Transaction, error)

Mixin is a paid mutator transaction binding the contract method 0x5cae8005.

Solidity: function mixin(bytes raw) returns(bool)

func (*HodlSession) NONCE

func (_Hodl *HodlSession) NONCE() (uint64, error)

NONCE is a free data retrieval call binding the contract method 0xe091dd1a.

Solidity: function NONCE() view returns(uint64)

func (*HodlSession) PID

func (_Hodl *HodlSession) PID() (*big.Int, error)

PID is a free data retrieval call binding the contract method 0x5eaec0e4.

Solidity: function PID() view returns(uint128)

func (*HodlSession) Vats

func (_Hodl *HodlSession) Vats(arg0 uint64) (struct {
	Asset  *big.Int
	Amount *big.Int
	Guy    common.Address
	End    uint64
}, error)

Vats is a free data retrieval call binding the contract method 0x322e9910.

Solidity: function vats(uint64 ) view returns(uint128 asset, uint256 amount, address guy, uint64 end)

type HodlTransactor

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

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

func NewHodlTransactor

func NewHodlTransactor(address common.Address, transactor bind.ContractTransactor) (*HodlTransactor, error)

NewHodlTransactor creates a new write-only instance of Hodl, bound to a specific deployed contract.

func (*HodlTransactor) Mixin

func (_Hodl *HodlTransactor) Mixin(opts *bind.TransactOpts, raw []byte) (*types.Transaction, error)

Mixin is a paid mutator transaction binding the contract method 0x5cae8005.

Solidity: function mixin(bytes raw) returns(bool)

type HodlTransactorRaw

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

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

func (*HodlTransactorRaw) Transact

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

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

func (*HodlTransactorRaw) Transfer

func (_Hodl *HodlTransactorRaw) 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 HodlTransactorSession

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

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

func (*HodlTransactorSession) Mixin

func (_Hodl *HodlTransactorSession) Mixin(raw []byte) (*types.Transaction, error)

Mixin is a paid mutator transaction binding the contract method 0x5cae8005.

Solidity: function mixin(bytes raw) returns(bool)

Jump to

Keyboard shortcuts

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