Skip to content

Commit

Permalink
mv libs to separate workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Sep 24, 2024
1 parent 2f56119 commit 89a8fad
Show file tree
Hide file tree
Showing 27 changed files with 60 additions and 18 deletions.
15 changes: 0 additions & 15 deletions cairo-contracts/Scarb.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
# Code generated by scarb DO NOT EDIT.
version = 1

[[package]]
name = "cometbft"
version = "0.1.0"
dependencies = [
"protobuf",
"snforge_std",
]

[[package]]
name = "openzeppelin_access"
version = "0.16.0"
Expand Down Expand Up @@ -64,13 +56,6 @@ name = "openzeppelin_utils"
version = "0.16.0"
source = "git+https://github.com/OpenZeppelin/cairo-contracts.git?tag=v0.16.0#ba00ce76a93dcf25c081ab2698da20690b5a1cfb"

[[package]]
name = "protobuf"
version = "0.1.0"
dependencies = [
"snforge_std",
]

[[package]]
name = "snforge_std"
version = "0.27.0"
Expand Down
3 changes: 0 additions & 3 deletions cairo-contracts/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ members = [
"packages/contracts",
"packages/core",
"packages/utils",
"cairo-libs/protobuf",
"cairo-libs/cometbft",
"cometbft",
]

[workspace.package]
Expand Down
9 changes: 9 additions & 0 deletions cairo-libs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<div align="center">
<h1>Cairo Libraries</h1>
</div>

This directory contains the Cairo libraries that are used by the Starknet
contracts in the `cairo-contracts`.

- Protobuf decoding and encoding
- CometBFT light client types
22 changes: 22 additions & 0 deletions cairo-libs/Scarb.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Code generated by scarb DO NOT EDIT.
version = 1

[[package]]
name = "cometbft"
version = "0.1.0"
dependencies = [
"protobuf",
"snforge_std",
]

[[package]]
name = "protobuf"
version = "0.1.0"
dependencies = [
"snforge_std",
]

[[package]]
name = "snforge_std"
version = "0.27.0"
source = "git+https://github.com/foundry-rs/starknet-foundry?tag=v0.27.0#2d99b7c00678ef0363881ee0273550c44a9263de"
29 changes: 29 additions & 0 deletions cairo-libs/Scarb.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[workspace]
members = [
"packages/protobuf",
"packages/cometbft",
]

[workspace.package]
version = "0.1.0"
edition = "2023_11"
cairo-version = "2.8.0"
scarb-version = "2.8.0"
license = "Apache-2.0"
authors = [ "Informal Systems <[email protected]>" ]
repository = "https://github.com/informalsystems/ibc-starknet"
Readme = "README.md"
keywords = [ "protobuf", "cometbft", "ibc" ]
description = "Collection of Cairo libraries for IBC integration with Starknet"

[workspace.scripts]
test = "snforge test"

[workspace.dependencies]
# external dependencies
cairo_test = "2.8.0"
starknet = "2.8.0"
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "v0.27.0" }

[workspace.tool.fmt]
sort-module-level-items = true
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 89a8fad

Please sign in to comment.