ecp

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CollaternalABI = CollaternalMetaData.ABI

CollaternalABI is the input ABI used to generate the binding from. Deprecated: Use CollaternalMetaData.ABI instead.

View Source
var CollaternalBin = CollaternalMetaData.Bin

CollaternalBin is the compiled bytecode used for deploying new contracts. Deprecated: Use CollaternalMetaData.Bin instead.

View Source
var CollaternalMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"cp\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"frozenAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"balanceAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"operation\",\"type\":\"string\"}],\"name\":\"CollateralAdjusted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"cp\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"taskContractAddress\",\"type\":\"address\"}],\"name\":\"CollateralLocked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"cp\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"taskContractAddress\",\"type\":\"address\"}],\"name\":\"CollateralSlashed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"cp\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"taskContractAddress\",\"type\":\"address\"}],\"name\":\"CollateralUnlocked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"fundingWallet\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"depositAmount\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"taskContractAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"cpAccountAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"collateral\",\"type\":\"uint256\"}],\"name\":\"TaskCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"taskContractAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newStatus\",\"type\":\"uint256\"}],\"name\":\"TaskStatusChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"cpOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"withdrawAmount\",\"type\":\"uint256\"}],\"name\":\"Withdraw\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"addAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"balances\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"baseCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"collateralRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"cpAddress\",\"type\":\"address\"}],\"name\":\"cpInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"cp\",\"type\":\"address\"},{\"internalType\":\"int256\",\"name\":\"balance\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"frozenBalance\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"status\",\"type\":\"string\"}],\"internalType\":\"structECPCollateral.CPInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"cpStatus\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"frozenBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBaseCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getECPCollateralInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"slashedFunds\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseCollateral\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"taskBalance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"slashRatio\",\"type\":\"uint256\"}],\"internalType\":\"structECPCollateral.ContractInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"taskContractAddress\",\"type\":\"address\"}],\"name\":\"getTaskInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"cpAccountAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"collateral\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"status\",\"type\":\"uint256\"}],\"internalType\":\"structECPCollateral.Task\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"isAdmin\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"cp\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"collateral\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"taskContractAddress\",\"type\":\"address\"}],\"name\":\"lockCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"}],\"name\":\"removeAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_baseCollateral\",\"type\":\"uint256\"}],\"name\":\"setBaseCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_collateralRatio\",\"type\":\"uint256\"}],\"name\":\"setCollateralRatio\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_slashRatio\",\"type\":\"uint256\"}],\"name\":\"setSlashRatio\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"taskContractAddress\",\"type\":\"address\"}],\"name\":\"slashCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"slashRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"slashedFunds\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"taskBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"tasks\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"cpAccountAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"collateral\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"status\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"taskContractAddress\",\"type\":\"address\"}],\"name\":\"unlockCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
	Bin: "0x60806040523480156200001157600080fd5b5033600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000885760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016200007f919062000222565b60405180910390fd5b62000099816200011960201b60201c565b50620000ab336200011960201b60201c565b6001600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600560048190555060026005819055506200023f565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200020a82620001dd565b9050919050565b6200021c81620001fd565b82525050565b600060208201905062000239600083018462000211565b92915050565b612ca5806200024f6000396000f3fe6080604052600436106101a05760003560e01c80637f58a7e5116100ec578063ce3518aa1161008a578063f2fde38b11610064578063f2fde38b146105ee578063f31cc88314610617578063f340fa0114610642578063f3fef3a31461065e576101b0565b8063ce3518aa14610571578063d27ca89b1461059a578063e0ed539d146105c5576101b0565b80639b5ddf09116100c65780639b5ddf09146104b55780639d1fef81146104e0578063a664c21614610509578063b4eae1cb14610546576101b0565b80637f58a7e5146104365780638da5cb5b1461045f5780639939cd181461048a576101b0565b80633fe65177116101595780637048027511610133578063704802751461038c57806370b72944146103b5578063715018a6146103e057806377c237fd146103f7576101b0565b80633fe65177146102fb5780636060663e146103385780636f99f15c14610361576101b0565b80630b4b73d1146101b55780631785f53c146101f257806324d7806c1461021b578063266565a91461025857806327e235e3146102955780633f001fd9146102d2576101b0565b366101b0576101ae33610687565b005b600080fd5b3480156101c157600080fd5b506101dc60048036038101906101d79190611f05565b61074e565b6040516101e99190611f9c565b60405180910390f35b3480156101fe57600080fd5b5061021960048036038101906102149190611f05565b610811565b005b34801561022757600080fd5b50610242600480360381019061023d9190611f05565b610874565b60405161024f9190611fd2565b60405180910390f35b34801561026457600080fd5b5061027f600480360381019061027a9190611f05565b610894565b60405161028c9190611ffc565b60405180910390f35b3480156102a157600080fd5b506102bc60048036038101906102b79190611f05565b6108ac565b6040516102c99190612030565b60405180910390f35b3480156102de57600080fd5b506102f960048036038101906102f49190611f05565b6108c4565b005b34801561030757600080fd5b50610322600480360381019061031d9190611f05565b610c0a565b60405161032f91906120db565b60405180910390f35b34801561034457600080fd5b5061035f600480360381019061035a9190612129565b610caa565b005b34801561036d57600080fd5b50610376610cbc565b6040516103839190611ffc565b60405180910390f35b34801561039857600080fd5b506103b360048036038101906103ae9190611f05565b610cc2565b005b3480156103c157600080fd5b506103ca610d25565b6040516103d79190611ffc565b60405180910390f35b3480156103ec57600080fd5b506103f5610d2f565b005b34801561040357600080fd5b5061041e60048036038101906104199190611f05565b610d43565b60405161042d93929190612165565b60405180910390f35b34801561044257600080fd5b5061045d60048036038101906104589190612129565b610d8d565b005b34801561046b57600080fd5b50610474610e23565b604051610481919061219c565b60405180910390f35b34801561049657600080fd5b5061049f610e4c565b6040516104ac919061221f565b60405180910390f35b3480156104c157600080fd5b506104ca610e8a565b6040516104d79190611ffc565b60405180910390f35b3480156104ec57600080fd5b5061050760048036038101906105029190611f05565b610e90565b005b34801561051557600080fd5b50610530600480360381019061052b9190611f05565b611292565b60405161053d91906122f6565b60405180910390f35b34801561055257600080fd5b5061055b61141d565b6040516105689190611ffc565b60405180910390f35b34801561057d57600080fd5b5061059860048036038101906105939190612129565b611423565b005b3480156105a657600080fd5b506105af611435565b6040516105bc9190611ffc565b60405180910390f35b3480156105d157600080fd5b506105ec60048036038101906105e79190612318565b61143b565b005b3480156105fa57600080fd5b5061061560048036038101906106109190611f05565b611772565b005b34801561062357600080fd5b5061062c6117f8565b6040516106399190611ffc565b60405180910390f35b61065c60048036038101906106579190611f05565b610687565b005b34801561066a57600080fd5b506106856004803603810190610680919061236b565b6117fe565b005b61069081611b49565b34600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546106df91906123da565b925050819055508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62346040516107439190611ffc565b60405180910390a350565b610756611dfe565b600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015481526020016002820154815250509050919050565b610819611cab565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b60066020528060005260406000206000915054906101000a900460ff1681565b60086020528060005260406000206000915090505481565b60076020528060005260406000206000915090505481565b600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610950576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094790612490565b60405180910390fd5b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000600860008360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600081836001015411610a12578260010154610a14565b815b905080600860008560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610a8991906124b0565b9250508190555080600760008560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610b0391906123da565b9250508190555060028360020181905550610b418360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611b49565b8260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f817d69f45cb0984f7141c288a3bea0d2dd7bc075758f311056d0aa31798614fa8286604051610bad9291906124e4565b60405180910390a28373ffffffffffffffffffffffffffffffffffffffff167f43a64df649a51c960307a3b5a4ec25a67c76629f0881669a214d162ae4ad2b5f6002604051610bfc9190611ffc565b60405180910390a250505050565b600a6020528060005260406000206000915090508054610c299061253c565b80601f0160208091040260200160405190810160405280929190818152602001828054610c559061253c565b8015610ca25780601f10610c7757610100808354040283529160200191610ca2565b820191906000526020600020905b815481529060010190602001808311610c8557829003601f168201915b505050505081565b610cb2611cab565b8060048190555050565b60015481565b610cca611cab565b6001600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000600254905090565b610d37611cab565b610d416000611d32565b565b60096020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154905083565b600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610e19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1090612490565b60405180910390fd5b8060028190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610e54611e35565b6040518060a001604052806001548152602001600254815260200160035481526020016004548152602001600554815250905090565b60025481565b600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610f1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1390612490565b60405180910390fd5b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060006005548260010154610f73919061256d565b90506000600860008460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000818311610fec5782610fee565b815b9050600081841161100057600061100d565b818461100c91906124b0565b5b905081600860008760000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461108291906124b0565b9250508190555080600760008760000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546110fc91906125af565b92505081905550836001600082825461111591906125f2565b92505081905550600385600201819055506111538560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611b49565b8460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f0f51f32e6325a6b213a7e9459df2a4564f058d9dca8309ff9b2508f6a83cf59385886040516111bf9291906124e4565b60405180910390a28573ffffffffffffffffffffffffffffffffffffffff167f43a64df649a51c960307a3b5a4ec25a67c76629f0881669a214d162ae4ad2b5f600360405161120e9190611ffc565b60405180910390a28460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f42f1a8a1aee108e84e4eabfaa8d51d7baaa1a02d482295297883a44b2debd3e48383604051611282929190612672565b60405180910390a2505050505050565b61129a611e64565b60405180608001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548152602001600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548152602001600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080546113959061253c565b80601f01602080910402602001604051908101604052809291908181526020018280546113c19061253c565b801561140e5780601f106113e35761010080835404028352916020019161140e565b820191906000526020600020905b8154815290600101906020018083116113f157829003601f168201915b50505050508152509050919050565b60045481565b61142b611cab565b8060058190555050565b60055481565b600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166114c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114be90612490565b60405180910390fd5b81600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541215611549576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154090612720565b60405180910390fd5b81600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461159891906125af565b9250508190555081600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546115ee91906125f2565b9250508190555060405180606001604052808473ffffffffffffffffffffffffffffffffffffffff1681526020018381526020016001815250600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201559050506116cd83611b49565b8273ffffffffffffffffffffffffffffffffffffffff167f56b60085244fe1afa467f92231debadc8bcb6127e9dbf35dbb58ca8406a423fe83836040516117159291906124e4565b60405180910390a28073ffffffffffffffffffffffffffffffffffffffff167f3f9b921f6bb5d577cdf49122202d27f7c50e3cc981c47543dc4a59c00dee52298484604051611765929190612740565b60405180910390a2505050565b61177a611cab565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036117ec5760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016117e3919061219c565b60405180910390fd5b6117f581611d32565b50565b60035481565b61180782611b49565b6000808373ffffffffffffffffffffffffffffffffffffffff166040516024016040516020818303038152906040527f893d20e8000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040516118b191906127b0565b6000604051808303816000865af19150503d80600081146118ee576040519150601f19603f3d011682016040523d82523d6000602084013e6118f3565b606091505b509150915081611938576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192f90612839565b60405180910390fd5b60008180602001905181019061194e9190612897565b905083600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205412156119d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c990612910565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611a40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a37906129a2565b60405180910390fd5b83600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a8f91906125af565b925050819055503373ffffffffffffffffffffffffffffffffffffffff166108fc859081150290604051600060405180830381858888f19350505050158015611adc573d6000803e3d6000fd5b508473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb86604051611b3a9190611ffc565b60405180910390a35050505050565b600254600454611b59919061256d565b600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205412611c25576040518060400160405280600981526020017f7a6b41756374696f6e0000000000000000000000000000000000000000000000815250600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209081611c1f9190612b9d565b50611ca8565b6040518060400160405280600381526020017f4e53430000000000000000000000000000000000000000000000000000000000815250600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209081611ca69190612b9d565b505b50565b611cb3611df6565b73ffffffffffffffffffffffffffffffffffffffff16611cd1610e23565b73ffffffffffffffffffffffffffffffffffffffff1614611d3057611cf4611df6565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611d27919061219c565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081525090565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff1681526020016000815260200160008152602001606081525090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611ed282611ea7565b9050919050565b611ee281611ec7565b8114611eed57600080fd5b50565b600081359050611eff81611ed9565b92915050565b600060208284031215611f1b57611f1a611ea2565b5b6000611f2984828501611ef0565b91505092915050565b611f3b81611ec7565b82525050565b6000819050919050565b611f5481611f41565b82525050565b606082016000820151611f706000850182611f32565b506020820151611f836020850182611f4b565b506040820151611f966040850182611f4b565b50505050565b6000606082019050611fb16000830184611f5a565b92915050565b60008115159050919050565b611fcc81611fb7565b82525050565b6000602082019050611fe76000830184611fc3565b92915050565b611ff681611f41565b82525050565b60006020820190506120116000830184611fed565b92915050565b6000819050919050565b61202a81612017565b82525050565b60006020820190506120456000830184612021565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561208557808201518184015260208101905061206a565b60008484015250505050565b6000601f19601f8301169050919050565b60006120ad8261204b565b6120b78185612056565b93506120c7818560208601612067565b6120d081612091565b840191505092915050565b600060208201905081810360008301526120f581846120a2565b905092915050565b61210681611f41565b811461211157600080fd5b50565b600081359050612123816120fd565b92915050565b60006020828403121561213f5761213e611ea2565b5b600061214d84828501612114565b91505092915050565b61215f81611ec7565b82525050565b600060608201905061217a6000830186612156565b6121876020830185611fed565b6121946040830184611fed565b949350505050565b60006020820190506121b16000830184612156565b92915050565b60a0820160008201516121cd6000850182611f4b565b5060208201516121e06020850182611f4b565b5060408201516121f36040850182611f4b565b5060608201516122066060850182611f4b565b5060808201516122196080850182611f4b565b50505050565b600060a08201905061223460008301846121b7565b92915050565b61224381612017565b82525050565b600082825260208201905092915050565b60006122658261204b565b61226f8185612249565b935061227f818560208601612067565b61228881612091565b840191505092915050565b60006080830160008301516122ab6000860182611f32565b5060208301516122be602086018261223a565b5060408301516122d16040860182611f4b565b50606083015184820360608601526122e9828261225a565b9150508091505092915050565b600060208201905081810360008301526123108184612293565b905092915050565b60008060006060848603121561233157612330611ea2565b5b600061233f86828701611ef0565b935050602061235086828701612114565b925050604061236186828701611ef0565b9150509250925092565b6000806040838503121561238257612381611ea2565b5b600061239085828601611ef0565b92505060206123a185828601612114565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006123e582612017565b91506123f083612017565b925082820190508281121560008312168382126000841215161715612418576124176123ab565b5b92915050565b7f4f6e6c79207468652061646d696e2063616e2063616c6c20746869732066756e60008201527f6374696f6e2e0000000000000000000000000000000000000000000000000000602082015250565b600061247a602683612056565b91506124858261241e565b604082019050919050565b600060208201905081810360008301526124a98161246d565b9050919050565b60006124bb82611f41565b91506124c683611f41565b92508282039050818111156124de576124dd6123ab565b5b92915050565b60006040820190506124f96000830185611fed565b6125066020830184612156565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061255457607f821691505b6020821081036125675761256661250d565b5b50919050565b600061257882611f41565b915061258383611f41565b925082820261259181611f41565b915082820484148315176125a8576125a76123ab565b5b5092915050565b60006125ba82612017565b91506125c583612017565b92508282039050818112600084121682821360008512151617156125ec576125eb6123ab565b5b92915050565b60006125fd82611f41565b915061260883611f41565b92508282019050808211156126205761261f6123ab565b5b92915050565b7f536c617368656400000000000000000000000000000000000000000000000000600082015250565b600061265c600783612056565b915061266782612626565b602082019050919050565b60006060820190506126876000830185611fed565b6126946020830184611fed565b81810360408301526126a58161264f565b90509392505050565b7f4e6f7420656e6f7567682062616c616e636520666f7220636f6c6c617465726160008201527f6c00000000000000000000000000000000000000000000000000000000000000602082015250565b600061270a602183612056565b9150612715826126ae565b604082019050919050565b60006020820190508181036000830152612739816126fd565b9050919050565b60006040820190506127556000830185612156565b6127626020830184611fed565b9392505050565b600081519050919050565b600081905092915050565b600061278a82612769565b6127948185612774565b93506127a4818560208601612067565b80840191505092915050565b60006127bc828461277f565b915081905092915050565b7f4661696c656420746f2063616c6c206765744f776e65722066756e6374696f6e60008201527f206f662043504163636f756e7400000000000000000000000000000000000000602082015250565b6000612823602d83612056565b915061282e826127c7565b604082019050919050565b6000602082019050818103600083015261285281612816565b9050919050565b600061286482611ea7565b9050919050565b61287481612859565b811461287f57600080fd5b50565b6000815190506128918161286b565b92915050565b6000602082840312156128ad576128ac611ea2565b5b60006128bb84828501612882565b91505092915050565b7f576974686472617720616d6f756e7420657863656564732062616c616e636500600082015250565b60006128fa601f83612056565b9150612905826128c4565b602082019050919050565b60006020820190508181036000830152612929816128ed565b9050919050565b7f4f6e6c792043502773206f776e65722063616e2077697468647261772074686560008201527f20636f6c6c61746572616c2066756e6473000000000000000000000000000000602082015250565b600061298c603183612056565b915061299782612930565b604082019050919050565b600060208201905081810360008301526129bb8161297f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302612a537fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612a16565b612a5d8683612a16565b95508019841693508086168417925050509392505050565b6000819050919050565b6000612a9a612a95612a9084611f41565b612a75565b611f41565b9050919050565b6000819050919050565b612ab483612a7f565b612ac8612ac082612aa1565b848454612a23565b825550505050565b600090565b612add612ad0565b612ae8818484612aab565b505050565b5b81811015612b0c57612b01600082612ad5565b600181019050612aee565b5050565b601f821115612b5157612b22816129f1565b612b2b84612a06565b81016020851015612b3a578190505b612b4e612b4685612a06565b830182612aed565b50505b505050565b600082821c905092915050565b6000612b7460001984600802612b56565b1980831691505092915050565b6000612b8d8383612b63565b9150826002028217905092915050565b612ba68261204b565b67ffffffffffffffff811115612bbf57612bbe6129c2565b5b612bc9825461253c565b612bd4828285612b10565b600060209050601f831160018114612c075760008415612bf5578287015190505b612bff8582612b81565b865550612c67565b601f198416612c15866129f1565b60005b82811015612c3d57848901518255600182019150602085019450602081019050612c18565b86831015612c5a5784890151612c56601f891682612b63565b8355505b6001600288020188555050505b50505050505056fea2646970667358221220f6fc876c8cceefb175d874063e75d24a5bc5f3684a2fa35df9a68881ccc1d52b64736f6c63430008140033",
}

CollaternalMetaData contains all meta data concerning the Collaternal contract.

View Source
var TaskABI = TaskMetaData.ABI

TaskABI is the input ABI used to generate the binding from. Deprecated: Use TaskMetaData.ABI instead.

View Source
var TaskBin = TaskMetaData.Bin

TaskBin is the compiled bytecode used for deploying new contracts. Deprecated: Use TaskMetaData.Bin instead.

View Source
var TaskMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_taskType\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_resourceType\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_inputParam\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_verifyParam\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"_cpContractAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"_status\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_lockFundTx\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"_deadline\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"challengeTx\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"status\",\"type\":\"string\"}],\"name\":\"ChallengeAndStatusUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"lockFundTx\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"status\",\"type\":\"string\"}],\"name\":\"LockAndStatusUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"rewardTx\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"status\",\"type\":\"string\"}],\"name\":\"RewardAndStatusUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"slashTx\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"status\",\"type\":\"string\"}],\"name\":\"SlashAndStatusUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"proof\",\"type\":\"string\"}],\"name\":\"SubmitProof\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"unlockFundTx\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"status\",\"type\":\"string\"}],\"name\":\"UnlockAndStatusUpdated\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"challengeTx\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"cpContractAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"deadline\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTaskInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"taskType\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"resourceType\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"inputParam\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"verifyParam\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"cpContractAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"status\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"rewardTx\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"proof\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"challengeTx\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"lockFundTx\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"unlockFundTx\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"slashTx\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isSubmitted\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isChallenged\",\"type\":\"bool\"}],\"internalType\":\"structECPTask.TaskInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"inputParam\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"isAdmin\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isChallenged\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isSubmitted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lockFundTx\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proof\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"resourceType\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardTx\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"slashTx\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"status\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_proof\",\"type\":\"string\"}],\"name\":\"submitProof\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"taskType\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unlockFundTx\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_challengeTx\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_status\",\"type\":\"string\"}],\"name\":\"updateChallengeAndStatus\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_lockFundTx\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_status\",\"type\":\"string\"}],\"name\":\"updateLockAndStatus\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_rewardTx\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_status\",\"type\":\"string\"}],\"name\":\"updateRewardAndStatus\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_slashTx\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_status\",\"type\":\"string\"}],\"name\":\"updateSlashAndStatus\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_unlockFundTx\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_status\",\"type\":\"string\"}],\"name\":\"updateUnlockAndStatus\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"verifyParam\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}]",
	Bin: "0x60806040523480156200001157600080fd5b50604051620031c0380380620031c08339818101604052810190620000379190620004ba565b33600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000ad5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000a4919062000610565b60405180910390fd5b620000be81620001c360201b60201c565b5087600181905550866002819055508560039081620000de91906200086e565b508460049081620000f091906200086e565b5083600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600690816200014391906200086e565b5080600d8190555081600a90816200015c91906200086e565b506001600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550505050505050505062000955565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b620002b0816200029b565b8114620002bc57600080fd5b50565b600081519050620002d081620002a5565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200032b82620002e0565b810181811067ffffffffffffffff821117156200034d576200034c620002f1565b5b80604052505050565b60006200036262000287565b905062000370828262000320565b919050565b600067ffffffffffffffff821115620003935762000392620002f1565b5b6200039e82620002e0565b9050602081019050919050565b60005b83811015620003cb578082015181840152602081019050620003ae565b60008484015250505050565b6000620003ee620003e88462000375565b62000356565b9050828152602081018484840111156200040d576200040c620002db565b5b6200041a848285620003ab565b509392505050565b600082601f8301126200043a5762000439620002d6565b5b81516200044c848260208601620003d7565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004828262000455565b9050919050565b620004948162000475565b8114620004a057600080fd5b50565b600081519050620004b48162000489565b92915050565b600080600080600080600080610100898b031215620004de57620004dd62000291565b5b6000620004ee8b828c01620002bf565b9850506020620005018b828c01620002bf565b975050604089015167ffffffffffffffff81111562000525576200052462000296565b5b620005338b828c0162000422565b965050606089015167ffffffffffffffff81111562000557576200055662000296565b5b620005658b828c0162000422565b9550506080620005788b828c01620004a3565b94505060a089015167ffffffffffffffff8111156200059c576200059b62000296565b5b620005aa8b828c0162000422565b93505060c089015167ffffffffffffffff811115620005ce57620005cd62000296565b5b620005dc8b828c0162000422565b92505060e0620005ef8b828c01620002bf565b9150509295985092959890939650565b6200060a8162000475565b82525050565b6000602082019050620006276000830184620005ff565b92915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200068057607f821691505b60208210810362000696576200069562000638565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620007007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620006c1565b6200070c8683620006c1565b95508019841693508086168417925050509392505050565b6000819050919050565b60006200074f6200074962000743846200029b565b62000724565b6200029b565b9050919050565b6000819050919050565b6200076b836200072e565b620007836200077a8262000756565b848454620006ce565b825550505050565b600090565b6200079a6200078b565b620007a781848462000760565b505050565b5b81811015620007cf57620007c360008262000790565b600181019050620007ad565b5050565b601f8211156200081e57620007e8816200069c565b620007f384620006b1565b8101602085101562000803578190505b6200081b6200081285620006b1565b830182620007ac565b50505b505050565b600082821c905092915050565b6000620008436000198460080262000823565b1980831691505092915050565b60006200085e838362000830565b9150826002028217905092915050565b62000879826200062d565b67ffffffffffffffff811115620008955762000894620002f1565b5b620008a1825462000667565b620008ae828285620007d3565b600060209050601f831160018114620008e65760008415620008d1578287015190505b620008dd858262000850565b8655506200094d565b601f198416620008f6866200069c565b60005b828110156200092057848901518255600182019150602085019450602081019050620008f9565b868310156200094057848901516200093c601f89168262000830565b8355505b6001600288020188555050505b505050505050565b61285b80620009656000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80638cf6f32c116100f9578063e488168811610097578063f7d2219011610071578063f7d2219014610450578063f80cb18a1461046e578063faf924cf1461048c578063fe140e63146104aa576101a9565b8063e4881688146103f8578063ec218dc414610416578063f2fde38b14610434576101a9565b80639df4d0fe116100d35780639df4d0fe14610384578063b07d7f52146103a2578063b0a40371146103be578063bac64a2e146103da576101a9565b80638cf6f32c1461032a5780638da5cb5b1461034857806392395dc514610366576101a9565b8063497153e31161016657806354fd4d501161014057806354fd4d50146102c85780636b24e930146102e6578063715018a614610302578063741b87901461030c576101a9565b8063497153e3146102705780634ad45b321461028e5780634dc17e58146102aa576101a9565b80631382fe66146101ae578063200d2ed2146101ca57806324d7806c146101e857806329dcb0cf146102185780632c2e8faf146102365780632cae8b1014610252575b600080fd5b6101c860048036038101906101c39190611cc4565b6104c8565b005b6101d26105b3565b6040516101df9190611dbb565b60405180910390f35b61020260048036038101906101fd9190611e3b565b610641565b60405161020f9190611e83565b60405180910390f35b610220610661565b60405161022d9190611eb7565b60405180910390f35b610250600480360381019061024b9190611ed2565b610667565b005b61025a610a4d565b6040516102679190611dbb565b60405180910390f35b610278610adb565b6040516102859190611dbb565b60405180910390f35b6102a860048036038101906102a39190611cc4565b610b69565b005b6102b2610c54565b6040516102bf9190611dbb565b60405180910390f35b6102d0610ce2565b6040516102dd9190611dbb565b60405180910390f35b61030060048036038101906102fb9190611cc4565b610d1f565b005b61030a610e25565b005b610314610e39565b6040516103219190611e83565b60405180910390f35b610332610e4c565b60405161033f9190611eb7565b60405180910390f35b610350610e52565b60405161035d9190611f2a565b60405180910390f35b61036e610e7b565b60405161037b9190611f2a565b60405180910390f35b61038c610ea1565b6040516103999190611e83565b60405180910390f35b6103bc60048036038101906103b79190611cc4565b610eb4565b005b6103d860048036038101906103d39190611cc4565b610f9f565b005b6103e261108a565b6040516103ef9190612137565b60405180910390f35b610400611635565b60405161040d9190611dbb565b60405180910390f35b61041e6116c3565b60405161042b9190611dbb565b60405180910390f35b61044e60048036038101906104499190611e3b565b611751565b005b6104586117d7565b6040516104659190611eb7565b60405180910390f35b6104766117dd565b6040516104839190611dbb565b60405180910390f35b61049461186b565b6040516104a19190611dbb565b60405180910390f35b6104b26118f9565b6040516104bf9190611dbb565b60405180910390f35b600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610554576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161054b906121cb565b60405180910390fd5b81600c908161056391906123f7565b50806006908161057391906123f7565b507f14991a7b105e113ae4508a09d769814db62890b0952651f33852175fe4b11d5f600c60066040516105a792919061254d565b60405180910390a15050565b600680546105c09061221a565b80601f01602080910402602001604051908101604052809291908181526020018280546105ec9061221a565b80156106395780601f1061060e57610100808354040283529160200191610639565b820191906000526020600020905b81548152906001019060200180831161061c57829003601f168201915b505050505081565b600f6020528060005260406000206000915054906101000a900460ff1681565b600d5481565b600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166040516024016040516020818303038152906040527f893d20e8000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505060405161073391906125cb565b6000604051808303816000865af19150503d8060008114610770576040519150601f19603f3d011682016040523d82523d6000602084013e610775565b606091505b5091509150816107ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107b190612654565b60405180910390fd5b6000818060200190518101906107d091906126b2565b9050600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166040516024016040516020818303038152906040527f67eaeddb000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505060405161089e91906125cb565b6000604051808303816000865af19150503d80600081146108db576040519150601f19603f3d011682016040523d82523d6000602084013e6108e0565b606091505b509150915081610925576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091c90612751565b60405180910390fd5b60008180602001905181019061093b91906126b2565b90508373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806109a257508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6109e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d8906127e3565b60405180910390fd5b86600890816109f091906123f7565b506001600e60006101000a81548160ff0219169083151502179055507f67e0a5f59c15b94ec89ed4c7e56f5b15fdaca75d0b86d75b2018706a2280154f6008604051610a3c9190612803565b60405180910390a150505050505050565b60078054610a5a9061221a565b80601f0160208091040260200160405190810160405280929190818152602001828054610a869061221a565b8015610ad35780601f10610aa857610100808354040283529160200191610ad3565b820191906000526020600020905b815481529060010190602001808311610ab657829003601f168201915b505050505081565b60048054610ae89061221a565b80601f0160208091040260200160405190810160405280929190818152602001828054610b149061221a565b8015610b615780601f10610b3657610100808354040283529160200191610b61565b820191906000526020600020905b815481529060010190602001808311610b4457829003601f168201915b505050505081565b600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610bf5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bec906121cb565b60405180910390fd5b81600a9081610c0491906123f7565b508060069081610c1491906123f7565b507feb08b71e81c5e995ac5fbef09b6c1380b2f9113fda277a04d2fcc2a6c5bd47c2600a6006604051610c4892919061254d565b60405180910390a15050565b600c8054610c619061221a565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8d9061221a565b8015610cda5780601f10610caf57610100808354040283529160200191610cda565b820191906000526020600020905b815481529060010190602001808311610cbd57829003601f168201915b505050505081565b60606040518060400160405280600581526020017f312e302e30000000000000000000000000000000000000000000000000000000815250905090565b600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610dab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da2906121cb565b60405180910390fd5b8160099081610dba91906123f7565b508060069081610dca91906123f7565b506001600e60016101000a81548160ff0219169083151502179055507f37f72c359298bc403d455d28c855dab034a805c621c8939e09413242c83d05f560096006604051610e1992919061254d565b60405180910390a15050565b610e2d611987565b610e376000611a0e565b565b600e60009054906101000a900460ff1681565b60015481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600e60019054906101000a900460ff1681565b600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610f40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f37906121cb565b60405180910390fd5b8160079081610f4f91906123f7565b508060069081610f5f91906123f7565b507f6cefc22ea80cdbcb2e0b5b0b9b136056e885d5a55058ec6f69e67395909b9f1f60076006604051610f9392919061254d565b60405180910390a15050565b600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661102b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611022906121cb565b60405180910390fd5b81600b908161103a91906123f7565b50806006908161104a91906123f7565b507fa2c323da9675ecdcddb6410b223f7da6a9ea2e8df0f0cea69766f2562691d2fa600b600660405161107e92919061254d565b60405180910390a15050565b611092611ada565b604051806101e0016040528060015481526020016002548152602001600380546110bb9061221a565b80601f01602080910402602001604051908101604052809291908181526020018280546110e79061221a565b80156111345780601f1061110957610100808354040283529160200191611134565b820191906000526020600020905b81548152906001019060200180831161111757829003601f168201915b505050505081526020016004805461114b9061221a565b80601f01602080910402602001604051908101604052809291908181526020018280546111779061221a565b80156111c45780601f10611199576101008083540402835291602001916111c4565b820191906000526020600020905b8154815290600101906020018083116111a757829003601f168201915b50505050508152602001600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600680546112199061221a565b80601f01602080910402602001604051908101604052809291908181526020018280546112459061221a565b80156112925780601f1061126757610100808354040283529160200191611292565b820191906000526020600020905b81548152906001019060200180831161127557829003601f168201915b50505050508152602001600780546112a99061221a565b80601f01602080910402602001604051908101604052809291908181526020018280546112d59061221a565b80156113225780601f106112f757610100808354040283529160200191611322565b820191906000526020600020905b81548152906001019060200180831161130557829003601f168201915b50505050508152602001600880546113399061221a565b80601f01602080910402602001604051908101604052809291908181526020018280546113659061221a565b80156113b25780601f10611387576101008083540402835291602001916113b2565b820191906000526020600020905b81548152906001019060200180831161139557829003601f168201915b50505050508152602001600980546113c99061221a565b80601f01602080910402602001604051908101604052809291908181526020018280546113f59061221a565b80156114425780601f1061141757610100808354040283529160200191611442565b820191906000526020600020905b81548152906001019060200180831161142557829003601f168201915b50505050508152602001600a80546114599061221a565b80601f01602080910402602001604051908101604052809291908181526020018280546114859061221a565b80156114d25780601f106114a7576101008083540402835291602001916114d2565b820191906000526020600020905b8154815290600101906020018083116114b557829003601f168201915b50505050508152602001600b80546114e99061221a565b80601f01602080910402602001604051908101604052809291908181526020018280546115159061221a565b80156115625780601f1061153757610100808354040283529160200191611562565b820191906000526020600020905b81548152906001019060200180831161154557829003601f168201915b50505050508152602001600c80546115799061221a565b80601f01602080910402602001604051908101604052809291908181526020018280546115a59061221a565b80156115f25780601f106115c7576101008083540402835291602001916115f2565b820191906000526020600020905b8154815290600101906020018083116115d557829003601f168201915b50505050508152602001600d548152602001600e60009054906101000a900460ff1615158152602001600e60019054906101000a900460ff161515815250905090565b600980546116429061221a565b80601f016020809104026020016040519081016040528092919081815260200182805461166e9061221a565b80156116bb5780601f10611690576101008083540402835291602001916116bb565b820191906000526020600020905b81548152906001019060200180831161169e57829003601f168201915b505050505081565b600b80546116d09061221a565b80601f01602080910402602001604051908101604052809291908181526020018280546116fc9061221a565b80156117495780601f1061171e57610100808354040283529160200191611749565b820191906000526020600020905b81548152906001019060200180831161172c57829003601f168201915b505050505081565b611759611987565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036117cb5760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016117c29190611f2a565b60405180910390fd5b6117d481611a0e565b50565b60025481565b600a80546117ea9061221a565b80601f01602080910402602001604051908101604052809291908181526020018280546118169061221a565b80156118635780601f1061183857610100808354040283529160200191611863565b820191906000526020600020905b81548152906001019060200180831161184657829003601f168201915b505050505081565b600880546118789061221a565b80601f01602080910402602001604051908101604052809291908181526020018280546118a49061221a565b80156118f15780601f106118c6576101008083540402835291602001916118f1565b820191906000526020600020905b8154815290600101906020018083116118d457829003601f168201915b505050505081565b600380546119069061221a565b80601f01602080910402602001604051908101604052809291908181526020018280546119329061221a565b801561197f5780601f106119545761010080835404028352916020019161197f565b820191906000526020600020905b81548152906001019060200180831161196257829003601f168201915b505050505081565b61198f611ad2565b73ffffffffffffffffffffffffffffffffffffffff166119ad610e52565b73ffffffffffffffffffffffffffffffffffffffff1614611a0c576119d0611ad2565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611a039190611f2a565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b604051806101e0016040528060008152602001600081526020016060815260200160608152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001600081526020016000151581526020016000151581525090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b611bd182611b88565b810181811067ffffffffffffffff82111715611bf057611bef611b99565b5b80604052505050565b6000611c03611b6a565b9050611c0f8282611bc8565b919050565b600067ffffffffffffffff821115611c2f57611c2e611b99565b5b611c3882611b88565b9050602081019050919050565b82818337600083830152505050565b6000611c67611c6284611c14565b611bf9565b905082815260208101848484011115611c8357611c82611b83565b5b611c8e848285611c45565b509392505050565b600082601f830112611cab57611caa611b7e565b5b8135611cbb848260208601611c54565b91505092915050565b60008060408385031215611cdb57611cda611b74565b5b600083013567ffffffffffffffff811115611cf957611cf8611b79565b5b611d0585828601611c96565b925050602083013567ffffffffffffffff811115611d2657611d25611b79565b5b611d3285828601611c96565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611d76578082015181840152602081019050611d5b565b60008484015250505050565b6000611d8d82611d3c565b611d978185611d47565b9350611da7818560208601611d58565b611db081611b88565b840191505092915050565b60006020820190508181036000830152611dd58184611d82565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611e0882611ddd565b9050919050565b611e1881611dfd565b8114611e2357600080fd5b50565b600081359050611e3581611e0f565b92915050565b600060208284031215611e5157611e50611b74565b5b6000611e5f84828501611e26565b91505092915050565b60008115159050919050565b611e7d81611e68565b82525050565b6000602082019050611e986000830184611e74565b92915050565b6000819050919050565b611eb181611e9e565b82525050565b6000602082019050611ecc6000830184611ea8565b92915050565b600060208284031215611ee857611ee7611b74565b5b600082013567ffffffffffffffff811115611f0657611f05611b79565b5b611f1284828501611c96565b91505092915050565b611f2481611dfd565b82525050565b6000602082019050611f3f6000830184611f1b565b92915050565b611f4e81611e9e565b82525050565b600082825260208201905092915050565b6000611f7082611d3c565b611f7a8185611f54565b9350611f8a818560208601611d58565b611f9381611b88565b840191505092915050565b611fa781611dfd565b82525050565b611fb681611e68565b82525050565b60006101e083016000830151611fd56000860182611f45565b506020830151611fe86020860182611f45565b50604083015184820360408601526120008282611f65565b9150506060830151848203606086015261201a8282611f65565b915050608083015161202f6080860182611f9e565b5060a083015184820360a08601526120478282611f65565b91505060c083015184820360c08601526120618282611f65565b91505060e083015184820360e086015261207b8282611f65565b9150506101008301518482036101008601526120978282611f65565b9150506101208301518482036101208601526120b38282611f65565b9150506101408301518482036101408601526120cf8282611f65565b9150506101608301518482036101608601526120eb8282611f65565b915050610180830151612102610180860182611f45565b506101a08301516121176101a0860182611fad565b506101c083015161212c6101c0860182611fad565b508091505092915050565b600060208201905081810360008301526121518184611fbc565b905092915050565b7f4f6e6c79207468652061646d696e2063616e2063616c6c20746869732066756e60008201527f6374696f6e2e0000000000000000000000000000000000000000000000000000602082015250565b60006121b5602683611d47565b91506121c082612159565b604082019050919050565b600060208201905081810360008301526121e4816121a8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061223257607f821691505b602082108103612245576122446121eb565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026122ad7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612270565b6122b78683612270565b95508019841693508086168417925050509392505050565b6000819050919050565b60006122f46122ef6122ea84611e9e565b6122cf565b611e9e565b9050919050565b6000819050919050565b61230e836122d9565b61232261231a826122fb565b84845461227d565b825550505050565b600090565b61233761232a565b612342818484612305565b505050565b5b818110156123665761235b60008261232f565b600181019050612348565b5050565b601f8211156123ab5761237c8161224b565b61238584612260565b81016020851015612394578190505b6123a86123a085612260565b830182612347565b50505b505050565b600082821c905092915050565b60006123ce600019846008026123b0565b1980831691505092915050565b60006123e783836123bd565b9150826002028217905092915050565b61240082611d3c565b67ffffffffffffffff81111561241957612418611b99565b5b612423825461221a565b61242e82828561236a565b600060209050601f831160018114612461576000841561244f578287015190505b61245985826123db565b8655506124c1565b601f19841661246f8661224b565b60005b8281101561249757848901518255600182019150602085019450602081019050612472565b868310156124b457848901516124b0601f8916826123bd565b8355505b6001600288020188555050505b505050505050565b600081546124d68161221a565b6124e08186611d47565b945060018216600081146124fb576001811461251157612544565b60ff198316865281151560200286019350612544565b61251a8561224b565b60005b8381101561253c5781548189015260018201915060208101905061251d565b808801955050505b50505092915050565b6000604082019050818103600083015261256781856124c9565b9050818103602083015261257b81846124c9565b90509392505050565b600081519050919050565b600081905092915050565b60006125a582612584565b6125af818561258f565b93506125bf818560208601611d58565b80840191505092915050565b60006125d7828461259a565b915081905092915050565b7f4661696c656420746f2063616c6c206765744f776e65722066756e6374696f6e60008201527f206f662043504163636f756e7400000000000000000000000000000000000000602082015250565b600061263e602d83611d47565b9150612649826125e2565b604082019050919050565b6000602082019050818103600083015261266d81612631565b9050919050565b600061267f82611ddd565b9050919050565b61268f81612674565b811461269a57600080fd5b50565b6000815190506126ac81612686565b92915050565b6000602082840312156126c8576126c7611b74565b5b60006126d68482850161269d565b91505092915050565b7f4661696c656420746f2063616c6c20676574576f726b65722066756e6374696f60008201527f6e206f662043504163636f756e74000000000000000000000000000000000000602082015250565b600061273b602e83611d47565b9150612746826126df565b604082019050919050565b6000602082019050818103600083015261276a8161272e565b9050919050565b7f4f6e6c792074686520435020636f6e7472616374206f776e6572206f7220776f60008201527f726b65722063616e207375626d69742070726f6f662e00000000000000000000602082015250565b60006127cd603683611d47565b91506127d882612771565b604082019050919050565b600060208201905081810360008301526127fc816127c0565b9050919050565b6000602082019050818103600083015261281d81846124c9565b90509291505056fea2646970667358221220d0966c31b5193ac175b74f19a6b973b3cb89324caba3a96b192c05ef1babba0364736f6c63430008140033",
}

TaskMetaData contains all meta data concerning the Task contract.

Functions

func ParseError

func ParseError(err error) string

Types

type Collaternal

type Collaternal struct {
	CollaternalCaller     // Read-only binding to the contract
	CollaternalTransactor // Write-only binding to the contract
	CollaternalFilterer   // Log filterer for contract events
}

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

func DeployCollaternal

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

DeployCollaternal deploys a new Ethereum contract, binding an instance of Collaternal to it.

func NewCollaternal

func NewCollaternal(address common.Address, backend bind.ContractBackend) (*Collaternal, error)

NewCollaternal creates a new instance of Collaternal, bound to a specific deployed contract.

type CollaternalCaller

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

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

func NewCollaternalCaller

func NewCollaternalCaller(address common.Address, caller bind.ContractCaller) (*CollaternalCaller, error)

NewCollaternalCaller creates a new read-only instance of Collaternal, bound to a specific deployed contract.

func (*CollaternalCaller) Balances

func (_Collaternal *CollaternalCaller) Balances(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

Balances is a free data retrieval call binding the contract method 0x27e235e3.

Solidity: function balances(address ) view returns(int256)

func (*CollaternalCaller) BaseCollateral

func (_Collaternal *CollaternalCaller) BaseCollateral(opts *bind.CallOpts) (*big.Int, error)

BaseCollateral is a free data retrieval call binding the contract method 0x9b5ddf09.

Solidity: function baseCollateral() view returns(uint256)

func (*CollaternalCaller) CollateralRatio

func (_Collaternal *CollaternalCaller) CollateralRatio(opts *bind.CallOpts) (*big.Int, error)

CollateralRatio is a free data retrieval call binding the contract method 0xb4eae1cb.

Solidity: function collateralRatio() view returns(uint256)

func (*CollaternalCaller) CpInfo

func (_Collaternal *CollaternalCaller) CpInfo(opts *bind.CallOpts, cpAddress common.Address) (ECPCollateralCPInfo, error)

CpInfo is a free data retrieval call binding the contract method 0xa664c216.

Solidity: function cpInfo(address cpAddress) view returns((address,int256,uint256,string))

func (*CollaternalCaller) CpStatus

func (_Collaternal *CollaternalCaller) CpStatus(opts *bind.CallOpts, arg0 common.Address) (string, error)

CpStatus is a free data retrieval call binding the contract method 0x3fe65177.

Solidity: function cpStatus(address ) view returns(string)

func (*CollaternalCaller) FrozenBalance

func (_Collaternal *CollaternalCaller) FrozenBalance(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

FrozenBalance is a free data retrieval call binding the contract method 0x266565a9.

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

func (*CollaternalCaller) GetBaseCollateral

func (_Collaternal *CollaternalCaller) GetBaseCollateral(opts *bind.CallOpts) (*big.Int, error)

GetBaseCollateral is a free data retrieval call binding the contract method 0x70b72944.

Solidity: function getBaseCollateral() view returns(uint256)

func (*CollaternalCaller) GetECPCollateralInfo

func (_Collaternal *CollaternalCaller) GetECPCollateralInfo(opts *bind.CallOpts) (ECPCollateralContractInfo, error)

GetECPCollateralInfo is a free data retrieval call binding the contract method 0x9939cd18.

Solidity: function getECPCollateralInfo() view returns((uint256,uint256,uint256,uint256,uint256))

func (*CollaternalCaller) GetTaskInfo

func (_Collaternal *CollaternalCaller) GetTaskInfo(opts *bind.CallOpts, taskContractAddress common.Address) (ECPCollateralTask, error)

GetTaskInfo is a free data retrieval call binding the contract method 0x0b4b73d1.

Solidity: function getTaskInfo(address taskContractAddress) view returns((address,uint256,uint256))

func (*CollaternalCaller) IsAdmin

func (_Collaternal *CollaternalCaller) IsAdmin(opts *bind.CallOpts, arg0 common.Address) (bool, error)

IsAdmin is a free data retrieval call binding the contract method 0x24d7806c.

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

func (*CollaternalCaller) Owner

func (_Collaternal *CollaternalCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*CollaternalCaller) SlashRatio

func (_Collaternal *CollaternalCaller) SlashRatio(opts *bind.CallOpts) (*big.Int, error)

SlashRatio is a free data retrieval call binding the contract method 0xd27ca89b.

Solidity: function slashRatio() view returns(uint256)

func (*CollaternalCaller) SlashedFunds

func (_Collaternal *CollaternalCaller) SlashedFunds(opts *bind.CallOpts) (*big.Int, error)

SlashedFunds is a free data retrieval call binding the contract method 0x6f99f15c.

Solidity: function slashedFunds() view returns(uint256)

func (*CollaternalCaller) TaskBalance

func (_Collaternal *CollaternalCaller) TaskBalance(opts *bind.CallOpts) (*big.Int, error)

TaskBalance is a free data retrieval call binding the contract method 0xf31cc883.

Solidity: function taskBalance() view returns(uint256)

func (*CollaternalCaller) Tasks

func (_Collaternal *CollaternalCaller) Tasks(opts *bind.CallOpts, arg0 common.Address) (struct {
	CpAccountAddress common.Address
	Collateral       *big.Int
	Status           *big.Int
}, error)

Tasks is a free data retrieval call binding the contract method 0x77c237fd.

Solidity: function tasks(address ) view returns(address cpAccountAddress, uint256 collateral, uint256 status)

type CollaternalCallerRaw

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

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

func (*CollaternalCallerRaw) Call

func (_Collaternal *CollaternalCallerRaw) 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 CollaternalCallerSession

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

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

func (*CollaternalCallerSession) Balances

func (_Collaternal *CollaternalCallerSession) Balances(arg0 common.Address) (*big.Int, error)

Balances is a free data retrieval call binding the contract method 0x27e235e3.

Solidity: function balances(address ) view returns(int256)

func (*CollaternalCallerSession) BaseCollateral

func (_Collaternal *CollaternalCallerSession) BaseCollateral() (*big.Int, error)

BaseCollateral is a free data retrieval call binding the contract method 0x9b5ddf09.

Solidity: function baseCollateral() view returns(uint256)

func (*CollaternalCallerSession) CollateralRatio

func (_Collaternal *CollaternalCallerSession) CollateralRatio() (*big.Int, error)

CollateralRatio is a free data retrieval call binding the contract method 0xb4eae1cb.

Solidity: function collateralRatio() view returns(uint256)

func (*CollaternalCallerSession) CpInfo

func (_Collaternal *CollaternalCallerSession) CpInfo(cpAddress common.Address) (ECPCollateralCPInfo, error)

CpInfo is a free data retrieval call binding the contract method 0xa664c216.

Solidity: function cpInfo(address cpAddress) view returns((address,int256,uint256,string))

func (*CollaternalCallerSession) CpStatus

func (_Collaternal *CollaternalCallerSession) CpStatus(arg0 common.Address) (string, error)

CpStatus is a free data retrieval call binding the contract method 0x3fe65177.

Solidity: function cpStatus(address ) view returns(string)

func (*CollaternalCallerSession) FrozenBalance

func (_Collaternal *CollaternalCallerSession) FrozenBalance(arg0 common.Address) (*big.Int, error)

FrozenBalance is a free data retrieval call binding the contract method 0x266565a9.

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

func (*CollaternalCallerSession) GetBaseCollateral

func (_Collaternal *CollaternalCallerSession) GetBaseCollateral() (*big.Int, error)

GetBaseCollateral is a free data retrieval call binding the contract method 0x70b72944.

Solidity: function getBaseCollateral() view returns(uint256)

func (*CollaternalCallerSession) GetECPCollateralInfo

func (_Collaternal *CollaternalCallerSession) GetECPCollateralInfo() (ECPCollateralContractInfo, error)

GetECPCollateralInfo is a free data retrieval call binding the contract method 0x9939cd18.

Solidity: function getECPCollateralInfo() view returns((uint256,uint256,uint256,uint256,uint256))

func (*CollaternalCallerSession) GetTaskInfo

func (_Collaternal *CollaternalCallerSession) GetTaskInfo(taskContractAddress common.Address) (ECPCollateralTask, error)

GetTaskInfo is a free data retrieval call binding the contract method 0x0b4b73d1.

Solidity: function getTaskInfo(address taskContractAddress) view returns((address,uint256,uint256))

func (*CollaternalCallerSession) IsAdmin

func (_Collaternal *CollaternalCallerSession) IsAdmin(arg0 common.Address) (bool, error)

IsAdmin is a free data retrieval call binding the contract method 0x24d7806c.

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

func (*CollaternalCallerSession) Owner

func (_Collaternal *CollaternalCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*CollaternalCallerSession) SlashRatio

func (_Collaternal *CollaternalCallerSession) SlashRatio() (*big.Int, error)

SlashRatio is a free data retrieval call binding the contract method 0xd27ca89b.

Solidity: function slashRatio() view returns(uint256)

func (*CollaternalCallerSession) SlashedFunds

func (_Collaternal *CollaternalCallerSession) SlashedFunds() (*big.Int, error)

SlashedFunds is a free data retrieval call binding the contract method 0x6f99f15c.

Solidity: function slashedFunds() view returns(uint256)

func (*CollaternalCallerSession) TaskBalance

func (_Collaternal *CollaternalCallerSession) TaskBalance() (*big.Int, error)

TaskBalance is a free data retrieval call binding the contract method 0xf31cc883.

Solidity: function taskBalance() view returns(uint256)

func (*CollaternalCallerSession) Tasks

func (_Collaternal *CollaternalCallerSession) Tasks(arg0 common.Address) (struct {
	CpAccountAddress common.Address
	Collateral       *big.Int
	Status           *big.Int
}, error)

Tasks is a free data retrieval call binding the contract method 0x77c237fd.

Solidity: function tasks(address ) view returns(address cpAccountAddress, uint256 collateral, uint256 status)

type CollaternalCollateralAdjusted

type CollaternalCollateralAdjusted struct {
	Cp            common.Address
	FrozenAmount  *big.Int
	BalanceAmount *big.Int
	Operation     string
	Raw           types.Log // Blockchain specific contextual infos
}

CollaternalCollateralAdjusted represents a CollateralAdjusted event raised by the Collaternal contract.

type CollaternalCollateralAdjustedIterator

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

CollaternalCollateralAdjustedIterator is returned from FilterCollateralAdjusted and is used to iterate over the raw logs and unpacked data for CollateralAdjusted events raised by the Collaternal contract.

func (*CollaternalCollateralAdjustedIterator) Close

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

func (*CollaternalCollateralAdjustedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CollaternalCollateralAdjustedIterator) 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 CollaternalCollateralLocked

type CollaternalCollateralLocked struct {
	Cp                  common.Address
	CollateralAmount    *big.Int
	TaskContractAddress common.Address
	Raw                 types.Log // Blockchain specific contextual infos
}

CollaternalCollateralLocked represents a CollateralLocked event raised by the Collaternal contract.

type CollaternalCollateralLockedIterator

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

CollaternalCollateralLockedIterator is returned from FilterCollateralLocked and is used to iterate over the raw logs and unpacked data for CollateralLocked events raised by the Collaternal contract.

func (*CollaternalCollateralLockedIterator) Close

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

func (*CollaternalCollateralLockedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CollaternalCollateralLockedIterator) 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 CollaternalCollateralSlashed

type CollaternalCollateralSlashed struct {
	Cp                  common.Address
	Amount              *big.Int
	TaskContractAddress common.Address
	Raw                 types.Log // Blockchain specific contextual infos
}

CollaternalCollateralSlashed represents a CollateralSlashed event raised by the Collaternal contract.

type CollaternalCollateralSlashedIterator

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

CollaternalCollateralSlashedIterator is returned from FilterCollateralSlashed and is used to iterate over the raw logs and unpacked data for CollateralSlashed events raised by the Collaternal contract.

func (*CollaternalCollateralSlashedIterator) Close

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

func (*CollaternalCollateralSlashedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CollaternalCollateralSlashedIterator) 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 CollaternalCollateralUnlocked

type CollaternalCollateralUnlocked struct {
	Cp                  common.Address
	CollateralAmount    *big.Int
	TaskContractAddress common.Address
	Raw                 types.Log // Blockchain specific contextual infos
}

CollaternalCollateralUnlocked represents a CollateralUnlocked event raised by the Collaternal contract.

type CollaternalCollateralUnlockedIterator

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

CollaternalCollateralUnlockedIterator is returned from FilterCollateralUnlocked and is used to iterate over the raw logs and unpacked data for CollateralUnlocked events raised by the Collaternal contract.

func (*CollaternalCollateralUnlockedIterator) Close

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

func (*CollaternalCollateralUnlockedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CollaternalCollateralUnlockedIterator) 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 CollaternalDeposit

type CollaternalDeposit struct {
	FundingWallet common.Address
	CpAccount     common.Address
	DepositAmount *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

CollaternalDeposit represents a Deposit event raised by the Collaternal contract.

type CollaternalDepositIterator

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

CollaternalDepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the Collaternal contract.

func (*CollaternalDepositIterator) Close

func (it *CollaternalDepositIterator) Close() error

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

func (*CollaternalDepositIterator) Error

func (it *CollaternalDepositIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*CollaternalDepositIterator) Next

func (it *CollaternalDepositIterator) 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 CollaternalFilterer

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

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

func NewCollaternalFilterer

func NewCollaternalFilterer(address common.Address, filterer bind.ContractFilterer) (*CollaternalFilterer, error)

NewCollaternalFilterer creates a new log filterer instance of Collaternal, bound to a specific deployed contract.

func (*CollaternalFilterer) FilterCollateralAdjusted

func (_Collaternal *CollaternalFilterer) FilterCollateralAdjusted(opts *bind.FilterOpts, cp []common.Address) (*CollaternalCollateralAdjustedIterator, error)

FilterCollateralAdjusted is a free log retrieval operation binding the contract event 0x42f1a8a1aee108e84e4eabfaa8d51d7baaa1a02d482295297883a44b2debd3e4.

Solidity: event CollateralAdjusted(address indexed cp, uint256 frozenAmount, uint256 balanceAmount, string operation)

func (*CollaternalFilterer) FilterCollateralLocked

func (_Collaternal *CollaternalFilterer) FilterCollateralLocked(opts *bind.FilterOpts, cp []common.Address) (*CollaternalCollateralLockedIterator, error)

FilterCollateralLocked is a free log retrieval operation binding the contract event 0x56b60085244fe1afa467f92231debadc8bcb6127e9dbf35dbb58ca8406a423fe.

Solidity: event CollateralLocked(address indexed cp, uint256 collateralAmount, address taskContractAddress)

func (*CollaternalFilterer) FilterCollateralSlashed

func (_Collaternal *CollaternalFilterer) FilterCollateralSlashed(opts *bind.FilterOpts, cp []common.Address) (*CollaternalCollateralSlashedIterator, error)

FilterCollateralSlashed is a free log retrieval operation binding the contract event 0x0f51f32e6325a6b213a7e9459df2a4564f058d9dca8309ff9b2508f6a83cf593.

Solidity: event CollateralSlashed(address indexed cp, uint256 amount, address taskContractAddress)

func (*CollaternalFilterer) FilterCollateralUnlocked

func (_Collaternal *CollaternalFilterer) FilterCollateralUnlocked(opts *bind.FilterOpts, cp []common.Address) (*CollaternalCollateralUnlockedIterator, error)

FilterCollateralUnlocked is a free log retrieval operation binding the contract event 0x817d69f45cb0984f7141c288a3bea0d2dd7bc075758f311056d0aa31798614fa.

Solidity: event CollateralUnlocked(address indexed cp, uint256 collateralAmount, address taskContractAddress)

func (*CollaternalFilterer) FilterDeposit

func (_Collaternal *CollaternalFilterer) FilterDeposit(opts *bind.FilterOpts, fundingWallet []common.Address, cpAccount []common.Address) (*CollaternalDepositIterator, error)

FilterDeposit is a free log retrieval operation binding the contract event 0x5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62.

Solidity: event Deposit(address indexed fundingWallet, address indexed cpAccount, uint256 depositAmount)

func (*CollaternalFilterer) FilterOwnershipTransferred

func (_Collaternal *CollaternalFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*CollaternalOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*CollaternalFilterer) FilterTaskCreated

func (_Collaternal *CollaternalFilterer) FilterTaskCreated(opts *bind.FilterOpts, taskContractAddress []common.Address) (*CollaternalTaskCreatedIterator, error)

FilterTaskCreated is a free log retrieval operation binding the contract event 0x3f9b921f6bb5d577cdf49122202d27f7c50e3cc981c47543dc4a59c00dee5229.

Solidity: event TaskCreated(address indexed taskContractAddress, address cpAccountAddress, uint256 collateral)

func (*CollaternalFilterer) FilterTaskStatusChanged

func (_Collaternal *CollaternalFilterer) FilterTaskStatusChanged(opts *bind.FilterOpts, taskContractAddress []common.Address) (*CollaternalTaskStatusChangedIterator, error)

FilterTaskStatusChanged is a free log retrieval operation binding the contract event 0x43a64df649a51c960307a3b5a4ec25a67c76629f0881669a214d162ae4ad2b5f.

Solidity: event TaskStatusChanged(address indexed taskContractAddress, uint256 newStatus)

func (*CollaternalFilterer) FilterWithdraw

func (_Collaternal *CollaternalFilterer) FilterWithdraw(opts *bind.FilterOpts, cpOwner []common.Address, cpAccount []common.Address) (*CollaternalWithdrawIterator, error)

FilterWithdraw is a free log retrieval operation binding the contract event 0x9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb.

Solidity: event Withdraw(address indexed cpOwner, address indexed cpAccount, uint256 withdrawAmount)

func (*CollaternalFilterer) ParseCollateralAdjusted

func (_Collaternal *CollaternalFilterer) ParseCollateralAdjusted(log types.Log) (*CollaternalCollateralAdjusted, error)

ParseCollateralAdjusted is a log parse operation binding the contract event 0x42f1a8a1aee108e84e4eabfaa8d51d7baaa1a02d482295297883a44b2debd3e4.

Solidity: event CollateralAdjusted(address indexed cp, uint256 frozenAmount, uint256 balanceAmount, string operation)

func (*CollaternalFilterer) ParseCollateralLocked

func (_Collaternal *CollaternalFilterer) ParseCollateralLocked(log types.Log) (*CollaternalCollateralLocked, error)

ParseCollateralLocked is a log parse operation binding the contract event 0x56b60085244fe1afa467f92231debadc8bcb6127e9dbf35dbb58ca8406a423fe.

Solidity: event CollateralLocked(address indexed cp, uint256 collateralAmount, address taskContractAddress)

func (*CollaternalFilterer) ParseCollateralSlashed

func (_Collaternal *CollaternalFilterer) ParseCollateralSlashed(log types.Log) (*CollaternalCollateralSlashed, error)

ParseCollateralSlashed is a log parse operation binding the contract event 0x0f51f32e6325a6b213a7e9459df2a4564f058d9dca8309ff9b2508f6a83cf593.

Solidity: event CollateralSlashed(address indexed cp, uint256 amount, address taskContractAddress)

func (*CollaternalFilterer) ParseCollateralUnlocked

func (_Collaternal *CollaternalFilterer) ParseCollateralUnlocked(log types.Log) (*CollaternalCollateralUnlocked, error)

ParseCollateralUnlocked is a log parse operation binding the contract event 0x817d69f45cb0984f7141c288a3bea0d2dd7bc075758f311056d0aa31798614fa.

Solidity: event CollateralUnlocked(address indexed cp, uint256 collateralAmount, address taskContractAddress)

func (*CollaternalFilterer) ParseDeposit

func (_Collaternal *CollaternalFilterer) ParseDeposit(log types.Log) (*CollaternalDeposit, error)

ParseDeposit is a log parse operation binding the contract event 0x5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62.

Solidity: event Deposit(address indexed fundingWallet, address indexed cpAccount, uint256 depositAmount)

func (*CollaternalFilterer) ParseOwnershipTransferred

func (_Collaternal *CollaternalFilterer) ParseOwnershipTransferred(log types.Log) (*CollaternalOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*CollaternalFilterer) ParseTaskCreated

func (_Collaternal *CollaternalFilterer) ParseTaskCreated(log types.Log) (*CollaternalTaskCreated, error)

ParseTaskCreated is a log parse operation binding the contract event 0x3f9b921f6bb5d577cdf49122202d27f7c50e3cc981c47543dc4a59c00dee5229.

Solidity: event TaskCreated(address indexed taskContractAddress, address cpAccountAddress, uint256 collateral)

func (*CollaternalFilterer) ParseTaskStatusChanged

func (_Collaternal *CollaternalFilterer) ParseTaskStatusChanged(log types.Log) (*CollaternalTaskStatusChanged, error)

ParseTaskStatusChanged is a log parse operation binding the contract event 0x43a64df649a51c960307a3b5a4ec25a67c76629f0881669a214d162ae4ad2b5f.

Solidity: event TaskStatusChanged(address indexed taskContractAddress, uint256 newStatus)

func (*CollaternalFilterer) ParseWithdraw

func (_Collaternal *CollaternalFilterer) ParseWithdraw(log types.Log) (*CollaternalWithdraw, error)

ParseWithdraw is a log parse operation binding the contract event 0x9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb.

Solidity: event Withdraw(address indexed cpOwner, address indexed cpAccount, uint256 withdrawAmount)

func (*CollaternalFilterer) WatchCollateralAdjusted

func (_Collaternal *CollaternalFilterer) WatchCollateralAdjusted(opts *bind.WatchOpts, sink chan<- *CollaternalCollateralAdjusted, cp []common.Address) (event.Subscription, error)

WatchCollateralAdjusted is a free log subscription operation binding the contract event 0x42f1a8a1aee108e84e4eabfaa8d51d7baaa1a02d482295297883a44b2debd3e4.

Solidity: event CollateralAdjusted(address indexed cp, uint256 frozenAmount, uint256 balanceAmount, string operation)

func (*CollaternalFilterer) WatchCollateralLocked

func (_Collaternal *CollaternalFilterer) WatchCollateralLocked(opts *bind.WatchOpts, sink chan<- *CollaternalCollateralLocked, cp []common.Address) (event.Subscription, error)

WatchCollateralLocked is a free log subscription operation binding the contract event 0x56b60085244fe1afa467f92231debadc8bcb6127e9dbf35dbb58ca8406a423fe.

Solidity: event CollateralLocked(address indexed cp, uint256 collateralAmount, address taskContractAddress)

func (*CollaternalFilterer) WatchCollateralSlashed

func (_Collaternal *CollaternalFilterer) WatchCollateralSlashed(opts *bind.WatchOpts, sink chan<- *CollaternalCollateralSlashed, cp []common.Address) (event.Subscription, error)

WatchCollateralSlashed is a free log subscription operation binding the contract event 0x0f51f32e6325a6b213a7e9459df2a4564f058d9dca8309ff9b2508f6a83cf593.

Solidity: event CollateralSlashed(address indexed cp, uint256 amount, address taskContractAddress)

func (*CollaternalFilterer) WatchCollateralUnlocked

func (_Collaternal *CollaternalFilterer) WatchCollateralUnlocked(opts *bind.WatchOpts, sink chan<- *CollaternalCollateralUnlocked, cp []common.Address) (event.Subscription, error)

WatchCollateralUnlocked is a free log subscription operation binding the contract event 0x817d69f45cb0984f7141c288a3bea0d2dd7bc075758f311056d0aa31798614fa.

Solidity: event CollateralUnlocked(address indexed cp, uint256 collateralAmount, address taskContractAddress)

func (*CollaternalFilterer) WatchDeposit

func (_Collaternal *CollaternalFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *CollaternalDeposit, fundingWallet []common.Address, cpAccount []common.Address) (event.Subscription, error)

WatchDeposit is a free log subscription operation binding the contract event 0x5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62.

Solidity: event Deposit(address indexed fundingWallet, address indexed cpAccount, uint256 depositAmount)

func (*CollaternalFilterer) WatchOwnershipTransferred

func (_Collaternal *CollaternalFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *CollaternalOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*CollaternalFilterer) WatchTaskCreated

func (_Collaternal *CollaternalFilterer) WatchTaskCreated(opts *bind.WatchOpts, sink chan<- *CollaternalTaskCreated, taskContractAddress []common.Address) (event.Subscription, error)

WatchTaskCreated is a free log subscription operation binding the contract event 0x3f9b921f6bb5d577cdf49122202d27f7c50e3cc981c47543dc4a59c00dee5229.

Solidity: event TaskCreated(address indexed taskContractAddress, address cpAccountAddress, uint256 collateral)

func (*CollaternalFilterer) WatchTaskStatusChanged

func (_Collaternal *CollaternalFilterer) WatchTaskStatusChanged(opts *bind.WatchOpts, sink chan<- *CollaternalTaskStatusChanged, taskContractAddress []common.Address) (event.Subscription, error)

WatchTaskStatusChanged is a free log subscription operation binding the contract event 0x43a64df649a51c960307a3b5a4ec25a67c76629f0881669a214d162ae4ad2b5f.

Solidity: event TaskStatusChanged(address indexed taskContractAddress, uint256 newStatus)

func (*CollaternalFilterer) WatchWithdraw

func (_Collaternal *CollaternalFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *CollaternalWithdraw, cpOwner []common.Address, cpAccount []common.Address) (event.Subscription, error)

WatchWithdraw is a free log subscription operation binding the contract event 0x9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb.

Solidity: event Withdraw(address indexed cpOwner, address indexed cpAccount, uint256 withdrawAmount)

type CollaternalOwnershipTransferred

type CollaternalOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

CollaternalOwnershipTransferred represents a OwnershipTransferred event raised by the Collaternal contract.

type CollaternalOwnershipTransferredIterator

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

CollaternalOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Collaternal contract.

func (*CollaternalOwnershipTransferredIterator) Close

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

func (*CollaternalOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CollaternalOwnershipTransferredIterator) 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 CollaternalRaw

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

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

func (*CollaternalRaw) Call

func (_Collaternal *CollaternalRaw) 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 (*CollaternalRaw) Transact

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

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

func (*CollaternalRaw) Transfer

func (_Collaternal *CollaternalRaw) 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 CollaternalSession

type CollaternalSession struct {
	Contract     *Collaternal      // 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
}

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

func (*CollaternalSession) AddAdmin

func (_Collaternal *CollaternalSession) AddAdmin(newAdmin common.Address) (*types.Transaction, error)

AddAdmin is a paid mutator transaction binding the contract method 0x70480275.

Solidity: function addAdmin(address newAdmin) returns()

func (*CollaternalSession) Balances

func (_Collaternal *CollaternalSession) Balances(arg0 common.Address) (*big.Int, error)

Balances is a free data retrieval call binding the contract method 0x27e235e3.

Solidity: function balances(address ) view returns(int256)

func (*CollaternalSession) BaseCollateral

func (_Collaternal *CollaternalSession) BaseCollateral() (*big.Int, error)

BaseCollateral is a free data retrieval call binding the contract method 0x9b5ddf09.

Solidity: function baseCollateral() view returns(uint256)

func (*CollaternalSession) CollateralRatio

func (_Collaternal *CollaternalSession) CollateralRatio() (*big.Int, error)

CollateralRatio is a free data retrieval call binding the contract method 0xb4eae1cb.

Solidity: function collateralRatio() view returns(uint256)

func (*CollaternalSession) CpInfo

func (_Collaternal *CollaternalSession) CpInfo(cpAddress common.Address) (ECPCollateralCPInfo, error)

CpInfo is a free data retrieval call binding the contract method 0xa664c216.

Solidity: function cpInfo(address cpAddress) view returns((address,int256,uint256,string))

func (*CollaternalSession) CpStatus

func (_Collaternal *CollaternalSession) CpStatus(arg0 common.Address) (string, error)

CpStatus is a free data retrieval call binding the contract method 0x3fe65177.

Solidity: function cpStatus(address ) view returns(string)

func (*CollaternalSession) Deposit

func (_Collaternal *CollaternalSession) Deposit(cpAccount common.Address) (*types.Transaction, error)

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

Solidity: function deposit(address cpAccount) payable returns()

func (*CollaternalSession) FrozenBalance

func (_Collaternal *CollaternalSession) FrozenBalance(arg0 common.Address) (*big.Int, error)

FrozenBalance is a free data retrieval call binding the contract method 0x266565a9.

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

func (*CollaternalSession) GetBaseCollateral

func (_Collaternal *CollaternalSession) GetBaseCollateral() (*big.Int, error)

GetBaseCollateral is a free data retrieval call binding the contract method 0x70b72944.

Solidity: function getBaseCollateral() view returns(uint256)

func (*CollaternalSession) GetECPCollateralInfo

func (_Collaternal *CollaternalSession) GetECPCollateralInfo() (ECPCollateralContractInfo, error)

GetECPCollateralInfo is a free data retrieval call binding the contract method 0x9939cd18.

Solidity: function getECPCollateralInfo() view returns((uint256,uint256,uint256,uint256,uint256))

func (*CollaternalSession) GetTaskInfo

func (_Collaternal *CollaternalSession) GetTaskInfo(taskContractAddress common.Address) (ECPCollateralTask, error)

GetTaskInfo is a free data retrieval call binding the contract method 0x0b4b73d1.

Solidity: function getTaskInfo(address taskContractAddress) view returns((address,uint256,uint256))

func (*CollaternalSession) IsAdmin

func (_Collaternal *CollaternalSession) IsAdmin(arg0 common.Address) (bool, error)

IsAdmin is a free data retrieval call binding the contract method 0x24d7806c.

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

func (*CollaternalSession) LockCollateral

func (_Collaternal *CollaternalSession) LockCollateral(cp common.Address, collateral *big.Int, taskContractAddress common.Address) (*types.Transaction, error)

LockCollateral is a paid mutator transaction binding the contract method 0xe0ed539d.

Solidity: function lockCollateral(address cp, uint256 collateral, address taskContractAddress) returns()

func (*CollaternalSession) Owner

func (_Collaternal *CollaternalSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*CollaternalSession) Receive

func (_Collaternal *CollaternalSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*CollaternalSession) RemoveAdmin

func (_Collaternal *CollaternalSession) RemoveAdmin(admin common.Address) (*types.Transaction, error)

RemoveAdmin is a paid mutator transaction binding the contract method 0x1785f53c.

Solidity: function removeAdmin(address admin) returns()

func (*CollaternalSession) RenounceOwnership

func (_Collaternal *CollaternalSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*CollaternalSession) SetBaseCollateral

func (_Collaternal *CollaternalSession) SetBaseCollateral(_baseCollateral *big.Int) (*types.Transaction, error)

SetBaseCollateral is a paid mutator transaction binding the contract method 0x7f58a7e5.

Solidity: function setBaseCollateral(uint256 _baseCollateral) returns()

func (*CollaternalSession) SetCollateralRatio

func (_Collaternal *CollaternalSession) SetCollateralRatio(_collateralRatio *big.Int) (*types.Transaction, error)

SetCollateralRatio is a paid mutator transaction binding the contract method 0x6060663e.

Solidity: function setCollateralRatio(uint256 _collateralRatio) returns()

func (*CollaternalSession) SetSlashRatio

func (_Collaternal *CollaternalSession) SetSlashRatio(_slashRatio *big.Int) (*types.Transaction, error)

SetSlashRatio is a paid mutator transaction binding the contract method 0xce3518aa.

Solidity: function setSlashRatio(uint256 _slashRatio) returns()

func (*CollaternalSession) SlashCollateral

func (_Collaternal *CollaternalSession) SlashCollateral(taskContractAddress common.Address) (*types.Transaction, error)

SlashCollateral is a paid mutator transaction binding the contract method 0x9d1fef81.

Solidity: function slashCollateral(address taskContractAddress) returns()

func (*CollaternalSession) SlashRatio

func (_Collaternal *CollaternalSession) SlashRatio() (*big.Int, error)

SlashRatio is a free data retrieval call binding the contract method 0xd27ca89b.

Solidity: function slashRatio() view returns(uint256)

func (*CollaternalSession) SlashedFunds

func (_Collaternal *CollaternalSession) SlashedFunds() (*big.Int, error)

SlashedFunds is a free data retrieval call binding the contract method 0x6f99f15c.

Solidity: function slashedFunds() view returns(uint256)

func (*CollaternalSession) TaskBalance

func (_Collaternal *CollaternalSession) TaskBalance() (*big.Int, error)

TaskBalance is a free data retrieval call binding the contract method 0xf31cc883.

Solidity: function taskBalance() view returns(uint256)

func (*CollaternalSession) Tasks

func (_Collaternal *CollaternalSession) Tasks(arg0 common.Address) (struct {
	CpAccountAddress common.Address
	Collateral       *big.Int
	Status           *big.Int
}, error)

Tasks is a free data retrieval call binding the contract method 0x77c237fd.

Solidity: function tasks(address ) view returns(address cpAccountAddress, uint256 collateral, uint256 status)

func (*CollaternalSession) TransferOwnership

func (_Collaternal *CollaternalSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*CollaternalSession) UnlockCollateral

func (_Collaternal *CollaternalSession) UnlockCollateral(taskContractAddress common.Address) (*types.Transaction, error)

UnlockCollateral is a paid mutator transaction binding the contract method 0x3f001fd9.

Solidity: function unlockCollateral(address taskContractAddress) returns()

func (*CollaternalSession) Withdraw

func (_Collaternal *CollaternalSession) Withdraw(cpAccount common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(address cpAccount, uint256 amount) returns()

type CollaternalTaskCreated

type CollaternalTaskCreated struct {
	TaskContractAddress common.Address
	CpAccountAddress    common.Address
	Collateral          *big.Int
	Raw                 types.Log // Blockchain specific contextual infos
}

CollaternalTaskCreated represents a TaskCreated event raised by the Collaternal contract.

type CollaternalTaskCreatedIterator

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

CollaternalTaskCreatedIterator is returned from FilterTaskCreated and is used to iterate over the raw logs and unpacked data for TaskCreated events raised by the Collaternal contract.

func (*CollaternalTaskCreatedIterator) Close

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

func (*CollaternalTaskCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CollaternalTaskCreatedIterator) 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 CollaternalTaskStatusChanged

type CollaternalTaskStatusChanged struct {
	TaskContractAddress common.Address
	NewStatus           *big.Int
	Raw                 types.Log // Blockchain specific contextual infos
}

CollaternalTaskStatusChanged represents a TaskStatusChanged event raised by the Collaternal contract.

type CollaternalTaskStatusChangedIterator

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

CollaternalTaskStatusChangedIterator is returned from FilterTaskStatusChanged and is used to iterate over the raw logs and unpacked data for TaskStatusChanged events raised by the Collaternal contract.

func (*CollaternalTaskStatusChangedIterator) Close

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

func (*CollaternalTaskStatusChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CollaternalTaskStatusChangedIterator) 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 CollaternalTransactor

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

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

func NewCollaternalTransactor

func NewCollaternalTransactor(address common.Address, transactor bind.ContractTransactor) (*CollaternalTransactor, error)

NewCollaternalTransactor creates a new write-only instance of Collaternal, bound to a specific deployed contract.

func (*CollaternalTransactor) AddAdmin

func (_Collaternal *CollaternalTransactor) AddAdmin(opts *bind.TransactOpts, newAdmin common.Address) (*types.Transaction, error)

AddAdmin is a paid mutator transaction binding the contract method 0x70480275.

Solidity: function addAdmin(address newAdmin) returns()

func (*CollaternalTransactor) Deposit

func (_Collaternal *CollaternalTransactor) Deposit(opts *bind.TransactOpts, cpAccount common.Address) (*types.Transaction, error)

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

Solidity: function deposit(address cpAccount) payable returns()

func (*CollaternalTransactor) LockCollateral

func (_Collaternal *CollaternalTransactor) LockCollateral(opts *bind.TransactOpts, cp common.Address, collateral *big.Int, taskContractAddress common.Address) (*types.Transaction, error)

LockCollateral is a paid mutator transaction binding the contract method 0xe0ed539d.

Solidity: function lockCollateral(address cp, uint256 collateral, address taskContractAddress) returns()

func (*CollaternalTransactor) Receive

func (_Collaternal *CollaternalTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*CollaternalTransactor) RemoveAdmin

func (_Collaternal *CollaternalTransactor) RemoveAdmin(opts *bind.TransactOpts, admin common.Address) (*types.Transaction, error)

RemoveAdmin is a paid mutator transaction binding the contract method 0x1785f53c.

Solidity: function removeAdmin(address admin) returns()

func (*CollaternalTransactor) RenounceOwnership

func (_Collaternal *CollaternalTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*CollaternalTransactor) SetBaseCollateral

func (_Collaternal *CollaternalTransactor) SetBaseCollateral(opts *bind.TransactOpts, _baseCollateral *big.Int) (*types.Transaction, error)

SetBaseCollateral is a paid mutator transaction binding the contract method 0x7f58a7e5.

Solidity: function setBaseCollateral(uint256 _baseCollateral) returns()

func (*CollaternalTransactor) SetCollateralRatio

func (_Collaternal *CollaternalTransactor) SetCollateralRatio(opts *bind.TransactOpts, _collateralRatio *big.Int) (*types.Transaction, error)

SetCollateralRatio is a paid mutator transaction binding the contract method 0x6060663e.

Solidity: function setCollateralRatio(uint256 _collateralRatio) returns()

func (*CollaternalTransactor) SetSlashRatio

func (_Collaternal *CollaternalTransactor) SetSlashRatio(opts *bind.TransactOpts, _slashRatio *big.Int) (*types.Transaction, error)

SetSlashRatio is a paid mutator transaction binding the contract method 0xce3518aa.

Solidity: function setSlashRatio(uint256 _slashRatio) returns()

func (*CollaternalTransactor) SlashCollateral

func (_Collaternal *CollaternalTransactor) SlashCollateral(opts *bind.TransactOpts, taskContractAddress common.Address) (*types.Transaction, error)

SlashCollateral is a paid mutator transaction binding the contract method 0x9d1fef81.

Solidity: function slashCollateral(address taskContractAddress) returns()

func (*CollaternalTransactor) TransferOwnership

func (_Collaternal *CollaternalTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*CollaternalTransactor) UnlockCollateral

func (_Collaternal *CollaternalTransactor) UnlockCollateral(opts *bind.TransactOpts, taskContractAddress common.Address) (*types.Transaction, error)

UnlockCollateral is a paid mutator transaction binding the contract method 0x3f001fd9.

Solidity: function unlockCollateral(address taskContractAddress) returns()

func (*CollaternalTransactor) Withdraw

func (_Collaternal *CollaternalTransactor) Withdraw(opts *bind.TransactOpts, cpAccount common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(address cpAccount, uint256 amount) returns()

type CollaternalTransactorRaw

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

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

func (*CollaternalTransactorRaw) Transact

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

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

func (*CollaternalTransactorRaw) Transfer

func (_Collaternal *CollaternalTransactorRaw) 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 CollaternalTransactorSession

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

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

func (*CollaternalTransactorSession) AddAdmin

func (_Collaternal *CollaternalTransactorSession) AddAdmin(newAdmin common.Address) (*types.Transaction, error)

AddAdmin is a paid mutator transaction binding the contract method 0x70480275.

Solidity: function addAdmin(address newAdmin) returns()

func (*CollaternalTransactorSession) Deposit

func (_Collaternal *CollaternalTransactorSession) Deposit(cpAccount common.Address) (*types.Transaction, error)

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

Solidity: function deposit(address cpAccount) payable returns()

func (*CollaternalTransactorSession) LockCollateral

func (_Collaternal *CollaternalTransactorSession) LockCollateral(cp common.Address, collateral *big.Int, taskContractAddress common.Address) (*types.Transaction, error)

LockCollateral is a paid mutator transaction binding the contract method 0xe0ed539d.

Solidity: function lockCollateral(address cp, uint256 collateral, address taskContractAddress) returns()

func (*CollaternalTransactorSession) Receive

func (_Collaternal *CollaternalTransactorSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*CollaternalTransactorSession) RemoveAdmin

func (_Collaternal *CollaternalTransactorSession) RemoveAdmin(admin common.Address) (*types.Transaction, error)

RemoveAdmin is a paid mutator transaction binding the contract method 0x1785f53c.

Solidity: function removeAdmin(address admin) returns()

func (*CollaternalTransactorSession) RenounceOwnership

func (_Collaternal *CollaternalTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*CollaternalTransactorSession) SetBaseCollateral

func (_Collaternal *CollaternalTransactorSession) SetBaseCollateral(_baseCollateral *big.Int) (*types.Transaction, error)

SetBaseCollateral is a paid mutator transaction binding the contract method 0x7f58a7e5.

Solidity: function setBaseCollateral(uint256 _baseCollateral) returns()

func (*CollaternalTransactorSession) SetCollateralRatio

func (_Collaternal *CollaternalTransactorSession) SetCollateralRatio(_collateralRatio *big.Int) (*types.Transaction, error)

SetCollateralRatio is a paid mutator transaction binding the contract method 0x6060663e.

Solidity: function setCollateralRatio(uint256 _collateralRatio) returns()

func (*CollaternalTransactorSession) SetSlashRatio

func (_Collaternal *CollaternalTransactorSession) SetSlashRatio(_slashRatio *big.Int) (*types.Transaction, error)

SetSlashRatio is a paid mutator transaction binding the contract method 0xce3518aa.

Solidity: function setSlashRatio(uint256 _slashRatio) returns()

func (*CollaternalTransactorSession) SlashCollateral

func (_Collaternal *CollaternalTransactorSession) SlashCollateral(taskContractAddress common.Address) (*types.Transaction, error)

SlashCollateral is a paid mutator transaction binding the contract method 0x9d1fef81.

Solidity: function slashCollateral(address taskContractAddress) returns()

func (*CollaternalTransactorSession) TransferOwnership

func (_Collaternal *CollaternalTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*CollaternalTransactorSession) UnlockCollateral

func (_Collaternal *CollaternalTransactorSession) UnlockCollateral(taskContractAddress common.Address) (*types.Transaction, error)

UnlockCollateral is a paid mutator transaction binding the contract method 0x3f001fd9.

Solidity: function unlockCollateral(address taskContractAddress) returns()

func (*CollaternalTransactorSession) Withdraw

func (_Collaternal *CollaternalTransactorSession) Withdraw(cpAccount common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(address cpAccount, uint256 amount) returns()

type CollaternalWithdraw

type CollaternalWithdraw struct {
	CpOwner        common.Address
	CpAccount      common.Address
	WithdrawAmount *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

CollaternalWithdraw represents a Withdraw event raised by the Collaternal contract.

type CollaternalWithdrawIterator

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

CollaternalWithdrawIterator is returned from FilterWithdraw and is used to iterate over the raw logs and unpacked data for Withdraw events raised by the Collaternal contract.

func (*CollaternalWithdrawIterator) Close

func (it *CollaternalWithdrawIterator) Close() error

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

func (*CollaternalWithdrawIterator) Error

func (it *CollaternalWithdrawIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*CollaternalWithdrawIterator) Next

func (it *CollaternalWithdrawIterator) 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 ECPCollateralCPInfo

type ECPCollateralCPInfo struct {
	Cp            common.Address
	Balance       *big.Int
	FrozenBalance *big.Int
	Status        string
}

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

type ECPCollateralContractInfo

type ECPCollateralContractInfo struct {
	SlashedFunds    *big.Int
	BaseCollateral  *big.Int
	TaskBalance     *big.Int
	CollateralRatio *big.Int
	SlashRatio      *big.Int
}

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

type ECPCollateralTask

type ECPCollateralTask struct {
	CpAccountAddress common.Address
	Collateral       *big.Int
	Status           *big.Int
}

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

type ECPTaskTaskInfo

type ECPTaskTaskInfo struct {
	TaskType          *big.Int
	ResourceType      *big.Int
	InputParam        string
	VerifyParam       string
	CpContractAddress common.Address
	Status            string
	RewardTx          string
	Proof             string
	ChallengeTx       string
	LockFundTx        string
	UnlockFundTx      string
	SlashTx           string
	Deadline          *big.Int
	IsSubmitted       bool
	IsChallenged      bool
}

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

type Option

type Option func(*Stub)

func WithCpAccountAddress added in v0.5.1

func WithCpAccountAddress(cpAccountAddress string) Option

func WithPrivateKey

func WithPrivateKey(pk string) Option

func WithPublicKey

func WithPublicKey(pk string) Option

type Stub

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

func NewCollateralStub

func NewCollateralStub(client *ethclient.Client, options ...Option) (*Stub, error)

func (*Stub) CpInfo

func (s *Stub) CpInfo() (models.EcpCollateralInfo, error)

func (*Stub) Deposit

func (s *Stub) Deposit(cpAccountAddress string, amount *big.Int) (string, error)

func (*Stub) Withdraw

func (s *Stub) Withdraw(cpAccountAddress string, amount *big.Int) (string, error)

type Task

type Task struct {
	TaskCaller     // Read-only binding to the contract
	TaskTransactor // Write-only binding to the contract
	TaskFilterer   // Log filterer for contract events
}

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

func DeployTask

func DeployTask(auth *bind.TransactOpts, backend bind.ContractBackend, _taskType *big.Int, _resourceType *big.Int, _inputParam string, _verifyParam string, _cpContractAddress common.Address, _status string, _lockFundTx string, _deadline *big.Int) (common.Address, *types.Transaction, *Task, error)

DeployTask deploys a new Ethereum contract, binding an instance of Task to it.

func NewTask

func NewTask(address common.Address, backend bind.ContractBackend) (*Task, error)

NewTask creates a new instance of Task, bound to a specific deployed contract.

type TaskCaller

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

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

func NewTaskCaller

func NewTaskCaller(address common.Address, caller bind.ContractCaller) (*TaskCaller, error)

NewTaskCaller creates a new read-only instance of Task, bound to a specific deployed contract.

func (*TaskCaller) ChallengeTx

func (_Task *TaskCaller) ChallengeTx(opts *bind.CallOpts) (string, error)

ChallengeTx is a free data retrieval call binding the contract method 0xe4881688.

Solidity: function challengeTx() view returns(string)

func (*TaskCaller) CpContractAddress

func (_Task *TaskCaller) CpContractAddress(opts *bind.CallOpts) (common.Address, error)

CpContractAddress is a free data retrieval call binding the contract method 0x92395dc5.

Solidity: function cpContractAddress() view returns(address)

func (*TaskCaller) Deadline

func (_Task *TaskCaller) Deadline(opts *bind.CallOpts) (*big.Int, error)

Deadline is a free data retrieval call binding the contract method 0x29dcb0cf.

Solidity: function deadline() view returns(uint256)

func (*TaskCaller) GetTaskInfo

func (_Task *TaskCaller) GetTaskInfo(opts *bind.CallOpts) (ECPTaskTaskInfo, error)

GetTaskInfo is a free data retrieval call binding the contract method 0xbac64a2e.

Solidity: function getTaskInfo() view returns((uint256,uint256,string,string,address,string,string,string,string,string,string,string,uint256,bool,bool))

func (*TaskCaller) InputParam

func (_Task *TaskCaller) InputParam(opts *bind.CallOpts) (string, error)

InputParam is a free data retrieval call binding the contract method 0xfe140e63.

Solidity: function inputParam() view returns(string)

func (*TaskCaller) IsAdmin

func (_Task *TaskCaller) IsAdmin(opts *bind.CallOpts, arg0 common.Address) (bool, error)

IsAdmin is a free data retrieval call binding the contract method 0x24d7806c.

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

func (*TaskCaller) IsChallenged

func (_Task *TaskCaller) IsChallenged(opts *bind.CallOpts) (bool, error)

IsChallenged is a free data retrieval call binding the contract method 0x9df4d0fe.

Solidity: function isChallenged() view returns(bool)

func (*TaskCaller) IsSubmitted

func (_Task *TaskCaller) IsSubmitted(opts *bind.CallOpts) (bool, error)

IsSubmitted is a free data retrieval call binding the contract method 0x741b8790.

Solidity: function isSubmitted() view returns(bool)

func (*TaskCaller) LockFundTx

func (_Task *TaskCaller) LockFundTx(opts *bind.CallOpts) (string, error)

LockFundTx is a free data retrieval call binding the contract method 0xf80cb18a.

Solidity: function lockFundTx() view returns(string)

func (*TaskCaller) Owner

func (_Task *TaskCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*TaskCaller) Proof

func (_Task *TaskCaller) Proof(opts *bind.CallOpts) (string, error)

Proof is a free data retrieval call binding the contract method 0xfaf924cf.

Solidity: function proof() view returns(string)

func (*TaskCaller) ResourceType

func (_Task *TaskCaller) ResourceType(opts *bind.CallOpts) (*big.Int, error)

ResourceType is a free data retrieval call binding the contract method 0xf7d22190.

Solidity: function resourceType() view returns(uint256)

func (*TaskCaller) RewardTx

func (_Task *TaskCaller) RewardTx(opts *bind.CallOpts) (string, error)

RewardTx is a free data retrieval call binding the contract method 0x2cae8b10.

Solidity: function rewardTx() view returns(string)

func (*TaskCaller) SlashTx

func (_Task *TaskCaller) SlashTx(opts *bind.CallOpts) (string, error)

SlashTx is a free data retrieval call binding the contract method 0x4dc17e58.

Solidity: function slashTx() view returns(string)

func (*TaskCaller) Status

func (_Task *TaskCaller) Status(opts *bind.CallOpts) (string, error)

Status is a free data retrieval call binding the contract method 0x200d2ed2.

Solidity: function status() view returns(string)

func (*TaskCaller) TaskType

func (_Task *TaskCaller) TaskType(opts *bind.CallOpts) (*big.Int, error)

TaskType is a free data retrieval call binding the contract method 0x8cf6f32c.

Solidity: function taskType() view returns(uint256)

func (*TaskCaller) UnlockFundTx

func (_Task *TaskCaller) UnlockFundTx(opts *bind.CallOpts) (string, error)

UnlockFundTx is a free data retrieval call binding the contract method 0xec218dc4.

Solidity: function unlockFundTx() view returns(string)

func (*TaskCaller) VerifyParam

func (_Task *TaskCaller) VerifyParam(opts *bind.CallOpts) (string, error)

VerifyParam is a free data retrieval call binding the contract method 0x497153e3.

Solidity: function verifyParam() view returns(string)

func (*TaskCaller) Version

func (_Task *TaskCaller) Version(opts *bind.CallOpts) (string, error)

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

Solidity: function version() pure returns(string)

type TaskCallerRaw

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

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

func (*TaskCallerRaw) Call

func (_Task *TaskCallerRaw) 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 TaskCallerSession

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

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

func (*TaskCallerSession) ChallengeTx

func (_Task *TaskCallerSession) ChallengeTx() (string, error)

ChallengeTx is a free data retrieval call binding the contract method 0xe4881688.

Solidity: function challengeTx() view returns(string)

func (*TaskCallerSession) CpContractAddress

func (_Task *TaskCallerSession) CpContractAddress() (common.Address, error)

CpContractAddress is a free data retrieval call binding the contract method 0x92395dc5.

Solidity: function cpContractAddress() view returns(address)

func (*TaskCallerSession) Deadline

func (_Task *TaskCallerSession) Deadline() (*big.Int, error)

Deadline is a free data retrieval call binding the contract method 0x29dcb0cf.

Solidity: function deadline() view returns(uint256)

func (*TaskCallerSession) GetTaskInfo

func (_Task *TaskCallerSession) GetTaskInfo() (ECPTaskTaskInfo, error)

GetTaskInfo is a free data retrieval call binding the contract method 0xbac64a2e.

Solidity: function getTaskInfo() view returns((uint256,uint256,string,string,address,string,string,string,string,string,string,string,uint256,bool,bool))

func (*TaskCallerSession) InputParam

func (_Task *TaskCallerSession) InputParam() (string, error)

InputParam is a free data retrieval call binding the contract method 0xfe140e63.

Solidity: function inputParam() view returns(string)

func (*TaskCallerSession) IsAdmin

func (_Task *TaskCallerSession) IsAdmin(arg0 common.Address) (bool, error)

IsAdmin is a free data retrieval call binding the contract method 0x24d7806c.

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

func (*TaskCallerSession) IsChallenged

func (_Task *TaskCallerSession) IsChallenged() (bool, error)

IsChallenged is a free data retrieval call binding the contract method 0x9df4d0fe.

Solidity: function isChallenged() view returns(bool)

func (*TaskCallerSession) IsSubmitted

func (_Task *TaskCallerSession) IsSubmitted() (bool, error)

IsSubmitted is a free data retrieval call binding the contract method 0x741b8790.

Solidity: function isSubmitted() view returns(bool)

func (*TaskCallerSession) LockFundTx

func (_Task *TaskCallerSession) LockFundTx() (string, error)

LockFundTx is a free data retrieval call binding the contract method 0xf80cb18a.

Solidity: function lockFundTx() view returns(string)

func (*TaskCallerSession) Owner

func (_Task *TaskCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*TaskCallerSession) Proof

func (_Task *TaskCallerSession) Proof() (string, error)

Proof is a free data retrieval call binding the contract method 0xfaf924cf.

Solidity: function proof() view returns(string)

func (*TaskCallerSession) ResourceType

func (_Task *TaskCallerSession) ResourceType() (*big.Int, error)

ResourceType is a free data retrieval call binding the contract method 0xf7d22190.

Solidity: function resourceType() view returns(uint256)

func (*TaskCallerSession) RewardTx

func (_Task *TaskCallerSession) RewardTx() (string, error)

RewardTx is a free data retrieval call binding the contract method 0x2cae8b10.

Solidity: function rewardTx() view returns(string)

func (*TaskCallerSession) SlashTx

func (_Task *TaskCallerSession) SlashTx() (string, error)

SlashTx is a free data retrieval call binding the contract method 0x4dc17e58.

Solidity: function slashTx() view returns(string)

func (*TaskCallerSession) Status

func (_Task *TaskCallerSession) Status() (string, error)

Status is a free data retrieval call binding the contract method 0x200d2ed2.

Solidity: function status() view returns(string)

func (*TaskCallerSession) TaskType

func (_Task *TaskCallerSession) TaskType() (*big.Int, error)

TaskType is a free data retrieval call binding the contract method 0x8cf6f32c.

Solidity: function taskType() view returns(uint256)

func (*TaskCallerSession) UnlockFundTx

func (_Task *TaskCallerSession) UnlockFundTx() (string, error)

UnlockFundTx is a free data retrieval call binding the contract method 0xec218dc4.

Solidity: function unlockFundTx() view returns(string)

func (*TaskCallerSession) VerifyParam

func (_Task *TaskCallerSession) VerifyParam() (string, error)

VerifyParam is a free data retrieval call binding the contract method 0x497153e3.

Solidity: function verifyParam() view returns(string)

func (*TaskCallerSession) Version

func (_Task *TaskCallerSession) Version() (string, error)

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

Solidity: function version() pure returns(string)

type TaskChallengeAndStatusUpdated

type TaskChallengeAndStatusUpdated struct {
	ChallengeTx string
	Status      string
	Raw         types.Log // Blockchain specific contextual infos
}

TaskChallengeAndStatusUpdated represents a ChallengeAndStatusUpdated event raised by the Task contract.

type TaskChallengeAndStatusUpdatedIterator

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

TaskChallengeAndStatusUpdatedIterator is returned from FilterChallengeAndStatusUpdated and is used to iterate over the raw logs and unpacked data for ChallengeAndStatusUpdated events raised by the Task contract.

func (*TaskChallengeAndStatusUpdatedIterator) Close

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

func (*TaskChallengeAndStatusUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskChallengeAndStatusUpdatedIterator) 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 TaskFilterer

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

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

func NewTaskFilterer

func NewTaskFilterer(address common.Address, filterer bind.ContractFilterer) (*TaskFilterer, error)

NewTaskFilterer creates a new log filterer instance of Task, bound to a specific deployed contract.

func (*TaskFilterer) FilterChallengeAndStatusUpdated

func (_Task *TaskFilterer) FilterChallengeAndStatusUpdated(opts *bind.FilterOpts) (*TaskChallengeAndStatusUpdatedIterator, error)

FilterChallengeAndStatusUpdated is a free log retrieval operation binding the contract event 0x37f72c359298bc403d455d28c855dab034a805c621c8939e09413242c83d05f5.

Solidity: event ChallengeAndStatusUpdated(string challengeTx, string status)

func (*TaskFilterer) FilterLockAndStatusUpdated

func (_Task *TaskFilterer) FilterLockAndStatusUpdated(opts *bind.FilterOpts) (*TaskLockAndStatusUpdatedIterator, error)

FilterLockAndStatusUpdated is a free log retrieval operation binding the contract event 0xeb08b71e81c5e995ac5fbef09b6c1380b2f9113fda277a04d2fcc2a6c5bd47c2.

Solidity: event LockAndStatusUpdated(string lockFundTx, string status)

func (*TaskFilterer) FilterOwnershipTransferred

func (_Task *TaskFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*TaskOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*TaskFilterer) FilterRewardAndStatusUpdated

func (_Task *TaskFilterer) FilterRewardAndStatusUpdated(opts *bind.FilterOpts) (*TaskRewardAndStatusUpdatedIterator, error)

FilterRewardAndStatusUpdated is a free log retrieval operation binding the contract event 0x6cefc22ea80cdbcb2e0b5b0b9b136056e885d5a55058ec6f69e67395909b9f1f.

Solidity: event RewardAndStatusUpdated(string rewardTx, string status)

func (*TaskFilterer) FilterSlashAndStatusUpdated

func (_Task *TaskFilterer) FilterSlashAndStatusUpdated(opts *bind.FilterOpts) (*TaskSlashAndStatusUpdatedIterator, error)

FilterSlashAndStatusUpdated is a free log retrieval operation binding the contract event 0x14991a7b105e113ae4508a09d769814db62890b0952651f33852175fe4b11d5f.

Solidity: event SlashAndStatusUpdated(string slashTx, string status)

func (*TaskFilterer) FilterSubmitProof

func (_Task *TaskFilterer) FilterSubmitProof(opts *bind.FilterOpts) (*TaskSubmitProofIterator, error)

FilterSubmitProof is a free log retrieval operation binding the contract event 0x67e0a5f59c15b94ec89ed4c7e56f5b15fdaca75d0b86d75b2018706a2280154f.

Solidity: event SubmitProof(string proof)

func (*TaskFilterer) FilterUnlockAndStatusUpdated

func (_Task *TaskFilterer) FilterUnlockAndStatusUpdated(opts *bind.FilterOpts) (*TaskUnlockAndStatusUpdatedIterator, error)

FilterUnlockAndStatusUpdated is a free log retrieval operation binding the contract event 0xa2c323da9675ecdcddb6410b223f7da6a9ea2e8df0f0cea69766f2562691d2fa.

Solidity: event UnlockAndStatusUpdated(string unlockFundTx, string status)

func (*TaskFilterer) ParseChallengeAndStatusUpdated

func (_Task *TaskFilterer) ParseChallengeAndStatusUpdated(log types.Log) (*TaskChallengeAndStatusUpdated, error)

ParseChallengeAndStatusUpdated is a log parse operation binding the contract event 0x37f72c359298bc403d455d28c855dab034a805c621c8939e09413242c83d05f5.

Solidity: event ChallengeAndStatusUpdated(string challengeTx, string status)

func (*TaskFilterer) ParseLockAndStatusUpdated

func (_Task *TaskFilterer) ParseLockAndStatusUpdated(log types.Log) (*TaskLockAndStatusUpdated, error)

ParseLockAndStatusUpdated is a log parse operation binding the contract event 0xeb08b71e81c5e995ac5fbef09b6c1380b2f9113fda277a04d2fcc2a6c5bd47c2.

Solidity: event LockAndStatusUpdated(string lockFundTx, string status)

func (*TaskFilterer) ParseOwnershipTransferred

func (_Task *TaskFilterer) ParseOwnershipTransferred(log types.Log) (*TaskOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*TaskFilterer) ParseRewardAndStatusUpdated

func (_Task *TaskFilterer) ParseRewardAndStatusUpdated(log types.Log) (*TaskRewardAndStatusUpdated, error)

ParseRewardAndStatusUpdated is a log parse operation binding the contract event 0x6cefc22ea80cdbcb2e0b5b0b9b136056e885d5a55058ec6f69e67395909b9f1f.

Solidity: event RewardAndStatusUpdated(string rewardTx, string status)

func (*TaskFilterer) ParseSlashAndStatusUpdated

func (_Task *TaskFilterer) ParseSlashAndStatusUpdated(log types.Log) (*TaskSlashAndStatusUpdated, error)

ParseSlashAndStatusUpdated is a log parse operation binding the contract event 0x14991a7b105e113ae4508a09d769814db62890b0952651f33852175fe4b11d5f.

Solidity: event SlashAndStatusUpdated(string slashTx, string status)

func (*TaskFilterer) ParseSubmitProof

func (_Task *TaskFilterer) ParseSubmitProof(log types.Log) (*TaskSubmitProof, error)

ParseSubmitProof is a log parse operation binding the contract event 0x67e0a5f59c15b94ec89ed4c7e56f5b15fdaca75d0b86d75b2018706a2280154f.

Solidity: event SubmitProof(string proof)

func (*TaskFilterer) ParseUnlockAndStatusUpdated

func (_Task *TaskFilterer) ParseUnlockAndStatusUpdated(log types.Log) (*TaskUnlockAndStatusUpdated, error)

ParseUnlockAndStatusUpdated is a log parse operation binding the contract event 0xa2c323da9675ecdcddb6410b223f7da6a9ea2e8df0f0cea69766f2562691d2fa.

Solidity: event UnlockAndStatusUpdated(string unlockFundTx, string status)

func (*TaskFilterer) WatchChallengeAndStatusUpdated

func (_Task *TaskFilterer) WatchChallengeAndStatusUpdated(opts *bind.WatchOpts, sink chan<- *TaskChallengeAndStatusUpdated) (event.Subscription, error)

WatchChallengeAndStatusUpdated is a free log subscription operation binding the contract event 0x37f72c359298bc403d455d28c855dab034a805c621c8939e09413242c83d05f5.

Solidity: event ChallengeAndStatusUpdated(string challengeTx, string status)

func (*TaskFilterer) WatchLockAndStatusUpdated

func (_Task *TaskFilterer) WatchLockAndStatusUpdated(opts *bind.WatchOpts, sink chan<- *TaskLockAndStatusUpdated) (event.Subscription, error)

WatchLockAndStatusUpdated is a free log subscription operation binding the contract event 0xeb08b71e81c5e995ac5fbef09b6c1380b2f9113fda277a04d2fcc2a6c5bd47c2.

Solidity: event LockAndStatusUpdated(string lockFundTx, string status)

func (*TaskFilterer) WatchOwnershipTransferred

func (_Task *TaskFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TaskOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*TaskFilterer) WatchRewardAndStatusUpdated

func (_Task *TaskFilterer) WatchRewardAndStatusUpdated(opts *bind.WatchOpts, sink chan<- *TaskRewardAndStatusUpdated) (event.Subscription, error)

WatchRewardAndStatusUpdated is a free log subscription operation binding the contract event 0x6cefc22ea80cdbcb2e0b5b0b9b136056e885d5a55058ec6f69e67395909b9f1f.

Solidity: event RewardAndStatusUpdated(string rewardTx, string status)

func (*TaskFilterer) WatchSlashAndStatusUpdated

func (_Task *TaskFilterer) WatchSlashAndStatusUpdated(opts *bind.WatchOpts, sink chan<- *TaskSlashAndStatusUpdated) (event.Subscription, error)

WatchSlashAndStatusUpdated is a free log subscription operation binding the contract event 0x14991a7b105e113ae4508a09d769814db62890b0952651f33852175fe4b11d5f.

Solidity: event SlashAndStatusUpdated(string slashTx, string status)

func (*TaskFilterer) WatchSubmitProof

func (_Task *TaskFilterer) WatchSubmitProof(opts *bind.WatchOpts, sink chan<- *TaskSubmitProof) (event.Subscription, error)

WatchSubmitProof is a free log subscription operation binding the contract event 0x67e0a5f59c15b94ec89ed4c7e56f5b15fdaca75d0b86d75b2018706a2280154f.

Solidity: event SubmitProof(string proof)

func (*TaskFilterer) WatchUnlockAndStatusUpdated

func (_Task *TaskFilterer) WatchUnlockAndStatusUpdated(opts *bind.WatchOpts, sink chan<- *TaskUnlockAndStatusUpdated) (event.Subscription, error)

WatchUnlockAndStatusUpdated is a free log subscription operation binding the contract event 0xa2c323da9675ecdcddb6410b223f7da6a9ea2e8df0f0cea69766f2562691d2fa.

Solidity: event UnlockAndStatusUpdated(string unlockFundTx, string status)

type TaskLockAndStatusUpdated

type TaskLockAndStatusUpdated struct {
	LockFundTx string
	Status     string
	Raw        types.Log // Blockchain specific contextual infos
}

TaskLockAndStatusUpdated represents a LockAndStatusUpdated event raised by the Task contract.

type TaskLockAndStatusUpdatedIterator

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

TaskLockAndStatusUpdatedIterator is returned from FilterLockAndStatusUpdated and is used to iterate over the raw logs and unpacked data for LockAndStatusUpdated events raised by the Task contract.

func (*TaskLockAndStatusUpdatedIterator) Close

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

func (*TaskLockAndStatusUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskLockAndStatusUpdatedIterator) 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 TaskOption

type TaskOption func(*TaskStub)

func WithTaskContractAddress

func WithTaskContractAddress(contractAddress string) TaskOption

func WithTaskPrivateKey

func WithTaskPrivateKey(pk string) TaskOption

type TaskOwnershipTransferred

type TaskOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

TaskOwnershipTransferred represents a OwnershipTransferred event raised by the Task contract.

type TaskOwnershipTransferredIterator

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

TaskOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Task contract.

func (*TaskOwnershipTransferredIterator) Close

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

func (*TaskOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskOwnershipTransferredIterator) 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 TaskRaw

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

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

func (*TaskRaw) Call

func (_Task *TaskRaw) 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 (*TaskRaw) Transact

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

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

func (*TaskRaw) Transfer

func (_Task *TaskRaw) 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 TaskRewardAndStatusUpdated

type TaskRewardAndStatusUpdated struct {
	RewardTx string
	Status   string
	Raw      types.Log // Blockchain specific contextual infos
}

TaskRewardAndStatusUpdated represents a RewardAndStatusUpdated event raised by the Task contract.

type TaskRewardAndStatusUpdatedIterator

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

TaskRewardAndStatusUpdatedIterator is returned from FilterRewardAndStatusUpdated and is used to iterate over the raw logs and unpacked data for RewardAndStatusUpdated events raised by the Task contract.

func (*TaskRewardAndStatusUpdatedIterator) Close

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

func (*TaskRewardAndStatusUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskRewardAndStatusUpdatedIterator) 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 TaskSession

type TaskSession struct {
	Contract     *Task             // 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
}

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

func (*TaskSession) ChallengeTx

func (_Task *TaskSession) ChallengeTx() (string, error)

ChallengeTx is a free data retrieval call binding the contract method 0xe4881688.

Solidity: function challengeTx() view returns(string)

func (*TaskSession) CpContractAddress

func (_Task *TaskSession) CpContractAddress() (common.Address, error)

CpContractAddress is a free data retrieval call binding the contract method 0x92395dc5.

Solidity: function cpContractAddress() view returns(address)

func (*TaskSession) Deadline

func (_Task *TaskSession) Deadline() (*big.Int, error)

Deadline is a free data retrieval call binding the contract method 0x29dcb0cf.

Solidity: function deadline() view returns(uint256)

func (*TaskSession) GetTaskInfo

func (_Task *TaskSession) GetTaskInfo() (ECPTaskTaskInfo, error)

GetTaskInfo is a free data retrieval call binding the contract method 0xbac64a2e.

Solidity: function getTaskInfo() view returns((uint256,uint256,string,string,address,string,string,string,string,string,string,string,uint256,bool,bool))

func (*TaskSession) InputParam

func (_Task *TaskSession) InputParam() (string, error)

InputParam is a free data retrieval call binding the contract method 0xfe140e63.

Solidity: function inputParam() view returns(string)

func (*TaskSession) IsAdmin

func (_Task *TaskSession) IsAdmin(arg0 common.Address) (bool, error)

IsAdmin is a free data retrieval call binding the contract method 0x24d7806c.

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

func (*TaskSession) IsChallenged

func (_Task *TaskSession) IsChallenged() (bool, error)

IsChallenged is a free data retrieval call binding the contract method 0x9df4d0fe.

Solidity: function isChallenged() view returns(bool)

func (*TaskSession) IsSubmitted

func (_Task *TaskSession) IsSubmitted() (bool, error)

IsSubmitted is a free data retrieval call binding the contract method 0x741b8790.

Solidity: function isSubmitted() view returns(bool)

func (*TaskSession) LockFundTx

func (_Task *TaskSession) LockFundTx() (string, error)

LockFundTx is a free data retrieval call binding the contract method 0xf80cb18a.

Solidity: function lockFundTx() view returns(string)

func (*TaskSession) Owner

func (_Task *TaskSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*TaskSession) Proof

func (_Task *TaskSession) Proof() (string, error)

Proof is a free data retrieval call binding the contract method 0xfaf924cf.

Solidity: function proof() view returns(string)

func (*TaskSession) RenounceOwnership

func (_Task *TaskSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*TaskSession) ResourceType

func (_Task *TaskSession) ResourceType() (*big.Int, error)

ResourceType is a free data retrieval call binding the contract method 0xf7d22190.

Solidity: function resourceType() view returns(uint256)

func (*TaskSession) RewardTx

func (_Task *TaskSession) RewardTx() (string, error)

RewardTx is a free data retrieval call binding the contract method 0x2cae8b10.

Solidity: function rewardTx() view returns(string)

func (*TaskSession) SlashTx

func (_Task *TaskSession) SlashTx() (string, error)

SlashTx is a free data retrieval call binding the contract method 0x4dc17e58.

Solidity: function slashTx() view returns(string)

func (*TaskSession) Status

func (_Task *TaskSession) Status() (string, error)

Status is a free data retrieval call binding the contract method 0x200d2ed2.

Solidity: function status() view returns(string)

func (*TaskSession) SubmitProof

func (_Task *TaskSession) SubmitProof(_proof string) (*types.Transaction, error)

SubmitProof is a paid mutator transaction binding the contract method 0x2c2e8faf.

Solidity: function submitProof(string _proof) returns()

func (*TaskSession) TaskType

func (_Task *TaskSession) TaskType() (*big.Int, error)

TaskType is a free data retrieval call binding the contract method 0x8cf6f32c.

Solidity: function taskType() view returns(uint256)

func (*TaskSession) TransferOwnership

func (_Task *TaskSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*TaskSession) UnlockFundTx

func (_Task *TaskSession) UnlockFundTx() (string, error)

UnlockFundTx is a free data retrieval call binding the contract method 0xec218dc4.

Solidity: function unlockFundTx() view returns(string)

func (*TaskSession) UpdateChallengeAndStatus

func (_Task *TaskSession) UpdateChallengeAndStatus(_challengeTx string, _status string) (*types.Transaction, error)

UpdateChallengeAndStatus is a paid mutator transaction binding the contract method 0x6b24e930.

Solidity: function updateChallengeAndStatus(string _challengeTx, string _status) returns()

func (*TaskSession) UpdateLockAndStatus

func (_Task *TaskSession) UpdateLockAndStatus(_lockFundTx string, _status string) (*types.Transaction, error)

UpdateLockAndStatus is a paid mutator transaction binding the contract method 0x4ad45b32.

Solidity: function updateLockAndStatus(string _lockFundTx, string _status) returns()

func (*TaskSession) UpdateRewardAndStatus

func (_Task *TaskSession) UpdateRewardAndStatus(_rewardTx string, _status string) (*types.Transaction, error)

UpdateRewardAndStatus is a paid mutator transaction binding the contract method 0xb07d7f52.

Solidity: function updateRewardAndStatus(string _rewardTx, string _status) returns()

func (*TaskSession) UpdateSlashAndStatus

func (_Task *TaskSession) UpdateSlashAndStatus(_slashTx string, _status string) (*types.Transaction, error)

UpdateSlashAndStatus is a paid mutator transaction binding the contract method 0x1382fe66.

Solidity: function updateSlashAndStatus(string _slashTx, string _status) returns()

func (*TaskSession) UpdateUnlockAndStatus

func (_Task *TaskSession) UpdateUnlockAndStatus(_unlockFundTx string, _status string) (*types.Transaction, error)

UpdateUnlockAndStatus is a paid mutator transaction binding the contract method 0xb0a40371.

Solidity: function updateUnlockAndStatus(string _unlockFundTx, string _status) returns()

func (*TaskSession) VerifyParam

func (_Task *TaskSession) VerifyParam() (string, error)

VerifyParam is a free data retrieval call binding the contract method 0x497153e3.

Solidity: function verifyParam() view returns(string)

func (*TaskSession) Version

func (_Task *TaskSession) Version() (string, error)

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

Solidity: function version() pure returns(string)

type TaskSlashAndStatusUpdated

type TaskSlashAndStatusUpdated struct {
	SlashTx string
	Status  string
	Raw     types.Log // Blockchain specific contextual infos
}

TaskSlashAndStatusUpdated represents a SlashAndStatusUpdated event raised by the Task contract.

type TaskSlashAndStatusUpdatedIterator

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

TaskSlashAndStatusUpdatedIterator is returned from FilterSlashAndStatusUpdated and is used to iterate over the raw logs and unpacked data for SlashAndStatusUpdated events raised by the Task contract.

func (*TaskSlashAndStatusUpdatedIterator) Close

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

func (*TaskSlashAndStatusUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskSlashAndStatusUpdatedIterator) 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 TaskStub

type TaskStub struct {
	ContractAddress string
	// contains filtered or unexported fields
}

func NewTaskStub

func NewTaskStub(client *ethclient.Client, options ...TaskOption) (*TaskStub, error)

func (*TaskStub) GetReward

func (s *TaskStub) GetReward() (status int, rewardTx string, challengeTx string, slashTx string, reward string, err error)

GetReward status: 1: Challenged 2: Slashed 3: rewarded

func (*TaskStub) GetTaskInfo

func (s *TaskStub) GetTaskInfo() (ECPTaskTaskInfo, error)

func (*TaskStub) IncrementNonce

func (s *TaskStub) IncrementNonce()

func (*TaskStub) SubmitUBIProof

func (s *TaskStub) SubmitUBIProof(taskId, proof string, timeOut int64) (string, error)

type TaskSubmitProof

type TaskSubmitProof struct {
	Proof string
	Raw   types.Log // Blockchain specific contextual infos
}

TaskSubmitProof represents a SubmitProof event raised by the Task contract.

type TaskSubmitProofIterator

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

TaskSubmitProofIterator is returned from FilterSubmitProof and is used to iterate over the raw logs and unpacked data for SubmitProof events raised by the Task contract.

func (*TaskSubmitProofIterator) Close

func (it *TaskSubmitProofIterator) Close() error

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

func (*TaskSubmitProofIterator) Error

func (it *TaskSubmitProofIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskSubmitProofIterator) Next

func (it *TaskSubmitProofIterator) 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 TaskTransactor

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

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

func NewTaskTransactor

func NewTaskTransactor(address common.Address, transactor bind.ContractTransactor) (*TaskTransactor, error)

NewTaskTransactor creates a new write-only instance of Task, bound to a specific deployed contract.

func (*TaskTransactor) RenounceOwnership

func (_Task *TaskTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*TaskTransactor) SubmitProof

func (_Task *TaskTransactor) SubmitProof(opts *bind.TransactOpts, _proof string) (*types.Transaction, error)

SubmitProof is a paid mutator transaction binding the contract method 0x2c2e8faf.

Solidity: function submitProof(string _proof) returns()

func (*TaskTransactor) TransferOwnership

func (_Task *TaskTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*TaskTransactor) UpdateChallengeAndStatus

func (_Task *TaskTransactor) UpdateChallengeAndStatus(opts *bind.TransactOpts, _challengeTx string, _status string) (*types.Transaction, error)

UpdateChallengeAndStatus is a paid mutator transaction binding the contract method 0x6b24e930.

Solidity: function updateChallengeAndStatus(string _challengeTx, string _status) returns()

func (*TaskTransactor) UpdateLockAndStatus

func (_Task *TaskTransactor) UpdateLockAndStatus(opts *bind.TransactOpts, _lockFundTx string, _status string) (*types.Transaction, error)

UpdateLockAndStatus is a paid mutator transaction binding the contract method 0x4ad45b32.

Solidity: function updateLockAndStatus(string _lockFundTx, string _status) returns()

func (*TaskTransactor) UpdateRewardAndStatus

func (_Task *TaskTransactor) UpdateRewardAndStatus(opts *bind.TransactOpts, _rewardTx string, _status string) (*types.Transaction, error)

UpdateRewardAndStatus is a paid mutator transaction binding the contract method 0xb07d7f52.

Solidity: function updateRewardAndStatus(string _rewardTx, string _status) returns()

func (*TaskTransactor) UpdateSlashAndStatus

func (_Task *TaskTransactor) UpdateSlashAndStatus(opts *bind.TransactOpts, _slashTx string, _status string) (*types.Transaction, error)

UpdateSlashAndStatus is a paid mutator transaction binding the contract method 0x1382fe66.

Solidity: function updateSlashAndStatus(string _slashTx, string _status) returns()

func (*TaskTransactor) UpdateUnlockAndStatus

func (_Task *TaskTransactor) UpdateUnlockAndStatus(opts *bind.TransactOpts, _unlockFundTx string, _status string) (*types.Transaction, error)

UpdateUnlockAndStatus is a paid mutator transaction binding the contract method 0xb0a40371.

Solidity: function updateUnlockAndStatus(string _unlockFundTx, string _status) returns()

type TaskTransactorRaw

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

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

func (*TaskTransactorRaw) Transact

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

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

func (*TaskTransactorRaw) Transfer

func (_Task *TaskTransactorRaw) 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 TaskTransactorSession

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

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

func (*TaskTransactorSession) RenounceOwnership

func (_Task *TaskTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*TaskTransactorSession) SubmitProof

func (_Task *TaskTransactorSession) SubmitProof(_proof string) (*types.Transaction, error)

SubmitProof is a paid mutator transaction binding the contract method 0x2c2e8faf.

Solidity: function submitProof(string _proof) returns()

func (*TaskTransactorSession) TransferOwnership

func (_Task *TaskTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*TaskTransactorSession) UpdateChallengeAndStatus

func (_Task *TaskTransactorSession) UpdateChallengeAndStatus(_challengeTx string, _status string) (*types.Transaction, error)

UpdateChallengeAndStatus is a paid mutator transaction binding the contract method 0x6b24e930.

Solidity: function updateChallengeAndStatus(string _challengeTx, string _status) returns()

func (*TaskTransactorSession) UpdateLockAndStatus

func (_Task *TaskTransactorSession) UpdateLockAndStatus(_lockFundTx string, _status string) (*types.Transaction, error)

UpdateLockAndStatus is a paid mutator transaction binding the contract method 0x4ad45b32.

Solidity: function updateLockAndStatus(string _lockFundTx, string _status) returns()

func (*TaskTransactorSession) UpdateRewardAndStatus

func (_Task *TaskTransactorSession) UpdateRewardAndStatus(_rewardTx string, _status string) (*types.Transaction, error)

UpdateRewardAndStatus is a paid mutator transaction binding the contract method 0xb07d7f52.

Solidity: function updateRewardAndStatus(string _rewardTx, string _status) returns()

func (*TaskTransactorSession) UpdateSlashAndStatus

func (_Task *TaskTransactorSession) UpdateSlashAndStatus(_slashTx string, _status string) (*types.Transaction, error)

UpdateSlashAndStatus is a paid mutator transaction binding the contract method 0x1382fe66.

Solidity: function updateSlashAndStatus(string _slashTx, string _status) returns()

func (*TaskTransactorSession) UpdateUnlockAndStatus

func (_Task *TaskTransactorSession) UpdateUnlockAndStatus(_unlockFundTx string, _status string) (*types.Transaction, error)

UpdateUnlockAndStatus is a paid mutator transaction binding the contract method 0xb0a40371.

Solidity: function updateUnlockAndStatus(string _unlockFundTx, string _status) returns()

type TaskUnlockAndStatusUpdated

type TaskUnlockAndStatusUpdated struct {
	UnlockFundTx string
	Status       string
	Raw          types.Log // Blockchain specific contextual infos
}

TaskUnlockAndStatusUpdated represents a UnlockAndStatusUpdated event raised by the Task contract.

type TaskUnlockAndStatusUpdatedIterator

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

TaskUnlockAndStatusUpdatedIterator is returned from FilterUnlockAndStatusUpdated and is used to iterate over the raw logs and unpacked data for UnlockAndStatusUpdated events raised by the Task contract.

func (*TaskUnlockAndStatusUpdatedIterator) Close

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

func (*TaskUnlockAndStatusUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskUnlockAndStatusUpdatedIterator) 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.

Jump to

Keyboard shortcuts

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