Skip to content

Commit

Permalink
⬆️ move to starknet-io org and upgrade scarb to 2.3.1 and snforge t…
Browse files Browse the repository at this point in the history
…o 0.9.1
  • Loading branch information
AbdelStark committed Nov 6, 2023
1 parent ff87e75 commit 4ee59a2
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 23 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@ name: Build

on: [push, pull_request]

env:
SCARB_VERSION: 0.7.0

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: "0.7.0"
scarb-version: "2.3.1"
- name: Check cairo format
run: scarb fmt --check
- name: Build cairo programs
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: Test
on: [push, pull_request]

env:
SCARB_VERSION: 0.7.0
STARKNET_FOUNDRY_VERSION: 0.5.0
STARKNET_FOUNDRY_VERSION: 0.9.1

jobs:
check:
Expand All @@ -13,8 +12,8 @@ jobs:
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: "0.7.0"
scarb-version: "2.3.1"
- name: Install starknet foundry
run: curl -L https://raw.githubusercontent.com/foundry-rs/starknet-foundry/master/scripts/install.sh | sh -s -- -v ${STARKNET_FOUNDRY_VERSION}
- name: Run cairo tests
run: snforge
run: snforge test
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
scarb 0.7.0
scarb 2.3.1
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@

<p align="center">
<a href="LICENSE">
<img src="https://img.shields.io/github/license/abdelhamidbakhta/tokei.svg?style=flat-square" alt="Project license">
<img src="https://img.shields.io/github/license/starknet-io/tokei.svg?style=flat-square" alt="Project license">
</a>
<a href="https://github.com/abdelhamidbakhta/tokei/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22">
<a href="https://github.com/starknet-io/tokei/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22">
<img src="https://img.shields.io/badge/PRs-welcome-ff69b4.svg?style=flat-square" alt="Pull Requests welcome">
</a>
<a href="https://abdelhamidbakhta.github.io/tokei/">
<a href="https://starknet-io.github.io/tokei/">
<img src="https://img.shields.io/badge/Read-Tokei_Book-blue" alt="Read Tokei Book">
</a>
</p>
Expand All @@ -29,7 +29,7 @@

Tokei is a token streaming protocol, inspired by Sablier, for Starknet.

Read the [Tokei Book](https://abdelhamidbakhta.github.io/tokei/) to learn more about the project.
Read the [Tokei Book](https://starknet-io.github.io/tokei/) to learn more about the project.

## 🛠️ Build

Expand All @@ -51,7 +51,7 @@ snforge

Here are some resources to help you get started:

- [Tokei Book](https://abdelhamidbakhta.github.io/tokei/)
- [Tokei Book](https://starknet-io.github.io/tokei/)
- [Cairo Book](https://book.cairo-lang.org/)
- [Starknet Book](https://book.starknet.io/)
- [Starknet Foundry Book](https://foundry-rs.github.io/starknet-foundry/)
Expand Down
14 changes: 14 additions & 0 deletions Scarb.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Code generated by scarb DO NOT EDIT.
version = 1

[[package]]
name = "snforge_std"
version = "0.1.0"
source = "git+https://github.com/foundry-rs/starknet-foundry.git?tag=v0.9.1#da085bd11e1b151d0592f43917136560d9b70d37"

[[package]]
name = "tokei"
version = "0.1.0"
dependencies = [
"snforge_std",
]
12 changes: 6 additions & 6 deletions Scarb.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "tokei"
version = "0.1.0"
authors = ["Abdelhamid Bakhta <@abdelhamidbakhta>"]
authors = ["Abdelhamid Bakhta <@starknet-io>"]
license = "MIT"
keywords = ["starknet", "vesting"]
description = "✨ 🐺 Starknet ERC20 token vesting smart contracts 💰⏳"
documentation = "https://github.com/abdelhamidbakhta/tokei"
homepage = "https://github.com/abdelhamidbakhta/tokei"
repository = "https://github.com/abdelhamidbakhta/tokei"
documentation = "https://github.com/starknet-io/tokei"
homepage = "https://github.com/starknet-io/tokei"
repository = "https://github.com/starknet-io/tokei"

[[target.starknet-contract]]
sierra = true
Expand All @@ -18,8 +18,8 @@ allowed-libfuncs-list.name = "experimental"
sierra-replace-ids = true

[dependencies]
starknet = ">=2.1.0"
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry.git", tag = "v0.5.0" }
starknet = ">=2.3.1"
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry.git", tag = "v0.9.1" }


[tool.snforge]
Expand Down
6 changes: 3 additions & 3 deletions book/book.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[book]
authors = ["@abdelhamidbakhta"]
authors = ["@starknet-io"]
language = "en"
multilingual = false
src = "src"
title = "Tokei Book"

[output.html]
git-repository-url = "https://github.com/abdelhamidbakhta/tokei"
edit-url-template = "https://github.com/abdelhamidbakhta/tokei/book/{path}"
git-repository-url = "https://github.com/starknet-io/tokei"
edit-url-template = "https://github.com/starknet-io/tokei/book/{path}"

[output.html.playground]
runnable = false

0 comments on commit 4ee59a2

Please sign in to comment.