-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(Definitions): move definitions to separate contract for use in treasury
- Loading branch information
1 parent
54d04bd
commit c3da860
Showing
2 changed files
with
30 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// SPDX-License-Identifier: AGPL-3.0-only | ||
pragma solidity >=0.8.13; | ||
|
||
contract MetadataDefinitions { | ||
// Type declarations | ||
|
||
struct Metadata { | ||
MetadataType metadataType; | ||
bytes metadata; | ||
bytes erc1155UserData; | ||
} | ||
|
||
struct GroupMintMetadata { | ||
address group; | ||
} | ||
|
||
// Enums | ||
|
||
enum MetadataType { | ||
NoMetadata, | ||
GroupMint // safeTransferFrom initiated from group mint, appends GroupMintMetadata | ||
} | ||
} |