From 7f8dc2b24f70af0f7f36cb8ad3d3e169ac27d442 Mon Sep 17 00:00:00 2001 From: Gregory Hill Date: Mon, 9 Oct 2023 13:41:47 +0100 Subject: [PATCH] refactor: flatten into typical foundry project Signed-off-by: Gregory Hill --- .github/workflows/test.yml | 34 + .gitignore | 15 + .gitmodules | 4 +- README.md | 22 + contracts/bridge/.gitignore | 14 - contracts/bridge/README.md | 66 - contracts/bridge/test/utils/Console.sol | 5203 ----------------- contracts/bridge/foundry.toml => foundry.toml | 1 - lib/forge-std | 1 + lib/openzeppelin-contracts | 1 + .../bridge/remappings.txt => remappings.txt | 0 .../bridge.s.sol => script/Bridge.s.sol | 0 .../src/bridge.sol => src/swap/Bridge.sol | 2 +- .../swap/Btc_Marketplace.sol | 0 .../swap/Marketplace.sol | 0 .../src/wrapped.sol => src/swap/Wrapped.sol | 0 .../test/bridge.t.sol => test/Bridge.t.sol | 4 +- .../Btc_Marketplace.t.sol | 4 +- .../Marketplace.t.sol | 4 +- .../bridge/test/utils => test}/Utilities.sol | 0 20 files changed, 82 insertions(+), 5293 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 contracts/bridge/.gitignore delete mode 100644 contracts/bridge/README.md delete mode 100644 contracts/bridge/test/utils/Console.sol rename contracts/bridge/foundry.toml => foundry.toml (87%) create mode 160000 lib/forge-std create mode 160000 lib/openzeppelin-contracts rename contracts/bridge/remappings.txt => remappings.txt (100%) rename contracts/bridge/script/bridge.s.sol => script/Bridge.s.sol (100%) rename contracts/bridge/src/bridge.sol => src/swap/Bridge.sol (98%) rename contracts/bridge/src/btc_marketplace.sol => src/swap/Btc_Marketplace.sol (100%) rename contracts/bridge/src/marketplace.sol => src/swap/Marketplace.sol (100%) rename contracts/bridge/src/wrapped.sol => src/swap/Wrapped.sol (100%) rename contracts/bridge/test/bridge.t.sol => test/Bridge.t.sol (97%) rename contracts/bridge/test/btc_marketplace.t.sol => test/Btc_Marketplace.t.sol (97%) rename contracts/bridge/test/marketplace.t.sol => test/Marketplace.t.sol (96%) rename {contracts/bridge/test/utils => test}/Utilities.sol (100%) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..09880b1d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,34 @@ +name: test + +on: workflow_dispatch + +env: + FOUNDRY_PROFILE: ci + +jobs: + check: + strategy: + fail-fast: true + + name: Foundry project + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + with: + version: nightly + + - name: Run Forge build + run: | + forge --version + forge build --sizes + id: build + + - name: Run Forge tests + run: | + forge test -vvv + id: test diff --git a/.gitignore b/.gitignore index f8724704..eed69c07 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,18 @@ yarn-error.log* # Editors .vscode/ + +# Compiler files +cache/ +out/ + +# Ignores development broadcast logs +!/broadcast +/broadcast/*/31337/ +/broadcast/**/dry-run/ + +# Docs +docs/ + +# Dotenv file +.env diff --git a/.gitmodules b/.gitmodules index 71abb219..690924b6 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ [submodule "lib/forge-std"] - path = contracts/bridge/lib/forge-std + path = lib/forge-std url = https://github.com/foundry-rs/forge-std [submodule "lib/openzeppelin-contracts"] - path = contracts/bridge/lib/openzeppelin-contracts + path = lib/openzeppelin-contracts url = https://github.com/OpenZeppelin/openzeppelin-contracts diff --git a/README.md b/README.md index 8e512cfd..522ad749 100644 --- a/README.md +++ b/README.md @@ -10,3 +10,25 @@ BOB is a Bitcoin-augmented rollup bringing experimentation and freedom of choice ## Contribution BOB is an open-source project. We welcome contributions of all sorts. There are many ways to help, from reporting issues, contributing code, and helping us improve our community. + +## Getting Started + +We use foundry extensively for maintaining and testing this contract suite: + +### Build + +```shell +$ forge build +``` + +### Test + +```shell +$ forge test +``` + +### Format + +```shell +$ forge fmt +``` diff --git a/contracts/bridge/.gitignore b/contracts/bridge/.gitignore deleted file mode 100644 index 85198aaa..00000000 --- a/contracts/bridge/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ -# Compiler files -cache/ -out/ - -# Ignores development broadcast logs -!/broadcast -/broadcast/*/31337/ -/broadcast/**/dry-run/ - -# Docs -docs/ - -# Dotenv file -.env diff --git a/contracts/bridge/README.md b/contracts/bridge/README.md deleted file mode 100644 index 9751bd11..00000000 --- a/contracts/bridge/README.md +++ /dev/null @@ -1,66 +0,0 @@ -## Foundry - -**Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.** - -Foundry consists of: - -- **Forge**: Ethereum testing framework (like Truffle, Hardhat and DappTools). -- **Cast**: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data. -- **Anvil**: Local Ethereum node, akin to Ganache, Hardhat Network. -- **Chisel**: Fast, utilitarian, and verbose solidity REPL. - -## Documentation - -https://book.getfoundry.sh/ - -## Usage - -### Build - -```shell -$ forge build -``` - -### Test - -```shell -$ forge test -``` - -### Format - -```shell -$ forge fmt -``` - -### Gas Snapshots - -```shell -$ forge snapshot -``` - -### Anvil - -```shell -$ anvil -``` - -### Deploy - -```shell -$ forge script script/bridge.s.sol:BridgeScript --rpc-url --private-key -``` - -### Cast - -```shell -$ cast -``` - -### Help - -```shell -$ forge --help -$ anvil --help -$ cast --help -``` diff --git a/contracts/bridge/test/utils/Console.sol b/contracts/bridge/test/utils/Console.sol deleted file mode 100644 index ca033945..00000000 --- a/contracts/bridge/test/utils/Console.sol +++ /dev/null @@ -1,5203 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; - -/* solhint-disable */ -library console { - address constant CONSOLE_ADDRESS = - address(0x000000000000000000636F6e736F6c652e6c6f67); - - function _sendLogPayload(bytes memory payload) private view { - uint256 payloadLength = payload.length; - address consoleAddress = CONSOLE_ADDRESS; - assembly { - let payloadStart := add(payload, 32) - let r := staticcall( - gas(), - consoleAddress, - payloadStart, - payloadLength, - 0, - 0 - ) - } - } - - function log() internal view { - _sendLogPayload(abi.encodeWithSignature("log()")); - } - - function logInt(int256 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(int)", p0)); - } - - function logUint(uint256 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); - } - - function logString(string memory p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); - } - - function logBool(bool p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); - } - - function logAddress(address p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); - } - - function logBytes(bytes memory p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes)", p0)); - } - - function logBytes1(bytes1 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0)); - } - - function logBytes2(bytes2 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0)); - } - - function logBytes3(bytes3 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0)); - } - - function logBytes4(bytes4 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0)); - } - - function logBytes5(bytes5 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0)); - } - - function logBytes6(bytes6 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0)); - } - - function logBytes7(bytes7 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0)); - } - - function logBytes8(bytes8 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0)); - } - - function logBytes9(bytes9 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0)); - } - - function logBytes10(bytes10 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0)); - } - - function logBytes11(bytes11 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0)); - } - - function logBytes12(bytes12 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0)); - } - - function logBytes13(bytes13 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0)); - } - - function logBytes14(bytes14 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0)); - } - - function logBytes15(bytes15 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0)); - } - - function logBytes16(bytes16 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0)); - } - - function logBytes17(bytes17 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0)); - } - - function logBytes18(bytes18 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0)); - } - - function logBytes19(bytes19 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0)); - } - - function logBytes20(bytes20 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0)); - } - - function logBytes21(bytes21 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0)); - } - - function logBytes22(bytes22 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0)); - } - - function logBytes23(bytes23 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0)); - } - - function logBytes24(bytes24 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0)); - } - - function logBytes25(bytes25 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0)); - } - - function logBytes26(bytes26 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0)); - } - - function logBytes27(bytes27 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0)); - } - - function logBytes28(bytes28 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0)); - } - - function logBytes29(bytes29 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0)); - } - - function logBytes30(bytes30 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0)); - } - - function logBytes31(bytes31 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0)); - } - - function logBytes32(bytes32 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0)); - } - - function log(bytes32[] memory p0) internal view { - for (uint256 i; i < p0.length; ) { - _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0[i])); - unchecked { - ++i; - } - } - } - - function log(uint256 p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); - } - - function log(uint256[] memory p0) internal view { - for (uint256 i; i < p0.length; ) { - _sendLogPayload(abi.encodeWithSignature("log(uint)", p0[i])); - unchecked { - ++i; - } - } - } - - function log(string memory p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); - } - - function log(string[] memory p0) internal view { - for (uint256 i; i < p0.length; ) { - _sendLogPayload(abi.encodeWithSignature("log(string)", p0[i])); - unchecked { - ++i; - } - } - } - - function log(bool p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); - } - - function log(bool[] memory p0) internal view { - for (uint256 i; i < p0.length; ) { - _sendLogPayload(abi.encodeWithSignature("log(bool)", p0[i])); - unchecked { - ++i; - } - } - } - - function log(address p0) internal view { - _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); - } - - function log(address[] memory p0) internal view { - for (uint256 i; i < p0.length; ) { - _sendLogPayload(abi.encodeWithSignature("log(address)", p0[i])); - unchecked { - ++i; - } - } - } - - function log(uint256 p0, uint256 p1) internal view { - _sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1)); - } - - function log(uint256 p0, string memory p1) internal view { - _sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1)); - } - - function log(uint256 p0, bool p1) internal view { - _sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1)); - } - - function log(uint256 p0, address p1) internal view { - _sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1)); - } - - function log(string memory p0, uint256 p1) internal view { - _sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1)); - } - - function log(string memory p0, string memory p1) internal view { - _sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1)); - } - - function log(string memory p0, bool p1) internal view { - _sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1)); - } - - function log(string memory p0, address p1) internal view { - _sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1)); - } - - function log(bool p0, uint256 p1) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1)); - } - - function log(bool p0, string memory p1) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1)); - } - - function log(bool p0, bool p1) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1)); - } - - function log(bool p0, address p1) internal view { - _sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1)); - } - - function log(address p0, uint256 p1) internal view { - _sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1)); - } - - function log(address p0, string memory p1) internal view { - _sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1)); - } - - function log(address p0, bool p1) internal view { - _sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1)); - } - - function log(address p0, address p1) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(address,address)", p0, p1) - ); - } - - function log( - uint256 p0, - uint256 p1, - uint256 p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2) - ); - } - - function log( - uint256 p0, - uint256 p1, - string memory p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2) - ); - } - - function log( - uint256 p0, - uint256 p1, - bool p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2) - ); - } - - function log( - uint256 p0, - uint256 p1, - address p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2) - ); - } - - function log( - uint256 p0, - string memory p1, - uint256 p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2) - ); - } - - function log( - uint256 p0, - string memory p1, - string memory p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2) - ); - } - - function log( - uint256 p0, - string memory p1, - bool p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2) - ); - } - - function log( - uint256 p0, - string memory p1, - address p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2) - ); - } - - function log( - uint256 p0, - bool p1, - uint256 p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2) - ); - } - - function log( - uint256 p0, - bool p1, - string memory p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2) - ); - } - - function log( - uint256 p0, - bool p1, - bool p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2) - ); - } - - function log( - uint256 p0, - bool p1, - address p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2) - ); - } - - function log( - uint256 p0, - address p1, - uint256 p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2) - ); - } - - function log( - uint256 p0, - address p1, - string memory p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2) - ); - } - - function log( - uint256 p0, - address p1, - bool p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2) - ); - } - - function log( - uint256 p0, - address p1, - address p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2) - ); - } - - function log( - string memory p0, - uint256 p1, - uint256 p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2) - ); - } - - function log( - string memory p0, - uint256 p1, - string memory p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2) - ); - } - - function log( - string memory p0, - uint256 p1, - bool p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2) - ); - } - - function log( - string memory p0, - uint256 p1, - address p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2) - ); - } - - function log( - string memory p0, - string memory p1, - uint256 p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2) - ); - } - - function log( - string memory p0, - string memory p1, - string memory p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(string,string,string)", p0, p1, p2) - ); - } - - function log( - string memory p0, - string memory p1, - bool p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2) - ); - } - - function log( - string memory p0, - string memory p1, - address p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(string,string,address)", p0, p1, p2) - ); - } - - function log( - string memory p0, - bool p1, - uint256 p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2) - ); - } - - function log( - string memory p0, - bool p1, - string memory p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2) - ); - } - - function log( - string memory p0, - bool p1, - bool p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2) - ); - } - - function log( - string memory p0, - bool p1, - address p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2) - ); - } - - function log( - string memory p0, - address p1, - uint256 p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2) - ); - } - - function log( - string memory p0, - address p1, - string memory p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(string,address,string)", p0, p1, p2) - ); - } - - function log( - string memory p0, - address p1, - bool p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2) - ); - } - - function log( - string memory p0, - address p1, - address p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(string,address,address)", p0, p1, p2) - ); - } - - function log( - bool p0, - uint256 p1, - uint256 p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2) - ); - } - - function log( - bool p0, - uint256 p1, - string memory p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2) - ); - } - - function log( - bool p0, - uint256 p1, - bool p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2) - ); - } - - function log( - bool p0, - uint256 p1, - address p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2) - ); - } - - function log( - bool p0, - string memory p1, - uint256 p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2) - ); - } - - function log( - bool p0, - string memory p1, - string memory p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2) - ); - } - - function log( - bool p0, - string memory p1, - bool p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2) - ); - } - - function log( - bool p0, - string memory p1, - address p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2) - ); - } - - function log( - bool p0, - bool p1, - uint256 p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2) - ); - } - - function log( - bool p0, - bool p1, - string memory p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2) - ); - } - - function log( - bool p0, - bool p1, - bool p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2) - ); - } - - function log( - bool p0, - bool p1, - address p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2) - ); - } - - function log( - bool p0, - address p1, - uint256 p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2) - ); - } - - function log( - bool p0, - address p1, - string memory p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2) - ); - } - - function log( - bool p0, - address p1, - bool p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2) - ); - } - - function log( - bool p0, - address p1, - address p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2) - ); - } - - function log( - address p0, - uint256 p1, - uint256 p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2) - ); - } - - function log( - address p0, - uint256 p1, - string memory p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2) - ); - } - - function log( - address p0, - uint256 p1, - bool p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2) - ); - } - - function log( - address p0, - uint256 p1, - address p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2) - ); - } - - function log( - address p0, - string memory p1, - uint256 p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2) - ); - } - - function log( - address p0, - string memory p1, - string memory p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(address,string,string)", p0, p1, p2) - ); - } - - function log( - address p0, - string memory p1, - bool p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2) - ); - } - - function log( - address p0, - string memory p1, - address p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(address,string,address)", p0, p1, p2) - ); - } - - function log( - address p0, - bool p1, - uint256 p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2) - ); - } - - function log( - address p0, - bool p1, - string memory p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2) - ); - } - - function log( - address p0, - bool p1, - bool p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2) - ); - } - - function log( - address p0, - bool p1, - address p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2) - ); - } - - function log( - address p0, - address p1, - uint256 p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2) - ); - } - - function log( - address p0, - address p1, - string memory p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(address,address,string)", p0, p1, p2) - ); - } - - function log( - address p0, - address p1, - bool p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2) - ); - } - - function log( - address p0, - address p1, - address p2 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(address,address,address)", p0, p1, p2) - ); - } - - function log( - uint256 p0, - uint256 p1, - uint256 p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3) - ); - } - - function log( - uint256 p0, - uint256 p1, - uint256 p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,uint,uint,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - uint256 p1, - uint256 p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3) - ); - } - - function log( - uint256 p0, - uint256 p1, - uint256 p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,uint,uint,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - uint256 p1, - string memory p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,uint,string,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - uint256 p1, - string memory p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,uint,string,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - uint256 p1, - string memory p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,uint,string,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - uint256 p1, - string memory p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,uint,string,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - uint256 p1, - bool p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3) - ); - } - - function log( - uint256 p0, - uint256 p1, - bool p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,uint,bool,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - uint256 p1, - bool p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3) - ); - } - - function log( - uint256 p0, - uint256 p1, - bool p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,uint,bool,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - uint256 p1, - address p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,uint,address,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - uint256 p1, - address p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,uint,address,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - uint256 p1, - address p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,uint,address,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - uint256 p1, - address p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,uint,address,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - string memory p1, - uint256 p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,string,uint,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - string memory p1, - uint256 p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,string,uint,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - string memory p1, - uint256 p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,string,uint,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - string memory p1, - uint256 p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,string,uint,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - string memory p1, - string memory p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,string,string,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - string memory p1, - string memory p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,string,string,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - string memory p1, - string memory p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,string,string,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - string memory p1, - string memory p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,string,string,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - string memory p1, - bool p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,string,bool,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - string memory p1, - bool p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,string,bool,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - string memory p1, - bool p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,string,bool,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - string memory p1, - bool p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,string,bool,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - string memory p1, - address p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,string,address,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - string memory p1, - address p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,string,address,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - string memory p1, - address p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,string,address,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - string memory p1, - address p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,string,address,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - bool p1, - uint256 p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3) - ); - } - - function log( - uint256 p0, - bool p1, - uint256 p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,bool,uint,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - bool p1, - uint256 p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3) - ); - } - - function log( - uint256 p0, - bool p1, - uint256 p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,bool,uint,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - bool p1, - string memory p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,bool,string,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - bool p1, - string memory p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,bool,string,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - bool p1, - string memory p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,bool,string,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - bool p1, - string memory p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,bool,string,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - bool p1, - bool p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3) - ); - } - - function log( - uint256 p0, - bool p1, - bool p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,bool,bool,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - bool p1, - bool p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3) - ); - } - - function log( - uint256 p0, - bool p1, - bool p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,bool,bool,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - bool p1, - address p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,bool,address,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - bool p1, - address p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,bool,address,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - bool p1, - address p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,bool,address,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - bool p1, - address p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,bool,address,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - address p1, - uint256 p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,address,uint,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - address p1, - uint256 p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,address,uint,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - address p1, - uint256 p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,address,uint,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - address p1, - uint256 p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,address,uint,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - address p1, - string memory p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,address,string,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - address p1, - string memory p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,address,string,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - address p1, - string memory p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,address,string,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - address p1, - string memory p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,address,string,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - address p1, - bool p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,address,bool,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - address p1, - bool p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,address,bool,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - address p1, - bool p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,address,bool,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - address p1, - bool p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,address,bool,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - address p1, - address p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,address,address,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - address p1, - address p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,address,address,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - address p1, - address p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,address,address,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - uint256 p0, - address p1, - address p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(uint,address,address,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - uint256 p1, - uint256 p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,uint,uint,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - uint256 p1, - uint256 p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,uint,uint,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - uint256 p1, - uint256 p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,uint,uint,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - uint256 p1, - uint256 p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,uint,uint,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - uint256 p1, - string memory p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,uint,string,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - uint256 p1, - string memory p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,uint,string,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - uint256 p1, - string memory p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,uint,string,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - uint256 p1, - string memory p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,uint,string,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - uint256 p1, - bool p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,uint,bool,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - uint256 p1, - bool p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,uint,bool,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - uint256 p1, - bool p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,uint,bool,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - uint256 p1, - bool p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,uint,bool,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - uint256 p1, - address p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,uint,address,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - uint256 p1, - address p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,uint,address,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - uint256 p1, - address p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,uint,address,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - uint256 p1, - address p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,uint,address,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - string memory p1, - uint256 p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,string,uint,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - string memory p1, - uint256 p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,string,uint,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - string memory p1, - uint256 p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,string,uint,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - string memory p1, - uint256 p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,string,uint,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - string memory p1, - string memory p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,string,string,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - string memory p1, - string memory p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,string,string,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - string memory p1, - string memory p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,string,string,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - string memory p1, - string memory p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,string,string,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - string memory p1, - bool p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,string,bool,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - string memory p1, - bool p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,string,bool,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - string memory p1, - bool p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,string,bool,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - string memory p1, - bool p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,string,bool,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - string memory p1, - address p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,string,address,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - string memory p1, - address p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,string,address,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - string memory p1, - address p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,string,address,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - string memory p1, - address p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,string,address,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - bool p1, - uint256 p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,bool,uint,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - bool p1, - uint256 p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,bool,uint,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - bool p1, - uint256 p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,bool,uint,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - bool p1, - uint256 p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,bool,uint,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - bool p1, - string memory p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,bool,string,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - bool p1, - string memory p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,bool,string,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - bool p1, - string memory p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,bool,string,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - bool p1, - string memory p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,bool,string,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - bool p1, - bool p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,bool,bool,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - bool p1, - bool p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,bool,bool,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - bool p1, - bool p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,bool,bool,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - bool p1, - bool p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,bool,bool,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - bool p1, - address p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,bool,address,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - bool p1, - address p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,bool,address,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - bool p1, - address p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,bool,address,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - bool p1, - address p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,bool,address,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - address p1, - uint256 p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,address,uint,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - address p1, - uint256 p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,address,uint,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - address p1, - uint256 p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,address,uint,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - address p1, - uint256 p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,address,uint,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - address p1, - string memory p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,address,string,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - address p1, - string memory p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,address,string,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - address p1, - string memory p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,address,string,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - address p1, - string memory p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,address,string,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - address p1, - bool p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,address,bool,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - address p1, - bool p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,address,bool,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - address p1, - bool p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,address,bool,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - address p1, - bool p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,address,bool,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - address p1, - address p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,address,address,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - address p1, - address p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,address,address,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - address p1, - address p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,address,address,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - string memory p0, - address p1, - address p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(string,address,address,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - uint256 p1, - uint256 p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3) - ); - } - - function log( - bool p0, - uint256 p1, - uint256 p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,uint,uint,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - uint256 p1, - uint256 p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3) - ); - } - - function log( - bool p0, - uint256 p1, - uint256 p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,uint,uint,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - uint256 p1, - string memory p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,uint,string,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - uint256 p1, - string memory p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,uint,string,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - uint256 p1, - string memory p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,uint,string,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - uint256 p1, - string memory p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,uint,string,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - uint256 p1, - bool p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3) - ); - } - - function log( - bool p0, - uint256 p1, - bool p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,uint,bool,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - uint256 p1, - bool p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3) - ); - } - - function log( - bool p0, - uint256 p1, - bool p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,uint,bool,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - uint256 p1, - address p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,uint,address,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - uint256 p1, - address p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,uint,address,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - uint256 p1, - address p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,uint,address,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - uint256 p1, - address p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,uint,address,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - string memory p1, - uint256 p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,string,uint,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - string memory p1, - uint256 p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,string,uint,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - string memory p1, - uint256 p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,string,uint,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - string memory p1, - uint256 p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,string,uint,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - string memory p1, - string memory p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,string,string,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - string memory p1, - string memory p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,string,string,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - string memory p1, - string memory p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,string,string,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - string memory p1, - string memory p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,string,string,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - string memory p1, - bool p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,string,bool,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - string memory p1, - bool p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,string,bool,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - string memory p1, - bool p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,string,bool,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - string memory p1, - bool p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,string,bool,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - string memory p1, - address p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,string,address,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - string memory p1, - address p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,string,address,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - string memory p1, - address p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,string,address,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - string memory p1, - address p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,string,address,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - bool p1, - uint256 p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3) - ); - } - - function log( - bool p0, - bool p1, - uint256 p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,bool,uint,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - bool p1, - uint256 p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3) - ); - } - - function log( - bool p0, - bool p1, - uint256 p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,bool,uint,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - bool p1, - string memory p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,bool,string,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - bool p1, - string memory p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,bool,string,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - bool p1, - string memory p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,bool,string,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - bool p1, - string memory p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,bool,string,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - bool p1, - bool p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3) - ); - } - - function log( - bool p0, - bool p1, - bool p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,bool,bool,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - bool p1, - bool p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3) - ); - } - - function log( - bool p0, - bool p1, - bool p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,bool,bool,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - bool p1, - address p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,bool,address,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - bool p1, - address p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,bool,address,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - bool p1, - address p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,bool,address,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - bool p1, - address p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,bool,address,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - address p1, - uint256 p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,address,uint,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - address p1, - uint256 p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,address,uint,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - address p1, - uint256 p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,address,uint,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - address p1, - uint256 p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,address,uint,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - address p1, - string memory p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,address,string,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - address p1, - string memory p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,address,string,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - address p1, - string memory p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,address,string,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - address p1, - string memory p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,address,string,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - address p1, - bool p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,address,bool,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - address p1, - bool p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,address,bool,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - address p1, - bool p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,address,bool,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - address p1, - bool p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,address,bool,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - address p1, - address p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,address,address,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - address p1, - address p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,address,address,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - address p1, - address p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,address,address,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - bool p0, - address p1, - address p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(bool,address,address,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - uint256 p1, - uint256 p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,uint,uint,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - uint256 p1, - uint256 p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,uint,uint,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - uint256 p1, - uint256 p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,uint,uint,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - uint256 p1, - uint256 p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,uint,uint,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - uint256 p1, - string memory p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,uint,string,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - uint256 p1, - string memory p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,uint,string,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - uint256 p1, - string memory p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,uint,string,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - uint256 p1, - string memory p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,uint,string,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - uint256 p1, - bool p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,uint,bool,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - uint256 p1, - bool p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,uint,bool,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - uint256 p1, - bool p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,uint,bool,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - uint256 p1, - bool p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,uint,bool,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - uint256 p1, - address p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,uint,address,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - uint256 p1, - address p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,uint,address,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - uint256 p1, - address p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,uint,address,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - uint256 p1, - address p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,uint,address,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - string memory p1, - uint256 p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,string,uint,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - string memory p1, - uint256 p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,string,uint,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - string memory p1, - uint256 p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,string,uint,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - string memory p1, - uint256 p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,string,uint,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - string memory p1, - string memory p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,string,string,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - string memory p1, - string memory p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,string,string,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - string memory p1, - string memory p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,string,string,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - string memory p1, - string memory p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,string,string,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - string memory p1, - bool p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,string,bool,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - string memory p1, - bool p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,string,bool,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - string memory p1, - bool p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,string,bool,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - string memory p1, - bool p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,string,bool,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - string memory p1, - address p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,string,address,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - string memory p1, - address p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,string,address,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - string memory p1, - address p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,string,address,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - string memory p1, - address p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,string,address,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - bool p1, - uint256 p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,bool,uint,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - bool p1, - uint256 p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,bool,uint,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - bool p1, - uint256 p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,bool,uint,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - bool p1, - uint256 p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,bool,uint,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - bool p1, - string memory p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,bool,string,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - bool p1, - string memory p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,bool,string,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - bool p1, - string memory p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,bool,string,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - bool p1, - string memory p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,bool,string,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - bool p1, - bool p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,bool,bool,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - bool p1, - bool p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,bool,bool,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - bool p1, - bool p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,bool,bool,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - bool p1, - bool p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,bool,bool,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - bool p1, - address p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,bool,address,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - bool p1, - address p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,bool,address,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - bool p1, - address p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,bool,address,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - bool p1, - address p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,bool,address,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - address p1, - uint256 p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,address,uint,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - address p1, - uint256 p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,address,uint,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - address p1, - uint256 p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,address,uint,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - address p1, - uint256 p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,address,uint,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - address p1, - string memory p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,address,string,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - address p1, - string memory p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,address,string,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - address p1, - string memory p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,address,string,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - address p1, - string memory p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,address,string,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - address p1, - bool p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,address,bool,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - address p1, - bool p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,address,bool,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - address p1, - bool p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,address,bool,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - address p1, - bool p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,address,bool,address)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - address p1, - address p2, - uint256 p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,address,address,uint)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - address p1, - address p2, - string memory p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,address,address,string)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - address p1, - address p2, - bool p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,address,address,bool)", - p0, - p1, - p2, - p3 - ) - ); - } - - function log( - address p0, - address p1, - address p2, - address p3 - ) internal view { - _sendLogPayload( - abi.encodeWithSignature( - "log(address,address,address,address)", - p0, - p1, - p2, - p3 - ) - ); - } -} diff --git a/contracts/bridge/foundry.toml b/foundry.toml similarity index 87% rename from contracts/bridge/foundry.toml rename to foundry.toml index 1aed7cdb..65f74e10 100644 --- a/contracts/bridge/foundry.toml +++ b/foundry.toml @@ -6,7 +6,6 @@ libs = ["lib"] # See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options remappings = [ - "forge-std/=lib/forge-std/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/", ] diff --git a/lib/forge-std b/lib/forge-std new file mode 160000 index 00000000..f73c73d2 --- /dev/null +++ b/lib/forge-std @@ -0,0 +1 @@ +Subproject commit f73c73d2018eb6a111f35e4dae7b4f27401e9421 diff --git a/lib/openzeppelin-contracts b/lib/openzeppelin-contracts new file mode 160000 index 00000000..a5445b0a --- /dev/null +++ b/lib/openzeppelin-contracts @@ -0,0 +1 @@ +Subproject commit a5445b0afb8b350417b6e6ab3160554967bc151f diff --git a/contracts/bridge/remappings.txt b/remappings.txt similarity index 100% rename from contracts/bridge/remappings.txt rename to remappings.txt diff --git a/contracts/bridge/script/bridge.s.sol b/script/Bridge.s.sol similarity index 100% rename from contracts/bridge/script/bridge.s.sol rename to script/Bridge.s.sol diff --git a/contracts/bridge/src/bridge.sol b/src/swap/Bridge.sol similarity index 98% rename from contracts/bridge/src/bridge.sol rename to src/swap/Bridge.sol index 0d4bc24a..9365ae5d 100644 --- a/contracts/bridge/src/bridge.sol +++ b/src/swap/Bridge.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.13; -import {BobWrappedBtc} from "./wrapped.sol"; +import {BobWrappedBtc} from "./Wrapped.sol"; contract Bridge { uint256 public number; diff --git a/contracts/bridge/src/btc_marketplace.sol b/src/swap/Btc_Marketplace.sol similarity index 100% rename from contracts/bridge/src/btc_marketplace.sol rename to src/swap/Btc_Marketplace.sol diff --git a/contracts/bridge/src/marketplace.sol b/src/swap/Marketplace.sol similarity index 100% rename from contracts/bridge/src/marketplace.sol rename to src/swap/Marketplace.sol diff --git a/contracts/bridge/src/wrapped.sol b/src/swap/Wrapped.sol similarity index 100% rename from contracts/bridge/src/wrapped.sol rename to src/swap/Wrapped.sol diff --git a/contracts/bridge/test/bridge.t.sol b/test/Bridge.t.sol similarity index 97% rename from contracts/bridge/test/bridge.t.sol rename to test/Bridge.t.sol index 7d4d8d16..aefc01e2 100644 --- a/contracts/bridge/test/bridge.t.sol +++ b/test/Bridge.t.sol @@ -5,8 +5,8 @@ using stdStorage for StdStorage; import {ERC20} from "openzeppelin-contracts/token/ERC20/ERC20.sol"; import {stdStorage, StdStorage, Test, console} from "forge-std/Test.sol"; -import {Bridge} from "../src/bridge.sol"; -import {Utilities} from "./utils/Utilities.sol"; +import {Bridge} from "../src/swap/Bridge.sol"; +import {Utilities} from "./Utilities.sol"; contract BridgeTest is Bridge, Test { Utilities internal utils; diff --git a/contracts/bridge/test/btc_marketplace.t.sol b/test/Btc_Marketplace.t.sol similarity index 97% rename from contracts/bridge/test/btc_marketplace.t.sol rename to test/Btc_Marketplace.t.sol index cf5581d4..698d5830 100644 --- a/contracts/bridge/test/btc_marketplace.t.sol +++ b/test/Btc_Marketplace.t.sol @@ -6,8 +6,8 @@ using stdStorage for StdStorage; import {ERC20} from "openzeppelin-contracts/token/ERC20/ERC20.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {stdStorage, StdStorage, Test, console} from "forge-std/Test.sol"; -import {BtcMarketPlace} from "../src/btc_marketplace.sol"; -import {Utilities} from "./utils/Utilities.sol"; +import {BtcMarketPlace} from "../src/swap/Btc_Marketplace.sol"; +import {Utilities} from "./Utilities.sol"; contract ArbitaryErc20 is ERC20, Ownable { constructor( diff --git a/contracts/bridge/test/marketplace.t.sol b/test/Marketplace.t.sol similarity index 96% rename from contracts/bridge/test/marketplace.t.sol rename to test/Marketplace.t.sol index 6d4c51cb..2db35be3 100644 --- a/contracts/bridge/test/marketplace.t.sol +++ b/test/Marketplace.t.sol @@ -6,8 +6,8 @@ using stdStorage for StdStorage; import {ERC20} from "openzeppelin-contracts/token/ERC20/ERC20.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {stdStorage, StdStorage, Test, console} from "forge-std/Test.sol"; -import {MarketPlace} from "../src/marketplace.sol"; -import {Utilities} from "./utils/Utilities.sol"; +import {MarketPlace} from "../src/swap/Marketplace.sol"; +import {Utilities} from "./Utilities.sol"; contract ArbitaryErc20 is ERC20, Ownable { constructor(string memory name_, string memory symbol_) ERC20(name_, symbol_) {} diff --git a/contracts/bridge/test/utils/Utilities.sol b/test/Utilities.sol similarity index 100% rename from contracts/bridge/test/utils/Utilities.sol rename to test/Utilities.sol