test-isol-01 0.0.20 → 0.0.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-isol-01",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "devDependencies": {
@@ -1,53 +0,0 @@
1
- // SPDX-License-Identifier: MIT
2
- pragma solidity ^0.8.0;
3
-
4
- import { IERC20, ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
5
- import { ERC20Wrapper } from "@openzeppelin/contracts/token/ERC20/extensions/ERC20Wrapper.sol";
6
- // import { ERC20TransferWithAuthorize } from "./ERC20TransferWithAuthorize.sol";
7
- import "../adapter/TransferAuthorize.sol";
8
- import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
9
-
10
- /**
11
- * @title WrapERC20TransferAuthorize
12
- * @notice ERC20 wrapper that allows wrapping any existing ERC20 token
13
- * and adds EIP-712 off-chain authorization functions.
14
- * @dev Inherits ERC20, ERC20Wrapper, and ERC20TransferWithAuthorize:
15
- * - ERC20: standard token functionality
16
- * - ERC20Wrapper: depositFor/withdrawTo underlying tokens
17
- * - ERC20TransferWithAuthorize: transferWithAuthorize and receiveWithAuthorize
18
- */
19
- abstract contract WrapERC20TransferAuthorize is ERC20, ERC20Wrapper, TransferAuthorize, ReentrancyGuard {
20
-
21
- /**
22
- * @notice Construct a wrapped ERC20 with authorization support
23
- * @param _underlyingToken Address of the ERC20 token to wrap. Users deposit this token to receive the wrapped token.
24
- * @param _name Name of the wrapped token (ERC20 metadata and EIP-712 domain name)
25
- * @param _symbol Symbol of the wrapped token (ERC20 metadata)
26
- * @param _version Version string for EIP-712 domain (e.g. "1")
27
- */
28
- constructor(
29
- address _underlyingToken,
30
- string memory _name,
31
- string memory _symbol,
32
- string memory _version
33
- )
34
- ERC20(_name, _symbol)
35
- ERC20Wrapper(IERC20(_underlyingToken))
36
- TransferAuthorize(_name, _version)
37
- {}
38
-
39
- /**
40
- * @notice Returns the token decimals
41
- * @dev Overrides both ERC20 and ERC20Wrapper decimals function
42
- * @return uint8 decimals of the token (usually matches underlying token)
43
- */
44
- function decimals()
45
- public
46
- view
47
- virtual
48
- override(ERC20, ERC20Wrapper)
49
- returns (uint8)
50
- {
51
- return super.decimals();
52
- }
53
- }