-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Splitting Reward contract for only native rewards
- Loading branch information
1 parent
96e153e
commit 9662d53
Showing
9 changed files
with
75 additions
and
156 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.24; | ||
|
||
// @author Summon.xyz Team - https://summon.xyz | ||
// @contributors: [ @ogarciarevett, @vasinl124] | ||
//.................................................................................................................................................... | ||
//....................&&&&&&.......................................................................................................................... | ||
//..................&&&&&&&&&&&....................................................................................................................... | ||
//..............X.....&&&&&&&&&&&&.................................................................................................................... | ||
//............&&&&&&.....&&&&&&&&&&&.................................................................................................................. | ||
//............&&&&&&&&&.....&&&&&..................................................................................................................... | ||
//............&&&&&&&&&&&&.........&.............&&&&&&&&&&&&..&&&&....&&&&.&&&&&&&&..&&&&&&&.&&&&&&&&..&&&&&&&&.&&&&&&&&&&&&.&&&&&....&&&&........... | ||
//...............&&&&&&&&&&&&.....&&$............&&&&..........&&&&....&&&&.&&&&&&&&.&&&&&&&&..&&&&&&&&.&&&&&&&&.&&&&&&&&&&&&.&&&&&&&..&&&&........... | ||
//............&.....&&&&&&&&&&&&..................&&&&&&&&&&&..&&&&....&&&&.&&&&..&&&&&&.&&&&..&&&&.&&&&&&..&&&&.&&&&....&&&&.&&&&.&&&&&&&&........... | ||
//............&&.......&&&&&&&&&&&&......................&&&&..&&&&&&&&&&&&.&&&&..&&&&&..&&&&..&&&&..&&&&...&&&&.&&&&&&&&&&&&.&&&&...&&&&&&........... | ||
//................&&&.....&&&&&&&&&&+............&&&&&&&&&&&&...&&&&&&&&&&..&&&&...&&&&..&&&&.&&&&&..&&&&...&&&&.&&&&&&&&&&&&.&&&&....&&&&&........... | ||
//.............&&&&&&&&&.....&&&&&&&.................................................................................................................. | ||
//.............&&&&&&&&&&&&.....&&&................................................................................................................... | ||
//.................&&&&&&&&&&&........................................................................................................................ | ||
//....................&&&&&&&......................................................................................................................... | ||
//.................................................................................................................................................... | ||
|
||
library LibRewards { | ||
|
||
struct RewardTokenOld { | ||
uint256 tokenId; | ||
string tokenUri; | ||
uint256 rewardAmount; // depending of the erc20 token decimal | ||
bool isEther; | ||
} | ||
|
||
struct Reward { | ||
uint256 rewardAmount; | ||
} | ||
|
||
struct RewardToken { | ||
uint256 tokenId; | ||
string tokenUri; | ||
Reward[] rewards; | ||
uint256 maxSupply; | ||
} | ||
} | ||
|
||
library TestLibItems { | ||
enum Tier { | ||
NONE, | ||
COMMON, | ||
UNCOMMON, | ||
RARE, | ||
LEGENDARY, | ||
MYTHICAL | ||
} | ||
} |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.