Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
d3a9f31
Update: Add zh-cn translation.
cryptonerdcn May 30, 2023
7872300
Fix: Some typos.
cryptonerdcn May 30, 2023
e56ca75
Update: Modified the index.hbs file and LANGUAGES file in order to sh…
cryptonerdcn May 30, 2023
9d0c985
Fix: Typo.
cryptonerdcn May 31, 2023
57fcfba
Merge branch 'main' into zh-cn
cryptonerdcn Jun 1, 2023
d9ecc60
Add: Appendix A&E's translation.
cryptonerdcn Jun 1, 2023
d2c1c07
Fix: Typo.
cryptonerdcn Jun 1, 2023
80e7916
Merge branch 'main' into zh-cn
cryptonerdcn Jun 2, 2023
7495459
Fix: Some typos.
cryptonerdcn Jun 2, 2023
58213c1
Merge branch 'main' into zh-cn
cryptonerdcn Jun 4, 2023
ca20c6e
Update: Merge from main & translate new changes to Chinese & fixed ty…
cryptonerdcn Jun 4, 2023
35e31cd
Merge from main & Translate new changes to Chinese & Fix typos. (#237)
cryptonerdcn Jun 15, 2023
7290872
fix: missing example (#240)
enitrat Jun 17, 2023
2c549af
feat: named parameters (#239)
enitrat Jun 17, 2023
a838aa3
Add Security Considerations chapter (#206)
julio4 Jun 20, 2023
db783d8
Merge from main & Translate new changes to Chinese & Fix typos. (#242)
cryptonerdcn Jun 20, 2023
1a2a8a5
feat: vscode instruction updates (#245)
enitrat Jun 23, 2023
ca9bee5
Update i18n - Spanish (#259)
Nadai2010 Jun 26, 2023
606f714
Merge from main & Translate new changes to Chinese. (#262)
cryptonerdcn Jun 27, 2023
73c95d4
refactor: rename 'Dispatcher' contract to 'TokenWrapper'
enitrat Jun 28, 2023
efd24cd
docs: add tiagofneto as a contributor for review (#265)
allcontributors[bot] Jun 28, 2023
aab6c94
docs: add omahs as a contributor for code (#266)
allcontributors[bot] Jun 28, 2023
b59bca1
docs: add shramee as a contributor for code (#267)
allcontributors[bot] Jun 28, 2023
9b1f604
Feat: cairo verify tool (#249)
julio4 Jun 30, 2023
a710d93
fix: CI
enitrat Jun 30, 2023
8199dd5
Dictionaries (#260)
rodrigo-pino Jul 4, 2023
487e34e
Removed bracket after break statements (#254)
ametel01 Jun 23, 2023
a99f7d6
Simplified trait function definition (#250)
ametel01 Jun 23, 2023
9b0a7e2
Added StorageAccess to appendix 3 (#258)
ametel01 Jun 25, 2023
f915c6c
added scarb test section to docs (#257)
ametel01 Jun 27, 2023
2958d5d
refactored syntax to compiler v2 (#256)
ametel01 Jun 30, 2023
52ad957
feat: update cairo-verify to 2.0 (#271)
enitrat Jul 1, 2023
34f1916
updated syntax to snake_case (#278)
ametel01 Jul 3, 2023
50ede31
feat: update to 2.0.0
enitrat Jul 4, 2023
0190fc2
fix: Update CI
enitrat Jul 4, 2023
8d8c77e
Update ch15-00-dictionaries.md (#280)
gaetbout Jul 6, 2023
9b45eb8
Typos and coherence fixes (#282)
rodrigo-pino Jul 7, 2023
d01cddb
Broken scarb installation link fix (#284)
dbejarano820 Jul 9, 2023
1d8cb97
Improvements to the Contract Dispatchers section (#281)
martriay Jul 10, 2023
1cf8471
docs: add dbejarano820 as a contributor for code (#285)
allcontributors[bot] Jul 10, 2023
810174e
feat: add compiler v2 explanations (#286)
enitrat Jul 11, 2023
f03a84e
fix: #287 (#288)
enitrat Jul 13, 2023
9f7ae8c
refactor: ch07-02 listings (#289)
enitrat Jul 14, 2023
e9c1a9e
fix chinese 1st chapter code format (#292)
wenzhenxiang Jul 18, 2023
6d77b32
Wasm cairo integration (#244)
cryptonerdcn Jul 19, 2023
5fa204c
Merge from main & Translate new changes to Chinese. (#294)
cryptonerdcn Jul 19, 2023
82965e6
fix: noplayground for noon-runnable snippets (#295)
enitrat Jul 19, 2023
e127cf5
feat: add short circuiting bitwise operators (#298)
enitrat Jul 20, 2023
fd315e3
feat: rework dispatcher sections (#296)
enitrat Jul 22, 2023
1870a59
Update ch99-01-03-00-a-deeper-dive-into-contracts.md (#299)
boorich Jul 22, 2023
3c3fd23
make Louis happy (#300)
Eikix Jul 24, 2023
8defff8
Update ch99-01-02-a-simple-contract.md (#303)
boorich Jul 25, 2023
8aa998b
feat: fix minor typo (#302)
Eikix Jul 25, 2023
4950f3e
Update ch99-02-01-abis-and-interfaces.md (#304)
boorich Jul 25, 2023
625b4d1
Update ch99-02-02-contract-dispatcher-library-dispatcher-and-system-c…
boorich Jul 26, 2023
bcc7415
fix: explicitly state that desnap copies a value (#310)
julio4 Jul 30, 2023
5b1b8eb
feat: scarb config for starknet (#311)
julio4 Jul 30, 2023
a77aa54
feat: merge dict chapter with common collections (#309)
julio4 Jul 30, 2023
a1d8f74
:rocket: add L1-l2 messaging chapter (#293)
0xEniotna Aug 1, 2023
0df5596
feat: Transitioning Cairo Content to Cairo Book and Introducing Inter…
omarespejel Aug 4, 2023
0f20a22
feat: Transitioning Cairo Content to Cairo Book and Introducing Inter…
omarespejel Aug 4, 2023
8f459dd
Update Scarb documentation links (#321)
mkaput Aug 8, 2023
ab6bf32
fix: #319 (#322)
enitrat Aug 8, 2023
ad8e398
fixed typo no -> need to (#323)
trbutler4 Aug 9, 2023
e503fdb
Update ch02-99-00-common-collections.md
enitrat Aug 10, 2023
a3bc10b
refactor: use scarb packages (#315)
enitrat Aug 10, 2023
1c19402
Update ch01-02-hello-world.md
enitrat Aug 10, 2023
595df8e
Update ch01-02-hello-world.md
enitrat Aug 10, 2023
b805592
:rocket: add macros chapter (#272)
0xEniotna Aug 10, 2023
a27c71a
ch01-01 minor edit (#326)
Utilitycoder Aug 14, 2023
7b3763f
Fix invalid mut type conversion example (#327)
JorikSchellekens Aug 14, 2023
9d4f925
Typo fix (#328)
trbutler4 Aug 16, 2023
02abae6
updated function mention in the paragraph to match the command (#329)
trbutler4 Aug 16, 2023
d016390
Fix Name Resistry contract (#330)
satyambnsal Aug 16, 2023
f2cf20e
Fix broken Scarb link (#331)
EdgarBarrantes Aug 17, 2023
1b2d760
Fix typos (#332)
tserg Aug 25, 2023
d565816
Merge from main & Translate new changes to Chinese. (#333)
cryptonerdcn Aug 30, 2023
1172552
Fix zh-cn.po formatting issues (#334)
wenzhenxiang Sep 1, 2023
075a015
PR_variables (#336)
TAdev0 Sep 4, 2023
ce8b959
fix list value error (#339)
wenzhenxiang Sep 5, 2023
f7c3fdc
Update zh-cn.po (#338)
wenzhenxiang Sep 5, 2023
5bf14bf
fixing emit event snippet (#340)
gaetbout Sep 6, 2023
38db980
chore: update-2.2.0 (#344)
enitrat Sep 10, 2023
6414c69
Fixed code snippets in Macros chapter (#346)
barretodavid Sep 12, 2023
fc90df8
improve the description of integer division (#347)
orangeryang Sep 12, 2023
d6fb087
feat: store packing (#343)
enitrat Sep 13, 2023
7fdbc20
optimize the description of integer division (#350)
orangeryang Sep 14, 2023
71726a9
Update ch01-02-hello-world.md (#351)
sinsotec Sep 15, 2023
c0f1233
chore: bump cairo version
enitrat Sep 15, 2023
38786f4
refactor: update dict section (#354)
enitrat Sep 17, 2023
1b72e8b
refactor: scarb cairo-run (#355)
enitrat Sep 17, 2023
e5dde81
refactor: keywords (#356)
enitrat Sep 17, 2023
41d5fa6
update: cairo 2.2.0 (#357)
enitrat Sep 17, 2023
951aee8
Update lib.cairo (#358)
sinsotec Sep 18, 2023
e2d9afb
Merge from main & Translate new changes to Chinese.
cryptonerdcn Sep 18, 2023
33ee237
Merge branch 'zh-cn_update0918' into zh-cn
cryptonerdcn Sep 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
36 changes: 36 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,42 @@
"contributions": [
"code"
]
},
{
"login": "tiagofneto",
"name": "Tiago Neto",
"avatar_url": "https://avatars.githubusercontent.com/u/46165861?v=4",
"profile": "https://github.com/tiagofneto",
"contributions": [
"review"
]
},
{
"login": "omahs",
"name": "omahs",
"avatar_url": "https://avatars.githubusercontent.com/u/73983677?v=4",
"profile": "https://github.com/omahs",
"contributions": [
"code"
]
},
{
"login": "shramee",
"name": "Shramee Srivastav",
"avatar_url": "https://avatars.githubusercontent.com/u/11048263?v=4",
"profile": "http://shramee.me",
"contributions": [
"code"
]
},
{
"login": "dbejarano820",
"name": "Daniel Bejarano",
"avatar_url": "https://avatars.githubusercontent.com/u/58019353?v=4",
"profile": "https://github.com/dbejarano820",
"contributions": [
"code"
]
}
],
"contributorsPerLine": 7,
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/cairo-verify/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Cairo Verify

description: Run the cairo-verify tools on all cairo programs in the book.

runs:
using: composite
steps:
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: "0.7.0"

- name: Install cairo-verify
run: cargo install --path cairo-verify --locked
shell: bash

- name: Run cairo-verify and generate summary
run: cairo-verify >> $GITHUB_STEP_SUMMARY
shell: bash
4 changes: 2 additions & 2 deletions .github/workflows/install-mdbook/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ runs:
steps:
# The --locked flag is important for reproducible builds.
- name: Install mdbook
run: cargo install mdbook --locked --version 0.4.28
run: cargo install mdbook --locked --version 0.4.31
shell: bash

- name: Install mdbook-i18n-helpers
run: cargo install mdbook-i18n-helpers --locked --version 0.1.0
shell: bash

- name: Install cairo programs verifier
- name: Install mdbook-cairo preprocessor
run: cargo install --path mdbook-cairo --locked
shell: bash
14 changes: 9 additions & 5 deletions .github/workflows/mdbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,33 +36,37 @@ jobs:
- name: Setup Rust cache
uses: ./.github/workflows/setup-rust-cache

- name: Cairo Verify
uses: ./.github/workflows/cairo-verify

- name: Install mdbook
uses: ./.github/workflows/install-mdbook

- name: Build in English
run: |
mdbook build -d book

- name: Copy WASM-Cairo pkg
run: |
cp -r theme/pkg book
cp -r theme/js book

- name: Build all translations
run: |
for po_lang in $(cat ./LANGUAGES); do
echo "::group::Building $po_lang translation"
MDBOOK_BOOK__LANGUAGE=$po_lang \
mdbook build -d book/$po_lang
mv book/$po_lang/html book/html/$po_lang
echo "::endgroup::"
done

# - name: Verify Cairo programs
# uses: ./.github/workflows/verify-cairo-programs

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./book/html
path: ./book

- name: Deploy to GitHub Pages
id: deployment
Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/verify-cairo-programs/action.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/verify_programs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Verify Cairo programs compilation

on:
pull_request:
branches:
- main

jobs:
compile_and_verify:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Scarb
uses: software-mansion/setup-scarb@v1
with:
scarb-version: "0.7.0"

- name: Setup Rust cache
uses: ./.github/workflows/setup-rust-cache

- name: Install cairo-verify
run: cargo install --path cairo-verify --locked
shell: bash

- name: Run cairo-verify and generate summary
run: cairo-verify >> $GITHUB_STEP_SUMMARY
shell: bash
42 changes: 0 additions & 42 deletions .github/workflows/verify_programs.yml.old

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ output

# Editors tmp files.
*~
.idea/
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
scarb 0.7.0
Loading