Skip to content

Commit

Permalink
refactor: adjust LSP7 storage layout like LSP8
Browse files Browse the repository at this point in the history
  • Loading branch information
CJ42 committed Oct 10, 2023
1 parent 624c4a6 commit 104d58a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,22 @@ import {
*/
abstract contract LSP7DigitalAssetCore is ILSP7DigitalAsset {
using EnumerableSet for EnumerableSet.AddressSet;

// --- Storage

bool internal _isNonDivisible;

uint256 internal _existingTokens;

// Mapping from `tokenOwner` to an `amount` of tokens
mapping(address => uint256) internal _tokenOwnerBalances;

// Mapping a `tokenOwner` to an `operator` to `amount` of tokens.
mapping(address => mapping(address => uint256))
internal _operatorAuthorizedAmount;

// Mapping an `address` to its authorized operator addresses.
mapping(address => EnumerableSet.AddressSet) internal _operators;

uint256 internal _existingTokens;

bool internal _isNonDivisible;
// Mapping a `tokenOwner` to an `operator` to `amount` of tokens.
mapping(address => mapping(address => uint256))
internal _operatorAuthorizedAmount;

// --- Token queries

Expand Down

0 comments on commit 104d58a

Please sign in to comment.