UNPKG

@etherisc/depeg-contracts

Version:

Etherisc's smart contracts for a depeg insurance for stable coins.

1,825 lines 176 kB
{ "abi": [ { "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": "numberOfBundles", "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": "componentId", "type": "uint256" } ], "name": "getComponent", "outputs": [ { "internalType": "contract IComponent", "name": "component", "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": "token", "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": "role", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getFeeFractionFullUnit", "outputs": [ { "internalType": "uint256", "name": "fullUnit", "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": "instanceOperator", "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": "walletAddress", "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": "processId", "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": [], "name": "getOracleProviderRole", "outputs": [ { "internalType": "bytes32", "name": "role", "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": [], "name": "getProductOwnerRole", "outputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getProductService", "outputs": [ { "internalType": "contract IProductService", "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": [], "name": "getRiskpoolKeeperRole", "outputs": [ { "internalType": "bytes32", "name": "role", "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": "walletAddress", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "componentId", "type": "uint256" } ], "name": "getStakedAssets", "outputs": [ { "internalType": "bytes", "name": "data", "type": "bytes" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "componentId", "type": "uint256" } ], "name": "getStakingRequirements", "outputs": [ { "internalType": "bytes", "name": "data", "type": "bytes" } ], "stateMutability": "view", "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": "treasuryAddress", "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": "roleIsAssigned", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oracles", "outputs": [ { "internalType": "uint256", "name": "numberOfOracles", "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": "numberOfProducts", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "riskpools", "outputs": [ { "internalType": "uint256", "name": "numberOfRiskpools", "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": { "15": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/introspection/IERC165.sol", "27": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol", "38": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IRegistry.sol", "4": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC20/IERC20.sol", "40": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IComponentOwnerService.sol", "41": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceOperatorService.sol", "42": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceService.sol", "43": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IOracleService.sol", "44": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IProductService.sol", "45": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IRiskpoolService.sol", "46": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/tokens/IBundleToken.sol", "7": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC721/IERC721.sol" }, "ast": { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceService.sol", "exportedSymbols": { "IBundle": [ 13382 ], "IBundleToken": [ 13428 ], "IComponent": [ 11675 ], "IComponentOwnerService": [ 23015 ], "IERC165": [ 22864 ], "IERC20": [ 15820 ], "IERC721": [ 13932 ], "IInstanceOperatorService": [ 23282 ], "IInstanceService": [ 14934 ], "IOracleService": [ 23292 ], "IPolicy": [ 12649 ], "IPool": [ 23131 ], "IProductService": [ 22121 ], "IRegistry": [ 21976 ], "IRiskpoolService": [ 15040 ], "ITreasury": [ 12909 ] }, "id": 14935, "license": "Apache-2.0", "nodeType": "SourceUnit", "nodes": [ { "id": 14587, "literals": [ "solidity", "0.8", ".2" ], "nodeType": "PragmaDirective", "src": "39:22:42" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol", "file": "../components/IComponent.sol", "id": 14588, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 14935, "sourceUnit": 11676, "src": "63:38:42", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IBundle.sol", "file": "../modules/IBundle.sol", "id": 14589, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 14935, "sourceUnit": 13383, "src": "102:32:42", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IPolicy.sol", "file": "../modules/IPolicy.sol", "id": 14590, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 14935, "sourceUnit": 12650, "src": "135:32:42", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IPool.sol", "file": "../modules/IPool.sol", "id": 14591, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 14935, "sourceUnit": 23132, "src": "168:30:42", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/tokens/IBundleToken.sol", "file": "../tokens/IBundleToken.sol", "id": 14592, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 14935, "sourceUnit": 13429, "src": "199:36:42", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IComponentOwnerService.sol", "file": "./IComponentOwnerService.sol", "id": 14593, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 14935, "sourceUnit": 23016, "src": "236:38:42", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceOperatorService.sol", "file": "./IInstanceOperatorService.sol", "id": 14594, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 14935, "sourceUnit": 23283, "src": "275:40:42", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IOracleService.sol", "file": "./IOracleService.sol", "id": 14595, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 14935, "sourceUnit": 23293, "src": "316:30:42", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IProductService.sol", "file": "./IProductService.sol", "id": 14596, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 14935, "sourceUnit": 22122, "src": "347:31:42", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IRiskpoolService.sol", "file": "./IRiskpoolService.sol", "id": 14597, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 14935, "sourceUnit": 15041, "src": "379:32:42", "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": 14598, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 14935, "sourceUnit": 15821, "src": "413:56:42", "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": 14599, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 14935, "sourceUnit": 13933, "src": "470:58:42", "symbolAliases": [], "unitAlias": "" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "fullyImplemented": false, "id": 14934, "linearizedBaseContracts": [ 14934 ], "name": "IInstanceService", "nameLocation": "540:16:42", "nodeType": "ContractDefinition", "nodes": [ { "functionSelector": "3408e470", "id": 14604, "implemented": false, "kind": "function", "modifiers": [], "name": "getChainId", "nameLocation": "589:10:42", "nodeType": "FunctionDefinition", "parameters": { "id": 14600, "nodeType": "ParameterList", "parameters": [], "src": "599:2:42" }, "returnParameters": { "id": 14603, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14602, "mutability": "mutable", "name": "chainId", "nameLocation": "632:7:42", "nodeType": "VariableDeclaration", "scope": 14604, "src": "624:15:42", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 14601, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "624:7:42", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "623:17:42" }, "scope": 14934, "src": "580:61:42", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "d722b0bc", "id": 14609, "implemented": false, "kind": "function", "modifiers": [], "name": "getChainName", "nameLocation": "655:12:42", "nodeType": "FunctionDefinition", "parameters": { "id": 14605, "nodeType": "ParameterList", "parameters": [], "src": "667:2:42" }, "returnParameters": { "id": 14608, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14607, "mutability": "mutable", "name": "chainName", "nameLocation": "706:9:42", "nodeType": "VariableDeclaration", "scope": 14609, "src": "692:23:42", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 14606, "name": "string", "nodeType": "ElementaryTypeName", "src": "692:6:42", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "691:25:42" }, "scope": 14934, "src": "646:71:42", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "1551100f", "id": 14614, "implemented": false, "kind": "function", "modifiers": [], "name": "getInstanceId", "nameLocation": "731:13:42", "nodeType": "FunctionDefinition", "parameters": { "id": 14610, "nodeType": "ParameterList", "parameters": [], "src": "744:2:42" }, "returnParameters": { "id": 14613, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14612, "mutability": "mutable", "name": "instanceId", "nameLocation": "777:10:42", "nodeType": "VariableDeclaration", "scope": 14614, "src": "769:18:42", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 14611, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "769:7:42", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "768:20:42" }, "scope": 14934, "src": "722:67:42", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "39c6fa90", "id": 14619, "implemented": false, "kind": "function", "modifiers": [], "name": "getInstanceOperator", "nameLocation": "803:19:42", "nodeType": "FunctionDefinition", "parameters": { "id": 14615, "nodeType": "ParameterList", "parameters": [], "src": "822:2:42" }, "returnParameters": { "id": 14618, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14617, "mutability": "mutable", "name": "instanceOperator", "nameLocation": "855:16:42", "nodeType": "VariableDeclaration", "scope": 14619, "src": "847:24:42", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 14616, "name": "address", "nodeType": "ElementaryTypeName", "src": "847:7:42", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "846:26:42" }, "scope": 14934, "src": "794:79:42", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "6fa29853", "id": 14625, "implemented": false, "kind": "function", "modifiers": [], "name": "getComponentOwnerService", "nameLocation": "904:24:42", "nodeType": "FunctionDefinition", "parameters": { "id": 14620, "nodeType": "ParameterList", "parameters": [], "src": "928:2:42" }, "returnParameters": { "id": 14624, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14623, "mutability": "mutable", "name": "service", "nameLocation": "976:7:42", "nodeType": "VariableDeclaration", "scope": 14625, "src": "953:30:42", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_IComponentOwnerService_$23015", "typeString": "contract IComponentOwnerService" }, "typeName": { "id": 14622, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 14621, "name": "IComponentOwnerService", "nodeType": "IdentifierPath", "referencedDeclaration": 23015, "src": "953:22:42" }, "referencedDeclaration": 23015, "src": "953:22:42", "typeDescriptions": { "typeIdentifier": "t_contract$_IComponentOwnerService_$23015", "typeString": "contract IComponentOwnerService" } }, "visibility": "internal" } ], "src": "952:32:42" }, "scope": 14934, "src": "895:90:42", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "091924dc", "id": 14631, "implemented": false, "kind": "function", "modifiers": [], "name": "getInstanceOperatorService", "nameLocation": "999:26:42", "nodeType": "FunctionDefinition", "parameters": { "id": 14626, "nodeType": "ParameterList", "parameters": [], "src": "1025:2:42" }, "returnParameters": { "id": 14630, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14629, "mutability": "mutable", "name": "service", "nameLocation": "1075:7:42", "nodeType": "VariableDeclaration", "scope": 14631, "src": "1050:32:42", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_IInstanceOperatorService_$23282", "typeString": "contract IInstanceOperatorService" }, "typeName": { "id": 14628, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 14627, "name": "IInstanceOperatorService", "nodeType": "IdentifierPath", "referencedDeclaration": 23282, "src": "1050:24:42" }, "referencedDeclaration": 23282, "src": "1050:24:42", "typeDescriptions": { "typeIdentifier": "t_contract$_IInstanceOperatorService_$23282", "typeString": "contract IInstanceOperatorService" } }, "visibility": "internal" } ], "src": "1049:34:42" }, "scope": 14934, "src": "990:94:42", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "a7ecda36", "id": 14637, "implemented": false, "kind": "function", "modifiers": [], "name": "getOracleService", "nameLocation": "1098:16:42", "nodeType": "FunctionDefinition", "parameters": { "id": 14632, "nodeType": "ParameterList", "parameters": [], "src": "1114:2:42" }, "returnParameters": { "id": 14636, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14635, "mutability": "mutable", "name": "service", "nameLocation": "1154:7:42", "nodeType": "VariableDeclaration", "scope": 14637, "src": "1139:22:42", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_IOracleService_$23292", "typeString": "contract IOracleService" }, "typeName": { "id": 14634, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 14633, "name": "IOracleService", "nodeType": "IdentifierPath", "referencedDeclaration": 23292, "src": "1139:14:42" }, "referencedDeclaration": 23292, "src": "1139:14:42", "typeDescriptions": { "typeIdentifier": "t_contract$_IOracleService_$23292", "typeString": "contract IOracleService" } }, "visibility": "internal" } ], "src": "1138:24:42" }, "scope": 14934, "src": "1089:74:42", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "4288121d", "id": 14643, "implemented": false, "kind": "function", "modifiers": [], "name": "getProductService", "nameLocation": "1177:17:42", "nodeType": "FunctionDefinition", "parameters": { "id": 14638, "nodeType": "ParameterList", "parameters": [], "src": "1194:2:42" }, "returnParameters": { "id": 14642, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14641, "mutability": "mutable", "name": "service", "nameLocation": "1235:7:42", "nodeType": "VariableDeclaration", "scope": 14643, "src": "1219:23:42", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_IProductService_$22121", "typeString": "contract IProductService" }, "typeName": { "id": 14640, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 14639, "name": "IProductService", "nodeType": "IdentifierPath", "referencedDeclaration": 22121, "src": "1219:15:42" }, "referencedDeclaration": 22121, "src": "1219:15:42", "typeDescriptions": { "typeIdentifier": "t_contract$_IProductService_