@etherisc/gif-interface
Version:
This repository holds the necessary interfaces and base contracts to interact with an existing GIF instance. The repository is not intended to be used on its own.
1,868 lines (1,867 loc) • 174 kB
JSON
{
"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": {
"1": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC20/IERC20.sol",
"2": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC721/IERC721.sol",
"21": "contracts/modules/IRegistry.sol",
"23": "contracts/services/IComponentOwnerService.sol",
"24": "contracts/services/IInstanceOperatorService.sol",
"25": "contracts/services/IInstanceService.sol",
"26": "contracts/services/IOracleService.sol",
"27": "contracts/services/IProductService.sol",
"28": "contracts/services/IRiskpoolService.sol",
"30": "contracts/tokens/IBundleToken.sol",
"4": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/introspection/IERC165.sol",
"7": "contracts/components/IComponent.sol"
},
"ast": {
"absolutePath": "contracts/services/IInstanceService.sol",
"exportedSymbols": {
"IBundle": [
2844
],
"IBundleToken": [
4649
],
"IComponent": [
812
],
"IComponentOwnerService": [
3833
],
"IERC165": [
4990
],
"IERC20": [
4956
],
"IERC721": [
4878
],
"IInstanceOperatorService": [
3984
],
"IInstanceService": [
4333
],
"IOracleService": [
4343
],
"IPolicy": [
3257
],
"IPool": [
3373
],
"IProductService": [
4488
],
"IRegistry": [
3538
],
"IRiskpoolService": [
4594
],
"ITreasury": [
3798
]
},
"id": 4334,
"license": "Apache-2.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 3986,
"literals": [
"solidity",
"0.8",
".2"
],
"nodeType": "PragmaDirective",
"src": "39:22:25"
},
{
"absolutePath": "contracts/components/IComponent.sol",
"file": "../components/IComponent.sol",
"id": 3987,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 4334,
"sourceUnit": 813,
"src": "63:38:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "contracts/modules/IBundle.sol",
"file": "../modules/IBundle.sol",
"id": 3988,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 4334,
"sourceUnit": 2845,
"src": "102:32:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "contracts/modules/IPolicy.sol",
"file": "../modules/IPolicy.sol",
"id": 3989,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 4334,
"sourceUnit": 3258,
"src": "135:32:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "contracts/modules/IPool.sol",
"file": "../modules/IPool.sol",
"id": 3990,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 4334,
"sourceUnit": 3374,
"src": "168:30:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "contracts/tokens/IBundleToken.sol",
"file": "../tokens/IBundleToken.sol",
"id": 3991,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 4334,
"sourceUnit": 4650,
"src": "199:36:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "contracts/services/IComponentOwnerService.sol",
"file": "./IComponentOwnerService.sol",
"id": 3992,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 4334,
"sourceUnit": 3834,
"src": "236:38:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "contracts/services/IInstanceOperatorService.sol",
"file": "./IInstanceOperatorService.sol",
"id": 3993,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 4334,
"sourceUnit": 3985,
"src": "275:40:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "contracts/services/IOracleService.sol",
"file": "./IOracleService.sol",
"id": 3994,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 4334,
"sourceUnit": 4344,
"src": "316:30:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "contracts/services/IProductService.sol",
"file": "./IProductService.sol",
"id": 3995,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 4334,
"sourceUnit": 4489,
"src": "347:31:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "contracts/services/IRiskpoolService.sol",
"file": "./IRiskpoolService.sol",
"id": 3996,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 4334,
"sourceUnit": 4595,
"src": "379:32:25",
"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": 3997,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 4334,
"sourceUnit": 4957,
"src": "413:56:25",
"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": 3998,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 4334,
"sourceUnit": 4879,
"src": "470:58:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 4333,
"linearizedBaseContracts": [
4333
],
"name": "IInstanceService",
"nameLocation": "540:16:25",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "3408e470",
"id": 4003,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getChainId",
"nameLocation": "589:10:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3999,
"nodeType": "ParameterList",
"parameters": [],
"src": "599:2:25"
},
"returnParameters": {
"id": 4002,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4001,
"mutability": "mutable",
"name": "chainId",
"nameLocation": "632:7:25",
"nodeType": "VariableDeclaration",
"scope": 4003,
"src": "624:15:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4000,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "624:7:25",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "623:17:25"
},
"scope": 4333,
"src": "580:61:25",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "d722b0bc",
"id": 4008,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getChainName",
"nameLocation": "655:12:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4004,
"nodeType": "ParameterList",
"parameters": [],
"src": "667:2:25"
},
"returnParameters": {
"id": 4007,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4006,
"mutability": "mutable",
"name": "chainName",
"nameLocation": "706:9:25",
"nodeType": "VariableDeclaration",
"scope": 4008,
"src": "692:23:25",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 4005,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "692:6:25",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "691:25:25"
},
"scope": 4333,
"src": "646:71:25",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "1551100f",
"id": 4013,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getInstanceId",
"nameLocation": "731:13:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4009,
"nodeType": "ParameterList",
"parameters": [],
"src": "744:2:25"
},
"returnParameters": {
"id": 4012,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4011,
"mutability": "mutable",
"name": "instanceId",
"nameLocation": "777:10:25",
"nodeType": "VariableDeclaration",
"scope": 4013,
"src": "769:18:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 4010,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "769:7:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "768:20:25"
},
"scope": 4333,
"src": "722:67:25",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "39c6fa90",
"id": 4018,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getInstanceOperator",
"nameLocation": "803:19:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4014,
"nodeType": "ParameterList",
"parameters": [],
"src": "822:2:25"
},
"returnParameters": {
"id": 4017,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4016,
"mutability": "mutable",
"name": "instanceOperator",
"nameLocation": "855:16:25",
"nodeType": "VariableDeclaration",
"scope": 4018,
"src": "847:24:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 4015,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "847:7:25",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "846:26:25"
},
"scope": 4333,
"src": "794:79:25",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "6fa29853",
"id": 4024,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getComponentOwnerService",
"nameLocation": "904:24:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4019,
"nodeType": "ParameterList",
"parameters": [],
"src": "928:2:25"
},
"returnParameters": {
"id": 4023,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4022,
"mutability": "mutable",
"name": "service",
"nameLocation": "976:7:25",
"nodeType": "VariableDeclaration",
"scope": 4024,
"src": "953:30:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IComponentOwnerService_$3833",
"typeString": "contract IComponentOwnerService"
},
"typeName": {
"id": 4021,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 4020,
"name": "IComponentOwnerService",
"nodeType": "IdentifierPath",
"referencedDeclaration": 3833,
"src": "953:22:25"
},
"referencedDeclaration": 3833,
"src": "953:22:25",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IComponentOwnerService_$3833",
"typeString": "contract IComponentOwnerService"
}
},
"visibility": "internal"
}
],
"src": "952:32:25"
},
"scope": 4333,
"src": "895:90:25",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "091924dc",
"id": 4030,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getInstanceOperatorService",
"nameLocation": "999:26:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4025,
"nodeType": "ParameterList",
"parameters": [],
"src": "1025:2:25"
},
"returnParameters": {
"id": 4029,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4028,
"mutability": "mutable",
"name": "service",
"nameLocation": "1075:7:25",
"nodeType": "VariableDeclaration",
"scope": 4030,
"src": "1050:32:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IInstanceOperatorService_$3984",
"typeString": "contract IInstanceOperatorService"
},
"typeName": {
"id": 4027,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 4026,
"name": "IInstanceOperatorService",
"nodeType": "IdentifierPath",
"referencedDeclaration": 3984,
"src": "1050:24:25"
},
"referencedDeclaration": 3984,
"src": "1050:24:25",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IInstanceOperatorService_$3984",
"typeString": "contract IInstanceOperatorService"
}
},
"visibility": "internal"
}
],
"src": "1049:34:25"
},
"scope": 4333,
"src": "990:94:25",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "a7ecda36",
"id": 4036,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getOracleService",
"nameLocation": "1098:16:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4031,
"nodeType": "ParameterList",
"parameters": [],
"src": "1114:2:25"
},
"returnParameters": {
"id": 4035,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4034,
"mutability": "mutable",
"name": "service",
"nameLocation": "1154:7:25",
"nodeType": "VariableDeclaration",
"scope": 4036,
"src": "1139:22:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IOracleService_$4343",
"typeString": "contract IOracleService"
},
"typeName": {
"id": 4033,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 4032,
"name": "IOracleService",
"nodeType": "IdentifierPath",
"referencedDeclaration": 4343,
"src": "1139:14:25"
},
"referencedDeclaration": 4343,
"src": "1139:14:25",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IOracleService_$4343",
"typeString": "contract IOracleService"
}
},
"visibility": "internal"
}
],
"src": "1138:24:25"
},
"scope": 4333,
"src": "1089:74:25",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "4288121d",
"id": 4042,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getProductService",
"nameLocation": "1177:17:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4037,
"nodeType": "ParameterList",
"parameters": [],
"src": "1194:2:25"
},
"returnParameters": {
"id": 4041,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4040,
"mutability": "mutable",
"name": "service",
"nameLocation": "1235:7:25",
"nodeType": "VariableDeclaration",
"scope": 4042,
"src": "1219:23:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IProductService_$4488",
"typeString": "contract IProductService"
},
"typeName": {
"id": 4039,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 4038,
"name": "IProductService",
"nodeType": "IdentifierPath",
"referencedDeclaration": 4488,
"src": "1219:15:25"
},
"referencedDeclaration": 4488,
"src": "1219:15:25",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IProductService_$4488",
"typeString": "contract IProductService"
}
},
"visibility": "internal"
}
],
"src": "1218:25:25"
},
"scope": 4333,
"src": "1168:76:25",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "442ed817",
"id": 4048,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getRiskpoolService",
"nameLocation": "1258:18:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4043,
"nodeType": "ParameterList",
"parameters": [],
"src": "1276:2:25"
},
"returnParameters": {
"id": 4047,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4046,
"mutability": "mutable",
"name": "service",
"nameLocation": "1318:7:25",
"nodeType": "VariableDeclaration",
"scope": 4048,
"src": "1301:24:25",