-
Notifications
You must be signed in to change notification settings - Fork 3
BrainPass Nft Contract #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
OleanjiKingCode
wants to merge
55
commits into
master
Choose a base branch
from
BrainPass
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 47 commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
4e773ae
BrainPass Nft Contract Added
OleanjiKingCode c4aec5a
addedexpalainable comments to functions
OleanjiKingCode c2f67f9
refined the vars in the brainpass contract
OleanjiKingCode bc3a1cc
adds brainpass deployer script
Emmanueldmlr 51cd490
started testing
OleanjiKingCode 1c6e3fe
updated test file and improved contract
OleanjiKingCode d88b6e8
changes noticed fix, getAllPassType Func,
OleanjiKingCode 4482b93
labelling functions
OleanjiKingCode 2959b63
updated contract and arranged the functions, used reverts instead of …
OleanjiKingCode a3e0bd7
changed all require func to if..revert
OleanjiKingCode 9e52d56
readme doc
OleanjiKingCode ff9f7db
validate pass duration func
OleanjiKingCode 347c98c
test for the new contract update
OleanjiKingCode a74cb88
Update README.md
OleanjiKingCode ae58340
test for the new contract update
OleanjiKingCode 566e6a9
Merge branch 'BrainPass' of https://github.com/EveripediaNetwork/ep-c…
OleanjiKingCode ef3731a
IncresePassTime Func Refined
OleanjiKingCode 5ef8ca1
changes variable names
Emmanueldmlr 9a9bc99
removed for loop
OleanjiKingCode 77d4183
renmoved a mapping
OleanjiKingCode 0301aa2
removes unused script
Emmanueldmlr 7444fee
changes function name
Emmanueldmlr 3bbca93
corrected the test script
OleanjiKingCode f7c7a5d
removing unused error and added maxSupplyReached test
OleanjiKingCode 888dc99
little fix in maxtokenminted per pass
OleanjiKingCode 6696764
describing functions well
OleanjiKingCode b21b030
Update README.md
OleanjiKingCode 639d9a0
more tests and pause Func
OleanjiKingCode 8379083
Updated readme file, allows different url for differnt pass type, mor…
OleanjiKingCode 92444b8
removed unsed contrac import,toggle pass type status
OleanjiKingCode d9b5bda
validating users to know if they do an activity that requires their pass
OleanjiKingCode 9ed21bc
configureMintlimit test and pause contract testing
OleanjiKingCode f0dc368
seperated the withdraw func
OleanjiKingCode 86eb11d
updated README.md
OleanjiKingCode cef37c7
updated readme file and contract with test
OleanjiKingCode b8fffdf
removed the id logic for passtypes
OleanjiKingCode 9a230bf
added more tests for the validator
OleanjiKingCode 3e6c1f6
updated the contract
OleanjiKingCode a4065fc
little changes
OleanjiKingCode 49a3661
checking for validity of the timestamp entered
OleanjiKingCode 2fe00bd
little fixes in the contract
OleanjiKingCode 721b931
improved test from edited contract
OleanjiKingCode 3f9a1eb
improved test from edited contract
OleanjiKingCode f717fe8
using erc721pausable
OleanjiKingCode 717d7a0
using erc721pausable tests
OleanjiKingCode 6260675
improving the brainPassValidator
OleanjiKingCode fc932ed
improved the READMe file
OleanjiKingCode 8669373
removed unused code and improved tests
OleanjiKingCode fa5b0fb
removed discount
OleanjiKingCode b7f9781
reworked the event
OleanjiKingCode bb03b8e
added data to event
OleanjiKingCode f63d3fa
improved the contract, tests, deployment scripts
OleanjiKingCode 7095eb3
fixed failed assertion
OleanjiKingCode 903fdfc
deployer script
OleanjiKingCode b2283b2
updated the tests
OleanjiKingCode File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,25 @@ | ||
| // SPDX-License-Identifier: UNLICENSED | ||
| pragma solidity ^0.8.13; | ||
|
|
||
| import {Script} from "../lib/forge-std/src/Script.sol"; | ||
| import {console} from "../lib/forge-std/src/console.sol"; | ||
|
|
||
| import {BrainPassCollectibles} from "../src/BrainPass/BrainPass.sol"; | ||
|
|
||
| contract BrainPassDeployer is Script { | ||
| address constant owner = | ||
| address(0xE161eB85f00eC6471E0de06bA1Cfc136C053fFfe); | ||
|
|
||
| function run() external { | ||
| vm.startBroadcast(); | ||
|
|
||
| console.log("Deploying Brainpass deployer...."); | ||
| BrainPassCollectibles brainPass = new BrainPassCollectibles( | ||
| 0x5E959c60f86D17fb7D764AB69B654227d464E820, | ||
| "http://example.com" | ||
| ); | ||
| console.log("Brainpass Deployed", address(brainPass)); | ||
|
|
||
| vm.stopBroadcast(); | ||
| } | ||
| } |
This file contains hidden or 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,21 @@ | ||
| // SPDX-License-Identifier: UNLICENSED | ||
| pragma solidity ^0.8.13; | ||
|
|
||
| import {Script} from "../lib/forge-std/src/Script.sol"; | ||
| import {console} from "../lib/forge-std/src/console.sol"; | ||
|
|
||
| import {BrainPassValidiator} from "../src/BrainPass/BrainPassValidator.sol"; | ||
|
|
||
| contract BrainPassValidiatorDeployer is Script { | ||
| function run() external { | ||
| vm.startBroadcast(); | ||
|
|
||
| console.log("Deploying Brainpass Valdiator...."); | ||
| BrainPassValidiator brainPassValidator = new BrainPassValidiator( | ||
| 0x6e213cE219d7ef282ACCC7734040D67875828be4 | ||
| ); | ||
| console.log("Brainpass Deployed", address(brainPassValidator)); | ||
|
|
||
| vm.stopBroadcast(); | ||
| } | ||
| } |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again doc. is outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is still wrong