Skip to content

Commit 2038a6a

Browse files
refactor: update repo to latest version of the contracts (#18)
1 parent 7152e79 commit 2038a6a

File tree

12 files changed

+81
-66
lines changed

12 files changed

+81
-66
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export SEPOLIA_RPC_URL="YOUR_SEPOLIA_RPC_URL"
1+
MAINNET_RPC_URL="YOUR_MAINNET_RPC_URL"

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: "CI"
22

33
env:
4-
SEPOLIA_RPC_URL: ${{ secrets.SEPOLIA_RPC_URL }}
4+
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
55
FOUNDRY_PROFILE: "ci"
66

77
on:
@@ -20,6 +20,8 @@ jobs:
2020

2121
- name: "Install Foundry"
2222
uses: "foundry-rs/foundry-toolchain@v1"
23+
with:
24+
version: "v1.3.6"
2325

2426
- name: "Install Bun"
2527
uses: "oven-sh/setup-bun@v1"
@@ -43,6 +45,8 @@ jobs:
4345

4446
- name: "Install Foundry"
4547
uses: "foundry-rs/foundry-toolchain@v1"
48+
with:
49+
version: "v1.3.6"
4650

4751
- name: "Install Bun"
4852
uses: "oven-sh/setup-bun@v1"
@@ -67,6 +71,8 @@ jobs:
6771

6872
- name: "Install Foundry"
6973
uses: "foundry-rs/foundry-toolchain@v1"
74+
with:
75+
version: "v1.3.6"
7076

7177
- name: "Install Bun"
7278
uses: "oven-sh/setup-bun@v1"

.gitignore

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@ out
88
*.log
99
.DS_Store
1010
.pnp.*
11-
lcov.info
11+
bun.lockb
1212
package-lock.json
1313
pnpm-lock.yaml
1414
yarn.lock
15-
16-
# broadcasts
17-
!broadcast
18-
broadcast/*
19-
broadcast/*/31337/

.prettierrc.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
bracketSpacing: true
21
printWidth: 120
3-
proseWrap: "always"
4-
singleQuote: false
5-
tabWidth: 2
62
trailingComma: "all"
7-
useTabs: false
3+
overrides:
4+
- files: "*.md"
5+
options:
6+
proseWrap: "always"

.solhint.json

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
{
22
"extends": "solhint:recommended",
33
"rules": {
4-
"code-complexity": ["error", 8],
5-
"compiler-version": ["error", ">=0.8.13"],
6-
"contract-name-camelcase": "off",
7-
"func-name-mixedcase": "off",
4+
"avoid-low-level-calls": "off",
5+
"code-complexity": ["error", 9],
6+
"compiler-version": ["error", ">=0.8.22"],
87
"func-visibility": ["error", { "ignoreConstructors": true }],
9-
"max-line-length": ["error", 124],
10-
"named-parameters-mapping": "warn",
11-
"no-console": "off",
12-
"not-rely-on-time": "off"
8+
"func-name-mixedcase": "off",
9+
"function-max-lines": "off",
10+
"gas-custom-errors": "off",
11+
"gas-increment-by-one": "off",
12+
"gas-indexed-events": "off",
13+
"gas-small-strings": "off",
14+
"gas-strict-inequalities": "off",
15+
"gas-struct-packing": "off",
16+
"max-line-length": ["error", 128],
17+
"max-states-count": ["warn", 20],
18+
"one-contract-per-file": "off",
19+
"no-empty-blocks": "off",
20+
"not-rely-on-time": "off",
21+
"use-natspec": "off",
22+
"var-name-mixedcase": "warn"
1323
}
1424
}

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"[json][jsonc][md][yml]": {
3+
"editor.defaultFormatter": "esbenp.prettier-vscode"
4+
},
25
"[solidity]": {
36
"editor.defaultFormatter": "NomicFoundation.hardhat-solidity"
47
},

bun.lockb

114 KB
Binary file not shown.

foundry.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@
88
optimizer = true
99
optimizer_runs = 5000
1010
out = "out"
11-
solc = "0.8.26"
11+
solc = "0.8.29"
1212
src = "src"
1313
test = "test"
1414

15+
[lint]
16+
lint_on_build = false
17+
1518
[fmt]
1619
bracket_spacing = true
1720
int_types = "long"
@@ -23,4 +26,4 @@
2326
wrap_comments = true
2427

2528
[rpc_endpoints]
26-
sepolia = "${SEPOLIA_RPC_URL}"
29+
mainnet = "${MAINNET_RPC_URL}"

package.json

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,41 +10,50 @@
1010
"url": "https://github.com/sablier-labs/lockup-integration-template/issues"
1111
},
1212
"dependencies": {
13-
"@openzeppelin/contracts": "5.0.2",
14-
"@prb/math": "4.0.3",
15-
"@sablier/lockup": "^2.0.0",
16-
"@sablier/airdrops": "^1.3.0"
13+
"@openzeppelin/contracts": "5.3.0",
14+
"@prb/math": "4.1.0",
15+
"@sablier/airdrops": "2.0.1",
16+
"@sablier/evm-utils": "1.0.1",
17+
"@sablier/flow": "2.0.0",
18+
"@sablier/lockup": "3.0.1"
1719
},
1820
"devDependencies": {
19-
"forge-std": "github:foundry-rs/forge-std#v1.8.1",
20-
"prettier": "^2.8.8",
21-
"solhint": "^4.0.0"
21+
"forge-std": "github:foundry-rs/forge-std#v1.10.0",
22+
"prettier": "^3.5",
23+
"solhint": "^6.0"
2224
},
2325
"homepage": "https://github.com/sablier-labs/lockup-integration-template#readme",
2426
"keywords": [
25-
"asset-streaming",
2627
"blockchain",
2728
"cryptoasset-streaming",
2829
"cryptoassets",
29-
"cryptotoken-streaming",
30-
"cryptotokens",
3130
"ethereum",
31+
"evm",
3232
"foundry",
3333
"money-streaming",
3434
"real-time-finance",
3535
"sablier",
36+
"sablier-airdrops",
37+
"sablier-flow",
3638
"sablier-lockup",
3739
"smart-contracts",
3840
"solidity",
39-
"token-streaming"
41+
"token-distribution",
42+
"token-streaming",
43+
"token-vesting",
44+
"vesting",
45+
"web3"
4046
],
4147
"license": "GPL-3.0-or-later",
4248
"private": true,
4349
"repository": "github.com:sablier-labs/lockup-integration-template",
4450
"scripts": {
4551
"clean": "rm -rf cache out",
52+
"build": "forge build",
53+
"forge-check": "forge fmt --check",
54+
"forge-write": "forge fmt",
4655
"lint": "bun run lint:sol && bun run prettier:check",
47-
"lint:sol": "forge fmt --check && bun solhint \"{script,src,test}/**/*.sol\"",
56+
"lint:sol": "bun run forge-check && bun solhint \"{script,src,test}/**/*.sol\"",
4857
"prettier:check": "prettier --check \"**/*.{json,md,yml}\"",
4958
"prettier:write": "prettier --write \"**/*.{json,md,yml}\"",
5059
"test": "forge test"

remappings.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)