diff --git a/src/components/ThePoolzProvider.tsx b/src/components/ThePoolzProvider.tsx deleted file mode 100644 index 15d126e..0000000 --- a/src/components/ThePoolzProvider.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import React from "react" -import StrapiProvider from "@poolzfinance/strapi" -import Provider from "./Provider" -import { TChainConfig } from "../types/IThePoolzInterface" - -const ThePoolzProvider = ({ children, overrides }: { children: React.ReactNode; overrides?: TChainConfig }) => { - return ( - - {children} - - ) -} - -export default ThePoolzProvider diff --git a/src/contracts/abi/CollateralProvider.json b/src/contracts/abi/CollateralProvider.json deleted file mode 100644 index 0132c50..0000000 --- a/src/contracts/abi/CollateralProvider.json +++ /dev/null @@ -1,424 +0,0 @@ -{ - "NameVersion": "CollateralProvider@0.9.6", - "contractName": "CollateralProvider", - "abi": [ - { - "inputs": [ - { - "internalType": "contract ILockDealNFT", - "name": "_lockDealNFT", - "type": "address" - }, - { - "internalType": "address", - "name": "_dealProvider", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "name": "UpdateParams", - "type": "event" - }, - { - "inputs": [], - "name": "currentParamsTargetLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [], - "name": "firewallAdmin", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "getInnerIdsArray", - "outputs": [ - { - "internalType": "uint256[]", - "name": "ids", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "getParams", - "outputs": [ - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "getSubProvidersPoolIds", - "outputs": [ - { - "internalType": "uint256[]", - "name": "poolIds", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "getWithdrawableAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "withdrawalAmount", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "internalType": "uint256", - "name": "tokenAmount", - "type": "uint256" - } - ], - "name": "handleRefund", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "tokenAmount", - "type": "uint256" - } - ], - "name": "handleWithdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "isPoolFinished", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "lockDealNFT", - "outputs": [ - { - "internalType": "contract ILockDealNFT", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "name": "onERC721Received", - "outputs": [ - { - "internalType": "bytes4", - "name": "", - "type": "bytes4" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "poolIdToRateToWei", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "poolIdToTime", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "provider", - "outputs": [ - { - "internalType": "contract ISimpleProvider", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "name": "registerPool", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewall", - "type": "address" - } - ], - "name": "setFirewall", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewallAdmin", - "type": "address" - } - ], - "name": "setFirewallAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "ratio", - "type": "uint256" - } - ], - "name": "split", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [ - { - "internalType": "uint256", - "name": "withdrawnAmount", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "isFinal", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/src/contracts/abi/DealProvider.json b/src/contracts/abi/DealProvider.json deleted file mode 100644 index c5900f3..0000000 --- a/src/contracts/abi/DealProvider.json +++ /dev/null @@ -1,435 +0,0 @@ -{ - "NameVersion": "DealProvider@1.0.6", - "contractName": "DealProvider", - "abi": [ - { - "inputs": [ - { - "internalType": "contract ILockDealNFT", - "name": "_nftContract", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "target", - "type": "address" - } - ], - "name": "AddressEmptyCode", - "type": "error" - }, - { - "inputs": [], - "name": "FailedCall", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "newAdmin", - "type": "address" - } - ], - "name": "FirewallAdminUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "newFirewall", - "type": "address" - } - ], - "name": "FirewallUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "name": "UpdateParams", - "type": "event" - }, - { - "inputs": [], - "name": "acceptFirewallAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "addresses", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - } - ], - "name": "createNewPool", - "outputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "currentParamsTargetLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "firewallAdmin", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "getParams", - "outputs": [ - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "getSubProvidersPoolIds", - "outputs": [ - { - "internalType": "uint256[]", - "name": "poolIds", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "getWithdrawableAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "lockDealNFT", - "outputs": [ - { - "internalType": "contract ILockDealNFT", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "poolIdToAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "name": "registerPool", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "vennPolicy", - "type": "address" - }, - { - "internalType": "bytes", - "name": "vennPolicyPayload", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "safeFunctionCall", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "vennPolicy", - "type": "address" - }, - { - "internalType": "bool", - "name": "status", - "type": "bool" - } - ], - "name": "setApprovedVennPolicy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "fee", - "type": "uint256" - } - ], - "name": "setApprovedVennPolicyFee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewall", - "type": "address" - } - ], - "name": "setFirewall", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewallAdmin", - "type": "address" - } - ], - "name": "setFirewallAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "lockDealNFTPoolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "newPoolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "ratio", - "type": "uint256" - } - ], - "name": "split", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [ - { - "internalType": "uint256", - "name": "withdrawnAmount", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "isFinal", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [ - { - "internalType": "uint256", - "name": "withdrawnAmount", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "isFinal", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/src/contracts/abi/DelayVault.json b/src/contracts/abi/DelayVault.json deleted file mode 100644 index 1315d90..0000000 --- a/src/contracts/abi/DelayVault.json +++ /dev/null @@ -1,953 +0,0 @@ -{ - "NameVersion": "DelayVault@1.2.2", - "contractName": "DelayVault", - "abi": [ - { - "inputs": [], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "oldGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorUpdated", - "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": true, - "internalType": "address", - "name": "Token", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "Amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "RemaningAmount", - "type": "uint256" - } - ], - "name": "RedeemedTokens", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "Token", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "User", - "type": "address" - }, - { - "indexed": false, - "internalType": "bool", - "name": "Status", - "type": "bool" - } - ], - "name": "TokenRedemptionApproval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "Token", - "type": "address" - }, - { - "indexed": false, - "internalType": "bool", - "name": "Status", - "type": "bool" - } - ], - "name": "TokenStatusFilter", - "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": "To", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "Token", - "type": "address" - } - ], - "name": "TransferOut", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "Unpaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "OldDelay", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "NewDelay", - "type": "uint256" - } - ], - "name": "UpdatedMaxDelay", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "Token", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "Amounts", - "type": "uint256[]" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "StartDelays", - "type": "uint256[]" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "CliffDelays", - "type": "uint256[]" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "FinishDelays", - "type": "uint256[]" - } - ], - "name": "UpdatedMinDelays", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "Token", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "Owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "Amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "StartDelay", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "CliffDelay", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "FinishDelay", - "type": "uint256" - } - ], - "name": "VaultValueChanged", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "Allowance", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "DelayLimit", - "outputs": [ - { - "internalType": "bool", - "name": "isActive", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_token", - "type": "address" - } - ], - "name": "GetDelayLimits", - "outputs": [ - { - "components": [ - { - "internalType": "uint256[]", - "name": "Amounts", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "StartDelays", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "CliffDelays", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "FinishDelays", - "type": "uint256[]" - }, - { - "internalType": "bool", - "name": "isActive", - "type": "bool" - } - ], - "internalType": "struct DelayData.Delay", - "name": "", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_token", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "GetMinDelays", - "outputs": [ - { - "internalType": "uint256", - "name": "_startDelay", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_cliffDelay", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_finishDelay", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_user", - "type": "address" - } - ], - "name": "GetMyTokens", - "outputs": [ - { - "internalType": "address[]", - "name": "tokens", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_user", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_from", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_to", - "type": "uint256" - } - ], - "name": "GetMyTokensByRange", - "outputs": [ - { - "internalType": "address[]", - "name": "_tokens", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_user", - "type": "address" - } - ], - "name": "GetMyTokensLengthByUser", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_token", - "type": "address" - } - ], - "name": "GetTokenFilterStatus", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_token", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_from", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_to", - "type": "uint256" - } - ], - "name": "GetUsersDataByRange", - "outputs": [ - { - "internalType": "address[]", - "name": "_users", - "type": "address[]" - }, - { - "components": [ - { - "internalType": "uint256", - "name": "Amount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "StartDelay", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "CliffDelay", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "FinishDelay", - "type": "uint256" - } - ], - "internalType": "struct DelayData.Vault[]", - "name": "_vaults", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_token", - "type": "address" - } - ], - "name": "GetUsersLengthByToken", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "GovernorContract", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "LockedDealAddress", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MaxDelay", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "MyTokens", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "Pause", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "TokenToUsers", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "Unpause", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "VaultMap", - "outputs": [ - { - "internalType": "uint256", - "name": "Amount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "StartDelay", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "CliffDelay", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "FinishDelay", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChecksum", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "paused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_token", - "type": "address" - }, - { - "internalType": "address", - "name": "_owner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "redeemTokensFromVault", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "setGovernorContract", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_lockedDealAddress", - "type": "address" - } - ], - "name": "setLockedDealAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_maxDelay", - "type": "uint256" - } - ], - "name": "setMaxDelay", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_token", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "_amounts", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_startDelays", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_cliffDelays", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_finishDelays", - "type": "uint256[]" - } - ], - "name": "setMinDelays", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_token", - "type": "address" - }, - { - "internalType": "bool", - "name": "_status", - "type": "bool" - } - ], - "name": "setTokenStatusFilter", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_token", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_startDelay", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_cliffDelay", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_finishDelay", - "type": "uint256" - } - ], - "name": "CreateVault", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_token", - "type": "address" - } - ], - "name": "Withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_token", - "type": "address" - }, - { - "internalType": "bool", - "name": "_status", - "type": "bool" - } - ], - "name": "approveTokenRedemption", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/src/contracts/abi/DelayVaultMigrator.json b/src/contracts/abi/DelayVaultMigrator.json deleted file mode 100644 index 2557b41..0000000 --- a/src/contracts/abi/DelayVaultMigrator.json +++ /dev/null @@ -1,210 +0,0 @@ -{ - "NameVersion": "DelayVaultMigrator@0.9.1-ironblocks", - "contractName": "DelayVaultMigrator", - "abi": [ - { - "inputs": [ - { - "internalType": "contract ILockDealNFT", - "name": "_nft", - "type": "address" - }, - { - "internalType": "contract IDelayVaultV1", - "name": "_oldVault", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_Token", - "type": "address" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_StartAmount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_Owner", - "type": "address" - } - ], - "name": "CreateNewPool", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract IDelayVaultProvider", - "name": "_newVault", - "type": "address" - } - ], - "name": "finalize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "firewallAdmin", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "fullMigrate", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "user", - "type": "address" - } - ], - "name": "getUserV1Amount", - "outputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "lockDealNFT", - "outputs": [ - { - "internalType": "contract ILockDealNFT", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "newVault", - "outputs": [ - { - "internalType": "contract IDelayVaultProvider", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "oldVault", - "outputs": [ - { - "internalType": "contract IDelayVaultV1", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewall", - "type": "address" - } - ], - "name": "setFirewall", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewallAdmin", - "type": "address" - } - ], - "name": "setFirewallAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "token", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawTokensFromV1Vault", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/src/contracts/abi/DelayVaultProvider.json b/src/contracts/abi/DelayVaultProvider.json deleted file mode 100644 index 0bee2ea..0000000 --- a/src/contracts/abi/DelayVaultProvider.json +++ /dev/null @@ -1,657 +0,0 @@ -{ - "NameVersion": "DelayVaultProvider@0.9.5-ironblocks", - "contractName": "DelayVaultProvider", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "_token", - "type": "address" - }, - { - "internalType": "contract IMigrator", - "name": "_migrator", - "type": "address" - }, - { - "components": [ - { - "internalType": "contract IProvider", - "name": "provider", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - }, - { - "internalType": "uint256", - "name": "limit", - "type": "uint256" - } - ], - "internalType": "struct IDelayVaultProvider.ProviderData[]", - "name": "_providersData", - "type": "tuple[]" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "name": "UpdateParams", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "VaultValueChanged", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "user", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "internalType": "uint256", - "name": "balance", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "beforeTransfer", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "name": "createNewDelayVault", - "outputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - } - ], - "name": "createNewDelayVaultWithSignature", - "outputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "currentParamsTargetLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "firewallAdmin", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "getParams", - "outputs": [ - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "getSubProvidersPoolIds", - "outputs": [ - { - "internalType": "uint256[]", - "name": "poolIds", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "user", - "type": "address" - } - ], - "name": "getTotalAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "theType", - "type": "uint8" - } - ], - "name": "getTypeToProviderData", - "outputs": [ - { - "components": [ - { - "internalType": "contract IProvider", - "name": "provider", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - }, - { - "internalType": "uint256", - "name": "limit", - "type": "uint256" - } - ], - "internalType": "struct IDelayVaultProvider.ProviderData", - "name": "providerData", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "uint8", - "name": "theType", - "type": "uint8" - } - ], - "name": "getWithdrawPoolParams", - "outputs": [ - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "getWithdrawableAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "withdrawalAmount", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "lockDealNFT", - "outputs": [ - { - "internalType": "contract ILockDealNFT", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "migrator", - "outputs": [ - { - "internalType": "contract IMigrator", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "poolIdToAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "name": "registerPool", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewall", - "type": "address" - } - ], - "name": "setFirewall", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewallAdmin", - "type": "address" - } - ], - "name": "setFirewallAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "oldPoolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "newPoolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "ratio", - "type": "uint256" - } - ], - "name": "split", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "theTypeOf", - "outputs": [ - { - "internalType": "uint8", - "name": "theType", - "type": "uint8" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "token", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "internalType": "uint256", - "name": "index", - "type": "uint256" - } - ], - "name": "tokenOfOwnerByIndex", - "outputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - } - ], - "name": "typeToProviderData", - "outputs": [ - { - "internalType": "contract IProvider", - "name": "provider", - "type": "address" - }, - { - "internalType": "uint256", - "name": "limit", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "typesCount", - "outputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "newType", - "type": "uint8" - } - ], - "name": "upgradeType", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "userToAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "userToType", - "outputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [ - { - "internalType": "uint256", - "name": "withdrawnAmount", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "isFinal", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/src/contracts/abi/DispenserProvider.json b/src/contracts/abi/DispenserProvider.json deleted file mode 100644 index 552b7bc..0000000 --- a/src/contracts/abi/DispenserProvider.json +++ /dev/null @@ -1,774 +0,0 @@ -{ - "NameVersion": "DispenserProvider@1.1.2", - "contractName": "DispenserProvider", - "abi": [ - { - "inputs": [ - { - "internalType": "contract ILockDealNFT", - "name": "_lockDealNFT", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "target", - "type": "address" - } - ], - "name": "AddressEmptyCode", - "type": "error" - }, - { - "inputs": [], - "name": "AmountMustBeGreaterThanZero", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "caller", - "type": "address" - }, - { - "internalType": "address", - "name": "receiver", - "type": "address" - }, - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "CallerNotApproved", - "type": "error" - }, - { - "inputs": [], - "name": "ECDSAInvalidSignature", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "ECDSAInvalidSignatureLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "s", - "type": "bytes32" - } - ], - "name": "ECDSAInvalidSignatureS", - "type": "error" - }, - { - "inputs": [], - "name": "FailedCall", - "type": "error" - }, - { - "inputs": [], - "name": "InvalidShortString", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "receiver", - "type": "address" - } - ], - "name": "InvalidSignature", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "currentTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "validUntil", - "type": "uint256" - } - ], - "name": "InvalidTime", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "requestedAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "availableAmount", - "type": "uint256" - } - ], - "name": "NotEnoughTokensInPool", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "str", - "type": "string" - } - ], - "name": "StringTooLong", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "receiver", - "type": "address" - } - ], - "name": "TokensAlreadyTaken", - "type": "error" - }, - { - "inputs": [], - "name": "ZeroParamsLength", - "type": "error" - }, - { - "anonymous": false, - "inputs": [], - "name": "EIP712DomainChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "newAdmin", - "type": "address" - } - ], - "name": "FirewallAdminUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "newFirewall", - "type": "address" - } - ], - "name": "FirewallUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "contract ISimpleProvider", - "name": "provider", - "type": "address" - } - ], - "name": "PoolCreated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amountTaken", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "leftAmount", - "type": "uint256" - } - ], - "name": "TokensDispensed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "name": "UpdateParams", - "type": "event" - }, - { - "inputs": [], - "name": "BUILDER_TYPEHASH", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MESSAGE_TYPEHASH", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "acceptFirewallAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "addresses", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - } - ], - "name": "createNewPool", - "outputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "currentParamsTargetLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "receiver", - "type": "address" - }, - { - "internalType": "uint256", - "name": "validUntil", - "type": "uint256" - }, - { - "components": [ - { - "internalType": "contract ISimpleProvider", - "name": "simpleProvider", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "internalType": "struct IDispenserProvider.Builder[]", - "name": "data", - "type": "tuple[]" - } - ], - "internalType": "struct IDispenserProvider.MessageStruct", - "name": "message", - "type": "tuple" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - } - ], - "name": "dispenseLock", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "eip712Domain", - "outputs": [ - { - "internalType": "bytes1", - "name": "fields", - "type": "bytes1" - }, - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "string", - "name": "version", - "type": "string" - }, - { - "internalType": "uint256", - "name": "chainId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "verifyingContract", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "salt", - "type": "bytes32" - }, - { - "internalType": "uint256[]", - "name": "extensions", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "firewallAdmin", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "getParams", - "outputs": [ - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "getSubProvidersPoolIds", - "outputs": [ - { - "internalType": "uint256[]", - "name": "poolIds", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "getWithdrawableAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "isTaken", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "lockDealNFT", - "outputs": [ - { - "internalType": "contract ILockDealNFT", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "poolIdToAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "name": "registerPool", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "vennPolicy", - "type": "address" - }, - { - "internalType": "bytes", - "name": "vennPolicyPayload", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "safeFunctionCall", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "vennPolicy", - "type": "address" - }, - { - "internalType": "bool", - "name": "status", - "type": "bool" - } - ], - "name": "setApprovedVennPolicy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "fee", - "type": "uint256" - } - ], - "name": "setApprovedVennPolicyFee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewall", - "type": "address" - } - ], - "name": "setFirewall", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewallAdmin", - "type": "address" - } - ], - "name": "setFirewallAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "oldPoolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "newPoolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "ratio", - "type": "uint256" - } - ], - "name": "split", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [ - { - "internalType": "uint256", - "name": "withdrawnAmount", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "isFinal", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [ - { - "internalType": "uint256", - "name": "withdrawnAmount", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "isFinal", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/src/contracts/abi/ERC20.json b/src/contracts/abi/ERC20.json deleted file mode 100644 index 72cd407..0000000 --- a/src/contracts/abi/ERC20.json +++ /dev/null @@ -1,1268 +0,0 @@ -{ - "contractName": "ERC20", - "abi": [ - { - "constant": true, - "inputs": [], - "name": "name", - "outputs": [ - { - "name": "", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_spender", - "type": "address" - }, - { - "name": "_value", - "type": "uint256" - } - ], - "name": "approve", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalSupply", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_from", - "type": "address" - }, - { - "name": "_to", - "type": "address" - }, - { - "name": "_value", - "type": "uint256" - } - ], - "name": "transferFrom", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "decimals", - "outputs": [ - { - "name": "", - "type": "uint8" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_owner", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "name": "balance", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "symbol", - "outputs": [ - { - "name": "", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_to", - "type": "address" - }, - { - "name": "_value", - "type": "uint256" - } - ], - "name": "transfer", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_owner", - "type": "address" - }, - { - "name": "_spender", - "type": "address" - } - ], - "name": "allowance", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "payable": true, - "stateMutability": "payable", - "type": "fallback" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "name": "spender", - "type": "address" - }, - { - "indexed": false, - "name": "value", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "from", - "type": "address" - }, - { - "indexed": true, - "name": "to", - "type": "address" - }, - { - "indexed": false, - "name": "value", - "type": "uint256" - } - ], - "name": "Transfer", - "type": "event" - } - ], - "metadata": "", - "bytecode": "0x", - "deployedBytecode": "0x", - "sourceMap": "", - "deployedSourceMap": "", - "source": "pragma solidity ^0.4.24;\r\n\r\nimport \"./ERC20Basic.sol\";\r\n\r\n\r\n/**\r\n * @title ERC20 interface\r\n * @dev see https://github.com/ethereum/EIPs/issues/20\r\n */\r\ncontract ERC20 is ERC20Basic {\r\n function allowance(address _owner, address _spender)\r\n public view returns (uint256);\r\n\r\n function transferFrom(address _from, address _to, uint256 _value)\r\n public returns (bool);\r\n\r\n function approve(address _spender, uint256 _value) public returns (bool);\r\n event Approval(\r\n address indexed owner,\r\n address indexed spender,\r\n uint256 value\r\n );\r\n}\r\n", - "sourcePath": "openzeppelin-solidity\\contracts\\token\\ERC20\\ERC20.sol", - "ast": { - "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol", - "exportedSymbols": { - "ERC20": [1676] - }, - "id": 1677, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 1635, - "literals": ["solidity", "^", "0.4", ".24"], - "nodeType": "PragmaDirective", - "src": "0:24:6" - }, - { - "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol", - "file": "./ERC20Basic.sol", - "id": 1636, - "nodeType": "ImportDirective", - "scope": 1677, - "sourceUnit": 1709, - "src": "28:26:6", - "symbolAliases": [], - "unitAlias": "" - }, - { - "baseContracts": [ - { - "arguments": null, - "baseName": { - "contractScope": null, - "id": 1637, - "name": "ERC20Basic", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 1708, - "src": "171:10:6", - "typeDescriptions": { - "typeIdentifier": "t_contract$_ERC20Basic_$1708", - "typeString": "contract ERC20Basic" - } - }, - "id": 1638, - "nodeType": "InheritanceSpecifier", - "src": "171:10:6" - } - ], - "contractDependencies": [1708], - "contractKind": "contract", - "documentation": "@title ERC20 interface\r\n@dev see https://github.com/ethereum/EIPs/issues/20\r", - "fullyImplemented": false, - "id": 1676, - "linearizedBaseContracts": [1676, 1708], - "name": "ERC20", - "nodeType": "ContractDefinition", - "nodes": [ - { - "body": null, - "documentation": null, - "id": 1647, - "implemented": false, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "allowance", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1643, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1640, - "name": "_owner", - "nodeType": "VariableDeclaration", - "scope": 1647, - "src": "206:14:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1639, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "206:7:6", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1642, - "name": "_spender", - "nodeType": "VariableDeclaration", - "scope": 1647, - "src": "222:16:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1641, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "222:7:6", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "205:34:6" - }, - "payable": false, - "returnParameters": { - "id": 1646, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1645, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 1647, - "src": "266:7:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1644, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "266:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "265:9:6" - }, - "scope": 1676, - "src": "187:88:6", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": null, - "documentation": null, - "id": 1658, - "implemented": false, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "transferFrom", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1654, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1649, - "name": "_from", - "nodeType": "VariableDeclaration", - "scope": 1658, - "src": "303:13:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1648, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "303:7:6", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1651, - "name": "_to", - "nodeType": "VariableDeclaration", - "scope": 1658, - "src": "318:11:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1650, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "318:7:6", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1653, - "name": "_value", - "nodeType": "VariableDeclaration", - "scope": 1658, - "src": "331:14:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1652, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "331:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "302:44:6" - }, - "payable": false, - "returnParameters": { - "id": 1657, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1656, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 1658, - "src": "368:4:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 1655, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "368:4:6", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "367:6:6" - }, - "scope": 1676, - "src": "281:93:6", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": null, - "documentation": null, - "id": 1667, - "implemented": false, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "approve", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1663, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1660, - "name": "_spender", - "nodeType": "VariableDeclaration", - "scope": 1667, - "src": "397:16:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1659, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "397:7:6", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1662, - "name": "_value", - "nodeType": "VariableDeclaration", - "scope": 1667, - "src": "415:14:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1661, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "415:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "396:34:6" - }, - "payable": false, - "returnParameters": { - "id": 1666, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1665, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 1667, - "src": "447:4:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 1664, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "447:4:6", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "446:6:6" - }, - "scope": 1676, - "src": "380:73:6", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "anonymous": false, - "documentation": null, - "id": 1675, - "name": "Approval", - "nodeType": "EventDefinition", - "parameters": { - "id": 1674, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1669, - "indexed": true, - "name": "owner", - "nodeType": "VariableDeclaration", - "scope": 1675, - "src": "478:21:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1668, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "478:7:6", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1671, - "indexed": true, - "name": "spender", - "nodeType": "VariableDeclaration", - "scope": 1675, - "src": "506:23:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1670, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "506:7:6", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1673, - "indexed": false, - "name": "value", - "nodeType": "VariableDeclaration", - "scope": 1675, - "src": "536:13:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1672, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "536:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "471:83:6" - }, - "src": "457:98:6" - } - ], - "scope": 1677, - "src": "153:405:6" - } - ], - "src": "0:560:6" - }, - "legacyAST": { - "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol", - "exportedSymbols": { - "ERC20": [1676] - }, - "id": 1677, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 1635, - "literals": ["solidity", "^", "0.4", ".24"], - "nodeType": "PragmaDirective", - "src": "0:24:6" - }, - { - "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol", - "file": "./ERC20Basic.sol", - "id": 1636, - "nodeType": "ImportDirective", - "scope": 1677, - "sourceUnit": 1709, - "src": "28:26:6", - "symbolAliases": [], - "unitAlias": "" - }, - { - "baseContracts": [ - { - "arguments": null, - "baseName": { - "contractScope": null, - "id": 1637, - "name": "ERC20Basic", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 1708, - "src": "171:10:6", - "typeDescriptions": { - "typeIdentifier": "t_contract$_ERC20Basic_$1708", - "typeString": "contract ERC20Basic" - } - }, - "id": 1638, - "nodeType": "InheritanceSpecifier", - "src": "171:10:6" - } - ], - "contractDependencies": [1708], - "contractKind": "contract", - "documentation": "@title ERC20 interface\r\n@dev see https://github.com/ethereum/EIPs/issues/20\r", - "fullyImplemented": false, - "id": 1676, - "linearizedBaseContracts": [1676, 1708], - "name": "ERC20", - "nodeType": "ContractDefinition", - "nodes": [ - { - "body": null, - "documentation": null, - "id": 1647, - "implemented": false, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "allowance", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1643, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1640, - "name": "_owner", - "nodeType": "VariableDeclaration", - "scope": 1647, - "src": "206:14:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1639, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "206:7:6", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1642, - "name": "_spender", - "nodeType": "VariableDeclaration", - "scope": 1647, - "src": "222:16:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1641, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "222:7:6", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "205:34:6" - }, - "payable": false, - "returnParameters": { - "id": 1646, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1645, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 1647, - "src": "266:7:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1644, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "266:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "265:9:6" - }, - "scope": 1676, - "src": "187:88:6", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": null, - "documentation": null, - "id": 1658, - "implemented": false, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "transferFrom", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1654, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1649, - "name": "_from", - "nodeType": "VariableDeclaration", - "scope": 1658, - "src": "303:13:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1648, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "303:7:6", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1651, - "name": "_to", - "nodeType": "VariableDeclaration", - "scope": 1658, - "src": "318:11:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1650, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "318:7:6", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1653, - "name": "_value", - "nodeType": "VariableDeclaration", - "scope": 1658, - "src": "331:14:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1652, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "331:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "302:44:6" - }, - "payable": false, - "returnParameters": { - "id": 1657, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1656, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 1658, - "src": "368:4:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 1655, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "368:4:6", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "367:6:6" - }, - "scope": 1676, - "src": "281:93:6", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": null, - "documentation": null, - "id": 1667, - "implemented": false, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "approve", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 1663, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1660, - "name": "_spender", - "nodeType": "VariableDeclaration", - "scope": 1667, - "src": "397:16:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1659, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "397:7:6", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1662, - "name": "_value", - "nodeType": "VariableDeclaration", - "scope": 1667, - "src": "415:14:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1661, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "415:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "396:34:6" - }, - "payable": false, - "returnParameters": { - "id": 1666, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1665, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 1667, - "src": "447:4:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 1664, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "447:4:6", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "446:6:6" - }, - "scope": 1676, - "src": "380:73:6", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "anonymous": false, - "documentation": null, - "id": 1675, - "name": "Approval", - "nodeType": "EventDefinition", - "parameters": { - "id": 1674, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1669, - "indexed": true, - "name": "owner", - "nodeType": "VariableDeclaration", - "scope": 1675, - "src": "478:21:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1668, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "478:7:6", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1671, - "indexed": true, - "name": "spender", - "nodeType": "VariableDeclaration", - "scope": 1675, - "src": "506:23:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1670, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "506:7:6", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1673, - "indexed": false, - "name": "value", - "nodeType": "VariableDeclaration", - "scope": 1675, - "src": "536:13:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1672, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "536:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "471:83:6" - }, - "src": "457:98:6" - } - ], - "scope": 1677, - "src": "153:405:6" - } - ], - "src": "0:560:6" - }, - "compiler": { - "name": "solc", - "version": "0.4.26+commit.4563c3fc.Emscripten.clang" - }, - "networks": {}, - "schemaVersion": "3.2.5", - "updatedAt": "2020-09-29T20:48:30.124Z", - "devdoc": { - "methods": {}, - "title": "ERC20 interface\r" - }, - "userdoc": { - "methods": {} - } -} diff --git a/src/contracts/abi/InvestProvider.json b/src/contracts/abi/InvestProvider.json deleted file mode 100644 index 158dcae..0000000 --- a/src/contracts/abi/InvestProvider.json +++ /dev/null @@ -1,861 +0,0 @@ -{ - "contractName": "InvestProvider", - "abi": [ - { - "inputs": [ - { - "internalType": "contract ILockDealNFT", - "name": "_lockDealNFT", - "type": "address" - }, - { - "internalType": "contract IProvider", - "name": "_dispenserProvider", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "target", - "type": "address" - } - ], - "name": "AddressEmptyCode", - "type": "error" - }, - { - "inputs": [], - "name": "ECDSAInvalidSignature", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "ECDSAInvalidSignatureLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "s", - "type": "bytes32" - } - ], - "name": "ECDSAInvalidSignatureS", - "type": "error" - }, - { - "inputs": [], - "name": "ExceededLeftAmount", - "type": "error" - }, - { - "inputs": [], - "name": "FailedCall", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "InactivePool", - "type": "error" - }, - { - "inputs": [], - "name": "InvalidParams", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "paramsLength", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "minLength", - "type": "uint256" - } - ], - "name": "InvalidParamsLength", - "type": "error" - }, - { - "inputs": [], - "name": "InvalidPoolId", - "type": "error" - }, - { - "inputs": [], - "name": "InvalidProvider", - "type": "error" - }, - { - "inputs": [], - "name": "InvalidShortString", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "InvalidSignature", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "sourcePoolId", - "type": "uint256" - } - ], - "name": "InvalidSourcePoolId", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "currentTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "validUntil", - "type": "uint256" - } - ], - "name": "InvalidTime", - "type": "error" - }, - { - "inputs": [], - "name": "NoZeroAddress", - "type": "error" - }, - { - "inputs": [], - "name": "NoZeroAmount", - "type": "error" - }, - { - "inputs": [], - "name": "OnlyLockDealNFT", - "type": "error" - }, - { - "inputs": [], - "name": "ReentrancyGuardReentrantCall", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "token", - "type": "address" - } - ], - "name": "SafeERC20FailedOperation", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "str", - "type": "string" - } - ], - "name": "StringTooLong", - "type": "error" - }, - { - "anonymous": false, - "inputs": [], - "name": "EIP712DomainChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "newAdmin", - "type": "address" - } - ], - "name": "FirewallAdminUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "newFirewall", - "type": "address" - } - ], - "name": "FirewallUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newNonce", - "type": "uint256" - } - ], - "name": "Invested", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "poolAmount", - "type": "uint256" - } - ], - "name": "NewPoolCreated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "name": "UpdateParams", - "type": "event" - }, - { - "inputs": [], - "name": "INVEST_TYPEHASH", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "acceptFirewallAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "sourcePoolId", - "type": "uint256" - } - ], - "name": "createNewPool", - "outputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolAmount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "investSigner", - "type": "address" - }, - { - "internalType": "address", - "name": "dispenserSigner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "sourcePoolId", - "type": "uint256" - } - ], - "name": "createNewPool", - "outputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "currentParamsTargetLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [], - "name": "dispenserProvider", - "outputs": [ - { - "internalType": "contract IProvider", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "eip712Domain", - "outputs": [ - { - "internalType": "bytes1", - "name": "fields", - "type": "bytes1" - }, - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "string", - "name": "version", - "type": "string" - }, - { - "internalType": "uint256", - "name": "chainId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "verifyingContract", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "salt", - "type": "bytes32" - }, - { - "internalType": "uint256[]", - "name": "extensions", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "firewallAdmin", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "user", - "type": "address" - } - ], - "name": "getNonce", - "outputs": [ - { - "internalType": "uint256", - "name": "nonce", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "getParams", - "outputs": [ - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "getSubProvidersPoolIds", - "outputs": [ - { - "internalType": "uint256[]", - "name": "poolIds", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "user", - "type": "address" - } - ], - "name": "getUserInvests", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "blockTimestamp", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "internalType": "struct InvestNonce.UserInvest[]", - "name": "", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "getWithdrawableAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "validUntil", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - } - ], - "name": "invest", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "lockDealNFT", - "outputs": [ - { - "internalType": "contract ILockDealNFT", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "poolIdToInvests", - "outputs": [ - { - "internalType": "uint256", - "name": "blockTimestamp", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "poolIdToPool", - "outputs": [ - { - "internalType": "uint256", - "name": "maxAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "leftAmount", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "name": "registerPool", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "vennPolicy", - "type": "address" - }, - { - "internalType": "bytes", - "name": "vennPolicyPayload", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "safeFunctionCall", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "vennPolicy", - "type": "address" - }, - { - "internalType": "bool", - "name": "status", - "type": "bool" - } - ], - "name": "setApprovedVennPolicy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "fee", - "type": "uint256" - } - ], - "name": "setApprovedVennPolicyFee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewall", - "type": "address" - } - ], - "name": "setFirewall", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewallAdmin", - "type": "address" - } - ], - "name": "setFirewallAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "oldPoolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "newPoolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "ratio", - "type": "uint256" - } - ], - "name": "split", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [ - { - "internalType": "uint256", - "name": "withdrawnAmount", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "isFinal", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} \ No newline at end of file diff --git a/src/contracts/abi/LockDealNFT.json b/src/contracts/abi/LockDealNFT.json deleted file mode 100644 index ed27234..0000000 --- a/src/contracts/abi/LockDealNFT.json +++ /dev/null @@ -1,1253 +0,0 @@ -{ - "NameVersion": "LockDealNFT@0.9.1-ironblocks", - "contractName": "LockDealNFT", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "_vaultManager", - "type": "address" - }, - { - "internalType": "string", - "name": "_baseURI", - "type": "string" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "approved", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": false, - "internalType": "bool", - "name": "approved", - "type": "bool" - } - ], - "name": "ApprovalForAll", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "string", - "name": "oldBaseURI", - "type": "string" - }, - { - "indexed": false, - "internalType": "string", - "name": "newBaseURI", - "type": "string" - } - ], - "name": "BaseURIChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_fromTokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_toTokenId", - "type": "uint256" - } - ], - "name": "BatchMetadataUpdate", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "contractAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "bool", - "name": "status", - "type": "bool" - } - ], - "name": "ContractApproved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - } - ], - "name": "MetadataUpdate", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newPoolId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "splitLeftAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newSplitLeftAmount", - "type": "uint256" - } - ], - "name": "PoolSplit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "withdrawnAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "leftAmount", - "type": "uint256" - } - ], - "name": "TokenWithdrawn", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "approve", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bool", - "name": "status", - "type": "bool" - } - ], - "name": "approvePoolTransfers", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "approvedContracts", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "approvedPoolUserTransfers", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "address[]", - "name": "tokens", - "type": "address[]" - } - ], - "name": "balanceOf", - "outputs": [ - { - "internalType": "uint256", - "name": "balance", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "baseURI", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "destinationPoolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "sourcePoolId", - "type": "uint256" - } - ], - "name": "cloneVaultId", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "firewallAdmin", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "getApproved", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "getData", - "outputs": [ - { - "components": [ - { - "internalType": "contract IProvider", - "name": "provider", - "type": "address" - }, - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "vaultId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "internalType": "struct ILockDealNFT.BasePoolInfo", - "name": "poolInfo", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "getFullData", - "outputs": [ - { - "components": [ - { - "internalType": "contract IProvider", - "name": "provider", - "type": "address" - }, - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "vaultId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "internalType": "struct ILockDealNFT.BasePoolInfo[]", - "name": "poolInfo", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "internalType": "address[]", - "name": "tokens", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "from", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "to", - "type": "uint256" - } - ], - "name": "getUserDataByTokens", - "outputs": [ - { - "components": [ - { - "internalType": "contract IProvider", - "name": "provider", - "type": "address" - }, - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "vaultId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "internalType": "struct ILockDealNFT.BasePoolInfo[]", - "name": "userPoolInfo", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "getWithdrawableAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "withdrawalAmount", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "address", - "name": "operator", - "type": "address" - } - ], - "name": "isApprovedForAll", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "contract IProvider", - "name": "provider", - "type": "address" - } - ], - "name": "mintAndTransfer", - "outputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "contract IProvider", - "name": "provider", - "type": "address" - } - ], - "name": "mintForProvider", - "outputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "onERC721Received", - "outputs": [ - { - "internalType": "bytes4", - "name": "", - "type": "bytes4" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "ownerOf", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "poolIdToProvider", - "outputs": [ - { - "internalType": "contract IProvider", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "poolIdToVaultId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "salePrice", - "type": "uint256" - } - ], - "name": "royaltyInfo", - "outputs": [ - { - "internalType": "address", - "name": "receiver", - "type": "address" - }, - { - "internalType": "uint256", - "name": "royaltyAmount", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "contract IProvider", - "name": "provider", - "type": "address" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "safeMintAndTransfer", - "outputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "safeTransferFrom", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "safeTransferFrom", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "bool", - "name": "approved", - "type": "bool" - } - ], - "name": "setApprovalForAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "contractAddress", - "type": "address" - }, - { - "internalType": "bool", - "name": "status", - "type": "bool" - } - ], - "name": "setApprovedContract", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "newBaseURI", - "type": "string" - } - ], - "name": "setBaseURI", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewall", - "type": "address" - } - ], - "name": "setFirewall", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewallAdmin", - "type": "address" - } - ], - "name": "setFirewallAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "index", - "type": "uint256" - } - ], - "name": "tokenByIndex", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "tokenOf", - "outputs": [ - { - "internalType": "address", - "name": "token", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "index", - "type": "uint256" - } - ], - "name": "tokenOfOwnerByIndex", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "address[]", - "name": "tokens", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "index", - "type": "uint256" - } - ], - "name": "tokenOfOwnerByIndex", - "outputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "tokenURI", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "transferFrom", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "updateAllMetadata", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vaultManager", - "outputs": [ - { - "internalType": "contract IVaultManager", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/src/contracts/abi/LockDealProvider.json b/src/contracts/abi/LockDealProvider.json deleted file mode 100644 index 6d9b67d..0000000 --- a/src/contracts/abi/LockDealProvider.json +++ /dev/null @@ -1,453 +0,0 @@ -{ - "NameVersion": "LockDealProvider@1.0.6", - "contractName": "LockDealProvider", - "abi": [ - { - "inputs": [ - { - "internalType": "contract ILockDealNFT", - "name": "_lockDealNFT", - "type": "address" - }, - { - "internalType": "address", - "name": "_provider", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "target", - "type": "address" - } - ], - "name": "AddressEmptyCode", - "type": "error" - }, - { - "inputs": [], - "name": "FailedCall", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "newAdmin", - "type": "address" - } - ], - "name": "FirewallAdminUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "newFirewall", - "type": "address" - } - ], - "name": "FirewallUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "name": "UpdateParams", - "type": "event" - }, - { - "inputs": [], - "name": "acceptFirewallAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "addresses", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - } - ], - "name": "createNewPool", - "outputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "currentParamsTargetLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "firewallAdmin", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "getParams", - "outputs": [ - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "getSubProvidersPoolIds", - "outputs": [ - { - "internalType": "uint256[]", - "name": "poolIds", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "getWithdrawableAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "lockDealNFT", - "outputs": [ - { - "internalType": "contract ILockDealNFT", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "poolIdToTime", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "provider", - "outputs": [ - { - "internalType": "contract ISimpleProvider", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "name": "registerPool", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "vennPolicy", - "type": "address" - }, - { - "internalType": "bytes", - "name": "vennPolicyPayload", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "safeFunctionCall", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "vennPolicy", - "type": "address" - }, - { - "internalType": "bool", - "name": "status", - "type": "bool" - } - ], - "name": "setApprovedVennPolicy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "fee", - "type": "uint256" - } - ], - "name": "setApprovedVennPolicyFee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewall", - "type": "address" - } - ], - "name": "setFirewall", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewallAdmin", - "type": "address" - } - ], - "name": "setFirewallAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "lockDealNFTPoolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "newPoolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "ratio", - "type": "uint256" - } - ], - "name": "split", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [ - { - "internalType": "uint256", - "name": "withdrawnAmount", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "isFinal", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [ - { - "internalType": "uint256", - "name": "withdrawnAmount", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "isFinal", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/src/contracts/abi/LockedDealV2.json b/src/contracts/abi/LockedDealV2.json deleted file mode 100644 index a90e221..0000000 --- a/src/contracts/abi/LockedDealV2.json +++ /dev/null @@ -1,1336 +0,0 @@ -{ - "NameVersion": "LockedDeal@2.3.3", - "contractName": "LockedDealV2", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "FirstPoolId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "LastPoolId", - "type": "uint256" - } - ], - "name": "MassPoolsCreated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "NewFeeAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "OldFeeAmount", - "type": "uint256" - } - ], - "name": "NewFeeAmount", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "NewFeeToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "OldFeeToken", - "type": "address" - } - ], - "name": "NewFeeToken", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "PoolId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "Token", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "StartTime", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "CliffTime", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "FinishTime", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "StartAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "DebitedAmount", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "Owner", - "type": "address" - } - ], - "name": "NewPoolCreated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "PoolId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "Spender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "Amount", - "type": "uint256" - } - ], - "name": "PoolApproval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "OldPoolId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "NewPoolId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "OriginalLeftAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "NewAmount", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "OldOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "NewOwner", - "type": "address" - } - ], - "name": "PoolSplit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "PoolId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "Recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "Amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "LeftAmount", - "type": "uint256" - } - ], - "name": "TokenWithdrawn", - "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" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "AllPoolz", - "outputs": [ - { - "internalType": "uint256", - "name": "StartTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "CliffTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "FinishTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "StartAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "DebitedAmount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "Owner", - "type": "address" - }, - { - "internalType": "address", - "name": "Token", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "Allowance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_PoolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_Amount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_Spender", - "type": "address" - } - ], - "name": "ApproveAllowance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_Token", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "_StartTime", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_CliffTime", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_FinishTime", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_StartAmount", - "type": "uint256[]" - }, - { - "internalType": "address[]", - "name": "_Owner", - "type": "address[]" - } - ], - "name": "CreateMassPools", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_Token", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_StartTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_CliffTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_FinishTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_StartAmount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_Owner", - "type": "address" - } - ], - "name": "CreateNewPool", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_Token", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "_StartTime", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_CliffTime", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_FinishTime", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_StartAmount", - "type": "uint256[]" - }, - { - "internalType": "address[]", - "name": "_Owner", - "type": "address[]" - } - ], - "name": "CreatePoolsWrtTime", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "Fee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "FeeToken", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_UserAddress", - "type": "address" - } - ], - "name": "GetAllMyPoolsData", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "StartTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "CliffTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "FinishTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "StartAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "DebitedAmount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "Owner", - "type": "address" - }, - { - "internalType": "address", - "name": "Token", - "type": "address" - } - ], - "internalType": "struct LockedDealModifiers.Pool[]", - "name": "data", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_UserAddress", - "type": "address" - } - ], - "name": "GetAllMyPoolsId", - "outputs": [ - { - "internalType": "uint256[]", - "name": "", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_UserAddress", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_Tokens", - "type": "address[]" - } - ], - "name": "GetMyPoolDataByToken", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "StartTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "CliffTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "FinishTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "StartAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "DebitedAmount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "Owner", - "type": "address" - }, - { - "internalType": "address", - "name": "Token", - "type": "address" - } - ], - "internalType": "struct LockedDealModifiers.Pool[]", - "name": "pools", - "type": "tuple[]" - }, - { - "internalType": "uint256[]", - "name": "poolIds", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_UserAddress", - "type": "address" - } - ], - "name": "GetMyPoolsData", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "StartTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "CliffTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "FinishTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "StartAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "DebitedAmount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "Owner", - "type": "address" - }, - { - "internalType": "address", - "name": "Token", - "type": "address" - } - ], - "internalType": "struct LockedDealModifiers.Pool[]", - "name": "data", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_UserAddress", - "type": "address" - } - ], - "name": "GetMyPoolsId", - "outputs": [ - { - "internalType": "uint256[]", - "name": "", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_UserAddress", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_Tokens", - "type": "address[]" - } - ], - "name": "GetMyPoolsIdByToken", - "outputs": [ - { - "internalType": "uint256[]", - "name": "", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256[]", - "name": "_ids", - "type": "uint256[]" - } - ], - "name": "GetPoolsData", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "StartTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "CliffTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "FinishTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "StartAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "DebitedAmount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "Owner", - "type": "address" - }, - { - "internalType": "address", - "name": "Token", - "type": "address" - } - ], - "internalType": "struct LockedDealModifiers.Pool[]", - "name": "data", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "GovernerContract", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "Index", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "MyPoolz", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_fee", - "type": "uint256" - } - ], - "name": "PayFee", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "Reserve", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "SetFeeAmount", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_token", - "type": "address" - } - ], - "name": "SetFeeToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_PoolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_NewAmount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_NewOwner", - "type": "address" - } - ], - "name": "SplitPoolAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_PoolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_Amount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_Address", - "type": "address" - } - ], - "name": "SplitPoolAmountFrom", - "outputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "TokenFeeWhiteListId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "TokenFilterWhiteListId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_PoolId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_NewOwner", - "type": "address" - } - ], - "name": "TransferPoolOwnership", - "outputs": [ - { - "internalType": "uint256", - "name": "newPoolId", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "UserWhiteListId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "WhiteList_Address", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_token", - "type": "address" - }, - { - "internalType": "address", - "name": "_to", - "type": "address" - } - ], - "name": "WithdrawFee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isTokenFilterOn", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_tokenAddress", - "type": "address" - } - ], - "name": "isTokenWhiteListed", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_tokenAddress", - "type": "address" - } - ], - "name": "isTokenWithFee", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_UserAddress", - "type": "address" - } - ], - "name": "isUserPaysFee", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maxTransactionLimit", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "setGovernerContract", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_newLimit", - "type": "uint256" - } - ], - "name": "setMaxTransactionLimit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_id", - "type": "uint256" - } - ], - "name": "setTokenFeeWhiteListId", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_id", - "type": "uint256" - } - ], - "name": "setTokenFilterWhiteListId", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_id", - "type": "uint256" - } - ], - "name": "setUserWhiteListId", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "setWhiteListAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "swapTokenFilter", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_PoolId", - "type": "uint256" - } - ], - "name": "getWithdrawableAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_PoolId", - "type": "uint256" - } - ], - "name": "WithdrawToken", - "outputs": [ - { - "internalType": "uint256", - "name": "withdrawnAmount", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/src/contracts/abi/MultiSenderV2.json b/src/contracts/abi/MultiSenderV2.json deleted file mode 100644 index bec0cf0..0000000 --- a/src/contracts/abi/MultiSenderV2.json +++ /dev/null @@ -1,798 +0,0 @@ -{ - "NameVersion": "MultiSenderV2@2.1.0", - "contractName": "MultiSenderV2", - "abi": [ - { - "inputs": [], - "name": "ArrayZeroLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "ETHTransferFail", - "type": "error" - }, - { - "inputs": [], - "name": "FeeAmountIsZero", - "type": "error" - }, - { - "inputs": [], - "name": "NoZeroAddress", - "type": "error" - }, - { - "inputs": [], - "name": "NotEnoughFeeProvided", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amountProvided", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountRequired", - "type": "uint256" - } - ], - "name": "TotalMismatch", - "type": "error" - }, - { - "inputs": [], - "name": "TransferFailed", - "type": "error" - }, - { - "inputs": [], - "name": "WhiteListNotSet", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "oldGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "userCount", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "totalAmount", - "type": "uint256" - } - ], - "name": "MultiTransferredERC20", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "userCount", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "totalAmount", - "type": "uint256" - } - ], - "name": "MultiTransferredETH", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "NewFeeAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "OldFeeAmount", - "type": "uint256" - } - ], - "name": "NewFeeAmount", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "NewFeeToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "OldFeeToken", - "type": "address" - } - ], - "name": "NewFeeToken", - "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": "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": "address", - "name": "account", - "type": "address" - } - ], - "name": "Unpaused", - "type": "event" - }, - { - "inputs": [], - "name": "FeeAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "FeeReserve", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "FeeToken", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "GovernorContract", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_token", - "type": "address" - }, - { - "components": [ - { - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "internalType": "struct MultiManageable.MultiSendData[]", - "name": "_multiSendData", - "type": "tuple[]" - } - ], - "name": "MultiSendERC20Direct", - "outputs": [ - { - "internalType": "uint256", - "name": "sum", - "type": "uint256" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_token", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_users", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "MultiSendERC20DirectSameValue", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_token", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_totalAmount", - "type": "uint256" - }, - { - "components": [ - { - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "internalType": "struct MultiManageable.MultiSendData[]", - "name": "_multiSendData", - "type": "tuple[]" - } - ], - "name": "MultiSendERC20Indirect", - "outputs": [ - { - "internalType": "uint256", - "name": "sum", - "type": "uint256" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_token", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_users", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "MultiSendERC20IndirectSameValue", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "internalType": "struct MultiManageable.MultiSendData[]", - "name": "_multiSendData", - "type": "tuple[]" - } - ], - "name": "MultiSendETH", - "outputs": [ - { - "internalType": "uint256", - "name": "sum", - "type": "uint256" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_users", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "MultiSendETHSameValue", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "Pause", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "Unpause", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "WhiteListAddress", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "WhiteListId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_token", - "type": "address" - }, - { - "internalType": "address", - "name": "_to", - "type": "address" - } - ], - "name": "WithdrawFee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "acceptFirewallAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_users", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "_credits", - "type": "uint256[]" - } - ], - "name": "addUsers", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "firewallAdmin", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_user", - "type": "address" - } - ], - "name": "getCredits", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "paused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_users", - "type": "address[]" - } - ], - "name": "removeUsers", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "internalType": "bytes", - "name": "targetPayload", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "safeFunctionCall", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "internalType": "bool", - "name": "status", - "type": "bool" - } - ], - "name": "setApprovedTarget", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_token", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "setFee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewall", - "type": "address" - } - ], - "name": "setFirewall", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewallAdmin", - "type": "address" - } - ], - "name": "setFirewallAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "setGovernorContract", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_whiteListAddress", - "type": "address" - } - ], - "name": "setupNewWhitelist", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/src/contracts/abi/RefundProvider.json b/src/contracts/abi/RefundProvider.json deleted file mode 100644 index 27654e0..0000000 --- a/src/contracts/abi/RefundProvider.json +++ /dev/null @@ -1,379 +0,0 @@ -{ - "NameVersion": "RefundProvider@0.9.6", - "contractName": "RefundProvider", - "abi": [ - { - "inputs": [ - { - "internalType": "contract ILockDealNFT", - "name": "nftContract", - "type": "address" - }, - { - "internalType": "address", - "name": "provider", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "name": "UpdateParams", - "type": "event" - }, - { - "inputs": [], - "name": "collateralProvider", - "outputs": [ - { - "internalType": "contract FundsManager", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "addresses", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - }, - { - "internalType": "bytes", - "name": "tokenSignature", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "mainCoinSignature", - "type": "bytes" - } - ], - "name": "createNewRefundPool", - "outputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "currentParamsTargetLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [], - "name": "firewallAdmin", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "getInnerIdsArray", - "outputs": [ - { - "internalType": "uint256[]", - "name": "ids", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "getParams", - "outputs": [ - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "getSubProvidersPoolIds", - "outputs": [ - { - "internalType": "uint256[]", - "name": "poolIds", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "getWithdrawableAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "withdrawalAmount", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "lockDealNFT", - "outputs": [ - { - "internalType": "contract ILockDealNFT", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "provider", - "type": "address" - }, - { - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "name": "onERC721Received", - "outputs": [ - { - "internalType": "bytes4", - "name": "", - "type": "bytes4" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "poolIdToCollateralId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "name": "registerPool", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewall", - "type": "address" - } - ], - "name": "setFirewall", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewallAdmin", - "type": "address" - } - ], - "name": "setFirewallAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "newPoolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "ratio", - "type": "uint256" - } - ], - "name": "split", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [ - { - "internalType": "uint256", - "name": "amountToBeWithdrawed", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "isFinal", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/src/contracts/abi/SignUpPool.json b/src/contracts/abi/SignUpPool.json deleted file mode 100644 index 09534a6..0000000 --- a/src/contracts/abi/SignUpPool.json +++ /dev/null @@ -1,4133 +0,0 @@ -{ - "contractName": "SignUpPool", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "PoolId", - "type": "uint256" - } - ], - "name": "NewPoolActivated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "PoolId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "UserAddress", - "type": "address" - } - ], - "name": "NewSignUp", - "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": "PoolId", - "type": "uint256" - } - ], - "name": "PoolActivated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "PoolId", - "type": "uint256" - } - ], - "name": "PoolDeactivated", - "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": [ - { - "internalType": "uint256", - "name": "_poolId", - "type": "uint256" - } - ], - "name": "ActivatePool", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "CreateNewPool", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_poolId", - "type": "uint256" - } - ], - "name": "DeactivatePool", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "Fee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "FeeTokenAddress", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "GovernerContract", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "IsPayble", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "PoolsCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "SwitchIsPayble", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_to", - "type": "address" - } - ], - "name": "WithdrawERC20Fee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address payable", - "name": "_to", - "type": "address" - } - ], - "name": "WithdrawETHFee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "isPoolActive", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "pause", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "paused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_token", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "setERC20Fee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "setEthFee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "setGovernerContract", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "unpause", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_poolId", - "type": "uint256" - } - ], - "name": "SignUp", - "outputs": [], - "stateMutability": "payable", - "type": "function" - } - ], - "metadata": "{\"compiler\":{\"version\":\"0.6.12+commit.27d51765\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"PoolId\",\"type\":\"uint256\"}],\"name\":\"NewPoolActivated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"PoolId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"UserAddress\",\"type\":\"address\"}],\"name\":\"NewSignUp\",\"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\":\"PoolId\",\"type\":\"uint256\"}],\"name\":\"PoolActivated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"PoolId\",\"type\":\"uint256\"}],\"name\":\"PoolDeactivated\",\"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\":[{\"internalType\":\"uint256\",\"name\":\"_poolId\",\"type\":\"uint256\"}],\"name\":\"ActivatePool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"CreateNewPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_poolId\",\"type\":\"uint256\"}],\"name\":\"DeactivatePool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"Fee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"FeeTokenAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"GovernerContract\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"IsPayble\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PoolsCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_poolId\",\"type\":\"uint256\"}],\"name\":\"SignUp\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"SwitchIsPayble\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"}],\"name\":\"WithdrawERC20Fee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"_to\",\"type\":\"address\"}],\"name\":\"WithdrawETHFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"isPoolActive\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"setERC20Fee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"setEthFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_address\",\"type\":\"address\"}],\"name\":\"setGovernerContract\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"paused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/home/ashwin/Poolz/SignUp-Pool/contracts/SignUpPool.sol\":\"SignUpPool\"},\"evmVersion\":\"byzantium\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/ashwin/Poolz/SignUp-Pool/contracts/Manageable.sol\":{\"keccak256\":\"0xd458630e5892223933ce6816a16819074a324980e8e288a413861fcee565100b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d3db76a3e466a1ae71318c5a821f19dce661565e2e11424d8d2a2db5158361f7\",\"dweb:/ipfs/QmXzGrHnEzQk1dhs13J8kxxqBMy6AcbVLAEvbufYx36gLL\"]},\"/home/ashwin/Poolz/SignUp-Pool/contracts/PoolControl.sol\":{\"keccak256\":\"0x45b6e86a300a4aa096fe08fc521533fa4e94118c9a0d2d85a6065022b0b162e8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6a60c2fc0f72c330d66d559fe08c0b5c78469a8cdee755b2dabec447994c837e\",\"dweb:/ipfs/QmTijfPFGFJP4cR929R54vChwYdK7Lvnm9ktsJzBS9uuhY\"]},\"/home/ashwin/Poolz/SignUp-Pool/contracts/SignUpPool.sol\":{\"keccak256\":\"0x3b231c54482de85af139cc37d9065f8f37cf0ebab945bbc72c1311b0df17ad3a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8988d9b8baa471a60f20fab52f5f4aeae443e66f9458b75ecde1b75eb04db08e\",\"dweb:/ipfs/QmSURgN3Z9QsBgq9PwxVtCbYRG1sykghDRTQdXwwnct29f\"]},\"openzeppelin-solidity/contracts/access/Ownable.sol\":{\"keccak256\":\"0x15e2d5bd4c28a88548074c54d220e8086f638a71ed07e6b3ba5a70066fcf458d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://90faf5851c02f9bd42c5bfb54d4f0421a2612f50ab80b2c4fa24fa3792071cc2\",\"dweb:/ipfs/QmRGM4F2PcGVF85aTfaA9YBhCHHDqrMhRjyp6fGeBTtirb\"]},\"openzeppelin-solidity/contracts/math/SafeMath.sol\":{\"keccak256\":\"0xcc78a17dd88fa5a2edc60c8489e2f405c0913b377216a5b26b35656b2d0dab52\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://526dc85e1f9b9b45830e202568d267d93dde7a4fcccf4ad7798dadcd92304d3c\",\"dweb:/ipfs/QmaoXMB972J3cSDLtBq3xBo4jLwqD2uzXTwujtSPqkYVhR\"]},\"openzeppelin-solidity/contracts/token/ERC20/ERC20.sol\":{\"keccak256\":\"0xca0c2396dbeb3503b51abf4248ebf77a1461edad513c01529df51850a012bee3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://991b44ff44e0496e8554a90f4c0512c28faed45104d40430019f3c67ea67740e\",\"dweb:/ipfs/Qmc3nRapVbcctELoZS5qe17zLkFB3bETBfwzCTMF1CSuGE\"]},\"openzeppelin-solidity/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0x5f02220344881ce43204ae4a6281145a67bc52c2bb1290a791857df3d19d78f5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://24427744bd3e6cb73c17010119af12a318289c0253a4d9acb8576c9fb3797b08\",\"dweb:/ipfs/QmTLDqpKRBuxGxRAmjgXt9AkXyACW3MtKzi7PYjm5iMfGC\"]},\"openzeppelin-solidity/contracts/utils/Context.sol\":{\"keccak256\":\"0x8d3cb350f04ff49cfb10aef08d87f19dcbaecc8027b0bed12f3275cd12f38cf0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ded47ec7c96750f9bd04bbbc84f659992d4ba901cb7b532a52cd468272cf378f\",\"dweb:/ipfs/QmfBrGtQP7rZEqEg6Wz6jh2N2Kukpj1z5v3CGWmAqrzm96\"]},\"openzeppelin-solidity/contracts/utils/Pausable.sol\":{\"keccak256\":\"0x212fb1b1d4beaf74354dad9bc329f44ee3c5375ef1c32acff76b4ecefc10f1d8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d21c68cb321d1c8d0fa39fd9ecb6bbe3b2f26623b0f38af280a010c916c85f23\",\"dweb:/ipfs/Qmf2P51HRC4ekDHLYfbXu5SXR33gXrWtq6oKSmfyWqVRuC\"]},\"poolz-helper/contracts/ERC20Helper.sol\":{\"keccak256\":\"0x2701174ed12acb0891fd0edf3ef57fc35433564accc53e71308c70b5e3cbc266\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c73ec8bc5a47e43fd977d708a788f0e565797c0b5f0265a6b000e23bb9e96c9c\",\"dweb:/ipfs/QmbLxAnqtQd9w4dLh6roZQb91wehTgY1NpEDy79dvEqGQ3\"]},\"poolz-helper/contracts/ETHHelper.sol\":{\"keccak256\":\"0x8089edb53eb81500b88e6d4351db09c27d18a3a07f0fcc0343916f35a40ff18e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e145cdfc63689272939fe03045c8d8be2d7e84eba32f20944b524c0d7e6dad3f\",\"dweb:/ipfs/QmPQCU3qEestrkb4dvvpXAiJkwYfRtvbjUQ6d6CCb61e61\"]},\"poolz-helper/contracts/GovManager.sol\":{\"keccak256\":\"0x6796f84a1c26a4a410475bc5d89987166f4ed538fdd1c359f472c1d5a9545d53\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://90d60119d5af7d311444cb5bbe391d9302d005658bc52bff455bd42b55abb41a\",\"dweb:/ipfs/QmZAh7HTezpaF86We9T5LpR6NporkjSnaTHf4uJaMnh87U\"]}},\"version\":1}", - "bytecode": "0x608060405234801561001057600080fd5b506000610024640100000000610093810204565b60008054600160a060020a031916600160a060020a0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506000805460a060020a60ff021916905560018054600160a860020a0319169055610097565b3390565b6117c6806100a66000396000f3fe60806040526004361061013d5760003560e060020a900480638456cb59116100af578063b29e825611610073578063b29e825614610398578063b5f98b8e146103ad578063bbbaf8c8146103c2578063bef7a2f0146103ec578063c41508a814610401578063f2fde38b146104345761015a565b80638456cb59146102fc5780638585117b146103115780638da5cb5b1461033b578063991e979a14610350578063aac5da5c146103835761015a565b80633f6738a9116101015780633f6738a9146102225780634ea7b2c21461024c5780635c975abb14610261578063668189671461028a578063715018a6146102bd5780637cca7bfb146102d25761015a565b8063026de3361461015f5780630cd8e965146101865780632417a19b146101b75780632a9565f9146101d45780633f4ba83a1461020d5761015a565b3661015a5760005460a060020a900460ff1661015857600080fd5b005b600080fd5b34801561016b57600080fd5b50610174610467565b60408051918252519081900360200190f35b34801561019257600080fd5b5061019b61046d565b60408051600160a060020a039092168252519081900360200190f35b610158600480360360208110156101cd57600080fd5b503561047c565b3480156101e057600080fd5b50610158600480360360408110156101f757600080fd5b50600160a060020a0381351690602001356105bf565b34801561021957600080fd5b50610158610664565b34801561022e57600080fd5b506101586004803603602081101561024557600080fd5b50356106e1565b34801561025857600080fd5b50610158610776565b34801561026d57600080fd5b50610276610842565b604080519115158252519081900360200190f35b34801561029657600080fd5b50610158600480360360208110156102ad57600080fd5b5035600160a060020a0316610852565b3480156102c957600080fd5b506101586108f4565b3480156102de57600080fd5b50610158600480360360208110156102f557600080fd5b50356109b0565b34801561030857600080fd5b50610158610b28565b34801561031d57600080fd5b506101586004803603602081101561033457600080fd5b5035610ba3565b34801561034757600080fd5b5061019b610d17565b34801561035c57600080fd5b506101586004803603602081101561037357600080fd5b5035600160a060020a0316610d26565b34801561038f57600080fd5b50610158610dc1565b3480156103a457600080fd5b5061019b610e58565b3480156103b957600080fd5b50610276610e67565b3480156103ce57600080fd5b50610276600480360360208110156103e557600080fd5b5035610e77565b3480156103f857600080fd5b50610174610e8c565b34801561040d57600080fd5b506101586004803603602081101561042457600080fd5b5035600160a060020a0316610e92565b34801561044057600080fd5b506101586004803603602081101561045757600080fd5b5035600160a060020a0316610f2a565b60055481565b600154600160a060020a031681565b610484610842565b156104d9576040805160e560020a62461bcd02815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b600081815260046020526040902054819060ff16610541576040805160e560020a62461bcd02815260206004820152601d60248201527f506f6f6c206973206e6f7420416374697665206f722043726561746564000000604482015290519081900360640190fd5b333214801561055657506105543361103f565b155b6105945760405160e560020a62461bcd02815260040180806020018281038252602381526020018061172e6023913960400191505060405180910390fd5b600354600160a060020a03166105b2576105ad8261104b565b6105bb565b6105bb826110e2565b5050565b6105c7610d17565b600160a060020a031633600160a060020a031614806105f05750600154600160a060020a031633145b610632576040805160e560020a62461bcd0281526020600482015260136024820152600080516020611771833981519152604482015290519081900360640190fd5b6002556003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b61066c610d17565b600160a060020a031633600160a060020a031614806106955750600154600160a060020a031633145b6106d7576040805160e560020a62461bcd0281526020600482015260136024820152600080516020611771833981519152604482015290519081900360640190fd5b6106df611105565b565b6106e9610d17565b600160a060020a031633600160a060020a031614806107125750600154600160a060020a031633145b610754576040805160e560020a62461bcd0281526020600482015260136024820152600080516020611771833981519152604482015290519081900360640190fd5b6002556003805473ffffffffffffffffffffffffffffffffffffffff19169055565b61077e6111c5565b600160a060020a031661078f610d17565b600160a060020a0316146107db576040805160e560020a62461bcd0281526020600482018190526024820152600080516020611751833981519152604482015290519081900360640190fd5b60058054600090815260046020908152604091829020805460ff191660011790559154815190815290517f460a9e6b9025a58a440662afae6a23c6d526fd148717ccf3649235b70575e166929181900390910190a161083d60055460016111c9565b600555565b60015460a060020a900460ff1690565b61085a610d17565b600160a060020a031633600160a060020a031614806108835750600154600160a060020a031633145b6108c5576040805160e560020a62461bcd0281526020600482015260136024820152600080516020611771833981519152604482015290519081900360640190fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6108fc6111c5565b600160a060020a031661090d610d17565b600160a060020a031614610959576040805160e560020a62461bcd0281526020600482018190526024820152600080516020611751833981519152604482015290519081900360640190fd5b60008054604051600160a060020a03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b6109b86111c5565b600160a060020a03166109c9610d17565b600160a060020a031614610a15576040805160e560020a62461bcd0281526020600482018190526024820152600080516020611751833981519152604482015290519081900360640190fd5b806005548110610a6f576040805160e560020a62461bcd02815260206004820152600f60248201527f496e76616c696420506f6f6c2049440000000000000000000000000000000000604482015290519081900360640190fd5b60008281526004602052604090205460ff1615610ad6576040805160e560020a62461bcd02815260206004820152601660248201527f506f6f6c20697320416c72656164792041637469766500000000000000000000604482015290519081900360640190fd5b600082815260046020908152604091829020805460ff19166001179055815184815291517f0fc99ba436efa6fb2f50b2287984eebe37b2314a2bd81ea576ef9d4be0bd6a669281900390910190a15050565b610b30610d17565b600160a060020a031633600160a060020a03161480610b595750600154600160a060020a031633145b610b9b576040805160e560020a62461bcd0281526020600482015260136024820152600080516020611771833981519152604482015290519081900360640190fd5b6106df61122d565b610bab6111c5565b600160a060020a0316610bbc610d17565b600160a060020a031614610c08576040805160e560020a62461bcd0281526020600482018190526024820152600080516020611751833981519152604482015290519081900360640190fd5b806005548110610c62576040805160e560020a62461bcd02815260206004820152600f60248201527f496e76616c696420506f6f6c2049440000000000000000000000000000000000604482015290519081900360640190fd5b60008281526004602052604090205460ff16610cc8576040805160e560020a62461bcd02815260206004820152601860248201527f506f6f6c20697320416c726561647920496e6163746976650000000000000000604482015290519081900360640190fd5b600082815260046020908152604091829020805460ff19169055815184815291517ff924dd04accfc1837d0eeddb10bc7732e2057f5d916c0b5a21e8372393b244a29281900390910190a15050565b600054600160a060020a031690565b610d2e6111c5565b600160a060020a0316610d3f610d17565b600160a060020a031614610d8b576040805160e560020a62461bcd0281526020600482018190526024820152600080516020611751833981519152604482015290519081900360640190fd5b604051600160a060020a03821690303180156108fc02916000818181858888f193505050501580156105bb573d6000803e3d6000fd5b610dc96111c5565b600160a060020a0316610dda610d17565b600160a060020a031614610e26576040805160e560020a62461bcd0281526020600482018190526024820152600080516020611751833981519152604482015290519081900360640190fd5b6000805474ff000000000000000000000000000000000000000019811660a060020a9182900460ff1615909102179055565b600354600160a060020a031681565b60005460a060020a900460ff1681565b60046020526000908152604090205460ff1681565b60025481565b610e9a6111c5565b600160a060020a0316610eab610d17565b600160a060020a031614610ef7576040805160e560020a62461bcd0281526020600482018190526024820152600080516020611751833981519152604482015290519081900360640190fd5b600354600090610f1090600160a060020a0316306112d7565b6003549091506105bb90600160a060020a0316838361135c565b610f326111c5565b600160a060020a0316610f43610d17565b600160a060020a031614610f8f576040805160e560020a62461bcd0281526020600482018190526024820152600080516020611751833981519152604482015290519081900360640190fd5b600160a060020a038116610fd75760405160e560020a62461bcd0281526004018080602001828103825260268152602001806117086026913960400191505060405180910390fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b3b63ffffffff16151590565b6002543410156110a5576040805160e560020a62461bcd02815260206004820152601760248201527f4e6f7420456e6f756768204665652050726f7669646564000000000000000000604482015290519081900360640190fd5b6040805182815233602082015281517f5eec9f202a9e6fc1643a0887b641c182ed3700fcf82e98629b8d32ffd1d13308929181900390910190a150565b600254156110a5576003546002546110a591600160a060020a03169033906114ab565b61110d610842565b611161576040805160e560020a62461bcd02815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015290519081900360640190fd5b6001805474ff0000000000000000000000000000000000000000191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6111a86111c5565b60408051600160a060020a039092168252519081900360200190a1565b3390565b600082820183811015611226576040805160e560020a62461bcd02815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b611235610842565b1561128a576040805160e560020a62461bcd02815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b6001805474ff0000000000000000000000000000000000000000191660a060020a1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586111a86111c5565b600082600160a060020a03166370a08231836040518263ffffffff1660e060020a0281526004018082600160a060020a0316815260200191505060206040518083038186803b15801561132957600080fd5b505afa15801561133d573d6000803e3d6000fd5b505050506040513d602081101561135357600080fd5b50519392505050565b600061136884306112d7565b60408051848152600160a060020a03808716602083015287168183015290519192507fe4d818e6f992efbd60db553f3edce819a199baec79a784b95c89bc8ee86f2584919081900360600190a183600160a060020a031663a9059cbb84846040518363ffffffff1660e060020a0281526004018083600160a060020a0316815260200182815260200192505050602060405180830381600087803b15801561140f57600080fd5b505af1158015611423573d6000803e3d6000fd5b505050506040513d602081101561143957600080fd5b5081905061145061144a86306112d7565b846111c9565b146114a5576040805160e560020a62461bcd02815260206004820152601d60248201527f7265636976652077726f6e6720616d6f756e74206f6620746f6b656e73000000604482015290519081900360640190fd5b50505050565b8282828083600160a060020a031663dd62ed3e84306040518363ffffffff1660e060020a0281526004018083600160a060020a0316815260200182600160a060020a031681526020019250505060206040518083038186803b15801561151057600080fd5b505afa158015611524573d6000803e3d6000fd5b505050506040513d602081101561153a57600080fd5b50511015611592576040805160e560020a62461bcd02815260206004820152600c60248201527f6e6f20616c6c6f77616e63650000000000000000000000000000000000000000604482015290519081900360640190fd5b6000841161159f57600080fd5b60006115ab87306112d7565b604080517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a038981166004830152306024830152604482018990529151929350908916916323b872dd916064808201926020929091908290030181600087803b15801561162057600080fd5b505af1158015611634573d6000803e3d6000fd5b505050506040513d602081101561164a57600080fd5b505060408051868152600160a060020a03808916602083015289168183015290517f1fecf4702e692891a7c2f0d328779b085efb5edd094fa5558bd5cd147a1679229181900360600190a161169f87306112d7565b6116a982876111c9565b146116fe576040805160e560020a62461bcd02815260206004820152601d60248201527f7265636976652077726f6e6720616d6f756e74206f6620746f6b656e73000000604482015290519081900360640190fd5b5050505050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536f6d65207468696e672077726f6e67207769746820746865206d736753656e6465724f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572417574686f72697a6174696f6e204572726f7200000000000000000000000000a2646970667358221220aa1052ae8efe30bb5e313e727f632fceec6e89e8302fe4cb3402ca4d8abec47964736f6c634300060c0033", - "deployedBytecode": "0x60806040526004361061013d5760003560e060020a900480638456cb59116100af578063b29e825611610073578063b29e825614610398578063b5f98b8e146103ad578063bbbaf8c8146103c2578063bef7a2f0146103ec578063c41508a814610401578063f2fde38b146104345761015a565b80638456cb59146102fc5780638585117b146103115780638da5cb5b1461033b578063991e979a14610350578063aac5da5c146103835761015a565b80633f6738a9116101015780633f6738a9146102225780634ea7b2c21461024c5780635c975abb14610261578063668189671461028a578063715018a6146102bd5780637cca7bfb146102d25761015a565b8063026de3361461015f5780630cd8e965146101865780632417a19b146101b75780632a9565f9146101d45780633f4ba83a1461020d5761015a565b3661015a5760005460a060020a900460ff1661015857600080fd5b005b600080fd5b34801561016b57600080fd5b50610174610467565b60408051918252519081900360200190f35b34801561019257600080fd5b5061019b61046d565b60408051600160a060020a039092168252519081900360200190f35b610158600480360360208110156101cd57600080fd5b503561047c565b3480156101e057600080fd5b50610158600480360360408110156101f757600080fd5b50600160a060020a0381351690602001356105bf565b34801561021957600080fd5b50610158610664565b34801561022e57600080fd5b506101586004803603602081101561024557600080fd5b50356106e1565b34801561025857600080fd5b50610158610776565b34801561026d57600080fd5b50610276610842565b604080519115158252519081900360200190f35b34801561029657600080fd5b50610158600480360360208110156102ad57600080fd5b5035600160a060020a0316610852565b3480156102c957600080fd5b506101586108f4565b3480156102de57600080fd5b50610158600480360360208110156102f557600080fd5b50356109b0565b34801561030857600080fd5b50610158610b28565b34801561031d57600080fd5b506101586004803603602081101561033457600080fd5b5035610ba3565b34801561034757600080fd5b5061019b610d17565b34801561035c57600080fd5b506101586004803603602081101561037357600080fd5b5035600160a060020a0316610d26565b34801561038f57600080fd5b50610158610dc1565b3480156103a457600080fd5b5061019b610e58565b3480156103b957600080fd5b50610276610e67565b3480156103ce57600080fd5b50610276600480360360208110156103e557600080fd5b5035610e77565b3480156103f857600080fd5b50610174610e8c565b34801561040d57600080fd5b506101586004803603602081101561042457600080fd5b5035600160a060020a0316610e92565b34801561044057600080fd5b506101586004803603602081101561045757600080fd5b5035600160a060020a0316610f2a565b60055481565b600154600160a060020a031681565b610484610842565b156104d9576040805160e560020a62461bcd02815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b600081815260046020526040902054819060ff16610541576040805160e560020a62461bcd02815260206004820152601d60248201527f506f6f6c206973206e6f7420416374697665206f722043726561746564000000604482015290519081900360640190fd5b333214801561055657506105543361103f565b155b6105945760405160e560020a62461bcd02815260040180806020018281038252602381526020018061172e6023913960400191505060405180910390fd5b600354600160a060020a03166105b2576105ad8261104b565b6105bb565b6105bb826110e2565b5050565b6105c7610d17565b600160a060020a031633600160a060020a031614806105f05750600154600160a060020a031633145b610632576040805160e560020a62461bcd0281526020600482015260136024820152600080516020611771833981519152604482015290519081900360640190fd5b6002556003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b61066c610d17565b600160a060020a031633600160a060020a031614806106955750600154600160a060020a031633145b6106d7576040805160e560020a62461bcd0281526020600482015260136024820152600080516020611771833981519152604482015290519081900360640190fd5b6106df611105565b565b6106e9610d17565b600160a060020a031633600160a060020a031614806107125750600154600160a060020a031633145b610754576040805160e560020a62461bcd0281526020600482015260136024820152600080516020611771833981519152604482015290519081900360640190fd5b6002556003805473ffffffffffffffffffffffffffffffffffffffff19169055565b61077e6111c5565b600160a060020a031661078f610d17565b600160a060020a0316146107db576040805160e560020a62461bcd0281526020600482018190526024820152600080516020611751833981519152604482015290519081900360640190fd5b60058054600090815260046020908152604091829020805460ff191660011790559154815190815290517f460a9e6b9025a58a440662afae6a23c6d526fd148717ccf3649235b70575e166929181900390910190a161083d60055460016111c9565b600555565b60015460a060020a900460ff1690565b61085a610d17565b600160a060020a031633600160a060020a031614806108835750600154600160a060020a031633145b6108c5576040805160e560020a62461bcd0281526020600482015260136024820152600080516020611771833981519152604482015290519081900360640190fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6108fc6111c5565b600160a060020a031661090d610d17565b600160a060020a031614610959576040805160e560020a62461bcd0281526020600482018190526024820152600080516020611751833981519152604482015290519081900360640190fd5b60008054604051600160a060020a03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b6109b86111c5565b600160a060020a03166109c9610d17565b600160a060020a031614610a15576040805160e560020a62461bcd0281526020600482018190526024820152600080516020611751833981519152604482015290519081900360640190fd5b806005548110610a6f576040805160e560020a62461bcd02815260206004820152600f60248201527f496e76616c696420506f6f6c2049440000000000000000000000000000000000604482015290519081900360640190fd5b60008281526004602052604090205460ff1615610ad6576040805160e560020a62461bcd02815260206004820152601660248201527f506f6f6c20697320416c72656164792041637469766500000000000000000000604482015290519081900360640190fd5b600082815260046020908152604091829020805460ff19166001179055815184815291517f0fc99ba436efa6fb2f50b2287984eebe37b2314a2bd81ea576ef9d4be0bd6a669281900390910190a15050565b610b30610d17565b600160a060020a031633600160a060020a03161480610b595750600154600160a060020a031633145b610b9b576040805160e560020a62461bcd0281526020600482015260136024820152600080516020611771833981519152604482015290519081900360640190fd5b6106df61122d565b610bab6111c5565b600160a060020a0316610bbc610d17565b600160a060020a031614610c08576040805160e560020a62461bcd0281526020600482018190526024820152600080516020611751833981519152604482015290519081900360640190fd5b806005548110610c62576040805160e560020a62461bcd02815260206004820152600f60248201527f496e76616c696420506f6f6c2049440000000000000000000000000000000000604482015290519081900360640190fd5b60008281526004602052604090205460ff16610cc8576040805160e560020a62461bcd02815260206004820152601860248201527f506f6f6c20697320416c726561647920496e6163746976650000000000000000604482015290519081900360640190fd5b600082815260046020908152604091829020805460ff19169055815184815291517ff924dd04accfc1837d0eeddb10bc7732e2057f5d916c0b5a21e8372393b244a29281900390910190a15050565b600054600160a060020a031690565b610d2e6111c5565b600160a060020a0316610d3f610d17565b600160a060020a031614610d8b576040805160e560020a62461bcd0281526020600482018190526024820152600080516020611751833981519152604482015290519081900360640190fd5b604051600160a060020a03821690303180156108fc02916000818181858888f193505050501580156105bb573d6000803e3d6000fd5b610dc96111c5565b600160a060020a0316610dda610d17565b600160a060020a031614610e26576040805160e560020a62461bcd0281526020600482018190526024820152600080516020611751833981519152604482015290519081900360640190fd5b6000805474ff000000000000000000000000000000000000000019811660a060020a9182900460ff1615909102179055565b600354600160a060020a031681565b60005460a060020a900460ff1681565b60046020526000908152604090205460ff1681565b60025481565b610e9a6111c5565b600160a060020a0316610eab610d17565b600160a060020a031614610ef7576040805160e560020a62461bcd0281526020600482018190526024820152600080516020611751833981519152604482015290519081900360640190fd5b600354600090610f1090600160a060020a0316306112d7565b6003549091506105bb90600160a060020a0316838361135c565b610f326111c5565b600160a060020a0316610f43610d17565b600160a060020a031614610f8f576040805160e560020a62461bcd0281526020600482018190526024820152600080516020611751833981519152604482015290519081900360640190fd5b600160a060020a038116610fd75760405160e560020a62461bcd0281526004018080602001828103825260268152602001806117086026913960400191505060405180910390fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b3b63ffffffff16151590565b6002543410156110a5576040805160e560020a62461bcd02815260206004820152601760248201527f4e6f7420456e6f756768204665652050726f7669646564000000000000000000604482015290519081900360640190fd5b6040805182815233602082015281517f5eec9f202a9e6fc1643a0887b641c182ed3700fcf82e98629b8d32ffd1d13308929181900390910190a150565b600254156110a5576003546002546110a591600160a060020a03169033906114ab565b61110d610842565b611161576040805160e560020a62461bcd02815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015290519081900360640190fd5b6001805474ff0000000000000000000000000000000000000000191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6111a86111c5565b60408051600160a060020a039092168252519081900360200190a1565b3390565b600082820183811015611226576040805160e560020a62461bcd02815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b611235610842565b1561128a576040805160e560020a62461bcd02815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b6001805474ff0000000000000000000000000000000000000000191660a060020a1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586111a86111c5565b600082600160a060020a03166370a08231836040518263ffffffff1660e060020a0281526004018082600160a060020a0316815260200191505060206040518083038186803b15801561132957600080fd5b505afa15801561133d573d6000803e3d6000fd5b505050506040513d602081101561135357600080fd5b50519392505050565b600061136884306112d7565b60408051848152600160a060020a03808716602083015287168183015290519192507fe4d818e6f992efbd60db553f3edce819a199baec79a784b95c89bc8ee86f2584919081900360600190a183600160a060020a031663a9059cbb84846040518363ffffffff1660e060020a0281526004018083600160a060020a0316815260200182815260200192505050602060405180830381600087803b15801561140f57600080fd5b505af1158015611423573d6000803e3d6000fd5b505050506040513d602081101561143957600080fd5b5081905061145061144a86306112d7565b846111c9565b146114a5576040805160e560020a62461bcd02815260206004820152601d60248201527f7265636976652077726f6e6720616d6f756e74206f6620746f6b656e73000000604482015290519081900360640190fd5b50505050565b8282828083600160a060020a031663dd62ed3e84306040518363ffffffff1660e060020a0281526004018083600160a060020a0316815260200182600160a060020a031681526020019250505060206040518083038186803b15801561151057600080fd5b505afa158015611524573d6000803e3d6000fd5b505050506040513d602081101561153a57600080fd5b50511015611592576040805160e560020a62461bcd02815260206004820152600c60248201527f6e6f20616c6c6f77616e63650000000000000000000000000000000000000000604482015290519081900360640190fd5b6000841161159f57600080fd5b60006115ab87306112d7565b604080517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a038981166004830152306024830152604482018990529151929350908916916323b872dd916064808201926020929091908290030181600087803b15801561162057600080fd5b505af1158015611634573d6000803e3d6000fd5b505050506040513d602081101561164a57600080fd5b505060408051868152600160a060020a03808916602083015289168183015290517f1fecf4702e692891a7c2f0d328779b085efb5edd094fa5558bd5cd147a1679229181900360600190a161169f87306112d7565b6116a982876111c9565b146116fe576040805160e560020a62461bcd02815260206004820152601d60248201527f7265636976652077726f6e6720616d6f756e74206f6620746f6b656e73000000604482015290519081900360640190fd5b5050505050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536f6d65207468696e672077726f6e67207769746820746865206d736753656e6465724f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572417574686f72697a6174696f6e204572726f7200000000000000000000000000a2646970667358221220aa1052ae8efe30bb5e313e727f632fceec6e89e8302fe4cb3402ca4d8abec47964736f6c634300060c0033", - "immutableReferences": {}, - "sourceMap": "147:1290:2:-:0;;;;;;;;;;;;-1:-1:-1;884:17:4;904:12;:10;;;;:12;:::i;:::-;926:6;:18;;-1:-1:-1;;;;;;926:18:4;-1:-1:-1;;;;;926:18:4;;;;;;;959:43;;926:18;;-1:-1:-1;926:18:4;959:43;;926:6;;959:43;-1:-1:-1;257:5:11;246:16;;-1:-1:-1;;;;;;246:16:11;;;;493:29:12;;-1:-1:-1;;;;;;935:15:9;;;147:1290:2;;598:104:8;685:10;598:104;:::o;147:1290:2:-;;;;;;;", - "deployedSourceMap": "147:1290:2:-:0;;;;;;;;;;-1:-1:-1;;;147:1290:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;582:8:11;;-1:-1:-1;;;582:8:11;;;;577:23;;592:8;;;577:23;147:1290:2;;;;;370:25:1;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;157:31:12;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;157:31:12;;;;;;;;;;;;;;576:248:2;;;;;;;;;;;;;;;;-1:-1:-1;576:248:2;;:::i;534:142:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;534:142:0;;;;;;;;:::i;1065:70::-;;;;;;;;;;;;;:::i;400:128::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;400:128:0;;:::i;525:185:1:-;;;;;;;;;;;;;:::i;1052:84:9:-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;342:114:12;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;342:114:12;-1:-1:-1;;;;;342:114:12;;:::i;1717:145:4:-;;;;;;;;;;;;;:::i;716:231:1:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;716:231:1;;:::i;993:66:0:-;;;;;;;;;;;;;:::i;953:237:1:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;953:237:1;;:::i;1085:85:4:-;;;;;;;;;;;;;:::i;682:116:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;682:116:0;-1:-1:-1;;;;;682:116:0;;:::i;751:80:11:-;;;;;;;;;;;;;:::i;363:30:0:-;;;;;;;;;;;;;:::i;723:20:11:-;;;;;;;;;;;;;:::i;320:44:1:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;320:44:1;;:::i;339:18:0:-;;;;;;;;;;;;;:::i;804:183::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;804:183:0;-1:-1:-1;;;;;804:183:0;;:::i;2011:240:4:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2011:240:4;-1:-1:-1;;;;;2011:240:4;;:::i;370:25:1:-;;;;:::o;157:31:12:-;;;-1:-1:-1;;;;;157:31:12;;:::o;576:248:2:-;1366:8:9;:6;:8::i;:::-;1365:9;1357:38;;;;;-1:-1:-1;;;;;1357:38:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;306:21:2::1;::::0;;;:12:::1;:21;::::0;;;;;655:7;;306:21:::1;;298:63;;;::::0;;-1:-1:-1;;;;;298:63:2;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;441:10:::2;455:9;441:23;:50:::0;::::2;;;;469:22;480:10;469;:22::i;:::-;468:23;441:50;420:132;;;;-1:-1:-1::0;;;;;420:132:2::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;694:15:::3;::::0;-1:-1:-1;;;;;694:15:2::3;691:127;;738:18;748:7;738:9;:18::i;:::-;691:127;;;787:20;799:7;787:11;:20::i;:::-;1405:1:9::1;576:248:2::0;:::o;534:142:0:-;253:7:12;:5;:7::i;:::-;-1:-1:-1;;;;;239:21:12;:10;-1:-1:-1;;;;;239:21:12;;:55;;;-1:-1:-1;278:16:12;;-1:-1:-1;;;;;278:16:12;264:10;:30;239:55;231:87;;;;;-1:-1:-1;;;;;231:87:12;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;231:87:12;;;;;;;;;;;;;;;622:3:0::1;:13:::0;645:15:::1;:24:::0;;-1:-1:-1;;645:24:0::1;-1:-1:-1::0;;;;;645:24:0;;;::::1;::::0;;;::::1;::::0;;534:142::o;1065:70::-;253:7:12;:5;:7::i;:::-;-1:-1:-1;;;;;239:21:12;:10;-1:-1:-1;;;;;239:21:12;;:55;;;-1:-1:-1;278:16:12;;-1:-1:-1;;;;;278:16:12;264:10;:30;239:55;231:87;;;;;-1:-1:-1;;;;;231:87:12;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;231:87:12;;;;;;;;;;;;;;;1118:10:0::1;:8;:10::i;:::-;1065:70::o:0;400:128::-;253:7:12;:5;:7::i;:::-;-1:-1:-1;;;;;239:21:12;:10;-1:-1:-1;;;;;239:21:12;;:55;;;-1:-1:-1;278:16:12;;-1:-1:-1;;;;;278:16:12;264:10;:30;239:55;231:87;;;;;-1:-1:-1;;;;;231:87:12;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;231:87:12;;;;;;;;;;;;;;;470:3:0::1;:13:::0;493:15:::1;:28:::0;;-1:-1:-1;;493:28:0::1;::::0;;400:128::o;525:185:1:-;1308:12:4;:10;:12::i;:::-;-1:-1:-1;;;;;1297:23:4;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1297:23:4;;1289:68;;;;;-1:-1:-1;;;;;1289:68:4;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1289:68:4;;;;;;;;;;;;;;;592:10:1::1;::::0;;579:24:::1;::::0;;;:12:::1;:24;::::0;;;;;;;;:31;;-1:-1:-1;;579:31:1::1;606:4;579:31;::::0;;642:10;;625:28;;;;;;;::::1;::::0;;;;;;;;;::::1;676:27;689:10;;701:1;676:12;:27::i;:::-;663:10;:40:::0;525:185::o;1052:84:9:-;1122:7;;-1:-1:-1;;;1122:7:9;;;;;1052:84::o;342:114:12:-;253:7;:5;:7::i;:::-;-1:-1:-1;;;;;239:21:12;:10;-1:-1:-1;;;;;239:21:12;;:55;;;-1:-1:-1;278:16:12;;-1:-1:-1;;;;;278:16:12;264:10;:30;239:55;231:87;;;;;-1:-1:-1;;;;;231:87:12;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;231:87:12;;;;;;;;;;;;;;;422:16:::1;:27:::0;;-1:-1:-1;;422:27:12::1;-1:-1:-1::0;;;;;422:27:12;;;::::1;::::0;;;::::1;::::0;;342:114::o;1717:145:4:-;1308:12;:10;:12::i;:::-;-1:-1:-1;;;;;1297:23:4;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1297:23:4;;1289:68;;;;;-1:-1:-1;;;;;1289:68:4;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1289:68:4;;;;;;;;;;;;;;;1823:1:::1;1807:6:::0;;1786:40:::1;::::0;-1:-1:-1;;;;;1807:6:4;;::::1;::::0;1786:40:::1;::::0;1823:1;;1786:40:::1;1853:1;1836:19:::0;;-1:-1:-1;;1836:19:4::1;::::0;;1717:145::o;716:231:1:-;1308:12:4;:10;:12::i;:::-;-1:-1:-1;;;;;1297:23:4;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1297:23:4;;1289:68;;;;;-1:-1:-1;;;;;1289:68:4;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1289:68:4;;;;;;;;;;;;;;;789:7:1::1;471:10;;461:7;:20;453:48;;;::::0;;-1:-1:-1;;;;;453:48:1;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;817:21:::2;::::0;;;:12:::2;:21;::::0;;;;;::::2;;816:22;808:57;;;::::0;;-1:-1:-1;;;;;808:57:1;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;875:21;::::0;;;:12:::2;:21;::::0;;;;;;;;:28;;-1:-1:-1;;875:28:1::2;899:4;875:28;::::0;;918:22;;;;;;;::::2;::::0;;;;;;;;::::2;1367:1:4::1;716:231:1::0;:::o;993:66:0:-;253:7:12;:5;:7::i;:::-;-1:-1:-1;;;;;239:21:12;:10;-1:-1:-1;;;;;239:21:12;;:55;;;-1:-1:-1;278:16:12;;-1:-1:-1;;;;;278:16:12;264:10;:30;239:55;231:87;;;;;-1:-1:-1;;;;;231:87:12;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;231:87:12;;;;;;;;;;;;;;;1044:8:0::1;:6;:8::i;953:237:1:-:0;1308:12:4;:10;:12::i;:::-;-1:-1:-1;;;;;1297:23:4;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1297:23:4;;1289:68;;;;;-1:-1:-1;;;;;1289:68:4;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1289:68:4;;;;;;;;;;;;;;;1028:7:1::1;471:10;;461:7;:20;453:48;;;::::0;;-1:-1:-1;;;;;453:48:1;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;1055:21:::2;::::0;;;:12:::2;:21;::::0;;;;;::::2;;1047:58;;;::::0;;-1:-1:-1;;;;;1047:58:1;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;1139:5;1115:21:::0;;;:12:::2;:21;::::0;;;;;;;;:29;;-1:-1:-1;;1115:29:1::2;::::0;;1159:24;;;;;;;::::2;::::0;;;;;;;;::::2;1367:1:4::1;953:237:1::0;:::o;1085:85:4:-;1131:7;1157:6;-1:-1:-1;;;;;1157:6:4;1085:85;:::o;682:116:0:-;1308:12:4;:10;:12::i;:::-;-1:-1:-1;;;;;1297:23:4;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1297:23:4;;1289:68;;;;;-1:-1:-1;;;;;1289:68:4;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1289:68:4;;;;;;;;;;;;;;;756:35:0::1;::::0;-1:-1:-1;;;;;756:12:0;::::1;::::0;777:4:::1;769:21;756:35:::0;::::1;;;::::0;::::1;::::0;;;769:21;756:12;:35;::::1;;;;;;;;;;;;;::::0;::::1;;;;751:80:11::0;1308:12:4;:10;:12::i;:::-;-1:-1:-1;;;;;1297:23:4;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1297:23:4;;1289:68;;;;;-1:-1:-1;;;;;1289:68:4;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1289:68:4;;;;;;;;;;;;;;;816:8:11::1;::::0;;-1:-1:-1;;804:20:11;::::1;-1:-1:-1::0;;;816:8:11;;;::::1;;;815:9;804:20:::0;;::::1;;::::0;;751:80::o;363:30:0:-;;;-1:-1:-1;;;;;363:30:0;;:::o;723:20:11:-;;;-1:-1:-1;;;723:20:11;;;;;:::o;320:44:1:-;;;;;;;;;;;;;;;:::o;339:18:0:-;;;;:::o;804:183::-;1308:12:4;:10;:12::i;:::-;-1:-1:-1;;;;;1297:23:4;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1297:23:4;;1289:68;;;;;-1:-1:-1;;;;;1289:68:4;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1289:68:4;;;;;;;;;;;;;;;899:15:0::1;::::0;872:11:::1;::::0;886:44:::1;::::0;-1:-1:-1;;;;;899:15:0::1;924:4;886:12;:44::i;:::-;954:15;::::0;872:58;;-1:-1:-1;940:40:0::1;::::0;-1:-1:-1;;;;;954:15:0::1;971:3:::0;872:58;940:13:::1;:40::i;2011:240:4:-:0;1308:12;:10;:12::i;:::-;-1:-1:-1;;;;;1297:23:4;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1297:23:4;;1289:68;;;;;-1:-1:-1;;;;;1289:68:4;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1289:68:4;;;;;;;;;;;;;;;-1:-1:-1;;;;;2099:22:4;::::1;2091:73;;;;-1:-1:-1::0;;;;;2091:73:4::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2200:6;::::0;;2179:38:::1;::::0;-1:-1:-1;;;;;2179:38:4;;::::1;::::0;2200:6;::::1;::::0;2179:38:::1;::::0;::::1;2227:6;:17:::0;;-1:-1:-1;;2227:17:4::1;-1:-1:-1::0;;;;;2227:17:4;;;::::1;::::0;;;::::1;::::0;;2011:240::o;1248:187:2:-;1374:18;1419:8;;;;;1248:187::o;830:159::-;906:3;;893:9;:16;;885:52;;;;;-1:-1:-1;;;;;885:52:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;952:30;;;;;;971:10;952:30;;;;;;;;;;;;;;;;;830:159;:::o;995:190::-;1052:3;;:7;1049:85;;1090:15;;1119:3;;1074:49;;-1:-1:-1;;;;;1090:15:2;;1107:10;;1074:15;:49::i;2064:117:9:-;1631:8;:6;:8::i;:::-;1623:41;;;;;-1:-1:-1;;;;;1623:41:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;2122:7:::1;:15:::0;;-1:-1:-1;;2122:15:9::1;::::0;;2152:22:::1;2161:12;:10;:12::i;:::-;2152:22;::::0;;-1:-1:-1;;;;;2152:22:9;;::::1;::::0;;;;;;;::::1;::::0;;::::1;2064:117::o:0;598:104:8:-;685:10;598:104;:::o;2690:175:5:-;2748:7;2779:5;;;2802:6;;;;2794:46;;;;;-1:-1:-1;;;;;2794:46:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;2857:1;2690:175;-1:-1:-1;;;2690:175:5:o;1817:115:9:-;1366:8;:6;:8::i;:::-;1365:9;1357:38;;;;;-1:-1:-1;;;;;1357:38:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;1886:4:::1;1876:14:::0;;-1:-1:-1;;1876:14:9::1;-1:-1:-1::0;;;1876:14:9::1;::::0;;1905:20:::1;1912:12;:10;:12::i;1068:173:10:-:0;1171:7;1207:6;-1:-1:-1;;;;;1201:23:10;;1225:8;1201:33;;;;;-1:-1:-1;;;1201:33:10;;;;;;;-1:-1:-1;;;;;1201:33:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1201:33:10;;1068:173;-1:-1:-1;;;1068:173:10:o;595:467::-;718:18;739:35;752:6;768:4;739:12;:35::i;:::-;789:38;;;;;;-1:-1:-1;;;;;789:38:10;;;;;;;;;;;;;;;718:56;;-1:-1:-1;789:38:10;;;;;;;;;;843:6;-1:-1:-1;;;;;837:22:10;;860:8;870:7;837:41;;;;;-1:-1:-1;;;837:41:10;;;;;;;-1:-1:-1;;;;;837:41:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;973:10:10;;-1:-1:-1;910:58:10;923:35;936:6;952:4;923:12;:35::i;:::-;960:7;910:12;:58::i;:::-;909:74;888:167;;;;;-1:-1:-1;;;;;888:167:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;595:467;;;;:::o;1247:556::-;1375:6;1383:8;1393:7;526;482:6;-1:-1:-1;;;;;476:23:10;;500:6;516:4;476:46;;;;;-1:-1:-1;;;476:46:10;;;;;;;-1:-1:-1;;;;;476:46:10;;;;;;-1:-1:-1;;;;;476:46:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;476:46:10;:57;;455:116;;;;;-1:-1:-1;;;;;455:116:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;1430:1:::1;1420:7;:11;1412:20;;;::::0;::::1;;1442:18;1463:35;1476:6;1492:4;1463:12;:35::i;:::-;1508:60;::::0;;;;;-1:-1:-1;;;;;1508:60:10;;::::1;;::::0;::::1;::::0;1553:4:::1;1508:60:::0;;;;;;;;;;;;1442:56;;-1:-1:-1;1508:26:10;;::::1;::::0;::::1;::::0;:60;;;;;::::1;::::0;;;;;;;;;-1:-1:-1;1508:26:10;:60;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;;1583:37:10::1;::::0;;;;;-1:-1:-1;;;;;1583:37:10;;::::1;1508:60;1583:37:::0;::::1;::::0;;::::1;::::0;;;;;;::::1;::::0;;;;;;;::::1;1706:35;1719:6;1735:4;1706:12;:35::i;:::-;1652:33;1665:10;1677:7;1652:12;:33::i;:::-;1651:90;1630:166;;;::::0;;-1:-1:-1;;;;;1630:166:10;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;581:1;1247:556:::0;;;;;;:::o", - "source": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./PoolControl.sol\";\nimport \"openzeppelin-solidity/contracts/math/SafeMath.sol\";\n\ncontract SignUpPool is PoolControl {\n event NewSignUp(uint256 PoolId, address UserAddress);\n\n modifier shouldBeActive(uint256 _poolId) {\n require(isPoolActive[_poolId], \"Pool is not Active or Created\");\n _;\n }\n\n modifier validateSender(){\n require(\n msg.sender == tx.origin && !isContract(msg.sender),\n \"Some thing wrong with the msgSender\"\n );\n _;\n }\n\n function SignUp(uint256 _poolId) external payable whenNotPaused shouldBeActive(_poolId) validateSender() {\n if(FeeTokenAddress == address(0)){\n SignUpETH(_poolId);\n } else {\n SignUpERC20(_poolId);\n }\n }\n\n function SignUpETH(uint256 _poolId) internal {\n require(msg.value >= Fee, \"Not Enough Fee Provided\");\n emit NewSignUp(_poolId, msg.sender);\n }\n\n function SignUpERC20(uint _poolId) internal {\n if(Fee > 0){\n TransferInToken(FeeTokenAddress, msg.sender, Fee);\n }\n emit NewSignUp(_poolId, msg.sender);\n }\n\n //@dev use it with require(msg.sender == tx.origin)\n function isContract(address _addr) internal view returns (bool) {\n uint32 size;\n assembly {\n size := extcodesize(_addr)\n }\n return (size > 0);\n }\n}", - "sourcePath": "/home/ashwin/Poolz/SignUp-Pool/contracts/SignUpPool.sol", - "ast": { - "absolutePath": "/home/ashwin/Poolz/SignUp-Pool/contracts/SignUpPool.sol", - "exportedSymbols": { - "SignUpPool": [370] - }, - "id": 371, - "license": "MIT", - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 236, - "literals": ["solidity", "^", "0.6", ".0"], - "nodeType": "PragmaDirective", - "src": "33:23:2" - }, - { - "absolutePath": "/home/ashwin/Poolz/SignUp-Pool/contracts/PoolControl.sol", - "file": "./PoolControl.sol", - "id": 237, - "nodeType": "ImportDirective", - "scope": 371, - "sourceUnit": 235, - "src": "58:27:2", - "symbolAliases": [], - "unitAlias": "" - }, - { - "absolutePath": "openzeppelin-solidity/contracts/math/SafeMath.sol", - "file": "openzeppelin-solidity/contracts/math/SafeMath.sol", - "id": 238, - "nodeType": "ImportDirective", - "scope": 371, - "sourceUnit": 839, - "src": "86:59:2", - "symbolAliases": [], - "unitAlias": "" - }, - { - "abstract": false, - "baseContracts": [ - { - "arguments": null, - "baseName": { - "contractScope": null, - "id": 239, - "name": "PoolControl", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 234, - "src": "170:11:2", - "typeDescriptions": { - "typeIdentifier": "t_contract$_PoolControl_$234", - "typeString": "contract PoolControl" - } - }, - "id": 240, - "nodeType": "InheritanceSpecifier", - "src": "170:11:2" - } - ], - "contractDependencies": [115, 234, 483, 1442, 1534, 1741, 1855, 1904], - "contractKind": "contract", - "documentation": null, - "fullyImplemented": true, - "id": 370, - "linearizedBaseContracts": [370, 234, 115, 1534, 1904, 1741, 1855, 483, 1442], - "name": "SignUpPool", - "nodeType": "ContractDefinition", - "nodes": [ - { - "anonymous": false, - "documentation": null, - "id": 246, - "name": "NewSignUp", - "nodeType": "EventDefinition", - "parameters": { - "id": 245, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 242, - "indexed": false, - "mutability": "mutable", - "name": "PoolId", - "nodeType": "VariableDeclaration", - "overrides": null, - "scope": 246, - "src": "204:14:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 241, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "204:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 244, - "indexed": false, - "mutability": "mutable", - "name": "UserAddress", - "nodeType": "VariableDeclaration", - "overrides": null, - "scope": 246, - "src": "220:19:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 243, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "220:7:2", - "stateMutability": "nonpayable", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "203:37:2" - }, - "src": "188:53:2" - }, - { - "body": { - "id": 258, - "nodeType": "Block", - "src": "288:91:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 251, - "name": "isPoolActive", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 137, - "src": "306:12:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_bool_$", - "typeString": "mapping(uint256 => bool)" - } - }, - "id": 253, - "indexExpression": { - "argumentTypes": null, - "id": 252, - "name": "_poolId", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 248, - "src": "319:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "306:21:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - { - "argumentTypes": null, - "hexValue": "506f6f6c206973206e6f7420416374697665206f722043726561746564", - "id": 254, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "string", - "lValueRequested": false, - "nodeType": "Literal", - "src": "329:31:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_stringliteral_2edb81c1845f9864977cc7d656f52f9efe600c136f60dadb08027059d9e9e383", - "typeString": "literal_string \"Pool is not Active or Created\"" - }, - "value": "Pool is not Active or Created" - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_stringliteral_2edb81c1845f9864977cc7d656f52f9efe600c136f60dadb08027059d9e9e383", - "typeString": "literal_string \"Pool is not Active or Created\"" - } - ], - "id": 250, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [-18, -18], - "referencedDeclaration": -18, - "src": "298:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", - "typeString": "function (bool,string memory) pure" - } - }, - "id": 255, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "298:63:2", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 256, - "nodeType": "ExpressionStatement", - "src": "298:63:2" - }, - { - "id": 257, - "nodeType": "PlaceholderStatement", - "src": "371:1:2" - } - ] - }, - "documentation": null, - "id": 259, - "name": "shouldBeActive", - "nodeType": "ModifierDefinition", - "overrides": null, - "parameters": { - "id": 249, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 248, - "mutability": "mutable", - "name": "_poolId", - "nodeType": "VariableDeclaration", - "overrides": null, - "scope": 259, - "src": "271:15:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 247, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "271:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "270:17:2" - }, - "src": "247:132:2", - "virtual": false, - "visibility": "internal" - }, - { - "body": { - "id": 277, - "nodeType": "Block", - "src": "410:160:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "id": 272, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address_payable", - "typeString": "address payable" - }, - "id": 266, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 262, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": -15, - "src": "441:3:2", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 263, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "441:10:2", - "typeDescriptions": { - "typeIdentifier": "t_address_payable", - "typeString": "address payable" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 264, - "name": "tx", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": -26, - "src": "455:2:2", - "typeDescriptions": { - "typeIdentifier": "t_magic_transaction", - "typeString": "tx" - } - }, - "id": 265, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "origin", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "455:9:2", - "typeDescriptions": { - "typeIdentifier": "t_address_payable", - "typeString": "address payable" - } - }, - "src": "441:23:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "nodeType": "BinaryOperation", - "operator": "&&", - "rightExpression": { - "argumentTypes": null, - "id": 271, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "!", - "prefix": true, - "src": "468:23:2", - "subExpression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 268, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": -15, - "src": "480:3:2", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 269, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "480:10:2", - "typeDescriptions": { - "typeIdentifier": "t_address_payable", - "typeString": "address payable" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address_payable", - "typeString": "address payable" - } - ], - "id": 267, - "name": "isContract", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 369, - "src": "469:10:2", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$", - "typeString": "function (address) view returns (bool)" - } - }, - "id": 270, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "469:22:2", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "src": "441:50:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - { - "argumentTypes": null, - "hexValue": "536f6d65207468696e672077726f6e67207769746820746865206d736753656e646572", - "id": 273, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "string", - "lValueRequested": false, - "nodeType": "Literal", - "src": "505:37:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_stringliteral_47fcc1f5becd42ae27ff6209e664dc1d38a5ddb2c95d1457c723f15ff0c31d2c", - "typeString": "literal_string \"Some thing wrong with the msgSender\"" - }, - "value": "Some thing wrong with the msgSender" - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_stringliteral_47fcc1f5becd42ae27ff6209e664dc1d38a5ddb2c95d1457c723f15ff0c31d2c", - "typeString": "literal_string \"Some thing wrong with the msgSender\"" - } - ], - "id": 261, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [-18, -18], - "referencedDeclaration": -18, - "src": "420:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", - "typeString": "function (bool,string memory) pure" - } - }, - "id": 274, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "420:132:2", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 275, - "nodeType": "ExpressionStatement", - "src": "420:132:2" - }, - { - "id": 276, - "nodeType": "PlaceholderStatement", - "src": "562:1:2" - } - ] - }, - "documentation": null, - "id": 278, - "name": "validateSender", - "nodeType": "ModifierDefinition", - "overrides": null, - "parameters": { - "id": 260, - "nodeType": "ParameterList", - "parameters": [], - "src": "408:2:2" - }, - "src": "385:185:2", - "virtual": false, - "visibility": "internal" - }, - { - "body": { - "id": 307, - "nodeType": "Block", - "src": "681:143:2", - "statements": [ - { - "condition": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 295, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 290, - "name": "FeeTokenAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 17, - "src": "694:15:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "hexValue": "30", - "id": 293, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "721:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - } - ], - "id": 292, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "nodeType": "ElementaryTypeNameExpression", - "src": "713:7:2", - "typeDescriptions": { - "typeIdentifier": "t_type$_t_address_$", - "typeString": "type(address)" - }, - "typeName": { - "id": 291, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "713:7:2", - "typeDescriptions": { - "typeIdentifier": null, - "typeString": null - } - } - }, - "id": 294, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "typeConversion", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "713:10:2", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_address_payable", - "typeString": "address payable" - } - }, - "src": "694:29:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "falseBody": { - "id": 305, - "nodeType": "Block", - "src": "773:45:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 302, - "name": "_poolId", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 280, - "src": "799:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 301, - "name": "SignUpERC20", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "787:11:2", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$returns$__$", - "typeString": "function (uint256)" - } - }, - "id": 303, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "787:20:2", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 304, - "nodeType": "ExpressionStatement", - "src": "787:20:2" - } - ] - }, - "id": 306, - "nodeType": "IfStatement", - "src": "691:127:2", - "trueBody": { - "id": 300, - "nodeType": "Block", - "src": "724:43:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 297, - "name": "_poolId", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 280, - "src": "748:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 296, - "name": "SignUpETH", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 328, - "src": "738:9:2", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$returns$__$", - "typeString": "function (uint256)" - } - }, - "id": 298, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "738:18:2", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 299, - "nodeType": "ExpressionStatement", - "src": "738:18:2" - } - ] - } - } - ] - }, - "documentation": null, - "functionSelector": "2417a19b", - "id": 308, - "implemented": true, - "kind": "function", - "modifiers": [ - { - "arguments": null, - "id": 283, - "modifierName": { - "argumentTypes": null, - "id": 282, - "name": "whenNotPaused", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1490, - "src": "626:13:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "626:13:2" - }, - { - "arguments": [ - { - "argumentTypes": null, - "id": 285, - "name": "_poolId", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 280, - "src": "655:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "id": 286, - "modifierName": { - "argumentTypes": null, - "id": 284, - "name": "shouldBeActive", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 259, - "src": "640:14:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_uint256_$", - "typeString": "modifier (uint256)" - } - }, - "nodeType": "ModifierInvocation", - "src": "640:23:2" - }, - { - "arguments": [], - "id": 288, - "modifierName": { - "argumentTypes": null, - "id": 287, - "name": "validateSender", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 278, - "src": "664:14:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "664:16:2" - } - ], - "name": "SignUp", - "nodeType": "FunctionDefinition", - "overrides": null, - "parameters": { - "id": 281, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 280, - "mutability": "mutable", - "name": "_poolId", - "nodeType": "VariableDeclaration", - "overrides": null, - "scope": 308, - "src": "592:15:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 279, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "592:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "591:17:2" - }, - "returnParameters": { - "id": 289, - "nodeType": "ParameterList", - "parameters": [], - "src": "681:0:2" - }, - "scope": 370, - "src": "576:248:2", - "stateMutability": "payable", - "virtual": false, - "visibility": "external" - }, - { - "body": { - "id": 327, - "nodeType": "Block", - "src": "875:114:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 317, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 314, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": -15, - "src": "893:3:2", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 315, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "value", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "893:9:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">=", - "rightExpression": { - "argumentTypes": null, - "id": 316, - "name": "Fee", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 15, - "src": "906:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "893:16:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - { - "argumentTypes": null, - "hexValue": "4e6f7420456e6f756768204665652050726f7669646564", - "id": 318, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "string", - "lValueRequested": false, - "nodeType": "Literal", - "src": "911:25:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_stringliteral_70ee2627392484715137d6037fab07f05c09f6e24c28761dc605b5208c5cc2bb", - "typeString": "literal_string \"Not Enough Fee Provided\"" - }, - "value": "Not Enough Fee Provided" - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_stringliteral_70ee2627392484715137d6037fab07f05c09f6e24c28761dc605b5208c5cc2bb", - "typeString": "literal_string \"Not Enough Fee Provided\"" - } - ], - "id": 313, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [-18, -18], - "referencedDeclaration": -18, - "src": "885:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", - "typeString": "function (bool,string memory) pure" - } - }, - "id": 319, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "885:52:2", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 320, - "nodeType": "ExpressionStatement", - "src": "885:52:2" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 322, - "name": "_poolId", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 310, - "src": "962:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 323, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": -15, - "src": "971:3:2", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 324, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "971:10:2", - "typeDescriptions": { - "typeIdentifier": "t_address_payable", - "typeString": "address payable" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - { - "typeIdentifier": "t_address_payable", - "typeString": "address payable" - } - ], - "id": 321, - "name": "NewSignUp", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 246, - "src": "952:9:2", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_address_$returns$__$", - "typeString": "function (uint256,address)" - } - }, - "id": 325, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "952:30:2", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 326, - "nodeType": "EmitStatement", - "src": "947:35:2" - } - ] - }, - "documentation": null, - "id": 328, - "implemented": true, - "kind": "function", - "modifiers": [], - "name": "SignUpETH", - "nodeType": "FunctionDefinition", - "overrides": null, - "parameters": { - "id": 311, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 310, - "mutability": "mutable", - "name": "_poolId", - "nodeType": "VariableDeclaration", - "overrides": null, - "scope": 328, - "src": "849:15:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 309, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "849:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "848:17:2" - }, - "returnParameters": { - "id": 312, - "nodeType": "ParameterList", - "parameters": [], - "src": "875:0:2" - }, - "scope": 370, - "src": "830:159:2", - "stateMutability": "nonpayable", - "virtual": false, - "visibility": "internal" - }, - { - "body": { - "id": 351, - "nodeType": "Block", - "src": "1039:146:2", - "statements": [ - { - "condition": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 335, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 333, - "name": "Fee", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 15, - "src": "1052:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 334, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1058:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "1052:7:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "falseBody": null, - "id": 344, - "nodeType": "IfStatement", - "src": "1049:85:2", - "trueBody": { - "id": 343, - "nodeType": "Block", - "src": "1060:74:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 337, - "name": "FeeTokenAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 17, - "src": "1090:15:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 338, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": -15, - "src": "1107:3:2", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 339, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1107:10:2", - "typeDescriptions": { - "typeIdentifier": "t_address_payable", - "typeString": "address payable" - } - }, - { - "argumentTypes": null, - "id": 340, - "name": "Fee", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 15, - "src": "1119:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address_payable", - "typeString": "address payable" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 336, - "name": "TransferInToken", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1716, - "src": "1074:15:2", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (address,address,uint256)" - } - }, - "id": 341, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1074:49:2", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 342, - "nodeType": "ExpressionStatement", - "src": "1074:49:2" - } - ] - } - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 346, - "name": "_poolId", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 330, - "src": "1158:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 347, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": -15, - "src": "1167:3:2", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 348, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1167:10:2", - "typeDescriptions": { - "typeIdentifier": "t_address_payable", - "typeString": "address payable" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - { - "typeIdentifier": "t_address_payable", - "typeString": "address payable" - } - ], - "id": 345, - "name": "NewSignUp", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 246, - "src": "1148:9:2", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_address_$returns$__$", - "typeString": "function (uint256,address)" - } - }, - "id": 349, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1148:30:2", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 350, - "nodeType": "EmitStatement", - "src": "1143:35:2" - } - ] - }, - "documentation": null, - "id": 352, - "implemented": true, - "kind": "function", - "modifiers": [], - "name": "SignUpERC20", - "nodeType": "FunctionDefinition", - "overrides": null, - "parameters": { - "id": 331, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 330, - "mutability": "mutable", - "name": "_poolId", - "nodeType": "VariableDeclaration", - "overrides": null, - "scope": 352, - "src": "1016:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 329, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "1016:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1015:14:2" - }, - "returnParameters": { - "id": 332, - "nodeType": "ParameterList", - "parameters": [], - "src": "1039:0:2" - }, - "scope": 370, - "src": "995:190:2", - "stateMutability": "nonpayable", - "virtual": false, - "visibility": "internal" - }, - { - "body": { - "id": 368, - "nodeType": "Block", - "src": "1312:123:2", - "statements": [ - { - "assignments": [360], - "declarations": [ - { - "constant": false, - "id": 360, - "mutability": "mutable", - "name": "size", - "nodeType": "VariableDeclaration", - "overrides": null, - "scope": 368, - "src": "1322:11:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint32", - "typeString": "uint32" - }, - "typeName": { - "id": 359, - "name": "uint32", - "nodeType": "ElementaryTypeName", - "src": "1322:6:2", - "typeDescriptions": { - "typeIdentifier": "t_uint32", - "typeString": "uint32" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 361, - "initialValue": null, - "nodeType": "VariableDeclarationStatement", - "src": "1322:11:2" - }, - { - "AST": { - "nodeType": "YulBlock", - "src": "1352:50:2", - "statements": [ - { - "nodeType": "YulAssignment", - "src": "1366:26:2", - "value": { - "arguments": [ - { - "name": "_addr", - "nodeType": "YulIdentifier", - "src": "1386:5:2" - } - ], - "functionName": { - "name": "extcodesize", - "nodeType": "YulIdentifier", - "src": "1374:11:2" - }, - "nodeType": "YulFunctionCall", - "src": "1374:18:2" - }, - "variableNames": [ - { - "name": "size", - "nodeType": "YulIdentifier", - "src": "1366:4:2" - } - ] - } - ] - }, - "evmVersion": "byzantium", - "externalReferences": [ - { - "declaration": 354, - "isOffset": false, - "isSlot": false, - "src": "1386:5:2", - "valueSize": 1 - }, - { - "declaration": 360, - "isOffset": false, - "isSlot": false, - "src": "1366:4:2", - "valueSize": 1 - } - ], - "id": 362, - "nodeType": "InlineAssembly", - "src": "1343:59:2" - }, - { - "expression": { - "argumentTypes": null, - "components": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint32", - "typeString": "uint32" - }, - "id": 365, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 363, - "name": "size", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 360, - "src": "1419:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint32", - "typeString": "uint32" - } - }, - "nodeType": "BinaryOperation", - "operator": ">", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 364, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1426:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "1419:8:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "id": 366, - "isConstant": false, - "isInlineArray": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "TupleExpression", - "src": "1418:10:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "functionReturnParameters": 358, - "id": 367, - "nodeType": "Return", - "src": "1411:17:2" - } - ] - }, - "documentation": null, - "id": 369, - "implemented": true, - "kind": "function", - "modifiers": [], - "name": "isContract", - "nodeType": "FunctionDefinition", - "overrides": null, - "parameters": { - "id": 355, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 354, - "mutability": "mutable", - "name": "_addr", - "nodeType": "VariableDeclaration", - "overrides": null, - "scope": 369, - "src": "1268:13:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 353, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "1268:7:2", - "stateMutability": "nonpayable", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1267:15:2" - }, - "returnParameters": { - "id": 358, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 357, - "mutability": "mutable", - "name": "", - "nodeType": "VariableDeclaration", - "overrides": null, - "scope": 369, - "src": "1306:4:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 356, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "1306:4:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1305:6:2" - }, - "scope": 370, - "src": "1248:187:2", - "stateMutability": "view", - "virtual": false, - "visibility": "internal" - } - ], - "scope": 371, - "src": "147:1290:2" - } - ], - "src": "33:1404:2" - }, - "legacyAST": { - "attributes": { - "absolutePath": "/home/ashwin/Poolz/SignUp-Pool/contracts/SignUpPool.sol", - "exportedSymbols": { - "SignUpPool": [370] - }, - "license": "MIT" - }, - "children": [ - { - "attributes": { - "literals": ["solidity", "^", "0.6", ".0"] - }, - "id": 236, - "name": "PragmaDirective", - "src": "33:23:2" - }, - { - "attributes": { - "SourceUnit": 235, - "absolutePath": "/home/ashwin/Poolz/SignUp-Pool/contracts/PoolControl.sol", - "file": "./PoolControl.sol", - "scope": 371, - "symbolAliases": [null], - "unitAlias": "" - }, - "id": 237, - "name": "ImportDirective", - "src": "58:27:2" - }, - { - "attributes": { - "SourceUnit": 839, - "absolutePath": "openzeppelin-solidity/contracts/math/SafeMath.sol", - "file": "openzeppelin-solidity/contracts/math/SafeMath.sol", - "scope": 371, - "symbolAliases": [null], - "unitAlias": "" - }, - "id": 238, - "name": "ImportDirective", - "src": "86:59:2" - }, - { - "attributes": { - "abstract": false, - "contractDependencies": [115, 234, 483, 1442, 1534, 1741, 1855, 1904], - "contractKind": "contract", - "documentation": null, - "fullyImplemented": true, - "linearizedBaseContracts": [370, 234, 115, 1534, 1904, 1741, 1855, 483, 1442], - "name": "SignUpPool", - "scope": 371 - }, - "children": [ - { - "attributes": { - "arguments": null - }, - "children": [ - { - "attributes": { - "contractScope": null, - "name": "PoolControl", - "referencedDeclaration": 234, - "type": "contract PoolControl" - }, - "id": 239, - "name": "UserDefinedTypeName", - "src": "170:11:2" - } - ], - "id": 240, - "name": "InheritanceSpecifier", - "src": "170:11:2" - }, - { - "attributes": { - "anonymous": false, - "documentation": null, - "name": "NewSignUp" - }, - "children": [ - { - "children": [ - { - "attributes": { - "constant": false, - "indexed": false, - "mutability": "mutable", - "name": "PoolId", - "overrides": null, - "scope": 246, - "stateVariable": false, - "storageLocation": "default", - "type": "uint256", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "uint256", - "type": "uint256" - }, - "id": 241, - "name": "ElementaryTypeName", - "src": "204:7:2" - } - ], - "id": 242, - "name": "VariableDeclaration", - "src": "204:14:2" - }, - { - "attributes": { - "constant": false, - "indexed": false, - "mutability": "mutable", - "name": "UserAddress", - "overrides": null, - "scope": 246, - "stateVariable": false, - "storageLocation": "default", - "type": "address", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "address", - "stateMutability": "nonpayable", - "type": "address" - }, - "id": 243, - "name": "ElementaryTypeName", - "src": "220:7:2" - } - ], - "id": 244, - "name": "VariableDeclaration", - "src": "220:19:2" - } - ], - "id": 245, - "name": "ParameterList", - "src": "203:37:2" - } - ], - "id": 246, - "name": "EventDefinition", - "src": "188:53:2" - }, - { - "attributes": { - "documentation": null, - "name": "shouldBeActive", - "overrides": null, - "virtual": false, - "visibility": "internal" - }, - "children": [ - { - "children": [ - { - "attributes": { - "constant": false, - "mutability": "mutable", - "name": "_poolId", - "overrides": null, - "scope": 259, - "stateVariable": false, - "storageLocation": "default", - "type": "uint256", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "uint256", - "type": "uint256" - }, - "id": 247, - "name": "ElementaryTypeName", - "src": "271:7:2" - } - ], - "id": 248, - "name": "VariableDeclaration", - "src": "271:15:2" - } - ], - "id": 249, - "name": "ParameterList", - "src": "270:17:2" - }, - { - "children": [ - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "isStructConstructorCall": false, - "lValueRequested": false, - "names": [null], - "tryCall": false, - "type": "tuple()", - "type_conversion": false - }, - "children": [ - { - "attributes": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_stringliteral_2edb81c1845f9864977cc7d656f52f9efe600c136f60dadb08027059d9e9e383", - "typeString": "literal_string \"Pool is not Active or Created\"" - } - ], - "overloadedDeclarations": [-18, -18], - "referencedDeclaration": -18, - "type": "function (bool,string memory) pure", - "value": "require" - }, - "id": 250, - "name": "Identifier", - "src": "298:7:2" - }, - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "type": "bool" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 137, - "type": "mapping(uint256 => bool)", - "value": "isPoolActive" - }, - "id": 251, - "name": "Identifier", - "src": "306:12:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 248, - "type": "uint256", - "value": "_poolId" - }, - "id": 252, - "name": "Identifier", - "src": "319:7:2" - } - ], - "id": 253, - "name": "IndexAccess", - "src": "306:21:2" - }, - { - "attributes": { - "argumentTypes": null, - "hexvalue": "506f6f6c206973206e6f7420416374697665206f722043726561746564", - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "subdenomination": null, - "token": "string", - "type": "literal_string \"Pool is not Active or Created\"", - "value": "Pool is not Active or Created" - }, - "id": 254, - "name": "Literal", - "src": "329:31:2" - } - ], - "id": 255, - "name": "FunctionCall", - "src": "298:63:2" - } - ], - "id": 256, - "name": "ExpressionStatement", - "src": "298:63:2" - }, - { - "id": 257, - "name": "PlaceholderStatement", - "src": "371:1:2" - } - ], - "id": 258, - "name": "Block", - "src": "288:91:2" - } - ], - "id": 259, - "name": "ModifierDefinition", - "src": "247:132:2" - }, - { - "attributes": { - "documentation": null, - "name": "validateSender", - "overrides": null, - "virtual": false, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "parameters": [null] - }, - "children": [], - "id": 260, - "name": "ParameterList", - "src": "408:2:2" - }, - { - "children": [ - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "isStructConstructorCall": false, - "lValueRequested": false, - "names": [null], - "tryCall": false, - "type": "tuple()", - "type_conversion": false - }, - "children": [ - { - "attributes": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_stringliteral_47fcc1f5becd42ae27ff6209e664dc1d38a5ddb2c95d1457c723f15ff0c31d2c", - "typeString": "literal_string \"Some thing wrong with the msgSender\"" - } - ], - "overloadedDeclarations": [-18, -18], - "referencedDeclaration": -18, - "type": "function (bool,string memory) pure", - "value": "require" - }, - "id": 261, - "name": "Identifier", - "src": "420:7:2" - }, - { - "attributes": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "&&", - "type": "bool" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address_payable", - "typeString": "address payable" - }, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "==", - "type": "bool" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "member_name": "sender", - "referencedDeclaration": null, - "type": "address payable" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": -15, - "type": "msg", - "value": "msg" - }, - "id": 262, - "name": "Identifier", - "src": "441:3:2" - } - ], - "id": 263, - "name": "MemberAccess", - "src": "441:10:2" - }, - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "member_name": "origin", - "referencedDeclaration": null, - "type": "address payable" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": -26, - "type": "tx", - "value": "tx" - }, - "id": 264, - "name": "Identifier", - "src": "455:2:2" - } - ], - "id": 265, - "name": "MemberAccess", - "src": "455:9:2" - } - ], - "id": 266, - "name": "BinaryOperation", - "src": "441:23:2" - }, - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "!", - "prefix": true, - "type": "bool" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "isStructConstructorCall": false, - "lValueRequested": false, - "names": [null], - "tryCall": false, - "type": "bool", - "type_conversion": false - }, - "children": [ - { - "attributes": { - "argumentTypes": [ - { - "typeIdentifier": "t_address_payable", - "typeString": "address payable" - } - ], - "overloadedDeclarations": [null], - "referencedDeclaration": 369, - "type": "function (address) view returns (bool)", - "value": "isContract" - }, - "id": 267, - "name": "Identifier", - "src": "469:10:2" - }, - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "member_name": "sender", - "referencedDeclaration": null, - "type": "address payable" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": -15, - "type": "msg", - "value": "msg" - }, - "id": 268, - "name": "Identifier", - "src": "480:3:2" - } - ], - "id": 269, - "name": "MemberAccess", - "src": "480:10:2" - } - ], - "id": 270, - "name": "FunctionCall", - "src": "469:22:2" - } - ], - "id": 271, - "name": "UnaryOperation", - "src": "468:23:2" - } - ], - "id": 272, - "name": "BinaryOperation", - "src": "441:50:2" - }, - { - "attributes": { - "argumentTypes": null, - "hexvalue": "536f6d65207468696e672077726f6e67207769746820746865206d736753656e646572", - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "subdenomination": null, - "token": "string", - "type": "literal_string \"Some thing wrong with the msgSender\"", - "value": "Some thing wrong with the msgSender" - }, - "id": 273, - "name": "Literal", - "src": "505:37:2" - } - ], - "id": 274, - "name": "FunctionCall", - "src": "420:132:2" - } - ], - "id": 275, - "name": "ExpressionStatement", - "src": "420:132:2" - }, - { - "id": 276, - "name": "PlaceholderStatement", - "src": "562:1:2" - } - ], - "id": 277, - "name": "Block", - "src": "410:160:2" - } - ], - "id": 278, - "name": "ModifierDefinition", - "src": "385:185:2" - }, - { - "attributes": { - "documentation": null, - "functionSelector": "2417a19b", - "implemented": true, - "isConstructor": false, - "kind": "function", - "name": "SignUp", - "overrides": null, - "scope": 370, - "stateMutability": "payable", - "virtual": false, - "visibility": "external" - }, - "children": [ - { - "children": [ - { - "attributes": { - "constant": false, - "mutability": "mutable", - "name": "_poolId", - "overrides": null, - "scope": 308, - "stateVariable": false, - "storageLocation": "default", - "type": "uint256", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "uint256", - "type": "uint256" - }, - "id": 279, - "name": "ElementaryTypeName", - "src": "592:7:2" - } - ], - "id": 280, - "name": "VariableDeclaration", - "src": "592:15:2" - } - ], - "id": 281, - "name": "ParameterList", - "src": "591:17:2" - }, - { - "attributes": { - "parameters": [null] - }, - "children": [], - "id": 289, - "name": "ParameterList", - "src": "681:0:2" - }, - { - "attributes": { - "arguments": null - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 1490, - "type": "modifier ()", - "value": "whenNotPaused" - }, - "id": 282, - "name": "Identifier", - "src": "626:13:2" - } - ], - "id": 283, - "name": "ModifierInvocation", - "src": "626:13:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 259, - "type": "modifier (uint256)", - "value": "shouldBeActive" - }, - "id": 284, - "name": "Identifier", - "src": "640:14:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 280, - "type": "uint256", - "value": "_poolId" - }, - "id": 285, - "name": "Identifier", - "src": "655:7:2" - } - ], - "id": 286, - "name": "ModifierInvocation", - "src": "640:23:2" - }, - { - "attributes": { - "arguments": [null] - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 278, - "type": "modifier ()", - "value": "validateSender" - }, - "id": 287, - "name": "Identifier", - "src": "664:14:2" - } - ], - "id": 288, - "name": "ModifierInvocation", - "src": "664:16:2" - }, - { - "children": [ - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "==", - "type": "bool" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 17, - "type": "address", - "value": "FeeTokenAddress" - }, - "id": 290, - "name": "Identifier", - "src": "694:15:2" - }, - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": true, - "isStructConstructorCall": false, - "lValueRequested": false, - "names": [null], - "tryCall": false, - "type": "address payable", - "type_conversion": true - }, - "children": [ - { - "attributes": { - "argumentTypes": [ - { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - } - ], - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "type": "type(address)" - }, - "children": [ - { - "attributes": { - "name": "address", - "type": null - }, - "id": 291, - "name": "ElementaryTypeName", - "src": "713:7:2" - } - ], - "id": 292, - "name": "ElementaryTypeNameExpression", - "src": "713:7:2" - }, - { - "attributes": { - "argumentTypes": null, - "hexvalue": "30", - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "subdenomination": null, - "token": "number", - "type": "int_const 0", - "value": "0" - }, - "id": 293, - "name": "Literal", - "src": "721:1:2" - } - ], - "id": 294, - "name": "FunctionCall", - "src": "713:10:2" - } - ], - "id": 295, - "name": "BinaryOperation", - "src": "694:29:2" - }, - { - "children": [ - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "isStructConstructorCall": false, - "lValueRequested": false, - "names": [null], - "tryCall": false, - "type": "tuple()", - "type_conversion": false - }, - "children": [ - { - "attributes": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "overloadedDeclarations": [null], - "referencedDeclaration": 328, - "type": "function (uint256)", - "value": "SignUpETH" - }, - "id": 296, - "name": "Identifier", - "src": "738:9:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 280, - "type": "uint256", - "value": "_poolId" - }, - "id": 297, - "name": "Identifier", - "src": "748:7:2" - } - ], - "id": 298, - "name": "FunctionCall", - "src": "738:18:2" - } - ], - "id": 299, - "name": "ExpressionStatement", - "src": "738:18:2" - } - ], - "id": 300, - "name": "Block", - "src": "724:43:2" - }, - { - "children": [ - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "isStructConstructorCall": false, - "lValueRequested": false, - "names": [null], - "tryCall": false, - "type": "tuple()", - "type_conversion": false - }, - "children": [ - { - "attributes": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "overloadedDeclarations": [null], - "referencedDeclaration": 352, - "type": "function (uint256)", - "value": "SignUpERC20" - }, - "id": 301, - "name": "Identifier", - "src": "787:11:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 280, - "type": "uint256", - "value": "_poolId" - }, - "id": 302, - "name": "Identifier", - "src": "799:7:2" - } - ], - "id": 303, - "name": "FunctionCall", - "src": "787:20:2" - } - ], - "id": 304, - "name": "ExpressionStatement", - "src": "787:20:2" - } - ], - "id": 305, - "name": "Block", - "src": "773:45:2" - } - ], - "id": 306, - "name": "IfStatement", - "src": "691:127:2" - } - ], - "id": 307, - "name": "Block", - "src": "681:143:2" - } - ], - "id": 308, - "name": "FunctionDefinition", - "src": "576:248:2" - }, - { - "attributes": { - "documentation": null, - "implemented": true, - "isConstructor": false, - "kind": "function", - "modifiers": [null], - "name": "SignUpETH", - "overrides": null, - "scope": 370, - "stateMutability": "nonpayable", - "virtual": false, - "visibility": "internal" - }, - "children": [ - { - "children": [ - { - "attributes": { - "constant": false, - "mutability": "mutable", - "name": "_poolId", - "overrides": null, - "scope": 328, - "stateVariable": false, - "storageLocation": "default", - "type": "uint256", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "uint256", - "type": "uint256" - }, - "id": 309, - "name": "ElementaryTypeName", - "src": "849:7:2" - } - ], - "id": 310, - "name": "VariableDeclaration", - "src": "849:15:2" - } - ], - "id": 311, - "name": "ParameterList", - "src": "848:17:2" - }, - { - "attributes": { - "parameters": [null] - }, - "children": [], - "id": 312, - "name": "ParameterList", - "src": "875:0:2" - }, - { - "children": [ - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "isStructConstructorCall": false, - "lValueRequested": false, - "names": [null], - "tryCall": false, - "type": "tuple()", - "type_conversion": false - }, - "children": [ - { - "attributes": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_stringliteral_70ee2627392484715137d6037fab07f05c09f6e24c28761dc605b5208c5cc2bb", - "typeString": "literal_string \"Not Enough Fee Provided\"" - } - ], - "overloadedDeclarations": [-18, -18], - "referencedDeclaration": -18, - "type": "function (bool,string memory) pure", - "value": "require" - }, - "id": 313, - "name": "Identifier", - "src": "885:7:2" - }, - { - "attributes": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": ">=", - "type": "bool" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "member_name": "value", - "referencedDeclaration": null, - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": -15, - "type": "msg", - "value": "msg" - }, - "id": 314, - "name": "Identifier", - "src": "893:3:2" - } - ], - "id": 315, - "name": "MemberAccess", - "src": "893:9:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 15, - "type": "uint256", - "value": "Fee" - }, - "id": 316, - "name": "Identifier", - "src": "906:3:2" - } - ], - "id": 317, - "name": "BinaryOperation", - "src": "893:16:2" - }, - { - "attributes": { - "argumentTypes": null, - "hexvalue": "4e6f7420456e6f756768204665652050726f7669646564", - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "subdenomination": null, - "token": "string", - "type": "literal_string \"Not Enough Fee Provided\"", - "value": "Not Enough Fee Provided" - }, - "id": 318, - "name": "Literal", - "src": "911:25:2" - } - ], - "id": 319, - "name": "FunctionCall", - "src": "885:52:2" - } - ], - "id": 320, - "name": "ExpressionStatement", - "src": "885:52:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "isStructConstructorCall": false, - "lValueRequested": false, - "names": [null], - "tryCall": false, - "type": "tuple()", - "type_conversion": false - }, - "children": [ - { - "attributes": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - { - "typeIdentifier": "t_address_payable", - "typeString": "address payable" - } - ], - "overloadedDeclarations": [null], - "referencedDeclaration": 246, - "type": "function (uint256,address)", - "value": "NewSignUp" - }, - "id": 321, - "name": "Identifier", - "src": "952:9:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 310, - "type": "uint256", - "value": "_poolId" - }, - "id": 322, - "name": "Identifier", - "src": "962:7:2" - }, - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "member_name": "sender", - "referencedDeclaration": null, - "type": "address payable" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": -15, - "type": "msg", - "value": "msg" - }, - "id": 323, - "name": "Identifier", - "src": "971:3:2" - } - ], - "id": 324, - "name": "MemberAccess", - "src": "971:10:2" - } - ], - "id": 325, - "name": "FunctionCall", - "src": "952:30:2" - } - ], - "id": 326, - "name": "EmitStatement", - "src": "947:35:2" - } - ], - "id": 327, - "name": "Block", - "src": "875:114:2" - } - ], - "id": 328, - "name": "FunctionDefinition", - "src": "830:159:2" - }, - { - "attributes": { - "documentation": null, - "implemented": true, - "isConstructor": false, - "kind": "function", - "modifiers": [null], - "name": "SignUpERC20", - "overrides": null, - "scope": 370, - "stateMutability": "nonpayable", - "virtual": false, - "visibility": "internal" - }, - "children": [ - { - "children": [ - { - "attributes": { - "constant": false, - "mutability": "mutable", - "name": "_poolId", - "overrides": null, - "scope": 352, - "stateVariable": false, - "storageLocation": "default", - "type": "uint256", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "uint", - "type": "uint256" - }, - "id": 329, - "name": "ElementaryTypeName", - "src": "1016:4:2" - } - ], - "id": 330, - "name": "VariableDeclaration", - "src": "1016:12:2" - } - ], - "id": 331, - "name": "ParameterList", - "src": "1015:14:2" - }, - { - "attributes": { - "parameters": [null] - }, - "children": [], - "id": 332, - "name": "ParameterList", - "src": "1039:0:2" - }, - { - "children": [ - { - "attributes": { - "falseBody": null - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": ">", - "type": "bool" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 15, - "type": "uint256", - "value": "Fee" - }, - "id": 333, - "name": "Identifier", - "src": "1052:3:2" - }, - { - "attributes": { - "argumentTypes": null, - "hexvalue": "30", - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "subdenomination": null, - "token": "number", - "type": "int_const 0", - "value": "0" - }, - "id": 334, - "name": "Literal", - "src": "1058:1:2" - } - ], - "id": 335, - "name": "BinaryOperation", - "src": "1052:7:2" - }, - { - "children": [ - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "isStructConstructorCall": false, - "lValueRequested": false, - "names": [null], - "tryCall": false, - "type": "tuple()", - "type_conversion": false - }, - "children": [ - { - "attributes": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address_payable", - "typeString": "address payable" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "overloadedDeclarations": [null], - "referencedDeclaration": 1716, - "type": "function (address,address,uint256)", - "value": "TransferInToken" - }, - "id": 336, - "name": "Identifier", - "src": "1074:15:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 17, - "type": "address", - "value": "FeeTokenAddress" - }, - "id": 337, - "name": "Identifier", - "src": "1090:15:2" - }, - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "member_name": "sender", - "referencedDeclaration": null, - "type": "address payable" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": -15, - "type": "msg", - "value": "msg" - }, - "id": 338, - "name": "Identifier", - "src": "1107:3:2" - } - ], - "id": 339, - "name": "MemberAccess", - "src": "1107:10:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 15, - "type": "uint256", - "value": "Fee" - }, - "id": 340, - "name": "Identifier", - "src": "1119:3:2" - } - ], - "id": 341, - "name": "FunctionCall", - "src": "1074:49:2" - } - ], - "id": 342, - "name": "ExpressionStatement", - "src": "1074:49:2" - } - ], - "id": 343, - "name": "Block", - "src": "1060:74:2" - } - ], - "id": 344, - "name": "IfStatement", - "src": "1049:85:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "isStructConstructorCall": false, - "lValueRequested": false, - "names": [null], - "tryCall": false, - "type": "tuple()", - "type_conversion": false - }, - "children": [ - { - "attributes": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - { - "typeIdentifier": "t_address_payable", - "typeString": "address payable" - } - ], - "overloadedDeclarations": [null], - "referencedDeclaration": 246, - "type": "function (uint256,address)", - "value": "NewSignUp" - }, - "id": 345, - "name": "Identifier", - "src": "1148:9:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 330, - "type": "uint256", - "value": "_poolId" - }, - "id": 346, - "name": "Identifier", - "src": "1158:7:2" - }, - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "member_name": "sender", - "referencedDeclaration": null, - "type": "address payable" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": -15, - "type": "msg", - "value": "msg" - }, - "id": 347, - "name": "Identifier", - "src": "1167:3:2" - } - ], - "id": 348, - "name": "MemberAccess", - "src": "1167:10:2" - } - ], - "id": 349, - "name": "FunctionCall", - "src": "1148:30:2" - } - ], - "id": 350, - "name": "EmitStatement", - "src": "1143:35:2" - } - ], - "id": 351, - "name": "Block", - "src": "1039:146:2" - } - ], - "id": 352, - "name": "FunctionDefinition", - "src": "995:190:2" - }, - { - "attributes": { - "documentation": null, - "implemented": true, - "isConstructor": false, - "kind": "function", - "modifiers": [null], - "name": "isContract", - "overrides": null, - "scope": 370, - "stateMutability": "view", - "virtual": false, - "visibility": "internal" - }, - "children": [ - { - "children": [ - { - "attributes": { - "constant": false, - "mutability": "mutable", - "name": "_addr", - "overrides": null, - "scope": 369, - "stateVariable": false, - "storageLocation": "default", - "type": "address", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "address", - "stateMutability": "nonpayable", - "type": "address" - }, - "id": 353, - "name": "ElementaryTypeName", - "src": "1268:7:2" - } - ], - "id": 354, - "name": "VariableDeclaration", - "src": "1268:13:2" - } - ], - "id": 355, - "name": "ParameterList", - "src": "1267:15:2" - }, - { - "children": [ - { - "attributes": { - "constant": false, - "mutability": "mutable", - "name": "", - "overrides": null, - "scope": 369, - "stateVariable": false, - "storageLocation": "default", - "type": "bool", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "bool", - "type": "bool" - }, - "id": 356, - "name": "ElementaryTypeName", - "src": "1306:4:2" - } - ], - "id": 357, - "name": "VariableDeclaration", - "src": "1306:4:2" - } - ], - "id": 358, - "name": "ParameterList", - "src": "1305:6:2" - }, - { - "children": [ - { - "attributes": { - "assignments": [360], - "initialValue": null - }, - "children": [ - { - "attributes": { - "constant": false, - "mutability": "mutable", - "name": "size", - "overrides": null, - "scope": 368, - "stateVariable": false, - "storageLocation": "default", - "type": "uint32", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "uint32", - "type": "uint32" - }, - "id": 359, - "name": "ElementaryTypeName", - "src": "1322:6:2" - } - ], - "id": 360, - "name": "VariableDeclaration", - "src": "1322:11:2" - } - ], - "id": 361, - "name": "VariableDeclarationStatement", - "src": "1322:11:2" - }, - { - "attributes": { - "evmVersion": "byzantium", - "externalReferences": [ - { - "declaration": 354, - "isOffset": false, - "isSlot": false, - "src": "1386:5:2", - "valueSize": 1 - }, - { - "declaration": 360, - "isOffset": false, - "isSlot": false, - "src": "1366:4:2", - "valueSize": 1 - } - ], - "operations": "{ size := extcodesize(_addr) }" - }, - "children": [], - "id": 362, - "name": "InlineAssembly", - "src": "1343:59:2" - }, - { - "attributes": { - "functionReturnParameters": 358 - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isInlineArray": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "type": "bool" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint32", - "typeString": "uint32" - }, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": ">", - "type": "bool" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 360, - "type": "uint32", - "value": "size" - }, - "id": 363, - "name": "Identifier", - "src": "1419:4:2" - }, - { - "attributes": { - "argumentTypes": null, - "hexvalue": "30", - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "subdenomination": null, - "token": "number", - "type": "int_const 0", - "value": "0" - }, - "id": 364, - "name": "Literal", - "src": "1426:1:2" - } - ], - "id": 365, - "name": "BinaryOperation", - "src": "1419:8:2" - } - ], - "id": 366, - "name": "TupleExpression", - "src": "1418:10:2" - } - ], - "id": 367, - "name": "Return", - "src": "1411:17:2" - } - ], - "id": 368, - "name": "Block", - "src": "1312:123:2" - } - ], - "id": 369, - "name": "FunctionDefinition", - "src": "1248:187:2" - } - ], - "id": 370, - "name": "ContractDefinition", - "src": "147:1290:2" - } - ], - "id": 371, - "name": "SourceUnit", - "src": "33:1404:2" - }, - "compiler": { - "name": "solc", - "version": "0.6.12+commit.27d51765.Emscripten.clang" - }, - "networks": {}, - "schemaVersion": "3.4.1", - "updatedAt": "2021-07-06T18:36:19.116Z", - "devdoc": { - "kind": "dev", - "methods": { - "owner()": { - "details": "Returns the address of the current owner." - }, - "paused()": { - "details": "Returns true if the contract is paused, and false otherwise." - }, - "renounceOwnership()": { - "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner." - }, - "transferOwnership(address)": { - "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner." - } - }, - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": {}, - "version": 1 - } -} diff --git a/src/contracts/abi/SimpleBuilder.json b/src/contracts/abi/SimpleBuilder.json deleted file mode 100644 index 54d3572..0000000 --- a/src/contracts/abi/SimpleBuilder.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "NameVersion": "SimpleBuilder@0.9.1-ironblocks", - "contractName": "SimpleBuilder", - "abi": [ - { - "inputs": [ - { - "internalType": "contract ILockDealNFT", - "name": "_nft", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "addressParams", - "type": "address[]" - }, - { - "components": [ - { - "components": [ - { - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "internalType": "struct BuilderState.UserPool[]", - "name": "userPools", - "type": "tuple[]" - }, - { - "internalType": "uint256", - "name": "totalAmount", - "type": "uint256" - } - ], - "internalType": "struct BuilderState.Builder", - "name": "userData", - "type": "tuple" - }, - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - } - ], - "name": "buildMassPools", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "firewallAdmin", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "lockDealNFT", - "outputs": [ - { - "internalType": "contract ILockDealNFT", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "name": "onERC721Received", - "outputs": [ - { - "internalType": "bytes4", - "name": "", - "type": "bytes4" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewall", - "type": "address" - } - ], - "name": "setFirewall", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewallAdmin", - "type": "address" - } - ], - "name": "setFirewallAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/src/contracts/abi/SimpleRefundBuilder.json b/src/contracts/abi/SimpleRefundBuilder.json deleted file mode 100644 index 1d6897e..0000000 --- a/src/contracts/abi/SimpleRefundBuilder.json +++ /dev/null @@ -1,196 +0,0 @@ -{ - "NameVersion": "SimpleRefundBuilder@0.9.5", - "contractName": "SimpleRefundBuilder", - "abi": [ - { - "inputs": [ - { - "internalType": "contract ILockDealNFT", - "name": "_nft", - "type": "address" - }, - { - "internalType": "contract IProvider", - "name": "_refund", - "type": "address" - }, - { - "internalType": "contract IProvider", - "name": "_collateral", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "addressParams", - "type": "address[]" - }, - { - "components": [ - { - "components": [ - { - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "internalType": "struct BuilderState.UserPool[]", - "name": "userPools", - "type": "tuple[]" - }, - { - "internalType": "uint256", - "name": "totalAmount", - "type": "uint256" - } - ], - "internalType": "struct BuilderState.Builder", - "name": "userData", - "type": "tuple" - }, - { - "internalType": "uint256[][]", - "name": "params", - "type": "uint256[][]" - }, - { - "internalType": "bytes", - "name": "tokenSignature", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "mainCoinSignature", - "type": "bytes" - } - ], - "name": "buildMassPools", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "collateralProvider", - "outputs": [ - { - "internalType": "contract IProvider", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "firewallAdmin", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "lockDealNFT", - "outputs": [ - { - "internalType": "contract ILockDealNFT", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "name": "onERC721Received", - "outputs": [ - { - "internalType": "bytes4", - "name": "", - "type": "bytes4" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "refundProvider", - "outputs": [ - { - "internalType": "contract IProvider", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewall", - "type": "address" - } - ], - "name": "setFirewall", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewallAdmin", - "type": "address" - } - ], - "name": "setFirewallAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/src/contracts/abi/ThePoolz.json b/src/contracts/abi/ThePoolz.json deleted file mode 100644 index c51015c..0000000 --- a/src/contracts/abi/ThePoolz.json +++ /dev/null @@ -1,2213 +0,0 @@ -{ - "contractName": "ThePoolz", - "abi": [ - { "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" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "LockedDeal_ID", - "type": "uint256" - } - ], - "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" - }, - { - "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" - }, - { - "inputs": [], - "name": "Fee", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "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" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "GetMyInvestmentIds", - "outputs": [ - { "internalType": "uint256[]", "name": "", "type": "uint256[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "GetMyPoolsId", - "outputs": [ - { "internalType": "uint256[]", "name": "", "type": "uint256[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "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" - }, - { - "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" - }, - { - "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" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_id", "type": "uint256" } - ], - "name": "GetPoolStatus", - "outputs": [ - { - "internalType": "enum PoolsData.PoolStatus", - "name": "", - "type": "uint8" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "GovernerContract", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "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" - }, - { - "inputs": [ - { "internalType": "address", "name": "_address", "type": "address" } - ], - "name": "IsERC20Maincoin", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "IsPayble", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_PoolId", "type": "uint256" } - ], - "name": "IsReadyWithdrawLeftOvers", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "IsTokenFilterOn", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_address", "type": "address" } - ], - "name": "IsValidToken", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "LockedDealAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MCWhitelistId", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MaxDuration", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MaxERC20Invest", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MaxETHInvest", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MinDuration", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MinERC20Invest", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MinETHInvest", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "PoolPrice", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "PozFee", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "PozTimer", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "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": "address", "name": "lockedDeal", "type": "address" } - ], - "name": "SetLockedDealAddress", - "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": "_MinERC20Invest", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_MaxERC20Invest", - "type": "uint256" - } - ], - "name": "SetMinMaxERC20Invest", - "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": "SwitchLockedDealForTlp", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "TokenWhitelistId", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "UseLockedDealForTlp", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "WhiteList_Address", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_Token", "type": "address" }, - { "internalType": "address", "name": "_to", "type": "address" } - ], - "name": "WithdrawERC20Fee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address payable", "name": "_to", "type": "address" } - ], - "name": "WithdrawETHFee", - "outputs": [], - "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" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_id", "type": "uint256" } - ], - "name": "isPoolLocked", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "isUsingLockedDeal", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "pause", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "paused", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "poolsCount", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "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" - }, - { - "inputs": [], - "name": "unpause", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { "stateMutability": "payable", "type": "receive" } - ], - "metadata": "{\"compiler\":{\"version\":\"0.6.12+commit.27d51765\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"LockedDeal_ID\",\"type\":\"uint256\"}],\"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\"},{\"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\"},{\"inputs\":[],\"name\":\"Fee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"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\"},{\"inputs\":[],\"name\":\"GetMyInvestmentIds\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"GetMyPoolsId\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"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\"},{\"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\"},{\"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\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_id\",\"type\":\"uint256\"}],\"name\":\"GetPoolStatus\",\"outputs\":[{\"internalType\":\"enum PoolsData.PoolStatus\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"GovernerContract\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"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\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_address\",\"type\":\"address\"}],\"name\":\"IsERC20Maincoin\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"IsPayble\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_id\",\"type\":\"uint256\"}],\"name\":\"IsReadyWithdrawInvestment\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_PoolId\",\"type\":\"uint256\"}],\"name\":\"IsReadyWithdrawLeftOvers\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"IsTokenFilterOn\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_address\",\"type\":\"address\"}],\"name\":\"IsValidToken\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"LockedDealAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MCWhitelistId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MaxDuration\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MaxERC20Invest\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MaxETHInvest\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MinDuration\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MinERC20Invest\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MinETHInvest\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PoolPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PozFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PozTimer\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"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\":\"address\",\"name\":\"lockedDeal\",\"type\":\"address\"}],\"name\":\"SetLockedDealAddress\",\"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\":\"_MinERC20Invest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_MaxERC20Invest\",\"type\":\"uint256\"}],\"name\":\"SetMinMaxERC20Invest\",\"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\":\"SwitchLockedDealForTlp\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TokenWhitelistId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"UseLockedDealForTlp\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WhiteList_Address\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_Token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"}],\"name\":\"WithdrawERC20Fee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"_to\",\"type\":\"address\"}],\"name\":\"WithdrawETHFee\",\"outputs\":[],\"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\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_id\",\"type\":\"uint256\"}],\"name\":\"isPoolLocked\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isUsingLockedDeal\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolsCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"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\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"paused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/home/ashwin/Poolz/Poolz-Back/contracts/ThePoolz.sol\":\"ThePoolz\"},\"evmVersion\":\"byzantium\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/ashwin/Poolz/Poolz-Back/contracts/ILockedDeal.sol\":{\"keccak256\":\"0x2bf6494827dddb59310dbacbc2247d09f07e55652dee063a81705d46c17b652f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://96f64e7750f288ca31a0a81485b24c6d8e10a2a688a53abd17a3961620028b8a\",\"dweb:/ipfs/QmTx66cVEXV2jKLfA91qjMjuF2d8KhhW93A3VT4UZjSaqM\"]},\"/home/ashwin/Poolz/Poolz-Back/contracts/Invest.sol\":{\"keccak256\":\"0x523cf43844e4125ccabe7c395b658c45cc12b274b620c4aab1640260f5826635\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://289eabb50f676b0123be7dc613d1045c89df25f63eb47848217ba6b69e3f8ebe\",\"dweb:/ipfs/QmViX6w3xGZfqfWmZfLGPfv9FueXwUj1LBViE8MWdn2y5z\"]},\"/home/ashwin/Poolz/Poolz-Back/contracts/InvestorData.sol\":{\"keccak256\":\"0x083af980402843431134456fc38a7eecb75ff8c0960e05556028202361aa4c5d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8e363245603d0a27113ea2ce6cca14a9ec49e4fd50fbef1dba9dc916710df0ee\",\"dweb:/ipfs/QmVvYBMJRDt7GHZPxPZ14BXJuimtBwD5MvkAXUpw91gr5z\"]},\"/home/ashwin/Poolz/Poolz-Back/contracts/Manageable.sol\":{\"keccak256\":\"0x849f231a8628c1a08a15651b4294b0d2a503e88895b3f3d4d723d8e4d60e1db5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c534041ea057e4ffcd2264057ffeab2909c1e45ee266281abd41b42bfd78e518\",\"dweb:/ipfs/QmYbnq9Ye46wxWX8AcCDk79UvT7cmTjAv1BMS6DvRrBzvL\"]},\"/home/ashwin/Poolz/Poolz-Back/contracts/Pools.sol\":{\"keccak256\":\"0x8b9ad710e03c1dba9ebfa99411ddfa45204b990878279ea96a631c1d6100fac6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a509e047c3b02d470d4bd8c7de1b8704cb3d5a2c78e8fea368856dde7bb3e791\",\"dweb:/ipfs/QmZGQZGWshx3Ha98fJFH7QqTwQSt5mP2HvS4CdLK8dKukL\"]},\"/home/ashwin/Poolz/Poolz-Back/contracts/PoolsData.sol\":{\"keccak256\":\"0x42c3bdb72066caba8e517c385b7cb563ebb6855617487b11872073cd14b76e67\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://278dd6fc3f1b12545529fd4346960182593cbdf0606a9d422b75ab6991485aea\",\"dweb:/ipfs/QmS5M14osZXTeZySyh3WT4WDsP7jQCMQQyrphyqhtU9tLY\"]},\"/home/ashwin/Poolz/Poolz-Back/contracts/ThePoolz.sol\":{\"keccak256\":\"0x76d396d8d824b0e81ac2c61be3a2b08a35356bbd66215ec42f625fdbcf571a08\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://62bce59b4e7ac1da37ad05a42f738a735128b611e28bde1141c7452cb76934b0\",\"dweb:/ipfs/QmSyUMUG1yddN8F3oFApgmghg75dRjdsonmFSofCD9jeXd\"]},\"openzeppelin-solidity/contracts/access/Ownable.sol\":{\"keccak256\":\"0x15e2d5bd4c28a88548074c54d220e8086f638a71ed07e6b3ba5a70066fcf458d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://90faf5851c02f9bd42c5bfb54d4f0421a2612f50ab80b2c4fa24fa3792071cc2\",\"dweb:/ipfs/QmRGM4F2PcGVF85aTfaA9YBhCHHDqrMhRjyp6fGeBTtirb\"]},\"openzeppelin-solidity/contracts/math/SafeMath.sol\":{\"keccak256\":\"0xcc78a17dd88fa5a2edc60c8489e2f405c0913b377216a5b26b35656b2d0dab52\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://526dc85e1f9b9b45830e202568d267d93dde7a4fcccf4ad7798dadcd92304d3c\",\"dweb:/ipfs/QmaoXMB972J3cSDLtBq3xBo4jLwqD2uzXTwujtSPqkYVhR\"]},\"openzeppelin-solidity/contracts/token/ERC20/ERC20.sol\":{\"keccak256\":\"0xca0c2396dbeb3503b51abf4248ebf77a1461edad513c01529df51850a012bee3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://991b44ff44e0496e8554a90f4c0512c28faed45104d40430019f3c67ea67740e\",\"dweb:/ipfs/Qmc3nRapVbcctELoZS5qe17zLkFB3bETBfwzCTMF1CSuGE\"]},\"openzeppelin-solidity/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0x5f02220344881ce43204ae4a6281145a67bc52c2bb1290a791857df3d19d78f5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://24427744bd3e6cb73c17010119af12a318289c0253a4d9acb8576c9fb3797b08\",\"dweb:/ipfs/QmTLDqpKRBuxGxRAmjgXt9AkXyACW3MtKzi7PYjm5iMfGC\"]},\"openzeppelin-solidity/contracts/utils/Context.sol\":{\"keccak256\":\"0x8d3cb350f04ff49cfb10aef08d87f19dcbaecc8027b0bed12f3275cd12f38cf0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ded47ec7c96750f9bd04bbbc84f659992d4ba901cb7b532a52cd468272cf378f\",\"dweb:/ipfs/QmfBrGtQP7rZEqEg6Wz6jh2N2Kukpj1z5v3CGWmAqrzm96\"]},\"openzeppelin-solidity/contracts/utils/Pausable.sol\":{\"keccak256\":\"0x212fb1b1d4beaf74354dad9bc329f44ee3c5375ef1c32acff76b4ecefc10f1d8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d21c68cb321d1c8d0fa39fd9ecb6bbe3b2f26623b0f38af280a010c916c85f23\",\"dweb:/ipfs/Qmf2P51HRC4ekDHLYfbXu5SXR33gXrWtq6oKSmfyWqVRuC\"]},\"poolz-helper/contracts/ERC20Helper.sol\":{\"keccak256\":\"0x2701174ed12acb0891fd0edf3ef57fc35433564accc53e71308c70b5e3cbc266\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c73ec8bc5a47e43fd977d708a788f0e565797c0b5f0265a6b000e23bb9e96c9c\",\"dweb:/ipfs/QmbLxAnqtQd9w4dLh6roZQb91wehTgY1NpEDy79dvEqGQ3\"]},\"poolz-helper/contracts/ETHHelper.sol\":{\"keccak256\":\"0x8089edb53eb81500b88e6d4351db09c27d18a3a07f0fcc0343916f35a40ff18e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e145cdfc63689272939fe03045c8d8be2d7e84eba32f20944b524c0d7e6dad3f\",\"dweb:/ipfs/QmPQCU3qEestrkb4dvvpXAiJkwYfRtvbjUQ6d6CCb61e61\"]},\"poolz-helper/contracts/GovManager.sol\":{\"keccak256\":\"0x6796f84a1c26a4a410475bc5d89987166f4ed538fdd1c359f472c1d5a9545d53\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://90d60119d5af7d311444cb5bbe391d9302d005658bc52bff455bd42b55abb41a\",\"dweb:/ipfs/QmZAh7HTezpaF86We9T5LpR6NporkjSnaTHf4uJaMnh87U\"]},\"poolz-helper/contracts/IPozBenefit.sol\":{\"keccak256\":\"0xbb29e03d12ac7bf4bdd6ae8519384342375576f8d9266ea88dadc59cf9430c47\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b8aa3eda021a022f494dc38d7c9dee54f8e829d05000be8ad649588cb4b7199f\",\"dweb:/ipfs/QmbXuT1hmWuoWd1M4eP8aopiKxSAX7D55SCbkvqcETVncd\"]},\"poolz-helper/contracts/IWhiteList.sol\":{\"keccak256\":\"0xd40a9e6e2be0c72dd1acf3d5746e804f0c5f4c4e6f3445b1f063e0ef4fe2d2a2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1b91469381ef6ca18d40981be7cc5e2dc83898a933b40e77d6a09b8fa42c03fc\",\"dweb:/ipfs/QmVCDpHYu6eoEQQ1RWznew7pWRr2asQXfpGZRdJCNBQegi\"]},\"poolz-helper/contracts/PozBenefit.sol\":{\"keccak256\":\"0x6a417e8f3650c4d6bc0d074cc6e384fb40c7c6f84d60da3c6609312244bbad6d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3c90c58cf924fe218b2a54f5b19bb99f3bb620d1fc3fd665dda7b6add88b324e\",\"dweb:/ipfs/QmYiuF5rAPLzaC5Yq9yp65WDRsLE75ZYCNp9vSGeL3wzU6\"]}},\"version\":1}", - "bytecode": "0x60806040523480156200001157600080fd5b50600062000027640100000000620000cb810204565b60008054600160a060020a031916600160a060020a0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506000805460a060020a60ff021916905560018054600160a060020a0319169055600f6002556103e86003556004805460ff19169055601460065562ed4e00600855612710600a5568056bc75e2d63100000600b55620000cf565b3390565b61402680620000df6000396000f3fe60806040526004361061039e5760003560e060020a90048063991e979a116101e0578063ca4772bb11610106578063e8906716116100a4578063f318824811610073578063f318824814610cb3578063f32a68cb14610cdd578063fc1a86ff14610cf2578063fd711a5514610d2d576103bb565b8063e890671614610c06578063ee63e8bd14610c39578063f04be48b14610c63578063f2fde38b14610c80576103bb565b8063d0f52910116100e0578063d0f5291014610b07578063e34c777214610b5a578063e4ec0f6814610b84578063e569a6c014610bf1576103bb565b8063ca4772bb14610ab3578063cab1704614610ac8578063ccb801bf14610add576103bb565b8063b5f98b8e1161017e578063be33a3ec1161014d578063be33a3ec14610a44578063bed0604114610a74578063bef7a2f014610a89578063c34434e514610a9e576103bb565b8063b5f98b8e146109a2578063b7d9b6f1146109b7578063b973d7bc146109e7578063b977eddf14610a1a576103bb565b8063aa825486116101ba578063aa82548614610930578063aac5da5c14610945578063aaf1fe8f1461095a578063abb7add21461098d576103bb565b8063991e979a146108a9578063a73ff128146108dc578063a87d2be414610906576103bb565b806360f9e80a116102c557806375c64dd1116102635780638da5cb5b116102325780638da5cb5b1461085557806391314dde1461086a5780639363fc541461087f5780639642ec0c14610894576103bb565b806375c64dd1146107c857806376ab7b44146107dd5780638b1a2dd8146108105780638c788de014610840576103bb565b8063668189671161029f57806366818967146107415780636b1fe0b6146107745780636b58f2f614610789578063715018a6146107b3576103bb565b806360f9e80a1461061657806360fdd7c41461067357806363552a49146106dc576103bb565b806327ca36ec1161033d5780635796bc431161030c5780635796bc43146105c25780635c3f8312146105d75780635c975abb146105ec5780635cdddc7c14610601576103bb565b806327ca36ec146104fe5780633e90eea714610513578063410040251461054357806353eb3167146105ad576103bb565b80630cd8e965116103795780630cd8e965146104265780630d08caa014610457578063114fa9bd146104a257806318c9be4a146104e9576103bb565b8062172ddf146103c0578063043d520b146103ea57806307b027ed14610411576103bb565b366103bb5760005460a060020a900460ff166103b957600080fd5b005b600080fd5b3480156103cc57600080fd5b506103b9600480360360208110156103e357600080fd5b5035610d57565b3480156103f657600080fd5b506103ff610e96565b60408051918252519081900360200190f35b34801561041d57600080fd5b506103b9610e9c565b34801561043257600080fd5b5061043b610f33565b60408051600160a060020a039092168252519081900360200190f35b34801561046357600080fd5b506104816004803603602081101561047a57600080fd5b5035610f42565b6040518082600581111561049157fe5b815260200191505060405180910390f35b3480156104ae57600080fd5b506104d5600480360360208110156104c557600080fd5b5035600160a060020a0316611191565b604080519115158252519081900360200190f35b3480156104f557600080fd5b506103ff611253565b34801561050a57600080fd5b506103ff611259565b34801561051f57600080fd5b506103b96004803603604081101561053657600080fd5b508035906020013561125f565b34801561054f57600080fd5b5061056d6004803603602081101561056657600080fd5b50356112dd565b6040805167ffffffffffffffff909716875260208701959095528585019390935260608501919091526080840152151560a0830152519081900360c00190f35b3480156105b957600080fd5b506103ff611381565b3480156105ce57600080fd5b5061043b611387565b3480156105e357600080fd5b506104d5611396565b3480156105f857600080fd5b506104d56113c1565b34801561060d57600080fd5b506104d56113ca565b34801561062257600080fd5b506106406004803603602081101561063957600080fd5b50356113da565b60408051958652600160a060020a0390941660208601528484019290925260608401526080830152519081900360a00190f35b34801561067f57600080fd5b5061069d6004803603602081101561069657600080fd5b5035611413565b60408051600160a060020a039788168152959096166020860152848601939093526060840191909152608083015260a082015290519081900360c00190f35b3480156106e857600080fd5b506106f16114ad565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561072d578181015183820152602001610715565b505050509050019250505060405180910390f35b34801561074d57600080fd5b506103b96004803603602081101561076457600080fd5b5035600160a060020a031661150e565b34801561078057600080fd5b506103ff6115a3565b34801561079557600080fd5b506104d5600480360360208110156107ac57600080fd5b50356115a9565b3480156107bf57600080fd5b506103b96115cc565b3480156107d457600080fd5b506103ff61167b565b3480156107e957600080fd5b506103b96004803603602081101561080057600080fd5b5035600160a060020a0316611681565b34801561081c57600080fd5b506103b96004803603604081101561083357600080fd5b5080359060200135611716565b34801561084c57600080fd5b506103ff611794565b34801561086157600080fd5b5061043b61179a565b34801561087657600080fd5b506106f16117a9565b34801561088b57600080fd5b506104d5611808565b3480156108a057600080fd5b5061043b611818565b3480156108b557600080fd5b506103b9600480360360208110156108cc57600080fd5b5035600160a060020a0316611827565b3480156108e857600080fd5b506104d5600480360360208110156108ff57600080fd5b50356118c2565b34801561091257600080fd5b506103b96004803603602081101561092957600080fd5b5035611962565b34801561093c57600080fd5b506103ff6119f6565b34801561095157600080fd5b506103b96119fc565b34801561096657600080fd5b506103b96004803603602081101561097d57600080fd5b5035600160a060020a0316611a93565b34801561099957600080fd5b506103ff611b28565b3480156109ae57600080fd5b506104d5611b2e565b3480156109c357600080fd5b506103b9600480360360408110156109da57600080fd5b5080359060200135611b3e565b3480156109f357600080fd5b506103b960048036036020811015610a0a57600080fd5b5035600160a060020a0316611bbc565b348015610a2657600080fd5b506103b960048036036020811015610a3d57600080fd5b5035611c51565b348015610a5057600080fd5b506103b960048036036040811015610a6757600080fd5b5080359060200135611cc9565b348015610a8057600080fd5b506103ff611fab565b348015610a9557600080fd5b506103ff611fb1565b348015610aaa57600080fd5b506103ff611fb7565b348015610abf57600080fd5b5061043b611fbd565b348015610ad457600080fd5b506103ff611fcc565b348015610ae957600080fd5b506103b960048036036020811015610b0057600080fd5b5035611fd2565b348015610b1357600080fd5b50610b3160048036036020811015610b2a57600080fd5b503561204a565b6040805193151584526020840192909252600160a060020a031682820152519081900360600190f35b348015610b6657600080fd5b506104d560048036036020811015610b7d57600080fd5b50356120cd565b6103b96004803603610140811015610b9b57600080fd5b50600160a060020a03813581169160208101359160408201359160608101359160808201359167ffffffffffffffff60a0820135169160c0820135169060e081013515159061010081013590610120013561212a565b348015610bfd57600080fd5b506103ff61279e565b348015610c1257600080fd5b506104d560048036036020811015610c2957600080fd5b5035600160a060020a03166127a4565b348015610c4557600080fd5b506103b960048036036020811015610c5c57600080fd5b5035612830565b6103b960048036036020811015610c7957600080fd5b50356128a8565b348015610c8c57600080fd5b506103b960048036036020811015610ca357600080fd5b5035600160a060020a0316612b9d565b348015610cbf57600080fd5b506103b960048036036020811015610cd657600080fd5b5035612ca5565b348015610ce957600080fd5b506103b9612d2d565b348015610cfe57600080fd5b506103b960048036036040811015610d1557600080fd5b50600160a060020a0381358116916020013516612dd2565b348015610d3957600080fd5b506104d560048036036020811015610d5057600080fd5b5035612e64565b610d5f61179a565b600160a060020a031633600160a060020a03161480610d885750600154600160a060020a031633145b610dca576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b80612710811015610e42578160025480821115610deb576006849055610e3b565b6040805160e560020a62461bcd02815260206004820152600a60248201527f4e6f742062696767657200000000000000000000000000000000000000000000604482015290519081900360640190fd5b5050610e92565b6040805160e560020a62461bcd02815260206004820152600c60248201527f4e6f7420696e2072616e67650000000000000000000000000000000000000000604482015290519081900360640190fd5b5050565b60115481565b610ea4612f11565b600160a060020a0316610eb561179a565b600160a060020a031614610f01576040805160e560020a62461bcd0281526020600482018190526024820152600080516020613f91833981519152604482015290519081900360640190fd5b600f805474ff000000000000000000000000000000000000000019811660a060020a9182900460ff1615909102179055565b600154600160a060020a031681565b6000816013548110610f8c576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613fd1833981519152604482015290519081900360640190fd5b600083815260146020526040902060090154421015610fae576002915061118b565b6000838152601460205260409020600a015442108015610fde575060008381526014602052604090206008015415155b15610fec576000915061118b565b6000838152601460205260409020600a0154421080159061101d575060008381526014602052604090206008015415155b8015611039575060008381526014602052604090206002015442105b15611047576001915061118b565b60008381526014602052604090206008015415801561106a575061106a836115a9565b8015611086575060008381526014602052604090206002015442105b15611094576003915061118b565b6000838152601460205260409020600801541580156110b957506110b7836115a9565b155b156110c7576005915061118b565b60008381526014602052604090206002015442108015906110ee57506110ec836115a9565b155b1561111f576000838152601460205260409020600d015460ff1615611116576005915061118b565b6004915061118b565b6000838152601460205260409020600d015460ff168061114e5750600083815260146020526040902060080154155b80156111785750600083815260146020526040902060068101546008820154600b90920154909101145b15611186576005915061118b565b600491505b50919050565b600f5460009060a060020a900460ff16158061124b5750600e54601054604080517fcc44919b000000000000000000000000000000000000000000000000000000008152600160a060020a03868116600483015260248201939093529051600093929092169163cc44919b91604480820192602092909190829003018186803b15801561121d57600080fd5b505afa158015611231573d6000803e3d6000fd5b505050506040513d602081101561124757600080fd5b5051115b90505b919050565b60105481565b60075481565b61126761179a565b600160a060020a031633600160a060020a031614806112905750600154600160a060020a031633145b6112d2576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b600a91909155600b55565b60008060008060008086601354811061132e576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613fd1833981519152604482015290519081900360640190fd5b505050600094855250506014602052505060409020600781015460088201546009830154600a840154600b850154600d9095015467ffffffffffffffff9094169592949193909261010090910460ff1690565b60025481565b600f54600160a060020a031681565b60125460009060a060020a900460ff1680156113bc5750601254600160a060020a031615155b905090565b60045460ff1690565b600f5460a060020a900460ff1681565b600090815260176020526040902080546001820154600283015460038401546004909401549294600160a060020a039092169390929091565b600080600080600080866013548110611464576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613fd1833981519152604482015290519081900360640190fd5b50505060009485525050601460205250506040902080546001820154600283015460038401546004850154600690950154600160a060020a039485169694909316949193909290565b3360009081526015602090815260409182902080548351818402810184019094528084526060939283018282801561150457602002820191906000526020600020905b8154815260200190600101908083116114f0575b5050505050905090565b61151661179a565b600160a060020a031633600160a060020a0316148061153f5750600154600160a060020a031633145b611581576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b60018054600160a060020a031916600160a060020a0392909216919091179055565b60165490565b6000908152601460205260409020600701544267ffffffffffffffff9091161190565b6115d4612f11565b600160a060020a03166115e561179a565b600160a060020a031614611631576040805160e560020a62461bcd0281526020600482018190526024820152600080516020613f91833981519152604482015290519081900360640190fd5b60008054604051600160a060020a03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360008054600160a060020a0319169055565b60085481565b61168961179a565b600160a060020a031633600160a060020a031614806116b25750600154600160a060020a031633145b6116f4576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b600f8054600160a060020a031916600160a060020a0392909216919091179055565b61171e61179a565b600160a060020a031633600160a060020a031614806117475750600154600160a060020a031633145b611789576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b600c91909155600d55565b60135481565b600054600160a060020a031690565b3360009081526018602090815260409182902080548351818402810184019094528084526060939283018282801561150457602002820191906000526020600020908154815260200190600101908083116114f0575050505050905090565b60125460a060020a900460ff1681565b600e54600160a060020a031681565b61182f612f11565b600160a060020a031661184061179a565b600160a060020a03161461188c576040805160e560020a62461bcd0281526020600482018190526024820152600080516020613f91833981519152604482015290519081900360640190fd5b604051600160a060020a03821690303180156108fc02916000818181858888f19350505050158015610e92573d6000803e3d6000fd5b600081601354811061190c576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613fd1833981519152604482015290519081900360640190fd5b600083815260146020526040902060020154421080159061193d575060008381526014602052604090206008015415155b801561195b57506000838152601460205260409020600d015460ff16155b9392505050565b61196a61179a565b600160a060020a031633600160a060020a031614806119935750600154600160a060020a031633145b6119d5576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b80612710811015610e42576006548280821115610deb576002849055610e3b565b600b5481565b611a04612f11565b600160a060020a0316611a1561179a565b600160a060020a031614611a61576040805160e560020a62461bcd0281526020600482018190526024820152600080516020613f91833981519152604482015290519081900360640190fd5b6000805474ff000000000000000000000000000000000000000019811660a060020a9182900460ff1615909102179055565b611a9b61179a565b600160a060020a031633600160a060020a03161480611ac45750600154600160a060020a031633145b611b06576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b60128054600160a060020a031916600160a060020a0392909216919091179055565b60035481565b60005460a060020a900460ff1681565b611b4661179a565b600160a060020a031633600160a060020a03161480611b6f5750600154600160a060020a031633145b611bb1576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b600791909155600855565b611bc461179a565b600160a060020a031633600160a060020a03161480611bed5750600154600160a060020a031633145b611c2f576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b600e8054600160a060020a031916600160a060020a0392909216919091179055565b611c5961179a565b600160a060020a031633600160a060020a03161480611c825750600154600160a060020a031633145b611cc4576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b600955565b611cd16113c1565b15611d26576040805160e560020a62461bcd02815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b60008281526014602052604090206009015442811115611d90576040805160e560020a62461bcd02815260206004820152601160248201527f506f6f6c206e6f74206f70656e20796574000000000000000000000000000000604482015290519081900360640190fd5b826013548110611dd8576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613fd1833981519152604482015290519081900360640190fd5b3332148015611ded5750611deb33612f15565b155b611e2b5760405160e560020a62461bcd028152600401808060200182810382526023815260200180613f4d6023913960400191505060405180910390fd5b600084815260146020526040902060050154600160a060020a0316611e9a576040805160e560020a62461bcd02815260206004820152601e60248201527f506f6f6c20697320666f72204554482c2075736520496e766573744554480000604482015290519081900360640190fd5b600084815260146020526040902060050154611ec090600160a060020a03163385612f21565b6000611ecd33858761317d565b90506000611edc86863361323f565b9050611ee986838361354e565b6000611f08611f0087611efb8a613736565b613781565b6127106137e6565b90506000611f168783613850565b6000898152601460209081526040808320600590810154600160a060020a03168452909152902054909150611f4b90836138b0565b600089815260146020818152604080842060058181018054600160a060020a03908116885291855292862096909655938d905291905254600190910154611f979291821691168361390d565b611fa18884613a56565b5050505050505050565b60095481565b60065481565b600c5481565b601254600160a060020a031681565b600a5481565b611fda61179a565b600160a060020a031633600160a060020a031614806120035750600154600160a060020a031633145b612045576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b601055565b6000806000836013548110612097576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613fd1833981519152604482015290519081900360640190fd5b505050600091825250601460205260409020600d810154600c82015460059092015460ff90911692600160a060020a0390911690565b600060165482111580156120f1575060008281526017602052604090206003015415155b801561124b575050600090815260176020908152604080832054835260149091529020600701544267ffffffffffffffff909116111590565b6121326113c1565b15612187576040805160e560020a62461bcd02815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b6009543410156121e1576040805160e560020a62461bcd02815260206004820152601860248201527f4e65656420746f2070617920666f722074686520706f6f6c0000000000000000604482015290519081900360640190fd5b6121ea8a611191565b61223e576040805160e560020a62461bcd02815260206004820152601660248201527f4e6565642056616c696420455243323020546f6b656e00000000000000000000604482015290519081900360640190fd5b600160a060020a03841615806122585750612258846127a4565b6122ac576040805160e560020a62461bcd02815260206004820152601560248201527f4d61696e20636f696e206e6f7420696e206c6973740000000000000000000000604482015290519081900360640190fd5b6122b8600854426138b0565b891061230e576040805160e560020a62461bcd02815260206004820181905260248201527f506f6f6c206475726174696f6e2063616e27742062652074686174206c6f6e67604482015290519081900360640190fd5b61231a600854426138b0565b8567ffffffffffffffff161061237a576040805160e560020a62461bcd02815260206004820152601f60248201527f4c6f636b65642076616c75652063616e27742062652074686174206c6f6e6700604482015290519081900360640190fd5b868811156123bc5760405160e560020a62461bcd028152600401808060200182810382526033815260200180613ef46033913960400191505060405180910390fd5b60008711612414576040805160e560020a62461bcd02815260206004820152601060248201527f49742077696c6c206e6f7420776f726b00000000000000000000000000000000604482015290519081900360640190fd5b42821015612420574291505b8861242d426007546138b0565b1115612483576040805160e560020a62461bcd02815260206004820152601a60248201527f4e656564206d6f7265207468656e204d696e4475726174696f6e000000000000604482015290519081900360640190fd5b61248e8a3388612f21565b600081156124bc576124b76124b1611f006124a98d87613850565b600354613781565b846138b0565b6124be565b825b905060405180604001604052806040518060e001604052808e600160a060020a0316815260200133600160a060020a031681526020018d81526020018c81526020018b815260200188600160a060020a031681526020018a81525081526020016040518061010001604052808967ffffffffffffffff1681526020018a81526020018681526020018481526020016000815260200185815260200160001515815260200187151581525081525060146000601354815260200190815260200160002060008201518160000160008201518160000160006101000a815481600160a060020a030219169083600160a060020a0316021790555060208201518160010160006101000a815481600160a060020a030219169083600160a060020a0316021790555060408201518160020155606082015181600301556080820151816004015560a08201518160050160006101000a815481600160a060020a030219169083600160a060020a0316021790555060c08201518160060155505060208201518160070160008201518160000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c08201518160060160006101000a81548160ff02191690831515021790555060e08201518160060160016101000a81548160ff02191690831515021790555050509050506015600033600160a060020a0316600160a060020a0316815260200190815260200160002060135490806001815401808255809150506001900390600052602060002001600090919091909150557fbe4222bc407cb12031595fc55b46531e46308d31e4572c9c4360d8ae790e1a318b6013546040518083600160a060020a031681526020018281526020019250505060405180910390a161278e60135460016138b0565b6013555050505050505050505050565b600d5481565b600f5460009060a060020a900460ff16158061124b5750600e54601154604080517fcc44919b000000000000000000000000000000000000000000000000000000008152600160a060020a03868116600483015260248201939093529051600093929092169163cc44919b91604480820192602092909190829003018186803b15801561121d57600080fd5b61283861179a565b600160a060020a031633600160a060020a031614806128615750600154600160a060020a031633145b6128a3576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b601155565b3433600a5480831015612905576040805160e560020a62461bcd02815260206004820152601260248201527f53656e642045544820746f20696e766573740000000000000000000000000000604482015290519081900360640190fd5b60408051848152600160a060020a038416602082015281517f3a32cdd14cdfd431946dfa0b2aef5ace661340411aaadcaee6aef6738d302326929181900390910190a16129506113c1565b156129a5576040805160e560020a62461bcd02815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b60008481526014602052604090206009015442811115612a0f576040805160e560020a62461bcd02815260206004820152601160248201527f506f6f6c206e6f74206f70656e20796574000000000000000000000000000000604482015290519081900360640190fd5b846013548110612a57576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613fd1833981519152604482015290519081900360640190fd5b3332148015612a6c5750612a6a33612f15565b155b612aaa5760405160e560020a62461bcd028152600401808060200182810382526023815260200180613f4d6023913960400191505060405180910390fd5b600086815260146020526040902060050154600160a060020a031615612b1a576040805160e560020a62461bcd02815260206004820152601460248201527f506f6f6c206973206f6e6c7920666f7220455448000000000000000000000000604482015290519081900360640190fd5b6000612b2733348961317d565b90506000612b3688343361323f565b9050612b4388838361354e565b6000612b60611f0034611efb612710612b5b8e613736565b613850565b60008a815260146020526040902060010154909150612b8890600160a060020a031682613af9565b612b928983613a56565b505050505050505050565b612ba5612f11565b600160a060020a0316612bb661179a565b600160a060020a031614612c02576040805160e560020a62461bcd0281526020600482018190526024820152600080516020613f91833981519152604482015290519081900360640190fd5b600160a060020a038116612c4a5760405160e560020a62461bcd028152600401808060200182810382526026815260200180613f276026913960400191505060405180910390fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a360008054600160a060020a031916600160a060020a0392909216919091179055565b612cad61179a565b600160a060020a031633600160a060020a03161480612cd65750600154600160a060020a031633145b612d18576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b80612710811015610e42576003829055610e92565b612d3561179a565b600160a060020a031633600160a060020a03161480612d5e5750600154600160a060020a031633145b612da0576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b6012805474ff000000000000000000000000000000000000000019811660a060020a9182900460ff1615909102179055565b612dda612f11565b600160a060020a0316612deb61179a565b600160a060020a031614612e37576040805160e560020a62461bcd0281526020600482018190526024820152600080516020613f91833981519152604482015290519081900360640190fd5b600160a060020a03821660009081526005602052604081208054919055612e5f83838361390d565b505050565b6000816013548110612eae576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613fd1833981519152604482015290519081900360640190fd5b612eb7836118c2565b15612f08576000838152601460205260409020600d8101805460ff19166001908117909155815490820154600890920154612eff92600160a060020a0392831692169061390d565b6001915061118b565b50600092915050565b3390565b3b63ffffffff16151590565b8282828083600160a060020a031663dd62ed3e84306040518363ffffffff1660e060020a0281526004018083600160a060020a0316815260200182600160a060020a031681526020019250505060206040518083038186803b158015612f8657600080fd5b505afa158015612f9a573d6000803e3d6000fd5b505050506040513d6020811015612fb057600080fd5b50511015613008576040805160e560020a62461bcd02815260206004820152600c60248201527f6e6f20616c6c6f77616e63650000000000000000000000000000000000000000604482015290519081900360640190fd5b6000841161301557600080fd5b60006130218730613bdf565b604080517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a038981166004830152306024830152604482018990529151929350908916916323b872dd916064808201926020929091908290030181600087803b15801561309657600080fd5b505af11580156130aa573d6000803e3d6000fd5b505050506040513d60208110156130c057600080fd5b505060408051868152600160a060020a03808916602083015289168183015290517f1fecf4702e692891a7c2f0d328779b085efb5edd094fa5558bd5cd147a1679229181900360600190a16131158730613bdf565b61311f82876138b0565b14613174576040805160e560020a62461bcd02815260206004820152601d60248201527f7265636976652077726f6e6720616d6f756e74206f6620746f6b656e73000000604482015290519081900360640190fd5b50505050505050565b6040805160a081018252828152600160a060020a0385811660208084019182528385018781526000606086018181524260808801908152601680548452601786528984209851895595516001808a018054600160a060020a03191692909916919091179097559251600288015551600387015590516004909501949094553384526018815293832081548154808501835591855294842001939093559154909161322791906138b0565b6016819055613237906001613850565b949350505050565b600082818061324d87610f42565b600581111561325857fe5b141561329d576000868152601460205260409020600c015461327c90859087613c64565b5060008681526014602052604090206004015461329a908390613781565b90505b60016132a887610f42565b60058111156132b357fe5b14156134475760006132c48761204a565b92505050600160a060020a03811661334357600a5483101580156132ea5750600b548311155b61333e576040805160e560020a62461bcd02815260206004820152601b60248201527f496e766573746d656e7420616d6f756e74206e6f742076616c69640000000000604482015290519081900360640190fd5b6133ab565b600c5483101580156133575750600d548311155b6133ab576040805160e560020a62461bcd02815260206004820152601b60248201527f496e766573746d656e7420616d6f756e74206e6f742076616c69640000000000604482015290519081900360640190fd5b6133b485613d0a565b613408576040805160e560020a62461bcd02815260206004820152601a60248201527f4f6e6c7920504f5a20686f6c6465722063616e20696e76657374000000000000604482015290519081900360640190fd5b6000878152601460205260409020600c0154613425908690613dbd565b50600087815260146020526040902060030154613443908490613781565b9150505b683635c9adc5dea0000081106134fe576000868152601460205260409020600d0154610100900460ff161561348c5761348981683635c9adc5dea000006137e6565b90505b6000868152601460205260409020600801548111156134f5576040805160e560020a62461bcd02815260206004820152601d60248201527f4e6f7420656e6f75676820746f6b656e7320696e2074686520706f6f6c000000604482015290519081900360640190fd5b915061195b9050565b6040805160e560020a62461bcd02815260206004820152601f60248201527f57726f6e6720706f6f6c2073746174757320746f2043616c63546f6b656e7300604482015290519081900360640190fd5b6000613559846115a9565b1561369957613566611396565b1561366557600061357685611413565b505050505090506000613588866112dd565b50506012549394506135aa93869350600160a060020a03169150879050613e5b565b601254604080517f30e94541000000000000000000000000000000000000000000000000000000008152600160a060020a03858116600483015267ffffffffffffffff8516602483015260448201889052336064830152915191909216916330e945419160848083019260209291908290030181600087803b15801561362f57600080fd5b505af1158015613643573d6000803e3d6000fd5b505050506040513d602081101561365957600080fd5b50519250613694915050565b60008381526017602052604090206003015461368190836138b0565b6000848152601760205260409020600301555b6136d1565b6000848152601460209081526040808320548684526017909252909120600101546136d191600160a060020a0390811691168461390d565b600083815260176020908152604091829020600101548251868152600160a060020a039091169181019190915280820183905290517ffc9e7397d84595087ce6536b10914c5b003f581f8424b7dc97df1e252383ac719181900360600190a150505050565b60008061374283610f42565b600581111561374d57fe5b141561375c575060025461124e565b600161376783610f42565b600581111561377257fe5b141561124e575060065461124e565b600082613790575060006137e0565b8282028284828161379d57fe5b04146137dd5760405160e560020a62461bcd028152600401808060200182810382526021815260200180613f706021913960400191505060405180910390fd5b90505b92915050565b600080821161383f576040805160e560020a62461bcd02815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161384857fe5b049392505050565b6000828211156138aa576040805160e560020a62461bcd02815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000828201838110156137dd576040805160e560020a62461bcd02815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006139198430613bdf565b60408051848152600160a060020a03808716602083015287168183015290519192507fe4d818e6f992efbd60db553f3edce819a199baec79a784b95c89bc8ee86f2584919081900360600190a183600160a060020a031663a9059cbb84846040518363ffffffff1660e060020a0281526004018083600160a060020a0316815260200182815260200192505050602060405180830381600087803b1580156139c057600080fd5b505af11580156139d4573d6000803e3d6000fd5b505050506040513d60208110156139ea57600080fd5b508190506139fb6124b18630613bdf565b14613a50576040805160e560020a62461bcd02815260206004820152601d60248201527f7265636976652077726f6e6720616d6f756e74206f6620746f6b656e73000000604482015290519081900360640190fd5b50505050565b600082815260146020526040902060080154613a729082613850565b6000838152601460205260409020600801819055613ac2576040805183815290517f5aa793a17b0774b891ce2b0dd5dbe8f04132e547df384ab1053d32470050b5fa9181900360200190a1610e92565b6040805183815290517f46074c56f8b8129e3ada6879521255be1596856f97bf16070e5cdd3a10dc1df79181900360200190a15050565b60408051828152600160a060020a038416602082015281517feca5ae7bd9109b0f7d228f3f8a8cc834a1f995af62df6dc226dc3ab3f38dc7b3929181900390910190a1604051600160a060020a03831680319183156108fc029084906000818181858888f19350505050158015613b74573d6000803e3d6000fd5b5082600160a060020a031631613b8a82846138b0565b14612e5f576040805160e560020a62461bcd02815260206004820152601d60248201527f546865207472616e7366657220646964206e6f7420636f6d706c697465000000604482015290519081900360640190fd5b600082600160a060020a03166370a08231836040518263ffffffff1660e060020a0281526004018082600160a060020a0316815260200191505060206040518083038186803b158015613c3157600080fd5b505afa158015613c45573d6000803e3d6000fd5b505050506040513d6020811015613c5b57600080fd5b50519392505050565b600082613c735750600161195b565b600e54604080517f1d759fb2000000000000000000000000000000000000000000000000000000008152600160a060020a038781166004830152602482018790526044820186905291519190921691631d759fb291606480830192600092919082900301818387803b158015613ce857600080fd5b505af1158015613cfc573d6000803e3d6000fd5b506001979650505050505050565b600f54600090600160a060020a0316613d255750600161124e565b600f54604080517fb217bb01000000000000000000000000000000000000000000000000000000008152600160a060020a0385811660048301529151919092169163b217bb01916024808301926020929190829003018186803b158015613d8b57600080fd5b505afa158015613d9f573d6000803e3d6000fd5b505050506040513d6020811015613db557600080fd5b505192915050565b600081613dcc575060016137e0565b600e54604080517f24bede3e000000000000000000000000000000000000000000000000000000008152600160a060020a03868116600483015260248201869052915191909216916324bede3e91604480830192600092919082900301818387803b158015613e3a57600080fd5b505af1158015613e4e573d6000803e3d6000fd5b5060019695505050505050565b60008111613e6857600080fd5b82600160a060020a031663095ea7b383836040518363ffffffff1660e060020a0281526004018083600160a060020a0316815260200182815260200192505050602060405180830381600087803b158015613ec257600080fd5b505af1158015613ed6573d6000803e3d6000fd5b505050506040513d6020811015613eec57600080fd5b505050505056fe504f5a20686f6c64657273206e65656420746f20686176652062657474657220707269636520286f72207468652073616d65294f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536f6d65207468696e672077726f6e67207769746820746865206d736753656e646572536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572417574686f72697a6174696f6e204572726f7200000000000000000000000000496e76616c696420506f6f6c2049440000000000000000000000000000000000a2646970667358221220f0f1c2537b7f061754417a8c2c2cac5676a68ec8e5a0db65d9ff4dab6649c9e764736f6c634300060c0033", - "deployedBytecode": "0x60806040526004361061039e5760003560e060020a90048063991e979a116101e0578063ca4772bb11610106578063e8906716116100a4578063f318824811610073578063f318824814610cb3578063f32a68cb14610cdd578063fc1a86ff14610cf2578063fd711a5514610d2d576103bb565b8063e890671614610c06578063ee63e8bd14610c39578063f04be48b14610c63578063f2fde38b14610c80576103bb565b8063d0f52910116100e0578063d0f5291014610b07578063e34c777214610b5a578063e4ec0f6814610b84578063e569a6c014610bf1576103bb565b8063ca4772bb14610ab3578063cab1704614610ac8578063ccb801bf14610add576103bb565b8063b5f98b8e1161017e578063be33a3ec1161014d578063be33a3ec14610a44578063bed0604114610a74578063bef7a2f014610a89578063c34434e514610a9e576103bb565b8063b5f98b8e146109a2578063b7d9b6f1146109b7578063b973d7bc146109e7578063b977eddf14610a1a576103bb565b8063aa825486116101ba578063aa82548614610930578063aac5da5c14610945578063aaf1fe8f1461095a578063abb7add21461098d576103bb565b8063991e979a146108a9578063a73ff128146108dc578063a87d2be414610906576103bb565b806360f9e80a116102c557806375c64dd1116102635780638da5cb5b116102325780638da5cb5b1461085557806391314dde1461086a5780639363fc541461087f5780639642ec0c14610894576103bb565b806375c64dd1146107c857806376ab7b44146107dd5780638b1a2dd8146108105780638c788de014610840576103bb565b8063668189671161029f57806366818967146107415780636b1fe0b6146107745780636b58f2f614610789578063715018a6146107b3576103bb565b806360f9e80a1461061657806360fdd7c41461067357806363552a49146106dc576103bb565b806327ca36ec1161033d5780635796bc431161030c5780635796bc43146105c25780635c3f8312146105d75780635c975abb146105ec5780635cdddc7c14610601576103bb565b806327ca36ec146104fe5780633e90eea714610513578063410040251461054357806353eb3167146105ad576103bb565b80630cd8e965116103795780630cd8e965146104265780630d08caa014610457578063114fa9bd146104a257806318c9be4a146104e9576103bb565b8062172ddf146103c0578063043d520b146103ea57806307b027ed14610411576103bb565b366103bb5760005460a060020a900460ff166103b957600080fd5b005b600080fd5b3480156103cc57600080fd5b506103b9600480360360208110156103e357600080fd5b5035610d57565b3480156103f657600080fd5b506103ff610e96565b60408051918252519081900360200190f35b34801561041d57600080fd5b506103b9610e9c565b34801561043257600080fd5b5061043b610f33565b60408051600160a060020a039092168252519081900360200190f35b34801561046357600080fd5b506104816004803603602081101561047a57600080fd5b5035610f42565b6040518082600581111561049157fe5b815260200191505060405180910390f35b3480156104ae57600080fd5b506104d5600480360360208110156104c557600080fd5b5035600160a060020a0316611191565b604080519115158252519081900360200190f35b3480156104f557600080fd5b506103ff611253565b34801561050a57600080fd5b506103ff611259565b34801561051f57600080fd5b506103b96004803603604081101561053657600080fd5b508035906020013561125f565b34801561054f57600080fd5b5061056d6004803603602081101561056657600080fd5b50356112dd565b6040805167ffffffffffffffff909716875260208701959095528585019390935260608501919091526080840152151560a0830152519081900360c00190f35b3480156105b957600080fd5b506103ff611381565b3480156105ce57600080fd5b5061043b611387565b3480156105e357600080fd5b506104d5611396565b3480156105f857600080fd5b506104d56113c1565b34801561060d57600080fd5b506104d56113ca565b34801561062257600080fd5b506106406004803603602081101561063957600080fd5b50356113da565b60408051958652600160a060020a0390941660208601528484019290925260608401526080830152519081900360a00190f35b34801561067f57600080fd5b5061069d6004803603602081101561069657600080fd5b5035611413565b60408051600160a060020a039788168152959096166020860152848601939093526060840191909152608083015260a082015290519081900360c00190f35b3480156106e857600080fd5b506106f16114ad565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561072d578181015183820152602001610715565b505050509050019250505060405180910390f35b34801561074d57600080fd5b506103b96004803603602081101561076457600080fd5b5035600160a060020a031661150e565b34801561078057600080fd5b506103ff6115a3565b34801561079557600080fd5b506104d5600480360360208110156107ac57600080fd5b50356115a9565b3480156107bf57600080fd5b506103b96115cc565b3480156107d457600080fd5b506103ff61167b565b3480156107e957600080fd5b506103b96004803603602081101561080057600080fd5b5035600160a060020a0316611681565b34801561081c57600080fd5b506103b96004803603604081101561083357600080fd5b5080359060200135611716565b34801561084c57600080fd5b506103ff611794565b34801561086157600080fd5b5061043b61179a565b34801561087657600080fd5b506106f16117a9565b34801561088b57600080fd5b506104d5611808565b3480156108a057600080fd5b5061043b611818565b3480156108b557600080fd5b506103b9600480360360208110156108cc57600080fd5b5035600160a060020a0316611827565b3480156108e857600080fd5b506104d5600480360360208110156108ff57600080fd5b50356118c2565b34801561091257600080fd5b506103b96004803603602081101561092957600080fd5b5035611962565b34801561093c57600080fd5b506103ff6119f6565b34801561095157600080fd5b506103b96119fc565b34801561096657600080fd5b506103b96004803603602081101561097d57600080fd5b5035600160a060020a0316611a93565b34801561099957600080fd5b506103ff611b28565b3480156109ae57600080fd5b506104d5611b2e565b3480156109c357600080fd5b506103b9600480360360408110156109da57600080fd5b5080359060200135611b3e565b3480156109f357600080fd5b506103b960048036036020811015610a0a57600080fd5b5035600160a060020a0316611bbc565b348015610a2657600080fd5b506103b960048036036020811015610a3d57600080fd5b5035611c51565b348015610a5057600080fd5b506103b960048036036040811015610a6757600080fd5b5080359060200135611cc9565b348015610a8057600080fd5b506103ff611fab565b348015610a9557600080fd5b506103ff611fb1565b348015610aaa57600080fd5b506103ff611fb7565b348015610abf57600080fd5b5061043b611fbd565b348015610ad457600080fd5b506103ff611fcc565b348015610ae957600080fd5b506103b960048036036020811015610b0057600080fd5b5035611fd2565b348015610b1357600080fd5b50610b3160048036036020811015610b2a57600080fd5b503561204a565b6040805193151584526020840192909252600160a060020a031682820152519081900360600190f35b348015610b6657600080fd5b506104d560048036036020811015610b7d57600080fd5b50356120cd565b6103b96004803603610140811015610b9b57600080fd5b50600160a060020a03813581169160208101359160408201359160608101359160808201359167ffffffffffffffff60a0820135169160c0820135169060e081013515159061010081013590610120013561212a565b348015610bfd57600080fd5b506103ff61279e565b348015610c1257600080fd5b506104d560048036036020811015610c2957600080fd5b5035600160a060020a03166127a4565b348015610c4557600080fd5b506103b960048036036020811015610c5c57600080fd5b5035612830565b6103b960048036036020811015610c7957600080fd5b50356128a8565b348015610c8c57600080fd5b506103b960048036036020811015610ca357600080fd5b5035600160a060020a0316612b9d565b348015610cbf57600080fd5b506103b960048036036020811015610cd657600080fd5b5035612ca5565b348015610ce957600080fd5b506103b9612d2d565b348015610cfe57600080fd5b506103b960048036036040811015610d1557600080fd5b50600160a060020a0381358116916020013516612dd2565b348015610d3957600080fd5b506104d560048036036020811015610d5057600080fd5b5035612e64565b610d5f61179a565b600160a060020a031633600160a060020a03161480610d885750600154600160a060020a031633145b610dca576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b80612710811015610e42578160025480821115610deb576006849055610e3b565b6040805160e560020a62461bcd02815260206004820152600a60248201527f4e6f742062696767657200000000000000000000000000000000000000000000604482015290519081900360640190fd5b5050610e92565b6040805160e560020a62461bcd02815260206004820152600c60248201527f4e6f7420696e2072616e67650000000000000000000000000000000000000000604482015290519081900360640190fd5b5050565b60115481565b610ea4612f11565b600160a060020a0316610eb561179a565b600160a060020a031614610f01576040805160e560020a62461bcd0281526020600482018190526024820152600080516020613f91833981519152604482015290519081900360640190fd5b600f805474ff000000000000000000000000000000000000000019811660a060020a9182900460ff1615909102179055565b600154600160a060020a031681565b6000816013548110610f8c576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613fd1833981519152604482015290519081900360640190fd5b600083815260146020526040902060090154421015610fae576002915061118b565b6000838152601460205260409020600a015442108015610fde575060008381526014602052604090206008015415155b15610fec576000915061118b565b6000838152601460205260409020600a0154421080159061101d575060008381526014602052604090206008015415155b8015611039575060008381526014602052604090206002015442105b15611047576001915061118b565b60008381526014602052604090206008015415801561106a575061106a836115a9565b8015611086575060008381526014602052604090206002015442105b15611094576003915061118b565b6000838152601460205260409020600801541580156110b957506110b7836115a9565b155b156110c7576005915061118b565b60008381526014602052604090206002015442108015906110ee57506110ec836115a9565b155b1561111f576000838152601460205260409020600d015460ff1615611116576005915061118b565b6004915061118b565b6000838152601460205260409020600d015460ff168061114e5750600083815260146020526040902060080154155b80156111785750600083815260146020526040902060068101546008820154600b90920154909101145b15611186576005915061118b565b600491505b50919050565b600f5460009060a060020a900460ff16158061124b5750600e54601054604080517fcc44919b000000000000000000000000000000000000000000000000000000008152600160a060020a03868116600483015260248201939093529051600093929092169163cc44919b91604480820192602092909190829003018186803b15801561121d57600080fd5b505afa158015611231573d6000803e3d6000fd5b505050506040513d602081101561124757600080fd5b5051115b90505b919050565b60105481565b60075481565b61126761179a565b600160a060020a031633600160a060020a031614806112905750600154600160a060020a031633145b6112d2576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b600a91909155600b55565b60008060008060008086601354811061132e576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613fd1833981519152604482015290519081900360640190fd5b505050600094855250506014602052505060409020600781015460088201546009830154600a840154600b850154600d9095015467ffffffffffffffff9094169592949193909261010090910460ff1690565b60025481565b600f54600160a060020a031681565b60125460009060a060020a900460ff1680156113bc5750601254600160a060020a031615155b905090565b60045460ff1690565b600f5460a060020a900460ff1681565b600090815260176020526040902080546001820154600283015460038401546004909401549294600160a060020a039092169390929091565b600080600080600080866013548110611464576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613fd1833981519152604482015290519081900360640190fd5b50505060009485525050601460205250506040902080546001820154600283015460038401546004850154600690950154600160a060020a039485169694909316949193909290565b3360009081526015602090815260409182902080548351818402810184019094528084526060939283018282801561150457602002820191906000526020600020905b8154815260200190600101908083116114f0575b5050505050905090565b61151661179a565b600160a060020a031633600160a060020a0316148061153f5750600154600160a060020a031633145b611581576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b60018054600160a060020a031916600160a060020a0392909216919091179055565b60165490565b6000908152601460205260409020600701544267ffffffffffffffff9091161190565b6115d4612f11565b600160a060020a03166115e561179a565b600160a060020a031614611631576040805160e560020a62461bcd0281526020600482018190526024820152600080516020613f91833981519152604482015290519081900360640190fd5b60008054604051600160a060020a03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360008054600160a060020a0319169055565b60085481565b61168961179a565b600160a060020a031633600160a060020a031614806116b25750600154600160a060020a031633145b6116f4576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b600f8054600160a060020a031916600160a060020a0392909216919091179055565b61171e61179a565b600160a060020a031633600160a060020a031614806117475750600154600160a060020a031633145b611789576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b600c91909155600d55565b60135481565b600054600160a060020a031690565b3360009081526018602090815260409182902080548351818402810184019094528084526060939283018282801561150457602002820191906000526020600020908154815260200190600101908083116114f0575050505050905090565b60125460a060020a900460ff1681565b600e54600160a060020a031681565b61182f612f11565b600160a060020a031661184061179a565b600160a060020a03161461188c576040805160e560020a62461bcd0281526020600482018190526024820152600080516020613f91833981519152604482015290519081900360640190fd5b604051600160a060020a03821690303180156108fc02916000818181858888f19350505050158015610e92573d6000803e3d6000fd5b600081601354811061190c576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613fd1833981519152604482015290519081900360640190fd5b600083815260146020526040902060020154421080159061193d575060008381526014602052604090206008015415155b801561195b57506000838152601460205260409020600d015460ff16155b9392505050565b61196a61179a565b600160a060020a031633600160a060020a031614806119935750600154600160a060020a031633145b6119d5576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b80612710811015610e42576006548280821115610deb576002849055610e3b565b600b5481565b611a04612f11565b600160a060020a0316611a1561179a565b600160a060020a031614611a61576040805160e560020a62461bcd0281526020600482018190526024820152600080516020613f91833981519152604482015290519081900360640190fd5b6000805474ff000000000000000000000000000000000000000019811660a060020a9182900460ff1615909102179055565b611a9b61179a565b600160a060020a031633600160a060020a03161480611ac45750600154600160a060020a031633145b611b06576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b60128054600160a060020a031916600160a060020a0392909216919091179055565b60035481565b60005460a060020a900460ff1681565b611b4661179a565b600160a060020a031633600160a060020a03161480611b6f5750600154600160a060020a031633145b611bb1576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b600791909155600855565b611bc461179a565b600160a060020a031633600160a060020a03161480611bed5750600154600160a060020a031633145b611c2f576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b600e8054600160a060020a031916600160a060020a0392909216919091179055565b611c5961179a565b600160a060020a031633600160a060020a03161480611c825750600154600160a060020a031633145b611cc4576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b600955565b611cd16113c1565b15611d26576040805160e560020a62461bcd02815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b60008281526014602052604090206009015442811115611d90576040805160e560020a62461bcd02815260206004820152601160248201527f506f6f6c206e6f74206f70656e20796574000000000000000000000000000000604482015290519081900360640190fd5b826013548110611dd8576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613fd1833981519152604482015290519081900360640190fd5b3332148015611ded5750611deb33612f15565b155b611e2b5760405160e560020a62461bcd028152600401808060200182810382526023815260200180613f4d6023913960400191505060405180910390fd5b600084815260146020526040902060050154600160a060020a0316611e9a576040805160e560020a62461bcd02815260206004820152601e60248201527f506f6f6c20697320666f72204554482c2075736520496e766573744554480000604482015290519081900360640190fd5b600084815260146020526040902060050154611ec090600160a060020a03163385612f21565b6000611ecd33858761317d565b90506000611edc86863361323f565b9050611ee986838361354e565b6000611f08611f0087611efb8a613736565b613781565b6127106137e6565b90506000611f168783613850565b6000898152601460209081526040808320600590810154600160a060020a03168452909152902054909150611f4b90836138b0565b600089815260146020818152604080842060058181018054600160a060020a03908116885291855292862096909655938d905291905254600190910154611f979291821691168361390d565b611fa18884613a56565b5050505050505050565b60095481565b60065481565b600c5481565b601254600160a060020a031681565b600a5481565b611fda61179a565b600160a060020a031633600160a060020a031614806120035750600154600160a060020a031633145b612045576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b601055565b6000806000836013548110612097576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613fd1833981519152604482015290519081900360640190fd5b505050600091825250601460205260409020600d810154600c82015460059092015460ff90911692600160a060020a0390911690565b600060165482111580156120f1575060008281526017602052604090206003015415155b801561124b575050600090815260176020908152604080832054835260149091529020600701544267ffffffffffffffff909116111590565b6121326113c1565b15612187576040805160e560020a62461bcd02815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b6009543410156121e1576040805160e560020a62461bcd02815260206004820152601860248201527f4e65656420746f2070617920666f722074686520706f6f6c0000000000000000604482015290519081900360640190fd5b6121ea8a611191565b61223e576040805160e560020a62461bcd02815260206004820152601660248201527f4e6565642056616c696420455243323020546f6b656e00000000000000000000604482015290519081900360640190fd5b600160a060020a03841615806122585750612258846127a4565b6122ac576040805160e560020a62461bcd02815260206004820152601560248201527f4d61696e20636f696e206e6f7420696e206c6973740000000000000000000000604482015290519081900360640190fd5b6122b8600854426138b0565b891061230e576040805160e560020a62461bcd02815260206004820181905260248201527f506f6f6c206475726174696f6e2063616e27742062652074686174206c6f6e67604482015290519081900360640190fd5b61231a600854426138b0565b8567ffffffffffffffff161061237a576040805160e560020a62461bcd02815260206004820152601f60248201527f4c6f636b65642076616c75652063616e27742062652074686174206c6f6e6700604482015290519081900360640190fd5b868811156123bc5760405160e560020a62461bcd028152600401808060200182810382526033815260200180613ef46033913960400191505060405180910390fd5b60008711612414576040805160e560020a62461bcd02815260206004820152601060248201527f49742077696c6c206e6f7420776f726b00000000000000000000000000000000604482015290519081900360640190fd5b42821015612420574291505b8861242d426007546138b0565b1115612483576040805160e560020a62461bcd02815260206004820152601a60248201527f4e656564206d6f7265207468656e204d696e4475726174696f6e000000000000604482015290519081900360640190fd5b61248e8a3388612f21565b600081156124bc576124b76124b1611f006124a98d87613850565b600354613781565b846138b0565b6124be565b825b905060405180604001604052806040518060e001604052808e600160a060020a0316815260200133600160a060020a031681526020018d81526020018c81526020018b815260200188600160a060020a031681526020018a81525081526020016040518061010001604052808967ffffffffffffffff1681526020018a81526020018681526020018481526020016000815260200185815260200160001515815260200187151581525081525060146000601354815260200190815260200160002060008201518160000160008201518160000160006101000a815481600160a060020a030219169083600160a060020a0316021790555060208201518160010160006101000a815481600160a060020a030219169083600160a060020a0316021790555060408201518160020155606082015181600301556080820151816004015560a08201518160050160006101000a815481600160a060020a030219169083600160a060020a0316021790555060c08201518160060155505060208201518160070160008201518160000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c08201518160060160006101000a81548160ff02191690831515021790555060e08201518160060160016101000a81548160ff02191690831515021790555050509050506015600033600160a060020a0316600160a060020a0316815260200190815260200160002060135490806001815401808255809150506001900390600052602060002001600090919091909150557fbe4222bc407cb12031595fc55b46531e46308d31e4572c9c4360d8ae790e1a318b6013546040518083600160a060020a031681526020018281526020019250505060405180910390a161278e60135460016138b0565b6013555050505050505050505050565b600d5481565b600f5460009060a060020a900460ff16158061124b5750600e54601154604080517fcc44919b000000000000000000000000000000000000000000000000000000008152600160a060020a03868116600483015260248201939093529051600093929092169163cc44919b91604480820192602092909190829003018186803b15801561121d57600080fd5b61283861179a565b600160a060020a031633600160a060020a031614806128615750600154600160a060020a031633145b6128a3576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b601155565b3433600a5480831015612905576040805160e560020a62461bcd02815260206004820152601260248201527f53656e642045544820746f20696e766573740000000000000000000000000000604482015290519081900360640190fd5b60408051848152600160a060020a038416602082015281517f3a32cdd14cdfd431946dfa0b2aef5ace661340411aaadcaee6aef6738d302326929181900390910190a16129506113c1565b156129a5576040805160e560020a62461bcd02815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b60008481526014602052604090206009015442811115612a0f576040805160e560020a62461bcd02815260206004820152601160248201527f506f6f6c206e6f74206f70656e20796574000000000000000000000000000000604482015290519081900360640190fd5b846013548110612a57576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613fd1833981519152604482015290519081900360640190fd5b3332148015612a6c5750612a6a33612f15565b155b612aaa5760405160e560020a62461bcd028152600401808060200182810382526023815260200180613f4d6023913960400191505060405180910390fd5b600086815260146020526040902060050154600160a060020a031615612b1a576040805160e560020a62461bcd02815260206004820152601460248201527f506f6f6c206973206f6e6c7920666f7220455448000000000000000000000000604482015290519081900360640190fd5b6000612b2733348961317d565b90506000612b3688343361323f565b9050612b4388838361354e565b6000612b60611f0034611efb612710612b5b8e613736565b613850565b60008a815260146020526040902060010154909150612b8890600160a060020a031682613af9565b612b928983613a56565b505050505050505050565b612ba5612f11565b600160a060020a0316612bb661179a565b600160a060020a031614612c02576040805160e560020a62461bcd0281526020600482018190526024820152600080516020613f91833981519152604482015290519081900360640190fd5b600160a060020a038116612c4a5760405160e560020a62461bcd028152600401808060200182810382526026815260200180613f276026913960400191505060405180910390fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a360008054600160a060020a031916600160a060020a0392909216919091179055565b612cad61179a565b600160a060020a031633600160a060020a03161480612cd65750600154600160a060020a031633145b612d18576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b80612710811015610e42576003829055610e92565b612d3561179a565b600160a060020a031633600160a060020a03161480612d5e5750600154600160a060020a031633145b612da0576040805160e560020a62461bcd0281526020600482015260136024820152600080516020613fb1833981519152604482015290519081900360640190fd5b6012805474ff000000000000000000000000000000000000000019811660a060020a9182900460ff1615909102179055565b612dda612f11565b600160a060020a0316612deb61179a565b600160a060020a031614612e37576040805160e560020a62461bcd0281526020600482018190526024820152600080516020613f91833981519152604482015290519081900360640190fd5b600160a060020a03821660009081526005602052604081208054919055612e5f83838361390d565b505050565b6000816013548110612eae576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020613fd1833981519152604482015290519081900360640190fd5b612eb7836118c2565b15612f08576000838152601460205260409020600d8101805460ff19166001908117909155815490820154600890920154612eff92600160a060020a0392831692169061390d565b6001915061118b565b50600092915050565b3390565b3b63ffffffff16151590565b8282828083600160a060020a031663dd62ed3e84306040518363ffffffff1660e060020a0281526004018083600160a060020a0316815260200182600160a060020a031681526020019250505060206040518083038186803b158015612f8657600080fd5b505afa158015612f9a573d6000803e3d6000fd5b505050506040513d6020811015612fb057600080fd5b50511015613008576040805160e560020a62461bcd02815260206004820152600c60248201527f6e6f20616c6c6f77616e63650000000000000000000000000000000000000000604482015290519081900360640190fd5b6000841161301557600080fd5b60006130218730613bdf565b604080517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a038981166004830152306024830152604482018990529151929350908916916323b872dd916064808201926020929091908290030181600087803b15801561309657600080fd5b505af11580156130aa573d6000803e3d6000fd5b505050506040513d60208110156130c057600080fd5b505060408051868152600160a060020a03808916602083015289168183015290517f1fecf4702e692891a7c2f0d328779b085efb5edd094fa5558bd5cd147a1679229181900360600190a16131158730613bdf565b61311f82876138b0565b14613174576040805160e560020a62461bcd02815260206004820152601d60248201527f7265636976652077726f6e6720616d6f756e74206f6620746f6b656e73000000604482015290519081900360640190fd5b50505050505050565b6040805160a081018252828152600160a060020a0385811660208084019182528385018781526000606086018181524260808801908152601680548452601786528984209851895595516001808a018054600160a060020a03191692909916919091179097559251600288015551600387015590516004909501949094553384526018815293832081548154808501835591855294842001939093559154909161322791906138b0565b6016819055613237906001613850565b949350505050565b600082818061324d87610f42565b600581111561325857fe5b141561329d576000868152601460205260409020600c015461327c90859087613c64565b5060008681526014602052604090206004015461329a908390613781565b90505b60016132a887610f42565b60058111156132b357fe5b14156134475760006132c48761204a565b92505050600160a060020a03811661334357600a5483101580156132ea5750600b548311155b61333e576040805160e560020a62461bcd02815260206004820152601b60248201527f496e766573746d656e7420616d6f756e74206e6f742076616c69640000000000604482015290519081900360640190fd5b6133ab565b600c5483101580156133575750600d548311155b6133ab576040805160e560020a62461bcd02815260206004820152601b60248201527f496e766573746d656e7420616d6f756e74206e6f742076616c69640000000000604482015290519081900360640190fd5b6133b485613d0a565b613408576040805160e560020a62461bcd02815260206004820152601a60248201527f4f6e6c7920504f5a20686f6c6465722063616e20696e76657374000000000000604482015290519081900360640190fd5b6000878152601460205260409020600c0154613425908690613dbd565b50600087815260146020526040902060030154613443908490613781565b9150505b683635c9adc5dea0000081106134fe576000868152601460205260409020600d0154610100900460ff161561348c5761348981683635c9adc5dea000006137e6565b90505b6000868152601460205260409020600801548111156134f5576040805160e560020a62461bcd02815260206004820152601d60248201527f4e6f7420656e6f75676820746f6b656e7320696e2074686520706f6f6c000000604482015290519081900360640190fd5b915061195b9050565b6040805160e560020a62461bcd02815260206004820152601f60248201527f57726f6e6720706f6f6c2073746174757320746f2043616c63546f6b656e7300604482015290519081900360640190fd5b6000613559846115a9565b1561369957613566611396565b1561366557600061357685611413565b505050505090506000613588866112dd565b50506012549394506135aa93869350600160a060020a03169150879050613e5b565b601254604080517f30e94541000000000000000000000000000000000000000000000000000000008152600160a060020a03858116600483015267ffffffffffffffff8516602483015260448201889052336064830152915191909216916330e945419160848083019260209291908290030181600087803b15801561362f57600080fd5b505af1158015613643573d6000803e3d6000fd5b505050506040513d602081101561365957600080fd5b50519250613694915050565b60008381526017602052604090206003015461368190836138b0565b6000848152601760205260409020600301555b6136d1565b6000848152601460209081526040808320548684526017909252909120600101546136d191600160a060020a0390811691168461390d565b600083815260176020908152604091829020600101548251868152600160a060020a039091169181019190915280820183905290517ffc9e7397d84595087ce6536b10914c5b003f581f8424b7dc97df1e252383ac719181900360600190a150505050565b60008061374283610f42565b600581111561374d57fe5b141561375c575060025461124e565b600161376783610f42565b600581111561377257fe5b141561124e575060065461124e565b600082613790575060006137e0565b8282028284828161379d57fe5b04146137dd5760405160e560020a62461bcd028152600401808060200182810382526021815260200180613f706021913960400191505060405180910390fd5b90505b92915050565b600080821161383f576040805160e560020a62461bcd02815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161384857fe5b049392505050565b6000828211156138aa576040805160e560020a62461bcd02815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000828201838110156137dd576040805160e560020a62461bcd02815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006139198430613bdf565b60408051848152600160a060020a03808716602083015287168183015290519192507fe4d818e6f992efbd60db553f3edce819a199baec79a784b95c89bc8ee86f2584919081900360600190a183600160a060020a031663a9059cbb84846040518363ffffffff1660e060020a0281526004018083600160a060020a0316815260200182815260200192505050602060405180830381600087803b1580156139c057600080fd5b505af11580156139d4573d6000803e3d6000fd5b505050506040513d60208110156139ea57600080fd5b508190506139fb6124b18630613bdf565b14613a50576040805160e560020a62461bcd02815260206004820152601d60248201527f7265636976652077726f6e6720616d6f756e74206f6620746f6b656e73000000604482015290519081900360640190fd5b50505050565b600082815260146020526040902060080154613a729082613850565b6000838152601460205260409020600801819055613ac2576040805183815290517f5aa793a17b0774b891ce2b0dd5dbe8f04132e547df384ab1053d32470050b5fa9181900360200190a1610e92565b6040805183815290517f46074c56f8b8129e3ada6879521255be1596856f97bf16070e5cdd3a10dc1df79181900360200190a15050565b60408051828152600160a060020a038416602082015281517feca5ae7bd9109b0f7d228f3f8a8cc834a1f995af62df6dc226dc3ab3f38dc7b3929181900390910190a1604051600160a060020a03831680319183156108fc029084906000818181858888f19350505050158015613b74573d6000803e3d6000fd5b5082600160a060020a031631613b8a82846138b0565b14612e5f576040805160e560020a62461bcd02815260206004820152601d60248201527f546865207472616e7366657220646964206e6f7420636f6d706c697465000000604482015290519081900360640190fd5b600082600160a060020a03166370a08231836040518263ffffffff1660e060020a0281526004018082600160a060020a0316815260200191505060206040518083038186803b158015613c3157600080fd5b505afa158015613c45573d6000803e3d6000fd5b505050506040513d6020811015613c5b57600080fd5b50519392505050565b600082613c735750600161195b565b600e54604080517f1d759fb2000000000000000000000000000000000000000000000000000000008152600160a060020a038781166004830152602482018790526044820186905291519190921691631d759fb291606480830192600092919082900301818387803b158015613ce857600080fd5b505af1158015613cfc573d6000803e3d6000fd5b506001979650505050505050565b600f54600090600160a060020a0316613d255750600161124e565b600f54604080517fb217bb01000000000000000000000000000000000000000000000000000000008152600160a060020a0385811660048301529151919092169163b217bb01916024808301926020929190829003018186803b158015613d8b57600080fd5b505afa158015613d9f573d6000803e3d6000fd5b505050506040513d6020811015613db557600080fd5b505192915050565b600081613dcc575060016137e0565b600e54604080517f24bede3e000000000000000000000000000000000000000000000000000000008152600160a060020a03868116600483015260248201869052915191909216916324bede3e91604480830192600092919082900301818387803b158015613e3a57600080fd5b505af1158015613e4e573d6000803e3d6000fd5b5060019695505050505050565b60008111613e6857600080fd5b82600160a060020a031663095ea7b383836040518363ffffffff1660e060020a0281526004018083600160a060020a0316815260200182815260200192505050602060405180830381600087803b158015613ec257600080fd5b505af1158015613ed6573d6000803e3d6000fd5b505050506040513d6020811015613eec57600080fd5b505050505056fe504f5a20686f6c64657273206e65656420746f20686176652062657474657220707269636520286f72207468652073616d65294f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536f6d65207468696e672077726f6e67207769746820746865206d736753656e646572536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572417574686f72697a6174696f6e204572726f7200000000000000000000000000496e76616c696420506f6f6c2049440000000000000000000000000000000000a2646970667358221220f0f1c2537b7f061754417a8c2c2cac5676a68ec8e5a0db65d9ff4dab6649c9e764736f6c634300060c0033", - "immutableReferences": {}, - "sourceMap": "87:458:6:-:0;;;127:27;;;;;;;;;-1:-1:-1;884:17:7;904:12;:10;;;;:12;:::i;:::-;926:6;:18;;-1:-1:-1;;;;;;926:18:7;-1:-1:-1;;;;;926:18:7;;;;;;;959:43;;926:18;;-1:-1:-1;926:18:7;959:43;;926:6;;959:43;-1:-1:-1;257:5:14;246:16;;-1:-1:-1;;;;;;246:16:14;;;;493:29:15;;-1:-1:-1;;;;;;493:29:15;;;166:2:18;157:6;:11;199:4;188:8;:15;935:7:12;:15;;-1:-1:-1;;935:15:12;;;246:8:14;470:3:3;:8;605:21;591:11;:35;664:5;649:12;:20;714:12;699;:27;87:458:6;;598:104:11;685:10;598:104;:::o;87:458:6:-;;;;;;;", - "deployedSourceMap": "87:458:6:-:0;;;;;;;;;;-1:-1:-1;;;87:458:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;582:8:14;;-1:-1:-1;;;582:8:14;;;;577:23;;592:8;;;577:23;87:458:6;;;;;3313:163:3;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3313:163:3;;:::i;1449:28::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;1586:95;;;;;;;;;;;;;:::i;157:31:15:-;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;157:31:15;;;;;;;;;;;;;;2812:1825:5;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2812:1825:5;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;1937:180:3;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1937:180:3;-1:-1:-1;;;;;1937:180:3;;:::i;:::-;;;;;;;;;;;;;;;;;;1412:31;;;;;;;;;;;;;:::i;926:26::-;;;;;;;;;;;;;:::i;2583:199::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2583:199:3;;;;;;;:::i;970:548:5:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;970:548:5;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;314:21:18;;;;;;;;;;;;;:::i;1342:30:3:-;;;;;;;;;;;;;:::i;3900:135::-;;;;;;;;;;;;;:::i;1052:84:12:-;;;;;;;;;;;;;:::i;1379:27:3:-;;;;;;;;;;;;;:::i;617:431:2:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;617:431:2;;:::i;:::-;;;;;;;-1:-1:-1;;;;;617:431:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;437:527:5;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;437:527:5;;:::i;:::-;;;;-1:-1:-1;;;;;437:527:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;324:107;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;342:114:15;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;342:114:15;-1:-1:-1;;;;;342:114:15;;:::i;1316:96:1:-;;;;;;;;;;;;;:::i;1846:121:4:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1846:121:4;;:::i;1717:145:7:-;;;;;;;;;;;;;:::i;1003:26:3:-;;;;;;;;;;;;;:::i;2452:125::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2452:125:3;-1:-1:-1;;;;;2452:125:3;;:::i;2787:213::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2787:213:3;;;;;;;:::i;373:25:4:-;;;;;;;;;;;;;:::i;1085:85:7:-;;;;;;;;;;;;;:::i;494:117:2:-;;;;;;;;;;;;;:::i;1548:31:3:-;;;;;;;;;;;;;:::i;1264:32::-;;;;;;;;;;;;;:::i;160:184:6:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;160:184:6;-1:-1:-1;;;;;160:184:6;;:::i;1878:317:5:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1878:317:5;;:::i;3482:166:3:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3482:166:3;;:::i;1161:27::-;;;;;;;;;;;;;:::i;751:80:14:-;;;;;;;;;;;;;:::i;3654:119:3:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3654:119:3;-1:-1:-1;;;;;3654:119:3;;:::i;383:23:18:-;;;;;;;;;;;;;:::i;723:20:14:-;;;;;;;;;;;;;:::i;3006:192:3:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3006:192:3;;;;;;;:::i;2311:135::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2311:135:3;-1:-1:-1;;;;;2311:135:3;;:::i;3204:103::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3204:103:3;;:::i;2370:1223:1:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2370:1223:1;;;;;;;:::i;1098:24:3:-;;;;;;;;;;;;;:::i;879:18::-;;;;;;;;;;;;;:::i;1194:29::-;;;;;;;;;;;;;:::i;1510:32::-;;;;;;;;;;;;;:::i;1128:27::-;;;;;;;;;;;;;:::i;1687:122::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1687:122:3;;:::i;1524:348:5:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1524:348:5;;:::i;:::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1524:348:5;;;;;;;;;;;;;;179:248:2;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;179:248:2;;:::i;1997:2725:4:-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1997:2725:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;1229:29:3:-;;;;;;;;;;;;;:::i;2123:178::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2123:178:3;-1:-1:-1;;;;;2123:178:3;;:::i;1815:116::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1815:116:3;;:::i;1445:919:1:-;;;;;;;;;;;;;;;;-1:-1:-1;1445:919:1;;:::i;2011:240:7:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2011:240:7;-1:-1:-1;;;;;2011:240:7;;:::i;716:153:18:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;716:153:18;;:::i;3779:115:3:-;;;;;;;;;;;;;:::i;350:188:6:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;350:188:6;;;;;;;;;;:::i;2261:508:5:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2261:508:5;;:::i;3313:163:3:-;253:7:15;:5;:7::i;:::-;-1:-1:-1;;;;;239:21:15;:10;-1:-1:-1;;;;;239:21:15;;:55;;;-1:-1:-1;278:16:15;;-1:-1:-1;;;;;278:16:15;264:10;:30;239:55;231:87;;;;;-1:-1:-1;;;;;231:87:15;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;231:87:15;;;;;;;;;;;;;;;3404:4:3::1;527:5:18;516:8;:16;512:60;;;3431:4:3::2;3437:6;;659::18;651:5;:14;647:56;;;3459:3:3::3;:10:::0;;;647:56:18::2;;;683:20;::::0;;-1:-1:-1;;;;;683:20:18;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;647:56;534:1;;512:60:::1;;;550:22;::::0;;-1:-1:-1;;;;;550:22:18;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;512:60;328:1:15;3313:163:3::0;:::o;1449:28::-;;;;:::o;1586:95::-;1308:12:7;:10;:12::i;:::-;-1:-1:-1;;;;;1297:23:7;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1297:23:7;;1289:68;;;;;-1:-1:-1;;;;;1289:68:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1289:68:7;;;;;;;;;;;;;;;1659:15:3::1;::::0;;-1:-1:-1;;1640:34:3;::::1;-1:-1:-1::0;;;1659:15:3;;;::::1;;;1658:16;1640:34:::0;;::::1;;::::0;;1586:95::o;157:31:15:-;;;-1:-1:-1;;;;;157:31:15;;:::o;2812:1825:5:-;2915:10;2893:3;270:10;;264:3;:16;256:44;;;;;-1:-1:-1;;;;;256:44:5;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;256:44:5;;;;;;;;;;;;;;;3023:10:::1;::::0;;;:5:::1;:10;::::0;;;;:29;;;3017:3:::1;:35;3013:66;;;3061:18;3054:25;;;;3013:66;3112:10;::::0;;;:5:::1;:10;::::0;;;;:30;;;3106:3:::1;:36;:86:::0;::::1;;;-1:-1:-1::0;3191:1:5::1;3158:10:::0;;;:5:::1;:10;::::0;;;;:30;;;:34;;3106:86:::1;3089:212;;;3271:18;3263:27;;;;3089:212;3334:10;::::0;;;:5:::1;:10;::::0;;;;:30;;;3327:3:::1;:37;::::0;::::1;::::0;:87:::1;;-1:-1:-1::0;3413:1:5::1;3380:10:::0;;;:5:::1;:10;::::0;;;;:30;;;:34;;3327:87:::1;:139;;;;-1:-1:-1::0;3436:10:5::1;::::0;;;:5:::1;:10;::::0;;;;:30:::1;;::::0;3430:3:::1;:36;3327:139;3310:257;;;3540:15;3532:24;;;;3310:257;3593:10;::::0;;;:5:::1;:10;::::0;;;;:30;;;:35;:68;::::1;;;;3644:17;3657:3;3644:12;:17::i;:::-;3593:120;;;;-1:-1:-1::0;3683:10:5::1;::::0;;;:5:::1;:10;::::0;;;;:30:::1;;::::0;3677:3:::1;:36;3593:120;3576:248;;;3791:21;3783:30;;;;3576:248;3850:10;::::0;;;:5:::1;:10;::::0;;;;:30;;;:35;:57;::::1;;;;3890:17;3903:3;3890:12;:17::i;:::-;3889:18;3850:57;3833:170;;;3975:16;3967:25;;;;3833:170;4036:10;::::0;;;:5:::1;:10;::::0;;;;:30:::1;;::::0;4029:3:::1;:37;::::0;::::1;::::0;:71:::1;;;4083:17;4096:3;4083:12;:17::i;:::-;4082:18;4029:71;4012:276;;;4175:10;::::0;;;:5:::1;:10;::::0;;;;:33;;;::::1;;4171:64;;;4218:16;4210:25;;;;4171:64;4257:19;4249:28;;;;4012:276;4315:10;::::0;;;:5:::1;:10;::::0;;;;:33;;;::::1;;::::0;:88:::1;;-1:-1:-1::0;4368:10:5::1;::::0;;;:5:::1;:10;::::0;;;;:30;;;:35;4315:88:::1;4314:242;;;;-1:-1:-1::0;4524:10:5::1;::::0;;;:5:::1;:10;::::0;;;;:31:::1;::::0;::::1;::::0;4474:30;;;;4421:34;;;;;:83;;::::1;:134;4314:242;4297:295;;;4575:16;4567:25;;;;4297:295;4610:19;4602:28;;310:1;2812:1825:::0;;;;:::o;1937:180:3:-;2022:15;;1998:4;;-1:-1:-1;;;2022:15:3;;;;2021:16;;:89;;-1:-1:-1;2053:17:3;;2088:16;;2042:63;;;;;;-1:-1:-1;;;;;2042:63:3;;;;;;;;;;;;;;;;2108:1;;2053:17;;;;;2042:35;;:63;;;;;;;;;;;;;;;2053:17;2042:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2042:63:3;:67;2021:89;2014:96;;1937:180;;;;:::o;1412:31::-;;;;:::o;926:26::-;;;;:::o;2583:199::-;253:7:15;:5;:7::i;:::-;-1:-1:-1;;;;;239:21:15;:10;-1:-1:-1;;;;;239:21:15;;:55;;;-1:-1:-1;278:16:15;;-1:-1:-1;;;;;278:16:15;264:10;:30;239:55;231:87;;;;;-1:-1:-1;;;;;231:87:15;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;231:87:15;;;;;;;;;;;;;;;2709:12:3::1;:28:::0;;;;2747:12:::1;:28:::0;2583:199::o;970:548:5:-;1088:6;1108:7;1129;1150;1171;1192:4;1053:3;270:10;;264:3;:16;256:44;;;;;-1:-1:-1;;;;;256:44:5;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;256:44:5;;;;;;;;;;;;;;;-1:-1:-1;;;1242:10:5::1;::::0;;;-1:-1:-1;;1242:5:5::1;:10;::::0;-1:-1:-1;;1242:10:5;;;:19:::1;::::0;::::1;:31:::0;1287:30;;;;1331:29;;;;1374:30;;;;1418:34;;;;1466:35;;;;;1242:31:::1;::::0;;::::1;::::0;1287:30;;1331:29;;1374:30;;1242:31:::1;1466:35:::0;;::::1;;;::::0;970:548::o;314:21:18:-;;;;:::o;1342:30:3:-;;;-1:-1:-1;;;;;1342:30:3;;:::o;3900:135::-;3972:19;;3949:4;;-1:-1:-1;;;3972:19:3;;;;:56;;;;-1:-1:-1;3995:17:3;;-1:-1:-1;;;;;3995:17:3;:33;;3972:56;3965:63;;3900:135;:::o;1052:84:12:-;1122:7;;;;1052:84;:::o;1379:27:3:-;;;-1:-1:-1;;;1379:27:3;;;;;:::o;617:431:2:-;715:7;852:14;;;:9;:14;;;;;:21;;887:30;;;;931:23;;;;968:24;;;;1006:25;;;;;852:21;;-1:-1:-1;;;;;887:30:2;;;;931:23;;968:24;;617:431::o;437:527:5:-;555:7;576;597;618;639;660;520:3;270:10;;264:3;:16;256:44;;;;;-1:-1:-1;;;;;256:44:5;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;256:44:5;;;;;;;;;;;;;;;-1:-1:-1;;;713:10:5::1;::::0;;;-1:-1:-1;;713:5:5::1;:10;::::0;-1:-1:-1;;713:10:5;;;:25;;;752:27;::::1;::::0;793:30:::1;::::0;::::1;::::0;837:24:::1;::::0;::::1;::::0;875:27:::1;::::0;::::1;::::0;916:31:::1;::::0;;::::1;::::0;-1:-1:-1;;;;;713:25:5;;::::1;::::0;752:27;;;::::1;::::0;793:30;;837:24;;916:31;437:527::o;324:107::-;413:10;404:20;;;;:8;:20;;;;;;;;;397:27;;;;;;;;;;;;;;;;;369:16;;397:27;;;404:20;397:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;324:107;:::o;342:114:15:-;253:7;:5;:7::i;:::-;-1:-1:-1;;;;;239:21:15;:10;-1:-1:-1;;;;;239:21:15;;:55;;;-1:-1:-1;278:16:15;;-1:-1:-1;;;;;278:16:15;264:10;:30;239:55;231:87;;;;;-1:-1:-1;;;;;231:87:15;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;231:87:15;;;;;;;;;;;;;;;422:16:::1;:27:::0;;-1:-1:-1;;;;;;422:27:15::1;-1:-1:-1::0;;;;;422:27:15;;;::::1;::::0;;;::::1;::::0;;342:114::o;1316:96:1:-;1391:14;;1316:96;:::o;1846:121:4:-;1901:4;1923:10;;;:5;:10;;;;;:19;;:31;1957:3;1923:31;;;;:37;;1846:121::o;1717:145:7:-;1308:12;:10;:12::i;:::-;-1:-1:-1;;;;;1297:23:7;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1297:23:7;;1289:68;;;;;-1:-1:-1;;;;;1289:68:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1289:68:7;;;;;;;;;;;;;;;1823:1:::1;1807:6:::0;;1786:40:::1;::::0;-1:-1:-1;;;;;1807:6:7;;::::1;::::0;1786:40:::1;::::0;1823:1;;1786:40:::1;1853:1;1836:19:::0;;-1:-1:-1;;;;;;1836:19:7::1;::::0;;1717:145::o;1003:26:3:-;;;;:::o;2452:125::-;253:7:15;:5;:7::i;:::-;-1:-1:-1;;;;;239:21:15;:10;-1:-1:-1;;;;;239:21:15;;:55;;;-1:-1:-1;278:16:15;;-1:-1:-1;;;;;278:16:15;264:10;:30;239:55;231:87;;;;;-1:-1:-1;;;;;231:87:15;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;231:87:15;;;;;;;;;;;;;;;2537:15:3::1;:33:::0;;-1:-1:-1;;;;;;2537:33:3::1;-1:-1:-1::0;;;;;2537:33:3;;;::::1;::::0;;;::::1;::::0;;2452:125::o;2787:213::-;253:7:15;:5;:7::i;:::-;-1:-1:-1;;;;;239:21:15;:10;-1:-1:-1;;;;;239:21:15;;:55;;;-1:-1:-1;278:16:15;;-1:-1:-1;;;;;278:16:15;264:10;:30;239:55;231:87;;;;;-1:-1:-1;;;;;231:87:15;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;231:87:15;;;;;;;;;;;;;;;2919:14:3::1;:32:::0;;;;2961:14:::1;:32:::0;2787:213::o;373:25:4:-;;;;:::o;1085:85:7:-;1131:7;1157:6;-1:-1:-1;;;;;1157:6:7;1085:85;:::o;494:117:2:-;593:10;580:24;;;;:12;:24;;;;;;;;;573:31;;;;;;;;;;;;;;;;;545:16;;573:31;;;580:24;573:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;494:117;:::o;1548:31:3:-;;;-1:-1:-1;;;1548:31:3;;;;;:::o;1264:32::-;;;-1:-1:-1;;;;;1264:32:3;;:::o;160:184:6:-;1308:12:7;:10;:12::i;:::-;-1:-1:-1;;;;;1297:23:7;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1297:23:7;;1289:68;;;;;-1:-1:-1;;;;;1289:68:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1289:68:7;;;;;;;;;;;;;;;232:35:6::1;::::0;-1:-1:-1;;;;;232:12:6;::::1;::::0;253:4:::1;245:21;232:35:::0;::::1;;;::::0;::::1;::::0;;;245:21;232:12;:35;::::1;;;;;;;;;;;;;::::0;::::1;;;;1878:317:5::0;2000:4;1974:7;270:10;;264:3;:16;256:44;;;;;-1:-1:-1;;;;;256:44:5;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;256:44:5;;;;;;;;;;;;;;;2039:14:::1;::::0;;;:5:::1;:14;::::0;;;;:34:::1;;::::0;2077:3:::1;-1:-1:-1::0;2039:41:5;::::1;::::0;:95:::1;;-1:-1:-1::0;2133:1:5::1;2096:14:::0;;;:5:::1;:14;::::0;;;;:34;;;:38;;2039:95:::1;:149;;;;-1:-1:-1::0;2151:14:5::1;::::0;;;:5:::1;:14;::::0;;;;:37;;;::::1;;2150:38;2039:149;2020:168:::0;1878:317;-1:-1:-1;;;1878:317:5:o;3482:166:3:-;253:7:15;:5;:7::i;:::-;-1:-1:-1;;;;;239:21:15;:10;-1:-1:-1;;;;;239:21:15;;:55;;;-1:-1:-1;278:16:15;;-1:-1:-1;;;;;278:16:15;264:10;:30;239:55;231:87;;;;;-1:-1:-1;;;;;231:87:15;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;231:87:15;;;;;;;;;;;;;;;3576:4:3::1;527:5:18;516:8;:16;512:60;;;3603:3:3::2;;3608:4;659:6:18;651:5;:14;647:56;;;3628:6:3::3;:13:::0;;;647:56:18::2;;1161:27:3::0;;;;:::o;751:80:14:-;1308:12:7;:10;:12::i;:::-;-1:-1:-1;;;;;1297:23:7;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1297:23:7;;1289:68;;;;;-1:-1:-1;;;;;1289:68:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1289:68:7;;;;;;;;;;;;;;;816:8:14::1;::::0;;-1:-1:-1;;804:20:14;::::1;-1:-1:-1::0;;;816:8:14;;;::::1;;;815:9;804:20:::0;;::::1;;::::0;;751:80::o;3654:119:3:-;253:7:15;:5;:7::i;:::-;-1:-1:-1;;;;;239:21:15;:10;-1:-1:-1;;;;;239:21:15;;:55;;;-1:-1:-1;278:16:15;;-1:-1:-1;;;;;278:16:15;264:10;:30;239:55;231:87;;;;;-1:-1:-1;;;;;231:87:15;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;231:87:15;;;;;;;;;;;;;;;3736:17:3::1;:30:::0;;-1:-1:-1;;;;;;3736:30:3::1;-1:-1:-1::0;;;;;3736:30:3;;;::::1;::::0;;;::::1;::::0;;3654:119::o;383:23:18:-;;;;:::o;723:20:14:-;;;-1:-1:-1;;;723:20:14;;;;;:::o;3006:192:3:-;253:7:15;:5;:7::i;:::-;-1:-1:-1;;;;;239:21:15;:10;-1:-1:-1;;;;;239:21:15;;:55;;;-1:-1:-1;278:16:15;;-1:-1:-1;;;;;278:16:15;264:10;:30;239:55;231:87;;;;;-1:-1:-1;;;;;231:87:15;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;231:87:15;;;;;;;;;;;;;;;3129:11:3::1;:26:::0;;;;3165:11:::1;:26:::0;3006:192::o;2311:135::-;253:7:15;:5;:7::i;:::-;-1:-1:-1;;;;;239:21:15;:10;-1:-1:-1;;;;;239:21:15;;:55;;;-1:-1:-1;278:16:15;;-1:-1:-1;;;;;278:16:15;264:10;:30;239:55;231:87;;;;;-1:-1:-1;;;;;231:87:15;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;231:87:15;;;;;;;;;;;;;;;2401:17:3::1;:38:::0;;-1:-1:-1;;;;;;2401:38:3::1;-1:-1:-1::0;;;;;2401:38:3;;;::::1;::::0;;;::::1;::::0;;2311:135::o;3204:103::-;253:7:15;:5;:7::i;:::-;-1:-1:-1;;;;;239:21:15;:10;-1:-1:-1;;;;;239:21:15;;:55;;;-1:-1:-1;278:16:15;;-1:-1:-1;;;;;278:16:15;264:10;:30;239:55;231:87;;;;;-1:-1:-1;;;;;231:87:15;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;231:87:15;;;;;;;;;;;;;;;3278:9:3::1;:22:::0;3204:103::o;2370:1223:1:-;1366:8:12;:6;:8::i;:::-;1365:9;1357:38;;;;;-1:-1:-1;;;;;1357:38:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;2482:14:1::1;::::0;;;:5:::1;:14;::::0;;;;:33;;;407:3:::1;:12:::0;-1:-1:-1;407:12:1::1;399:42;;;::::0;;-1:-1:-1;;;;;399:42:1;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;2534:7:::2;270:10:5;;264:3;:16;256:44;;;::::0;;-1:-1:-1;;;;;256:44:5;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;;;;;;;;;256:44:5;;;;;;;;;;;;;::::2;;521:10:1::3;535:9;521:23;:50:::0;::::3;;;;549:22;560:10;549;:22::i;:::-;548:23;521:50;500:132;;;;-1:-1:-1::0;;;;;500:132:1::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2647:3:::4;2603:14:::0;;;:5:::4;:14;::::0;;;;:32:::4;;::::0;-1:-1:-1;;;;;2603:32:1::4;2582:125;;;::::0;;-1:-1:-1;;;;;2582:125:1;;::::4;;::::0;::::4;::::0;::::4;::::0;;;;::::4;::::0;;;;;;;;;;;;;::::4;;2733:14;::::0;;;:5:::4;:14;::::0;;;;:32:::4;;::::0;2717:70:::4;::::0;-1:-1:-1;;;;;2733:32:1::4;2767:10;2779:7:::0;2717:15:::4;:70::i;:::-;2797:20;2820:41;2832:10;2844:7;2853;2820:11;:41::i;:::-;2797:64;;2871:14;2888:40;2899:7;2908;2917:10;2888;:40::i;:::-;2871:57;;2939:44;2953:7;2962:12;2976:6;2939:13;:44::i;:::-;2994:21;3030:60;3043:39;3056:7;3065:16;3073:7;3065;:16::i;:::-;3043:12;:39::i;:::-;3084:5;3030:12;:60::i;:::-;2994:96;;3101:30;3134:36;3147:7;3156:13;3134:12;:36::i;:::-;3249:40;3256:14:::0;;;:5:::4;:14;::::0;;;;;;;3249:6:::4;3256:32:::0;;::::4;::::0;-1:-1:-1;;;;;3256:32:1::4;3249:40:::0;;;;;;;;3101:69;;-1:-1:-1;3223:103:1::4;::::0;3303:13;3223:12:::4;:103::i;:::-;3180:40;3187:14:::0;;;:5:::4;:14;::::0;;;;;;;3180:6:::4;3187:32:::0;;::::4;::::0;;-1:-1:-1;;;;;3187:32:1;;::::4;3180:40:::0;;;;;;;;:146;;;;3363:14;;;;;;;:32;3187;3409:31;;::::4;::::0;3336:150:::4;::::0;3363:32;;::::4;::::0;3409:31:::4;3454:22:::0;3336:13:::4;:150::i;:::-;3555:31;3570:7;3579:6;3555:14;:31::i;:::-;642:1;;;;451::::2;1405::12::1;2370:1223:1::0;;:::o;1098:24:3:-;;;;:::o;879:18::-;;;;:::o;1194:29::-;;;;:::o;1510:32::-;;;-1:-1:-1;;;;;1510:32:3;;:::o;1128:27::-;;;;:::o;1687:122::-;253:7:15;:5;:7::i;:::-;-1:-1:-1;;;;;239:21:15;:10;-1:-1:-1;;;;;239:21:15;;:55;;;-1:-1:-1;278:16:15;;-1:-1:-1;;;;;278:16:15;264:10;:30;239:55;231:87;;;;;-1:-1:-1;;;;;231:87:15;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;231:87:15;;;;;;;;;;;;;;;1771:16:3::1;:31:::0;1687:122::o;1524:348:5:-;1643:4;1661:7;1682;1608:3;270:10;;264:3;:16;256:44;;;;;-1:-1:-1;;;;;256:44:5;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;256:44:5;;;;;;;;;;;;;;;-1:-1:-1;;;1735:10:5::1;::::0;;;-1:-1:-1;1735:5:5::1;:10;::::0;;;;:33;;;;1782:31;;;;::::1;1827:28:::0;;::::1;::::0;1735:33:::1;::::0;;::::1;::::0;-1:-1:-1;;;;;1827:28:5;;::::1;::::0;1524:348::o;179:248:2:-;248:4;290:14;;283:3;:21;;:65;;;;-1:-1:-1;347:1:2;320:14;;;:9;:14;;;;;:24;;;:28;;283:65;:137;;;;-1:-1:-1;;364:28:2;370:14;;;:9;:14;;;;;;;;:21;364:28;;:5;:28;;;;;:37;;:49;417:3;364:49;;;;:56;;;179:248::o;1997:2725:4:-;1366:8:12;:6;:8::i;:::-;1365:9;1357:38;;;;;-1:-1:-1;;;;;1357:38:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;2752:9:4::1;;2739;:22;;2731:59;;;::::0;;-1:-1:-1;;;;;2731:59:4;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;2808:20;2821:6;2808:12;:20::i;:::-;2800:55;;;::::0;;-1:-1:-1;;;;;2800:55:4;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;2913:25:4;::::1;::::0;;:55:::1;;;2942:26;2958:9;2942:15;:26::i;:::-;2892:123;;;::::0;;-1:-1:-1;;;;;2892:123:4;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;3048:30;3061:11;;3074:3;3048:12;:30::i;:::-;3033:11;:45;3025:90;;;::::0;;-1:-1:-1;;;;;3025:90:4;;::::1;;::::0;::::1;::::0;;;;;;;::::1;::::0;;;;;;;;;;;;;::::1;;3148:30;3161:11;;3174:3;3148:12;:30::i;:::-;3133:12;:45;;;3125:90;;;::::0;;-1:-1:-1;;;;;3125:90:4;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;3255:8;3246:5;:17;;3225:115;;;;-1:-1:-1::0;;;;;3225:115:4::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3369:1;3358:8;:12;3350:41;;;::::0;;-1:-1:-1;;;;;3350:41:4;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;3412:3;3405:4;:10;3401:26;;;3424:3;3417:10;;3401:26;3492:11;3458:30;3471:3;3476:11;;3458:12;:30::i;:::-;:45;;3437:118;;;::::0;;-1:-1:-1;;;;;3437:118:4;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;3592:49;3608:6;3616:10;3628:12;3592:15;:49::i;:::-;3651:18;3685:17:::0;;3684:297:::1;;3757:224;3791:146;3829:55;3842:31;3855:11;3868:4;3842:12;:31::i;:::-;3875:8;;3829:12;:55::i;3791:146::-;3959:4;3757:12;:224::i;:::-;3684:297;;;3723:4;3684:297;3651:330;;4039:493;;;;;;;;4057:213;;;;;;;;4087:6;-1:-1:-1::0;;;;;4057:213:4::1;;;;;4111:10;-1:-1:-1::0;;;;;4057:213:4::1;;;;;4139:11;4057:213;;;;4168:5;4057:213;;;;4191:8;4057:213;;;;4217:9;-1:-1:-1::0;;;;;4057:213:4::1;;;;;4244:12;4057:213;;::::0;4039:493:::1;;;;4284:238;;;;;;;;4314:12;4284:238;;;;;;4344:12;4284:238;;;;4374:4;4284:238;;;;4396:10;4284:238;;;;4424:1;4284:238;;;;4443:12;4284:238;;;;4473:5;4284:238;;;;;;4496:12;4284:238;;;;::::0;4039:493:::1;;::::0;4019:5:::1;:17;4025:10;;4019:17;;;;;;;;;;;:513;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;4019:513:4::1;;;;;-1:-1:-1::0;;;;;4019:513:4::1;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;4019:513:4::1;;;;;-1:-1:-1::0;;;;;4019:513:4::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;4019:513:4::1;;;;;-1:-1:-1::0;;;;;4019:513:4::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4542:8;:20;4551:10;-1:-1:-1::0;;;;;4542:20:4::1;-1:-1:-1::0;;;;;4542:20:4::1;;;;;;;;;;;;4568:10;;4542:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4594:27;4602:6;4610:10;;4594:27;;;;-1:-1:-1::0;;;;;4594:27:4::1;;;;;;;;;;;;;;;;;;;;;4644;4657:10;;4669:1;4644:12;:27::i;:::-;4631:10;:40:::0;-1:-1:-1;;;;;;;;;;;1997:2725:4:o;1229:29:3:-;;;;:::o;2123:178::-;2211:15;;2187:4;;-1:-1:-1;;;2211:15:3;;;;2210:16;;:84;;-1:-1:-1;2241:17:3;;2276:13;;2230:60;;;;;;-1:-1:-1;;;;;2230:60:3;;;;;;;;;;;;;;;;2293:1;;2241:17;;;;;2230:35;;:60;;;;;;;;;;;;;;;2241:17;2230:60;;;;;;;;;;1815:116;253:7:15;:5;:7::i;:::-;-1:-1:-1;;;;;239:21:15;:10;-1:-1:-1;;;;;239:21:15;;:55;;;-1:-1:-1;278:16:15;;-1:-1:-1;;;;;278:16:15;264:10;:30;239:55;231:87;;;;;-1:-1:-1;;;;;231:87:15;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;231:87:15;;;;;;;;;;;;;;;1896:13:3::1;:28:::0;1815:116::o;1445:919:1:-;1532:9;1543:10;1555:12;;384:13:14;372:8;:25;;364:56;;;;;-1:-1:-1;;;;;364:56:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;435:34;;;;;;-1:-1:-1;;;;;435:34:14;;;;;;;;;;;;;;;;;;;1366:8:12::1;:6;:8::i;:::-;1365:9;1357:38;;;::::0;;-1:-1:-1;;;;;1357:38:12;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;1609:14:1::2;::::0;;;:5:::2;:14;::::0;;;;:33;;;407:3:::2;:12:::0;-1:-1:-1;407:12:1::2;399:42;;;::::0;;-1:-1:-1;;;;;399:42:1;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;1661:7:::3;270:10:5;;264:3;:16;256:44;;;::::0;;-1:-1:-1;;;;;256:44:5;;::::3;;::::0;::::3;::::0;::::3;::::0;;;;-1:-1:-1;;;;;;;;;;;256:44:5;;;;;;;;;;;;;::::3;;521:10:1::4;535:9;521:23;:50:::0;::::4;;;;549:22;560:10;549;:22::i;:::-;548:23;521:50;500:132;;;;-1:-1:-1::0;;;;;500:132:1::4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1761:3:::5;1717:14:::0;;;:5:::5;:14;::::0;;;;:32:::5;;::::0;-1:-1:-1;;;;;1717:32:1::5;:48:::0;1709:81:::5;;;::::0;;-1:-1:-1;;;;;1709:81:1;;::::5;;::::0;::::5;::::0;::::5;::::0;;;;::::5;::::0;;;;;;;;;;;;;::::5;;1800:20;1823:43;1835:10;1847:9;1858:7;1823:11;:43::i;:::-;1800:66;;1876:14;1893:42;1904:7;1913:9;1924:10;1893;:42::i;:::-;1876:59;;1954:44;1968:7;1977:12;1991:6;1954:13;:44::i;:::-;2009:19;2043:129;2073:62;2086:9;2097:37;2110:5;2117:16;2125:7;2117;:16::i;:::-;2097:12;:37::i;2043:129::-;2269:14;::::0;;;:5:::5;:14;::::0;;;;:31:::5;;::::0;2009:163;;-1:-1:-1;2249:66:1::5;::::0;-1:-1:-1;;;;;2269:31:1::5;2009:163:::0;2249:11:::5;:66::i;:::-;2326:31;2341:7;2350:6;2326:14;:31::i;:::-;642:1;;;451::::3;1405::12::2;1445:919:1::0;;;;:::o;2011:240:7:-;1308:12;:10;:12::i;:::-;-1:-1:-1;;;;;1297:23:7;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1297:23:7;;1289:68;;;;;-1:-1:-1;;;;;1289:68:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1289:68:7;;;;;;;;;;;;;;;-1:-1:-1;;;;;2099:22:7;::::1;2091:73;;;;-1:-1:-1::0;;;;;2091:73:7::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2200:6;::::0;;2179:38:::1;::::0;-1:-1:-1;;;;;2179:38:7;;::::1;::::0;2200:6;::::1;::::0;2179:38:::1;::::0;::::1;2227:6;:17:::0;;-1:-1:-1;;;;;;2227:17:7::1;-1:-1:-1::0;;;;;2227:17:7;;;::::1;::::0;;;::::1;::::0;;2011:240::o;716:153:18:-;253:7:15;:5;:7::i;:::-;-1:-1:-1;;;;;239:21:15;:10;-1:-1:-1;;;;;239:21:15;;:55;;;-1:-1:-1;278:16:15;;-1:-1:-1;;;;;278:16:15;264:10;:30;239:55;231:87;;;;;-1:-1:-1;;;;;231:87:15;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;231:87:15;;;;;;;;;;;;;;;817:9:18::1;527:5;516:8;:16;512:60;;;842:8:::2;:20:::0;;;512:60:::1;;3779:115:3::0;253:7:15;:5;:7::i;:::-;-1:-1:-1;;;;;239:21:15;:10;-1:-1:-1;;;;;239:21:15;;:55;;;-1:-1:-1;278:16:15;;-1:-1:-1;;;;;278:16:15;264:10;:30;239:55;231:87;;;;;-1:-1:-1;;;;;231:87:15;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;231:87:15;;;;;;;;;;;;;;;3868:19:3::1;::::0;;-1:-1:-1;;3845:42:3;::::1;-1:-1:-1::0;;;3868:19:3;;;::::1;;;3867:20;3845:42:::0;;::::1;;::::0;;3779:115::o;350:188:6:-;1308:12:7;:10;:12::i;:::-;-1:-1:-1;;;;;1297:23:7;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1297:23:7;;1289:68;;;;;-1:-1:-1;;;;;1289:68:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1289:68:7;;;;;;;;;;;;;;;-1:-1:-1;;;;;447:14:6;::::1;432:12;447:14:::0;;;:6:::1;:14;::::0;;;;;;471:18;;;499:32:::1;454:6:::0;521:3;447:14;499:13:::1;:32::i;:::-;1367:1:7;350:188:6::0;;:::o;2261:508:5:-;2339:4;2321:7;270:10;;264:3;:16;256:44;;;;;-1:-1:-1;;;;;256:44:5;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;256:44:5;;;;;;;;;;;;;;;2423:33:::1;2448:7;2423:24;:33::i;:::-;2419:322;;;2472:14;::::0;;;:5:::1;:14;::::0;;;;:37;;;:44;;-1:-1:-1;;2472:44:5::1;2512:4;2472:44:::0;;::::1;::::0;;;2561:29;;2608:31;;::::1;::::0;2657:34;;;;;2530:175:::1;::::0;-1:-1:-1;;;;;2561:29:5;;::::1;::::0;2608:31:::1;::::0;2530:13:::1;:175::i;:::-;2726:4;2719:11;;;;2419:322;-1:-1:-1::0;2757:5:5::1;::::0;2261:508;-1:-1:-1;;2261:508:5:o;598:104:11:-;685:10;598:104;:::o;7829:187:1:-;7955:18;8000:8;;;;;7829:187::o;1247:556:13:-;1375:6;1383:8;1393:7;526;482:6;-1:-1:-1;;;;;476:23:13;;500:6;516:4;476:46;;;;;-1:-1:-1;;;476:46:13;;;;;;;-1:-1:-1;;;;;476:46:13;;;;;;-1:-1:-1;;;;;476:46:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;476:46:13;:57;;455:116;;;;;-1:-1:-1;;;;;455:116:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;1430:1:::1;1420:7;:11;1412:20;;;::::0;::::1;;1442:18;1463:35;1476:6;1492:4;1463:12;:35::i;:::-;1508:60;::::0;;;;;-1:-1:-1;;;;;1508:60:13;;::::1;;::::0;::::1;::::0;1553:4:::1;1508:60:::0;;;;;;;;;;;;1442:56;;-1:-1:-1;1508:26:13;;::::1;::::0;::::1;::::0;:60;;;;;::::1;::::0;;;;;;;;;-1:-1:-1;1508:26:13;:60;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;;1583:37:13::1;::::0;;;;;-1:-1:-1;;;;;1583:37:13;;::::1;1508:60;1583:37:::0;::::1;::::0;;::::1;::::0;;;;;;::::1;::::0;;;;;;;::::1;1706:35;1719:6;1735:4;1706:12;:35::i;:::-;1652:33;1665:10;1677:7;1652:12;:33::i;:::-;1651:90;1630:166;;;::::0;;-1:-1:-1;;;;;1630:166:13;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;581:1;1247:556:::0;;;;;;:::o;4984:454:1:-;5148:122;;;;;;;;;;;-1:-1:-1;;;;;5148:122:1;;;;;;;;;;;;;;;;-1:-1:-1;5148:122:1;;;;;;5245:15;5148:122;;;;;;5130:14;;;5120:25;;:9;:25;;;;;:150;;;;;;;;;;;;-1:-1:-1;;;;;;5120:150:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5293:10;5280:24;;:12;:24;;;;;5310:14;;5280:45;;;;;;;;;;;;;;;;;;5365:14;;-1:-1:-1;;5352:31:1;;5365:14;5352:12;:31::i;:::-;5335:14;:48;;;5400:31;;5429:1;5400:12;:31::i;:::-;5393:38;4984:454;-1:-1:-1;;;;4984:454:1:o;5444:1573::-;5560:7;5598;5560;;5647:19;5661:4;5647:13;:19::i;:::-;:41;;;;;;;;;5643:210;;;5725:11;;;;:5;:11;;;;;:32;;;5704:63;;5716:7;;5759;5704:11;:63::i;:::-;-1:-1:-1;5813:11:1;;;;:5;:11;;;;;:28;;;5790:52;;5803:8;;5790:12;:52::i;:::-;5781:61;;5643:210;5889:15;5866:19;5880:4;5866:13;:19::i;:::-;:38;;;;;;;;;5862:761;;;5923:17;5944:22;5961:4;5944:16;:22::i;:::-;5920:46;-1:-1:-1;;;;;;;;5983:25:1;;5980:405;;6068:12;;6056:8;:24;;:52;;;;;6096:12;;6084:8;:24;;6056:52;6027:150;;;;;-1:-1:-1;;;;;6027:150:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;5980:405;;;6257:14;;6245:8;:26;;:56;;;;;6287:14;;6275:8;:26;;6245:56;6216:154;;;;;-1:-1:-1;;;;;6216:154:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;6406:25;6423:7;6406:16;:25::i;:::-;6398:64;;;;;-1:-1:-1;;;;;6398:64:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;6507:11;;;;:5;:11;;;;;:32;;;6476:64;;6498:7;;6476:21;:64::i;:::-;-1:-1:-1;6586:11:1;;;;:5;:11;;;;;:25;;;6563:49;;6576:8;;6563:12;:49::i;:::-;6554:58;;5862:761;;6646:6;6636;:16;6632:328;;6672:11;;;;:5;:11;;;;;:36;;;;;;;;6668:112;;;6737:28;6750:6;6758;6737:12;:28::i;:::-;6728:37;;6668:112;6828:11;;;;:5;:11;;;;;:31;;;6818:41;;;6793:129;;;;;-1:-1:-1;;;;;6793:129:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;6943:6;-1:-1:-1;6936:13:1;;-1:-1:-1;6936:13:1;6632:328;6969:41;;;-1:-1:-1;;;;;6969:41:1;;;;;;;;;;;;;;;;;;;;;;;;;;;3599:1043;3698:20;3732:21;3745:7;3732:12;:21::i;:::-;3728:806;;;3772:19;:17;:19::i;:::-;3769:577;;;3811:20;3840:24;3856:7;3840:15;:24::i;:::-;3810:54;;;;;;;3883:18;3910:24;3926:7;3910:15;:24::i;:::-;-1:-1:-1;;3988:17:1;;3882:52;;-1:-1:-1;3952:63:1;;3974:12;;-1:-1:-1;;;;;;3988:17:1;;-1:-1:-1;4007:7:1;;-1:-1:-1;3952:21:1;:63::i;:::-;4060:17;;4048:92;;;;;;-1:-1:-1;;;;;4048:92:1;;;;;;;;;;;;;;;;;;;;4129:10;4048:92;;;;;;4060:17;;;;;4048:44;;:92;;;;;;;;;;;;;;4060:17;;4048:92;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4048:92:1;;-1:-1:-1;3769:577:1;;-1:-1:-1;;3769:577:1;;4250:24;;;;:9;:24;;;;;:34;;;4216:115;;4306:7;4216:12;:115::i;:::-;4179:24;;;;:9;:24;;;;;:34;;:152;3769:577;3728:806;;;4442:14;;;;:5;:14;;;;;;;;:29;4473:24;;;:9;:24;;;;;;4442:29;4473:40;;4428:95;;-1:-1:-1;;;;;4442:29:1;;;;4473:40;4515:7;4428:13;:95::i;:::-;4580:24;;;;:9;:24;;;;;;;;;:40;;;4548:87;;;;;-1:-1:-1;;;;;4580:40:1;;;4548:87;;;;;;;;;;;;;;;;;;;;;;;;3599:1043;;;;:::o;7461:305::-;7515:7;;7538:19;7552:4;7538:13;:19::i;:::-;:41;;;;;;;;;7534:85;;;-1:-1:-1;7602:6:1;;7595:13;;7534:85;7655:15;7632:19;7646:4;7632:13;:19::i;:::-;:38;;;;;;;;;7628:79;;;-1:-1:-1;7693:3:1;;7686:10;;3538:215:8;3596:7;3619:6;3615:20;;-1:-1:-1;3634:1:8;3627:8;;3615:20;3657:5;;;3661:1;3657;:5;:1;3680:5;;;;;:10;3672:56;;;;-1:-1:-1;;;;;3672:56:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3745:1;-1:-1:-1;3538:215:8;;;;;:::o;4217:150::-;4275:7;4306:1;4302;:5;4294:44;;;;;-1:-1:-1;;;;;4294:44:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;4359:1;4355;:5;;;;;;;4217:150;-1:-1:-1;;;4217:150:8:o;3136:155::-;3194:7;3226:1;3221;:6;;3213:49;;;;;-1:-1:-1;;;;;3213:49:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3279:5:8;;;3136:155::o;2690:175::-;2748:7;2779:5;;;2802:6;;;;2794:46;;;;;-1:-1:-1;;;;;2794:46:8;;;;;;;;;;;;;;;;;;;;;;;;;;;595:467:13;718:18;739:35;752:6;768:4;739:12;:35::i;:::-;789:38;;;;;;-1:-1:-1;;;;;789:38:13;;;;;;;;;;;;;;;718:56;;-1:-1:-1;789:38:13;;;;;;;;;;843:6;-1:-1:-1;;;;;837:22:13;;860:8;870:7;837:41;;;;;-1:-1:-1;;;837:41:13;;;;;;;-1:-1:-1;;;;;837:41:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;973:10:13;;-1:-1:-1;910:58:13;923:35;936:6;952:4;923:12;:35::i;910:58::-;909:74;888:167;;;;;-1:-1:-1;;;;;888:167:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;595:467;;;;:::o;4648:330:1:-;4788:14;;;;:5;:14;;;;;:34;;;4762:91;;4836:7;4762:12;:91::i;:::-;4725:14;;;;:5;:14;;;;;:34;;:128;;;4863:108;;4913:19;;;;;;;;;;;;;;;;;4863:108;;;4952:19;;;;;;;;;;;;;;;;;4648:330;;:::o;837:378:14:-;926:34;;;;;;-1:-1:-1;;;;;926:34:14;;;;;;;;;;;;;;;;;;;1029:27;;-1:-1:-1;;;;;994:25:14;;;;;1029:27;;;;;1047:8;;970:21;1029:27;970:21;1029:27;1047:8;994:25;1029:27;;;;;;;;;;;;;;;;;;;;;1136:8;-1:-1:-1;;;;;1128:25:14;;1087:37;1100:13;1115:8;1087:12;:37::i;:::-;:66;1066:142;;;;;-1:-1:-1;;;;;1066:142:14;;;;;;;;;;;;;;;;;;;;;;;;;;;1068:173:13;1171:7;1207:6;-1:-1:-1;;;;;1201:23:13;;1225:8;1201:33;;;;;-1:-1:-1;;;1201:33:13;;;;;;;-1:-1:-1;;;;;1201:33:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1201:33:13;;1068:173;-1:-1:-1;;;1068:173:13:o;8131:293:1:-;8249:4;8269:8;8265:25;;-1:-1:-1;8286:4:1;8279:11;;8265:25;8322:17;;8311:63;;;;;;-1:-1:-1;;;;;8311:63:1;;;;;;;;;;;;;;;;;;;;;8322:17;;;;;8311:38;;:63;;;;;8322:17;;8311:63;;;;;;;8322:17;;8311:63;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;8413:4:1;;8131:293;-1:-1:-1;;;;;;;8131:293:1:o;7023:198::-;7106:15;;7088:4;;-1:-1:-1;;;;;7106:15:1;7103:45;;-1:-1:-1;7144:4:1;7137:11;;7103:45;7177:15;;7165:49;;;;;;-1:-1:-1;;;;;7165:49:1;;;;;;;;;7177:15;;;;;7165:40;;:49;;;;;;;;;;;;;;7177:15;7165:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7165:49:1;;7023:198;-1:-1:-1;;7023:198:1:o;7227:228::-;7304:4;7324:8;7320:25;;-1:-1:-1;7341:4:1;7334:11;;7320:25;7377:17;;7366:61;;;;;;-1:-1:-1;;;;;7366:61:1;;;;;;;;;;;;;;;7377:17;;;;;7366:47;;:61;;;;;7377:17;;7366:61;;;;;;;7377:17;;7366:61;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7444:4:1;;7227:228;-1:-1:-1;;;;;;7227:228:1:o;1809:208:13:-;1958:1;1948:7;:11;1940:20;;;;;;1976:6;-1:-1:-1;;;;;1970:21:13;;1992:8;2002:7;1970:40;;;;;-1:-1:-1;;;1970:40:13;;;;;;;-1:-1:-1;;;;;1970:40:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1809:208:13:o", - "source": "// SPDX-License-Identifier: MIT\npragma solidity ^0.6.0;\n\nimport \"./InvestorData.sol\";\n\ncontract ThePoolz is InvestorData {\n constructor() public { }\n\n function WithdrawETHFee(address payable _to) public onlyOwner {\n _to.transfer(address(this).balance); // keeps only fee eth on contract //To Do need to take 16% to burn!!!\n }\n\n function WithdrawERC20Fee(address _Token, address _to) public onlyOwner {\n uint256 temp = FeeMap[_Token];\n FeeMap[_Token] = 0;\n TransferToken(_Token, _to, temp);\n }\n \n}", - "sourcePath": "/home/ashwin/Poolz/Poolz-Back/contracts/ThePoolz.sol", - "ast": { - "absolutePath": "/home/ashwin/Poolz/Poolz-Back/contracts/ThePoolz.sol", - "exportedSymbols": { - "ThePoolz": [1996] - }, - "id": 1997, - "license": "MIT", - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 1942, - "literals": ["solidity", "^", "0.6", ".0"], - "nodeType": "PragmaDirective", - "src": "32:23:6" - }, - { - "absolutePath": "/home/ashwin/Poolz/Poolz-Back/contracts/InvestorData.sol", - "file": "./InvestorData.sol", - "id": 1943, - "nodeType": "ImportDirective", - "scope": 1997, - "sourceUnit": 894, - "src": "57:28:6", - "symbolAliases": [], - "unitAlias": "" - }, - { - "abstract": false, - "baseContracts": [ - { - "arguments": null, - "baseName": { - "contractScope": null, - "id": 1944, - "name": "InvestorData", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 893, - "src": "108:12:6", - "typeDescriptions": { - "typeIdentifier": "t_contract$_InvestorData_$893", - "typeString": "contract InvestorData" - } - }, - "id": 1945, - "nodeType": "InheritanceSpecifier", - "src": "108:12:6" - } - ], - "contractDependencies": [ - 806, 893, 1219, 1499, 1940, 2106, 3065, 3157, 3364, 3478, 3527, 3639 - ], - "contractKind": "contract", - "documentation": null, - "fullyImplemented": true, - "id": 1996, - "linearizedBaseContracts": [ - 1996, 893, 806, 1940, 1499, 1219, 3157, 3639, 3527, 3364, 3478, 2106, - 3065 - ], - "name": "ThePoolz", - "nodeType": "ContractDefinition", - "nodes": [ - { - "body": { - "id": 1948, - "nodeType": "Block", - "src": "148:6:6", - "statements": [] - }, - "documentation": null, - "id": 1949, - "implemented": true, - "kind": "constructor", - "modifiers": [], - "name": "", - "nodeType": "FunctionDefinition", - "overrides": null, - "parameters": { - "id": 1946, - "nodeType": "ParameterList", - "parameters": [], - "src": "138:2:6" - }, - "returnParameters": { - "id": 1947, - "nodeType": "ParameterList", - "parameters": [], - "src": "148:0:6" - }, - "scope": 1996, - "src": "127:27:6", - "stateMutability": "nonpayable", - "virtual": false, - "visibility": "public" - }, - { - "body": { - "id": 1966, - "nodeType": "Block", - "src": "222:122:6", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 1961, - "name": "this", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": -28, - "src": "253:4:6", - "typeDescriptions": { - "typeIdentifier": "t_contract$_ThePoolz_$1996", - "typeString": "contract ThePoolz" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_contract$_ThePoolz_$1996", - "typeString": "contract ThePoolz" - } - ], - "id": 1960, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "nodeType": "ElementaryTypeNameExpression", - "src": "245:7:6", - "typeDescriptions": { - "typeIdentifier": "t_type$_t_address_$", - "typeString": "type(address)" - }, - "typeName": { - "id": 1959, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "245:7:6", - "typeDescriptions": { - "typeIdentifier": null, - "typeString": null - } - } - }, - "id": 1962, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "typeConversion", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "245:13:6", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_address_payable", - "typeString": "address payable" - } - }, - "id": 1963, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "balance", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "245:21:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "id": 1956, - "name": "_to", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1951, - "src": "232:3:6", - "typeDescriptions": { - "typeIdentifier": "t_address_payable", - "typeString": "address payable" - } - }, - "id": 1958, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "transfer", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "232:12:6", - "typeDescriptions": { - "typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$", - "typeString": "function (uint256)" - } - }, - "id": 1964, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "232:35:6", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1965, - "nodeType": "ExpressionStatement", - "src": "232:35:6" - } - ] - }, - "documentation": null, - "functionSelector": "991e979a", - "id": 1967, - "implemented": true, - "kind": "function", - "modifiers": [ - { - "arguments": null, - "id": 1954, - "modifierName": { - "argumentTypes": null, - "id": 1953, - "name": "onlyOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 2055, - "src": "212:9:6", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "212:9:6" - } - ], - "name": "WithdrawETHFee", - "nodeType": "FunctionDefinition", - "overrides": null, - "parameters": { - "id": 1952, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1951, - "mutability": "mutable", - "name": "_to", - "nodeType": "VariableDeclaration", - "overrides": null, - "scope": 1967, - "src": "184:19:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address_payable", - "typeString": "address payable" - }, - "typeName": { - "id": 1950, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "184:15:6", - "stateMutability": "payable", - "typeDescriptions": { - "typeIdentifier": "t_address_payable", - "typeString": "address payable" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "183:21:6" - }, - "returnParameters": { - "id": 1955, - "nodeType": "ParameterList", - "parameters": [], - "src": "222:0:6" - }, - "scope": 1996, - "src": "160:184:6", - "stateMutability": "nonpayable", - "virtual": false, - "visibility": "public" - }, - { - "body": { - "id": 1994, - "nodeType": "Block", - "src": "422:116:6", - "statements": [ - { - "assignments": [1977], - "declarations": [ - { - "constant": false, - "id": 1977, - "mutability": "mutable", - "name": "temp", - "nodeType": "VariableDeclaration", - "overrides": null, - "scope": 1994, - "src": "432:12:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 1976, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "432:7:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 1981, - "initialValue": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 1978, - "name": "FeeMap", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 944, - "src": "447:6:6", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 1980, - "indexExpression": { - "argumentTypes": null, - "id": 1979, - "name": "_Token", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1969, - "src": "454:6:6", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "447:14:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "432:29:6" - }, - { - "expression": { - "argumentTypes": null, - "id": 1986, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 1982, - "name": "FeeMap", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 944, - "src": "471:6:6", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 1984, - "indexExpression": { - "argumentTypes": null, - "id": 1983, - "name": "_Token", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1969, - "src": "478:6:6", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "471:14:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "hexValue": "30", - "id": 1985, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "488:1:6", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "471:18:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 1987, - "nodeType": "ExpressionStatement", - "src": "471:18:6" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 1989, - "name": "_Token", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1969, - "src": "513:6:6", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 1990, - "name": "_to", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1971, - "src": "521:3:6", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 1991, - "name": "temp", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 1977, - "src": "526:4:6", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 1988, - "name": "TransferToken", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 3255, - "src": "499:13:6", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (address,address,uint256)" - } - }, - "id": 1992, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "499:32:6", - "tryCall": false, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 1993, - "nodeType": "ExpressionStatement", - "src": "499:32:6" - } - ] - }, - "documentation": null, - "functionSelector": "fc1a86ff", - "id": 1995, - "implemented": true, - "kind": "function", - "modifiers": [ - { - "arguments": null, - "id": 1974, - "modifierName": { - "argumentTypes": null, - "id": 1973, - "name": "onlyOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 2055, - "src": "412:9:6", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "412:9:6" - } - ], - "name": "WithdrawERC20Fee", - "nodeType": "FunctionDefinition", - "overrides": null, - "parameters": { - "id": 1972, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 1969, - "mutability": "mutable", - "name": "_Token", - "nodeType": "VariableDeclaration", - "overrides": null, - "scope": 1995, - "src": "376:14:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1968, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "376:7:6", - "stateMutability": "nonpayable", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 1971, - "mutability": "mutable", - "name": "_to", - "nodeType": "VariableDeclaration", - "overrides": null, - "scope": 1995, - "src": "392:11:6", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 1970, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "392:7:6", - "stateMutability": "nonpayable", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "375:29:6" - }, - "returnParameters": { - "id": 1975, - "nodeType": "ParameterList", - "parameters": [], - "src": "422:0:6" - }, - "scope": 1996, - "src": "350:188:6", - "stateMutability": "nonpayable", - "virtual": false, - "visibility": "public" - } - ], - "scope": 1997, - "src": "87:458:6" - } - ], - "src": "32:513:6" - }, - "legacyAST": { - "attributes": { - "absolutePath": "/home/ashwin/Poolz/Poolz-Back/contracts/ThePoolz.sol", - "exportedSymbols": { - "ThePoolz": [1996] - }, - "license": "MIT" - }, - "children": [ - { - "attributes": { - "literals": ["solidity", "^", "0.6", ".0"] - }, - "id": 1942, - "name": "PragmaDirective", - "src": "32:23:6" - }, - { - "attributes": { - "SourceUnit": 894, - "absolutePath": "/home/ashwin/Poolz/Poolz-Back/contracts/InvestorData.sol", - "file": "./InvestorData.sol", - "scope": 1997, - "symbolAliases": [null], - "unitAlias": "" - }, - "id": 1943, - "name": "ImportDirective", - "src": "57:28:6" - }, - { - "attributes": { - "abstract": false, - "contractDependencies": [ - 806, 893, 1219, 1499, 1940, 2106, 3065, 3157, 3364, 3478, 3527, 3639 - ], - "contractKind": "contract", - "documentation": null, - "fullyImplemented": true, - "linearizedBaseContracts": [ - 1996, 893, 806, 1940, 1499, 1219, 3157, 3639, 3527, 3364, 3478, - 2106, 3065 - ], - "name": "ThePoolz", - "scope": 1997 - }, - "children": [ - { - "attributes": { - "arguments": null - }, - "children": [ - { - "attributes": { - "contractScope": null, - "name": "InvestorData", - "referencedDeclaration": 893, - "type": "contract InvestorData" - }, - "id": 1944, - "name": "UserDefinedTypeName", - "src": "108:12:6" - } - ], - "id": 1945, - "name": "InheritanceSpecifier", - "src": "108:12:6" - }, - { - "attributes": { - "documentation": null, - "implemented": true, - "isConstructor": true, - "kind": "constructor", - "modifiers": [null], - "name": "", - "overrides": null, - "scope": 1996, - "stateMutability": "nonpayable", - "virtual": false, - "visibility": "public" - }, - "children": [ - { - "attributes": { - "parameters": [null] - }, - "children": [], - "id": 1946, - "name": "ParameterList", - "src": "138:2:6" - }, - { - "attributes": { - "parameters": [null] - }, - "children": [], - "id": 1947, - "name": "ParameterList", - "src": "148:0:6" - }, - { - "attributes": { - "statements": [null] - }, - "children": [], - "id": 1948, - "name": "Block", - "src": "148:6:6" - } - ], - "id": 1949, - "name": "FunctionDefinition", - "src": "127:27:6" - }, - { - "attributes": { - "documentation": null, - "functionSelector": "991e979a", - "implemented": true, - "isConstructor": false, - "kind": "function", - "name": "WithdrawETHFee", - "overrides": null, - "scope": 1996, - "stateMutability": "nonpayable", - "virtual": false, - "visibility": "public" - }, - "children": [ - { - "children": [ - { - "attributes": { - "constant": false, - "mutability": "mutable", - "name": "_to", - "overrides": null, - "scope": 1967, - "stateVariable": false, - "storageLocation": "default", - "type": "address payable", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "address", - "stateMutability": "payable", - "type": "address payable" - }, - "id": 1950, - "name": "ElementaryTypeName", - "src": "184:15:6" - } - ], - "id": 1951, - "name": "VariableDeclaration", - "src": "184:19:6" - } - ], - "id": 1952, - "name": "ParameterList", - "src": "183:21:6" - }, - { - "attributes": { - "parameters": [null] - }, - "children": [], - "id": 1955, - "name": "ParameterList", - "src": "222:0:6" - }, - { - "attributes": { - "arguments": null - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 2055, - "type": "modifier ()", - "value": "onlyOwner" - }, - "id": 1953, - "name": "Identifier", - "src": "212:9:6" - } - ], - "id": 1954, - "name": "ModifierInvocation", - "src": "212:9:6" - }, - { - "children": [ - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "isStructConstructorCall": false, - "lValueRequested": false, - "names": [null], - "tryCall": false, - "type": "tuple()", - "type_conversion": false - }, - "children": [ - { - "attributes": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "member_name": "transfer", - "referencedDeclaration": null, - "type": "function (uint256)" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 1951, - "type": "address payable", - "value": "_to" - }, - "id": 1956, - "name": "Identifier", - "src": "232:3:6" - } - ], - "id": 1958, - "name": "MemberAccess", - "src": "232:12:6" - }, - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "member_name": "balance", - "referencedDeclaration": null, - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "isStructConstructorCall": false, - "lValueRequested": false, - "names": [null], - "tryCall": false, - "type": "address payable", - "type_conversion": true - }, - "children": [ - { - "attributes": { - "argumentTypes": [ - { - "typeIdentifier": "t_contract$_ThePoolz_$1996", - "typeString": "contract ThePoolz" - } - ], - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "type": "type(address)" - }, - "children": [ - { - "attributes": { - "name": "address", - "type": null - }, - "id": 1959, - "name": "ElementaryTypeName", - "src": "245:7:6" - } - ], - "id": 1960, - "name": "ElementaryTypeNameExpression", - "src": "245:7:6" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": -28, - "type": "contract ThePoolz", - "value": "this" - }, - "id": 1961, - "name": "Identifier", - "src": "253:4:6" - } - ], - "id": 1962, - "name": "FunctionCall", - "src": "245:13:6" - } - ], - "id": 1963, - "name": "MemberAccess", - "src": "245:21:6" - } - ], - "id": 1964, - "name": "FunctionCall", - "src": "232:35:6" - } - ], - "id": 1965, - "name": "ExpressionStatement", - "src": "232:35:6" - } - ], - "id": 1966, - "name": "Block", - "src": "222:122:6" - } - ], - "id": 1967, - "name": "FunctionDefinition", - "src": "160:184:6" - }, - { - "attributes": { - "documentation": null, - "functionSelector": "fc1a86ff", - "implemented": true, - "isConstructor": false, - "kind": "function", - "name": "WithdrawERC20Fee", - "overrides": null, - "scope": 1996, - "stateMutability": "nonpayable", - "virtual": false, - "visibility": "public" - }, - "children": [ - { - "children": [ - { - "attributes": { - "constant": false, - "mutability": "mutable", - "name": "_Token", - "overrides": null, - "scope": 1995, - "stateVariable": false, - "storageLocation": "default", - "type": "address", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "address", - "stateMutability": "nonpayable", - "type": "address" - }, - "id": 1968, - "name": "ElementaryTypeName", - "src": "376:7:6" - } - ], - "id": 1969, - "name": "VariableDeclaration", - "src": "376:14:6" - }, - { - "attributes": { - "constant": false, - "mutability": "mutable", - "name": "_to", - "overrides": null, - "scope": 1995, - "stateVariable": false, - "storageLocation": "default", - "type": "address", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "address", - "stateMutability": "nonpayable", - "type": "address" - }, - "id": 1970, - "name": "ElementaryTypeName", - "src": "392:7:6" - } - ], - "id": 1971, - "name": "VariableDeclaration", - "src": "392:11:6" - } - ], - "id": 1972, - "name": "ParameterList", - "src": "375:29:6" - }, - { - "attributes": { - "parameters": [null] - }, - "children": [], - "id": 1975, - "name": "ParameterList", - "src": "422:0:6" - }, - { - "attributes": { - "arguments": null - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 2055, - "type": "modifier ()", - "value": "onlyOwner" - }, - "id": 1973, - "name": "Identifier", - "src": "412:9:6" - } - ], - "id": 1974, - "name": "ModifierInvocation", - "src": "412:9:6" - }, - { - "children": [ - { - "attributes": { - "assignments": [1977] - }, - "children": [ - { - "attributes": { - "constant": false, - "mutability": "mutable", - "name": "temp", - "overrides": null, - "scope": 1994, - "stateVariable": false, - "storageLocation": "default", - "type": "uint256", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "uint256", - "type": "uint256" - }, - "id": 1976, - "name": "ElementaryTypeName", - "src": "432:7:6" - } - ], - "id": 1977, - "name": "VariableDeclaration", - "src": "432:12:6" - }, - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 944, - "type": "mapping(address => uint256)", - "value": "FeeMap" - }, - "id": 1978, - "name": "Identifier", - "src": "447:6:6" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 1969, - "type": "address", - "value": "_Token" - }, - "id": 1979, - "name": "Identifier", - "src": "454:6:6" - } - ], - "id": 1980, - "name": "IndexAccess", - "src": "447:14:6" - } - ], - "id": 1981, - "name": "VariableDeclarationStatement", - "src": "432:29:6" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "=", - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 944, - "type": "mapping(address => uint256)", - "value": "FeeMap" - }, - "id": 1982, - "name": "Identifier", - "src": "471:6:6" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 1969, - "type": "address", - "value": "_Token" - }, - "id": 1983, - "name": "Identifier", - "src": "478:6:6" - } - ], - "id": 1984, - "name": "IndexAccess", - "src": "471:14:6" - }, - { - "attributes": { - "argumentTypes": null, - "hexvalue": "30", - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "subdenomination": null, - "token": "number", - "type": "int_const 0", - "value": "0" - }, - "id": 1985, - "name": "Literal", - "src": "488:1:6" - } - ], - "id": 1986, - "name": "Assignment", - "src": "471:18:6" - } - ], - "id": 1987, - "name": "ExpressionStatement", - "src": "471:18:6" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "isStructConstructorCall": false, - "lValueRequested": false, - "names": [null], - "tryCall": false, - "type": "tuple()", - "type_conversion": false - }, - "children": [ - { - "attributes": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "overloadedDeclarations": [null], - "referencedDeclaration": 3255, - "type": "function (address,address,uint256)", - "value": "TransferToken" - }, - "id": 1988, - "name": "Identifier", - "src": "499:13:6" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 1969, - "type": "address", - "value": "_Token" - }, - "id": 1989, - "name": "Identifier", - "src": "513:6:6" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 1971, - "type": "address", - "value": "_to" - }, - "id": 1990, - "name": "Identifier", - "src": "521:3:6" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 1977, - "type": "uint256", - "value": "temp" - }, - "id": 1991, - "name": "Identifier", - "src": "526:4:6" - } - ], - "id": 1992, - "name": "FunctionCall", - "src": "499:32:6" - } - ], - "id": 1993, - "name": "ExpressionStatement", - "src": "499:32:6" - } - ], - "id": 1994, - "name": "Block", - "src": "422:116:6" - } - ], - "id": 1995, - "name": "FunctionDefinition", - "src": "350:188:6" - } - ], - "id": 1996, - "name": "ContractDefinition", - "src": "87:458:6" - } - ], - "id": 1997, - "name": "SourceUnit", - "src": "32:513:6" - }, - "compiler": { - "name": "solc", - "version": "0.6.12+commit.27d51765.Emscripten.clang" - }, - "networks": {}, - "schemaVersion": "3.4.1", - "updatedAt": "2021-06-06T18:30:22.580Z", - "devdoc": { - "kind": "dev", - "methods": { - "owner()": { - "details": "Returns the address of the current owner." - }, - "paused()": { - "details": "Returns true if the contract is paused, and false otherwise." - }, - "renounceOwnership()": { - "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner." - }, - "transferOwnership(address)": { - "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner." - } - }, - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": {}, - "version": 1 - } -} diff --git a/src/contracts/abi/TimedDealProvider.json b/src/contracts/abi/TimedDealProvider.json deleted file mode 100644 index 91fe659..0000000 --- a/src/contracts/abi/TimedDealProvider.json +++ /dev/null @@ -1,495 +0,0 @@ -{ - "NameVersion": "TimedDealProvider@1.0.6", - "contractName": "TimedDealProvider", - "abi": [ - { - "inputs": [ - { - "internalType": "contract ILockDealNFT", - "name": "_lockDealNFT", - "type": "address" - }, - { - "internalType": "address", - "name": "_provider", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "target", - "type": "address" - } - ], - "name": "AddressEmptyCode", - "type": "error" - }, - { - "inputs": [], - "name": "FailedCall", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "newAdmin", - "type": "address" - } - ], - "name": "FirewallAdminUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "newFirewall", - "type": "address" - } - ], - "name": "FirewallUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "name": "UpdateParams", - "type": "event" - }, - { - "inputs": [], - "name": "acceptFirewallAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "beforeTransfer", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "addresses", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - } - ], - "name": "createNewPool", - "outputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "currentParamsTargetLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "firewallAdmin", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "getParams", - "outputs": [ - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "getSubProvidersPoolIds", - "outputs": [ - { - "internalType": "uint256[]", - "name": "poolIds", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "getWithdrawableAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "lockDealNFT", - "outputs": [ - { - "internalType": "contract ILockDealNFT", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "poolIdToAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "poolIdToTime", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "provider", - "outputs": [ - { - "internalType": "contract ISimpleProvider", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "uint256[]", - "name": "params", - "type": "uint256[]" - } - ], - "name": "registerPool", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "vennPolicy", - "type": "address" - }, - { - "internalType": "bytes", - "name": "vennPolicyPayload", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "safeFunctionCall", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "vennPolicy", - "type": "address" - }, - { - "internalType": "bool", - "name": "status", - "type": "bool" - } - ], - "name": "setApprovedVennPolicy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "fee", - "type": "uint256" - } - ], - "name": "setApprovedVennPolicyFee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewall", - "type": "address" - } - ], - "name": "setFirewall", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewallAdmin", - "type": "address" - } - ], - "name": "setFirewallAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "lockDealNFTPoolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "newPoolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "ratio", - "type": "uint256" - } - ], - "name": "split", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [ - { - "internalType": "uint256", - "name": "withdrawnAmount", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "isFinal", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "poolId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [ - { - "internalType": "uint256", - "name": "withdrawnAmount", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "isFinal", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/src/contracts/abi/TokenNFTConnector.json b/src/contracts/abi/TokenNFTConnector.json deleted file mode 100644 index a0559d2..0000000 --- a/src/contracts/abi/TokenNFTConnector.json +++ /dev/null @@ -1,570 +0,0 @@ -{ - "NameVersion": "TokenNFTConnector@1.2.1", - "contractName": "TokenNFTConnector", - "abi": [ - { - "inputs": [ - { - "internalType": "contract IERC20", - "name": "_token", - "type": "address" - }, - { - "internalType": "contract IERC20", - "name": "_pairToken", - "type": "address" - }, - { - "internalType": "contract ISwapRouter", - "name": "_swapRouter", - "type": "address" - }, - { - "internalType": "contract IDelayVaultProvider", - "name": "_delayVaultProvider", - "type": "address" - }, - { - "internalType": "uint24", - "name": "_poolFee", - "type": "uint24" - }, - { - "internalType": "uint256", - "name": "_projectOwnerFee", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "target", - "type": "address" - } - ], - "name": "AddressEmptyCode", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "AddressInsufficientBalance", - "type": "error" - }, - { - "inputs": [], - "name": "EnforcedPause", - "type": "error" - }, - { - "inputs": [], - "name": "ExpectedPause", - "type": "error" - }, - { - "inputs": [], - "name": "FailedInnerCall", - "type": "error" - }, - { - "inputs": [], - "name": "FeeTooHigh", - "type": "error" - }, - { - "inputs": [], - "name": "InsufficientOutputAmount", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amountIn", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "allowance", - "type": "uint256" - } - ], - "name": "NoAllowance", - "type": "error" - }, - { - "inputs": [], - "name": "NoZeroAddress", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "OwnableInvalidOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "OwnableUnauthorizedAccount", - "type": "error" - }, - { - "inputs": [], - "name": "ReentrancyGuardReentrantCall", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "token", - "type": "address" - } - ], - "name": "SafeERC20FailedOperation", - "type": "error" - }, - { - "inputs": [], - "name": "SameTokensInPair", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amountOut", - "type": "uint256" - } - ], - "name": "UpdateYourTier", - "type": "error" - }, - { - "inputs": [], - "name": "ZeroBalance", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amountIn", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "bytes", - "name": "path", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amountOut", - "type": "uint256" - } - ], - "name": "LeaderboardCreated", - "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": "fee", - "type": "uint256" - } - ], - "name": "ProjectOwnerFeeChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "ProjectOwnerFeeWithdrawn", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "Unpaused", - "type": "event" - }, - { - "inputs": [], - "name": "MAX_FEE", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "calcMinusFee", - "outputs": [ - { - "internalType": "uint256", - "name": "leftAmount", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "internalType": "uint256", - "name": "additionalAmount", - "type": "uint256" - } - ], - "name": "checkIncreaseTier", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amountIn", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountOutMinimum", - "type": "uint256" - }, - { - "components": [ - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "uint24", - "name": "fee", - "type": "uint24" - } - ], - "internalType": "struct ITokenNFTConnector.SwapParams[]", - "name": "poolsData", - "type": "tuple[]" - } - ], - "name": "createLeaderboard", - "outputs": [ - { - "internalType": "uint256", - "name": "amountOut", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "delayVaultProvider", - "outputs": [ - { - "internalType": "contract IDelayVaultProvider", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "uint24", - "name": "fee", - "type": "uint24" - } - ], - "internalType": "struct ITokenNFTConnector.SwapParams[]", - "name": "data", - "type": "tuple[]" - } - ], - "name": "getBytes", - "outputs": [ - { - "internalType": "bytes", - "name": "result", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "pairToken", - "outputs": [ - { - "internalType": "contract IERC20", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "pause", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "paused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "projectOwnerFee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "fee", - "type": "uint256" - } - ], - "name": "setProjectOwnerFee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "swapRouter", - "outputs": [ - { - "internalType": "contract ISwapRouter", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "token", - "outputs": [ - { - "internalType": "contract IERC20", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "unpause", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "version", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawFee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/src/contracts/abi/VaultManager.json b/src/contracts/abi/VaultManager.json deleted file mode 100644 index 8bbdd2a..0000000 --- a/src/contracts/abi/VaultManager.json +++ /dev/null @@ -1,818 +0,0 @@ -{ - "NameVersion": "VaultManager@0.0.4-ironblocks", - "contractName": "VaultManager", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "vaultId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "tokenAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Deposited", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "vaultId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "tokenAddress", - "type": "address" - } - ], - "name": "NewVaultCreated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "vaultId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "tokenAddress", - "type": "address" - } - ], - "name": "VaultDeleted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "vaultId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "tokenAddress", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "receiver", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint96", - "name": "feeNumerator", - "type": "uint96" - } - ], - "name": "VaultRoyaltySet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "vaultId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "bool", - "name": "depositStatus", - "type": "bool" - }, - { - "indexed": true, - "internalType": "bool", - "name": "withdrawStatus", - "type": "bool" - } - ], - "name": "VaultStatusUpdate", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "vaultId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "tokenAddress", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Withdrawn", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_tokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_tradeStartTime", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_royaltyReceiver", - "type": "address" - }, - { - "internalType": "uint96", - "name": "_feeNumerator", - "type": "uint96" - } - ], - "name": "createNewVault", - "outputs": [ - { - "internalType": "uint256", - "name": "vaultId", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_tokenAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_royaltyReceiver", - "type": "address" - }, - { - "internalType": "uint96", - "name": "_feeNumerator", - "type": "uint96" - } - ], - "name": "createNewVault", - "outputs": [ - { - "internalType": "uint256", - "name": "vaultId", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_tokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_tradeStartTime", - "type": "uint256" - } - ], - "name": "createNewVault", - "outputs": [ - { - "internalType": "uint256", - "name": "vaultId", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_tokenAddress", - "type": "address" - } - ], - "name": "createNewVault", - "outputs": [ - { - "internalType": "uint256", - "name": "vaultId", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_tokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "depositByToken", - "outputs": [ - { - "internalType": "uint256", - "name": "vaultId", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "firewallAdmin", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_tokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "from", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "count", - "type": "uint256" - } - ], - "name": "getAllVaultBalanceByToken", - "outputs": [ - { - "internalType": "uint256", - "name": "balance", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_tokenAddress", - "type": "address" - } - ], - "name": "getCurrentVaultBalanceByToken", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_tokenAddress", - "type": "address" - } - ], - "name": "getCurrentVaultIdByToken", - "outputs": [ - { - "internalType": "uint256", - "name": "vaultId", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_tokenAddress", - "type": "address" - } - ], - "name": "getTotalVaultsByToken", - "outputs": [ - { - "internalType": "uint256", - "name": "_totalVaults", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_vaultId", - "type": "uint256" - } - ], - "name": "getVaultBalanceByVaultId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "isDepositActiveForVaultId", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "isWithdrawalActiveForVaultId", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "nonces", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "salePrice", - "type": "uint256" - } - ], - "name": "royaltyInfo", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_tokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_from", - "type": "address" - }, - { - "internalType": "bytes", - "name": "_signature", - "type": "bytes" - } - ], - "name": "safeDeposit", - "outputs": [ - { - "internalType": "uint256", - "name": "vaultId", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_vaultId", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "_depositStatus", - "type": "bool" - }, - { - "internalType": "bool", - "name": "_withdrawStatus", - "type": "bool" - } - ], - "name": "setActiveStatusForVaultId", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewall", - "type": "address" - } - ], - "name": "setFirewall", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_firewallAdmin", - "type": "address" - } - ], - "name": "setFirewallAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_vaultId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_tradeStartTime", - "type": "uint256" - } - ], - "name": "setTradeStartTime", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "setTrustee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "tokenToVaultIds", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalVaults", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "trustee", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "updateTrustee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_vaultId", - "type": "uint256" - } - ], - "name": "vaultIdToTokenAddress", - "outputs": [ - { - "internalType": "address", - "name": "token", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "vaultIdToTradeStartTime", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "vaultIdToVault", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_vaultId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "withdrawByVaultId", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/src/contracts/abi/WhiteList.json b/src/contracts/abi/WhiteList.json deleted file mode 100644 index 52d9f8d..0000000 --- a/src/contracts/abi/WhiteList.json +++ /dev/null @@ -1,9514 +0,0 @@ -{ - "contractName": "WhiteList", - "abi": [ - { - "constant": false, - "inputs": [ - { - "name": "_Id", - "type": "uint256" - }, - { - "name": "_Users", - "type": "address[]" - } - ], - "name": "RemoveAddress", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_Subject", - "type": "address" - }, - { - "name": "_Id", - "type": "uint256" - }, - { - "name": "_Amount", - "type": "uint256" - } - ], - "name": "Register", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_ChangeUntil", - "type": "uint256" - }, - { - "name": "_Contract", - "type": "address" - } - ], - "name": "CreateManualWhiteList", - "outputs": [ - { - "name": "Id", - "type": "uint256" - } - ], - "payable": true, - "stateMutability": "payable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_Id", - "type": "uint256" - } - ], - "name": "isWhiteListReady", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_limit", - "type": "uint256" - } - ], - "name": "setMaxUsersLimit", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "WhiteListCount", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "", - "type": "uint256" - }, - { - "name": "", - "type": "address" - } - ], - "name": "WhitelistDB", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "owner", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_to", - "type": "address" - } - ], - "name": "WithdrawETHFee", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_Id", - "type": "uint256" - }, - { - "name": "_NewContract", - "type": "address" - } - ], - "name": "ChangeContract", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "MaxUsersLimit", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_Id", - "type": "uint256" - }, - { - "name": "_NewCreator", - "type": "address" - } - ], - "name": "ChangeCreator", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "", - "type": "uint256" - } - ], - "name": "WhitelistSettings", - "outputs": [ - { - "name": "Creator", - "type": "address" - }, - { - "name": "ChangeUntil", - "type": "uint256" - }, - { - "name": "Contract", - "type": "address" - }, - { - "name": "isReady", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_Id", - "type": "uint256" - }, - { - "name": "_Users", - "type": "address[]" - }, - { - "name": "_Amount", - "type": "uint256[]" - } - ], - "name": "AddAddress", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_newCost", - "type": "uint256" - } - ], - "name": "setWhiteListCost", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_user", - "type": "address" - }, - { - "name": "_id", - "type": "uint256" - } - ], - "name": "Check", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "WhiteListCost", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "previousOwner", - "type": "address" - } - ], - "name": "OwnershipRenounced", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "_WhiteListCount", - "type": "uint256" - }, - { - "indexed": false, - "name": "_creator", - "type": "address" - }, - { - "indexed": false, - "name": "_contract", - "type": "address" - }, - { - "indexed": false, - "name": "_changeUntil", - "type": "uint256" - } - ], - "name": "NewWhiteList", - "type": "event" - } - ], - "metadata": "{\"compiler\":{\"version\":\"0.4.26+commit.4563c3fc\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":false,\"inputs\":[{\"name\":\"_Id\",\"type\":\"uint256\"},{\"name\":\"_Users\",\"type\":\"address[]\"}],\"name\":\"RemoveAddress\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_ChangeUntil\",\"type\":\"uint256\"},{\"name\":\"_Contract\",\"type\":\"address\"}],\"name\":\"CreateManualWhiteList\",\"outputs\":[{\"name\":\"Id\",\"type\":\"uint256\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_Id\",\"type\":\"uint256\"}],\"name\":\"isWhiteListReady\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_limit\",\"type\":\"uint256\"}],\"name\":\"setMaxUsersLimit\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"WhiteListCount\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"\",\"type\":\"address\"}],\"name\":\"WhitelistDB\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_Id\",\"type\":\"uint256\"},{\"name\":\"_NewContract\",\"type\":\"address\"}],\"name\":\"ChangeContract\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_Id\",\"type\":\"uint256\"},{\"name\":\"_Subject\",\"type\":\"address\"},{\"name\":\"_Amount\",\"type\":\"uint256\"}],\"name\":\"Register\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"MaxUsersLimit\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_Id\",\"type\":\"uint256\"},{\"name\":\"_NewCreator\",\"type\":\"address\"}],\"name\":\"ChangeCreator\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"WhitelistSettings\",\"outputs\":[{\"name\":\"Creator\",\"type\":\"address\"},{\"name\":\"ChangeUntil\",\"type\":\"uint256\"},{\"name\":\"Contract\",\"type\":\"address\"},{\"name\":\"isReady\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_Id\",\"type\":\"uint256\"},{\"name\":\"_Users\",\"type\":\"address[]\"},{\"name\":\"_Amount\",\"type\":\"uint256[]\"}],\"name\":\"AddAddress\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_newCost\",\"type\":\"uint256\"}],\"name\":\"setWhiteListCost\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_user\",\"type\":\"address\"},{\"name\":\"_id\",\"type\":\"uint256\"}],\"name\":\"Check\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"WhiteListCost\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"previousOwner\",\"type\":\"address\"}],\"name\":\"OwnershipRenounced\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"_WhiteListCount\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"_creator\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_contract\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_changeUntil\",\"type\":\"uint256\"}],\"name\":\"NewWhiteList\",\"type\":\"event\"}],\"devdoc\":{\"methods\":{\"renounceOwnership()\":{\"details\":\"Allows the current owner to relinquish control of the contract.\"},\"transferOwnership(address)\":{\"details\":\"Allows the current owner to transfer control of the contract to a newOwner.\",\"params\":{\"_newOwner\":\"The address to transfer ownership to.\"}}}},\"userdoc\":{\"methods\":{\"renounceOwnership()\":{\"notice\":\"Renouncing to ownership will leave the contract without an owner. It will not be possible to call the functions with the `onlyOwner` modifier anymore.\"}}}},\"settings\":{\"compilationTarget\":{\"/mnt/e/OneDrive/Poolz/WhiteList/contracts/WhiteList.sol\":\"WhiteList\"},\"evmVersion\":\"byzantium\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/mnt/e/OneDrive/Poolz/WhiteList/contracts/WhiteList.sol\":{\"keccak256\":\"0xb515395d081c26681ba4f789c5946f9b089e667fb29d578cf10422fa447d3ed1\",\"urls\":[\"bzzr://bf974aedf38287529cc3c3ed452f87076a61f3629c1e4f9039232f8a8dcf7690\"]},\"/mnt/e/OneDrive/Poolz/WhiteList/contracts/WhiteListHelper.sol\":{\"keccak256\":\"0x92c55ae9f6189f603b775212fcdb7afe000161dda001e555901400c7c0ede293\",\"urls\":[\"bzzr://8a67ebdc051db507633c884e11c268b3556a55bb4cf79f9578d388449bb33857\"]},\"openzeppelin-solidity/contracts/ownership/Ownable.sol\":{\"keccak256\":\"0x84c7090c27cf3657b73d9e26b6b316975fa0bd233b8169f254de0c3b3acfaefc\",\"urls\":[\"bzzr://b983355647976c1daa5de581a1b6a41be9c5adc17cce257b8679649db78f8a11\"]}},\"version\":1}", - "bytecode": "0x608060405234801561001057600080fd5b5060048054600160a060020a031916331790556001600355600a600555662386f26fc1000060025561108c806100476000396000f3006080604052600436106100fb5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301ad22f981146101005780634f4329bc1461015c5780634fb2975d14610185578063715018a6146101b1578063716495b9146101c65780637f77f7b0146101de5780638a3a6947146101f35780638da5cb5b14610217578063a3da776814610248578063a9d44d6e1461026c578063ac6f10cc14610293578063adb8cec0146102a8578063b2fe3d8e146102cc578063b9313a9214610319578063c7e9d141146103ac578063cc44919b146103c4578063e36c15e6146103e8578063f2fde38b146103fd575b600080fd5b34801561010c57600080fd5b5060408051602060046024803582810135848102808701860190975280865261015a9684359636966044959194909101929182918501908490808284375094975061041e9650505050505050565b005b610173600435600160a060020a03602435166105bd565b60408051918252519081900360200190f35b34801561019157600080fd5b5061019d600435610716565b604080519115158252519081900360200190f35b3480156101bd57600080fd5b5061015a610735565b3480156101d257600080fd5b5061015a6004356107a3565b3480156101ea57600080fd5b506101736107bf565b3480156101ff57600080fd5b50610173600435600160a060020a03602435166107c5565b34801561022357600080fd5b5061022c6107df565b60408051600160a060020a039092168252519081900360200190f35b34801561025457600080fd5b5061015a600435600160a060020a03602435166107ee565b34801561027857600080fd5b5061015a600435600160a060020a036024351660443561092f565b34801561029f57600080fd5b50610173610a57565b3480156102b457600080fd5b5061015a600435600160a060020a0360243516610a5d565b3480156102d857600080fd5b506102e4600435610b9b565b60408051600160a060020a03958616815260208101949094529190931682820152911515606082015290519081900360800190f35b34801561032557600080fd5b5060408051602060046024803582810135848102808701860190975280865261015a96843596369660449591949091019291829185019084908082843750506040805187358901803560208181028481018201909552818452989b9a998901989297509082019550935083925085019084908082843750949750610bd49650505050505050565b3480156103b857600080fd5b5061015a600435610eba565b3480156103d057600080fd5b50610173600160a060020a0360043516602435610ed6565b3480156103f457600080fd5b50610173610f11565b34801561040957600080fd5b5061015a600160a060020a0360043516610f17565b6000828152600160205260408120548390600160a060020a0316331461047c576040805160e560020a62461bcd0281526020600482015260176024820152600080516020611021833981519152604482015290519081900360640190fd5b60008481526001602081905260409091200154849042106104d5576040805160e560020a62461bcd0281526020600482015260196024820152600080516020611001833981519152604482015290519081900360640190fd5b6003548590811061051e576040805160e560020a62461bcd0281526020600482015260086024820152600080516020611041833981519152604482015290519081900360640190fd5b845160055481111561057a576040805160e560020a62461bcd02815260206004820152601b60248201527f4d6178696d756d2055736572204c696d69742065786365656465640000000000604482015290519081900360640190fd5b600094505b85518510156105b4576105a987878781518110151561059a57fe5b90602001906020020151610f3a565b60019094019361057f565b50505050505050565b600080600254341015151561061c576040805160e560020a62461bcd02815260206004820152601060248201527f6574686572206e6f7420656e6f75676800000000000000000000000000000000604482015290519081900360640190fd5b506040805160808181018352338083526020808401888152600160a060020a0388811686880181815260006060808a018281526003805484526001808a52938d90209b518c5490881673ffffffffffffffffffffffffffffffffffffffff19918216178d5597518c85015593516002909b0180549151151560a060020a0274ff0000000000000000000000000000000000000000199c9097169190971617999099169390931790935582549182019092558651818152928301939093528186015292830187905292517f085c1c7e6b017b7388970f1dca2f883a787103be74e88f24c1ae63e692d5c47c9281900390910190a19392505050565b60009081526001602052604090206002015460a060020a900460ff1690565b600454600160a060020a0316331461074c57600080fd5b600454604051600160a060020a03909116907ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482090600090a26004805473ffffffffffffffffffffffffffffffffffffffff19169055565b600454600160a060020a031633146107ba57600080fd5b600555565b60035481565b600060208181529281526040808220909352908152205481565b600454600160a060020a031681565b6000828152600160205260409020548290600160a060020a0316331461084c576040805160e560020a62461bcd0281526020600482015260176024820152600080516020611021833981519152604482015290519081900360640190fd5b60008381526001602081905260409091200154839042106108a5576040805160e560020a62461bcd0281526020600482015260196024820152600080516020611001833981519152604482015290519081900360640190fd5b600354849081106108ee576040805160e560020a62461bcd0281526020600482015260086024820152600080516020611041833981519152604482015290519081900360640190fd5b505050600091825260016020526040909120600201805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03909216919091179055565b600083151561093d57610a51565b600084815260016020526040902060020154600160a060020a031633146109ae576040805160e560020a62461bcd02815260206004820152601f60248201527f4f6e6c792074686520436f6e74726163742063616e2063616c6c207468697300604482015290519081900360640190fd5b600084815260208181526040808320600160a060020a0387168452909152902054821115610a26576040805160e560020a62461bcd02815260206004820152601f60248201527f536f7272792c206e6f20616c6f636174696f6e20666f72205375626a65637400604482015290519081900360640190fd5b50600083815260208181526040808320600160a060020a038616845290915290208054829003908190555b50505050565b60055481565b6000828152600160205260409020548290600160a060020a03163314610abb576040805160e560020a62461bcd0281526020600482015260176024820152600080516020611021833981519152604482015290519081900360640190fd5b6000838152600160208190526040909120015483904210610b14576040805160e560020a62461bcd0281526020600482015260196024820152600080516020611001833981519152604482015290519081900360640190fd5b60035484908110610b5d576040805160e560020a62461bcd0281526020600482015260086024820152600080516020611041833981519152604482015290519081900360640190fd5b505050600091825260016020526040909120805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03909216919091179055565b6001602081905260009182526040909120805491810154600290910154600160a060020a039283169281169060a060020a900460ff1684565b6000838152600160205260408120548490600160a060020a03163314610c32576040805160e560020a62461bcd0281526020600482015260176024820152600080516020611021833981519152604482015290519081900360640190fd5b6000858152600160208190526040909120015485904210610c8b576040805160e560020a62461bcd0281526020600482015260196024820152600080516020611001833981519152604482015290519081900360640190fd5b60035486908110610cd4576040805160e560020a62461bcd0281526020600482015260086024820152600080516020611041833981519152604482015290519081900360640190fd5b8551600554811115610d30576040805160e560020a62461bcd02815260206004820152601b60248201527f4d6178696d756d2055736572204c696d69742065786365656465640000000000604482015290519081900360640190fd5b8551875114610daf576040805160e560020a62461bcd02815260206004820152603360248201527f4e756d626572206f662075736572732073686f756c642062652073616d65206160448201527f732074686520616d6f756e74206c656e67746800000000000000000000000000606482015290519081900360840190fd5b8651600010610e08576040805160e560020a62461bcd02815260206004820152601160248201527f4e65656420736f6d657468696e672e2e2e000000000000000000000000000000604482015290519081900360640190fd5b60008881526001602052604090206002015460a060020a900460ff161515610e5e576000888152600160205260409020600201805474ff0000000000000000000000000000000000000000191660a060020a1790555b600094505b8651851015610eb057610ea5888887815181101515610e7e57fe5b906020019060200201518888815181101515610e9657fe5b90602001906020020151610f5e565b600190940193610e63565b5050505050505050565b600454600160a060020a03163314610ed157600080fd5b600255565b6000811515610ee85750600019610f0b565b50600081815260208181526040808320600160a060020a03861684529091529020545b92915050565b60025481565b600454600160a060020a03163314610f2e57600080fd5b610f3781610f82565b50565b600091825260208281526040808420600160a060020a039093168452919052812055565b600092835260208381526040808520600160a060020a039094168552929052912055565b600160a060020a0381161515610f9757600080fd5b600454604051600160a060020a038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055560054696d6520666f7220656469742069732066696e6973686564000000000000004f6e6c792063726561746f722063616e2061636365737300000000000000000057726f6e67204944000000000000000000000000000000000000000000000000a165627a7a723058202d3c6ccf2120a77deae097cf71f33da9fcf93ca21d1762050f07f7125416ff960029", - "deployedBytecode": "0x6080604052600436106100fb5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301ad22f981146101005780634f4329bc1461015c5780634fb2975d14610185578063715018a6146101b1578063716495b9146101c65780637f77f7b0146101de5780638a3a6947146101f35780638da5cb5b14610217578063a3da776814610248578063a9d44d6e1461026c578063ac6f10cc14610293578063adb8cec0146102a8578063b2fe3d8e146102cc578063b9313a9214610319578063c7e9d141146103ac578063cc44919b146103c4578063e36c15e6146103e8578063f2fde38b146103fd575b600080fd5b34801561010c57600080fd5b5060408051602060046024803582810135848102808701860190975280865261015a9684359636966044959194909101929182918501908490808284375094975061041e9650505050505050565b005b610173600435600160a060020a03602435166105bd565b60408051918252519081900360200190f35b34801561019157600080fd5b5061019d600435610716565b604080519115158252519081900360200190f35b3480156101bd57600080fd5b5061015a610735565b3480156101d257600080fd5b5061015a6004356107a3565b3480156101ea57600080fd5b506101736107bf565b3480156101ff57600080fd5b50610173600435600160a060020a03602435166107c5565b34801561022357600080fd5b5061022c6107df565b60408051600160a060020a039092168252519081900360200190f35b34801561025457600080fd5b5061015a600435600160a060020a03602435166107ee565b34801561027857600080fd5b5061015a600435600160a060020a036024351660443561092f565b34801561029f57600080fd5b50610173610a57565b3480156102b457600080fd5b5061015a600435600160a060020a0360243516610a5d565b3480156102d857600080fd5b506102e4600435610b9b565b60408051600160a060020a03958616815260208101949094529190931682820152911515606082015290519081900360800190f35b34801561032557600080fd5b5060408051602060046024803582810135848102808701860190975280865261015a96843596369660449591949091019291829185019084908082843750506040805187358901803560208181028481018201909552818452989b9a998901989297509082019550935083925085019084908082843750949750610bd49650505050505050565b3480156103b857600080fd5b5061015a600435610eba565b3480156103d057600080fd5b50610173600160a060020a0360043516602435610ed6565b3480156103f457600080fd5b50610173610f11565b34801561040957600080fd5b5061015a600160a060020a0360043516610f17565b6000828152600160205260408120548390600160a060020a0316331461047c576040805160e560020a62461bcd0281526020600482015260176024820152600080516020611021833981519152604482015290519081900360640190fd5b60008481526001602081905260409091200154849042106104d5576040805160e560020a62461bcd0281526020600482015260196024820152600080516020611001833981519152604482015290519081900360640190fd5b6003548590811061051e576040805160e560020a62461bcd0281526020600482015260086024820152600080516020611041833981519152604482015290519081900360640190fd5b845160055481111561057a576040805160e560020a62461bcd02815260206004820152601b60248201527f4d6178696d756d2055736572204c696d69742065786365656465640000000000604482015290519081900360640190fd5b600094505b85518510156105b4576105a987878781518110151561059a57fe5b90602001906020020151610f3a565b60019094019361057f565b50505050505050565b600080600254341015151561061c576040805160e560020a62461bcd02815260206004820152601060248201527f6574686572206e6f7420656e6f75676800000000000000000000000000000000604482015290519081900360640190fd5b506040805160808181018352338083526020808401888152600160a060020a0388811686880181815260006060808a018281526003805484526001808a52938d90209b518c5490881673ffffffffffffffffffffffffffffffffffffffff19918216178d5597518c85015593516002909b0180549151151560a060020a0274ff0000000000000000000000000000000000000000199c9097169190971617999099169390931790935582549182019092558651818152928301939093528186015292830187905292517f085c1c7e6b017b7388970f1dca2f883a787103be74e88f24c1ae63e692d5c47c9281900390910190a19392505050565b60009081526001602052604090206002015460a060020a900460ff1690565b600454600160a060020a0316331461074c57600080fd5b600454604051600160a060020a03909116907ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482090600090a26004805473ffffffffffffffffffffffffffffffffffffffff19169055565b600454600160a060020a031633146107ba57600080fd5b600555565b60035481565b600060208181529281526040808220909352908152205481565b600454600160a060020a031681565b6000828152600160205260409020548290600160a060020a0316331461084c576040805160e560020a62461bcd0281526020600482015260176024820152600080516020611021833981519152604482015290519081900360640190fd5b60008381526001602081905260409091200154839042106108a5576040805160e560020a62461bcd0281526020600482015260196024820152600080516020611001833981519152604482015290519081900360640190fd5b600354849081106108ee576040805160e560020a62461bcd0281526020600482015260086024820152600080516020611041833981519152604482015290519081900360640190fd5b505050600091825260016020526040909120600201805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03909216919091179055565b600083151561093d57610a51565b600084815260016020526040902060020154600160a060020a031633146109ae576040805160e560020a62461bcd02815260206004820152601f60248201527f4f6e6c792074686520436f6e74726163742063616e2063616c6c207468697300604482015290519081900360640190fd5b600084815260208181526040808320600160a060020a0387168452909152902054821115610a26576040805160e560020a62461bcd02815260206004820152601f60248201527f536f7272792c206e6f20616c6f636174696f6e20666f72205375626a65637400604482015290519081900360640190fd5b50600083815260208181526040808320600160a060020a038616845290915290208054829003908190555b50505050565b60055481565b6000828152600160205260409020548290600160a060020a03163314610abb576040805160e560020a62461bcd0281526020600482015260176024820152600080516020611021833981519152604482015290519081900360640190fd5b6000838152600160208190526040909120015483904210610b14576040805160e560020a62461bcd0281526020600482015260196024820152600080516020611001833981519152604482015290519081900360640190fd5b60035484908110610b5d576040805160e560020a62461bcd0281526020600482015260086024820152600080516020611041833981519152604482015290519081900360640190fd5b505050600091825260016020526040909120805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03909216919091179055565b6001602081905260009182526040909120805491810154600290910154600160a060020a039283169281169060a060020a900460ff1684565b6000838152600160205260408120548490600160a060020a03163314610c32576040805160e560020a62461bcd0281526020600482015260176024820152600080516020611021833981519152604482015290519081900360640190fd5b6000858152600160208190526040909120015485904210610c8b576040805160e560020a62461bcd0281526020600482015260196024820152600080516020611001833981519152604482015290519081900360640190fd5b60035486908110610cd4576040805160e560020a62461bcd0281526020600482015260086024820152600080516020611041833981519152604482015290519081900360640190fd5b8551600554811115610d30576040805160e560020a62461bcd02815260206004820152601b60248201527f4d6178696d756d2055736572204c696d69742065786365656465640000000000604482015290519081900360640190fd5b8551875114610daf576040805160e560020a62461bcd02815260206004820152603360248201527f4e756d626572206f662075736572732073686f756c642062652073616d65206160448201527f732074686520616d6f756e74206c656e67746800000000000000000000000000606482015290519081900360840190fd5b8651600010610e08576040805160e560020a62461bcd02815260206004820152601160248201527f4e65656420736f6d657468696e672e2e2e000000000000000000000000000000604482015290519081900360640190fd5b60008881526001602052604090206002015460a060020a900460ff161515610e5e576000888152600160205260409020600201805474ff0000000000000000000000000000000000000000191660a060020a1790555b600094505b8651851015610eb057610ea5888887815181101515610e7e57fe5b906020019060200201518888815181101515610e9657fe5b90602001906020020151610f5e565b600190940193610e63565b5050505050505050565b600454600160a060020a03163314610ed157600080fd5b600255565b6000811515610ee85750600019610f0b565b50600081815260208181526040808320600160a060020a03861684529091529020545b92915050565b60025481565b600454600160a060020a03163314610f2e57600080fd5b610f3781610f82565b50565b600091825260208281526040808420600160a060020a039093168452919052812055565b600092835260208381526040808520600160a060020a039094168552929052912055565b600160a060020a0381161515610f9757600080fd5b600454604051600160a060020a038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055560054696d6520666f7220656469742069732066696e6973686564000000000000004f6e6c792063726561746f722063616e2061636365737300000000000000000057726f6e67204944000000000000000000000000000000000000000000000000a165627a7a723058202d3c6ccf2120a77deae097cf71f33da9fcf93ca21d1762050f07f7125416ff960029", - "sourceMap": "155:3157:2:-;;;207:131;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;567:5:4;:18;;-1:-1:-1;;;;;;567:18:4;575:10;567:18;;;;238:14:2;:18;293:2;277:13;:18;321:10;305:13;:26;155:3157;;;;;;", - "deployedSourceMap": "155:3157:2:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2428:320;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2428:320:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2428:320:2;;-1:-1:-1;2428:320:2;;-1:-1:-1;;;;;;;2428:320:2;;;767:587;;;;-1:-1:-1;;;;;767:587:2;;;;;;;;;;;;;;;;;;;;;1427:120:3;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1427:120:3;;;;;;;;;;;;;;;;;;;;;;;1001:111:4;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1001:111:4;;;;551:100:2;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;551:100:2;;;;;1158:29:3;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1158:29:3;;;;988:66;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;988:66:3;;;-1:-1:-1;;;;;988:66:3;;;;;238:20:4;;8:9:-1;5:2;;;30:1;27;20:12;5:2;238:20:4;;;;;;;;-1:-1:-1;;;;;238:20:4;;;;;;;;;;;;;;1581:219:2;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1581:219:2;;;-1:-1:-1;;;;;1581:219:2;;;;;2754:556;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2754:556:2;;;-1:-1:-1;;;;;2754:556:2;;;;;;;377:28;;8:9:-1;5:2;;;30:1;27;20:12;5:2;377:28:2;;;;1360:215;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1360:215:2;;;-1:-1:-1;;;;;1360:215:2;;;;;1060:58:3;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1060:58:3;;;;;;;;;-1:-1:-1;;;;;1060:58:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1806:616:2;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1806:616:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1806:616:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1806:616:2;;;;-1:-1:-1;1806:616:2;-1:-1:-1;1806:616:2;;-1:-1:-1;1806:616:2;;;;;;;;;-1:-1:-1;1806:616:2;;-1:-1:-1;1806:616:2;;-1:-1:-1;;;;;;;1806:616:2;657:104;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;657:104:2;;;;;1608:159:3;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1608:159:3;-1:-1:-1;;;;;1608:159:3;;;;;;;1124:28;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1124:28:3;;;;1274:103:4;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1274:103:4;-1:-1:-1;;;;;1274:103:4;;;;;2428:320:2;2632:13;256:22:3;;;:17;:22;;;;;:30;2517:3:2;;-1:-1:-1;;;;;256:30:3;290:10;256:44;235:114;;;;;-1:-1:-1;;;;;235:114:3;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;235:114:3;;;;;;;;;;;;;;;445:22;;;;:17;:22;;;;;;;;:34;;2544:3:2;;439::3;:40;418:112;;;;;-1:-1:-1;;;;;418:112:3;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;418:112:3;;;;;;;;;;;;;;;610:14;;2568:3:2;;604:20:3;;596:41;;;;;-1:-1:-1;;;;;596:41:3;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;596:41:3;;;;;;;;;;;;;;;2598:13:2;;482;;472:23;;;464:63;;;;;-1:-1:-1;;;;;464:63:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;2648:1;2632:17;;2627:115;2659:6;:13;2651:5;:21;2627:115;;;2697:34;2712:3;2717:6;2724:5;2717:13;;;;;;;;;;;;;;;;;;2697:14;:34::i;:::-;2674:7;;;;;2627:115;;;647:1:3;540;359;2428:320:2;;;;:::o;767:587::-;885:10;1201:12;928:13;;915:9;:26;;907:55;;;;;;;-1:-1:-1;;;;;907:55:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1009:182:2;;;;;;;;;1103:10;1009:182;;;;;;;;;;-1:-1:-1;;;;;1009:182:2;;;;;;;;;-1:-1:-1;1009:182:2;;;;;;;990:14;;;972:33;;1009:182;972:33;;;;;;;:219;;;;;;;-1:-1:-1;;972:219:2;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;972:219:2;-1:-1:-1;;972:219:2;;;;;;;;;;;;;;;;;;;;1216:14;;1240:16;;;;;;1271:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1343:4;767:587;-1:-1:-1;;;767:587:2:o;1427:120:3:-;1488:4;1510:22;;;:17;:22;;;;;:30;;;-1:-1:-1;;;1510:30:3;;;;;1427:120::o;1001:111:4:-;719:5;;-1:-1:-1;;;;;719:5:4;705:10;:19;697:28;;;;;;1077:5;;1058:25;;-1:-1:-1;;;;;1077:5:4;;;;1058:25;;1077:5;;1058:25;1089:5;:18;;-1:-1:-1;;1089:18:4;;;1001:111::o;551:100:2:-;719:5:4;;-1:-1:-1;;;;;719:5:4;705:10;:19;697:28;;;;;;622:13:2;:22;551:100::o;1158:29:3:-;;;;:::o;988:66::-;;;;;;;;;;;;;;;;;;;;;;:::o;238:20:4:-;;;-1:-1:-1;;;;;238:20:4;;:::o;1581:219:2:-;256:22:3;;;;:17;:22;;;;;:30;1677:3:2;;-1:-1:-1;;;;;256:30:3;290:10;256:44;235:114;;;;;-1:-1:-1;;;;;235:114:3;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;235:114:3;;;;;;;;;;;;;;;445:22;;;;:17;:22;;;;;;;;:34;;1704:3:2;;439::3;:40;418:112;;;;;-1:-1:-1;;;;;418:112:3;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;418:112:3;;;;;;;;;;;;;;;610:14;;1728:3:2;;604:20:3;;596:41;;;;;-1:-1:-1;;;;;596:41:3;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;596:41:3;;;;;;;;;;;;;;;-1:-1:-1;;;1747:22:2;;;;:17;:22;;;;;;:31;;:46;;-1:-1:-1;;1747:46:2;-1:-1:-1;;;;;1747:46:2;;;;;;;;;1581:219::o;2754:556::-;3157:12;2873:8;;2869:21;;;2883:7;;2869:21;2934:22;;;;:17;:22;;;;;:31;;;-1:-1:-1;;;;;2934:31:2;2920:10;:45;2899:123;;;;;-1:-1:-1;;;;;2899:123:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;3053:11;:16;;;;;;;;;;;-1:-1:-1;;;;;3053:26:2;;;;;;;;;;:37;-1:-1:-1;3053:37:2;3032:115;;;;;-1:-1:-1;;;;;3032:115:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3172:11:2;:16;;;;;;;;;;;-1:-1:-1;;;;;3172:26:2;;;;;;;;;;;:36;;;3218:33;;;;3261:42;2754:556;;;;:::o;377:28::-;;;;:::o;1360:215::-;256:22:3;;;;:17;:22;;;;;:30;1454:3:2;;-1:-1:-1;;;;;256:30:3;290:10;256:44;235:114;;;;;-1:-1:-1;;;;;235:114:3;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;235:114:3;;;;;;;;;;;;;;;445:22;;;;:17;:22;;;;;;;;:34;;1481:3:2;;439::3;:40;418:112;;;;;-1:-1:-1;;;;;418:112:3;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;418:112:3;;;;;;;;;;;;;;;610:14;;1505:3:2;;604:20:3;;596:41;;;;;-1:-1:-1;;;;;596:41:3;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;596:41:3;;;;;;;;;;;;;;;-1:-1:-1;;;1524:22:2;;;;:17;:22;;;;;;:44;;-1:-1:-1;;1524:44:2;-1:-1:-1;;;;;1524:44:2;;;;;;;;;1360:215::o;1060:58:3:-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1060:58:3;;;;;;;-1:-1:-1;;;1060:58:3;;;;;:::o;1806:616:2:-;2293:13;256:22:3;;;:17;:22;;;;;:30;1911:3:2;;-1:-1:-1;;;;;256:30:3;290:10;256:44;235:114;;;;;-1:-1:-1;;;;;235:114:3;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;235:114:3;;;;;;;;;;;;;;;445:22;;;;:17;:22;;;;;;;;:34;;1938:3:2;;439::3;:40;418:112;;;;;-1:-1:-1;;;;;418:112:3;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;418:112:3;;;;;;;;;;;;;;;610:14;;1962:3:2;;604:20:3;;596:41;;;;;-1:-1:-1;;;;;596:41:3;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;596:41:3;;;;;;;;;;;;;;;1992:13:2;;482;;472:23;;;464:63;;;;;-1:-1:-1;;;;;464:63:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;2046:14;;2029:13;;:31;2021:95;;;;;-1:-1:-1;;;;;2021:95:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2134:13;;2150:1;-1:-1:-1;2126:46:2;;;;;-1:-1:-1;;;;;2126:46:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;2186:22;;;;:17;:22;;;;;:30;;;-1:-1:-1;;;2186:30:2;;;;2185:31;2182:97;;;2231:22;;;;2264:4;2231:22;;;;;:30;;:37;;-1:-1:-1;;2231:37:2;-1:-1:-1;;;2231:37:2;;;2182:97;2309:1;2293:17;;2288:128;2320:6;:13;2312:5;:21;2288:128;;;2358:47;2370:3;2375:6;2382:5;2375:13;;;;;;;;;;;;;;;;;;2390:7;2398:5;2390:14;;;;;;;;;;;;;;;;;;2358:11;:47::i;:::-;2335:7;;;;;2288:128;;;647:1:3;540;359;1806:616:2;;;;;:::o;657:104::-;719:5:4;;-1:-1:-1;;;;;719:5:4;705:10;:19;697:28;;;;;;730:13:2;:24;657:104::o;1608:159:3:-;1673:4;1692:8;;1688:32;;;-1:-1:-1;;;1702:18:3;;1688:32;-1:-1:-1;1737:11:3;:16;;;;;;;;;;;-1:-1:-1;;;;;1737:23:3;;;;;;;;;;1608:159;;;;;:::o;1124:28::-;;;;:::o;1274:103:4:-;719:5;;-1:-1:-1;;;;;719:5:4;705:10;:19;697:28;;;;;;1343:29;1362:9;1343:18;:29::i;:::-;1274:103;:::o;1318::3:-;1413:1;1388:16;;;;;;;;;;;-1:-1:-1;;;;;1388:22:3;;;;;;;;;;:26;1318:103::o;1194:118::-;1274:11;:16;;;;;;;;;;;-1:-1:-1;;;;;1274:22:3;;;;;;;;;;:31;1194:118::o;1512:171:4:-;-1:-1:-1;;;;;1582:23:4;;;;1574:32;;;;;;1638:5;;1617:38;;-1:-1:-1;;;;;1617:38:4;;;;1638:5;;1617:38;;1638:5;;1617:38;1661:5;:17;;-1:-1:-1;;1661:17:4;-1:-1:-1;;;;;1661:17:4;;;;;;;;;;1512:171::o", - "source": "// SPDX-License-Identifier: MIT\npragma solidity ^0.4.26;\n\nimport \"./WhiteListHelper.sol\";\nimport \"openzeppelin-solidity/contracts/ownership/Ownable.sol\";\n\ncontract WhiteList is WhiteListHelper, Ownable{\n constructor() public {\n WhiteListCount = 1; //0 is off\n MaxUsersLimit = 10;\n WhiteListCost = 0.01 ether;\n }\n\n //uint256 public SignUpCost;\n uint256 public MaxUsersLimit;\n\n modifier isBelowUserLimit(uint256 _limit) {\n require(_limit <= MaxUsersLimit, \"Maximum User Limit exceeded\");\n _;\n }\n\n function setMaxUsersLimit(uint256 _limit) external onlyOwner {\n MaxUsersLimit = _limit;\n }\n\n function setWhiteListCost(uint256 _newCost) external onlyOwner {\n WhiteListCost = _newCost;\n }\n\n function CreateManualWhiteList(\n uint256 _ChangeUntil,\n address _Contract\n ) public payable returns (uint256 Id) {\n require(msg.value >= WhiteListCost, \"ether not enough\");\n WhitelistSettings[WhiteListCount] = WhiteListItem(\n /*_Limit == 0 ? uint256(-1) :*/\n // _Limit,\n msg.sender,\n _ChangeUntil,\n _Contract,\n false\n );\n uint256 temp = WhiteListCount;\n WhiteListCount++;\n emit NewWhiteList(temp, msg.sender, _Contract, _ChangeUntil);\n return temp;\n }\n\n function ChangeCreator(uint256 _Id, address _NewCreator)\n external\n OnlyCreator(_Id)\n TimeRemaining(_Id)\n ValidateId(_Id)\n {\n WhitelistSettings[_Id].Creator = _NewCreator;\n }\n\n function ChangeContract(uint256 _Id, address _NewContract)\n external\n OnlyCreator(_Id)\n TimeRemaining(_Id)\n ValidateId(_Id)\n {\n WhitelistSettings[_Id].Contract = _NewContract;\n }\n\n function AddAddress(uint256 _Id, address[] _Users, uint256[] _Amount)\n public\n OnlyCreator(_Id)\n TimeRemaining(_Id)\n ValidateId(_Id)\n isBelowUserLimit(_Users.length)\n {\n require(_Users.length == _Amount.length, \"Number of users should be same as the amount length\");\n require(_Users.length > 0,\"Need something...\");\n if(!WhitelistSettings[_Id].isReady){\n WhitelistSettings[_Id].isReady = true;\n }\n for (uint256 index = 0; index < _Users.length; index++) {\n _AddAddress(_Id, _Users[index], _Amount[index]);\n }\n }\n\n function RemoveAddress(uint256 _Id, address[] _Users)\n public\n OnlyCreator(_Id)\n TimeRemaining(_Id)\n ValidateId(_Id)\n isBelowUserLimit(_Users.length)\n {\n for (uint256 index = 0; index < _Users.length; index++) {\n _RemoveAddress(_Id, _Users[index]);\n }\n }\n\n function Register(\n uint256 _Id,\n address _Subject,\n uint256 _Amount\n ) external {\n if (_Id == 0) return;\n require(\n msg.sender == WhitelistSettings[_Id].Contract,\n \"Only the Contract can call this\"\n );\n require(\n WhitelistDB[_Id][_Subject] >= _Amount,\n \"Sorry, no alocation for Subject\"\n );\n uint256 temp = WhitelistDB[_Id][_Subject] - _Amount;\n WhitelistDB[_Id][_Subject] = temp;\n assert(WhitelistDB[_Id][_Subject] == temp);\n }\n}", - "sourcePath": "/mnt/e/OneDrive/Poolz/WhiteList/contracts/WhiteList.sol", - "ast": { - "absolutePath": "/mnt/e/OneDrive/Poolz/WhiteList/contracts/WhiteList.sol", - "exportedSymbols": { - "WhiteList": [398] - }, - "id": 399, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 55, - "literals": ["solidity", "^", "0.4", ".26"], - "nodeType": "PragmaDirective", - "src": "32:24:2" - }, - { - "absolutePath": "/mnt/e/OneDrive/Poolz/WhiteList/contracts/WhiteListHelper.sol", - "file": "./WhiteListHelper.sol", - "id": 56, - "nodeType": "ImportDirective", - "scope": 399, - "sourceUnit": 553, - "src": "58:31:2", - "symbolAliases": [], - "unitAlias": "" - }, - { - "absolutePath": "openzeppelin-solidity/contracts/ownership/Ownable.sol", - "file": "openzeppelin-solidity/contracts/ownership/Ownable.sol", - "id": 57, - "nodeType": "ImportDirective", - "scope": 399, - "sourceUnit": 639, - "src": "90:63:2", - "symbolAliases": [], - "unitAlias": "" - }, - { - "baseContracts": [ - { - "arguments": null, - "baseName": { - "contractScope": null, - "id": 58, - "name": "WhiteListHelper", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 552, - "src": "177:15:2", - "typeDescriptions": { - "typeIdentifier": "t_contract$_WhiteListHelper_$552", - "typeString": "contract WhiteListHelper" - } - }, - "id": 59, - "nodeType": "InheritanceSpecifier", - "src": "177:15:2" - }, - { - "arguments": null, - "baseName": { - "contractScope": null, - "id": 60, - "name": "Ownable", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 638, - "src": "194:7:2", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Ownable_$638", - "typeString": "contract Ownable" - } - }, - "id": 61, - "nodeType": "InheritanceSpecifier", - "src": "194:7:2" - } - ], - "contractDependencies": [552, 638], - "contractKind": "contract", - "documentation": null, - "fullyImplemented": true, - "id": 398, - "linearizedBaseContracts": [398, 638, 552], - "name": "WhiteList", - "nodeType": "ContractDefinition", - "nodes": [ - { - "body": { - "id": 76, - "nodeType": "Block", - "src": "228:110:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 66, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 64, - "name": "WhiteListCount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 479, - "src": "238:14:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "hexValue": "31", - "id": 65, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "255:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_1_by_1", - "typeString": "int_const 1" - }, - "value": "1" - }, - "src": "238:18:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 67, - "nodeType": "ExpressionStatement", - "src": "238:18:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 70, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 68, - "name": "MaxUsersLimit", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 79, - "src": "277:13:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "hexValue": "3130", - "id": 69, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "293:2:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_10_by_1", - "typeString": "int_const 10" - }, - "value": "10" - }, - "src": "277:18:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 71, - "nodeType": "ExpressionStatement", - "src": "277:18:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 74, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 72, - "name": "WhiteListCost", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 477, - "src": "305:13:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "hexValue": "302e3031", - "id": 73, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "321:10:2", - "subdenomination": "ether", - "typeDescriptions": { - "typeIdentifier": "t_rational_10000000000000000_by_1", - "typeString": "int_const 10000000000000000" - }, - "value": "0.01" - }, - "src": "305:26:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 75, - "nodeType": "ExpressionStatement", - "src": "305:26:2" - } - ] - }, - "documentation": null, - "id": 77, - "implemented": true, - "isConstructor": true, - "isDeclaredConst": false, - "modifiers": [], - "name": "", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 62, - "nodeType": "ParameterList", - "parameters": [], - "src": "218:2:2" - }, - "payable": false, - "returnParameters": { - "id": 63, - "nodeType": "ParameterList", - "parameters": [], - "src": "228:0:2" - }, - "scope": 398, - "src": "207:131:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "constant": false, - "id": 79, - "name": "MaxUsersLimit", - "nodeType": "VariableDeclaration", - "scope": 398, - "src": "377:28:2", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 78, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "377:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "public" - }, - { - "body": { - "id": 91, - "nodeType": "Block", - "src": "454:91:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 86, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 84, - "name": "_limit", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 81, - "src": "472:6:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<=", - "rightExpression": { - "argumentTypes": null, - "id": 85, - "name": "MaxUsersLimit", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 79, - "src": "482:13:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "472:23:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - { - "argumentTypes": null, - "hexValue": "4d6178696d756d2055736572204c696d6974206578636565646564", - "id": 87, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "string", - "lValueRequested": false, - "nodeType": "Literal", - "src": "497:29:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_stringliteral_5cce8b9c091e277c6da485e3441151d3d96f6338c4abef2fa7f49f2bce1cf8b2", - "typeString": "literal_string \"Maximum User Limit exceeded\"" - }, - "value": "Maximum User Limit exceeded" - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_stringliteral_5cce8b9c091e277c6da485e3441151d3d96f6338c4abef2fa7f49f2bce1cf8b2", - "typeString": "literal_string \"Maximum User Limit exceeded\"" - } - ], - "id": 83, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [656, 657], - "referencedDeclaration": 657, - "src": "464:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", - "typeString": "function (bool,string memory) pure" - } - }, - "id": 88, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "464:63:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 89, - "nodeType": "ExpressionStatement", - "src": "464:63:2" - }, - { - "id": 90, - "nodeType": "PlaceholderStatement", - "src": "537:1:2" - } - ] - }, - "documentation": null, - "id": 92, - "name": "isBelowUserLimit", - "nodeType": "ModifierDefinition", - "parameters": { - "id": 82, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 81, - "name": "_limit", - "nodeType": "VariableDeclaration", - "scope": 92, - "src": "438:14:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 80, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "438:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "437:16:2" - }, - "src": "412:133:2", - "visibility": "internal" - }, - { - "body": { - "id": 103, - "nodeType": "Block", - "src": "612:39:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 101, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 99, - "name": "MaxUsersLimit", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 79, - "src": "622:13:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 100, - "name": "_limit", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 94, - "src": "638:6:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "622:22:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 102, - "nodeType": "ExpressionStatement", - "src": "622:22:2" - } - ] - }, - "documentation": null, - "id": 104, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": null, - "id": 97, - "modifierName": { - "argumentTypes": null, - "id": 96, - "name": "onlyOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 586, - "src": "602:9:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "602:9:2" - } - ], - "name": "setMaxUsersLimit", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 95, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 94, - "name": "_limit", - "nodeType": "VariableDeclaration", - "scope": 104, - "src": "577:14:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 93, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "577:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "576:16:2" - }, - "payable": false, - "returnParameters": { - "id": 98, - "nodeType": "ParameterList", - "parameters": [], - "src": "612:0:2" - }, - "scope": 398, - "src": "551:100:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "external" - }, - { - "body": { - "id": 115, - "nodeType": "Block", - "src": "720:41:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 113, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 111, - "name": "WhiteListCost", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 477, - "src": "730:13:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 112, - "name": "_newCost", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 106, - "src": "746:8:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "730:24:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 114, - "nodeType": "ExpressionStatement", - "src": "730:24:2" - } - ] - }, - "documentation": null, - "id": 116, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": null, - "id": 109, - "modifierName": { - "argumentTypes": null, - "id": 108, - "name": "onlyOwner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 586, - "src": "710:9:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "710:9:2" - } - ], - "name": "setWhiteListCost", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 107, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 106, - "name": "_newCost", - "nodeType": "VariableDeclaration", - "scope": 116, - "src": "683:16:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 105, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "683:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "682:18:2" - }, - "payable": false, - "returnParameters": { - "id": 110, - "nodeType": "ParameterList", - "parameters": [], - "src": "720:0:2" - }, - "scope": 398, - "src": "657:104:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "external" - }, - { - "body": { - "id": 162, - "nodeType": "Block", - "src": "897:457:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 129, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 126, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 653, - "src": "915:3:2", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 127, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "value", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "915:9:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">=", - "rightExpression": { - "argumentTypes": null, - "id": 128, - "name": "WhiteListCost", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 477, - "src": "928:13:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "915:26:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - { - "argumentTypes": null, - "hexValue": "6574686572206e6f7420656e6f756768", - "id": 130, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "string", - "lValueRequested": false, - "nodeType": "Literal", - "src": "943:18:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_stringliteral_d2d8f38d3b619eb729df149cbce4c975078eb474ac486dd179cb0e19a8b291f2", - "typeString": "literal_string \"ether not enough\"" - }, - "value": "ether not enough" - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_stringliteral_d2d8f38d3b619eb729df149cbce4c975078eb474ac486dd179cb0e19a8b291f2", - "typeString": "literal_string \"ether not enough\"" - } - ], - "id": 125, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [656, 657], - "referencedDeclaration": 657, - "src": "907:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", - "typeString": "function (bool,string memory) pure" - } - }, - "id": 131, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "907:55:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 132, - "nodeType": "ExpressionStatement", - "src": "907:55:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 143, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 133, - "name": "WhitelistSettings", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 475, - "src": "972:17:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_WhiteListItem_$465_storage_$", - "typeString": "mapping(uint256 => struct WhiteListHelper.WhiteListItem storage ref)" - } - }, - "id": 135, - "indexExpression": { - "argumentTypes": null, - "id": 134, - "name": "WhiteListCount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 479, - "src": "990:14:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "972:33:2", - "typeDescriptions": { - "typeIdentifier": "t_struct$_WhiteListItem_$465_storage", - "typeString": "struct WhiteListHelper.WhiteListItem storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 137, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 653, - "src": "1103:3:2", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 138, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1103:10:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 139, - "name": "_ChangeUntil", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 118, - "src": "1127:12:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - { - "argumentTypes": null, - "id": 140, - "name": "_Contract", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 120, - "src": "1153:9:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "hexValue": "66616c7365", - "id": 141, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1176:5:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "false" - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 136, - "name": "WhiteListItem", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 465, - "src": "1009:13:2", - "typeDescriptions": { - "typeIdentifier": "t_type$_t_struct$_WhiteListItem_$465_storage_ptr_$", - "typeString": "type(struct WhiteListHelper.WhiteListItem storage pointer)" - } - }, - "id": 142, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "structConstructorCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1009:182:2", - "typeDescriptions": { - "typeIdentifier": "t_struct$_WhiteListItem_$465_memory", - "typeString": "struct WhiteListHelper.WhiteListItem memory" - } - }, - "src": "972:219:2", - "typeDescriptions": { - "typeIdentifier": "t_struct$_WhiteListItem_$465_storage", - "typeString": "struct WhiteListHelper.WhiteListItem storage ref" - } - }, - "id": 144, - "nodeType": "ExpressionStatement", - "src": "972:219:2" - }, - { - "assignments": [146], - "declarations": [ - { - "constant": false, - "id": 146, - "name": "temp", - "nodeType": "VariableDeclaration", - "scope": 163, - "src": "1201:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 145, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1201:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 148, - "initialValue": { - "argumentTypes": null, - "id": 147, - "name": "WhiteListCount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 479, - "src": "1216:14:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "1201:29:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 150, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "++", - "prefix": false, - "src": "1240:16:2", - "subExpression": { - "argumentTypes": null, - "id": 149, - "name": "WhiteListCount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 479, - "src": "1240:14:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 151, - "nodeType": "ExpressionStatement", - "src": "1240:16:2" - }, - { - "eventCall": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 153, - "name": "temp", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 146, - "src": "1284:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 154, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 653, - "src": "1290:3:2", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 155, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1290:10:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 156, - "name": "_Contract", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 120, - "src": "1302:9:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 157, - "name": "_ChangeUntil", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 118, - "src": "1313:12:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 152, - "name": "NewWhiteList", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 410, - "src": "1271:12:2", - "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_address_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (uint256,address,address,uint256)" - } - }, - "id": 158, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1271:55:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 159, - "nodeType": "EmitStatement", - "src": "1266:60:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 160, - "name": "temp", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 146, - "src": "1343:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 124, - "id": 161, - "nodeType": "Return", - "src": "1336:11:2" - } - ] - }, - "documentation": null, - "id": 163, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "CreateManualWhiteList", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 121, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 118, - "name": "_ChangeUntil", - "nodeType": "VariableDeclaration", - "scope": 163, - "src": "807:20:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 117, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "807:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 120, - "name": "_Contract", - "nodeType": "VariableDeclaration", - "scope": 163, - "src": "837:17:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 119, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "837:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "797:63:2" - }, - "payable": true, - "returnParameters": { - "id": 124, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 123, - "name": "Id", - "nodeType": "VariableDeclaration", - "scope": 163, - "src": "885:10:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 122, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "885:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "884:12:2" - }, - "scope": 398, - "src": "767:587:2", - "stateMutability": "payable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 186, - "nodeType": "Block", - "src": "1514:61:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 184, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 179, - "name": "WhitelistSettings", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 475, - "src": "1524:17:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_WhiteListItem_$465_storage_$", - "typeString": "mapping(uint256 => struct WhiteListHelper.WhiteListItem storage ref)" - } - }, - "id": 181, - "indexExpression": { - "argumentTypes": null, - "id": 180, - "name": "_Id", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 165, - "src": "1542:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1524:22:2", - "typeDescriptions": { - "typeIdentifier": "t_struct$_WhiteListItem_$465_storage", - "typeString": "struct WhiteListHelper.WhiteListItem storage ref" - } - }, - "id": 182, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "memberName": "Creator", - "nodeType": "MemberAccess", - "referencedDeclaration": 458, - "src": "1524:30:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 183, - "name": "_NewCreator", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 167, - "src": "1557:11:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "1524:44:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 185, - "nodeType": "ExpressionStatement", - "src": "1524:44:2" - } - ] - }, - "documentation": null, - "id": 187, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": [ - { - "argumentTypes": null, - "id": 170, - "name": "_Id", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 165, - "src": "1454:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "id": 171, - "modifierName": { - "argumentTypes": null, - "id": 169, - "name": "OnlyCreator", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 427, - "src": "1442:11:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_uint256_$", - "typeString": "modifier (uint256)" - } - }, - "nodeType": "ModifierInvocation", - "src": "1442:16:2" - }, - { - "arguments": [ - { - "argumentTypes": null, - "id": 173, - "name": "_Id", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 165, - "src": "1481:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "id": 174, - "modifierName": { - "argumentTypes": null, - "id": 172, - "name": "TimeRemaining", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 443, - "src": "1467:13:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_uint256_$", - "typeString": "modifier (uint256)" - } - }, - "nodeType": "ModifierInvocation", - "src": "1467:18:2" - }, - { - "arguments": [ - { - "argumentTypes": null, - "id": 176, - "name": "_Id", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 165, - "src": "1505:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "id": 177, - "modifierName": { - "argumentTypes": null, - "id": 175, - "name": "ValidateId", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 456, - "src": "1494:10:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_uint256_$", - "typeString": "modifier (uint256)" - } - }, - "nodeType": "ModifierInvocation", - "src": "1494:15:2" - } - ], - "name": "ChangeCreator", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 168, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 165, - "name": "_Id", - "nodeType": "VariableDeclaration", - "scope": 187, - "src": "1383:11:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 164, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1383:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 167, - "name": "_NewCreator", - "nodeType": "VariableDeclaration", - "scope": 187, - "src": "1396:19:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 166, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "1396:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1382:34:2" - }, - "payable": false, - "returnParameters": { - "id": 178, - "nodeType": "ParameterList", - "parameters": [], - "src": "1514:0:2" - }, - "scope": 398, - "src": "1360:215:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "external" - }, - { - "body": { - "id": 210, - "nodeType": "Block", - "src": "1737:63:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 208, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 203, - "name": "WhitelistSettings", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 475, - "src": "1747:17:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_WhiteListItem_$465_storage_$", - "typeString": "mapping(uint256 => struct WhiteListHelper.WhiteListItem storage ref)" - } - }, - "id": 205, - "indexExpression": { - "argumentTypes": null, - "id": 204, - "name": "_Id", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 189, - "src": "1765:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1747:22:2", - "typeDescriptions": { - "typeIdentifier": "t_struct$_WhiteListItem_$465_storage", - "typeString": "struct WhiteListHelper.WhiteListItem storage ref" - } - }, - "id": 206, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "memberName": "Contract", - "nodeType": "MemberAccess", - "referencedDeclaration": 462, - "src": "1747:31:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 207, - "name": "_NewContract", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 191, - "src": "1781:12:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "1747:46:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 209, - "nodeType": "ExpressionStatement", - "src": "1747:46:2" - } - ] - }, - "documentation": null, - "id": 211, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": [ - { - "argumentTypes": null, - "id": 194, - "name": "_Id", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 189, - "src": "1677:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "id": 195, - "modifierName": { - "argumentTypes": null, - "id": 193, - "name": "OnlyCreator", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 427, - "src": "1665:11:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_uint256_$", - "typeString": "modifier (uint256)" - } - }, - "nodeType": "ModifierInvocation", - "src": "1665:16:2" - }, - { - "arguments": [ - { - "argumentTypes": null, - "id": 197, - "name": "_Id", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 189, - "src": "1704:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "id": 198, - "modifierName": { - "argumentTypes": null, - "id": 196, - "name": "TimeRemaining", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 443, - "src": "1690:13:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_uint256_$", - "typeString": "modifier (uint256)" - } - }, - "nodeType": "ModifierInvocation", - "src": "1690:18:2" - }, - { - "arguments": [ - { - "argumentTypes": null, - "id": 200, - "name": "_Id", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 189, - "src": "1728:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "id": 201, - "modifierName": { - "argumentTypes": null, - "id": 199, - "name": "ValidateId", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 456, - "src": "1717:10:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_uint256_$", - "typeString": "modifier (uint256)" - } - }, - "nodeType": "ModifierInvocation", - "src": "1717:15:2" - } - ], - "name": "ChangeContract", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 192, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 189, - "name": "_Id", - "nodeType": "VariableDeclaration", - "scope": 211, - "src": "1605:11:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 188, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1605:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 191, - "name": "_NewContract", - "nodeType": "VariableDeclaration", - "scope": 211, - "src": "1618:20:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 190, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "1618:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1604:35:2" - }, - "payable": false, - "returnParameters": { - "id": 202, - "nodeType": "ParameterList", - "parameters": [], - "src": "1737:0:2" - }, - "scope": 398, - "src": "1581:219:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "external" - }, - { - "body": { - "id": 289, - "nodeType": "Block", - "src": "2011:411:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 240, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 236, - "name": "_Users", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 216, - "src": "2029:6:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", - "typeString": "address[] memory" - } - }, - "id": 237, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "length", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "2029:13:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 238, - "name": "_Amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 219, - "src": "2046:7:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", - "typeString": "uint256[] memory" - } - }, - "id": 239, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "length", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "2046:14:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "2029:31:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - { - "argumentTypes": null, - "hexValue": "4e756d626572206f662075736572732073686f756c642062652073616d652061732074686520616d6f756e74206c656e677468", - "id": 241, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "string", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2062:53:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_stringliteral_def4ecc4f0a7434cc99df8cf4d707e4c8306b79958f9e8046f01e63784a7ecf8", - "typeString": "literal_string \"Number of users should be same as the amount length\"" - }, - "value": "Number of users should be same as the amount length" - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_stringliteral_def4ecc4f0a7434cc99df8cf4d707e4c8306b79958f9e8046f01e63784a7ecf8", - "typeString": "literal_string \"Number of users should be same as the amount length\"" - } - ], - "id": 235, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [656, 657], - "referencedDeclaration": 657, - "src": "2021:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", - "typeString": "function (bool,string memory) pure" - } - }, - "id": 242, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "2021:95:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 243, - "nodeType": "ExpressionStatement", - "src": "2021:95:2" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 248, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 245, - "name": "_Users", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 216, - "src": "2134:6:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", - "typeString": "address[] memory" - } - }, - "id": 246, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "length", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "2134:13:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 247, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2150:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "2134:17:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - { - "argumentTypes": null, - "hexValue": "4e65656420736f6d657468696e672e2e2e", - "id": 249, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "string", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2152:19:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_stringliteral_7693fd778ef37c227b9b337f1441079d98244366fb46f3c9f9922529bcb937d4", - "typeString": "literal_string \"Need something...\"" - }, - "value": "Need something..." - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_stringliteral_7693fd778ef37c227b9b337f1441079d98244366fb46f3c9f9922529bcb937d4", - "typeString": "literal_string \"Need something...\"" - } - ], - "id": 244, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [656, 657], - "referencedDeclaration": 657, - "src": "2126:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", - "typeString": "function (bool,string memory) pure" - } - }, - "id": 250, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "2126:46:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 251, - "nodeType": "ExpressionStatement", - "src": "2126:46:2" - }, - { - "condition": { - "argumentTypes": null, - "id": 256, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "!", - "prefix": true, - "src": "2185:31:2", - "subExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 252, - "name": "WhitelistSettings", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 475, - "src": "2186:17:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_WhiteListItem_$465_storage_$", - "typeString": "mapping(uint256 => struct WhiteListHelper.WhiteListItem storage ref)" - } - }, - "id": 254, - "indexExpression": { - "argumentTypes": null, - "id": 253, - "name": "_Id", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 213, - "src": "2204:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2186:22:2", - "typeDescriptions": { - "typeIdentifier": "t_struct$_WhiteListItem_$465_storage", - "typeString": "struct WhiteListHelper.WhiteListItem storage ref" - } - }, - "id": 255, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "isReady", - "nodeType": "MemberAccess", - "referencedDeclaration": 464, - "src": "2186:30:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "falseBody": null, - "id": 265, - "nodeType": "IfStatement", - "src": "2182:97:2", - "trueBody": { - "id": 264, - "nodeType": "Block", - "src": "2217:62:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 262, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 257, - "name": "WhitelistSettings", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 475, - "src": "2231:17:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_WhiteListItem_$465_storage_$", - "typeString": "mapping(uint256 => struct WhiteListHelper.WhiteListItem storage ref)" - } - }, - "id": 259, - "indexExpression": { - "argumentTypes": null, - "id": 258, - "name": "_Id", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 213, - "src": "2249:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2231:22:2", - "typeDescriptions": { - "typeIdentifier": "t_struct$_WhiteListItem_$465_storage", - "typeString": "struct WhiteListHelper.WhiteListItem storage ref" - } - }, - "id": 260, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "memberName": "isReady", - "nodeType": "MemberAccess", - "referencedDeclaration": 464, - "src": "2231:30:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "hexValue": "74727565", - "id": 261, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2264:4:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "true" - }, - "src": "2231:37:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 263, - "nodeType": "ExpressionStatement", - "src": "2231:37:2" - } - ] - } - }, - { - "body": { - "id": 287, - "nodeType": "Block", - "src": "2344:72:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 278, - "name": "_Id", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 213, - "src": "2370:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 279, - "name": "_Users", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 216, - "src": "2375:6:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", - "typeString": "address[] memory" - } - }, - "id": 281, - "indexExpression": { - "argumentTypes": null, - "id": 280, - "name": "index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 267, - "src": "2382:5:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2375:13:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 282, - "name": "_Amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 219, - "src": "2390:7:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", - "typeString": "uint256[] memory" - } - }, - "id": 284, - "indexExpression": { - "argumentTypes": null, - "id": 283, - "name": "index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 267, - "src": "2398:5:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2390:14:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "id": 277, - "name": "_AddAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 497, - "src": "2358:11:2", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_address_$_t_uint256_$returns$__$", - "typeString": "function (uint256,address,uint256)" - } - }, - "id": 285, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "2358:47:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 286, - "nodeType": "ExpressionStatement", - "src": "2358:47:2" - } - ] - }, - "condition": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 273, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 270, - "name": "index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 267, - "src": "2312:5:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<", - "rightExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 271, - "name": "_Users", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 216, - "src": "2320:6:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", - "typeString": "address[] memory" - } - }, - "id": 272, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "length", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "2320:13:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "2312:21:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 288, - "initializationExpression": { - "assignments": [267], - "declarations": [ - { - "constant": false, - "id": 267, - "name": "index", - "nodeType": "VariableDeclaration", - "scope": 290, - "src": "2293:13:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 266, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2293:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 269, - "initialValue": { - "argumentTypes": null, - "hexValue": "30", - "id": 268, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2309:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "nodeType": "VariableDeclarationStatement", - "src": "2293:17:2" - }, - "loopExpression": { - "expression": { - "argumentTypes": null, - "id": 275, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "++", - "prefix": false, - "src": "2335:7:2", - "subExpression": { - "argumentTypes": null, - "id": 274, - "name": "index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 267, - "src": "2335:5:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 276, - "nodeType": "ExpressionStatement", - "src": "2335:7:2" - }, - "nodeType": "ForStatement", - "src": "2288:128:2" - } - ] - }, - "documentation": null, - "id": 290, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": [ - { - "argumentTypes": null, - "id": 222, - "name": "_Id", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 213, - "src": "1911:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "id": 223, - "modifierName": { - "argumentTypes": null, - "id": 221, - "name": "OnlyCreator", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 427, - "src": "1899:11:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_uint256_$", - "typeString": "modifier (uint256)" - } - }, - "nodeType": "ModifierInvocation", - "src": "1899:16:2" - }, - { - "arguments": [ - { - "argumentTypes": null, - "id": 225, - "name": "_Id", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 213, - "src": "1938:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "id": 226, - "modifierName": { - "argumentTypes": null, - "id": 224, - "name": "TimeRemaining", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 443, - "src": "1924:13:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_uint256_$", - "typeString": "modifier (uint256)" - } - }, - "nodeType": "ModifierInvocation", - "src": "1924:18:2" - }, - { - "arguments": [ - { - "argumentTypes": null, - "id": 228, - "name": "_Id", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 213, - "src": "1962:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "id": 229, - "modifierName": { - "argumentTypes": null, - "id": 227, - "name": "ValidateId", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 456, - "src": "1951:10:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_uint256_$", - "typeString": "modifier (uint256)" - } - }, - "nodeType": "ModifierInvocation", - "src": "1951:15:2" - }, - { - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 231, - "name": "_Users", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 216, - "src": "1992:6:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", - "typeString": "address[] memory" - } - }, - "id": 232, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "length", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1992:13:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "id": 233, - "modifierName": { - "argumentTypes": null, - "id": 230, - "name": "isBelowUserLimit", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 92, - "src": "1975:16:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_uint256_$", - "typeString": "modifier (uint256)" - } - }, - "nodeType": "ModifierInvocation", - "src": "1975:31:2" - } - ], - "name": "AddAddress", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 220, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 213, - "name": "_Id", - "nodeType": "VariableDeclaration", - "scope": 290, - "src": "1826:11:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 212, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1826:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 216, - "name": "_Users", - "nodeType": "VariableDeclaration", - "scope": 290, - "src": "1839:16:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", - "typeString": "address[]" - }, - "typeName": { - "baseType": { - "id": 214, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "1839:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 215, - "length": null, - "nodeType": "ArrayTypeName", - "src": "1839:9:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", - "typeString": "address[]" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 219, - "name": "_Amount", - "nodeType": "VariableDeclaration", - "scope": 290, - "src": "1857:17:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", - "typeString": "uint256[]" - }, - "typeName": { - "baseType": { - "id": 217, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "1857:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 218, - "length": null, - "nodeType": "ArrayTypeName", - "src": "1857:9:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", - "typeString": "uint256[]" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1825:50:2" - }, - "payable": false, - "returnParameters": { - "id": 234, - "nodeType": "ParameterList", - "parameters": [], - "src": "2011:0:2" - }, - "scope": 398, - "src": "1806:616:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 331, - "nodeType": "Block", - "src": "2617:131:2", - "statements": [ - { - "body": { - "id": 329, - "nodeType": "Block", - "src": "2683:59:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 323, - "name": "_Id", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 292, - "src": "2712:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 324, - "name": "_Users", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 295, - "src": "2717:6:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", - "typeString": "address[] memory" - } - }, - "id": 326, - "indexExpression": { - "argumentTypes": null, - "id": 325, - "name": "index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 312, - "src": "2724:5:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2717:13:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "id": 322, - "name": "_RemoveAddress", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 513, - "src": "2697:14:2", - "typeDescriptions": { - "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_address_$returns$__$", - "typeString": "function (uint256,address)" - } - }, - "id": 327, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "2697:34:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 328, - "nodeType": "ExpressionStatement", - "src": "2697:34:2" - } - ] - }, - "condition": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 318, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 315, - "name": "index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 312, - "src": "2651:5:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<", - "rightExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 316, - "name": "_Users", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 295, - "src": "2659:6:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", - "typeString": "address[] memory" - } - }, - "id": 317, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "length", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "2659:13:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "2651:21:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 330, - "initializationExpression": { - "assignments": [312], - "declarations": [ - { - "constant": false, - "id": 312, - "name": "index", - "nodeType": "VariableDeclaration", - "scope": 332, - "src": "2632:13:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 311, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2632:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 314, - "initialValue": { - "argumentTypes": null, - "hexValue": "30", - "id": 313, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2648:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "nodeType": "VariableDeclarationStatement", - "src": "2632:17:2" - }, - "loopExpression": { - "expression": { - "argumentTypes": null, - "id": 320, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "++", - "prefix": false, - "src": "2674:7:2", - "subExpression": { - "argumentTypes": null, - "id": 319, - "name": "index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 312, - "src": "2674:5:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 321, - "nodeType": "ExpressionStatement", - "src": "2674:7:2" - }, - "nodeType": "ForStatement", - "src": "2627:115:2" - } - ] - }, - "documentation": null, - "id": 332, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": [ - { - "argumentTypes": null, - "id": 298, - "name": "_Id", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 292, - "src": "2517:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "id": 299, - "modifierName": { - "argumentTypes": null, - "id": 297, - "name": "OnlyCreator", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 427, - "src": "2505:11:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_uint256_$", - "typeString": "modifier (uint256)" - } - }, - "nodeType": "ModifierInvocation", - "src": "2505:16:2" - }, - { - "arguments": [ - { - "argumentTypes": null, - "id": 301, - "name": "_Id", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 292, - "src": "2544:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "id": 302, - "modifierName": { - "argumentTypes": null, - "id": 300, - "name": "TimeRemaining", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 443, - "src": "2530:13:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_uint256_$", - "typeString": "modifier (uint256)" - } - }, - "nodeType": "ModifierInvocation", - "src": "2530:18:2" - }, - { - "arguments": [ - { - "argumentTypes": null, - "id": 304, - "name": "_Id", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 292, - "src": "2568:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "id": 305, - "modifierName": { - "argumentTypes": null, - "id": 303, - "name": "ValidateId", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 456, - "src": "2557:10:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_uint256_$", - "typeString": "modifier (uint256)" - } - }, - "nodeType": "ModifierInvocation", - "src": "2557:15:2" - }, - { - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 307, - "name": "_Users", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 295, - "src": "2598:6:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", - "typeString": "address[] memory" - } - }, - "id": 308, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "length", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "2598:13:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "id": 309, - "modifierName": { - "argumentTypes": null, - "id": 306, - "name": "isBelowUserLimit", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 92, - "src": "2581:16:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_uint256_$", - "typeString": "modifier (uint256)" - } - }, - "nodeType": "ModifierInvocation", - "src": "2581:31:2" - } - ], - "name": "RemoveAddress", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 296, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 292, - "name": "_Id", - "nodeType": "VariableDeclaration", - "scope": 332, - "src": "2451:11:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 291, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2451:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 295, - "name": "_Users", - "nodeType": "VariableDeclaration", - "scope": 332, - "src": "2464:16:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", - "typeString": "address[]" - }, - "typeName": { - "baseType": { - "id": 293, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2464:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 294, - "length": null, - "nodeType": "ArrayTypeName", - "src": "2464:9:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", - "typeString": "address[]" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2450:31:2" - }, - "payable": false, - "returnParameters": { - "id": 310, - "nodeType": "ParameterList", - "parameters": [], - "src": "2617:0:2" - }, - "scope": 398, - "src": "2428:320:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 396, - "nodeType": "Block", - "src": "2859:451:2", - "statements": [ - { - "condition": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 343, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 341, - "name": "_Id", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 334, - "src": "2873:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 342, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2880:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "2873:8:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "falseBody": null, - "id": 345, - "nodeType": "IfStatement", - "src": "2869:21:2", - "trueBody": { - "expression": null, - "functionReturnParameters": 340, - "id": 344, - "nodeType": "Return", - "src": "2883:7:2" - } - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 353, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 347, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 653, - "src": "2920:3:2", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 348, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "2920:10:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 349, - "name": "WhitelistSettings", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 475, - "src": "2934:17:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_WhiteListItem_$465_storage_$", - "typeString": "mapping(uint256 => struct WhiteListHelper.WhiteListItem storage ref)" - } - }, - "id": 351, - "indexExpression": { - "argumentTypes": null, - "id": 350, - "name": "_Id", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 334, - "src": "2952:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2934:22:2", - "typeDescriptions": { - "typeIdentifier": "t_struct$_WhiteListItem_$465_storage", - "typeString": "struct WhiteListHelper.WhiteListItem storage ref" - } - }, - "id": 352, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "memberName": "Contract", - "nodeType": "MemberAccess", - "referencedDeclaration": 462, - "src": "2934:31:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "2920:45:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - { - "argumentTypes": null, - "hexValue": "4f6e6c792074686520436f6e74726163742063616e2063616c6c2074686973", - "id": 354, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "string", - "lValueRequested": false, - "nodeType": "Literal", - "src": "2979:33:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_stringliteral_8196a9cd95260e865beaff702019f670763a3bfac401e2276340f6024922e822", - "typeString": "literal_string \"Only the Contract can call this\"" - }, - "value": "Only the Contract can call this" - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_stringliteral_8196a9cd95260e865beaff702019f670763a3bfac401e2276340f6024922e822", - "typeString": "literal_string \"Only the Contract can call this\"" - } - ], - "id": 346, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [656, 657], - "referencedDeclaration": 657, - "src": "2899:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", - "typeString": "function (bool,string memory) pure" - } - }, - "id": 355, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "2899:123:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 356, - "nodeType": "ExpressionStatement", - "src": "2899:123:2" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 364, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 358, - "name": "WhitelistDB", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 471, - "src": "3053:11:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(uint256 => mapping(address => uint256))" - } - }, - "id": 360, - "indexExpression": { - "argumentTypes": null, - "id": 359, - "name": "_Id", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 334, - "src": "3065:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "3053:16:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 362, - "indexExpression": { - "argumentTypes": null, - "id": 361, - "name": "_Subject", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 336, - "src": "3070:8:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "3053:26:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": ">=", - "rightExpression": { - "argumentTypes": null, - "id": 363, - "name": "_Amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 338, - "src": "3083:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "3053:37:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - { - "argumentTypes": null, - "hexValue": "536f7272792c206e6f20616c6f636174696f6e20666f72205375626a656374", - "id": 365, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "string", - "lValueRequested": false, - "nodeType": "Literal", - "src": "3104:33:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_stringliteral_deda65b460fb98f3ff163320371b254fc35f1a6079fcbeec2ca1de6046b8de5e", - "typeString": "literal_string \"Sorry, no alocation for Subject\"" - }, - "value": "Sorry, no alocation for Subject" - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_stringliteral_deda65b460fb98f3ff163320371b254fc35f1a6079fcbeec2ca1de6046b8de5e", - "typeString": "literal_string \"Sorry, no alocation for Subject\"" - } - ], - "id": 357, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [656, 657], - "referencedDeclaration": 657, - "src": "3032:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", - "typeString": "function (bool,string memory) pure" - } - }, - "id": 366, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "3032:115:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 367, - "nodeType": "ExpressionStatement", - "src": "3032:115:2" - }, - { - "assignments": [369], - "declarations": [ - { - "constant": false, - "id": 369, - "name": "temp", - "nodeType": "VariableDeclaration", - "scope": 397, - "src": "3157:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 368, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "3157:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 377, - "initialValue": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 376, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 370, - "name": "WhitelistDB", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 471, - "src": "3172:11:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(uint256 => mapping(address => uint256))" - } - }, - "id": 372, - "indexExpression": { - "argumentTypes": null, - "id": 371, - "name": "_Id", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 334, - "src": "3184:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "3172:16:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 374, - "indexExpression": { - "argumentTypes": null, - "id": 373, - "name": "_Subject", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 336, - "src": "3189:8:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "3172:26:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "-", - "rightExpression": { - "argumentTypes": null, - "id": 375, - "name": "_Amount", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 338, - "src": "3201:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "3172:36:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "3157:51:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 384, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 378, - "name": "WhitelistDB", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 471, - "src": "3218:11:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(uint256 => mapping(address => uint256))" - } - }, - "id": 381, - "indexExpression": { - "argumentTypes": null, - "id": 379, - "name": "_Id", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 334, - "src": "3230:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "3218:16:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 382, - "indexExpression": { - "argumentTypes": null, - "id": 380, - "name": "_Subject", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 336, - "src": "3235:8:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "3218:26:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 383, - "name": "temp", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 369, - "src": "3247:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "3218:33:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 385, - "nodeType": "ExpressionStatement", - "src": "3218:33:2" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 393, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 387, - "name": "WhitelistDB", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 471, - "src": "3268:11:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_mapping$_t_address_$_t_uint256_$_$", - "typeString": "mapping(uint256 => mapping(address => uint256))" - } - }, - "id": 389, - "indexExpression": { - "argumentTypes": null, - "id": 388, - "name": "_Id", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 334, - "src": "3280:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "3268:16:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", - "typeString": "mapping(address => uint256)" - } - }, - "id": 391, - "indexExpression": { - "argumentTypes": null, - "id": 390, - "name": "_Subject", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 336, - "src": "3285:8:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "3268:26:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "id": 392, - "name": "temp", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 369, - "src": "3298:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "3268:34:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 386, - "name": "assert", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 642, - "src": "3261:6:2", - "typeDescriptions": { - "typeIdentifier": "t_function_assert_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 394, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "3261:42:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 395, - "nodeType": "ExpressionStatement", - "src": "3261:42:2" - } - ] - }, - "documentation": null, - "id": 397, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "Register", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 339, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 334, - "name": "_Id", - "nodeType": "VariableDeclaration", - "scope": 397, - "src": "2781:11:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 333, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2781:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 336, - "name": "_Subject", - "nodeType": "VariableDeclaration", - "scope": 397, - "src": "2802:16:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 335, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2802:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 338, - "name": "_Amount", - "nodeType": "VariableDeclaration", - "scope": 397, - "src": "2828:15:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 337, - "name": "uint256", - "nodeType": "ElementaryTypeName", - "src": "2828:7:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2771:78:2" - }, - "payable": false, - "returnParameters": { - "id": 340, - "nodeType": "ParameterList", - "parameters": [], - "src": "2859:0:2" - }, - "scope": 398, - "src": "2754:556:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "external" - } - ], - "scope": 399, - "src": "155:3157:2" - } - ], - "src": "32:3280:2" - }, - "legacyAST": { - "attributes": { - "absolutePath": "/mnt/e/OneDrive/Poolz/WhiteList/contracts/WhiteList.sol", - "exportedSymbols": { - "WhiteList": [398] - } - }, - "children": [ - { - "attributes": { - "literals": ["solidity", "^", "0.4", ".26"] - }, - "id": 55, - "name": "PragmaDirective", - "src": "32:24:2" - }, - { - "attributes": { - "SourceUnit": 553, - "absolutePath": "/mnt/e/OneDrive/Poolz/WhiteList/contracts/WhiteListHelper.sol", - "file": "./WhiteListHelper.sol", - "scope": 399, - "symbolAliases": [null], - "unitAlias": "" - }, - "id": 56, - "name": "ImportDirective", - "src": "58:31:2" - }, - { - "attributes": { - "SourceUnit": 639, - "absolutePath": "openzeppelin-solidity/contracts/ownership/Ownable.sol", - "file": "openzeppelin-solidity/contracts/ownership/Ownable.sol", - "scope": 399, - "symbolAliases": [null], - "unitAlias": "" - }, - "id": 57, - "name": "ImportDirective", - "src": "90:63:2" - }, - { - "attributes": { - "contractDependencies": [552, 638], - "contractKind": "contract", - "documentation": null, - "fullyImplemented": true, - "linearizedBaseContracts": [398, 638, 552], - "name": "WhiteList", - "scope": 399 - }, - "children": [ - { - "attributes": { - "arguments": null - }, - "children": [ - { - "attributes": { - "contractScope": null, - "name": "WhiteListHelper", - "referencedDeclaration": 552, - "type": "contract WhiteListHelper" - }, - "id": 58, - "name": "UserDefinedTypeName", - "src": "177:15:2" - } - ], - "id": 59, - "name": "InheritanceSpecifier", - "src": "177:15:2" - }, - { - "attributes": { - "arguments": null - }, - "children": [ - { - "attributes": { - "contractScope": null, - "name": "Ownable", - "referencedDeclaration": 638, - "type": "contract Ownable" - }, - "id": 60, - "name": "UserDefinedTypeName", - "src": "194:7:2" - } - ], - "id": 61, - "name": "InheritanceSpecifier", - "src": "194:7:2" - }, - { - "attributes": { - "constant": false, - "documentation": null, - "implemented": true, - "isConstructor": true, - "modifiers": [null], - "name": "", - "payable": false, - "scope": 398, - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - "children": [ - { - "attributes": { - "parameters": [null] - }, - "children": [], - "id": 62, - "name": "ParameterList", - "src": "218:2:2" - }, - { - "attributes": { - "parameters": [null] - }, - "children": [], - "id": 63, - "name": "ParameterList", - "src": "228:0:2" - }, - { - "children": [ - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "=", - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 479, - "type": "uint256", - "value": "WhiteListCount" - }, - "id": 64, - "name": "Identifier", - "src": "238:14:2" - }, - { - "attributes": { - "argumentTypes": null, - "hexvalue": "31", - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "subdenomination": null, - "token": "number", - "type": "int_const 1", - "value": "1" - }, - "id": 65, - "name": "Literal", - "src": "255:1:2" - } - ], - "id": 66, - "name": "Assignment", - "src": "238:18:2" - } - ], - "id": 67, - "name": "ExpressionStatement", - "src": "238:18:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "=", - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 79, - "type": "uint256", - "value": "MaxUsersLimit" - }, - "id": 68, - "name": "Identifier", - "src": "277:13:2" - }, - { - "attributes": { - "argumentTypes": null, - "hexvalue": "3130", - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "subdenomination": null, - "token": "number", - "type": "int_const 10", - "value": "10" - }, - "id": 69, - "name": "Literal", - "src": "293:2:2" - } - ], - "id": 70, - "name": "Assignment", - "src": "277:18:2" - } - ], - "id": 71, - "name": "ExpressionStatement", - "src": "277:18:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "=", - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 477, - "type": "uint256", - "value": "WhiteListCost" - }, - "id": 72, - "name": "Identifier", - "src": "305:13:2" - }, - { - "attributes": { - "argumentTypes": null, - "hexvalue": "302e3031", - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "subdenomination": "ether", - "token": "number", - "type": "int_const 10000000000000000", - "value": "0.01" - }, - "id": 73, - "name": "Literal", - "src": "321:10:2" - } - ], - "id": 74, - "name": "Assignment", - "src": "305:26:2" - } - ], - "id": 75, - "name": "ExpressionStatement", - "src": "305:26:2" - } - ], - "id": 76, - "name": "Block", - "src": "228:110:2" - } - ], - "id": 77, - "name": "FunctionDefinition", - "src": "207:131:2" - }, - { - "attributes": { - "constant": false, - "name": "MaxUsersLimit", - "scope": 398, - "stateVariable": true, - "storageLocation": "default", - "type": "uint256", - "value": null, - "visibility": "public" - }, - "children": [ - { - "attributes": { - "name": "uint256", - "type": "uint256" - }, - "id": 78, - "name": "ElementaryTypeName", - "src": "377:7:2" - } - ], - "id": 79, - "name": "VariableDeclaration", - "src": "377:28:2" - }, - { - "attributes": { - "documentation": null, - "name": "isBelowUserLimit", - "visibility": "internal" - }, - "children": [ - { - "children": [ - { - "attributes": { - "constant": false, - "name": "_limit", - "scope": 92, - "stateVariable": false, - "storageLocation": "default", - "type": "uint256", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "uint256", - "type": "uint256" - }, - "id": 80, - "name": "ElementaryTypeName", - "src": "438:7:2" - } - ], - "id": 81, - "name": "VariableDeclaration", - "src": "438:14:2" - } - ], - "id": 82, - "name": "ParameterList", - "src": "437:16:2" - }, - { - "children": [ - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "isStructConstructorCall": false, - "lValueRequested": false, - "names": [null], - "type": "tuple()", - "type_conversion": false - }, - "children": [ - { - "attributes": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_stringliteral_5cce8b9c091e277c6da485e3441151d3d96f6338c4abef2fa7f49f2bce1cf8b2", - "typeString": "literal_string \"Maximum User Limit exceeded\"" - } - ], - "overloadedDeclarations": [656, 657], - "referencedDeclaration": 657, - "type": "function (bool,string memory) pure", - "value": "require" - }, - "id": 83, - "name": "Identifier", - "src": "464:7:2" - }, - { - "attributes": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "<=", - "type": "bool" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 81, - "type": "uint256", - "value": "_limit" - }, - "id": 84, - "name": "Identifier", - "src": "472:6:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 79, - "type": "uint256", - "value": "MaxUsersLimit" - }, - "id": 85, - "name": "Identifier", - "src": "482:13:2" - } - ], - "id": 86, - "name": "BinaryOperation", - "src": "472:23:2" - }, - { - "attributes": { - "argumentTypes": null, - "hexvalue": "4d6178696d756d2055736572204c696d6974206578636565646564", - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "subdenomination": null, - "token": "string", - "type": "literal_string \"Maximum User Limit exceeded\"", - "value": "Maximum User Limit exceeded" - }, - "id": 87, - "name": "Literal", - "src": "497:29:2" - } - ], - "id": 88, - "name": "FunctionCall", - "src": "464:63:2" - } - ], - "id": 89, - "name": "ExpressionStatement", - "src": "464:63:2" - }, - { - "id": 90, - "name": "PlaceholderStatement", - "src": "537:1:2" - } - ], - "id": 91, - "name": "Block", - "src": "454:91:2" - } - ], - "id": 92, - "name": "ModifierDefinition", - "src": "412:133:2" - }, - { - "attributes": { - "constant": false, - "documentation": null, - "implemented": true, - "isConstructor": false, - "name": "setMaxUsersLimit", - "payable": false, - "scope": 398, - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "external" - }, - "children": [ - { - "children": [ - { - "attributes": { - "constant": false, - "name": "_limit", - "scope": 104, - "stateVariable": false, - "storageLocation": "default", - "type": "uint256", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "uint256", - "type": "uint256" - }, - "id": 93, - "name": "ElementaryTypeName", - "src": "577:7:2" - } - ], - "id": 94, - "name": "VariableDeclaration", - "src": "577:14:2" - } - ], - "id": 95, - "name": "ParameterList", - "src": "576:16:2" - }, - { - "attributes": { - "parameters": [null] - }, - "children": [], - "id": 98, - "name": "ParameterList", - "src": "612:0:2" - }, - { - "attributes": { - "arguments": null - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 586, - "type": "modifier ()", - "value": "onlyOwner" - }, - "id": 96, - "name": "Identifier", - "src": "602:9:2" - } - ], - "id": 97, - "name": "ModifierInvocation", - "src": "602:9:2" - }, - { - "children": [ - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "=", - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 79, - "type": "uint256", - "value": "MaxUsersLimit" - }, - "id": 99, - "name": "Identifier", - "src": "622:13:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 94, - "type": "uint256", - "value": "_limit" - }, - "id": 100, - "name": "Identifier", - "src": "638:6:2" - } - ], - "id": 101, - "name": "Assignment", - "src": "622:22:2" - } - ], - "id": 102, - "name": "ExpressionStatement", - "src": "622:22:2" - } - ], - "id": 103, - "name": "Block", - "src": "612:39:2" - } - ], - "id": 104, - "name": "FunctionDefinition", - "src": "551:100:2" - }, - { - "attributes": { - "constant": false, - "documentation": null, - "implemented": true, - "isConstructor": false, - "name": "setWhiteListCost", - "payable": false, - "scope": 398, - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "external" - }, - "children": [ - { - "children": [ - { - "attributes": { - "constant": false, - "name": "_newCost", - "scope": 116, - "stateVariable": false, - "storageLocation": "default", - "type": "uint256", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "uint256", - "type": "uint256" - }, - "id": 105, - "name": "ElementaryTypeName", - "src": "683:7:2" - } - ], - "id": 106, - "name": "VariableDeclaration", - "src": "683:16:2" - } - ], - "id": 107, - "name": "ParameterList", - "src": "682:18:2" - }, - { - "attributes": { - "parameters": [null] - }, - "children": [], - "id": 110, - "name": "ParameterList", - "src": "720:0:2" - }, - { - "attributes": { - "arguments": null - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 586, - "type": "modifier ()", - "value": "onlyOwner" - }, - "id": 108, - "name": "Identifier", - "src": "710:9:2" - } - ], - "id": 109, - "name": "ModifierInvocation", - "src": "710:9:2" - }, - { - "children": [ - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "=", - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 477, - "type": "uint256", - "value": "WhiteListCost" - }, - "id": 111, - "name": "Identifier", - "src": "730:13:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 106, - "type": "uint256", - "value": "_newCost" - }, - "id": 112, - "name": "Identifier", - "src": "746:8:2" - } - ], - "id": 113, - "name": "Assignment", - "src": "730:24:2" - } - ], - "id": 114, - "name": "ExpressionStatement", - "src": "730:24:2" - } - ], - "id": 115, - "name": "Block", - "src": "720:41:2" - } - ], - "id": 116, - "name": "FunctionDefinition", - "src": "657:104:2" - }, - { - "attributes": { - "constant": false, - "documentation": null, - "implemented": true, - "isConstructor": false, - "modifiers": [null], - "name": "CreateManualWhiteList", - "payable": true, - "scope": 398, - "stateMutability": "payable", - "superFunction": null, - "visibility": "public" - }, - "children": [ - { - "children": [ - { - "attributes": { - "constant": false, - "name": "_ChangeUntil", - "scope": 163, - "stateVariable": false, - "storageLocation": "default", - "type": "uint256", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "uint256", - "type": "uint256" - }, - "id": 117, - "name": "ElementaryTypeName", - "src": "807:7:2" - } - ], - "id": 118, - "name": "VariableDeclaration", - "src": "807:20:2" - }, - { - "attributes": { - "constant": false, - "name": "_Contract", - "scope": 163, - "stateVariable": false, - "storageLocation": "default", - "type": "address", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "address", - "type": "address" - }, - "id": 119, - "name": "ElementaryTypeName", - "src": "837:7:2" - } - ], - "id": 120, - "name": "VariableDeclaration", - "src": "837:17:2" - } - ], - "id": 121, - "name": "ParameterList", - "src": "797:63:2" - }, - { - "children": [ - { - "attributes": { - "constant": false, - "name": "Id", - "scope": 163, - "stateVariable": false, - "storageLocation": "default", - "type": "uint256", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "uint256", - "type": "uint256" - }, - "id": 122, - "name": "ElementaryTypeName", - "src": "885:7:2" - } - ], - "id": 123, - "name": "VariableDeclaration", - "src": "885:10:2" - } - ], - "id": 124, - "name": "ParameterList", - "src": "884:12:2" - }, - { - "children": [ - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "isStructConstructorCall": false, - "lValueRequested": false, - "names": [null], - "type": "tuple()", - "type_conversion": false - }, - "children": [ - { - "attributes": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_stringliteral_d2d8f38d3b619eb729df149cbce4c975078eb474ac486dd179cb0e19a8b291f2", - "typeString": "literal_string \"ether not enough\"" - } - ], - "overloadedDeclarations": [656, 657], - "referencedDeclaration": 657, - "type": "function (bool,string memory) pure", - "value": "require" - }, - "id": 125, - "name": "Identifier", - "src": "907:7:2" - }, - { - "attributes": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": ">=", - "type": "bool" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "member_name": "value", - "referencedDeclaration": null, - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 653, - "type": "msg", - "value": "msg" - }, - "id": 126, - "name": "Identifier", - "src": "915:3:2" - } - ], - "id": 127, - "name": "MemberAccess", - "src": "915:9:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 477, - "type": "uint256", - "value": "WhiteListCost" - }, - "id": 128, - "name": "Identifier", - "src": "928:13:2" - } - ], - "id": 129, - "name": "BinaryOperation", - "src": "915:26:2" - }, - { - "attributes": { - "argumentTypes": null, - "hexvalue": "6574686572206e6f7420656e6f756768", - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "subdenomination": null, - "token": "string", - "type": "literal_string \"ether not enough\"", - "value": "ether not enough" - }, - "id": 130, - "name": "Literal", - "src": "943:18:2" - } - ], - "id": 131, - "name": "FunctionCall", - "src": "907:55:2" - } - ], - "id": 132, - "name": "ExpressionStatement", - "src": "907:55:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "=", - "type": "struct WhiteListHelper.WhiteListItem storage ref" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "type": "struct WhiteListHelper.WhiteListItem storage ref" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 475, - "type": "mapping(uint256 => struct WhiteListHelper.WhiteListItem storage ref)", - "value": "WhitelistSettings" - }, - "id": 133, - "name": "Identifier", - "src": "972:17:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 479, - "type": "uint256", - "value": "WhiteListCount" - }, - "id": 134, - "name": "Identifier", - "src": "990:14:2" - } - ], - "id": 135, - "name": "IndexAccess", - "src": "972:33:2" - }, - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "isStructConstructorCall": true, - "lValueRequested": false, - "names": [null], - "type": "struct WhiteListHelper.WhiteListItem memory", - "type_conversion": false - }, - "children": [ - { - "attributes": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "overloadedDeclarations": [null], - "referencedDeclaration": 465, - "type": "type(struct WhiteListHelper.WhiteListItem storage pointer)", - "value": "WhiteListItem" - }, - "id": 136, - "name": "Identifier", - "src": "1009:13:2" - }, - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "member_name": "sender", - "referencedDeclaration": null, - "type": "address" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 653, - "type": "msg", - "value": "msg" - }, - "id": 137, - "name": "Identifier", - "src": "1103:3:2" - } - ], - "id": 138, - "name": "MemberAccess", - "src": "1103:10:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 118, - "type": "uint256", - "value": "_ChangeUntil" - }, - "id": 139, - "name": "Identifier", - "src": "1127:12:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 120, - "type": "address", - "value": "_Contract" - }, - "id": 140, - "name": "Identifier", - "src": "1153:9:2" - }, - { - "attributes": { - "argumentTypes": null, - "hexvalue": "66616c7365", - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "subdenomination": null, - "token": "bool", - "type": "bool", - "value": "false" - }, - "id": 141, - "name": "Literal", - "src": "1176:5:2" - } - ], - "id": 142, - "name": "FunctionCall", - "src": "1009:182:2" - } - ], - "id": 143, - "name": "Assignment", - "src": "972:219:2" - } - ], - "id": 144, - "name": "ExpressionStatement", - "src": "972:219:2" - }, - { - "attributes": { - "assignments": [146] - }, - "children": [ - { - "attributes": { - "constant": false, - "name": "temp", - "scope": 163, - "stateVariable": false, - "storageLocation": "default", - "type": "uint256", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "uint256", - "type": "uint256" - }, - "id": 145, - "name": "ElementaryTypeName", - "src": "1201:7:2" - } - ], - "id": 146, - "name": "VariableDeclaration", - "src": "1201:12:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 479, - "type": "uint256", - "value": "WhiteListCount" - }, - "id": 147, - "name": "Identifier", - "src": "1216:14:2" - } - ], - "id": 148, - "name": "VariableDeclarationStatement", - "src": "1201:29:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "++", - "prefix": false, - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 479, - "type": "uint256", - "value": "WhiteListCount" - }, - "id": 149, - "name": "Identifier", - "src": "1240:14:2" - } - ], - "id": 150, - "name": "UnaryOperation", - "src": "1240:16:2" - } - ], - "id": 151, - "name": "ExpressionStatement", - "src": "1240:16:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "isStructConstructorCall": false, - "lValueRequested": false, - "names": [null], - "type": "tuple()", - "type_conversion": false - }, - "children": [ - { - "attributes": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "overloadedDeclarations": [null], - "referencedDeclaration": 410, - "type": "function (uint256,address,address,uint256)", - "value": "NewWhiteList" - }, - "id": 152, - "name": "Identifier", - "src": "1271:12:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 146, - "type": "uint256", - "value": "temp" - }, - "id": 153, - "name": "Identifier", - "src": "1284:4:2" - }, - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "member_name": "sender", - "referencedDeclaration": null, - "type": "address" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 653, - "type": "msg", - "value": "msg" - }, - "id": 154, - "name": "Identifier", - "src": "1290:3:2" - } - ], - "id": 155, - "name": "MemberAccess", - "src": "1290:10:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 120, - "type": "address", - "value": "_Contract" - }, - "id": 156, - "name": "Identifier", - "src": "1302:9:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 118, - "type": "uint256", - "value": "_ChangeUntil" - }, - "id": 157, - "name": "Identifier", - "src": "1313:12:2" - } - ], - "id": 158, - "name": "FunctionCall", - "src": "1271:55:2" - } - ], - "id": 159, - "name": "EmitStatement", - "src": "1266:60:2" - }, - { - "attributes": { - "functionReturnParameters": 124 - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 146, - "type": "uint256", - "value": "temp" - }, - "id": 160, - "name": "Identifier", - "src": "1343:4:2" - } - ], - "id": 161, - "name": "Return", - "src": "1336:11:2" - } - ], - "id": 162, - "name": "Block", - "src": "897:457:2" - } - ], - "id": 163, - "name": "FunctionDefinition", - "src": "767:587:2" - }, - { - "attributes": { - "constant": false, - "documentation": null, - "implemented": true, - "isConstructor": false, - "name": "ChangeCreator", - "payable": false, - "scope": 398, - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "external" - }, - "children": [ - { - "children": [ - { - "attributes": { - "constant": false, - "name": "_Id", - "scope": 187, - "stateVariable": false, - "storageLocation": "default", - "type": "uint256", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "uint256", - "type": "uint256" - }, - "id": 164, - "name": "ElementaryTypeName", - "src": "1383:7:2" - } - ], - "id": 165, - "name": "VariableDeclaration", - "src": "1383:11:2" - }, - { - "attributes": { - "constant": false, - "name": "_NewCreator", - "scope": 187, - "stateVariable": false, - "storageLocation": "default", - "type": "address", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "address", - "type": "address" - }, - "id": 166, - "name": "ElementaryTypeName", - "src": "1396:7:2" - } - ], - "id": 167, - "name": "VariableDeclaration", - "src": "1396:19:2" - } - ], - "id": 168, - "name": "ParameterList", - "src": "1382:34:2" - }, - { - "attributes": { - "parameters": [null] - }, - "children": [], - "id": 178, - "name": "ParameterList", - "src": "1514:0:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 427, - "type": "modifier (uint256)", - "value": "OnlyCreator" - }, - "id": 169, - "name": "Identifier", - "src": "1442:11:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 165, - "type": "uint256", - "value": "_Id" - }, - "id": 170, - "name": "Identifier", - "src": "1454:3:2" - } - ], - "id": 171, - "name": "ModifierInvocation", - "src": "1442:16:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 443, - "type": "modifier (uint256)", - "value": "TimeRemaining" - }, - "id": 172, - "name": "Identifier", - "src": "1467:13:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 165, - "type": "uint256", - "value": "_Id" - }, - "id": 173, - "name": "Identifier", - "src": "1481:3:2" - } - ], - "id": 174, - "name": "ModifierInvocation", - "src": "1467:18:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 456, - "type": "modifier (uint256)", - "value": "ValidateId" - }, - "id": 175, - "name": "Identifier", - "src": "1494:10:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 165, - "type": "uint256", - "value": "_Id" - }, - "id": 176, - "name": "Identifier", - "src": "1505:3:2" - } - ], - "id": 177, - "name": "ModifierInvocation", - "src": "1494:15:2" - }, - { - "children": [ - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "=", - "type": "address" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "member_name": "Creator", - "referencedDeclaration": 458, - "type": "address" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "type": "struct WhiteListHelper.WhiteListItem storage ref" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 475, - "type": "mapping(uint256 => struct WhiteListHelper.WhiteListItem storage ref)", - "value": "WhitelistSettings" - }, - "id": 179, - "name": "Identifier", - "src": "1524:17:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 165, - "type": "uint256", - "value": "_Id" - }, - "id": 180, - "name": "Identifier", - "src": "1542:3:2" - } - ], - "id": 181, - "name": "IndexAccess", - "src": "1524:22:2" - } - ], - "id": 182, - "name": "MemberAccess", - "src": "1524:30:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 167, - "type": "address", - "value": "_NewCreator" - }, - "id": 183, - "name": "Identifier", - "src": "1557:11:2" - } - ], - "id": 184, - "name": "Assignment", - "src": "1524:44:2" - } - ], - "id": 185, - "name": "ExpressionStatement", - "src": "1524:44:2" - } - ], - "id": 186, - "name": "Block", - "src": "1514:61:2" - } - ], - "id": 187, - "name": "FunctionDefinition", - "src": "1360:215:2" - }, - { - "attributes": { - "constant": false, - "documentation": null, - "implemented": true, - "isConstructor": false, - "name": "ChangeContract", - "payable": false, - "scope": 398, - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "external" - }, - "children": [ - { - "children": [ - { - "attributes": { - "constant": false, - "name": "_Id", - "scope": 211, - "stateVariable": false, - "storageLocation": "default", - "type": "uint256", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "uint256", - "type": "uint256" - }, - "id": 188, - "name": "ElementaryTypeName", - "src": "1605:7:2" - } - ], - "id": 189, - "name": "VariableDeclaration", - "src": "1605:11:2" - }, - { - "attributes": { - "constant": false, - "name": "_NewContract", - "scope": 211, - "stateVariable": false, - "storageLocation": "default", - "type": "address", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "address", - "type": "address" - }, - "id": 190, - "name": "ElementaryTypeName", - "src": "1618:7:2" - } - ], - "id": 191, - "name": "VariableDeclaration", - "src": "1618:20:2" - } - ], - "id": 192, - "name": "ParameterList", - "src": "1604:35:2" - }, - { - "attributes": { - "parameters": [null] - }, - "children": [], - "id": 202, - "name": "ParameterList", - "src": "1737:0:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 427, - "type": "modifier (uint256)", - "value": "OnlyCreator" - }, - "id": 193, - "name": "Identifier", - "src": "1665:11:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 189, - "type": "uint256", - "value": "_Id" - }, - "id": 194, - "name": "Identifier", - "src": "1677:3:2" - } - ], - "id": 195, - "name": "ModifierInvocation", - "src": "1665:16:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 443, - "type": "modifier (uint256)", - "value": "TimeRemaining" - }, - "id": 196, - "name": "Identifier", - "src": "1690:13:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 189, - "type": "uint256", - "value": "_Id" - }, - "id": 197, - "name": "Identifier", - "src": "1704:3:2" - } - ], - "id": 198, - "name": "ModifierInvocation", - "src": "1690:18:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 456, - "type": "modifier (uint256)", - "value": "ValidateId" - }, - "id": 199, - "name": "Identifier", - "src": "1717:10:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 189, - "type": "uint256", - "value": "_Id" - }, - "id": 200, - "name": "Identifier", - "src": "1728:3:2" - } - ], - "id": 201, - "name": "ModifierInvocation", - "src": "1717:15:2" - }, - { - "children": [ - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "=", - "type": "address" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "member_name": "Contract", - "referencedDeclaration": 462, - "type": "address" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "type": "struct WhiteListHelper.WhiteListItem storage ref" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 475, - "type": "mapping(uint256 => struct WhiteListHelper.WhiteListItem storage ref)", - "value": "WhitelistSettings" - }, - "id": 203, - "name": "Identifier", - "src": "1747:17:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 189, - "type": "uint256", - "value": "_Id" - }, - "id": 204, - "name": "Identifier", - "src": "1765:3:2" - } - ], - "id": 205, - "name": "IndexAccess", - "src": "1747:22:2" - } - ], - "id": 206, - "name": "MemberAccess", - "src": "1747:31:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 191, - "type": "address", - "value": "_NewContract" - }, - "id": 207, - "name": "Identifier", - "src": "1781:12:2" - } - ], - "id": 208, - "name": "Assignment", - "src": "1747:46:2" - } - ], - "id": 209, - "name": "ExpressionStatement", - "src": "1747:46:2" - } - ], - "id": 210, - "name": "Block", - "src": "1737:63:2" - } - ], - "id": 211, - "name": "FunctionDefinition", - "src": "1581:219:2" - }, - { - "attributes": { - "constant": false, - "documentation": null, - "implemented": true, - "isConstructor": false, - "name": "AddAddress", - "payable": false, - "scope": 398, - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - "children": [ - { - "children": [ - { - "attributes": { - "constant": false, - "name": "_Id", - "scope": 290, - "stateVariable": false, - "storageLocation": "default", - "type": "uint256", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "uint256", - "type": "uint256" - }, - "id": 212, - "name": "ElementaryTypeName", - "src": "1826:7:2" - } - ], - "id": 213, - "name": "VariableDeclaration", - "src": "1826:11:2" - }, - { - "attributes": { - "constant": false, - "name": "_Users", - "scope": 290, - "stateVariable": false, - "storageLocation": "default", - "type": "address[]", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "length": null, - "type": "address[]" - }, - "children": [ - { - "attributes": { - "name": "address", - "type": "address" - }, - "id": 214, - "name": "ElementaryTypeName", - "src": "1839:7:2" - } - ], - "id": 215, - "name": "ArrayTypeName", - "src": "1839:9:2" - } - ], - "id": 216, - "name": "VariableDeclaration", - "src": "1839:16:2" - }, - { - "attributes": { - "constant": false, - "name": "_Amount", - "scope": 290, - "stateVariable": false, - "storageLocation": "default", - "type": "uint256[]", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "length": null, - "type": "uint256[]" - }, - "children": [ - { - "attributes": { - "name": "uint256", - "type": "uint256" - }, - "id": 217, - "name": "ElementaryTypeName", - "src": "1857:7:2" - } - ], - "id": 218, - "name": "ArrayTypeName", - "src": "1857:9:2" - } - ], - "id": 219, - "name": "VariableDeclaration", - "src": "1857:17:2" - } - ], - "id": 220, - "name": "ParameterList", - "src": "1825:50:2" - }, - { - "attributes": { - "parameters": [null] - }, - "children": [], - "id": 234, - "name": "ParameterList", - "src": "2011:0:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 427, - "type": "modifier (uint256)", - "value": "OnlyCreator" - }, - "id": 221, - "name": "Identifier", - "src": "1899:11:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 213, - "type": "uint256", - "value": "_Id" - }, - "id": 222, - "name": "Identifier", - "src": "1911:3:2" - } - ], - "id": 223, - "name": "ModifierInvocation", - "src": "1899:16:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 443, - "type": "modifier (uint256)", - "value": "TimeRemaining" - }, - "id": 224, - "name": "Identifier", - "src": "1924:13:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 213, - "type": "uint256", - "value": "_Id" - }, - "id": 225, - "name": "Identifier", - "src": "1938:3:2" - } - ], - "id": 226, - "name": "ModifierInvocation", - "src": "1924:18:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 456, - "type": "modifier (uint256)", - "value": "ValidateId" - }, - "id": 227, - "name": "Identifier", - "src": "1951:10:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 213, - "type": "uint256", - "value": "_Id" - }, - "id": 228, - "name": "Identifier", - "src": "1962:3:2" - } - ], - "id": 229, - "name": "ModifierInvocation", - "src": "1951:15:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 92, - "type": "modifier (uint256)", - "value": "isBelowUserLimit" - }, - "id": 230, - "name": "Identifier", - "src": "1975:16:2" - }, - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "member_name": "length", - "referencedDeclaration": null, - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 216, - "type": "address[] memory", - "value": "_Users" - }, - "id": 231, - "name": "Identifier", - "src": "1992:6:2" - } - ], - "id": 232, - "name": "MemberAccess", - "src": "1992:13:2" - } - ], - "id": 233, - "name": "ModifierInvocation", - "src": "1975:31:2" - }, - { - "children": [ - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "isStructConstructorCall": false, - "lValueRequested": false, - "names": [null], - "type": "tuple()", - "type_conversion": false - }, - "children": [ - { - "attributes": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_stringliteral_def4ecc4f0a7434cc99df8cf4d707e4c8306b79958f9e8046f01e63784a7ecf8", - "typeString": "literal_string \"Number of users should be same as the amount length\"" - } - ], - "overloadedDeclarations": [656, 657], - "referencedDeclaration": 657, - "type": "function (bool,string memory) pure", - "value": "require" - }, - "id": 235, - "name": "Identifier", - "src": "2021:7:2" - }, - { - "attributes": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "==", - "type": "bool" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "member_name": "length", - "referencedDeclaration": null, - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 216, - "type": "address[] memory", - "value": "_Users" - }, - "id": 236, - "name": "Identifier", - "src": "2029:6:2" - } - ], - "id": 237, - "name": "MemberAccess", - "src": "2029:13:2" - }, - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "member_name": "length", - "referencedDeclaration": null, - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 219, - "type": "uint256[] memory", - "value": "_Amount" - }, - "id": 238, - "name": "Identifier", - "src": "2046:7:2" - } - ], - "id": 239, - "name": "MemberAccess", - "src": "2046:14:2" - } - ], - "id": 240, - "name": "BinaryOperation", - "src": "2029:31:2" - }, - { - "attributes": { - "argumentTypes": null, - "hexvalue": "4e756d626572206f662075736572732073686f756c642062652073616d652061732074686520616d6f756e74206c656e677468", - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "subdenomination": null, - "token": "string", - "type": "literal_string \"Number of users should be same as the amount length\"", - "value": "Number of users should be same as the amount length" - }, - "id": 241, - "name": "Literal", - "src": "2062:53:2" - } - ], - "id": 242, - "name": "FunctionCall", - "src": "2021:95:2" - } - ], - "id": 243, - "name": "ExpressionStatement", - "src": "2021:95:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "isStructConstructorCall": false, - "lValueRequested": false, - "names": [null], - "type": "tuple()", - "type_conversion": false - }, - "children": [ - { - "attributes": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_stringliteral_7693fd778ef37c227b9b337f1441079d98244366fb46f3c9f9922529bcb937d4", - "typeString": "literal_string \"Need something...\"" - } - ], - "overloadedDeclarations": [656, 657], - "referencedDeclaration": 657, - "type": "function (bool,string memory) pure", - "value": "require" - }, - "id": 244, - "name": "Identifier", - "src": "2126:7:2" - }, - { - "attributes": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": ">", - "type": "bool" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "member_name": "length", - "referencedDeclaration": null, - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 216, - "type": "address[] memory", - "value": "_Users" - }, - "id": 245, - "name": "Identifier", - "src": "2134:6:2" - } - ], - "id": 246, - "name": "MemberAccess", - "src": "2134:13:2" - }, - { - "attributes": { - "argumentTypes": null, - "hexvalue": "30", - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "subdenomination": null, - "token": "number", - "type": "int_const 0", - "value": "0" - }, - "id": 247, - "name": "Literal", - "src": "2150:1:2" - } - ], - "id": 248, - "name": "BinaryOperation", - "src": "2134:17:2" - }, - { - "attributes": { - "argumentTypes": null, - "hexvalue": "4e65656420736f6d657468696e672e2e2e", - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "subdenomination": null, - "token": "string", - "type": "literal_string \"Need something...\"", - "value": "Need something..." - }, - "id": 249, - "name": "Literal", - "src": "2152:19:2" - } - ], - "id": 250, - "name": "FunctionCall", - "src": "2126:46:2" - } - ], - "id": 251, - "name": "ExpressionStatement", - "src": "2126:46:2" - }, - { - "attributes": { - "falseBody": null - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "!", - "prefix": true, - "type": "bool" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "member_name": "isReady", - "referencedDeclaration": 464, - "type": "bool" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "type": "struct WhiteListHelper.WhiteListItem storage ref" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 475, - "type": "mapping(uint256 => struct WhiteListHelper.WhiteListItem storage ref)", - "value": "WhitelistSettings" - }, - "id": 252, - "name": "Identifier", - "src": "2186:17:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 213, - "type": "uint256", - "value": "_Id" - }, - "id": 253, - "name": "Identifier", - "src": "2204:3:2" - } - ], - "id": 254, - "name": "IndexAccess", - "src": "2186:22:2" - } - ], - "id": 255, - "name": "MemberAccess", - "src": "2186:30:2" - } - ], - "id": 256, - "name": "UnaryOperation", - "src": "2185:31:2" - }, - { - "children": [ - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "=", - "type": "bool" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "member_name": "isReady", - "referencedDeclaration": 464, - "type": "bool" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "type": "struct WhiteListHelper.WhiteListItem storage ref" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 475, - "type": "mapping(uint256 => struct WhiteListHelper.WhiteListItem storage ref)", - "value": "WhitelistSettings" - }, - "id": 257, - "name": "Identifier", - "src": "2231:17:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 213, - "type": "uint256", - "value": "_Id" - }, - "id": 258, - "name": "Identifier", - "src": "2249:3:2" - } - ], - "id": 259, - "name": "IndexAccess", - "src": "2231:22:2" - } - ], - "id": 260, - "name": "MemberAccess", - "src": "2231:30:2" - }, - { - "attributes": { - "argumentTypes": null, - "hexvalue": "74727565", - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "subdenomination": null, - "token": "bool", - "type": "bool", - "value": "true" - }, - "id": 261, - "name": "Literal", - "src": "2264:4:2" - } - ], - "id": 262, - "name": "Assignment", - "src": "2231:37:2" - } - ], - "id": 263, - "name": "ExpressionStatement", - "src": "2231:37:2" - } - ], - "id": 264, - "name": "Block", - "src": "2217:62:2" - } - ], - "id": 265, - "name": "IfStatement", - "src": "2182:97:2" - }, - { - "children": [ - { - "attributes": { - "assignments": [267] - }, - "children": [ - { - "attributes": { - "constant": false, - "name": "index", - "scope": 290, - "stateVariable": false, - "storageLocation": "default", - "type": "uint256", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "uint256", - "type": "uint256" - }, - "id": 266, - "name": "ElementaryTypeName", - "src": "2293:7:2" - } - ], - "id": 267, - "name": "VariableDeclaration", - "src": "2293:13:2" - }, - { - "attributes": { - "argumentTypes": null, - "hexvalue": "30", - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "subdenomination": null, - "token": "number", - "type": "int_const 0", - "value": "0" - }, - "id": 268, - "name": "Literal", - "src": "2309:1:2" - } - ], - "id": 269, - "name": "VariableDeclarationStatement", - "src": "2293:17:2" - }, - { - "attributes": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "<", - "type": "bool" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 267, - "type": "uint256", - "value": "index" - }, - "id": 270, - "name": "Identifier", - "src": "2312:5:2" - }, - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "member_name": "length", - "referencedDeclaration": null, - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 216, - "type": "address[] memory", - "value": "_Users" - }, - "id": 271, - "name": "Identifier", - "src": "2320:6:2" - } - ], - "id": 272, - "name": "MemberAccess", - "src": "2320:13:2" - } - ], - "id": 273, - "name": "BinaryOperation", - "src": "2312:21:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "++", - "prefix": false, - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 267, - "type": "uint256", - "value": "index" - }, - "id": 274, - "name": "Identifier", - "src": "2335:5:2" - } - ], - "id": 275, - "name": "UnaryOperation", - "src": "2335:7:2" - } - ], - "id": 276, - "name": "ExpressionStatement", - "src": "2335:7:2" - }, - { - "children": [ - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "isStructConstructorCall": false, - "lValueRequested": false, - "names": [null], - "type": "tuple()", - "type_conversion": false - }, - "children": [ - { - "attributes": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "overloadedDeclarations": [null], - "referencedDeclaration": 497, - "type": "function (uint256,address,uint256)", - "value": "_AddAddress" - }, - "id": 277, - "name": "Identifier", - "src": "2358:11:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 213, - "type": "uint256", - "value": "_Id" - }, - "id": 278, - "name": "Identifier", - "src": "2370:3:2" - }, - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "type": "address" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 216, - "type": "address[] memory", - "value": "_Users" - }, - "id": 279, - "name": "Identifier", - "src": "2375:6:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 267, - "type": "uint256", - "value": "index" - }, - "id": 280, - "name": "Identifier", - "src": "2382:5:2" - } - ], - "id": 281, - "name": "IndexAccess", - "src": "2375:13:2" - }, - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 219, - "type": "uint256[] memory", - "value": "_Amount" - }, - "id": 282, - "name": "Identifier", - "src": "2390:7:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 267, - "type": "uint256", - "value": "index" - }, - "id": 283, - "name": "Identifier", - "src": "2398:5:2" - } - ], - "id": 284, - "name": "IndexAccess", - "src": "2390:14:2" - } - ], - "id": 285, - "name": "FunctionCall", - "src": "2358:47:2" - } - ], - "id": 286, - "name": "ExpressionStatement", - "src": "2358:47:2" - } - ], - "id": 287, - "name": "Block", - "src": "2344:72:2" - } - ], - "id": 288, - "name": "ForStatement", - "src": "2288:128:2" - } - ], - "id": 289, - "name": "Block", - "src": "2011:411:2" - } - ], - "id": 290, - "name": "FunctionDefinition", - "src": "1806:616:2" - }, - { - "attributes": { - "constant": false, - "documentation": null, - "implemented": true, - "isConstructor": false, - "name": "RemoveAddress", - "payable": false, - "scope": 398, - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - "children": [ - { - "children": [ - { - "attributes": { - "constant": false, - "name": "_Id", - "scope": 332, - "stateVariable": false, - "storageLocation": "default", - "type": "uint256", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "uint256", - "type": "uint256" - }, - "id": 291, - "name": "ElementaryTypeName", - "src": "2451:7:2" - } - ], - "id": 292, - "name": "VariableDeclaration", - "src": "2451:11:2" - }, - { - "attributes": { - "constant": false, - "name": "_Users", - "scope": 332, - "stateVariable": false, - "storageLocation": "default", - "type": "address[]", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "length": null, - "type": "address[]" - }, - "children": [ - { - "attributes": { - "name": "address", - "type": "address" - }, - "id": 293, - "name": "ElementaryTypeName", - "src": "2464:7:2" - } - ], - "id": 294, - "name": "ArrayTypeName", - "src": "2464:9:2" - } - ], - "id": 295, - "name": "VariableDeclaration", - "src": "2464:16:2" - } - ], - "id": 296, - "name": "ParameterList", - "src": "2450:31:2" - }, - { - "attributes": { - "parameters": [null] - }, - "children": [], - "id": 310, - "name": "ParameterList", - "src": "2617:0:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 427, - "type": "modifier (uint256)", - "value": "OnlyCreator" - }, - "id": 297, - "name": "Identifier", - "src": "2505:11:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 292, - "type": "uint256", - "value": "_Id" - }, - "id": 298, - "name": "Identifier", - "src": "2517:3:2" - } - ], - "id": 299, - "name": "ModifierInvocation", - "src": "2505:16:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 443, - "type": "modifier (uint256)", - "value": "TimeRemaining" - }, - "id": 300, - "name": "Identifier", - "src": "2530:13:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 292, - "type": "uint256", - "value": "_Id" - }, - "id": 301, - "name": "Identifier", - "src": "2544:3:2" - } - ], - "id": 302, - "name": "ModifierInvocation", - "src": "2530:18:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 456, - "type": "modifier (uint256)", - "value": "ValidateId" - }, - "id": 303, - "name": "Identifier", - "src": "2557:10:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 292, - "type": "uint256", - "value": "_Id" - }, - "id": 304, - "name": "Identifier", - "src": "2568:3:2" - } - ], - "id": 305, - "name": "ModifierInvocation", - "src": "2557:15:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 92, - "type": "modifier (uint256)", - "value": "isBelowUserLimit" - }, - "id": 306, - "name": "Identifier", - "src": "2581:16:2" - }, - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "member_name": "length", - "referencedDeclaration": null, - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 295, - "type": "address[] memory", - "value": "_Users" - }, - "id": 307, - "name": "Identifier", - "src": "2598:6:2" - } - ], - "id": 308, - "name": "MemberAccess", - "src": "2598:13:2" - } - ], - "id": 309, - "name": "ModifierInvocation", - "src": "2581:31:2" - }, - { - "children": [ - { - "children": [ - { - "attributes": { - "assignments": [312] - }, - "children": [ - { - "attributes": { - "constant": false, - "name": "index", - "scope": 332, - "stateVariable": false, - "storageLocation": "default", - "type": "uint256", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "uint256", - "type": "uint256" - }, - "id": 311, - "name": "ElementaryTypeName", - "src": "2632:7:2" - } - ], - "id": 312, - "name": "VariableDeclaration", - "src": "2632:13:2" - }, - { - "attributes": { - "argumentTypes": null, - "hexvalue": "30", - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "subdenomination": null, - "token": "number", - "type": "int_const 0", - "value": "0" - }, - "id": 313, - "name": "Literal", - "src": "2648:1:2" - } - ], - "id": 314, - "name": "VariableDeclarationStatement", - "src": "2632:17:2" - }, - { - "attributes": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "<", - "type": "bool" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 312, - "type": "uint256", - "value": "index" - }, - "id": 315, - "name": "Identifier", - "src": "2651:5:2" - }, - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "member_name": "length", - "referencedDeclaration": null, - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 295, - "type": "address[] memory", - "value": "_Users" - }, - "id": 316, - "name": "Identifier", - "src": "2659:6:2" - } - ], - "id": 317, - "name": "MemberAccess", - "src": "2659:13:2" - } - ], - "id": 318, - "name": "BinaryOperation", - "src": "2651:21:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "++", - "prefix": false, - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 312, - "type": "uint256", - "value": "index" - }, - "id": 319, - "name": "Identifier", - "src": "2674:5:2" - } - ], - "id": 320, - "name": "UnaryOperation", - "src": "2674:7:2" - } - ], - "id": 321, - "name": "ExpressionStatement", - "src": "2674:7:2" - }, - { - "children": [ - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "isStructConstructorCall": false, - "lValueRequested": false, - "names": [null], - "type": "tuple()", - "type_conversion": false - }, - "children": [ - { - "attributes": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "overloadedDeclarations": [null], - "referencedDeclaration": 513, - "type": "function (uint256,address)", - "value": "_RemoveAddress" - }, - "id": 322, - "name": "Identifier", - "src": "2697:14:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 292, - "type": "uint256", - "value": "_Id" - }, - "id": 323, - "name": "Identifier", - "src": "2712:3:2" - }, - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "type": "address" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 295, - "type": "address[] memory", - "value": "_Users" - }, - "id": 324, - "name": "Identifier", - "src": "2717:6:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 312, - "type": "uint256", - "value": "index" - }, - "id": 325, - "name": "Identifier", - "src": "2724:5:2" - } - ], - "id": 326, - "name": "IndexAccess", - "src": "2717:13:2" - } - ], - "id": 327, - "name": "FunctionCall", - "src": "2697:34:2" - } - ], - "id": 328, - "name": "ExpressionStatement", - "src": "2697:34:2" - } - ], - "id": 329, - "name": "Block", - "src": "2683:59:2" - } - ], - "id": 330, - "name": "ForStatement", - "src": "2627:115:2" - } - ], - "id": 331, - "name": "Block", - "src": "2617:131:2" - } - ], - "id": 332, - "name": "FunctionDefinition", - "src": "2428:320:2" - }, - { - "attributes": { - "constant": false, - "documentation": null, - "implemented": true, - "isConstructor": false, - "modifiers": [null], - "name": "Register", - "payable": false, - "scope": 398, - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "external" - }, - "children": [ - { - "children": [ - { - "attributes": { - "constant": false, - "name": "_Id", - "scope": 397, - "stateVariable": false, - "storageLocation": "default", - "type": "uint256", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "uint256", - "type": "uint256" - }, - "id": 333, - "name": "ElementaryTypeName", - "src": "2781:7:2" - } - ], - "id": 334, - "name": "VariableDeclaration", - "src": "2781:11:2" - }, - { - "attributes": { - "constant": false, - "name": "_Subject", - "scope": 397, - "stateVariable": false, - "storageLocation": "default", - "type": "address", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "address", - "type": "address" - }, - "id": 335, - "name": "ElementaryTypeName", - "src": "2802:7:2" - } - ], - "id": 336, - "name": "VariableDeclaration", - "src": "2802:16:2" - }, - { - "attributes": { - "constant": false, - "name": "_Amount", - "scope": 397, - "stateVariable": false, - "storageLocation": "default", - "type": "uint256", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "uint256", - "type": "uint256" - }, - "id": 337, - "name": "ElementaryTypeName", - "src": "2828:7:2" - } - ], - "id": 338, - "name": "VariableDeclaration", - "src": "2828:15:2" - } - ], - "id": 339, - "name": "ParameterList", - "src": "2771:78:2" - }, - { - "attributes": { - "parameters": [null] - }, - "children": [], - "id": 340, - "name": "ParameterList", - "src": "2859:0:2" - }, - { - "children": [ - { - "attributes": { - "falseBody": null - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "==", - "type": "bool" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 334, - "type": "uint256", - "value": "_Id" - }, - "id": 341, - "name": "Identifier", - "src": "2873:3:2" - }, - { - "attributes": { - "argumentTypes": null, - "hexvalue": "30", - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "subdenomination": null, - "token": "number", - "type": "int_const 0", - "value": "0" - }, - "id": 342, - "name": "Literal", - "src": "2880:1:2" - } - ], - "id": 343, - "name": "BinaryOperation", - "src": "2873:8:2" - }, - { - "attributes": { - "expression": null, - "functionReturnParameters": 340 - }, - "id": 344, - "name": "Return", - "src": "2883:7:2" - } - ], - "id": 345, - "name": "IfStatement", - "src": "2869:21:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "isStructConstructorCall": false, - "lValueRequested": false, - "names": [null], - "type": "tuple()", - "type_conversion": false - }, - "children": [ - { - "attributes": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_stringliteral_8196a9cd95260e865beaff702019f670763a3bfac401e2276340f6024922e822", - "typeString": "literal_string \"Only the Contract can call this\"" - } - ], - "overloadedDeclarations": [656, 657], - "referencedDeclaration": 657, - "type": "function (bool,string memory) pure", - "value": "require" - }, - "id": 346, - "name": "Identifier", - "src": "2899:7:2" - }, - { - "attributes": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "==", - "type": "bool" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "member_name": "sender", - "referencedDeclaration": null, - "type": "address" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 653, - "type": "msg", - "value": "msg" - }, - "id": 347, - "name": "Identifier", - "src": "2920:3:2" - } - ], - "id": 348, - "name": "MemberAccess", - "src": "2920:10:2" - }, - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "member_name": "Contract", - "referencedDeclaration": 462, - "type": "address" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "type": "struct WhiteListHelper.WhiteListItem storage ref" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 475, - "type": "mapping(uint256 => struct WhiteListHelper.WhiteListItem storage ref)", - "value": "WhitelistSettings" - }, - "id": 349, - "name": "Identifier", - "src": "2934:17:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 334, - "type": "uint256", - "value": "_Id" - }, - "id": 350, - "name": "Identifier", - "src": "2952:3:2" - } - ], - "id": 351, - "name": "IndexAccess", - "src": "2934:22:2" - } - ], - "id": 352, - "name": "MemberAccess", - "src": "2934:31:2" - } - ], - "id": 353, - "name": "BinaryOperation", - "src": "2920:45:2" - }, - { - "attributes": { - "argumentTypes": null, - "hexvalue": "4f6e6c792074686520436f6e74726163742063616e2063616c6c2074686973", - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "subdenomination": null, - "token": "string", - "type": "literal_string \"Only the Contract can call this\"", - "value": "Only the Contract can call this" - }, - "id": 354, - "name": "Literal", - "src": "2979:33:2" - } - ], - "id": 355, - "name": "FunctionCall", - "src": "2899:123:2" - } - ], - "id": 356, - "name": "ExpressionStatement", - "src": "2899:123:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "isStructConstructorCall": false, - "lValueRequested": false, - "names": [null], - "type": "tuple()", - "type_conversion": false - }, - "children": [ - { - "attributes": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - { - "typeIdentifier": "t_stringliteral_deda65b460fb98f3ff163320371b254fc35f1a6079fcbeec2ca1de6046b8de5e", - "typeString": "literal_string \"Sorry, no alocation for Subject\"" - } - ], - "overloadedDeclarations": [656, 657], - "referencedDeclaration": 657, - "type": "function (bool,string memory) pure", - "value": "require" - }, - "id": 357, - "name": "Identifier", - "src": "3032:7:2" - }, - { - "attributes": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": ">=", - "type": "bool" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "type": "mapping(address => uint256)" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 471, - "type": "mapping(uint256 => mapping(address => uint256))", - "value": "WhitelistDB" - }, - "id": 358, - "name": "Identifier", - "src": "3053:11:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 334, - "type": "uint256", - "value": "_Id" - }, - "id": 359, - "name": "Identifier", - "src": "3065:3:2" - } - ], - "id": 360, - "name": "IndexAccess", - "src": "3053:16:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 336, - "type": "address", - "value": "_Subject" - }, - "id": 361, - "name": "Identifier", - "src": "3070:8:2" - } - ], - "id": 362, - "name": "IndexAccess", - "src": "3053:26:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 338, - "type": "uint256", - "value": "_Amount" - }, - "id": 363, - "name": "Identifier", - "src": "3083:7:2" - } - ], - "id": 364, - "name": "BinaryOperation", - "src": "3053:37:2" - }, - { - "attributes": { - "argumentTypes": null, - "hexvalue": "536f7272792c206e6f20616c6f636174696f6e20666f72205375626a656374", - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "subdenomination": null, - "token": "string", - "type": "literal_string \"Sorry, no alocation for Subject\"", - "value": "Sorry, no alocation for Subject" - }, - "id": 365, - "name": "Literal", - "src": "3104:33:2" - } - ], - "id": 366, - "name": "FunctionCall", - "src": "3032:115:2" - } - ], - "id": 367, - "name": "ExpressionStatement", - "src": "3032:115:2" - }, - { - "attributes": { - "assignments": [369] - }, - "children": [ - { - "attributes": { - "constant": false, - "name": "temp", - "scope": 397, - "stateVariable": false, - "storageLocation": "default", - "type": "uint256", - "value": null, - "visibility": "internal" - }, - "children": [ - { - "attributes": { - "name": "uint256", - "type": "uint256" - }, - "id": 368, - "name": "ElementaryTypeName", - "src": "3157:7:2" - } - ], - "id": 369, - "name": "VariableDeclaration", - "src": "3157:12:2" - }, - { - "attributes": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "-", - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "type": "mapping(address => uint256)" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 471, - "type": "mapping(uint256 => mapping(address => uint256))", - "value": "WhitelistDB" - }, - "id": 370, - "name": "Identifier", - "src": "3172:11:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 334, - "type": "uint256", - "value": "_Id" - }, - "id": 371, - "name": "Identifier", - "src": "3184:3:2" - } - ], - "id": 372, - "name": "IndexAccess", - "src": "3172:16:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 336, - "type": "address", - "value": "_Subject" - }, - "id": 373, - "name": "Identifier", - "src": "3189:8:2" - } - ], - "id": 374, - "name": "IndexAccess", - "src": "3172:26:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 338, - "type": "uint256", - "value": "_Amount" - }, - "id": 375, - "name": "Identifier", - "src": "3201:7:2" - } - ], - "id": 376, - "name": "BinaryOperation", - "src": "3172:36:2" - } - ], - "id": 377, - "name": "VariableDeclarationStatement", - "src": "3157:51:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "=", - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "type": "mapping(address => uint256)" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 471, - "type": "mapping(uint256 => mapping(address => uint256))", - "value": "WhitelistDB" - }, - "id": 378, - "name": "Identifier", - "src": "3218:11:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 334, - "type": "uint256", - "value": "_Id" - }, - "id": 379, - "name": "Identifier", - "src": "3230:3:2" - } - ], - "id": 381, - "name": "IndexAccess", - "src": "3218:16:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 336, - "type": "address", - "value": "_Subject" - }, - "id": 380, - "name": "Identifier", - "src": "3235:8:2" - } - ], - "id": 382, - "name": "IndexAccess", - "src": "3218:26:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 369, - "type": "uint256", - "value": "temp" - }, - "id": 383, - "name": "Identifier", - "src": "3247:4:2" - } - ], - "id": 384, - "name": "Assignment", - "src": "3218:33:2" - } - ], - "id": 385, - "name": "ExpressionStatement", - "src": "3218:33:2" - }, - { - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": false, - "isPure": false, - "isStructConstructorCall": false, - "lValueRequested": false, - "names": [null], - "type": "tuple()", - "type_conversion": false - }, - "children": [ - { - "attributes": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "overloadedDeclarations": [null], - "referencedDeclaration": 642, - "type": "function (bool) pure", - "value": "assert" - }, - "id": 386, - "name": "Identifier", - "src": "3261:6:2" - }, - { - "attributes": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "operator": "==", - "type": "bool" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "type": "uint256" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "type": "mapping(address => uint256)" - }, - "children": [ - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 471, - "type": "mapping(uint256 => mapping(address => uint256))", - "value": "WhitelistDB" - }, - "id": 387, - "name": "Identifier", - "src": "3268:11:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 334, - "type": "uint256", - "value": "_Id" - }, - "id": 388, - "name": "Identifier", - "src": "3280:3:2" - } - ], - "id": 389, - "name": "IndexAccess", - "src": "3268:16:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 336, - "type": "address", - "value": "_Subject" - }, - "id": 390, - "name": "Identifier", - "src": "3285:8:2" - } - ], - "id": 391, - "name": "IndexAccess", - "src": "3268:26:2" - }, - { - "attributes": { - "argumentTypes": null, - "overloadedDeclarations": [null], - "referencedDeclaration": 369, - "type": "uint256", - "value": "temp" - }, - "id": 392, - "name": "Identifier", - "src": "3298:4:2" - } - ], - "id": 393, - "name": "BinaryOperation", - "src": "3268:34:2" - } - ], - "id": 394, - "name": "FunctionCall", - "src": "3261:42:2" - } - ], - "id": 395, - "name": "ExpressionStatement", - "src": "3261:42:2" - } - ], - "id": 396, - "name": "Block", - "src": "2859:451:2" - } - ], - "id": 397, - "name": "FunctionDefinition", - "src": "2754:556:2" - } - ], - "id": 398, - "name": "ContractDefinition", - "src": "155:3157:2" - } - ], - "id": 399, - "name": "SourceUnit", - "src": "32:3280:2" - }, - "compiler": { - "name": "solc", - "version": "0.4.26+commit.4563c3fc.Emscripten.clang" - }, - "networks": { - "1612794248474": { - "events": { - "0x4a54006ce68b7fc19d4da907c7bd6f0d5fc43356d4857f8c73a521e169c6422c": { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "_WhiteListCount", - "type": "uint256" - }, - { - "indexed": false, - "name": "_creator", - "type": "address" - }, - { - "indexed": false, - "name": "_contract", - "type": "address" - }, - { - "indexed": false, - "name": "_limit", - "type": "uint256" - }, - { - "indexed": false, - "name": "_changeUntil", - "type": "uint256" - } - ], - "name": "NewWhiteList", - "type": "event" - } - }, - "links": {}, - "address": "0xdE61760766A6C07aceF349317085328BD2828398", - "transactionHash": "0xc5e27e8c88bcf8247e902515ceae2a1a116869b3307cc733a6d57322e8bce614" - }, - "1612849693064": { - "events": { - "0x085c1c7e6b017b7388970f1dca2f883a787103be74e88f24c1ae63e692d5c47c": { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "_WhiteListCount", - "type": "uint256" - }, - { - "indexed": false, - "name": "_creator", - "type": "address" - }, - { - "indexed": false, - "name": "_contract", - "type": "address" - }, - { - "indexed": false, - "name": "_changeUntil", - "type": "uint256" - } - ], - "name": "NewWhiteList", - "type": "event" - } - }, - "links": {}, - "address": "0x33D1F5F9653527D0bE3383C91af5e287EfaadDfd", - "transactionHash": "0xd366e4fa8c99646ea647f694126413c68a3e68bcac34aa312abe799fc20105cb" - }, - "1612937815705": { - "events": { - "0xf8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c64820": { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "previousOwner", - "type": "address" - } - ], - "name": "OwnershipRenounced", - "type": "event" - }, - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0": { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - "0x085c1c7e6b017b7388970f1dca2f883a787103be74e88f24c1ae63e692d5c47c": { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "_WhiteListCount", - "type": "uint256" - }, - { - "indexed": false, - "name": "_creator", - "type": "address" - }, - { - "indexed": false, - "name": "_contract", - "type": "address" - }, - { - "indexed": false, - "name": "_changeUntil", - "type": "uint256" - } - ], - "name": "NewWhiteList", - "type": "event" - } - }, - "links": {}, - "address": "0xd5Ad16716A674696651F02d4257735b59f2e9db5", - "transactionHash": "0x6d3bf61afe8cfb28e3338a0f0bf4728eba0cc1afe2e68f2e45eb0fbf19494768" - }, - "1613039304936": { - "events": { - "0xf8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c64820": { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "previousOwner", - "type": "address" - } - ], - "name": "OwnershipRenounced", - "type": "event" - }, - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0": { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - "0x085c1c7e6b017b7388970f1dca2f883a787103be74e88f24c1ae63e692d5c47c": { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "_WhiteListCount", - "type": "uint256" - }, - { - "indexed": false, - "name": "_creator", - "type": "address" - }, - { - "indexed": false, - "name": "_contract", - "type": "address" - }, - { - "indexed": false, - "name": "_changeUntil", - "type": "uint256" - } - ], - "name": "NewWhiteList", - "type": "event" - } - }, - "links": {}, - "address": "0x59b8dEcccF6174e63b876ADe6E446dDB76258748", - "transactionHash": "0x6e9db3f4c59cb9d8b0e988aea7ae106f554ff3d1291abbb4e17ef50f1bf4757d" - }, - "1613749229506": { - "events": { - "0xf8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c64820": { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "previousOwner", - "type": "address" - } - ], - "name": "OwnershipRenounced", - "type": "event" - }, - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0": { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - "0x085c1c7e6b017b7388970f1dca2f883a787103be74e88f24c1ae63e692d5c47c": { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "_WhiteListCount", - "type": "uint256" - }, - { - "indexed": false, - "name": "_creator", - "type": "address" - }, - { - "indexed": false, - "name": "_contract", - "type": "address" - }, - { - "indexed": false, - "name": "_changeUntil", - "type": "uint256" - } - ], - "name": "NewWhiteList", - "type": "event" - } - }, - "links": {}, - "address": "0xb3B2b33e4A205A1B7038e46d845862cC8E7AF894", - "transactionHash": "0x6335b05a0b0bbad1e9d6e3f4bd67c4ac67dfa02aca1637cec8212bf02120458e" - }, - "1613752088316": { - "events": { - "0xf8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c64820": { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "previousOwner", - "type": "address" - } - ], - "name": "OwnershipRenounced", - "type": "event" - }, - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0": { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - "0x085c1c7e6b017b7388970f1dca2f883a787103be74e88f24c1ae63e692d5c47c": { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "_WhiteListCount", - "type": "uint256" - }, - { - "indexed": false, - "name": "_creator", - "type": "address" - }, - { - "indexed": false, - "name": "_contract", - "type": "address" - }, - { - "indexed": false, - "name": "_changeUntil", - "type": "uint256" - } - ], - "name": "NewWhiteList", - "type": "event" - } - }, - "links": {}, - "address": "0xcb9950789e3673BeA38dC362aFbE02379639b21C", - "transactionHash": "0xe9820f850d09bc5eae186221ae0e026c496d2f2aca84b99eb25f18df8bdff797" - } - }, - "schemaVersion": "3.3.3", - "updatedAt": "2021-02-19T16:28:32.764Z", - "networkType": "ethereum", - "devdoc": { - "methods": { - "renounceOwnership()": { - "details": "Allows the current owner to relinquish control of the contract." - }, - "transferOwnership(address)": { - "details": "Allows the current owner to transfer control of the contract to a newOwner.", - "params": { - "_newOwner": "The address to transfer ownership to." - } - } - } - }, - "userdoc": { - "methods": { - "renounceOwnership()": { - "notice": "Renouncing to ownership will leave the contract without an owner. It will not be possible to call the functions with the `onlyOwner` modifier anymore." - } - } - } -} diff --git a/src/contracts/configs/ArbitrumOne.config.ts b/src/contracts/configs/ArbitrumOne.config.ts deleted file mode 100644 index 3283e0a..0000000 --- a/src/contracts/configs/ArbitrumOne.config.ts +++ /dev/null @@ -1,82 +0,0 @@ -import type { TChainConfig } from "../../types/IThePoolzInterface" - -export const ArbitrumOneChainConfig: TChainConfig = { - chainInfo: { - name: "Arbitrum One", - chainId: 42161, - chain: "ETH", - nativeCurrency: { - name: "Ether", - symbol: "ETH", - decimals: 18 - }, - explorers: [ - { - name: "Arbiscan", - url: "https://arbiscan.io", - standard: "EIP3091" - }, - { - name: "Arbitrum Explorer", - url: "https://explorer.arbitrum.io", - standard: "EIP3091" - }, - { - name: "dexguru", - url: "https://arbitrum.dex.guru", - icon: "dexguru", - standard: "EIP3091" - } - ], - infoURL: "https://arbitrum.io", - }, - lockedDealV2: { - address: "0x7Ff9315f538dF7eC76Ec4815249Dd30519726460", - nameVersion: "LockedDeal@2.3.3" - }, - multiSenderV2: { - address: "0x25ea5cf98a46dbabefd042b6ceebc501b659be78", - nameVersion: "MultiSenderV2@2.1.0" - }, - // delayVault: { address: "0x7521fF2baca97397C8936E35dAc225f6bc1070Cf", nameVersion: "DelayVault@1.2.2" } - lockDealNFT: { - address: "0xee099538ed077f831cb9af44ffd51ec7fd95c7de", - nameVersion: "LockDealNFT@0.9.1-ironblocks" - }, - vaultManager: { - address: "0x9cfd8c7834be0dfe41f3fe68c29124066d5cd13b", - nameVersion: "VaultManager@0.0.4-ironblocks" - }, - dealProvider: { - address: "0x9C218bBCdae2dD2B85f08b0a3a7D31a6e6E6bffd", - nameVersion: "DealProvider@1.0.6" - }, - lockDealProvider: { - address: "0xB0841e6FD7d51D5148ABcc19EB24c7E361fDa8c0", - nameVersion: "LockDealProvider@1.0.6" - }, - timedDealProvider: { - address: "0xF0Bd7c3D038FF9F67Fc64903A3EAC82600Dd37D0", - nameVersion: "TimedDealProvider@1.0.6" - }, - collateralProvider: { - address: "0x2051f98ca620a4d3e6024f144382d3537452b557", - nameVersion: "CollateralProvider@0.9.6" - }, - refundProvider: { - address: "0xaa40d75fc2cdafc61a7c52ac207e17d694102ef2", - nameVersion: "RefundProvider@0.9.6" - }, - simpleBuilder: { - address: "0x8b58eeab0e457c0b6ca68dfc3861a4352d6c5cfb", - nameVersion: "SimpleBuilder@0.9.1-ironblocks" - }, - simpleRefundBuilder: { - address: "0x120893ab6f67171d4e6b0e72c151ab96aebe44e4", - nameVersion: "SimpleRefundBuilder@0.9.5" - }, - dispenserProvider: { - address: "0x62BD0CF6B93De01a518975B0b117c886c1F1d973", - nameVersion: "DispenserProvider@1.1.2" - } -} diff --git a/src/contracts/configs/Avalanche.config.ts b/src/contracts/configs/Avalanche.config.ts deleted file mode 100644 index 8f78f90..0000000 --- a/src/contracts/configs/Avalanche.config.ts +++ /dev/null @@ -1,70 +0,0 @@ -import type { TChainConfig } from "../../types/IThePoolzInterface" - -export const AvalancheChainConfig: TChainConfig = { - chainInfo: { - name: "Avalanche C-Chain", - chain: "AVAX", - chainId: 43114, - nativeCurrency: { - name: "Avalanche", - symbol: "AVAX", - decimals: 18 - }, - infoURL: "https://www.avax.network/", - explorers: [ - { - name: "snowtrace", - url: "https://snowtrace.io", - standard: "EIP3091" - } - ] - }, - lockedDealV2: { - address: "0xb16bbdf683ffd6d92290f7610bb10f22f9c71e9e", - nameVersion: "LockedDeal@2.3.3" - }, - vaultManager: { - address: "0x9c8F78E0aeAB8190c9d1DF7BEd0B26c1EDcB8DE6", - nameVersion: "VaultManager@1.0.0" - }, - lockDealNFT: { - address: "0xA2A0bEEfda596Fdb321240dD283D8cBf65b252f1", - nameVersion: "LockDealNFT@1.0.4" - }, - dealProvider: { - address: "0xa562824D34E555f16544B23305C6CD778B17993c", - nameVersion: "DealProvider@1.0.6" - }, - lockDealProvider: { - address: "0xB1Ecee4191daaD9381DD38A545b31DDcDba7A9A9", - nameVersion: "LockDealProvider@1.0.6" - }, - timedDealProvider: { - address: "0x25ea5cf98A46dbaBefd042B6cEebc501b659be78", - nameVersion: "TimedDealProvider@1.0.6" - }, - simpleBuilder: { - address: "0x756CD0834C2610f583B8324934A0269E3fef6f72", - nameVersion: "SimpleBuilder@1.2.2" - }, - collateralProvider: { - address: "0x9cfd8c7834Be0DfE41F3FE68C29124066D5Cd13b", - nameVersion: "CollateralProvider@1.0.2" - }, - refundProvider: { - address: "0xEE099538ED077F831cB9Af44fFD51Ec7Fd95c7DE", - nameVersion: "RefundProvider@1.0.2" - }, - simpleRefundBuilder: { - address: "0xff1f0872f5462b30acdA92a08D2388612F7Bf7EE", - nameVersion: "SimpleRefundBuilder@1.2.2" - }, - multiSenderV2: { - address: "0x1E947Ec4F6B74c746F13604438cE1A3026f30553", - nameVersion: "MultiSenderV2@2.1.0" - }, - dispenserProvider: { - address: "0x655a8bc3875aedb2A4bc4aeeF5F84805207cB5DC", - nameVersion: "DispenserProvider@1.1.2" - } -} diff --git a/src/contracts/configs/Base.config.ts b/src/contracts/configs/Base.config.ts deleted file mode 100644 index 34d53cf..0000000 --- a/src/contracts/configs/Base.config.ts +++ /dev/null @@ -1,78 +0,0 @@ -import type { TChainConfig } from "../../types/IThePoolzInterface" - -export const BaseChainConfig: TChainConfig = { - chainInfo: { - name: "Base", - chain: "ETH", - nativeCurrency: { - name: "Ether", - symbol: "ETH", - decimals: 18 - }, - chainId: 8453, - infoURL: "https://base.org", - explorers: [ - { - name: "basescan", - url: "https://basescan.org", - standard: "none" - }, - { - name: "basescout", - url: "https://base.blockscout.com", - icon: "blockscout", - standard: "EIP3091" - }, - { - name: "dexguru", - url: "https://base.dex.guru", - icon: "dexguru", - standard: "EIP3091" - } - ] - }, - lockDealNFT: { - address: "0xb16BBDf683fFd6D92290F7610bb10f22f9c71e9e", - nameVersion: "LockDealNFT@0.9.1-ironblocks" - }, - vaultManager: { - address: "0x7ff9315f538df7ec76ec4815249dd30519726460", - nameVersion: "VaultManager@0.0.4-ironblocks" - }, - dealProvider: { - address: "0x9ba7036aa978509714D137bA7f98e8f66872c19F", - nameVersion: "DealProvider@1.0.6" - }, - lockDealProvider: { - address: "0xbB407809BadB136E1db0ddb53478D5a830D83805", - nameVersion: "LockDealProvider@1.0.6" - }, - timedDealProvider: { - address: "0x83FF82f14920025576Cd04046335c4b748759121", - nameVersion: "TimedDealProvider@1.0.6" - }, - collateralProvider: { - address: "0x7521fF2baca97397C8936E35dAc225f6bc1070Cf", - nameVersion: "CollateralProvider@0.9.6" - }, - refundProvider: { - address: "0x9c8F78E0aeAB8190c9d1DF7BEd0B26c1EDcB8DE6", - nameVersion: "RefundProvider@0.9.6" - }, - simpleBuilder: { - address: "0xA2A0bEEfda596Fdb321240dD283D8cBf65b252f1", - nameVersion: "SimpleBuilder@0.9.1-ironblocks" - }, - simpleRefundBuilder: { - address: "0x65f62efEb1A43064081443791d8C10Db0A1FB511", - nameVersion: "SimpleRefundBuilder@0.9.5" - }, - multiSenderV2: { - address: "0x120893ab6f67171d4e6b0e72c151ab96aebe44e4", - nameVersion: "MultiSenderV2@2.1.0" - }, - dispenserProvider: { - address: "0x6145F338eCf142813a9Cfcf02A9f95cFC300cfb7", - nameVersion: "DispenserProvider@1.1.2" - } -} diff --git a/src/contracts/configs/BinanceMain.config.ts b/src/contracts/configs/BinanceMain.config.ts deleted file mode 100644 index 12f040c..0000000 --- a/src/contracts/configs/BinanceMain.config.ts +++ /dev/null @@ -1,95 +0,0 @@ -import type { TChainConfig } from "../../types/IThePoolzInterface" - -export const BinanceMainChainConfig: TChainConfig = { - chainInfo: { - name: "BNB Smart Chain Mainnet", - chain: "BSC", - nativeCurrency: { - name: "BNB Chain Native Token", - symbol: "BNB", - decimals: 18 - }, - infoURL: "https://www.bnbchain.org/en", - chainId: 56, - explorers: [ - { - name: "bscscan", - url: "https://bscscan.com", - standard: "EIP3091" - }, - { - name: "dexguru", - url: "https://bnb.dex.guru", - icon: "dexguru", - standard: "EIP3091" - } - ] - }, - investProviderAddress: "0x80E7DCA0B053D044B0ff477C48e891B0aF01d545", - poolzAddress: "0xCc8f6A82Ff034C15dFDAcBcab29F7Ea28C616EF7", - lockedDealV2: { - address: "0x436CE2ce8d8d2Ccc062f6e92faF410DB4d397905", - nameVersion: "LockedDeal@2.3.3" - }, - whiteListAddress: "0x06eD6E9A15D1bae5835544E305e43f5cAB5DB525", - signUpAddress: "0x41b56bF3b21C53F6394a44A2ff84f1d2bBC27841", - poolzBackWithdraw: "0x7Ff9315f538dF7eC76Ec4815249Dd30519726460", - poolzTokenAddress: "0xbAeA9aBA1454DF334943951d51116aE342eAB255", - delayVault: { address: "0x5eb57B1210338b13E3D5572d5e1670285Aa71702", nameVersion: "DelayVault@1.2.2" }, - multiSenderV2: { - address: "0x114DAdDE8112A5c43aaBc6373473c282e14948Fa", - nameVersion: "MultiSenderV2@2.1.0" - }, - lockDealNFT: { - address: "0x3d2C83bbBbfB54087d46B80585253077509c21AE", - nameVersion: "LockDealNFT@0.9.1-ironblocks" - }, - vaultManager: { - address: "0xd82C03Bd0543b567C9CeC7B822373be2B167f00F", - nameVersion: "VaultManager@0.0.4-ironblocks" - }, - dealProvider: { - address: "0x09b158df31ec4edf2dcd2c1dbda60b69dad01347", - nameVersion: "DealProvider@1.0.6" - }, - lockDealProvider: { - address: "0x2942ee88A75B0c87fC9eEB8DDc9066De84937786", - nameVersion: "LockDealProvider@1.0.6" - }, - timedDealProvider: { - address: "0x43b4CD03ED2504599Ed3Fb56780149A7E7960282", - nameVersion: "TimedDealProvider@1.0.6" - }, - collateralProvider: { - address: "0xabc8a53b30b33190c959d304e1044b37c275d28d", - nameVersion: "CollateralProvider@0.9.6" - }, - refundProvider: { - address: "0xfd8d52ee64c85f82ebef6ae8a409e5ccddac0c04", - nameVersion: "RefundProvider@0.9.6" - }, - simpleBuilder: { - address: "0x4c6842E242B39F16328f2dEEd8cF23b407982aff", - nameVersion: "SimpleBuilder@0.9.1-ironblocks" - }, - simpleRefundBuilder: { - address: "0x906f2db10cac66cd31859656a2d198ecae7b9ef1", - nameVersion: "SimpleRefundBuilder@0.9.5" - }, - delayVaultProvider: { - address: "0xeb88Ff7799E0e7b187D98232336722ec9936B86D", - nameVersion: "DelayVaultProvider@0.9.5-ironblocks" - }, - delayVaultMigrator: { - address: "0x10F1DA58d6d25B5909d5897ea3BA3E76fcE774A5", - nameVersion: "DelayVaultMigrator@0.9.1-ironblocks" - }, - tokenNFTConnector: { - address: "0x23f561B92AAa13d7C15A1038297Cd59bAe6C47c5", - nameVersion: "TokenNFTConnector@1.2.1" - }, - dispenserProvider: { - address: "0x93441BF11A3Cc2352253013990d68F5A2b1EC3ed", - nameVersion: "DispenserProvider@1.1.2" - } -} diff --git a/src/contracts/configs/BinanceTest.config.ts b/src/contracts/configs/BinanceTest.config.ts deleted file mode 100644 index 9d1026a..0000000 --- a/src/contracts/configs/BinanceTest.config.ts +++ /dev/null @@ -1,93 +0,0 @@ -import type { TChainConfig } from "../../types/IThePoolzInterface" - -export const BinanceTestChainConfig: TChainConfig = { - chainInfo: { - name: "BNB Smart Chain Testnet", - chain: "BSC", - chainId: 97, - nativeCurrency: { - name: "BNB Chain Native Token", - symbol: "tBNB", - decimals: 18 - }, - infoURL: "https://www.bnbchain.org/en", - explorers: [ - { - name: "bscscan-testnet", - url: "https://testnet.bscscan.com", - standard: "EIP3091" - } - ] - }, - investProviderAddress: "0x1Bebef1aBf49F9e588850b9Dc0Bf1AC6872C33D2", - poolzAddress: "0xEEF0b7a6cd416006815ed3D66B670e1da73E116C", - dispenserAddress: "0x7352116Fc2C7E7FF172D9E7dA2F31250E537ACcb", - whiteListAddress: "0xC68CD044B5F888b8D3054C9dDD7a396b73f4418c", - - lockedDealV2: { - address: "0x60b157886e908dD0d6F42d01F96681018287A8b0", - nameVersion: "LockedDeal@2.3.3" - }, - signUpAddress: "0xA98b8386a806966c959C35c636b929FE7c5dD7dE", - poolzTokenAddress: "0xE14A2A1006B83F363569BC7b5b733191E919ca34", - delayVault: { - address: "0x607155A953d5f598d2F7CcD9a6395Af389cfecE5", - nameVersion: "DelayVault@1.2.2" - }, - lockDealNFT: { - address: "0xe42876a77108E8B3B2af53907f5e533Cba2Ce7BE", - nameVersion: "LockDealNFT@0.9.1-ironblocks" - }, - vaultManager: { - address: "0xF0A8AAc3deB7596527A61697D0a9728E3A67D3B7", - nameVersion: "VaultManager@0.0.4-ironblocks" - }, - dealProvider: { - address: "0x99ad58d94ab699F6d02790E182a0A4c28D4739B5", - nameVersion: "DealProvider@1.0.6" - }, - lockDealProvider: { - address: "0x7e3e0C930b4Ae650D239964094b703deE75d33DD", - nameVersion: "LockDealProvider@1.0.6" - }, - timedDealProvider: { - address: "0xBE7C13C7F320979B44B01207Aa72Fe505fD87696", - nameVersion: "TimedDealProvider@1.0.6" - }, - collateralProvider: { - address: "0xb2b37652577A00655A45E6db8bB61251e47D4B8a", - nameVersion: "CollateralProvider@0.9.6" - }, - refundProvider: { - address: "0xD4780f8298385a034e44515977F29E3DaC83fB0f", - nameVersion: "RefundProvider@0.9.6" - }, - simpleBuilder: { - address: "0xaE297EeC7A7782e81CC23E6A3B6C06621B12dF26", - nameVersion: "SimpleBuilder@1.1.1" - }, - simpleRefundBuilder: { - address: "0xC45C273Cf9aD9727f8b057C27E57253feF2c0ED6", - nameVersion: "SimpleRefundBuilder@1.1.1" - }, - multiSenderV2: { - address: "0xaF2F6E827728a9e0288d69b0ea97Bd188DfBb3b1", - nameVersion: "MultiSenderV2@2.1.0" - }, - delayVaultProvider: { - address: "0x9fd743f499d852E3A2cFEAC037e5562126468D28", - nameVersion: "DelayVaultProvider@0.9.5-ironblocks" - }, - delayVaultMigrator: { - address: "0xFc4E9DDd1E21a9BaDEb1A4C81687A20fe135A54F", - nameVersion: "DelayVaultMigrator@0.9.1-ironblocks" - }, - tokenNFTConnector: { - address: "0x99dfade11d9cd4c2b192efda205c50d982cd76a1", - nameVersion: "TokenNFTConnector@1.2.1" - }, - dispenserProvider: { - address: "0xa9c68640C1AA52E91A75F4c5e2786F68049541Ad", - nameVersion: "DispenserProvider@1.1.2" - } -} diff --git a/src/contracts/configs/COTIDevnet.ts b/src/contracts/configs/COTIDevnet.ts deleted file mode 100644 index 2ee9ae6..0000000 --- a/src/contracts/configs/COTIDevnet.ts +++ /dev/null @@ -1,58 +0,0 @@ -import type { TChainConfig } from "../../types/IThePoolzInterface" - -export const COTIDevnetChainConfig: TChainConfig = { - chainInfo: { - name: "COTI Devnet", - chain: "COTIDevnet", - nativeCurrency: { - name: "COTI2", - symbol: "COTI2", - decimals: 18 - }, - infoURL: "https://devnet.coti.io", - chainId: 13068200, - explorers: [ - { - name: "cotiscan", - url: "https://explorer-devnet.coti.io/", - standard: "EIP3091" - } - ] - }, - vaultManager: { - address: "0xc82633b2c0DAc7e58be68B264399bd6278407688", - nameVersion: "VaultManager@1.0.0" - }, - lockDealNFT: { - address: "0x25E66861ADC9BBA4e539da90EbFb9c8cd0326EF2", - nameVersion: "LockDealNFT@1.0.4" - }, - dealProvider: { - address: "0x5a1a36821E86bC4a7c9cDAE8DF5C72956B846a6D", - nameVersion: "DealProvider@1.0.4" - }, - lockDealProvider: { - address: "0x3043a752fA09B63ECbA44547af6047Bd343cbd3E", - nameVersion: "LockDealProvider@1.0.4" - }, - timedDealProvider: { - address: "0x73b8893E877360526B6Fc9D67DD7e3ce675F6a32", - nameVersion: "TimedDealProvider@1.0.4" - }, - collateralProvider: { - address: "0xB665d8888D29E51393aBBB8d3B58B62ff59dD8Df", - nameVersion: "CollateralProvider@1.0.2" - }, - refundProvider: { - address: "0x7B91e76C9190E4daC50fA89E032375B0E35E22D5", - nameVersion: "RefundProvider@1.0.2" - }, - simpleBuilder: { - address: "0x4Fc800ca9e30f540238538555B4f759DeDCE7dBa", - nameVersion: "SimpleBuilder@1.2.2" - }, - simpleRefundBuilder: { - address: "0x9c801e41dB904657e6ad63295FA8a5Ef32f1E789", - nameVersion: "SimpleRefundBuilder@1.2.2" - } -} diff --git a/src/contracts/configs/COTIMainnet.config.ts b/src/contracts/configs/COTIMainnet.config.ts deleted file mode 100644 index 21addb8..0000000 --- a/src/contracts/configs/COTIMainnet.config.ts +++ /dev/null @@ -1,46 +0,0 @@ -import type { TChainConfig } from "../../types/IThePoolzInterface" - -export const COTIMainnetChainConfig: TChainConfig = { - chainInfo: { - name: "COTI Mainnet", - chain: "COTIMainnet", - nativeCurrency: { - name: "COTI", - symbol: "COTI", - decimals: 18 - }, - infoURL: "https://coti.io", - chainId: 2632500, - explorers: [ - { - name: "cotiscan", - url: "https://mainnet.cotiscan.io/", - standard: "EIP3091" - } - ] - }, - vaultManager: { - address: "0x7Ff9315f538dF7eC76Ec4815249Dd30519726460", - nameVersion: "VaultManager@1.0.0" - }, - lockDealNFT: { - address: "0x2Bb9cFF524C76eb2eA27bC6cDbB93447115D8dcC", - nameVersion: "LockDealNFT@1.0.4" - }, - dealProvider: { - address: "0x9cfd8c7834Be0DfE41F3FE68C29124066D5Cd13b", - nameVersion: "DealProvider@1.0.6" - }, - lockDealProvider: { - address: "0x756CD0834C2610f583B8324934A0269E3fef6f72", - nameVersion: "LockDealProvider@1.0.6" - }, - timedDealProvider: { - address: "0x2051f98ca620a4d3E6024f144382d3537452B557", - nameVersion: "TimedDealProvider@1.0.6" - }, - dispenserProvider: { - address: "0x8b58eeaB0e457c0b6CA68dFC3861a4352D6c5CFb", - nameVersion: "DispenserProvider@1.1.2" - } -} diff --git a/src/contracts/configs/COTITestnet.config.ts b/src/contracts/configs/COTITestnet.config.ts deleted file mode 100644 index fb471f8..0000000 --- a/src/contracts/configs/COTITestnet.config.ts +++ /dev/null @@ -1,50 +0,0 @@ -import type { TChainConfig } from "../../types/IThePoolzInterface" - -export const COTITestnetChainConfig: TChainConfig = { - chainInfo: { - name: "COTI Testnet", - chain: "COTITestnet", - nativeCurrency: { - name: "COTI", - symbol: "COTI", - decimals: 18 - }, - infoURL: "https://testnet.coti.io", - chainId: 7082400, - explorers: [ - { - name: "cotiscan", - url: "https://testnet.cotiscan.io/", - standard: "EIP3091" - } - ] - }, - vaultManager: { - address: "0x3A3717a198f0b69155D666D61984e3BBeD084C48", - nameVersion: "VaultManager@1.0.0" - }, - lockDealNFT: { - address: "0x398cc8B9d891fFEFA0E82EB0fb3845c19C887451", - nameVersion: "LockDealNFT@1.0.4" - }, - dealProvider: { - address: "0x8169b222ECeb16beF40cF94Ba0d50678d706F6D0", - nameVersion: "DealProvider@1.0.6" - }, - lockDealProvider: { - address: "0x66a550610d38Fd4964635b6bf6828f4CF75Ab42A", - nameVersion: "LockDealProvider@1.0.6" - }, - timedDealProvider: { - address: "0x29552d4fa4e2ecF802a2dcf6fA5513386a4BCCBb", - nameVersion: "TimedDealProvider@1.0.6" - }, - simpleBuilder: { - address: "0x75E8144D24274e8c881B844B2F40a2C610885CE9", - nameVersion: "SimpleBuilder@1.2.2" - }, - dispenserProvider: { - address: "0x0D8c24f2D33864D82ddBCb64D15D8EDA635db0d0", - nameVersion: "DispenserProvider@1.1.2" - } -} diff --git a/src/contracts/configs/Eth.config.ts b/src/contracts/configs/Eth.config.ts deleted file mode 100644 index bf1710b..0000000 --- a/src/contracts/configs/Eth.config.ts +++ /dev/null @@ -1,74 +0,0 @@ -import type { TChainConfig } from "../../types/IThePoolzInterface" - -export const EthMainChainConfig: TChainConfig = { - chainInfo: { - name: "Ethereum Mainnet", - chain: "ETH", - nativeCurrency: { - name: "Ether", - symbol: "ETH", - decimals: 18 - }, - infoURL: "https://ethereum.org", - chainId: 1, - explorers: [ - { - name: "etherscan", - url: "https://etherscan.io", - standard: "EIP3091" - }, - { - name: "blockscout", - url: "https://eth.blockscout.com", - icon: "blockscout", - standard: "EIP3091" - }, - { - name: "dexguru", - url: "https://ethereum.dex.guru", - icon: "dexguru", - standard: "EIP3091" - } - ] - }, - poolzAddress: "0x99896BA5fde6CED06569CF848982d2c7779d2694", - whiteListAddress: "0xf5BbB7f9D38387A2196CD242e51808dc7E5CEF88", - poolzBackWithdraw: ["0x872496054817B825b09e2b38531Fd33Ab41b2367", "0x000BaB4F6b5560d7942AC88cf0233b6028B5B465"], - lockedDealV2: { - address: "0x285B4866257eF51FfBDD239c10dE5f9493413d8f", - nameVersion: "LockedDeal@2.3.3" - }, - multiSenderV2: { - address: "0x658bcdfe51795ba43e9fd1ae9e39ddfbb1e70c5f", - nameVersion: "MultiSenderV2@2.1.0" - }, - vaultManager: { - address: "0x9ff1db30c66cd9d3311b4b22da49791610922b13", - nameVersion: "VaultManager@0.0.4-ironblocks" - }, - lockDealNFT: { - address: "0x5e0bB1fF9003ac3586f039D482d2974A6D7ED781", - nameVersion: "LockDealNFT@1.0.2" - }, - dealProvider: { - address: "0xf8449c81E2d132e429caa1cb744E1ba7235C20DE", - nameVersion: "DealProvider@1.0.6" - }, - lockDealProvider: { - address: "0x83d9a44395b6a4Aa3a907a445CB049C50fF5b962", - nameVersion: "LockDealProvider@1.0.6" - }, - timedDealProvider: { - address: "0x313a8Dd9d9399fc625Ec946b328F45020d15A699", - nameVersion: "TimedDealProvider@1.0.6" - }, - simpleBuilder: { - address: "0x39dDEE2Ee5dF625Ef91d509Ab40E926bbD83CD0C", - nameVersion: "SimpleBuilder@1.2.2" - }, - dispenserProvider: { - address: "0xf5e1D15FdCbB8efC617632dCBAcBC74b96a3ccA7", - nameVersion: "DispenserProvider@1.1.2" - } - // delayVault: { address: "0x674c9FDc5DcBD525cd3ea2C3A2caE6cfe79727C5", nameVersion: "DelayVault@1.2.2" } -} diff --git a/src/contracts/configs/Manta.config.ts b/src/contracts/configs/Manta.config.ts deleted file mode 100644 index 51120c1..0000000 --- a/src/contracts/configs/Manta.config.ts +++ /dev/null @@ -1,66 +0,0 @@ -import type { TChainConfig } from "../../types/IThePoolzInterface" - -export const MantaChainConfig: TChainConfig = { - chainInfo: { - name: "Manta Pacific Mainnet", - chain: "Manta Pacific", - chainId: 169, - nativeCurrency: { - name: "Ether", - symbol: "ETH", - decimals: 18 - }, - infoURL: "https://pacific-info.manta.network", - explorers: [ - { - name: "manta-pacific Explorer", - url: "https://pacific-explorer.manta.network", - standard: "EIP3091" - } - ] - }, - lockDealNFT: { - address: "0xb16BBDf683fFd6D92290F7610bb10f22f9c71e9e", - nameVersion: "LockDealNFT@0.9.1-ironblocks" - }, - vaultManager: { - address: "0x7Ff9315f538dF7eC76Ec4815249Dd30519726460", - nameVersion: "VaultManager@0.0.4-ironblocks" - }, - dealProvider: { - address: "0xD985eFADECBC4A11C731f3086cbad8edE5e3e341", - nameVersion: "DealProvider@1.0.6" - }, - lockDealProvider: { - address: "0x25ea5cf98A46dbaBefd042B6cEebc501b659be78", - nameVersion: "LockDealProvider@1.0.6" - }, - timedDealProvider: { - address: "0xaEb7A13D3608C673E99685798f9ba5ACE41119d3", - nameVersion: "TimedDealProvider@1.0.6" - }, - collateralProvider: { - address: "0x7521fF2baca97397C8936E35dAc225f6bc1070Cf", - nameVersion: "CollateralProvider@0.9.6" - }, - refundProvider: { - address: "0x9c8F78E0aeAB8190c9d1DF7BEd0B26c1EDcB8DE6", - nameVersion: "RefundProvider@0.9.6" - }, - simpleBuilder: { - address: "0xA2A0bEEfda596Fdb321240dD283D8cBf65b252f1", - nameVersion: "SimpleBuilder@0.9.1-ironblocks" - }, - simpleRefundBuilder: { - address: "0x65f62efEb1A43064081443791d8C10Db0A1FB511", - nameVersion: "SimpleRefundBuilder@0.9.5" - }, - multiSenderV2: { - address: "0x655a8bc3875aedb2A4bc4aeeF5F84805207cB5DC", - nameVersion: "MultiSenderV2@2.1.0" - }, - dispenserProvider: { - address: "0xEe25294438bc5542fEAFACC3E08Bb4658EB3C43f", - nameVersion: "DispenserProvider@1.1.2" - } -} diff --git a/src/contracts/configs/MantaTest.config.ts b/src/contracts/configs/MantaTest.config.ts deleted file mode 100644 index 42bba35..0000000 --- a/src/contracts/configs/MantaTest.config.ts +++ /dev/null @@ -1,58 +0,0 @@ -import type { TChainConfig } from "../../types/IThePoolzInterface" - -export const MantaTestChainConfig: TChainConfig = { - chainInfo: { - name: "Manta Pacific Testnet", - chain: "Manta Pacific", - chainId: 3441005, - nativeCurrency: { - name: "Manta", - symbol: "MANTA", - decimals: 18 - }, - infoURL: "https://manta-testnet.caldera.dev/", - explorers: [ - { - name: "manta-testnet Explorer", - url: "https://manta-testnet.calderaexplorer.xyz", - standard: "EIP3091" - } - ] - }, - lockDealNFT: { - address: "0x011c8888C96fd3c1C1c43749ED581D17DE17F42C", - nameVersion: "LockDealNFT@0.9.1-ironblocks" - }, - vaultManager: { - address: "0xc82633b2c0DAc7e58be68B264399bd6278407688", - nameVersion: "VaultManager@0.0.4-ironblocks" - }, - dealProvider: { - address: "0x25E66861ADC9BBA4e539da90EbFb9c8cd0326EF2", - nameVersion: "DealProvider@0.9.1-ironblocks" - }, - lockDealProvider: { - address: "0x06985B5B1B45F803f3054a93022C8c8824085f2e", - nameVersion: "LockDealProvider@0.9.1-ironblocks" - }, - timedDealProvider: { - address: "0x5a1a36821E86bC4a7c9cDAE8DF5C72956B846a6D", - nameVersion: "TimedDealProvider@0.9.1-ironblocks" - }, - collateralProvider: { - address: "0x600fAa264ba2F16bcFd2d3E67882715B21936324", - nameVersion: "CollateralProvider@0.9.6" - }, - refundProvider: { - address: "0x3043a752fA09B63ECbA44547af6047Bd343cbd3E", - nameVersion: "RefundProvider@0.9.6" - }, - simpleBuilder: { - address: "0x73b8893E877360526B6Fc9D67DD7e3ce675F6a32", - nameVersion: "SimpleBuilder@0.9.1-ironblocks" - }, - simpleRefundBuilder: { - address: "0xB95c73B254Ead4624bC19ea40AA1538425e0Ff87", - nameVersion: "SimpleRefundBuilder@0.9.5" - } -} diff --git a/src/contracts/configs/MaticMain.config.ts b/src/contracts/configs/MaticMain.config.ts deleted file mode 100644 index 22b9cbf..0000000 --- a/src/contracts/configs/MaticMain.config.ts +++ /dev/null @@ -1,78 +0,0 @@ -import type { TChainConfig } from "../../types/IThePoolzInterface" - -export const MaticMainChainConfig: TChainConfig = { - chainInfo: { - name: "Polygon Mainnet", - chain: "Polygon", - nativeCurrency: { - name: "MATIC", - symbol: "MATIC", - decimals: 18 - }, - infoURL: "https://polygon.technology/", - chainId: 137, - explorers: [ - { - name: "polygonscan", - url: "https://polygonscan.com", - standard: "EIP3091" - }, - { - name: "dexguru", - url: "https://polygon.dex.guru", - icon: "dexguru", - standard: "EIP3091" - } - ] - }, - poolzAddress: "0xDeab1420F6C024140bAB2a248A424F780Ed0964C", - whiteListAddress: "0xD39eA2C72B99E65F1CDa47E727b453964B45e036", - lockedDealV2: { - address: "0x9D13B213852669077131f8A24A676f27ab0C2931", - nameVersion: "LockedDeal@2.3.2" - }, - multiSenderV2: { - address: "0x9c8f78e0aeab8190c9d1df7bed0b26c1edcb8de6", - nameVersion: "MultiSenderV2@2.1.0" - }, - lockDealNFT: { - address: "0x9C36786836A594e3b355bA572A5Cd6841F69d86e", - nameVersion: "LockDealNFT@0.9.1-ironblocks" - }, - vaultManager: { - address: "0x06fd710fD167f1f08b61e457F41D6e7c7DD9AF3D", - nameVersion: "VaultManager@0.0.4-ironblocks" - }, - dealProvider: { - address: "0x2A42701fE4D3a57AF04B0c9d99bABfbB03Fe8657", - nameVersion: "DealProvider@1.0.6" - }, - lockDealProvider: { - address: "0x42669ac65847E4CE67925222aCcF713707a43F6d", - nameVersion: "LockDealProvider@1.0.6" - }, - timedDealProvider: { - address: "0xf188c5B4d8CCD2a6E16a853Ba9F2dFd20ce1ed70", - nameVersion: "TimedDealProvider@1.0.6" - }, - collateralProvider: { - address: "0x969d6a2a995e0a6e2f82803840581e21ee6f3a97", - nameVersion: "CollateralProvider@1.0.2" - }, - refundProvider: { - address: "0x34fbf73bfe879b868ae2c0f205762798e29b7037", - nameVersion: "RefundProvider@1.0.2" - }, - simpleBuilder: { - address: "0x8d82b419a15deb20c43934f5a40ecf876df37e93", - nameVersion: "SimpleBuilder@1.2.2" - }, - simpleRefundBuilder: { - address: "0xa20262e67e46b40bdf6e647b3eac3acb504ad04d", - nameVersion: "SimpleRefundBuilder@1.2.2" - }, - dispenserProvider: { - address: "0x55e7bBC157D3Ce3c9b507ec0A7948782e44BB29b", - nameVersion: "DispenserProvider@1.1.2" - } -} diff --git a/src/contracts/configs/Moonbeam.config.ts b/src/contracts/configs/Moonbeam.config.ts deleted file mode 100644 index 256f008..0000000 --- a/src/contracts/configs/Moonbeam.config.ts +++ /dev/null @@ -1,50 +0,0 @@ -import type { TChainConfig } from "../../types/IThePoolzInterface" - -export const MoonbeamChainConfig: TChainConfig = { - chainInfo: { - name: "Moonbeam", - chain: "MOON", - nativeCurrency: { - name: "Glimmer", - symbol: "GLMR", - decimals: 18 - }, - infoURL: "https://moonbeam.network/networks/moonbeam", - chainId: 1284, - explorers: [ - { - name: "moonscan", - url: "https://moonbeam.moonscan.io", - standard: "EIP3091" - } - ] - }, - vaultManager: { - address: "0x2Bb9cFF524C76eb2eA27bC6cDbB93447115D8dcC", - nameVersion: "VaultManager@1.0.0" - }, - lockDealNFT: { - address: "0x6d77B5147CDE6Fa287c1266A33e09a09651D36d0", - nameVersion: "LockDealNFT@1.0.4" - }, - dealProvider: { - address: "0xfB98B82D02C5E5241193Cab39956654A555F9A15", - nameVersion: "DealProvider@1.0.6" - }, - lockDealProvider: { - address: "0x1E947Ec4F6B74c746F13604438cE1A3026f30553", - nameVersion: "LockDealProvider@1.0.6" - }, - timedDealProvider: { - address: "0x57cbaC84d9345eDd42a0CA31e50bda301268cD7d", - nameVersion: "TimedDealProvider@1.0.6" - }, - simpleBuilder: { - address: "0xA2A0bEEfda596Fdb321240dD283D8cBf65b252f1", - nameVersion: "SimpleBuilder@1.2.2" - }, - dispenserProvider: { - address: "0xa562824D34E555f16544B23305C6CD778B17993c", - nameVersion: "DispenserProvider@1.1.2" - } -} diff --git a/src/contracts/configs/Neon.config.ts b/src/contracts/configs/Neon.config.ts deleted file mode 100644 index 5000765..0000000 --- a/src/contracts/configs/Neon.config.ts +++ /dev/null @@ -1,32 +0,0 @@ -import type { TChainConfig } from "../../types/IThePoolzInterface" - -export const NeonChainConfig: TChainConfig = { - chainInfo: { - name: "Neon EVM Mainnet", - chain: "Solana", - nativeCurrency: { - name: "Neon", - symbol: "NEON", - decimals: 18 - }, - infoURL: "https://neonevm.org", - chainId: 245022934, - explorers: [ - { - name: "neonscan", - url: "https://neonscan.org", - standard: "EIP3091" - }, - { - name: "native", - url: "https://neon.blockscout.com", - standard: "EIP3091" - } - ] - }, - lockedDealV2: { - address: "0x7ff9315f538df7ec76ec4815249dd30519726460", - nameVersion: "LockedDeal@2.3.3" - }, - whiteListAddress: "0x9c8f78e0aeab8190c9d1df7bed0b26c1edcb8de6" -} \ No newline at end of file diff --git a/src/contracts/configs/README.md b/src/contracts/configs/README.md deleted file mode 100644 index 2a22970..0000000 --- a/src/contracts/configs/README.md +++ /dev/null @@ -1 +0,0 @@ -The chain number located in "constants/index" diff --git a/src/contracts/configs/Sepolia.config.ts b/src/contracts/configs/Sepolia.config.ts deleted file mode 100644 index 9f0bb87..0000000 --- a/src/contracts/configs/Sepolia.config.ts +++ /dev/null @@ -1,48 +0,0 @@ -import type { TChainConfig } from "../../types/IThePoolzInterface" - -export const SepoliaTestChainConfig: TChainConfig = { - chainInfo: { - name: "Sepolia", - chainId: 11155111, - chain: "ETH", - nativeCurrency: { - name: "Ether", - symbol: "ETH", - decimals: 18 - }, - explorers: [ - { - name: "Sepolia Testnet Explorer", - url: "https://sepolia.etherscan.io/", - standard: "EIP3091" - } - ], - infoURL: "https://sepolia.etherscan.io" - }, - dispenserAddress: "0x7352116Fc2C7E7FF172D9E7dA2F31250E537ACcb", - - lockDealNFT: { - address: "0x25E66861ADC9BBA4e539da90EbFb9c8cd0326EF2", - nameVersion: "LockDealNFT@1.0.4" - }, - vaultManager: { - address: "0x011c8888C96fd3c1C1c43749ED581D17DE17F42C", - nameVersion: "VaultManager@1.0.0" - }, - dealProvider: { - address: "0x4Fc800ca9e30f540238538555B4f759DeDCE7dBa", - nameVersion: "DealProvider@1.0.4" - }, - lockDealProvider: { - address: "0x398cc8B9d891fFEFA0E82EB0fb3845c19C887451", - nameVersion: "LockDealProvider@1.0.5" - }, - timedDealProvider: { - address: "0xc30405F76FCb8913d9A2719d19A2b1B7017CaE5b", - nameVersion: "TimedDealProvider@1.0.5" - }, - dispenserProvider: { - address: "0x78012fc722660E22778af214f3bc560673f37721", - nameVersion: "DispenserProvider@1.1.2" - } -} diff --git a/src/contracts/configs/TelosMain.config.ts b/src/contracts/configs/TelosMain.config.ts deleted file mode 100644 index d81b256..0000000 --- a/src/contracts/configs/TelosMain.config.ts +++ /dev/null @@ -1,67 +0,0 @@ -import type { TChainConfig } from "../../types/IThePoolzInterface" - -export const TelosMainChainConfig: TChainConfig = { - chainInfo: { - name: "Telos EVM Mainnet", - chain: "TLOS", - nativeCurrency: { - name: "Telos", - symbol: "TLOS", - decimals: 18 - }, - infoURL: "https://telos.net", - chainId: 40, - explorers: [ - { - name: "teloscan", - url: "https://teloscan.io", - standard: "EIP3091" - } - ] - }, - whiteListAddress: "0xb16BBDf683fFd6D92290F7610bb10f22f9c71e9e", - lockDealNFT: { - address: "0x6d77B5147CDE6Fa287c1266A33e09a09651D36d0", - nameVersion: "LockDealNFT@0.9.1" - }, - vaultManager: { - address: "0x2Bb9cFF524C76eb2eA27bC6cDbB93447115D8dcC", - nameVersion: "VaultManager@0.0.4" - }, - dealProvider: { - address: "0xEE099538ED077F831cB9Af44fFD51Ec7Fd95c7DE", - nameVersion: "DealProvider@1.0.6" - }, - lockDealProvider: { - address: "0xff1f0872f5462b30acdA92a08D2388612F7Bf7EE", - nameVersion: "LockDealProvider@1.0.6" - }, - collateralProvider: { - address: "0xA2A0bEEfda596Fdb321240dD283D8cBf65b252f1", - nameVersion: "CollateralProvider@0.9.1" - }, - refundProvider: { - address: "0x65f62efEb1A43064081443791d8C10Db0A1FB511", - nameVersion: "RefundProvider@0.9.1" - }, - simpleBuilder: { - address: "0x960c76BeC76ebB223B3e29B35a70c40925f38d66", - nameVersion: "SimpleBuilder@0.9.0" - }, - simpleRefundBuilder: { - address: "0x2dd5B5E374B2d32152507100a42CA15f7707F504", - nameVersion: "SimpleRefundBuilder@0.9.0" - }, - multiSenderV2: { - address: "0x9cfd8c7834Be0DfE41F3FE68C29124066D5Cd13b", - nameVersion: "MultiSenderV2@2.1.0" - }, - timedDealProvider: { - address: "0x2051f98ca620a4d3E6024f144382d3537452B557", - nameVersion: "TimedDealProvider@1.0.6" - }, - dispenserProvider: { - address: "0xaA40d75Fc2CdAFC61A7c52Ac207e17d694102ef2", - nameVersion: "DispenserProvider@1.1.2" - } -} diff --git a/src/contracts/configs/Tomo.config.ts b/src/contracts/configs/Tomo.config.ts deleted file mode 100644 index 265561a..0000000 --- a/src/contracts/configs/Tomo.config.ts +++ /dev/null @@ -1,26 +0,0 @@ -import type { TChainConfig } from "../../types/IThePoolzInterface" - -export const TomoChainConfig: TChainConfig = { - chainInfo: { - name: "Viction", - chain: "Viction", - chainId: 88, - nativeCurrency: { - name: "Viction", - symbol: "VIC", - decimals: 18 - }, - infoURL: "https://viction.xyz", - explorers: [ - { - name: "viction", - url: "https://tomoscan.io/", - standard: "EIP3091" - } - ] - }, - lockedDealV2: { - address: "0x7Ff9315f538dF7eC76Ec4815249Dd30519726460", - nameVersion: "LockedDeal@2.3.3" - } -} diff --git a/src/hooks/EIP6963Providers.ts b/src/hooks/EIP6963Providers.ts deleted file mode 100644 index 6f0fbc5..0000000 --- a/src/hooks/EIP6963Providers.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { EIP1193Provider, Web3APISpec } from "web3-types" - -interface EIP6963ProviderInfo { - walletId: string - uuid: string - name: string - icon: string -} - -export interface EIP6963ProviderDetail { - info: EIP6963ProviderInfo - provider: EIP1193Provider -} - -type EIP6963AnnounceProviderEvent = { - detail: { - info: EIP6963ProviderInfo - provider: EIP1193Provider - } -} - -declare global { - interface WindowEventMap { - "eip6963:announceProvider": CustomEvent - } -} - -let providers: EIP6963ProviderDetail[] = [] - -export const EIP6963Providers = { - value: () => providers, - subscribe: (callback: VoidFunction) => { - function onAnnouncement(event: EIP6963AnnounceProviderEvent) { - if (providers.map((p) => p.info.uuid).includes(event.detail.info.uuid)) return - providers = [...providers, event.detail] - callback() - } - window.addEventListener("eip6963:announceProvider", onAnnouncement) - window.dispatchEvent(new Event("eip6963:requestProvider")) - - return () => window.removeEventListener("eip6963:announceProvider", onAnnouncement) - } -} diff --git a/src/hooks/eip6963.test.ts b/src/hooks/eip6963.test.ts deleted file mode 100644 index 7fb0e43..0000000 --- a/src/hooks/eip6963.test.ts +++ /dev/null @@ -1,69 +0,0 @@ -// import { describe, it, vi, beforeEach, afterEach, expect } from "jest" -import { EIP6963Providers, type EIP6963ProviderDetail } from "./EIP6963Providers" - -describe("EIP6963Providers", () => { - const mockProvider: EIP6963ProviderDetail = { - info: { - walletId: "mockWallet", - uuid: "mockUUID", - name: "Mock Provider", - icon: "mockIcon" - }, - provider: { - request: async () => null, - on: () => {}, - removeListener: () => {} - } - } - - beforeEach(() => { - const providers = EIP6963Providers.value() - providers.splice(0, providers.length) - }) - - afterEach(() => { - jest.restoreAllMocks() - }) - - it("should return an empty array initially", () => { - expect(EIP6963Providers.value()).toEqual([]) - }) - - it("should add a provider on receiving 'eip6963:announceProvider' event", () => { - const callback = jest.fn() - const unsubscribe = EIP6963Providers.subscribe(callback) - const event = new CustomEvent("eip6963:announceProvider", { detail: mockProvider }) - window.dispatchEvent(event) - expect(EIP6963Providers.value()).toEqual([mockProvider]) - expect(callback).toHaveBeenCalledTimes(1) - unsubscribe() - }) - - it("should not add duplicate providers with the same UUID", () => { - const callback = jest.fn() - const unsubscribe = EIP6963Providers.subscribe(callback) - const event = new CustomEvent("eip6963:announceProvider", { detail: mockProvider }) - window.dispatchEvent(event) - window.dispatchEvent(event) - expect(EIP6963Providers.value()).toEqual([mockProvider]) - expect(callback).toHaveBeenCalledTimes(1) - unsubscribe() - }) - - it("should remove the event listener when unsubscribed", () => { - const callback = jest.fn() - const unsubscribe = EIP6963Providers.subscribe(callback) - unsubscribe() - const event = new CustomEvent("eip6963:announceProvider", { detail: mockProvider }) - window.dispatchEvent(event) - expect(callback).not.toHaveBeenCalled() - expect(EIP6963Providers.value()).toEqual([]) - }) - - it("should dispatch 'eip6963:requestProvider' event during subscription", () => { - const dispatchSpy = jest.spyOn(window, "dispatchEvent") - const unsubscribe = EIP6963Providers.subscribe(() => {}) - expect(dispatchSpy).toHaveBeenCalledWith(new Event("eip6963:requestProvider")) - unsubscribe() - }) -}) diff --git a/src/hooks/useConnectWallet.ts b/src/hooks/useConnectWallet.ts deleted file mode 100644 index bce416e..0000000 --- a/src/hooks/useConnectWallet.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { useConnect, useAccount } from "wagmi" - -export const useConnectWallet = () => { - const { connect, connectors, isPending } = useConnect() - const { isConnected, address } = useAccount() - - const metamaskConnector = connectors.find((c) => c.name.toLowerCase().includes("meta")) - const coinbaseConnector = connectors.find((c) => c.name.toLowerCase().includes("coinbase")) - const walletConnectConnector = connectors.find((c) => c.name.toLowerCase().includes("walletconnect")) - - return { - isConnected, - address, - isPending, - connectMetamask: metamaskConnector ? () => connect({ connector: metamaskConnector }) : undefined, - connectCoinbaseWallet: coinbaseConnector ? () => connect({ connector: coinbaseConnector }) : undefined, - connectWalletConnect: walletConnectConnector ? () => connect({ connector: walletConnectConnector }) : undefined, - connectors, - connect - } -} diff --git a/src/hooks/useSid.ts b/src/hooks/useSid.ts deleted file mode 100644 index 2a6e1e1..0000000 --- a/src/hooks/useSid.ts +++ /dev/null @@ -1,85 +0,0 @@ -import { useCallback, useMemo, useState } from "react" -import { useThePoolz } from "./useThePoolz" -import { type AbiItem } from "web3-utils" -import type { TSidNameForAddressResult } from "../types/hooks" - -function getSidAddress(networkId: number) { - if ([97].includes(networkId)) { - return "0xfFB52185b56603e0fd71De9de4F6f902f05EEA23" - } - if ([1, 3, 4, 5].includes(networkId)) { - return "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e" - } - if ([56].includes(networkId)) { - return "0x08CEd32a7f3eeC915Ba84415e9C07a7286977956" - } - if ([421613].includes(networkId)) { - return "0x1f70fc8de5669eaa8C9ce72257c94500DC5ff2E4" - } - if ([42161].includes(networkId)) { - return "0x4a067EE58e73ac5E4a43722E008DFdf65B2bF348" - } - return null -} - -const reverseAbi = [ - { - inputs: [{ internalType: "bytes32", name: "node", type: "bytes32" }], - name: "resolver", - outputs: [{ internalType: "address", name: "", type: "address" }], - stateMutability: "view", - type: "function" - } -] - -const resolverAbi = [ - { - constant: true, - inputs: [{ name: "node", type: "bytes32" }], - name: "name", - outputs: [{ name: "ret", type: "string" }], - payable: false, - type: "function" - } -] - -export const useSidNameForAddress = (): TSidNameForAddressResult => { - const [result, setResult] = useState(null) - const thePoolz = useThePoolz() - - const namehash = useCallback( - (domain: string) => { - const labels = domain.toLowerCase().split(".") - let node = "0x" + "".padStart(64, "0") - for (let i = labels.length - 1; i >= 0; i--) { - const labelSha = thePoolz.web3.utils.keccak256(labels[i]).substring(2) - node = thePoolz.web3.utils.keccak256(`${node}${labelSha}`) - } - return node - }, - [thePoolz] - ) - - const callBack = useCallback( - async (address?: string) => { - const addr = address ?? thePoolz.account - const sidAddress = getSidAddress(thePoolz.chainId) - - if (!addr || !sidAddress) return setResult(null) - - const reverseNode = namehash(`${addr.slice(2)}.addr.reverse`) - - const reverseContract = new thePoolz.web3.eth.Contract(reverseAbi as AbiItem[], sidAddress) - const resolverAddress = await reverseContract.methods.resolver(reverseNode).call() - - if (parseInt(resolverAddress, 16) === 0) return setResult(null) - - const resolverContract = new thePoolz.web3.eth.Contract(resolverAbi as AbiItem[], resolverAddress) - const name = await resolverContract.methods.name(reverseNode).call() - setResult(name) - }, - [thePoolz, namehash] - ) - - return useMemo(() => [callBack, { data: result }], [callBack, result]) -} diff --git a/src/hooks/useSyncProviders.ts b/src/hooks/useSyncProviders.ts deleted file mode 100644 index 2a316c1..0000000 --- a/src/hooks/useSyncProviders.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { useSyncExternalStore } from "react" -import { EIP6963Providers } from "./EIP6963Providers" - -export const useSyncProviders = () => - useSyncExternalStore(EIP6963Providers.subscribe, EIP6963Providers.value, EIP6963Providers.value) diff --git a/src/hooks/useThePoolz.ts b/src/hooks/useThePoolz.ts deleted file mode 100644 index 2f622a7..0000000 --- a/src/hooks/useThePoolz.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { useContext } from "react" -import ThePoolzContext from "../components/Context" - -export const useSetProvider = () => { - const { setProvider } = useContext(ThePoolzContext) - return setProvider -} -export const useThePoolz = () => { - const { thePoolz } = useContext(ThePoolzContext) - return thePoolz -} diff --git a/src/hooks/useTheSiwe.ts b/src/hooks/useTheSiwe.ts deleted file mode 100644 index 3331445..0000000 --- a/src/hooks/useTheSiwe.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { useCallback, useMemo } from "react" -import { useThePoolz } from "./useThePoolz" - -interface ISiwe { - Domain: string - URI: string - Statement: string - Version: number - ChainId: number - Nonce: number - IssuedAt: string - ExpirationAt: string -} -type TProps = () => Promise> - -export const useTheSiwe = (props: TProps) => { - const thePoolz = useThePoolz() - const { web3, account } = thePoolz - - const templateEip4361message = useCallback(async () => { - const { Domain, URI, Statement, Version, ChainId, Nonce, IssuedAt, ExpirationAt } = await props() - const { host: domain, href: uri } = window.location - return `${Domain ?? domain} wants you to sign in with your Ethereum account: -${account} - -${Statement ?? "I accept the Poolz Terms & Conditions: https://www.poolz.finance/terms-conditions"} - -URI: ${URI ?? uri} -Version: ${Version ?? 1} -Chain ID: ${ChainId ?? 56} -Nonce: ${Nonce ?? new Date().getTime()} -Issued At: ${IssuedAt ?? new Date().toISOString()} -Expiration Time: ${ExpirationAt ?? new Date(new Date().getTime() + 1000 * 60 * 60 * 24).toISOString()}` - }, [props]) - - return useMemo(() => { - const signInWithEthereum = async () => { - if (!web3.currentProvider || !account) throw new Error("No web3 provider or account") - const eip4361message = await templateEip4361message() - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - const signature = (await web3.currentProvider.request({ - method: "personal_sign", - params: [eip4361message.replace(/[\r\n]/g, "\n"), account] - })) as string - - return { eip4361message, signature, formatedMessage: eip4361message.replace(/\n/g, "\\n") } - } - return { signInWithEthereum } - }, [web3, templateEip4361message, account]) -} diff --git a/src/hooks/useWagmiConfig.ts b/src/hooks/useWagmiConfig.ts deleted file mode 100644 index b46c74e..0000000 --- a/src/hooks/useWagmiConfig.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { createConfig, http, type Config } from "wagmi" -import { coinbaseWallet, injected, walletConnect } from "wagmi/connectors" -import type { Chain } from "viem/chains" -import { WALLET_CONNECT_CONFIG } from "../constants/wagmi" - -export function createWagmiConfig(chains: Chain[]): Config { - if (chains.length === 0) { - throw new Error("No chains provided") - } - - const supportedChains = chains as [Chain, ...Chain[]] - - return createConfig({ - chains: supportedChains, - connectors: [ - injected(), - coinbaseWallet({ - appName: WALLET_CONNECT_CONFIG.appName, - appLogoUrl: WALLET_CONNECT_CONFIG.appLogoUrl - }), - walletConnect({ - projectId: WALLET_CONNECT_CONFIG.projectId, - metadata: { - name: WALLET_CONNECT_CONFIG.appName, - description: WALLET_CONNECT_CONFIG.appDescription, - url: WALLET_CONNECT_CONFIG.appUrl, - icons: [WALLET_CONNECT_CONFIG.appLogoUrl] - } - }) - ], - transports: supportedChains.reduce((acc, chain) => { - const rpcUrl = chain.rpcUrls.default.http[0] - if (rpcUrl) { - acc[chain.id] = http(rpcUrl) - } - return acc - }, {} as Record>) - }) -} diff --git a/src/poolz/ThePoolz.ts b/src/poolz/ThePoolz.ts deleted file mode 100644 index c10390a..0000000 --- a/src/poolz/ThePoolz.ts +++ /dev/null @@ -1,282 +0,0 @@ -import Web3 from "web3" -import type { Contract } from "web3-eth-contract" -import type { AbiItem } from "web3-utils" -import type { IThePoolzInterface, IERC20Info, TChainConfig } from "../types/IThePoolzInterface" -import { CUSTOMER_ACCOUNT_VARIABLE, DEFAULT_CHAIN_ID, AVAILABLE_CHAINS } from "../constants" -import ERC20 from "../contracts/abi/ERC20.json" -import POOLZ from "../contracts/abi/ThePoolz.json" -import InvestProvider from "../contracts/abi/InvestProvider.json" -import WhiteList from "../contracts/abi/WhiteList.json" -import SignUp from "../contracts/abi/SignUpPool.json" -import LockedDealV2 from "../contracts/abi/LockedDealV2.json" -import DelayVault from "../contracts/abi/DelayVault.json" -import LockDealNFT from "../contracts/abi/LockDealNFT.json" -import VaultManager from "../contracts/abi/VaultManager.json" -import DealProvider from "../contracts/abi/DealProvider.json" -import LockDealProvider from "../contracts/abi/LockDealProvider.json" -import TimedDealProvider from "../contracts/abi/TimedDealProvider.json" -import CollateralProvider from "../contracts/abi/CollateralProvider.json" -import RefundProvider from "../contracts/abi/RefundProvider.json" -import SimpleBuilder from "../contracts/abi/SimpleBuilder.json" -import SimpleRefundBuilder from "../contracts/abi/SimpleRefundBuilder.json" -import MultiSenderV2 from "../contracts/abi/MultiSenderV2.json" -import DelayVaultProvider from "../contracts/abi/DelayVaultProvider.json" -import DelayVaultMigrator from "../contracts/abi/DelayVaultMigrator.json" -import TokenNFTConnector from "../contracts/abi/TokenNFTConnector.json" -import DispenserProvider from "../contracts/abi/DispenserProvider.json" - -// ensure that the class does not have any extra properties that are not in the interface -type EnforceInterface = { [K in keyof U]: K extends keyof T ? T[K] : never } - -class ThePoolz implements EnforceInterface { - public account: IThePoolzInterface["account"] - public chainId: IThePoolzInterface["chainId"] = DEFAULT_CHAIN_ID - public web3: IThePoolzInterface["web3"] - public balance: IThePoolzInterface["balance"] = "0" - public poolzTokenAddress: IThePoolzInterface["poolzTokenAddress"] - public poolzAddress: IThePoolzInterface["poolzAddress"] - public investProviderAddress: IThePoolzInterface["investProviderAddress"] - public dispenserAddress: IThePoolzInterface["dispenserAddress"] - public poolzContract: IThePoolzInterface["poolzContract"] - public CPoolx: IThePoolzInterface["CPoolx"] - public investProviderContract: IThePoolzInterface["investProviderContract"] - public CInvestProvider: IThePoolzInterface["CInvestProvider"] - - public whiteListAddress: IThePoolzInterface["whiteListAddress"] - public whiteListContract: IThePoolzInterface["whiteListContract"] - public CWhiteList: IThePoolzInterface["CWhiteList"] - public signUpAddress: IThePoolzInterface["signUpAddress"] - public signUpContract: IThePoolzInterface["signUpContract"] - public CSignUp: IThePoolzInterface["CSignUp"] - public poolzBackWithdraw: IThePoolzInterface["poolzBackWithdraw"] - public poolzBackWithdrawContract: IThePoolzInterface["poolzBackWithdrawContract"] - public lockedDealV2: IThePoolzInterface["lockedDealV2"] - public delayVaultContract: IThePoolzInterface["delayVaultContract"] - public lockDealNFTContract: IThePoolzInterface["lockDealNFTContract"] - public vaultManagerContract: IThePoolzInterface["vaultManagerContract"] - public dealProviderContract: IThePoolzInterface["dealProviderContract"] - public lockDealProviderContract: IThePoolzInterface["lockDealProviderContract"] - public timedDealProviderContract: IThePoolzInterface["timedDealProviderContract"] - public collateralProviderContract: IThePoolzInterface["collateralProviderContract"] - public refundProviderContract: IThePoolzInterface["refundProviderContract"] - public simpleBuilderContract: IThePoolzInterface["simpleBuilderContract"] - public simpleRefundBuilderContract: IThePoolzInterface["simpleRefundBuilderContract"] - public multiSenderV2Contract: IThePoolzInterface["multiSenderV2Contract"] - public delayVaultProviderContract: IThePoolzInterface["delayVaultProviderContract"] - public delayVaultMigratorContract: IThePoolzInterface["delayVaultMigratorContract"] - public tokenNFTConnectorContract: IThePoolzInterface["tokenNFTConnectorContract"] - public dispenserProviderContract: IThePoolzInterface["dispenserProviderContract"] - - #provider: typeof Web3.givenProvider - #contracts = new Map() - #isTrustWallet = false - #overrides: TChainConfig | undefined = undefined - - constructor(provider: typeof Web3.givenProvider, overrides?: TChainConfig) { - this.#provider = provider - this.web3 = new Web3(provider) - this.#isTrustWallet = !!provider?.isTrustWallet - this.#overrides = overrides - } - async init() { - await this.initTrust() - await this.initChainId() - await this.initAccount() - await this.getBalance() - await this.initPoolzContracts() - } - private async initTrust() { - if (!this.web3.currentProvider || !this.#isTrustWallet) return - // @ts-ignore - await this.web3.currentProvider.request({ method: "eth_requestAccounts" }) - } - private async initChainId() { - if (!this.#provider) return - this.chainId = await this.web3.eth.getChainId() - } - - private async initAccount() { - if (!this.#provider) return - const accounts = await this.web3.eth.getAccounts() - if (accounts.length) this.account = localStorage.getItem(CUSTOMER_ACCOUNT_VARIABLE) ?? accounts[0] - } - - private async getBalance() { - if (!this.#provider || !this.account) return - this.balance = await this.web3.eth.getBalance(this.account) - } - - private async initPoolzContracts() { - const chainConfig = AVAILABLE_CHAINS.get(this.chainId) - if (!chainConfig) return - if (this.#overrides) Object.assign(chainConfig, this.#overrides) - const { - poolzTokenAddress, - poolzAddress, - dispenserAddress, - whiteListAddress, - lockedDealV2, - poolzBackWithdraw, - signUpAddress, - delayVault, - lockDealNFT, - vaultManager, - dealProvider, - lockDealProvider, - timedDealProvider, - collateralProvider, - refundProvider, - simpleBuilder, - simpleRefundBuilder, - multiSenderV2, - delayVaultProvider, - delayVaultMigrator, - tokenNFTConnector, - dispenserProvider, - investProviderAddress - } = chainConfig - - this.poolzTokenAddress = poolzTokenAddress - if (dispenserAddress) this.dispenserAddress = dispenserAddress - if (poolzAddress) { - const poolzContract = new this.web3.eth.Contract(POOLZ.abi as AbiItem[], poolzAddress) - poolzContract.options.address = poolzAddress - // deprecated - this.poolzAddress = poolzAddress - // deprecated - this.poolzContract = poolzContract - this.CPoolx = { - address: poolzAddress, - nameVersion: "CPoolx", - contract: poolzContract - } - } - if (investProviderAddress) { - const investProviderContract = new this.web3.eth.Contract(InvestProvider.abi as AbiItem[], investProviderAddress) - investProviderContract.options.address = investProviderAddress - // deprecated - this.investProviderAddress = investProviderAddress - // deprecated - this.investProviderContract = investProviderContract - this.CInvestProvider = { - address: investProviderAddress, - nameVersion: "CInvestProvider", - contract: investProviderContract - } - } - if (whiteListAddress) { - const whiteListContract = new this.web3.eth.Contract(WhiteList.abi as AbiItem[], whiteListAddress) - // deprecated - this.whiteListAddress = whiteListAddress - // deprecated - this.whiteListContract = whiteListContract - this.CWhiteList = { - address: whiteListAddress, - nameVersion: "CWhiteList", - contract: whiteListContract - } - } - if (poolzBackWithdraw) { - this.poolzBackWithdraw = Array.isArray(poolzBackWithdraw) ? poolzBackWithdraw : [poolzBackWithdraw] - this.poolzBackWithdrawContract = this.poolzBackWithdraw.map((address) => new this.web3.eth.Contract(POOLZ.abi as AbiItem[], address)) - } - if (signUpAddress) { - this.signUpAddress = signUpAddress - const signUpContract = new this.web3.eth.Contract(SignUp.abi as AbiItem[], signUpAddress) - this.signUpContract = signUpContract - this.CSignUp = { - address: signUpAddress, - nameVersion: "CSignUp", - contract: signUpContract - } - } - - const contractsToInit = [ - { key: "lockedDealV2", config: lockedDealV2, abi: LockedDealV2.abi }, - { key: "delayVaultContract", config: delayVault, abi: DelayVault.abi }, - { key: "lockDealNFTContract", config: lockDealNFT, abi: LockDealNFT.abi }, - { key: "vaultManagerContract", config: vaultManager, abi: VaultManager.abi }, - { key: "dealProviderContract", config: dealProvider, abi: DealProvider.abi }, - { key: "lockDealProviderContract", config: lockDealProvider, abi: LockDealProvider.abi }, - { key: "timedDealProviderContract", config: timedDealProvider, abi: TimedDealProvider.abi }, - { key: "collateralProviderContract", config: collateralProvider, abi: CollateralProvider.abi }, - { key: "refundProviderContract", config: refundProvider, abi: RefundProvider.abi }, - { key: "simpleBuilderContract", config: simpleBuilder, abi: SimpleBuilder.abi }, - { key: "simpleRefundBuilderContract", config: simpleRefundBuilder, abi: SimpleRefundBuilder.abi }, - { key: "multiSenderV2Contract", config: multiSenderV2, abi: MultiSenderV2.abi }, - { key: "delayVaultProviderContract", config: delayVaultProvider, abi: DelayVaultProvider.abi }, - { key: "delayVaultMigratorContract", config: delayVaultMigrator, abi: DelayVaultMigrator.abi }, - { key: "tokenNFTConnectorContract", config: tokenNFTConnector, abi: TokenNFTConnector.abi }, - { key: "dispenserProviderContract", config: dispenserProvider, abi: DispenserProvider.abi } - ] - - contractsToInit.forEach(({ key, config, abi }) => { - if (!config) return - const _this = this as Record - _this[key] = { - ...config, - contract: new this.web3.eth.Contract(abi as AbiItem[], config.address) - } - }) - } - - async getChaincoinInfo(chainId?: typeof this.chainId) { - if (!chainId) chainId = this.chainId - const chain = AVAILABLE_CHAINS.get(chainId) - if (!chain) return - return chain.chainInfo - } - - async ERC20(token: string) { - const cache = this.#contracts.get(token) - if (cache) return cache - - const contract = new this.web3.eth.Contract(ERC20.abi as AbiItem[], token) - this.#contracts.set(token, contract) - return contract - } - - async ERC20Balance(token: string, account: string) { - const ERC20Contract = await this.ERC20(token) - return (await ERC20Contract.methods.balanceOf(account).call()) as string - } - - async ERC20Info(token: string) { - const ERC20Contract = await this.ERC20(token) - - const data = await Promise.all([ - ERC20Contract.methods.name().call(), - ERC20Contract.methods.symbol().call(), - ERC20Contract.methods.decimals().call() - ]) - - return { address: token, decimals: parseInt(data[2]), symbol: data[1], name: data[0] } as IERC20Info - } - - async ERC20Allowance(token: string, account: string, spender: string) { - const ERC20Contract = await this.ERC20(token) - return (await ERC20Contract.methods.allowance(account, spender).call()) as string - } - - async ERC20Approve(token: string, account: string, spender: string, amount: string) { - const ERC20Contract = await this.ERC20(token) - return ERC20Contract.methods.approve(spender, amount).send({ from: account, maxPriorityFeePerGas: null, maxFeePerGas: null }) - } - - async Contract(name: string, address: string) { - const collectionName = name + address - if (this.#contracts.has(collectionName)) return this.#contracts.get(collectionName) - try { - const abi = await this.fetchContractAbi(name) - const contract = new this.web3.eth.Contract(abi as AbiItem[], address) - this.#contracts.set(collectionName, contract) - return contract - } catch (e) {} - } - private async fetchContractAbi(nameVersion: string) { - const response = await fetch(`https://poolzfinancedata.com/contracts?_where[0][NameVersion]=${nameVersion}`) - return (await response.json())[0].ABI - } -} - -export default ThePoolz diff --git a/src/types/IThePoolzInterface.ts b/src/types/IThePoolzInterface.ts deleted file mode 100644 index c6a07f8..0000000 --- a/src/types/IThePoolzInterface.ts +++ /dev/null @@ -1,203 +0,0 @@ -import Web3 from "web3" -import { Contract } from "web3-eth-contract" - -export type AcceptableContractNames = - | "PoolzBack" - | "LockedDeal" - | "Whitelist" - | "SignUp" - | "EnvelopToken" - | "BeaconToken" - | "DelayVault" - | "TemporaryToken" - | "MultiWithdraw" - | "LockDealNFT" - | "VaultManager" - | "DealProvider" - | "LockDealProvider" - | "TimedDealProvider" - | "CollateralProvider" - | "RefundProvider" - | "SimpleBuilder" - | "SimpleRefundBuilder" - | "DelayVaultProvider" - | "DelayVaultMigrator" - | "TokenNFTConnector" - | "MultiSenderV2" - | "DispenserProvider" - -export type VersionNumber = `${number}.${number}.${number}` - -export type NameVersion = - | `${AcceptableContractNames}@${VersionNumber}` - | `${AcceptableContractNames}@${VersionNumber}-${string}` - | "CPoolx" - | "CWhiteList" - | "CSignUp" - | "CInvestProvider" -export interface IContractInfo { - address: string - nameVersion: NameVersion - contract: Contract -} -export interface IERC20Info { - address: string - decimals: number - symbol: string - name: string -} -export interface IThePoolzInterface { - account?: string - chainId: number - balance: string - web3: Web3 - - investProviderAddress?: string - poolzAddress?: string - dispenserAddress?: string - /** - * @deprecated Use {@link CPoolx.contract} instead. - */ - poolzContract?: Contract - CPoolx?: IContractInfo - - /** - * @deprecated Use {@link CInvestProvider.contract} instead. - */ - investProviderContract?: Contract - CInvestProvider?: IContractInfo - - lockedDealV2?: IContractInfo - - /** - * @deprecated Use {@link CWhiteList.address} instead. - */ - whiteListAddress?: string - /** - * @deprecated Use {@link CWhiteList.contract} instead. - */ - whiteListContract?: Contract - CWhiteList?: IContractInfo - /** - * @deprecated Use {@link CSignUp.address} instead. - */ - signUpAddress?: string - /** - * @deprecated Use {@link CSignUp.contract} instead. - */ - signUpContract?: Contract - CSignUp?: IContractInfo - - poolzBackWithdraw?: string[] - poolzBackWithdrawContract?: Contract[] - // CBackWithdraw?: IContractInfo - - poolzTokenAddress?: string - delayVaultContract?: IContractInfo - lockDealNFTContract?: IContractInfo - vaultManagerContract?: IContractInfo - dealProviderContract?: IContractInfo - lockDealProviderContract?: IContractInfo - timedDealProviderContract?: IContractInfo - collateralProviderContract?: IContractInfo - refundProviderContract?: IContractInfo - simpleBuilderContract?: IContractInfo - simpleRefundBuilderContract?: IContractInfo - multiSenderV2Contract?: IContractInfo - delayVaultProviderContract?: IContractInfo - delayVaultMigratorContract?: IContractInfo - tokenNFTConnectorContract?: IContractInfo - dispenserProviderContract?: IContractInfo - - init(): Promise - getChaincoinInfo(k?: number): Promise - ERC20(token: string): Promise - ERC20Balance(token: string, account: string): Promise - ERC20Allowance(token: string, account: string, spender: string): Promise - ERC20Approve(token: string, account: string, spender: string, amount: string): Promise - ERC20Info(token: string): Promise - Contract(name: string, address: string): Promise -} - -export interface IThePoolzContextInterface { - thePoolz: IThePoolzInterface - setProvider: React.Dispatch> -} - -export interface IChainConfig { - poolzAddress: IThePoolzInterface["poolzAddress"] - investProviderAddress: IThePoolzInterface["investProviderAddress"] - investProviderContract: IThePoolzInterface["investProviderContract"] - CInvestProvider: IThePoolzInterface["CInvestProvider"] - dispenserAddress: IThePoolzInterface["dispenserAddress"] - poolzContract: IThePoolzInterface["poolzContract"] - CPoolx: IThePoolzInterface["CPoolx"] - - lockedDealV2: Omit, "contract"> - - whiteListAddress: IThePoolzInterface["whiteListAddress"] - whiteListContract: IThePoolzInterface["whiteListContract"] - CWhiteList: IThePoolzInterface["CWhiteList"] - - signUpAddress: IThePoolzInterface["signUpAddress"] - signUpContract: IThePoolzInterface["signUpContract"] - CSignUp: IThePoolzInterface["CSignUp"] - - poolzBackWithdraw: IThePoolzInterface["poolzBackWithdraw"] | string - poolzBackWithdrawContract: IThePoolzInterface["poolzBackWithdrawContract"] - // CBackWithdraw: IThePoolzInterface["CBackWithdraw"] - - poolzTokenAddress: IThePoolzInterface["poolzTokenAddress"] - delayVault: Omit, "contract"> - lockDealNFT: Omit, "contract"> - vaultManager: Omit, "contract"> - dealProvider: Omit, "contract"> - lockDealProvider: Omit, "contract"> - timedDealProvider: Omit, "contract"> - collateralProvider: Omit, "contract"> - refundProvider: Omit, "contract"> - simpleBuilder: Omit, "contract"> - simpleRefundBuilder: Omit, "contract"> - - multiSenderV2: Omit, "contract"> - delayVaultProvider: Omit, "contract"> - delayVaultMigrator: Omit, "contract"> - tokenNFTConnector: Omit, "contract"> - - dispenserProvider: Omit, "contract"> -} - -// copy chain data from https://chainid.network/chains.json -export interface IChainInfo { - name: string - chain: string - icon?: string - rpc?: string[] - features?: Array<{ - name: string - }> - faucets?: string[] - nativeCurrency: { - name: string - symbol: string - decimals: number - } - infoURL?: string - shortName?: string - chainId: number - networkId?: number - slip44?: number - ens?: { - registry: string - } - explorers?: Array<{ - name: string - url: string - icon?: string - standard: string - }> -} - -export type TChainConfig = Partial & { - chainInfo: IChainInfo -} diff --git a/src/types/TConnectWallet.ts b/src/types/TConnectWallet.ts deleted file mode 100644 index ee8a8ed..0000000 --- a/src/types/TConnectWallet.ts +++ /dev/null @@ -1,7 +0,0 @@ -export type TGivenProvider = { - isMetaMask?: boolean - isCoinbaseWallet?: boolean - isTrustWallet?: boolean - providers?: TGivenProvider[] - request({ method }: { method: string }): Promise -} diff --git a/src/types/hooks.ts b/src/types/hooks.ts deleted file mode 100644 index 4bb67f3..0000000 --- a/src/types/hooks.ts +++ /dev/null @@ -1 +0,0 @@ -export type TSidNameForAddressResult = [(address?: string) => Promise, { data: string | null }]