fcp

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FcpTaskManagerABI = FcpTaskManagerMetaData.ABI

FcpTaskManagerABI is the input ABI used to generate the binding from. Deprecated: Use FcpTaskManagerMetaData.ABI instead.

View Source
var FcpTaskManagerBin = FcpTaskManagerMetaData.Bin

FcpTaskManagerBin is the compiled bytecode used for deploying new contracts. Deprecated: Use FcpTaskManagerMetaData.Bin instead.

View Source
var FcpTaskManagerMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"AddressEmptyCode\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ECDSAInvalidSignature\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"ECDSAInvalidSignatureLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"ECDSAInvalidSignatureS\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"ERC1967InvalidImplementation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERC1967NonPayable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FailedInnerCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UUPSUnauthorizedCallContext\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"slot\",\"type\":\"bytes32\"}],\"name\":\"UUPSUnsupportedProxiableUUID\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"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\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"refundAmount\",\"type\":\"uint256\"}],\"name\":\"RefundClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"refundAmount\",\"type\":\"uint256\"}],\"name\":\"RefundReleased\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rewardAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"payday\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"RewardClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rewardAmount\",\"type\":\"uint256\"}],\"name\":\"RewardReadyToClaim\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rewardAmount\",\"type\":\"uint256\"}],\"name\":\"RewardReleased\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"}],\"name\":\"TaskCompleted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"cpList\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"}],\"name\":\"TaskCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"addedDuration\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalDuration\",\"type\":\"uint256\"}],\"name\":\"TaskExtended\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"terminateTimestamp\",\"type\":\"uint256\"}],\"name\":\"TaskTerminated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"submitter\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"name\":\"URISubmitted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"UPGRADE_INTERFACE_VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"addAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"apWallet\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"arWallet\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"},{\"internalType\":\"address[]\",\"name\":\"cpAccountList\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateral\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"}],\"name\":\"assignTask\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"jobUid\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"claimRefund\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"claimableRefund\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"claimableReward\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"collateralContract\",\"outputs\":[{\"internalType\":\"contractCollateralV2\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"name\":\"collateralValue\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"}],\"name\":\"completeTask\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"},{\"internalType\":\"address[]\",\"name\":\"remainingCpList\",\"type\":\"address[]\"}],\"name\":\"completeTask\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"extraDuration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"extraReward\",\"type\":\"uint256\"}],\"name\":\"extendTask\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"}],\"name\":\"getTaskInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"},{\"internalType\":\"address[]\",\"name\":\"cpList\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateral\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"startTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"terminateTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"enumTaskManager.TaskStatus\",\"name\":\"taskStatus\",\"type\":\"uint8\"},{\"internalType\":\"enumCollateralV2.CollateralStatus\",\"name\":\"collateralStatus\",\"type\":\"uint8\"}],\"internalType\":\"structTaskManager.FullTaskInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"}],\"name\":\"getTaskReward\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"ar\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"ap\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"collateralContractAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"rewardTokenAddress\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"isAdmin\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"isSignatureUsed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"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\":[],\"name\":\"rewardToken\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newCollateralContract\",\"type\":\"address\"}],\"name\":\"setCollateralContract\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"name\":\"tasks\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"startTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"terminateTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"enumTaskManager.TaskStatus\",\"name\":\"taskStatus\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"terminateTime\",\"type\":\"uint256\"}],\"name\":\"terminateTask\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}]",
	Bin: "0x60a06040523073ffffffffffffffffffffffffffffffffffffffff1660809073ffffffffffffffffffffffffffffffffffffffff1681525034801561004357600080fd5b5061005261005760201b60201c565b6101c1565b600061006761015b60201b60201c565b90508060000160089054906101000a900460ff16156100b2576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff80168160000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff16146101585767ffffffffffffffff8160000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055507fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d267ffffffffffffffff60405161014f91906101a6565b60405180910390a15b50565b60007ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00905090565b600067ffffffffffffffff82169050919050565b6101a081610183565b82525050565b60006020820190506101bb6000830184610197565b92915050565b6080516151f56101ea60003960008181612790015281816127e501526129a001526151f56000f3fe6080604052600436106101c25760003560e01c8063715018a6116100f7578063d038d1ea11610095578063eef74fc711610064578063eef74fc71461065d578063f2fde38b14610686578063f7c618c1146106af578063f8c8765e146106da576101c2565b8063d038d1ea146105a5578063e941cd06146105ce578063e9503425146105f7578063ed7bb9d114610634576101c2565b8063a718a952116100d1578063a718a952146104d5578063a947898814610512578063ad3cb1cc1461054f578063c6e1c7c91461057a576101c2565b8063715018a61461046a5780638da5cb5b146104815780639a8afe9c146104ac576101c2565b80634f1ef2861161016457806358709cf21161013e57806358709cf21461039657806369ab84f2146103d95780636e1e063f146104045780637048027514610441576101c2565b80634f1ef2861461032457806352d1902d1461034057806354fd4d501461036b576101c2565b806324d7806c116101a057806324d7806c1461026a578063394c244b146102a75780633b97f5b3146102d05780634dc74d22146102f9576101c2565b80631150f0f3146101c75780631785f53c146102045780631b2094631461022d575b600080fd5b3480156101d357600080fd5b506101ee60048036038101906101e99190613885565b610703565b6040516101fb91906138e9565b60405180910390f35b34801561021057600080fd5b5061022b60048036038101906102269190613962565b610739565b005b34801561023957600080fd5b50610254600480360381019061024f9190613a30565b61079c565b6040516102619190613d6f565b60405180910390f35b34801561027657600080fd5b50610291600480360381019061028c9190613962565b610b16565b60405161029e91906138e9565b60405180910390f35b3480156102b357600080fd5b506102ce60048036038101906102c99190613a30565b610b36565b005b3480156102dc57600080fd5b506102f760048036038101906102f29190613dbd565b610d1a565b005b34801561030557600080fd5b5061030e610ee6565b60405161031b9190613e3b565b60405180910390f35b61033e60048036038101906103399190613e56565b610f0c565b005b34801561034c57600080fd5b50610355610f2b565b6040516103629190613ecb565b60405180910390f35b34801561037757600080fd5b50610380610f5e565b60405161038d9190613ef5565b60405180910390f35b3480156103a257600080fd5b506103bd60048036038101906103b89190613a30565b610f67565b6040516103d09796959493929190613f69565b60405180910390f35b3480156103e557600080fd5b506103ee611074565b6040516103fb9190613e3b565b60405180910390f35b34801561041057600080fd5b5061042b60048036038101906104269190613962565b61109a565b6040516104389190613ef5565b60405180910390f35b34801561044d57600080fd5b5061046860048036038101906104639190613962565b6110b2565b005b34801561047657600080fd5b5061047f611115565b005b34801561048d57600080fd5b50610496611129565b6040516104a39190613e3b565b60405180910390f35b3480156104b857600080fd5b506104d360048036038101906104ce91906140a7565b611161565b005b3480156104e157600080fd5b506104fc60048036038101906104f79190613a30565b611471565b6040516105099190613ef5565b60405180910390f35b34801561051e57600080fd5b506105396004803603810190610534919061416c565b61149f565b6040516105469190613ef5565b60405180910390f35b34801561055b57600080fd5b50610564611690565b60405161057191906141c8565b60405180910390f35b34801561058657600080fd5b5061058f6116c9565b60405161059c9190614249565b60405180910390f35b3480156105b157600080fd5b506105cc60048036038101906105c79190614264565b6116ed565b005b3480156105da57600080fd5b506105f560048036038101906105f09190613962565b611902565b005b34801561060357600080fd5b5061061e60048036038101906106199190613962565b61194d565b60405161062b9190613ef5565b60405180910390f35b34801561064057600080fd5b5061065b600480360381019061065691906142dc565b611965565b005b34801561066957600080fd5b50610684600480360381019061067f9190614338565b611bdf565b005b34801561069257600080fd5b506106ad60048036038101906106a89190613962565b611ecb565b005b3480156106bb57600080fd5b506106c4611f51565b6040516106d19190614412565b60405180910390f35b3480156106e657600080fd5b5061070160048036038101906106fc919061442d565b611f77565b005b6007818051602081018201805184825260208301602085012081835280955050505050506000915054906101000a900460ff1681565b61074161226c565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6107a46135f7565b60006005836040516107b691906144d0565b9081526020016040518091039020604051806101000160405290816000820180546107e090614516565b80601f016020809104026020016040519081016040528092919081815260200182805461080c90614516565b80156108595780601f1061082e57610100808354040283529160200191610859565b820191906000526020600020905b81548152906001019060200180831161083c57829003601f168201915b50505050508152602001600182018054806020026020016040519081016040528092919081815260200182805480156108e757602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001906001019080831161089d575b505050505081526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015481526020016004820154815260200160058201548152602001600682015481526020016007820160009054906101000a900460ff16600381111561099357610992613bcf565b5b60038111156109a5576109a4613bcf565b5b81525050905060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631b209463856040518263ffffffff1660e01b8152600401610a0791906141c8565b600060405180830381865afa158015610a24573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610a4d91906146b7565b905060405180610140016040528085815260200183602001518152602001836040015173ffffffffffffffffffffffffffffffffffffffff16815260200183606001518152602001600986604051610aa591906144d0565b9081526020016040518091039020548152602001836080015181526020018360a0015181526020018360c0015181526020018360e001516003811115610aee57610aed613bcf565b5b815260200182604001516002811115610b0a57610b09613bcf565b5b81525092505050919050565b60046020528060005260406000206000915054906101000a900460ff1681565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610bc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb990614772565b60405180910390fd5b60016003811115610bd657610bd5613bcf565b5b600582604051610be691906144d0565b908152602001604051809103902060070160009054906101000a900460ff166003811115610c1757610c16613bcf565b5b14610c57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4e906147de565b60405180910390fd5b6002600582604051610c6991906144d0565b908152602001604051809103902060070160006101000a81548160ff02191690836003811115610c9c57610c9b613bcf565b5b02179055506000600582604051610cb391906144d0565b9081526020016040518091039020600301541115610cd557610cd4816122f3565b5b80604051610ce391906144d0565b60405180910390207f2ea2764b7d80d0107c1d2c0210ead4a6fdee0f86235483a041d9faffbf87588060405160405180910390a250565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610da6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9d90614772565b60405180910390fd5b60016003811115610dba57610db9613bcf565b5b600584604051610dca91906144d0565b908152602001604051809103902060070160009054906101000a900460ff166003811115610dfb57610dfa613bcf565b5b03610ee15781600584604051610e1191906144d0565b90815260200160405180910390206006016000828254610e31919061482d565b9250508190555080600584604051610e4991906144d0565b90815260200160405180910390206003016000828254610e69919061482d565b9250508190555082604051610e7e91906144d0565b60405180910390207fd1fa78153d824892404081883d06a6a4d9dd70c117aff5a8bf61c8961ffc941c83600586604051610eb891906144d0565b908152602001604051809103902060060154604051610ed8929190614861565b60405180910390a25b505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610f1461278e565b610f1d82612874565b610f27828261287f565b5050565b6000610f3561299e565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b60006002905090565b600581805160208101820180518482526020830160208501208183528095505050505050600091509050806000018054610fa090614516565b80601f0160208091040260200160405190810160405280929190818152602001828054610fcc90614516565b80156110195780601f10610fee57610100808354040283529160200191611019565b820191906000526020600020905b815481529060010190602001808311610ffc57829003601f168201915b5050505050908060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060030154908060040154908060050154908060060154908060070160009054906101000a900460ff16905087565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60086020528060005260406000206000915090505481565b6110ba61226c565b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b61111d61226c565b6111276000612a25565b565b600080611134612afc565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166111ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e490614772565b60405180910390fd5b6000600381111561120157611200613bcf565b5b60058760405161121191906144d0565b908152602001604051809103902060070160009054906101000a900460ff16600381111561124257611241613bcf565b5b14611282576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611279906148d6565b60405180910390fd5b6040518061010001604052808781526020018681526020018573ffffffffffffffffffffffffffffffffffffffff16815260200161271061251c866112c791906148f6565b6112d19190614967565b815260200142815260200160008152602001828152602001600160038111156112fd576112fc613bcf565b5b81525060058760405161131091906144d0565b908152602001604051809103902060008201518160000190816113339190614b3a565b506020820151816001019080519060200190611350929190613684565b5060408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070160006101000a81548160ff021916908360038111156113eb576113ea613bcf565b5b02179055509050508160098760405161140491906144d0565b9081526020016040518091039020819055508560405161142491906144d0565b60405180910390207f1455e6e35b1b89916dd3024a995f41593b0b27f0e7cb61b253a69ba2c2d37951868686856040516114619493929190614c7b565b60405180910390a2505050505050565b6009818051602081018201805184825260208301602085012081835280955050505050506000915090505481565b6000806005846040516114b291906144d0565b908152602001604051809103902090506000805b826001018054905081101561155a578473ffffffffffffffffffffffffffffffffffffffff1683600101828154811061150257611501614cc7565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361154d57600191505b80806001019150506114c6565b508061156b5760009250505061168a565b6002600381111561157f5761157e613bcf565b5b8260070160009054906101000a900460ff1660038111156115a3576115a2613bcf565b5b036115c857816001018054905082600301546115bf9190614967565b9250505061168a565b6003808111156115db576115da613bcf565b5b8260070160009054906101000a900460ff1660038111156115ff576115fe613bcf565b5b036116835760008260040154836005015461161a9190614cf6565b905082600601548110611648578260010180549050836003015461163e9190614967565b935050505061168a565b8260010180549050836006015482856003015461166591906148f6565b61166f9190614967565b6116799190614967565b935050505061168a565b6000925050505b92915050565b6040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611779576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177090614772565b60405180910390fd5b6001600381111561178d5761178c613bcf565b5b60058360405161179d91906144d0565b908152602001604051809103902060070160009054906101000a900460ff1660038111156117ce576117cd613bcf565b5b1461180e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611805906147de565b60405180910390fd5b600260058360405161182091906144d0565b908152602001604051809103902060070160006101000a81548160ff0219169083600381111561185357611852613bcf565b5b02179055508160405161186691906144d0565b60405180910390207f2ea2764b7d80d0107c1d2c0210ead4a6fdee0f86235483a041d9faffbf87588060405160405180910390a260006005836040516118ac91906144d0565b908152602001604051809103902090506000816003015411156118fd5760008160010180549050835183600301546118e491906148f6565b6118ee9190614967565b90506118fb848483612b24565b505b505050565b61190a61226c565b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60066020528060005260406000206000915090505481565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166119f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e890614772565b60405180910390fd5b60016003811115611a0557611a04613bcf565b5b600583604051611a1591906144d0565b908152602001604051809103902060070160009054906101000a900460ff166003811115611a4657611a45613bcf565b5b14611a86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7d906147de565b60405180910390fd5b600582604051611a9691906144d0565b908152602001604051809103902060040154811015611aea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae190614d9c565b60405180910390fd5b6003600583604051611afc91906144d0565b908152602001604051809103902060070160006101000a81548160ff02191690836003811115611b2f57611b2e613bcf565b5b021790555080600583604051611b4591906144d0565b9081526020016040518091039020600501819055506000600583604051611b6c91906144d0565b9081526020016040518091039020600301541115611b8e57611b8d826122f3565b5b81604051611b9c91906144d0565b60405180910390207f58136d68c79c10fb55282098b850a5a1c041b28af29cb65ea657a824f5bd6a3682604051611bd39190613ef5565b60405180910390a25050565b60046000611c246040518060400160405280600b81526020017f636c61696d526566756e64000000000000000000000000000000000000000000815250868686612d31565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611cab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca290614e08565b60405180910390fd5b6000600584604051611cbd91906144d0565b908152602001604051809103902090503373ffffffffffffffffffffffffffffffffffffffff168160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611d5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5690614e74565b60405180910390fd5b6001600783604051611d719190614edb565b908152602001604051809103902060006101000a81548160ff021916908315150217905550600081600101805490508260030154611daf9190614967565b9050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1633846040518463ffffffff1660e01b8152600401611e3293929190614ef2565b6020604051808303816000875af1158015611e51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e759190614f55565b503373ffffffffffffffffffffffffffffffffffffffff167f358fe4192934d3bf28ae181feda1f4bd08ca67f5e2fad55582cce5eb67304ae982604051611ebc9190613ef5565b60405180910390a25050505050565b611ed361226c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611f455760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401611f3c9190613e3b565b60405180910390fd5b611f4e81612a25565b50565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000611f81612d8d565b905060008160000160089054906101000a900460ff1615905060008260000160009054906101000a900467ffffffffffffffff1690506000808267ffffffffffffffff16148015611fcf5750825b9050600060018367ffffffffffffffff16148015612004575060003073ffffffffffffffffffffffffffffffffffffffff163b145b905081158015612012575080155b15612049576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018560000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083156120995760018560000160086101000a81548160ff0219169083151502179055505b6120a233612db5565b6120aa612dc9565b866000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555088600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555087600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555083156122615760008560000160086101000a81548160ff0219169083151502179055507fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d260016040516122589190614fd1565b60405180910390a15b505050505050505050565b612274612dd3565b73ffffffffffffffffffffffffffffffffffffffff16612292611129565b73ffffffffffffffffffffffffffffffffffffffff16146122f1576122b5612dd3565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016122e89190613e3b565b60405180910390fd5b565b600060058260405161230591906144d0565b908152602001604051809103902090506002600381111561232957612328613bcf565b5b8160070160009054906101000a900460ff16600381111561234d5761234c613bcf565b5b036123ee576123e982826001018054806020026020016040519081016040528092919081815260200182805480156123da57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311612390575b50505050508360030154612b24565b61278a565b60038081111561240157612400613bcf565b5b8160070160009054906101000a900460ff16600381111561242557612424613bcf565b5b0361274e576000816004015482600501546124409190614cf6565b9050816006015481106124f057816006015490506124eb83836001018054806020026020016040519081016040528092919081815260200182805480156124dc57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311612492575b50505050508460030154612b24565b612748565b6000826006015482846003015461250791906148f6565b6125119190614967565b90506125a6848460010180548060200260200160405190810160405280929190818152602001828054801561259b57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311612551575b505050505083612b24565b60006127106113888386600301546125be9190614cf6565b6125c891906148f6565b6125d29190614967565b9050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168660020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b815260040161267993929190614ef2565b6020604051808303816000875af1158015612698573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126bc9190614f55565b508360020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168560405161270691906144d0565b60405180910390207fcfec56a786650756161aeb9096e9d671f5ff808d8920dc29e0c0cba3dfc2fbf88360405161273d9190613ef5565b60405180910390a350505b50612789565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127809061505e565b60405180910390fd5b5b5050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16148061283b57507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16612822612ddb565b73ffffffffffffffffffffffffffffffffffffffff1614155b15612872576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b61287c61226c565b50565b8173ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156128e757506040513d601f19601f820116820180604052508101906128e491906150aa565b60015b61292857816040517f4c9c8ce300000000000000000000000000000000000000000000000000000000815260040161291f9190613e3b565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b811461298f57806040517faa1d49a40000000000000000000000000000000000000000000000000000000081526004016129869190613ecb565b60405180910390fd5b6129998383612e32565b505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614612a23576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b6000612a2f612afc565b905060008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828260000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b60007f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300905090565b612b2d81612ea5565b6000825182612b3c9190614967565b905060005b8351811015612d2a576000848281518110612b5f57612b5e614cc7565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1663893d20e86040518163ffffffff1660e01b8152600401602060405180830381865afa158015612bb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bd591906150d7565b9050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683866040518463ffffffff1660e01b8152600401612c5893929190614ef2565b6020604051808303816000875af1158015612c77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c9b9190614f55565b50848281518110612caf57612cae614cc7565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1686604051612cdb91906144d0565b60405180910390207f6504a330caacb9bebf5a13c7a7356d83a2ff093b07185671301738c1761475d28386604051612d14929190615104565b60405180910390a3508080600101915050612b41565b5050505050565b600080858585604051602001612d499392919061512d565b6040516020818303038152906040528051906020012090506000612d6c82612f8f565b9050612d818482612fc590919063ffffffff16565b92505050949350505050565b60007ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00905090565b612dbd612ff1565b612dc681613031565b50565b612dd1612ff1565b565b600033905090565b6000612e097f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6130b7565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b612e3b826130c1565b8173ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a2600081511115612e9857612e92828261318e565b50612ea1565b612ea0613212565b5b5050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b8152600401612f4893929190614ef2565b6020604051808303816000875af1158015612f67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f8b9190614f55565b5050565b60007f19457468657265756d205369676e6564204d6573736167653a0a33320000000060005281601c52603c6000209050919050565b600080600080612fd5868661324f565b925092509250612fe582826132ab565b82935050505092915050565b612ff961340f565b61302f576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b613039612ff1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036130ab5760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016130a29190613e3b565b60405180910390fd5b6130b481612a25565b50565b6000819050919050565b60008173ffffffffffffffffffffffffffffffffffffffff163b0361311d57806040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016131149190613e3b565b60405180910390fd5b8061314a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6130b7565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000808473ffffffffffffffffffffffffffffffffffffffff16846040516131b89190614edb565b600060405180830381855af49150503d80600081146131f3576040519150601f19603f3d011682016040523d82523d6000602084013e6131f8565b606091505b509150915061320885838361342f565b9250505092915050565b600034111561324d576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b600080600060418451036132945760008060006020870151925060408701519150606087015160001a9050613286888285856134be565b9550955095505050506132a4565b60006002855160001b9250925092505b9250925092565b600060038111156132bf576132be613bcf565b5b8260038111156132d2576132d1613bcf565b5b031561340b57600160038111156132ec576132eb613bcf565b5b8260038111156132ff576132fe613bcf565b5b03613336576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600381111561334a57613349613bcf565b5b82600381111561335d5761335c613bcf565b5b036133a2578060001c6040517ffce698f70000000000000000000000000000000000000000000000000000000081526004016133999190613ef5565b60405180910390fd5b6003808111156133b5576133b4613bcf565b5b8260038111156133c8576133c7613bcf565b5b0361340a57806040517fd78bce0c0000000000000000000000000000000000000000000000000000000081526004016134019190613ecb565b60405180910390fd5b5b5050565b6000613419612d8d565b60000160089054906101000a900460ff16905090565b6060826134445761343f826135b2565b6134b6565b6000825114801561346c575060008473ffffffffffffffffffffffffffffffffffffffff163b145b156134ae57836040517f9996b3150000000000000000000000000000000000000000000000000000000081526004016134a59190613e3b565b60405180910390fd5b8190506134b7565b5b9392505050565b60008060007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08460001c11156134fe5760006003859250925092506135a8565b600060018888888860405160008152602001604052604051613523949392919061517a565b6020604051602081039080840390855afa158015613545573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361359957600060016000801b935093509350506135a8565b8060008060001b935093509350505b9450945094915050565b6000815111156135c55780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040518061014001604052806060815260200160608152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081526020016000815260200160008152602001600081526020016000600381111561366557613664613bcf565b5b81526020016000600281111561367e5761367d613bcf565b5b81525090565b8280548282559060005260206000209081019282156136fd579160200282015b828111156136fc5782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550916020019190600101906136a4565b5b50905061370a919061370e565b5090565b5b8082111561372757600081600090555060010161370f565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61379282613749565b810181811067ffffffffffffffff821117156137b1576137b061375a565b5b80604052505050565b60006137c461372b565b90506137d08282613789565b919050565b600067ffffffffffffffff8211156137f0576137ef61375a565b5b6137f982613749565b9050602081019050919050565b82818337600083830152505050565b6000613828613823846137d5565b6137ba565b90508281526020810184848401111561384457613843613744565b5b61384f848285613806565b509392505050565b600082601f83011261386c5761386b61373f565b5b813561387c848260208601613815565b91505092915050565b60006020828403121561389b5761389a613735565b5b600082013567ffffffffffffffff8111156138b9576138b861373a565b5b6138c584828501613857565b91505092915050565b60008115159050919050565b6138e3816138ce565b82525050565b60006020820190506138fe60008301846138da565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061392f82613904565b9050919050565b61393f81613924565b811461394a57600080fd5b50565b60008135905061395c81613936565b92915050565b60006020828403121561397857613977613735565b5b60006139868482850161394d565b91505092915050565b600067ffffffffffffffff8211156139aa576139a961375a565b5b6139b382613749565b9050602081019050919050565b60006139d36139ce8461398f565b6137ba565b9050828152602081018484840111156139ef576139ee613744565b5b6139fa848285613806565b509392505050565b600082601f830112613a1757613a1661373f565b5b8135613a278482602086016139c0565b91505092915050565b600060208284031215613a4657613a45613735565b5b600082013567ffffffffffffffff811115613a6457613a6361373a565b5b613a7084828501613a02565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613ab3578082015181840152602081019050613a98565b60008484015250505050565b6000613aca82613a79565b613ad48185613a84565b9350613ae4818560208601613a95565b613aed81613749565b840191505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613b2d81613924565b82525050565b6000613b3f8383613b24565b60208301905092915050565b6000602082019050919050565b6000613b6382613af8565b613b6d8185613b03565b9350613b7883613b14565b8060005b83811015613ba9578151613b908882613b33565b9750613b9b83613b4b565b925050600181019050613b7c565b5085935050505092915050565b6000819050919050565b613bc981613bb6565b82525050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60048110613c0f57613c0e613bcf565b5b50565b6000819050613c2082613bfe565b919050565b6000613c3082613c12565b9050919050565b613c4081613c25565b82525050565b60038110613c5757613c56613bcf565b5b50565b6000819050613c6882613c46565b919050565b6000613c7882613c5a565b9050919050565b613c8881613c6d565b82525050565b6000610140830160008301518482036000860152613cac8282613abf565b91505060208301518482036020860152613cc68282613b58565b9150506040830151613cdb6040860182613b24565b506060830151613cee6060860182613bc0565b506080830151613d016080860182613bc0565b5060a0830151613d1460a0860182613bc0565b5060c0830151613d2760c0860182613bc0565b5060e0830151613d3a60e0860182613bc0565b50610100830151613d4f610100860182613c37565b50610120830151613d64610120860182613c7f565b508091505092915050565b60006020820190508181036000830152613d898184613c8e565b905092915050565b613d9a81613bb6565b8114613da557600080fd5b50565b600081359050613db781613d91565b92915050565b600080600060608486031215613dd657613dd5613735565b5b600084013567ffffffffffffffff811115613df457613df361373a565b5b613e0086828701613a02565b9350506020613e1186828701613da8565b9250506040613e2286828701613da8565b9150509250925092565b613e3581613924565b82525050565b6000602082019050613e506000830184613e2c565b92915050565b60008060408385031215613e6d57613e6c613735565b5b6000613e7b8582860161394d565b925050602083013567ffffffffffffffff811115613e9c57613e9b61373a565b5b613ea885828601613857565b9150509250929050565b6000819050919050565b613ec581613eb2565b82525050565b6000602082019050613ee06000830184613ebc565b92915050565b613eef81613bb6565b82525050565b6000602082019050613f0a6000830184613ee6565b92915050565b600082825260208201905092915050565b6000613f2c82613a79565b613f368185613f10565b9350613f46818560208601613a95565b613f4f81613749565b840191505092915050565b613f6381613c25565b82525050565b600060e0820190508181036000830152613f83818a613f21565b9050613f926020830189613e2c565b613f9f6040830188613ee6565b613fac6060830187613ee6565b613fb96080830186613ee6565b613fc660a0830185613ee6565b613fd360c0830184613f5a565b98975050505050505050565b600067ffffffffffffffff821115613ffa57613ff961375a565b5b602082029050602081019050919050565b600080fd5b600061402361401e84613fdf565b6137ba565b905080838252602082019050602084028301858111156140465761404561400b565b5b835b8181101561406f578061405b888261394d565b845260208401935050602081019050614048565b5050509392505050565b600082601f83011261408e5761408d61373f565b5b813561409e848260208601614010565b91505092915050565b60008060008060008060c087890312156140c4576140c3613735565b5b600087013567ffffffffffffffff8111156140e2576140e161373a565b5b6140ee89828a01613a02565b965050602087013567ffffffffffffffff81111561410f5761410e61373a565b5b61411b89828a01614079565b955050604061412c89828a0161394d565b945050606061413d89828a01613da8565b935050608061414e89828a01613da8565b92505060a061415f89828a01613da8565b9150509295509295509295565b6000806040838503121561418357614182613735565b5b600083013567ffffffffffffffff8111156141a1576141a061373a565b5b6141ad85828601613a02565b92505060206141be8582860161394d565b9150509250929050565b600060208201905081810360008301526141e28184613f21565b905092915050565b6000819050919050565b600061420f61420a61420584613904565b6141ea565b613904565b9050919050565b6000614221826141f4565b9050919050565b600061423382614216565b9050919050565b61424381614228565b82525050565b600060208201905061425e600083018461423a565b92915050565b6000806040838503121561427b5761427a613735565b5b600083013567ffffffffffffffff8111156142995761429861373a565b5b6142a585828601613a02565b925050602083013567ffffffffffffffff8111156142c6576142c561373a565b5b6142d285828601614079565b9150509250929050565b600080604083850312156142f3576142f2613735565b5b600083013567ffffffffffffffff8111156143115761431061373a565b5b61431d85828601613a02565b925050602061432e85828601613da8565b9150509250929050565b60008060006060848603121561435157614350613735565b5b600084013567ffffffffffffffff81111561436f5761436e61373a565b5b61437b86828701613a02565b935050602084013567ffffffffffffffff81111561439c5761439b61373a565b5b6143a886828701613a02565b925050604084013567ffffffffffffffff8111156143c9576143c861373a565b5b6143d586828701613857565b9150509250925092565b60006143ea826141f4565b9050919050565b60006143fc826143df565b9050919050565b61440c816143f1565b82525050565b60006020820190506144276000830184614403565b92915050565b6000806000806080858703121561444757614446613735565b5b60006144558782880161394d565b94505060206144668782880161394d565b93505060406144778782880161394d565b92505060606144888782880161394d565b91505092959194509250565b600081905092915050565b60006144aa82613a79565b6144b48185614494565b93506144c4818560208601613a95565b80840191505092915050565b60006144dc828461449f565b915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061452e57607f821691505b602082108103614541576145406144e7565b5b50919050565b600080fd5b600080fd5b60008151905061456081613936565b92915050565b600061457961457484613fdf565b6137ba565b9050808382526020820190506020840283018581111561459c5761459b61400b565b5b835b818110156145c557806145b18882614551565b84526020840193505060208101905061459e565b5050509392505050565b600082601f8301126145e4576145e361373f565b5b81516145f4848260208601614566565b91505092915050565b60008151905061460c81613d91565b92915050565b6003811061461f57600080fd5b50565b60008151905061463181614612565b92915050565b60006060828403121561464d5761464c614547565b5b61465760606137ba565b9050600082015167ffffffffffffffff8111156146775761467661454c565b5b614683848285016145cf565b6000830152506020614697848285016145fd565b60208301525060406146ab84828501614622565b60408301525092915050565b6000602082840312156146cd576146cc613735565b5b600082015167ffffffffffffffff8111156146eb576146ea61373a565b5b6146f784828501614637565b91505092915050565b7f4f6e6c79207468652061646d696e2063616e2063616c6c20746869732066756e60008201527f6374696f6e2e0000000000000000000000000000000000000000000000000000602082015250565b600061475c602683613f10565b915061476782614700565b604082019050919050565b6000602082019050818103600083015261478b8161474f565b9050919050565b7f7461736b206973206e6f7420696e2070726f6772657373000000000000000000600082015250565b60006147c8601783613f10565b91506147d382614792565b602082019050919050565b600060208201905081810360008301526147f7816147bb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061483882613bb6565b915061484383613bb6565b925082820190508082111561485b5761485a6147fe565b5b92915050565b60006040820190506148766000830185613ee6565b6148836020830184613ee6565b9392505050565b7f7461736b55696420616c72656164792061737369676e65640000000000000000600082015250565b60006148c0601883613f10565b91506148cb8261488a565b602082019050919050565b600060208201905081810360008301526148ef816148b3565b9050919050565b600061490182613bb6565b915061490c83613bb6565b925082820261491a81613bb6565b91508282048414831517614931576149306147fe565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061497282613bb6565b915061497d83613bb6565b92508261498d5761498c614938565b5b828204905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026149fa7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826149bd565b614a0486836149bd565b95508019841693508086168417925050509392505050565b6000614a37614a32614a2d84613bb6565b6141ea565b613bb6565b9050919050565b6000819050919050565b614a5183614a1c565b614a65614a5d82614a3e565b8484546149ca565b825550505050565b600090565b614a7a614a6d565b614a85818484614a48565b505050565b5b81811015614aa957614a9e600082614a72565b600181019050614a8b565b5050565b601f821115614aee57614abf81614998565b614ac8846149ad565b81016020851015614ad7578190505b614aeb614ae3856149ad565b830182614a8a565b50505b505050565b600082821c905092915050565b6000614b1160001984600802614af3565b1980831691505092915050565b6000614b2a8383614b00565b9150826002028217905092915050565b614b4382613a79565b67ffffffffffffffff811115614b5c57614b5b61375a565b5b614b668254614516565b614b71828285614aad565b600060209050601f831160018114614ba45760008415614b92578287015190505b614b9c8582614b1e565b865550614c04565b601f198416614bb286614998565b60005b82811015614bda57848901518255600182019150602085019450602081019050614bb5565b86831015614bf75784890151614bf3601f891682614b00565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b6000614c2882613af8565b614c328185614c0c565b9350614c3d83613b14565b8060005b83811015614c6e578151614c558882613b33565b9750614c6083613b4b565b925050600181019050614c41565b5085935050505092915050565b60006080820190508181036000830152614c958187614c1d565b9050614ca46020830186613e2c565b614cb16040830185613ee6565b614cbe6060830184613ee6565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614d0182613bb6565b9150614d0c83613bb6565b9250828203905081811115614d2457614d236147fe565b5b92915050565b7f7465726d696e6174652074696d65206d7573742062652061667465722073746160008201527f72742074696d6500000000000000000000000000000000000000000000000000602082015250565b6000614d86602783613f10565b9150614d9182614d2a565b604082019050919050565b60006020820190508181036000830152614db581614d79565b9050919050565b7f7369676e617475726520766572696669636174696f6e206661696c6564000000600082015250565b6000614df2601d83613f10565b9150614dfd82614dbc565b602082019050919050565b60006020820190508181036000830152614e2181614de5565b9050919050565b7f73656e646572206973206e6f7420746865207573657200000000000000000000600082015250565b6000614e5e601683613f10565b9150614e6982614e28565b602082019050919050565b60006020820190508181036000830152614e8d81614e51565b9050919050565b600081519050919050565b600081905092915050565b6000614eb582614e94565b614ebf8185614e9f565b9350614ecf818560208601613a95565b80840191505092915050565b6000614ee78284614eaa565b915081905092915050565b6000606082019050614f076000830186613e2c565b614f146020830185613e2c565b614f216040830184613ee6565b949350505050565b614f32816138ce565b8114614f3d57600080fd5b50565b600081519050614f4f81614f29565b92915050565b600060208284031215614f6b57614f6a613735565b5b6000614f7984828501614f40565b91505092915050565b6000819050919050565b600067ffffffffffffffff82169050919050565b6000614fbb614fb6614fb184614f82565b6141ea565b614f8c565b9050919050565b614fcb81614fa0565b82525050565b6000602082019050614fe66000830184614fc2565b92915050565b7f7461736b206973206e6f7420636f6d706c65746564206e6f72207465726d696e60008201527f6174656400000000000000000000000000000000000000000000000000000000602082015250565b6000615048602483613f10565b915061505382614fec565b604082019050919050565b600060208201905081810360008301526150778161503b565b9050919050565b61508781613eb2565b811461509257600080fd5b50565b6000815190506150a48161507e565b92915050565b6000602082840312156150c0576150bf613735565b5b60006150ce84828501615095565b91505092915050565b6000602082840312156150ed576150ec613735565b5b60006150fb84828501614551565b91505092915050565b60006040820190506151196000830185613e2c565b6151266020830184613ee6565b9392505050565b6000615139828661449f565b9150615145828561449f565b9150615151828461449f565b9150819050949350505050565b600060ff82169050919050565b6151748161515e565b82525050565b600060808201905061518f6000830187613ebc565b61519c602083018661516b565b6151a96040830185613ebc565b6151b66060830184613ebc565b9594505050505056fea26469706673582212203c4d9188ccff137ec2764e038f73ee9e05c69f5d10a09879609b08ec6a7a7ee964736f6c63430008190033",
}

FcpTaskManagerMetaData contains all meta data concerning the FcpTaskManager contract.

View Source
var SwanCreditCollateralABI = SwanCreditCollateralMetaData.ABI

SwanCreditCollateralABI is the input ABI used to generate the binding from. Deprecated: Use SwanCreditCollateralMetaData.ABI instead.

View Source
var SwanCreditCollateralBin = SwanCreditCollateralMetaData.Bin

SwanCreditCollateralBin is the compiled bytecode used for deploying new contracts. Deprecated: Use SwanCreditCollateralMetaData.Bin instead.

View Source
var SwanCreditCollateralMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"AddressEmptyCode\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"ERC1967InvalidImplementation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERC1967NonPayable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FailedInnerCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UUPSUnauthorizedCallContext\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"slot\",\"type\":\"bytes32\"}],\"name\":\"UUPSUnsupportedProxiableUUID\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"cp\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"frozenAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"balanceAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"operation\",\"type\":\"string\"}],\"name\":\"CollateralAdjusted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"cp\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"}],\"name\":\"CollateralLocked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"cp\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"}],\"name\":\"CollateralSlashed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"enumSwanCreditCollateral.CollateralStatus\",\"name\":\"newStatus\",\"type\":\"uint8\"}],\"name\":\"CollateralStatusChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"cp\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"}],\"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\":\"fundingWallet\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"depositAmount\",\"type\":\"uint256\"}],\"name\":\"DepositLocked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"challenger\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"}],\"name\":\"DisputeProof\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"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\":\"amount\",\"type\":\"uint256\"}],\"name\":\"SlashedFundsIncreased\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"cpAccountAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"collateral\",\"type\":\"uint256\"}],\"name\":\"TaskCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"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\":\"collateralContratOwner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"slashfund\",\"type\":\"uint256\"}],\"name\":\"WithdrawSlash\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"UPGRADE_INTERFACE_VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"addAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"allowedToWithdraw\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"availableBalance\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"baseCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"collateralInfo\",\"outputs\":[{\"components\":[{\"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\":\"structSwanCreditCollateral.ContractInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"collateralRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"cpAddress\",\"type\":\"address\"}],\"name\":\"cpInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"},{\"internalType\":\"int256\",\"name\":\"availableBalance\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"lockedBalance\",\"type\":\"int256\"},{\"internalType\":\"string\",\"name\":\"status\",\"type\":\"string\"}],\"internalType\":\"structSwanCreditCollateral.CPInfoWithLockedBalance\",\"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\":\"cpAccount\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"depositLockedBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"}],\"name\":\"disputeProof\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"escrowBalance\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"}],\"name\":\"getTaskInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"address[]\",\"name\":\"cpList\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"collateral\",\"type\":\"uint256\"},{\"internalType\":\"enumSwanCreditCollateral.CollateralStatus\",\"name\":\"collateralStatus\",\"type\":\"uint8\"}],\"internalType\":\"structSwanCreditCollateral.Task\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"isAdmin\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"isSignatureUsed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"lockCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"lockedBalance\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"lockedCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"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\":[],\"name\":\"requestInterval\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_baseCollateral\",\"type\":\"uint256\"}],\"name\":\"setBaseCollateral\",\"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\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"slashAmount\",\"type\":\"uint256\"}],\"name\":\"slashCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"taskUid\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"cpAccount\",\"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\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"name\":\"tasks\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"collateral\",\"type\":\"uint256\"},{\"internalType\":\"enumSwanCreditCollateral.CollateralStatus\",\"name\":\"collateralStatus\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"unlockRequest\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"requestTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"unlockAmount\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isPending\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"cpAccount\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"withdrawAmount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawSlashedFunds\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x60a06040523073ffffffffffffffffffffffffffffffffffffffff1660809073ffffffffffffffffffffffffffffffffffffffff1681525034801561004357600080fd5b5061005261005760201b60201c565b6101c1565b600061006761015b60201b60201c565b90508060000160089054906101000a900460ff16156100b2576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff80168160000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff16146101585767ffffffffffffffff8160000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055507fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d267ffffffffffffffff60405161014f91906101a6565b60405180910390a15b50565b60007ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00905090565b600067ffffffffffffffff82169050919050565b6101a081610183565b82525050565b60006020820190506101bb6000830184610197565b92915050565b6080516149786101ea60003960008181612bdb01528181612c300152612deb01526149786000f3fe6080604052600436106102305760003560e01c8063704802751161012e578063ad3cb1cc116100ab578063e80d9dec1161006f578063e80d9dec14610867578063e9a9ee8314610890578063f2fde38b146108b9578063f3fef3a3146108e2578063f97348e11461090b57610230565b8063ad3cb1cc14610794578063b4eae1cb146107bf578063b587b82c146107ea578063ce3518aa14610813578063d27ca89b1461083c57610230565b806392bdf9ba116100f257806392bdf9ba146106755780639ae697bf146106b25780639b5ddf09146106ef578063a0821be31461071a578063a664c2161461075757610230565b806370480275146105ca578063715018a6146105f35780637f58a7e51461060a5780638129fc1c146106335780638da5cb5b1461064a57610230565b806347e7ef24116101bc57806354fd4d501161018057806354fd4d50146104d057806355af6353146104fb57806358709cf214610538578063666181a9146105765780636f99f15c1461059f57610230565b806347e7ef241461040a5780634f1ef2861461043357806352d1902d1461044f578063536f60701461047a57806353ad8720146104a557610230565b806324d7806c1161020357806324d7806c146103015780632894493f1461033e5780632d291cad146103675780633fe65177146103a457806347a7d107146103e157610230565b80631150f0f3146102355780631785f53c146102725780631b2094631461029b5780631d47a62d146102d8575b600080fd5b34801561024157600080fd5b5061025c600480360381019061025791906135cc565b61094a565b6040516102699190613630565b60405180910390f35b34801561027e57600080fd5b50610299600480360381019061029491906136a9565b610980565b005b3480156102a757600080fd5b506102c260048036038101906102bd9190613777565b6109e3565b6040516102cf919061395e565b60405180910390f35b3480156102e457600080fd5b506102ff60048036038101906102fa91906139ac565b610aee565b005b34801561030d57600080fd5b50610328600480360381019061032391906136a9565b6110b9565b6040516103359190613630565b60405180910390f35b34801561034a57600080fd5b50610365600480360381019061036091906139ec565b6110d9565b005b34801561037357600080fd5b5061038e600480360381019061038991906136a9565b611230565b60405161039b9190613630565b60405180910390f35b3480156103b057600080fd5b506103cb60048036038101906103c691906136a9565b611250565b6040516103d89190613a98565b60405180910390f35b3480156103ed57600080fd5b50610408600480360381019061040391906139ac565b6112f0565b005b34801561041657600080fd5b50610431600480360381019061042c91906139ac565b611548565b005b61044d60048036038101906104489190613aba565b6116b3565b005b34801561045b57600080fd5b506104646116d2565b6040516104719190613b2f565b60405180910390f35b34801561048657600080fd5b5061048f611705565b60405161049c9190613b59565b60405180910390f35b3480156104b157600080fd5b506104ba61170b565b6040516104c79190613bc9565b60405180910390f35b3480156104dc57600080fd5b506104e5611741565b6040516104f29190613b59565b60405180910390f35b34801561050757600080fd5b50610522600480360381019061051d91906136a9565b61174a565b60405161052f9190613bfd565b60405180910390f35b34801561054457600080fd5b5061055f600480360381019061055a9190613777565b611762565b60405161056d929190613c27565b60405180910390f35b34801561058257600080fd5b5061059d600480360381019061059891906136a9565b6117a9565b005b3480156105ab57600080fd5b506105b46117f5565b6040516105c19190613b59565b60405180910390f35b3480156105d657600080fd5b506105f160048036038101906105ec91906136a9565b6117fb565b005b3480156105ff57600080fd5b5061060861185e565b005b34801561061657600080fd5b50610631600480360381019061062c91906139ec565b611872565b005b34801561063f57600080fd5b50610648611908565b005b34801561065657600080fd5b5061065f611b15565b60405161066c9190613c5f565b60405180910390f35b34801561068157600080fd5b5061069c600480360381019061069791906136a9565b611b4d565b6040516106a99190613b59565b60405180910390f35b3480156106be57600080fd5b506106d960048036038101906106d491906136a9565b611b65565b6040516106e69190613bfd565b60405180910390f35b3480156106fb57600080fd5b50610704611b7d565b6040516107119190613b59565b60405180910390f35b34801561072657600080fd5b50610741600480360381019061073c91906136a9565b611b83565b60405161074e9190613bfd565b60405180910390f35b34801561076357600080fd5b5061077e600480360381019061077991906136a9565b611b9b565b60405161078b9190613d36565b60405180910390f35b3480156107a057600080fd5b506107a9611d26565b6040516107b69190613a98565b60405180910390f35b3480156107cb57600080fd5b506107d4611d5f565b6040516107e19190613b59565b60405180910390f35b3480156107f657600080fd5b50610811600480360381019061080c9190613d58565b611d65565b005b34801561081f57600080fd5b5061083a600480360381019061083591906139ec565b6123d1565b005b34801561084857600080fd5b506108516123e3565b60405161085e9190613b59565b60405180910390f35b34801561087357600080fd5b5061088e60048036038101906108899190613777565b6123e9565b005b34801561089c57600080fd5b506108b760048036038101906108b291906139ac565b612445565b005b3480156108c557600080fd5b506108e060048036038101906108db91906136a9565b6125a7565b005b3480156108ee57600080fd5b50610909600480360381019061090491906139ac565b61262d565b005b34801561091757600080fd5b50610932600480360381019061092d91906136a9565b6129b9565b60405161094193929190613dc7565b60405180910390f35b600b818051602081018201805184825260208301602085012081835280955050505050506000915054906101000a900460ff1681565b6109886129f0565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6109eb6133d9565b6005826040516109fb9190613e3a565b908152602001604051809103902060405180606001604052908160008201805480602002602001604051908101604052809291908181526020018280548015610a9957602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610a4f575b50505050508152602001600182015481526020016002820160009054906101000a900460ff166002811115610ad157610ad0613897565b5b6002811115610ae357610ae2613897565b5b815250509050919050565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610b7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7190613ec3565b60405180910390fd5b601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548113610c6a577fe69f9e72017aaa026e6e6b9186b7b1e197ec951c6c7df9805190316cb8e6f34b81604051610bef9190613b59565b60405180910390a180600080828254610c089190613f12565b9250508190555080601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610c5e9190613f46565b9250508190555061105e565b60008190506000601060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541315610da157601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600080828254610d079190613f12565b92505081905550601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481610d599190613f46565b90506000601060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b80600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205412610e915780600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610e369190613f46565b9250508190555080600080828254610e4e9190613f12565b925050819055507fe69f9e72017aaa026e6e6b9186b7b1e197ec951c6c7df9805190316cb8e6f34b82604051610e849190613b59565b60405180910390a161105c565b6000600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541315610fc357600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481610f249190613f46565b9050600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600080828254610f769190613f12565b925050819055506000600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b7fe69f9e72017aaa026e6e6b9186b7b1e197ec951c6c7df9805190316cb8e6f34b8183610ff09190613f89565b604051610ffd9190613b59565b60405180910390a180601060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546110549190613f46565b925050819055505b505b61106782612a77565b8173ffffffffffffffffffffffffffffffffffffffff167f403feb2cd85cc25c910fe59289105b583f08fe9e4335ebbb08c1851f47ff2d34826040516110ad9190613fe3565b60405180910390a25050565b60046020528060005260406000206000915054906101000a900460ff1681565b6110e16129f0565b806000541015611126576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111d90614083565b60405180910390fd5b806000808282546111379190613f89565b92505081905550600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b815260040161119b9291906140a3565b6020604051808303816000875af11580156111ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111de91906140f8565b503373ffffffffffffffffffffffffffffffffffffffff167fbfd9c82485e2178fcfd5c40379d8e66fe60acc50aa1ef4c50966431eb1e381cd826040516112259190613b59565b60405180910390a250565b600a6020528060005260406000206000915054906101000a900460ff1681565b6008602052806000526040600020600091509050805461126f90614154565b80601f016020809104026020016040519081016040528092919081815260200182805461129b90614154565b80156112e85780601f106112bd576101008083540402835291602001916112e8565b820191906000526020600020905b8154815290600101906020018083116112cb57829003601f168201915b505050505081565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661137c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137390613ec3565b60405180910390fd5b600081116113bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113b6906141d1565b60405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054811315611441576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114389061423d565b60405180910390fd5b80600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546114909190613f46565b9250508190555080601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546114e6919061425d565b925050819055506114f682612a77565b8173ffffffffffffffffffffffffffffffffffffffff167f5f3d004cf9164b95ed5dbf47d1f04018a4eabcb20b4320fe229ed92236ace6348260405161153c9190613fe3565b60405180910390a25050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b81526004016115a7939291906142a1565b6020604051808303816000875af11580156115c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ea91906140f8565b5080600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461163a919061425d565b925050819055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f628360405161169e9190613b59565b60405180910390a36116af82612a77565b5050565b6116bb612bd9565b6116c482612cbf565b6116ce8282612cca565b5050565b60006116dc612de9565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b600e5481565b61171361340c565b6040518060800160405280600054815260200160015481526020016002548152602001600354815250905090565b60006002905090565b600c6020528060005260406000206000915090505481565b6005818051602081018201805184825260208301602085012081835280955050505050506000915090508060010154908060020160009054906101000a900460ff16905082565b6117b16129f0565b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60005481565b6118036129f0565b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6118666129f0565b6118706000612e70565b565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166118fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118f590613ec3565b60405180910390fd5b8060018190555050565b6000611912612f47565b905060008160000160089054906101000a900460ff1615905060008260000160009054906101000a900467ffffffffffffffff1690506000808267ffffffffffffffff161480156119605750825b9050600060018367ffffffffffffffff16148015611995575060003073ffffffffffffffffffffffffffffffffffffffff163b145b9050811580156119a3575080155b156119da576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018560000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055508315611a2a5760018560000160086101000a81548160ff0219169083151502179055505b611a3333612f6f565b611a3b612f83565b6001600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600281905550600160038190555067016345785d8a00006001819055508315611b0e5760008560000160086101000a81548160ff0219169083151502179055507fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d26001604051611b059190614331565b60405180910390a15b5050505050565b600080611b20612f8d565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b60076020528060005260406000206000915090505481565b60106020528060005260406000206000915090505481565b60015481565b60066020528060005260406000206000915090505481565b611ba3613434565b60405180608001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548152602001601060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548152602001600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054611c9e90614154565b80601f0160208091040260200160405190810160405280929190818152602001828054611cca90614154565b8015611d175780601f10611cec57610100808354040283529160200191611d17565b820191906000526020600020905b815481529060010190602001808311611cfa57829003601f168201915b50505050508152509050919050565b6040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b60025481565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611df1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de890613ec3565b60405180910390fd5b6000600584604051611e039190613e3a565b90815260200160405180910390209050601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548213611f03577fe69f9e72017aaa026e6e6b9186b7b1e197ec951c6c7df9805190316cb8e6f34b82604051611e889190613b59565b60405180910390a181600080828254611ea19190613f12565b9250508190555081601060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ef79190613f46565b925050819055506122f7565b60008290506000601060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054131561203a57601060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600080828254611fa09190613f12565b92505081905550601060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481611ff29190613f46565b90506000601060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b80600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541261212a5780600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120cf9190613f46565b92505081905550806000808282546120e79190613f12565b925050819055507fe69f9e72017aaa026e6e6b9186b7b1e197ec951c6c7df9805190316cb8e6f34b8360405161211d9190613b59565b60405180910390a16122f5565b6000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054131561225c57600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054816121bd9190613f46565b9050600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460008082825461220f9190613f12565b925050819055506000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b7fe69f9e72017aaa026e6e6b9186b7b1e197ec951c6c7df9805190316cb8e6f34b81846122899190613f89565b6040516122969190613b59565b60405180910390a180601060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122ed9190613f46565b925050819055505b505b60028160020160006101000a81548160ff0219169083600281111561231f5761231e613897565b5b021790555061232d83612a77565b8273ffffffffffffffffffffffffffffffffffffffff167f403feb2cd85cc25c910fe59289105b583f08fe9e4335ebbb08c1851f47ff2d34838660405161237592919061434c565b60405180910390a28360405161238b9190613e3a565b60405180910390207f4a2ced9ada462e244851a86e998eb0b5bf558c2c9c6923b7f970ed2b19b073b060026040516123c3919061437c565b60405180910390a250505050565b6123d96129f0565b8060038190555050565b60035481565b806040516123f79190613e3a565b60405180910390203373ffffffffffffffffffffffffffffffffffffffff167faec1d412a3c1e4a13fc2a2e19ac38a5af192a9cf17b074fca8146a2d0655e0c360405160405180910390a350565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b81526004016124a4939291906142a1565b6020604051808303816000875af11580156124c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124e791906140f8565b5080601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612537919061425d565b925050819055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f18b5d63f2a4f63f9d724d087c9580fdb3c4501bf641ce600afe4b97282e738e28360405161259b9190613b59565b60405180910390a35050565b6125af6129f0565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036126215760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016126189190613c5f565b60405180910390fd5b61262a81612e70565b50565b60008111612670576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612667906143e3565b60405180910390fd5b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054136126f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126e99061444f565b60405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054811115612774576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161276b906144e1565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1663893d20e86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156127d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127fa9190614516565b73ffffffffffffffffffffffffffffffffffffffff1614612850576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612847906145b5565b60405180910390fd5b80600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461289f9190613f46565b92505081905550600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016129039291906140a3565b6020604051808303816000875af1158015612922573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061294691906140f8565b5061295082612a77565b8173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb836040516129ad9190613b59565b60405180910390a35050565b600d6020528060005260406000206000915090508060000154908060010154908060020160009054906101000a900460ff16905083565b6129f8612fb5565b73ffffffffffffffffffffffffffffffffffffffff16612a16611b15565b73ffffffffffffffffffffffffffffffffffffffff1614612a7557612a39612fb5565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401612a6c9190613c5f565b60405180910390fd5b565b600154600254612a8791906145d5565b601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205412612b53576040518060400160405280600981526020017f7a6b41756374696f6e0000000000000000000000000000000000000000000000815250600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209081612b4d91906147b9565b50612bd6565b6040518060400160405280600381526020017f4e53430000000000000000000000000000000000000000000000000000000000815250600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209081612bd491906147b9565b505b50565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161480612c8657507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16612c6d612fbd565b73ffffffffffffffffffffffffffffffffffffffff1614155b15612cbd576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b612cc76129f0565b50565b8173ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015612d3257506040513d601f19601f82011682018060405250810190612d2f91906148b7565b60015b612d7357816040517f4c9c8ce3000000000000000000000000000000000000000000000000000000008152600401612d6a9190613c5f565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b8114612dda57806040517faa1d49a4000000000000000000000000000000000000000000000000000000008152600401612dd19190613b2f565b60405180910390fd5b612de48383613014565b505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614612e6e576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b6000612e7a612f8d565b905060008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828260000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b60007ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00905090565b612f77613087565b612f80816130c7565b50565b612f8b613087565b565b60007f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300905090565b600033905090565b6000612feb7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61314d565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61301d82613157565b8173ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a260008151111561307a576130748282613224565b50613083565b6130826132a8565b5b5050565b61308f6132e5565b6130c5576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b6130cf613087565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036131415760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016131389190613c5f565b60405180910390fd5b61314a81612e70565b50565b6000819050919050565b60008173ffffffffffffffffffffffffffffffffffffffff163b036131b357806040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016131aa9190613c5f565b60405180910390fd5b806131e07f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61314d565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000808473ffffffffffffffffffffffffffffffffffffffff168460405161324e919061492b565b600060405180830381855af49150503d8060008114613289576040519150601f19603f3d011682016040523d82523d6000602084013e61328e565b606091505b509150915061329e858383613305565b9250505092915050565b60003411156132e3576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60006132ef612f47565b60000160089054906101000a900460ff16905090565b60608261331a5761331582613394565b61338c565b60008251148015613342575060008473ffffffffffffffffffffffffffffffffffffffff163b145b1561338457836040517f9996b31500000000000000000000000000000000000000000000000000000000815260040161337b9190613c5f565b60405180910390fd5b81905061338d565b5b9392505050565b6000815111156133a75780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604051806060016040528060608152602001600081526020016000600281111561340657613405613897565b5b81525090565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff1681526020016000815260200160008152602001606081525090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6134d982613490565b810181811067ffffffffffffffff821117156134f8576134f76134a1565b5b80604052505050565b600061350b613472565b905061351782826134d0565b919050565b600067ffffffffffffffff821115613537576135366134a1565b5b61354082613490565b9050602081019050919050565b82818337600083830152505050565b600061356f61356a8461351c565b613501565b90508281526020810184848401111561358b5761358a61348b565b5b61359684828561354d565b509392505050565b600082601f8301126135b3576135b2613486565b5b81356135c384826020860161355c565b91505092915050565b6000602082840312156135e2576135e161347c565b5b600082013567ffffffffffffffff811115613600576135ff613481565b5b61360c8482850161359e565b91505092915050565b60008115159050919050565b61362a81613615565b82525050565b60006020820190506136456000830184613621565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006136768261364b565b9050919050565b6136868161366b565b811461369157600080fd5b50565b6000813590506136a38161367d565b92915050565b6000602082840312156136bf576136be61347c565b5b60006136cd84828501613694565b91505092915050565b600067ffffffffffffffff8211156136f1576136f06134a1565b5b6136fa82613490565b9050602081019050919050565b600061371a613715846136d6565b613501565b9050828152602081018484840111156137365761373561348b565b5b61374184828561354d565b509392505050565b600082601f83011261375e5761375d613486565b5b813561376e848260208601613707565b91505092915050565b60006020828403121561378d5761378c61347c565b5b600082013567ffffffffffffffff8111156137ab576137aa613481565b5b6137b784828501613749565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6137f58161366b565b82525050565b600061380783836137ec565b60208301905092915050565b6000602082019050919050565b600061382b826137c0565b61383581856137cb565b9350613840836137dc565b8060005b8381101561387157815161385888826137fb565b975061386383613813565b925050600181019050613844565b5085935050505092915050565b6000819050919050565b6138918161387e565b82525050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600381106138d7576138d6613897565b5b50565b60008190506138e8826138c6565b919050565b60006138f8826138da565b9050919050565b613908816138ed565b82525050565b6000606083016000830151848203600086015261392b8282613820565b91505060208301516139406020860182613888565b50604083015161395360408601826138ff565b508091505092915050565b60006020820190508181036000830152613978818461390e565b905092915050565b6139898161387e565b811461399457600080fd5b50565b6000813590506139a681613980565b92915050565b600080604083850312156139c3576139c261347c565b5b60006139d185828601613694565b92505060206139e285828601613997565b9150509250929050565b600060208284031215613a0257613a0161347c565b5b6000613a1084828501613997565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613a53578082015181840152602081019050613a38565b60008484015250505050565b6000613a6a82613a19565b613a748185613a24565b9350613a84818560208601613a35565b613a8d81613490565b840191505092915050565b60006020820190508181036000830152613ab28184613a5f565b905092915050565b60008060408385031215613ad157613ad061347c565b5b6000613adf85828601613694565b925050602083013567ffffffffffffffff811115613b0057613aff613481565b5b613b0c8582860161359e565b9150509250929050565b6000819050919050565b613b2981613b16565b82525050565b6000602082019050613b446000830184613b20565b92915050565b613b538161387e565b82525050565b6000602082019050613b6e6000830184613b4a565b92915050565b608082016000820151613b8a6000850182613888565b506020820151613b9d6020850182613888565b506040820151613bb06040850182613888565b506060820151613bc36060850182613888565b50505050565b6000608082019050613bde6000830184613b74565b92915050565b6000819050919050565b613bf781613be4565b82525050565b6000602082019050613c126000830184613bee565b92915050565b613c21816138ed565b82525050565b6000604082019050613c3c6000830185613b4a565b613c496020830184613c18565b9392505050565b613c598161366b565b82525050565b6000602082019050613c746000830184613c50565b92915050565b613c8381613be4565b82525050565b600082825260208201905092915050565b6000613ca582613a19565b613caf8185613c89565b9350613cbf818560208601613a35565b613cc881613490565b840191505092915050565b6000608083016000830151613ceb60008601826137ec565b506020830151613cfe6020860182613c7a565b506040830151613d116040860182613c7a565b5060608301518482036060860152613d298282613c9a565b9150508091505092915050565b60006020820190508181036000830152613d508184613cd3565b905092915050565b600080600060608486031215613d7157613d7061347c565b5b600084013567ffffffffffffffff811115613d8f57613d8e613481565b5b613d9b86828701613749565b9350506020613dac86828701613694565b9250506040613dbd86828701613997565b9150509250925092565b6000606082019050613ddc6000830186613b4a565b613de96020830185613b4a565b613df66040830184613621565b949350505050565b600081905092915050565b6000613e1482613a19565b613e1e8185613dfe565b9350613e2e818560208601613a35565b80840191505092915050565b6000613e468284613e09565b915081905092915050565b7f4f6e6c79207468652061646d696e2063616e2063616c6c20746869732066756e60008201527f6374696f6e2e0000000000000000000000000000000000000000000000000000602082015250565b6000613ead602683613a24565b9150613eb882613e51565b604082019050919050565b60006020820190508181036000830152613edc81613ea0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613f1d8261387e565b9150613f288361387e565b9250828201905080821115613f4057613f3f613ee3565b5b92915050565b6000613f5182613be4565b9150613f5c83613be4565b9250828203905081811260008412168282136000851215161715613f8357613f82613ee3565b5b92915050565b6000613f948261387e565b9150613f9f8361387e565b9250828203905081811115613fb757613fb6613ee3565b5b92915050565b50565b6000613fcd600083613a24565b9150613fd882613fbd565b600082019050919050565b6000604082019050613ff86000830184613b4a565b818103602083015261400981613fc0565b905092915050565b7f576974686472617720616d6f756e7420616d6f756e742065786365656473207360008201527f6c617368656446756e6473000000000000000000000000000000000000000000602082015250565b600061406d602b83613a24565b915061407882614011565b604082019050919050565b6000602082019050818103600083015261409c81614060565b9050919050565b60006040820190506140b86000830185613c50565b6140c56020830184613b4a565b9392505050565b6140d581613615565b81146140e057600080fd5b50565b6000815190506140f2816140cc565b92915050565b60006020828403121561410e5761410d61347c565b5b600061411c848285016140e3565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061416c57607f821691505b60208210810361417f5761417e614125565b5b50919050565b7f616d6f756e74206d7573742062652067726561746572207468616e2030000000600082015250565b60006141bb601d83613a24565b91506141c682614185565b602082019050919050565b600060208201905081810360008301526141ea816141ae565b9050919050565b7f6e6f7420656e6f7567682062616c616e63650000000000000000000000000000600082015250565b6000614227601283613a24565b9150614232826141f1565b602082019050919050565b600060208201905081810360008301526142568161421a565b9050919050565b600061426882613be4565b915061427383613be4565b92508282019050828112156000831216838212600084121516171561429b5761429a613ee3565b5b92915050565b60006060820190506142b66000830186613c50565b6142c36020830185613c50565b6142d06040830184613b4a565b949350505050565b6000819050919050565b600067ffffffffffffffff82169050919050565b6000819050919050565b600061431b614316614311846142d8565b6142f6565b6142e2565b9050919050565b61432b81614300565b82525050565b60006020820190506143466000830184614322565b92915050565b60006040820190506143616000830185613b4a565b81810360208301526143738184613a5f565b90509392505050565b60006020820190506143916000830184613c18565b92915050565b7f776974686472617720616d6f756e74206d75737420626520706f736974697665600082015250565b60006143cd602083613a24565b91506143d882614397565b602082019050919050565b600060208201905081810360008301526143fc816143c0565b9050919050565b7f6e6f7468696e6720746f20776974686472617700000000000000000000000000600082015250565b6000614439601383613a24565b915061444482614403565b602082019050919050565b600060208201905081810360008301526144688161442c565b9050919050565b7f776974686472617720616d6f756e742067726561746572207468616e2061766160008201527f696c61626c652062616c616e6365000000000000000000000000000000000000602082015250565b60006144cb602e83613a24565b91506144d68261446f565b604082019050919050565b600060208201905081810360008301526144fa816144be565b9050919050565b6000815190506145108161367d565b92915050565b60006020828403121561452c5761452b61347c565b5b600061453a84828501614501565b91505092915050565b7f4f6e6c792043504163636f756e74206f776e65722063616e207769746864726160008201527f772074686520636f6c6c61746572616c2066756e647300000000000000000000602082015250565b600061459f603683613a24565b91506145aa82614543565b604082019050919050565b600060208201905081810360008301526145ce81614592565b9050919050565b60006145e08261387e565b91506145eb8361387e565b92508282026145f98161387e565b915082820484148315176146105761460f613ee3565b5b5092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026146797fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261463c565b614683868361463c565b95508019841693508086168417925050509392505050565b60006146b66146b16146ac8461387e565b6142f6565b61387e565b9050919050565b6000819050919050565b6146d08361469b565b6146e46146dc826146bd565b848454614649565b825550505050565b600090565b6146f96146ec565b6147048184846146c7565b505050565b5b818110156147285761471d6000826146f1565b60018101905061470a565b5050565b601f82111561476d5761473e81614617565b6147478461462c565b81016020851015614756578190505b61476a6147628561462c565b830182614709565b50505b505050565b600082821c905092915050565b600061479060001984600802614772565b1980831691505092915050565b60006147a9838361477f565b9150826002028217905092915050565b6147c282613a19565b67ffffffffffffffff8111156147db576147da6134a1565b5b6147e58254614154565b6147f082828561472c565b600060209050601f8311600181146148235760008415614811578287015190505b61481b858261479d565b865550614883565b601f19841661483186614617565b60005b8281101561485957848901518255600182019150602085019450602081019050614834565b868310156148765784890151614872601f89168261477f565b8355505b6001600288020188555050505b505050505050565b61489481613b16565b811461489f57600080fd5b50565b6000815190506148b18161488b565b92915050565b6000602082840312156148cd576148cc61347c565b5b60006148db848285016148a2565b91505092915050565b600081519050919050565b600081905092915050565b6000614905826148e4565b61490f81856148ef565b935061491f818560208601613a35565b80840191505092915050565b600061493782846148fa565b91508190509291505056fea264697066735822122021707fe08f2db41ed9dd5e268c1cf57c4f65de646a5cb848b078e21a1fb3de8f64736f6c63430008190033",
}

SwanCreditCollateralMetaData contains all meta data concerning the SwanCreditCollateral contract.

Functions

This section is empty.

Types

type FcpTaskManager added in v0.6.2

type FcpTaskManager struct {
	FcpTaskManagerCaller     // Read-only binding to the contract
	FcpTaskManagerTransactor // Write-only binding to the contract
	FcpTaskManagerFilterer   // Log filterer for contract events
}

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

func DeployFcpTaskManager added in v0.6.2

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

DeployFcpTaskManager deploys a new Ethereum contract, binding an instance of FcpTaskManager to it.

func NewFcpTaskManager added in v0.6.2

func NewFcpTaskManager(address common.Address, backend bind.ContractBackend) (*FcpTaskManager, error)

NewFcpTaskManager creates a new instance of FcpTaskManager, bound to a specific deployed contract.

type FcpTaskManagerCaller added in v0.6.2

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

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

func NewFcpTaskManagerCaller added in v0.6.2

func NewFcpTaskManagerCaller(address common.Address, caller bind.ContractCaller) (*FcpTaskManagerCaller, error)

NewFcpTaskManagerCaller creates a new read-only instance of FcpTaskManager, bound to a specific deployed contract.

func (*FcpTaskManagerCaller) ApWallet added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerCaller) ApWallet(opts *bind.CallOpts) (common.Address, error)

ApWallet is a free data retrieval call binding the contract method 0x4dc74d22.

Solidity: function apWallet() view returns(address)

func (*FcpTaskManagerCaller) ArWallet added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerCaller) ArWallet(opts *bind.CallOpts) (common.Address, error)

ArWallet is a free data retrieval call binding the contract method 0x69ab84f2.

Solidity: function arWallet() view returns(address)

func (*FcpTaskManagerCaller) ClaimableRefund added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerCaller) ClaimableRefund(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

ClaimableRefund is a free data retrieval call binding the contract method 0x6e1e063f.

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

func (*FcpTaskManagerCaller) ClaimableReward added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerCaller) ClaimableReward(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

ClaimableReward is a free data retrieval call binding the contract method 0xe9503425.

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

func (*FcpTaskManagerCaller) CollateralContract added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerCaller) CollateralContract(opts *bind.CallOpts) (common.Address, error)

CollateralContract is a free data retrieval call binding the contract method 0xc6e1c7c9.

Solidity: function collateralContract() view returns(address)

func (*FcpTaskManagerCaller) CollateralValue added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerCaller) CollateralValue(opts *bind.CallOpts, arg0 string) (*big.Int, error)

CollateralValue is a free data retrieval call binding the contract method 0xa718a952.

Solidity: function collateralValue(string ) view returns(uint256)

func (*FcpTaskManagerCaller) GetTaskInfo added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerCaller) GetTaskInfo(opts *bind.CallOpts, taskUid string) (TaskManagerFullTaskInfo, error)

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

Solidity: function getTaskInfo(string taskUid) view returns((string,address[],address,uint256,uint256,uint256,uint256,uint256,uint8,uint8))

func (*FcpTaskManagerCaller) GetTaskReward added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerCaller) GetTaskReward(opts *bind.CallOpts, taskUid string, cpAccount common.Address) (*big.Int, error)

GetTaskReward is a free data retrieval call binding the contract method 0xa9478988.

Solidity: function getTaskReward(string taskUid, address cpAccount) view returns(uint256)

func (*FcpTaskManagerCaller) IsAdmin added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerCaller) 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 (*FcpTaskManagerCaller) IsSignatureUsed added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerCaller) IsSignatureUsed(opts *bind.CallOpts, arg0 []byte) (bool, error)

IsSignatureUsed is a free data retrieval call binding the contract method 0x1150f0f3.

Solidity: function isSignatureUsed(bytes ) view returns(bool)

func (*FcpTaskManagerCaller) Owner added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerCaller) 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 (*FcpTaskManagerCaller) ProxiableUUID added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerCaller) ProxiableUUID(opts *bind.CallOpts) ([32]byte, error)

ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.

Solidity: function proxiableUUID() view returns(bytes32)

func (*FcpTaskManagerCaller) RewardToken added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerCaller) RewardToken(opts *bind.CallOpts) (common.Address, error)

RewardToken is a free data retrieval call binding the contract method 0xf7c618c1.

Solidity: function rewardToken() view returns(address)

func (*FcpTaskManagerCaller) Tasks added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerCaller) Tasks(opts *bind.CallOpts, arg0 string) (struct {
	TaskUid            string
	User               common.Address
	Reward             *big.Int
	StartTimestamp     *big.Int
	TerminateTimestamp *big.Int
	Duration           *big.Int
	TaskStatus         uint8
}, error)

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

Solidity: function tasks(string ) view returns(string taskUid, address user, uint256 reward, uint256 startTimestamp, uint256 terminateTimestamp, uint256 duration, uint8 taskStatus)

func (*FcpTaskManagerCaller) UPGRADEINTERFACEVERSION added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerCaller) UPGRADEINTERFACEVERSION(opts *bind.CallOpts) (string, error)

UPGRADEINTERFACEVERSION is a free data retrieval call binding the contract method 0xad3cb1cc.

Solidity: function UPGRADE_INTERFACE_VERSION() view returns(string)

func (*FcpTaskManagerCaller) Version added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerCaller) Version(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function version() pure returns(uint256)

type FcpTaskManagerCallerRaw added in v0.6.2

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

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

func (*FcpTaskManagerCallerRaw) Call added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerCallerRaw) 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 FcpTaskManagerCallerSession added in v0.6.2

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

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

func (*FcpTaskManagerCallerSession) ApWallet added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerCallerSession) ApWallet() (common.Address, error)

ApWallet is a free data retrieval call binding the contract method 0x4dc74d22.

Solidity: function apWallet() view returns(address)

func (*FcpTaskManagerCallerSession) ArWallet added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerCallerSession) ArWallet() (common.Address, error)

ArWallet is a free data retrieval call binding the contract method 0x69ab84f2.

Solidity: function arWallet() view returns(address)

func (*FcpTaskManagerCallerSession) ClaimableRefund added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerCallerSession) ClaimableRefund(arg0 common.Address) (*big.Int, error)

ClaimableRefund is a free data retrieval call binding the contract method 0x6e1e063f.

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

func (*FcpTaskManagerCallerSession) ClaimableReward added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerCallerSession) ClaimableReward(arg0 common.Address) (*big.Int, error)

ClaimableReward is a free data retrieval call binding the contract method 0xe9503425.

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

func (*FcpTaskManagerCallerSession) CollateralContract added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerCallerSession) CollateralContract() (common.Address, error)

CollateralContract is a free data retrieval call binding the contract method 0xc6e1c7c9.

Solidity: function collateralContract() view returns(address)

func (*FcpTaskManagerCallerSession) CollateralValue added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerCallerSession) CollateralValue(arg0 string) (*big.Int, error)

CollateralValue is a free data retrieval call binding the contract method 0xa718a952.

Solidity: function collateralValue(string ) view returns(uint256)

func (*FcpTaskManagerCallerSession) GetTaskInfo added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerCallerSession) GetTaskInfo(taskUid string) (TaskManagerFullTaskInfo, error)

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

Solidity: function getTaskInfo(string taskUid) view returns((string,address[],address,uint256,uint256,uint256,uint256,uint256,uint8,uint8))

func (*FcpTaskManagerCallerSession) GetTaskReward added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerCallerSession) GetTaskReward(taskUid string, cpAccount common.Address) (*big.Int, error)

GetTaskReward is a free data retrieval call binding the contract method 0xa9478988.

Solidity: function getTaskReward(string taskUid, address cpAccount) view returns(uint256)

func (*FcpTaskManagerCallerSession) IsAdmin added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerCallerSession) 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 (*FcpTaskManagerCallerSession) IsSignatureUsed added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerCallerSession) IsSignatureUsed(arg0 []byte) (bool, error)

IsSignatureUsed is a free data retrieval call binding the contract method 0x1150f0f3.

Solidity: function isSignatureUsed(bytes ) view returns(bool)

func (*FcpTaskManagerCallerSession) Owner added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*FcpTaskManagerCallerSession) ProxiableUUID added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerCallerSession) ProxiableUUID() ([32]byte, error)

ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.

Solidity: function proxiableUUID() view returns(bytes32)

func (*FcpTaskManagerCallerSession) RewardToken added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerCallerSession) RewardToken() (common.Address, error)

RewardToken is a free data retrieval call binding the contract method 0xf7c618c1.

Solidity: function rewardToken() view returns(address)

func (*FcpTaskManagerCallerSession) Tasks added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerCallerSession) Tasks(arg0 string) (struct {
	TaskUid            string
	User               common.Address
	Reward             *big.Int
	StartTimestamp     *big.Int
	TerminateTimestamp *big.Int
	Duration           *big.Int
	TaskStatus         uint8
}, error)

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

Solidity: function tasks(string ) view returns(string taskUid, address user, uint256 reward, uint256 startTimestamp, uint256 terminateTimestamp, uint256 duration, uint8 taskStatus)

func (*FcpTaskManagerCallerSession) UPGRADEINTERFACEVERSION added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerCallerSession) UPGRADEINTERFACEVERSION() (string, error)

UPGRADEINTERFACEVERSION is a free data retrieval call binding the contract method 0xad3cb1cc.

Solidity: function UPGRADE_INTERFACE_VERSION() view returns(string)

func (*FcpTaskManagerCallerSession) Version added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerCallerSession) Version() (*big.Int, error)

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

Solidity: function version() pure returns(uint256)

type FcpTaskManagerFilterer added in v0.6.2

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

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

func NewFcpTaskManagerFilterer added in v0.6.2

func NewFcpTaskManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*FcpTaskManagerFilterer, error)

NewFcpTaskManagerFilterer creates a new log filterer instance of FcpTaskManager, bound to a specific deployed contract.

func (*FcpTaskManagerFilterer) FilterInitialized added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) FilterInitialized(opts *bind.FilterOpts) (*FcpTaskManagerInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*FcpTaskManagerFilterer) FilterOwnershipTransferred added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*FcpTaskManagerOwnershipTransferredIterator, error)

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

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

func (*FcpTaskManagerFilterer) FilterRefundClaimed added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerFilterer) FilterRefundClaimed(opts *bind.FilterOpts, user []common.Address) (*FcpTaskManagerRefundClaimedIterator, error)

FilterRefundClaimed is a free log retrieval operation binding the contract event 0x358fe4192934d3bf28ae181feda1f4bd08ca67f5e2fad55582cce5eb67304ae9.

Solidity: event RefundClaimed(address indexed user, uint256 refundAmount)

func (*FcpTaskManagerFilterer) FilterRefundReleased added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerFilterer) FilterRefundReleased(opts *bind.FilterOpts, taskUid []string, user []common.Address) (*FcpTaskManagerRefundReleasedIterator, error)

FilterRefundReleased is a free log retrieval operation binding the contract event 0xcfec56a786650756161aeb9096e9d671f5ff808d8920dc29e0c0cba3dfc2fbf8.

Solidity: event RefundReleased(string indexed taskUid, address indexed user, uint256 refundAmount)

func (*FcpTaskManagerFilterer) FilterRewardClaimed added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerFilterer) FilterRewardClaimed(opts *bind.FilterOpts, cpAccount []common.Address) (*FcpTaskManagerRewardClaimedIterator, error)

FilterRewardClaimed is a free log retrieval operation binding the contract event 0xfa6e3650fbb9cb93f0c97f7ed33a03523852aba3d6984c217fec7d86f94feda9.

Solidity: event RewardClaimed(address indexed cpAccount, address owner, uint256 rewardAmount, uint64 payday, bytes signature)

func (*FcpTaskManagerFilterer) FilterRewardReadyToClaim added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerFilterer) FilterRewardReadyToClaim(opts *bind.FilterOpts, taskUid []string, cpAccount []common.Address) (*FcpTaskManagerRewardReadyToClaimIterator, error)

FilterRewardReadyToClaim is a free log retrieval operation binding the contract event 0xc6e13e9d3f986d21bea2ed9ba1704f00c0d92a5df49f8a4638dc9443929a150c.

Solidity: event RewardReadyToClaim(string indexed taskUid, address indexed cpAccount, uint256 rewardAmount)

func (*FcpTaskManagerFilterer) FilterRewardReleased added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) FilterRewardReleased(opts *bind.FilterOpts, taskUid []string, cpAccount []common.Address) (*FcpTaskManagerRewardReleasedIterator, error)

FilterRewardReleased is a free log retrieval operation binding the contract event 0x6504a330caacb9bebf5a13c7a7356d83a2ff093b07185671301738c1761475d2.

Solidity: event RewardReleased(string indexed taskUid, address indexed cpAccount, address beneficiary, uint256 rewardAmount)

func (*FcpTaskManagerFilterer) FilterTaskCompleted added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) FilterTaskCompleted(opts *bind.FilterOpts, taskUid []string) (*FcpTaskManagerTaskCompletedIterator, error)

FilterTaskCompleted is a free log retrieval operation binding the contract event 0x2ea2764b7d80d0107c1d2c0210ead4a6fdee0f86235483a041d9faffbf875880.

Solidity: event TaskCompleted(string indexed taskUid)

func (*FcpTaskManagerFilterer) FilterTaskCreated added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) FilterTaskCreated(opts *bind.FilterOpts, taskUid []string) (*FcpTaskManagerTaskCreatedIterator, error)

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

Solidity: event TaskCreated(string indexed taskUid, address[] cpList, address user, uint256 reward, uint256 duration)

func (*FcpTaskManagerFilterer) FilterTaskExtended added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) FilterTaskExtended(opts *bind.FilterOpts, taskUid []string) (*FcpTaskManagerTaskExtendedIterator, error)

FilterTaskExtended is a free log retrieval operation binding the contract event 0xd1fa78153d824892404081883d06a6a4d9dd70c117aff5a8bf61c8961ffc941c.

Solidity: event TaskExtended(string indexed taskUid, uint256 addedDuration, uint256 totalDuration)

func (*FcpTaskManagerFilterer) FilterTaskTerminated added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) FilterTaskTerminated(opts *bind.FilterOpts, taskUid []string) (*FcpTaskManagerTaskTerminatedIterator, error)

FilterTaskTerminated is a free log retrieval operation binding the contract event 0x58136d68c79c10fb55282098b850a5a1c041b28af29cb65ea657a824f5bd6a36.

Solidity: event TaskTerminated(string indexed taskUid, uint256 terminateTimestamp)

func (*FcpTaskManagerFilterer) FilterURISubmitted added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) FilterURISubmitted(opts *bind.FilterOpts, taskUid []string) (*FcpTaskManagerURISubmittedIterator, error)

FilterURISubmitted is a free log retrieval operation binding the contract event 0x2b9a4b6cdefbc34e0fe2cf2e7c540e2382e53f5a2d4e7dfc6f26dc1c3ed3fe66.

Solidity: event URISubmitted(string indexed taskUid, address submitter, string uri)

func (*FcpTaskManagerFilterer) FilterUpgraded added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*FcpTaskManagerUpgradedIterator, error)

FilterUpgraded is a free log retrieval operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*FcpTaskManagerFilterer) ParseInitialized added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) ParseInitialized(log types.Log) (*FcpTaskManagerInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*FcpTaskManagerFilterer) ParseOwnershipTransferred added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) ParseOwnershipTransferred(log types.Log) (*FcpTaskManagerOwnershipTransferred, error)

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

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

func (*FcpTaskManagerFilterer) ParseRefundClaimed added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerFilterer) ParseRefundClaimed(log types.Log) (*FcpTaskManagerRefundClaimed, error)

ParseRefundClaimed is a log parse operation binding the contract event 0x358fe4192934d3bf28ae181feda1f4bd08ca67f5e2fad55582cce5eb67304ae9.

Solidity: event RefundClaimed(address indexed user, uint256 refundAmount)

func (*FcpTaskManagerFilterer) ParseRefundReleased added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerFilterer) ParseRefundReleased(log types.Log) (*FcpTaskManagerRefundReleased, error)

ParseRefundReleased is a log parse operation binding the contract event 0xcfec56a786650756161aeb9096e9d671f5ff808d8920dc29e0c0cba3dfc2fbf8.

Solidity: event RefundReleased(string indexed taskUid, address indexed user, uint256 refundAmount)

func (*FcpTaskManagerFilterer) ParseRewardClaimed added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerFilterer) ParseRewardClaimed(log types.Log) (*FcpTaskManagerRewardClaimed, error)

ParseRewardClaimed is a log parse operation binding the contract event 0xfa6e3650fbb9cb93f0c97f7ed33a03523852aba3d6984c217fec7d86f94feda9.

Solidity: event RewardClaimed(address indexed cpAccount, address owner, uint256 rewardAmount, uint64 payday, bytes signature)

func (*FcpTaskManagerFilterer) ParseRewardReadyToClaim added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerFilterer) ParseRewardReadyToClaim(log types.Log) (*FcpTaskManagerRewardReadyToClaim, error)

ParseRewardReadyToClaim is a log parse operation binding the contract event 0xc6e13e9d3f986d21bea2ed9ba1704f00c0d92a5df49f8a4638dc9443929a150c.

Solidity: event RewardReadyToClaim(string indexed taskUid, address indexed cpAccount, uint256 rewardAmount)

func (*FcpTaskManagerFilterer) ParseRewardReleased added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) ParseRewardReleased(log types.Log) (*FcpTaskManagerRewardReleased, error)

ParseRewardReleased is a log parse operation binding the contract event 0x6504a330caacb9bebf5a13c7a7356d83a2ff093b07185671301738c1761475d2.

Solidity: event RewardReleased(string indexed taskUid, address indexed cpAccount, address beneficiary, uint256 rewardAmount)

func (*FcpTaskManagerFilterer) ParseTaskCompleted added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) ParseTaskCompleted(log types.Log) (*FcpTaskManagerTaskCompleted, error)

ParseTaskCompleted is a log parse operation binding the contract event 0x2ea2764b7d80d0107c1d2c0210ead4a6fdee0f86235483a041d9faffbf875880.

Solidity: event TaskCompleted(string indexed taskUid)

func (*FcpTaskManagerFilterer) ParseTaskCreated added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) ParseTaskCreated(log types.Log) (*FcpTaskManagerTaskCreated, error)

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

Solidity: event TaskCreated(string indexed taskUid, address[] cpList, address user, uint256 reward, uint256 duration)

func (*FcpTaskManagerFilterer) ParseTaskExtended added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) ParseTaskExtended(log types.Log) (*FcpTaskManagerTaskExtended, error)

ParseTaskExtended is a log parse operation binding the contract event 0xd1fa78153d824892404081883d06a6a4d9dd70c117aff5a8bf61c8961ffc941c.

Solidity: event TaskExtended(string indexed taskUid, uint256 addedDuration, uint256 totalDuration)

func (*FcpTaskManagerFilterer) ParseTaskTerminated added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) ParseTaskTerminated(log types.Log) (*FcpTaskManagerTaskTerminated, error)

ParseTaskTerminated is a log parse operation binding the contract event 0x58136d68c79c10fb55282098b850a5a1c041b28af29cb65ea657a824f5bd6a36.

Solidity: event TaskTerminated(string indexed taskUid, uint256 terminateTimestamp)

func (*FcpTaskManagerFilterer) ParseURISubmitted added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) ParseURISubmitted(log types.Log) (*FcpTaskManagerURISubmitted, error)

ParseURISubmitted is a log parse operation binding the contract event 0x2b9a4b6cdefbc34e0fe2cf2e7c540e2382e53f5a2d4e7dfc6f26dc1c3ed3fe66.

Solidity: event URISubmitted(string indexed taskUid, address submitter, string uri)

func (*FcpTaskManagerFilterer) ParseUpgraded added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) ParseUpgraded(log types.Log) (*FcpTaskManagerUpgraded, error)

ParseUpgraded is a log parse operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*FcpTaskManagerFilterer) WatchInitialized added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *FcpTaskManagerInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*FcpTaskManagerFilterer) WatchOwnershipTransferred added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *FcpTaskManagerOwnershipTransferred, 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 (*FcpTaskManagerFilterer) WatchRefundClaimed added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerFilterer) WatchRefundClaimed(opts *bind.WatchOpts, sink chan<- *FcpTaskManagerRefundClaimed, user []common.Address) (event.Subscription, error)

WatchRefundClaimed is a free log subscription operation binding the contract event 0x358fe4192934d3bf28ae181feda1f4bd08ca67f5e2fad55582cce5eb67304ae9.

Solidity: event RefundClaimed(address indexed user, uint256 refundAmount)

func (*FcpTaskManagerFilterer) WatchRefundReleased added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerFilterer) WatchRefundReleased(opts *bind.WatchOpts, sink chan<- *FcpTaskManagerRefundReleased, taskUid []string, user []common.Address) (event.Subscription, error)

WatchRefundReleased is a free log subscription operation binding the contract event 0xcfec56a786650756161aeb9096e9d671f5ff808d8920dc29e0c0cba3dfc2fbf8.

Solidity: event RefundReleased(string indexed taskUid, address indexed user, uint256 refundAmount)

func (*FcpTaskManagerFilterer) WatchRewardClaimed added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerFilterer) WatchRewardClaimed(opts *bind.WatchOpts, sink chan<- *FcpTaskManagerRewardClaimed, cpAccount []common.Address) (event.Subscription, error)

WatchRewardClaimed is a free log subscription operation binding the contract event 0xfa6e3650fbb9cb93f0c97f7ed33a03523852aba3d6984c217fec7d86f94feda9.

Solidity: event RewardClaimed(address indexed cpAccount, address owner, uint256 rewardAmount, uint64 payday, bytes signature)

func (*FcpTaskManagerFilterer) WatchRewardReadyToClaim added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerFilterer) WatchRewardReadyToClaim(opts *bind.WatchOpts, sink chan<- *FcpTaskManagerRewardReadyToClaim, taskUid []string, cpAccount []common.Address) (event.Subscription, error)

WatchRewardReadyToClaim is a free log subscription operation binding the contract event 0xc6e13e9d3f986d21bea2ed9ba1704f00c0d92a5df49f8a4638dc9443929a150c.

Solidity: event RewardReadyToClaim(string indexed taskUid, address indexed cpAccount, uint256 rewardAmount)

func (*FcpTaskManagerFilterer) WatchRewardReleased added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) WatchRewardReleased(opts *bind.WatchOpts, sink chan<- *FcpTaskManagerRewardReleased, taskUid []string, cpAccount []common.Address) (event.Subscription, error)

WatchRewardReleased is a free log subscription operation binding the contract event 0x6504a330caacb9bebf5a13c7a7356d83a2ff093b07185671301738c1761475d2.

Solidity: event RewardReleased(string indexed taskUid, address indexed cpAccount, address beneficiary, uint256 rewardAmount)

func (*FcpTaskManagerFilterer) WatchTaskCompleted added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) WatchTaskCompleted(opts *bind.WatchOpts, sink chan<- *FcpTaskManagerTaskCompleted, taskUid []string) (event.Subscription, error)

WatchTaskCompleted is a free log subscription operation binding the contract event 0x2ea2764b7d80d0107c1d2c0210ead4a6fdee0f86235483a041d9faffbf875880.

Solidity: event TaskCompleted(string indexed taskUid)

func (*FcpTaskManagerFilterer) WatchTaskCreated added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) WatchTaskCreated(opts *bind.WatchOpts, sink chan<- *FcpTaskManagerTaskCreated, taskUid []string) (event.Subscription, error)

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

Solidity: event TaskCreated(string indexed taskUid, address[] cpList, address user, uint256 reward, uint256 duration)

func (*FcpTaskManagerFilterer) WatchTaskExtended added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) WatchTaskExtended(opts *bind.WatchOpts, sink chan<- *FcpTaskManagerTaskExtended, taskUid []string) (event.Subscription, error)

WatchTaskExtended is a free log subscription operation binding the contract event 0xd1fa78153d824892404081883d06a6a4d9dd70c117aff5a8bf61c8961ffc941c.

Solidity: event TaskExtended(string indexed taskUid, uint256 addedDuration, uint256 totalDuration)

func (*FcpTaskManagerFilterer) WatchTaskTerminated added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) WatchTaskTerminated(opts *bind.WatchOpts, sink chan<- *FcpTaskManagerTaskTerminated, taskUid []string) (event.Subscription, error)

WatchTaskTerminated is a free log subscription operation binding the contract event 0x58136d68c79c10fb55282098b850a5a1c041b28af29cb65ea657a824f5bd6a36.

Solidity: event TaskTerminated(string indexed taskUid, uint256 terminateTimestamp)

func (*FcpTaskManagerFilterer) WatchURISubmitted added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) WatchURISubmitted(opts *bind.WatchOpts, sink chan<- *FcpTaskManagerURISubmitted, taskUid []string) (event.Subscription, error)

WatchURISubmitted is a free log subscription operation binding the contract event 0x2b9a4b6cdefbc34e0fe2cf2e7c540e2382e53f5a2d4e7dfc6f26dc1c3ed3fe66.

Solidity: event URISubmitted(string indexed taskUid, address submitter, string uri)

func (*FcpTaskManagerFilterer) WatchUpgraded added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *FcpTaskManagerUpgraded, implementation []common.Address) (event.Subscription, error)

WatchUpgraded is a free log subscription operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

type FcpTaskManagerInitialized added in v0.6.2

type FcpTaskManagerInitialized struct {
	Version uint64
	Raw     types.Log // Blockchain specific contextual infos
}

FcpTaskManagerInitialized represents a Initialized event raised by the FcpTaskManager contract.

type FcpTaskManagerInitializedIterator added in v0.6.2

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

FcpTaskManagerInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the FcpTaskManager contract.

func (*FcpTaskManagerInitializedIterator) Close added in v0.6.2

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

func (*FcpTaskManagerInitializedIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*FcpTaskManagerInitializedIterator) Next added in v0.6.2

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

type FcpTaskManagerOwnershipTransferred added in v0.6.2

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

FcpTaskManagerOwnershipTransferred represents a OwnershipTransferred event raised by the FcpTaskManager contract.

type FcpTaskManagerOwnershipTransferredIterator added in v0.6.2

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

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

func (*FcpTaskManagerOwnershipTransferredIterator) Close added in v0.6.2

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

func (*FcpTaskManagerOwnershipTransferredIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*FcpTaskManagerOwnershipTransferredIterator) Next added in v0.6.2

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

type FcpTaskManagerRaw added in v0.6.2

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

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

func (*FcpTaskManagerRaw) Call added in v0.6.2

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

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

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

func (*FcpTaskManagerRaw) Transfer added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerRaw) 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 FcpTaskManagerRefundClaimed added in v0.7.0

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

FcpTaskManagerRefundClaimed represents a RefundClaimed event raised by the FcpTaskManager contract.

type FcpTaskManagerRefundClaimedIterator added in v0.7.0

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

FcpTaskManagerRefundClaimedIterator is returned from FilterRefundClaimed and is used to iterate over the raw logs and unpacked data for RefundClaimed events raised by the FcpTaskManager contract.

func (*FcpTaskManagerRefundClaimedIterator) Close added in v0.7.0

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

func (*FcpTaskManagerRefundClaimedIterator) Error added in v0.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*FcpTaskManagerRefundClaimedIterator) Next added in v0.7.0

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

type FcpTaskManagerRefundReleased added in v0.7.0

type FcpTaskManagerRefundReleased struct {
	TaskUid      common.Hash
	User         common.Address
	RefundAmount *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

FcpTaskManagerRefundReleased represents a RefundReleased event raised by the FcpTaskManager contract.

type FcpTaskManagerRefundReleasedIterator added in v0.7.0

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

FcpTaskManagerRefundReleasedIterator is returned from FilterRefundReleased and is used to iterate over the raw logs and unpacked data for RefundReleased events raised by the FcpTaskManager contract.

func (*FcpTaskManagerRefundReleasedIterator) Close added in v0.7.0

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

func (*FcpTaskManagerRefundReleasedIterator) Error added in v0.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*FcpTaskManagerRefundReleasedIterator) Next added in v0.7.0

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

type FcpTaskManagerRewardClaimed added in v0.7.0

type FcpTaskManagerRewardClaimed struct {
	CpAccount    common.Address
	Owner        common.Address
	RewardAmount *big.Int
	Payday       uint64
	Signature    []byte
	Raw          types.Log // Blockchain specific contextual infos
}

FcpTaskManagerRewardClaimed represents a RewardClaimed event raised by the FcpTaskManager contract.

type FcpTaskManagerRewardClaimedIterator added in v0.7.0

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

FcpTaskManagerRewardClaimedIterator is returned from FilterRewardClaimed and is used to iterate over the raw logs and unpacked data for RewardClaimed events raised by the FcpTaskManager contract.

func (*FcpTaskManagerRewardClaimedIterator) Close added in v0.7.0

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

func (*FcpTaskManagerRewardClaimedIterator) Error added in v0.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*FcpTaskManagerRewardClaimedIterator) Next added in v0.7.0

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

type FcpTaskManagerRewardReadyToClaim added in v0.7.0

type FcpTaskManagerRewardReadyToClaim struct {
	TaskUid      common.Hash
	CpAccount    common.Address
	RewardAmount *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

FcpTaskManagerRewardReadyToClaim represents a RewardReadyToClaim event raised by the FcpTaskManager contract.

type FcpTaskManagerRewardReadyToClaimIterator added in v0.7.0

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

FcpTaskManagerRewardReadyToClaimIterator is returned from FilterRewardReadyToClaim and is used to iterate over the raw logs and unpacked data for RewardReadyToClaim events raised by the FcpTaskManager contract.

func (*FcpTaskManagerRewardReadyToClaimIterator) Close added in v0.7.0

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

func (*FcpTaskManagerRewardReadyToClaimIterator) Error added in v0.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*FcpTaskManagerRewardReadyToClaimIterator) Next added in v0.7.0

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

type FcpTaskManagerRewardReleased added in v0.6.2

type FcpTaskManagerRewardReleased struct {
	TaskUid      common.Hash
	CpAccount    common.Address
	Beneficiary  common.Address
	RewardAmount *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

FcpTaskManagerRewardReleased represents a RewardReleased event raised by the FcpTaskManager contract.

type FcpTaskManagerRewardReleasedIterator added in v0.6.2

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

FcpTaskManagerRewardReleasedIterator is returned from FilterRewardReleased and is used to iterate over the raw logs and unpacked data for RewardReleased events raised by the FcpTaskManager contract.

func (*FcpTaskManagerRewardReleasedIterator) Close added in v0.6.2

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

func (*FcpTaskManagerRewardReleasedIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*FcpTaskManagerRewardReleasedIterator) Next added in v0.6.2

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

type FcpTaskManagerSession added in v0.6.2

type FcpTaskManagerSession struct {
	Contract     *FcpTaskManager   // 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
}

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

func (*FcpTaskManagerSession) AddAdmin added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerSession) 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 (*FcpTaskManagerSession) ApWallet added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerSession) ApWallet() (common.Address, error)

ApWallet is a free data retrieval call binding the contract method 0x4dc74d22.

Solidity: function apWallet() view returns(address)

func (*FcpTaskManagerSession) ArWallet added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerSession) ArWallet() (common.Address, error)

ArWallet is a free data retrieval call binding the contract method 0x69ab84f2.

Solidity: function arWallet() view returns(address)

func (*FcpTaskManagerSession) AssignTask added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerSession) AssignTask(taskUid string, cpAccountList []common.Address, user common.Address, reward *big.Int, collateral *big.Int, duration *big.Int) (*types.Transaction, error)

AssignTask is a paid mutator transaction binding the contract method 0x9a8afe9c.

Solidity: function assignTask(string taskUid, address[] cpAccountList, address user, uint256 reward, uint256 collateral, uint256 duration) returns()

func (*FcpTaskManagerSession) ClaimRefund added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerSession) ClaimRefund(taskUid string, jobUid string, signature []byte) (*types.Transaction, error)

ClaimRefund is a paid mutator transaction binding the contract method 0xeef74fc7.

Solidity: function claimRefund(string taskUid, string jobUid, bytes signature) returns()

func (*FcpTaskManagerSession) ClaimableRefund added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerSession) ClaimableRefund(arg0 common.Address) (*big.Int, error)

ClaimableRefund is a free data retrieval call binding the contract method 0x6e1e063f.

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

func (*FcpTaskManagerSession) ClaimableReward added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerSession) ClaimableReward(arg0 common.Address) (*big.Int, error)

ClaimableReward is a free data retrieval call binding the contract method 0xe9503425.

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

func (*FcpTaskManagerSession) CollateralContract added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerSession) CollateralContract() (common.Address, error)

CollateralContract is a free data retrieval call binding the contract method 0xc6e1c7c9.

Solidity: function collateralContract() view returns(address)

func (*FcpTaskManagerSession) CollateralValue added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerSession) CollateralValue(arg0 string) (*big.Int, error)

CollateralValue is a free data retrieval call binding the contract method 0xa718a952.

Solidity: function collateralValue(string ) view returns(uint256)

func (*FcpTaskManagerSession) CompleteTask added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerSession) CompleteTask(taskUid string) (*types.Transaction, error)

CompleteTask is a paid mutator transaction binding the contract method 0x394c244b.

Solidity: function completeTask(string taskUid) returns()

func (*FcpTaskManagerSession) CompleteTask0 added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerSession) CompleteTask0(taskUid string, remainingCpList []common.Address) (*types.Transaction, error)

CompleteTask0 is a paid mutator transaction binding the contract method 0xd038d1ea.

Solidity: function completeTask(string taskUid, address[] remainingCpList) returns()

func (*FcpTaskManagerSession) ExtendTask added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerSession) ExtendTask(taskUid string, extraDuration *big.Int, extraReward *big.Int) (*types.Transaction, error)

ExtendTask is a paid mutator transaction binding the contract method 0x3b97f5b3.

Solidity: function extendTask(string taskUid, uint256 extraDuration, uint256 extraReward) returns()

func (*FcpTaskManagerSession) GetTaskInfo added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerSession) GetTaskInfo(taskUid string) (TaskManagerFullTaskInfo, error)

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

Solidity: function getTaskInfo(string taskUid) view returns((string,address[],address,uint256,uint256,uint256,uint256,uint256,uint8,uint8))

func (*FcpTaskManagerSession) GetTaskReward added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerSession) GetTaskReward(taskUid string, cpAccount common.Address) (*big.Int, error)

GetTaskReward is a free data retrieval call binding the contract method 0xa9478988.

Solidity: function getTaskReward(string taskUid, address cpAccount) view returns(uint256)

func (*FcpTaskManagerSession) Initialize added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerSession) Initialize(ar common.Address, ap common.Address, collateralContractAddress common.Address, rewardTokenAddress common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xf8c8765e.

Solidity: function initialize(address ar, address ap, address collateralContractAddress, address rewardTokenAddress) returns()

func (*FcpTaskManagerSession) IsAdmin added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerSession) 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 (*FcpTaskManagerSession) IsSignatureUsed added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerSession) IsSignatureUsed(arg0 []byte) (bool, error)

IsSignatureUsed is a free data retrieval call binding the contract method 0x1150f0f3.

Solidity: function isSignatureUsed(bytes ) view returns(bool)

func (*FcpTaskManagerSession) Owner added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*FcpTaskManagerSession) ProxiableUUID added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerSession) ProxiableUUID() ([32]byte, error)

ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.

Solidity: function proxiableUUID() view returns(bytes32)

func (*FcpTaskManagerSession) RemoveAdmin added in v0.6.2

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

func (_FcpTaskManager *FcpTaskManagerSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*FcpTaskManagerSession) RewardToken added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerSession) RewardToken() (common.Address, error)

RewardToken is a free data retrieval call binding the contract method 0xf7c618c1.

Solidity: function rewardToken() view returns(address)

func (*FcpTaskManagerSession) SetCollateralContract added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerSession) SetCollateralContract(newCollateralContract common.Address) (*types.Transaction, error)

SetCollateralContract is a paid mutator transaction binding the contract method 0xe941cd06.

Solidity: function setCollateralContract(address newCollateralContract) returns()

func (*FcpTaskManagerSession) Tasks added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerSession) Tasks(arg0 string) (struct {
	TaskUid            string
	User               common.Address
	Reward             *big.Int
	StartTimestamp     *big.Int
	TerminateTimestamp *big.Int
	Duration           *big.Int
	TaskStatus         uint8
}, error)

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

Solidity: function tasks(string ) view returns(string taskUid, address user, uint256 reward, uint256 startTimestamp, uint256 terminateTimestamp, uint256 duration, uint8 taskStatus)

func (*FcpTaskManagerSession) TerminateTask added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerSession) TerminateTask(taskUid string, terminateTime *big.Int) (*types.Transaction, error)

TerminateTask is a paid mutator transaction binding the contract method 0xed7bb9d1.

Solidity: function terminateTask(string taskUid, uint256 terminateTime) returns()

func (*FcpTaskManagerSession) TransferOwnership added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerSession) 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 (*FcpTaskManagerSession) UPGRADEINTERFACEVERSION added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerSession) UPGRADEINTERFACEVERSION() (string, error)

UPGRADEINTERFACEVERSION is a free data retrieval call binding the contract method 0xad3cb1cc.

Solidity: function UPGRADE_INTERFACE_VERSION() view returns(string)

func (*FcpTaskManagerSession) UpgradeToAndCall added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)

UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.

Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()

func (*FcpTaskManagerSession) Version added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerSession) Version() (*big.Int, error)

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

Solidity: function version() pure returns(uint256)

type FcpTaskManagerTaskCompleted added in v0.6.2

type FcpTaskManagerTaskCompleted struct {
	TaskUid common.Hash
	Raw     types.Log // Blockchain specific contextual infos
}

FcpTaskManagerTaskCompleted represents a TaskCompleted event raised by the FcpTaskManager contract.

type FcpTaskManagerTaskCompletedIterator added in v0.6.2

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

FcpTaskManagerTaskCompletedIterator is returned from FilterTaskCompleted and is used to iterate over the raw logs and unpacked data for TaskCompleted events raised by the FcpTaskManager contract.

func (*FcpTaskManagerTaskCompletedIterator) Close added in v0.6.2

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

func (*FcpTaskManagerTaskCompletedIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*FcpTaskManagerTaskCompletedIterator) Next added in v0.6.2

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

type FcpTaskManagerTaskCreated added in v0.6.2

type FcpTaskManagerTaskCreated struct {
	TaskUid  common.Hash
	CpList   []common.Address
	User     common.Address
	Reward   *big.Int
	Duration *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

FcpTaskManagerTaskCreated represents a TaskCreated event raised by the FcpTaskManager contract.

type FcpTaskManagerTaskCreatedIterator added in v0.6.2

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

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

func (*FcpTaskManagerTaskCreatedIterator) Close added in v0.6.2

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

func (*FcpTaskManagerTaskCreatedIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*FcpTaskManagerTaskCreatedIterator) Next added in v0.6.2

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

type FcpTaskManagerTaskExtended added in v0.6.2

type FcpTaskManagerTaskExtended struct {
	TaskUid       common.Hash
	AddedDuration *big.Int
	TotalDuration *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

FcpTaskManagerTaskExtended represents a TaskExtended event raised by the FcpTaskManager contract.

type FcpTaskManagerTaskExtendedIterator added in v0.6.2

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

FcpTaskManagerTaskExtendedIterator is returned from FilterTaskExtended and is used to iterate over the raw logs and unpacked data for TaskExtended events raised by the FcpTaskManager contract.

func (*FcpTaskManagerTaskExtendedIterator) Close added in v0.6.2

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

func (*FcpTaskManagerTaskExtendedIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*FcpTaskManagerTaskExtendedIterator) Next added in v0.6.2

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

type FcpTaskManagerTaskTerminated added in v0.6.2

type FcpTaskManagerTaskTerminated struct {
	TaskUid            common.Hash
	TerminateTimestamp *big.Int
	Raw                types.Log // Blockchain specific contextual infos
}

FcpTaskManagerTaskTerminated represents a TaskTerminated event raised by the FcpTaskManager contract.

type FcpTaskManagerTaskTerminatedIterator added in v0.6.2

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

FcpTaskManagerTaskTerminatedIterator is returned from FilterTaskTerminated and is used to iterate over the raw logs and unpacked data for TaskTerminated events raised by the FcpTaskManager contract.

func (*FcpTaskManagerTaskTerminatedIterator) Close added in v0.6.2

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

func (*FcpTaskManagerTaskTerminatedIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*FcpTaskManagerTaskTerminatedIterator) Next added in v0.6.2

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

type FcpTaskManagerTransactor added in v0.6.2

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

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

func NewFcpTaskManagerTransactor added in v0.6.2

func NewFcpTaskManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*FcpTaskManagerTransactor, error)

NewFcpTaskManagerTransactor creates a new write-only instance of FcpTaskManager, bound to a specific deployed contract.

func (*FcpTaskManagerTransactor) AddAdmin added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerTransactor) 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 (*FcpTaskManagerTransactor) AssignTask added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerTransactor) AssignTask(opts *bind.TransactOpts, taskUid string, cpAccountList []common.Address, user common.Address, reward *big.Int, collateral *big.Int, duration *big.Int) (*types.Transaction, error)

AssignTask is a paid mutator transaction binding the contract method 0x9a8afe9c.

Solidity: function assignTask(string taskUid, address[] cpAccountList, address user, uint256 reward, uint256 collateral, uint256 duration) returns()

func (*FcpTaskManagerTransactor) ClaimRefund added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerTransactor) ClaimRefund(opts *bind.TransactOpts, taskUid string, jobUid string, signature []byte) (*types.Transaction, error)

ClaimRefund is a paid mutator transaction binding the contract method 0xeef74fc7.

Solidity: function claimRefund(string taskUid, string jobUid, bytes signature) returns()

func (*FcpTaskManagerTransactor) CompleteTask added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerTransactor) CompleteTask(opts *bind.TransactOpts, taskUid string) (*types.Transaction, error)

CompleteTask is a paid mutator transaction binding the contract method 0x394c244b.

Solidity: function completeTask(string taskUid) returns()

func (*FcpTaskManagerTransactor) CompleteTask0 added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerTransactor) CompleteTask0(opts *bind.TransactOpts, taskUid string, remainingCpList []common.Address) (*types.Transaction, error)

CompleteTask0 is a paid mutator transaction binding the contract method 0xd038d1ea.

Solidity: function completeTask(string taskUid, address[] remainingCpList) returns()

func (*FcpTaskManagerTransactor) ExtendTask added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerTransactor) ExtendTask(opts *bind.TransactOpts, taskUid string, extraDuration *big.Int, extraReward *big.Int) (*types.Transaction, error)

ExtendTask is a paid mutator transaction binding the contract method 0x3b97f5b3.

Solidity: function extendTask(string taskUid, uint256 extraDuration, uint256 extraReward) returns()

func (*FcpTaskManagerTransactor) Initialize added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerTransactor) Initialize(opts *bind.TransactOpts, ar common.Address, ap common.Address, collateralContractAddress common.Address, rewardTokenAddress common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xf8c8765e.

Solidity: function initialize(address ar, address ap, address collateralContractAddress, address rewardTokenAddress) returns()

func (*FcpTaskManagerTransactor) RemoveAdmin added in v0.6.2

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

func (_FcpTaskManager *FcpTaskManagerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*FcpTaskManagerTransactor) SetCollateralContract added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerTransactor) SetCollateralContract(opts *bind.TransactOpts, newCollateralContract common.Address) (*types.Transaction, error)

SetCollateralContract is a paid mutator transaction binding the contract method 0xe941cd06.

Solidity: function setCollateralContract(address newCollateralContract) returns()

func (*FcpTaskManagerTransactor) TerminateTask added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerTransactor) TerminateTask(opts *bind.TransactOpts, taskUid string, terminateTime *big.Int) (*types.Transaction, error)

TerminateTask is a paid mutator transaction binding the contract method 0xed7bb9d1.

Solidity: function terminateTask(string taskUid, uint256 terminateTime) returns()

func (*FcpTaskManagerTransactor) TransferOwnership added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerTransactor) 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 (*FcpTaskManagerTransactor) UpgradeToAndCall added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerTransactor) UpgradeToAndCall(opts *bind.TransactOpts, newImplementation common.Address, data []byte) (*types.Transaction, error)

UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.

Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()

type FcpTaskManagerTransactorRaw added in v0.6.2

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

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

func (*FcpTaskManagerTransactorRaw) Transact added in v0.6.2

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

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

func (*FcpTaskManagerTransactorRaw) Transfer added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerTransactorRaw) 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 FcpTaskManagerTransactorSession added in v0.6.2

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

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

func (*FcpTaskManagerTransactorSession) AddAdmin added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerTransactorSession) 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 (*FcpTaskManagerTransactorSession) AssignTask added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerTransactorSession) AssignTask(taskUid string, cpAccountList []common.Address, user common.Address, reward *big.Int, collateral *big.Int, duration *big.Int) (*types.Transaction, error)

AssignTask is a paid mutator transaction binding the contract method 0x9a8afe9c.

Solidity: function assignTask(string taskUid, address[] cpAccountList, address user, uint256 reward, uint256 collateral, uint256 duration) returns()

func (*FcpTaskManagerTransactorSession) ClaimRefund added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerTransactorSession) ClaimRefund(taskUid string, jobUid string, signature []byte) (*types.Transaction, error)

ClaimRefund is a paid mutator transaction binding the contract method 0xeef74fc7.

Solidity: function claimRefund(string taskUid, string jobUid, bytes signature) returns()

func (*FcpTaskManagerTransactorSession) CompleteTask added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerTransactorSession) CompleteTask(taskUid string) (*types.Transaction, error)

CompleteTask is a paid mutator transaction binding the contract method 0x394c244b.

Solidity: function completeTask(string taskUid) returns()

func (*FcpTaskManagerTransactorSession) CompleteTask0 added in v0.7.0

func (_FcpTaskManager *FcpTaskManagerTransactorSession) CompleteTask0(taskUid string, remainingCpList []common.Address) (*types.Transaction, error)

CompleteTask0 is a paid mutator transaction binding the contract method 0xd038d1ea.

Solidity: function completeTask(string taskUid, address[] remainingCpList) returns()

func (*FcpTaskManagerTransactorSession) ExtendTask added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerTransactorSession) ExtendTask(taskUid string, extraDuration *big.Int, extraReward *big.Int) (*types.Transaction, error)

ExtendTask is a paid mutator transaction binding the contract method 0x3b97f5b3.

Solidity: function extendTask(string taskUid, uint256 extraDuration, uint256 extraReward) returns()

func (*FcpTaskManagerTransactorSession) Initialize added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerTransactorSession) Initialize(ar common.Address, ap common.Address, collateralContractAddress common.Address, rewardTokenAddress common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xf8c8765e.

Solidity: function initialize(address ar, address ap, address collateralContractAddress, address rewardTokenAddress) returns()

func (*FcpTaskManagerTransactorSession) RemoveAdmin added in v0.6.2

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

func (_FcpTaskManager *FcpTaskManagerTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*FcpTaskManagerTransactorSession) SetCollateralContract added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerTransactorSession) SetCollateralContract(newCollateralContract common.Address) (*types.Transaction, error)

SetCollateralContract is a paid mutator transaction binding the contract method 0xe941cd06.

Solidity: function setCollateralContract(address newCollateralContract) returns()

func (*FcpTaskManagerTransactorSession) TerminateTask added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerTransactorSession) TerminateTask(taskUid string, terminateTime *big.Int) (*types.Transaction, error)

TerminateTask is a paid mutator transaction binding the contract method 0xed7bb9d1.

Solidity: function terminateTask(string taskUid, uint256 terminateTime) returns()

func (*FcpTaskManagerTransactorSession) TransferOwnership added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerTransactorSession) 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 (*FcpTaskManagerTransactorSession) UpgradeToAndCall added in v0.6.2

func (_FcpTaskManager *FcpTaskManagerTransactorSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)

UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.

Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()

type FcpTaskManagerURISubmitted added in v0.6.2

type FcpTaskManagerURISubmitted struct {
	TaskUid   common.Hash
	Submitter common.Address
	Uri       string
	Raw       types.Log // Blockchain specific contextual infos
}

FcpTaskManagerURISubmitted represents a URISubmitted event raised by the FcpTaskManager contract.

type FcpTaskManagerURISubmittedIterator added in v0.6.2

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

FcpTaskManagerURISubmittedIterator is returned from FilterURISubmitted and is used to iterate over the raw logs and unpacked data for URISubmitted events raised by the FcpTaskManager contract.

func (*FcpTaskManagerURISubmittedIterator) Close added in v0.6.2

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

func (*FcpTaskManagerURISubmittedIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*FcpTaskManagerURISubmittedIterator) Next added in v0.6.2

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

type FcpTaskManagerUpgraded added in v0.6.2

type FcpTaskManagerUpgraded struct {
	Implementation common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

FcpTaskManagerUpgraded represents a Upgraded event raised by the FcpTaskManager contract.

type FcpTaskManagerUpgradedIterator added in v0.6.2

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

FcpTaskManagerUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the FcpTaskManager contract.

func (*FcpTaskManagerUpgradedIterator) Close added in v0.6.2

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

func (*FcpTaskManagerUpgradedIterator) Error added in v0.6.2

Error returns any retrieval or parsing error occurred during filtering.

func (*FcpTaskManagerUpgradedIterator) Next added in v0.6.2

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

type Option

type Option func(*Stub)

func WithCpAccountAddress added in v0.5.1

func WithCpAccountAddress(cpAccountAddress string) Option

func WithPrivateKey

func WithPrivateKey(pk string) Option

type Stub

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

func NewCollateralStub

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

func (*Stub) CollateralInfo

func (s *Stub) CollateralInfo() (models.CpCollateralInfoForFCP, error)

func (*Stub) Deposit

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

func (*Stub) Withdraw

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

type SwanCreditCollateral added in v0.7.0

type SwanCreditCollateral struct {
	SwanCreditCollateralCaller     // Read-only binding to the contract
	SwanCreditCollateralTransactor // Write-only binding to the contract
	SwanCreditCollateralFilterer   // Log filterer for contract events
}

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

func DeploySwanCreditCollateral added in v0.7.0

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

DeploySwanCreditCollateral deploys a new Ethereum contract, binding an instance of SwanCreditCollateral to it.

func NewSwanCreditCollateral added in v0.7.0

func NewSwanCreditCollateral(address common.Address, backend bind.ContractBackend) (*SwanCreditCollateral, error)

NewSwanCreditCollateral creates a new instance of SwanCreditCollateral, bound to a specific deployed contract.

type SwanCreditCollateralCPInfoWithLockedBalance added in v0.7.0

type SwanCreditCollateralCPInfoWithLockedBalance struct {
	CpAccount        common.Address
	AvailableBalance *big.Int
	LockedBalance    *big.Int
	Status           string
}

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

type SwanCreditCollateralCaller added in v0.7.0

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

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

func NewSwanCreditCollateralCaller added in v0.7.0

func NewSwanCreditCollateralCaller(address common.Address, caller bind.ContractCaller) (*SwanCreditCollateralCaller, error)

NewSwanCreditCollateralCaller creates a new read-only instance of SwanCreditCollateral, bound to a specific deployed contract.

func (*SwanCreditCollateralCaller) AllowedToWithdraw added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCaller) AllowedToWithdraw(opts *bind.CallOpts, arg0 common.Address) (bool, error)

AllowedToWithdraw is a free data retrieval call binding the contract method 0x2d291cad.

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

func (*SwanCreditCollateralCaller) AvailableBalance added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCaller) AvailableBalance(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

AvailableBalance is a free data retrieval call binding the contract method 0xa0821be3.

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

func (*SwanCreditCollateralCaller) BaseCollateral added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCaller) 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 (*SwanCreditCollateralCaller) CollateralInfo added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCaller) CollateralInfo(opts *bind.CallOpts) (SwanCreditCollateralContractInfo, error)

CollateralInfo is a free data retrieval call binding the contract method 0x53ad8720.

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

func (*SwanCreditCollateralCaller) CollateralRatio added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCaller) 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 (*SwanCreditCollateralCaller) CpInfo added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCaller) CpInfo(opts *bind.CallOpts, cpAddress common.Address) (SwanCreditCollateralCPInfoWithLockedBalance, error)

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

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

func (*SwanCreditCollateralCaller) CpStatus added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCaller) 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 (*SwanCreditCollateralCaller) EscrowBalance added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCaller) EscrowBalance(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

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

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

func (*SwanCreditCollateralCaller) GetTaskInfo added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCaller) GetTaskInfo(opts *bind.CallOpts, taskUid string) (SwanCreditCollateralTask, error)

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

Solidity: function getTaskInfo(string taskUid) view returns((address[],uint256,uint8))

func (*SwanCreditCollateralCaller) IsAdmin added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCaller) 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 (*SwanCreditCollateralCaller) IsSignatureUsed added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCaller) IsSignatureUsed(opts *bind.CallOpts, arg0 []byte) (bool, error)

IsSignatureUsed is a free data retrieval call binding the contract method 0x1150f0f3.

Solidity: function isSignatureUsed(bytes ) view returns(bool)

func (*SwanCreditCollateralCaller) LockedBalance added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCaller) LockedBalance(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

LockedBalance is a free data retrieval call binding the contract method 0x9ae697bf.

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

func (*SwanCreditCollateralCaller) LockedCollateral added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCaller) LockedCollateral(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

LockedCollateral is a free data retrieval call binding the contract method 0x92bdf9ba.

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

func (*SwanCreditCollateralCaller) Owner added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCaller) 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 (*SwanCreditCollateralCaller) ProxiableUUID added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCaller) ProxiableUUID(opts *bind.CallOpts) ([32]byte, error)

ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.

Solidity: function proxiableUUID() view returns(bytes32)

func (*SwanCreditCollateralCaller) RequestInterval added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCaller) RequestInterval(opts *bind.CallOpts) (*big.Int, error)

RequestInterval is a free data retrieval call binding the contract method 0x536f6070.

Solidity: function requestInterval() view returns(uint256)

func (*SwanCreditCollateralCaller) SlashRatio added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCaller) 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 (*SwanCreditCollateralCaller) SlashedFunds added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCaller) 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 (*SwanCreditCollateralCaller) Tasks added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCaller) Tasks(opts *bind.CallOpts, arg0 string) (struct {
	Collateral       *big.Int
	CollateralStatus uint8
}, error)

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

Solidity: function tasks(string ) view returns(uint256 collateral, uint8 collateralStatus)

func (*SwanCreditCollateralCaller) UPGRADEINTERFACEVERSION added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCaller) UPGRADEINTERFACEVERSION(opts *bind.CallOpts) (string, error)

UPGRADEINTERFACEVERSION is a free data retrieval call binding the contract method 0xad3cb1cc.

Solidity: function UPGRADE_INTERFACE_VERSION() view returns(string)

func (*SwanCreditCollateralCaller) UnlockRequest added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCaller) UnlockRequest(opts *bind.CallOpts, arg0 common.Address) (struct {
	RequestTimestamp *big.Int
	UnlockAmount     *big.Int
	IsPending        bool
}, error)

UnlockRequest is a free data retrieval call binding the contract method 0xf97348e1.

Solidity: function unlockRequest(address ) view returns(uint256 requestTimestamp, uint256 unlockAmount, bool isPending)

func (*SwanCreditCollateralCaller) Version added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCaller) Version(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function version() pure returns(uint256)

type SwanCreditCollateralCallerRaw added in v0.7.0

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

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

func (*SwanCreditCollateralCallerRaw) Call added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCallerRaw) 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 SwanCreditCollateralCallerSession added in v0.7.0

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

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

func (*SwanCreditCollateralCallerSession) AllowedToWithdraw added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCallerSession) AllowedToWithdraw(arg0 common.Address) (bool, error)

AllowedToWithdraw is a free data retrieval call binding the contract method 0x2d291cad.

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

func (*SwanCreditCollateralCallerSession) AvailableBalance added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCallerSession) AvailableBalance(arg0 common.Address) (*big.Int, error)

AvailableBalance is a free data retrieval call binding the contract method 0xa0821be3.

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

func (*SwanCreditCollateralCallerSession) BaseCollateral added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCallerSession) BaseCollateral() (*big.Int, error)

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

Solidity: function baseCollateral() view returns(uint256)

func (*SwanCreditCollateralCallerSession) CollateralInfo added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCallerSession) CollateralInfo() (SwanCreditCollateralContractInfo, error)

CollateralInfo is a free data retrieval call binding the contract method 0x53ad8720.

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

func (*SwanCreditCollateralCallerSession) CollateralRatio added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCallerSession) CollateralRatio() (*big.Int, error)

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

Solidity: function collateralRatio() view returns(uint256)

func (*SwanCreditCollateralCallerSession) CpInfo added in v0.7.0

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

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

func (*SwanCreditCollateralCallerSession) CpStatus added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCallerSession) 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 (*SwanCreditCollateralCallerSession) EscrowBalance added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCallerSession) EscrowBalance(arg0 common.Address) (*big.Int, error)

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

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

func (*SwanCreditCollateralCallerSession) GetTaskInfo added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCallerSession) GetTaskInfo(taskUid string) (SwanCreditCollateralTask, error)

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

Solidity: function getTaskInfo(string taskUid) view returns((address[],uint256,uint8))

func (*SwanCreditCollateralCallerSession) IsAdmin added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCallerSession) 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 (*SwanCreditCollateralCallerSession) IsSignatureUsed added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCallerSession) IsSignatureUsed(arg0 []byte) (bool, error)

IsSignatureUsed is a free data retrieval call binding the contract method 0x1150f0f3.

Solidity: function isSignatureUsed(bytes ) view returns(bool)

func (*SwanCreditCollateralCallerSession) LockedBalance added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCallerSession) LockedBalance(arg0 common.Address) (*big.Int, error)

LockedBalance is a free data retrieval call binding the contract method 0x9ae697bf.

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

func (*SwanCreditCollateralCallerSession) LockedCollateral added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCallerSession) LockedCollateral(arg0 common.Address) (*big.Int, error)

LockedCollateral is a free data retrieval call binding the contract method 0x92bdf9ba.

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

func (*SwanCreditCollateralCallerSession) Owner added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*SwanCreditCollateralCallerSession) ProxiableUUID added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCallerSession) ProxiableUUID() ([32]byte, error)

ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.

Solidity: function proxiableUUID() view returns(bytes32)

func (*SwanCreditCollateralCallerSession) RequestInterval added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCallerSession) RequestInterval() (*big.Int, error)

RequestInterval is a free data retrieval call binding the contract method 0x536f6070.

Solidity: function requestInterval() view returns(uint256)

func (*SwanCreditCollateralCallerSession) SlashRatio added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCallerSession) SlashRatio() (*big.Int, error)

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

Solidity: function slashRatio() view returns(uint256)

func (*SwanCreditCollateralCallerSession) SlashedFunds added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCallerSession) SlashedFunds() (*big.Int, error)

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

Solidity: function slashedFunds() view returns(uint256)

func (*SwanCreditCollateralCallerSession) Tasks added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCallerSession) Tasks(arg0 string) (struct {
	Collateral       *big.Int
	CollateralStatus uint8
}, error)

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

Solidity: function tasks(string ) view returns(uint256 collateral, uint8 collateralStatus)

func (*SwanCreditCollateralCallerSession) UPGRADEINTERFACEVERSION added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCallerSession) UPGRADEINTERFACEVERSION() (string, error)

UPGRADEINTERFACEVERSION is a free data retrieval call binding the contract method 0xad3cb1cc.

Solidity: function UPGRADE_INTERFACE_VERSION() view returns(string)

func (*SwanCreditCollateralCallerSession) UnlockRequest added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCallerSession) UnlockRequest(arg0 common.Address) (struct {
	RequestTimestamp *big.Int
	UnlockAmount     *big.Int
	IsPending        bool
}, error)

UnlockRequest is a free data retrieval call binding the contract method 0xf97348e1.

Solidity: function unlockRequest(address ) view returns(uint256 requestTimestamp, uint256 unlockAmount, bool isPending)

func (*SwanCreditCollateralCallerSession) Version added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralCallerSession) Version() (*big.Int, error)

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

Solidity: function version() pure returns(uint256)

type SwanCreditCollateralCollateralAdjusted added in v0.7.0

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

SwanCreditCollateralCollateralAdjusted represents a CollateralAdjusted event raised by the SwanCreditCollateral contract.

type SwanCreditCollateralCollateralAdjustedIterator added in v0.7.0

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

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

func (*SwanCreditCollateralCollateralAdjustedIterator) Close added in v0.7.0

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

func (*SwanCreditCollateralCollateralAdjustedIterator) Error added in v0.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*SwanCreditCollateralCollateralAdjustedIterator) Next added in v0.7.0

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

type SwanCreditCollateralCollateralLocked added in v0.7.0

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

SwanCreditCollateralCollateralLocked represents a CollateralLocked event raised by the SwanCreditCollateral contract.

type SwanCreditCollateralCollateralLockedIterator added in v0.7.0

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

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

func (*SwanCreditCollateralCollateralLockedIterator) Close added in v0.7.0

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

func (*SwanCreditCollateralCollateralLockedIterator) Error added in v0.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*SwanCreditCollateralCollateralLockedIterator) Next added in v0.7.0

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

type SwanCreditCollateralCollateralSlashed added in v0.7.0

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

SwanCreditCollateralCollateralSlashed represents a CollateralSlashed event raised by the SwanCreditCollateral contract.

type SwanCreditCollateralCollateralSlashedIterator added in v0.7.0

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

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

func (*SwanCreditCollateralCollateralSlashedIterator) Close added in v0.7.0

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

func (*SwanCreditCollateralCollateralSlashedIterator) Error added in v0.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*SwanCreditCollateralCollateralSlashedIterator) Next added in v0.7.0

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

type SwanCreditCollateralCollateralStatusChanged added in v0.7.0

type SwanCreditCollateralCollateralStatusChanged struct {
	TaskUid   common.Hash
	NewStatus uint8
	Raw       types.Log // Blockchain specific contextual infos
}

SwanCreditCollateralCollateralStatusChanged represents a CollateralStatusChanged event raised by the SwanCreditCollateral contract.

type SwanCreditCollateralCollateralStatusChangedIterator added in v0.7.0

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

SwanCreditCollateralCollateralStatusChangedIterator is returned from FilterCollateralStatusChanged and is used to iterate over the raw logs and unpacked data for CollateralStatusChanged events raised by the SwanCreditCollateral contract.

func (*SwanCreditCollateralCollateralStatusChangedIterator) Close added in v0.7.0

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

func (*SwanCreditCollateralCollateralStatusChangedIterator) Error added in v0.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*SwanCreditCollateralCollateralStatusChangedIterator) Next added in v0.7.0

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

type SwanCreditCollateralCollateralUnlocked added in v0.7.0

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

SwanCreditCollateralCollateralUnlocked represents a CollateralUnlocked event raised by the SwanCreditCollateral contract.

type SwanCreditCollateralCollateralUnlockedIterator added in v0.7.0

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

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

func (*SwanCreditCollateralCollateralUnlockedIterator) Close added in v0.7.0

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

func (*SwanCreditCollateralCollateralUnlockedIterator) Error added in v0.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*SwanCreditCollateralCollateralUnlockedIterator) Next added in v0.7.0

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

type SwanCreditCollateralContractInfo added in v0.6.0

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

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

type SwanCreditCollateralDeposit added in v0.7.0

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

SwanCreditCollateralDeposit represents a Deposit event raised by the SwanCreditCollateral contract.

type SwanCreditCollateralDepositIterator added in v0.7.0

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

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

func (*SwanCreditCollateralDepositIterator) Close added in v0.7.0

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

func (*SwanCreditCollateralDepositIterator) Error added in v0.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*SwanCreditCollateralDepositIterator) Next added in v0.7.0

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

type SwanCreditCollateralDepositLocked added in v0.7.0

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

SwanCreditCollateralDepositLocked represents a DepositLocked event raised by the SwanCreditCollateral contract.

type SwanCreditCollateralDepositLockedIterator added in v0.7.0

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

SwanCreditCollateralDepositLockedIterator is returned from FilterDepositLocked and is used to iterate over the raw logs and unpacked data for DepositLocked events raised by the SwanCreditCollateral contract.

func (*SwanCreditCollateralDepositLockedIterator) Close added in v0.7.0

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

func (*SwanCreditCollateralDepositLockedIterator) Error added in v0.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*SwanCreditCollateralDepositLockedIterator) Next added in v0.7.0

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

type SwanCreditCollateralDisputeProof added in v0.7.0

type SwanCreditCollateralDisputeProof struct {
	Challenger common.Address
	TaskUid    common.Hash
	Raw        types.Log // Blockchain specific contextual infos
}

SwanCreditCollateralDisputeProof represents a DisputeProof event raised by the SwanCreditCollateral contract.

type SwanCreditCollateralDisputeProofIterator added in v0.7.0

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

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

func (*SwanCreditCollateralDisputeProofIterator) Close added in v0.7.0

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

func (*SwanCreditCollateralDisputeProofIterator) Error added in v0.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*SwanCreditCollateralDisputeProofIterator) Next added in v0.7.0

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

type SwanCreditCollateralFilterer added in v0.7.0

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

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

func NewSwanCreditCollateralFilterer added in v0.7.0

func NewSwanCreditCollateralFilterer(address common.Address, filterer bind.ContractFilterer) (*SwanCreditCollateralFilterer, error)

NewSwanCreditCollateralFilterer creates a new log filterer instance of SwanCreditCollateral, bound to a specific deployed contract.

func (*SwanCreditCollateralFilterer) FilterCollateralAdjusted added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) FilterCollateralAdjusted(opts *bind.FilterOpts, cp []common.Address) (*SwanCreditCollateralCollateralAdjustedIterator, 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 (*SwanCreditCollateralFilterer) FilterCollateralLocked added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) FilterCollateralLocked(opts *bind.FilterOpts, cp []common.Address) (*SwanCreditCollateralCollateralLockedIterator, error)

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

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

func (*SwanCreditCollateralFilterer) FilterCollateralSlashed added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) FilterCollateralSlashed(opts *bind.FilterOpts, cp []common.Address) (*SwanCreditCollateralCollateralSlashedIterator, error)

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

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

func (*SwanCreditCollateralFilterer) FilterCollateralStatusChanged added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) FilterCollateralStatusChanged(opts *bind.FilterOpts, taskUid []string) (*SwanCreditCollateralCollateralStatusChangedIterator, error)

FilterCollateralStatusChanged is a free log retrieval operation binding the contract event 0x4a2ced9ada462e244851a86e998eb0b5bf558c2c9c6923b7f970ed2b19b073b0.

Solidity: event CollateralStatusChanged(string indexed taskUid, uint8 newStatus)

func (*SwanCreditCollateralFilterer) FilterCollateralUnlocked added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) FilterCollateralUnlocked(opts *bind.FilterOpts, cp []common.Address) (*SwanCreditCollateralCollateralUnlockedIterator, error)

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

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

func (*SwanCreditCollateralFilterer) FilterDeposit added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) FilterDeposit(opts *bind.FilterOpts, fundingWallet []common.Address, cpAccount []common.Address) (*SwanCreditCollateralDepositIterator, 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 (*SwanCreditCollateralFilterer) FilterDepositLocked added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) FilterDepositLocked(opts *bind.FilterOpts, fundingWallet []common.Address, cpAccount []common.Address) (*SwanCreditCollateralDepositLockedIterator, error)

FilterDepositLocked is a free log retrieval operation binding the contract event 0x18b5d63f2a4f63f9d724d087c9580fdb3c4501bf641ce600afe4b97282e738e2.

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

func (*SwanCreditCollateralFilterer) FilterDisputeProof added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) FilterDisputeProof(opts *bind.FilterOpts, challenger []common.Address, taskUid []string) (*SwanCreditCollateralDisputeProofIterator, error)

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

Solidity: event DisputeProof(address indexed challenger, string indexed taskUid)

func (*SwanCreditCollateralFilterer) FilterInitialized added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) FilterInitialized(opts *bind.FilterOpts) (*SwanCreditCollateralInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*SwanCreditCollateralFilterer) FilterOwnershipTransferred added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*SwanCreditCollateralOwnershipTransferredIterator, error)

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

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

func (*SwanCreditCollateralFilterer) FilterSlashedFundsIncreased added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) FilterSlashedFundsIncreased(opts *bind.FilterOpts) (*SwanCreditCollateralSlashedFundsIncreasedIterator, error)

FilterSlashedFundsIncreased is a free log retrieval operation binding the contract event 0xe69f9e72017aaa026e6e6b9186b7b1e197ec951c6c7df9805190316cb8e6f34b.

Solidity: event SlashedFundsIncreased(uint256 amount)

func (*SwanCreditCollateralFilterer) FilterTaskCreated added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) FilterTaskCreated(opts *bind.FilterOpts, taskUid []string) (*SwanCreditCollateralTaskCreatedIterator, error)

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

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

func (*SwanCreditCollateralFilterer) FilterUpgraded added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*SwanCreditCollateralUpgradedIterator, error)

FilterUpgraded is a free log retrieval operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*SwanCreditCollateralFilterer) FilterWithdraw added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) FilterWithdraw(opts *bind.FilterOpts, cpOwner []common.Address, cpAccount []common.Address) (*SwanCreditCollateralWithdrawIterator, 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 (*SwanCreditCollateralFilterer) FilterWithdrawSlash added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) FilterWithdrawSlash(opts *bind.FilterOpts, collateralContratOwner []common.Address) (*SwanCreditCollateralWithdrawSlashIterator, error)

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

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

func (*SwanCreditCollateralFilterer) ParseCollateralAdjusted added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) ParseCollateralAdjusted(log types.Log) (*SwanCreditCollateralCollateralAdjusted, 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 (*SwanCreditCollateralFilterer) ParseCollateralLocked added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) ParseCollateralLocked(log types.Log) (*SwanCreditCollateralCollateralLocked, error)

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

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

func (*SwanCreditCollateralFilterer) ParseCollateralSlashed added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) ParseCollateralSlashed(log types.Log) (*SwanCreditCollateralCollateralSlashed, error)

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

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

func (*SwanCreditCollateralFilterer) ParseCollateralStatusChanged added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) ParseCollateralStatusChanged(log types.Log) (*SwanCreditCollateralCollateralStatusChanged, error)

ParseCollateralStatusChanged is a log parse operation binding the contract event 0x4a2ced9ada462e244851a86e998eb0b5bf558c2c9c6923b7f970ed2b19b073b0.

Solidity: event CollateralStatusChanged(string indexed taskUid, uint8 newStatus)

func (*SwanCreditCollateralFilterer) ParseCollateralUnlocked added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) ParseCollateralUnlocked(log types.Log) (*SwanCreditCollateralCollateralUnlocked, error)

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

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

func (*SwanCreditCollateralFilterer) ParseDeposit added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) ParseDeposit(log types.Log) (*SwanCreditCollateralDeposit, error)

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

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

func (*SwanCreditCollateralFilterer) ParseDepositLocked added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) ParseDepositLocked(log types.Log) (*SwanCreditCollateralDepositLocked, error)

ParseDepositLocked is a log parse operation binding the contract event 0x18b5d63f2a4f63f9d724d087c9580fdb3c4501bf641ce600afe4b97282e738e2.

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

func (*SwanCreditCollateralFilterer) ParseDisputeProof added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) ParseDisputeProof(log types.Log) (*SwanCreditCollateralDisputeProof, error)

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

Solidity: event DisputeProof(address indexed challenger, string indexed taskUid)

func (*SwanCreditCollateralFilterer) ParseInitialized added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) ParseInitialized(log types.Log) (*SwanCreditCollateralInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*SwanCreditCollateralFilterer) ParseOwnershipTransferred added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) ParseOwnershipTransferred(log types.Log) (*SwanCreditCollateralOwnershipTransferred, error)

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

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

func (*SwanCreditCollateralFilterer) ParseSlashedFundsIncreased added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) ParseSlashedFundsIncreased(log types.Log) (*SwanCreditCollateralSlashedFundsIncreased, error)

ParseSlashedFundsIncreased is a log parse operation binding the contract event 0xe69f9e72017aaa026e6e6b9186b7b1e197ec951c6c7df9805190316cb8e6f34b.

Solidity: event SlashedFundsIncreased(uint256 amount)

func (*SwanCreditCollateralFilterer) ParseTaskCreated added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) ParseTaskCreated(log types.Log) (*SwanCreditCollateralTaskCreated, error)

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

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

func (*SwanCreditCollateralFilterer) ParseUpgraded added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) ParseUpgraded(log types.Log) (*SwanCreditCollateralUpgraded, error)

ParseUpgraded is a log parse operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*SwanCreditCollateralFilterer) ParseWithdraw added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) ParseWithdraw(log types.Log) (*SwanCreditCollateralWithdraw, error)

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

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

func (*SwanCreditCollateralFilterer) ParseWithdrawSlash added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) ParseWithdrawSlash(log types.Log) (*SwanCreditCollateralWithdrawSlash, error)

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

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

func (*SwanCreditCollateralFilterer) WatchCollateralAdjusted added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) WatchCollateralAdjusted(opts *bind.WatchOpts, sink chan<- *SwanCreditCollateralCollateralAdjusted, 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 (*SwanCreditCollateralFilterer) WatchCollateralLocked added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) WatchCollateralLocked(opts *bind.WatchOpts, sink chan<- *SwanCreditCollateralCollateralLocked, cp []common.Address) (event.Subscription, error)

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

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

func (*SwanCreditCollateralFilterer) WatchCollateralSlashed added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) WatchCollateralSlashed(opts *bind.WatchOpts, sink chan<- *SwanCreditCollateralCollateralSlashed, cp []common.Address) (event.Subscription, error)

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

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

func (*SwanCreditCollateralFilterer) WatchCollateralStatusChanged added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) WatchCollateralStatusChanged(opts *bind.WatchOpts, sink chan<- *SwanCreditCollateralCollateralStatusChanged, taskUid []string) (event.Subscription, error)

WatchCollateralStatusChanged is a free log subscription operation binding the contract event 0x4a2ced9ada462e244851a86e998eb0b5bf558c2c9c6923b7f970ed2b19b073b0.

Solidity: event CollateralStatusChanged(string indexed taskUid, uint8 newStatus)

func (*SwanCreditCollateralFilterer) WatchCollateralUnlocked added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) WatchCollateralUnlocked(opts *bind.WatchOpts, sink chan<- *SwanCreditCollateralCollateralUnlocked, cp []common.Address) (event.Subscription, error)

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

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

func (*SwanCreditCollateralFilterer) WatchDeposit added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *SwanCreditCollateralDeposit, 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 (*SwanCreditCollateralFilterer) WatchDepositLocked added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) WatchDepositLocked(opts *bind.WatchOpts, sink chan<- *SwanCreditCollateralDepositLocked, fundingWallet []common.Address, cpAccount []common.Address) (event.Subscription, error)

WatchDepositLocked is a free log subscription operation binding the contract event 0x18b5d63f2a4f63f9d724d087c9580fdb3c4501bf641ce600afe4b97282e738e2.

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

func (*SwanCreditCollateralFilterer) WatchDisputeProof added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) WatchDisputeProof(opts *bind.WatchOpts, sink chan<- *SwanCreditCollateralDisputeProof, challenger []common.Address, taskUid []string) (event.Subscription, error)

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

Solidity: event DisputeProof(address indexed challenger, string indexed taskUid)

func (*SwanCreditCollateralFilterer) WatchInitialized added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *SwanCreditCollateralInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*SwanCreditCollateralFilterer) WatchOwnershipTransferred added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *SwanCreditCollateralOwnershipTransferred, 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 (*SwanCreditCollateralFilterer) WatchSlashedFundsIncreased added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) WatchSlashedFundsIncreased(opts *bind.WatchOpts, sink chan<- *SwanCreditCollateralSlashedFundsIncreased) (event.Subscription, error)

WatchSlashedFundsIncreased is a free log subscription operation binding the contract event 0xe69f9e72017aaa026e6e6b9186b7b1e197ec951c6c7df9805190316cb8e6f34b.

Solidity: event SlashedFundsIncreased(uint256 amount)

func (*SwanCreditCollateralFilterer) WatchTaskCreated added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) WatchTaskCreated(opts *bind.WatchOpts, sink chan<- *SwanCreditCollateralTaskCreated, taskUid []string) (event.Subscription, error)

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

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

func (*SwanCreditCollateralFilterer) WatchUpgraded added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *SwanCreditCollateralUpgraded, implementation []common.Address) (event.Subscription, error)

WatchUpgraded is a free log subscription operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*SwanCreditCollateralFilterer) WatchWithdraw added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *SwanCreditCollateralWithdraw, 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 (*SwanCreditCollateralFilterer) WatchWithdrawSlash added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralFilterer) WatchWithdrawSlash(opts *bind.WatchOpts, sink chan<- *SwanCreditCollateralWithdrawSlash, 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 SwanCreditCollateralInitialized added in v0.7.0

type SwanCreditCollateralInitialized struct {
	Version uint64
	Raw     types.Log // Blockchain specific contextual infos
}

SwanCreditCollateralInitialized represents a Initialized event raised by the SwanCreditCollateral contract.

type SwanCreditCollateralInitializedIterator added in v0.7.0

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

SwanCreditCollateralInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the SwanCreditCollateral contract.

func (*SwanCreditCollateralInitializedIterator) Close added in v0.7.0

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

func (*SwanCreditCollateralInitializedIterator) Error added in v0.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*SwanCreditCollateralInitializedIterator) Next added in v0.7.0

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

type SwanCreditCollateralOwnershipTransferred added in v0.7.0

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

SwanCreditCollateralOwnershipTransferred represents a OwnershipTransferred event raised by the SwanCreditCollateral contract.

type SwanCreditCollateralOwnershipTransferredIterator added in v0.7.0

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

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

func (*SwanCreditCollateralOwnershipTransferredIterator) Close added in v0.7.0

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

func (*SwanCreditCollateralOwnershipTransferredIterator) Error added in v0.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*SwanCreditCollateralOwnershipTransferredIterator) Next added in v0.7.0

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

type SwanCreditCollateralRaw added in v0.7.0

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

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

func (*SwanCreditCollateralRaw) Call added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralRaw) 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 (*SwanCreditCollateralRaw) Transact added in v0.7.0

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

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

func (*SwanCreditCollateralRaw) Transfer added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralRaw) 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 SwanCreditCollateralSession added in v0.7.0

type SwanCreditCollateralSession struct {
	Contract     *SwanCreditCollateral // 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
}

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

func (*SwanCreditCollateralSession) AddAdmin added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) 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 (*SwanCreditCollateralSession) AllowedToWithdraw added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) AllowedToWithdraw(arg0 common.Address) (bool, error)

AllowedToWithdraw is a free data retrieval call binding the contract method 0x2d291cad.

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

func (*SwanCreditCollateralSession) AvailableBalance added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) AvailableBalance(arg0 common.Address) (*big.Int, error)

AvailableBalance is a free data retrieval call binding the contract method 0xa0821be3.

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

func (*SwanCreditCollateralSession) BaseCollateral added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) BaseCollateral() (*big.Int, error)

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

Solidity: function baseCollateral() view returns(uint256)

func (*SwanCreditCollateralSession) CollateralInfo added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) CollateralInfo() (SwanCreditCollateralContractInfo, error)

CollateralInfo is a free data retrieval call binding the contract method 0x53ad8720.

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

func (*SwanCreditCollateralSession) CollateralRatio added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) CollateralRatio() (*big.Int, error)

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

Solidity: function collateralRatio() view returns(uint256)

func (*SwanCreditCollateralSession) CpInfo added in v0.7.0

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

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

func (*SwanCreditCollateralSession) CpStatus added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) 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 (*SwanCreditCollateralSession) Deposit added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) 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 (*SwanCreditCollateralSession) DepositLockedBalance added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) DepositLockedBalance(cpAccount common.Address, amount *big.Int) (*types.Transaction, error)

DepositLockedBalance is a paid mutator transaction binding the contract method 0xe9a9ee83.

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

func (*SwanCreditCollateralSession) DisputeProof added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) DisputeProof(taskUid string) (*types.Transaction, error)

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

Solidity: function disputeProof(string taskUid) returns()

func (*SwanCreditCollateralSession) EscrowBalance added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) EscrowBalance(arg0 common.Address) (*big.Int, error)

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

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

func (*SwanCreditCollateralSession) GetTaskInfo added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) GetTaskInfo(taskUid string) (SwanCreditCollateralTask, error)

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

Solidity: function getTaskInfo(string taskUid) view returns((address[],uint256,uint8))

func (*SwanCreditCollateralSession) Initialize added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) Initialize() (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.

Solidity: function initialize() returns()

func (*SwanCreditCollateralSession) IsAdmin added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) 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 (*SwanCreditCollateralSession) IsSignatureUsed added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) IsSignatureUsed(arg0 []byte) (bool, error)

IsSignatureUsed is a free data retrieval call binding the contract method 0x1150f0f3.

Solidity: function isSignatureUsed(bytes ) view returns(bool)

func (*SwanCreditCollateralSession) LockCollateral added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) LockCollateral(cpAccount common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*SwanCreditCollateralSession) LockedBalance added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) LockedBalance(arg0 common.Address) (*big.Int, error)

LockedBalance is a free data retrieval call binding the contract method 0x9ae697bf.

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

func (*SwanCreditCollateralSession) LockedCollateral added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) LockedCollateral(arg0 common.Address) (*big.Int, error)

LockedCollateral is a free data retrieval call binding the contract method 0x92bdf9ba.

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

func (*SwanCreditCollateralSession) Owner added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*SwanCreditCollateralSession) ProxiableUUID added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) ProxiableUUID() ([32]byte, error)

ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.

Solidity: function proxiableUUID() view returns(bytes32)

func (*SwanCreditCollateralSession) RemoveAdmin added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) 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 (*SwanCreditCollateralSession) RenounceOwnership added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*SwanCreditCollateralSession) RequestInterval added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) RequestInterval() (*big.Int, error)

RequestInterval is a free data retrieval call binding the contract method 0x536f6070.

Solidity: function requestInterval() view returns(uint256)

func (*SwanCreditCollateralSession) SetBaseCollateral added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) 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 (*SwanCreditCollateralSession) SetCollateralToken added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) 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 (*SwanCreditCollateralSession) SetSlashRatio added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) 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 (*SwanCreditCollateralSession) SlashCollateral added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) SlashCollateral(cpAccount common.Address, slashAmount *big.Int) (*types.Transaction, error)

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

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

func (*SwanCreditCollateralSession) SlashCollateral0 added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) SlashCollateral0(taskUid string, cpAccount common.Address, slashAmount *big.Int) (*types.Transaction, error)

SlashCollateral0 is a paid mutator transaction binding the contract method 0xb587b82c.

Solidity: function slashCollateral(string taskUid, address cpAccount, uint256 slashAmount) returns()

func (*SwanCreditCollateralSession) SlashRatio added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) SlashRatio() (*big.Int, error)

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

Solidity: function slashRatio() view returns(uint256)

func (*SwanCreditCollateralSession) SlashedFunds added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) SlashedFunds() (*big.Int, error)

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

Solidity: function slashedFunds() view returns(uint256)

func (*SwanCreditCollateralSession) Tasks added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) Tasks(arg0 string) (struct {
	Collateral       *big.Int
	CollateralStatus uint8
}, error)

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

Solidity: function tasks(string ) view returns(uint256 collateral, uint8 collateralStatus)

func (*SwanCreditCollateralSession) TransferOwnership added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) 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 (*SwanCreditCollateralSession) UPGRADEINTERFACEVERSION added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) UPGRADEINTERFACEVERSION() (string, error)

UPGRADEINTERFACEVERSION is a free data retrieval call binding the contract method 0xad3cb1cc.

Solidity: function UPGRADE_INTERFACE_VERSION() view returns(string)

func (*SwanCreditCollateralSession) UnlockRequest added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) UnlockRequest(arg0 common.Address) (struct {
	RequestTimestamp *big.Int
	UnlockAmount     *big.Int
	IsPending        bool
}, error)

UnlockRequest is a free data retrieval call binding the contract method 0xf97348e1.

Solidity: function unlockRequest(address ) view returns(uint256 requestTimestamp, uint256 unlockAmount, bool isPending)

func (*SwanCreditCollateralSession) UpgradeToAndCall added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)

UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.

Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()

func (*SwanCreditCollateralSession) Version added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) Version() (*big.Int, error)

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

Solidity: function version() pure returns(uint256)

func (*SwanCreditCollateralSession) Withdraw added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) Withdraw(cpAccount common.Address, withdrawAmount *big.Int) (*types.Transaction, error)

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

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

func (*SwanCreditCollateralSession) WithdrawSlashedFunds added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralSession) WithdrawSlashedFunds(amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdrawSlashedFunds(uint256 amount) returns()

type SwanCreditCollateralSlashedFundsIncreased added in v0.7.0

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

SwanCreditCollateralSlashedFundsIncreased represents a SlashedFundsIncreased event raised by the SwanCreditCollateral contract.

type SwanCreditCollateralSlashedFundsIncreasedIterator added in v0.7.0

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

SwanCreditCollateralSlashedFundsIncreasedIterator is returned from FilterSlashedFundsIncreased and is used to iterate over the raw logs and unpacked data for SlashedFundsIncreased events raised by the SwanCreditCollateral contract.

func (*SwanCreditCollateralSlashedFundsIncreasedIterator) Close added in v0.7.0

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

func (*SwanCreditCollateralSlashedFundsIncreasedIterator) Error added in v0.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*SwanCreditCollateralSlashedFundsIncreasedIterator) Next added in v0.7.0

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

type SwanCreditCollateralTask added in v0.6.0

type SwanCreditCollateralTask struct {
	CpList           []common.Address
	Collateral       *big.Int
	CollateralStatus uint8
}

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

type SwanCreditCollateralTaskCreated added in v0.7.0

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

SwanCreditCollateralTaskCreated represents a TaskCreated event raised by the SwanCreditCollateral contract.

type SwanCreditCollateralTaskCreatedIterator added in v0.7.0

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

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

func (*SwanCreditCollateralTaskCreatedIterator) Close added in v0.7.0

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

func (*SwanCreditCollateralTaskCreatedIterator) Error added in v0.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*SwanCreditCollateralTaskCreatedIterator) Next added in v0.7.0

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

type SwanCreditCollateralTransactor added in v0.7.0

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

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

func NewSwanCreditCollateralTransactor added in v0.7.0

func NewSwanCreditCollateralTransactor(address common.Address, transactor bind.ContractTransactor) (*SwanCreditCollateralTransactor, error)

NewSwanCreditCollateralTransactor creates a new write-only instance of SwanCreditCollateral, bound to a specific deployed contract.

func (*SwanCreditCollateralTransactor) AddAdmin added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactor) 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 (*SwanCreditCollateralTransactor) Deposit added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactor) 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 (*SwanCreditCollateralTransactor) DepositLockedBalance added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactor) DepositLockedBalance(opts *bind.TransactOpts, cpAccount common.Address, amount *big.Int) (*types.Transaction, error)

DepositLockedBalance is a paid mutator transaction binding the contract method 0xe9a9ee83.

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

func (*SwanCreditCollateralTransactor) DisputeProof added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactor) DisputeProof(opts *bind.TransactOpts, taskUid string) (*types.Transaction, error)

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

Solidity: function disputeProof(string taskUid) returns()

func (*SwanCreditCollateralTransactor) Initialize added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactor) Initialize(opts *bind.TransactOpts) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.

Solidity: function initialize() returns()

func (*SwanCreditCollateralTransactor) LockCollateral added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactor) LockCollateral(opts *bind.TransactOpts, cpAccount common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*SwanCreditCollateralTransactor) RemoveAdmin added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactor) 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 (*SwanCreditCollateralTransactor) RenounceOwnership added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*SwanCreditCollateralTransactor) SetBaseCollateral added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactor) 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 (*SwanCreditCollateralTransactor) SetCollateralToken added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactor) 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 (*SwanCreditCollateralTransactor) SetSlashRatio added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactor) 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 (*SwanCreditCollateralTransactor) SlashCollateral added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactor) SlashCollateral(opts *bind.TransactOpts, cpAccount common.Address, slashAmount *big.Int) (*types.Transaction, error)

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

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

func (*SwanCreditCollateralTransactor) SlashCollateral0 added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactor) SlashCollateral0(opts *bind.TransactOpts, taskUid string, cpAccount common.Address, slashAmount *big.Int) (*types.Transaction, error)

SlashCollateral0 is a paid mutator transaction binding the contract method 0xb587b82c.

Solidity: function slashCollateral(string taskUid, address cpAccount, uint256 slashAmount) returns()

func (*SwanCreditCollateralTransactor) TransferOwnership added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactor) 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 (*SwanCreditCollateralTransactor) UpgradeToAndCall added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactor) UpgradeToAndCall(opts *bind.TransactOpts, newImplementation common.Address, data []byte) (*types.Transaction, error)

UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.

Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()

func (*SwanCreditCollateralTransactor) Withdraw added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactor) Withdraw(opts *bind.TransactOpts, cpAccount common.Address, withdrawAmount *big.Int) (*types.Transaction, error)

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

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

func (*SwanCreditCollateralTransactor) WithdrawSlashedFunds added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactor) WithdrawSlashedFunds(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdrawSlashedFunds(uint256 amount) returns()

type SwanCreditCollateralTransactorRaw added in v0.7.0

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

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

func (*SwanCreditCollateralTransactorRaw) Transact added in v0.7.0

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

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

func (*SwanCreditCollateralTransactorRaw) Transfer added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactorRaw) 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 SwanCreditCollateralTransactorSession added in v0.7.0

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

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

func (*SwanCreditCollateralTransactorSession) AddAdmin added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactorSession) 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 (*SwanCreditCollateralTransactorSession) Deposit added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactorSession) 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 (*SwanCreditCollateralTransactorSession) DepositLockedBalance added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactorSession) DepositLockedBalance(cpAccount common.Address, amount *big.Int) (*types.Transaction, error)

DepositLockedBalance is a paid mutator transaction binding the contract method 0xe9a9ee83.

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

func (*SwanCreditCollateralTransactorSession) DisputeProof added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactorSession) DisputeProof(taskUid string) (*types.Transaction, error)

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

Solidity: function disputeProof(string taskUid) returns()

func (*SwanCreditCollateralTransactorSession) Initialize added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactorSession) Initialize() (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.

Solidity: function initialize() returns()

func (*SwanCreditCollateralTransactorSession) LockCollateral added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactorSession) LockCollateral(cpAccount common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*SwanCreditCollateralTransactorSession) RemoveAdmin added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactorSession) 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 (*SwanCreditCollateralTransactorSession) RenounceOwnership added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*SwanCreditCollateralTransactorSession) SetBaseCollateral added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactorSession) 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 (*SwanCreditCollateralTransactorSession) SetCollateralToken added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactorSession) 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 (*SwanCreditCollateralTransactorSession) SetSlashRatio added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactorSession) 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 (*SwanCreditCollateralTransactorSession) SlashCollateral added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactorSession) SlashCollateral(cpAccount common.Address, slashAmount *big.Int) (*types.Transaction, error)

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

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

func (*SwanCreditCollateralTransactorSession) SlashCollateral0 added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactorSession) SlashCollateral0(taskUid string, cpAccount common.Address, slashAmount *big.Int) (*types.Transaction, error)

SlashCollateral0 is a paid mutator transaction binding the contract method 0xb587b82c.

Solidity: function slashCollateral(string taskUid, address cpAccount, uint256 slashAmount) returns()

func (*SwanCreditCollateralTransactorSession) TransferOwnership added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactorSession) 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 (*SwanCreditCollateralTransactorSession) UpgradeToAndCall added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactorSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)

UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.

Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()

func (*SwanCreditCollateralTransactorSession) Withdraw added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactorSession) Withdraw(cpAccount common.Address, withdrawAmount *big.Int) (*types.Transaction, error)

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

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

func (*SwanCreditCollateralTransactorSession) WithdrawSlashedFunds added in v0.7.0

func (_SwanCreditCollateral *SwanCreditCollateralTransactorSession) WithdrawSlashedFunds(amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdrawSlashedFunds(uint256 amount) returns()

type SwanCreditCollateralUpgraded added in v0.7.0

type SwanCreditCollateralUpgraded struct {
	Implementation common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

SwanCreditCollateralUpgraded represents a Upgraded event raised by the SwanCreditCollateral contract.

type SwanCreditCollateralUpgradedIterator added in v0.7.0

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

SwanCreditCollateralUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the SwanCreditCollateral contract.

func (*SwanCreditCollateralUpgradedIterator) Close added in v0.7.0

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

func (*SwanCreditCollateralUpgradedIterator) Error added in v0.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*SwanCreditCollateralUpgradedIterator) Next added in v0.7.0

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

type SwanCreditCollateralWithdraw added in v0.7.0

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

SwanCreditCollateralWithdraw represents a Withdraw event raised by the SwanCreditCollateral contract.

type SwanCreditCollateralWithdrawIterator added in v0.7.0

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

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

func (*SwanCreditCollateralWithdrawIterator) Close added in v0.7.0

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

func (*SwanCreditCollateralWithdrawIterator) Error added in v0.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*SwanCreditCollateralWithdrawIterator) Next added in v0.7.0

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

type SwanCreditCollateralWithdrawSlash added in v0.7.0

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

SwanCreditCollateralWithdrawSlash represents a WithdrawSlash event raised by the SwanCreditCollateral contract.

type SwanCreditCollateralWithdrawSlashIterator added in v0.7.0

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

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

func (*SwanCreditCollateralWithdrawSlashIterator) Close added in v0.7.0

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

func (*SwanCreditCollateralWithdrawSlashIterator) Error added in v0.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*SwanCreditCollateralWithdrawSlashIterator) Next added in v0.7.0

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

type TaskInfoOnChain added in v0.6.2

type TaskInfoOnChain struct {
	TaskUuid           string
	CpList             []string
	OwnerAddress       string
	Reward             *big.Int
	Collateral         *big.Int
	StartTimestamp     int64
	TerminateTimestamp int64
	Duration           int64
	TaskStatus         uint8
	CollateralStatus   uint8
}

type TaskManagerFullTaskInfo added in v0.6.2

type TaskManagerFullTaskInfo struct {
	TaskUid            string
	CpList             []common.Address
	User               common.Address
	Reward             *big.Int
	Collateral         *big.Int
	StartTimestamp     *big.Int
	TerminateTimestamp *big.Int
	Duration           *big.Int
	TaskStatus         uint8
	CollateralStatus   uint8
}

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

type TaskManagerStub added in v0.6.2

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

func NewTaskManagerStub added in v0.6.2

func NewTaskManagerStub(client *ethclient.Client) (*TaskManagerStub, error)

func (*TaskManagerStub) GetTaskInfo added in v0.6.2

func (s *TaskManagerStub) GetTaskInfo(taskUuid string) (models.TaskInfoOnChain, error)

Jump to

Keyboard shortcuts

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