@lukso/lsp7-contracts 0.17.3 → 0.18.1
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/README.md +69 -24
- package/artifacts/IAccessControlExtended.json +1 -1
- package/artifacts/ILSP7CappedBalance.json +1 -1
- package/artifacts/ILSP7CappedSupply.json +1 -1
- package/artifacts/ILSP7DigitalAsset.json +1 -1
- package/artifacts/ILSP7Mintable.json +1 -1
- package/artifacts/ILSP7NonTransferable.json +8 -2
- package/artifacts/ILSP7Revokable.json +38 -1
- package/artifacts/LSP7Burnable.json +1 -1
- package/artifacts/LSP7BurnableInitAbstract.json +1 -1
- package/artifacts/LSP7CappedBalanceAbstract.json +1 -1
- package/artifacts/LSP7CappedBalanceInitAbstract.json +1 -1
- package/artifacts/LSP7CappedSupplyAbstract.json +1 -1
- package/artifacts/LSP7CappedSupplyInitAbstract.json +1 -1
- package/artifacts/LSP7CustomizableToken.json +63 -20
- package/artifacts/LSP7CustomizableTokenInit.json +59 -16
- package/artifacts/LSP7DigitalAsset.json +1 -1
- package/artifacts/LSP7DigitalAssetInitAbstract.json +1 -1
- package/artifacts/LSP7Mintable.json +1 -1
- package/artifacts/LSP7MintableAbstract.json +1 -1
- package/artifacts/LSP7MintableInit.json +1 -1
- package/artifacts/LSP7MintableInitAbstract.json +1 -1
- package/artifacts/LSP7NonTransferableAbstract.json +20 -14
- package/artifacts/LSP7NonTransferableInitAbstract.json +20 -14
- package/artifacts/LSP7RevokableAbstract.json +38 -1
- package/artifacts/LSP7RevokableInitAbstract.json +38 -1
- package/artifacts/LSP7Votes.json +1 -1
- package/artifacts/LSP7VotesInitAbstract.json +1 -1
- package/contracts/extensions/LSP7NonTransferable/ILSP7NonTransferable.sol +10 -4
- package/contracts/extensions/LSP7NonTransferable/LSP7NonTransferableAbstract.sol +17 -8
- package/contracts/extensions/LSP7NonTransferable/LSP7NonTransferableInitAbstract.sol +17 -8
- package/contracts/extensions/LSP7Revokable/ILSP7Revokable.sol +9 -0
- package/contracts/extensions/LSP7Revokable/LSP7RevokableAbstract.sol +8 -0
- package/contracts/extensions/LSP7Revokable/LSP7RevokableInitAbstract.sol +8 -0
- package/dist/abi.cjs +169 -29
- package/dist/abi.d.cts +216 -41
- package/dist/abi.d.mts +216 -41
- package/dist/abi.d.ts +216 -41
- package/dist/abi.mjs +169 -29
- package/package.json +1 -1
|
@@ -509,6 +509,12 @@
|
|
|
509
509
|
{
|
|
510
510
|
"anonymous": false,
|
|
511
511
|
"inputs": [
|
|
512
|
+
{
|
|
513
|
+
"indexed": true,
|
|
514
|
+
"internalType": "bool",
|
|
515
|
+
"name": "nonTransferabilityEnabled",
|
|
516
|
+
"type": "bool"
|
|
517
|
+
},
|
|
512
518
|
{
|
|
513
519
|
"indexed": true,
|
|
514
520
|
"internalType": "uint256",
|
|
@@ -904,6 +910,19 @@
|
|
|
904
910
|
"stateMutability": "nonpayable",
|
|
905
911
|
"type": "function"
|
|
906
912
|
},
|
|
913
|
+
{
|
|
914
|
+
"inputs": [],
|
|
915
|
+
"name": "nonTransferabilityEnabled",
|
|
916
|
+
"outputs": [
|
|
917
|
+
{
|
|
918
|
+
"internalType": "bool",
|
|
919
|
+
"name": "",
|
|
920
|
+
"type": "bool"
|
|
921
|
+
}
|
|
922
|
+
],
|
|
923
|
+
"stateMutability": "view",
|
|
924
|
+
"type": "function"
|
|
925
|
+
},
|
|
907
926
|
{
|
|
908
927
|
"inputs": [],
|
|
909
928
|
"name": "owner",
|
|
@@ -1159,19 +1178,6 @@
|
|
|
1159
1178
|
"stateMutability": "nonpayable",
|
|
1160
1179
|
"type": "function"
|
|
1161
1180
|
},
|
|
1162
|
-
{
|
|
1163
|
-
"inputs": [],
|
|
1164
|
-
"name": "transferLockEnabled",
|
|
1165
|
-
"outputs": [
|
|
1166
|
-
{
|
|
1167
|
-
"internalType": "bool",
|
|
1168
|
-
"name": "",
|
|
1169
|
-
"type": "bool"
|
|
1170
|
-
}
|
|
1171
|
-
],
|
|
1172
|
-
"stateMutability": "view",
|
|
1173
|
-
"type": "function"
|
|
1174
|
-
},
|
|
1175
1181
|
{
|
|
1176
1182
|
"inputs": [],
|
|
1177
1183
|
"name": "transferLockEnd",
|
|
@@ -1240,5 +1246,5 @@
|
|
|
1240
1246
|
"deployedLinkReferences": {},
|
|
1241
1247
|
"immutableReferences": {},
|
|
1242
1248
|
"inputSourceName": "project/contracts/extensions/LSP7NonTransferable/LSP7NonTransferableInitAbstract.sol",
|
|
1243
|
-
"buildInfoId": "solc-0_8_28-
|
|
1249
|
+
"buildInfoId": "solc-0_8_28-740a1678d8e3d6f146988df539981a38397b88c1"
|
|
1244
1250
|
}
|
|
@@ -453,6 +453,43 @@
|
|
|
453
453
|
"name": "RoleRevoked",
|
|
454
454
|
"type": "event"
|
|
455
455
|
},
|
|
456
|
+
{
|
|
457
|
+
"anonymous": false,
|
|
458
|
+
"inputs": [
|
|
459
|
+
{
|
|
460
|
+
"indexed": true,
|
|
461
|
+
"internalType": "address",
|
|
462
|
+
"name": "revoker",
|
|
463
|
+
"type": "address"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"indexed": true,
|
|
467
|
+
"internalType": "address",
|
|
468
|
+
"name": "from",
|
|
469
|
+
"type": "address"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"indexed": true,
|
|
473
|
+
"internalType": "address",
|
|
474
|
+
"name": "to",
|
|
475
|
+
"type": "address"
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"indexed": false,
|
|
479
|
+
"internalType": "uint256",
|
|
480
|
+
"name": "amount",
|
|
481
|
+
"type": "uint256"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"indexed": false,
|
|
485
|
+
"internalType": "bytes",
|
|
486
|
+
"name": "data",
|
|
487
|
+
"type": "bytes"
|
|
488
|
+
}
|
|
489
|
+
],
|
|
490
|
+
"name": "TokenRevoked",
|
|
491
|
+
"type": "event"
|
|
492
|
+
},
|
|
456
493
|
{
|
|
457
494
|
"anonymous": false,
|
|
458
495
|
"inputs": [
|
|
@@ -1182,5 +1219,5 @@
|
|
|
1182
1219
|
"deployedLinkReferences": {},
|
|
1183
1220
|
"immutableReferences": {},
|
|
1184
1221
|
"inputSourceName": "project/contracts/extensions/LSP7Revokable/LSP7RevokableAbstract.sol",
|
|
1185
|
-
"buildInfoId": "solc-0_8_28-
|
|
1222
|
+
"buildInfoId": "solc-0_8_28-740a1678d8e3d6f146988df539981a38397b88c1"
|
|
1186
1223
|
}
|
|
@@ -461,6 +461,43 @@
|
|
|
461
461
|
"name": "RoleRevoked",
|
|
462
462
|
"type": "event"
|
|
463
463
|
},
|
|
464
|
+
{
|
|
465
|
+
"anonymous": false,
|
|
466
|
+
"inputs": [
|
|
467
|
+
{
|
|
468
|
+
"indexed": true,
|
|
469
|
+
"internalType": "address",
|
|
470
|
+
"name": "revoker",
|
|
471
|
+
"type": "address"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"indexed": true,
|
|
475
|
+
"internalType": "address",
|
|
476
|
+
"name": "from",
|
|
477
|
+
"type": "address"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"indexed": true,
|
|
481
|
+
"internalType": "address",
|
|
482
|
+
"name": "to",
|
|
483
|
+
"type": "address"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"indexed": false,
|
|
487
|
+
"internalType": "uint256",
|
|
488
|
+
"name": "amount",
|
|
489
|
+
"type": "uint256"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"indexed": false,
|
|
493
|
+
"internalType": "bytes",
|
|
494
|
+
"name": "data",
|
|
495
|
+
"type": "bytes"
|
|
496
|
+
}
|
|
497
|
+
],
|
|
498
|
+
"name": "TokenRevoked",
|
|
499
|
+
"type": "event"
|
|
500
|
+
},
|
|
464
501
|
{
|
|
465
502
|
"anonymous": false,
|
|
466
503
|
"inputs": [
|
|
@@ -1190,5 +1227,5 @@
|
|
|
1190
1227
|
"deployedLinkReferences": {},
|
|
1191
1228
|
"immutableReferences": {},
|
|
1192
1229
|
"inputSourceName": "project/contracts/extensions/LSP7Revokable/LSP7RevokableInitAbstract.sol",
|
|
1193
|
-
"buildInfoId": "solc-0_8_28-
|
|
1230
|
+
"buildInfoId": "solc-0_8_28-740a1678d8e3d6f146988df539981a38397b88c1"
|
|
1194
1231
|
}
|
package/artifacts/LSP7Votes.json
CHANGED
|
@@ -1212,5 +1212,5 @@
|
|
|
1212
1212
|
"deployedLinkReferences": {},
|
|
1213
1213
|
"immutableReferences": {},
|
|
1214
1214
|
"inputSourceName": "project/contracts/extensions/LSP7Votes/LSP7Votes.sol",
|
|
1215
|
-
"buildInfoId": "solc-0_8_28-
|
|
1215
|
+
"buildInfoId": "solc-0_8_28-740a1678d8e3d6f146988df539981a38397b88c1"
|
|
1216
1216
|
}
|
|
@@ -1204,5 +1204,5 @@
|
|
|
1204
1204
|
"deployedLinkReferences": {},
|
|
1205
1205
|
"immutableReferences": {},
|
|
1206
1206
|
"inputSourceName": "project/contracts/extensions/LSP7Votes/LSP7VotesInitAbstract.sol",
|
|
1207
|
-
"buildInfoId": "solc-0_8_28-
|
|
1207
|
+
"buildInfoId": "solc-0_8_28-740a1678d8e3d6f146988df539981a38397b88c1"
|
|
1208
1208
|
}
|
|
@@ -5,9 +5,14 @@ pragma solidity ^0.8.27;
|
|
|
5
5
|
/// @dev Interface for a non-transferable LSP7 token, enabling control over transferability, lock periods, and allowlist exemptions.
|
|
6
6
|
interface ILSP7NonTransferable {
|
|
7
7
|
/// @dev Emitted when the transfer lock period is updated.
|
|
8
|
+
/// @param nonTransferabilityEnabled Whether the non-transferability feature is enabled or not.
|
|
8
9
|
/// @param start The new start timestamp of the transfer lock period.
|
|
9
10
|
/// @param end The new end timestamp of the transfer lock period.
|
|
10
|
-
event TransferLockPeriodChanged(
|
|
11
|
+
event TransferLockPeriodChanged(
|
|
12
|
+
bool indexed nonTransferabilityEnabled,
|
|
13
|
+
uint256 indexed start,
|
|
14
|
+
uint256 indexed end
|
|
15
|
+
);
|
|
11
16
|
|
|
12
17
|
/// @notice The start timestamp of the transfer lock period, at which point the token becomes non-transferable.
|
|
13
18
|
function transferLockStart() external view returns (uint256);
|
|
@@ -17,10 +22,10 @@ interface ILSP7NonTransferable {
|
|
|
17
22
|
|
|
18
23
|
/// @notice Returns whether the transfer lock feature is still enabled.
|
|
19
24
|
/// @dev When this returns `false`, the token has been permanently made transferable and the lock period can no longer be updated.
|
|
20
|
-
function
|
|
25
|
+
function nonTransferabilityEnabled() external view returns (bool);
|
|
21
26
|
|
|
22
27
|
/// @notice Checks if the token is currently transferable.
|
|
23
|
-
/// @dev Returns true if the token is currently transferable. When `
|
|
28
|
+
/// @dev Returns true if the token is currently transferable. When `nonTransferabilityEnabled` is true, this is derived from the configured lock period. When `nonTransferabilityEnabled` is false, this always returns true. Note that transfers from allowlisted addresses and burning (transfers to address(0)) is always allowed, regardless of transferability status.
|
|
24
29
|
/// @return A `true` or `false` boolean indicating if the token is transferable or not.
|
|
25
30
|
function isTransferable() external view returns (bool);
|
|
26
31
|
|
|
@@ -34,7 +39,8 @@ interface ILSP7NonTransferable {
|
|
|
34
39
|
/// - When `transferLockStart` is set to a value and `transferLockEnd` is 0, it means the tokens becomes non-transferable at a certain point in time and indefinitely (no end time).
|
|
35
40
|
///
|
|
36
41
|
/// - To make the token always non-transferable, set `transferLockStart` to 0 and `transferLockEnd` to type(uint256).max.
|
|
37
|
-
/// - To
|
|
42
|
+
/// - To remove the active lock while keeping the non-transferability feature configurable, set both `newTransferLockStart` and `newTransferLockEnd` to 0. In this state, transfers are currently unrestricted, but the owner can still configure a new lock period later.
|
|
43
|
+
/// - To permanently disable the non-transferability feature and prevent future lock-period updates, use the {makeTransferable} function.
|
|
38
44
|
///
|
|
39
45
|
/// @dev Can only be called by the contract owner. Reverts once {makeTransferable} has been called.
|
|
40
46
|
///
|
|
@@ -37,7 +37,7 @@ abstract contract LSP7NonTransferableAbstract is
|
|
|
37
37
|
uint256 public transferLockEnd;
|
|
38
38
|
|
|
39
39
|
/// @inheritdoc ILSP7NonTransferable
|
|
40
|
-
bool public
|
|
40
|
+
bool public nonTransferabilityEnabled;
|
|
41
41
|
|
|
42
42
|
/// @notice Initializes the contract with non-transferable locking period.
|
|
43
43
|
/// @param transferLockStart_ The start timestamp of the transfer lock period, 0 to disable.
|
|
@@ -49,9 +49,13 @@ abstract contract LSP7NonTransferableAbstract is
|
|
|
49
49
|
);
|
|
50
50
|
transferLockStart = transferLockStart_;
|
|
51
51
|
transferLockEnd = transferLockEnd_;
|
|
52
|
-
|
|
52
|
+
nonTransferabilityEnabled = true;
|
|
53
53
|
|
|
54
|
-
emit TransferLockPeriodChanged(
|
|
54
|
+
emit TransferLockPeriodChanged({
|
|
55
|
+
nonTransferabilityEnabled: true,
|
|
56
|
+
start: transferLockStart_,
|
|
57
|
+
end: transferLockEnd_
|
|
58
|
+
});
|
|
55
59
|
_grantRole(NON_TRANSFERABLE_BYPASS_ROLE, owner());
|
|
56
60
|
}
|
|
57
61
|
|
|
@@ -71,7 +75,7 @@ abstract contract LSP7NonTransferableAbstract is
|
|
|
71
75
|
|
|
72
76
|
/// @inheritdoc ILSP7NonTransferable
|
|
73
77
|
function isTransferable() public view virtual override returns (bool) {
|
|
74
|
-
if (!
|
|
78
|
+
if (!nonTransferabilityEnabled) return true;
|
|
75
79
|
|
|
76
80
|
bool isTransferLockStartEnabled = transferLockStart != 0;
|
|
77
81
|
bool isTransferLockEndEnabled = transferLockEnd != 0;
|
|
@@ -100,13 +104,17 @@ abstract contract LSP7NonTransferableAbstract is
|
|
|
100
104
|
/// @inheritdoc ILSP7NonTransferable
|
|
101
105
|
/// @custom:info The list of addresses holding the `NON_TRANSFERABLE_BYPASS_ROLE` remains populated after the non-transferable feature is switched off.
|
|
102
106
|
function makeTransferable() public virtual override onlyOwner {
|
|
103
|
-
require(
|
|
107
|
+
require(nonTransferabilityEnabled, LSP7TokenAlreadyTransferable());
|
|
104
108
|
|
|
105
|
-
|
|
109
|
+
nonTransferabilityEnabled = false;
|
|
106
110
|
transferLockStart = 0;
|
|
107
111
|
transferLockEnd = 0;
|
|
108
112
|
|
|
109
|
-
emit TransferLockPeriodChanged({
|
|
113
|
+
emit TransferLockPeriodChanged({
|
|
114
|
+
nonTransferabilityEnabled: false,
|
|
115
|
+
start: 0,
|
|
116
|
+
end: 0
|
|
117
|
+
});
|
|
110
118
|
}
|
|
111
119
|
|
|
112
120
|
/// @inheritdoc ILSP7NonTransferable
|
|
@@ -114,7 +122,7 @@ abstract contract LSP7NonTransferableAbstract is
|
|
|
114
122
|
uint256 newTransferLockStart,
|
|
115
123
|
uint256 newTransferLockEnd
|
|
116
124
|
) public virtual override onlyOwner {
|
|
117
|
-
require(
|
|
125
|
+
require(nonTransferabilityEnabled, LSP7CannotUpdateTransferLockPeriod());
|
|
118
126
|
|
|
119
127
|
// When `transferLockEnd` is 0, it means no end time is set (transfers locked indefinitely since `transferLockStart`)
|
|
120
128
|
// When `transferLockStart` is 0, it means no start time is set (transfers locked up until `transferLockEnd`)
|
|
@@ -129,6 +137,7 @@ abstract contract LSP7NonTransferableAbstract is
|
|
|
129
137
|
transferLockEnd = newTransferLockEnd;
|
|
130
138
|
|
|
131
139
|
emit TransferLockPeriodChanged({
|
|
140
|
+
nonTransferabilityEnabled: true,
|
|
132
141
|
start: newTransferLockStart,
|
|
133
142
|
end: newTransferLockEnd
|
|
134
143
|
});
|
|
@@ -42,7 +42,7 @@ abstract contract LSP7NonTransferableInitAbstract is
|
|
|
42
42
|
uint256 public transferLockEnd;
|
|
43
43
|
|
|
44
44
|
/// @inheritdoc ILSP7NonTransferable
|
|
45
|
-
bool public
|
|
45
|
+
bool public nonTransferabilityEnabled;
|
|
46
46
|
|
|
47
47
|
/// @notice Initializes the LSP7NonTransferable contract with base token params, allowlist, and transfer settings.
|
|
48
48
|
/// @dev Initializes the LSP7Allowlist (which initializes LSP7DigitalAsset) and sets the lock period.
|
|
@@ -89,9 +89,13 @@ abstract contract LSP7NonTransferableInitAbstract is
|
|
|
89
89
|
);
|
|
90
90
|
transferLockStart = transferLockStart_;
|
|
91
91
|
transferLockEnd = transferLockEnd_;
|
|
92
|
-
|
|
92
|
+
nonTransferabilityEnabled = true;
|
|
93
93
|
|
|
94
|
-
emit TransferLockPeriodChanged(
|
|
94
|
+
emit TransferLockPeriodChanged({
|
|
95
|
+
nonTransferabilityEnabled: true,
|
|
96
|
+
start: transferLockStart_,
|
|
97
|
+
end: transferLockEnd_
|
|
98
|
+
});
|
|
95
99
|
_grantRole(NON_TRANSFERABLE_BYPASS_ROLE, owner());
|
|
96
100
|
}
|
|
97
101
|
|
|
@@ -114,7 +118,7 @@ abstract contract LSP7NonTransferableInitAbstract is
|
|
|
114
118
|
|
|
115
119
|
/// @inheritdoc ILSP7NonTransferable
|
|
116
120
|
function isTransferable() public view virtual override returns (bool) {
|
|
117
|
-
if (!
|
|
121
|
+
if (!nonTransferabilityEnabled) return true;
|
|
118
122
|
|
|
119
123
|
bool isTransferLockStartEnabled = transferLockStart != 0;
|
|
120
124
|
bool isTransferLockEndEnabled = transferLockEnd != 0;
|
|
@@ -143,13 +147,17 @@ abstract contract LSP7NonTransferableInitAbstract is
|
|
|
143
147
|
/// @inheritdoc ILSP7NonTransferable
|
|
144
148
|
/// @custom:info The list of addresses holding the `NON_TRANSFERABLE_BYPASS_ROLE` remains populated after the non-transferable feature is switched off.
|
|
145
149
|
function makeTransferable() public virtual override onlyOwner {
|
|
146
|
-
require(
|
|
150
|
+
require(nonTransferabilityEnabled, LSP7TokenAlreadyTransferable());
|
|
147
151
|
|
|
148
|
-
|
|
152
|
+
nonTransferabilityEnabled = false;
|
|
149
153
|
transferLockStart = 0;
|
|
150
154
|
transferLockEnd = 0;
|
|
151
155
|
|
|
152
|
-
emit TransferLockPeriodChanged({
|
|
156
|
+
emit TransferLockPeriodChanged({
|
|
157
|
+
nonTransferabilityEnabled: false,
|
|
158
|
+
start: 0,
|
|
159
|
+
end: 0
|
|
160
|
+
});
|
|
153
161
|
}
|
|
154
162
|
|
|
155
163
|
/// @inheritdoc ILSP7NonTransferable
|
|
@@ -157,7 +165,7 @@ abstract contract LSP7NonTransferableInitAbstract is
|
|
|
157
165
|
uint256 newTransferLockStart,
|
|
158
166
|
uint256 newTransferLockEnd
|
|
159
167
|
) public virtual override onlyOwner {
|
|
160
|
-
require(
|
|
168
|
+
require(nonTransferabilityEnabled, LSP7CannotUpdateTransferLockPeriod());
|
|
161
169
|
|
|
162
170
|
// When transferLockEnd is 0, it means no end time is set (transfers locked indefinitely after transferLockStart)
|
|
163
171
|
// When transferLockStart is 0, it means no start time is set (transfers locked up until transferLockEnd)
|
|
@@ -172,6 +180,7 @@ abstract contract LSP7NonTransferableInitAbstract is
|
|
|
172
180
|
transferLockEnd = newTransferLockEnd;
|
|
173
181
|
|
|
174
182
|
emit TransferLockPeriodChanged({
|
|
183
|
+
nonTransferabilityEnabled: true,
|
|
175
184
|
start: newTransferLockStart,
|
|
176
185
|
end: newTransferLockEnd
|
|
177
186
|
});
|
|
@@ -9,6 +9,15 @@ interface ILSP7Revokable {
|
|
|
9
9
|
/// @dev Emitted when revokable status is changed.
|
|
10
10
|
event RevokableStatusChanged(bool indexed enabled);
|
|
11
11
|
|
|
12
|
+
/// @dev Emitted when tokens are revoked from a holder.
|
|
13
|
+
event TokenRevoked(
|
|
14
|
+
address indexed revoker,
|
|
15
|
+
address indexed from,
|
|
16
|
+
address indexed to,
|
|
17
|
+
uint256 amount,
|
|
18
|
+
bytes data
|
|
19
|
+
);
|
|
20
|
+
|
|
12
21
|
/// @notice Returns whether the feature to revoke tokens from users is enabled or not.
|
|
13
22
|
function isRevokable() external view returns (bool);
|
|
14
23
|
|
|
@@ -73,6 +73,14 @@ abstract contract LSP7RevokableAbstract is
|
|
|
73
73
|
AccessControlUnauthorizedAccount(to, REVOKER_ROLE)
|
|
74
74
|
);
|
|
75
75
|
|
|
76
|
+
emit TokenRevoked({
|
|
77
|
+
revoker: msg.sender,
|
|
78
|
+
from: from,
|
|
79
|
+
to: to,
|
|
80
|
+
amount: amount,
|
|
81
|
+
data: data
|
|
82
|
+
});
|
|
83
|
+
|
|
76
84
|
// We assume revokers are trusted when specifying revocation destinations.
|
|
77
85
|
// Therefore, we bypass LSP1 receiver checks.
|
|
78
86
|
_transfer({
|
|
@@ -109,6 +109,14 @@ abstract contract LSP7RevokableInitAbstract is
|
|
|
109
109
|
AccessControlUnauthorizedAccount(to, REVOKER_ROLE)
|
|
110
110
|
);
|
|
111
111
|
|
|
112
|
+
emit TokenRevoked({
|
|
113
|
+
revoker: msg.sender,
|
|
114
|
+
from: from,
|
|
115
|
+
to: to,
|
|
116
|
+
amount: amount,
|
|
117
|
+
data: data
|
|
118
|
+
});
|
|
119
|
+
|
|
112
120
|
// We assume revokers are trusted when specifying revocation destinations.
|
|
113
121
|
// Therefore, we bypass LSP1 receiver checks.
|
|
114
122
|
_transfer({
|