ecp

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AggregatedTaskABI = AggregatedTaskMetaData.ABI

AggregatedTaskABI is the input ABI used to generate the binding from. Deprecated: Use AggregatedTaskMetaData.ABI instead.

View Source
var AggregatedTaskBin = AggregatedTaskMetaData.Bin

AggregatedTaskBin is the compiled bytecode used for deploying new contracts. Deprecated: Use AggregatedTaskMetaData.Bin instead.

View Source
var AggregatedTaskMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_taskBlobCID\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"_taskRegistryContract\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"taskContract\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"RegisteredToTaskRegistry\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"taskBlobCID\",\"type\":\"string\"}],\"name\":\"TaskCreated\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"taskBlobCID\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561000f575f80fd5b50604051610c32380380610c328339818101604052810190610031919061047a565b5f825111610074576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161006b9061052e565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036100e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100d9906105bc565b60405180910390fd5b815f90816100f091906107e7565b507fabf948a1223daba3f04a6050c5ee3bfb2b135790471a6bbf2d2a93bc29faaf9f8260405161012091906108ee565b60405180910390a16101378161013e60201b60201c565b5050610a2c565b5f8173ffffffffffffffffffffffffffffffffffffffff16303360405160240161016992919061091d565b6040516020818303038152906040527fcaa29fc2000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040516101f39190610988565b5f604051808303815f865af19150503d805f811461022c576040519150601f19603f3d011682016040523d82523d5f602084013e610231565b606091505b5050905080610275576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161026c90610a0e565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff167f411a83d4fcdb8a204895aa1c817c68da89892ae8a277620988dcd6ea44650b7f60405160405180910390a35050565b5f604051905090565b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b610332826102ec565b810181811067ffffffffffffffff82111715610351576103506102fc565b5b80604052505050565b5f6103636102d3565b905061036f8282610329565b919050565b5f67ffffffffffffffff82111561038e5761038d6102fc565b5b610397826102ec565b9050602081019050919050565b8281835e5f83830152505050565b5f6103c46103bf84610374565b61035a565b9050828152602081018484840111156103e0576103df6102e8565b5b6103eb8482856103a4565b509392505050565b5f82601f830112610407576104066102e4565b5b81516104178482602086016103b2565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61044982610420565b9050919050565b6104598161043f565b8114610463575f80fd5b50565b5f8151905061047481610450565b92915050565b5f80604083850312156104905761048f6102dc565b5b5f83015167ffffffffffffffff8111156104ad576104ac6102e0565b5b6104b9858286016103f3565b92505060206104ca85828601610466565b9150509250929050565b5f82825260208201905092915050565b7f5461736b20426c6f6220434944206d757374206e6f7420626520656d707479005f82015250565b5f610518601f836104d4565b9150610523826104e4565b602082019050919050565b5f6020820190508181035f8301526105458161050c565b9050919050565b7f5461736b20726567697374727920636f6e74726163742061646472657373206d5f8201527f7573742062652070726f76696465640000000000000000000000000000000000602082015250565b5f6105a6602f836104d4565b91506105b18261054c565b604082019050919050565b5f6020820190508181035f8301526105d38161059a565b9050919050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061062857607f821691505b60208210810361063b5761063a6105e4565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f6008830261069d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82610662565b6106a78683610662565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f6106eb6106e66106e1846106bf565b6106c8565b6106bf565b9050919050565b5f819050919050565b610704836106d1565b610718610710826106f2565b84845461066e565b825550505050565b5f90565b61072c610720565b6107378184846106fb565b505050565b5b8181101561075a5761074f5f82610724565b60018101905061073d565b5050565b601f82111561079f5761077081610641565b61077984610653565b81016020851015610788578190505b61079c61079485610653565b83018261073c565b50505b505050565b5f82821c905092915050565b5f6107bf5f19846008026107a4565b1980831691505092915050565b5f6107d783836107b0565b9150826002028217905092915050565b6107f0826105da565b67ffffffffffffffff811115610809576108086102fc565b5b6108138254610611565b61081e82828561075e565b5f60209050601f83116001811461084f575f841561083d578287015190505b61084785826107cc565b8655506108ae565b601f19841661085d86610641565b5f5b828110156108845784890151825560018201915060208501945060208101905061085f565b868310156108a1578489015161089d601f8916826107b0565b8355505b6001600288020188555050505b505050505050565b5f6108c0826105da565b6108ca81856104d4565b93506108da8185602086016103a4565b6108e3816102ec565b840191505092915050565b5f6020820190508181035f83015261090681846108b6565b905092915050565b6109178161043f565b82525050565b5f6040820190506109305f83018561090e565b61093d602083018461090e565b9392505050565b5f81519050919050565b5f81905092915050565b5f61096282610944565b61096c818561094e565b935061097c8185602086016103a4565b80840191505092915050565b5f6109938284610958565b915081905092915050565b7f4661696c656420746f207265676973746572207461736b20636f6e74726163745f8201527f20746f205461736b526567697374727900000000000000000000000000000000602082015250565b5f6109f86030836104d4565b9150610a038261099e565b604082019050919050565b5f6020820190508181035f830152610a25816109ec565b9050919050565b6101f980610a395f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063cf9dc5571461002d575b5f80fd5b61003561004b565b6040516100429190610146565b60405180910390f35b5f805461005790610193565b80601f016020809104026020016040519081016040528092919081815260200182805461008390610193565b80156100ce5780601f106100a5576101008083540402835291602001916100ce565b820191905f5260205f20905b8154815290600101906020018083116100b157829003601f168201915b505050505081565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f610118826100d6565b61012281856100e0565b93506101328185602086016100f0565b61013b816100fe565b840191505092915050565b5f6020820190508181035f83015261015e818461010e565b905092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806101aa57607f821691505b6020821081036101bd576101bc610166565b5b5091905056fea264697066735822122087b7f47902850ce902706d3b8cbd2011c4815a02b83efdbe67cac9eb954dbaa064736f6c63430008190033",
}

AggregatedTaskMetaData contains all meta data concerning the AggregatedTask contract.

View Source
var EcpCollateralABI = EcpCollateralMetaData.ABI

EcpCollateralABI is the input ABI used to generate the binding from. Deprecated: Use EcpCollateralMetaData.ABI instead.

View Source
var EcpCollateralBin = EcpCollateralMetaData.Bin

EcpCollateralBin is the compiled bytecode used for deploying new contracts. Deprecated: Use EcpCollateralMetaData.Bin instead.

View Source
var EcpCollateralMetaData = &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\":\"admin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"cps\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"name\":\"BatchFrozenDeposit\",\"type\":\"event\"},{\"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\"}],\"name\":\"CollateralLocked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"cp\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"CollateralSlashed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"cp\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"}],\"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\":\"challenger\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"taskContractAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"taskID\",\"type\":\"uint256\"}],\"name\":\"DisputeProof\",\"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\":\"cpOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"withdrawAmount\",\"type\":\"uint256\"}],\"name\":\"Withdraw\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"cp\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"cpOwner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"WithdrawConfirmed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"cp\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"WithdrawRequestCanceled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"cp\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"WithdrawRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralContratOwner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"slashfund\",\"type\":\"uint256\"}],\"name\":\"WithdrawSlash\",\"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\":[{\"internalType\":\"address[]\",\"name\":\"cps\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"name\":\"batchFrozenDeposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"cps\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"taskCollaterals\",\"type\":\"uint256[]\"}],\"name\":\"batchLock\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"cps\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"slashAmounts\",\"type\":\"uint256[]\"}],\"name\":\"batchSlash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"cps\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"taskCollaterals\",\"type\":\"uint256[]\"}],\"name\":\"batchUnlock\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"}],\"name\":\"cancelWithdrawRequest\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"collateralRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"collateralToken\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"}],\"name\":\"confirmWithdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"cpAccount\",\"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\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"taskContractAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"taskID\",\"type\":\"uint256\"}],\"name\":\"disputeProof\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\":\"address\",\"name\":\"collateralToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"slashedFunds\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseCollateral\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"slashRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawDelay\",\"type\":\"uint256\"}],\"internalType\":\"structECPCollateral.ContractInfo\",\"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\":\"taskCollateral\",\"type\":\"uint256\"}],\"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\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"requestWithdraw\",\"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\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"}],\"name\":\"setCollateralToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_slashRatio\",\"type\":\"uint256\"}],\"name\":\"setSlashRatio\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_withdrawDelay\",\"type\":\"uint256\"}],\"name\":\"setWithdrawDelay\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"cp\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"slashAmount\",\"type\":\"uint256\"}],\"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\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"cp\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"taskCollateral\",\"type\":\"uint256\"}],\"name\":\"unlockCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"}],\"name\":\"viewWithdrawRequest\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"requestBlock\",\"type\":\"uint256\"}],\"internalType\":\"structECPCollateral.WithdrawRequest\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawDelay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"withdrawRequests\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"requestBlock\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"slashfund\",\"type\":\"uint256\"}],\"name\":\"withdrawSlashedFunds\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x608060405261870060065534801561001657600080fd5b5033600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361008a5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610081919061021b565b60405180910390fd5b6100998161011660201b60201c565b506100a93361011660201b60201c565b6001600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060056004819055506002600581905550610236565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610205826101da565b9050919050565b610215816101fa565b82525050565b6000602082019050610230600083018461020c565b92915050565b6145f9806102456000396000f3fe608060405234801561001057600080fd5b506004361061023d5760003560e01c8063704802751161013b578063a664c216116100b8578063ce3518aa1161007c578063ce3518aa14610685578063d27ca89b146106a1578063d2bfc1c7146106bf578063f2fde38b146106db578063f3fef3a3146106f75761023d565b8063a664c216146105cd578063b2016bd4146105fd578063b4eae1cb1461061b578063bede6e3114610639578063c6ff4555146106695761023d565b80638331f8e5116100ff5780638331f8e51461053b5780638da5cb5b146105575780639939cd1814610575578063998fc5cc146105935780639b5ddf09146105af5761023d565b806370480275146104bf57806370b72944146104db578063715018a6146104f957806372f0cb30146105035780637f58a7e51461051f5761023d565b80633fe65177116101c95780635f7d0e841161018d5780635f7d0e84146104315780636060663e1461044d57806363215bb714610469578063666181a9146104855780636f99f15c146104a15761023d565b80633fe651771461037c57806347a7d107146103ac57806347e7ef24146103c857806352df49ec146103e45780635d2cd2a7146104155761023d565b806324d7806c1161021057806324d7806c146102b4578063266565a9146102e457806327e235e3146103145780632894493f14610344578063397a1b28146103605761023d565b80630288a39c146102425780631785f53c1461026057806317f174981461027c5780631d47a62d14610298575b600080fd5b61024a610713565b6040516102579190613024565b60405180910390f35b61027a600480360381019061027591906130a7565b610719565b005b61029660048036038101906102919190613100565b61077c565b005b6102b260048036038101906102ad9190613100565b610968565b005b6102ce60048036038101906102c991906130a7565b610bdd565b6040516102db919061315b565b60405180910390f35b6102fe60048036038101906102f991906130a7565b610bfd565b60405161030b9190613024565b60405180910390f35b61032e600480360381019061032991906130a7565b610c15565b60405161033b919061318f565b60405180910390f35b61035e600480360381019061035991906131aa565b610c2d565b005b61037a60048036038101906103759190613100565b610d85565b005b610396600480360381019061039191906130a7565b61107e565b6040516103a39190613267565b60405180910390f35b6103c660048036038101906103c19190613100565b61111e565b005b6103e260048036038101906103dd9190613100565b611333565b005b6103fe60048036038101906103f991906130a7565b61149e565b60405161040c929190613289565b60405180910390f35b61042f600480360381019061042a91906130a7565b6114c2565b005b61044b6004803603810190610446919061336d565b6117ae565b005b610467600480360381019061046291906131aa565b6118ee565b005b610483600480360381019061047e919061336d565b611900565b005b61049f600480360381019061049a91906130a7565b611a40565b005b6104a9611a8c565b6040516104b69190613024565b60405180910390f35b6104d960048036038101906104d491906130a7565b611a92565b005b6104e3611af5565b6040516104f09190613024565b60405180910390f35b610501611aff565b005b61051d600480360381019061051891906131aa565b611b13565b005b610539600480360381019061053491906131aa565b611b25565b005b610555600480360381019061055091906133ee565b611bbb565b005b61055f611c27565b60405161056c9190613450565b60405180910390f35b61057d611c50565b60405161058a9190613504565b60405180910390f35b6105ad60048036038101906105a8919061336d565b611ccc565b005b6105b7612002565b6040516105c49190613024565b60405180910390f35b6105e760048036038101906105e291906130a7565b612008565b6040516105f491906135db565b60405180910390f35b610605612193565b604051610612919061365c565b60405180910390f35b6106236121b9565b6040516106309190613024565b60405180910390f35b610653600480360381019061064e91906130a7565b6121bf565b60405161066091906136a6565b60405180910390f35b610683600480360381019061067e919061336d565b61222c565b005b61069f600480360381019061069a91906131aa565b61236c565b005b6106a961237e565b6040516106b69190613024565b60405180910390f35b6106d960048036038101906106d491906130a7565b612384565b005b6106f560048036038101906106f091906130a7565b612849565b005b610711600480360381019061070c9190613100565b6128cf565b005b60065481565b610721612c74565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610808576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ff90613733565b60405180910390fd5b6000600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600081831161085b578261085d565b815b905080600960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546108ae9190613782565b9250508190555080600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461090491906137b6565b9250508190555061091484612cfb565b8373ffffffffffffffffffffffffffffffffffffffff167fb4eaf47ecd4bc76248f192433e8067c96cb3e17aced42fbc47a512742fb742168260405161095a9190613024565b60405180910390a250505050565b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166109f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109eb90613733565b60405180910390fd5b6000600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000818311610a475782610a49565b815b90506000818411610a5b576000610a68565b8184610a679190613782565b5b905081600960008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610ab99190613782565b9250508190555080600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610b0f91906137fa565b925050819055508360026000828254610b28919061383d565b92505081905550610b3885612cfb565b8473ffffffffffffffffffffffffffffffffffffffff167f5138f522ae83cccdefee151fa33feeb62b6bbe619fdeb8f83cd1c6c3f8bdf92185604051610b7e9190613024565b60405180910390a28473ffffffffffffffffffffffffffffffffffffffff167f42f1a8a1aee108e84e4eabfaa8d51d7baaa1a02d482295297883a44b2debd3e48383604051610bce9291906138bd565b60405180910390a25050505050565b60076020528060005260406000206000915054906101000a900460ff1681565b60096020528060005260406000206000915090505481565b60086020528060005260406000206000915090505481565b610c35612c74565b806002541015610c7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c719061396b565b60405180910390fd5b8060026000828254610c8c9190613782565b92505081905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610cf092919061398b565b6020604051808303816000875af1158015610d0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3391906139e0565b503373ffffffffffffffffffffffffffffffffffffffff167fbfd9c82485e2178fcfd5c40379d8e66fe60acc50aa1ef4c50966431eb1e381cd82604051610d7a9190613024565b60405180910390a250565b6000808373ffffffffffffffffffffffffffffffffffffffff166040516024016040516020818303038152906040527f893d20e8000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610e2f9190613a54565b6000604051808303816000865af19150503d8060008114610e6c576040519150601f19603f3d011682016040523d82523d6000602084013e610e71565b606091505b509150915081610eb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ead90613add565b60405180910390fd5b600081806020019051810190610ecc9190613b3b565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3390613bda565b60405180910390fd5b83600960008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610fbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb590613c6c565b60405180910390fd5b604051806040016040528085815260200143815250600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000155602082015181600101559050508473ffffffffffffffffffffffffffffffffffffffff167ff7774b688d56120b783560a913ee60792a73dfd511812b7be5eccf10d08c66898560405161106f9190613024565b60405180910390a25050505050565b600a602052806000526040600020600091509050805461109d90613cbb565b80601f01602080910402602001604051908101604052809291908181526020018280546110c990613cbb565b80156111165780601f106110eb57610100808354040283529160200191611116565b820191906000526020600020905b8154815290600101906020018083116110f957829003601f168201915b505050505081565b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166111aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a190613733565b60405180910390fd5b80600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054121561122c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122390613d5e565b60405180910390fd5b80600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461127b91906137fa565b9250508190555080600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546112d1919061383d565b925050819055506112e182612cfb565b8173ffffffffffffffffffffffffffffffffffffffff167f2251f6a4ed7fe619e9e8ce557d05a63dd484284f9c95c9ab334f6a7707cd0800826040516113279190613024565b60405180910390a25050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b815260040161139293929190613d7e565b6020604051808303816000875af11580156113b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d591906139e0565b5080600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461142591906137b6565b925050819055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62836040516114899190613024565b60405180910390a361149a82612cfb565b5050565b600b6020528060005260406000206000915090508060000154908060010154905082565b6000808273ffffffffffffffffffffffffffffffffffffffff166040516024016040516020818303038152906040527f893d20e8000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505060405161156c9190613a54565b6000604051808303816000865af19150503d80600081146115a9576040519150601f19603f3d011682016040523d82523d6000602084013e6115ae565b606091505b5091509150816115f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ea90613add565b60405180910390fd5b6000818060200190518101906116099190613b3b565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611679576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167090613e27565b60405180910390fd5b6000600b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000015411611703576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116fa90613e93565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff167fa3895d397a34e928a95d593331e293e2fc281d9d8996df5cc6c57f1cef629d42826000015460405161174d9190613024565b60405180910390a2600b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600080820160009055600182016000905550505050505050565b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661183a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183190613733565b60405180910390fd5b818190508484905014611882576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187990613eff565b60405180910390fd5b60005b848490508110156118e7576118da8585838181106118a6576118a5613f1f565b5b90506020020160208101906118bb91906130a7565b8484848181106118ce576118cd613f1f565b5b9050602002013561077c565b8080600101915050611885565b5050505050565b6118f6612c74565b8060048190555050565b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661198c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198390613733565b60405180910390fd5b8181905084849050146119d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119cb90613eff565b60405180910390fd5b60005b84849050811015611a3957611a2c8585838181106119f8576119f7613f1f565b5b9050602002016020810190611a0d91906130a7565b848484818110611a2057611a1f613f1f565b5b9050602002013561111e565b80806001019150506119d7565b5050505050565b611a48612c74565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60025481565b611a9a612c74565b6001600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000600354905090565b611b07612c74565b611b116000612e9b565b565b611b1b612c74565b8060068190555050565b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611bb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba890613733565b60405180910390fd5b8060038190555050565b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f6010bb1c19b181c59c29bde1a47441eae0c5e2e587b409d5a7ac30f01e8dcf3c8484604051611c1a92919061398b565b60405180910390a3505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611c58612f67565b6040518060c00160405280600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016002548152602001600354815260200160045481526020016005548152602001600654815250905090565b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611d58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4f90613733565b60405180910390fd5b818190508484905014611da0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9790613eff565b60405180910390fd5b6000805b83839050811015611de357838382818110611dc257611dc1613f1f565b5b9050602002013582611dd4919061383d565b91508080600101915050611da4565b50600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401611e4393929190613d7e565b6020604051808303816000875af1158015611e62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e8691906139e0565b611ec5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ebc90613f9a565b60405180910390fd5b60005b85859050811015611fa657838382818110611ee657611ee5613f1f565b5b9050602002013560096000888885818110611f0457611f03613f1f565b5b9050602002016020810190611f1991906130a7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f62919061383d565b92505081905550611f99868683818110611f7f57611f7e613f1f565b5b9050602002016020810190611f9491906130a7565b612cfb565b8080600101915050611ec8565b503373ffffffffffffffffffffffffffffffffffffffff167ff6bc9c339713a32d9c780cc55ab0d0b62a32de9986165175992e78e6973e5b1b86868686604051611ff394939291906140e9565b60405180910390a25050505050565b60035481565b612010612fb3565b60405180608001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548152602001600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548152602001600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805461210b90613cbb565b80601f016020809104026020016040519081016040528092919081815260200182805461213790613cbb565b80156121845780601f1061215957610100808354040283529160200191612184565b820191906000526020600020905b81548152906001019060200180831161216757829003601f168201915b50505050508152509050919050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045481565b6121c7612ff1565b600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020604051806040016040529081600082015481526020016001820154815250509050919050565b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166122b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122af90613733565b60405180910390fd5b818190508484905014612300576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f790613eff565b60405180910390fd5b60005b848490508110156123655761235885858381811061232457612323613f1f565b5b905060200201602081019061233991906130a7565b84848481811061234c5761234b613f1f565b5b90506020020135610968565b8080600101915050612303565b5050505050565b612374612c74565b8060058190555050565b60055481565b6000808273ffffffffffffffffffffffffffffffffffffffff166040516024016040516020818303038152906040527f893d20e8000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505060405161242e9190613a54565b6000604051808303816000865af19150503d806000811461246b576040519150601f19603f3d011682016040523d82523d6000602084013e612470565b606091505b5091509150816124b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ac90613add565b60405180910390fd5b6000818060200190518101906124cb9190613b3b565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461253b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253290614196565b60405180910390fd5b6000600b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154116125c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125bc90613e93565b60405180910390fd5b60065481600101546125d7919061383d565b431015612619576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261090614202565b60405180910390fd5b8060000154600960008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054101561269f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269690613c6c565b60405180910390fd5b60008160000154905080600960008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126f79190613782565b92505081905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b815260040161275b92919061398b565b6020604051808303816000875af115801561277a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061279e91906139e0565b508573ffffffffffffffffffffffffffffffffffffffff167fe6fc6292b9fd5ba92a34a05a92d07b066535578023d71f0c6bf83a2622ca4e5484836040516127e792919061398b565b60405180910390a2600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008082016000905560018201600090555050505050505050565b612851612c74565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036128c35760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016128ba9190613450565b60405180910390fd5b6128cc81612e9b565b50565b6000808373ffffffffffffffffffffffffffffffffffffffff166040516024016040516020818303038152906040527f893d20e8000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040516129799190613a54565b6000604051808303816000865af19150503d80600081146129b6576040519150601f19603f3d011682016040523d82523d6000602084013e6129bb565b606091505b509150915081612a00576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f790613add565b60405180910390fd5b600081806020019051810190612a169190613b3b565b905083600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541215612a9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a919061426e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612b08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aff90614300565b60405180910390fd5b83600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b5791906137fa565b92505081905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33866040518363ffffffff1660e01b8152600401612bbb92919061398b565b6020604051808303816000875af1158015612bda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bfe91906139e0565b50612c0885612cfb565b8473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb86604051612c659190613024565b60405180910390a35050505050565b612c7c612f5f565b73ffffffffffffffffffffffffffffffffffffffff16612c9a611c27565b73ffffffffffffffffffffffffffffffffffffffff1614612cf957612cbd612f5f565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401612cf09190613450565b60405180910390fd5b565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054148015612d8957506000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054145b15612e15576040518060400160405280600381526020017f4e53430000000000000000000000000000000000000000000000000000000000815250600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209081612e0f91906144f1565b50612e98565b6040518060400160405280600681526020017f4163746976650000000000000000000000000000000000000000000000000000815250600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209081612e9691906144f1565b505b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6040518060c00160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff1681526020016000815260200160008152602001606081525090565b604051806040016040528060008152602001600081525090565b6000819050919050565b61301e8161300b565b82525050565b60006020820190506130396000830184613015565b92915050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061307482613049565b9050919050565b61308481613069565b811461308f57600080fd5b50565b6000813590506130a18161307b565b92915050565b6000602082840312156130bd576130bc61303f565b5b60006130cb84828501613092565b91505092915050565b6130dd8161300b565b81146130e857600080fd5b50565b6000813590506130fa816130d4565b92915050565b600080604083850312156131175761311661303f565b5b600061312585828601613092565b9250506020613136858286016130eb565b9150509250929050565b60008115159050919050565b61315581613140565b82525050565b6000602082019050613170600083018461314c565b92915050565b6000819050919050565b61318981613176565b82525050565b60006020820190506131a46000830184613180565b92915050565b6000602082840312156131c0576131bf61303f565b5b60006131ce848285016130eb565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156132115780820151818401526020810190506131f6565b60008484015250505050565b6000601f19601f8301169050919050565b6000613239826131d7565b61324381856131e2565b93506132538185602086016131f3565b61325c8161321d565b840191505092915050565b60006020820190508181036000830152613281818461322e565b905092915050565b600060408201905061329e6000830185613015565b6132ab6020830184613015565b9392505050565b600080fd5b600080fd5b600080fd5b60008083601f8401126132d7576132d66132b2565b5b8235905067ffffffffffffffff8111156132f4576132f36132b7565b5b6020830191508360208202830111156133105761330f6132bc565b5b9250929050565b60008083601f84011261332d5761332c6132b2565b5b8235905067ffffffffffffffff81111561334a576133496132b7565b5b602083019150836020820283011115613366576133656132bc565b5b9250929050565b600080600080604085870312156133875761338661303f565b5b600085013567ffffffffffffffff8111156133a5576133a4613044565b5b6133b1878288016132c1565b9450945050602085013567ffffffffffffffff8111156133d4576133d3613044565b5b6133e087828801613317565b925092505092959194509250565b6000806000606084860312156134075761340661303f565b5b600061341586828701613092565b935050602061342686828701613092565b9250506040613437868287016130eb565b9150509250925092565b61344a81613069565b82525050565b60006020820190506134656000830184613441565b92915050565b61347481613069565b82525050565b6134838161300b565b82525050565b60c08201600082015161349f600085018261346b565b5060208201516134b2602085018261347a565b5060408201516134c5604085018261347a565b5060608201516134d8606085018261347a565b5060808201516134eb608085018261347a565b5060a08201516134fe60a085018261347a565b50505050565b600060c0820190506135196000830184613489565b92915050565b61352881613176565b82525050565b600082825260208201905092915050565b600061354a826131d7565b613554818561352e565b93506135648185602086016131f3565b61356d8161321d565b840191505092915050565b6000608083016000830151613590600086018261346b565b5060208301516135a3602086018261351f565b5060408301516135b6604086018261347a565b50606083015184820360608601526135ce828261353f565b9150508091505092915050565b600060208201905081810360008301526135f58184613578565b905092915050565b6000819050919050565b600061362261361d61361884613049565b6135fd565b613049565b9050919050565b600061363482613607565b9050919050565b600061364682613629565b9050919050565b6136568161363b565b82525050565b6000602082019050613671600083018461364d565b92915050565b60408201600082015161368d600085018261347a565b5060208201516136a0602085018261347a565b50505050565b60006040820190506136bb6000830184613677565b92915050565b7f4f6e6c79207468652061646d696e2063616e2063616c6c20746869732066756e60008201527f6374696f6e2e0000000000000000000000000000000000000000000000000000602082015250565b600061371d6026836131e2565b9150613728826136c1565b604082019050919050565b6000602082019050818103600083015261374c81613710565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061378d8261300b565b91506137988361300b565b92508282039050818111156137b0576137af613753565b5b92915050565b60006137c182613176565b91506137cc83613176565b9250828201905082811215600083121683821260008412151617156137f4576137f3613753565b5b92915050565b600061380582613176565b915061381083613176565b925082820390508181126000841216828213600085121516171561383757613836613753565b5b92915050565b60006138488261300b565b91506138538361300b565b925082820190508082111561386b5761386a613753565b5b92915050565b7f536c617368656400000000000000000000000000000000000000000000000000600082015250565b60006138a76007836131e2565b91506138b282613871565b602082019050919050565b60006060820190506138d26000830185613015565b6138df6020830184613015565b81810360408301526138f08161389a565b90509392505050565b7f576974686472617720736c61736866756e6420616d6f756e742065786365656460008201527f7320736c617368656446756e6473000000000000000000000000000000000000602082015250565b6000613955602e836131e2565b9150613960826138f9565b604082019050919050565b6000602082019050818103600083015261398481613948565b9050919050565b60006040820190506139a06000830185613441565b6139ad6020830184613015565b9392505050565b6139bd81613140565b81146139c857600080fd5b50565b6000815190506139da816139b4565b92915050565b6000602082840312156139f6576139f561303f565b5b6000613a04848285016139cb565b91505092915050565b600081519050919050565b600081905092915050565b6000613a2e82613a0d565b613a388185613a18565b9350613a488185602086016131f3565b80840191505092915050565b6000613a608284613a23565b915081905092915050565b7f4661696c656420746f2063616c6c206765744f776e65722066756e6374696f6e60008201527f206f662043504163636f756e7400000000000000000000000000000000000000602082015250565b6000613ac7602d836131e2565b9150613ad282613a6b565b604082019050919050565b60006020820190508181036000830152613af681613aba565b9050919050565b6000613b0882613049565b9050919050565b613b1881613afd565b8114613b2357600080fd5b50565b600081519050613b3581613b0f565b92915050565b600060208284031215613b5157613b5061303f565b5b6000613b5f84828501613b26565b91505092915050565b7f4f6e6c792043502773206f776e65722063616e2072657175657374207769746860008201527f64726177616c0000000000000000000000000000000000000000000000000000602082015250565b6000613bc46026836131e2565b9150613bcf82613b68565b604082019050919050565b60006020820190508181036000830152613bf381613bb7565b9050919050565b7f4e6f7420656e6f7567682066726f7a656e2062616c616e636520746f2077697460008201527f6864726177000000000000000000000000000000000000000000000000000000602082015250565b6000613c566025836131e2565b9150613c6182613bfa565b604082019050919050565b60006020820190508181036000830152613c8581613c49565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613cd357607f821691505b602082108103613ce657613ce5613c8c565b5b50919050565b7f4e6f7420656e6f7567682062616c616e636520666f7220636f6c6c617465726160008201527f6c00000000000000000000000000000000000000000000000000000000000000602082015250565b6000613d486021836131e2565b9150613d5382613cec565b604082019050919050565b60006020820190508181036000830152613d7781613d3b565b9050919050565b6000606082019050613d936000830186613441565b613da06020830185613441565b613dad6040830184613015565b949350505050565b7f4f6e6c792043502773206f776e65722063616e2063616e63656c20776974686460008201527f7261772072657175657374000000000000000000000000000000000000000000602082015250565b6000613e11602b836131e2565b9150613e1c82613db5565b604082019050919050565b60006020820190508181036000830152613e4081613e04565b9050919050565b7f4e6f2070656e64696e6720776974686472617720726571756573740000000000600082015250565b6000613e7d601b836131e2565b9150613e8882613e47565b602082019050919050565b60006020820190508181036000830152613eac81613e70565b9050919050565b7f4172726179206c656e67746873206d757374206d617463680000000000000000600082015250565b6000613ee96018836131e2565b9150613ef482613eb3565b602082019050919050565b60006020820190508181036000830152613f1881613edc565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f546f6b656e207472616e73666572206661696c65640000000000000000000000600082015250565b6000613f846015836131e2565b9150613f8f82613f4e565b602082019050919050565b60006020820190508181036000830152613fb381613f77565b9050919050565b600082825260208201905092915050565b6000819050919050565b6000613fe1838361346b565b60208301905092915050565b6000613ffc6020840184613092565b905092915050565b6000602082019050919050565b600061401d8385613fba565b935061402882613fcb565b8060005b858110156140615761403e8284613fed565b6140488882613fd5565b975061405383614004565b92505060018101905061402c565b5085925050509392505050565b600082825260208201905092915050565b600080fd5b82818337505050565b6000614099838561406e565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156140cc576140cb61407f565b5b6020830292506140dd838584614084565b82840190509392505050565b60006040820190508181036000830152614104818688614011565b9050818103602083015261411981848661408d565b905095945050505050565b7f4f6e6c792043502773206f776e65722063616e20636f6e6669726d207769746860008201527f64726177616c0000000000000000000000000000000000000000000000000000602082015250565b60006141806026836131e2565b915061418b82614124565b604082019050919050565b600060208201905081810360008301526141af81614173565b9050919050565b7f57697468647261772064656c6179206e6f742070617373656400000000000000600082015250565b60006141ec6019836131e2565b91506141f7826141b6565b602082019050919050565b6000602082019050818103600083015261421b816141df565b9050919050565b7f576974686472617720616d6f756e7420657863656564732062616c616e636500600082015250565b6000614258601f836131e2565b915061426382614222565b602082019050919050565b600060208201905081810360008301526142878161424b565b9050919050565b7f4f6e6c792043502773206f776e65722063616e2077697468647261772074686560008201527f20636f6c6c61746572616c2066756e6473000000000000000000000000000000602082015250565b60006142ea6031836131e2565b91506142f58261428e565b604082019050919050565b60006020820190508181036000830152614319816142dd565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026143b17fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614374565b6143bb8683614374565b95508019841693508086168417925050509392505050565b60006143ee6143e96143e48461300b565b6135fd565b61300b565b9050919050565b6000819050919050565b614408836143d3565b61441c614414826143f5565b848454614381565b825550505050565b600090565b614431614424565b61443c8184846143ff565b505050565b5b8181101561446057614455600082614429565b600181019050614442565b5050565b601f8211156144a5576144768161434f565b61447f84614364565b8101602085101561448e578190505b6144a261449a85614364565b830182614441565b50505b505050565b600082821c905092915050565b60006144c8600019846008026144aa565b1980831691505092915050565b60006144e183836144b7565b9150826002028217905092915050565b6144fa826131d7565b67ffffffffffffffff81111561451357614512614320565b5b61451d8254613cbb565b614528828285614464565b600060209050601f83116001811461455b5760008415614549578287015190505b61455385826144d5565b8655506145bb565b601f1984166145698661434f565b60005b828110156145915784890151825560018201915060208501945060208101905061456c565b868310156145ae57848901516145aa601f8916826144b7565b8355505b6001600288020188555050505b50505050505056fea26469706673582212203f20bda0d8d909d95458d47449a7fe4123983ec1290d1681275f31ea53cde31264736f6c63430008190033",
}

EcpCollateralMetaData contains all meta data concerning the EcpCollateral contract.

View Source
var EcpSequencerABI = EcpSequencerMetaData.ABI

EcpSequencerABI is the input ABI used to generate the binding from. Deprecated: Use EcpSequencerMetaData.ABI instead.

View Source
var EcpSequencerBin = EcpSequencerMetaData.Bin

EcpSequencerBin is the compiled bytecode used for deploying new contracts. Deprecated: Use EcpSequencerMetaData.Bin instead.

View Source
var EcpSequencerMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"}],\"name\":\"AdminAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"}],\"name\":\"AdminRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"cpAccounts\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"name\":\"BatchTransferredToEscrow\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Deposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerChanged\",\"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\":\"cpAccount\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"TransferredToEscrow\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Withdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"WithdrawnFromEscrow\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_admin\",\"type\":\"address\"}],\"name\":\"addAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"admins\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"balances\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"cpAccounts\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"name\":\"batchTransferToEscrow\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"changeOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"escrowBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"}],\"name\":\"getCPBalance\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"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\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferToEscrow\",\"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\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawFromEscrow\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
	Bin: "0x608060405234801561001057600080fd5b5061002d61002261009860201b60201c565b6100a060201b60201c565b61003c3361016460201b60201c565b60018060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506103b5565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6101726101f360201b60201c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036101e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101d890610329565b60405180910390fd5b6101f0816100a060201b60201c565b50565b61020161009860201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1661022561027d60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161461027b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027290610395565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600082825260208201905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006103136026836102a6565b915061031e826102b7565b604082019050919050565b6000602082019050818103600083015261034281610306565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061037f6020836102a6565b915061038a82610349565b602082019050919050565b600060208201905081810360008301526103ae81610372565b9050919050565b611db8806103c46000396000f3fe6080604052600436106100ec5760003560e01c8063922f126a1161008a578063e11e1b0c11610059578063e11e1b0c146102e7578063f2fde38b14610312578063f340fa011461033b578063f3fef3a314610357576100f3565b8063922f126a1461022f5780639e88fd811461026c578063a6f9dae114610295578063be47afda146102be576100f3565b8063429b62e5116100c6578063429b62e51461018757806370480275146101c4578063715018a6146101ed5780638da5cb5b14610204576100f3565b80631485fef9146100f85780631785f53c1461012157806327e235e31461014a576100f3565b366100f357005b600080fd5b34801561010457600080fd5b5061011f600480360381019061011a91906112a1565b610380565b005b34801561012d57600080fd5b5061014860048036038101906101439190611380565b61065d565b005b34801561015657600080fd5b50610171600480360381019061016c9190611380565b610703565b60405161017e91906113c6565b60405180910390f35b34801561019357600080fd5b506101ae60048036038101906101a99190611380565b61071b565b6040516101bb91906113fc565b60405180910390f35b3480156101d057600080fd5b506101eb60048036038101906101e69190611380565b61073b565b005b3480156101f957600080fd5b506102026107e0565b005b34801561021057600080fd5b506102196107f4565b6040516102269190611426565b60405180910390f35b34801561023b57600080fd5b5061025660048036038101906102519190611380565b61081d565b60405161026391906113c6565b60405180910390f35b34801561027857600080fd5b50610293600480360381019061028e9190611477565b610866565b005b3480156102a157600080fd5b506102bc60048036038101906102b79190611380565b6109f0565b005b3480156102ca57600080fd5b506102e560048036038101906102e091906114b7565b610ada565b005b3480156102f357600080fd5b506102fc610bc8565b60405161030991906114f3565b60405180910390f35b34801561031e57600080fd5b5061033960048036038101906103349190611380565b610bce565b005b61035560048036038101906103509190611380565b610c51565b005b34801561036357600080fd5b5061037e60048036038101906103799190611477565b610d67565b005b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061040a57503373ffffffffffffffffffffffffffffffffffffffff166103f26107f4565b73ffffffffffffffffffffffffffffffffffffffff16145b610449576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104409061156b565b60405180910390fd5b818190508484905014610491576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610488906115d7565b60405180910390fd5b60005b84849050811015610602578282828181106104b2576104b16115f7565b5b90506020020135600260008787858181106104d0576104cf6115f7565b5b90506020020160208101906104e59190611380565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461052e9190611655565b92505081905550828282818110610548576105476115f7565b5b90506020020135600360008282546105609190611698565b9250508190555084848281811061057a576105796115f7565b5b905060200201602081019061058f9190611380565b73ffffffffffffffffffffffffffffffffffffffff167f8aa981417e2c3a0dadea5dd2eb5eab703d6d9c074ae83d377ce454dd6a93bfa78484848181106105d9576105d86115f7565b5b905060200201356040516105ed91906114f3565b60405180910390a28080600101915050610494565b503373ffffffffffffffffffffffffffffffffffffffff167f5a5b8c52e21fd816e73687ac900bbb3238b4e80ddcb10c216085993299e64ed58585858560405161064f949392919061180a565b60405180910390a250505050565b610665611092565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167fa3b62bc36326052d97ea62d63c3d60308ed4c3ea8ac079dd8499f1e9c4f80c0f60405160405180910390a250565b60026020528060005260406000206000915090505481565b60016020528060005260406000206000915054906101000a900460ff1681565b610743611092565b60018060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167f44d6d25963f097ad14f29f06854a01f575648a1ef82f30e562ccd3889717e33960405160405180910390a250565b6107e8611092565b6107f26000611110565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806108f057503373ffffffffffffffffffffffffffffffffffffffff166108d86107f4565b73ffffffffffffffffffffffffffffffffffffffff16145b61092f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109269061156b565b60405180910390fd5b80600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461097e9190611655565b9250508190555080600360008282546109979190611698565b925050819055508173ffffffffffffffffffffffffffffffffffffffff167f8aa981417e2c3a0dadea5dd2eb5eab703d6d9c074ae83d377ce454dd6a93bfa7826040516109e491906114f3565b60405180910390a25050565b6109f8611092565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610a67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5e90611891565b60405180910390fd5b6000610a716107f4565b9050610a7c82610bce565b8173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c60405160405180910390a35050565b610ae2611092565b806003541015610b27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1e906118fd565b60405180910390fd5b8060036000828254610b39919061191d565b92505081905550610b486107f4565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610b8d573d6000803e3d6000fd5b507fd1f01ada3f4d4c0d5d81675b458e3f5c4dda3e79a82d07b03459147644bc7b7b81604051610bbd91906114f3565b60405180910390a150565b60035481565b610bd6611092565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610c45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3c906119c3565b60405180910390fd5b610c4e81611110565b50565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610cc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb790611a2f565b60405180910390fd5b34600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610d0f9190611a4f565b925050819055508073ffffffffffffffffffffffffffffffffffffffff167f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c434604051610d5c91906114f3565b60405180910390a250565b6000808373ffffffffffffffffffffffffffffffffffffffff166040516024016040516020818303038152906040527f893d20e8000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610e119190611b04565b6000604051808303816000865af19150503d8060008114610e4e576040519150601f19603f3d011682016040523d82523d6000602084013e610e53565b606091505b509150915081610e98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8f90611b8d565b60405180910390fd5b600081806020019051810190610eae9190611beb565b905083600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541215610f32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2990611c64565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610fa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9790611cf6565b60405180910390fd5b83600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610fef9190611655565b925050819055503373ffffffffffffffffffffffffffffffffffffffff166108fc859081150290604051600060405180830381858888f1935050505015801561103c573d6000803e3d6000fd5b508473ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d58560405161108391906114f3565b60405180910390a25050505050565b61109a6111d4565b73ffffffffffffffffffffffffffffffffffffffff166110b86107f4565b73ffffffffffffffffffffffffffffffffffffffff161461110e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110590611d62565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f84011261120b5761120a6111e6565b5b8235905067ffffffffffffffff811115611228576112276111eb565b5b602083019150836020820283011115611244576112436111f0565b5b9250929050565b60008083601f840112611261576112606111e6565b5b8235905067ffffffffffffffff81111561127e5761127d6111eb565b5b60208301915083602082028301111561129a576112996111f0565b5b9250929050565b600080600080604085870312156112bb576112ba6111dc565b5b600085013567ffffffffffffffff8111156112d9576112d86111e1565b5b6112e5878288016111f5565b9450945050602085013567ffffffffffffffff811115611308576113076111e1565b5b6113148782880161124b565b925092505092959194509250565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061134d82611322565b9050919050565b61135d81611342565b811461136857600080fd5b50565b60008135905061137a81611354565b92915050565b600060208284031215611396576113956111dc565b5b60006113a48482850161136b565b91505092915050565b6000819050919050565b6113c0816113ad565b82525050565b60006020820190506113db60008301846113b7565b92915050565b60008115159050919050565b6113f6816113e1565b82525050565b600060208201905061141160008301846113ed565b92915050565b61142081611342565b82525050565b600060208201905061143b6000830184611417565b92915050565b6000819050919050565b61145481611441565b811461145f57600080fd5b50565b6000813590506114718161144b565b92915050565b6000806040838503121561148e5761148d6111dc565b5b600061149c8582860161136b565b92505060206114ad85828601611462565b9150509250929050565b6000602082840312156114cd576114cc6111dc565b5b60006114db84828501611462565b91505092915050565b6114ed81611441565b82525050565b600060208201905061150860008301846114e4565b92915050565b600082825260208201905092915050565b7f4e6f7420616e2061646d696e206f72206f776e65720000000000000000000000600082015250565b600061155560158361150e565b91506115608261151f565b602082019050919050565b6000602082019050818103600083015261158481611548565b9050919050565b7f417272617973206c656e677468206d69736d6174636800000000000000000000600082015250565b60006115c160168361150e565b91506115cc8261158b565b602082019050919050565b600060208201905081810360008301526115f0816115b4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611660826113ad565b915061166b836113ad565b925082820390508181126000841216828213600085121516171561169257611691611626565b5b92915050565b60006116a382611441565b91506116ae83611441565b92508282019050808211156116c6576116c5611626565b5b92915050565b600082825260208201905092915050565b6000819050919050565b6116f081611342565b82525050565b600061170283836116e7565b60208301905092915050565b600061171d602084018461136b565b905092915050565b6000602082019050919050565b600061173e83856116cc565b9350611749826116dd565b8060005b858110156117825761175f828461170e565b61176988826116f6565b975061177483611725565b92505060018101905061174d565b5085925050509392505050565b600082825260208201905092915050565b600080fd5b82818337505050565b60006117ba838561178f565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156117ed576117ec6117a0565b5b6020830292506117fe8385846117a5565b82840190509392505050565b60006040820190508181036000830152611825818688611732565b9050818103602083015261183a8184866117ae565b905095945050505050565b7f496e76616c6964206e6577206f776e6572206164647265737300000000000000600082015250565b600061187b60198361150e565b915061188682611845565b602082019050919050565b600060208201905081810360008301526118aa8161186e565b9050919050565b7f496e73756666696369656e7420657363726f772062616c616e63650000000000600082015250565b60006118e7601b8361150e565b91506118f2826118b1565b602082019050919050565b60006020820190508181036000830152611916816118da565b9050919050565b600061192882611441565b915061193383611441565b925082820390508181111561194b5761194a611626565b5b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006119ad60268361150e565b91506119b882611951565b604082019050919050565b600060208201905081810360008301526119dc816119a0565b9050919050565b7f496e76616c6964206163636f756e742061646472657373000000000000000000600082015250565b6000611a1960178361150e565b9150611a24826119e3565b602082019050919050565b60006020820190508181036000830152611a4881611a0c565b9050919050565b6000611a5a826113ad565b9150611a65836113ad565b925082820190508281121560008312168382126000841215161715611a8d57611a8c611626565b5b92915050565b600081519050919050565b600081905092915050565b60005b83811015611ac7578082015181840152602081019050611aac565b60008484015250505050565b6000611ade82611a93565b611ae88185611a9e565b9350611af8818560208601611aa9565b80840191505092915050565b6000611b108284611ad3565b915081905092915050565b7f4661696c656420746f2063616c6c206765744f776e65722066756e6374696f6e60008201527f206f662043504163636f756e7400000000000000000000000000000000000000602082015250565b6000611b77602d8361150e565b9150611b8282611b1b565b604082019050919050565b60006020820190508181036000830152611ba681611b6a565b9050919050565b6000611bb882611322565b9050919050565b611bc881611bad565b8114611bd357600080fd5b50565b600081519050611be581611bbf565b92915050565b600060208284031215611c0157611c006111dc565b5b6000611c0f84828501611bd6565b91505092915050565b7f576974686472617720616d6f756e7420657863656564732062616c616e636500600082015250565b6000611c4e601f8361150e565b9150611c5982611c18565b602082019050919050565b60006020820190508181036000830152611c7d81611c41565b9050919050565b7f4f6e6c792043502773206f776e65722063616e2077697468647261772074686560008201527f20636f6c6c61746572616c2066756e6473000000000000000000000000000000602082015250565b6000611ce060318361150e565b9150611ceb82611c84565b604082019050919050565b60006020820190508181036000830152611d0f81611cd3565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611d4c60208361150e565b9150611d5782611d16565b602082019050919050565b60006020820190508181036000830152611d7b81611d3f565b905091905056fea2646970667358221220afdfac8d254eba4e169fca6931cb43c65d4c51eb0197bc857a034c3bad00e34464736f6c63430008190033",
}

EcpSequencerMetaData contains all meta data concerning the EcpSequencer 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\":\"_taskID\",\"type\":\"uint256\"},{\"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\":\"_cpAccount\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"_proof\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"_deadline\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_taskRegistryContract\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"_checkCode\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"taskContract\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"RegisteredToTaskRegistry\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"taskID\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"inputParam\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"checkCode\",\"type\":\"string\"}],\"name\":\"TaskCreated\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"taskInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"taskID\",\"type\":\"uint256\"},{\"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\":\"cpAccount\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"proof\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"taskRegistryContract\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"checkCode\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"version\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
	Bin: "0x60806040523480156200001157600080fd5b506040516200146538038062001465833981810160405281019062000037919062000721565b6040518061018001604052808b81526020018a81526020018981526020018881526020018781526020018673ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018481526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020013373ffffffffffffffffffffffffffffffffffffffff1681526020016040518060400160405280600381526020017f332e30000000000000000000000000000000000000000000000000000000000081525081525060008082015181600001556020820151816001015560408201518160020155606082015181600301908162000136919062000ad4565b5060808201518160040190816200014e919062000ad4565b5060a08201518160050160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060c0820151816006019081620001ad919062000ad4565b5060e082015181600701556101008201518160080160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061012082015181600901908162000218919062000ad4565b5061014082015181600a0160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061016082015181600b01908162000279919062000ad4565b509050507f7494b64152547ee0befdc148256d2de656f0aa9a5d6bf982acdf988ba8ff202e8a86898685604051620002b695949392919062000c2f565b60405180910390a1620002ce620002de60201b60201c565b5050505050505050505062000dc5565b60008060080160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16306000600a0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040516024016200035592919062000c9a565b6040516020818303038152906040527fcaa29fc2000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051620003e1919062000d14565b6000604051808303816000865af19150503d806000811462000420576040519150601f19603f3d011682016040523d82523d6000602084013e62000425565b606091505b50509050806200046c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004639062000da3565b60405180910390fd5b6000600a0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff167f411a83d4fcdb8a204895aa1c817c68da89892ae8a277620988dcd6ea44650b7f60405160405180910390a350565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b620005178162000502565b81146200052357600080fd5b50565b60008151905062000537816200050c565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620005928262000547565b810181811067ffffffffffffffff82111715620005b457620005b362000558565b5b80604052505050565b6000620005c9620004ee565b9050620005d7828262000587565b919050565b600067ffffffffffffffff821115620005fa57620005f962000558565b5b620006058262000547565b9050602081019050919050565b60005b838110156200063257808201518184015260208101905062000615565b60008484015250505050565b6000620006556200064f84620005dc565b620005bd565b90508281526020810184848401111562000674576200067362000542565b5b6200068184828562000612565b509392505050565b600082601f830112620006a157620006a06200053d565b5b8151620006b38482602086016200063e565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620006e982620006bc565b9050919050565b620006fb81620006dc565b81146200070757600080fd5b50565b6000815190506200071b81620006f0565b92915050565b6000806000806000806000806000806101408b8d031215620007485762000747620004f8565b5b6000620007588d828e0162000526565b9a505060206200076b8d828e0162000526565b99505060406200077e8d828e0162000526565b98505060608b015167ffffffffffffffff811115620007a257620007a1620004fd565b5b620007b08d828e0162000689565b97505060808b015167ffffffffffffffff811115620007d457620007d3620004fd565b5b620007e28d828e0162000689565b96505060a0620007f58d828e016200070a565b95505060c08b015167ffffffffffffffff811115620008195762000818620004fd565b5b620008278d828e0162000689565b94505060e06200083a8d828e0162000526565b9350506101006200084e8d828e016200070a565b9250506101208b015167ffffffffffffffff811115620008735762000872620004fd565b5b620008818d828e0162000689565b9150509295989b9194979a5092959850565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620008e657607f821691505b602082108103620008fc57620008fb6200089e565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620009667fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000927565b62000972868362000927565b95508019841693508086168417925050509392505050565b6000819050919050565b6000620009b5620009af620009a98462000502565b6200098a565b62000502565b9050919050565b6000819050919050565b620009d18362000994565b620009e9620009e082620009bc565b84845462000934565b825550505050565b600090565b62000a00620009f1565b62000a0d818484620009c6565b505050565b5b8181101562000a355762000a29600082620009f6565b60018101905062000a13565b5050565b601f82111562000a845762000a4e8162000902565b62000a598462000917565b8101602085101562000a69578190505b62000a8162000a788562000917565b83018262000a12565b50505b505050565b600082821c905092915050565b600062000aa96000198460080262000a89565b1980831691505092915050565b600062000ac4838362000a96565b9150826002028217905092915050565b62000adf8262000893565b67ffffffffffffffff81111562000afb5762000afa62000558565b5b62000b078254620008cd565b62000b1482828562000a39565b600060209050601f83116001811462000b4c576000841562000b37578287015190505b62000b43858262000ab6565b86555062000bb3565b601f19841662000b5c8662000902565b60005b8281101562000b865784890151825560018201915060208501945060208101905062000b5f565b8683101562000ba6578489015162000ba2601f89168262000a96565b8355505b6001600288020188555050505b505050505050565b62000bc68162000502565b82525050565b62000bd781620006dc565b82525050565b600082825260208201905092915050565b600062000bfb8262000893565b62000c07818562000bdd565b935062000c1981856020860162000612565b62000c248162000547565b840191505092915050565b600060a08201905062000c46600083018862000bbb565b62000c55602083018762000bcc565b818103604083015262000c69818662000bee565b905062000c7a606083018562000bbb565b818103608083015262000c8e818462000bee565b90509695505050505050565b600060408201905062000cb1600083018562000bcc565b62000cc0602083018462000bcc565b9392505050565b600081519050919050565b600081905092915050565b600062000cea8262000cc7565b62000cf6818562000cd2565b935062000d0881856020860162000612565b80840191505092915050565b600062000d22828462000cdd565b915081905092915050565b7f4661696c656420746f207265676973746572207461736b20636f6e747261637460008201527f20746f205461736b526567697374727900000000000000000000000000000000602082015250565b600062000d8b60308362000bdd565b915062000d988262000d2d565b604082019050919050565b6000602082019050818103600083015262000dbe8162000d7c565b9050919050565b6106908062000dd56000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806354fd4d501461003b578063ac72255114610059575b600080fd5b610043610082565b60405161005091906104a1565b60405180910390f35b6100616100bb565b6040516100799c9b9a9998979695949392919061051d565b60405180910390f35b6040518060400160405280600381526020017f332e30000000000000000000000000000000000000000000000000000000000081525081565b60008060000154908060010154908060020154908060030180546100de90610629565b80601f016020809104026020016040519081016040528092919081815260200182805461010a90610629565b80156101575780601f1061012c57610100808354040283529160200191610157565b820191906000526020600020905b81548152906001019060200180831161013a57829003601f168201915b50505050509080600401805461016c90610629565b80601f016020809104026020016040519081016040528092919081815260200182805461019890610629565b80156101e55780601f106101ba576101008083540402835291602001916101e5565b820191906000526020600020905b8154815290600101906020018083116101c857829003601f168201915b5050505050908060050160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169080600601805461022090610629565b80601f016020809104026020016040519081016040528092919081815260200182805461024c90610629565b80156102995780601f1061026e57610100808354040283529160200191610299565b820191906000526020600020905b81548152906001019060200180831161027c57829003601f168201915b5050505050908060070154908060080160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060090180546102da90610629565b80601f016020809104026020016040519081016040528092919081815260200182805461030690610629565b80156103535780601f1061032857610100808354040283529160200191610353565b820191906000526020600020905b81548152906001019060200180831161033657829003601f168201915b50505050509080600a0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169080600b01805461038e90610629565b80601f01602080910402602001604051908101604052809291908181526020018280546103ba90610629565b80156104075780601f106103dc57610100808354040283529160200191610407565b820191906000526020600020905b8154815290600101906020018083116103ea57829003601f168201915b505050505090508c565b600081519050919050565b600082825260208201905092915050565b60005b8381101561044b578082015181840152602081019050610430565b60008484015250505050565b6000601f19601f8301169050919050565b600061047382610411565b61047d818561041c565b935061048d81856020860161042d565b61049681610457565b840191505092915050565b600060208201905081810360008301526104bb8184610468565b905092915050565b6000819050919050565b6104d6816104c3565b82525050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610507826104dc565b9050919050565b610517816104fc565b82525050565b600061018082019050610533600083018f6104cd565b610540602083018e6104cd565b61054d604083018d6104cd565b818103606083015261055f818c610468565b90508181036080830152610573818b610468565b905061058260a083018a61050e565b81810360c08301526105948189610468565b90506105a360e08301886104cd565b6105b161010083018761050e565b8181036101208301526105c48186610468565b90506105d461014083018561050e565b8181036101608301526105e78184610468565b90509d9c50505050505050505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061064157607f821691505b602082108103610654576106536105fa565b5b5091905056fea2646970667358221220b20a66f838453262d486eb6c5e21d5c4fc5375763d941839b37ac39e0efb5c7f64736f6c63430008140033",
}

TaskMetaData contains all meta data concerning the Task contract.

Functions

func ParseError

func ParseError(err error) string

Types

type AggregatedTask added in v0.6.2

type AggregatedTask struct {
	AggregatedTaskCaller     // Read-only binding to the contract
	AggregatedTaskTransactor // Write-only binding to the contract
	AggregatedTaskFilterer   // Log filterer for contract events
}

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

func DeployAggregatedTask added in v0.6.2

func DeployAggregatedTask(auth *bind.TransactOpts, backend bind.ContractBackend, _taskBlobCID string, _taskRegistryContract common.Address) (common.Address, *types.Transaction, *AggregatedTask, error)

DeployAggregatedTask deploys a new Ethereum contract, binding an instance of AggregatedTask to it.

func NewAggregatedTask added in v0.6.2

func NewAggregatedTask(address common.Address, backend bind.ContractBackend) (*AggregatedTask, error)

NewAggregatedTask creates a new instance of AggregatedTask, bound to a specific deployed contract.

type AggregatedTaskCaller added in v0.6.2

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

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

func NewAggregatedTaskCaller added in v0.6.2

func NewAggregatedTaskCaller(address common.Address, caller bind.ContractCaller) (*AggregatedTaskCaller, error)

NewAggregatedTaskCaller creates a new read-only instance of AggregatedTask, bound to a specific deployed contract.

func (*AggregatedTaskCaller) TaskBlobCID added in v0.6.2

func (_AggregatedTask *AggregatedTaskCaller) TaskBlobCID(opts *bind.CallOpts) (string, error)

TaskBlobCID is a free data retrieval call binding the contract method 0xcf9dc557.

Solidity: function taskBlobCID() view returns(string)

type AggregatedTaskCallerRaw added in v0.6.2

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

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

func (*AggregatedTaskCallerRaw) Call added in v0.6.2

func (_AggregatedTask *AggregatedTaskCallerRaw) 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 AggregatedTaskCallerSession added in v0.6.2

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

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

func (*AggregatedTaskCallerSession) TaskBlobCID added in v0.6.2

func (_AggregatedTask *AggregatedTaskCallerSession) TaskBlobCID() (string, error)

TaskBlobCID is a free data retrieval call binding the contract method 0xcf9dc557.

Solidity: function taskBlobCID() view returns(string)

type AggregatedTaskFilterer added in v0.6.2

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

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

func NewAggregatedTaskFilterer added in v0.6.2

func NewAggregatedTaskFilterer(address common.Address, filterer bind.ContractFilterer) (*AggregatedTaskFilterer, error)

NewAggregatedTaskFilterer creates a new log filterer instance of AggregatedTask, bound to a specific deployed contract.

func (*AggregatedTaskFilterer) FilterRegisteredToTaskRegistry added in v0.6.2

func (_AggregatedTask *AggregatedTaskFilterer) FilterRegisteredToTaskRegistry(opts *bind.FilterOpts, taskContract []common.Address, owner []common.Address) (*AggregatedTaskRegisteredToTaskRegistryIterator, error)

FilterRegisteredToTaskRegistry is a free log retrieval operation binding the contract event 0x411a83d4fcdb8a204895aa1c817c68da89892ae8a277620988dcd6ea44650b7f.

Solidity: event RegisteredToTaskRegistry(address indexed taskContract, address indexed owner)

func (*AggregatedTaskFilterer) FilterTaskCreated added in v0.6.2

func (_AggregatedTask *AggregatedTaskFilterer) FilterTaskCreated(opts *bind.FilterOpts) (*AggregatedTaskTaskCreatedIterator, error)

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

Solidity: event TaskCreated(string taskBlobCID)

func (*AggregatedTaskFilterer) ParseRegisteredToTaskRegistry added in v0.6.2

func (_AggregatedTask *AggregatedTaskFilterer) ParseRegisteredToTaskRegistry(log types.Log) (*AggregatedTaskRegisteredToTaskRegistry, error)

ParseRegisteredToTaskRegistry is a log parse operation binding the contract event 0x411a83d4fcdb8a204895aa1c817c68da89892ae8a277620988dcd6ea44650b7f.

Solidity: event RegisteredToTaskRegistry(address indexed taskContract, address indexed owner)

func (*AggregatedTaskFilterer) ParseTaskCreated added in v0.6.2

func (_AggregatedTask *AggregatedTaskFilterer) ParseTaskCreated(log types.Log) (*AggregatedTaskTaskCreated, error)

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

Solidity: event TaskCreated(string taskBlobCID)

func (*AggregatedTaskFilterer) WatchRegisteredToTaskRegistry added in v0.6.2

func (_AggregatedTask *AggregatedTaskFilterer) WatchRegisteredToTaskRegistry(opts *bind.WatchOpts, sink chan<- *AggregatedTaskRegisteredToTaskRegistry, taskContract []common.Address, owner []common.Address) (event.Subscription, error)

WatchRegisteredToTaskRegistry is a free log subscription operation binding the contract event 0x411a83d4fcdb8a204895aa1c817c68da89892ae8a277620988dcd6ea44650b7f.

Solidity: event RegisteredToTaskRegistry(address indexed taskContract, address indexed owner)

func (*AggregatedTaskFilterer) WatchTaskCreated added in v0.6.2

func (_AggregatedTask *AggregatedTaskFilterer) WatchTaskCreated(opts *bind.WatchOpts, sink chan<- *AggregatedTaskTaskCreated) (event.Subscription, error)

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

Solidity: event TaskCreated(string taskBlobCID)

type AggregatedTaskRaw added in v0.6.2

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

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

func (*AggregatedTaskRaw) Call added in v0.6.2

func (_AggregatedTask *AggregatedTaskRaw) 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 (*AggregatedTaskRaw) Transact added in v0.6.2

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

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

func (*AggregatedTaskRaw) Transfer added in v0.6.2

func (_AggregatedTask *AggregatedTaskRaw) 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 AggregatedTaskRegisteredToTaskRegistry added in v0.6.2

type AggregatedTaskRegisteredToTaskRegistry struct {
	TaskContract common.Address
	Owner        common.Address
	Raw          types.Log // Blockchain specific contextual infos
}

AggregatedTaskRegisteredToTaskRegistry represents a RegisteredToTaskRegistry event raised by the AggregatedTask contract.

type AggregatedTaskRegisteredToTaskRegistryIterator added in v0.6.2

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

AggregatedTaskRegisteredToTaskRegistryIterator is returned from FilterRegisteredToTaskRegistry and is used to iterate over the raw logs and unpacked data for RegisteredToTaskRegistry events raised by the AggregatedTask contract.

func (*AggregatedTaskRegisteredToTaskRegistryIterator) Close added in v0.6.2

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

func (*AggregatedTaskRegisteredToTaskRegistryIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*AggregatedTaskRegisteredToTaskRegistryIterator) Next added in v0.6.2

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 AggregatedTaskSession added in v0.6.2

type AggregatedTaskSession struct {
	Contract     *AggregatedTask   // 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
}

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

func (*AggregatedTaskSession) TaskBlobCID added in v0.6.2

func (_AggregatedTask *AggregatedTaskSession) TaskBlobCID() (string, error)

TaskBlobCID is a free data retrieval call binding the contract method 0xcf9dc557.

Solidity: function taskBlobCID() view returns(string)

type AggregatedTaskTaskCreated added in v0.6.2

type AggregatedTaskTaskCreated struct {
	TaskBlobCID string
	Raw         types.Log // Blockchain specific contextual infos
}

AggregatedTaskTaskCreated represents a TaskCreated event raised by the AggregatedTask contract.

type AggregatedTaskTaskCreatedIterator added in v0.6.2

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

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

func (*AggregatedTaskTaskCreatedIterator) Close added in v0.6.2

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

func (*AggregatedTaskTaskCreatedIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*AggregatedTaskTaskCreatedIterator) Next added in v0.6.2

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 AggregatedTaskTransactor added in v0.6.2

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

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

func NewAggregatedTaskTransactor added in v0.6.2

func NewAggregatedTaskTransactor(address common.Address, transactor bind.ContractTransactor) (*AggregatedTaskTransactor, error)

NewAggregatedTaskTransactor creates a new write-only instance of AggregatedTask, bound to a specific deployed contract.

type AggregatedTaskTransactorRaw added in v0.6.2

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

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

func (*AggregatedTaskTransactorRaw) Transact added in v0.6.2

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

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

func (*AggregatedTaskTransactorRaw) Transfer added in v0.6.2

func (_AggregatedTask *AggregatedTaskTransactorRaw) 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 AggregatedTaskTransactorSession added in v0.6.2

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

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

type CollateralOption added in v0.6.2

type CollateralOption func(*CollateralStub)

func WithCpAccountAddress added in v0.5.1

func WithCpAccountAddress(cpAccountAddress string) CollateralOption

func WithPrivateKey

func WithPrivateKey(pk string) CollateralOption

func WithPublicKey

func WithPublicKey(pk string) CollateralOption

type CollateralStub added in v0.6.2

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

func NewCollateralStub

func NewCollateralStub(client *ethclient.Client, options ...CollateralOption) (*CollateralStub, error)

func (*CollateralStub) ContractInfo added in v0.6.2

func (*CollateralStub) CpInfo added in v0.6.2

func (*CollateralStub) Deposit added in v0.6.2

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

func (*CollateralStub) Withdraw added in v0.6.2

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

func (*CollateralStub) WithdrawConfirm added in v0.6.2

func (s *CollateralStub) WithdrawConfirm() (string, error)

func (*CollateralStub) WithdrawRequest added in v0.6.2

func (s *CollateralStub) WithdrawRequest(amount *big.Int) (string, error)

func (*CollateralStub) WithdrawView added in v0.6.2

func (s *CollateralStub) WithdrawView() (models.WithdrawRequest, error)

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 {
	CollateralToken common.Address
	SlashedFunds    *big.Int
	BaseCollateral  *big.Int
	CollateralRatio *big.Int
	SlashRatio      *big.Int
	WithdrawDelay   *big.Int
}

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

type ECPCollateralWithdrawRequest added in v0.6.2

type ECPCollateralWithdrawRequest struct {
	Amount       *big.Int
	RequestBlock *big.Int
}

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

type EcpCollateral added in v0.6.2

type EcpCollateral struct {
	EcpCollateralCaller     // Read-only binding to the contract
	EcpCollateralTransactor // Write-only binding to the contract
	EcpCollateralFilterer   // Log filterer for contract events
}

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

func DeployEcpCollateral added in v0.6.2

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

DeployEcpCollateral deploys a new Ethereum contract, binding an instance of EcpCollateral to it.

func NewEcpCollateral added in v0.6.2

func NewEcpCollateral(address common.Address, backend bind.ContractBackend) (*EcpCollateral, error)

NewEcpCollateral creates a new instance of EcpCollateral, bound to a specific deployed contract.

type EcpCollateralBatchFrozenDeposit added in v0.7.0

type EcpCollateralBatchFrozenDeposit struct {
	Admin   common.Address
	Cps     []common.Address
	Amounts []*big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

EcpCollateralBatchFrozenDeposit represents a BatchFrozenDeposit event raised by the EcpCollateral contract.

type EcpCollateralBatchFrozenDepositIterator added in v0.7.0

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

EcpCollateralBatchFrozenDepositIterator is returned from FilterBatchFrozenDeposit and is used to iterate over the raw logs and unpacked data for BatchFrozenDeposit events raised by the EcpCollateral contract.

func (*EcpCollateralBatchFrozenDepositIterator) Close added in v0.7.0

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

func (*EcpCollateralBatchFrozenDepositIterator) Error added in v0.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralBatchFrozenDepositIterator) Next added in v0.7.0

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 EcpCollateralCaller added in v0.6.2

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

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

func NewEcpCollateralCaller added in v0.6.2

func NewEcpCollateralCaller(address common.Address, caller bind.ContractCaller) (*EcpCollateralCaller, error)

NewEcpCollateralCaller creates a new read-only instance of EcpCollateral, bound to a specific deployed contract.

func (*EcpCollateralCaller) Balances added in v0.6.2

func (_EcpCollateral *EcpCollateralCaller) 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 (*EcpCollateralCaller) BaseCollateral added in v0.6.2

func (_EcpCollateral *EcpCollateralCaller) 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 (*EcpCollateralCaller) CollateralRatio added in v0.6.2

func (_EcpCollateral *EcpCollateralCaller) 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 (*EcpCollateralCaller) CollateralToken added in v0.6.2

func (_EcpCollateral *EcpCollateralCaller) CollateralToken(opts *bind.CallOpts) (common.Address, error)

CollateralToken is a free data retrieval call binding the contract method 0xb2016bd4.

Solidity: function collateralToken() view returns(address)

func (*EcpCollateralCaller) CpInfo added in v0.6.2

func (_EcpCollateral *EcpCollateralCaller) CpInfo(opts *bind.CallOpts, cpAccount common.Address) (ECPCollateralCPInfo, error)

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

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

func (*EcpCollateralCaller) CpStatus added in v0.6.2

func (_EcpCollateral *EcpCollateralCaller) 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 (*EcpCollateralCaller) FrozenBalance added in v0.6.2

func (_EcpCollateral *EcpCollateralCaller) 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 (*EcpCollateralCaller) GetBaseCollateral added in v0.6.2

func (_EcpCollateral *EcpCollateralCaller) 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 (*EcpCollateralCaller) GetECPCollateralInfo added in v0.6.2

func (_EcpCollateral *EcpCollateralCaller) GetECPCollateralInfo(opts *bind.CallOpts) (ECPCollateralContractInfo, error)

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

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

func (*EcpCollateralCaller) IsAdmin added in v0.6.2

func (_EcpCollateral *EcpCollateralCaller) 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 (*EcpCollateralCaller) Owner added in v0.6.2

func (_EcpCollateral *EcpCollateralCaller) 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 (*EcpCollateralCaller) SlashRatio added in v0.6.2

func (_EcpCollateral *EcpCollateralCaller) 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 (*EcpCollateralCaller) SlashedFunds added in v0.6.2

func (_EcpCollateral *EcpCollateralCaller) 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 (*EcpCollateralCaller) ViewWithdrawRequest added in v0.6.2

func (_EcpCollateral *EcpCollateralCaller) ViewWithdrawRequest(opts *bind.CallOpts, cpAccount common.Address) (ECPCollateralWithdrawRequest, error)

ViewWithdrawRequest is a free data retrieval call binding the contract method 0xbede6e31.

Solidity: function viewWithdrawRequest(address cpAccount) view returns((uint256,uint256))

func (*EcpCollateralCaller) WithdrawDelay added in v0.6.2

func (_EcpCollateral *EcpCollateralCaller) WithdrawDelay(opts *bind.CallOpts) (*big.Int, error)

WithdrawDelay is a free data retrieval call binding the contract method 0x0288a39c.

Solidity: function withdrawDelay() view returns(uint256)

func (*EcpCollateralCaller) WithdrawRequests added in v0.6.2

func (_EcpCollateral *EcpCollateralCaller) WithdrawRequests(opts *bind.CallOpts, arg0 common.Address) (struct {
	Amount       *big.Int
	RequestBlock *big.Int
}, error)

WithdrawRequests is a free data retrieval call binding the contract method 0x52df49ec.

Solidity: function withdrawRequests(address ) view returns(uint256 amount, uint256 requestBlock)

type EcpCollateralCallerRaw added in v0.6.2

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

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

func (*EcpCollateralCallerRaw) Call added in v0.6.2

func (_EcpCollateral *EcpCollateralCallerRaw) 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 EcpCollateralCallerSession added in v0.6.2

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

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

func (*EcpCollateralCallerSession) Balances added in v0.6.2

func (_EcpCollateral *EcpCollateralCallerSession) 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 (*EcpCollateralCallerSession) BaseCollateral added in v0.6.2

func (_EcpCollateral *EcpCollateralCallerSession) BaseCollateral() (*big.Int, error)

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

Solidity: function baseCollateral() view returns(uint256)

func (*EcpCollateralCallerSession) CollateralRatio added in v0.6.2

func (_EcpCollateral *EcpCollateralCallerSession) CollateralRatio() (*big.Int, error)

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

Solidity: function collateralRatio() view returns(uint256)

func (*EcpCollateralCallerSession) CollateralToken added in v0.6.2

func (_EcpCollateral *EcpCollateralCallerSession) CollateralToken() (common.Address, error)

CollateralToken is a free data retrieval call binding the contract method 0xb2016bd4.

Solidity: function collateralToken() view returns(address)

func (*EcpCollateralCallerSession) CpInfo added in v0.6.2

func (_EcpCollateral *EcpCollateralCallerSession) CpInfo(cpAccount common.Address) (ECPCollateralCPInfo, error)

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

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

func (*EcpCollateralCallerSession) CpStatus added in v0.6.2

func (_EcpCollateral *EcpCollateralCallerSession) 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 (*EcpCollateralCallerSession) FrozenBalance added in v0.6.2

func (_EcpCollateral *EcpCollateralCallerSession) 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 (*EcpCollateralCallerSession) GetBaseCollateral added in v0.6.2

func (_EcpCollateral *EcpCollateralCallerSession) GetBaseCollateral() (*big.Int, error)

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

Solidity: function getBaseCollateral() view returns(uint256)

func (*EcpCollateralCallerSession) GetECPCollateralInfo added in v0.6.2

func (_EcpCollateral *EcpCollateralCallerSession) GetECPCollateralInfo() (ECPCollateralContractInfo, error)

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

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

func (*EcpCollateralCallerSession) IsAdmin added in v0.6.2

func (_EcpCollateral *EcpCollateralCallerSession) 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 (*EcpCollateralCallerSession) Owner added in v0.6.2

func (_EcpCollateral *EcpCollateralCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*EcpCollateralCallerSession) SlashRatio added in v0.6.2

func (_EcpCollateral *EcpCollateralCallerSession) SlashRatio() (*big.Int, error)

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

Solidity: function slashRatio() view returns(uint256)

func (*EcpCollateralCallerSession) SlashedFunds added in v0.6.2

func (_EcpCollateral *EcpCollateralCallerSession) SlashedFunds() (*big.Int, error)

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

Solidity: function slashedFunds() view returns(uint256)

func (*EcpCollateralCallerSession) ViewWithdrawRequest added in v0.6.2

func (_EcpCollateral *EcpCollateralCallerSession) ViewWithdrawRequest(cpAccount common.Address) (ECPCollateralWithdrawRequest, error)

ViewWithdrawRequest is a free data retrieval call binding the contract method 0xbede6e31.

Solidity: function viewWithdrawRequest(address cpAccount) view returns((uint256,uint256))

func (*EcpCollateralCallerSession) WithdrawDelay added in v0.6.2

func (_EcpCollateral *EcpCollateralCallerSession) WithdrawDelay() (*big.Int, error)

WithdrawDelay is a free data retrieval call binding the contract method 0x0288a39c.

Solidity: function withdrawDelay() view returns(uint256)

func (*EcpCollateralCallerSession) WithdrawRequests added in v0.6.2

func (_EcpCollateral *EcpCollateralCallerSession) WithdrawRequests(arg0 common.Address) (struct {
	Amount       *big.Int
	RequestBlock *big.Int
}, error)

WithdrawRequests is a free data retrieval call binding the contract method 0x52df49ec.

Solidity: function withdrawRequests(address ) view returns(uint256 amount, uint256 requestBlock)

type EcpCollateralCollateralAdjusted added in v0.6.2

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

EcpCollateralCollateralAdjusted represents a CollateralAdjusted event raised by the EcpCollateral contract.

type EcpCollateralCollateralAdjustedIterator added in v0.6.2

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

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

func (*EcpCollateralCollateralAdjustedIterator) Close added in v0.6.2

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

func (*EcpCollateralCollateralAdjustedIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralCollateralAdjustedIterator) Next added in v0.6.2

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 EcpCollateralCollateralLocked added in v0.6.2

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

EcpCollateralCollateralLocked represents a CollateralLocked event raised by the EcpCollateral contract.

type EcpCollateralCollateralLockedIterator added in v0.6.2

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

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

func (*EcpCollateralCollateralLockedIterator) Close added in v0.6.2

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

func (*EcpCollateralCollateralLockedIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralCollateralLockedIterator) Next added in v0.6.2

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 EcpCollateralCollateralSlashed added in v0.6.2

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

EcpCollateralCollateralSlashed represents a CollateralSlashed event raised by the EcpCollateral contract.

type EcpCollateralCollateralSlashedIterator added in v0.6.2

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

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

func (*EcpCollateralCollateralSlashedIterator) Close added in v0.6.2

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

func (*EcpCollateralCollateralSlashedIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralCollateralSlashedIterator) Next added in v0.6.2

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 EcpCollateralCollateralUnlocked added in v0.6.2

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

EcpCollateralCollateralUnlocked represents a CollateralUnlocked event raised by the EcpCollateral contract.

type EcpCollateralCollateralUnlockedIterator added in v0.6.2

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

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

func (*EcpCollateralCollateralUnlockedIterator) Close added in v0.6.2

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

func (*EcpCollateralCollateralUnlockedIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralCollateralUnlockedIterator) Next added in v0.6.2

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 EcpCollateralDeposit added in v0.6.2

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

EcpCollateralDeposit represents a Deposit event raised by the EcpCollateral contract.

type EcpCollateralDepositIterator added in v0.6.2

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

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

func (*EcpCollateralDepositIterator) Close added in v0.6.2

func (it *EcpCollateralDepositIterator) Close() error

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

func (*EcpCollateralDepositIterator) Error added in v0.6.2

func (it *EcpCollateralDepositIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralDepositIterator) Next added in v0.6.2

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 EcpCollateralDisputeProof added in v0.6.2

type EcpCollateralDisputeProof struct {
	Challenger          common.Address
	TaskContractAddress common.Address
	CpAccount           common.Address
	TaskID              *big.Int
	Raw                 types.Log // Blockchain specific contextual infos
}

EcpCollateralDisputeProof represents a DisputeProof event raised by the EcpCollateral contract.

type EcpCollateralDisputeProofIterator added in v0.6.2

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

EcpCollateralDisputeProofIterator is returned from FilterDisputeProof and is used to iterate over the raw logs and unpacked data for DisputeProof events raised by the EcpCollateral contract.

func (*EcpCollateralDisputeProofIterator) Close added in v0.6.2

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

func (*EcpCollateralDisputeProofIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralDisputeProofIterator) Next added in v0.6.2

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 EcpCollateralFilterer added in v0.6.2

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

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

func NewEcpCollateralFilterer added in v0.6.2

func NewEcpCollateralFilterer(address common.Address, filterer bind.ContractFilterer) (*EcpCollateralFilterer, error)

NewEcpCollateralFilterer creates a new log filterer instance of EcpCollateral, bound to a specific deployed contract.

func (*EcpCollateralFilterer) FilterBatchFrozenDeposit added in v0.7.0

func (_EcpCollateral *EcpCollateralFilterer) FilterBatchFrozenDeposit(opts *bind.FilterOpts, admin []common.Address) (*EcpCollateralBatchFrozenDepositIterator, error)

FilterBatchFrozenDeposit is a free log retrieval operation binding the contract event 0xf6bc9c339713a32d9c780cc55ab0d0b62a32de9986165175992e78e6973e5b1b.

Solidity: event BatchFrozenDeposit(address indexed admin, address[] cps, uint256[] amounts)

func (*EcpCollateralFilterer) FilterCollateralAdjusted added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) FilterCollateralAdjusted(opts *bind.FilterOpts, cp []common.Address) (*EcpCollateralCollateralAdjustedIterator, 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 (*EcpCollateralFilterer) FilterCollateralLocked added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) FilterCollateralLocked(opts *bind.FilterOpts, cp []common.Address) (*EcpCollateralCollateralLockedIterator, error)

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

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

func (*EcpCollateralFilterer) FilterCollateralSlashed added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) FilterCollateralSlashed(opts *bind.FilterOpts, cp []common.Address) (*EcpCollateralCollateralSlashedIterator, error)

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

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

func (*EcpCollateralFilterer) FilterCollateralUnlocked added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) FilterCollateralUnlocked(opts *bind.FilterOpts, cp []common.Address) (*EcpCollateralCollateralUnlockedIterator, error)

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

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

func (*EcpCollateralFilterer) FilterDeposit added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) FilterDeposit(opts *bind.FilterOpts, fundingWallet []common.Address, cpAccount []common.Address) (*EcpCollateralDepositIterator, 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 (*EcpCollateralFilterer) FilterDisputeProof added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) FilterDisputeProof(opts *bind.FilterOpts, challenger []common.Address, taskContractAddress []common.Address) (*EcpCollateralDisputeProofIterator, error)

FilterDisputeProof is a free log retrieval operation binding the contract event 0x6010bb1c19b181c59c29bde1a47441eae0c5e2e587b409d5a7ac30f01e8dcf3c.

Solidity: event DisputeProof(address indexed challenger, address indexed taskContractAddress, address cpAccount, uint256 taskID)

func (*EcpCollateralFilterer) FilterOwnershipTransferred added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*EcpCollateralOwnershipTransferredIterator, error)

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

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

func (*EcpCollateralFilterer) FilterWithdraw added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) FilterWithdraw(opts *bind.FilterOpts, cpOwner []common.Address, cpAccount []common.Address) (*EcpCollateralWithdrawIterator, 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 (*EcpCollateralFilterer) FilterWithdrawConfirmed added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) FilterWithdrawConfirmed(opts *bind.FilterOpts, cp []common.Address) (*EcpCollateralWithdrawConfirmedIterator, error)

FilterWithdrawConfirmed is a free log retrieval operation binding the contract event 0xe6fc6292b9fd5ba92a34a05a92d07b066535578023d71f0c6bf83a2622ca4e54.

Solidity: event WithdrawConfirmed(address indexed cp, address cpOwner, uint256 amount)

func (*EcpCollateralFilterer) FilterWithdrawRequestCanceled added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) FilterWithdrawRequestCanceled(opts *bind.FilterOpts, cp []common.Address) (*EcpCollateralWithdrawRequestCanceledIterator, error)

FilterWithdrawRequestCanceled is a free log retrieval operation binding the contract event 0xa3895d397a34e928a95d593331e293e2fc281d9d8996df5cc6c57f1cef629d42.

Solidity: event WithdrawRequestCanceled(address indexed cp, uint256 amount)

func (*EcpCollateralFilterer) FilterWithdrawRequested added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) FilterWithdrawRequested(opts *bind.FilterOpts, cp []common.Address) (*EcpCollateralWithdrawRequestedIterator, error)

FilterWithdrawRequested is a free log retrieval operation binding the contract event 0xf7774b688d56120b783560a913ee60792a73dfd511812b7be5eccf10d08c6689.

Solidity: event WithdrawRequested(address indexed cp, uint256 amount)

func (*EcpCollateralFilterer) FilterWithdrawSlash added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) FilterWithdrawSlash(opts *bind.FilterOpts, collateralContratOwner []common.Address) (*EcpCollateralWithdrawSlashIterator, error)

FilterWithdrawSlash is a free log retrieval operation binding the contract event 0xbfd9c82485e2178fcfd5c40379d8e66fe60acc50aa1ef4c50966431eb1e381cd.

Solidity: event WithdrawSlash(address indexed collateralContratOwner, uint256 slashfund)

func (*EcpCollateralFilterer) ParseBatchFrozenDeposit added in v0.7.0

func (_EcpCollateral *EcpCollateralFilterer) ParseBatchFrozenDeposit(log types.Log) (*EcpCollateralBatchFrozenDeposit, error)

ParseBatchFrozenDeposit is a log parse operation binding the contract event 0xf6bc9c339713a32d9c780cc55ab0d0b62a32de9986165175992e78e6973e5b1b.

Solidity: event BatchFrozenDeposit(address indexed admin, address[] cps, uint256[] amounts)

func (*EcpCollateralFilterer) ParseCollateralAdjusted added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) ParseCollateralAdjusted(log types.Log) (*EcpCollateralCollateralAdjusted, 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 (*EcpCollateralFilterer) ParseCollateralLocked added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) ParseCollateralLocked(log types.Log) (*EcpCollateralCollateralLocked, error)

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

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

func (*EcpCollateralFilterer) ParseCollateralSlashed added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) ParseCollateralSlashed(log types.Log) (*EcpCollateralCollateralSlashed, error)

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

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

func (*EcpCollateralFilterer) ParseCollateralUnlocked added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) ParseCollateralUnlocked(log types.Log) (*EcpCollateralCollateralUnlocked, error)

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

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

func (*EcpCollateralFilterer) ParseDeposit added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) ParseDeposit(log types.Log) (*EcpCollateralDeposit, error)

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

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

func (*EcpCollateralFilterer) ParseDisputeProof added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) ParseDisputeProof(log types.Log) (*EcpCollateralDisputeProof, error)

ParseDisputeProof is a log parse operation binding the contract event 0x6010bb1c19b181c59c29bde1a47441eae0c5e2e587b409d5a7ac30f01e8dcf3c.

Solidity: event DisputeProof(address indexed challenger, address indexed taskContractAddress, address cpAccount, uint256 taskID)

func (*EcpCollateralFilterer) ParseOwnershipTransferred added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) ParseOwnershipTransferred(log types.Log) (*EcpCollateralOwnershipTransferred, error)

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

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

func (*EcpCollateralFilterer) ParseWithdraw added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) ParseWithdraw(log types.Log) (*EcpCollateralWithdraw, error)

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

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

func (*EcpCollateralFilterer) ParseWithdrawConfirmed added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) ParseWithdrawConfirmed(log types.Log) (*EcpCollateralWithdrawConfirmed, error)

ParseWithdrawConfirmed is a log parse operation binding the contract event 0xe6fc6292b9fd5ba92a34a05a92d07b066535578023d71f0c6bf83a2622ca4e54.

Solidity: event WithdrawConfirmed(address indexed cp, address cpOwner, uint256 amount)

func (*EcpCollateralFilterer) ParseWithdrawRequestCanceled added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) ParseWithdrawRequestCanceled(log types.Log) (*EcpCollateralWithdrawRequestCanceled, error)

ParseWithdrawRequestCanceled is a log parse operation binding the contract event 0xa3895d397a34e928a95d593331e293e2fc281d9d8996df5cc6c57f1cef629d42.

Solidity: event WithdrawRequestCanceled(address indexed cp, uint256 amount)

func (*EcpCollateralFilterer) ParseWithdrawRequested added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) ParseWithdrawRequested(log types.Log) (*EcpCollateralWithdrawRequested, error)

ParseWithdrawRequested is a log parse operation binding the contract event 0xf7774b688d56120b783560a913ee60792a73dfd511812b7be5eccf10d08c6689.

Solidity: event WithdrawRequested(address indexed cp, uint256 amount)

func (*EcpCollateralFilterer) ParseWithdrawSlash added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) ParseWithdrawSlash(log types.Log) (*EcpCollateralWithdrawSlash, error)

ParseWithdrawSlash is a log parse operation binding the contract event 0xbfd9c82485e2178fcfd5c40379d8e66fe60acc50aa1ef4c50966431eb1e381cd.

Solidity: event WithdrawSlash(address indexed collateralContratOwner, uint256 slashfund)

func (*EcpCollateralFilterer) WatchBatchFrozenDeposit added in v0.7.0

func (_EcpCollateral *EcpCollateralFilterer) WatchBatchFrozenDeposit(opts *bind.WatchOpts, sink chan<- *EcpCollateralBatchFrozenDeposit, admin []common.Address) (event.Subscription, error)

WatchBatchFrozenDeposit is a free log subscription operation binding the contract event 0xf6bc9c339713a32d9c780cc55ab0d0b62a32de9986165175992e78e6973e5b1b.

Solidity: event BatchFrozenDeposit(address indexed admin, address[] cps, uint256[] amounts)

func (*EcpCollateralFilterer) WatchCollateralAdjusted added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) WatchCollateralAdjusted(opts *bind.WatchOpts, sink chan<- *EcpCollateralCollateralAdjusted, 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 (*EcpCollateralFilterer) WatchCollateralLocked added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) WatchCollateralLocked(opts *bind.WatchOpts, sink chan<- *EcpCollateralCollateralLocked, cp []common.Address) (event.Subscription, error)

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

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

func (*EcpCollateralFilterer) WatchCollateralSlashed added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) WatchCollateralSlashed(opts *bind.WatchOpts, sink chan<- *EcpCollateralCollateralSlashed, cp []common.Address) (event.Subscription, error)

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

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

func (*EcpCollateralFilterer) WatchCollateralUnlocked added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) WatchCollateralUnlocked(opts *bind.WatchOpts, sink chan<- *EcpCollateralCollateralUnlocked, cp []common.Address) (event.Subscription, error)

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

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

func (*EcpCollateralFilterer) WatchDeposit added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *EcpCollateralDeposit, 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 (*EcpCollateralFilterer) WatchDisputeProof added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) WatchDisputeProof(opts *bind.WatchOpts, sink chan<- *EcpCollateralDisputeProof, challenger []common.Address, taskContractAddress []common.Address) (event.Subscription, error)

WatchDisputeProof is a free log subscription operation binding the contract event 0x6010bb1c19b181c59c29bde1a47441eae0c5e2e587b409d5a7ac30f01e8dcf3c.

Solidity: event DisputeProof(address indexed challenger, address indexed taskContractAddress, address cpAccount, uint256 taskID)

func (*EcpCollateralFilterer) WatchOwnershipTransferred added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *EcpCollateralOwnershipTransferred, 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 (*EcpCollateralFilterer) WatchWithdraw added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *EcpCollateralWithdraw, 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)

func (*EcpCollateralFilterer) WatchWithdrawConfirmed added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) WatchWithdrawConfirmed(opts *bind.WatchOpts, sink chan<- *EcpCollateralWithdrawConfirmed, cp []common.Address) (event.Subscription, error)

WatchWithdrawConfirmed is a free log subscription operation binding the contract event 0xe6fc6292b9fd5ba92a34a05a92d07b066535578023d71f0c6bf83a2622ca4e54.

Solidity: event WithdrawConfirmed(address indexed cp, address cpOwner, uint256 amount)

func (*EcpCollateralFilterer) WatchWithdrawRequestCanceled added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) WatchWithdrawRequestCanceled(opts *bind.WatchOpts, sink chan<- *EcpCollateralWithdrawRequestCanceled, cp []common.Address) (event.Subscription, error)

WatchWithdrawRequestCanceled is a free log subscription operation binding the contract event 0xa3895d397a34e928a95d593331e293e2fc281d9d8996df5cc6c57f1cef629d42.

Solidity: event WithdrawRequestCanceled(address indexed cp, uint256 amount)

func (*EcpCollateralFilterer) WatchWithdrawRequested added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) WatchWithdrawRequested(opts *bind.WatchOpts, sink chan<- *EcpCollateralWithdrawRequested, cp []common.Address) (event.Subscription, error)

WatchWithdrawRequested is a free log subscription operation binding the contract event 0xf7774b688d56120b783560a913ee60792a73dfd511812b7be5eccf10d08c6689.

Solidity: event WithdrawRequested(address indexed cp, uint256 amount)

func (*EcpCollateralFilterer) WatchWithdrawSlash added in v0.6.2

func (_EcpCollateral *EcpCollateralFilterer) WatchWithdrawSlash(opts *bind.WatchOpts, sink chan<- *EcpCollateralWithdrawSlash, collateralContratOwner []common.Address) (event.Subscription, error)

WatchWithdrawSlash is a free log subscription operation binding the contract event 0xbfd9c82485e2178fcfd5c40379d8e66fe60acc50aa1ef4c50966431eb1e381cd.

Solidity: event WithdrawSlash(address indexed collateralContratOwner, uint256 slashfund)

type EcpCollateralOwnershipTransferred added in v0.6.2

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

EcpCollateralOwnershipTransferred represents a OwnershipTransferred event raised by the EcpCollateral contract.

type EcpCollateralOwnershipTransferredIterator added in v0.6.2

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

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

func (*EcpCollateralOwnershipTransferredIterator) Close added in v0.6.2

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

func (*EcpCollateralOwnershipTransferredIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralOwnershipTransferredIterator) Next added in v0.6.2

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 EcpCollateralRaw added in v0.6.2

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

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

func (*EcpCollateralRaw) Call added in v0.6.2

func (_EcpCollateral *EcpCollateralRaw) 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 (*EcpCollateralRaw) Transact added in v0.6.2

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

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

func (*EcpCollateralRaw) Transfer added in v0.6.2

func (_EcpCollateral *EcpCollateralRaw) 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 EcpCollateralSession added in v0.6.2

type EcpCollateralSession struct {
	Contract     *EcpCollateral    // 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
}

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

func (*EcpCollateralSession) AddAdmin added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) 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 (*EcpCollateralSession) Balances added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) 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 (*EcpCollateralSession) BaseCollateral added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) BaseCollateral() (*big.Int, error)

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

Solidity: function baseCollateral() view returns(uint256)

func (*EcpCollateralSession) BatchFrozenDeposit added in v0.7.0

func (_EcpCollateral *EcpCollateralSession) BatchFrozenDeposit(cps []common.Address, amounts []*big.Int) (*types.Transaction, error)

BatchFrozenDeposit is a paid mutator transaction binding the contract method 0x998fc5cc.

Solidity: function batchFrozenDeposit(address[] cps, uint256[] amounts) returns()

func (*EcpCollateralSession) BatchLock added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) BatchLock(cps []common.Address, taskCollaterals []*big.Int) (*types.Transaction, error)

BatchLock is a paid mutator transaction binding the contract method 0x63215bb7.

Solidity: function batchLock(address[] cps, uint256[] taskCollaterals) returns()

func (*EcpCollateralSession) BatchSlash added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) BatchSlash(cps []common.Address, slashAmounts []*big.Int) (*types.Transaction, error)

BatchSlash is a paid mutator transaction binding the contract method 0xc6ff4555.

Solidity: function batchSlash(address[] cps, uint256[] slashAmounts) returns()

func (*EcpCollateralSession) BatchUnlock added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) BatchUnlock(cps []common.Address, taskCollaterals []*big.Int) (*types.Transaction, error)

BatchUnlock is a paid mutator transaction binding the contract method 0x5f7d0e84.

Solidity: function batchUnlock(address[] cps, uint256[] taskCollaterals) returns()

func (*EcpCollateralSession) CancelWithdrawRequest added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) CancelWithdrawRequest(cpAccount common.Address) (*types.Transaction, error)

CancelWithdrawRequest is a paid mutator transaction binding the contract method 0x5d2cd2a7.

Solidity: function cancelWithdrawRequest(address cpAccount) returns()

func (*EcpCollateralSession) CollateralRatio added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) CollateralRatio() (*big.Int, error)

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

Solidity: function collateralRatio() view returns(uint256)

func (*EcpCollateralSession) CollateralToken added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) CollateralToken() (common.Address, error)

CollateralToken is a free data retrieval call binding the contract method 0xb2016bd4.

Solidity: function collateralToken() view returns(address)

func (*EcpCollateralSession) ConfirmWithdraw added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) ConfirmWithdraw(cpAccount common.Address) (*types.Transaction, error)

ConfirmWithdraw is a paid mutator transaction binding the contract method 0xd2bfc1c7.

Solidity: function confirmWithdraw(address cpAccount) returns()

func (*EcpCollateralSession) CpInfo added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) CpInfo(cpAccount common.Address) (ECPCollateralCPInfo, error)

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

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

func (*EcpCollateralSession) CpStatus added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) 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 (*EcpCollateralSession) Deposit added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) Deposit(cpAccount common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*EcpCollateralSession) DisputeProof added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) DisputeProof(taskContractAddress common.Address, cpAccount common.Address, taskID *big.Int) (*types.Transaction, error)

DisputeProof is a paid mutator transaction binding the contract method 0x8331f8e5.

Solidity: function disputeProof(address taskContractAddress, address cpAccount, uint256 taskID) returns()

func (*EcpCollateralSession) FrozenBalance added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) 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 (*EcpCollateralSession) GetBaseCollateral added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) GetBaseCollateral() (*big.Int, error)

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

Solidity: function getBaseCollateral() view returns(uint256)

func (*EcpCollateralSession) GetECPCollateralInfo added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) GetECPCollateralInfo() (ECPCollateralContractInfo, error)

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

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

func (*EcpCollateralSession) IsAdmin added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) 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 (*EcpCollateralSession) LockCollateral added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) LockCollateral(cp common.Address, taskCollateral *big.Int) (*types.Transaction, error)

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

Solidity: function lockCollateral(address cp, uint256 taskCollateral) returns()

func (*EcpCollateralSession) Owner added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*EcpCollateralSession) RemoveAdmin added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) 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 (*EcpCollateralSession) RenounceOwnership added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*EcpCollateralSession) RequestWithdraw added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) RequestWithdraw(cpAccount common.Address, amount *big.Int) (*types.Transaction, error)

RequestWithdraw is a paid mutator transaction binding the contract method 0x397a1b28.

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

func (*EcpCollateralSession) SetBaseCollateral added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) 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 (*EcpCollateralSession) SetCollateralRatio added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) 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 (*EcpCollateralSession) SetCollateralToken added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) SetCollateralToken(tokenAddress common.Address) (*types.Transaction, error)

SetCollateralToken is a paid mutator transaction binding the contract method 0x666181a9.

Solidity: function setCollateralToken(address tokenAddress) returns()

func (*EcpCollateralSession) SetSlashRatio added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) 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 (*EcpCollateralSession) SetWithdrawDelay added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) SetWithdrawDelay(_withdrawDelay *big.Int) (*types.Transaction, error)

SetWithdrawDelay is a paid mutator transaction binding the contract method 0x72f0cb30.

Solidity: function setWithdrawDelay(uint256 _withdrawDelay) returns()

func (*EcpCollateralSession) SlashCollateral added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) SlashCollateral(cp common.Address, slashAmount *big.Int) (*types.Transaction, error)

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

Solidity: function slashCollateral(address cp, uint256 slashAmount) returns()

func (*EcpCollateralSession) SlashRatio added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) SlashRatio() (*big.Int, error)

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

Solidity: function slashRatio() view returns(uint256)

func (*EcpCollateralSession) SlashedFunds added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) SlashedFunds() (*big.Int, error)

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

Solidity: function slashedFunds() view returns(uint256)

func (*EcpCollateralSession) TransferOwnership added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) 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 (*EcpCollateralSession) UnlockCollateral added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) UnlockCollateral(cp common.Address, taskCollateral *big.Int) (*types.Transaction, error)

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

Solidity: function unlockCollateral(address cp, uint256 taskCollateral) returns()

func (*EcpCollateralSession) ViewWithdrawRequest added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) ViewWithdrawRequest(cpAccount common.Address) (ECPCollateralWithdrawRequest, error)

ViewWithdrawRequest is a free data retrieval call binding the contract method 0xbede6e31.

Solidity: function viewWithdrawRequest(address cpAccount) view returns((uint256,uint256))

func (*EcpCollateralSession) Withdraw added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) 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()

func (*EcpCollateralSession) WithdrawDelay added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) WithdrawDelay() (*big.Int, error)

WithdrawDelay is a free data retrieval call binding the contract method 0x0288a39c.

Solidity: function withdrawDelay() view returns(uint256)

func (*EcpCollateralSession) WithdrawRequests added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) WithdrawRequests(arg0 common.Address) (struct {
	Amount       *big.Int
	RequestBlock *big.Int
}, error)

WithdrawRequests is a free data retrieval call binding the contract method 0x52df49ec.

Solidity: function withdrawRequests(address ) view returns(uint256 amount, uint256 requestBlock)

func (*EcpCollateralSession) WithdrawSlashedFunds added in v0.6.2

func (_EcpCollateral *EcpCollateralSession) WithdrawSlashedFunds(slashfund *big.Int) (*types.Transaction, error)

WithdrawSlashedFunds is a paid mutator transaction binding the contract method 0x2894493f.

Solidity: function withdrawSlashedFunds(uint256 slashfund) returns()

type EcpCollateralTransactor added in v0.6.2

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

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

func NewEcpCollateralTransactor added in v0.6.2

func NewEcpCollateralTransactor(address common.Address, transactor bind.ContractTransactor) (*EcpCollateralTransactor, error)

NewEcpCollateralTransactor creates a new write-only instance of EcpCollateral, bound to a specific deployed contract.

func (*EcpCollateralTransactor) AddAdmin added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactor) 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 (*EcpCollateralTransactor) BatchFrozenDeposit added in v0.7.0

func (_EcpCollateral *EcpCollateralTransactor) BatchFrozenDeposit(opts *bind.TransactOpts, cps []common.Address, amounts []*big.Int) (*types.Transaction, error)

BatchFrozenDeposit is a paid mutator transaction binding the contract method 0x998fc5cc.

Solidity: function batchFrozenDeposit(address[] cps, uint256[] amounts) returns()

func (*EcpCollateralTransactor) BatchLock added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactor) BatchLock(opts *bind.TransactOpts, cps []common.Address, taskCollaterals []*big.Int) (*types.Transaction, error)

BatchLock is a paid mutator transaction binding the contract method 0x63215bb7.

Solidity: function batchLock(address[] cps, uint256[] taskCollaterals) returns()

func (*EcpCollateralTransactor) BatchSlash added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactor) BatchSlash(opts *bind.TransactOpts, cps []common.Address, slashAmounts []*big.Int) (*types.Transaction, error)

BatchSlash is a paid mutator transaction binding the contract method 0xc6ff4555.

Solidity: function batchSlash(address[] cps, uint256[] slashAmounts) returns()

func (*EcpCollateralTransactor) BatchUnlock added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactor) BatchUnlock(opts *bind.TransactOpts, cps []common.Address, taskCollaterals []*big.Int) (*types.Transaction, error)

BatchUnlock is a paid mutator transaction binding the contract method 0x5f7d0e84.

Solidity: function batchUnlock(address[] cps, uint256[] taskCollaterals) returns()

func (*EcpCollateralTransactor) CancelWithdrawRequest added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactor) CancelWithdrawRequest(opts *bind.TransactOpts, cpAccount common.Address) (*types.Transaction, error)

CancelWithdrawRequest is a paid mutator transaction binding the contract method 0x5d2cd2a7.

Solidity: function cancelWithdrawRequest(address cpAccount) returns()

func (*EcpCollateralTransactor) ConfirmWithdraw added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactor) ConfirmWithdraw(opts *bind.TransactOpts, cpAccount common.Address) (*types.Transaction, error)

ConfirmWithdraw is a paid mutator transaction binding the contract method 0xd2bfc1c7.

Solidity: function confirmWithdraw(address cpAccount) returns()

func (*EcpCollateralTransactor) Deposit added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactor) Deposit(opts *bind.TransactOpts, cpAccount common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*EcpCollateralTransactor) DisputeProof added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactor) DisputeProof(opts *bind.TransactOpts, taskContractAddress common.Address, cpAccount common.Address, taskID *big.Int) (*types.Transaction, error)

DisputeProof is a paid mutator transaction binding the contract method 0x8331f8e5.

Solidity: function disputeProof(address taskContractAddress, address cpAccount, uint256 taskID) returns()

func (*EcpCollateralTransactor) LockCollateral added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactor) LockCollateral(opts *bind.TransactOpts, cp common.Address, taskCollateral *big.Int) (*types.Transaction, error)

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

Solidity: function lockCollateral(address cp, uint256 taskCollateral) returns()

func (*EcpCollateralTransactor) RemoveAdmin added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactor) 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 (*EcpCollateralTransactor) RenounceOwnership added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*EcpCollateralTransactor) RequestWithdraw added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactor) RequestWithdraw(opts *bind.TransactOpts, cpAccount common.Address, amount *big.Int) (*types.Transaction, error)

RequestWithdraw is a paid mutator transaction binding the contract method 0x397a1b28.

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

func (*EcpCollateralTransactor) SetBaseCollateral added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactor) 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 (*EcpCollateralTransactor) SetCollateralRatio added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactor) 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 (*EcpCollateralTransactor) SetCollateralToken added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactor) SetCollateralToken(opts *bind.TransactOpts, tokenAddress common.Address) (*types.Transaction, error)

SetCollateralToken is a paid mutator transaction binding the contract method 0x666181a9.

Solidity: function setCollateralToken(address tokenAddress) returns()

func (*EcpCollateralTransactor) SetSlashRatio added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactor) 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 (*EcpCollateralTransactor) SetWithdrawDelay added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactor) SetWithdrawDelay(opts *bind.TransactOpts, _withdrawDelay *big.Int) (*types.Transaction, error)

SetWithdrawDelay is a paid mutator transaction binding the contract method 0x72f0cb30.

Solidity: function setWithdrawDelay(uint256 _withdrawDelay) returns()

func (*EcpCollateralTransactor) SlashCollateral added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactor) SlashCollateral(opts *bind.TransactOpts, cp common.Address, slashAmount *big.Int) (*types.Transaction, error)

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

Solidity: function slashCollateral(address cp, uint256 slashAmount) returns()

func (*EcpCollateralTransactor) TransferOwnership added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactor) 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 (*EcpCollateralTransactor) UnlockCollateral added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactor) UnlockCollateral(opts *bind.TransactOpts, cp common.Address, taskCollateral *big.Int) (*types.Transaction, error)

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

Solidity: function unlockCollateral(address cp, uint256 taskCollateral) returns()

func (*EcpCollateralTransactor) Withdraw added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactor) 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()

func (*EcpCollateralTransactor) WithdrawSlashedFunds added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactor) WithdrawSlashedFunds(opts *bind.TransactOpts, slashfund *big.Int) (*types.Transaction, error)

WithdrawSlashedFunds is a paid mutator transaction binding the contract method 0x2894493f.

Solidity: function withdrawSlashedFunds(uint256 slashfund) returns()

type EcpCollateralTransactorRaw added in v0.6.2

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

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

func (*EcpCollateralTransactorRaw) Transact added in v0.6.2

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

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

func (*EcpCollateralTransactorRaw) Transfer added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactorRaw) 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 EcpCollateralTransactorSession added in v0.6.2

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

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

func (*EcpCollateralTransactorSession) AddAdmin added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactorSession) 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 (*EcpCollateralTransactorSession) BatchFrozenDeposit added in v0.7.0

func (_EcpCollateral *EcpCollateralTransactorSession) BatchFrozenDeposit(cps []common.Address, amounts []*big.Int) (*types.Transaction, error)

BatchFrozenDeposit is a paid mutator transaction binding the contract method 0x998fc5cc.

Solidity: function batchFrozenDeposit(address[] cps, uint256[] amounts) returns()

func (*EcpCollateralTransactorSession) BatchLock added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactorSession) BatchLock(cps []common.Address, taskCollaterals []*big.Int) (*types.Transaction, error)

BatchLock is a paid mutator transaction binding the contract method 0x63215bb7.

Solidity: function batchLock(address[] cps, uint256[] taskCollaterals) returns()

func (*EcpCollateralTransactorSession) BatchSlash added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactorSession) BatchSlash(cps []common.Address, slashAmounts []*big.Int) (*types.Transaction, error)

BatchSlash is a paid mutator transaction binding the contract method 0xc6ff4555.

Solidity: function batchSlash(address[] cps, uint256[] slashAmounts) returns()

func (*EcpCollateralTransactorSession) BatchUnlock added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactorSession) BatchUnlock(cps []common.Address, taskCollaterals []*big.Int) (*types.Transaction, error)

BatchUnlock is a paid mutator transaction binding the contract method 0x5f7d0e84.

Solidity: function batchUnlock(address[] cps, uint256[] taskCollaterals) returns()

func (*EcpCollateralTransactorSession) CancelWithdrawRequest added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactorSession) CancelWithdrawRequest(cpAccount common.Address) (*types.Transaction, error)

CancelWithdrawRequest is a paid mutator transaction binding the contract method 0x5d2cd2a7.

Solidity: function cancelWithdrawRequest(address cpAccount) returns()

func (*EcpCollateralTransactorSession) ConfirmWithdraw added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactorSession) ConfirmWithdraw(cpAccount common.Address) (*types.Transaction, error)

ConfirmWithdraw is a paid mutator transaction binding the contract method 0xd2bfc1c7.

Solidity: function confirmWithdraw(address cpAccount) returns()

func (*EcpCollateralTransactorSession) Deposit added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactorSession) Deposit(cpAccount common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*EcpCollateralTransactorSession) DisputeProof added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactorSession) DisputeProof(taskContractAddress common.Address, cpAccount common.Address, taskID *big.Int) (*types.Transaction, error)

DisputeProof is a paid mutator transaction binding the contract method 0x8331f8e5.

Solidity: function disputeProof(address taskContractAddress, address cpAccount, uint256 taskID) returns()

func (*EcpCollateralTransactorSession) LockCollateral added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactorSession) LockCollateral(cp common.Address, taskCollateral *big.Int) (*types.Transaction, error)

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

Solidity: function lockCollateral(address cp, uint256 taskCollateral) returns()

func (*EcpCollateralTransactorSession) RemoveAdmin added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactorSession) 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 (*EcpCollateralTransactorSession) RenounceOwnership added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*EcpCollateralTransactorSession) RequestWithdraw added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactorSession) RequestWithdraw(cpAccount common.Address, amount *big.Int) (*types.Transaction, error)

RequestWithdraw is a paid mutator transaction binding the contract method 0x397a1b28.

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

func (*EcpCollateralTransactorSession) SetBaseCollateral added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactorSession) 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 (*EcpCollateralTransactorSession) SetCollateralRatio added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactorSession) 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 (*EcpCollateralTransactorSession) SetCollateralToken added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactorSession) SetCollateralToken(tokenAddress common.Address) (*types.Transaction, error)

SetCollateralToken is a paid mutator transaction binding the contract method 0x666181a9.

Solidity: function setCollateralToken(address tokenAddress) returns()

func (*EcpCollateralTransactorSession) SetSlashRatio added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactorSession) 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 (*EcpCollateralTransactorSession) SetWithdrawDelay added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactorSession) SetWithdrawDelay(_withdrawDelay *big.Int) (*types.Transaction, error)

SetWithdrawDelay is a paid mutator transaction binding the contract method 0x72f0cb30.

Solidity: function setWithdrawDelay(uint256 _withdrawDelay) returns()

func (*EcpCollateralTransactorSession) SlashCollateral added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactorSession) SlashCollateral(cp common.Address, slashAmount *big.Int) (*types.Transaction, error)

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

Solidity: function slashCollateral(address cp, uint256 slashAmount) returns()

func (*EcpCollateralTransactorSession) TransferOwnership added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactorSession) 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 (*EcpCollateralTransactorSession) UnlockCollateral added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactorSession) UnlockCollateral(cp common.Address, taskCollateral *big.Int) (*types.Transaction, error)

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

Solidity: function unlockCollateral(address cp, uint256 taskCollateral) returns()

func (*EcpCollateralTransactorSession) Withdraw added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactorSession) 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()

func (*EcpCollateralTransactorSession) WithdrawSlashedFunds added in v0.6.2

func (_EcpCollateral *EcpCollateralTransactorSession) WithdrawSlashedFunds(slashfund *big.Int) (*types.Transaction, error)

WithdrawSlashedFunds is a paid mutator transaction binding the contract method 0x2894493f.

Solidity: function withdrawSlashedFunds(uint256 slashfund) returns()

type EcpCollateralWithdraw added in v0.6.2

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

EcpCollateralWithdraw represents a Withdraw event raised by the EcpCollateral contract.

type EcpCollateralWithdrawConfirmed added in v0.6.2

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

EcpCollateralWithdrawConfirmed represents a WithdrawConfirmed event raised by the EcpCollateral contract.

type EcpCollateralWithdrawConfirmedIterator added in v0.6.2

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

EcpCollateralWithdrawConfirmedIterator is returned from FilterWithdrawConfirmed and is used to iterate over the raw logs and unpacked data for WithdrawConfirmed events raised by the EcpCollateral contract.

func (*EcpCollateralWithdrawConfirmedIterator) Close added in v0.6.2

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

func (*EcpCollateralWithdrawConfirmedIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralWithdrawConfirmedIterator) Next added in v0.6.2

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 EcpCollateralWithdrawIterator added in v0.6.2

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

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

func (*EcpCollateralWithdrawIterator) Close added in v0.6.2

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

func (*EcpCollateralWithdrawIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralWithdrawIterator) Next added in v0.6.2

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 EcpCollateralWithdrawRequestCanceled added in v0.6.2

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

EcpCollateralWithdrawRequestCanceled represents a WithdrawRequestCanceled event raised by the EcpCollateral contract.

type EcpCollateralWithdrawRequestCanceledIterator added in v0.6.2

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

EcpCollateralWithdrawRequestCanceledIterator is returned from FilterWithdrawRequestCanceled and is used to iterate over the raw logs and unpacked data for WithdrawRequestCanceled events raised by the EcpCollateral contract.

func (*EcpCollateralWithdrawRequestCanceledIterator) Close added in v0.6.2

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

func (*EcpCollateralWithdrawRequestCanceledIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralWithdrawRequestCanceledIterator) Next added in v0.6.2

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 EcpCollateralWithdrawRequested added in v0.6.2

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

EcpCollateralWithdrawRequested represents a WithdrawRequested event raised by the EcpCollateral contract.

type EcpCollateralWithdrawRequestedIterator added in v0.6.2

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

EcpCollateralWithdrawRequestedIterator is returned from FilterWithdrawRequested and is used to iterate over the raw logs and unpacked data for WithdrawRequested events raised by the EcpCollateral contract.

func (*EcpCollateralWithdrawRequestedIterator) Close added in v0.6.2

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

func (*EcpCollateralWithdrawRequestedIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralWithdrawRequestedIterator) Next added in v0.6.2

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 EcpCollateralWithdrawSlash added in v0.6.2

type EcpCollateralWithdrawSlash struct {
	CollateralContratOwner common.Address
	Slashfund              *big.Int
	Raw                    types.Log // Blockchain specific contextual infos
}

EcpCollateralWithdrawSlash represents a WithdrawSlash event raised by the EcpCollateral contract.

type EcpCollateralWithdrawSlashIterator added in v0.6.2

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

EcpCollateralWithdrawSlashIterator is returned from FilterWithdrawSlash and is used to iterate over the raw logs and unpacked data for WithdrawSlash events raised by the EcpCollateral contract.

func (*EcpCollateralWithdrawSlashIterator) Close added in v0.6.2

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

func (*EcpCollateralWithdrawSlashIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralWithdrawSlashIterator) Next added in v0.6.2

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 EcpSequencer added in v0.6.2

type EcpSequencer struct {
	EcpSequencerCaller     // Read-only binding to the contract
	EcpSequencerTransactor // Write-only binding to the contract
	EcpSequencerFilterer   // Log filterer for contract events
}

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

func DeployEcpSequencer added in v0.6.2

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

DeployEcpSequencer deploys a new Ethereum contract, binding an instance of EcpSequencer to it.

func NewEcpSequencer added in v0.6.2

func NewEcpSequencer(address common.Address, backend bind.ContractBackend) (*EcpSequencer, error)

NewEcpSequencer creates a new instance of EcpSequencer, bound to a specific deployed contract.

type EcpSequencerAdminAdded added in v0.6.2

type EcpSequencerAdminAdded struct {
	Admin common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

EcpSequencerAdminAdded represents a AdminAdded event raised by the EcpSequencer contract.

type EcpSequencerAdminAddedIterator added in v0.6.2

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

EcpSequencerAdminAddedIterator is returned from FilterAdminAdded and is used to iterate over the raw logs and unpacked data for AdminAdded events raised by the EcpSequencer contract.

func (*EcpSequencerAdminAddedIterator) Close added in v0.6.2

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

func (*EcpSequencerAdminAddedIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpSequencerAdminAddedIterator) Next added in v0.6.2

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 EcpSequencerAdminRemoved added in v0.6.2

type EcpSequencerAdminRemoved struct {
	Admin common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

EcpSequencerAdminRemoved represents a AdminRemoved event raised by the EcpSequencer contract.

type EcpSequencerAdminRemovedIterator added in v0.6.2

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

EcpSequencerAdminRemovedIterator is returned from FilterAdminRemoved and is used to iterate over the raw logs and unpacked data for AdminRemoved events raised by the EcpSequencer contract.

func (*EcpSequencerAdminRemovedIterator) Close added in v0.6.2

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

func (*EcpSequencerAdminRemovedIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpSequencerAdminRemovedIterator) Next added in v0.6.2

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 EcpSequencerBatchTransferredToEscrow added in v0.6.2

type EcpSequencerBatchTransferredToEscrow struct {
	Admin      common.Address
	CpAccounts []common.Address
	Amounts    []*big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

EcpSequencerBatchTransferredToEscrow represents a BatchTransferredToEscrow event raised by the EcpSequencer contract.

type EcpSequencerBatchTransferredToEscrowIterator added in v0.6.2

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

EcpSequencerBatchTransferredToEscrowIterator is returned from FilterBatchTransferredToEscrow and is used to iterate over the raw logs and unpacked data for BatchTransferredToEscrow events raised by the EcpSequencer contract.

func (*EcpSequencerBatchTransferredToEscrowIterator) Close added in v0.6.2

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

func (*EcpSequencerBatchTransferredToEscrowIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpSequencerBatchTransferredToEscrowIterator) Next added in v0.6.2

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 EcpSequencerCaller added in v0.6.2

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

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

func NewEcpSequencerCaller added in v0.6.2

func NewEcpSequencerCaller(address common.Address, caller bind.ContractCaller) (*EcpSequencerCaller, error)

NewEcpSequencerCaller creates a new read-only instance of EcpSequencer, bound to a specific deployed contract.

func (*EcpSequencerCaller) Admins added in v0.6.2

func (_EcpSequencer *EcpSequencerCaller) Admins(opts *bind.CallOpts, arg0 common.Address) (bool, error)

Admins is a free data retrieval call binding the contract method 0x429b62e5.

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

func (*EcpSequencerCaller) Balances added in v0.6.2

func (_EcpSequencer *EcpSequencerCaller) 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 (*EcpSequencerCaller) EscrowBalance added in v0.6.2

func (_EcpSequencer *EcpSequencerCaller) EscrowBalance(opts *bind.CallOpts) (*big.Int, error)

EscrowBalance is a free data retrieval call binding the contract method 0xe11e1b0c.

Solidity: function escrowBalance() view returns(uint256)

func (*EcpSequencerCaller) GetCPBalance added in v0.6.2

func (_EcpSequencer *EcpSequencerCaller) GetCPBalance(opts *bind.CallOpts, cpAccount common.Address) (*big.Int, error)

GetCPBalance is a free data retrieval call binding the contract method 0x922f126a.

Solidity: function getCPBalance(address cpAccount) view returns(int256)

func (*EcpSequencerCaller) Owner added in v0.6.2

func (_EcpSequencer *EcpSequencerCaller) 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)

type EcpSequencerCallerRaw added in v0.6.2

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

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

func (*EcpSequencerCallerRaw) Call added in v0.6.2

func (_EcpSequencer *EcpSequencerCallerRaw) 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 EcpSequencerCallerSession added in v0.6.2

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

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

func (*EcpSequencerCallerSession) Admins added in v0.6.2

func (_EcpSequencer *EcpSequencerCallerSession) Admins(arg0 common.Address) (bool, error)

Admins is a free data retrieval call binding the contract method 0x429b62e5.

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

func (*EcpSequencerCallerSession) Balances added in v0.6.2

func (_EcpSequencer *EcpSequencerCallerSession) 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 (*EcpSequencerCallerSession) EscrowBalance added in v0.6.2

func (_EcpSequencer *EcpSequencerCallerSession) EscrowBalance() (*big.Int, error)

EscrowBalance is a free data retrieval call binding the contract method 0xe11e1b0c.

Solidity: function escrowBalance() view returns(uint256)

func (*EcpSequencerCallerSession) GetCPBalance added in v0.6.2

func (_EcpSequencer *EcpSequencerCallerSession) GetCPBalance(cpAccount common.Address) (*big.Int, error)

GetCPBalance is a free data retrieval call binding the contract method 0x922f126a.

Solidity: function getCPBalance(address cpAccount) view returns(int256)

func (*EcpSequencerCallerSession) Owner added in v0.6.2

func (_EcpSequencer *EcpSequencerCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

type EcpSequencerDeposited added in v0.6.2

type EcpSequencerDeposited struct {
	CpAccount common.Address
	Amount    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

EcpSequencerDeposited represents a Deposited event raised by the EcpSequencer contract.

type EcpSequencerDepositedIterator added in v0.6.2

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

EcpSequencerDepositedIterator is returned from FilterDeposited and is used to iterate over the raw logs and unpacked data for Deposited events raised by the EcpSequencer contract.

func (*EcpSequencerDepositedIterator) Close added in v0.6.2

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

func (*EcpSequencerDepositedIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpSequencerDepositedIterator) Next added in v0.6.2

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 EcpSequencerFilterer added in v0.6.2

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

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

func NewEcpSequencerFilterer added in v0.6.2

func NewEcpSequencerFilterer(address common.Address, filterer bind.ContractFilterer) (*EcpSequencerFilterer, error)

NewEcpSequencerFilterer creates a new log filterer instance of EcpSequencer, bound to a specific deployed contract.

func (*EcpSequencerFilterer) FilterAdminAdded added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) FilterAdminAdded(opts *bind.FilterOpts, admin []common.Address) (*EcpSequencerAdminAddedIterator, error)

FilterAdminAdded is a free log retrieval operation binding the contract event 0x44d6d25963f097ad14f29f06854a01f575648a1ef82f30e562ccd3889717e339.

Solidity: event AdminAdded(address indexed admin)

func (*EcpSequencerFilterer) FilterAdminRemoved added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) FilterAdminRemoved(opts *bind.FilterOpts, admin []common.Address) (*EcpSequencerAdminRemovedIterator, error)

FilterAdminRemoved is a free log retrieval operation binding the contract event 0xa3b62bc36326052d97ea62d63c3d60308ed4c3ea8ac079dd8499f1e9c4f80c0f.

Solidity: event AdminRemoved(address indexed admin)

func (*EcpSequencerFilterer) FilterBatchTransferredToEscrow added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) FilterBatchTransferredToEscrow(opts *bind.FilterOpts, admin []common.Address) (*EcpSequencerBatchTransferredToEscrowIterator, error)

FilterBatchTransferredToEscrow is a free log retrieval operation binding the contract event 0x5a5b8c52e21fd816e73687ac900bbb3238b4e80ddcb10c216085993299e64ed5.

Solidity: event BatchTransferredToEscrow(address indexed admin, address[] cpAccounts, uint256[] amounts)

func (*EcpSequencerFilterer) FilterDeposited added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) FilterDeposited(opts *bind.FilterOpts, cpAccount []common.Address) (*EcpSequencerDepositedIterator, error)

FilterDeposited is a free log retrieval operation binding the contract event 0x2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4.

Solidity: event Deposited(address indexed cpAccount, uint256 amount)

func (*EcpSequencerFilterer) FilterOwnerChanged added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) FilterOwnerChanged(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*EcpSequencerOwnerChangedIterator, error)

FilterOwnerChanged is a free log retrieval operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c.

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

func (*EcpSequencerFilterer) FilterOwnershipTransferred added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*EcpSequencerOwnershipTransferredIterator, error)

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

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

func (*EcpSequencerFilterer) FilterTransferredToEscrow added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) FilterTransferredToEscrow(opts *bind.FilterOpts, cpAccount []common.Address) (*EcpSequencerTransferredToEscrowIterator, error)

FilterTransferredToEscrow is a free log retrieval operation binding the contract event 0x8aa981417e2c3a0dadea5dd2eb5eab703d6d9c074ae83d377ce454dd6a93bfa7.

Solidity: event TransferredToEscrow(address indexed cpAccount, uint256 amount)

func (*EcpSequencerFilterer) FilterWithdrawn added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) FilterWithdrawn(opts *bind.FilterOpts, cpAccount []common.Address) (*EcpSequencerWithdrawnIterator, error)

FilterWithdrawn is a free log retrieval operation binding the contract event 0x7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5.

Solidity: event Withdrawn(address indexed cpAccount, uint256 amount)

func (*EcpSequencerFilterer) FilterWithdrawnFromEscrow added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) FilterWithdrawnFromEscrow(opts *bind.FilterOpts) (*EcpSequencerWithdrawnFromEscrowIterator, error)

FilterWithdrawnFromEscrow is a free log retrieval operation binding the contract event 0xd1f01ada3f4d4c0d5d81675b458e3f5c4dda3e79a82d07b03459147644bc7b7b.

Solidity: event WithdrawnFromEscrow(uint256 amount)

func (*EcpSequencerFilterer) ParseAdminAdded added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) ParseAdminAdded(log types.Log) (*EcpSequencerAdminAdded, error)

ParseAdminAdded is a log parse operation binding the contract event 0x44d6d25963f097ad14f29f06854a01f575648a1ef82f30e562ccd3889717e339.

Solidity: event AdminAdded(address indexed admin)

func (*EcpSequencerFilterer) ParseAdminRemoved added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) ParseAdminRemoved(log types.Log) (*EcpSequencerAdminRemoved, error)

ParseAdminRemoved is a log parse operation binding the contract event 0xa3b62bc36326052d97ea62d63c3d60308ed4c3ea8ac079dd8499f1e9c4f80c0f.

Solidity: event AdminRemoved(address indexed admin)

func (*EcpSequencerFilterer) ParseBatchTransferredToEscrow added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) ParseBatchTransferredToEscrow(log types.Log) (*EcpSequencerBatchTransferredToEscrow, error)

ParseBatchTransferredToEscrow is a log parse operation binding the contract event 0x5a5b8c52e21fd816e73687ac900bbb3238b4e80ddcb10c216085993299e64ed5.

Solidity: event BatchTransferredToEscrow(address indexed admin, address[] cpAccounts, uint256[] amounts)

func (*EcpSequencerFilterer) ParseDeposited added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) ParseDeposited(log types.Log) (*EcpSequencerDeposited, error)

ParseDeposited is a log parse operation binding the contract event 0x2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4.

Solidity: event Deposited(address indexed cpAccount, uint256 amount)

func (*EcpSequencerFilterer) ParseOwnerChanged added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) ParseOwnerChanged(log types.Log) (*EcpSequencerOwnerChanged, error)

ParseOwnerChanged is a log parse operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c.

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

func (*EcpSequencerFilterer) ParseOwnershipTransferred added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) ParseOwnershipTransferred(log types.Log) (*EcpSequencerOwnershipTransferred, error)

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

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

func (*EcpSequencerFilterer) ParseTransferredToEscrow added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) ParseTransferredToEscrow(log types.Log) (*EcpSequencerTransferredToEscrow, error)

ParseTransferredToEscrow is a log parse operation binding the contract event 0x8aa981417e2c3a0dadea5dd2eb5eab703d6d9c074ae83d377ce454dd6a93bfa7.

Solidity: event TransferredToEscrow(address indexed cpAccount, uint256 amount)

func (*EcpSequencerFilterer) ParseWithdrawn added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) ParseWithdrawn(log types.Log) (*EcpSequencerWithdrawn, error)

ParseWithdrawn is a log parse operation binding the contract event 0x7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5.

Solidity: event Withdrawn(address indexed cpAccount, uint256 amount)

func (*EcpSequencerFilterer) ParseWithdrawnFromEscrow added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) ParseWithdrawnFromEscrow(log types.Log) (*EcpSequencerWithdrawnFromEscrow, error)

ParseWithdrawnFromEscrow is a log parse operation binding the contract event 0xd1f01ada3f4d4c0d5d81675b458e3f5c4dda3e79a82d07b03459147644bc7b7b.

Solidity: event WithdrawnFromEscrow(uint256 amount)

func (*EcpSequencerFilterer) WatchAdminAdded added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) WatchAdminAdded(opts *bind.WatchOpts, sink chan<- *EcpSequencerAdminAdded, admin []common.Address) (event.Subscription, error)

WatchAdminAdded is a free log subscription operation binding the contract event 0x44d6d25963f097ad14f29f06854a01f575648a1ef82f30e562ccd3889717e339.

Solidity: event AdminAdded(address indexed admin)

func (*EcpSequencerFilterer) WatchAdminRemoved added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) WatchAdminRemoved(opts *bind.WatchOpts, sink chan<- *EcpSequencerAdminRemoved, admin []common.Address) (event.Subscription, error)

WatchAdminRemoved is a free log subscription operation binding the contract event 0xa3b62bc36326052d97ea62d63c3d60308ed4c3ea8ac079dd8499f1e9c4f80c0f.

Solidity: event AdminRemoved(address indexed admin)

func (*EcpSequencerFilterer) WatchBatchTransferredToEscrow added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) WatchBatchTransferredToEscrow(opts *bind.WatchOpts, sink chan<- *EcpSequencerBatchTransferredToEscrow, admin []common.Address) (event.Subscription, error)

WatchBatchTransferredToEscrow is a free log subscription operation binding the contract event 0x5a5b8c52e21fd816e73687ac900bbb3238b4e80ddcb10c216085993299e64ed5.

Solidity: event BatchTransferredToEscrow(address indexed admin, address[] cpAccounts, uint256[] amounts)

func (*EcpSequencerFilterer) WatchDeposited added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *EcpSequencerDeposited, cpAccount []common.Address) (event.Subscription, error)

WatchDeposited is a free log subscription operation binding the contract event 0x2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4.

Solidity: event Deposited(address indexed cpAccount, uint256 amount)

func (*EcpSequencerFilterer) WatchOwnerChanged added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *EcpSequencerOwnerChanged, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnerChanged is a free log subscription operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c.

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

func (*EcpSequencerFilterer) WatchOwnershipTransferred added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *EcpSequencerOwnershipTransferred, 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 (*EcpSequencerFilterer) WatchTransferredToEscrow added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) WatchTransferredToEscrow(opts *bind.WatchOpts, sink chan<- *EcpSequencerTransferredToEscrow, cpAccount []common.Address) (event.Subscription, error)

WatchTransferredToEscrow is a free log subscription operation binding the contract event 0x8aa981417e2c3a0dadea5dd2eb5eab703d6d9c074ae83d377ce454dd6a93bfa7.

Solidity: event TransferredToEscrow(address indexed cpAccount, uint256 amount)

func (*EcpSequencerFilterer) WatchWithdrawn added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *EcpSequencerWithdrawn, cpAccount []common.Address) (event.Subscription, error)

WatchWithdrawn is a free log subscription operation binding the contract event 0x7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5.

Solidity: event Withdrawn(address indexed cpAccount, uint256 amount)

func (*EcpSequencerFilterer) WatchWithdrawnFromEscrow added in v0.6.2

func (_EcpSequencer *EcpSequencerFilterer) WatchWithdrawnFromEscrow(opts *bind.WatchOpts, sink chan<- *EcpSequencerWithdrawnFromEscrow) (event.Subscription, error)

WatchWithdrawnFromEscrow is a free log subscription operation binding the contract event 0xd1f01ada3f4d4c0d5d81675b458e3f5c4dda3e79a82d07b03459147644bc7b7b.

Solidity: event WithdrawnFromEscrow(uint256 amount)

type EcpSequencerOwnerChanged added in v0.6.2

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

EcpSequencerOwnerChanged represents a OwnerChanged event raised by the EcpSequencer contract.

type EcpSequencerOwnerChangedIterator added in v0.6.2

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

EcpSequencerOwnerChangedIterator is returned from FilterOwnerChanged and is used to iterate over the raw logs and unpacked data for OwnerChanged events raised by the EcpSequencer contract.

func (*EcpSequencerOwnerChangedIterator) Close added in v0.6.2

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

func (*EcpSequencerOwnerChangedIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpSequencerOwnerChangedIterator) Next added in v0.6.2

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 EcpSequencerOwnershipTransferred added in v0.6.2

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

EcpSequencerOwnershipTransferred represents a OwnershipTransferred event raised by the EcpSequencer contract.

type EcpSequencerOwnershipTransferredIterator added in v0.6.2

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

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

func (*EcpSequencerOwnershipTransferredIterator) Close added in v0.6.2

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

func (*EcpSequencerOwnershipTransferredIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpSequencerOwnershipTransferredIterator) Next added in v0.6.2

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 EcpSequencerRaw added in v0.6.2

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

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

func (*EcpSequencerRaw) Call added in v0.6.2

func (_EcpSequencer *EcpSequencerRaw) 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 (*EcpSequencerRaw) Transact added in v0.6.2

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

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

func (*EcpSequencerRaw) Transfer added in v0.6.2

func (_EcpSequencer *EcpSequencerRaw) 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 EcpSequencerSession added in v0.6.2

type EcpSequencerSession struct {
	Contract     *EcpSequencer     // 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
}

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

func (*EcpSequencerSession) AddAdmin added in v0.6.2

func (_EcpSequencer *EcpSequencerSession) AddAdmin(_admin common.Address) (*types.Transaction, error)

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

Solidity: function addAdmin(address _admin) returns()

func (*EcpSequencerSession) Admins added in v0.6.2

func (_EcpSequencer *EcpSequencerSession) Admins(arg0 common.Address) (bool, error)

Admins is a free data retrieval call binding the contract method 0x429b62e5.

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

func (*EcpSequencerSession) Balances added in v0.6.2

func (_EcpSequencer *EcpSequencerSession) 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 (*EcpSequencerSession) BatchTransferToEscrow added in v0.6.2

func (_EcpSequencer *EcpSequencerSession) BatchTransferToEscrow(cpAccounts []common.Address, amounts []*big.Int) (*types.Transaction, error)

BatchTransferToEscrow is a paid mutator transaction binding the contract method 0x1485fef9.

Solidity: function batchTransferToEscrow(address[] cpAccounts, uint256[] amounts) returns()

func (*EcpSequencerSession) ChangeOwner added in v0.6.2

func (_EcpSequencer *EcpSequencerSession) ChangeOwner(newOwner common.Address) (*types.Transaction, error)

ChangeOwner is a paid mutator transaction binding the contract method 0xa6f9dae1.

Solidity: function changeOwner(address newOwner) returns()

func (*EcpSequencerSession) Deposit added in v0.6.2

func (_EcpSequencer *EcpSequencerSession) 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 (*EcpSequencerSession) EscrowBalance added in v0.6.2

func (_EcpSequencer *EcpSequencerSession) EscrowBalance() (*big.Int, error)

EscrowBalance is a free data retrieval call binding the contract method 0xe11e1b0c.

Solidity: function escrowBalance() view returns(uint256)

func (*EcpSequencerSession) GetCPBalance added in v0.6.2

func (_EcpSequencer *EcpSequencerSession) GetCPBalance(cpAccount common.Address) (*big.Int, error)

GetCPBalance is a free data retrieval call binding the contract method 0x922f126a.

Solidity: function getCPBalance(address cpAccount) view returns(int256)

func (*EcpSequencerSession) Owner added in v0.6.2

func (_EcpSequencer *EcpSequencerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*EcpSequencerSession) Receive added in v0.6.2

func (_EcpSequencer *EcpSequencerSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*EcpSequencerSession) RemoveAdmin added in v0.6.2

func (_EcpSequencer *EcpSequencerSession) 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 (*EcpSequencerSession) RenounceOwnership added in v0.6.2

func (_EcpSequencer *EcpSequencerSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*EcpSequencerSession) TransferOwnership added in v0.6.2

func (_EcpSequencer *EcpSequencerSession) 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 (*EcpSequencerSession) TransferToEscrow added in v0.6.2

func (_EcpSequencer *EcpSequencerSession) TransferToEscrow(cpAccount common.Address, amount *big.Int) (*types.Transaction, error)

TransferToEscrow is a paid mutator transaction binding the contract method 0x9e88fd81.

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

func (*EcpSequencerSession) Withdraw added in v0.6.2

func (_EcpSequencer *EcpSequencerSession) 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()

func (*EcpSequencerSession) WithdrawFromEscrow added in v0.6.2

func (_EcpSequencer *EcpSequencerSession) WithdrawFromEscrow(amount *big.Int) (*types.Transaction, error)

WithdrawFromEscrow is a paid mutator transaction binding the contract method 0xbe47afda.

Solidity: function withdrawFromEscrow(uint256 amount) returns()

type EcpSequencerTransactor added in v0.6.2

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

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

func NewEcpSequencerTransactor added in v0.6.2

func NewEcpSequencerTransactor(address common.Address, transactor bind.ContractTransactor) (*EcpSequencerTransactor, error)

NewEcpSequencerTransactor creates a new write-only instance of EcpSequencer, bound to a specific deployed contract.

func (*EcpSequencerTransactor) AddAdmin added in v0.6.2

func (_EcpSequencer *EcpSequencerTransactor) AddAdmin(opts *bind.TransactOpts, _admin common.Address) (*types.Transaction, error)

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

Solidity: function addAdmin(address _admin) returns()

func (*EcpSequencerTransactor) BatchTransferToEscrow added in v0.6.2

func (_EcpSequencer *EcpSequencerTransactor) BatchTransferToEscrow(opts *bind.TransactOpts, cpAccounts []common.Address, amounts []*big.Int) (*types.Transaction, error)

BatchTransferToEscrow is a paid mutator transaction binding the contract method 0x1485fef9.

Solidity: function batchTransferToEscrow(address[] cpAccounts, uint256[] amounts) returns()

func (*EcpSequencerTransactor) ChangeOwner added in v0.6.2

func (_EcpSequencer *EcpSequencerTransactor) ChangeOwner(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

ChangeOwner is a paid mutator transaction binding the contract method 0xa6f9dae1.

Solidity: function changeOwner(address newOwner) returns()

func (*EcpSequencerTransactor) Deposit added in v0.6.2

func (_EcpSequencer *EcpSequencerTransactor) 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 (*EcpSequencerTransactor) Receive added in v0.6.2

func (_EcpSequencer *EcpSequencerTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*EcpSequencerTransactor) RemoveAdmin added in v0.6.2

func (_EcpSequencer *EcpSequencerTransactor) 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 (*EcpSequencerTransactor) RenounceOwnership added in v0.6.2

func (_EcpSequencer *EcpSequencerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*EcpSequencerTransactor) TransferOwnership added in v0.6.2

func (_EcpSequencer *EcpSequencerTransactor) 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 (*EcpSequencerTransactor) TransferToEscrow added in v0.6.2

func (_EcpSequencer *EcpSequencerTransactor) TransferToEscrow(opts *bind.TransactOpts, cpAccount common.Address, amount *big.Int) (*types.Transaction, error)

TransferToEscrow is a paid mutator transaction binding the contract method 0x9e88fd81.

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

func (*EcpSequencerTransactor) Withdraw added in v0.6.2

func (_EcpSequencer *EcpSequencerTransactor) 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()

func (*EcpSequencerTransactor) WithdrawFromEscrow added in v0.6.2

func (_EcpSequencer *EcpSequencerTransactor) WithdrawFromEscrow(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

WithdrawFromEscrow is a paid mutator transaction binding the contract method 0xbe47afda.

Solidity: function withdrawFromEscrow(uint256 amount) returns()

type EcpSequencerTransactorRaw added in v0.6.2

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

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

func (*EcpSequencerTransactorRaw) Transact added in v0.6.2

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

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

func (*EcpSequencerTransactorRaw) Transfer added in v0.6.2

func (_EcpSequencer *EcpSequencerTransactorRaw) 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 EcpSequencerTransactorSession added in v0.6.2

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

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

func (*EcpSequencerTransactorSession) AddAdmin added in v0.6.2

func (_EcpSequencer *EcpSequencerTransactorSession) AddAdmin(_admin common.Address) (*types.Transaction, error)

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

Solidity: function addAdmin(address _admin) returns()

func (*EcpSequencerTransactorSession) BatchTransferToEscrow added in v0.6.2

func (_EcpSequencer *EcpSequencerTransactorSession) BatchTransferToEscrow(cpAccounts []common.Address, amounts []*big.Int) (*types.Transaction, error)

BatchTransferToEscrow is a paid mutator transaction binding the contract method 0x1485fef9.

Solidity: function batchTransferToEscrow(address[] cpAccounts, uint256[] amounts) returns()

func (*EcpSequencerTransactorSession) ChangeOwner added in v0.6.2

func (_EcpSequencer *EcpSequencerTransactorSession) ChangeOwner(newOwner common.Address) (*types.Transaction, error)

ChangeOwner is a paid mutator transaction binding the contract method 0xa6f9dae1.

Solidity: function changeOwner(address newOwner) returns()

func (*EcpSequencerTransactorSession) Deposit added in v0.6.2

func (_EcpSequencer *EcpSequencerTransactorSession) 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 (*EcpSequencerTransactorSession) Receive added in v0.6.2

func (_EcpSequencer *EcpSequencerTransactorSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*EcpSequencerTransactorSession) RemoveAdmin added in v0.6.2

func (_EcpSequencer *EcpSequencerTransactorSession) 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 (*EcpSequencerTransactorSession) RenounceOwnership added in v0.6.2

func (_EcpSequencer *EcpSequencerTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*EcpSequencerTransactorSession) TransferOwnership added in v0.6.2

func (_EcpSequencer *EcpSequencerTransactorSession) 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 (*EcpSequencerTransactorSession) TransferToEscrow added in v0.6.2

func (_EcpSequencer *EcpSequencerTransactorSession) TransferToEscrow(cpAccount common.Address, amount *big.Int) (*types.Transaction, error)

TransferToEscrow is a paid mutator transaction binding the contract method 0x9e88fd81.

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

func (*EcpSequencerTransactorSession) Withdraw added in v0.6.2

func (_EcpSequencer *EcpSequencerTransactorSession) 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()

func (*EcpSequencerTransactorSession) WithdrawFromEscrow added in v0.6.2

func (_EcpSequencer *EcpSequencerTransactorSession) WithdrawFromEscrow(amount *big.Int) (*types.Transaction, error)

WithdrawFromEscrow is a paid mutator transaction binding the contract method 0xbe47afda.

Solidity: function withdrawFromEscrow(uint256 amount) returns()

type EcpSequencerTransferredToEscrow added in v0.6.2

type EcpSequencerTransferredToEscrow struct {
	CpAccount common.Address
	Amount    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

EcpSequencerTransferredToEscrow represents a TransferredToEscrow event raised by the EcpSequencer contract.

type EcpSequencerTransferredToEscrowIterator added in v0.6.2

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

EcpSequencerTransferredToEscrowIterator is returned from FilterTransferredToEscrow and is used to iterate over the raw logs and unpacked data for TransferredToEscrow events raised by the EcpSequencer contract.

func (*EcpSequencerTransferredToEscrowIterator) Close added in v0.6.2

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

func (*EcpSequencerTransferredToEscrowIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpSequencerTransferredToEscrowIterator) Next added in v0.6.2

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 EcpSequencerWithdrawn added in v0.6.2

type EcpSequencerWithdrawn struct {
	CpAccount common.Address
	Amount    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

EcpSequencerWithdrawn represents a Withdrawn event raised by the EcpSequencer contract.

type EcpSequencerWithdrawnFromEscrow added in v0.6.2

type EcpSequencerWithdrawnFromEscrow struct {
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

EcpSequencerWithdrawnFromEscrow represents a WithdrawnFromEscrow event raised by the EcpSequencer contract.

type EcpSequencerWithdrawnFromEscrowIterator added in v0.6.2

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

EcpSequencerWithdrawnFromEscrowIterator is returned from FilterWithdrawnFromEscrow and is used to iterate over the raw logs and unpacked data for WithdrawnFromEscrow events raised by the EcpSequencer contract.

func (*EcpSequencerWithdrawnFromEscrowIterator) Close added in v0.6.2

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

func (*EcpSequencerWithdrawnFromEscrowIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpSequencerWithdrawnFromEscrowIterator) Next added in v0.6.2

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 EcpSequencerWithdrawnIterator added in v0.6.2

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

EcpSequencerWithdrawnIterator is returned from FilterWithdrawn and is used to iterate over the raw logs and unpacked data for Withdrawn events raised by the EcpSequencer contract.

func (*EcpSequencerWithdrawnIterator) Close added in v0.6.2

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

func (*EcpSequencerWithdrawnIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpSequencerWithdrawnIterator) Next added in v0.6.2

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 SequencerOption added in v0.6.2

type SequencerOption func(*SequencerStub)

func WithSequencerCpAccountAddress added in v0.6.2

func WithSequencerCpAccountAddress(cpAccountAddress string) SequencerOption

func WithSequencerPrivateKey added in v0.6.2

func WithSequencerPrivateKey(pk string) SequencerOption

type SequencerStub added in v0.6.2

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

func NewSequencerStub added in v0.6.2

func NewSequencerStub(client *ethclient.Client, options ...SequencerOption) (*SequencerStub, error)

func (*SequencerStub) Deposit added in v0.6.2

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

func (*SequencerStub) GetCPBalance added in v0.6.2

func (s *SequencerStub) GetCPBalance() (string, error)

func (*SequencerStub) Withdraw added in v0.6.2

func (s *SequencerStub) Withdraw(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, _taskID *big.Int, _taskType *big.Int, _resourceType *big.Int, _inputParam string, _verifyParam string, _cpAccount common.Address, _proof string, _deadline *big.Int, _taskRegistryContract common.Address, _checkCode string) (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) TaskInfo added in v0.6.2

func (_Task *TaskCaller) TaskInfo(opts *bind.CallOpts) (struct {
	TaskID               *big.Int
	TaskType             *big.Int
	ResourceType         *big.Int
	InputParam           string
	VerifyParam          string
	CpAccount            common.Address
	Proof                string
	Deadline             *big.Int
	TaskRegistryContract common.Address
	CheckCode            string
	Owner                common.Address
	Version              string
}, error)

TaskInfo is a free data retrieval call binding the contract method 0xac722551.

Solidity: function taskInfo() view returns(uint256 taskID, uint256 taskType, uint256 resourceType, string inputParam, string verifyParam, address cpAccount, string proof, uint256 deadline, address taskRegistryContract, string checkCode, address owner, string version)

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() view 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) TaskInfo added in v0.6.2

func (_Task *TaskCallerSession) TaskInfo() (struct {
	TaskID               *big.Int
	TaskType             *big.Int
	ResourceType         *big.Int
	InputParam           string
	VerifyParam          string
	CpAccount            common.Address
	Proof                string
	Deadline             *big.Int
	TaskRegistryContract common.Address
	CheckCode            string
	Owner                common.Address
	Version              string
}, error)

TaskInfo is a free data retrieval call binding the contract method 0xac722551.

Solidity: function taskInfo() view returns(uint256 taskID, uint256 taskType, uint256 resourceType, string inputParam, string verifyParam, address cpAccount, string proof, uint256 deadline, address taskRegistryContract, string checkCode, address owner, string version)

func (*TaskCallerSession) Version

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

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

Solidity: function version() view returns(string)

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) FilterRegisteredToTaskRegistry added in v0.6.2

func (_Task *TaskFilterer) FilterRegisteredToTaskRegistry(opts *bind.FilterOpts, taskContract []common.Address, owner []common.Address) (*TaskRegisteredToTaskRegistryIterator, error)

FilterRegisteredToTaskRegistry is a free log retrieval operation binding the contract event 0x411a83d4fcdb8a204895aa1c817c68da89892ae8a277620988dcd6ea44650b7f.

Solidity: event RegisteredToTaskRegistry(address indexed taskContract, address indexed owner)

func (*TaskFilterer) FilterTaskCreated added in v0.6.2

func (_Task *TaskFilterer) FilterTaskCreated(opts *bind.FilterOpts) (*TaskTaskCreatedIterator, error)

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

Solidity: event TaskCreated(uint256 taskID, address cpAccount, string inputParam, uint256 deadline, string checkCode)

func (*TaskFilterer) ParseRegisteredToTaskRegistry added in v0.6.2

func (_Task *TaskFilterer) ParseRegisteredToTaskRegistry(log types.Log) (*TaskRegisteredToTaskRegistry, error)

ParseRegisteredToTaskRegistry is a log parse operation binding the contract event 0x411a83d4fcdb8a204895aa1c817c68da89892ae8a277620988dcd6ea44650b7f.

Solidity: event RegisteredToTaskRegistry(address indexed taskContract, address indexed owner)

func (*TaskFilterer) ParseTaskCreated added in v0.6.2

func (_Task *TaskFilterer) ParseTaskCreated(log types.Log) (*TaskTaskCreated, error)

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

Solidity: event TaskCreated(uint256 taskID, address cpAccount, string inputParam, uint256 deadline, string checkCode)

func (*TaskFilterer) WatchRegisteredToTaskRegistry added in v0.6.2

func (_Task *TaskFilterer) WatchRegisteredToTaskRegistry(opts *bind.WatchOpts, sink chan<- *TaskRegisteredToTaskRegistry, taskContract []common.Address, owner []common.Address) (event.Subscription, error)

WatchRegisteredToTaskRegistry is a free log subscription operation binding the contract event 0x411a83d4fcdb8a204895aa1c817c68da89892ae8a277620988dcd6ea44650b7f.

Solidity: event RegisteredToTaskRegistry(address indexed taskContract, address indexed owner)

func (*TaskFilterer) WatchTaskCreated added in v0.6.2

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

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

Solidity: event TaskCreated(uint256 taskID, address cpAccount, string inputParam, uint256 deadline, string checkCode)

type TaskOption

type TaskOption func(*TaskStub)

func WithTaskContractAddress

func WithTaskContractAddress(contractAddress string) TaskOption

func WithTaskPrivateKey

func WithTaskPrivateKey(pk string) TaskOption

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 TaskRegisteredToTaskRegistry added in v0.6.2

type TaskRegisteredToTaskRegistry struct {
	TaskContract common.Address
	Owner        common.Address
	Raw          types.Log // Blockchain specific contextual infos
}

TaskRegisteredToTaskRegistry represents a RegisteredToTaskRegistry event raised by the Task contract.

type TaskRegisteredToTaskRegistryIterator added in v0.6.2

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

TaskRegisteredToTaskRegistryIterator is returned from FilterRegisteredToTaskRegistry and is used to iterate over the raw logs and unpacked data for RegisteredToTaskRegistry events raised by the Task contract.

func (*TaskRegisteredToTaskRegistryIterator) Close added in v0.6.2

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

func (*TaskRegisteredToTaskRegistryIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskRegisteredToTaskRegistryIterator) Next added in v0.6.2

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) TaskInfo added in v0.6.2

func (_Task *TaskSession) TaskInfo() (struct {
	TaskID               *big.Int
	TaskType             *big.Int
	ResourceType         *big.Int
	InputParam           string
	VerifyParam          string
	CpAccount            common.Address
	Proof                string
	Deadline             *big.Int
	TaskRegistryContract common.Address
	CheckCode            string
	Owner                common.Address
	Version              string
}, error)

TaskInfo is a free data retrieval call binding the contract method 0xac722551.

Solidity: function taskInfo() view returns(uint256 taskID, uint256 taskType, uint256 resourceType, string inputParam, string verifyParam, address cpAccount, string proof, uint256 deadline, address taskRegistryContract, string checkCode, address owner, string version)

func (*TaskSession) Version

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

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

Solidity: function version() view returns(string)

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) CreateTaskContract added in v0.6.2

func (s *TaskStub) CreateTaskContract(proof string, task *models.TaskEntity, timeOut int64) (string, error)

func (*TaskStub) GetTaskInfo

func (s *TaskStub) GetTaskInfo() (models.EcpTaskInfo, error)

func (*TaskStub) IncrementNonce

func (s *TaskStub) IncrementNonce()

type TaskTaskCreated added in v0.6.2

type TaskTaskCreated struct {
	TaskID     *big.Int
	CpAccount  common.Address
	InputParam string
	Deadline   *big.Int
	CheckCode  string
	Raw        types.Log // Blockchain specific contextual infos
}

TaskTaskCreated represents a TaskCreated event raised by the Task contract.

type TaskTaskCreatedIterator added in v0.6.2

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

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

func (*TaskTaskCreatedIterator) Close added in v0.6.2

func (it *TaskTaskCreatedIterator) Close() error

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

func (*TaskTaskCreatedIterator) Error added in v0.6.2

func (it *TaskTaskCreatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskTaskCreatedIterator) Next added in v0.6.2

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

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.

Jump to

Keyboard shortcuts

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