Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
273 commits
Select commit Hold shift + click to select a range
c0e02d2
feat(LaunchPool): update logic for cumulative exchange rate calculation
Trong-Tra Feb 20, 2025
b0155bf
refactor(LaunchPool): rename lastRewardBlock to tickBlock for clarity
Trong-Tra Feb 20, 2025
22077ef
refactor(LaunchPool): improve variable naming for clarity in cumulati…
Trong-Tra Feb 20, 2025
c2326cb
refactor(LaunchPool): rename variables for clarity in block period ca…
DxcMint868 Feb 20, 2025
25dc6df
feat(LaunchPool): add staker struct and mapping for tracking staker d…
Trong-Tra Feb 21, 2025
d437517
chore(package): rename project from Defrost-Contracts to Defrost
Trong-Tra Feb 21, 2025
20a7c91
feat(LaunchPool): implement stake function for handling investments a…
Trong-Tra Feb 21, 2025
96ec7d2
fix(LaunchPool): update loop to start from last processed change bloc…
Trong-Tra Feb 21, 2025
8db9687
fix(LaunchPool): add condition to getEmissionRate for launchpool end …
Trong-Tra Feb 21, 2025
9c140c0
fix(LaunchPool): add condition to skip invalid periods in block proce…
Trong-Tra Feb 21, 2025
cfae0f5
fix(LaunchPool): correct block number conditions and optimize cumulat…
Trong-Tra Feb 21, 2025
fea0348
feat(LaunchPool): implement getClaimableProjectToken function
Trong-Tra Feb 21, 2025
85ac3f8
fix(LaunchPool): optimize claimable token calculation and update stak…
Trong-Tra Feb 21, 2025
0bc0a0a
fix(LaunchPool): add limit check for maximum tokens per staker during…
Trong-Tra Feb 21, 2025
7946645
fix(LaunchPool): remove if condition as it is always true
DxcMint868 Feb 21, 2025
e9565c9
fix(LaunchPool): optimize block number data type and handling
DxcMint868 Feb 21, 2025
285af5e
refactor(LaunchPool): rename amount to vAssetAmount in Staker struct …
DxcMint868 Feb 21, 2025
96f6661
refactor: remove min vtokens check from validStakingRange modifier an…
DxcMint868 Feb 22, 2025
241c10e
refactor(LaunchPool): rename maxVTokensPerStaker to maxVAssetPerStake…
DxcMint868 Feb 22, 2025
3aaaf77
refactor(factory): remove init validation modifiers as they are alrea…
DxcMint868 Feb 22, 2025
8c62e92
chore(solhint): ignore test/, node_modules/, scripts/ folder to preve…
DxcMint868 Feb 22, 2025
a7ef020
refactor: rename LauncPool to Launchpool, rename LaunchPoolFactory to…
DxcMint868 Feb 22, 2025
4b32625
fix(Launchpool): update startBlock validation to use block.number ins…
DxcMint868 Feb 22, 2025
7ed23ca
chore(remappings): add remapping for '@src' to point to src directory
DxcMint868 Feb 22, 2025
1848c7f
fix(Launchpool): add missing initialization of maxVAssetPerStaker in …
DxcMint868 Feb 22, 2025
9633da7
refactor(Launchpool): add validation for zero amount and maximum stak…
DxcMint868 Feb 22, 2025
f353767
test(mock-contracts): add MockERC20 and MockLaunchpool for testing pu…
DxcMint868 Feb 23, 2025
249a8a7
test(Launchpool): add cumulative exchange rate test and getter funcs …
DxcMint868 Feb 23, 2025
9ccb90d
chore(package.json): update lint-staged configuration to not run solh…
DxcMint868 Feb 23, 2025
cf338a6
fix(Launchpool): rename function _getCumulativeExchangeRate() to _get…
DxcMint868 Feb 23, 2025
b04417c
feat(LaunchpoolFactory): update createPool() to create multiple pools…
Trong-Tra Feb 23, 2025
964a8dd
fix(LaunchpoolFactory): change pools mapping visibility from public t…
Trong-Tra Feb 23, 2025
a0515ec
test(LaunchpoolFactory): update tests to reflect createPools function…
Trong-Tra Feb 23, 2025
7f6cad6
feat(LaunchpoolFactory): add support for accepted vAssets and improve…
Trong-Tra Feb 23, 2025
739e5b8
test(LaunchpoolFactory): enhance CreatePool tests with valid vAsset a…
Trong-Tra Feb 23, 2025
bee071d
feat(MoonbeamLaunchpoolFactory): implement MoonbeamLaunchpoolFactory …
Trong-Tra Feb 23, 2025
37731f3
feat(LaunchpoolFactory): add functions to manage accepted vAssets
Trong-Tra Feb 23, 2025
ee9d854
test(MoonbeamFactory): add comprehensive tests for createPools functi…
Trong-Tra Feb 23, 2025
321b6eb
feat(AstarLPFactory): implement AstarLPFactory contract with pool cre…
Trong-Tra Feb 23, 2025
a579c0d
refactor(Launchpool): replace safeTransfer with normal ERC20 transfer…
DxcMint868 Feb 23, 2025
788f655
test(Launchpool): uncomment complex test case
DxcMint868 Feb 23, 2025
691a711
chore(husky): remove Solidity test checks from pre-commit hook
DxcMint868 Feb 23, 2025
20b80cc
fix(Launchpool): fix undefined emissionRate due to periodStartBlock k…
DxcMint868 Feb 23, 2025
8601adc
feat: Add Unstake function and Test
notlongfen Feb 23, 2025
cb6f188
chore(husky): add compilation checks to pre-commit hook
DxcMint868 Feb 24, 2025
13f6127
ci: remove forge build task from github workflow
DxcMint868 Feb 24, 2025
207d093
test(states): add js state machine simulation for launchpool contract…
DxcMint868 Feb 24, 2025
8abf1dd
test(Launchpool): add test coverage for more getter funcs
DxcMint868 Feb 24, 2025
736f03f
test(launchpool): test case for getter func getPoolInfo
DxcMint868 Feb 25, 2025
7250a73
test(Launchpool): rename maxVTokensPerStaker to maxVAssetPerStaker an…
DxcMint868 Feb 25, 2025
d31ef45
feat(Launchpool): add DECIMALS constant for precision in calculations…
Trong-Tra Feb 25, 2025
ac1fc9a
refactor(Launchpool): _DECIMALS to scaling factor for precision and e…
Trong-Tra Feb 25, 2025
4df8769
feat(xcm): Add XCMOracle calling in Unstake and Stake
notlongfen Feb 26, 2025
a2c6aab
Merge branch 'dev' of github.com:Solidithi/Defrost-Contracts into dev
notlongfen Feb 26, 2025
947d611
chore(husky): update husky prepare script in package.json (husky inst…
DxcMint868 Feb 26, 2025
c87a6c5
feat(launchpool): re-implement SafeERC20 for transfer ops. Rename imm…
DxcMint868 Feb 26, 2025
aeab170
test: implement scaling factor into existing tests
DxcMint868 Feb 26, 2025
2be74b5
Merge branch 'dev' of github.com:Solidithi/Defrost-Contracts into dev
notlongfen Feb 26, 2025
7132e1b
test(xcm): add parameter to Mocklaunchpool
notlongfen Feb 28, 2025
2aeda96
test(mocks): Modified XCM and Launchpool Mocks
notlongfen Feb 28, 2025
c547f34
test(mocks): Modified XCM and Launchpool Mocks
notlongfen Feb 28, 2025
b3783cc
refactor(unstake): Update logic
notlongfen Feb 28, 2025
a1efcc2
test(Unstake): Test a lil bit
notlongfen Feb 28, 2025
1a07d38
refactor(Launchpool): reward formula now use native asset instead of …
Trong-Tra Mar 2, 2025
291b6e7
chore(remappings): add remapping for openzeppelin-foundry-upgrades
DxcMint868 Mar 4, 2025
15a9a1c
build(foundry): enable additional build options for upgradeable contr…
DxcMint868 Mar 4, 2025
3aae70f
chore(dependencies): update subproject commits
DxcMint868 Mar 4, 2025
9f7d4f1
feat(multi-call): add SelfMultiCall contract for batch execution of c…
DxcMint868 Mar 4, 2025
f61aa1f
feat: replace LaunchpoolFactory and its variants with ProjectHubUpgra…
DxcMint868 Mar 4, 2025
2cf6df5
refactor(folders): move Launchpool.sol to src/non-upgradeable contrac…
DxcMint868 Mar 4, 2025
a3df192
feat(deployment): add script to deploy ProjectHubUpgradeable contract
DxcMint868 Mar 4, 2025
826d11b
refactor(mocks): update import path for MockLaunchpool to non-upgrade…
DxcMint868 Mar 4, 2025
12af9d2
refactor(tests): remove test files for obsolete LaunchpoolFactory con…
DxcMint868 Mar 4, 2025
9da2dea
feat(interfaces): add ILaunchpool and IProjectHub interfaces
DxcMint868 Mar 4, 2025
0710259
feat(tests): add GeneralState and GeneralSetters, CreateLaunchpool te…
DxcMint868 Mar 4, 2025
4ff998f
chore(husky): update pre-commit script to include build-info and forc…
DxcMint868 Mar 4, 2025
e2c4e01
ci(github-workflow): update Forge test command to include build-info …
DxcMint868 Mar 4, 2025
3ca0a14
refactor(tests): rename test functions to use snake_case for consistency
Trong-Tra Mar 5, 2025
a7bf071
feat(Launchpool): add function to retrieve staker's native amount
Trong-Tra Mar 5, 2025
743b272
refactor(Launchpool): update staking logic to use native asset amounts
Trong-Tra Mar 5, 2025
005425d
refactor(tests): update CumulativeExchangeRate tests to use native st…
Trong-Tra Mar 5, 2025
e96e6f4
refactor(IProjectHub): remove unused import
DxcMint868 Mar 6, 2025
3e3584c
refactor(proxy-deploy): rename DeployProjectHub to DeployProjectHubPr…
DxcMint868 Mar 6, 2025
43efabe
test(script): add DeployProjectHub script to deploy standalone Projec…
DxcMint868 Mar 6, 2025
ab352b7
chore(dependencies): add ethers js dependency
DxcMint868 Mar 7, 2025
a24971e
feat(multicall): implement mechanism to determine original tx sender …
DxcMint868 Mar 7, 2025
5086c3d
refactor(ProjectHub): substitute UUPS with transparent proxy, reduce …
DxcMint868 Mar 7, 2025
ac37983
fix(ProjectHub-deploy-script): add missing vm broadcast, adapt to tra…
DxcMint868 Mar 7, 2025
3f729ab
refactor(IProjectHub): integrate ProjectLibrary and LaunchpoolLibrary
DxcMint868 Mar 7, 2025
082b5ec
refactor(CreateLaunchpoolTest): use LaunchpoolLibrary for launchpool …
DxcMint868 Mar 7, 2025
477972f
test(CreateLaunchpool): add 3 more cases regarding access (more refac…
DxcMint868 Mar 7, 2025
5045ae9
refactor(deploy-scripts): move foundry deploy scripts from script/ to…
DxcMint868 Mar 9, 2025
e7d58f6
feat(Launchpool): add pool initialization logic with emission rate va…
Trong-Tra Mar 9, 2025
d0cbd71
refactor(tests): update Unstake tests to adjust emission rate and val…
Trong-Tra Mar 9, 2025
f2b1960
chore: add typeScript configuration and hardhat setup with necessary …
DxcMint868 Mar 9, 2025
c1d6175
feat: add chain manifest for supported networks
DxcMint868 Mar 9, 2025
a11a9b2
feat(types): add DeploymentInfo interface for structured deployment data
DxcMint868 Mar 9, 2025
24c8a5e
refactor(ProjectHubUpgradeable): remove unused UUPS import (migrated …
DxcMint868 Mar 9, 2025
0bea224
feat(deploy-scripts): add deployment script for ProjectHubUpgradeable…
DxcMint868 Mar 9, 2025
f97a966
revert(e7d58f6d6b167527777b4f9d55baf07158cb3cc7): split constructor i…
Trong-Tra Mar 9, 2025
4642679
refactor(Launchpool): simplify withdrawable asset check by removing u…
Trong-Tra Mar 9, 2025
a2bb153
chore(package-manager): add support for pnpm, fuck npm
DxcMint868 Mar 9, 2025
fcb1977
refactor(Launchpool): corrected withdrawal logic by dividing the offs…
Trong-Tra Mar 9, 2025
d19329a
Merge feature branch into origin/dev
DxcMint868 Mar 9, 2025
9675f3d
chore(package-mananger): remove package-lock.json, fuk npm
DxcMint868 Mar 9, 2025
bc19a8b
test: add 3 test cases for unstaking
Trong-Tra Mar 9, 2025
6fd9002
Merge remote-tracking branch 'origin/dev' into dev
Trong-Tra Mar 9, 2025
56199d9
chore: remove cache
Trong-Tra Mar 9, 2025
238f868
build: update libs
DxcMint868 Mar 9, 2025
cc2b290
chore: add @openzeppelin/upgrades-core dependency
Trong-Tra Mar 9, 2025
a140c59
fix: update import path for Launchpool contract
Trong-Tra Mar 9, 2025
b64f695
fix: correct variable name in console log for latest contract version
DxcMint868 Mar 9, 2025
be55853
chore: add support for Moonbase Alpha network to Hardhat config
DxcMint868 Mar 11, 2025
d4beccb
refactor(ProjectHubUpgradeable): rename event from PoolCreated to Lau…
DxcMint868 Mar 11, 2025
5df2c73
fix: update Moonbase Alpha RPC URL and enable logging for network con…
DxcMint868 Mar 12, 2025
99928da
chore(hardhat-script): add script to deploy mock ERC20 tokens
DxcMint868 Mar 12, 2025
4970230
refactor(mocks): move mock contracts to src/mocks location
DxcMint868 Mar 12, 2025
f6415af
chore(prettier): update .prettierignore to exclude deployments and .o…
DxcMint868 Mar 12, 2025
51f600e
feat(Launchpool): add extensive validation checks during pool creation
DxcMint868 Mar 12, 2025
8892031
fix: tests failing due to requirement that first change block must be…
DxcMint868 Mar 12, 2025
d1b8e40
feat(project-hub): deposit project tokens into launchpool during crea…
DxcMint868 Mar 12, 2025
c6b88d8
refactor(project-hub): move NotAcceptedVAsset error to ProjectHubUpgr…
DxcMint868 Mar 12, 2025
c6dd013
fix(tests): fix tests failing due to missing allowance of project tokens
DxcMint868 Mar 12, 2025
7016e84
refactor(deploy): enhance proxy deploy script to accept asset address…
DxcMint868 Mar 12, 2025
55ea8c4
chore: implement script to test-create launchpools
DxcMint868 Mar 12, 2025
fcb95b8
chore: update interface IProjectHub
DxcMint868 Mar 12, 2025
dbc1381
refactor: misc deploy script update, should not gaf
DxcMint868 Mar 13, 2025
b2dd9ae
fix: adjust claimOffset calculation to include SCALING_FACTOR
Trong-Tra Mar 14, 2025
8606830
refactor(launchpool): misc improvement of logic consistency in _getTi…
DxcMint868 Mar 14, 2025
13360f9
feat: add MockXCMOracle contract and corresponding tests
Trong-Tra Mar 14, 2025
134e0cb
Merge remote-tracking branch 'origin/dev' into dev
Trong-Tra Mar 14, 2025
014d6bc
test: add unit tests for MockXCMOracle contract
Trong-Tra Mar 14, 2025
a3e3643
refactor(launchpool): rename _getTickBlockDelta to _getActiveBlockDel…
DxcMint868 Mar 14, 2025
500e738
feat(launchpool): implement post-pool vTokens compensation for investor
DxcMint868 Mar 16, 2025
aebb5a2
feat(mocks): add customizable decimals and wildcard setters for testi…
DxcMint868 Mar 16, 2025
8690294
test(native-exchange-rate): add basic test cases for native exchange …
DxcMint868 Mar 16, 2025
a89a7bc
refactor: misc deploy script update, should not gaf
DxcMint868 Mar 13, 2025
5edeaf6
Merge branch 'feat/launchpool/running-average-gradient-for-native-tok…
DxcMint868 Mar 16, 2025
fe948c5
refactor(launchpool): rename error
DxcMint868 Mar 17, 2025
6df5383
refactor(launchpool): streamline unstaking process and enhance claim …
DxcMint868 Mar 17, 2025
801983f
refactor(launchpool): misc
DxcMint868 Mar 17, 2025
ab19e43
refactor(launchpool): rename 'amount' in Staker struct to 'nativeAmou…
DxcMint868 Mar 17, 2025
28a13a0
refactor(launchpool): remove redundant variable assignment in _getPen…
DxcMint868 Mar 17, 2025
cd7020f
refactor(launchpool): replace totalStake with totalNativeStake
DxcMint868 Mar 17, 2025
90f6aa4
refactor(launchpool): update test cases to use totalNativeStake inste…
DxcMint868 Mar 17, 2025
faa7493
refactor(mocks): enhance MockXCMOracle with fees to replicate the act…
Trong-Tra Mar 18, 2025
3aed09a
feat(interfaces): add rateInfo function to IXCMOracle
Trong-Tra Mar 18, 2025
333bc36
feat(launchpool): incorporate redeem and mint rates in native token c…
Trong-Tra Mar 18, 2025
392a771
feat(launchpool): update withdrawableVAsset calculation to include mi…
Trong-Tra Mar 18, 2025
bfc2c18
fix(mocks): fix MockXCMOracle to accept inputs for fees, adding comments
Trong-Tra Mar 18, 2025
62065cf
feat(mocks): enhance MockLaunchpool with detailed documentation and i…
Trong-Tra Mar 18, 2025
db807cf
test(mocks): deep testing for mock oracle
Trong-Tra Mar 18, 2025
a266413
docs(mocks): correct comment for oracle test
Trong-Tra Mar 18, 2025
b2c7ac9
fix(launchpool): improve stake and unstake to handle better on overflow
Trong-Tra Mar 18, 2025
45420f3
fix(launchpool): freeze lastNativeExRate after pool end
DxcMint868 Mar 18, 2025
25f7835
fix(launchpool): fix wrong vAsset amount calculation
DxcMint868 Mar 18, 2025
dbd1e8b
refactor(mocks): change the order of xcm fee calculation to match the…
Trong-Tra Mar 18, 2025
bdf5e70
fix(launchpool): adjust fee calculation to improve native asset withd…
Trong-Tra Mar 18, 2025
8a2826e
feat(launchpool): add _preInit function for mock dependency injection
DxcMint868 Mar 18, 2025
4d00481
feat(launchpool): add functions for token conversion without fees and…
DxcMint868 Mar 18, 2025
f82fb9a
fix(launchpool): adjust exchange rate calculations in MockXCMOracle
DxcMint868 Mar 18, 2025
d341e57
fix(NativeExchangeRateTest): adapt to contract changes (I'm gonna go …
DxcMint868 Mar 18, 2025
2ff1626
feat(oracle): add PoolInfo and RateInfo structs to IXCMOracle interface
Trong-Tra Mar 18, 2025
d786344
feat(launchpool): add internal functions to calculate vToken and nati…
Trong-Tra Mar 18, 2025
d8be77c
feat(launchpool): implement fee-free staking and unstaking methods fo…
Trong-Tra Mar 18, 2025
8850d77
refactor(mocks): simplify MockXCMOracle by removing fee-related logic
Trong-Tra Mar 18, 2025
6232aac
test(oracle): update test to adapt the new oracle
Trong-Tra Mar 18, 2025
4be60a3
test(GeneralGetterFuncsTest): add tests for active block delta calcul…
DxcMint868 Mar 22, 2025
d485d9e
test(ModifiersTest): add tests for modifiers validations
DxcMint868 Mar 22, 2025
b87bac1
refactor(launchpool): optimize native exchange rate handling and add …
DxcMint868 Mar 22, 2025
b9f5040
test(GeneralStateTest): add tests for Launchpool initialization and s…
DxcMint868 Mar 22, 2025
a6f6cce
test(NativeExRateTest): add more test cases and fix obsolete ones
DxcMint868 Mar 22, 2025
c88c4b0
feat(MockLaunchpool): update native exchange rate handling and expose…
DxcMint868 Mar 22, 2025
6672b9a
feat(MockXCMOracle): try to replicate real oracle. Add custom deploy …
DxcMint868 Mar 22, 2025
5a42062
test(TokenDecimalsTest): add tests for token decimals and revert cond…
DxcMint868 Mar 22, 2025
bf4a62f
test(MockXCMOracle): add custom deploy address and interactive test f…
DxcMint868 Mar 22, 2025
90aff03
test(ProjectHubUpgradeable): deploy MockXCMOracle at hard-coded address
DxcMint868 Mar 22, 2025
c4f023f
Merge branch 'dev' of github.com:Solidithi/Defrost-Contracts into dev
DxcMint868 Mar 23, 2025
40cbf48
Merge branch 'feat/launchpool/running-average-gradient-for-native-tok…
DxcMint868 Mar 23, 2025
cb8cf0e
test(DeployMockXCMOracle): add script for deploying MockXCMOracle at …
DxcMint868 Mar 23, 2025
8c85402
fix(CumulativeExchangeRateTest): update import paths and fix start bl…
DxcMint868 Mar 23, 2025
9bc8bdb
test(Launchpool): update MockXCMOracle initialization with parameters…
DxcMint868 Mar 23, 2025
47b238e
refactor(Launchpool): update withdrawal logic to use getWithdrawableV…
DxcMint868 Mar 23, 2025
870f2b8
refactor(Launchpool): remove unneeded nonReentrant modifier from clai…
DxcMint868 Mar 23, 2025
db6b462
feat(Launchpool): implement pause and unpause functionality for staki…
DxcMint868 Mar 23, 2025
6f45fef
test(Launchpool): add tests for pause and unpause functionality
DxcMint868 Mar 23, 2025
603daec
fix(Launchpool): fix wrong comparison between withdrawable and withdr…
DxcMint868 Mar 23, 2025
044f291
feat(Launchpool): raise owner share of interest from 70% to 90%
DxcMint868 Mar 24, 2025
c934fe3
feat(MockLaunchpool): add functions to set platform admin address and…
DxcMint868 Mar 24, 2025
bd92df0
feat(MockLaunchpool): comment out temporary functions and set platfor…
DxcMint868 Mar 25, 2025
8697e2c
feat(MockXCMOracle): enhance exchange rate logic and remove unused fu…
DxcMint868 Mar 25, 2025
dc545e4
feat(Launchpool): implement platform fee claiming logic and update re…
DxcMint868 Mar 25, 2025
faec84b
feat(DeployMockXCMOracle): update deploy function to include APY and …
DxcMint868 Mar 25, 2025
b8a2494
refactor(mock): move OracleTest.t.sol from test/mocks to test/MockXCM…
DxcMint868 Mar 25, 2025
1d7427d
fix(Launchpool): handle edge case where avgNativeExRateGradient is 0 …
DxcMint868 Mar 27, 2025
21018d4
refactor(MockLaunchpool): rename exposed getter funcs for consistency
DxcMint868 Mar 27, 2025
86d6201
test(SetupStakers): new testutil for creating stakers, approving vAss…
DxcMint868 Mar 27, 2025
a54284a
feat(SetupStakers): add random salt generation for more 'unique' stak…
DxcMint868 Mar 27, 2025
b9f73da
refactor(MockXCMOracle): update exchange rate decimals to 18, add fun…
DxcMint868 Mar 27, 2025
72c1f1a
refactor(MockXCMOracle): update MockXCMOracle deployment params accro…
DxcMint868 Mar 27, 2025
0f371f7
refactor(NativeExchangeRateTest): replace NATIVE_SCALING_FACTOR with …
DxcMint868 Mar 27, 2025
697c98a
test(PlatformFee): add comprehensive tests for platform fee claiming …
DxcMint868 Mar 27, 2025
28ab69e
test(OwnerInterestTest): add test for owner interest claiming functio…
DxcMint868 Mar 27, 2025
0de558b
chore(hardhat): reserve dedicated 'test-hardhat' dir for hardhat tests
DxcMint868 Mar 28, 2025
69fbab1
fix(test): fix false-negative failing test
DxcMint868 Mar 30, 2025
6513c8b
refactor(Launchpool): simplify _handleUnstakeAmount return values
DxcMint868 Mar 30, 2025
b218431
refactor(Launchpool): rename getTotalVAssetStaked to getTotalStakedVT…
DxcMint868 Mar 31, 2025
6c0eb1f
test(Launchpool): add test for getWithdrawableVTokens() function
DxcMint868 Mar 31, 2025
7ca8644
refactor: change few test case names to snake_case
DxcMint868 Apr 1, 2025
fa4ee16
chore: use shared package manager pnpm@10.4.0
DxcMint868 Apr 2, 2025
cd2af1e
chore: switch from npx to pnpm for commitlint and lint-staged commands
DxcMint868 Apr 3, 2025
6ac69d7
refactor(create-launchpool): update function params to include vAsset…
DxcMint868 Apr 7, 2025
4c52631
refactor(test): rename fuzz test function to snake_case
DxcMint868 Apr 7, 2025
09b5c18
refactor(Launchpool): calculate deltaBlocks in advance to prevent sta…
Trong-Tra Apr 8, 2025
faa26d3
feat: completely remove listing state of launchpool from contract's d…
DxcMint868 Apr 8, 2025
d2de87c
refactor(launchpool): use proportional native token accounting for na…
DxcMint868 Apr 8, 2025
8c48d94
fix: failing tests related to estimated native exchange rate
DxcMint868 Apr 8, 2025
1677ceb
Revert "refactor(launchpool): use proportional native token accountin…
DxcMint868 Apr 8, 2025
8b0c835
fix: set platform admin address in _preInit function
DxcMint868 Apr 8, 2025
7150640
chore: add first records of contract deployment to Moonbase Alpha tes…
DxcMint868 Apr 12, 2025
5ea4661
fix(Launchpool): re-added internal tick for unstake function
Trong-Tra Apr 13, 2025
a0af73f
test(UnstakeTest): added new unstake tests
Trong-Tra Apr 13, 2025
5ec9277
refactor(test): rename test functions to snake_case for consistency
Trong-Tra Apr 13, 2025
005067d
test(StakeTest): add comprehensive staking tests for Launchpool funct…
Trong-Tra Apr 13, 2025
cc58254
fix: add missing native token exchange rate update and tick operation…
DxcMint868 Apr 13, 2025
40e656a
fix: update deployment version format and remove unused isProxy flag
DxcMint868 Apr 13, 2025
a0c0a49
fix: update expected vTokens calculation to use correct exchange rate…
DxcMint868 Apr 13, 2025
db2a259
fix(Launchpool): re-added internal tick for unstake function
Trong-Tra Apr 13, 2025
9ea52e0
test(UnstakeTest): added new unstake tests
Trong-Tra Apr 13, 2025
29b5771
refactor(test): rename test functions to snake_case for consistency
Trong-Tra Apr 13, 2025
a815289
test(StakeTest): add comprehensive staking tests for Launchpool funct…
Trong-Tra Apr 13, 2025
307efc5
Merge branch 'dev' of github.com:Solidithi/Defrost-Contracts into dev
DxcMint868 Apr 13, 2025
ae37b7f
Revert fault commit "fix: update expected vTokens calculation to use …
Trong-Tra Apr 13, 2025
53fea86
fix: update expected vTokens calculation to use correct exchange rate…
Trong-Tra Apr 13, 2025
2187f06
Merge branch 'dev' of github.com:Solidithi/Defrost-Contracts into dev
DxcMint868 Apr 13, 2025
23151f6
refactor: integrate XCMOracle address into Launchpool and ProjectHubU…
DxcMint868 Apr 13, 2025
a482cfd
feat: add deployment script for MockXCMOracle
DxcMint868 Apr 13, 2025
9848e7e
feat: enhance launchpool creation by adding native asset mapping and …
DxcMint868 Apr 13, 2025
b679ddb
feat: add XCM Oracle address verification and enhance launchpool crea…
DxcMint868 Apr 13, 2025
b21eee5
feat: add deployment logs of MockXCMOracle, ProjectHubUpgradable, lib…
DxcMint868 Apr 13, 2025
d89a221
Merge branch 'dev' into test
Trong-Tra Apr 18, 2025
cc2b7a1
feat: add test for cumulative exchange rate with static emission rate
Trong-Tra Apr 18, 2025
ce29695
feat: enhance staking logic to enforce maximum VTokens per staker
Trong-Tra Apr 18, 2025
13849f8
fix: staking cap for each investor in launchpool
Trong-Tra Apr 18, 2025
2ca7a5d
feat: add tests for staking behavior exceeding maximum per staker
Trong-Tra Apr 18, 2025
5d244cf
fix: adjust claim offset calculation to include SCALING_FACTOR for un…
Trong-Tra Apr 18, 2025
27e8340
feat: improve unstaking logic to ensure correct withdrawable amounts …
Trong-Tra Apr 18, 2025
76d1f39
fix: update claimable tokens verification after emergency unstaking
Trong-Tra Apr 27, 2025
2107599
chore: update gitignore to ignore on chain deployment log
Trong-Tra Apr 27, 2025
a35454a
feat: add deployment script for Launchpool
Trong-Tra Apr 27, 2025
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
12 changes: 1 addition & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,7 @@ jobs:
run: |
forge --version

- name: Run Forge fmt
run: |
forge fmt --check
id: fmt

- name: Run Forge build
run: |
forge build --sizes
id: build

- name: Run Forge tests
run: |
forge test -vvv
forge test --build-info --force --via-ir -vvv
id: test
26 changes: 23 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,32 @@ cache/
out/

# Ignores development broadcast logs
!/broadcast
/broadcast/*/31337/
/broadcast/**/dry-run/
/broadcast

# Docs
docs/

# Dotenv file
.env

node_modules
.env

# Hardhat files
/cache-hardhat
/out-hardhat

# TypeChain files
/typechain
/typechain-types

# solidity-coverage files
/coverage
/coverage.json

# Hardhat Ignition default folder for deployments against a local node
ignition/deployments/chain-31337

# Localhost deployment files
deployments/31337_localhost
deployments/1337_localhost
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
echo "🐙 Performing commit message checks..."
npx --no -- commitlint --edit ${1}
pnpm commitlint --edit ${1}
echo "Your commit message is a work of art. Chef kiss 🧑‍🍳😙🤌. Nice job 👍"
21 changes: 6 additions & 15 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
# Linting
echo "🕺 Performing linting checks..."
npx lint-staged
pnpm exec lint-staged
echo "Your code is beautiful, nice job 👍"

echo "🧪 Running tests..."
if git diff --cached --name-only | grep -q "\.sol$"; then
if ls test/**/*.sol 1> /dev/null 2>&1; then
if ! forge test; then
echo "❌ Tests failed! Please fix before committing."
exit 1
fi
echo "All tests passed 🚀"
else
echo "No Solidity test files found, skipping tests..."
fi
else
echo "No Solidity files in staged changes, skipping..."
fi
# Compilation test
echo "Hold'on, we're making sure yer code compiles 👨‍🍳"
forge build --skip 'test' --skip 'script' --build-info --force
echo "It worked this time, keep on doing gud stuffs 🎉"
Loading