Skip to content

Commit 205f809

Browse files
author
Sergio Garcia
committed
Merge branch 'main' of github.com:argentlabs/argent-contracts-starknet-private into update
2 parents 6243bcf + 5ba45d5 commit 205f809

File tree

125 files changed

+349578
-57597
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+349578
-57597
lines changed

.github/workflows/integration-ci.yml

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Check out main branch
10-
uses: actions/checkout@v3
10+
uses: actions/checkout@v4
1111

1212
- name: Read .nvmrc
1313
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
1414
id: nvm
1515

16+
- name: Use correct node version
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '${{ steps.nvm.outputs.NVMRC }}'
20+
1621
- name: Setup Scarb
1722
uses: software-mansion/[email protected]
1823

@@ -61,23 +66,41 @@ jobs:
6166
format:
6267
runs-on: ubuntu-latest
6368
steps:
64-
- name: Step 1 - Check out main branch
65-
uses: actions/checkout@v3
69+
- name: Check out main branch
70+
uses: actions/checkout@v4
71+
72+
- name: Read .nvmrc
73+
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
74+
id: nvm
75+
76+
- name: Use correct node version
77+
uses: actions/setup-node@v3
78+
with:
79+
node-version: '${{ steps.nvm.outputs.NVMRC }}'
6680

67-
- name: Step 2 - Install project
81+
- name: Install project
6882
run: yarn install --frozen-lockfile
6983

70-
- name: Step 3 - Check correct formatting
84+
- name: Check correct formatting
7185
run: yarn prettier --check .
7286

7387
lint:
7488
runs-on: ubuntu-latest
7589
steps:
76-
- name: Step 1 - Check out main branch
77-
uses: actions/checkout@v3
90+
- name: Check out main branch
91+
uses: actions/checkout@v4
7892

79-
- name: Step 2 - Install project
93+
- name: Read .nvmrc
94+
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
95+
id: nvm
96+
97+
- name: Use correct node version
98+
uses: actions/setup-node@v3
99+
with:
100+
node-version: '${{ steps.nvm.outputs.NVMRC }}'
101+
102+
- name: Install project
80103
run: yarn install --frozen-lockfile
81104

82-
- name: Step 3 - Check correct linting
105+
- name: Check correct linting
83106
run: yarn eslint .

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
22

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ tests-integration/fixtures
88
starknet-devnet-rs
99
.svelte-kit
1010
docs
11+
# Uses his own prettier config
12+
examples

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Use the base image
2-
FROM shardlabs/starknet-devnet-rs:0.3.0-rc.0-seed0
2+
FROM shardlabs/starknet-devnet-rs:0.6.0-seed0
33

44
# Expose port 5050
55
EXPOSE 5050
66

77
# Set default command to run the container
8-
CMD ["--gas-price", "6000000000", "--data-gas-price", "1", "--timeout", "320", "--lite-mode", "--gas-price-fri", "35000000000000", "--data-gas-price-fri", "1", "--initial-balance", "1000000000000000000000000"]
8+
# Values taken at block 2529608 and ceil them
9+
# l1_data_gas_price: { price_in_fri: '0x8362', price_in_wei: '0x1' },
10+
# l1_gas_price: { price_in_fri: '0x267745a34c04', price_in_wei: '0x4af31412' },
11+
# l2_gas_price: { price_in_fri: '0xb2d05e00', price_in_wei: '0x15c69' },
12+
CMD ["--timeout", "320", "--lite-mode", "--gas-price-fri", "45000000000000", "--data-gas-price-fri", "35000", "--l2-gas-price-fri", "3000000000", "--initial-balance", "1000000000000000000000000"]

Scarb.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,21 @@ alexandria_merkle_tree = "0.4.0"
1818
openzeppelin_security = "1.0.0"
1919
openzeppelin_presets = "1.0.0"
2020

21+
[dev-dependencies]
22+
snforge_std = "0.38.3"
23+
assert_macros = "2.10.1"
24+
2125
[tool.fmt]
2226
max-line-length = 120
2327
sort-module-level-items = true
2428

25-
[dev-dependencies]
26-
assert_macros = "2.10.1"
27-
snforge_std = "0.38.3"
28-
2929
[scripts]
3030
test = "snforge test"
3131
format = "scarb fmt && yarn prettier --write ."
3232
lint = "yarn eslint ."
3333
test-ts = "scarb --profile release build && yarn tsc && yarn mocha --recursive tests-integration/ --extension .test.ts"
3434
test-ts-sc = "yarn mocha --require ts-node/register/transpile-only --recursive tests-integration/**/*.test.ts"
35+
test-upgrade = "yarn mocha --require ts-node/register/transpile-only --recursive tests-integration/upgrade.ts"
3536
test-multisig = "scarb --profile release build && yarn tsc && yarn mocha tests-integration/multisig*.test.ts"
3637
test-session = "scarb --profile release build && yarn tsc && yarn mocha tests-integration/session/*.test.ts"
3738
test-multiowner = "scarb --profile release build && yarn tsc && yarn mocha tests-integration/multiowner/*.test.ts"

0 commit comments

Comments
 (0)