From 7ddc8db9fedd5bd08b8fbcb9fef51e38816be05d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 25 Mar 2024 10:27:00 +0000 Subject: [PATCH] Added generated code for PoolzBack (#128) Co-authored-by: GitHub Action --- ABIs/PoolzBack.abi | 1 + ByteCode/PoolzBack.bin | 1 + .../ContractDefinition/PoolzBackDefinition.cs | 4 +- PoolzBack/PoolzBackDeployingService.cs | 35 ++ PoolzBack/PoolzBackService.cs | 324 +++++++++--------- 5 files changed, 193 insertions(+), 172 deletions(-) create mode 100644 ABIs/PoolzBack.abi create mode 100644 ByteCode/PoolzBack.bin create mode 100644 PoolzBack/PoolzBackDeployingService.cs diff --git a/ABIs/PoolzBack.abi b/ABIs/PoolzBack.abi new file mode 100644 index 0000000..214fac2 --- /dev/null +++ b/ABIs/PoolzBack.abi @@ -0,0 +1 @@ +[ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "FinishPool", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "Investor_ID", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "Investor_Address", "type": "address" } ], "name": "NewInvestorEvent", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "token", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "NewPool", "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": "address", "name": "account", "type": "address" } ], "name": "Paused", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "PoolUpdate", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "Amount", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "From", "type": "address" }, { "indexed": false, "internalType": "address", "name": "Token", "type": "address" } ], "name": "TransferIn", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "Amount", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "From", "type": "address" } ], "name": "TransferInETH", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "Amount", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "To", "type": "address" }, { "indexed": false, "internalType": "address", "name": "Token", "type": "address" } ], "name": "TransferOut", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "Amount", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "To", "type": "address" } ], "name": "TransferOutETH", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "account", "type": "address" } ], "name": "Unpaused", "type": "event" }, { "inputs": [], "name": "Benefit_Address", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "address", "name": "_Token", "type": "address" }, { "internalType": "uint256", "name": "_FinishTime", "type": "uint256" }, { "internalType": "uint256", "name": "_Rate", "type": "uint256" }, { "internalType": "uint256", "name": "_POZRate", "type": "uint256" }, { "internalType": "uint256", "name": "_StartAmount", "type": "uint256" }, { "internalType": "uint64", "name": "_LockedUntil", "type": "uint64" }, { "internalType": "address", "name": "_MainCoin", "type": "address" }, { "internalType": "bool", "name": "_Is21Decimal", "type": "bool" }, { "internalType": "uint256", "name": "_Now", "type": "uint256" }, { "internalType": "uint256", "name": "_WhiteListId", "type": "uint256" } ], "name": "CreatePool", "outputs": [], "stateMutability": "payable", "type": "function", "payable": true }, { "inputs": [], "name": "Fee", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "uint256", "name": "_id", "type": "uint256" } ], "name": "GetInvestmentData", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "GetMyInvestmentIds", "outputs": [ { "internalType": "uint256[]", "name": "", "type": "uint256[]" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "GetMyPoolsId", "outputs": [ { "internalType": "uint256[]", "name": "", "type": "uint256[]" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "uint256", "name": "_Id", "type": "uint256" } ], "name": "GetPoolBaseData", "outputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "uint256", "name": "_Id", "type": "uint256" } ], "name": "GetPoolExtraData", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "uint256", "name": "_Id", "type": "uint256" } ], "name": "GetPoolMoreData", "outputs": [ { "internalType": "uint64", "name": "", "type": "uint64" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "uint256", "name": "_id", "type": "uint256" } ], "name": "GetPoolStatus", "outputs": [ { "internalType": "enum PoolsData.PoolStatus", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "GovernerContract", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "uint256", "name": "_PoolId", "type": "uint256" }, { "internalType": "uint256", "name": "_Amount", "type": "uint256" } ], "name": "InvestERC20", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_PoolId", "type": "uint256" } ], "name": "InvestETH", "outputs": [], "stateMutability": "payable", "type": "function", "payable": true }, { "inputs": [ { "internalType": "address", "name": "_address", "type": "address" } ], "name": "IsERC20Maincoin", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "IsPayble", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "uint256", "name": "_id", "type": "uint256" } ], "name": "IsReadyWithdrawInvestment", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "uint256", "name": "_PoolId", "type": "uint256" } ], "name": "IsReadyWithdrawLeftOvers", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "IsTokenFilterOn", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "address", "name": "_address", "type": "address" } ], "name": "IsValidToken", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "MCWhitelistId", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "MaxDuration", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "MaxETHInvest", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "MinDuration", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "MinETHInvest", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "PoolPrice", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "PozFee", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "PozTimer", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "address", "name": "_benefitAddress", "type": "address" } ], "name": "SetBenefit_Address", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_fee", "type": "uint256" } ], "name": "SetFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_minDuration", "type": "uint256" }, { "internalType": "uint256", "name": "_maxDuration", "type": "uint256" } ], "name": "SetMinMaxDuration", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_MinETHInvest", "type": "uint256" }, { "internalType": "uint256", "name": "_MaxETHInvest", "type": "uint256" } ], "name": "SetMinMaxETHInvest", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_fee", "type": "uint256" } ], "name": "SetPOZFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_PoolPrice", "type": "uint256" } ], "name": "SetPoolPrice", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_pozTimer", "type": "uint256" } ], "name": "SetPozTimer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_WhiteList_Address", "type": "address" } ], "name": "SetWhiteList_Address", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "SwapTokenFilter", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "SwitchIsPayble", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "TokenWhitelistId", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "WhiteList_Address", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "uint256", "name": "_id", "type": "uint256" } ], "name": "WithdrawInvestment", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_PoolId", "type": "uint256" } ], "name": "WithdrawLeftOvers", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "getTotalInvestor", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "uint256", "name": "_id", "type": "uint256" } ], "name": "isPoolLocked", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "paused", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "poolsCount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_address", "type": "address" } ], "name": "setGovernerContract", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_whiteListId", "type": "uint256" } ], "name": "setMCWhitelistId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_whiteListId", "type": "uint256" } ], "name": "setTokenWhitelistId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "stateMutability": "payable", "type": "receive", "payable": true }, { "inputs": [ { "internalType": "address payable", "name": "_to", "type": "address" } ], "name": "WithdrawETHFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_Token", "type": "address" }, { "internalType": "address", "name": "_to", "type": "address" } ], "name": "WithdrawERC20Fee", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ] diff --git a/ByteCode/PoolzBack.bin b/ByteCode/PoolzBack.bin new file mode 100644 index 0000000..ed09897 --- /dev/null +++ b/ByteCode/PoolzBack.bin @@ -0,0 +1 @@ +0x60806040523480156200001157600080fd5b50600062000027640100000000620000cb810204565b60008054600160a060020a031916600160a060020a0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506000805460a060020a60ff021916905560018054600160a060020a0319169055600f6002556103e86003556004805460ff19169055601460065562ed4e00600855612710600a5568056bc75e2d63100000600b55620000cf565b3390565b613b9180620000df6000396000f3fe6080604052600436106103215760003560e060020a9004806391314dde116101af578063bed06041116100fb578063e890671611610099578063f2fde38b11610073578063f2fde38b14610b61578063f318824814610b94578063fc1a86ff14610bbe578063fd711a5514610bf95761033e565b8063e890671614610ae7578063ee63e8bd14610b1a578063f04be48b14610b445761033e565b8063ccb801bf116100d5578063ccb801bf146109d3578063d0f52910146109fd578063e34c777214610a50578063e4ec0f6814610a7a5761033e565b8063bed0604114610994578063bef7a2f0146109a9578063cab17046146109be5761033e565b8063aac5da5c11610168578063b7d9b6f111610142578063b7d9b6f1146108d7578063b973d7bc14610907578063b977eddf1461093a578063be33a3ec146109645761033e565b8063aac5da5c14610898578063abb7add2146108ad578063b5f98b8e146108c25761033e565b806391314dde146107d25780639642ec0c146107e7578063991e979a146107fc578063a73ff1281461082f578063a87d2be414610859578063aa825486146108835761033e565b80635cdddc7c1161026e5780636b58f2f61161022757806376ab7b441161020157806376ab7b441461074b57806387e3c5991461077e5780638c788de0146107a85780638da5cb5b146107bd5761033e565b80636b58f2f6146106f7578063715018a61461072157806375c64dd1146107365761033e565b80635cdddc7c1461056f57806360f9e80a1461058457806360fdd7c4146105e157806363552a491461064a57806366818967146106af5780636b1fe0b6146106e25761033e565b806318c9be4a116102db57806341004025116102b557806341004025146104c657806353eb3167146105305780635796bc43146105455780635c975abb1461055a5761033e565b806318c9be4a1461046c57806327ca36ec146104815780633e90eea7146104965761033e565b8062172ddf14610343578063043d520b1461036d57806307b027ed146103945780630cd8e965146103a95780630d08caa0146103da578063114fa9bd146104255761033e565b3661033e5760005460a060020a900460ff1661033c57600080fd5b005b600080fd5b34801561034f57600080fd5b5061033c6004803603602081101561036657600080fd5b5035610c23565b34801561037957600080fd5b50610382610d62565b60408051918252519081900360200190f35b3480156103a057600080fd5b5061033c610d68565b3480156103b557600080fd5b506103be610dff565b60408051600160a060020a039092168252519081900360200190f35b3480156103e657600080fd5b50610404600480360360208110156103fd57600080fd5b5035610e0e565b6040518082600581111561041457fe5b815260200191505060405180910390f35b34801561043157600080fd5b506104586004803603602081101561044857600080fd5b5035600160a060020a031661105d565b604080519115158252519081900360200190f35b34801561047857600080fd5b5061038261111f565b34801561048d57600080fd5b50610382611125565b3480156104a257600080fd5b5061033c600480360360408110156104b957600080fd5b508035906020013561112b565b3480156104d257600080fd5b506104f0600480360360208110156104e957600080fd5b50356111a9565b6040805167ffffffffffffffff909716875260208701959095528585019390935260608501919091526080840152151560a0830152519081900360c00190f35b34801561053c57600080fd5b5061038261124d565b34801561055157600080fd5b506103be611253565b34801561056657600080fd5b50610458611262565b34801561057b57600080fd5b5061045861126b565b34801561059057600080fd5b506105ae600480360360208110156105a757600080fd5b503561127b565b60408051958652600160a060020a0390941660208601528484019290925260608401526080830152519081900360a00190f35b3480156105ed57600080fd5b5061060b6004803603602081101561060457600080fd5b50356112b4565b60408051600160a060020a039788168152959096166020860152848601939093526060840191909152608083015260a082015290519081900360c00190f35b34801561065657600080fd5b5061065f61134e565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561069b578181015183820152602001610683565b505050509050019250505060405180910390f35b3480156106bb57600080fd5b5061033c600480360360208110156106d257600080fd5b5035600160a060020a03166113af565b3480156106ee57600080fd5b50610382611451565b34801561070357600080fd5b506104586004803603602081101561071a57600080fd5b5035611457565b34801561072d57600080fd5b5061033c61147a565b34801561074257600080fd5b50610382611536565b34801561075757600080fd5b5061033c6004803603602081101561076e57600080fd5b5035600160a060020a031661153c565b34801561078a57600080fd5b50610458600480360360208110156107a157600080fd5b50356115de565b3480156107b457600080fd5b50610382611696565b3480156107c957600080fd5b506103be61169c565b3480156107de57600080fd5b5061065f6116ab565b3480156107f357600080fd5b506103be61170a565b34801561080857600080fd5b5061033c6004803603602081101561081f57600080fd5b5035600160a060020a0316611719565b34801561083b57600080fd5b506104586004803603602081101561085257600080fd5b50356117b4565b34801561086557600080fd5b5061033c6004803603602081101561087c57600080fd5b5035611854565b34801561088f57600080fd5b506103826118e8565b3480156108a457600080fd5b5061033c6118ee565b3480156108b957600080fd5b50610382611985565b3480156108ce57600080fd5b5061045861198b565b3480156108e357600080fd5b5061033c600480360360408110156108fa57600080fd5b508035906020013561199b565b34801561091357600080fd5b5061033c6004803603602081101561092a57600080fd5b5035600160a060020a0316611a19565b34801561094657600080fd5b5061033c6004803603602081101561095d57600080fd5b5035611abb565b34801561097057600080fd5b5061033c6004803603604081101561098757600080fd5b5080359060200135611b33565b3480156109a057600080fd5b50610382611e15565b3480156109b557600080fd5b50610382611e1b565b3480156109ca57600080fd5b50610382611e21565b3480156109df57600080fd5b5061033c600480360360208110156109f657600080fd5b5035611e27565b348015610a0957600080fd5b50610a2760048036036020811015610a2057600080fd5b5035611e9f565b6040805193151584526020840192909252600160a060020a031682820152519081900360600190f35b348015610a5c57600080fd5b5061045860048036036020811015610a7357600080fd5b5035611f22565b61033c6004803603610140811015610a9157600080fd5b50600160a060020a03813581169160208101359160408201359160608101359160808201359167ffffffffffffffff60a0820135169160c0820135169060e0810135151590610100810135906101200135611f7f565b348015610af357600080fd5b5061045860048036036020811015610b0a57600080fd5b5035600160a060020a03166125f3565b348015610b2657600080fd5b5061033c60048036036020811015610b3d57600080fd5b503561267f565b61033c60048036036020811015610b5a57600080fd5b50356126f7565b348015610b6d57600080fd5b5061033c60048036036020811015610b8457600080fd5b5035600160a060020a03166129ec565b348015610ba057600080fd5b5061033c60048036036020811015610bb757600080fd5b5035612b01565b348015610bca57600080fd5b5061033c60048036036040811015610be157600080fd5b50600160a060020a0381358116916020013516612b89565b348015610c0557600080fd5b5061045860048036036020811015610c1c57600080fd5b5035612c1b565b610c2b61169c565b600160a060020a031633600160a060020a03161480610c545750600154600160a060020a031633145b610c96576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613b1c833981519152604482015290519081900360640190fd5b80612710811015610d0e578160025480821115610cb7576006849055610d07565b6040805160e560020a62461bcd02815260206004820152600a60248201527f4e6f742062696767657200000000000000000000000000000000000000000000604482015290519081900360640190fd5b5050610d5e565b6040805160e560020a62461bcd02815260206004820152600c60248201527f4e6f7420696e2072616e67650000000000000000000000000000000000000000604482015290519081900360640190fd5b5050565b600f5481565b610d70612cc8565b600160a060020a0316610d8161169c565b600160a060020a031614610dcd576040805160e560020a62461bcd0281526020600482018190526024820152600080516020613afc833981519152604482015290519081900360640190fd5b600d805474ff000000000000000000000000000000000000000019811660a060020a9182900460ff1615909102179055565b600154600160a060020a031681565b6000816010548110610e58576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613b3c833981519152604482015290519081900360640190fd5b600083815260116020526040902060090154421015610e7a5760029150611057565b6000838152601160205260409020600a015442108015610eaa575060008381526011602052604090206008015415155b15610eb85760009150611057565b6000838152601160205260409020600a01544210801590610ee9575060008381526011602052604090206008015415155b8015610f05575060008381526011602052604090206002015442105b15610f135760019150611057565b600083815260116020526040902060080154158015610f365750610f3683611457565b8015610f52575060008381526011602052604090206002015442105b15610f605760039150611057565b600083815260116020526040902060080154158015610f855750610f8383611457565b155b15610f935760059150611057565b6000838152601160205260409020600201544210801590610fba5750610fb883611457565b155b15610feb576000838152601160205260409020600d015460ff1615610fe25760059150611057565b60049150611057565b6000838152601160205260409020600d015460ff168061101a5750600083815260116020526040902060080154155b80156110445750600083815260116020526040902060068101546008820154600b90920154909101145b156110525760059150611057565b600491505b50919050565b600d5460009060a060020a900460ff1615806111175750600c54600e54604080517fcc44919b000000000000000000000000000000000000000000000000000000008152600160a060020a03868116600483015260248201939093529051600093929092169163cc44919b91604480820192602092909190829003018186803b1580156110e957600080fd5b505afa1580156110fd573d6000803e3d6000fd5b505050506040513d602081101561111357600080fd5b5051115b90505b919050565b600e5481565b60075481565b61113361169c565b600160a060020a031633600160a060020a0316148061115c5750600154600160a060020a031633145b61119e576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613b1c833981519152604482015290519081900360640190fd5b600a91909155600b55565b6000806000806000808660105481106111fa576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613b3c833981519152604482015290519081900360640190fd5b505050600094855250506011602052505060409020600781015460088201546009830154600a840154600b850154600d9095015467ffffffffffffffff9094169592949193909261010090910460ff1690565b60025481565b600d54600160a060020a031681565b60045460ff1690565b600d5460a060020a900460ff1681565b600090815260146020526040902080546001820154600283015460038401546004909401549294600160a060020a039092169390929091565b600080600080600080866010548110611305576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613b3c833981519152604482015290519081900360640190fd5b50505060009485525050601160205250506040902080546001820154600283015460038401546004850154600690950154600160a060020a039485169694909316949193909290565b336000908152601260209081526040918290208054835181840281018401909452808452606093928301828280156113a557602002820191906000526020600020905b815481526020019060010190808311611391575b5050505050905090565b6113b761169c565b600160a060020a031633600160a060020a031614806113e05750600154600160a060020a031633145b611422576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613b1c833981519152604482015290519081900360640190fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60135490565b6000908152601160205260409020600701544267ffffffffffffffff9091161190565b611482612cc8565b600160a060020a031661149361169c565b600160a060020a0316146114df576040805160e560020a62461bcd0281526020600482018190526024820152600080516020613afc833981519152604482015290519081900360640190fd5b60008054604051600160a060020a03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b60085481565b61154461169c565b600160a060020a031633600160a060020a0316148061156d5750600154600160a060020a031633145b6115af576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613b1c833981519152604482015290519081900360640190fd5b600d805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60006115e982611f22565b1561168e576000828152601460208181526040808420600381018054908690558154865260118452918520549487905292909152600190910154909161163c91600160a060020a03918216911683612ccc565b600083815260146020908152604080832054835260119091529020600b01546116659082612e15565b600084815260146020908152604080832054835260119091529020600b0155506001905061111a565b506000919050565b60105481565b600054600160a060020a031690565b336000908152601560209081526040918290208054835181840281018401909452808452606093928301828280156113a55760200282019190600052602060002090815481526020019060010190808311611391575050505050905090565b600c54600160a060020a031681565b611721612cc8565b600160a060020a031661173261169c565b600160a060020a03161461177e576040805160e560020a62461bcd0281526020600482018190526024820152600080516020613afc833981519152604482015290519081900360640190fd5b604051600160a060020a03821690303180156108fc02916000818181858888f19350505050158015610d5e573d6000803e3d6000fd5b60008160105481106117fe576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613b3c833981519152604482015290519081900360640190fd5b600083815260116020526040902060020154421080159061182f575060008381526011602052604090206008015415155b801561184d57506000838152601160205260409020600d015460ff16155b9392505050565b61185c61169c565b600160a060020a031633600160a060020a031614806118855750600154600160a060020a031633145b6118c7576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613b1c833981519152604482015290519081900360640190fd5b80612710811015610d0e576006548280821115610cb7576002849055610d07565b600b5481565b6118f6612cc8565b600160a060020a031661190761169c565b600160a060020a031614611953576040805160e560020a62461bcd0281526020600482018190526024820152600080516020613afc833981519152604482015290519081900360640190fd5b6000805474ff000000000000000000000000000000000000000019811660a060020a9182900460ff1615909102179055565b60035481565b60005460a060020a900460ff1681565b6119a361169c565b600160a060020a031633600160a060020a031614806119cc5750600154600160a060020a031633145b611a0e576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613b1c833981519152604482015290519081900360640190fd5b600791909155600855565b611a2161169c565b600160a060020a031633600160a060020a03161480611a4a5750600154600160a060020a031633145b611a8c576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613b1c833981519152604482015290519081900360640190fd5b600c805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b611ac361169c565b600160a060020a031633600160a060020a03161480611aec5750600154600160a060020a031633145b611b2e576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613b1c833981519152604482015290519081900360640190fd5b600955565b611b3b611262565b15611b90576040805160e560020a62461bcd02815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b60008281526011602052604090206009015442811115611bfa576040805160e560020a62461bcd02815260206004820152601160248201527f506f6f6c206e6f74206f70656e20796574000000000000000000000000000000604482015290519081900360640190fd5b826010548110611c42576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613b3c833981519152604482015290519081900360640190fd5b3332148015611c575750611c5533612e7b565b155b611c955760405160e560020a62461bcd028152600401808060200182810382526023815260200180613ab86023913960400191505060405180910390fd5b600084815260116020526040902060050154600160a060020a0316611d04576040805160e560020a62461bcd02815260206004820152601e60248201527f506f6f6c20697320666f72204554482c2075736520496e766573744554480000604482015290519081900360640190fd5b600084815260116020526040902060050154611d2a90600160a060020a03163385612e87565b6000611d373385876130e3565b90506000611d468686336131eb565b9050611d5386838361346f565b6000611d72611d6a87611d658a6134e8565b613533565b61271061358f565b90506000611d8087836135f9565b6000898152601160209081526040808320600590810154600160a060020a03168452909152902054909150611db59083612e15565b600089815260116020818152604080842060058181018054600160a060020a03908116885291855292862096909655938d905291905254600190910154611e0192918216911683612ccc565b611e0b8884613659565b5050505050505050565b60095481565b60065481565b600a5481565b611e2f61169c565b600160a060020a031633600160a060020a03161480611e585750600154600160a060020a031633145b611e9a576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613b1c833981519152604482015290519081900360640190fd5b600e55565b6000806000836010548110611eec576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613b3c833981519152604482015290519081900360640190fd5b505050600091825250601160205260409020600d810154600c82015460059092015460ff90911692600160a060020a0390911690565b60006013548211158015611f46575060008281526014602052604090206003015415155b8015611117575050600090815260146020908152604080832054835260119091529020600701544267ffffffffffffffff909116111590565b611f87611262565b15611fdc576040805160e560020a62461bcd02815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b600954341015612036576040805160e560020a62461bcd02815260206004820152601860248201527f4e65656420746f2070617920666f722074686520706f6f6c0000000000000000604482015290519081900360640190fd5b61203f8a61105d565b612093576040805160e560020a62461bcd02815260206004820152601660248201527f4e6565642056616c696420455243323020546f6b656e00000000000000000000604482015290519081900360640190fd5b600160a060020a03841615806120ad57506120ad846125f3565b612101576040805160e560020a62461bcd02815260206004820152601560248201527f4d61696e20636f696e206e6f7420696e206c6973740000000000000000000000604482015290519081900360640190fd5b61210d60085442612e15565b8910612163576040805160e560020a62461bcd02815260206004820181905260248201527f506f6f6c206475726174696f6e2063616e27742062652074686174206c6f6e67604482015290519081900360640190fd5b61216f60085442612e15565b8567ffffffffffffffff16106121cf576040805160e560020a62461bcd02815260206004820152601f60248201527f4c6f636b65642076616c75652063616e27742062652074686174206c6f6e6700604482015290519081900360640190fd5b868811156122115760405160e560020a62461bcd028152600401808060200182810382526033815260200180613a5f6033913960400191505060405180910390fd5b60008711612269576040805160e560020a62461bcd02815260206004820152601060248201527f49742077696c6c206e6f7420776f726b00000000000000000000000000000000604482015290519081900360640190fd5b42821015612275574291505b8861228242600754612e15565b11156122d8576040805160e560020a62461bcd02815260206004820152601a60248201527f4e656564206d6f7265207468656e204d696e4475726174696f6e000000000000604482015290519081900360640190fd5b6122e38a3388612e87565b600081156123115761230c612306611d6a6122fe8d876135f9565b600354613533565b84612e15565b612313565b825b905060405180604001604052806040518060e001604052808e600160a060020a0316815260200133600160a060020a031681526020018d81526020018c81526020018b815260200188600160a060020a031681526020018a81525081526020016040518061010001604052808967ffffffffffffffff1681526020018a81526020018681526020018481526020016000815260200185815260200160001515815260200187151581525081525060116000601054815260200190815260200160002060008201518160000160008201518160000160006101000a815481600160a060020a030219169083600160a060020a0316021790555060208201518160010160006101000a815481600160a060020a030219169083600160a060020a0316021790555060408201518160020155606082015181600301556080820151816004015560a08201518160050160006101000a815481600160a060020a030219169083600160a060020a0316021790555060c08201518160060155505060208201518160070160008201518160000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c08201518160060160006101000a81548160ff02191690831515021790555060e08201518160060160016101000a81548160ff02191690831515021790555050509050506012600033600160a060020a0316600160a060020a0316815260200190815260200160002060105490806001815401808255809150506001900390600052602060002001600090919091909150557fbe4222bc407cb12031595fc55b46531e46308d31e4572c9c4360d8ae790e1a318b6010546040518083600160a060020a031681526020018281526020019250505060405180910390a16125e36010546001612e15565b6010555050505050505050505050565b600d5460009060a060020a900460ff1615806111175750600c54600f54604080517fcc44919b000000000000000000000000000000000000000000000000000000008152600160a060020a03868116600483015260248201939093529051600093929092169163cc44919b91604480820192602092909190829003018186803b1580156110e957600080fd5b61268761169c565b600160a060020a031633600160a060020a031614806126b05750600154600160a060020a031633145b6126f2576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613b1c833981519152604482015290519081900360640190fd5b600f55565b3433600a5480831015612754576040805160e560020a62461bcd02815260206004820152601260248201527f53656e642045544820746f20696e766573740000000000000000000000000000604482015290519081900360640190fd5b60408051848152600160a060020a038416602082015281517f3a32cdd14cdfd431946dfa0b2aef5ace661340411aaadcaee6aef6738d302326929181900390910190a161279f611262565b156127f4576040805160e560020a62461bcd02815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b6000848152601160205260409020600901544281111561285e576040805160e560020a62461bcd02815260206004820152601160248201527f506f6f6c206e6f74206f70656e20796574000000000000000000000000000000604482015290519081900360640190fd5b8460105481106128a6576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613b3c833981519152604482015290519081900360640190fd5b33321480156128bb57506128b933612e7b565b155b6128f95760405160e560020a62461bcd028152600401808060200182810382526023815260200180613ab86023913960400191505060405180910390fd5b600086815260116020526040902060050154600160a060020a031615612969576040805160e560020a62461bcd02815260206004820152601460248201527f506f6f6c206973206f6e6c7920666f7220455448000000000000000000000000604482015290519081900360640190fd5b60006129763334896130e3565b905060006129858834336131eb565b905061299288838361346f565b60006129af611d6a34611d656127106129aa8e6134e8565b6135f9565b60008a8152601160205260409020600101549091506129d790600160a060020a0316826136fc565b6129e18983613659565b505050505050505050565b6129f4612cc8565b600160a060020a0316612a0561169c565b600160a060020a031614612a51576040805160e560020a62461bcd0281526020600482018190526024820152600080516020613afc833981519152604482015290519081900360640190fd5b600160a060020a038116612a995760405160e560020a62461bcd028152600401808060200182810382526026815260200180613a926026913960400191505060405180910390fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b612b0961169c565b600160a060020a031633600160a060020a03161480612b325750600154600160a060020a031633145b612b74576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613b1c833981519152604482015290519081900360640190fd5b80612710811015610d0e576003829055610d5e565b612b91612cc8565b600160a060020a0316612ba261169c565b600160a060020a031614612bee576040805160e560020a62461bcd0281526020600482018190526024820152600080516020613afc833981519152604482015290519081900360640190fd5b600160a060020a03821660009081526005602052604081208054919055612c16838383612ccc565b505050565b6000816010548110612c65576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613b3c833981519152604482015290519081900360640190fd5b612c6e836117b4565b15612cbf576000838152601160205260409020600d8101805460ff19166001908117909155815490820154600890920154612cb692600160a060020a03928316921690612ccc565b60019150611057565b50600092915050565b3390565b6000612cd884306137e2565b60408051848152600160a060020a03808716602083015287168183015290519192507fe4d818e6f992efbd60db553f3edce819a199baec79a784b95c89bc8ee86f2584919081900360600190a183600160a060020a031663a9059cbb84846040518363ffffffff1660e060020a0281526004018083600160a060020a0316815260200182815260200192505050602060405180830381600087803b158015612d7f57600080fd5b505af1158015612d93573d6000803e3d6000fd5b505050506040513d6020811015612da957600080fd5b50819050612dba61230686306137e2565b14612e0f576040805160e560020a62461bcd02815260206004820152601d60248201527f7265636976652077726f6e6720616d6f756e74206f6620746f6b656e73000000604482015290519081900360640190fd5b50505050565b600082820183811015612e72576040805160e560020a62461bcd02815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b3b63ffffffff16151590565b8282828083600160a060020a031663dd62ed3e84306040518363ffffffff1660e060020a0281526004018083600160a060020a0316815260200182600160a060020a031681526020019250505060206040518083038186803b158015612eec57600080fd5b505afa158015612f00573d6000803e3d6000fd5b505050506040513d6020811015612f1657600080fd5b50511015612f6e576040805160e560020a62461bcd02815260206004820152600c60248201527f6e6f20616c6c6f77616e63650000000000000000000000000000000000000000604482015290519081900360640190fd5b60008411612f7b57600080fd5b6000612f8787306137e2565b604080517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a038981166004830152306024830152604482018990529151929350908916916323b872dd916064808201926020929091908290030181600087803b158015612ffc57600080fd5b505af1158015613010573d6000803e3d6000fd5b505050506040513d602081101561302657600080fd5b505060408051868152600160a060020a03808916602083015289168183015290517f1fecf4702e692891a7c2f0d328779b085efb5edd094fa5558bd5cd147a1679229181900360600190a161307b87306137e2565b6130858287612e15565b146130da576040805160e560020a62461bcd02815260206004820152601d60248201527f7265636976652077726f6e6720616d6f756e74206f6620746f6b656e73000000604482015290519081900360640190fd5b50505050505050565b6040805160a081018252828152600160a060020a0385811660208084018281528486018881526000606087018181524260808901908152601380548452601487528a842099518a5594516001808b01805473ffffffffffffffffffffffffffffffffffffffff191692909a169190911790985592516002890155516003880155905160049096019590955533855260158252858520815481549586018255908652828620909401939093559154845190815291820152825191927ff4d99203a75a5961a6c1decf46e41b27f411990cda8e317361361339f8dffa5592918290030190a16131d36013546001612e15565b60138190556131e39060016135f9565b949350505050565b60008281806131f987610e0e565b600581111561320457fe5b1415613249576000868152601160205260409020600c015461322890859087613867565b50600086815260116020526040902060040154613246908390613533565b90505b600161325487610e0e565b600581111561325f57fe5b141561336857600a5482101580156132795750600b548211155b6132cd576040805160e560020a62461bcd02815260206004820152601b60248201527f496e766573746d656e7420616d6f756e74206e6f742076616c69640000000000604482015290519081900360640190fd5b6132d68461390d565b61332a576040805160e560020a62461bcd02815260206004820152601a60248201527f4f6e6c7920504f5a20686f6c6465722063616e20696e76657374000000000000604482015290519081900360640190fd5b6000868152601160205260409020600c01546133479085906139c0565b50600086815260116020526040902060030154613365908390613533565b90505b683635c9adc5dea00000811061341f576000868152601160205260409020600d0154610100900460ff16156133ad576133aa81683635c9adc5dea0000061358f565b90505b600086815260116020526040902060080154811115613416576040805160e560020a62461bcd02815260206004820152601d60248201527f4e6f7420656e6f75676820746f6b656e7320696e2074686520706f6f6c000000604482015290519081900360640190fd5b915061184d9050565b6040805160e560020a62461bcd02815260206004820152601f60248201527f57726f6e6720706f6f6c2073746174757320746f2043616c63546f6b656e7300604482015290519081900360640190fd5b61347883611457565b156134b0576000828152601460205260409020600301546134999082612e15565b600083815260146020526040902060030155612c16565b600083815260116020908152604080832054858452601490925290912060010154612c1691600160a060020a03908116911683612ccc565b6000806134f483610e0e565b60058111156134ff57fe5b141561350e575060025461111a565b600161351983610e0e565b600581111561352457fe5b141561111a575060065461111a565b60008261354257506000612e75565b8282028284828161354f57fe5b0414612e725760405160e560020a62461bcd028152600401808060200182810382526021815260200180613adb6021913960400191505060405180910390fd5b60008082116135e8576040805160e560020a62461bcd02815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816135f157fe5b049392505050565b600082821115613653576040805160e560020a62461bcd02815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008281526011602052604090206008015461367590826135f9565b60008381526011602052604090206008018190556136c5576040805183815290517f5aa793a17b0774b891ce2b0dd5dbe8f04132e547df384ab1053d32470050b5fa9181900360200190a1610d5e565b6040805183815290517f46074c56f8b8129e3ada6879521255be1596856f97bf16070e5cdd3a10dc1df79181900360200190a15050565b60408051828152600160a060020a038416602082015281517feca5ae7bd9109b0f7d228f3f8a8cc834a1f995af62df6dc226dc3ab3f38dc7b3929181900390910190a1604051600160a060020a03831680319183156108fc029084906000818181858888f19350505050158015613777573d6000803e3d6000fd5b5082600160a060020a03163161378d8284612e15565b14612c16576040805160e560020a62461bcd02815260206004820152601d60248201527f546865207472616e7366657220646964206e6f7420636f6d706c697465000000604482015290519081900360640190fd5b600082600160a060020a03166370a08231836040518263ffffffff1660e060020a0281526004018082600160a060020a0316815260200191505060206040518083038186803b15801561383457600080fd5b505afa158015613848573d6000803e3d6000fd5b505050506040513d602081101561385e57600080fd5b50519392505050565b6000826138765750600161184d565b600c54604080517f1d759fb2000000000000000000000000000000000000000000000000000000008152600160a060020a038781166004830152602482018790526044820186905291519190921691631d759fb291606480830192600092919082900301818387803b1580156138eb57600080fd5b505af11580156138ff573d6000803e3d6000fd5b506001979650505050505050565b600d54600090600160a060020a03166139285750600161111a565b600d54604080517fb217bb01000000000000000000000000000000000000000000000000000000008152600160a060020a0385811660048301529151919092169163b217bb01916024808301926020929190829003018186803b15801561398e57600080fd5b505afa1580156139a2573d6000803e3d6000fd5b505050506040513d60208110156139b857600080fd5b505192915050565b6000816139cf57506001612e75565b600c54604080517f24bede3e000000000000000000000000000000000000000000000000000000008152600160a060020a03868116600483015260248201869052915191909216916324bede3e91604480830192600092919082900301818387803b158015613a3d57600080fd5b505af1158015613a51573d6000803e3d6000fd5b506001969550505050505056fe504f5a20686f6c64657273206e65656420746f20686176652062657474657220707269636520286f72207468652073616d65294f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536f6d65207468696e672077726f6e67207769746820746865206d736753656e646572536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572417574686f72697a6174696f6e204572726f7200000000000000000000000000496e76616c696420506f6f6c2049440000000000000000000000000000000000a2646970667358221220c586a45eb5511edd39eaa89c609e6277682b202acee755e8187c6bee7cbbeb5e64736f6c634300060c0033 \ No newline at end of file diff --git a/PoolzBack/ContractDefinition/PoolzBackDefinition.cs b/PoolzBack/ContractDefinition/PoolzBackDefinition.cs index 19155e1..3848e47 100644 --- a/PoolzBack/ContractDefinition/PoolzBackDefinition.cs +++ b/PoolzBack/ContractDefinition/PoolzBackDefinition.cs @@ -9,7 +9,7 @@ using Nethereum.Contracts; using System.Threading; -namespace poolz.finance.csharp.PoolzBack.ContractDefinition +namespace poolz.finance.csharp.contracts.PoolzBack.ContractDefinition { @@ -21,7 +21,7 @@ public PoolzBackDeployment(string byteCode) : base(byteCode) { } public class PoolzBackDeploymentBase : ContractDeploymentMessage { - public static string BYTECODE = ""; + public static string BYTECODE = "0x60806040523480156200001157600080fd5b50600062000027640100000000620000cb810204565b60008054600160a060020a031916600160a060020a0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506000805460a060020a60ff021916905560018054600160a060020a0319169055600f6002556103e86003556004805460ff19169055601460065562ed4e00600855612710600a5568056bc75e2d63100000600b55620000cf565b3390565b613b9180620000df6000396000f3fe6080604052600436106103215760003560e060020a9004806391314dde116101af578063bed06041116100fb578063e890671611610099578063f2fde38b11610073578063f2fde38b14610b61578063f318824814610b94578063fc1a86ff14610bbe578063fd711a5514610bf95761033e565b8063e890671614610ae7578063ee63e8bd14610b1a578063f04be48b14610b445761033e565b8063ccb801bf116100d5578063ccb801bf146109d3578063d0f52910146109fd578063e34c777214610a50578063e4ec0f6814610a7a5761033e565b8063bed0604114610994578063bef7a2f0146109a9578063cab17046146109be5761033e565b8063aac5da5c11610168578063b7d9b6f111610142578063b7d9b6f1146108d7578063b973d7bc14610907578063b977eddf1461093a578063be33a3ec146109645761033e565b8063aac5da5c14610898578063abb7add2146108ad578063b5f98b8e146108c25761033e565b806391314dde146107d25780639642ec0c146107e7578063991e979a146107fc578063a73ff1281461082f578063a87d2be414610859578063aa825486146108835761033e565b80635cdddc7c1161026e5780636b58f2f61161022757806376ab7b441161020157806376ab7b441461074b57806387e3c5991461077e5780638c788de0146107a85780638da5cb5b146107bd5761033e565b80636b58f2f6146106f7578063715018a61461072157806375c64dd1146107365761033e565b80635cdddc7c1461056f57806360f9e80a1461058457806360fdd7c4146105e157806363552a491461064a57806366818967146106af5780636b1fe0b6146106e25761033e565b806318c9be4a116102db57806341004025116102b557806341004025146104c657806353eb3167146105305780635796bc43146105455780635c975abb1461055a5761033e565b806318c9be4a1461046c57806327ca36ec146104815780633e90eea7146104965761033e565b8062172ddf14610343578063043d520b1461036d57806307b027ed146103945780630cd8e965146103a95780630d08caa0146103da578063114fa9bd146104255761033e565b3661033e5760005460a060020a900460ff1661033c57600080fd5b005b600080fd5b34801561034f57600080fd5b5061033c6004803603602081101561036657600080fd5b5035610c23565b34801561037957600080fd5b50610382610d62565b60408051918252519081900360200190f35b3480156103a057600080fd5b5061033c610d68565b3480156103b557600080fd5b506103be610dff565b60408051600160a060020a039092168252519081900360200190f35b3480156103e657600080fd5b50610404600480360360208110156103fd57600080fd5b5035610e0e565b6040518082600581111561041457fe5b815260200191505060405180910390f35b34801561043157600080fd5b506104586004803603602081101561044857600080fd5b5035600160a060020a031661105d565b604080519115158252519081900360200190f35b34801561047857600080fd5b5061038261111f565b34801561048d57600080fd5b50610382611125565b3480156104a257600080fd5b5061033c600480360360408110156104b957600080fd5b508035906020013561112b565b3480156104d257600080fd5b506104f0600480360360208110156104e957600080fd5b50356111a9565b6040805167ffffffffffffffff909716875260208701959095528585019390935260608501919091526080840152151560a0830152519081900360c00190f35b34801561053c57600080fd5b5061038261124d565b34801561055157600080fd5b506103be611253565b34801561056657600080fd5b50610458611262565b34801561057b57600080fd5b5061045861126b565b34801561059057600080fd5b506105ae600480360360208110156105a757600080fd5b503561127b565b60408051958652600160a060020a0390941660208601528484019290925260608401526080830152519081900360a00190f35b3480156105ed57600080fd5b5061060b6004803603602081101561060457600080fd5b50356112b4565b60408051600160a060020a039788168152959096166020860152848601939093526060840191909152608083015260a082015290519081900360c00190f35b34801561065657600080fd5b5061065f61134e565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561069b578181015183820152602001610683565b505050509050019250505060405180910390f35b3480156106bb57600080fd5b5061033c600480360360208110156106d257600080fd5b5035600160a060020a03166113af565b3480156106ee57600080fd5b50610382611451565b34801561070357600080fd5b506104586004803603602081101561071a57600080fd5b5035611457565b34801561072d57600080fd5b5061033c61147a565b34801561074257600080fd5b50610382611536565b34801561075757600080fd5b5061033c6004803603602081101561076e57600080fd5b5035600160a060020a031661153c565b34801561078a57600080fd5b50610458600480360360208110156107a157600080fd5b50356115de565b3480156107b457600080fd5b50610382611696565b3480156107c957600080fd5b506103be61169c565b3480156107de57600080fd5b5061065f6116ab565b3480156107f357600080fd5b506103be61170a565b34801561080857600080fd5b5061033c6004803603602081101561081f57600080fd5b5035600160a060020a0316611719565b34801561083b57600080fd5b506104586004803603602081101561085257600080fd5b50356117b4565b34801561086557600080fd5b5061033c6004803603602081101561087c57600080fd5b5035611854565b34801561088f57600080fd5b506103826118e8565b3480156108a457600080fd5b5061033c6118ee565b3480156108b957600080fd5b50610382611985565b3480156108ce57600080fd5b5061045861198b565b3480156108e357600080fd5b5061033c600480360360408110156108fa57600080fd5b508035906020013561199b565b34801561091357600080fd5b5061033c6004803603602081101561092a57600080fd5b5035600160a060020a0316611a19565b34801561094657600080fd5b5061033c6004803603602081101561095d57600080fd5b5035611abb565b34801561097057600080fd5b5061033c6004803603604081101561098757600080fd5b5080359060200135611b33565b3480156109a057600080fd5b50610382611e15565b3480156109b557600080fd5b50610382611e1b565b3480156109ca57600080fd5b50610382611e21565b3480156109df57600080fd5b5061033c600480360360208110156109f657600080fd5b5035611e27565b348015610a0957600080fd5b50610a2760048036036020811015610a2057600080fd5b5035611e9f565b6040805193151584526020840192909252600160a060020a031682820152519081900360600190f35b348015610a5c57600080fd5b5061045860048036036020811015610a7357600080fd5b5035611f22565b61033c6004803603610140811015610a9157600080fd5b50600160a060020a03813581169160208101359160408201359160608101359160808201359167ffffffffffffffff60a0820135169160c0820135169060e0810135151590610100810135906101200135611f7f565b348015610af357600080fd5b5061045860048036036020811015610b0a57600080fd5b5035600160a060020a03166125f3565b348015610b2657600080fd5b5061033c60048036036020811015610b3d57600080fd5b503561267f565b61033c60048036036020811015610b5a57600080fd5b50356126f7565b348015610b6d57600080fd5b5061033c60048036036020811015610b8457600080fd5b5035600160a060020a03166129ec565b348015610ba057600080fd5b5061033c60048036036020811015610bb757600080fd5b5035612b01565b348015610bca57600080fd5b5061033c60048036036040811015610be157600080fd5b50600160a060020a0381358116916020013516612b89565b348015610c0557600080fd5b5061045860048036036020811015610c1c57600080fd5b5035612c1b565b610c2b61169c565b600160a060020a031633600160a060020a03161480610c545750600154600160a060020a031633145b610c96576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613b1c833981519152604482015290519081900360640190fd5b80612710811015610d0e578160025480821115610cb7576006849055610d07565b6040805160e560020a62461bcd02815260206004820152600a60248201527f4e6f742062696767657200000000000000000000000000000000000000000000604482015290519081900360640190fd5b5050610d5e565b6040805160e560020a62461bcd02815260206004820152600c60248201527f4e6f7420696e2072616e67650000000000000000000000000000000000000000604482015290519081900360640190fd5b5050565b600f5481565b610d70612cc8565b600160a060020a0316610d8161169c565b600160a060020a031614610dcd576040805160e560020a62461bcd0281526020600482018190526024820152600080516020613afc833981519152604482015290519081900360640190fd5b600d805474ff000000000000000000000000000000000000000019811660a060020a9182900460ff1615909102179055565b600154600160a060020a031681565b6000816010548110610e58576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613b3c833981519152604482015290519081900360640190fd5b600083815260116020526040902060090154421015610e7a5760029150611057565b6000838152601160205260409020600a015442108015610eaa575060008381526011602052604090206008015415155b15610eb85760009150611057565b6000838152601160205260409020600a01544210801590610ee9575060008381526011602052604090206008015415155b8015610f05575060008381526011602052604090206002015442105b15610f135760019150611057565b600083815260116020526040902060080154158015610f365750610f3683611457565b8015610f52575060008381526011602052604090206002015442105b15610f605760039150611057565b600083815260116020526040902060080154158015610f855750610f8383611457565b155b15610f935760059150611057565b6000838152601160205260409020600201544210801590610fba5750610fb883611457565b155b15610feb576000838152601160205260409020600d015460ff1615610fe25760059150611057565b60049150611057565b6000838152601160205260409020600d015460ff168061101a5750600083815260116020526040902060080154155b80156110445750600083815260116020526040902060068101546008820154600b90920154909101145b156110525760059150611057565b600491505b50919050565b600d5460009060a060020a900460ff1615806111175750600c54600e54604080517fcc44919b000000000000000000000000000000000000000000000000000000008152600160a060020a03868116600483015260248201939093529051600093929092169163cc44919b91604480820192602092909190829003018186803b1580156110e957600080fd5b505afa1580156110fd573d6000803e3d6000fd5b505050506040513d602081101561111357600080fd5b5051115b90505b919050565b600e5481565b60075481565b61113361169c565b600160a060020a031633600160a060020a0316148061115c5750600154600160a060020a031633145b61119e576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613b1c833981519152604482015290519081900360640190fd5b600a91909155600b55565b6000806000806000808660105481106111fa576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613b3c833981519152604482015290519081900360640190fd5b505050600094855250506011602052505060409020600781015460088201546009830154600a840154600b850154600d9095015467ffffffffffffffff9094169592949193909261010090910460ff1690565b60025481565b600d54600160a060020a031681565b60045460ff1690565b600d5460a060020a900460ff1681565b600090815260146020526040902080546001820154600283015460038401546004909401549294600160a060020a039092169390929091565b600080600080600080866010548110611305576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613b3c833981519152604482015290519081900360640190fd5b50505060009485525050601160205250506040902080546001820154600283015460038401546004850154600690950154600160a060020a039485169694909316949193909290565b336000908152601260209081526040918290208054835181840281018401909452808452606093928301828280156113a557602002820191906000526020600020905b815481526020019060010190808311611391575b5050505050905090565b6113b761169c565b600160a060020a031633600160a060020a031614806113e05750600154600160a060020a031633145b611422576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613b1c833981519152604482015290519081900360640190fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60135490565b6000908152601160205260409020600701544267ffffffffffffffff9091161190565b611482612cc8565b600160a060020a031661149361169c565b600160a060020a0316146114df576040805160e560020a62461bcd0281526020600482018190526024820152600080516020613afc833981519152604482015290519081900360640190fd5b60008054604051600160a060020a03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b60085481565b61154461169c565b600160a060020a031633600160a060020a0316148061156d5750600154600160a060020a031633145b6115af576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613b1c833981519152604482015290519081900360640190fd5b600d805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60006115e982611f22565b1561168e576000828152601460208181526040808420600381018054908690558154865260118452918520549487905292909152600190910154909161163c91600160a060020a03918216911683612ccc565b600083815260146020908152604080832054835260119091529020600b01546116659082612e15565b600084815260146020908152604080832054835260119091529020600b0155506001905061111a565b506000919050565b60105481565b600054600160a060020a031690565b336000908152601560209081526040918290208054835181840281018401909452808452606093928301828280156113a55760200282019190600052602060002090815481526020019060010190808311611391575050505050905090565b600c54600160a060020a031681565b611721612cc8565b600160a060020a031661173261169c565b600160a060020a03161461177e576040805160e560020a62461bcd0281526020600482018190526024820152600080516020613afc833981519152604482015290519081900360640190fd5b604051600160a060020a03821690303180156108fc02916000818181858888f19350505050158015610d5e573d6000803e3d6000fd5b60008160105481106117fe576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613b3c833981519152604482015290519081900360640190fd5b600083815260116020526040902060020154421080159061182f575060008381526011602052604090206008015415155b801561184d57506000838152601160205260409020600d015460ff16155b9392505050565b61185c61169c565b600160a060020a031633600160a060020a031614806118855750600154600160a060020a031633145b6118c7576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613b1c833981519152604482015290519081900360640190fd5b80612710811015610d0e576006548280821115610cb7576002849055610d07565b600b5481565b6118f6612cc8565b600160a060020a031661190761169c565b600160a060020a031614611953576040805160e560020a62461bcd0281526020600482018190526024820152600080516020613afc833981519152604482015290519081900360640190fd5b6000805474ff000000000000000000000000000000000000000019811660a060020a9182900460ff1615909102179055565b60035481565b60005460a060020a900460ff1681565b6119a361169c565b600160a060020a031633600160a060020a031614806119cc5750600154600160a060020a031633145b611a0e576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613b1c833981519152604482015290519081900360640190fd5b600791909155600855565b611a2161169c565b600160a060020a031633600160a060020a03161480611a4a5750600154600160a060020a031633145b611a8c576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613b1c833981519152604482015290519081900360640190fd5b600c805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b611ac361169c565b600160a060020a031633600160a060020a03161480611aec5750600154600160a060020a031633145b611b2e576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613b1c833981519152604482015290519081900360640190fd5b600955565b611b3b611262565b15611b90576040805160e560020a62461bcd02815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b60008281526011602052604090206009015442811115611bfa576040805160e560020a62461bcd02815260206004820152601160248201527f506f6f6c206e6f74206f70656e20796574000000000000000000000000000000604482015290519081900360640190fd5b826010548110611c42576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613b3c833981519152604482015290519081900360640190fd5b3332148015611c575750611c5533612e7b565b155b611c955760405160e560020a62461bcd028152600401808060200182810382526023815260200180613ab86023913960400191505060405180910390fd5b600084815260116020526040902060050154600160a060020a0316611d04576040805160e560020a62461bcd02815260206004820152601e60248201527f506f6f6c20697320666f72204554482c2075736520496e766573744554480000604482015290519081900360640190fd5b600084815260116020526040902060050154611d2a90600160a060020a03163385612e87565b6000611d373385876130e3565b90506000611d468686336131eb565b9050611d5386838361346f565b6000611d72611d6a87611d658a6134e8565b613533565b61271061358f565b90506000611d8087836135f9565b6000898152601160209081526040808320600590810154600160a060020a03168452909152902054909150611db59083612e15565b600089815260116020818152604080842060058181018054600160a060020a03908116885291855292862096909655938d905291905254600190910154611e0192918216911683612ccc565b611e0b8884613659565b5050505050505050565b60095481565b60065481565b600a5481565b611e2f61169c565b600160a060020a031633600160a060020a03161480611e585750600154600160a060020a031633145b611e9a576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613b1c833981519152604482015290519081900360640190fd5b600e55565b6000806000836010548110611eec576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613b3c833981519152604482015290519081900360640190fd5b505050600091825250601160205260409020600d810154600c82015460059092015460ff90911692600160a060020a0390911690565b60006013548211158015611f46575060008281526014602052604090206003015415155b8015611117575050600090815260146020908152604080832054835260119091529020600701544267ffffffffffffffff909116111590565b611f87611262565b15611fdc576040805160e560020a62461bcd02815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b600954341015612036576040805160e560020a62461bcd02815260206004820152601860248201527f4e65656420746f2070617920666f722074686520706f6f6c0000000000000000604482015290519081900360640190fd5b61203f8a61105d565b612093576040805160e560020a62461bcd02815260206004820152601660248201527f4e6565642056616c696420455243323020546f6b656e00000000000000000000604482015290519081900360640190fd5b600160a060020a03841615806120ad57506120ad846125f3565b612101576040805160e560020a62461bcd02815260206004820152601560248201527f4d61696e20636f696e206e6f7420696e206c6973740000000000000000000000604482015290519081900360640190fd5b61210d60085442612e15565b8910612163576040805160e560020a62461bcd02815260206004820181905260248201527f506f6f6c206475726174696f6e2063616e27742062652074686174206c6f6e67604482015290519081900360640190fd5b61216f60085442612e15565b8567ffffffffffffffff16106121cf576040805160e560020a62461bcd02815260206004820152601f60248201527f4c6f636b65642076616c75652063616e27742062652074686174206c6f6e6700604482015290519081900360640190fd5b868811156122115760405160e560020a62461bcd028152600401808060200182810382526033815260200180613a5f6033913960400191505060405180910390fd5b60008711612269576040805160e560020a62461bcd02815260206004820152601060248201527f49742077696c6c206e6f7420776f726b00000000000000000000000000000000604482015290519081900360640190fd5b42821015612275574291505b8861228242600754612e15565b11156122d8576040805160e560020a62461bcd02815260206004820152601a60248201527f4e656564206d6f7265207468656e204d696e4475726174696f6e000000000000604482015290519081900360640190fd5b6122e38a3388612e87565b600081156123115761230c612306611d6a6122fe8d876135f9565b600354613533565b84612e15565b612313565b825b905060405180604001604052806040518060e001604052808e600160a060020a0316815260200133600160a060020a031681526020018d81526020018c81526020018b815260200188600160a060020a031681526020018a81525081526020016040518061010001604052808967ffffffffffffffff1681526020018a81526020018681526020018481526020016000815260200185815260200160001515815260200187151581525081525060116000601054815260200190815260200160002060008201518160000160008201518160000160006101000a815481600160a060020a030219169083600160a060020a0316021790555060208201518160010160006101000a815481600160a060020a030219169083600160a060020a0316021790555060408201518160020155606082015181600301556080820151816004015560a08201518160050160006101000a815481600160a060020a030219169083600160a060020a0316021790555060c08201518160060155505060208201518160070160008201518160000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c08201518160060160006101000a81548160ff02191690831515021790555060e08201518160060160016101000a81548160ff02191690831515021790555050509050506012600033600160a060020a0316600160a060020a0316815260200190815260200160002060105490806001815401808255809150506001900390600052602060002001600090919091909150557fbe4222bc407cb12031595fc55b46531e46308d31e4572c9c4360d8ae790e1a318b6010546040518083600160a060020a031681526020018281526020019250505060405180910390a16125e36010546001612e15565b6010555050505050505050505050565b600d5460009060a060020a900460ff1615806111175750600c54600f54604080517fcc44919b000000000000000000000000000000000000000000000000000000008152600160a060020a03868116600483015260248201939093529051600093929092169163cc44919b91604480820192602092909190829003018186803b1580156110e957600080fd5b61268761169c565b600160a060020a031633600160a060020a031614806126b05750600154600160a060020a031633145b6126f2576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613b1c833981519152604482015290519081900360640190fd5b600f55565b3433600a5480831015612754576040805160e560020a62461bcd02815260206004820152601260248201527f53656e642045544820746f20696e766573740000000000000000000000000000604482015290519081900360640190fd5b60408051848152600160a060020a038416602082015281517f3a32cdd14cdfd431946dfa0b2aef5ace661340411aaadcaee6aef6738d302326929181900390910190a161279f611262565b156127f4576040805160e560020a62461bcd02815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b6000848152601160205260409020600901544281111561285e576040805160e560020a62461bcd02815260206004820152601160248201527f506f6f6c206e6f74206f70656e20796574000000000000000000000000000000604482015290519081900360640190fd5b8460105481106128a6576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613b3c833981519152604482015290519081900360640190fd5b33321480156128bb57506128b933612e7b565b155b6128f95760405160e560020a62461bcd028152600401808060200182810382526023815260200180613ab86023913960400191505060405180910390fd5b600086815260116020526040902060050154600160a060020a031615612969576040805160e560020a62461bcd02815260206004820152601460248201527f506f6f6c206973206f6e6c7920666f7220455448000000000000000000000000604482015290519081900360640190fd5b60006129763334896130e3565b905060006129858834336131eb565b905061299288838361346f565b60006129af611d6a34611d656127106129aa8e6134e8565b6135f9565b60008a8152601160205260409020600101549091506129d790600160a060020a0316826136fc565b6129e18983613659565b505050505050505050565b6129f4612cc8565b600160a060020a0316612a0561169c565b600160a060020a031614612a51576040805160e560020a62461bcd0281526020600482018190526024820152600080516020613afc833981519152604482015290519081900360640190fd5b600160a060020a038116612a995760405160e560020a62461bcd028152600401808060200182810382526026815260200180613a926026913960400191505060405180910390fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b612b0961169c565b600160a060020a031633600160a060020a03161480612b325750600154600160a060020a031633145b612b74576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613b1c833981519152604482015290519081900360640190fd5b80612710811015610d0e576003829055610d5e565b612b91612cc8565b600160a060020a0316612ba261169c565b600160a060020a031614612bee576040805160e560020a62461bcd0281526020600482018190526024820152600080516020613afc833981519152604482015290519081900360640190fd5b600160a060020a03821660009081526005602052604081208054919055612c16838383612ccc565b505050565b6000816010548110612c65576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613b3c833981519152604482015290519081900360640190fd5b612c6e836117b4565b15612cbf576000838152601160205260409020600d8101805460ff19166001908117909155815490820154600890920154612cb692600160a060020a03928316921690612ccc565b60019150611057565b50600092915050565b3390565b6000612cd884306137e2565b60408051848152600160a060020a03808716602083015287168183015290519192507fe4d818e6f992efbd60db553f3edce819a199baec79a784b95c89bc8ee86f2584919081900360600190a183600160a060020a031663a9059cbb84846040518363ffffffff1660e060020a0281526004018083600160a060020a0316815260200182815260200192505050602060405180830381600087803b158015612d7f57600080fd5b505af1158015612d93573d6000803e3d6000fd5b505050506040513d6020811015612da957600080fd5b50819050612dba61230686306137e2565b14612e0f576040805160e560020a62461bcd02815260206004820152601d60248201527f7265636976652077726f6e6720616d6f756e74206f6620746f6b656e73000000604482015290519081900360640190fd5b50505050565b600082820183811015612e72576040805160e560020a62461bcd02815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b3b63ffffffff16151590565b8282828083600160a060020a031663dd62ed3e84306040518363ffffffff1660e060020a0281526004018083600160a060020a0316815260200182600160a060020a031681526020019250505060206040518083038186803b158015612eec57600080fd5b505afa158015612f00573d6000803e3d6000fd5b505050506040513d6020811015612f1657600080fd5b50511015612f6e576040805160e560020a62461bcd02815260206004820152600c60248201527f6e6f20616c6c6f77616e63650000000000000000000000000000000000000000604482015290519081900360640190fd5b60008411612f7b57600080fd5b6000612f8787306137e2565b604080517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a038981166004830152306024830152604482018990529151929350908916916323b872dd916064808201926020929091908290030181600087803b158015612ffc57600080fd5b505af1158015613010573d6000803e3d6000fd5b505050506040513d602081101561302657600080fd5b505060408051868152600160a060020a03808916602083015289168183015290517f1fecf4702e692891a7c2f0d328779b085efb5edd094fa5558bd5cd147a1679229181900360600190a161307b87306137e2565b6130858287612e15565b146130da576040805160e560020a62461bcd02815260206004820152601d60248201527f7265636976652077726f6e6720616d6f756e74206f6620746f6b656e73000000604482015290519081900360640190fd5b50505050505050565b6040805160a081018252828152600160a060020a0385811660208084018281528486018881526000606087018181524260808901908152601380548452601487528a842099518a5594516001808b01805473ffffffffffffffffffffffffffffffffffffffff191692909a169190911790985592516002890155516003880155905160049096019590955533855260158252858520815481549586018255908652828620909401939093559154845190815291820152825191927ff4d99203a75a5961a6c1decf46e41b27f411990cda8e317361361339f8dffa5592918290030190a16131d36013546001612e15565b60138190556131e39060016135f9565b949350505050565b60008281806131f987610e0e565b600581111561320457fe5b1415613249576000868152601160205260409020600c015461322890859087613867565b50600086815260116020526040902060040154613246908390613533565b90505b600161325487610e0e565b600581111561325f57fe5b141561336857600a5482101580156132795750600b548211155b6132cd576040805160e560020a62461bcd02815260206004820152601b60248201527f496e766573746d656e7420616d6f756e74206e6f742076616c69640000000000604482015290519081900360640190fd5b6132d68461390d565b61332a576040805160e560020a62461bcd02815260206004820152601a60248201527f4f6e6c7920504f5a20686f6c6465722063616e20696e76657374000000000000604482015290519081900360640190fd5b6000868152601160205260409020600c01546133479085906139c0565b50600086815260116020526040902060030154613365908390613533565b90505b683635c9adc5dea00000811061341f576000868152601160205260409020600d0154610100900460ff16156133ad576133aa81683635c9adc5dea0000061358f565b90505b600086815260116020526040902060080154811115613416576040805160e560020a62461bcd02815260206004820152601d60248201527f4e6f7420656e6f75676820746f6b656e7320696e2074686520706f6f6c000000604482015290519081900360640190fd5b915061184d9050565b6040805160e560020a62461bcd02815260206004820152601f60248201527f57726f6e6720706f6f6c2073746174757320746f2043616c63546f6b656e7300604482015290519081900360640190fd5b61347883611457565b156134b0576000828152601460205260409020600301546134999082612e15565b600083815260146020526040902060030155612c16565b600083815260116020908152604080832054858452601490925290912060010154612c1691600160a060020a03908116911683612ccc565b6000806134f483610e0e565b60058111156134ff57fe5b141561350e575060025461111a565b600161351983610e0e565b600581111561352457fe5b141561111a575060065461111a565b60008261354257506000612e75565b8282028284828161354f57fe5b0414612e725760405160e560020a62461bcd028152600401808060200182810382526021815260200180613adb6021913960400191505060405180910390fd5b60008082116135e8576040805160e560020a62461bcd02815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816135f157fe5b049392505050565b600082821115613653576040805160e560020a62461bcd02815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008281526011602052604090206008015461367590826135f9565b60008381526011602052604090206008018190556136c5576040805183815290517f5aa793a17b0774b891ce2b0dd5dbe8f04132e547df384ab1053d32470050b5fa9181900360200190a1610d5e565b6040805183815290517f46074c56f8b8129e3ada6879521255be1596856f97bf16070e5cdd3a10dc1df79181900360200190a15050565b60408051828152600160a060020a038416602082015281517feca5ae7bd9109b0f7d228f3f8a8cc834a1f995af62df6dc226dc3ab3f38dc7b3929181900390910190a1604051600160a060020a03831680319183156108fc029084906000818181858888f19350505050158015613777573d6000803e3d6000fd5b5082600160a060020a03163161378d8284612e15565b14612c16576040805160e560020a62461bcd02815260206004820152601d60248201527f546865207472616e7366657220646964206e6f7420636f6d706c697465000000604482015290519081900360640190fd5b600082600160a060020a03166370a08231836040518263ffffffff1660e060020a0281526004018082600160a060020a0316815260200191505060206040518083038186803b15801561383457600080fd5b505afa158015613848573d6000803e3d6000fd5b505050506040513d602081101561385e57600080fd5b50519392505050565b6000826138765750600161184d565b600c54604080517f1d759fb2000000000000000000000000000000000000000000000000000000008152600160a060020a038781166004830152602482018790526044820186905291519190921691631d759fb291606480830192600092919082900301818387803b1580156138eb57600080fd5b505af11580156138ff573d6000803e3d6000fd5b506001979650505050505050565b600d54600090600160a060020a03166139285750600161111a565b600d54604080517fb217bb01000000000000000000000000000000000000000000000000000000008152600160a060020a0385811660048301529151919092169163b217bb01916024808301926020929190829003018186803b15801561398e57600080fd5b505afa1580156139a2573d6000803e3d6000fd5b505050506040513d60208110156139b857600080fd5b505192915050565b6000816139cf57506001612e75565b600c54604080517f24bede3e000000000000000000000000000000000000000000000000000000008152600160a060020a03868116600483015260248201869052915191909216916324bede3e91604480830192600092919082900301818387803b158015613a3d57600080fd5b505af1158015613a51573d6000803e3d6000fd5b506001969550505050505056fe504f5a20686f6c64657273206e65656420746f20686176652062657474657220707269636520286f72207468652073616d65294f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536f6d65207468696e672077726f6e67207769746820746865206d736753656e646572536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572417574686f72697a6174696f6e204572726f7200000000000000000000000000496e76616c696420506f6f6c2049440000000000000000000000000000000000a2646970667358221220c586a45eb5511edd39eaa89c609e6277682b202acee755e8187c6bee7cbbeb5e64736f6c634300060c0033"; public PoolzBackDeploymentBase() : base(BYTECODE) { } public PoolzBackDeploymentBase(string byteCode) : base(byteCode) { } diff --git a/PoolzBack/PoolzBackDeployingService.cs b/PoolzBack/PoolzBackDeployingService.cs new file mode 100644 index 0000000..b9e700f --- /dev/null +++ b/PoolzBack/PoolzBackDeployingService.cs @@ -0,0 +1,35 @@ +using System; +using System.Threading.Tasks; +using System.Collections.Generic; +using System.Numerics; +using Nethereum.Hex.HexTypes; +using Nethereum.ABI.FunctionEncoding.Attributes; +using Nethereum.Web3; +using Nethereum.RPC.Eth.DTOs; +using Nethereum.Contracts.CQS; +using Nethereum.Contracts.ContractHandlers; +using Nethereum.Contracts; +using System.Threading; +using poolz.finance.csharp.contracts.PoolzBack.ContractDefinition; + +namespace poolz.finance.csharp.contracts.PoolzBack +{ + public partial class PoolzBackDeployingService + { + public virtual Task DeployContractAndWaitForReceiptAsync(Nethereum.Web3.IWeb3 web3, PoolzBackDeployment poolzBackDeployment, CancellationTokenSource cancellationTokenSource = null) + { + return web3.Eth.GetContractDeploymentHandler().SendRequestAndWaitForReceiptAsync(poolzBackDeployment, cancellationTokenSource); + } + + public virtual Task DeployContractAsync(Nethereum.Web3.IWeb3 web3, PoolzBackDeployment poolzBackDeployment) + { + return web3.Eth.GetContractDeploymentHandler().SendRequestAsync(poolzBackDeployment); + } + + public virtual async Task DeployContractAndGetServiceAsync(Nethereum.Web3.IWeb3 web3, PoolzBackDeployment poolzBackDeployment, CancellationTokenSource cancellationTokenSource = null) + { + var receipt = await DeployContractAndWaitForReceiptAsync(web3, poolzBackDeployment, cancellationTokenSource); + return new PoolzBackService(web3, receipt.ContractAddress); + } + } +} diff --git a/PoolzBack/PoolzBackService.cs b/PoolzBack/PoolzBackService.cs index f275e97..d079db8 100644 --- a/PoolzBack/PoolzBackService.cs +++ b/PoolzBack/PoolzBackService.cs @@ -10,31 +10,15 @@ using Nethereum.Contracts.ContractHandlers; using Nethereum.Contracts; using System.Threading; -using poolz.finance.csharp.PoolzBack.ContractDefinition; +using poolz.finance.csharp.contracts.PoolzBack.ContractDefinition; -namespace poolz.finance.csharp.PoolzBack +namespace poolz.finance.csharp.contracts.PoolzBack { public partial class PoolzBackService { - public static Task DeployContractAndWaitForReceiptAsync(Nethereum.Web3.Web3 web3, PoolzBackDeployment poolzBackDeployment, CancellationTokenSource cancellationTokenSource = null) - { - return web3.Eth.GetContractDeploymentHandler().SendRequestAndWaitForReceiptAsync(poolzBackDeployment, cancellationTokenSource); - } - - public static Task DeployContractAsync(Nethereum.Web3.Web3 web3, PoolzBackDeployment poolzBackDeployment) - { - return web3.Eth.GetContractDeploymentHandler().SendRequestAsync(poolzBackDeployment); - } - - public static async Task DeployContractAndGetServiceAsync(Nethereum.Web3.Web3 web3, PoolzBackDeployment poolzBackDeployment, CancellationTokenSource cancellationTokenSource = null) - { - var receipt = await DeployContractAndWaitForReceiptAsync(web3, poolzBackDeployment, cancellationTokenSource); - return new PoolzBackService(web3, receipt.ContractAddress); - } - - protected Nethereum.Web3.IWeb3 Web3{ get; } + protected virtual Nethereum.Web3.IWeb3 Web3 { get; } - public ContractHandler ContractHandler { get; } + public virtual ContractHandler ContractHandler { get; } public PoolzBackService(Nethereum.Web3.Web3 web3, string contractAddress) { @@ -48,28 +32,28 @@ public PoolzBackService(Nethereum.Web3.IWeb3 web3, string contractAddress) ContractHandler = web3.Eth.GetContractHandler(contractAddress); } - public Task BenefitAddressQueryAsync(BenefitAddressFunction benefitAddressFunction, BlockParameter blockParameter = null) + public virtual Task BenefitAddressQueryAsync(BenefitAddressFunction benefitAddressFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(benefitAddressFunction, blockParameter); } - public Task BenefitAddressQueryAsync(BlockParameter blockParameter = null) + public virtual Task BenefitAddressQueryAsync(BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(null, blockParameter); } - public Task CreatePoolRequestAsync(CreatePoolFunction createPoolFunction) + public virtual Task CreatePoolRequestAsync(CreatePoolFunction createPoolFunction) { return ContractHandler.SendRequestAsync(createPoolFunction); } - public Task CreatePoolRequestAndWaitForReceiptAsync(CreatePoolFunction createPoolFunction, CancellationTokenSource cancellationToken = null) + public virtual Task CreatePoolRequestAndWaitForReceiptAsync(CreatePoolFunction createPoolFunction, CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(createPoolFunction, cancellationToken); } - public Task CreatePoolRequestAsync(string token, BigInteger finishTime, BigInteger rate, BigInteger pOZRate, BigInteger startAmount, ulong lockedUntil, string mainCoin, bool is21Decimal, BigInteger now, BigInteger whiteListId) + public virtual Task CreatePoolRequestAsync(string token, BigInteger finishTime, BigInteger rate, BigInteger pOZRate, BigInteger startAmount, ulong lockedUntil, string mainCoin, bool is21Decimal, BigInteger now, BigInteger whiteListId) { var createPoolFunction = new CreatePoolFunction(); createPoolFunction.Token = token; @@ -86,7 +70,7 @@ public Task CreatePoolRequestAsync(string token, BigInteger finishTime, return ContractHandler.SendRequestAsync(createPoolFunction); } - public Task CreatePoolRequestAndWaitForReceiptAsync(string token, BigInteger finishTime, BigInteger rate, BigInteger pOZRate, BigInteger startAmount, ulong lockedUntil, string mainCoin, bool is21Decimal, BigInteger now, BigInteger whiteListId, CancellationTokenSource cancellationToken = null) + public virtual Task CreatePoolRequestAndWaitForReceiptAsync(string token, BigInteger finishTime, BigInteger rate, BigInteger pOZRate, BigInteger startAmount, ulong lockedUntil, string mainCoin, bool is21Decimal, BigInteger now, BigInteger whiteListId, CancellationTokenSource cancellationToken = null) { var createPoolFunction = new CreatePoolFunction(); createPoolFunction.Token = token; @@ -103,23 +87,23 @@ public Task CreatePoolRequestAndWaitForReceiptAsync(string t return ContractHandler.SendRequestAndWaitForReceiptAsync(createPoolFunction, cancellationToken); } - public Task FeeQueryAsync(FeeFunction feeFunction, BlockParameter blockParameter = null) + public virtual Task FeeQueryAsync(FeeFunction feeFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(feeFunction, blockParameter); } - public Task FeeQueryAsync(BlockParameter blockParameter = null) + public virtual Task FeeQueryAsync(BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(null, blockParameter); } - public Task GetInvestmentDataQueryAsync(GetInvestmentDataFunction getInvestmentDataFunction, BlockParameter blockParameter = null) + public virtual Task GetInvestmentDataQueryAsync(GetInvestmentDataFunction getInvestmentDataFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryDeserializingToObjectAsync(getInvestmentDataFunction, blockParameter); } - public Task GetInvestmentDataQueryAsync(BigInteger id, BlockParameter blockParameter = null) + public virtual Task GetInvestmentDataQueryAsync(BigInteger id, BlockParameter blockParameter = null) { var getInvestmentDataFunction = new GetInvestmentDataFunction(); getInvestmentDataFunction.Id = id; @@ -127,34 +111,34 @@ public Task GetInvestmentDataQueryAsync(BigInteger i return ContractHandler.QueryDeserializingToObjectAsync(getInvestmentDataFunction, blockParameter); } - public Task> GetMyInvestmentIdsQueryAsync(GetMyInvestmentIdsFunction getMyInvestmentIdsFunction, BlockParameter blockParameter = null) + public virtual Task> GetMyInvestmentIdsQueryAsync(GetMyInvestmentIdsFunction getMyInvestmentIdsFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync>(getMyInvestmentIdsFunction, blockParameter); } - public Task> GetMyInvestmentIdsQueryAsync(BlockParameter blockParameter = null) + public virtual Task> GetMyInvestmentIdsQueryAsync(BlockParameter blockParameter = null) { return ContractHandler.QueryAsync>(null, blockParameter); } - public Task> GetMyPoolsIdQueryAsync(GetMyPoolsIdFunction getMyPoolsIdFunction, BlockParameter blockParameter = null) + public virtual Task> GetMyPoolsIdQueryAsync(GetMyPoolsIdFunction getMyPoolsIdFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync>(getMyPoolsIdFunction, blockParameter); } - public Task> GetMyPoolsIdQueryAsync(BlockParameter blockParameter = null) + public virtual Task> GetMyPoolsIdQueryAsync(BlockParameter blockParameter = null) { return ContractHandler.QueryAsync>(null, blockParameter); } - public Task GetPoolBaseDataQueryAsync(GetPoolBaseDataFunction getPoolBaseDataFunction, BlockParameter blockParameter = null) + public virtual Task GetPoolBaseDataQueryAsync(GetPoolBaseDataFunction getPoolBaseDataFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryDeserializingToObjectAsync(getPoolBaseDataFunction, blockParameter); } - public Task GetPoolBaseDataQueryAsync(BigInteger id, BlockParameter blockParameter = null) + public virtual Task GetPoolBaseDataQueryAsync(BigInteger id, BlockParameter blockParameter = null) { var getPoolBaseDataFunction = new GetPoolBaseDataFunction(); getPoolBaseDataFunction.Id = id; @@ -162,12 +146,12 @@ public Task GetPoolBaseDataQueryAsync(BigInteger id, B return ContractHandler.QueryDeserializingToObjectAsync(getPoolBaseDataFunction, blockParameter); } - public Task GetPoolExtraDataQueryAsync(GetPoolExtraDataFunction getPoolExtraDataFunction, BlockParameter blockParameter = null) + public virtual Task GetPoolExtraDataQueryAsync(GetPoolExtraDataFunction getPoolExtraDataFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryDeserializingToObjectAsync(getPoolExtraDataFunction, blockParameter); } - public Task GetPoolExtraDataQueryAsync(BigInteger id, BlockParameter blockParameter = null) + public virtual Task GetPoolExtraDataQueryAsync(BigInteger id, BlockParameter blockParameter = null) { var getPoolExtraDataFunction = new GetPoolExtraDataFunction(); getPoolExtraDataFunction.Id = id; @@ -175,12 +159,12 @@ public Task GetPoolExtraDataQueryAsync(BigInteger id, return ContractHandler.QueryDeserializingToObjectAsync(getPoolExtraDataFunction, blockParameter); } - public Task GetPoolMoreDataQueryAsync(GetPoolMoreDataFunction getPoolMoreDataFunction, BlockParameter blockParameter = null) + public virtual Task GetPoolMoreDataQueryAsync(GetPoolMoreDataFunction getPoolMoreDataFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryDeserializingToObjectAsync(getPoolMoreDataFunction, blockParameter); } - public Task GetPoolMoreDataQueryAsync(BigInteger id, BlockParameter blockParameter = null) + public virtual Task GetPoolMoreDataQueryAsync(BigInteger id, BlockParameter blockParameter = null) { var getPoolMoreDataFunction = new GetPoolMoreDataFunction(); getPoolMoreDataFunction.Id = id; @@ -188,13 +172,13 @@ public Task GetPoolMoreDataQueryAsync(BigInteger id, B return ContractHandler.QueryDeserializingToObjectAsync(getPoolMoreDataFunction, blockParameter); } - public Task GetPoolStatusQueryAsync(GetPoolStatusFunction getPoolStatusFunction, BlockParameter blockParameter = null) + public virtual Task GetPoolStatusQueryAsync(GetPoolStatusFunction getPoolStatusFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(getPoolStatusFunction, blockParameter); } - public Task GetPoolStatusQueryAsync(BigInteger id, BlockParameter blockParameter = null) + public virtual Task GetPoolStatusQueryAsync(BigInteger id, BlockParameter blockParameter = null) { var getPoolStatusFunction = new GetPoolStatusFunction(); getPoolStatusFunction.Id = id; @@ -202,28 +186,28 @@ public Task GetPoolStatusQueryAsync(BigInteger id, BlockParameter blockPar return ContractHandler.QueryAsync(getPoolStatusFunction, blockParameter); } - public Task GovernerContractQueryAsync(GovernerContractFunction governerContractFunction, BlockParameter blockParameter = null) + public virtual Task GovernerContractQueryAsync(GovernerContractFunction governerContractFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(governerContractFunction, blockParameter); } - public Task GovernerContractQueryAsync(BlockParameter blockParameter = null) + public virtual Task GovernerContractQueryAsync(BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(null, blockParameter); } - public Task InvestERC20RequestAsync(InvestERC20Function investERC20Function) + public virtual Task InvestERC20RequestAsync(InvestERC20Function investERC20Function) { return ContractHandler.SendRequestAsync(investERC20Function); } - public Task InvestERC20RequestAndWaitForReceiptAsync(InvestERC20Function investERC20Function, CancellationTokenSource cancellationToken = null) + public virtual Task InvestERC20RequestAndWaitForReceiptAsync(InvestERC20Function investERC20Function, CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(investERC20Function, cancellationToken); } - public Task InvestERC20RequestAsync(BigInteger poolId, BigInteger amount) + public virtual Task InvestERC20RequestAsync(BigInteger poolId, BigInteger amount) { var investERC20Function = new InvestERC20Function(); investERC20Function.PoolId = poolId; @@ -232,7 +216,7 @@ public Task InvestERC20RequestAsync(BigInteger poolId, BigInteger amount return ContractHandler.SendRequestAsync(investERC20Function); } - public Task InvestERC20RequestAndWaitForReceiptAsync(BigInteger poolId, BigInteger amount, CancellationTokenSource cancellationToken = null) + public virtual Task InvestERC20RequestAndWaitForReceiptAsync(BigInteger poolId, BigInteger amount, CancellationTokenSource cancellationToken = null) { var investERC20Function = new InvestERC20Function(); investERC20Function.PoolId = poolId; @@ -241,17 +225,17 @@ public Task InvestERC20RequestAndWaitForReceiptAsync(BigInte return ContractHandler.SendRequestAndWaitForReceiptAsync(investERC20Function, cancellationToken); } - public Task InvestETHRequestAsync(InvestETHFunction investETHFunction) + public virtual Task InvestETHRequestAsync(InvestETHFunction investETHFunction) { return ContractHandler.SendRequestAsync(investETHFunction); } - public Task InvestETHRequestAndWaitForReceiptAsync(InvestETHFunction investETHFunction, CancellationTokenSource cancellationToken = null) + public virtual Task InvestETHRequestAndWaitForReceiptAsync(InvestETHFunction investETHFunction, CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(investETHFunction, cancellationToken); } - public Task InvestETHRequestAsync(BigInteger poolId) + public virtual Task InvestETHRequestAsync(BigInteger poolId) { var investETHFunction = new InvestETHFunction(); investETHFunction.PoolId = poolId; @@ -259,7 +243,7 @@ public Task InvestETHRequestAsync(BigInteger poolId) return ContractHandler.SendRequestAsync(investETHFunction); } - public Task InvestETHRequestAndWaitForReceiptAsync(BigInteger poolId, CancellationTokenSource cancellationToken = null) + public virtual Task InvestETHRequestAndWaitForReceiptAsync(BigInteger poolId, CancellationTokenSource cancellationToken = null) { var investETHFunction = new InvestETHFunction(); investETHFunction.PoolId = poolId; @@ -267,13 +251,13 @@ public Task InvestETHRequestAndWaitForReceiptAsync(BigIntege return ContractHandler.SendRequestAndWaitForReceiptAsync(investETHFunction, cancellationToken); } - public Task IsERC20MaincoinQueryAsync(IsERC20MaincoinFunction isERC20MaincoinFunction, BlockParameter blockParameter = null) + public virtual Task IsERC20MaincoinQueryAsync(IsERC20MaincoinFunction isERC20MaincoinFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(isERC20MaincoinFunction, blockParameter); } - public Task IsERC20MaincoinQueryAsync(string address, BlockParameter blockParameter = null) + public virtual Task IsERC20MaincoinQueryAsync(string address, BlockParameter blockParameter = null) { var isERC20MaincoinFunction = new IsERC20MaincoinFunction(); isERC20MaincoinFunction.Address = address; @@ -281,24 +265,24 @@ public Task IsERC20MaincoinQueryAsync(string address, BlockParameter block return ContractHandler.QueryAsync(isERC20MaincoinFunction, blockParameter); } - public Task IsPaybleQueryAsync(IsPaybleFunction isPaybleFunction, BlockParameter blockParameter = null) + public virtual Task IsPaybleQueryAsync(IsPaybleFunction isPaybleFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(isPaybleFunction, blockParameter); } - public Task IsPaybleQueryAsync(BlockParameter blockParameter = null) + public virtual Task IsPaybleQueryAsync(BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(null, blockParameter); } - public Task IsReadyWithdrawInvestmentQueryAsync(IsReadyWithdrawInvestmentFunction isReadyWithdrawInvestmentFunction, BlockParameter blockParameter = null) + public virtual Task IsReadyWithdrawInvestmentQueryAsync(IsReadyWithdrawInvestmentFunction isReadyWithdrawInvestmentFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(isReadyWithdrawInvestmentFunction, blockParameter); } - public Task IsReadyWithdrawInvestmentQueryAsync(BigInteger id, BlockParameter blockParameter = null) + public virtual Task IsReadyWithdrawInvestmentQueryAsync(BigInteger id, BlockParameter blockParameter = null) { var isReadyWithdrawInvestmentFunction = new IsReadyWithdrawInvestmentFunction(); isReadyWithdrawInvestmentFunction.Id = id; @@ -306,13 +290,13 @@ public Task IsReadyWithdrawInvestmentQueryAsync(BigInteger id, BlockParame return ContractHandler.QueryAsync(isReadyWithdrawInvestmentFunction, blockParameter); } - public Task IsReadyWithdrawLeftOversQueryAsync(IsReadyWithdrawLeftOversFunction isReadyWithdrawLeftOversFunction, BlockParameter blockParameter = null) + public virtual Task IsReadyWithdrawLeftOversQueryAsync(IsReadyWithdrawLeftOversFunction isReadyWithdrawLeftOversFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(isReadyWithdrawLeftOversFunction, blockParameter); } - public Task IsReadyWithdrawLeftOversQueryAsync(BigInteger poolId, BlockParameter blockParameter = null) + public virtual Task IsReadyWithdrawLeftOversQueryAsync(BigInteger poolId, BlockParameter blockParameter = null) { var isReadyWithdrawLeftOversFunction = new IsReadyWithdrawLeftOversFunction(); isReadyWithdrawLeftOversFunction.PoolId = poolId; @@ -320,24 +304,24 @@ public Task IsReadyWithdrawLeftOversQueryAsync(BigInteger poolId, BlockPar return ContractHandler.QueryAsync(isReadyWithdrawLeftOversFunction, blockParameter); } - public Task IsTokenFilterOnQueryAsync(IsTokenFilterOnFunction isTokenFilterOnFunction, BlockParameter blockParameter = null) + public virtual Task IsTokenFilterOnQueryAsync(IsTokenFilterOnFunction isTokenFilterOnFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(isTokenFilterOnFunction, blockParameter); } - public Task IsTokenFilterOnQueryAsync(BlockParameter blockParameter = null) + public virtual Task IsTokenFilterOnQueryAsync(BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(null, blockParameter); } - public Task IsValidTokenQueryAsync(IsValidTokenFunction isValidTokenFunction, BlockParameter blockParameter = null) + public virtual Task IsValidTokenQueryAsync(IsValidTokenFunction isValidTokenFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(isValidTokenFunction, blockParameter); } - public Task IsValidTokenQueryAsync(string address, BlockParameter blockParameter = null) + public virtual Task IsValidTokenQueryAsync(string address, BlockParameter blockParameter = null) { var isValidTokenFunction = new IsValidTokenFunction(); isValidTokenFunction.Address = address; @@ -345,105 +329,105 @@ public Task IsValidTokenQueryAsync(string address, BlockParameter blockPar return ContractHandler.QueryAsync(isValidTokenFunction, blockParameter); } - public Task MCWhitelistIdQueryAsync(MCWhitelistIdFunction mCWhitelistIdFunction, BlockParameter blockParameter = null) + public virtual Task MCWhitelistIdQueryAsync(MCWhitelistIdFunction mCWhitelistIdFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(mCWhitelistIdFunction, blockParameter); } - public Task MCWhitelistIdQueryAsync(BlockParameter blockParameter = null) + public virtual Task MCWhitelistIdQueryAsync(BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(null, blockParameter); } - public Task MaxDurationQueryAsync(MaxDurationFunction maxDurationFunction, BlockParameter blockParameter = null) + public virtual Task MaxDurationQueryAsync(MaxDurationFunction maxDurationFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(maxDurationFunction, blockParameter); } - public Task MaxDurationQueryAsync(BlockParameter blockParameter = null) + public virtual Task MaxDurationQueryAsync(BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(null, blockParameter); } - public Task MaxETHInvestQueryAsync(MaxETHInvestFunction maxETHInvestFunction, BlockParameter blockParameter = null) + public virtual Task MaxETHInvestQueryAsync(MaxETHInvestFunction maxETHInvestFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(maxETHInvestFunction, blockParameter); } - public Task MaxETHInvestQueryAsync(BlockParameter blockParameter = null) + public virtual Task MaxETHInvestQueryAsync(BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(null, blockParameter); } - public Task MinDurationQueryAsync(MinDurationFunction minDurationFunction, BlockParameter blockParameter = null) + public virtual Task MinDurationQueryAsync(MinDurationFunction minDurationFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(minDurationFunction, blockParameter); } - public Task MinDurationQueryAsync(BlockParameter blockParameter = null) + public virtual Task MinDurationQueryAsync(BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(null, blockParameter); } - public Task MinETHInvestQueryAsync(MinETHInvestFunction minETHInvestFunction, BlockParameter blockParameter = null) + public virtual Task MinETHInvestQueryAsync(MinETHInvestFunction minETHInvestFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(minETHInvestFunction, blockParameter); } - public Task MinETHInvestQueryAsync(BlockParameter blockParameter = null) + public virtual Task MinETHInvestQueryAsync(BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(null, blockParameter); } - public Task PoolPriceQueryAsync(PoolPriceFunction poolPriceFunction, BlockParameter blockParameter = null) + public virtual Task PoolPriceQueryAsync(PoolPriceFunction poolPriceFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(poolPriceFunction, blockParameter); } - public Task PoolPriceQueryAsync(BlockParameter blockParameter = null) + public virtual Task PoolPriceQueryAsync(BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(null, blockParameter); } - public Task PozFeeQueryAsync(PozFeeFunction pozFeeFunction, BlockParameter blockParameter = null) + public virtual Task PozFeeQueryAsync(PozFeeFunction pozFeeFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(pozFeeFunction, blockParameter); } - public Task PozFeeQueryAsync(BlockParameter blockParameter = null) + public virtual Task PozFeeQueryAsync(BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(null, blockParameter); } - public Task PozTimerQueryAsync(PozTimerFunction pozTimerFunction, BlockParameter blockParameter = null) + public virtual Task PozTimerQueryAsync(PozTimerFunction pozTimerFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(pozTimerFunction, blockParameter); } - public Task PozTimerQueryAsync(BlockParameter blockParameter = null) + public virtual Task PozTimerQueryAsync(BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(null, blockParameter); } - public Task SetbenefitAddressRequestAsync(SetbenefitAddressFunction setbenefitAddressFunction) + public virtual Task SetbenefitAddressRequestAsync(SetbenefitAddressFunction setbenefitAddressFunction) { return ContractHandler.SendRequestAsync(setbenefitAddressFunction); } - public Task SetbenefitAddressRequestAndWaitForReceiptAsync(SetbenefitAddressFunction setbenefitAddressFunction, CancellationTokenSource cancellationToken = null) + public virtual Task SetbenefitAddressRequestAndWaitForReceiptAsync(SetbenefitAddressFunction setbenefitAddressFunction, CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(setbenefitAddressFunction, cancellationToken); } - public Task SetbenefitAddressRequestAsync(string benefitAddress) + public virtual Task SetbenefitAddressRequestAsync(string benefitAddress) { var setbenefitAddressFunction = new SetbenefitAddressFunction(); setbenefitAddressFunction.BenefitAddress = benefitAddress; @@ -451,7 +435,7 @@ public Task SetbenefitAddressRequestAsync(string benefitAddress) return ContractHandler.SendRequestAsync(setbenefitAddressFunction); } - public Task SetbenefitAddressRequestAndWaitForReceiptAsync(string benefitAddress, CancellationTokenSource cancellationToken = null) + public virtual Task SetbenefitAddressRequestAndWaitForReceiptAsync(string benefitAddress, CancellationTokenSource cancellationToken = null) { var setbenefitAddressFunction = new SetbenefitAddressFunction(); setbenefitAddressFunction.BenefitAddress = benefitAddress; @@ -459,17 +443,17 @@ public Task SetbenefitAddressRequestAndWaitForReceiptAsync(s return ContractHandler.SendRequestAndWaitForReceiptAsync(setbenefitAddressFunction, cancellationToken); } - public Task SetFeeRequestAsync(SetFeeFunction setFeeFunction) + public virtual Task SetFeeRequestAsync(SetFeeFunction setFeeFunction) { return ContractHandler.SendRequestAsync(setFeeFunction); } - public Task SetFeeRequestAndWaitForReceiptAsync(SetFeeFunction setFeeFunction, CancellationTokenSource cancellationToken = null) + public virtual Task SetFeeRequestAndWaitForReceiptAsync(SetFeeFunction setFeeFunction, CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(setFeeFunction, cancellationToken); } - public Task SetFeeRequestAsync(BigInteger fee) + public virtual Task SetFeeRequestAsync(BigInteger fee) { var setFeeFunction = new SetFeeFunction(); setFeeFunction.Fee = fee; @@ -477,7 +461,7 @@ public Task SetFeeRequestAsync(BigInteger fee) return ContractHandler.SendRequestAsync(setFeeFunction); } - public Task SetFeeRequestAndWaitForReceiptAsync(BigInteger fee, CancellationTokenSource cancellationToken = null) + public virtual Task SetFeeRequestAndWaitForReceiptAsync(BigInteger fee, CancellationTokenSource cancellationToken = null) { var setFeeFunction = new SetFeeFunction(); setFeeFunction.Fee = fee; @@ -485,17 +469,17 @@ public Task SetFeeRequestAndWaitForReceiptAsync(BigInteger f return ContractHandler.SendRequestAndWaitForReceiptAsync(setFeeFunction, cancellationToken); } - public Task SetMinMaxDurationRequestAsync(SetMinMaxDurationFunction setMinMaxDurationFunction) + public virtual Task SetMinMaxDurationRequestAsync(SetMinMaxDurationFunction setMinMaxDurationFunction) { return ContractHandler.SendRequestAsync(setMinMaxDurationFunction); } - public Task SetMinMaxDurationRequestAndWaitForReceiptAsync(SetMinMaxDurationFunction setMinMaxDurationFunction, CancellationTokenSource cancellationToken = null) + public virtual Task SetMinMaxDurationRequestAndWaitForReceiptAsync(SetMinMaxDurationFunction setMinMaxDurationFunction, CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(setMinMaxDurationFunction, cancellationToken); } - public Task SetMinMaxDurationRequestAsync(BigInteger minDuration, BigInteger maxDuration) + public virtual Task SetMinMaxDurationRequestAsync(BigInteger minDuration, BigInteger maxDuration) { var setMinMaxDurationFunction = new SetMinMaxDurationFunction(); setMinMaxDurationFunction.MinDuration = minDuration; @@ -504,7 +488,7 @@ public Task SetMinMaxDurationRequestAsync(BigInteger minDuration, BigInt return ContractHandler.SendRequestAsync(setMinMaxDurationFunction); } - public Task SetMinMaxDurationRequestAndWaitForReceiptAsync(BigInteger minDuration, BigInteger maxDuration, CancellationTokenSource cancellationToken = null) + public virtual Task SetMinMaxDurationRequestAndWaitForReceiptAsync(BigInteger minDuration, BigInteger maxDuration, CancellationTokenSource cancellationToken = null) { var setMinMaxDurationFunction = new SetMinMaxDurationFunction(); setMinMaxDurationFunction.MinDuration = minDuration; @@ -513,17 +497,17 @@ public Task SetMinMaxDurationRequestAndWaitForReceiptAsync(B return ContractHandler.SendRequestAndWaitForReceiptAsync(setMinMaxDurationFunction, cancellationToken); } - public Task SetMinMaxETHInvestRequestAsync(SetMinMaxETHInvestFunction setMinMaxETHInvestFunction) + public virtual Task SetMinMaxETHInvestRequestAsync(SetMinMaxETHInvestFunction setMinMaxETHInvestFunction) { return ContractHandler.SendRequestAsync(setMinMaxETHInvestFunction); } - public Task SetMinMaxETHInvestRequestAndWaitForReceiptAsync(SetMinMaxETHInvestFunction setMinMaxETHInvestFunction, CancellationTokenSource cancellationToken = null) + public virtual Task SetMinMaxETHInvestRequestAndWaitForReceiptAsync(SetMinMaxETHInvestFunction setMinMaxETHInvestFunction, CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(setMinMaxETHInvestFunction, cancellationToken); } - public Task SetMinMaxETHInvestRequestAsync(BigInteger minETHInvest, BigInteger maxETHInvest) + public virtual Task SetMinMaxETHInvestRequestAsync(BigInteger minETHInvest, BigInteger maxETHInvest) { var setMinMaxETHInvestFunction = new SetMinMaxETHInvestFunction(); setMinMaxETHInvestFunction.MinETHInvest = minETHInvest; @@ -532,7 +516,7 @@ public Task SetMinMaxETHInvestRequestAsync(BigInteger minETHInvest, BigI return ContractHandler.SendRequestAsync(setMinMaxETHInvestFunction); } - public Task SetMinMaxETHInvestRequestAndWaitForReceiptAsync(BigInteger minETHInvest, BigInteger maxETHInvest, CancellationTokenSource cancellationToken = null) + public virtual Task SetMinMaxETHInvestRequestAndWaitForReceiptAsync(BigInteger minETHInvest, BigInteger maxETHInvest, CancellationTokenSource cancellationToken = null) { var setMinMaxETHInvestFunction = new SetMinMaxETHInvestFunction(); setMinMaxETHInvestFunction.MinETHInvest = minETHInvest; @@ -541,17 +525,17 @@ public Task SetMinMaxETHInvestRequestAndWaitForReceiptAsync( return ContractHandler.SendRequestAndWaitForReceiptAsync(setMinMaxETHInvestFunction, cancellationToken); } - public Task SetPOZFeeRequestAsync(SetPOZFeeFunction setPOZFeeFunction) + public virtual Task SetPOZFeeRequestAsync(SetPOZFeeFunction setPOZFeeFunction) { return ContractHandler.SendRequestAsync(setPOZFeeFunction); } - public Task SetPOZFeeRequestAndWaitForReceiptAsync(SetPOZFeeFunction setPOZFeeFunction, CancellationTokenSource cancellationToken = null) + public virtual Task SetPOZFeeRequestAndWaitForReceiptAsync(SetPOZFeeFunction setPOZFeeFunction, CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(setPOZFeeFunction, cancellationToken); } - public Task SetPOZFeeRequestAsync(BigInteger fee) + public virtual Task SetPOZFeeRequestAsync(BigInteger fee) { var setPOZFeeFunction = new SetPOZFeeFunction(); setPOZFeeFunction.Fee = fee; @@ -559,7 +543,7 @@ public Task SetPOZFeeRequestAsync(BigInteger fee) return ContractHandler.SendRequestAsync(setPOZFeeFunction); } - public Task SetPOZFeeRequestAndWaitForReceiptAsync(BigInteger fee, CancellationTokenSource cancellationToken = null) + public virtual Task SetPOZFeeRequestAndWaitForReceiptAsync(BigInteger fee, CancellationTokenSource cancellationToken = null) { var setPOZFeeFunction = new SetPOZFeeFunction(); setPOZFeeFunction.Fee = fee; @@ -567,17 +551,17 @@ public Task SetPOZFeeRequestAndWaitForReceiptAsync(BigIntege return ContractHandler.SendRequestAndWaitForReceiptAsync(setPOZFeeFunction, cancellationToken); } - public Task SetPoolPriceRequestAsync(SetPoolPriceFunction setPoolPriceFunction) + public virtual Task SetPoolPriceRequestAsync(SetPoolPriceFunction setPoolPriceFunction) { return ContractHandler.SendRequestAsync(setPoolPriceFunction); } - public Task SetPoolPriceRequestAndWaitForReceiptAsync(SetPoolPriceFunction setPoolPriceFunction, CancellationTokenSource cancellationToken = null) + public virtual Task SetPoolPriceRequestAndWaitForReceiptAsync(SetPoolPriceFunction setPoolPriceFunction, CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(setPoolPriceFunction, cancellationToken); } - public Task SetPoolPriceRequestAsync(BigInteger poolPrice) + public virtual Task SetPoolPriceRequestAsync(BigInteger poolPrice) { var setPoolPriceFunction = new SetPoolPriceFunction(); setPoolPriceFunction.PoolPrice = poolPrice; @@ -585,7 +569,7 @@ public Task SetPoolPriceRequestAsync(BigInteger poolPrice) return ContractHandler.SendRequestAsync(setPoolPriceFunction); } - public Task SetPoolPriceRequestAndWaitForReceiptAsync(BigInteger poolPrice, CancellationTokenSource cancellationToken = null) + public virtual Task SetPoolPriceRequestAndWaitForReceiptAsync(BigInteger poolPrice, CancellationTokenSource cancellationToken = null) { var setPoolPriceFunction = new SetPoolPriceFunction(); setPoolPriceFunction.PoolPrice = poolPrice; @@ -593,17 +577,17 @@ public Task SetPoolPriceRequestAndWaitForReceiptAsync(BigInt return ContractHandler.SendRequestAndWaitForReceiptAsync(setPoolPriceFunction, cancellationToken); } - public Task SetPozTimerRequestAsync(SetPozTimerFunction setPozTimerFunction) + public virtual Task SetPozTimerRequestAsync(SetPozTimerFunction setPozTimerFunction) { return ContractHandler.SendRequestAsync(setPozTimerFunction); } - public Task SetPozTimerRequestAndWaitForReceiptAsync(SetPozTimerFunction setPozTimerFunction, CancellationTokenSource cancellationToken = null) + public virtual Task SetPozTimerRequestAndWaitForReceiptAsync(SetPozTimerFunction setPozTimerFunction, CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(setPozTimerFunction, cancellationToken); } - public Task SetPozTimerRequestAsync(BigInteger pozTimer) + public virtual Task SetPozTimerRequestAsync(BigInteger pozTimer) { var setPozTimerFunction = new SetPozTimerFunction(); setPozTimerFunction.PozTimer = pozTimer; @@ -611,7 +595,7 @@ public Task SetPozTimerRequestAsync(BigInteger pozTimer) return ContractHandler.SendRequestAsync(setPozTimerFunction); } - public Task SetPozTimerRequestAndWaitForReceiptAsync(BigInteger pozTimer, CancellationTokenSource cancellationToken = null) + public virtual Task SetPozTimerRequestAndWaitForReceiptAsync(BigInteger pozTimer, CancellationTokenSource cancellationToken = null) { var setPozTimerFunction = new SetPozTimerFunction(); setPozTimerFunction.PozTimer = pozTimer; @@ -619,17 +603,17 @@ public Task SetPozTimerRequestAndWaitForReceiptAsync(BigInte return ContractHandler.SendRequestAndWaitForReceiptAsync(setPozTimerFunction, cancellationToken); } - public Task SetwhitelistAddressRequestAsync(SetwhitelistAddressFunction setwhitelistAddressFunction) + public virtual Task SetwhitelistAddressRequestAsync(SetwhitelistAddressFunction setwhitelistAddressFunction) { return ContractHandler.SendRequestAsync(setwhitelistAddressFunction); } - public Task SetwhitelistAddressRequestAndWaitForReceiptAsync(SetwhitelistAddressFunction setwhitelistAddressFunction, CancellationTokenSource cancellationToken = null) + public virtual Task SetwhitelistAddressRequestAndWaitForReceiptAsync(SetwhitelistAddressFunction setwhitelistAddressFunction, CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(setwhitelistAddressFunction, cancellationToken); } - public Task SetwhitelistAddressRequestAsync(string whitelistAddress) + public virtual Task SetwhitelistAddressRequestAsync(string whitelistAddress) { var setwhitelistAddressFunction = new SetwhitelistAddressFunction(); setwhitelistAddressFunction.WhitelistAddress = whitelistAddress; @@ -637,7 +621,7 @@ public Task SetwhitelistAddressRequestAsync(string whitelistAddress) return ContractHandler.SendRequestAsync(setwhitelistAddressFunction); } - public Task SetwhitelistAddressRequestAndWaitForReceiptAsync(string whitelistAddress, CancellationTokenSource cancellationToken = null) + public virtual Task SetwhitelistAddressRequestAndWaitForReceiptAsync(string whitelistAddress, CancellationTokenSource cancellationToken = null) { var setwhitelistAddressFunction = new SetwhitelistAddressFunction(); setwhitelistAddressFunction.WhitelistAddress = whitelistAddress; @@ -645,79 +629,79 @@ public Task SetwhitelistAddressRequestAndWaitForReceiptAsync return ContractHandler.SendRequestAndWaitForReceiptAsync(setwhitelistAddressFunction, cancellationToken); } - public Task SwapTokenFilterRequestAsync(SwapTokenFilterFunction swapTokenFilterFunction) + public virtual Task SwapTokenFilterRequestAsync(SwapTokenFilterFunction swapTokenFilterFunction) { return ContractHandler.SendRequestAsync(swapTokenFilterFunction); } - public Task SwapTokenFilterRequestAsync() + public virtual Task SwapTokenFilterRequestAsync() { return ContractHandler.SendRequestAsync(); } - public Task SwapTokenFilterRequestAndWaitForReceiptAsync(SwapTokenFilterFunction swapTokenFilterFunction, CancellationTokenSource cancellationToken = null) + public virtual Task SwapTokenFilterRequestAndWaitForReceiptAsync(SwapTokenFilterFunction swapTokenFilterFunction, CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(swapTokenFilterFunction, cancellationToken); } - public Task SwapTokenFilterRequestAndWaitForReceiptAsync(CancellationTokenSource cancellationToken = null) + public virtual Task SwapTokenFilterRequestAndWaitForReceiptAsync(CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(null, cancellationToken); } - public Task SwitchIsPaybleRequestAsync(SwitchIsPaybleFunction switchIsPaybleFunction) + public virtual Task SwitchIsPaybleRequestAsync(SwitchIsPaybleFunction switchIsPaybleFunction) { return ContractHandler.SendRequestAsync(switchIsPaybleFunction); } - public Task SwitchIsPaybleRequestAsync() + public virtual Task SwitchIsPaybleRequestAsync() { return ContractHandler.SendRequestAsync(); } - public Task SwitchIsPaybleRequestAndWaitForReceiptAsync(SwitchIsPaybleFunction switchIsPaybleFunction, CancellationTokenSource cancellationToken = null) + public virtual Task SwitchIsPaybleRequestAndWaitForReceiptAsync(SwitchIsPaybleFunction switchIsPaybleFunction, CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(switchIsPaybleFunction, cancellationToken); } - public Task SwitchIsPaybleRequestAndWaitForReceiptAsync(CancellationTokenSource cancellationToken = null) + public virtual Task SwitchIsPaybleRequestAndWaitForReceiptAsync(CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(null, cancellationToken); } - public Task TokenWhitelistIdQueryAsync(TokenWhitelistIdFunction tokenWhitelistIdFunction, BlockParameter blockParameter = null) + public virtual Task TokenWhitelistIdQueryAsync(TokenWhitelistIdFunction tokenWhitelistIdFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(tokenWhitelistIdFunction, blockParameter); } - public Task TokenWhitelistIdQueryAsync(BlockParameter blockParameter = null) + public virtual Task TokenWhitelistIdQueryAsync(BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(null, blockParameter); } - public Task WhitelistAddressQueryAsync(WhitelistAddressFunction whitelistAddressFunction, BlockParameter blockParameter = null) + public virtual Task WhitelistAddressQueryAsync(WhitelistAddressFunction whitelistAddressFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(whitelistAddressFunction, blockParameter); } - public Task WhitelistAddressQueryAsync(BlockParameter blockParameter = null) + public virtual Task WhitelistAddressQueryAsync(BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(null, blockParameter); } - public Task WithdrawInvestmentRequestAsync(WithdrawInvestmentFunction withdrawInvestmentFunction) + public virtual Task WithdrawInvestmentRequestAsync(WithdrawInvestmentFunction withdrawInvestmentFunction) { return ContractHandler.SendRequestAsync(withdrawInvestmentFunction); } - public Task WithdrawInvestmentRequestAndWaitForReceiptAsync(WithdrawInvestmentFunction withdrawInvestmentFunction, CancellationTokenSource cancellationToken = null) + public virtual Task WithdrawInvestmentRequestAndWaitForReceiptAsync(WithdrawInvestmentFunction withdrawInvestmentFunction, CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(withdrawInvestmentFunction, cancellationToken); } - public Task WithdrawInvestmentRequestAsync(BigInteger id) + public virtual Task WithdrawInvestmentRequestAsync(BigInteger id) { var withdrawInvestmentFunction = new WithdrawInvestmentFunction(); withdrawInvestmentFunction.Id = id; @@ -725,7 +709,7 @@ public Task WithdrawInvestmentRequestAsync(BigInteger id) return ContractHandler.SendRequestAsync(withdrawInvestmentFunction); } - public Task WithdrawInvestmentRequestAndWaitForReceiptAsync(BigInteger id, CancellationTokenSource cancellationToken = null) + public virtual Task WithdrawInvestmentRequestAndWaitForReceiptAsync(BigInteger id, CancellationTokenSource cancellationToken = null) { var withdrawInvestmentFunction = new WithdrawInvestmentFunction(); withdrawInvestmentFunction.Id = id; @@ -733,17 +717,17 @@ public Task WithdrawInvestmentRequestAndWaitForReceiptAsync( return ContractHandler.SendRequestAndWaitForReceiptAsync(withdrawInvestmentFunction, cancellationToken); } - public Task WithdrawLeftOversRequestAsync(WithdrawLeftOversFunction withdrawLeftOversFunction) + public virtual Task WithdrawLeftOversRequestAsync(WithdrawLeftOversFunction withdrawLeftOversFunction) { return ContractHandler.SendRequestAsync(withdrawLeftOversFunction); } - public Task WithdrawLeftOversRequestAndWaitForReceiptAsync(WithdrawLeftOversFunction withdrawLeftOversFunction, CancellationTokenSource cancellationToken = null) + public virtual Task WithdrawLeftOversRequestAndWaitForReceiptAsync(WithdrawLeftOversFunction withdrawLeftOversFunction, CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(withdrawLeftOversFunction, cancellationToken); } - public Task WithdrawLeftOversRequestAsync(BigInteger poolId) + public virtual Task WithdrawLeftOversRequestAsync(BigInteger poolId) { var withdrawLeftOversFunction = new WithdrawLeftOversFunction(); withdrawLeftOversFunction.PoolId = poolId; @@ -751,7 +735,7 @@ public Task WithdrawLeftOversRequestAsync(BigInteger poolId) return ContractHandler.SendRequestAsync(withdrawLeftOversFunction); } - public Task WithdrawLeftOversRequestAndWaitForReceiptAsync(BigInteger poolId, CancellationTokenSource cancellationToken = null) + public virtual Task WithdrawLeftOversRequestAndWaitForReceiptAsync(BigInteger poolId, CancellationTokenSource cancellationToken = null) { var withdrawLeftOversFunction = new WithdrawLeftOversFunction(); withdrawLeftOversFunction.PoolId = poolId; @@ -759,24 +743,24 @@ public Task WithdrawLeftOversRequestAndWaitForReceiptAsync(B return ContractHandler.SendRequestAndWaitForReceiptAsync(withdrawLeftOversFunction, cancellationToken); } - public Task GetTotalInvestorQueryAsync(GetTotalInvestorFunction getTotalInvestorFunction, BlockParameter blockParameter = null) + public virtual Task GetTotalInvestorQueryAsync(GetTotalInvestorFunction getTotalInvestorFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(getTotalInvestorFunction, blockParameter); } - public Task GetTotalInvestorQueryAsync(BlockParameter blockParameter = null) + public virtual Task GetTotalInvestorQueryAsync(BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(null, blockParameter); } - public Task IsPoolLockedQueryAsync(IsPoolLockedFunction isPoolLockedFunction, BlockParameter blockParameter = null) + public virtual Task IsPoolLockedQueryAsync(IsPoolLockedFunction isPoolLockedFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(isPoolLockedFunction, blockParameter); } - public Task IsPoolLockedQueryAsync(BigInteger id, BlockParameter blockParameter = null) + public virtual Task IsPoolLockedQueryAsync(BigInteger id, BlockParameter blockParameter = null) { var isPoolLockedFunction = new IsPoolLockedFunction(); isPoolLockedFunction.Id = id; @@ -784,70 +768,70 @@ public Task IsPoolLockedQueryAsync(BigInteger id, BlockParameter blockPara return ContractHandler.QueryAsync(isPoolLockedFunction, blockParameter); } - public Task OwnerQueryAsync(OwnerFunction ownerFunction, BlockParameter blockParameter = null) + public virtual Task OwnerQueryAsync(OwnerFunction ownerFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(ownerFunction, blockParameter); } - public Task OwnerQueryAsync(BlockParameter blockParameter = null) + public virtual Task OwnerQueryAsync(BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(null, blockParameter); } - public Task PausedQueryAsync(PausedFunction pausedFunction, BlockParameter blockParameter = null) + public virtual Task PausedQueryAsync(PausedFunction pausedFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(pausedFunction, blockParameter); } - public Task PausedQueryAsync(BlockParameter blockParameter = null) + public virtual Task PausedQueryAsync(BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(null, blockParameter); } - public Task PoolsCountQueryAsync(PoolsCountFunction poolsCountFunction, BlockParameter blockParameter = null) + public virtual Task PoolsCountQueryAsync(PoolsCountFunction poolsCountFunction, BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(poolsCountFunction, blockParameter); } - public Task PoolsCountQueryAsync(BlockParameter blockParameter = null) + public virtual Task PoolsCountQueryAsync(BlockParameter blockParameter = null) { return ContractHandler.QueryAsync(null, blockParameter); } - public Task RenounceOwnershipRequestAsync(RenounceOwnershipFunction renounceOwnershipFunction) + public virtual Task RenounceOwnershipRequestAsync(RenounceOwnershipFunction renounceOwnershipFunction) { return ContractHandler.SendRequestAsync(renounceOwnershipFunction); } - public Task RenounceOwnershipRequestAsync() + public virtual Task RenounceOwnershipRequestAsync() { return ContractHandler.SendRequestAsync(); } - public Task RenounceOwnershipRequestAndWaitForReceiptAsync(RenounceOwnershipFunction renounceOwnershipFunction, CancellationTokenSource cancellationToken = null) + public virtual Task RenounceOwnershipRequestAndWaitForReceiptAsync(RenounceOwnershipFunction renounceOwnershipFunction, CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(renounceOwnershipFunction, cancellationToken); } - public Task RenounceOwnershipRequestAndWaitForReceiptAsync(CancellationTokenSource cancellationToken = null) + public virtual Task RenounceOwnershipRequestAndWaitForReceiptAsync(CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(null, cancellationToken); } - public Task SetGovernerContractRequestAsync(SetGovernerContractFunction setGovernerContractFunction) + public virtual Task SetGovernerContractRequestAsync(SetGovernerContractFunction setGovernerContractFunction) { return ContractHandler.SendRequestAsync(setGovernerContractFunction); } - public Task SetGovernerContractRequestAndWaitForReceiptAsync(SetGovernerContractFunction setGovernerContractFunction, CancellationTokenSource cancellationToken = null) + public virtual Task SetGovernerContractRequestAndWaitForReceiptAsync(SetGovernerContractFunction setGovernerContractFunction, CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(setGovernerContractFunction, cancellationToken); } - public Task SetGovernerContractRequestAsync(string address) + public virtual Task SetGovernerContractRequestAsync(string address) { var setGovernerContractFunction = new SetGovernerContractFunction(); setGovernerContractFunction.Address = address; @@ -855,7 +839,7 @@ public Task SetGovernerContractRequestAsync(string address) return ContractHandler.SendRequestAsync(setGovernerContractFunction); } - public Task SetGovernerContractRequestAndWaitForReceiptAsync(string address, CancellationTokenSource cancellationToken = null) + public virtual Task SetGovernerContractRequestAndWaitForReceiptAsync(string address, CancellationTokenSource cancellationToken = null) { var setGovernerContractFunction = new SetGovernerContractFunction(); setGovernerContractFunction.Address = address; @@ -863,17 +847,17 @@ public Task SetGovernerContractRequestAndWaitForReceiptAsync return ContractHandler.SendRequestAndWaitForReceiptAsync(setGovernerContractFunction, cancellationToken); } - public Task SetMCWhitelistIdRequestAsync(SetMCWhitelistIdFunction setMCWhitelistIdFunction) + public virtual Task SetMCWhitelistIdRequestAsync(SetMCWhitelistIdFunction setMCWhitelistIdFunction) { return ContractHandler.SendRequestAsync(setMCWhitelistIdFunction); } - public Task SetMCWhitelistIdRequestAndWaitForReceiptAsync(SetMCWhitelistIdFunction setMCWhitelistIdFunction, CancellationTokenSource cancellationToken = null) + public virtual Task SetMCWhitelistIdRequestAndWaitForReceiptAsync(SetMCWhitelistIdFunction setMCWhitelistIdFunction, CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(setMCWhitelistIdFunction, cancellationToken); } - public Task SetMCWhitelistIdRequestAsync(BigInteger whiteListId) + public virtual Task SetMCWhitelistIdRequestAsync(BigInteger whiteListId) { var setMCWhitelistIdFunction = new SetMCWhitelistIdFunction(); setMCWhitelistIdFunction.WhiteListId = whiteListId; @@ -881,7 +865,7 @@ public Task SetMCWhitelistIdRequestAsync(BigInteger whiteListId) return ContractHandler.SendRequestAsync(setMCWhitelistIdFunction); } - public Task SetMCWhitelistIdRequestAndWaitForReceiptAsync(BigInteger whiteListId, CancellationTokenSource cancellationToken = null) + public virtual Task SetMCWhitelistIdRequestAndWaitForReceiptAsync(BigInteger whiteListId, CancellationTokenSource cancellationToken = null) { var setMCWhitelistIdFunction = new SetMCWhitelistIdFunction(); setMCWhitelistIdFunction.WhiteListId = whiteListId; @@ -889,17 +873,17 @@ public Task SetMCWhitelistIdRequestAndWaitForReceiptAsync(Bi return ContractHandler.SendRequestAndWaitForReceiptAsync(setMCWhitelistIdFunction, cancellationToken); } - public Task SetTokenWhitelistIdRequestAsync(SetTokenWhitelistIdFunction setTokenWhitelistIdFunction) + public virtual Task SetTokenWhitelistIdRequestAsync(SetTokenWhitelistIdFunction setTokenWhitelistIdFunction) { return ContractHandler.SendRequestAsync(setTokenWhitelistIdFunction); } - public Task SetTokenWhitelistIdRequestAndWaitForReceiptAsync(SetTokenWhitelistIdFunction setTokenWhitelistIdFunction, CancellationTokenSource cancellationToken = null) + public virtual Task SetTokenWhitelistIdRequestAndWaitForReceiptAsync(SetTokenWhitelistIdFunction setTokenWhitelistIdFunction, CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(setTokenWhitelistIdFunction, cancellationToken); } - public Task SetTokenWhitelistIdRequestAsync(BigInteger whiteListId) + public virtual Task SetTokenWhitelistIdRequestAsync(BigInteger whiteListId) { var setTokenWhitelistIdFunction = new SetTokenWhitelistIdFunction(); setTokenWhitelistIdFunction.WhiteListId = whiteListId; @@ -907,7 +891,7 @@ public Task SetTokenWhitelistIdRequestAsync(BigInteger whiteListId) return ContractHandler.SendRequestAsync(setTokenWhitelistIdFunction); } - public Task SetTokenWhitelistIdRequestAndWaitForReceiptAsync(BigInteger whiteListId, CancellationTokenSource cancellationToken = null) + public virtual Task SetTokenWhitelistIdRequestAndWaitForReceiptAsync(BigInteger whiteListId, CancellationTokenSource cancellationToken = null) { var setTokenWhitelistIdFunction = new SetTokenWhitelistIdFunction(); setTokenWhitelistIdFunction.WhiteListId = whiteListId; @@ -915,17 +899,17 @@ public Task SetTokenWhitelistIdRequestAndWaitForReceiptAsync return ContractHandler.SendRequestAndWaitForReceiptAsync(setTokenWhitelistIdFunction, cancellationToken); } - public Task TransferOwnershipRequestAsync(TransferOwnershipFunction transferOwnershipFunction) + public virtual Task TransferOwnershipRequestAsync(TransferOwnershipFunction transferOwnershipFunction) { return ContractHandler.SendRequestAsync(transferOwnershipFunction); } - public Task TransferOwnershipRequestAndWaitForReceiptAsync(TransferOwnershipFunction transferOwnershipFunction, CancellationTokenSource cancellationToken = null) + public virtual Task TransferOwnershipRequestAndWaitForReceiptAsync(TransferOwnershipFunction transferOwnershipFunction, CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(transferOwnershipFunction, cancellationToken); } - public Task TransferOwnershipRequestAsync(string newOwner) + public virtual Task TransferOwnershipRequestAsync(string newOwner) { var transferOwnershipFunction = new TransferOwnershipFunction(); transferOwnershipFunction.NewOwner = newOwner; @@ -933,7 +917,7 @@ public Task TransferOwnershipRequestAsync(string newOwner) return ContractHandler.SendRequestAsync(transferOwnershipFunction); } - public Task TransferOwnershipRequestAndWaitForReceiptAsync(string newOwner, CancellationTokenSource cancellationToken = null) + public virtual Task TransferOwnershipRequestAndWaitForReceiptAsync(string newOwner, CancellationTokenSource cancellationToken = null) { var transferOwnershipFunction = new TransferOwnershipFunction(); transferOwnershipFunction.NewOwner = newOwner; @@ -941,17 +925,17 @@ public Task TransferOwnershipRequestAndWaitForReceiptAsync(s return ContractHandler.SendRequestAndWaitForReceiptAsync(transferOwnershipFunction, cancellationToken); } - public Task WithdrawETHFeeRequestAsync(WithdrawETHFeeFunction withdrawETHFeeFunction) + public virtual Task WithdrawETHFeeRequestAsync(WithdrawETHFeeFunction withdrawETHFeeFunction) { return ContractHandler.SendRequestAsync(withdrawETHFeeFunction); } - public Task WithdrawETHFeeRequestAndWaitForReceiptAsync(WithdrawETHFeeFunction withdrawETHFeeFunction, CancellationTokenSource cancellationToken = null) + public virtual Task WithdrawETHFeeRequestAndWaitForReceiptAsync(WithdrawETHFeeFunction withdrawETHFeeFunction, CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(withdrawETHFeeFunction, cancellationToken); } - public Task WithdrawETHFeeRequestAsync(string to) + public virtual Task WithdrawETHFeeRequestAsync(string to) { var withdrawETHFeeFunction = new WithdrawETHFeeFunction(); withdrawETHFeeFunction.To = to; @@ -959,7 +943,7 @@ public Task WithdrawETHFeeRequestAsync(string to) return ContractHandler.SendRequestAsync(withdrawETHFeeFunction); } - public Task WithdrawETHFeeRequestAndWaitForReceiptAsync(string to, CancellationTokenSource cancellationToken = null) + public virtual Task WithdrawETHFeeRequestAndWaitForReceiptAsync(string to, CancellationTokenSource cancellationToken = null) { var withdrawETHFeeFunction = new WithdrawETHFeeFunction(); withdrawETHFeeFunction.To = to; @@ -967,17 +951,17 @@ public Task WithdrawETHFeeRequestAndWaitForReceiptAsync(stri return ContractHandler.SendRequestAndWaitForReceiptAsync(withdrawETHFeeFunction, cancellationToken); } - public Task WithdrawERC20FeeRequestAsync(WithdrawERC20FeeFunction withdrawERC20FeeFunction) + public virtual Task WithdrawERC20FeeRequestAsync(WithdrawERC20FeeFunction withdrawERC20FeeFunction) { return ContractHandler.SendRequestAsync(withdrawERC20FeeFunction); } - public Task WithdrawERC20FeeRequestAndWaitForReceiptAsync(WithdrawERC20FeeFunction withdrawERC20FeeFunction, CancellationTokenSource cancellationToken = null) + public virtual Task WithdrawERC20FeeRequestAndWaitForReceiptAsync(WithdrawERC20FeeFunction withdrawERC20FeeFunction, CancellationTokenSource cancellationToken = null) { return ContractHandler.SendRequestAndWaitForReceiptAsync(withdrawERC20FeeFunction, cancellationToken); } - public Task WithdrawERC20FeeRequestAsync(string token, string to) + public virtual Task WithdrawERC20FeeRequestAsync(string token, string to) { var withdrawERC20FeeFunction = new WithdrawERC20FeeFunction(); withdrawERC20FeeFunction.Token = token; @@ -986,7 +970,7 @@ public Task WithdrawERC20FeeRequestAsync(string token, string to) return ContractHandler.SendRequestAsync(withdrawERC20FeeFunction); } - public Task WithdrawERC20FeeRequestAndWaitForReceiptAsync(string token, string to, CancellationTokenSource cancellationToken = null) + public virtual Task WithdrawERC20FeeRequestAndWaitForReceiptAsync(string token, string to, CancellationTokenSource cancellationToken = null) { var withdrawERC20FeeFunction = new WithdrawERC20FeeFunction(); withdrawERC20FeeFunction.Token = token;