@etherisc/terraguard-poc-contracts
Version:
Etherisc's smart contracts for the terraguard poc
1,829 lines (1,828 loc) • 176 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": {
"2": "/home/runner/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/token/ERC20/IERC20.sol",
"21": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IRegistry.sol",
"23": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IComponentOwnerService.sol",
"24": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceOperatorService.sol",
"25": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceService.sol",
"26": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IOracleService.sol",
"27": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IProductService.sol",
"28": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IRiskpoolService.sol",
"29": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/tokens/IBundleToken.sol",
"4": "/home/runner/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/token/ERC721/IERC721.sol",
"6": "/home/runner/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/utils/introspection/IERC165.sol",
"9": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol"
},
"ast": {
"absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceService.sol",
"exportedSymbols": {
"IBundle": [
3612
],
"IBundleToken": [
4029
],
"IComponent": [
5218
],
"IComponentOwnerService": [
7044
],
"IERC165": [
7662
],
"IERC20": [
4694
],
"IERC721": [
6660
],
"IInstanceOperatorService": [
7311
],
"IInstanceService": [
5668
],
"IOracleService": [
5262
],
"IPolicy": [
3958
],
"IPool": [
7160
],
"IProductService": [
5813
],
"IRegistry": [
7009
],
"IRiskpoolService": [
7417
],
"ITreasury": [
2409
]
},
"id": 5669,
"license": "Apache-2.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 5321,
"literals": [
"solidity",
"0.8",
".2"
],
"nodeType": "PragmaDirective",
"src": "39:22:25"
},
{
"absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol",
"file": "../components/IComponent.sol",
"id": 5322,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 5669,
"sourceUnit": 5219,
"src": "63:38:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IBundle.sol",
"file": "../modules/IBundle.sol",
"id": 5323,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 5669,
"sourceUnit": 3613,
"src": "102:32:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IPolicy.sol",
"file": "../modules/IPolicy.sol",
"id": 5324,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 5669,
"sourceUnit": 3959,
"src": "135:32:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IPool.sol",
"file": "../modules/IPool.sol",
"id": 5325,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 5669,
"sourceUnit": 7161,
"src": "168:30:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/tokens/IBundleToken.sol",
"file": "../tokens/IBundleToken.sol",
"id": 5326,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 5669,
"sourceUnit": 4030,
"src": "199:36:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IComponentOwnerService.sol",
"file": "./IComponentOwnerService.sol",
"id": 5327,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 5669,
"sourceUnit": 7045,
"src": "236:38:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceOperatorService.sol",
"file": "./IInstanceOperatorService.sol",
"id": 5328,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 5669,
"sourceUnit": 7312,
"src": "275:40:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IOracleService.sol",
"file": "./IOracleService.sol",
"id": 5329,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 5669,
"sourceUnit": 5263,
"src": "316:30:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IProductService.sol",
"file": "./IProductService.sol",
"id": 5330,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 5669,
"sourceUnit": 5814,
"src": "347:31:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IRiskpoolService.sol",
"file": "./IRiskpoolService.sol",
"id": 5331,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 5669,
"sourceUnit": 7418,
"src": "379:32:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/runner/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/token/ERC20/IERC20.sol",
"file": "@openzeppelin/contracts/token/ERC20/IERC20.sol",
"id": 5332,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 5669,
"sourceUnit": 4695,
"src": "413:56:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/runner/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/token/ERC721/IERC721.sol",
"file": "@openzeppelin/contracts/token/ERC721/IERC721.sol",
"id": 5333,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 5669,
"sourceUnit": 6661,
"src": "470:58:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 5668,
"linearizedBaseContracts": [
5668
],
"name": "IInstanceService",
"nameLocation": "540:16:25",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "3408e470",
"id": 5338,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getChainId",
"nameLocation": "589:10:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5334,
"nodeType": "ParameterList",
"parameters": [],
"src": "599:2:25"
},
"returnParameters": {
"id": 5337,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5336,
"mutability": "mutable",
"name": "chainId",
"nameLocation": "632:7:25",
"nodeType": "VariableDeclaration",
"scope": 5338,
"src": "624:15:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5335,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "624:7:25",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "623:17:25"
},
"scope": 5668,
"src": "580:61:25",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "d722b0bc",
"id": 5343,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getChainName",
"nameLocation": "655:12:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5339,
"nodeType": "ParameterList",
"parameters": [],
"src": "667:2:25"
},
"returnParameters": {
"id": 5342,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5341,
"mutability": "mutable",
"name": "chainName",
"nameLocation": "706:9:25",
"nodeType": "VariableDeclaration",
"scope": 5343,
"src": "692:23:25",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 5340,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "692:6:25",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "691:25:25"
},
"scope": 5668,
"src": "646:71:25",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "1551100f",
"id": 5348,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getInstanceId",
"nameLocation": "731:13:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5344,
"nodeType": "ParameterList",
"parameters": [],
"src": "744:2:25"
},
"returnParameters": {
"id": 5347,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5346,
"mutability": "mutable",
"name": "instanceId",
"nameLocation": "777:10:25",
"nodeType": "VariableDeclaration",
"scope": 5348,
"src": "769:18:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 5345,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "769:7:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "768:20:25"
},
"scope": 5668,
"src": "722:67:25",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "39c6fa90",
"id": 5353,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getInstanceOperator",
"nameLocation": "803:19:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5349,
"nodeType": "ParameterList",
"parameters": [],
"src": "822:2:25"
},
"returnParameters": {
"id": 5352,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5351,
"mutability": "mutable",
"name": "instanceOperator",
"nameLocation": "855:16:25",
"nodeType": "VariableDeclaration",
"scope": 5353,
"src": "847:24:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5350,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "847:7:25",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "846:26:25"
},
"scope": 5668,
"src": "794:79:25",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "6fa29853",
"id": 5359,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getComponentOwnerService",
"nameLocation": "904:24:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5354,
"nodeType": "ParameterList",
"parameters": [],
"src": "928:2:25"
},
"returnParameters": {
"id": 5358,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5357,
"mutability": "mutable",
"name": "service",
"nameLocation": "976:7:25",
"nodeType": "VariableDeclaration",
"scope": 5359,
"src": "953:30:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IComponentOwnerService_$7044",
"typeString": "contract IComponentOwnerService"
},
"typeName": {
"id": 5356,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 5355,
"name": "IComponentOwnerService",
"nodeType": "IdentifierPath",
"referencedDeclaration": 7044,
"src": "953:22:25"
},
"referencedDeclaration": 7044,
"src": "953:22:25",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IComponentOwnerService_$7044",
"typeString": "contract IComponentOwnerService"
}
},
"visibility": "internal"
}
],
"src": "952:32:25"
},
"scope": 5668,
"src": "895:90:25",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "091924dc",
"id": 5365,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getInstanceOperatorService",
"nameLocation": "999:26:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5360,
"nodeType": "ParameterList",
"parameters": [],
"src": "1025:2:25"
},
"returnParameters": {
"id": 5364,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5363,
"mutability": "mutable",
"name": "service",
"nameLocation": "1075:7:25",
"nodeType": "VariableDeclaration",
"scope": 5365,
"src": "1050:32:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IInstanceOperatorService_$7311",
"typeString": "contract IInstanceOperatorService"
},
"typeName": {
"id": 5362,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 5361,
"name": "IInstanceOperatorService",
"nodeType": "IdentifierPath",
"referencedDeclaration": 7311,
"src": "1050:24:25"
},
"referencedDeclaration": 7311,
"src": "1050:24:25",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IInstanceOperatorService_$7311",
"typeString": "contract IInstanceOperatorService"
}
},
"visibility": "internal"
}
],
"src": "1049:34:25"
},
"scope": 5668,
"src": "990:94:25",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "a7ecda36",
"id": 5371,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getOracleService",
"nameLocation": "1098:16:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5366,
"nodeType": "ParameterList",
"parameters": [],
"src": "1114:2:25"
},
"returnParameters": {
"id": 5370,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5369,
"mutability": "mutable",
"name": "service",
"nameLocation": "1154:7:25",
"nodeType": "VariableDeclaration",
"scope": 5371,
"src": "1139:22:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IOracleService_$5262",
"typeString": "contract IOracleService"
},
"typeName": {
"id": 5368,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 5367,
"name": "IOracleService",
"nodeType": "IdentifierPath",
"referencedDeclaration": 5262,
"src": "1139:14:25"
},
"referencedDeclaration": 5262,
"src": "1139:14:25",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IOracleService_$5262",
"typeString": "contract IOracleService"
}
},
"visibility": "internal"
}
],
"src": "1138:24:25"
},
"scope": 5668,
"src": "1089:74:25",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "4288121d",
"id": 5377,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getProductService",
"nameLocation": "1177:17:25",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5372,
"nodeType": "ParameterList",
"parameters": [],
"src": "1194:2:25"
},
"returnParameters": {
"id": 5376,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5375,
"mutability": "mutable",
"name": "service",
"nameLocation": "1235:7:25",
"nodeType": "VariableDeclaration",
"scope": 5377,
"src": "1219:23:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IProductService_$5813",
"typeString": "contract IProductService"
},
"typeName": {
"id": 5374,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 5373,
"name": "IProductService",
"nodeType": "IdentifierPath",
"referencedDeclaration": 5813,
"src": "1219:15:25"
},
"referencedDeclaration": 5813,
"src": "1219:15:25",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IProductService_$5813",
"typeString": "contract IProductService"
}
},