generated from ZumZoom/solidity-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from 1inch/SC-1057-Integrate-ERC20True-token
[SC-1057] Integrate ERC20True token
- Loading branch information
Showing
10 changed files
with
68 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
EscrowFactoryTest:testFuzz_DeployCloneForMaker(bytes32,uint56,uint56) (runs: 256, μ: 234214, ~: 237929) | ||
EscrowFactoryTest:testFuzz_DeployCloneForTaker(bytes32,uint56) (runs: 256, μ: 180290, ~: 183214) | ||
EscrowFactoryTest:test_NoDeploymentForNotResolver() (gas: 103500) | ||
EscrowFactoryTest:test_NoInsufficientBalanceDeploymentForMaker() (gas: 185378) | ||
EscrowFactoryTest:testFuzz_DeployCloneForMaker(bytes32,uint56,uint56) (runs: 256, μ: 234430, ~: 238022) | ||
EscrowFactoryTest:testFuzz_DeployCloneForTaker(bytes32,uint56) (runs: 256, μ: 180420, ~: 183244) | ||
EscrowFactoryTest:test_NoDeploymentForNotResolver() (gas: 103566) | ||
EscrowFactoryTest:test_NoInsufficientBalanceDeploymentForMaker() (gas: 185444) | ||
EscrowFactoryTest:test_NoInsufficientBalanceDeploymentForTaker() (gas: 27693) | ||
EscrowFactoryTest:test_NoInsufficientBalanceNativeDeploymentForMaker() (gas: 151028) | ||
EscrowFactoryTest:test_NoInsufficientBalanceNativeDeploymentForMaker() (gas: 151094) | ||
EscrowFactoryTest:test_NoInsufficientBalanceNativeDeploymentForTaker() (gas: 32357) | ||
EscrowFactoryTest:test_NoUnsafeDeploymentForTaker() (gas: 34955) | ||
EscrowTest:test_CancelDst() (gas: 165227) | ||
EscrowTest:test_CancelPublicSrc() (gas: 229725) | ||
EscrowTest:test_CancelResolverSrc() (gas: 230817) | ||
EscrowTest:test_NoAnyoneCancelDuringResolverCancelSrc() (gas: 228089) | ||
EscrowTest:test_CancelDst() (gas: 165239) | ||
EscrowTest:test_CancelPublicSrc() (gas: 229949) | ||
EscrowTest:test_CancelResolverSrc() (gas: 231041) | ||
EscrowTest:test_NoAnyoneCancelDuringResolverCancelSrc() (gas: 228304) | ||
EscrowTest:test_NoCancelByAnyoneDst() (gas: 172973) | ||
EscrowTest:test_NoCancelDuringPublicWithdrawalDst() (gas: 170754) | ||
EscrowTest:test_NoCancelDuringResolverWithdrawalDst() (gas: 168458) | ||
EscrowTest:test_NoCancelDuringWithdrawalSrc() (gas: 225460) | ||
EscrowTest:test_NoCancelDuringWithdrawalSrc() (gas: 225675) | ||
EscrowTest:test_NoFailedNativeTokenTransferCancelDst() (gas: 183608) | ||
EscrowTest:test_NoFailedNativeTokenTransferCancelSrc() (gas: 245475) | ||
EscrowTest:test_NoFailedNativeTokenTransferCancelSrc() (gas: 245690) | ||
EscrowTest:test_NoFailedNativeTokenTransferWithdrawalDst() (gas: 203498) | ||
EscrowTest:test_NoFailedNativeTokenTransferWithdrawalDstNative() (gas: 134571) | ||
EscrowTest:test_NoFailedNativeTokenTransferWithdrawalSrc() (gas: 259717) | ||
EscrowTest:test_NoRescueFundsByAnyoneDst() (gas: 222089) | ||
EscrowTest:test_NoRescueFundsByAnyoneSrc() (gas: 270170) | ||
EscrowTest:test_NoRescueFundsEarlierDst() (gas: 221951) | ||
EscrowTest:test_NoRescueFundsEarlierSrc() (gas: 270464) | ||
EscrowTest:test_NoWithdrawalByAnyone() (gas: 223242) | ||
EscrowTest:test_NoFailedNativeTokenTransferWithdrawalSrc() (gas: 259932) | ||
EscrowTest:test_NoRescueFundsByAnyoneDst() (gas: 222092) | ||
EscrowTest:test_NoRescueFundsByAnyoneSrc() (gas: 270388) | ||
EscrowTest:test_NoRescueFundsEarlierDst() (gas: 221954) | ||
EscrowTest:test_NoRescueFundsEarlierSrc() (gas: 270682) | ||
EscrowTest:test_NoWithdrawalByAnyone() (gas: 223457) | ||
EscrowTest:test_NoWithdrawalByNonResolverDst() (gas: 168588) | ||
EscrowTest:test_NoWithdrawalDuringFinalityLockDst() (gas: 165648) | ||
EscrowTest:test_NoWithdrawalDuringFinalityLockSrc() (gas: 224115) | ||
EscrowTest:test_NoWithdrawalDuringFinalityLockSrc() (gas: 224330) | ||
EscrowTest:test_NoWithdrawalWithWrongSecretDst() (gas: 169493) | ||
EscrowTest:test_NoWithdrawalWithWrongSecretSrc() (gas: 226502) | ||
EscrowTest:test_RescueFundsDst() (gas: 200719) | ||
EscrowTest:test_RescueFundsDstNative() (gas: 229181) | ||
EscrowTest:test_RescueFundsSrc() (gas: 253427) | ||
EscrowTest:test_RescueFundsSrcNative() (gas: 255609) | ||
EscrowTest:test_WithdrawByAnyoneDst() (gas: 187702) | ||
EscrowTest:test_WithdrawByResolverDst() (gas: 186485) | ||
EscrowTest:test_WithdrawByResolverDstNative() (gas: 146512) | ||
EscrowTest:test_WithdrawByResolverPublicDst() (gas: 188070) | ||
EscrowTest:test_WithdrawSrc() (gas: 246147) | ||
IntegrationEscrowFactoryTest:testFuzz_DeployCloneForMakerInt(bytes32,uint56,uint56) (runs: 256, μ: 296592, ~: 299936) | ||
IntegrationEscrowFactoryTest:test_NoInsufficientBalanceDeploymentForMakerInt() (gas: 281536) | ||
TimelocksLibTest:test_getStartTimestamps() (gas: 15326) | ||
EscrowTest:test_NoWithdrawalWithWrongSecretSrc() (gas: 226717) | ||
EscrowTest:test_RescueFundsDst() (gas: 200728) | ||
EscrowTest:test_RescueFundsDstNative() (gas: 229187) | ||
EscrowTest:test_RescueFundsSrc() (gas: 253648) | ||
EscrowTest:test_RescueFundsSrcNative() (gas: 255833) | ||
EscrowTest:test_WithdrawByAnyoneDst() (gas: 187714) | ||
EscrowTest:test_WithdrawByResolverDst() (gas: 186497) | ||
EscrowTest:test_WithdrawByResolverDstNative() (gas: 146521) | ||
EscrowTest:test_WithdrawByResolverPublicDst() (gas: 188082) | ||
EscrowTest:test_WithdrawSrc() (gas: 246371) | ||
IntegrationEscrowFactoryTest:testFuzz_DeployCloneForMakerInt(bytes32,uint56,uint56) (runs: 256, μ: 416624, ~: 419968) | ||
IntegrationEscrowFactoryTest:test_NoInsufficientBalanceDeploymentForMakerInt() (gas: 401360) | ||
TimelocksLibTest:test_getStartTimestamps() (gas: 15344) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
ignore: | ||
- "test" | ||
- "contracts/mocks" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity 0.8.23; | ||
|
||
contract ERC20True { | ||
function transfer(address, uint256) public pure returns (bool) { | ||
return true; | ||
} | ||
|
||
function transferFrom(address, address, uint256) public pure returns (bool) { | ||
return true; | ||
} | ||
|
||
function approve(address, uint256) public pure returns (bool) { | ||
return true; | ||
} | ||
|
||
function balanceOf(address) public pure returns (uint256) { | ||
return 0; | ||
} | ||
|
||
function allowance(address, address) public pure returns (uint256) { | ||
return 0; | ||
} | ||
} |
Submodule forge-std
updated
8 files
+1 −0 | .gitattributes | |
+1 −1 | package.json | |
+635 −0 | scripts/vm.py | |
+5 −1 | src/StdChains.sol | |
+750 −484 | src/Vm.sol | |
+3 −1 | test/StdError.t.sol | |
+2 −2 | test/StdUtils.t.sol | |
+2 −2 | test/Vm.t.sol |
Submodule limit-order-protocol
updated
7 files
+19 −1 | contracts/LimitOrderProtocol.sol | |
+5 −23 | contracts/OrderMixin.sol | |
+0 −7 | contracts/interfaces/IOrderMixin.sol | |
+1 −1 | hardhat.config.js | |
+14 −15 | package.json | |
+35 −2 | test/LimitOrderProtocol.js | |
+1,709 −1,600 | yarn.lock |
Submodule openzeppelin-contracts
updated
306 files
Submodule solidity-utils
updated
36 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters