global solidity imports (#310)

* Switched to solc to v0.8.17
* Uses selective solidity symbol imports
This commit is contained in:
Dmitry Holodov
2023-02-18 18:15:24 -06:00
committed by GitHub
parent 943e95cc11
commit f65e5b6a77
12 changed files with 16 additions and 42 deletions

View File

@@ -31,7 +31,7 @@ var (
// UTContractMetaData contains all meta data concerning the UTContract contract.
var UTContractMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stamp\",\"type\":\"uint256\"}],\"name\":\"checkStamp\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
Bin: "0x608060405234801561001057600080fd5b506101da806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063d5f7a03a14610030575b600080fd5b61004a600480360381019061004591906100d4565b61004c565b005b8042111561008f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161008690610184565b60405180910390fd5b8060008190555050565b600080fd5b6000819050919050565b6100b18161009e565b81146100bc57600080fd5b50565b6000813590506100ce816100a8565b92915050565b6000602082840312156100ea576100e9610099565b5b60006100f8848285016100bf565b91505092915050565b600082825260208201905092915050565b7f626c6f636b2e74696d657374616d7020776173206e6f74206c6573732074686160008201527f6e207374616d7000000000000000000000000000000000000000000000000000602082015250565b600061016e602783610101565b915061017982610112565b604082019050919050565b6000602082019050818103600083015261019d81610161565b905091905056fea26469706673582212209a0d4c85b813d8ad048f4a05b0a2840830e60b06e288f80e63e62663416c510c64736f6c63430008100033",
Bin: "0x608060405234801561001057600080fd5b506101da806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063d5f7a03a14610030575b600080fd5b61004a600480360381019061004591906100d4565b61004c565b005b8042111561008f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161008690610184565b60405180910390fd5b8060008190555050565b600080fd5b6000819050919050565b6100b18161009e565b81146100bc57600080fd5b50565b6000813590506100ce816100a8565b92915050565b6000602082840312156100ea576100e9610099565b5b60006100f8848285016100bf565b91505092915050565b600082825260208201905092915050565b7f626c6f636b2e74696d657374616d7020776173206e6f74206c6573732074686160008201527f6e207374616d7000000000000000000000000000000000000000000000000000602082015250565b600061016e602783610101565b915061017982610112565b604082019050919050565b6000602082019050818103600083015261019d81610161565b905091905056fea26469706673582212203a38c90eb8e83a68408aca6e96e7fab891b951de030c24bcc8a3a67dbb87c7d764736f6c63430008110033",
}
// UTContractABI is the input ABI used to generate the binding from.

File diff suppressed because one or more lines are too long

View File

@@ -3,9 +3,9 @@
pragma solidity ^0.8.0 .0;
import "./IERC20.sol";
import "./IERC20Metadata.sol";
import "./Context.sol";
import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./IERC20Metadata.sol";
import {Context} from "./Context.sol";
/**
* @dev Implementation of the {IERC20} interface.

View File

@@ -2,7 +2,7 @@
pragma solidity ^0.8.0 .0;
import "./ERC20.sol";
import {ERC20} from "./ERC20.sol";
// mock class using ERC20
contract ERC20Mock is ERC20 {

View File

@@ -3,7 +3,7 @@
pragma solidity ^0.8.9 .0;
import "./Context.sol";
import {Context} from "./Context.sol";
/**
* @dev Context variant with ERC2771 support.

View File

@@ -3,7 +3,7 @@
pragma solidity ^0.8.0 .0;
import "./IERC20.sol";
import {IERC20} from "./IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.

View File

@@ -1,9 +1,9 @@
// SPDX-License-Identifier: LGPLv3
pragma solidity ^0.8.5 .0;
import "./ERC2771Context.sol";
import "./IERC20.sol";
import "./Secp256k1.sol";
import {ERC2771Context} from "./ERC2771Context.sol";
import {IERC20} from "./IERC20.sol";
import {Secp256k1} from "./Secp256k1.sol";
contract SwapFactory is ERC2771Context, Secp256k1 {
// Swap state is PENDING when the swap is first created and funded

View File

@@ -1,26 +0,0 @@
// SPDX-License-Identifier: LGPLv3
pragma solidity ^0.8.5 .0;
import "hardhat/console.sol";
contract TestUtils {
function uint2hexstr(uint256 i) public pure returns (string memory) {
if (i == 0) return "0";
uint256 j = i;
uint256 length;
while (j != 0) {
length++;
j = j >> 4;
}
uint256 mask = 15;
bytes memory bstr = new bytes(length);
uint256 k = length;
while (i != 0) {
uint256 curr = (i & mask);
bstr[--k] = curr > 9 ? bytes1(uint8(55 + curr)) : bytes1(uint8(48 + curr)); // 55 = 65 - 10
i = i >> 4;
}
return string(bstr);
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long