ecp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 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: "0x60806040526201d88060065534801561001757600080fd5b5033600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361008b5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610082919061021c565b60405180910390fd5b61009a8161011760201b60201c565b506100aa3361011760201b60201c565b6001600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060056004819055506002600581905550610237565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610206826101db565b9050919050565b610216816101fb565b82525050565b6000602082019050610231600083018461020d565b92915050565b61530d806102466000396000f3fe608060405234801561001057600080fd5b506004361061023d5760003560e01c8063704802751161013b578063a664c216116100b8578063ce3518aa1161007c578063ce3518aa14610685578063d27ca89b146106a1578063d2bfc1c7146106bf578063f2fde38b146106db578063f3fef3a3146106f75761023d565b8063a664c216146105cd578063b2016bd4146105fd578063b4eae1cb1461061b578063bede6e3114610639578063c6ff4555146106695761023d565b80638331f8e5116100ff5780638331f8e51461053b5780638da5cb5b146105575780639939cd1814610575578063998fc5cc146105935780639b5ddf09146105af5761023d565b806370480275146104bf57806370b72944146104db578063715018a6146104f957806372f0cb30146105035780637f58a7e51461051f5761023d565b80633fe65177116101c95780635f7d0e841161018d5780635f7d0e84146104315780636060663e1461044d57806363215bb714610469578063666181a9146104855780636f99f15c146104a15761023d565b80633fe651771461037c57806347a7d107146103ac57806347e7ef24146103c857806352df49ec146103e45780635d2cd2a7146104155761023d565b806324d7806c1161021057806324d7806c146102b4578063266565a9146102e457806327e235e3146103145780632894493f14610344578063397a1b28146103605761023d565b80630288a39c146102425780631785f53c1461026057806317f174981461027c5780631d47a62d14610298575b600080fd5b61024a610713565b60405161025791906139cc565b60405180910390f35b61027a60048036038101906102759190613a4f565b610719565b005b61029660048036038101906102919190613aa8565b61077c565b005b6102b260048036038101906102ad9190613aa8565b6109d7565b005b6102ce60048036038101906102c99190613a4f565b610db6565b6040516102db9190613b03565b60405180910390f35b6102fe60048036038101906102f99190613a4f565b610dd6565b60405161030b91906139cc565b60405180910390f35b61032e60048036038101906103299190613a4f565b610dee565b60405161033b9190613b37565b60405180910390f35b61035e60048036038101906103599190613b52565b610e06565b005b61037a60048036038101906103759190613aa8565b610f5e565b005b61039660048036038101906103919190613a4f565b6112c6565b6040516103a39190613c0f565b60405180910390f35b6103c660048036038101906103c19190613aa8565b611366565b005b6103e260048036038101906103dd9190613aa8565b6115ea565b005b6103fe60048036038101906103f99190613a4f565b611807565b60405161040c929190613c31565b60405180910390f35b61042f600480360381019061042a9190613a4f565b61182b565b005b61044b60048036038101906104469190613d15565b611b86565b005b61046760048036038101906104629190613b52565b611d5c565b005b610483600480360381019061047e9190613d15565b611d6e565b005b61049f600480360381019061049a9190613a4f565b611f44565b005b6104a9611fff565b6040516104b691906139cc565b60405180910390f35b6104d960048036038101906104d49190613a4f565b612005565b005b6104e3612068565b6040516104f091906139cc565b60405180910390f35b610501612072565b005b61051d60048036038101906105189190613b52565b612086565b005b61053960048036038101906105349190613b52565b612098565b005b61055560048036038101906105509190613d96565b61212e565b005b61055f612278565b60405161056c9190613df8565b60405180910390f35b61057d6122a1565b60405161058a9190613eac565b60405180910390f35b6105ad60048036038101906105a89190613d15565b61231d565b005b6105b76126e9565b6040516105c491906139cc565b60405180910390f35b6105e760048036038101906105e29190613a4f565b6126ef565b6040516105f49190613f83565b60405180910390f35b6106056128e9565b6040516106129190614004565b60405180910390f35b61062361290f565b60405161063091906139cc565b60405180910390f35b610653600480360381019061064e9190613a4f565b612915565b604051610660919061404e565b60405180910390f35b610683600480360381019061067e9190613d15565b6129f1565b005b61069f600480360381019061069a9190613b52565b612bc7565b005b6106a9612bd9565b6040516106b691906139cc565b60405180910390f35b6106d960048036038101906106d49190613a4f565b612bdf565b005b6106f560048036038101906106f09190613a4f565b613113565b005b610711600480360381019061070c9190613aa8565b613199565b005b60065481565b6107216135ad565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610808576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ff906140db565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610877576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086e9061416d565b60405180910390fd5b6000600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008183116108ca57826108cc565b815b905080600960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461091d91906141bc565b9250508190555080600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461097391906141f0565b9250508190555061098384613634565b8373ffffffffffffffffffffffffffffffffffffffff167fb4eaf47ecd4bc76248f192433e8067c96cb3e17aced42fbc47a512742fb74216826040516109c991906139cc565b60405180910390a250505050565b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610a63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5a906140db565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ad2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac99061416d565b60405180910390fd5b60008111610b15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0c906142a6565b60405180910390fd5b6000600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600080600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205413610ba8576000610be9565b600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020545b90506000828411610bfa5783610bfc565b825b90506000818511610c0e576000610c1b565b8185610c1a91906141bc565b5b90506000838211610c2c5781610c2e565b835b905060008184610c3e91906142c6565b905083600960008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610c8f91906141bc565b9250508190555082600860008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610ce591906142fa565b925050819055508060026000828254610cfe91906142c6565b92505081905550610d0e88613634565b8773ffffffffffffffffffffffffffffffffffffffff167f5138f522ae83cccdefee151fa33feeb62b6bbe619fdeb8f83cd1c6c3f8bdf92182604051610d5491906139cc565b60405180910390a28773ffffffffffffffffffffffffffffffffffffffff167f42f1a8a1aee108e84e4eabfaa8d51d7baaa1a02d482295297883a44b2debd3e48584604051610da4929190614389565b60405180910390a25050505050505050565b60076020528060005260406000206000915054906101000a900460ff1681565b60096020528060005260406000206000915090505481565b60086020528060005260406000206000915090505481565b610e0e6135ad565b806002541015610e53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4a90614437565b60405180910390fd5b8060026000828254610e6591906141bc565b92505081905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610ec9929190614457565b6020604051808303816000875af1158015610ee8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0c91906144ac565b503373ffffffffffffffffffffffffffffffffffffffff167fbfd9c82485e2178fcfd5c40379d8e66fe60acc50aa1ef4c50966431eb1e381cd82604051610f5391906139cc565b60405180910390a250565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610fcd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc49061454b565b60405180910390fd5b6000808373ffffffffffffffffffffffffffffffffffffffff166040516024016040516020818303038152906040527f893d20e8000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505060405161107791906145b2565b6000604051808303816000865af19150503d80600081146110b4576040519150601f19603f3d011682016040523d82523d6000602084013e6110b9565b606091505b5091509150816110fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f59061463b565b60405180910390fd5b6000818060200190518101906111149190614699565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611184576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117b90614738565b60405180910390fd5b83600960008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611206576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fd906147ca565b60405180910390fd5b604051806040016040528085815260200143815250600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000155602082015181600101559050508473ffffffffffffffffffffffffffffffffffffffff167ff7774b688d56120b783560a913ee60792a73dfd511812b7be5eccf10d08c6689856040516112b791906139cc565b60405180910390a25050505050565b600a60205280600052604060002060009150905080546112e590614819565b80601f016020809104026020016040519081016040528092919081815260200182805461131190614819565b801561135e5780601f106113335761010080835404028352916020019161135e565b820191906000526020600020905b81548152906001019060200180831161134157829003601f168201915b505050505081565b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166113f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e9906140db565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611461576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114589061416d565b60405180910390fd5b80600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205412156114e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114da906148bc565b60405180910390fd5b80600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461153291906142fa565b9250508190555080600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461158891906142c6565b9250508190555061159882613634565b8173ffffffffffffffffffffffffffffffffffffffff167f2251f6a4ed7fe619e9e8ce557d05a63dd484284f9c95c9ab334f6a7707cd0800826040516115de91906139cc565b60405180910390a25050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611659576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116509061454b565b60405180910390fd5b6000811161169c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116939061494e565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b81526004016116fb9392919061496e565b6020604051808303816000875af115801561171a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061173e91906144ac565b5080600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461178e91906141f0565b925050819055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62836040516117f291906139cc565b60405180910390a361180382613634565b5050565b600b6020528060005260406000206000915090508060000154908060010154905082565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361189a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118919061454b565b60405180910390fd5b6000808273ffffffffffffffffffffffffffffffffffffffff166040516024016040516020818303038152906040527f893d20e8000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505060405161194491906145b2565b6000604051808303816000865af19150503d8060008114611981576040519150601f19603f3d011682016040523d82523d6000602084013e611986565b606091505b5091509150816119cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c29061463b565b60405180910390fd5b6000818060200190518101906119e19190614699565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611a51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4890614a17565b60405180910390fd5b6000600b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000015411611adb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad290614a83565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff167fa3895d397a34e928a95d593331e293e2fc281d9d8996df5cc6c57f1cef629d428260000154604051611b2591906139cc565b60405180910390a2600b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600080820160009055600182016000905550505050505050565b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611c12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c09906140db565b60405180910390fd5b818190508484905014611c5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5190614aef565b60405180910390fd5b60005b84849050811015611d5557600073ffffffffffffffffffffffffffffffffffffffff16858583818110611c9357611c92614b0f565b5b9050602002016020810190611ca89190613a4f565b73ffffffffffffffffffffffffffffffffffffffff1603611cfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf59061416d565b60405180910390fd5b611d48858583818110611d1457611d13614b0f565b5b9050602002016020810190611d299190613a4f565b848484818110611d3c57611d3b614b0f565b5b9050602002013561077c565b8080600101915050611c5d565b5050505050565b611d646135ad565b8060048190555050565b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611dfa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611df1906140db565b60405180910390fd5b818190508484905014611e42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3990614aef565b60405180910390fd5b60005b84849050811015611f3d57600073ffffffffffffffffffffffffffffffffffffffff16858583818110611e7b57611e7a614b0f565b5b9050602002016020810190611e909190613a4f565b73ffffffffffffffffffffffffffffffffffffffff1603611ee6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611edd9061416d565b60405180910390fd5b611f30858583818110611efc57611efb614b0f565b5b9050602002016020810190611f119190613a4f565b848484818110611f2457611f23614b0f565b5b90506020020135611366565b8080600101915050611e45565b5050505050565b611f4c6135ad565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611fbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb290614bb0565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60025481565b61200d6135ad565b6001600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000600354905090565b61207a6135ad565b6120846000613843565b565b61208e6135ad565b8060068190555050565b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612124576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211b906140db565b60405180910390fd5b8060038190555050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361219d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121949061454b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361220c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220390614c42565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f6010bb1c19b181c59c29bde1a47441eae0c5e2e587b409d5a7ac30f01e8dcf3c848460405161226b929190614457565b60405180910390a3505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6122a961390f565b6040518060c00160405280600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016002548152602001600354815260200160045481526020016005548152602001600654815250905090565b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166123a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a0906140db565b60405180910390fd5b8181905084849050146123f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e890614aef565b60405180910390fd5b6000805b838390508110156124345783838281811061241357612412614b0f565b5b905060200201358261242591906142c6565b915080806001019150506123f5565b50600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b81526004016124949392919061496e565b6020604051808303816000875af11580156124b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124d791906144ac565b612516576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250d90614cae565b60405180910390fd5b60005b8585905081101561268d57600073ffffffffffffffffffffffffffffffffffffffff1686868381811061254f5761254e614b0f565b5b90506020020160208101906125649190613a4f565b73ffffffffffffffffffffffffffffffffffffffff16036125ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125b19061416d565b60405180910390fd5b8383828181106125cd576125cc614b0f565b5b90506020020135600960008888858181106125eb576125ea614b0f565b5b90506020020160208101906126009190613a4f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461264991906142c6565b9250508190555061268086868381811061266657612665614b0f565b5b905060200201602081019061267b9190613a4f565b613634565b8080600101915050612519565b503373ffffffffffffffffffffffffffffffffffffffff167ff6bc9c339713a32d9c780cc55ab0d0b62a32de9986165175992e78e6973e5b1b868686866040516126da9493929190614dfd565b60405180910390a25050505050565b60035481565b6126f761395b565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612766576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161275d9061454b565b60405180910390fd5b60405180608001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548152602001600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548152602001600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805461286190614819565b80601f016020809104026020016040519081016040528092919081815260200182805461288d90614819565b80156128da5780601f106128af576101008083540402835291602001916128da565b820191906000526020600020905b8154815290600101906020018083116128bd57829003601f168201915b50505050508152509050919050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045481565b61291d613999565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361298c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129839061454b565b60405180910390fd5b600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020604051806040016040529081600082015481526020016001820154815250509050919050565b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612a7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a74906140db565b60405180910390fd5b818190508484905014612ac5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612abc90614aef565b60405180910390fd5b60005b84849050811015612bc057600073ffffffffffffffffffffffffffffffffffffffff16858583818110612afe57612afd614b0f565b5b9050602002016020810190612b139190613a4f565b73ffffffffffffffffffffffffffffffffffffffff1603612b69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b609061416d565b60405180910390fd5b612bb3858583818110612b7f57612b7e614b0f565b5b9050602002016020810190612b949190613a4f565b848484818110612ba757612ba6614b0f565b5b905060200201356109d7565b8080600101915050612ac8565b5050505050565b612bcf6135ad565b8060058190555050565b60055481565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612c4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c459061454b565b60405180910390fd5b6000808273ffffffffffffffffffffffffffffffffffffffff166040516024016040516020818303038152906040527f893d20e8000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051612cf891906145b2565b6000604051808303816000865af19150503d8060008114612d35576040519150601f19603f3d011682016040523d82523d6000602084013e612d3a565b606091505b509150915081612d7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d769061463b565b60405180910390fd5b600081806020019051810190612d959190614699565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612e05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dfc90614eaa565b60405180910390fd5b6000600b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000015411612e8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e8690614a83565b60405180910390fd5b6006548160010154612ea191906142c6565b431015612ee3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eda90614f16565b60405180910390fd5b8060000154600960008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015612f69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f60906147ca565b60405180910390fd5b60008160000154905080600960008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612fc191906141bc565b92505081905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b8152600401613025929190614457565b6020604051808303816000875af1158015613044573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061306891906144ac565b508573ffffffffffffffffffffffffffffffffffffffff167fe6fc6292b9fd5ba92a34a05a92d07b066535578023d71f0c6bf83a2622ca4e5484836040516130b1929190614457565b60405180910390a2600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008082016000905560018201600090555050505050505050565b61311b6135ad565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361318d5760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016131849190613df8565b60405180910390fd5b61319681613843565b50565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613208576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131ff9061454b565b60405180910390fd5b6000808373ffffffffffffffffffffffffffffffffffffffff166040516024016040516020818303038152906040527f893d20e8000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040516132b291906145b2565b6000604051808303816000865af19150503d80600081146132ef576040519150601f19603f3d011682016040523d82523d6000602084013e6132f4565b606091505b509150915081613339576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133309061463b565b60405180910390fd5b60008180602001905181019061334f9190614699565b905083600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205412156133d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133ca90614f82565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614613441576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161343890615014565b60405180910390fd5b83600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461349091906142fa565b92505081905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33866040518363ffffffff1660e01b81526004016134f4929190614457565b6020604051808303816000875af1158015613513573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061353791906144ac565b5061354185613634565b8473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb8660405161359e91906139cc565b60405180910390a35050505050565b6135b5613907565b73ffffffffffffffffffffffffffffffffffffffff166135d3612278565b73ffffffffffffffffffffffffffffffffffffffff1614613632576135f6613907565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016136299190613df8565b60405180910390fd5b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036136a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161369a9061454b565b60405180910390fd5b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414801561373157506000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054145b156137bd576040518060400160405280600381526020017f4e53430000000000000000000000000000000000000000000000000000000000815250600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090816137b79190615205565b50613840565b6040518060400160405280600681526020017f4163746976650000000000000000000000000000000000000000000000000000815250600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020908161383e9190615205565b505b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6040518060c00160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff1681526020016000815260200160008152602001606081525090565b604051806040016040528060008152602001600081525090565b6000819050919050565b6139c6816139b3565b82525050565b60006020820190506139e160008301846139bd565b92915050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613a1c826139f1565b9050919050565b613a2c81613a11565b8114613a3757600080fd5b50565b600081359050613a4981613a23565b92915050565b600060208284031215613a6557613a646139e7565b5b6000613a7384828501613a3a565b91505092915050565b613a85816139b3565b8114613a9057600080fd5b50565b600081359050613aa281613a7c565b92915050565b60008060408385031215613abf57613abe6139e7565b5b6000613acd85828601613a3a565b9250506020613ade85828601613a93565b9150509250929050565b60008115159050919050565b613afd81613ae8565b82525050565b6000602082019050613b186000830184613af4565b92915050565b6000819050919050565b613b3181613b1e565b82525050565b6000602082019050613b4c6000830184613b28565b92915050565b600060208284031215613b6857613b676139e7565b5b6000613b7684828501613a93565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613bb9578082015181840152602081019050613b9e565b60008484015250505050565b6000601f19601f8301169050919050565b6000613be182613b7f565b613beb8185613b8a565b9350613bfb818560208601613b9b565b613c0481613bc5565b840191505092915050565b60006020820190508181036000830152613c298184613bd6565b905092915050565b6000604082019050613c4660008301856139bd565b613c5360208301846139bd565b9392505050565b600080fd5b600080fd5b600080fd5b60008083601f840112613c7f57613c7e613c5a565b5b8235905067ffffffffffffffff811115613c9c57613c9b613c5f565b5b602083019150836020820283011115613cb857613cb7613c64565b5b9250929050565b60008083601f840112613cd557613cd4613c5a565b5b8235905067ffffffffffffffff811115613cf257613cf1613c5f565b5b602083019150836020820283011115613d0e57613d0d613c64565b5b9250929050565b60008060008060408587031215613d2f57613d2e6139e7565b5b600085013567ffffffffffffffff811115613d4d57613d4c6139ec565b5b613d5987828801613c69565b9450945050602085013567ffffffffffffffff811115613d7c57613d7b6139ec565b5b613d8887828801613cbf565b925092505092959194509250565b600080600060608486031215613daf57613dae6139e7565b5b6000613dbd86828701613a3a565b9350506020613dce86828701613a3a565b9250506040613ddf86828701613a93565b9150509250925092565b613df281613a11565b82525050565b6000602082019050613e0d6000830184613de9565b92915050565b613e1c81613a11565b82525050565b613e2b816139b3565b82525050565b60c082016000820151613e476000850182613e13565b506020820151613e5a6020850182613e22565b506040820151613e6d6040850182613e22565b506060820151613e806060850182613e22565b506080820151613e936080850182613e22565b5060a0820151613ea660a0850182613e22565b50505050565b600060c082019050613ec16000830184613e31565b92915050565b613ed081613b1e565b82525050565b600082825260208201905092915050565b6000613ef282613b7f565b613efc8185613ed6565b9350613f0c818560208601613b9b565b613f1581613bc5565b840191505092915050565b6000608083016000830151613f386000860182613e13565b506020830151613f4b6020860182613ec7565b506040830151613f5e6040860182613e22565b5060608301518482036060860152613f768282613ee7565b9150508091505092915050565b60006020820190508181036000830152613f9d8184613f20565b905092915050565b6000819050919050565b6000613fca613fc5613fc0846139f1565b613fa5565b6139f1565b9050919050565b6000613fdc82613faf565b9050919050565b6000613fee82613fd1565b9050919050565b613ffe81613fe3565b82525050565b60006020820190506140196000830184613ff5565b92915050565b6040820160008201516140356000850182613e22565b5060208201516140486020850182613e22565b50505050565b6000604082019050614063600083018461401f565b92915050565b7f4f6e6c79207468652061646d696e2063616e2063616c6c20746869732066756e60008201527f6374696f6e2e0000000000000000000000000000000000000000000000000000602082015250565b60006140c5602683613b8a565b91506140d082614069565b604082019050919050565b600060208201905081810360008301526140f4816140b8565b9050919050565b7f496e76616c696420616464726573733a2063702063616e6e6f7420626520746860008201527f65207a65726f2061646472657373000000000000000000000000000000000000602082015250565b6000614157602e83613b8a565b9150614162826140fb565b604082019050919050565b600060208201905081810360008301526141868161414a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006141c7826139b3565b91506141d2836139b3565b92508282039050818111156141ea576141e961418d565b5b92915050565b60006141fb82613b1e565b915061420683613b1e565b92508282019050828112156000831216838212600084121516171561422e5761422d61418d565b5b92915050565b7f496e76616c696420616d6f756e743a20736c617368416d6f756e74206d75737460008201527f2062652067726561746572207468616e207a65726f0000000000000000000000602082015250565b6000614290603583613b8a565b915061429b82614234565b604082019050919050565b600060208201905081810360008301526142bf81614283565b9050919050565b60006142d1826139b3565b91506142dc836139b3565b92508282019050808211156142f4576142f361418d565b5b92915050565b600061430582613b1e565b915061431083613b1e565b92508282039050818112600084121682821360008512151617156143375761433661418d565b5b92915050565b7f536c617368656400000000000000000000000000000000000000000000000000600082015250565b6000614373600783613b8a565b915061437e8261433d565b602082019050919050565b600060608201905061439e60008301856139bd565b6143ab60208301846139bd565b81810360408301526143bc81614366565b90509392505050565b7f576974686472617720736c61736866756e6420616d6f756e742065786365656460008201527f7320736c617368656446756e6473000000000000000000000000000000000000602082015250565b6000614421602e83613b8a565b915061442c826143c5565b604082019050919050565b6000602082019050818103600083015261445081614414565b9050919050565b600060408201905061446c6000830185613de9565b61447960208301846139bd565b9392505050565b61448981613ae8565b811461449457600080fd5b50565b6000815190506144a681614480565b92915050565b6000602082840312156144c2576144c16139e7565b5b60006144d084828501614497565b91505092915050565b7f496e76616c696420616464726573733a2063704163636f756e742063616e6e6f60008201527f7420626520746865207a65726f20616464726573730000000000000000000000602082015250565b6000614535603583613b8a565b9150614540826144d9565b604082019050919050565b6000602082019050818103600083015261456481614528565b9050919050565b600081519050919050565b600081905092915050565b600061458c8261456b565b6145968185614576565b93506145a6818560208601613b9b565b80840191505092915050565b60006145be8284614581565b915081905092915050565b7f4661696c656420746f2063616c6c206765744f776e65722066756e6374696f6e60008201527f206f662043504163636f756e7400000000000000000000000000000000000000602082015250565b6000614625602d83613b8a565b9150614630826145c9565b604082019050919050565b6000602082019050818103600083015261465481614618565b9050919050565b6000614666826139f1565b9050919050565b6146768161465b565b811461468157600080fd5b50565b6000815190506146938161466d565b92915050565b6000602082840312156146af576146ae6139e7565b5b60006146bd84828501614684565b91505092915050565b7f4f6e6c792043502773206f776e65722063616e2072657175657374207769746860008201527f64726177616c0000000000000000000000000000000000000000000000000000602082015250565b6000614722602683613b8a565b915061472d826146c6565b604082019050919050565b6000602082019050818103600083015261475181614715565b9050919050565b7f4e6f7420656e6f7567682066726f7a656e2062616c616e636520746f2077697460008201527f6864726177000000000000000000000000000000000000000000000000000000602082015250565b60006147b4602583613b8a565b91506147bf82614758565b604082019050919050565b600060208201905081810360008301526147e3816147a7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061483157607f821691505b602082108103614844576148436147ea565b5b50919050565b7f4e6f7420656e6f7567682062616c616e636520666f7220636f6c6c617465726160008201527f6c00000000000000000000000000000000000000000000000000000000000000602082015250565b60006148a6602183613b8a565b91506148b18261484a565b604082019050919050565b600060208201905081810360008301526148d581614899565b9050919050565b7f496e76616c696420616d6f756e743a206d75737420626520677265617465722060008201527f7468616e207a65726f0000000000000000000000000000000000000000000000602082015250565b6000614938602983613b8a565b9150614943826148dc565b604082019050919050565b600060208201905081810360008301526149678161492b565b9050919050565b60006060820190506149836000830186613de9565b6149906020830185613de9565b61499d60408301846139bd565b949350505050565b7f4f6e6c792043502773206f776e65722063616e2063616e63656c20776974686460008201527f7261772072657175657374000000000000000000000000000000000000000000602082015250565b6000614a01602b83613b8a565b9150614a0c826149a5565b604082019050919050565b60006020820190508181036000830152614a30816149f4565b9050919050565b7f4e6f2070656e64696e6720776974686472617720726571756573740000000000600082015250565b6000614a6d601b83613b8a565b9150614a7882614a37565b602082019050919050565b60006020820190508181036000830152614a9c81614a60565b9050919050565b7f4172726179206c656e67746873206d757374206d617463680000000000000000600082015250565b6000614ad9601883613b8a565b9150614ae482614aa3565b602082019050919050565b60006020820190508181036000830152614b0881614acc565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f496e76616c696420616464726573733a20746f6b656e4164647265737320636160008201527f6e6e6f7420626520746865207a65726f20616464726573730000000000000000602082015250565b6000614b9a603883613b8a565b9150614ba582614b3e565b604082019050919050565b60006020820190508181036000830152614bc981614b8d565b9050919050565b7f496e76616c696420616464726573733a207461736b436f6e747261637420636160008201527f6e6e6f7420626520746865207a65726f20616464726573730000000000000000602082015250565b6000614c2c603883613b8a565b9150614c3782614bd0565b604082019050919050565b60006020820190508181036000830152614c5b81614c1f565b9050919050565b7f546f6b656e207472616e73666572206661696c65640000000000000000000000600082015250565b6000614c98601583613b8a565b9150614ca382614c62565b602082019050919050565b60006020820190508181036000830152614cc781614c8b565b9050919050565b600082825260208201905092915050565b6000819050919050565b6000614cf58383613e13565b60208301905092915050565b6000614d106020840184613a3a565b905092915050565b6000602082019050919050565b6000614d318385614cce565b9350614d3c82614cdf565b8060005b85811015614d7557614d528284614d01565b614d5c8882614ce9565b9750614d6783614d18565b925050600181019050614d40565b5085925050509392505050565b600082825260208201905092915050565b600080fd5b82818337505050565b6000614dad8385614d82565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614de057614ddf614d93565b5b602083029250614df1838584614d98565b82840190509392505050565b60006040820190508181036000830152614e18818688614d25565b90508181036020830152614e2d818486614da1565b905095945050505050565b7f4f6e6c792043502773206f776e65722063616e20636f6e6669726d207769746860008201527f64726177616c0000000000000000000000000000000000000000000000000000602082015250565b6000614e94602683613b8a565b9150614e9f82614e38565b604082019050919050565b60006020820190508181036000830152614ec381614e87565b9050919050565b7f57697468647261772064656c6179206e6f742070617373656400000000000000600082015250565b6000614f00601983613b8a565b9150614f0b82614eca565b602082019050919050565b60006020820190508181036000830152614f2f81614ef3565b9050919050565b7f576974686472617720616d6f756e7420657863656564732062616c616e636500600082015250565b6000614f6c601f83613b8a565b9150614f7782614f36565b602082019050919050565b60006020820190508181036000830152614f9b81614f5f565b9050919050565b7f4f6e6c792043502773206f776e65722063616e2077697468647261772074686560008201527f20636f6c6c61746572616c2066756e6473000000000000000000000000000000602082015250565b6000614ffe603183613b8a565b915061500982614fa2565b604082019050919050565b6000602082019050818103600083015261502d81614ff1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026150c57fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82615088565b6150cf8683615088565b95508019841693508086168417925050509392505050565b60006151026150fd6150f8846139b3565b613fa5565b6139b3565b9050919050565b6000819050919050565b61511c836150e7565b61513061512882615109565b848454615095565b825550505050565b600090565b615145615138565b615150818484615113565b505050565b5b818110156151745761516960008261513d565b600181019050615156565b5050565b601f8211156151b95761518a81615063565b61519384615078565b810160208510156151a2578190505b6151b66151ae85615078565b830182615155565b50505b505050565b600082821c905092915050565b60006151dc600019846008026151be565b1980831691505092915050565b60006151f583836151cb565b9150826002028217905092915050565b61520e82613b7f565b67ffffffffffffffff81111561522757615226615034565b5b6152318254614819565b61523c828285615178565b600060209050601f83116001811461526f576000841561525d578287015190505b61526785826151e9565b8655506152cf565b601f19841661527d86615063565b60005b828110156152a557848901518255600182019150602085019450602081019050615280565b868310156152c257848901516152be601f8916826151cb565b8355505b6001600288020188555050505b50505050505056fea2646970667358221220db90eb976a69a2029673371828e62340c82b62ef4f84d84f1679aa19386ff8b864736f6c63430008190033",
}

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\"},{\"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\"}],\"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: "0x608060405234801561001057600080fd5b5033600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036100845760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161007b9190610360565b60405180910390fd5b610093816100ff60201b60201c565b506100a3336101c360201b60201c565b60018060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061037b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6101d161025560201b60201c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036102435760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161023a9190610360565b60405180910390fd5b610252816100ff60201b60201c565b50565b6102636102ee60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff166102876102f660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16146102ec576102b06102ee60201b60201c565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016102e39190610360565b60405180910390fd5b565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061034a8261031f565b9050919050565b61035a8161033f565b82525050565b60006020820190506103756000830184610351565b92915050565b611f5e8061038a6000396000f3fe6080604052600436106100ec5760003560e01c8063922f126a1161008a578063e11e1b0c11610059578063e11e1b0c146102e7578063f2fde38b14610312578063f340fa011461033b578063f3fef3a314610357576100f3565b8063922f126a1461022f5780639e88fd811461026c578063a6f9dae114610295578063be47afda146102be576100f3565b8063429b62e5116100c6578063429b62e51461018757806370480275146101c4578063715018a6146101ed5780638da5cb5b14610204576100f3565b80631485fef9146100f85780631785f53c1461012157806327e235e31461014a576100f3565b366100f357005b600080fd5b34801561010457600080fd5b5061011f600480360381019061011a9190611421565b610380565b005b34801561012d57600080fd5b5061014860048036038101906101439190611500565b6106f3565b005b34801561015657600080fd5b50610171600480360381019061016c9190611500565b610799565b60405161017e9190611546565b60405180910390f35b34801561019357600080fd5b506101ae60048036038101906101a99190611500565b6107b1565b6040516101bb919061157c565b60405180910390f35b3480156101d057600080fd5b506101eb60048036038101906101e69190611500565b6107d1565b005b3480156101f957600080fd5b50610202610876565b005b34801561021057600080fd5b5061021961088a565b60405161022691906115a6565b60405180910390f35b34801561023b57600080fd5b5061025660048036038101906102519190611500565b6108b3565b6040516102639190611546565b60405180910390f35b34801561027857600080fd5b50610293600480360381019061028e91906115f7565b6108fc565b005b3480156102a157600080fd5b506102bc60048036038101906102b79190611500565b610af5565b005b3480156102ca57600080fd5b506102e560048036038101906102e09190611637565b610bdf565b005b3480156102f357600080fd5b506102fc610ccd565b6040516103099190611673565b60405180910390f35b34801561031e57600080fd5b5061033960048036038101906103349190611500565b610cd3565b005b61035560048036038101906103509190611500565b610d59565b005b34801561036357600080fd5b5061037e600480360381019061037991906115f7565b610e6f565b005b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061040a57503373ffffffffffffffffffffffffffffffffffffffff166103f261088a565b73ffffffffffffffffffffffffffffffffffffffff16145b610449576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610440906116eb565b60405180910390fd5b818190508484905014610491576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161048890611757565b60405180910390fd5b60005b8484905081101561069857600073ffffffffffffffffffffffffffffffffffffffff168585838181106104ca576104c9611777565b5b90506020020160208101906104df9190611500565b73ffffffffffffffffffffffffffffffffffffffff1603610535576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052c90611818565b60405180910390fd5b82828281811061054857610547611777565b5b905060200201356002600087878581811061056657610565611777565b5b905060200201602081019061057b9190611500565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546105c49190611867565b925050819055508282828181106105de576105dd611777565b5b90506020020135600360008282546105f691906118aa565b925050819055508484828181106106105761060f611777565b5b90506020020160208101906106259190611500565b73ffffffffffffffffffffffffffffffffffffffff167f8aa981417e2c3a0dadea5dd2eb5eab703d6d9c074ae83d377ce454dd6a93bfa784848481811061066f5761066e611777565b5b905060200201356040516106839190611673565b60405180910390a28080600101915050610494565b503373ffffffffffffffffffffffffffffffffffffffff167f5a5b8c52e21fd816e73687ac900bbb3238b4e80ddcb10c216085993299e64ed5858585856040516106e59493929190611a1c565b60405180910390a250505050565b6106fb611209565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167fa3b62bc36326052d97ea62d63c3d60308ed4c3ea8ac079dd8499f1e9c4f80c0f60405160405180910390a250565b60026020528060005260406000206000915090505481565b60016020528060005260406000206000915054906101000a900460ff1681565b6107d9611209565b60018060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167f44d6d25963f097ad14f29f06854a01f575648a1ef82f30e562ccd3889717e33960405160405180910390a250565b61087e611209565b6108886000611290565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061098657503373ffffffffffffffffffffffffffffffffffffffff1661096e61088a565b73ffffffffffffffffffffffffffffffffffffffff16145b6109c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109bc906116eb565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610a34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2b90611818565b60405180910390fd5b80600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610a839190611867565b925050819055508060036000828254610a9c91906118aa565b925050819055508173ffffffffffffffffffffffffffffffffffffffff167f8aa981417e2c3a0dadea5dd2eb5eab703d6d9c074ae83d377ce454dd6a93bfa782604051610ae99190611673565b60405180910390a25050565b610afd611209565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6390611aa3565b60405180910390fd5b6000610b7661088a565b9050610b8182610cd3565b8173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c60405160405180910390a35050565b610be7611209565b806003541015610c2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2390611b0f565b60405180910390fd5b8060036000828254610c3e9190611b2f565b92505081905550610c4d61088a565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610c92573d6000803e3d6000fd5b507fd1f01ada3f4d4c0d5d81675b458e3f5c4dda3e79a82d07b03459147644bc7b7b81604051610cc29190611673565b60405180910390a150565b60035481565b610cdb611209565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d4d5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610d4491906115a6565b60405180910390fd5b610d5681611290565b50565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610dc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbf90611baf565b60405180910390fd5b34600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610e179190611bcf565b925050819055508073ffffffffffffffffffffffffffffffffffffffff167f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c434604051610e649190611673565b60405180910390a250565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ede576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed590611c85565b60405180910390fd5b6000808373ffffffffffffffffffffffffffffffffffffffff166040516024016040516020818303038152906040527f893d20e8000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610f889190611d16565b6000604051808303816000865af19150503d8060008114610fc5576040519150601f19603f3d011682016040523d82523d6000602084013e610fca565b606091505b50915091508161100f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100690611d9f565b60405180910390fd5b6000818060200190518101906110259190611dfd565b905083600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205412156110a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110a090611e76565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611117576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110e90611f08565b60405180910390fd5b83600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546111669190611867565b925050819055503373ffffffffffffffffffffffffffffffffffffffff166108fc859081150290604051600060405180830381858888f193505050501580156111b3573d6000803e3d6000fd5b508473ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5856040516111fa9190611673565b60405180910390a25050505050565b611211611354565b73ffffffffffffffffffffffffffffffffffffffff1661122f61088a565b73ffffffffffffffffffffffffffffffffffffffff161461128e57611252611354565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161128591906115a6565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f84011261138b5761138a611366565b5b8235905067ffffffffffffffff8111156113a8576113a761136b565b5b6020830191508360208202830111156113c4576113c3611370565b5b9250929050565b60008083601f8401126113e1576113e0611366565b5b8235905067ffffffffffffffff8111156113fe576113fd61136b565b5b60208301915083602082028301111561141a57611419611370565b5b9250929050565b6000806000806040858703121561143b5761143a61135c565b5b600085013567ffffffffffffffff81111561145957611458611361565b5b61146587828801611375565b9450945050602085013567ffffffffffffffff81111561148857611487611361565b5b611494878288016113cb565b925092505092959194509250565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006114cd826114a2565b9050919050565b6114dd816114c2565b81146114e857600080fd5b50565b6000813590506114fa816114d4565b92915050565b6000602082840312156115165761151561135c565b5b6000611524848285016114eb565b91505092915050565b6000819050919050565b6115408161152d565b82525050565b600060208201905061155b6000830184611537565b92915050565b60008115159050919050565b61157681611561565b82525050565b6000602082019050611591600083018461156d565b92915050565b6115a0816114c2565b82525050565b60006020820190506115bb6000830184611597565b92915050565b6000819050919050565b6115d4816115c1565b81146115df57600080fd5b50565b6000813590506115f1816115cb565b92915050565b6000806040838503121561160e5761160d61135c565b5b600061161c858286016114eb565b925050602061162d858286016115e2565b9150509250929050565b60006020828403121561164d5761164c61135c565b5b600061165b848285016115e2565b91505092915050565b61166d816115c1565b82525050565b60006020820190506116886000830184611664565b92915050565b600082825260208201905092915050565b7f4e6f7420616e2061646d696e206f72206f776e65720000000000000000000000600082015250565b60006116d560158361168e565b91506116e08261169f565b602082019050919050565b60006020820190508181036000830152611704816116c8565b9050919050565b7f417272617973206c656e677468206d69736d6174636800000000000000000000600082015250565b600061174160168361168e565b915061174c8261170b565b602082019050919050565b6000602082019050818103600083015261177081611734565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f496e76616c696420616464726573733a2063704163636f756e742063616e6e6f60008201527f7420626520746865207a65726f20616464726573730000000000000000000000602082015250565b600061180260358361168e565b915061180d826117a6565b604082019050919050565b60006020820190508181036000830152611831816117f5565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006118728261152d565b915061187d8361152d565b92508282039050818112600084121682821360008512151617156118a4576118a3611838565b5b92915050565b60006118b5826115c1565b91506118c0836115c1565b92508282019050808211156118d8576118d7611838565b5b92915050565b600082825260208201905092915050565b6000819050919050565b611902816114c2565b82525050565b600061191483836118f9565b60208301905092915050565b600061192f60208401846114eb565b905092915050565b6000602082019050919050565b600061195083856118de565b935061195b826118ef565b8060005b85811015611994576119718284611920565b61197b8882611908565b975061198683611937565b92505060018101905061195f565b5085925050509392505050565b600082825260208201905092915050565b600080fd5b82818337505050565b60006119cc83856119a1565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156119ff576119fe6119b2565b5b602083029250611a108385846119b7565b82840190509392505050565b60006040820190508181036000830152611a37818688611944565b90508181036020830152611a4c8184866119c0565b905095945050505050565b7f496e76616c6964206e6577206f776e6572206164647265737300000000000000600082015250565b6000611a8d60198361168e565b9150611a9882611a57565b602082019050919050565b60006020820190508181036000830152611abc81611a80565b9050919050565b7f496e73756666696369656e7420657363726f772062616c616e63650000000000600082015250565b6000611af9601b8361168e565b9150611b0482611ac3565b602082019050919050565b60006020820190508181036000830152611b2881611aec565b9050919050565b6000611b3a826115c1565b9150611b45836115c1565b9250828203905081811115611b5d57611b5c611838565b5b92915050565b7f496e76616c6964206163636f756e742061646472657373000000000000000000600082015250565b6000611b9960178361168e565b9150611ba482611b63565b602082019050919050565b60006020820190508181036000830152611bc881611b8c565b9050919050565b6000611bda8261152d565b9150611be58361152d565b925082820190508281121560008312168382126000841215161715611c0d57611c0c611838565b5b92915050565b7f496e76616c696420616464726573733a2063704163636f75742063616e6e6f7460008201527f20626520746865207a65726f2061646472657373000000000000000000000000602082015250565b6000611c6f60348361168e565b9150611c7a82611c13565b604082019050919050565b60006020820190508181036000830152611c9e81611c62565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015611cd9578082015181840152602081019050611cbe565b60008484015250505050565b6000611cf082611ca5565b611cfa8185611cb0565b9350611d0a818560208601611cbb565b80840191505092915050565b6000611d228284611ce5565b915081905092915050565b7f4661696c656420746f2063616c6c206765744f776e65722066756e6374696f6e60008201527f206f662043504163636f756e7400000000000000000000000000000000000000602082015250565b6000611d89602d8361168e565b9150611d9482611d2d565b604082019050919050565b60006020820190508181036000830152611db881611d7c565b9050919050565b6000611dca826114a2565b9050919050565b611dda81611dbf565b8114611de557600080fd5b50565b600081519050611df781611dd1565b92915050565b600060208284031215611e1357611e1261135c565b5b6000611e2184828501611de8565b91505092915050565b7f576974686472617720616d6f756e7420657863656564732062616c616e636500600082015250565b6000611e60601f8361168e565b9150611e6b82611e2a565b602082019050919050565b60006020820190508181036000830152611e8f81611e53565b9050919050565b7f4f6e6c792043502773206f776e65722063616e2077697468647261772074686560008201527f20636f6c6c61746572616c2066756e6473000000000000000000000000000000602082015250565b6000611ef260318361168e565b9150611efd82611e96565b604082019050919050565b60006020820190508181036000830152611f2181611ee5565b905091905056fea2646970667358221220defcf11dc9a705f2f1ecde78e8036b46e2befce5c88c6e909834235ca2ceba6664736f6c63430008190033",
}

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.

View Source
var TaskPaymentABI = TaskPaymentMetaData.ABI

TaskPaymentABI is the input ABI used to generate the binding from. Deprecated: Use TaskPaymentMetaData.ABI instead.

View Source
var TaskPaymentBin = TaskPaymentMetaData.Bin

TaskPaymentBin is the compiled bytecode used for deploying new contracts. Deprecated: Use TaskPaymentMetaData.Bin instead.

View Source
var TaskPaymentMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_tokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_platformWallet\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_platformFeeRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_initialBlocksForWithdrawal\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":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\":false,\"internalType\":\"uint256\",\"name\":\"newBlocksForWithdrawal\",\"type\":\"uint256\"}],\"name\":\"BlocksForWithdrawalUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"ConfirmEscrowToAvailable\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"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\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feeRate\",\"type\":\"uint256\"}],\"name\":\"PlatformFeeRateSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"platformWallet\",\"type\":\"address\"}],\"name\":\"PlatformWalletSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"requestBlock\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"RequestEscrowToAvailable\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"TokenAddressSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"taskUUID\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"transferAmount\",\"type\":\"uint256\"}],\"name\":\"TransferToCPBeneficiary\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"platformWallet\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"realPlatformFee\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"platformFee\",\"type\":\"uint256\"}],\"name\":\"TransferToPlatform\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Withdrawal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferedToEscrow\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"accounts\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"available\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"escrow\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawRequestAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawRequestBlock\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"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\":\"users\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"cps\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"string[]\",\"name\":\"taskUUIDs\",\"type\":\"string[]\"}],\"name\":\"batchPaymentToCP\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"blocksForWithdrawal\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"changeOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"confirmWithdrawEscrowToAvailable\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"wallet\",\"type\":\"address\"}],\"name\":\"getAccountBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"available\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"escrow\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBasicInfo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"platformAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"feeRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawalBlocks\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"platformFeeRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"platformWallet\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"}],\"name\":\"removeAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"requestWithdrawEscrowToAvailable\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newBlocksForWithdrawal\",\"type\":\"uint256\"}],\"name\":\"setBlocksForWithdrawal\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_feeRate\",\"type\":\"uint256\"}],\"name\":\"setPlatformFeeRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_wallet\",\"type\":\"address\"}],\"name\":\"setPlatformWallet\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_tokenAddress\",\"type\":\"address\"}],\"name\":\"setTokenAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferToEscrow\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawAvailableToWallet\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561001057600080fd5b5060405161346138038061346183398181016040528101906100329190610303565b33600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036100a55760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161009c9190610379565b60405180910390fd5b6100b4816101a660201b60201c565b5083600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600381905550806006819055506001600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050505050610394565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061029a8261026f565b9050919050565b6102aa8161028f565b81146102b557600080fd5b50565b6000815190506102c7816102a1565b92915050565b6000819050919050565b6102e0816102cd565b81146102eb57600080fd5b50565b6000815190506102fd816102d7565b92915050565b6000806000806080858703121561031d5761031c61026a565b5b600061032b878288016102b8565b945050602061033c878288016102b8565b935050604061034d878288016102ee565b925050606061035e878288016102ee565b91505092959194509250565b6103738161028f565b82525050565b600060208201905061038e600083018461036a565b92915050565b6130be806103a36000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c8063715018a6116100c3578063a6f9dae11161007c578063a6f9dae11461037a578063b6b55f2514610396578063eeca08f0146103b2578063f2fde38b146103d0578063fa2af9da146103ec578063fc0c546a1461040a57610158565b8063715018a6146102c85780638831e9cf146102d25780638da5cb5b146102ee578063927fef2e1461030c57806393423e9c146103285780639f999da31461035957610158565b8063429b62e511610115578063429b62e5146101f3578063486e3c0f14610223578063569c67ec146102415780635e5c06e21461025d5780636a6e95d11461029057806370480275146102ac57610158565b806303597d091461015d5780631785f53c146101795780632558c6931461019557806326a4e8d2146101b15780632e9a30f5146101cd5780633ef8ebf9146101d7575b600080fd5b610177600480360381019061017291906121c4565b610428565b005b610193600480360381019061018e919061229b565b610898565b005b6101af60048036038101906101aa91906122c8565b61093e565b005b6101cb60048036038101906101c6919061229b565b610b4c565b005b6101d5610bdb565b005b6101f160048036038101906101ec91906122c8565b610f51565b005b61020d6004803603810190610208919061229b565b6110fa565b60405161021a9190612310565b60405180910390f35b61022b61111a565b604051610238919061233a565b60405180910390f35b61025b600480360381019061025691906122c8565b611120565b005b6102776004803603810190610272919061229b565b6112a8565b604051610287949392919061236e565b60405180910390f35b6102aa60048036038101906102a591906122c8565b6112d8565b005b6102c660048036038101906102c1919061229b565b611364565b005b6102d061140a565b005b6102ec60048036038101906102e7919061229b565b61141e565b005b6102f66114ad565b60405161030391906123c2565b60405180910390f35b610326600480360381019061032191906122c8565b6114d6565b005b610342600480360381019061033d919061229b565b61151f565b6040516103509291906123dd565b60405180910390f35b610361611579565b6040516103719493929190612406565b60405180910390f35b610394600480360381019061038f919061229b565b6115d9565b005b6103b060048036038101906103ab91906122c8565b6115ed565b005b6103ba611778565b6040516103c7919061233a565b60405180910390f35b6103ea60048036038101906103e5919061229b565b61177e565b005b6103f4611804565b60405161040191906123c2565b60405180910390f35b61041261182a565b60405161041f91906124aa565b60405180910390f35b600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166104b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104ab90612522565b60405180910390fd5b825184511480156104c6575081518451145b610505576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fc906125b4565b60405180910390fd5b83518151148015610517575082518151145b610556576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161054d90612646565b60405180910390fd5b60005b8451811015610891576000606460035485848151811061057c5761057b612666565b5b602002602001015161058e91906126c4565b6105989190612735565b90506000600460008885815181106105b3576105b2612666565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154905060008282121561060b578161060d565b825b905082600460008a878151811061062757610626612666565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101600082825461067b9190612766565b92505081905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b81526004016107019291906127a9565b6020604051808303816000875af1158015610720573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074491906127fe565b610783576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077a9061289d565b60405180910390fd5b60008187868151811061079957610798612666565b5b60200260200101516107ab91906128bd565b90506108078686815181106107c3576107c2612666565b5b60200260200101518a87815181106107de576107dd612666565b5b60200260200101518a88815181106107f9576107f8612666565b5b602002602001015184611850565b7f41a47e17913f31a7296c4ed86149dea9e40d822378cbdae4532779bd7ebb7e4989868151811061083b5761083a612666565b5b6020026020010151600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684876040516108789493929190612406565b60405180910390a1505050508080600101915050610559565b5050505050565b6108a0611c17565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167fa3b62bc36326052d97ea62d63c3d60308ed4c3ea8ac079dd8499f1e9c4f80c0f60405160405180910390a250565b80600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015410156109c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ba9061293d565b60405180910390fd5b80600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000016000828254610a1591906128bd565b92505081905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610a799291906127a9565b6020604051808303816000875af1158015610a98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abc91906127fe565b610afb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af2906129a9565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b6582604051610b41919061233a565b60405180910390a250565b610b54611c17565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fd82cad5fdc98633445b90f806f2e1a61a5409f92187ee9cd87f1da18c906926660405160405180910390a250565b6000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003015411610c60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5790612a15565b60405180910390fd5b600654600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030154610cb09190612a35565b431015610cf2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce990612adb565b60405180910390fd5b6000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002015411610d77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6e90612b47565b60405180910390fd5b6000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020154905080600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000828254610e109190612766565b9250508190555080600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000016000828254610e699190612a35565b925050819055506000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201819055506000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301819055503373ffffffffffffffffffffffffffffffffffffffff167fb8a7dd621b27da255b5a1d95b4526f99d4f260410c40fd664b31092e395881f982604051610f46919061233a565b60405180910390a250565b80600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101541215610fd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fcd90612bb3565b60405180910390fd5b60008111611019576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101090612c45565b60405180910390fd5b80600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002018190555043600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301819055503373ffffffffffffffffffffffffffffffffffffffff167f5b8db30c5eabdf09ef70381abe76260b8a18996115f82857349aefca8d0c59d643836040516110ef929190612c65565b60405180910390a250565b60056020528060005260406000206000915054906101000a900460ff1681565b60065481565b80600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015410156111a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119c90612cda565b60405180910390fd5b80600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282546111f791906128bd565b9250508190555080600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010160008282546112509190612cfa565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167fdf7545b95b22b9faf026be7aaf1b3bc7b83e6e9d72b32281a6e3645fb381f5d38260405161129d919061233a565b60405180910390a250565b60046020528060005260406000206000915090508060000154908060010154908060020154908060030154905084565b6112e0611c17565b60008111611323576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131a90612db0565b60405180910390fd5b806006819055507fa9fb4003d08029d46b7910208f83e7a7c0c273b4621ce61c5479692c6c98f7a181604051611359919061233a565b60405180910390a150565b61136c611c17565b6001600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167f44d6d25963f097ad14f29f06854a01f575648a1ef82f30e562ccd3889717e33960405160405180910390a250565b611412611c17565b61141c6000611c9e565b565b611426611c17565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f0c7dd120b8e93acfeb4b1c7e9b4a2a9e092f618597b362feb978583eeb4906e460405160405180910390a250565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6114de611c17565b806003819055507f8922da0ad7fd0fa46cfd1eb240eba0f22a630928317ba68e53fe1a16b498c2c581604051611514919061233a565b60405180910390a150565b6000806000600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050806000015481600101549250925050915091565b600080600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600354600654935093509350935090919293565b6115e1611c17565b6115ea8161177e565b50565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b815260040161164c93929190612dd0565b6020604051808303816000875af115801561166b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061168f91906127fe565b6116ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c5906129a9565b60405180910390fd5b80600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282546117209190612a35565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c48260405161176d919061233a565b60405180910390a250565b60035481565b611786611c17565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036117f85760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016117ef91906123c2565b60405180910390fd5b61180181611c9e565b50565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166118dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d390612522565b60405180910390fd5b6000600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015490506000828212156119335781611935565b825b905082600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010160008282546119899190612766565b925050819055506000808573ffffffffffffffffffffffffffffffffffffffff166040516024016040516020818303038152906040527f565a2e2c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051611a3a9190612e78565b6000604051808303816000865af19150503d8060008114611a77576040519150601f19603f3d011682016040523d82523d6000602084013e611a7c565b606091505b509150915081611ac1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab890612f01565b60405180910390fd5b600081806020019051810190611ad79190612f5f565b9050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82866040518363ffffffff1660e01b8152600401611b369291906127a9565b6020604051808303816000875af1158015611b55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b7991906127fe565b611bb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611baf90612fd8565b60405180910390fd5b8673ffffffffffffffffffffffffffffffffffffffff167f1afb519921fbc0153fa9ae324dd48abc4017b4d5285bb3c97f4018ec0965173c8a8a8488604051611c04949392919061303c565b60405180910390a2505050505050505050565b611c1f611d62565b73ffffffffffffffffffffffffffffffffffffffff16611c3d6114ad565b73ffffffffffffffffffffffffffffffffffffffff1614611c9c57611c60611d62565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611c9391906123c2565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6000604051905090565b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b611dcc82611d83565b810181811067ffffffffffffffff82111715611deb57611dea611d94565b5b80604052505050565b6000611dfe611d6a565b9050611e0a8282611dc3565b919050565b600067ffffffffffffffff821115611e2a57611e29611d94565b5b602082029050602081019050919050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611e6b82611e40565b9050919050565b611e7b81611e60565b8114611e8657600080fd5b50565b600081359050611e9881611e72565b92915050565b6000611eb1611eac84611e0f565b611df4565b90508083825260208201905060208402830185811115611ed457611ed3611e3b565b5b835b81811015611efd5780611ee98882611e89565b845260208401935050602081019050611ed6565b5050509392505050565b600082601f830112611f1c57611f1b611d7e565b5b8135611f2c848260208601611e9e565b91505092915050565b600067ffffffffffffffff821115611f5057611f4f611d94565b5b602082029050602081019050919050565b6000819050919050565b611f7481611f61565b8114611f7f57600080fd5b50565b600081359050611f9181611f6b565b92915050565b6000611faa611fa584611f35565b611df4565b90508083825260208201905060208402830185811115611fcd57611fcc611e3b565b5b835b81811015611ff65780611fe28882611f82565b845260208401935050602081019050611fcf565b5050509392505050565b600082601f83011261201557612014611d7e565b5b8135612025848260208601611f97565b91505092915050565b600067ffffffffffffffff82111561204957612048611d94565b5b602082029050602081019050919050565b600080fd5b600067ffffffffffffffff82111561207a57612079611d94565b5b61208382611d83565b9050602081019050919050565b82818337600083830152505050565b60006120b26120ad8461205f565b611df4565b9050828152602081018484840111156120ce576120cd61205a565b5b6120d9848285612090565b509392505050565b600082601f8301126120f6576120f5611d7e565b5b813561210684826020860161209f565b91505092915050565b600061212261211d8461202e565b611df4565b9050808382526020820190506020840283018581111561214557612144611e3b565b5b835b8181101561218c57803567ffffffffffffffff81111561216a57612169611d7e565b5b80860161217789826120e1565b85526020850194505050602081019050612147565b5050509392505050565b600082601f8301126121ab576121aa611d7e565b5b81356121bb84826020860161210f565b91505092915050565b600080600080608085870312156121de576121dd611d74565b5b600085013567ffffffffffffffff8111156121fc576121fb611d79565b5b61220887828801611f07565b945050602085013567ffffffffffffffff81111561222957612228611d79565b5b61223587828801611f07565b935050604085013567ffffffffffffffff81111561225657612255611d79565b5b61226287828801612000565b925050606085013567ffffffffffffffff81111561228357612282611d79565b5b61228f87828801612196565b91505092959194509250565b6000602082840312156122b1576122b0611d74565b5b60006122bf84828501611e89565b91505092915050565b6000602082840312156122de576122dd611d74565b5b60006122ec84828501611f82565b91505092915050565b60008115159050919050565b61230a816122f5565b82525050565b60006020820190506123256000830184612301565b92915050565b61233481611f61565b82525050565b600060208201905061234f600083018461232b565b92915050565b6000819050919050565b61236881612355565b82525050565b6000608082019050612383600083018761232b565b612390602083018661235f565b61239d604083018561232b565b6123aa606083018461232b565b95945050505050565b6123bc81611e60565b82525050565b60006020820190506123d760008301846123b3565b92915050565b60006040820190506123f2600083018561232b565b6123ff602083018461235f565b9392505050565b600060808201905061241b60008301876123b3565b61242860208301866123b3565b612435604083018561232b565b612442606083018461232b565b95945050505050565b6000819050919050565b600061247061246b61246684611e40565b61244b565b611e40565b9050919050565b600061248282612455565b9050919050565b600061249482612477565b9050919050565b6124a481612489565b82525050565b60006020820190506124bf600083018461249b565b92915050565b600082825260208201905092915050565b7f4e6f7420616e2061646d696e0000000000000000000000000000000000000000600082015250565b600061250c600c836124c5565b9150612517826124d6565b602082019050919050565b6000602082019050818103600083015261253b816124ff565b9050919050565b7f4d69736d61746368656420696e7075742061727261797320616d6f6e6720752c60008201527f206320616e642061000000000000000000000000000000000000000000000000602082015250565b600061259e6028836124c5565b91506125a982612542565b604082019050919050565b600060208201905081810360008301526125cd81612591565b9050919050565b7f4d69736d61746368656420696e7075742061727261797320616d6f6e6720742c60008201527f207520616e642063000000000000000000000000000000000000000000000000602082015250565b60006126306028836124c5565b915061263b826125d4565b604082019050919050565b6000602082019050818103600083015261265f81612623565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006126cf82611f61565b91506126da83611f61565b92508282026126e881611f61565b915082820484148315176126ff576126fe612695565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061274082611f61565b915061274b83611f61565b92508261275b5761275a612706565b5b828204905092915050565b600061277182612355565b915061277c83612355565b92508282039050818112600084121682821360008512151617156127a3576127a2612695565b5b92915050565b60006040820190506127be60008301856123b3565b6127cb602083018461232b565b9392505050565b6127db816122f5565b81146127e657600080fd5b50565b6000815190506127f8816127d2565b92915050565b60006020828403121561281457612813611d74565b5b6000612822848285016127e9565b91505092915050565b7f5472616e73666572206f6620706c6174666f726d2066656520746f20706c617460008201527f666f726d2077616c6c6574206661696c65640000000000000000000000000000602082015250565b60006128876032836124c5565b91506128928261282b565b604082019050919050565b600060208201905081810360008301526128b68161287a565b9050919050565b60006128c882611f61565b91506128d383611f61565b92508282039050818111156128eb576128ea612695565b5b92915050565b7f496e73756666696369656e742062616c616e6365000000000000000000000000600082015250565b60006129276014836124c5565b9150612932826128f1565b602082019050919050565b600060208201905081810360008301526129568161291a565b9050919050565b7f5472616e73666572206661696c65640000000000000000000000000000000000600082015250565b6000612993600f836124c5565b915061299e8261295d565b602082019050919050565b600060208201905081810360008301526129c281612986565b9050919050565b7f4e6f207769746864726177616c20726571756573740000000000000000000000600082015250565b60006129ff6015836124c5565b9150612a0a826129c9565b602082019050919050565b60006020820190508181036000830152612a2e816129f2565b9050919050565b6000612a4082611f61565b9150612a4b83611f61565b9250828201905080821115612a6357612a62612695565b5b92915050565b7f5769746864726177616c206e6f742079657420617661696c61626c652062617360008201527f6564206f6e20626c6f636b206865696768740000000000000000000000000000602082015250565b6000612ac56032836124c5565b9150612ad082612a69565b604082019050919050565b60006020820190508181036000830152612af481612ab8565b9050919050565b7f4e6f207769746864726177616c20616d6f756e74207265636f72646564000000600082015250565b6000612b31601d836124c5565b9150612b3c82612afb565b602082019050919050565b60006020820190508181036000830152612b6081612b24565b9050919050565b7f496e73756666696369656e7420457363726f772062616c616e63650000000000600082015250565b6000612b9d601b836124c5565b9150612ba882612b67565b602082019050919050565b60006020820190508181036000830152612bcc81612b90565b9050919050565b7f5769746864726177616c20616d6f756e74206d7573742062652067726561746560008201527f72207468616e207a65726f000000000000000000000000000000000000000000602082015250565b6000612c2f602b836124c5565b9150612c3a82612bd3565b604082019050919050565b60006020820190508181036000830152612c5e81612c22565b9050919050565b6000604082019050612c7a600083018561232b565b612c87602083018461232b565b9392505050565b7f496e73756666696369656e742066756e6420746f207472616e73666572000000600082015250565b6000612cc4601d836124c5565b9150612ccf82612c8e565b602082019050919050565b60006020820190508181036000830152612cf381612cb7565b9050919050565b6000612d0582612355565b9150612d1083612355565b925082820190508281121560008312168382126000841215161715612d3857612d37612695565b5b92915050565b7f426c6f636b7320666f72207769746864726177616c206d75737420626520677260008201527f6561746572207468616e207a65726f0000000000000000000000000000000000602082015250565b6000612d9a602f836124c5565b9150612da582612d3e565b604082019050919050565b60006020820190508181036000830152612dc981612d8d565b9050919050565b6000606082019050612de560008301866123b3565b612df260208301856123b3565b612dff604083018461232b565b949350505050565b600081519050919050565b600081905092915050565b60005b83811015612e3b578082015181840152602081019050612e20565b60008484015250505050565b6000612e5282612e07565b612e5c8185612e12565b9350612e6c818560208601612e1d565b80840191505092915050565b6000612e848284612e47565b915081905092915050565b7f4661696c656420746f2063616c6c2067657442656e656669636961727920667560008201527f6e6374696f6e206f662043504163636f756e7400000000000000000000000000602082015250565b6000612eeb6033836124c5565b9150612ef682612e8f565b604082019050919050565b60006020820190508181036000830152612f1a81612ede565b9050919050565b6000612f2c82611e40565b9050919050565b612f3c81612f21565b8114612f4757600080fd5b50565b600081519050612f5981612f33565b92915050565b600060208284031215612f7557612f74611d74565b5b6000612f8384828501612f4a565b91505092915050565b7f5472616e7366657220746f2062656e6566696369617279206661696c65640000600082015250565b6000612fc2601e836124c5565b9150612fcd82612f8c565b602082019050919050565b60006020820190508181036000830152612ff181612fb5565b9050919050565b600081519050919050565b600061300e82612ff8565b61301881856124c5565b9350613028818560208601612e1d565b61303181611d83565b840191505092915050565b600060808201905081810360008301526130568187613003565b905061306560208301866123b3565b61307260408301856123b3565b61307f606083018461232b565b9594505050505056fea264697066735822122088584a1fc8de900b6311b51822aeedf91430153a348c2278bc5c15c09482e7cb64736f6c63430008190033",
}

TaskPaymentMetaData contains all meta data concerning the TaskPayment contract.

Functions

func ParseError

func ParseError(err error) string

func ParseTooManyError

func ParseTooManyError(err error) string

Types

type AggregatedTask

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

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

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

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

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

func NewAggregatedTaskCaller

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

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

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

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

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

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

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

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

func NewAggregatedTaskFilterer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

func (*AggregatedTaskRegisteredToTaskRegistryIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AggregatedTaskRegisteredToTaskRegistryIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type AggregatedTaskSession

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

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

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

AggregatedTaskTaskCreated represents a TaskCreated event raised by the AggregatedTask contract.

type AggregatedTaskTaskCreatedIterator

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

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

func (*AggregatedTaskTaskCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AggregatedTaskTaskCreatedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type AggregatedTaskTransactor

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

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

func NewAggregatedTaskTransactor

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

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

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

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

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

type CollateralOption func(*CollateralStub)

func WithCpAccountAddress

func WithCpAccountAddress(cpAccountAddress string) CollateralOption

func WithPrivateKey

func WithPrivateKey(pk string) CollateralOption

func WithPublicKey

func WithPublicKey(pk string) CollateralOption

type CollateralStub

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

func NewCollateralStub

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

func NewCollateralWithUbiZeroStub

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

func (*CollateralStub) ContractInfo

func (*CollateralStub) CpInfo

func (*CollateralStub) Deposit

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

func (*CollateralStub) Withdraw

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

func (*CollateralStub) WithdrawConfirm

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

func (*CollateralStub) WithdrawRequest

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

func (*CollateralStub) WithdrawView

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

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

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

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

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

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

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

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

func (*EcpCollateralBatchFrozenDepositIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralBatchFrozenDepositIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EcpCollateralCaller

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

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

func NewEcpCollateralCaller

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

func (*EcpCollateralCollateralAdjustedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralCollateralAdjustedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EcpCollateralCollateralLocked

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

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

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

func (*EcpCollateralCollateralLockedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralCollateralLockedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EcpCollateralCollateralSlashed

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

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

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

func (*EcpCollateralCollateralSlashedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralCollateralSlashedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EcpCollateralCollateralUnlocked

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

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

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

func (*EcpCollateralCollateralUnlockedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralCollateralUnlockedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EcpCollateralDeposit

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

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

func (it *EcpCollateralDepositIterator) Close() error

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

func (*EcpCollateralDepositIterator) Error

func (it *EcpCollateralDepositIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralDepositIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EcpCollateralDisputeProof

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

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

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

func (*EcpCollateralDisputeProofIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralDisputeProofIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EcpCollateralFilterer

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

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

func NewEcpCollateralFilterer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

func (*EcpCollateralOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralOwnershipTransferredIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EcpCollateralRaw

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

func NewEcpCollateralTransactor

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

func (*EcpCollateralWithdrawConfirmedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralWithdrawConfirmedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EcpCollateralWithdrawIterator

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

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

func (*EcpCollateralWithdrawIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralWithdrawIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EcpCollateralWithdrawRequestCanceled

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

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

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

func (*EcpCollateralWithdrawRequestCanceledIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralWithdrawRequestCanceledIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EcpCollateralWithdrawRequested

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

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

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

func (*EcpCollateralWithdrawRequestedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralWithdrawRequestedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EcpCollateralWithdrawSlash

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

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

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

func (*EcpCollateralWithdrawSlashIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpCollateralWithdrawSlashIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EcpSequencer

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

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

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

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

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

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

func (*EcpSequencerAdminAddedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpSequencerAdminAddedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EcpSequencerAdminRemoved

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

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

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

func (*EcpSequencerAdminRemovedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpSequencerAdminRemovedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EcpSequencerBatchTransferredToEscrow

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

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

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

func (*EcpSequencerBatchTransferredToEscrowIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpSequencerBatchTransferredToEscrowIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EcpSequencerCaller

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

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

func NewEcpSequencerCaller

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

func (*EcpSequencerDepositedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpSequencerDepositedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EcpSequencerFilterer

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

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

func NewEcpSequencerFilterer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

func (*EcpSequencerOwnerChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpSequencerOwnerChangedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EcpSequencerOwnershipTransferred

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

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

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

func (*EcpSequencerOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpSequencerOwnershipTransferredIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EcpSequencerRaw

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

func NewEcpSequencerTransactor

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

func (*EcpSequencerTransferredToEscrowIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpSequencerTransferredToEscrowIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EcpSequencerWithdrawn

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

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

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

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

func (*EcpSequencerWithdrawnFromEscrowIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpSequencerWithdrawnFromEscrowIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EcpSequencerWithdrawnIterator

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

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

func (*EcpSequencerWithdrawnIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EcpSequencerWithdrawnIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type SequencerOption

type SequencerOption func(*SequencerStub)

func WithSequencerCpAccountAddress

func WithSequencerCpAccountAddress(cpAccountAddress string) SequencerOption

func WithSequencerPrivateKey

func WithSequencerPrivateKey(pk string) SequencerOption

type SequencerStub

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

func NewSequencerStub

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

func (*SequencerStub) Deposit

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

func (*SequencerStub) GetCPBalance

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

func (*SequencerStub) Withdraw

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

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

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

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

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

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

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

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

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 TaskPayment

type TaskPayment struct {
	TaskPaymentCaller     // Read-only binding to the contract
	TaskPaymentTransactor // Write-only binding to the contract
	TaskPaymentFilterer   // Log filterer for contract events
}

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

func DeployTaskPayment

func DeployTaskPayment(auth *bind.TransactOpts, backend bind.ContractBackend, _tokenAddress common.Address, _platformWallet common.Address, _platformFeeRate *big.Int, _initialBlocksForWithdrawal *big.Int) (common.Address, *types.Transaction, *TaskPayment, error)

DeployTaskPayment deploys a new Ethereum contract, binding an instance of TaskPayment to it.

func NewTaskPayment

func NewTaskPayment(address common.Address, backend bind.ContractBackend) (*TaskPayment, error)

NewTaskPayment creates a new instance of TaskPayment, bound to a specific deployed contract.

type TaskPaymentAdminAdded

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

TaskPaymentAdminAdded represents a AdminAdded event raised by the TaskPayment contract.

type TaskPaymentAdminAddedIterator

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

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

func (*TaskPaymentAdminAddedIterator) Close

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

func (*TaskPaymentAdminAddedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskPaymentAdminAddedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type TaskPaymentAdminRemoved

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

TaskPaymentAdminRemoved represents a AdminRemoved event raised by the TaskPayment contract.

type TaskPaymentAdminRemovedIterator

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

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

func (*TaskPaymentAdminRemovedIterator) Close

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

func (*TaskPaymentAdminRemovedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskPaymentAdminRemovedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type TaskPaymentBlocksForWithdrawalUpdated

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

TaskPaymentBlocksForWithdrawalUpdated represents a BlocksForWithdrawalUpdated event raised by the TaskPayment contract.

type TaskPaymentBlocksForWithdrawalUpdatedIterator

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

TaskPaymentBlocksForWithdrawalUpdatedIterator is returned from FilterBlocksForWithdrawalUpdated and is used to iterate over the raw logs and unpacked data for BlocksForWithdrawalUpdated events raised by the TaskPayment contract.

func (*TaskPaymentBlocksForWithdrawalUpdatedIterator) Close

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

func (*TaskPaymentBlocksForWithdrawalUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskPaymentBlocksForWithdrawalUpdatedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type TaskPaymentCaller

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

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

func NewTaskPaymentCaller

func NewTaskPaymentCaller(address common.Address, caller bind.ContractCaller) (*TaskPaymentCaller, error)

NewTaskPaymentCaller creates a new read-only instance of TaskPayment, bound to a specific deployed contract.

func (*TaskPaymentCaller) Accounts

func (_TaskPayment *TaskPaymentCaller) Accounts(opts *bind.CallOpts, arg0 common.Address) (struct {
	Available             *big.Int
	Escrow                *big.Int
	WithdrawRequestAmount *big.Int
	WithdrawRequestBlock  *big.Int
}, error)

Accounts is a free data retrieval call binding the contract method 0x5e5c06e2.

Solidity: function accounts(address ) view returns(uint256 available, int256 escrow, uint256 withdrawRequestAmount, uint256 withdrawRequestBlock)

func (*TaskPaymentCaller) Admins

func (_TaskPayment *TaskPaymentCaller) 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 (*TaskPaymentCaller) BlocksForWithdrawal

func (_TaskPayment *TaskPaymentCaller) BlocksForWithdrawal(opts *bind.CallOpts) (*big.Int, error)

BlocksForWithdrawal is a free data retrieval call binding the contract method 0x486e3c0f.

Solidity: function blocksForWithdrawal() view returns(uint256)

func (*TaskPaymentCaller) GetAccountBalance

func (_TaskPayment *TaskPaymentCaller) GetAccountBalance(opts *bind.CallOpts, wallet common.Address) (struct {
	Available *big.Int
	Escrow    *big.Int
}, error)

GetAccountBalance is a free data retrieval call binding the contract method 0x93423e9c.

Solidity: function getAccountBalance(address wallet) view returns(uint256 available, int256 escrow)

func (*TaskPaymentCaller) GetBasicInfo

func (_TaskPayment *TaskPaymentCaller) GetBasicInfo(opts *bind.CallOpts) (struct {
	TokenAddress     common.Address
	PlatformAddress  common.Address
	FeeRate          *big.Int
	WithdrawalBlocks *big.Int
}, error)

GetBasicInfo is a free data retrieval call binding the contract method 0x9f999da3.

Solidity: function getBasicInfo() view returns(address tokenAddress, address platformAddress, uint256 feeRate, uint256 withdrawalBlocks)

func (*TaskPaymentCaller) Owner

func (_TaskPayment *TaskPaymentCaller) 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 (*TaskPaymentCaller) PlatformFeeRate

func (_TaskPayment *TaskPaymentCaller) PlatformFeeRate(opts *bind.CallOpts) (*big.Int, error)

PlatformFeeRate is a free data retrieval call binding the contract method 0xeeca08f0.

Solidity: function platformFeeRate() view returns(uint256)

func (*TaskPaymentCaller) PlatformWallet

func (_TaskPayment *TaskPaymentCaller) PlatformWallet(opts *bind.CallOpts) (common.Address, error)

PlatformWallet is a free data retrieval call binding the contract method 0xfa2af9da.

Solidity: function platformWallet() view returns(address)

func (*TaskPaymentCaller) Token

func (_TaskPayment *TaskPaymentCaller) Token(opts *bind.CallOpts) (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

type TaskPaymentCallerRaw

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

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

func (*TaskPaymentCallerRaw) Call

func (_TaskPayment *TaskPaymentCallerRaw) 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 TaskPaymentCallerSession

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

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

func (*TaskPaymentCallerSession) Accounts

func (_TaskPayment *TaskPaymentCallerSession) Accounts(arg0 common.Address) (struct {
	Available             *big.Int
	Escrow                *big.Int
	WithdrawRequestAmount *big.Int
	WithdrawRequestBlock  *big.Int
}, error)

Accounts is a free data retrieval call binding the contract method 0x5e5c06e2.

Solidity: function accounts(address ) view returns(uint256 available, int256 escrow, uint256 withdrawRequestAmount, uint256 withdrawRequestBlock)

func (*TaskPaymentCallerSession) Admins

func (_TaskPayment *TaskPaymentCallerSession) 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 (*TaskPaymentCallerSession) BlocksForWithdrawal

func (_TaskPayment *TaskPaymentCallerSession) BlocksForWithdrawal() (*big.Int, error)

BlocksForWithdrawal is a free data retrieval call binding the contract method 0x486e3c0f.

Solidity: function blocksForWithdrawal() view returns(uint256)

func (*TaskPaymentCallerSession) GetAccountBalance

func (_TaskPayment *TaskPaymentCallerSession) GetAccountBalance(wallet common.Address) (struct {
	Available *big.Int
	Escrow    *big.Int
}, error)

GetAccountBalance is a free data retrieval call binding the contract method 0x93423e9c.

Solidity: function getAccountBalance(address wallet) view returns(uint256 available, int256 escrow)

func (*TaskPaymentCallerSession) GetBasicInfo

func (_TaskPayment *TaskPaymentCallerSession) GetBasicInfo() (struct {
	TokenAddress     common.Address
	PlatformAddress  common.Address
	FeeRate          *big.Int
	WithdrawalBlocks *big.Int
}, error)

GetBasicInfo is a free data retrieval call binding the contract method 0x9f999da3.

Solidity: function getBasicInfo() view returns(address tokenAddress, address platformAddress, uint256 feeRate, uint256 withdrawalBlocks)

func (*TaskPaymentCallerSession) Owner

func (_TaskPayment *TaskPaymentCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*TaskPaymentCallerSession) PlatformFeeRate

func (_TaskPayment *TaskPaymentCallerSession) PlatformFeeRate() (*big.Int, error)

PlatformFeeRate is a free data retrieval call binding the contract method 0xeeca08f0.

Solidity: function platformFeeRate() view returns(uint256)

func (*TaskPaymentCallerSession) PlatformWallet

func (_TaskPayment *TaskPaymentCallerSession) PlatformWallet() (common.Address, error)

PlatformWallet is a free data retrieval call binding the contract method 0xfa2af9da.

Solidity: function platformWallet() view returns(address)

func (*TaskPaymentCallerSession) Token

func (_TaskPayment *TaskPaymentCallerSession) Token() (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

type TaskPaymentConfirmEscrowToAvailable

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

TaskPaymentConfirmEscrowToAvailable represents a ConfirmEscrowToAvailable event raised by the TaskPayment contract.

type TaskPaymentConfirmEscrowToAvailableIterator

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

TaskPaymentConfirmEscrowToAvailableIterator is returned from FilterConfirmEscrowToAvailable and is used to iterate over the raw logs and unpacked data for ConfirmEscrowToAvailable events raised by the TaskPayment contract.

func (*TaskPaymentConfirmEscrowToAvailableIterator) Close

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

func (*TaskPaymentConfirmEscrowToAvailableIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskPaymentConfirmEscrowToAvailableIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type TaskPaymentDeposited

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

TaskPaymentDeposited represents a Deposited event raised by the TaskPayment contract.

type TaskPaymentDepositedIterator

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

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

func (*TaskPaymentDepositedIterator) Close

func (it *TaskPaymentDepositedIterator) Close() error

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

func (*TaskPaymentDepositedIterator) Error

func (it *TaskPaymentDepositedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskPaymentDepositedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type TaskPaymentFilterer

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

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

func NewTaskPaymentFilterer

func NewTaskPaymentFilterer(address common.Address, filterer bind.ContractFilterer) (*TaskPaymentFilterer, error)

NewTaskPaymentFilterer creates a new log filterer instance of TaskPayment, bound to a specific deployed contract.

func (*TaskPaymentFilterer) FilterAdminAdded

func (_TaskPayment *TaskPaymentFilterer) FilterAdminAdded(opts *bind.FilterOpts, admin []common.Address) (*TaskPaymentAdminAddedIterator, error)

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

Solidity: event AdminAdded(address indexed admin)

func (*TaskPaymentFilterer) FilterAdminRemoved

func (_TaskPayment *TaskPaymentFilterer) FilterAdminRemoved(opts *bind.FilterOpts, admin []common.Address) (*TaskPaymentAdminRemovedIterator, error)

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

Solidity: event AdminRemoved(address indexed admin)

func (*TaskPaymentFilterer) FilterBlocksForWithdrawalUpdated

func (_TaskPayment *TaskPaymentFilterer) FilterBlocksForWithdrawalUpdated(opts *bind.FilterOpts) (*TaskPaymentBlocksForWithdrawalUpdatedIterator, error)

FilterBlocksForWithdrawalUpdated is a free log retrieval operation binding the contract event 0xa9fb4003d08029d46b7910208f83e7a7c0c273b4621ce61c5479692c6c98f7a1.

Solidity: event BlocksForWithdrawalUpdated(uint256 newBlocksForWithdrawal)

func (*TaskPaymentFilterer) FilterConfirmEscrowToAvailable

func (_TaskPayment *TaskPaymentFilterer) FilterConfirmEscrowToAvailable(opts *bind.FilterOpts, user []common.Address) (*TaskPaymentConfirmEscrowToAvailableIterator, error)

FilterConfirmEscrowToAvailable is a free log retrieval operation binding the contract event 0xb8a7dd621b27da255b5a1d95b4526f99d4f260410c40fd664b31092e395881f9.

Solidity: event ConfirmEscrowToAvailable(address indexed user, uint256 amount)

func (*TaskPaymentFilterer) FilterDeposited

func (_TaskPayment *TaskPaymentFilterer) FilterDeposited(opts *bind.FilterOpts, account []common.Address) (*TaskPaymentDepositedIterator, error)

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

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

func (*TaskPaymentFilterer) FilterOwnershipTransferred

func (_TaskPayment *TaskPaymentFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*TaskPaymentOwnershipTransferredIterator, error)

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

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

func (*TaskPaymentFilterer) FilterPlatformFeeRateSet

func (_TaskPayment *TaskPaymentFilterer) FilterPlatformFeeRateSet(opts *bind.FilterOpts) (*TaskPaymentPlatformFeeRateSetIterator, error)

FilterPlatformFeeRateSet is a free log retrieval operation binding the contract event 0x8922da0ad7fd0fa46cfd1eb240eba0f22a630928317ba68e53fe1a16b498c2c5.

Solidity: event PlatformFeeRateSet(uint256 feeRate)

func (*TaskPaymentFilterer) FilterPlatformWalletSet

func (_TaskPayment *TaskPaymentFilterer) FilterPlatformWalletSet(opts *bind.FilterOpts, platformWallet []common.Address) (*TaskPaymentPlatformWalletSetIterator, error)

FilterPlatformWalletSet is a free log retrieval operation binding the contract event 0x0c7dd120b8e93acfeb4b1c7e9b4a2a9e092f618597b362feb978583eeb4906e4.

Solidity: event PlatformWalletSet(address indexed platformWallet)

func (*TaskPaymentFilterer) FilterRequestEscrowToAvailable

func (_TaskPayment *TaskPaymentFilterer) FilterRequestEscrowToAvailable(opts *bind.FilterOpts, user []common.Address) (*TaskPaymentRequestEscrowToAvailableIterator, error)

FilterRequestEscrowToAvailable is a free log retrieval operation binding the contract event 0x5b8db30c5eabdf09ef70381abe76260b8a18996115f82857349aefca8d0c59d6.

Solidity: event RequestEscrowToAvailable(address indexed user, uint256 requestBlock, uint256 amount)

func (*TaskPaymentFilterer) FilterTokenAddressSet

func (_TaskPayment *TaskPaymentFilterer) FilterTokenAddressSet(opts *bind.FilterOpts, token []common.Address) (*TaskPaymentTokenAddressSetIterator, error)

FilterTokenAddressSet is a free log retrieval operation binding the contract event 0xd82cad5fdc98633445b90f806f2e1a61a5409f92187ee9cd87f1da18c9069266.

Solidity: event TokenAddressSet(address indexed token)

func (*TaskPaymentFilterer) FilterTransferToCPBeneficiary

func (_TaskPayment *TaskPaymentFilterer) FilterTransferToCPBeneficiary(opts *bind.FilterOpts, cpAccount []common.Address) (*TaskPaymentTransferToCPBeneficiaryIterator, error)

FilterTransferToCPBeneficiary is a free log retrieval operation binding the contract event 0x1afb519921fbc0153fa9ae324dd48abc4017b4d5285bb3c97f4018ec0965173c.

Solidity: event TransferToCPBeneficiary(string taskUUID, address account, address indexed cpAccount, address beneficiary, uint256 transferAmount)

func (*TaskPaymentFilterer) FilterTransferToPlatform

func (_TaskPayment *TaskPaymentFilterer) FilterTransferToPlatform(opts *bind.FilterOpts) (*TaskPaymentTransferToPlatformIterator, error)

FilterTransferToPlatform is a free log retrieval operation binding the contract event 0x41a47e17913f31a7296c4ed86149dea9e40d822378cbdae4532779bd7ebb7e49.

Solidity: event TransferToPlatform(address account, address platformWallet, uint256 realPlatformFee, uint256 platformFee)

func (*TaskPaymentFilterer) FilterTransferedToEscrow

func (_TaskPayment *TaskPaymentFilterer) FilterTransferedToEscrow(opts *bind.FilterOpts, account []common.Address) (*TaskPaymentTransferedToEscrowIterator, error)

FilterTransferedToEscrow is a free log retrieval operation binding the contract event 0xdf7545b95b22b9faf026be7aaf1b3bc7b83e6e9d72b32281a6e3645fb381f5d3.

Solidity: event transferedToEscrow(address indexed account, uint256 amount)

func (*TaskPaymentFilterer) FilterWithdrawal

func (_TaskPayment *TaskPaymentFilterer) FilterWithdrawal(opts *bind.FilterOpts, account []common.Address) (*TaskPaymentWithdrawalIterator, error)

FilterWithdrawal is a free log retrieval operation binding the contract event 0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65.

Solidity: event Withdrawal(address indexed account, uint256 amount)

func (*TaskPaymentFilterer) ParseAdminAdded

func (_TaskPayment *TaskPaymentFilterer) ParseAdminAdded(log types.Log) (*TaskPaymentAdminAdded, error)

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

Solidity: event AdminAdded(address indexed admin)

func (*TaskPaymentFilterer) ParseAdminRemoved

func (_TaskPayment *TaskPaymentFilterer) ParseAdminRemoved(log types.Log) (*TaskPaymentAdminRemoved, error)

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

Solidity: event AdminRemoved(address indexed admin)

func (*TaskPaymentFilterer) ParseBlocksForWithdrawalUpdated

func (_TaskPayment *TaskPaymentFilterer) ParseBlocksForWithdrawalUpdated(log types.Log) (*TaskPaymentBlocksForWithdrawalUpdated, error)

ParseBlocksForWithdrawalUpdated is a log parse operation binding the contract event 0xa9fb4003d08029d46b7910208f83e7a7c0c273b4621ce61c5479692c6c98f7a1.

Solidity: event BlocksForWithdrawalUpdated(uint256 newBlocksForWithdrawal)

func (*TaskPaymentFilterer) ParseConfirmEscrowToAvailable

func (_TaskPayment *TaskPaymentFilterer) ParseConfirmEscrowToAvailable(log types.Log) (*TaskPaymentConfirmEscrowToAvailable, error)

ParseConfirmEscrowToAvailable is a log parse operation binding the contract event 0xb8a7dd621b27da255b5a1d95b4526f99d4f260410c40fd664b31092e395881f9.

Solidity: event ConfirmEscrowToAvailable(address indexed user, uint256 amount)

func (*TaskPaymentFilterer) ParseDeposited

func (_TaskPayment *TaskPaymentFilterer) ParseDeposited(log types.Log) (*TaskPaymentDeposited, error)

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

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

func (*TaskPaymentFilterer) ParseOwnershipTransferred

func (_TaskPayment *TaskPaymentFilterer) ParseOwnershipTransferred(log types.Log) (*TaskPaymentOwnershipTransferred, error)

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

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

func (*TaskPaymentFilterer) ParsePlatformFeeRateSet

func (_TaskPayment *TaskPaymentFilterer) ParsePlatformFeeRateSet(log types.Log) (*TaskPaymentPlatformFeeRateSet, error)

ParsePlatformFeeRateSet is a log parse operation binding the contract event 0x8922da0ad7fd0fa46cfd1eb240eba0f22a630928317ba68e53fe1a16b498c2c5.

Solidity: event PlatformFeeRateSet(uint256 feeRate)

func (*TaskPaymentFilterer) ParsePlatformWalletSet

func (_TaskPayment *TaskPaymentFilterer) ParsePlatformWalletSet(log types.Log) (*TaskPaymentPlatformWalletSet, error)

ParsePlatformWalletSet is a log parse operation binding the contract event 0x0c7dd120b8e93acfeb4b1c7e9b4a2a9e092f618597b362feb978583eeb4906e4.

Solidity: event PlatformWalletSet(address indexed platformWallet)

func (*TaskPaymentFilterer) ParseRequestEscrowToAvailable

func (_TaskPayment *TaskPaymentFilterer) ParseRequestEscrowToAvailable(log types.Log) (*TaskPaymentRequestEscrowToAvailable, error)

ParseRequestEscrowToAvailable is a log parse operation binding the contract event 0x5b8db30c5eabdf09ef70381abe76260b8a18996115f82857349aefca8d0c59d6.

Solidity: event RequestEscrowToAvailable(address indexed user, uint256 requestBlock, uint256 amount)

func (*TaskPaymentFilterer) ParseTokenAddressSet

func (_TaskPayment *TaskPaymentFilterer) ParseTokenAddressSet(log types.Log) (*TaskPaymentTokenAddressSet, error)

ParseTokenAddressSet is a log parse operation binding the contract event 0xd82cad5fdc98633445b90f806f2e1a61a5409f92187ee9cd87f1da18c9069266.

Solidity: event TokenAddressSet(address indexed token)

func (*TaskPaymentFilterer) ParseTransferToCPBeneficiary

func (_TaskPayment *TaskPaymentFilterer) ParseTransferToCPBeneficiary(log types.Log) (*TaskPaymentTransferToCPBeneficiary, error)

ParseTransferToCPBeneficiary is a log parse operation binding the contract event 0x1afb519921fbc0153fa9ae324dd48abc4017b4d5285bb3c97f4018ec0965173c.

Solidity: event TransferToCPBeneficiary(string taskUUID, address account, address indexed cpAccount, address beneficiary, uint256 transferAmount)

func (*TaskPaymentFilterer) ParseTransferToPlatform

func (_TaskPayment *TaskPaymentFilterer) ParseTransferToPlatform(log types.Log) (*TaskPaymentTransferToPlatform, error)

ParseTransferToPlatform is a log parse operation binding the contract event 0x41a47e17913f31a7296c4ed86149dea9e40d822378cbdae4532779bd7ebb7e49.

Solidity: event TransferToPlatform(address account, address platformWallet, uint256 realPlatformFee, uint256 platformFee)

func (*TaskPaymentFilterer) ParseTransferedToEscrow

func (_TaskPayment *TaskPaymentFilterer) ParseTransferedToEscrow(log types.Log) (*TaskPaymentTransferedToEscrow, error)

ParseTransferedToEscrow is a log parse operation binding the contract event 0xdf7545b95b22b9faf026be7aaf1b3bc7b83e6e9d72b32281a6e3645fb381f5d3.

Solidity: event transferedToEscrow(address indexed account, uint256 amount)

func (*TaskPaymentFilterer) ParseWithdrawal

func (_TaskPayment *TaskPaymentFilterer) ParseWithdrawal(log types.Log) (*TaskPaymentWithdrawal, error)

ParseWithdrawal is a log parse operation binding the contract event 0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65.

Solidity: event Withdrawal(address indexed account, uint256 amount)

func (*TaskPaymentFilterer) WatchAdminAdded

func (_TaskPayment *TaskPaymentFilterer) WatchAdminAdded(opts *bind.WatchOpts, sink chan<- *TaskPaymentAdminAdded, 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 (*TaskPaymentFilterer) WatchAdminRemoved

func (_TaskPayment *TaskPaymentFilterer) WatchAdminRemoved(opts *bind.WatchOpts, sink chan<- *TaskPaymentAdminRemoved, 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 (*TaskPaymentFilterer) WatchBlocksForWithdrawalUpdated

func (_TaskPayment *TaskPaymentFilterer) WatchBlocksForWithdrawalUpdated(opts *bind.WatchOpts, sink chan<- *TaskPaymentBlocksForWithdrawalUpdated) (event.Subscription, error)

WatchBlocksForWithdrawalUpdated is a free log subscription operation binding the contract event 0xa9fb4003d08029d46b7910208f83e7a7c0c273b4621ce61c5479692c6c98f7a1.

Solidity: event BlocksForWithdrawalUpdated(uint256 newBlocksForWithdrawal)

func (*TaskPaymentFilterer) WatchConfirmEscrowToAvailable

func (_TaskPayment *TaskPaymentFilterer) WatchConfirmEscrowToAvailable(opts *bind.WatchOpts, sink chan<- *TaskPaymentConfirmEscrowToAvailable, user []common.Address) (event.Subscription, error)

WatchConfirmEscrowToAvailable is a free log subscription operation binding the contract event 0xb8a7dd621b27da255b5a1d95b4526f99d4f260410c40fd664b31092e395881f9.

Solidity: event ConfirmEscrowToAvailable(address indexed user, uint256 amount)

func (*TaskPaymentFilterer) WatchDeposited

func (_TaskPayment *TaskPaymentFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *TaskPaymentDeposited, account []common.Address) (event.Subscription, error)

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

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

func (*TaskPaymentFilterer) WatchOwnershipTransferred

func (_TaskPayment *TaskPaymentFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TaskPaymentOwnershipTransferred, 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 (*TaskPaymentFilterer) WatchPlatformFeeRateSet

func (_TaskPayment *TaskPaymentFilterer) WatchPlatformFeeRateSet(opts *bind.WatchOpts, sink chan<- *TaskPaymentPlatformFeeRateSet) (event.Subscription, error)

WatchPlatformFeeRateSet is a free log subscription operation binding the contract event 0x8922da0ad7fd0fa46cfd1eb240eba0f22a630928317ba68e53fe1a16b498c2c5.

Solidity: event PlatformFeeRateSet(uint256 feeRate)

func (*TaskPaymentFilterer) WatchPlatformWalletSet

func (_TaskPayment *TaskPaymentFilterer) WatchPlatformWalletSet(opts *bind.WatchOpts, sink chan<- *TaskPaymentPlatformWalletSet, platformWallet []common.Address) (event.Subscription, error)

WatchPlatformWalletSet is a free log subscription operation binding the contract event 0x0c7dd120b8e93acfeb4b1c7e9b4a2a9e092f618597b362feb978583eeb4906e4.

Solidity: event PlatformWalletSet(address indexed platformWallet)

func (*TaskPaymentFilterer) WatchRequestEscrowToAvailable

func (_TaskPayment *TaskPaymentFilterer) WatchRequestEscrowToAvailable(opts *bind.WatchOpts, sink chan<- *TaskPaymentRequestEscrowToAvailable, user []common.Address) (event.Subscription, error)

WatchRequestEscrowToAvailable is a free log subscription operation binding the contract event 0x5b8db30c5eabdf09ef70381abe76260b8a18996115f82857349aefca8d0c59d6.

Solidity: event RequestEscrowToAvailable(address indexed user, uint256 requestBlock, uint256 amount)

func (*TaskPaymentFilterer) WatchTokenAddressSet

func (_TaskPayment *TaskPaymentFilterer) WatchTokenAddressSet(opts *bind.WatchOpts, sink chan<- *TaskPaymentTokenAddressSet, token []common.Address) (event.Subscription, error)

WatchTokenAddressSet is a free log subscription operation binding the contract event 0xd82cad5fdc98633445b90f806f2e1a61a5409f92187ee9cd87f1da18c9069266.

Solidity: event TokenAddressSet(address indexed token)

func (*TaskPaymentFilterer) WatchTransferToCPBeneficiary

func (_TaskPayment *TaskPaymentFilterer) WatchTransferToCPBeneficiary(opts *bind.WatchOpts, sink chan<- *TaskPaymentTransferToCPBeneficiary, cpAccount []common.Address) (event.Subscription, error)

WatchTransferToCPBeneficiary is a free log subscription operation binding the contract event 0x1afb519921fbc0153fa9ae324dd48abc4017b4d5285bb3c97f4018ec0965173c.

Solidity: event TransferToCPBeneficiary(string taskUUID, address account, address indexed cpAccount, address beneficiary, uint256 transferAmount)

func (*TaskPaymentFilterer) WatchTransferToPlatform

func (_TaskPayment *TaskPaymentFilterer) WatchTransferToPlatform(opts *bind.WatchOpts, sink chan<- *TaskPaymentTransferToPlatform) (event.Subscription, error)

WatchTransferToPlatform is a free log subscription operation binding the contract event 0x41a47e17913f31a7296c4ed86149dea9e40d822378cbdae4532779bd7ebb7e49.

Solidity: event TransferToPlatform(address account, address platformWallet, uint256 realPlatformFee, uint256 platformFee)

func (*TaskPaymentFilterer) WatchTransferedToEscrow

func (_TaskPayment *TaskPaymentFilterer) WatchTransferedToEscrow(opts *bind.WatchOpts, sink chan<- *TaskPaymentTransferedToEscrow, account []common.Address) (event.Subscription, error)

WatchTransferedToEscrow is a free log subscription operation binding the contract event 0xdf7545b95b22b9faf026be7aaf1b3bc7b83e6e9d72b32281a6e3645fb381f5d3.

Solidity: event transferedToEscrow(address indexed account, uint256 amount)

func (*TaskPaymentFilterer) WatchWithdrawal

func (_TaskPayment *TaskPaymentFilterer) WatchWithdrawal(opts *bind.WatchOpts, sink chan<- *TaskPaymentWithdrawal, account []common.Address) (event.Subscription, error)

WatchWithdrawal is a free log subscription operation binding the contract event 0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65.

Solidity: event Withdrawal(address indexed account, uint256 amount)

type TaskPaymentOwnershipTransferred

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

TaskPaymentOwnershipTransferred represents a OwnershipTransferred event raised by the TaskPayment contract.

type TaskPaymentOwnershipTransferredIterator

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

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

func (*TaskPaymentOwnershipTransferredIterator) Close

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

func (*TaskPaymentOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskPaymentOwnershipTransferredIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type TaskPaymentPlatformFeeRateSet

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

TaskPaymentPlatformFeeRateSet represents a PlatformFeeRateSet event raised by the TaskPayment contract.

type TaskPaymentPlatformFeeRateSetIterator

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

TaskPaymentPlatformFeeRateSetIterator is returned from FilterPlatformFeeRateSet and is used to iterate over the raw logs and unpacked data for PlatformFeeRateSet events raised by the TaskPayment contract.

func (*TaskPaymentPlatformFeeRateSetIterator) Close

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

func (*TaskPaymentPlatformFeeRateSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskPaymentPlatformFeeRateSetIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type TaskPaymentPlatformWalletSet

type TaskPaymentPlatformWalletSet struct {
	PlatformWallet common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

TaskPaymentPlatformWalletSet represents a PlatformWalletSet event raised by the TaskPayment contract.

type TaskPaymentPlatformWalletSetIterator

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

TaskPaymentPlatformWalletSetIterator is returned from FilterPlatformWalletSet and is used to iterate over the raw logs and unpacked data for PlatformWalletSet events raised by the TaskPayment contract.

func (*TaskPaymentPlatformWalletSetIterator) Close

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

func (*TaskPaymentPlatformWalletSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskPaymentPlatformWalletSetIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type TaskPaymentRaw

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

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

func (*TaskPaymentRaw) Call

func (_TaskPayment *TaskPaymentRaw) 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 (*TaskPaymentRaw) Transact

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

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

func (*TaskPaymentRaw) Transfer

func (_TaskPayment *TaskPaymentRaw) 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 TaskPaymentRequestEscrowToAvailable

type TaskPaymentRequestEscrowToAvailable struct {
	User         common.Address
	RequestBlock *big.Int
	Amount       *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

TaskPaymentRequestEscrowToAvailable represents a RequestEscrowToAvailable event raised by the TaskPayment contract.

type TaskPaymentRequestEscrowToAvailableIterator

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

TaskPaymentRequestEscrowToAvailableIterator is returned from FilterRequestEscrowToAvailable and is used to iterate over the raw logs and unpacked data for RequestEscrowToAvailable events raised by the TaskPayment contract.

func (*TaskPaymentRequestEscrowToAvailableIterator) Close

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

func (*TaskPaymentRequestEscrowToAvailableIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskPaymentRequestEscrowToAvailableIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type TaskPaymentSession

type TaskPaymentSession struct {
	Contract     *TaskPayment      // 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
}

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

func (*TaskPaymentSession) Accounts

func (_TaskPayment *TaskPaymentSession) Accounts(arg0 common.Address) (struct {
	Available             *big.Int
	Escrow                *big.Int
	WithdrawRequestAmount *big.Int
	WithdrawRequestBlock  *big.Int
}, error)

Accounts is a free data retrieval call binding the contract method 0x5e5c06e2.

Solidity: function accounts(address ) view returns(uint256 available, int256 escrow, uint256 withdrawRequestAmount, uint256 withdrawRequestBlock)

func (*TaskPaymentSession) AddAdmin

func (_TaskPayment *TaskPaymentSession) 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 (*TaskPaymentSession) Admins

func (_TaskPayment *TaskPaymentSession) 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 (*TaskPaymentSession) BatchPaymentToCP

func (_TaskPayment *TaskPaymentSession) BatchPaymentToCP(users []common.Address, cps []common.Address, amounts []*big.Int, taskUUIDs []string) (*types.Transaction, error)

BatchPaymentToCP is a paid mutator transaction binding the contract method 0x03597d09.

Solidity: function batchPaymentToCP(address[] users, address[] cps, uint256[] amounts, string[] taskUUIDs) returns()

func (*TaskPaymentSession) BlocksForWithdrawal

func (_TaskPayment *TaskPaymentSession) BlocksForWithdrawal() (*big.Int, error)

BlocksForWithdrawal is a free data retrieval call binding the contract method 0x486e3c0f.

Solidity: function blocksForWithdrawal() view returns(uint256)

func (*TaskPaymentSession) ChangeOwner

func (_TaskPayment *TaskPaymentSession) 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 (*TaskPaymentSession) ConfirmWithdrawEscrowToAvailable

func (_TaskPayment *TaskPaymentSession) ConfirmWithdrawEscrowToAvailable() (*types.Transaction, error)

ConfirmWithdrawEscrowToAvailable is a paid mutator transaction binding the contract method 0x2e9a30f5.

Solidity: function confirmWithdrawEscrowToAvailable() returns()

func (*TaskPaymentSession) Deposit

func (_TaskPayment *TaskPaymentSession) Deposit(amount *big.Int) (*types.Transaction, error)

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

Solidity: function deposit(uint256 amount) returns()

func (*TaskPaymentSession) GetAccountBalance

func (_TaskPayment *TaskPaymentSession) GetAccountBalance(wallet common.Address) (struct {
	Available *big.Int
	Escrow    *big.Int
}, error)

GetAccountBalance is a free data retrieval call binding the contract method 0x93423e9c.

Solidity: function getAccountBalance(address wallet) view returns(uint256 available, int256 escrow)

func (*TaskPaymentSession) GetBasicInfo

func (_TaskPayment *TaskPaymentSession) GetBasicInfo() (struct {
	TokenAddress     common.Address
	PlatformAddress  common.Address
	FeeRate          *big.Int
	WithdrawalBlocks *big.Int
}, error)

GetBasicInfo is a free data retrieval call binding the contract method 0x9f999da3.

Solidity: function getBasicInfo() view returns(address tokenAddress, address platformAddress, uint256 feeRate, uint256 withdrawalBlocks)

func (*TaskPaymentSession) Owner

func (_TaskPayment *TaskPaymentSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*TaskPaymentSession) PlatformFeeRate

func (_TaskPayment *TaskPaymentSession) PlatformFeeRate() (*big.Int, error)

PlatformFeeRate is a free data retrieval call binding the contract method 0xeeca08f0.

Solidity: function platformFeeRate() view returns(uint256)

func (*TaskPaymentSession) PlatformWallet

func (_TaskPayment *TaskPaymentSession) PlatformWallet() (common.Address, error)

PlatformWallet is a free data retrieval call binding the contract method 0xfa2af9da.

Solidity: function platformWallet() view returns(address)

func (*TaskPaymentSession) RemoveAdmin

func (_TaskPayment *TaskPaymentSession) 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 (*TaskPaymentSession) RenounceOwnership

func (_TaskPayment *TaskPaymentSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*TaskPaymentSession) RequestWithdrawEscrowToAvailable

func (_TaskPayment *TaskPaymentSession) RequestWithdrawEscrowToAvailable(amount *big.Int) (*types.Transaction, error)

RequestWithdrawEscrowToAvailable is a paid mutator transaction binding the contract method 0x3ef8ebf9.

Solidity: function requestWithdrawEscrowToAvailable(uint256 amount) returns()

func (*TaskPaymentSession) SetBlocksForWithdrawal

func (_TaskPayment *TaskPaymentSession) SetBlocksForWithdrawal(newBlocksForWithdrawal *big.Int) (*types.Transaction, error)

SetBlocksForWithdrawal is a paid mutator transaction binding the contract method 0x6a6e95d1.

Solidity: function setBlocksForWithdrawal(uint256 newBlocksForWithdrawal) returns()

func (*TaskPaymentSession) SetPlatformFeeRate

func (_TaskPayment *TaskPaymentSession) SetPlatformFeeRate(_feeRate *big.Int) (*types.Transaction, error)

SetPlatformFeeRate is a paid mutator transaction binding the contract method 0x927fef2e.

Solidity: function setPlatformFeeRate(uint256 _feeRate) returns()

func (*TaskPaymentSession) SetPlatformWallet

func (_TaskPayment *TaskPaymentSession) SetPlatformWallet(_wallet common.Address) (*types.Transaction, error)

SetPlatformWallet is a paid mutator transaction binding the contract method 0x8831e9cf.

Solidity: function setPlatformWallet(address _wallet) returns()

func (*TaskPaymentSession) SetTokenAddress

func (_TaskPayment *TaskPaymentSession) SetTokenAddress(_tokenAddress common.Address) (*types.Transaction, error)

SetTokenAddress is a paid mutator transaction binding the contract method 0x26a4e8d2.

Solidity: function setTokenAddress(address _tokenAddress) returns()

func (*TaskPaymentSession) Token

func (_TaskPayment *TaskPaymentSession) Token() (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

func (*TaskPaymentSession) TransferOwnership

func (_TaskPayment *TaskPaymentSession) 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 (*TaskPaymentSession) TransferToEscrow

func (_TaskPayment *TaskPaymentSession) TransferToEscrow(amount *big.Int) (*types.Transaction, error)

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

Solidity: function transferToEscrow(uint256 amount) returns()

func (*TaskPaymentSession) WithdrawAvailableToWallet

func (_TaskPayment *TaskPaymentSession) WithdrawAvailableToWallet(amount *big.Int) (*types.Transaction, error)

WithdrawAvailableToWallet is a paid mutator transaction binding the contract method 0x2558c693.

Solidity: function withdrawAvailableToWallet(uint256 amount) returns()

type TaskPaymentTokenAddressSet

type TaskPaymentTokenAddressSet struct {
	Token common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

TaskPaymentTokenAddressSet represents a TokenAddressSet event raised by the TaskPayment contract.

type TaskPaymentTokenAddressSetIterator

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

TaskPaymentTokenAddressSetIterator is returned from FilterTokenAddressSet and is used to iterate over the raw logs and unpacked data for TokenAddressSet events raised by the TaskPayment contract.

func (*TaskPaymentTokenAddressSetIterator) Close

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

func (*TaskPaymentTokenAddressSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskPaymentTokenAddressSetIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type TaskPaymentTransactor

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

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

func NewTaskPaymentTransactor

func NewTaskPaymentTransactor(address common.Address, transactor bind.ContractTransactor) (*TaskPaymentTransactor, error)

NewTaskPaymentTransactor creates a new write-only instance of TaskPayment, bound to a specific deployed contract.

func (*TaskPaymentTransactor) AddAdmin

func (_TaskPayment *TaskPaymentTransactor) 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 (*TaskPaymentTransactor) BatchPaymentToCP

func (_TaskPayment *TaskPaymentTransactor) BatchPaymentToCP(opts *bind.TransactOpts, users []common.Address, cps []common.Address, amounts []*big.Int, taskUUIDs []string) (*types.Transaction, error)

BatchPaymentToCP is a paid mutator transaction binding the contract method 0x03597d09.

Solidity: function batchPaymentToCP(address[] users, address[] cps, uint256[] amounts, string[] taskUUIDs) returns()

func (*TaskPaymentTransactor) ChangeOwner

func (_TaskPayment *TaskPaymentTransactor) 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 (*TaskPaymentTransactor) ConfirmWithdrawEscrowToAvailable

func (_TaskPayment *TaskPaymentTransactor) ConfirmWithdrawEscrowToAvailable(opts *bind.TransactOpts) (*types.Transaction, error)

ConfirmWithdrawEscrowToAvailable is a paid mutator transaction binding the contract method 0x2e9a30f5.

Solidity: function confirmWithdrawEscrowToAvailable() returns()

func (*TaskPaymentTransactor) Deposit

func (_TaskPayment *TaskPaymentTransactor) Deposit(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

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

Solidity: function deposit(uint256 amount) returns()

func (*TaskPaymentTransactor) RemoveAdmin

func (_TaskPayment *TaskPaymentTransactor) 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 (*TaskPaymentTransactor) RenounceOwnership

func (_TaskPayment *TaskPaymentTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*TaskPaymentTransactor) RequestWithdrawEscrowToAvailable

func (_TaskPayment *TaskPaymentTransactor) RequestWithdrawEscrowToAvailable(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

RequestWithdrawEscrowToAvailable is a paid mutator transaction binding the contract method 0x3ef8ebf9.

Solidity: function requestWithdrawEscrowToAvailable(uint256 amount) returns()

func (*TaskPaymentTransactor) SetBlocksForWithdrawal

func (_TaskPayment *TaskPaymentTransactor) SetBlocksForWithdrawal(opts *bind.TransactOpts, newBlocksForWithdrawal *big.Int) (*types.Transaction, error)

SetBlocksForWithdrawal is a paid mutator transaction binding the contract method 0x6a6e95d1.

Solidity: function setBlocksForWithdrawal(uint256 newBlocksForWithdrawal) returns()

func (*TaskPaymentTransactor) SetPlatformFeeRate

func (_TaskPayment *TaskPaymentTransactor) SetPlatformFeeRate(opts *bind.TransactOpts, _feeRate *big.Int) (*types.Transaction, error)

SetPlatformFeeRate is a paid mutator transaction binding the contract method 0x927fef2e.

Solidity: function setPlatformFeeRate(uint256 _feeRate) returns()

func (*TaskPaymentTransactor) SetPlatformWallet

func (_TaskPayment *TaskPaymentTransactor) SetPlatformWallet(opts *bind.TransactOpts, _wallet common.Address) (*types.Transaction, error)

SetPlatformWallet is a paid mutator transaction binding the contract method 0x8831e9cf.

Solidity: function setPlatformWallet(address _wallet) returns()

func (*TaskPaymentTransactor) SetTokenAddress

func (_TaskPayment *TaskPaymentTransactor) SetTokenAddress(opts *bind.TransactOpts, _tokenAddress common.Address) (*types.Transaction, error)

SetTokenAddress is a paid mutator transaction binding the contract method 0x26a4e8d2.

Solidity: function setTokenAddress(address _tokenAddress) returns()

func (*TaskPaymentTransactor) TransferOwnership

func (_TaskPayment *TaskPaymentTransactor) 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 (*TaskPaymentTransactor) TransferToEscrow

func (_TaskPayment *TaskPaymentTransactor) TransferToEscrow(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transferToEscrow(uint256 amount) returns()

func (*TaskPaymentTransactor) WithdrawAvailableToWallet

func (_TaskPayment *TaskPaymentTransactor) WithdrawAvailableToWallet(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

WithdrawAvailableToWallet is a paid mutator transaction binding the contract method 0x2558c693.

Solidity: function withdrawAvailableToWallet(uint256 amount) returns()

type TaskPaymentTransactorRaw

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

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

func (*TaskPaymentTransactorRaw) Transact

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

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

func (*TaskPaymentTransactorRaw) Transfer

func (_TaskPayment *TaskPaymentTransactorRaw) 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 TaskPaymentTransactorSession

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

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

func (*TaskPaymentTransactorSession) AddAdmin

func (_TaskPayment *TaskPaymentTransactorSession) 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 (*TaskPaymentTransactorSession) BatchPaymentToCP

func (_TaskPayment *TaskPaymentTransactorSession) BatchPaymentToCP(users []common.Address, cps []common.Address, amounts []*big.Int, taskUUIDs []string) (*types.Transaction, error)

BatchPaymentToCP is a paid mutator transaction binding the contract method 0x03597d09.

Solidity: function batchPaymentToCP(address[] users, address[] cps, uint256[] amounts, string[] taskUUIDs) returns()

func (*TaskPaymentTransactorSession) ChangeOwner

func (_TaskPayment *TaskPaymentTransactorSession) 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 (*TaskPaymentTransactorSession) ConfirmWithdrawEscrowToAvailable

func (_TaskPayment *TaskPaymentTransactorSession) ConfirmWithdrawEscrowToAvailable() (*types.Transaction, error)

ConfirmWithdrawEscrowToAvailable is a paid mutator transaction binding the contract method 0x2e9a30f5.

Solidity: function confirmWithdrawEscrowToAvailable() returns()

func (*TaskPaymentTransactorSession) Deposit

func (_TaskPayment *TaskPaymentTransactorSession) Deposit(amount *big.Int) (*types.Transaction, error)

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

Solidity: function deposit(uint256 amount) returns()

func (*TaskPaymentTransactorSession) RemoveAdmin

func (_TaskPayment *TaskPaymentTransactorSession) 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 (*TaskPaymentTransactorSession) RenounceOwnership

func (_TaskPayment *TaskPaymentTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*TaskPaymentTransactorSession) RequestWithdrawEscrowToAvailable

func (_TaskPayment *TaskPaymentTransactorSession) RequestWithdrawEscrowToAvailable(amount *big.Int) (*types.Transaction, error)

RequestWithdrawEscrowToAvailable is a paid mutator transaction binding the contract method 0x3ef8ebf9.

Solidity: function requestWithdrawEscrowToAvailable(uint256 amount) returns()

func (*TaskPaymentTransactorSession) SetBlocksForWithdrawal

func (_TaskPayment *TaskPaymentTransactorSession) SetBlocksForWithdrawal(newBlocksForWithdrawal *big.Int) (*types.Transaction, error)

SetBlocksForWithdrawal is a paid mutator transaction binding the contract method 0x6a6e95d1.

Solidity: function setBlocksForWithdrawal(uint256 newBlocksForWithdrawal) returns()

func (*TaskPaymentTransactorSession) SetPlatformFeeRate

func (_TaskPayment *TaskPaymentTransactorSession) SetPlatformFeeRate(_feeRate *big.Int) (*types.Transaction, error)

SetPlatformFeeRate is a paid mutator transaction binding the contract method 0x927fef2e.

Solidity: function setPlatformFeeRate(uint256 _feeRate) returns()

func (*TaskPaymentTransactorSession) SetPlatformWallet

func (_TaskPayment *TaskPaymentTransactorSession) SetPlatformWallet(_wallet common.Address) (*types.Transaction, error)

SetPlatformWallet is a paid mutator transaction binding the contract method 0x8831e9cf.

Solidity: function setPlatformWallet(address _wallet) returns()

func (*TaskPaymentTransactorSession) SetTokenAddress

func (_TaskPayment *TaskPaymentTransactorSession) SetTokenAddress(_tokenAddress common.Address) (*types.Transaction, error)

SetTokenAddress is a paid mutator transaction binding the contract method 0x26a4e8d2.

Solidity: function setTokenAddress(address _tokenAddress) returns()

func (*TaskPaymentTransactorSession) TransferOwnership

func (_TaskPayment *TaskPaymentTransactorSession) 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 (*TaskPaymentTransactorSession) TransferToEscrow

func (_TaskPayment *TaskPaymentTransactorSession) TransferToEscrow(amount *big.Int) (*types.Transaction, error)

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

Solidity: function transferToEscrow(uint256 amount) returns()

func (*TaskPaymentTransactorSession) WithdrawAvailableToWallet

func (_TaskPayment *TaskPaymentTransactorSession) WithdrawAvailableToWallet(amount *big.Int) (*types.Transaction, error)

WithdrawAvailableToWallet is a paid mutator transaction binding the contract method 0x2558c693.

Solidity: function withdrawAvailableToWallet(uint256 amount) returns()

type TaskPaymentTransferToCPBeneficiary

type TaskPaymentTransferToCPBeneficiary struct {
	TaskUUID       string
	Account        common.Address
	CpAccount      common.Address
	Beneficiary    common.Address
	TransferAmount *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

TaskPaymentTransferToCPBeneficiary represents a TransferToCPBeneficiary event raised by the TaskPayment contract.

type TaskPaymentTransferToCPBeneficiaryIterator

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

TaskPaymentTransferToCPBeneficiaryIterator is returned from FilterTransferToCPBeneficiary and is used to iterate over the raw logs and unpacked data for TransferToCPBeneficiary events raised by the TaskPayment contract.

func (*TaskPaymentTransferToCPBeneficiaryIterator) Close

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

func (*TaskPaymentTransferToCPBeneficiaryIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskPaymentTransferToCPBeneficiaryIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type TaskPaymentTransferToPlatform

type TaskPaymentTransferToPlatform struct {
	Account         common.Address
	PlatformWallet  common.Address
	RealPlatformFee *big.Int
	PlatformFee     *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

TaskPaymentTransferToPlatform represents a TransferToPlatform event raised by the TaskPayment contract.

type TaskPaymentTransferToPlatformIterator

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

TaskPaymentTransferToPlatformIterator is returned from FilterTransferToPlatform and is used to iterate over the raw logs and unpacked data for TransferToPlatform events raised by the TaskPayment contract.

func (*TaskPaymentTransferToPlatformIterator) Close

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

func (*TaskPaymentTransferToPlatformIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskPaymentTransferToPlatformIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type TaskPaymentTransferedToEscrow

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

TaskPaymentTransferedToEscrow represents a TransferedToEscrow event raised by the TaskPayment contract.

type TaskPaymentTransferedToEscrowIterator

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

TaskPaymentTransferedToEscrowIterator is returned from FilterTransferedToEscrow and is used to iterate over the raw logs and unpacked data for TransferedToEscrow events raised by the TaskPayment contract.

func (*TaskPaymentTransferedToEscrowIterator) Close

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

func (*TaskPaymentTransferedToEscrowIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskPaymentTransferedToEscrowIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type TaskPaymentWithdrawal

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

TaskPaymentWithdrawal represents a Withdrawal event raised by the TaskPayment contract.

type TaskPaymentWithdrawalIterator

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

TaskPaymentWithdrawalIterator is returned from FilterWithdrawal and is used to iterate over the raw logs and unpacked data for Withdrawal events raised by the TaskPayment contract.

func (*TaskPaymentWithdrawalIterator) Close

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

func (*TaskPaymentWithdrawalIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskPaymentWithdrawalIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type TaskRaw

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

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

func (*TaskRaw) Call

func (_Task *TaskRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*TaskRaw) Transact

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

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

func (*TaskRaw) Transfer

func (_Task *TaskRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type TaskRegisteredToTaskRegistry

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

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

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

func (*TaskRegisteredToTaskRegistryIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskRegisteredToTaskRegistryIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type TaskSession

type TaskSession struct {
	Contract     *Task             // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

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

func (*TaskSession) TaskInfo

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

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

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

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

func (it *TaskTaskCreatedIterator) Close() error

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

func (*TaskTaskCreatedIterator) Error

func (it *TaskTaskCreatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaskTaskCreatedIterator) Next

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