UNPKG

@etherisc/terraguard-poc-contracts

Version:

Etherisc's smart contracts for the terraguard poc

1,681 lines (1,680 loc) 138 kB
{ "abi": [ { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "riskpoolId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "fixedFee", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "fractionalFee", "type": "uint256" } ], "name": "LogTreasuryCapitalFeesSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "riskpoolId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "bundleId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "LogTreasuryCapitalProcessed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "from", "type": "address" }, { "indexed": false, "internalType": "address", "name": "riskpoolWalletAddress", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "LogTreasuryCapitalTransferred", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "from", "type": "address" }, { "indexed": false, "internalType": "address", "name": "instanceWalletAddress", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "LogTreasuryFeesTransferred", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "walletAddress", "type": "address" } ], "name": "LogTreasuryInstanceWalletSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "riskpoolId", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "LogTreasuryPayoutProcessed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "riskpoolWalletAddress", "type": "address" }, { "indexed": false, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "LogTreasuryPayoutTransferred", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "productId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "fixedFee", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "fractionalFee", "type": "uint256" } ], "name": "LogTreasuryPremiumFeesSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "LogTreasuryPremiumProcessed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "from", "type": "address" }, { "indexed": false, "internalType": "address", "name": "riskpoolWalletAddress", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "LogTreasuryPremiumTransferred", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "productId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "riskpoolId", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "erc20Address", "type": "address" } ], "name": "LogTreasuryProductTokenSet", "type": "event" }, { "anonymous": false, "inputs": [], "name": "LogTreasuryResumed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "riskpoolId", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "walletAddress", "type": "address" } ], "name": "LogTreasuryRiskpoolWalletSet", "type": "event" }, { "anonymous": false, "inputs": [], "name": "LogTreasurySuspended", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "riskpoolId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "bundleId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "LogTreasuryWithdrawalProcessed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "riskpoolWalletAddress", "type": "address" }, { "indexed": false, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "LogTreasuryWithdrawalTransferred", "type": "event" }, { "inputs": [ { "internalType": "uint256", "name": "componentId", "type": "uint256" }, { "internalType": "uint256", "name": "fixedFee", "type": "uint256" }, { "internalType": "uint256", "name": "fractionalFee", "type": "uint256" }, { "internalType": "bytes", "name": "feeCalculationData", "type": "bytes" } ], "name": "createFeeSpecification", "outputs": [ { "components": [ { "internalType": "uint256", "name": "componentId", "type": "uint256" }, { "internalType": "uint256", "name": "fixedFee", "type": "uint256" }, { "internalType": "uint256", "name": "fractionalFee", "type": "uint256" }, { "internalType": "bytes", "name": "feeCalculationData", "type": "bytes" }, { "internalType": "uint256", "name": "createdAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" } ], "internalType": "struct ITreasury.FeeSpecification", "name": "feeSpec", "type": "tuple" } ], "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": "getFeeSpecification", "outputs": [ { "components": [ { "internalType": "uint256", "name": "componentId", "type": "uint256" }, { "internalType": "uint256", "name": "fixedFee", "type": "uint256" }, { "internalType": "uint256", "name": "fractionalFee", "type": "uint256" }, { "internalType": "bytes", "name": "feeCalculationData", "type": "bytes" }, { "internalType": "uint256", "name": "createdAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" } ], "internalType": "struct ITreasury.FeeSpecification", "name": "feeSpecification", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getFractionFullUnit", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getInstanceWallet", "outputs": [ { "internalType": "address", "name": "instanceWalletAddress", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "riskpoolId", "type": "uint256" } ], "name": "getRiskpoolWallet", "outputs": [ { "internalType": "address", "name": "riskpoolWalletAddress", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "bundleId", "type": "uint256" }, { "internalType": "uint256", "name": "capitalAmount", "type": "uint256" } ], "name": "processCapital", "outputs": [ { "internalType": "uint256", "name": "feeAmount", "type": "uint256" }, { "internalType": "uint256", "name": "netCapitalAmount", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "payoutId", "type": "uint256" } ], "name": "processPayout", "outputs": [ { "internalType": "uint256", "name": "feeAmount", "type": "uint256" }, { "internalType": "uint256", "name": "netPayoutAmount", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "processPremium", "outputs": [ { "internalType": "bool", "name": "success", "type": "bool" }, { "internalType": "uint256", "name": "feeAmount", "type": "uint256" }, { "internalType": "uint256", "name": "netPremiumAmount", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "processPremium", "outputs": [ { "internalType": "bool", "name": "success", "type": "bool" }, { "internalType": "uint256", "name": "feeAmount", "type": "uint256" }, { "internalType": "uint256", "name": "netPremiumAmount", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "bundleId", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "processWithdrawal", "outputs": [ { "internalType": "uint256", "name": "feeAmount", "type": "uint256" }, { "internalType": "uint256", "name": "netAmount", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "uint256", "name": "componentId", "type": "uint256" }, { "internalType": "uint256", "name": "fixedFee", "type": "uint256" }, { "internalType": "uint256", "name": "fractionalFee", "type": "uint256" }, { "internalType": "bytes", "name": "feeCalculationData", "type": "bytes" }, { "internalType": "uint256", "name": "createdAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" } ], "internalType": "struct ITreasury.FeeSpecification", "name": "feeSpec", "type": "tuple" } ], "name": "setCapitalFees", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "instanceWalletAddress", "type": "address" } ], "name": "setInstanceWallet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "uint256", "name": "componentId", "type": "uint256" }, { "internalType": "uint256", "name": "fixedFee", "type": "uint256" }, { "internalType": "uint256", "name": "fractionalFee", "type": "uint256" }, { "internalType": "bytes", "name": "feeCalculationData", "type": "bytes" }, { "internalType": "uint256", "name": "createdAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" } ], "internalType": "struct ITreasury.FeeSpecification", "name": "feeSpec", "type": "tuple" } ], "name": "setPremiumFees", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "productId", "type": "uint256" }, { "internalType": "address", "name": "erc20Address", "type": "address" } ], "name": "setProductToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "riskpoolId", "type": "uint256" }, { "internalType": "address", "name": "riskpoolWalletAddress", "type": "address" } ], "name": "setRiskpoolWallet", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "allSourcePaths": { "2": "/home/runner/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/token/ERC20/IERC20.sol", "22": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/ITreasury.sol" }, "ast": { "absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/ITreasury.sol", "exportedSymbols": { "IERC20": [ 4694 ], "ITreasury": [ 2409 ] }, "id": 2410, "license": "Apache-2.0", "nodeType": "SourceUnit", "nodes": [ { "id": 2151, "literals": [ "solidity", "0.8", ".2" ], "nodeType": "PragmaDirective", "src": "39:22:22" }, { "absolutePath": "/home/runner/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/token/ERC20/IERC20.sol", "file": "@openzeppelin/contracts/token/ERC20/IERC20.sol", "id": 2152, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 2410, "sourceUnit": 4695, "src": "62:56:22", "symbolAliases": [], "unitAlias": "" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "fullyImplemented": false, "id": 2409, "linearizedBaseContracts": [ 2409 ], "name": "ITreasury", "nameLocation": "130:9:22", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "id": 2154, "name": "LogTreasurySuspended", "nameLocation": "153:20:22", "nodeType": "EventDefinition", "parameters": { "id": 2153, "nodeType": "ParameterList", "parameters": [], "src": "173:2:22" }, "src": "147:29:22" }, { "anonymous": false, "id": 2156, "name": "LogTreasuryResumed", "nameLocation": "187:18:22", "nodeType": "EventDefinition", "parameters": { "id": 2155, "nodeType": "ParameterList", "parameters": [], "src": "205:2:22" }, "src": "181:27:22" }, { "anonymous": false, "id": 2164, "name": "LogTreasuryProductTokenSet", "nameLocation": "220:26:22", "nodeType": "EventDefinition", "parameters": { "id": 2163, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2158, "indexed": false, "mutability": "mutable", "name": "productId", "nameLocation": "255:9:22", "nodeType": "VariableDeclaration", "scope": 2164, "src": "247:17:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2157, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "247:7:22", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2160, "indexed": false, "mutability": "mutable", "name": "riskpoolId", "nameLocation": "274:10:22", "nodeType": "VariableDeclaration", "scope": 2164, "src": "266:18:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2159, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "266:7:22", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2162, "indexed": false, "mutability": "mutable", "name": "erc20Address", "nameLocation": "294:12:22", "nodeType": "VariableDeclaration", "scope": 2164, "src": "286:20:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2161, "name": "address", "nodeType": "ElementaryTypeName", "src": "286:7:22", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "246:61:22" }, "src": "214:94:22" }, { "anonymous": false, "id": 2168, "name": "LogTreasuryInstanceWalletSet", "nameLocation": "319:28:22", "nodeType": "EventDefinition", "parameters": { "id": 2167, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2166, "indexed": false, "mutability": "mutable", "name": "walletAddress", "nameLocation": "356:13:22", "nodeType": "VariableDeclaration", "scope": 2168, "src": "348:21:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2165, "name": "address", "nodeType": "ElementaryTypeName", "src": "348:7:22", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "347:23:22" }, "src": "313:58:22" }, { "anonymous": false, "id": 2174, "name": "LogTreasuryRiskpoolWalletSet", "nameLocation": "382:28:22", "nodeType": "EventDefinition", "parameters": { "id": 2173, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2170, "indexed": false, "mutability": "mutable", "name": "riskpoolId", "nameLocation": "419:10:22", "nodeType": "VariableDeclaration", "scope": 2174, "src": "411:18:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2169, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "411:7:22", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2172, "indexed": false, "mutability": "mutable", "name": "walletAddress", "nameLocation": "439:13:22", "nodeType": "VariableDeclaration", "scope": 2174, "src": "431:21:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2171, "name": "address", "nodeType": "ElementaryTypeName", "src": "431:7:22", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "410:43:22" }, "src": "376:78:22" }, { "anonymous": false, "id": 2182, "name": "LogTreasuryPremiumFeesSet", "nameLocation": "466:25:22", "nodeType": "EventDefinition", "parameters": { "id": 2181, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2176, "indexed": false, "mutability": "mutable", "name": "productId", "nameLocation": "500:9:22", "nodeType": "VariableDeclaration", "scope": 2182, "src": "492:17:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2175, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "492:7:22", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2178, "indexed": false, "mutability": "mutable", "name": "fixedFee", "nameLocation": "519:8:22", "nodeType": "VariableDeclaration", "scope": 2182, "src": "511:16:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2177, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "511:7:22", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2180, "indexed": false, "mutability": "mutable", "name": "fractionalFee", "nameLocation": "537:13:22", "nodeType": "VariableDeclaration", "scope": 2182, "src": "529:21:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2179, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "529:7:22", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "491:60:22" }, "src": "460:92:22" }, { "anonymous": false, "id": 2190, "name": "LogTreasuryCapitalFeesSet", "nameLocation": "563:25:22", "nodeType": "EventDefinition", "parameters": { "id": 2189, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2184, "indexed": false, "mutability": "mutable", "name": "riskpoolId", "nameLocation": "597:10:22", "nodeType": "VariableDeclaration", "scope": 2190, "src": "589:18:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2183, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "589:7:22", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2186, "indexed": false, "mutability": "mutable", "name": "fixedFee", "nameLocation": "617:8:22", "nodeType": "VariableDeclaration", "scope": 2190, "src": "609:16:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2185, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "609:7:22", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2188, "indexed": false, "mutability": "mutable", "name": "fractionalFee", "nameLocation": "635:13:22", "nodeType": "VariableDeclaration", "scope": 2190, "src": "627:21:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2187, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "627:7:22", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "588:61:22" }, "src": "557:93:22" }, { "anonymous": false, "id": 2198, "name": "LogTreasuryPremiumTransferred", "nameLocation": "662:29:22", "nodeType": "EventDefinition", "parameters": { "id": 2197, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2192, "indexed": false, "mutability": "mutable", "name": "from", "nameLocation": "700:4:22", "nodeType": "VariableDeclaration", "scope": 2198, "src": "692:12:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2191, "name": "address", "nodeType": "ElementaryTypeName", "src": "692:7:22", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 2194, "indexed": false, "mutability": "mutable", "name": "riskpoolWalletAddress", "nameLocation": "714:21:22", "nodeType": "VariableDeclaration", "scope": 2198, "src": "706:29:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2193, "name": "address", "nodeType": "ElementaryTypeName", "src": "706:7:22", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 2196, "indexed": false, "mutability": "mutable", "name": "amount", "nameLocation": "745:6:22", "nodeType": "VariableDeclaration", "scope": 2198, "src": "737:14:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2195, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "737:7:22", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "691:61:22" }, "src": "656:97:22" }, { "anonymous": false, "id": 2206, "name": "LogTreasuryPayoutTransferred", "nameLocation": "764:28:22", "nodeType": "EventDefinition", "parameters": { "id": 2205, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2200, "indexed": false, "mutability": "mutable", "name": "riskpoolWalletAddress", "nameLocation": "801:21:22", "nodeType": "VariableDeclaration", "scope": 2206, "src": "793:29:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2199, "name": "address", "nodeType": "ElementaryTypeName", "src": "793:7:22", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 2202, "indexed": false, "mutability": "mutable", "name": "to", "nameLocation": "832:2:22", "nodeType": "VariableDeclaration", "scope": 2206, "src": "824:10:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2201, "name": "address", "nodeType": "ElementaryTypeName", "src": "824:7:22", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 2204, "indexed": false, "mutability": "mutable", "name": "amount", "nameLocation": "844:6:22", "nodeType": "VariableDeclaration", "scope": 2206, "src": "836:14:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2203, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "836:7:22", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "792:59:22" }, "src": "758:94:22" }, { "anonymous": false, "id": 2214, "name": "LogTreasuryCapitalTransferred", "nameLocation": "863:29:22", "nodeType": "EventDefinition", "parameters": { "id": 2213, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2208, "indexed": false, "mutability": "mutable", "name": "from", "nameLocation": "901:4:22", "nodeType": "VariableDeclaration", "scope": 2214, "src": "893:12:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2207, "name": "address", "nodeType": "ElementaryTypeName", "src": "893:7:22", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 2210, "indexed": false, "mutability": "mutable", "name": "riskpoolWalletAddress", "nameLocation": "915:21:22", "nodeType": "VariableDeclaration", "scope": 2214, "src": "907:29:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2209, "name": "address", "nodeType": "ElementaryTypeName", "src": "907:7:22", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 2212, "indexed": false, "mutability": "mutable", "name": "amount", "nameLocation": "946:6:22", "nodeType": "VariableDeclaration", "scope": 2214, "src": "938:14:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2211, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "938:7:22", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "892:61:22" }, "src": "857:97:22" }, { "anonymous": false, "id": 2222, "name": "LogTreasuryFeesTransferred", "nameLocation": "965:26:22", "nodeType": "EventDefinition", "parameters": { "id": 2221, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2216, "indexed": false, "mutability": "mutable", "name": "from", "nameLocation": "1000:4:22", "nodeType": "VariableDeclaration", "scope": 2222, "src": "992:12:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2215, "name": "address", "nodeType": "ElementaryTypeName", "src": "992:7:22", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 2218, "indexed": false, "mutability": "mutable", "name": "instanceWalletAddress", "nameLocation": "1014:21:22", "nodeType": "VariableDeclaration", "scope": 2222, "src": "1006:29:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2217, "name": "address", "nodeType": "ElementaryTypeName", "src": "1006:7:22", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false,