Skip to content

Commit 6eefde1

Browse files
committed
hooks wip
1 parent 4c29732 commit 6eefde1

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Slice pricing strategies
1+
# Slice hooks
22

3-
This repo contains custom pricing strategies for products sold on [Slice](https://slice.so).
3+
This repo contains smart contracts for pricing strategies and onchain actions, which can be used on [Slice](https://slice.so) products.
44

55
Each strategy inherits the [ISliceProductPrice](/src/Slice/interfaces/utils/ISliceProductPrice.sol) interface and serves two main purposes:
66

@@ -28,7 +28,7 @@ A discount strategy that allows a product owner to set a discount for a product
2828

2929
```sh
3030
cp .env.example .env
31-
forge install
31+
forge soldeer install
3232
```
3333

3434
You will need a copy of [Foundry](https://github.com/foundry-rs/foundry) installed before proceeding. See the [installation guide](https://github.com/foundry-rs/foundry#installation) for details.

foundry.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dynamic_test_linking = true
77
libs = ["dependencies", "../core/src", "../core/dependencies"]
88
fs_permissions = [{ access = "read", path = "./src"}, { access= "read", path = "./broadcast/Deploy.s.sol/8453/run-latest.json"}, { access = "read-write", path = "./deployments"}, { access = "read", path = "./out"}]
99
remappings = [
10-
"slice/=dependencies/slice-0.0.2/",
10+
"slice/=dependencies/slice-0.0.3/",
1111
"forge-std/=dependencies/forge-std-1.9.7/src/",
1212
"@openzeppelin-upgradeable-5.3.0/=dependencies/@openzeppelin-contracts-upgradeable-5.3.0/",
1313
"@openzeppelin-5.3.0/=dependencies/@openzeppelin-contracts-5.3.0/",
@@ -40,9 +40,11 @@ base-goerli = {key="${ETHERSCAN_KEY}", chain=84531, url="https://api-goerli.base
4040

4141
[soldeer]
4242
recursive_deps = true
43+
remappings_generate = false
44+
remappings_regenerate = false
4345

4446
[dependencies]
45-
slice = "0.0.2"
47+
slice = "0.0.3"
4648
forge-std = "1.9.7"
4749
"@openzeppelin-contracts" = "5.3.0"
4850
"@openzeppelin-contracts-upgradeable" = "5.3.0"

soldeer.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ integrity = "9e60fdba82bc374df80db7f2951faff6467b9091873004a3d314cf0c084b3c7d"
2121

2222
[[dependencies]]
2323
name = "slice"
24-
version = "0.0.2"
25-
url = "https://soldeer-revisions.s3.amazonaws.com/slice/0_0_2_23-06-2025_11:59:12_src.zip"
26-
checksum = "d9c1daaeb72f63af5ee374420ed291d0ab8b9881309452dbd84dfc6ad268adc4"
27-
integrity = "0a08fe5a55abc15fdc9e5a29e65db2d192d775bd19b17d06529b4178a5b0b04d"
24+
version = "0.0.3"
25+
url = "https://soldeer-revisions.s3.amazonaws.com/slice/0_0_3_23-06-2025_14:43:22_src.zip"
26+
checksum = "4cab5dd357deb274edcc50b78da5e4d42f7f0bc1f7fcf33b44bd798b7c7d190d"
27+
integrity = "45bd7975e13a29f8a71fcc54d30ced5675faa90a72b0a8094cf5acc94a512b86"

0 commit comments

Comments
 (0)