UNPKG

@etherisc/gif-contracts

Version:

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

1,677 lines 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": { "13": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC20/IERC20.sol", "45": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/ITreasury.sol" }, "ast": { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/ITreasury.sol", "exportedSymbols": { "IERC20": [ 18510 ], "ITreasury": [ 23443 ] }, "id": 23444, "license": "Apache-2.0", "nodeType": "SourceUnit", "nodes": [ { "id": 23185, "literals": [ "solidity", "0.8", ".2" ], "nodeType": "PragmaDirective", "src": "39:22:45" }, { "absolutePath": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC20/IERC20.sol", "file": "@openzeppelin/contracts/token/ERC20/IERC20.sol", "id": 23186, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 23444, "sourceUnit": 18511, "src": "62:56:45", "symbolAliases": [], "unitAlias": "" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "fullyImplemented": false, "id": 23443, "linearizedBaseContracts": [ 23443 ], "name": "ITreasury", "nameLocation": "130:9:45", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "id": 23188, "name": "LogTreasurySuspended", "nameLocation": "153:20:45", "nodeType": "EventDefinition", "parameters": { "id": 23187, "nodeType": "ParameterList", "parameters": [], "src": "173:2:45" }, "src": "147:29:45" }, { "anonymous": false, "id": 23190, "name": "LogTreasuryResumed", "nameLocation": "187:18:45", "nodeType": "EventDefinition", "parameters": { "id": 23189, "nodeType": "ParameterList", "parameters": [], "src": "205:2:45" }, "src": "181:27:45" }, { "anonymous": false, "id": 23198, "name": "LogTreasuryProductTokenSet", "nameLocation": "220:26:45", "nodeType": "EventDefinition", "parameters": { "id": 23197, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 23192, "indexed": false, "mutability": "mutable", "name": "productId", "nameLocation": "255:9:45", "nodeType": "VariableDeclaration", "scope": 23198, "src": "247:17:45", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 23191, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "247:7:45", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 23194, "indexed": false, "mutability": "mutable", "name": "riskpoolId", "nameLocation": "274:10:45", "nodeType": "VariableDeclaration", "scope": 23198, "src": "266:18:45", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 23193, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "266:7:45", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 23196, "indexed": false, "mutability": "mutable", "name": "erc20Address", "nameLocation": "294:12:45", "nodeType": "VariableDeclaration", "scope": 23198, "src": "286:20:45", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 23195, "name": "address", "nodeType": "ElementaryTypeName", "src": "286:7:45", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "246:61:45" }, "src": "214:94:45" }, { "anonymous": false, "id": 23202, "name": "LogTreasuryInstanceWalletSet", "nameLocation": "319:28:45", "nodeType": "EventDefinition", "parameters": { "id": 23201, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 23200, "indexed": false, "mutability": "mutable", "name": "walletAddress", "nameLocation": "356:13:45", "nodeType": "VariableDeclaration", "scope": 23202, "src": "348:21:45", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 23199, "name": "address", "nodeType": "ElementaryTypeName", "src": "348:7:45", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "347:23:45" }, "src": "313:58:45" }, { "anonymous": false, "id": 23208, "name": "LogTreasuryRiskpoolWalletSet", "nameLocation": "382:28:45", "nodeType": "EventDefinition", "parameters": { "id": 23207, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 23204, "indexed": false, "mutability": "mutable", "name": "riskpoolId", "nameLocation": "419:10:45", "nodeType": "VariableDeclaration", "scope": 23208, "src": "411:18:45", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 23203, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "411:7:45", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 23206, "indexed": false, "mutability": "mutable", "name": "walletAddress", "nameLocation": "439:13:45", "nodeType": "VariableDeclaration", "scope": 23208, "src": "431:21:45", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 23205, "name": "address", "nodeType": "ElementaryTypeName", "src": "431:7:45", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "410:43:45" }, "src": "376:78:45" }, { "anonymous": false, "id": 23216, "name": "LogTreasuryPremiumFeesSet", "nameLocation": "466:25:45", "nodeType": "EventDefinition", "parameters": { "id": 23215, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 23210, "indexed": false, "mutability": "mutable", "name": "productId", "nameLocation": "500:9:45", "nodeType": "VariableDeclaration", "scope": 23216, "src": "492:17:45", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 23209, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "492:7:45", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 23212, "indexed": false, "mutability": "mutable", "name": "fixedFee", "nameLocation": "519:8:45", "nodeType": "VariableDeclaration", "scope": 23216, "src": "511:16:45", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 23211, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "511:7:45", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 23214, "indexed": false, "mutability": "mutable", "name": "fractionalFee", "nameLocation": "537:13:45", "nodeType": "VariableDeclaration", "scope": 23216, "src": "529:21:45", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 23213, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "529:7:45", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "491:60:45" }, "src": "460:92:45" }, { "anonymous": false, "id": 23224, "name": "LogTreasuryCapitalFeesSet", "nameLocation": "563:25:45", "nodeType": "EventDefinition", "parameters": { "id": 23223, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 23218, "indexed": false, "mutability": "mutable", "name": "riskpoolId", "nameLocation": "597:10:45", "nodeType": "VariableDeclaration", "scope": 23224, "src": "589:18:45", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 23217, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "589:7:45", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 23220, "indexed": false, "mutability": "mutable", "name": "fixedFee", "nameLocation": "617:8:45", "nodeType": "VariableDeclaration", "scope": 23224, "src": "609:16:45", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 23219, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "609:7:45", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 23222, "indexed": false, "mutability": "mutable", "name": "fractionalFee", "nameLocation": "635:13:45", "nodeType": "VariableDeclaration", "scope": 23224, "src": "627:21:45", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 23221, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "627:7:45", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "588:61:45" }, "src": "557:93:45" }, { "anonymous": false, "id": 23232, "name": "LogTreasuryPremiumTransferred", "nameLocation": "662:29:45", "nodeType": "EventDefinition", "parameters": { "id": 23231, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 23226, "indexed": false, "mutability": "mutable", "name": "from", "nameLocation": "700:4:45", "nodeType": "VariableDeclaration", "scope": 23232, "src": "692:12:45", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 23225, "name": "address", "nodeType": "ElementaryTypeName", "src": "692:7:45", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 23228, "indexed": false, "mutability": "mutable", "name": "riskpoolWalletAddress", "nameLocation": "714:21:45", "nodeType": "VariableDeclaration", "scope": 23232, "src": "706:29:45", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 23227, "name": "address", "nodeType": "ElementaryTypeName", "src": "706:7:45", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 23230, "indexed": false, "mutability": "mutable", "name": "amount", "nameLocation": "745:6:45", "nodeType": "VariableDeclaration", "scope": 23232, "src": "737:14:45", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 23229, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "737:7:45", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "691:61:45" }, "src": "656:97:45" }, { "anonymous": false, "id": 23240, "name": "LogTreasuryPayoutTransferred", "nameLocation": "764:28:45", "nodeType": "EventDefinition", "parameters": { "id": 23239, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 23234, "indexed": false, "mutability": "mutable", "name": "riskpoolWalletAddress", "nameLocation": "801:21:45", "nodeType": "VariableDeclaration", "scope": 23240, "src": "793:29:45", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 23233, "name": "address", "nodeType": "ElementaryTypeName", "src": "793:7:45", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 23236, "indexed": false, "mutability": "mutable", "name": "to", "nameLocation": "832:2:45", "nodeType": "VariableDeclaration", "scope": 23240, "src": "824:10:45", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 23235, "name": "address", "nodeType": "ElementaryTypeName", "src": "824:7:45", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 23238, "indexed": false, "mutability": "mutable", "name": "amount", "nameLocation": "844:6:45", "nodeType": "VariableDeclaration", "scope": 23240, "src": "836:14:45", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 23237, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "836:7:45", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "792:59:45" }, "src": "758:94:45" }, { "anonymous": false, "id": 23248, "name": "LogTreasuryCapitalTransferred", "nameLocation": "863:29:45", "nodeType": "EventDefinition", "parameters": { "id": 23247, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 23242, "indexed": false, "mutability": "mutable", "name": "from", "nameLocation": "901:4:45", "nodeType": "VariableDeclaration", "scope": 23248, "src": "893:12:45", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 23241, "name": "address", "nodeType": "ElementaryTypeName", "src": "893:7:45", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 23244, "indexed": false, "mutability": "mutable", "name": "riskpoolWalletAddress", "nameLocation": "915:21:45", "nodeType": "VariableDeclaration", "scope": 23248, "src": "907:29:45", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 23243, "name": "address", "nodeType": "ElementaryTypeName", "src": "907:7:45", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 23246, "indexed": false, "mutability": "mutable", "name": "amount", "nameLocation": "946:6:45", "nodeType": "VariableDeclaration", "scope": 23248, "src": "938:14:45", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 23245, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "938:7:45", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "892:61:45" }, "src": "857:97:45" }, { "anonymous": false, "id": 23256, "name": "LogTreasuryFeesTransferred", "nameLocation": "965:26:45", "nodeType": "EventDefinition", "parameters": { "id": 23255, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 23250, "indexed": false, "mutability": "mutable", "name": "from", "nameLocation": "1000:4:45", "nodeType": "VariableDeclaration", "scope": 23256, "src": "992:12:45", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 23249, "name": "address", "nodeType": "ElementaryTypeName", "src": "992:7:45", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 23252, "indexed": false, "mutability": "mutable", "name": "instanceWalletAddress", "nameLocation": "1014:21:45", "nodeType": "VariableDeclaration", "scope": 23256, "src": "1006:29:45", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 23251, "name": "address", "nodeType": "ElementaryTypeName", "src": "1006:7:45", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "