@1inch/solidity-utils 3.1.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contracts/libraries/SafeERC20.sol +7 -7
- package/contracts/mocks/ERC20PermitMock.sol +1 -1
- package/contracts/mocks/TokenCustomDecimalsMock.sol +2 -2
- package/contracts/mocks/TokenMock.sol +1 -1
- package/dist/src/utils.d.ts +2 -1
- package/dist/src/utils.js +9 -1
- package/dist/src/utils.js.map +1 -1
- package/dist/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.d.ts +20 -0
- package/dist/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.js +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.js.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.d.ts +20 -0
- package/dist/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.js +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.js.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.d.ts +20 -0
- package/dist/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.js +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.js.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.d.ts +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.js +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.js.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/interfaces/index.d.ts +2 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/ERC20.d.ts +7 -35
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.d.ts +6 -6
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.d.ts +7 -35
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.d.ts +6 -6
- package/dist/typechain-types/@openzeppelin/contracts/utils/Nonces.d.ts +25 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/Nonces.js +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/Nonces.js.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/Strings.d.ts +20 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/Strings.js +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/Strings.js.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/cryptography/ECDSA.d.ts +20 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/cryptography/ECDSA.js +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/cryptography/ECDSA.js.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/cryptography/index.d.ts +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/index.d.ts +4 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/math/Math.d.ts +20 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/math/Math.js +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/math/Math.js.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/math/index.d.ts +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/math/index.js +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/math/index.js.map +1 -0
- package/dist/typechain-types/contracts/interfaces/IWETH.d.ts +6 -6
- package/dist/typechain-types/contracts/mocks/ERC20PermitMock.d.ts +7 -35
- package/dist/typechain-types/contracts/mocks/TokenCustomDecimalsMock.d.ts +7 -35
- package/dist/typechain-types/contracts/mocks/TokenMock.d.ts +7 -35
- package/dist/typechain-types/contracts/tests/mocks/DaiLikePermitMock.d.ts +7 -35
- package/dist/typechain-types/contracts/tests/mocks/SafeERC20Helper.sol/ERC20PermitNoRevertMock.d.ts +7 -35
- package/dist/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.d.ts +16 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.js +22 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.js.map +1 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.d.ts +83 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.js +122 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.js.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.d.ts +71 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.js +106 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.js.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.d.ts +83 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.js +123 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.js.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.d.ts +3 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.js +13 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.js.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/interfaces/index.d.ts +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/interfaces/index.js +3 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/interfaces/index.js.map +1 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.d.ts +65 -64
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.js +84 -82
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.js.map +1 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.d.ts +3 -3
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.js +3 -3
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.js.map +1 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit__factory.d.ts +119 -39
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit__factory.js +159 -51
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit__factory.js.map +1 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.d.ts +3 -3
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.js +3 -3
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.js.map +1 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/Nonces__factory.d.ts +33 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/Nonces__factory.js +55 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/Nonces__factory.js.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/ShortStrings__factory.d.ts +1 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/ShortStrings__factory.js +1 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/ShortStrings__factory.js.map +1 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/Strings__factory.d.ts +34 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/Strings__factory.js +56 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/Strings__factory.js.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/cryptography/ECDSA__factory.d.ts +42 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/cryptography/ECDSA__factory.js +67 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/cryptography/ECDSA__factory.js.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/cryptography/index.d.ts +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/cryptography/index.js +3 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/cryptography/index.js.map +1 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/index.d.ts +3 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/index.js +6 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/index.js.map +1 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/math/Math__factory.d.ts +26 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/math/Math__factory.js +45 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/math/Math__factory.js.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/math/index.d.ts +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/math/index.js +9 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/math/index.js.map +1 -0
- package/dist/typechain-types/factories/contracts/GasChecker__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/GasChecker__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/GasChecker__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/interfaces/IWETH__factory.d.ts +3 -3
- package/dist/typechain-types/factories/contracts/interfaces/IWETH__factory.js +3 -3
- package/dist/typechain-types/factories/contracts/interfaces/IWETH__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/libraries/AddressArray__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/libraries/AddressArray__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/libraries/AddressArray__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/libraries/RevertReasonParser__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/libraries/RevertReasonParser__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/libraries/RevertReasonParser__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/libraries/SafeERC20__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/libraries/SafeERC20__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/libraries/SafeERC20__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/libraries/UniERC20__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/libraries/UniERC20__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/libraries/UniERC20__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/mocks/ERC20PermitMock__factory.d.ts +136 -40
- package/dist/typechain-types/factories/contracts/mocks/ERC20PermitMock__factory.js +182 -52
- package/dist/typechain-types/factories/contracts/mocks/ERC20PermitMock__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/mocks/TokenCustomDecimalsMock__factory.d.ts +136 -40
- package/dist/typechain-types/factories/contracts/mocks/TokenCustomDecimalsMock__factory.js +182 -52
- package/dist/typechain-types/factories/contracts/mocks/TokenCustomDecimalsMock__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/mocks/TokenMock__factory.d.ts +84 -40
- package/dist/typechain-types/factories/contracts/mocks/TokenMock__factory.js +112 -52
- package/dist/typechain-types/factories/contracts/mocks/TokenMock__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/ECDSATest__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/ECDSATest__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/ECDSATest__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/RevertReasonParserTest__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/RevertReasonParserTest__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/RevertReasonParserTest__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/StringUtilTest__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/StringUtilTest__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/StringUtilTest__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/AddressArrayMock__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/AddressArrayMock__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/AddressArrayMock__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/AddressLibMock__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/AddressLibMock__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/AddressLibMock__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/AddressSetMock__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/AddressSetMock__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/AddressSetMock__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/DaiLikePermitMock__factory.d.ts +120 -40
- package/dist/typechain-types/factories/contracts/tests/mocks/DaiLikePermitMock__factory.js +160 -52
- package/dist/typechain-types/factories/contracts/tests/mocks/DaiLikePermitMock__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/ERC1271WalletMock__factory.d.ts +17 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/ERC1271WalletMock__factory.js +23 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/ERC1271WalletMock__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/EthReceiverMock__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/EthReceiverMock__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/EthReceiverMock__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/EthSenderMock__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/EthSenderMock__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/EthSenderMock__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/PermitableMock__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/PermitableMock__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/PermitableMock__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/ERC20NoReturnMock__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/ERC20NoReturnMock__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/ERC20NoReturnMock__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/ERC20PermitNoRevertMock__factory.d.ts +120 -40
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/ERC20PermitNoRevertMock__factory.js +160 -52
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/ERC20PermitNoRevertMock__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/ERC20ReturnFalseMock__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/ERC20ReturnFalseMock__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/ERC20ReturnFalseMock__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/ERC20ReturnTrueMock__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/ERC20ReturnTrueMock__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/ERC20ReturnTrueMock__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/ERC20ThroughZeroApprove__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/ERC20ThroughZeroApprove__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/ERC20ThroughZeroApprove__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/ERC20WithSafeBalance__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/ERC20WithSafeBalance__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/ERC20WithSafeBalance__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/Permit2ReturnTrueMock__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/Permit2ReturnTrueMock__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/Permit2ReturnTrueMock__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/SafeERC20Wrapper__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/SafeERC20Wrapper__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/SafeERC20Wrapper__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/SafeWETHWrapper__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/SafeWETHWrapper__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/SafeERC20Helper.sol/SafeWETHWrapper__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/UniERC20Helper.sol/ERC20Capitals__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/UniERC20Helper.sol/ERC20Capitals__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/UniERC20Helper.sol/ERC20Capitals__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/UniERC20Helper.sol/ERC20bytes32Capitals__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/UniERC20Helper.sol/ERC20bytes32Capitals__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/UniERC20Helper.sol/ERC20bytes32Capitals__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/UniERC20Helper.sol/ERC20bytes32__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/UniERC20Helper.sol/ERC20bytes32__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/UniERC20Helper.sol/ERC20bytes32__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/UniERC20Helper.sol/ETHBadReceiver__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/UniERC20Helper.sol/ETHBadReceiver__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/UniERC20Helper.sol/ETHBadReceiver__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/UniERC20Helper.sol/UniERC20Wrapper__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/UniERC20Helper.sol/UniERC20Wrapper__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/UniERC20Helper.sol/UniERC20Wrapper__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/WETH__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/WETH__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/WETH__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/WethReceiverMock__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/WethReceiverMock__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/WethReceiverMock__factory.js.map +1 -1
- package/dist/typechain-types/index.d.ts +14 -0
- package/dist/typechain-types/index.js +16 -2
- package/dist/typechain-types/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
pragma solidity ^0.8.0;
|
|
4
4
|
|
|
5
5
|
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
|
|
6
|
-
import "@openzeppelin/contracts/token/ERC20/extensions/
|
|
6
|
+
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol";
|
|
7
7
|
import "../interfaces/IDaiLikePermit.sol";
|
|
8
8
|
import "../interfaces/IPermit2.sol";
|
|
9
9
|
import "../interfaces/IWETH.sol";
|
|
@@ -59,7 +59,7 @@ library SafeERC20 {
|
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* @notice Attempts to safely transfer tokens from one address to another.
|
|
62
|
-
* @dev If permit2 is true, uses the Permit2 standard; otherwise uses the standard ERC20 transferFrom.
|
|
62
|
+
* @dev If permit2 is true, uses the Permit2 standard; otherwise uses the standard ERC20 transferFrom.
|
|
63
63
|
* Either requires `true` in return data, or requires target to be smart-contract and empty return data.
|
|
64
64
|
* @param token The IERC20 token contract from which the tokens will be transferred.
|
|
65
65
|
* @param from The address from which the tokens will be transferred.
|
|
@@ -238,7 +238,7 @@ library SafeERC20 {
|
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
/**
|
|
241
|
-
* @notice Attempts to execute the `permit` function on the provided token with custom owner and spender parameters.
|
|
241
|
+
* @notice Attempts to execute the `permit` function on the provided token with custom owner and spender parameters.
|
|
242
242
|
* Permit type is determined automatically based on permit calldata (IERC20Permit, IDaiLikePermit, and IPermit2).
|
|
243
243
|
* @dev Wraps `tryPermit` function and forwards revert reason if permit fails.
|
|
244
244
|
* @param token The IERC20 token to execute the permit function on.
|
|
@@ -265,9 +265,9 @@ library SafeERC20 {
|
|
|
265
265
|
* @notice The function attempts to call the permit function on a given ERC20 token.
|
|
266
266
|
* @dev The function is designed to support a variety of permit functions, namely: IERC20Permit, IDaiLikePermit, and IPermit2.
|
|
267
267
|
* It accommodates both Compact and Full formats of these permit types.
|
|
268
|
-
* Please note, it is expected that the `expiration` parameter for the compact Permit2 and the `deadline` parameter
|
|
268
|
+
* Please note, it is expected that the `expiration` parameter for the compact Permit2 and the `deadline` parameter
|
|
269
269
|
* for the compact Permit are to be incremented by one before invoking this function. This approach is motivated by
|
|
270
|
-
* gas efficiency considerations; as the unlimited expiration period is likely to be the most common scenario, and
|
|
270
|
+
* gas efficiency considerations; as the unlimited expiration period is likely to be the most common scenario, and
|
|
271
271
|
* zeros are cheaper to pass in terms of gas cost. Thus, callers should increment the expiration or deadline by one
|
|
272
272
|
* before invocation for optimized performance.
|
|
273
273
|
* @param token The address of the ERC20 token on which to call the permit function.
|
|
@@ -349,7 +349,7 @@ library SafeERC20 {
|
|
|
349
349
|
mstore(add(ptr, 0x24), token) // store token
|
|
350
350
|
|
|
351
351
|
calldatacopy(add(ptr, 0x50), permit.offset, 0x14) // store amount = copy permit.offset 0x00..0x13
|
|
352
|
-
// and(0xffffffffffff, ...) - conversion to uint48
|
|
352
|
+
// and(0xffffffffffff, ...) - conversion to uint48
|
|
353
353
|
mstore(add(ptr, 0x64), and(0xffffffffffff, sub(shr(224, calldataload(add(permit.offset, 0x14))), 1))) // store expiration = ((permit.offset 0x14..0x17 - 1) & 0xffffffffffff)
|
|
354
354
|
mstore(add(ptr, 0x84), shr(224, calldataload(add(permit.offset, 0x18)))) // store nonce = copy permit.offset 0x18..0x1b
|
|
355
355
|
mstore(add(ptr, 0xa4), spender) // store spender
|
|
@@ -383,7 +383,7 @@ library SafeERC20 {
|
|
|
383
383
|
* @param selector The function signature that is to be called on the token contract.
|
|
384
384
|
* @param to The address to which the token amount will be transferred.
|
|
385
385
|
* @param amount The token amount to be transferred.
|
|
386
|
-
* @return success A boolean indicating if the call was successful. Returns 'true' on success and 'false' on failure.
|
|
386
|
+
* @return success A boolean indicating if the call was successful. Returns 'true' on success and 'false' on failure.
|
|
387
387
|
* In case of success but no returned data, validates that the contract code exists.
|
|
388
388
|
* In case of returned data, ensures that it's a boolean `true`.
|
|
389
389
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
pragma solidity ^0.8.0;
|
|
4
4
|
|
|
5
|
-
import "@openzeppelin/contracts/token/ERC20/extensions/
|
|
5
|
+
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol";
|
|
6
6
|
import "./TokenMock.sol";
|
|
7
7
|
|
|
8
8
|
contract ERC20PermitMock is ERC20Permit, TokenMock {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
pragma solidity ^0.8.0;
|
|
4
4
|
|
|
5
5
|
import "@openzeppelin/contracts/access/Ownable.sol";
|
|
6
|
-
import "@openzeppelin/contracts/token/ERC20/extensions/
|
|
6
|
+
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol";
|
|
7
7
|
|
|
8
8
|
contract TokenCustomDecimalsMock is ERC20Permit, Ownable {
|
|
9
9
|
uint8 internal immutable _decimals;
|
|
@@ -13,7 +13,7 @@ contract TokenCustomDecimalsMock is ERC20Permit, Ownable {
|
|
|
13
13
|
string memory symbol,
|
|
14
14
|
uint256 amount,
|
|
15
15
|
uint8 decimals_
|
|
16
|
-
) ERC20(name, symbol) ERC20Permit(name) {
|
|
16
|
+
) ERC20(name, symbol) ERC20Permit(name) Ownable(msg.sender) {
|
|
17
17
|
_mint(msg.sender, amount);
|
|
18
18
|
_decimals = decimals_;
|
|
19
19
|
}
|
|
@@ -7,7 +7,7 @@ import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
|
|
|
7
7
|
|
|
8
8
|
contract TokenMock is ERC20, Ownable {
|
|
9
9
|
// solhint-disable-next-line no-empty-blocks
|
|
10
|
-
constructor(string memory name, string memory symbol) ERC20(name, symbol) {}
|
|
10
|
+
constructor(string memory name, string memory symbol) ERC20(name, symbol) Ownable(msg.sender) {}
|
|
11
11
|
|
|
12
12
|
function mint(address account, uint256 amount) external onlyOwner {
|
|
13
13
|
_mint(account, amount);
|
package/dist/src/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@nomicfoundation/hardhat-ethers';
|
|
2
|
-
import { BaseContract, BigNumberish, Contract, ContractTransactionReceipt, ContractTransactionResponse, JsonRpcProvider, Wallet } from 'ethers';
|
|
2
|
+
import { BaseContract, BigNumberish, BytesLike, Contract, ContractTransactionReceipt, ContractTransactionResponse, JsonRpcProvider, Signer, Wallet } from 'ethers';
|
|
3
3
|
import { DeployOptions, DeployResult } from 'hardhat-deploy/types';
|
|
4
4
|
import { constants } from './prelude';
|
|
5
5
|
interface DeployContractOptions {
|
|
@@ -21,6 +21,7 @@ interface DeployContractOptions {
|
|
|
21
21
|
export declare function deployAndGetContract({ contractName, constructorArgs, deployments, deployer, deploymentName, skipVerify, skipIfAlreadyDeployed, gasPrice, maxPriorityFeePerGas, maxFeePerGas, log, waitConfirmations, }: DeployContractOptions): Promise<Contract>;
|
|
22
22
|
export declare function timeIncreaseTo(seconds: number | string): Promise<void>;
|
|
23
23
|
export declare function deployContract(name: string, parameters?: Array<BigNumberish>): Promise<BaseContract>;
|
|
24
|
+
export declare function deployContractFromBytecode(abi: any[], bytecode: BytesLike, parameters?: Array<BigNumberish>, signer?: Signer): Promise<BaseContract>;
|
|
24
25
|
type Token = {
|
|
25
26
|
balanceOf: (address: string) => Promise<bigint>;
|
|
26
27
|
getAddress: () => Promise<string>;
|
package/dist/src/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.countInstructions = exports.signMessage = exports.fixSignature = exports.trackReceivedTokenAndTx = exports.deployContract = exports.timeIncreaseTo = exports.deployAndGetContract = void 0;
|
|
3
|
+
exports.countInstructions = exports.signMessage = exports.fixSignature = exports.trackReceivedTokenAndTx = exports.deployContractFromBytecode = exports.deployContract = exports.timeIncreaseTo = exports.deployAndGetContract = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
require("@nomicfoundation/hardhat-ethers"); // required to populate the HardhatRuntimeEnvironment with ethers
|
|
6
6
|
const hardhat_1 = tslib_1.__importStar(require("hardhat"));
|
|
@@ -51,6 +51,14 @@ async function deployContract(name, parameters = []) {
|
|
|
51
51
|
return instance;
|
|
52
52
|
}
|
|
53
53
|
exports.deployContract = deployContract;
|
|
54
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
55
|
+
async function deployContractFromBytecode(abi, bytecode, parameters = [], signer) {
|
|
56
|
+
const ContractFactory = await hardhat_1.ethers.getContractFactory(abi, bytecode, signer);
|
|
57
|
+
const instance = await ContractFactory.deploy(...parameters);
|
|
58
|
+
await instance.waitForDeployment();
|
|
59
|
+
return instance;
|
|
60
|
+
}
|
|
61
|
+
exports.deployContractFromBytecode = deployContractFromBytecode;
|
|
54
62
|
async function trackReceivedTokenAndTx(provider, token, wallet, txPromise, ...args) {
|
|
55
63
|
const tokenAddress = 'address' in token ? token.address : await token.getAddress();
|
|
56
64
|
const isETH = tokenAddress === prelude_1.constants.ZERO_ADDRESS || tokenAddress === prelude_1.constants.EEE_ADDRESS;
|
package/dist/src/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;;;AAAA,2CAAyC,CAAE,iEAAiE;AAC5G,2DAAsC;AACtC,sFAAgE;AAIhE,uCAAsC;AAkB/B,KAAK,UAA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IAChD,IAAI,CAAC,GAAG,EAAE,EAAE;QACR,CAAC,IAAI,EAAE,CAAC;KACX;IACD,MAAM,IAAI,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC5B,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;AAC1C,CAAC;AAVD,oCAUC;AAEM,KAAK,UAAU,WAAW,CAC7B,MAAsF,EACtF,aAAkC,IAAI;IAEtC,OAAO,YAAY,CAAC,MAAM,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC;AAC9D,CAAC;AALD,kCAKC;AAEM,KAAK,UAAU,iBAAiB;AACnC,8DAA8D;AAC9D,QAAyF,EACzF,MAAc,EACd,YAAsB;IAEtB,MAAM,KAAK,GAAG,MAAM,QAAQ,CAAC,IAAI,CAAC,wBAAwB,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEtE,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAElC,OAAO,YAAY,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QAC9B,OAAO,GAAG,CAAC,KAAK,CAAC,GAAG,GAAG,KAAK,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;IACjE,CAAC,CAAC,CAAC;AACP,CAAC;AAbD,8CAaC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { BaseContract, FunctionFragment, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener } from "../../../../common";
|
|
3
|
+
export interface IERC1155ErrorsInterface extends Interface {
|
|
4
|
+
}
|
|
5
|
+
export interface IERC1155Errors extends BaseContract {
|
|
6
|
+
connect(runner?: ContractRunner | null): IERC1155Errors;
|
|
7
|
+
waitForDeployment(): Promise<this>;
|
|
8
|
+
interface: IERC1155ErrorsInterface;
|
|
9
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
10
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
11
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
12
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
13
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
14
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
15
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
16
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
17
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
18
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
19
|
+
filters: {};
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IERC1155Errors.js","sourceRoot":"","sources":["../../../../../../typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.ts"],"names":[],"mappings":""}
|
package/dist/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { BaseContract, FunctionFragment, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener } from "../../../../common";
|
|
3
|
+
export interface IERC20ErrorsInterface extends Interface {
|
|
4
|
+
}
|
|
5
|
+
export interface IERC20Errors extends BaseContract {
|
|
6
|
+
connect(runner?: ContractRunner | null): IERC20Errors;
|
|
7
|
+
waitForDeployment(): Promise<this>;
|
|
8
|
+
interface: IERC20ErrorsInterface;
|
|
9
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
10
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
11
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
12
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
13
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
14
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
15
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
16
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
17
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
18
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
19
|
+
filters: {};
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IERC20Errors.js","sourceRoot":"","sources":["../../../../../../typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { BaseContract, FunctionFragment, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener } from "../../../../common";
|
|
3
|
+
export interface IERC721ErrorsInterface extends Interface {
|
|
4
|
+
}
|
|
5
|
+
export interface IERC721Errors extends BaseContract {
|
|
6
|
+
connect(runner?: ContractRunner | null): IERC721Errors;
|
|
7
|
+
waitForDeployment(): Promise<this>;
|
|
8
|
+
interface: IERC721ErrorsInterface;
|
|
9
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
10
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
11
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
12
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
13
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
14
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
15
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
16
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
17
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
18
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
19
|
+
filters: {};
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IERC721Errors.js","sourceRoot":"","sources":["../../../../../../typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.ts"],"names":[],"mappings":""}
|
package/dist/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../../common";
|
|
3
3
|
export interface ERC20Interface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "allowance" | "approve" | "balanceOf" | "decimals" | "
|
|
4
|
+
getFunction(nameOrSignature: "allowance" | "approve" | "balanceOf" | "decimals" | "name" | "symbol" | "totalSupply" | "transfer" | "transferFrom"): FunctionFragment;
|
|
5
5
|
getEvent(nameOrSignatureOrTopic: "Approval" | "Transfer"): EventFragment;
|
|
6
6
|
encodeFunctionData(functionFragment: "allowance", values: [AddressLike, AddressLike]): string;
|
|
7
7
|
encodeFunctionData(functionFragment: "approve", values: [AddressLike, BigNumberish]): string;
|
|
8
8
|
encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
|
|
9
9
|
encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
|
|
10
|
-
encodeFunctionData(functionFragment: "decreaseAllowance", values: [AddressLike, BigNumberish]): string;
|
|
11
|
-
encodeFunctionData(functionFragment: "increaseAllowance", values: [AddressLike, BigNumberish]): string;
|
|
12
10
|
encodeFunctionData(functionFragment: "name", values?: undefined): string;
|
|
13
11
|
encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
|
|
14
12
|
encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string;
|
|
@@ -18,8 +16,6 @@ export interface ERC20Interface extends Interface {
|
|
|
18
16
|
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
|
|
19
17
|
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
20
18
|
decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
|
|
21
|
-
decodeFunctionResult(functionFragment: "decreaseAllowance", data: BytesLike): Result;
|
|
22
|
-
decodeFunctionResult(functionFragment: "increaseAllowance", data: BytesLike): Result;
|
|
23
19
|
decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
|
|
24
20
|
decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
|
|
25
21
|
decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result;
|
|
@@ -81,37 +77,25 @@ export interface ERC20 extends BaseContract {
|
|
|
81
77
|
], "view">;
|
|
82
78
|
approve: TypedContractMethod<[
|
|
83
79
|
spender: AddressLike,
|
|
84
|
-
|
|
80
|
+
value: BigNumberish
|
|
85
81
|
], [
|
|
86
82
|
boolean
|
|
87
83
|
], "nonpayable">;
|
|
88
84
|
balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">;
|
|
89
85
|
decimals: TypedContractMethod<[], [bigint], "view">;
|
|
90
|
-
decreaseAllowance: TypedContractMethod<[
|
|
91
|
-
spender: AddressLike,
|
|
92
|
-
subtractedValue: BigNumberish
|
|
93
|
-
], [
|
|
94
|
-
boolean
|
|
95
|
-
], "nonpayable">;
|
|
96
|
-
increaseAllowance: TypedContractMethod<[
|
|
97
|
-
spender: AddressLike,
|
|
98
|
-
addedValue: BigNumberish
|
|
99
|
-
], [
|
|
100
|
-
boolean
|
|
101
|
-
], "nonpayable">;
|
|
102
86
|
name: TypedContractMethod<[], [string], "view">;
|
|
103
87
|
symbol: TypedContractMethod<[], [string], "view">;
|
|
104
88
|
totalSupply: TypedContractMethod<[], [bigint], "view">;
|
|
105
89
|
transfer: TypedContractMethod<[
|
|
106
90
|
to: AddressLike,
|
|
107
|
-
|
|
91
|
+
value: BigNumberish
|
|
108
92
|
], [
|
|
109
93
|
boolean
|
|
110
94
|
], "nonpayable">;
|
|
111
95
|
transferFrom: TypedContractMethod<[
|
|
112
96
|
from: AddressLike,
|
|
113
97
|
to: AddressLike,
|
|
114
|
-
|
|
98
|
+
value: BigNumberish
|
|
115
99
|
], [
|
|
116
100
|
boolean
|
|
117
101
|
], "nonpayable">;
|
|
@@ -124,37 +108,25 @@ export interface ERC20 extends BaseContract {
|
|
|
124
108
|
], "view">;
|
|
125
109
|
getFunction(nameOrSignature: "approve"): TypedContractMethod<[
|
|
126
110
|
spender: AddressLike,
|
|
127
|
-
|
|
111
|
+
value: BigNumberish
|
|
128
112
|
], [
|
|
129
113
|
boolean
|
|
130
114
|
], "nonpayable">;
|
|
131
115
|
getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[account: AddressLike], [bigint], "view">;
|
|
132
116
|
getFunction(nameOrSignature: "decimals"): TypedContractMethod<[], [bigint], "view">;
|
|
133
|
-
getFunction(nameOrSignature: "decreaseAllowance"): TypedContractMethod<[
|
|
134
|
-
spender: AddressLike,
|
|
135
|
-
subtractedValue: BigNumberish
|
|
136
|
-
], [
|
|
137
|
-
boolean
|
|
138
|
-
], "nonpayable">;
|
|
139
|
-
getFunction(nameOrSignature: "increaseAllowance"): TypedContractMethod<[
|
|
140
|
-
spender: AddressLike,
|
|
141
|
-
addedValue: BigNumberish
|
|
142
|
-
], [
|
|
143
|
-
boolean
|
|
144
|
-
], "nonpayable">;
|
|
145
117
|
getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">;
|
|
146
118
|
getFunction(nameOrSignature: "symbol"): TypedContractMethod<[], [string], "view">;
|
|
147
119
|
getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">;
|
|
148
120
|
getFunction(nameOrSignature: "transfer"): TypedContractMethod<[
|
|
149
121
|
to: AddressLike,
|
|
150
|
-
|
|
122
|
+
value: BigNumberish
|
|
151
123
|
], [
|
|
152
124
|
boolean
|
|
153
125
|
], "nonpayable">;
|
|
154
126
|
getFunction(nameOrSignature: "transferFrom"): TypedContractMethod<[
|
|
155
127
|
from: AddressLike,
|
|
156
128
|
to: AddressLike,
|
|
157
|
-
|
|
129
|
+
value: BigNumberish
|
|
158
130
|
], [
|
|
159
131
|
boolean
|
|
160
132
|
], "nonpayable">;
|
|
@@ -71,7 +71,7 @@ export interface IERC20 extends BaseContract {
|
|
|
71
71
|
], "view">;
|
|
72
72
|
approve: TypedContractMethod<[
|
|
73
73
|
spender: AddressLike,
|
|
74
|
-
|
|
74
|
+
value: BigNumberish
|
|
75
75
|
], [
|
|
76
76
|
boolean
|
|
77
77
|
], "nonpayable">;
|
|
@@ -79,14 +79,14 @@ export interface IERC20 extends BaseContract {
|
|
|
79
79
|
totalSupply: TypedContractMethod<[], [bigint], "view">;
|
|
80
80
|
transfer: TypedContractMethod<[
|
|
81
81
|
to: AddressLike,
|
|
82
|
-
|
|
82
|
+
value: BigNumberish
|
|
83
83
|
], [
|
|
84
84
|
boolean
|
|
85
85
|
], "nonpayable">;
|
|
86
86
|
transferFrom: TypedContractMethod<[
|
|
87
87
|
from: AddressLike,
|
|
88
88
|
to: AddressLike,
|
|
89
|
-
|
|
89
|
+
value: BigNumberish
|
|
90
90
|
], [
|
|
91
91
|
boolean
|
|
92
92
|
], "nonpayable">;
|
|
@@ -99,7 +99,7 @@ export interface IERC20 extends BaseContract {
|
|
|
99
99
|
], "view">;
|
|
100
100
|
getFunction(nameOrSignature: "approve"): TypedContractMethod<[
|
|
101
101
|
spender: AddressLike,
|
|
102
|
-
|
|
102
|
+
value: BigNumberish
|
|
103
103
|
], [
|
|
104
104
|
boolean
|
|
105
105
|
], "nonpayable">;
|
|
@@ -107,14 +107,14 @@ export interface IERC20 extends BaseContract {
|
|
|
107
107
|
getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">;
|
|
108
108
|
getFunction(nameOrSignature: "transfer"): TypedContractMethod<[
|
|
109
109
|
to: AddressLike,
|
|
110
|
-
|
|
110
|
+
value: BigNumberish
|
|
111
111
|
], [
|
|
112
112
|
boolean
|
|
113
113
|
], "nonpayable">;
|
|
114
114
|
getFunction(nameOrSignature: "transferFrom"): TypedContractMethod<[
|
|
115
115
|
from: AddressLike,
|
|
116
116
|
to: AddressLike,
|
|
117
|
-
|
|
117
|
+
value: BigNumberish
|
|
118
118
|
], [
|
|
119
119
|
boolean
|
|
120
120
|
], "nonpayable">;
|
package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.d.ts
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../../../common";
|
|
3
3
|
export interface ERC20PermitInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "DOMAIN_SEPARATOR" | "allowance" | "approve" | "balanceOf" | "decimals" | "
|
|
4
|
+
getFunction(nameOrSignature: "DOMAIN_SEPARATOR" | "allowance" | "approve" | "balanceOf" | "decimals" | "eip712Domain" | "name" | "nonces" | "permit" | "symbol" | "totalSupply" | "transfer" | "transferFrom"): FunctionFragment;
|
|
5
5
|
getEvent(nameOrSignatureOrTopic: "Approval" | "EIP712DomainChanged" | "Transfer"): EventFragment;
|
|
6
6
|
encodeFunctionData(functionFragment: "DOMAIN_SEPARATOR", values?: undefined): string;
|
|
7
7
|
encodeFunctionData(functionFragment: "allowance", values: [AddressLike, AddressLike]): string;
|
|
8
8
|
encodeFunctionData(functionFragment: "approve", values: [AddressLike, BigNumberish]): string;
|
|
9
9
|
encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
|
|
10
10
|
encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
|
|
11
|
-
encodeFunctionData(functionFragment: "decreaseAllowance", values: [AddressLike, BigNumberish]): string;
|
|
12
11
|
encodeFunctionData(functionFragment: "eip712Domain", values?: undefined): string;
|
|
13
|
-
encodeFunctionData(functionFragment: "increaseAllowance", values: [AddressLike, BigNumberish]): string;
|
|
14
12
|
encodeFunctionData(functionFragment: "name", values?: undefined): string;
|
|
15
13
|
encodeFunctionData(functionFragment: "nonces", values: [AddressLike]): string;
|
|
16
14
|
encodeFunctionData(functionFragment: "permit", values: [
|
|
@@ -31,9 +29,7 @@ export interface ERC20PermitInterface extends Interface {
|
|
|
31
29
|
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
|
|
32
30
|
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
33
31
|
decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
|
|
34
|
-
decodeFunctionResult(functionFragment: "decreaseAllowance", data: BytesLike): Result;
|
|
35
32
|
decodeFunctionResult(functionFragment: "eip712Domain", data: BytesLike): Result;
|
|
36
|
-
decodeFunctionResult(functionFragment: "increaseAllowance", data: BytesLike): Result;
|
|
37
33
|
decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
|
|
38
34
|
decodeFunctionResult(functionFragment: "nonces", data: BytesLike): Result;
|
|
39
35
|
decodeFunctionResult(functionFragment: "permit", data: BytesLike): Result;
|
|
@@ -108,18 +104,12 @@ export interface ERC20Permit extends BaseContract {
|
|
|
108
104
|
], "view">;
|
|
109
105
|
approve: TypedContractMethod<[
|
|
110
106
|
spender: AddressLike,
|
|
111
|
-
|
|
107
|
+
value: BigNumberish
|
|
112
108
|
], [
|
|
113
109
|
boolean
|
|
114
110
|
], "nonpayable">;
|
|
115
111
|
balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">;
|
|
116
112
|
decimals: TypedContractMethod<[], [bigint], "view">;
|
|
117
|
-
decreaseAllowance: TypedContractMethod<[
|
|
118
|
-
spender: AddressLike,
|
|
119
|
-
subtractedValue: BigNumberish
|
|
120
|
-
], [
|
|
121
|
-
boolean
|
|
122
|
-
], "nonpayable">;
|
|
123
113
|
eip712Domain: TypedContractMethod<[
|
|
124
114
|
], [
|
|
125
115
|
[
|
|
@@ -140,12 +130,6 @@ export interface ERC20Permit extends BaseContract {
|
|
|
140
130
|
extensions: bigint[];
|
|
141
131
|
}
|
|
142
132
|
], "view">;
|
|
143
|
-
increaseAllowance: TypedContractMethod<[
|
|
144
|
-
spender: AddressLike,
|
|
145
|
-
addedValue: BigNumberish
|
|
146
|
-
], [
|
|
147
|
-
boolean
|
|
148
|
-
], "nonpayable">;
|
|
149
133
|
name: TypedContractMethod<[], [string], "view">;
|
|
150
134
|
nonces: TypedContractMethod<[owner: AddressLike], [bigint], "view">;
|
|
151
135
|
permit: TypedContractMethod<[
|
|
@@ -163,14 +147,14 @@ export interface ERC20Permit extends BaseContract {
|
|
|
163
147
|
totalSupply: TypedContractMethod<[], [bigint], "view">;
|
|
164
148
|
transfer: TypedContractMethod<[
|
|
165
149
|
to: AddressLike,
|
|
166
|
-
|
|
150
|
+
value: BigNumberish
|
|
167
151
|
], [
|
|
168
152
|
boolean
|
|
169
153
|
], "nonpayable">;
|
|
170
154
|
transferFrom: TypedContractMethod<[
|
|
171
155
|
from: AddressLike,
|
|
172
156
|
to: AddressLike,
|
|
173
|
-
|
|
157
|
+
value: BigNumberish
|
|
174
158
|
], [
|
|
175
159
|
boolean
|
|
176
160
|
], "nonpayable">;
|
|
@@ -184,18 +168,12 @@ export interface ERC20Permit extends BaseContract {
|
|
|
184
168
|
], "view">;
|
|
185
169
|
getFunction(nameOrSignature: "approve"): TypedContractMethod<[
|
|
186
170
|
spender: AddressLike,
|
|
187
|
-
|
|
171
|
+
value: BigNumberish
|
|
188
172
|
], [
|
|
189
173
|
boolean
|
|
190
174
|
], "nonpayable">;
|
|
191
175
|
getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[account: AddressLike], [bigint], "view">;
|
|
192
176
|
getFunction(nameOrSignature: "decimals"): TypedContractMethod<[], [bigint], "view">;
|
|
193
|
-
getFunction(nameOrSignature: "decreaseAllowance"): TypedContractMethod<[
|
|
194
|
-
spender: AddressLike,
|
|
195
|
-
subtractedValue: BigNumberish
|
|
196
|
-
], [
|
|
197
|
-
boolean
|
|
198
|
-
], "nonpayable">;
|
|
199
177
|
getFunction(nameOrSignature: "eip712Domain"): TypedContractMethod<[
|
|
200
178
|
], [
|
|
201
179
|
[
|
|
@@ -216,12 +194,6 @@ export interface ERC20Permit extends BaseContract {
|
|
|
216
194
|
extensions: bigint[];
|
|
217
195
|
}
|
|
218
196
|
], "view">;
|
|
219
|
-
getFunction(nameOrSignature: "increaseAllowance"): TypedContractMethod<[
|
|
220
|
-
spender: AddressLike,
|
|
221
|
-
addedValue: BigNumberish
|
|
222
|
-
], [
|
|
223
|
-
boolean
|
|
224
|
-
], "nonpayable">;
|
|
225
197
|
getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">;
|
|
226
198
|
getFunction(nameOrSignature: "nonces"): TypedContractMethod<[owner: AddressLike], [bigint], "view">;
|
|
227
199
|
getFunction(nameOrSignature: "permit"): TypedContractMethod<[
|
|
@@ -239,14 +211,14 @@ export interface ERC20Permit extends BaseContract {
|
|
|
239
211
|
getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">;
|
|
240
212
|
getFunction(nameOrSignature: "transfer"): TypedContractMethod<[
|
|
241
213
|
to: AddressLike,
|
|
242
|
-
|
|
214
|
+
value: BigNumberish
|
|
243
215
|
], [
|
|
244
216
|
boolean
|
|
245
217
|
], "nonpayable">;
|
|
246
218
|
getFunction(nameOrSignature: "transferFrom"): TypedContractMethod<[
|
|
247
219
|
from: AddressLike,
|
|
248
220
|
to: AddressLike,
|
|
249
|
-
|
|
221
|
+
value: BigNumberish
|
|
250
222
|
], [
|
|
251
223
|
boolean
|
|
252
224
|
], "nonpayable">;
|
package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.d.ts
CHANGED
|
@@ -77,7 +77,7 @@ export interface IERC20Metadata extends BaseContract {
|
|
|
77
77
|
], "view">;
|
|
78
78
|
approve: TypedContractMethod<[
|
|
79
79
|
spender: AddressLike,
|
|
80
|
-
|
|
80
|
+
value: BigNumberish
|
|
81
81
|
], [
|
|
82
82
|
boolean
|
|
83
83
|
], "nonpayable">;
|
|
@@ -88,14 +88,14 @@ export interface IERC20Metadata extends BaseContract {
|
|
|
88
88
|
totalSupply: TypedContractMethod<[], [bigint], "view">;
|
|
89
89
|
transfer: TypedContractMethod<[
|
|
90
90
|
to: AddressLike,
|
|
91
|
-
|
|
91
|
+
value: BigNumberish
|
|
92
92
|
], [
|
|
93
93
|
boolean
|
|
94
94
|
], "nonpayable">;
|
|
95
95
|
transferFrom: TypedContractMethod<[
|
|
96
96
|
from: AddressLike,
|
|
97
97
|
to: AddressLike,
|
|
98
|
-
|
|
98
|
+
value: BigNumberish
|
|
99
99
|
], [
|
|
100
100
|
boolean
|
|
101
101
|
], "nonpayable">;
|
|
@@ -108,7 +108,7 @@ export interface IERC20Metadata extends BaseContract {
|
|
|
108
108
|
], "view">;
|
|
109
109
|
getFunction(nameOrSignature: "approve"): TypedContractMethod<[
|
|
110
110
|
spender: AddressLike,
|
|
111
|
-
|
|
111
|
+
value: BigNumberish
|
|
112
112
|
], [
|
|
113
113
|
boolean
|
|
114
114
|
], "nonpayable">;
|
|
@@ -119,14 +119,14 @@ export interface IERC20Metadata extends BaseContract {
|
|
|
119
119
|
getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">;
|
|
120
120
|
getFunction(nameOrSignature: "transfer"): TypedContractMethod<[
|
|
121
121
|
to: AddressLike,
|
|
122
|
-
|
|
122
|
+
value: BigNumberish
|
|
123
123
|
], [
|
|
124
124
|
boolean
|
|
125
125
|
], "nonpayable">;
|
|
126
126
|
getFunction(nameOrSignature: "transferFrom"): TypedContractMethod<[
|
|
127
127
|
from: AddressLike,
|
|
128
128
|
to: AddressLike,
|
|
129
|
-
|
|
129
|
+
value: BigNumberish
|
|
130
130
|
], [
|
|
131
131
|
boolean
|
|
132
132
|
], "nonpayable">;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
|
|
3
|
+
export interface NoncesInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "nonces"): FunctionFragment;
|
|
5
|
+
encodeFunctionData(functionFragment: "nonces", values: [AddressLike]): string;
|
|
6
|
+
decodeFunctionResult(functionFragment: "nonces", data: BytesLike): Result;
|
|
7
|
+
}
|
|
8
|
+
export interface Nonces extends BaseContract {
|
|
9
|
+
connect(runner?: ContractRunner | null): Nonces;
|
|
10
|
+
waitForDeployment(): Promise<this>;
|
|
11
|
+
interface: NoncesInterface;
|
|
12
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
13
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
14
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
15
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
16
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
17
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
18
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
19
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
20
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
21
|
+
nonces: TypedContractMethod<[owner: AddressLike], [bigint], "view">;
|
|
22
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
23
|
+
getFunction(nameOrSignature: "nonces"): TypedContractMethod<[owner: AddressLike], [bigint], "view">;
|
|
24
|
+
filters: {};
|
|
25
|
+
}
|