{
    "Function": "_execute",
    "File": "contracts/interchain-governance-executor/InterchainProposalExecutor.sol",
    "Parent Contracts": [
        "node_modules/@openzeppelin/contracts/access/Ownable.sol",
        "node_modules/@openzeppelin/contracts/utils/Context.sol",
        "contracts/gmp-sdk/executable/AxelarExecutable.sol",
        "contracts/gmp-sdk/interfaces/IAxelarExecutable.sol",
        "contracts/interchain-governance-executor/interfaces/IInterchainProposalExecutor.sol"
    ],
    "High-Level Calls": [
        "StringToAddress"
    ],
    "Internal Calls": [
        "keccak256(bytes)",
        "_executeProposal",
        "_beforeProposalExecuted",
        "revert NotWhitelistedCaller()",
        "_onProposalExecuted",
        "revert NotWhitelistedSourceAddress()",
        "abi.encode()",
        "abi.decode()"
    ],
    "Library Calls": [
        "toAddress"
    ],
    "Low-Level Calls": [],
    "Code": "function _execute(\n        string calldata sourceChain,\n        string calldata sourceAddress,\n        bytes calldata payload\n    ) internal override {\n        _beforeProposalExecuted(sourceChain, sourceAddress, payload);\n\n        // Check that the source address is whitelisted\n        if (!whitelistedSenders[sourceChain][StringToAddress.toAddress(sourceAddress)]) {\n            revert NotWhitelistedSourceAddress();\n        }\n\n        // Decode the payload\n        (address interchainProposalCaller, InterchainCalls.Call[] memory calls) = abi.decode(payload, (address, InterchainCalls.Call[]));\n\n        // Check that the caller is whitelisted\n        if (!whitelistedCallers[sourceChain][interchainProposalCaller]) {\n            revert NotWhitelistedCaller();\n        }\n\n        // Execute the proposal with the given arguments\n        _executeProposal(calls);\n\n        _onProposalExecuted(sourceChain, sourceAddress, interchainProposalCaller, payload);\n\n        emit ProposalExecuted(keccak256(abi.encode(sourceChain, sourceAddress, interchainProposalCaller, payload)));\n    }"
}