UNPKG

@etherisc/gif-contracts

Version:

This repository holds the GIF core contracts and tools to develop, test and deploy GIF instances.

1,951 lines 1.53 MB
{ "abi": [ { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint8", "name": "version", "type": "uint8" } ], "name": "Initialized", "type": "event" }, { "inputs": [], "name": "BUNDLE_NAME", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "COMPONENT_NAME", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "COMPONENT_OWNER_SERVICE_NAME", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "INSTANCE_OPERATOR_SERVICE_NAME", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "ORACLE_SERVICE_NAME", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "POLICY_NAME", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "POOL_NAME", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "PRODUCT_SERVICE_NAME", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "RISKPOOL_SERVICE_NAME", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "TREASURY_NAME", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "riskpoolId", "type": "uint256" } ], "name": "activeBundles", "outputs": [ { "internalType": "uint256", "name": "numberOfActiveBundles", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "bundles", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "claims", "outputs": [ { "internalType": "uint256", "name": "numberOfClaims", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "idx", "type": "uint256" } ], "name": "contractName", "outputs": [ { "internalType": "bytes32", "name": "name", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "contracts", "outputs": [ { "internalType": "uint256", "name": "numberOfContracts", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "riskpoolId", "type": "uint256" }, { "internalType": "uint256", "name": "bundleIdx", "type": "uint256" } ], "name": "getActiveBundleId", "outputs": [ { "internalType": "uint256", "name": "bundleId", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "getApplication", "outputs": [ { "components": [ { "internalType": "enum IPolicy.ApplicationState", "name": "state", "type": "uint8" }, { "internalType": "uint256", "name": "premiumAmount", "type": "uint256" }, { "internalType": "uint256", "name": "sumInsuredAmount", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "uint256", "name": "createdAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" } ], "internalType": "struct IPolicy.Application", "name": "application", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "riskpoolId", "type": "uint256" } ], "name": "getBalance", "outputs": [ { "internalType": "uint256", "name": "balanceAmount", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "bundleId", "type": "uint256" } ], "name": "getBundle", "outputs": [ { "components": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "uint256", "name": "riskpoolId", "type": "uint256" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "enum IBundle.BundleState", "name": "state", "type": "uint8" }, { "internalType": "bytes", "name": "filter", "type": "bytes" }, { "internalType": "uint256", "name": "capital", "type": "uint256" }, { "internalType": "uint256", "name": "lockedCapital", "type": "uint256" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "createdAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" } ], "internalType": "struct IBundle.Bundle", "name": "bundle", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getBundleToken", "outputs": [ { "internalType": "contract IBundleToken", "name": "token", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "riskpoolId", "type": "uint256" } ], "name": "getCapacity", "outputs": [ { "internalType": "uint256", "name": "capacityAmount", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "riskpoolId", "type": "uint256" } ], "name": "getCapital", "outputs": [ { "internalType": "uint256", "name": "capitalAmount", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getChainId", "outputs": [ { "internalType": "uint256", "name": "chainId", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getChainName", "outputs": [ { "internalType": "string", "name": "chainName", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "claimId", "type": "uint256" } ], "name": "getClaim", "outputs": [ { "components": [ { "internalType": "enum IPolicy.ClaimState", "name": "state", "type": "uint8" }, { "internalType": "uint256", "name": "claimAmount", "type": "uint256" }, { "internalType": "uint256", "name": "paidAmount", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "uint256", "name": "createdAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" } ], "internalType": "struct IPolicy.Claim", "name": "claim", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "getComponent", "outputs": [ { "internalType": "contract IComponent", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "componentAddress", "type": "address" } ], "name": "getComponentId", "outputs": [ { "internalType": "uint256", "name": "componentId", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getComponentOwnerService", "outputs": [ { "internalType": "contract IComponentOwnerService", "name": "service", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "componentId", "type": "uint256" } ], "name": "getComponentState", "outputs": [ { "internalType": "enum IComponent.ComponentState", "name": "componentState", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "componentId", "type": "uint256" } ], "name": "getComponentToken", "outputs": [ { "internalType": "contract IERC20", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "componentId", "type": "uint256" } ], "name": "getComponentType", "outputs": [ { "internalType": "enum IComponent.ComponentType", "name": "componentType", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getDefaultAdminRole", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getFeeFractionFullUnit", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getFullCollateralizationLevel", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getInstanceId", "outputs": [ { "internalType": "bytes32", "name": "instanceId", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getInstanceOperator", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getInstanceOperatorService", "outputs": [ { "internalType": "contract IInstanceOperatorService", "name": "service", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getInstanceWallet", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "riskpoolId", "type": "uint256" } ], "name": "getMaximumNumberOfActiveBundles", "outputs": [ { "internalType": "uint256", "name": "maximumNumberOfActiveBundles", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "bpKey", "type": "bytes32" } ], "name": "getMetadata", "outputs": [ { "components": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "uint256", "name": "productId", "type": "uint256" }, { "internalType": "enum IPolicy.PolicyFlowState", "name": "state", "type": "uint8" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "uint256", "name": "createdAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" } ], "internalType": "struct IPolicy.Metadata", "name": "metadata", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "idx", "type": "uint256" } ], "name": "getOracleId", "outputs": [ { "internalType": "uint256", "name": "oracleId", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getOracleProviderRole", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getOracleService", "outputs": [ { "internalType": "contract IOracleService", "name": "service", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "payoutId", "type": "uint256" } ], "name": "getPayout", "outputs": [ { "components": [ { "internalType": "uint256", "name": "claimId", "type": "uint256" }, { "internalType": "enum IPolicy.PayoutState", "name": "state", "type": "uint8" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "uint256", "name": "createdAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" } ], "internalType": "struct IPolicy.Payout", "name": "payout", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "getPolicy", "outputs": [ { "components": [ { "internalType": "enum IPolicy.PolicyState", "name": "state", "type": "uint8" }, { "internalType": "uint256", "name": "premiumExpectedAmount", "type": "uint256" }, { "internalType": "uint256", "name": "premiumPaidAmount", "type": "uint256" }, { "internalType": "uint256", "name": "claimsCount", "type": "uint256" }, { "internalType": "uint256", "name": "openClaimsCount", "type": "uint256" }, { "internalType": "uint256", "name": "payoutMaxAmount", "type": "uint256" }, { "internalType": "uint256", "name": "payoutAmount", "type": "uint256" }, { "internalType": "uint256", "name": "createdAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" } ], "internalType": "struct IPolicy.Policy", "name": "policy", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "idx", "type": "uint256" } ], "name": "getProductId", "outputs": [ { "internalType": "uint256", "name": "productId", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getProductOwnerRole", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getProductService", "outputs": [ { "internalType": "contract IProductService", "name": "service", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getRegistry", "outputs": [ { "internalType": "contract IRegistry", "name": "service", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "riskpoolId", "type": "uint256" } ], "name": "getRiskpool", "outputs": [ { "components": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "address", "name": "wallet", "type": "address" }, { "internalType": "address", "name": "erc20Token", "type": "address" }, { "internalType": "uint256", "name": "collateralizationLevel", "type": "uint256" }, { "internalType": "uint256", "name": "sumOfSumInsuredCap", "type": "uint256" }, { "internalType": "uint256", "name": "sumOfSumInsuredAtRisk", "type": "uint256" }, { "internalType": "uint256", "name": "capital", "type": "uint256" }, { "internalType": "uint256", "name": "lockedCapital", "type": "uint256" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "createdAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" } ], "internalType": "struct IPool.Pool", "name": "riskPool", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "idx", "type": "uint256" } ], "name": "getRiskpoolId", "outputs": [ { "internalType": "uint256", "name": "riskpoolId", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getRiskpoolKeeperRole", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getRiskpoolService", "outputs": [ { "internalType": "contract IRiskpoolService", "name": "service", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "riskpoolId", "type": "uint256" } ], "name": "getRiskpoolWallet", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "getStakedAssets", "outputs": [ { "internalType": "bytes", "name": "data", "type": "bytes" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "getStakingRequirements", "outputs": [ { "internalType": "bytes", "name": "data", "type": "bytes" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "riskpoolId", "type": "uint256" } ], "name": "getTotalValueLocked", "outputs": [ { "internalType": "uint256", "name": "totalValueLockedAmount", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getTreasuryAddress", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "principal", "type": "address" } ], "name": "hasRole", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "registry", "type": "address" } ], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "oracles", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "payouts", "outputs": [ { "internalType": "uint256", "name": "numberOfPayouts", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "processIds", "outputs": [ { "internalType": "uint256", "name": "numberOfProcessIds", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "products", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "riskpools", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "riskpoolId", "type": "uint256" } ], "name": "unburntBundles", "outputs": [ { "internalType": "uint256", "name": "numberOfUnburntBundles", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ], "allSourcePaths": { "0": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/access/AccessControl.sol", "1": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/access/AccessControlEnumerable.sol", "10": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/proxy/utils/Initializable.sol", "101": "contracts/tokens/BundleToken.sol", "11": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/security/Pausable.sol", "13": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC20/IERC20.sol", "17": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC721/ERC721.sol", "18": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC721/IERC721.sol", "19": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC721/IERC721Receiver.sol", "2": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/access/IAccessControl.sol", "20": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC721/extensions/IERC721Metadata.sol", "21": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/Address.sol", "22": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/Context.sol", "24": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/Strings.sol", "25": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/introspection/ERC165.sol", "26": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/introspection/IERC165.sol", "27": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/structs/EnumerableSet.sol", "3": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/access/IAccessControlEnumerable.sol", "30": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol", "32": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IProduct.sol", "33": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IRiskpool.sol", "37": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IAccess.sol", "38": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IBundle.sol", "39": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IComponentEvents.sol", "4": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/access/Ownable.sol", "41": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IPolicy.sol", "42": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IPool.sol", "44": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IRegistry.sol", "45": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/ITreasury.sol", "46": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IComponentOwnerService.sol", "47": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceOperatorService.sol", "48": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceService.sol", "49": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IOracleService.sol", "50": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IProductService.sol", "51": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IRiskpoolService.sol", "53": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/tokens/IBundleToken.sol", "73": "contracts/modules/AccessController.sol", "74": "contracts/modules/BundleController.sol", "75": "contracts/modules/ComponentController.sol", "77": "contracts/modules/PolicyController.sol", "78": "contracts/modules/PoolController.sol", "81": "contracts/modules/TreasuryModule.sol", "83": "contracts/services/InstanceOperatorService.sol", "84": "contracts/services/InstanceService.sol", "88": "contracts/shared/CoreController.sol", "90": "contracts/shared/TransferHelper.sol" }, "ast": { "absolutePath": "contracts/services/InstanceService.sol", "exportedSymbols": { "AccessControl": [ 18281 ], "AccessControlEnumerable": [ 21875 ], "AccessController": [ 4246 ], "Address": [ 26374 ], "BundleController": [ 5504 ], "BundleToken": [ 17246 ], "Component": [ 25407 ], "ComponentController": [ 6504 ], "Context": [ 24074 ], "CoreController": [ 14924 ], "ERC165": [ 26079 ], "ERC20": [ 21536 ], "ERC721": [ 24987 ], "EnumerableSet": [ 19390 ], "IAccess": [ 21938 ], "IAccessControl": [ 26055 ], "IAccessControlEnumerable": [ 27191 ], "IBundle": [ 20491 ], "IBundleToken": [ 24052 ], "IComponent": [ 22099 ], "IComponentEvents": [ 22419 ], "IComponentOwnerService": [ 23478 ], "IERC165": [ 27203 ], "IERC20": [ 18510 ], "IERC20Metadata": [ 27166 ], "IERC721": [ 23745 ], "IERC721Metadata": [ 27618 ], "IERC721Receiver": [ 27591 ], "IInstanceOperatorService": [ 23629 ], "IInstanceService": [ 22849 ], "IOracle": [ 22133 ], "IOracleService": [ 23755 ], "IPolicy": [ 20837 ], "IPool": [ 21652 ], "IProduct": [ 21995 ], "IProductService": [ 23900 ], "IQuery": [ 22500 ], "IRegistry": [ 21750 ], "IRiskpool": [ 22366 ], "IRiskpoolService": [ 24006 ], "ITreasury": [ 23443 ], "Initializable": [ 18432 ], "InstanceOperatorService": [ 12904 ], "InstanceService": [ 13890 ], "Ownable": [ 20950 ], "Pausable": [ 23183 ], "PolicyController": [ 8529 ], "PoolController": [ 9719 ], "Product": [ 20018 ], "Strings": [ 23075 ], "TestProduct": [ 16828 ], "TransferHelper": [ 15170 ], "TreasuryModule": [ 12127 ] }, "id": 13891, "license": "Apache-2.0", "nodeType": "SourceUnit", "nodes": [ { "id": 12906, "literals": [ "solidity", "0.8", ".2" ], "nodeType": "PragmaDirective", "src": "39:22:84" }, { "absolutePath": "contracts/modules/ComponentController.sol", "file": "../modules/ComponentController.sol", "id": 12907, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 13891, "sourceUnit": 6505, "src": "63:44:84", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "contracts/modules/BundleController.sol", "file": "../modules/BundleController.sol", "id": 12908, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 13891, "sourceUnit": 5505, "src": "108:41:84", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "contracts/modules/PolicyController.sol", "file": "../modules/PolicyController.sol", "id": 12909, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 13891, "sourceUnit": 8530, "src": "150:41:84", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "contracts/modules/PoolController.sol", "file": "../modules/PoolController.sol", "id": 12910, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 13891, "sourceUnit": 9720, "src": "192:39:84", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "contracts/modules/TreasuryModule.sol", "file": "../modules/TreasuryModule.sol", "id": 12911, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 13891, "sourceUnit": 12128, "src": "232:39:84", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "contracts/shared/CoreController.sol", "file": "../shared/CoreController.sol", "id": 12912, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 13891, "sourceUnit": 14925, "src": "272:38:84", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "contracts/services/InstanceOperatorService.sol", "file": "../services/InstanceOperatorService.sol", "id": 12913, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 13891, "sourceUnit": 12905, "src": "311:49:84", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol", "file": "@etherisc/gif-interface/contracts/components/IComponent.sol", "id": 12914, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 13891, "sourceUnit": 22100, "src": "362:69:84", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IOracle.sol", "file": "@etherisc/gif-interface/contracts/components/IOracle.sol", "id": 12915, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 13891, "sourceUnit": 22134, "src": "432:66:84", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IProduct.sol", "file": "@etherisc/gif-interface/contracts/components/IProduct.sol", "id": 12916, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 13891, "sourceUnit": 21996, "src": "499:67:84", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IRiskpool.sol", "file": "@etherisc/gif-interface/contracts/components/IRiskpool.sol", "id": 12917, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 13891, "sourceUnit": 22367, "src": "567:68:84", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IPolicy.sol", "file": "@etherisc/gif-interface/contracts/modules/IPolicy.sol", "id": 12918, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 13891, "sourceUnit": 20838, "src": "636:63:84", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IRegistry.sol", "file": "@etherisc/gif-interface/contracts/modules/IRegistry.sol", "id": 12919, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 13891, "sourceUnit": 21751, "src": "700:65:84", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IComponentOwnerService.sol", "file": "@etherisc/gif-interface/contracts/services/IComponentOwnerService.sol", "id": 12920, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 13891, "sourceUnit": 23479, "src": "766:79:84", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceService.sol", "file": "@etherisc/gif-interface/contracts/services/IInstanceService.sol", "id": 12921, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 13891, "sourceUnit": 22850, "src": "846:73:84", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceOperatorService.sol", "file": "@etherisc/gif-interface/contracts/services/IInstanceOperatorService.sol", "id": 12922, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 13891, "sourceUnit": 23630, "src": "920:81:84", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IOracleService.sol", "file": "@etherisc/gif-interface/contracts/services/IOracleService.sol", "id": 12923, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 13891, "sourceUnit": 23756, "src": "1002:71:84", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IProductService.sol", "file": "@etherisc/gif-interface/contracts/services/IProductService.sol", "id": 12924, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 13891, "sourceUnit": 23901, "src": "1074:72:84", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IRiskpoolService.sol", "file": "@etherisc/gif-interface/contracts/services/IRiskpoolService.sol", "id": 12925, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 13891, "sourceUnit": 24007, "src": "1147:73:84", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/tokens/IBundleToken.sol", "file": "@etherisc/gif-interface/contracts/tokens/IBundleToken.sol", "id": 12926, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 13891, "sourceUnit": 24053, "src": "1221:67:84", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC20/IERC20.sol", "file": "@openzeppelin/contracts/token/ERC20/IERC20.sol", "id": 12927, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 13891, "sourceUnit": 18511, "src": "1290:56:84", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC721/IERC721.sol", "file": "@openzeppelin/contracts/token/ERC721/IERC721.sol", "id": 12928, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 13891, "sourceUnit": 23746, "src": "1347:58:84", "symbolAliases": [], "unitAlias": "" }, { "abstract": false, "baseContracts": [ { "baseName": { "id": 12929, "name": "IInstanceService", "nodeType": "IdentifierPath", "referencedDeclaration": 22849, "src": "1440:16:84" }, "id": 12930, "nodeType": "InheritanceSpecifier", "src": "1440:16:84" }, { "baseName": { "id": 12931, "name": "CoreController", "nodeType": "IdentifierPath", "referencedDeclaration": 14924, "src": "1463:14:84" }, "id": 12932, "nodeType": "InheritanceSpecifier", "src": "1463:14:84" } ], "contractDependencies": [ 14924, 18432, 22849, 24074 ], "contractKind": "contract", "fullyImplemented": true, "id": 13890, "linearizedBaseContracts": [ 13890, 14924, 18432, 24074, 22849 ], "name": "InstanceService", "nameLocation": "1416:15:84", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "functionSelector": "5e6877be", "id": 12935, "mutability": "constant", "name": "BUNDLE_NAME", "nameLocation": "1508:11:84", "nodeType": "VariableDeclaration", "scope": 13890, "src": "1484:46:84", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 12933, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1484:7:84", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": { "hexValue": "42756e646c65", "id": 12934, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "1522:8:84", "typeDescriptions": { "typeIdentifier": "t_stringliteral_39e09fb6f6e21374d40982a480c1001d394e7d5a2958c9c3ecb8e974b3495426", "typeString": "literal_string \"Bundle\"" }, "value": "Bundle" }, "visibility": "public" }, { "constant": true, "functionSelector": "51b2fb90", "id": 12938, "mutability": "constant", "name": "COMPONENT_NAME", "nameLocation": "1560:14:84", "nodeType": "VariableDeclaration", "scope": 13890, "src": "1536:52:84", "stateVariable": true, "storage