t-isol 0.0.1 → 0.0.2

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.
@@ -24,7 +24,7 @@ abstract contract ERC20xTransferWithAuthorize is ERC20, TransferAuthorize, Reent
24
24
  _mint(msg.sender, initialSupply * 10 ** decimals());
25
25
  }
26
26
 
27
- /// @notice Relayer-triggered transfer using an off-chain signature by `from`.
27
+ /// @notice Relayer-triggered transfer using an off-chain signature (auth) by `from`.
28
28
  /// @dev This allows anyone (a relayer) to submit the signed authorization on-chain.
29
29
  function transferWithAuthorize(
30
30
  address from,
@@ -33,7 +33,7 @@ abstract contract ERC20xTransferWithAuthorize is ERC20, TransferAuthorize, Reent
33
33
  uint256 validAfter,
34
34
  uint256 validBefore,
35
35
  bytes32 nonce,
36
- bytes calldata signature
36
+ bytes calldata auth
37
37
  ) external override nonReentrant {
38
38
  address signer = _verifyTransfer(
39
39
  from,
@@ -42,14 +42,14 @@ abstract contract ERC20xTransferWithAuthorize is ERC20, TransferAuthorize, Reent
42
42
  validAfter,
43
43
  validBefore,
44
44
  nonce,
45
- signature
45
+ auth
46
46
  );
47
- require(signer == from, "ERC20TransferAuthorize: invalid signature");
47
+ require(signer == from, "ERC20TransferAuthorize: invalid authorization signature");
48
48
  _useAuthorize(from, nonce);
49
49
  _transfer(from, to, value);
50
50
  }
51
51
 
52
- /// @notice Relayer-triggered transfer using an off-chain signature by `from`.
52
+ /// @notice Relayer-triggered transfer using an off-chain signature (auth) by `from`.
53
53
  /// @dev This allows anyone (a relayer) to submit the signed authorization on-chain.
54
54
  function transferFromWithAuthorize(
55
55
  address from,
@@ -58,7 +58,7 @@ abstract contract ERC20xTransferWithAuthorize is ERC20, TransferAuthorize, Reent
58
58
  uint256 validAfter,
59
59
  uint256 validBefore,
60
60
  bytes32 nonce,
61
- bytes calldata signature
61
+ bytes calldata auth
62
62
  ) external override nonReentrant {
63
63
  address signer = _verifyTransferFrom(
64
64
  from,
@@ -67,15 +67,15 @@ abstract contract ERC20xTransferWithAuthorize is ERC20, TransferAuthorize, Reent
67
67
  validAfter,
68
68
  validBefore,
69
69
  nonce,
70
- signature
70
+ auth
71
71
  );
72
- require(signer == from, "ERC20TransferAuthorize: invalid signature");
72
+ require(signer == from, "ERC20TransferAuthorize: invalid authorization signature");
73
73
  _useAuthorize(from, nonce);
74
74
  _spendAllowance(from, to, value);
75
75
  _transfer(from, to, value);
76
76
  }
77
77
 
78
- /// @notice Relayer-triggered transfer using an off-chain signature by `from`.
78
+ /// @notice Relayer-triggered transfer using an off-chain signature (auth) by `from`.
79
79
  /// @dev This allows anyone (a relayer) to submit the signed authorization on-chain.
80
80
  function burnWithAuthorize(
81
81
  address from,
@@ -84,7 +84,7 @@ abstract contract ERC20xTransferWithAuthorize is ERC20, TransferAuthorize, Reent
84
84
  uint256 validAfter,
85
85
  uint256 validBefore,
86
86
  bytes32 nonce,
87
- bytes calldata signature
87
+ bytes calldata auth
88
88
  ) external override nonReentrant {
89
89
  address signer = _verifyBurn(
90
90
  from,
@@ -93,9 +93,9 @@ abstract contract ERC20xTransferWithAuthorize is ERC20, TransferAuthorize, Reent
93
93
  validAfter,
94
94
  validBefore,
95
95
  nonce,
96
- signature
96
+ auth
97
97
  );
98
- require(signer == from, "ERC20TransferAuthorize: invalid signature");
98
+ require(signer == from, "ERC20TransferAuthorize: invalid authorization signature");
99
99
  _useAuthorize(from, nonce);
100
100
  _burn(from, value);
101
101
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "t-isol",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "devDependencies": {