Skip to content
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

Release v.1.2.0 #364

Merged
merged 68 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
11e8f77
perf: remove unchecked in for loop
smol-ninja Jan 6, 2024
da9f857
test: remove unnecessary unchecked blocks
andreivladbrg Jan 6, 2024
46c7143
chore: use pragma solidity >=0.8.22
andreivladbrg Jan 6, 2024
90e1f59
refactor: remove protocol fee checks in MerkleStreamerLL
smol-ninja Jan 10, 2024
042a48b
chore: remove unused import
andreivladbrg Jan 10, 2024
cee309e
refactor: consistency in calldata related struct parameters (#254)
smol-ninja Jan 12, 2024
3159565
Rename create functions to match V2 core (#264)
smol-ninja Jan 26, 2024
817f6fb
feat: add `name`, introduces struct `ConstructorParams` (#262)
smol-ninja Jan 30, 2024
9066d84
style: merge storage and constants to state headers
andreivladbrg Jan 26, 2024
c848ae7
feat: add `name` string parameter in MerkleStreamer contract constructor
smol-ninja Jan 15, 2024
9b24fb6
refactor: rename constructorParams to baseParams in CreateMerkleLocku…
smol-ninja Jan 31, 2024
77a0982
build: update openzeppelin to v5.0
andreivladbrg Feb 6, 2024
f82777b
style: order functions alphabetically in ISablierV2MerkleLockup
andreivladbrg Feb 13, 2024
b310ed0
ci: remove deployment workflow
andreivladbrg Feb 13, 2024
bd483e2
test: use pragma solidity >=0.8.22 in BaseScript test
andreivladbrg Feb 13, 2024
ffe7844
build: update bun.lockb file
andreivladbrg Feb 13, 2024
536be9e
test: add `ASSET` variable in `Fork.t.sol` to store forked asset (#287)
smol-ninja Feb 14, 2024
77a1191
build: update bun lock file (#294)
andreivladbrg Feb 21, 2024
9c3b62d
feat: store ipfsCID as a public variable
smol-ninja Feb 7, 2024
7f9f2d6
chore: correct explantory comment
andreivladbrg Feb 28, 2024
2282afc
MerkleLockup for LockupTranched (#297)
andreivladbrg Mar 11, 2024
caa7a29
feat: add batch function for lockup tranched
andreivladbrg Mar 7, 2024
6a86e7f
build: bump core contracts
andreivladbrg Mar 11, 2024
bcd435d
refactor: reorder imports in fork tests
smol-ninja Mar 11, 2024
f0f7b36
test: remove unused functions from Base_Test
andreivladbrg Mar 11, 2024
65a51db
Merge pull request #300 from sablier-labs/feat/add-tranched-batches
andreivladbrg Mar 11, 2024
f862f5f
feat: move precompiles to precompiles directory (#302)
smol-ninja Mar 14, 2024
002cad9
test: include recipient in StreamLT, StreamLL structs (#304)
smol-ninja Mar 14, 2024
5f77d83
chore: rename custom-errors to gas-custom-errors in solhint
smol-ninja Mar 16, 2024
c16396e
docs: update security assumptions
PaulRBerg Mar 20, 2024
73831c7
Integrate sphinx for deployment (#305)
smol-ninja Mar 21, 2024
a313183
Update forge-std to v1.8.1 (#307)
smol-ninja Mar 28, 2024
8683889
feat: include stream duration in CreateMerkleLockupLT event (#309)
smol-ninja Mar 31, 2024
06ffb31
build: update bun.lockb
andreivladbrg Apr 8, 2024
cb2ed63
ci: pass CODECOV_TOKEN
PaulRBerg Apr 9, 2024
bac4db5
ci: remove deployment workflow
PaulRBerg Apr 11, 2024
6cee326
Merge pull request #325 from sablier-labs/ci/remove-deployment
PaulRBerg Apr 11, 2024
606b314
Feedback from PRB on V2.2 (#324)
PaulRBerg Apr 11, 2024
c874f2e
refactor: LockupLL to LL and LockupLT to LT
smol-ninja Apr 11, 2024
9337954
Merge pull request #321 from sablier-labs/refactor/use-abbreviations
PaulRBerg Apr 11, 2024
470aea1
build: bump sphinx
smol-ninja Apr 11, 2024
7c3ca60
refactor: rename Batch to BatchLockup (#322)
smol-ninja Apr 12, 2024
a57b2e1
refactor: constructor params (#326)
PaulRBerg Apr 12, 2024
90de871
docs: update security assumptions
smol-ninja Apr 12, 2024
ec5750c
Merge pull request #330 from sablier-labs/docs/security-assumption
PaulRBerg Apr 12, 2024
502bacc
build: replace ffi with stdJson for salt creation (#333)
smol-ninja Apr 23, 2024
1bf91e6
refactor: use `CREATE` instead of `CREATE2` (#339)
smol-ninja May 3, 2024
9eff88c
feat: grace period mechanism for clawback (#340)
smol-ninja May 3, 2024
64a849b
refactor: `Range` to `Timestamp` (#335)
smol-ninja May 4, 2024
37f524b
docs: move _checkClaim to INTERNAL NON-CONSTANT FUNCTIONS
smol-ninja May 7, 2024
eb2983d
Merge pull request #343 from sablier-labs/docs/internal-non-constant
smol-ninja May 7, 2024
bcb143e
refactor: remove sphinx (#346)
andreivladbrg May 15, 2024
8016b5b
build: update evm version to Shanghai
smol-ninja May 16, 2024
9234368
build: update bun.lockb file
andreivladbrg May 16, 2024
c44d684
Merge pull request #348 from sablier-labs/shanghai
smol-ninja May 16, 2024
58a1446
build: update bun lockfile
PaulRBerg Jun 2, 2024
279c209
docs: update security assumptions (#349)
PaulRBerg Jun 2, 2024
89de138
build: bump deps (#351)
smol-ninja Jun 14, 2024
9ea29b2
build: update bun lockfile
PaulRBerg Jun 17, 2024
46ca3bc
feat: use CREATE2 to deploy merkle lockup campaigns (#355)
smol-ninja Jun 18, 2024
78835c5
feat: view function `isPercentagesSum100` (#357)
smol-ninja Jun 21, 2024
9d7a15b
perf: declare a count for tranches length (#358)
andreivladbrg Jun 21, 2024
f9defae
chore: update bun lockfile
smol-ninja Jun 24, 2024
37164ae
add gas benchmarks for `BatchLockup` (#359)
smol-ninja Jun 29, 2024
c10978d
chore: explicitely set gas_limit in foundry config
smol-ninja Jun 29, 2024
98ee3b6
build: bump core (#363)
andreivladbrg Jul 4, 2024
2c8643a
docs: roll 1.2.0 (#329)
smol-ninja Jul 4, 2024
730566c
Merge branch 'main' into staging
andreivladbrg Jul 4, 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
1 change: 1 addition & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ coverage:
status:
patch: off
ignore:
- "precompiles"
- "script"
- "test"
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export API_KEY_INFURA="YOUR_API_KEY_INFURA"
export EOA="YOUR_EOA_ADDRESS"
export FOUNDRY_PROFILE="lite"
export MNEMONIC="YOUR_MNEMONIC"
export RPC_URL_MAINNET="YOUR_RPC_URL_MAINNET"
33 changes: 0 additions & 33 deletions .gas-snapshot

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,25 @@ jobs:
match-path: "test/integration/**/*.sol"
name: "Integration tests"

test-utils:
needs: ["lint", "build"]
uses: "sablier-labs/reusable-workflows/.github/workflows/forge-test.yml@main"
with:
foundry-profile: "test-optimized"
match-path: "test/utils/**/*.sol"
name: "Utils tests"

test-fork:
needs: ["lint", "build"]
secrets:
RPC_URL_MAINNET: ${{ secrets.RPC_URL_MAINNET }}
uses: "sablier-labs/reusable-workflows/.github/workflows/forge-test.yml@main"
with:
foundry-fuzz-runs: 20
foundry-profile: "test-optimized"
match-path: "test/fork/**/*.sol"
name: "Fork tests"

coverage:
needs: ["lint", "build"]
secrets:
Expand Down
42 changes: 0 additions & 42 deletions .github/workflows/create-merkle-streamer-ll.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/multibuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ jobs:
- name: "Check that V2 Periphery can be built with multiple Solidity versions"
uses: "PaulRBerg/foundry-multibuild@v1"
with:
min: "0.8.19"
max: "0.8.23"
min: "0.8.22"
max: "0.8.26"
skip-test: "true"
4 changes: 2 additions & 2 deletions .solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"rules": {
"avoid-low-level-calls": "off",
"code-complexity": ["error", 8],
"compiler-version": ["error", ">=0.8.19"],
"compiler-version": ["error", ">=0.8.22"],
"contract-name-camelcase": "off",
"const-name-snakecase": "off",
"custom-errors": "off",
"func-name-mixedcase": "off",
"func-visibility": ["error", { "ignoreConstructors": true }],
"gas-custom-errors": "off",
"max-line-length": ["error", 123],
"named-parameters-mapping": "warn",
"no-empty-blocks": "off",
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@
".gas-snapshot": "julia"
},
"editor.formatOnSave": true,
"search.exclude": {
"**/node_modules": true
},
"solidity.formatter": "forge"
}
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,39 @@ All notable changes to this project will be documented in this file.

The format is based on [Common Changelog](https://common-changelog.org).

[1.2.0]: https://github.com/sablier-labs/v2-periphery/compare/v1.1.1...v1.2.0
[1.1.1]: https://github.com/sablier-labs/v2-periphery/compare/v1.1.0...v1.1.1
[1.1.0]: https://github.com/sablier-labs/v2-periphery/compare/v1.0.3...v1.1.0
[1.0.3]: https://github.com/sablier-labs/v2-periphery/compare/v1.0.2...v1.0.3
[1.0.2]: https://github.com/sablier-labs/v2-periphery/compare/v1.0.1...v1.0.2
[1.0.1]: https://github.com/sablier-labs/v2-periphery/compare/v1.0.0...v1.0.1
[1.0.0]: https://github.com/sablier-labs/v2-periphery/releases/tag/v1.0.0

## [1.2.0] - 2024-07-04

### Changed

- Bump dependencies ([#283](https://github.com/sablier-labs/v2-periphery/pull/283),
[#351](https://github.com/sablier-labs/v2-periphery/pull/351),
[#363](https://github.com/sablier-labs/v2-periphery/pull/363))
- Rename `Batch` to `BatchLockup` ([#322](https://github.com/sablier-labs/v2-periphery/pull/322))
- Rename `MerkleStreamer` to `MerkleLockup` ([#268](https://github.com/sablier-labs/v2-periphery/pull/268))
- Refactor `Range` to `Timestamps` ([#335](https://github.com/sablier-labs/v2-periphery/pull/335))
- Switch to Bun ([#249](https://github.com/sablier-labs/v2-periphery/pull/249))
- Use Solidity v0.8.26 ([#351](https://github.com/sablier-labs/v2-periphery/pull/351))

### Added

- And `BatchLockup` support for `LockupTranched` ([#300](https://github.com/sablier-labs/v2-periphery/pull/300))
- Add grace period mechanism for `clawback` function ([#340](https://github.com/sablier-labs/v2-periphery/pull/340))
- Add `MerkleLockup` support for `LockupTranched` ([#297](https://github.com/sablier-labs/v2-periphery/pull/297),
[#357](https://github.com/sablier-labs/v2-periphery/pull/357))
- Add `precompiles` in the NPM release ([#302](https://github.com/sablier-labs/v2-periphery/pull/302))

### Removed

- **Breaking**: Remove protocol fee check in `MerkleLL` ([#257](https://github.com/sablier-labs/v2-periphery/pull/257))

## [1.1.1] - 2023-12-20

### Changed
Expand Down
6 changes: 4 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ The Program does NOT cover the following:

Vulnerabilities contingent upon the occurrence of any of the following also are outside the scope of this Program:

- Front-end bugs
- DDOS attacks
- Front-end bugs (clickjacking etc.)
- DDoS attacks
- Spamming
- Phishing
- Social engineering attacks
Expand All @@ -47,6 +47,8 @@ vulnerability, it must adhere to these assumptions as well:

- [All assumptions](https://github.com/sablier-labs/v2-core/blob/main/SECURITY.md) in Sablier V2 Core apply to Sablier
V2 Periphery as well.
- In `SablierV2MerkleLT`, the tranche unlock percentages and the durations will be same for all airdrop claimers.
- In `SablierV2MerkleLockupFactory`, there should be no need to create two Merkle campaigns with identical parameters.

### Rewards

Expand Down
Loading