Skip to content
Open

V1 #2

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
df29126
compiles
scammi Aug 4, 2023
113ef30
deploy reward program
scammi Aug 4, 2023
34d6588
UniverseRP
scammi Aug 4, 2023
33bbf03
universe deploy as proxy
scammi Aug 4, 2023
3ce672e
test deployment of ionx
scammi Aug 4, 2023
6c4d59b
lepton preset
scammi Aug 4, 2023
f3acd0d
setup lepton types
scammi Aug 5, 2023
39e4a22
checks minted is okk
scammi Aug 5, 2023
e75a7af
mint all first lepton batch
scammi Aug 5, 2023
56f301c
set up reward program
scammi Aug 5, 2023
19de050
Almost...
scammi Aug 5, 2023
c0e45b5
set up rp
scammi Aug 5, 2023
2422cf2
working set up
scammi Aug 5, 2023
749b510
getChargedParticlesOwner
scammi Aug 5, 2023
cc18b41
generalize get owner of cp
scammi Aug 5, 2023
af66d8f
bonds
scammi Aug 5, 2023
cb4301e
energize
scammi Aug 5, 2023
3312f39
participate in program
scammi Aug 5, 2023
5f9c023
Participate in program
scammi Aug 5, 2023
92252c5
fund program
scammi Aug 5, 2023
875ccf8
Working with real
scammi Aug 5, 2023
693eff2
scripts
scammi Aug 6, 2023
e4dc815
Remove artifacts from repo
robsecord Aug 8, 2023
b2fdced
Add scripts to package json
robsecord Aug 8, 2023
b46bc55
Updates for Multiple RewardProgram deployments
robsecord Aug 8, 2023
c95b8a0
Add factory for deploying RewardProgram
robsecord Aug 9, 2023
2bf8e47
Remove uneded dependency
scammi Aug 9, 2023
9bfad0f
set up dai reward program on deploy factory
scammi Aug 9, 2023
9066aa4
Set up dai reward program
scammi Aug 9, 2023
fb09bed
Deployed
scammi Aug 10, 2023
ce52d6e
Made calculateRewardsEarned public
scammi Aug 10, 2023
a4e3765
Update calculateRewardsEarned usage
scammi Aug 10, 2023
1a2d015
made function private again
scammi Aug 11, 2023
f18e5b0
public calculateRewardsEarned
scammi Aug 11, 2023
fbdd26a
Deploy ment with updated calculateRewardsEarned
scammi Aug 13, 2023
408f4a0
return value off calculateRewardsEarned
scammi Aug 14, 2023
22edf4e
latest deploy
scammi Aug 14, 2023
5192788
Final working deploy
scammi Aug 14, 2023
8495598
deploy main
scammi Aug 14, 2023
fbe41b5
1
scammi Aug 14, 2023
b365395
test for mainnet
scammi Aug 14, 2023
a519027
fork mainmnet
scammi Aug 14, 2023
86a2040
deploy
scammi Aug 14, 2023
e68e666
Only set up a new reward program
scammi Aug 14, 2023
ef3f22d
test pass
scammi Aug 14, 2023
f3e7ae1
remove keyu
scammi Aug 14, 2023
3145bcf
rename factory usdc to cleaner name
scammi Aug 14, 2023
c3fd453
Fix _calculateTotalMultiplier
scammi Aug 15, 2023
1b854ff
remove log
scammi Aug 15, 2023
aaf8f75
update deployemnt
scammi Aug 15, 2023
d61cbac
update for dai factory support for mainnet
scammi Aug 15, 2023
8c56bd6
Merge pull request #4 from Charged-Particles/skamy/_calculateTotalMul…
scammi Aug 16, 2023
db81677
Merge changes and update interface
robsecord Aug 18, 2023
34243e9
Merge pull request #3 from Charged-Particles/reward-factory
scammi Aug 21, 2023
0e22183
Updates for deployment
robsecord Aug 21, 2023
11fb760
Merge branch 'v1' into reward-factory
robsecord Aug 21, 2023
fcdeb90
Merge pull request #5 from Charged-Particles/reward-factory
robsecord Aug 21, 2023
62261e9
Merge changes for sepolia
robsecord Aug 21, 2023
f6b618f
Polygon Deployment Prep
robsecord Aug 22, 2023
45a6b3b
Fix multiplier calculations
robsecord Aug 23, 2023
35a1bb1
Cleanup console logs
robsecord Aug 23, 2023
325668b
Update unit-tests
robsecord Aug 23, 2023
38c763d
Minor updates
robsecord Aug 23, 2023
7658d34
Minor updates for deployment
robsecord Aug 24, 2023
7718e44
Deployments for Mumbai
robsecord Aug 24, 2023
30364bc
Polygon + USDC Deployment
robsecord Aug 28, 2023
e63d005
Updates for Deploy Scripts to deploy RewardPrograms separately
robsecord Aug 28, 2023
51e1a24
LIVE RewardPrograms for Polygon
robsecord Aug 28, 2023
9b2ffb8
Merge pull request #6 from Charged-Particles/polygon-prep
scammi Aug 28, 2023
7ff8645
Minor updates and test fixes
robsecord Aug 30, 2023
1e3e01b
Auto-verify contracts after deploy
robsecord Aug 30, 2023
3d4c2bb
Updates for deploying on Goerli
robsecord Aug 30, 2023
8e2bec9
Merge pull request #7 from Charged-Particles/polygon-prep
robsecord Aug 30, 2023
9c41e32
Prep for Mainnet Reward Programs Deploy
robsecord Aug 31, 2023
57ece6a
Updates for Mainnet Deployment
robsecord Sep 4, 2023
70e88c2
Unregister USDT on Mainnet
robsecord Sep 6, 2023
eefa2a8
Deploy Reward Program for SUSD
robsecord Sep 6, 2023
51f040b
Polygon RP get multiplier base on tokenId
scammi Sep 11, 2023
111b87f
New polygon set up
scammi Sep 11, 2023
861e262
setUniverse and setRewardProgram
scammi Sep 11, 2023
d19f9f5
Fix spelling mistake
scammi Sep 11, 2023
2e12991
Default for UniverseRPP
scammi Sep 11, 2023
d6609a0
Merge pull request #8 from Charged-Particles/skamy/PolygonLepton
scammi Sep 19, 2023
af94c22
script for multiplier update
scammi Sep 19, 2023
a8aa78f
log
scammi Sep 19, 2023
95efef8
Updates for deploying Polygon
robsecord Sep 21, 2023
6b64ad6
Merge pull request #10 from Charged-Particles/skamy/PolygonLepton
robsecord Sep 21, 2023
85e8e6f
Merge pull request #9 from Charged-Particles/skamy/updatePolygonMulti…
robsecord Sep 21, 2023
4964511
Updte hardhat config
scammi Nov 22, 2023
6dfbfe5
yarn test
scammi Nov 22, 2023
e9eeef8
readme
scammi Nov 22, 2023
e15c989
Bug fix for Reward Program on asset release
robsecord Dec 6, 2023
ddabc39
Merge branch 'v1' of github.com:Charged-Particles/cpu-v2 into v1
robsecord Dec 6, 2023
2b8bb83
test distribution of free leptons
scammi Mar 8, 2024
660fe9a
Leptons store contract
scammi Mar 8, 2024
9479d73
Skeleton for store
scammi Mar 10, 2024
3931b7c
Builds
scammi Mar 10, 2024
1d7fb6e
test set leptons
scammi Mar 10, 2024
8bcc805
only owner
scammi Mar 10, 2024
56d7adc
Lepton is contract instead of address
scammi Mar 10, 2024
fb18a02
Test free mints
scammi Mar 10, 2024
9dd1dd4
Set default price after mints
scammi Mar 11, 2024
d264d87
Updates for IONX permit
robsecord Mar 11, 2024
b929b00
Get ionx permit
scammi Mar 11, 2024
f248237
Merge pull request #18 from Charged-Particles/lepton-candymachine
scammi Mar 12, 2024
c3f31e4
Merge branch 'lepton-candymachine' into skamy/lepton-candymachine-permit
scammi Mar 12, 2024
17a8563
use eth-permit package
scammi Mar 12, 2024
5d0df05
Get correct allowence from permit
scammi Mar 12, 2024
4d297a2
Check status of allowence before
scammi Mar 12, 2024
497fc13
Add buyWithIonx method
scammi Mar 13, 2024
6e31ddd
Buy with ionx
scammi Mar 13, 2024
f039230
Pass down correct buying price
scammi Mar 13, 2024
4ab0f09
Emit event
scammi Mar 13, 2024
f90f1f2
Restablish removed scripts in package json
scammi Mar 13, 2024
850e268
Dynamic nft buying token id
scammi Mar 15, 2024
c59b3de
Test multiple buys
scammi Mar 15, 2024
524ddc3
Test with fork
scammi Mar 17, 2024
1463720
Workin load on forked network
scammi Mar 17, 2024
9453b54
Black hole prevention
scammi Mar 20, 2024
0f63255
Merge pull request #19 from Charged-Particles/skamy/lepton-candymachi…
scammi Mar 20, 2024
8f0d18e
scripts
scammi Mar 20, 2024
86ccb67
Clean up
scammi Mar 20, 2024
8fc075c
Merge pull request #20 from Charged-Particles/skamy/lepton-candymachi…
scammi Mar 20, 2024
9501531
Merge branch 'v1' of github.com:Charged-Particles/cpu-v2 into v1
robsecord Mar 20, 2024
bf705d9
Cosmetic changes to source
robsecord Mar 21, 2024
f321f5f
Deployment
scammi Mar 29, 2024
605cb4a
stablish store deploy
scammi Mar 29, 2024
29d1a04
Merge pull request #21 from Charged-Particles/deploy-store
scammi Mar 29, 2024
d31bef8
Fixes for Leptons Store unit-tests
robsecord Apr 1, 2024
2c0972a
Updates for deploying mainnet
robsecord Apr 3, 2024
dce7b95
almost there
scammi Apr 5, 2024
b57650e
Avoid borken checks
scammi Apr 8, 2024
8ee8010
comments todo
scammi Apr 8, 2024
34c939f
Merge pull request #22 from Charged-Particles/unit-test-fixes
scammi Apr 8, 2024
331fe0e
Remove . only
scammi Apr 8, 2024
ec8c9e4
Merge pull request #23 from Charged-Particles/unit-test-fixes
scammi Apr 8, 2024
8bb01a2
Prep for Store Deployment with Fixed Load function
robsecord Apr 10, 2024
825e27c
Latest store deploy + migrate
robsecord Apr 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 30 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,35 @@
node_modules
*~
*.swp
tmp/
npm-debug.log
.DS_Store
.idea
merged/
.next
.vscode/
node_modules/
resources.txt
.env
coverage
coverage.json
.versionFilesList.json
build/
bin/
notes.txt
cache
lepton_data/
typechain
typechain-types

# Hardhat files
cache
artifacts
# OpenZeppelin
.openzeppelin/dev-*.json
.openzeppelin/.session
deployments/hardhat/*.json

# Code Coverage
coverage
.coverage
coverage.json
coverageEnv
artifacts
test-results.xml
yarn-error.log
.openzeppelin/unknown-31337.json
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.12.1
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
# cpu-v2
Charged Particles Multiverse

## Deploy

Using [hardhat deploy](https://github.com/wighawag/hardhat-deploy) hardhat plugin.

`yarn hardhat deploy --network NETWORK --tags CONTRACT_TAG`

## Test

`yarn hardhat test --network hardhat`

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading