Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transaction V3 Support #125

Merged
merged 346 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
346 commits
Select commit Hold shift + click to select a range
af0e07b
Update test_argent_account.cairo
delaaxe Sep 15, 2023
be2aa85
Add profiling summary to account
delaaxe Sep 19, 2023
4ca0da4
Format
delaaxe Sep 19, 2023
ebb845e
Use zeroable
delaaxe Sep 19, 2023
a7d7bd3
Update outside_execution.cairo
delaaxe Sep 19, 2023
c31e3ab
Format
delaaxe Sep 19, 2023
113e7ef
Update profile-account.ts
delaaxe Sep 19, 2023
c2421cc
Update profile-account.ts
delaaxe Sep 19, 2023
27b0581
Use struct hashing
delaaxe Sep 19, 2023
a5e5ba5
Update argent_account.cairo
delaaxe Sep 19, 2023
146c9e4
Merge pull request #210 from argentlabs/feat/cairo2.2
sgc-code Sep 19, 2023
12fe2af
Merge branch 'develop' into feat/profiling-table
sgc-code Sep 20, 2023
f841373
Sort execution resources
delaaxe Sep 20, 2023
e5b77cc
Merge pull request #211 from argentlabs/feat/profiling-table
sgc-code Sep 22, 2023
0961d3b
wip
delaaxe Oct 4, 2023
6fd399b
Update check-gas-report.ts
delaaxe Oct 5, 2023
daaa385
Add script
delaaxe Oct 5, 2023
3cfbc3b
Update check-gas-report.ts
delaaxe Oct 6, 2023
3e8039d
Update cairo-ci.yml
delaaxe Oct 6, 2023
b192ffe
Add gas report
delaaxe Oct 6, 2023
7d55180
Update gas-report.ts
delaaxe Oct 6, 2023
1c24127
Update recovery.ts
delaaxe Oct 6, 2023
dba341b
Update change-owner.ts
delaaxe Oct 9, 2023
db8b01f
Add deployment artifacts
delaaxe Oct 11, 2023
8693952
Update readme
delaaxe Oct 11, 2023
abfaa29
Merge pull request #217 from argentlabs/chore/deployment-artifacts
sgc-code Oct 11, 2023
fd17d76
Merge pull request #214 from argentlabs/add-change-owner-script
sgc-code Oct 11, 2023
813a566
added UDC deployment test
Leonard-Pat Oct 6, 2023
d415986
updated test name
Leonard-Pat Oct 6, 2023
221e829
remove console.log
Leonard-Pat Oct 6, 2023
c231598
lint
Leonard-Pat Oct 6, 2023
e59b3b2
Update tests/lib/accounts.ts
Leonard-Pat Oct 11, 2023
a7f3411
format
Leonard-Pat Oct 11, 2023
54dd82c
updated format
Leonard-Pat Oct 11, 2023
ef02ed3
reverted import changes
Leonard-Pat Oct 11, 2023
0e8c957
removed calculate address
Leonard-Pat Oct 11, 2023
9d5faa8
lint
Leonard-Pat Oct 11, 2023
69a54c7
added comment about self deplyoment
Leonard-Pat Oct 11, 2023
848220e
Merge branch 'develop' into chore/gas-report
sgc-code Oct 13, 2023
4cd529a
made test expect instead
Leonard-Pat Oct 13, 2023
4120ada
Merge pull request #215 from argentlabs/chore/gas-report
sgc-code Oct 13, 2023
52a01c1
Merge branch 'develop' into feat/add-udc-tests
Leonard-Pat Oct 13, 2023
b7cbf9a
Merge pull request #216 from argentlabs/feat/add-udc-tests
Leonard-Pat Oct 17, 2023
f7e9bec
translated python --> ts
Leonard-Pat Oct 17, 2023
e6f809b
converted all to hex
Leonard-Pat Oct 17, 2023
13ba575
changed message has to hex
Leonard-Pat Oct 17, 2023
6ec8c57
added scarb script
Leonard-Pat Oct 17, 2023
c3b04bf
to hex conversion
Leonard-Pat Oct 17, 2023
f52dad1
changed signer tobigint
Leonard-Pat Oct 17, 2023
b3cb81f
removed unused var
Leonard-Pat Oct 17, 2023
4f4fe0d
Update versions
delaaxe Oct 18, 2023
c5528c4
Update contract paths
delaaxe Oct 18, 2023
5258590
Format
delaaxe Oct 18, 2023
539f6b3
Update gas-report.txt
delaaxe Oct 18, 2023
bfac4ce
renamed calc sig and resued function
Leonard-Pat Oct 18, 2023
5adbd3c
lint
Leonard-Pat Oct 18, 2023
b85eeec
changed tests to use chainid for signchangeowner
Leonard-Pat Oct 18, 2023
00d0c05
lint
Leonard-Pat Oct 18, 2023
daef951
Update asserts.cairo
delaaxe Oct 18, 2023
ab8ea5e
Update Scarb.toml
delaaxe Oct 18, 2023
3b26807
Merge pull request #221 from argentlabs/refactor/simplify-query-versions
sgc-code Oct 18, 2023
d0c324f
Merge branch 'develop' into chore/remove-python-scripts
Leonard-Pat Oct 18, 2023
c87e82d
Update integration-ci.yml
delaaxe Oct 18, 2023
b193097
Revert formatting
delaaxe Oct 18, 2023
5395fd5
Renames
delaaxe Oct 18, 2023
67d4e4e
Migrate kill devnet command
delaaxe Oct 18, 2023
95bab7f
Merge branch 'develop' into feat/cairo-2.3.0
delaaxe Oct 18, 2023
cd65854
Remove makefile
delaaxe Oct 18, 2023
fa762b8
Merge branch 'feat/cairo-2.3.0' of https://github.com/argentlabs/arge…
delaaxe Oct 18, 2023
d3126dd
Typo
delaaxe Oct 18, 2023
b6031ed
Update Scarb.toml
delaaxe Oct 18, 2023
e3a860d
Update Scarb.toml
delaaxe Oct 18, 2023
4256f17
Fix tests
delaaxe Oct 18, 2023
ac0b8fa
Move çairo tests
delaaxe Oct 18, 2023
c1120e2
Update lib.cairo
delaaxe Oct 18, 2023
84d9e0d
cfg(test)
delaaxe Oct 18, 2023
66cd7b0
Update accountDeclare.test.ts
delaaxe Oct 18, 2023
c4660b4
move tests setup
delaaxe Oct 18, 2023
2e3e85c
Refactor js
delaaxe Oct 18, 2023
a0970ff
Merge pull request #219 from argentlabs/chore/remove-python-scripts
sgc-code Oct 19, 2023
1e85015
Update version to 2.3.0
delaaxe Oct 23, 2023
cf344dc
Implement `AccountContract` trait
delaaxe Oct 24, 2023
694f2d7
Update argent_account.cairo
delaaxe Oct 24, 2023
9ca44a3
Merge branch 'develop' into feat/cairo-2.3.0
delaaxe Oct 24, 2023
cdcdf58
Finish merge
delaaxe Oct 24, 2023
887b801
Update interface.cairo
delaaxe Oct 24, 2023
686e0e5
Revert
delaaxe Oct 24, 2023
3dd2839
Sort module imports
delaaxe Oct 24, 2023
8e85ac5
Update Scarb.toml
delaaxe Oct 24, 2023
7fa63e2
Remove semicolons
delaaxe Oct 24, 2023
1027bcb
Auto activate devnet
delaaxe Oct 24, 2023
4025e8e
Merge branch 'feat/cairo-2.3.0' into style/module-imports
delaaxe Oct 24, 2023
bf76950
Use same line length as in JS
delaaxe Oct 24, 2023
2d5552c
Update contracts.ts
delaaxe Oct 24, 2023
7d8fc4f
Update README.md
delaaxe Oct 24, 2023
83a95ba
Merge branch 'feat/cairo-2.3.0' into style/module-imports
delaaxe Oct 24, 2023
e734312
Merge pull request #220 from argentlabs/feat/cairo-2.3.0
sgc-code Oct 26, 2023
7621aaa
Merge pull request #222 from argentlabs/style/module-imports
sgc-code Oct 26, 2023
c0978e0
Update Starknet.js to 5.19.5
sgc-code Oct 27, 2023
36f217d
Fix casting
sgc-code Oct 27, 2023
fcc2e48
style
sgc-code Oct 30, 2023
ed3f856
Merge pull request #223 from argentlabs/feat/update_snjs
sgc-code Oct 31, 2023
55d5c86
Fix gas profiler bug
sgc-code Nov 2, 2023
a8edb42
Merge pull request #224 from argentlabs/fix/gas-profiler-bug
sgc-code Nov 3, 2023
8d7cbd1
Initial checks
sgc-code Nov 3, 2023
84e6e0b
Merge branch 'develop' into feat/txv3
sgc-code Nov 6, 2023
4cba101
fixing test
gaetbout Nov 7, 2023
72ebb01
format
gaetbout Nov 7, 2023
7a8492c
Merge pull request #226 from argentlabs/chore/fix-execute-from-outsid…
Leonard-Pat Nov 7, 2023
c643b6e
Merge branch 'develop' into feat/txv3
sgc-code Nov 7, 2023
64fba5d
more checks
sgc-code Nov 8, 2023
e5c763a
style
sgc-code Nov 10, 2023
e0b9cf5
format
sgc-code Nov 10, 2023
b44ee17
style
sgc-code Nov 10, 2023
97a8da0
update gas report
sgc-code Nov 10, 2023
1c099d0
format
sgc-code Nov 10, 2023
a1e3ada
Update src/account/argent_account.cairo
sgc-code Nov 13, 2023
a79c25e
Update src/account/argent_account.cairo
sgc-code Nov 13, 2023
65f18e7
Update src/common/transaction_version.cairo
sgc-code Nov 13, 2023
bae3e1d
style
sgc-code Nov 13, 2023
278a77f
fix tip issue
sgc-code Nov 15, 2023
5c2561c
renames
sgc-code Nov 17, 2023
9ec1bda
Update src/account/argent_account.cairo
sgc-code Nov 17, 2023
46d588a
Update src/common/transaction_version.cairo
sgc-code Nov 20, 2023
70b12a6
Update src/common/transaction_version.cairo
sgc-code Nov 20, 2023
c6f5a41
split scarb tests and GAS report check
gaetbout Nov 21, 2023
d396a09
adding tee back
gaetbout Nov 21, 2023
c51e006
fix compilation
sgc-code Nov 21, 2023
72c4944
use cairo 2.4-rc3
sgc-code Nov 23, 2023
d4933d6
format
sgc-code Nov 23, 2023
97393f4
update gas report
sgc-code Nov 23, 2023
0adb271
Transaction hash profiling
delaaxe Nov 24, 2023
37406ff
Merge branch 'main' into chore/merge-main-into-develop
delaaxe Nov 24, 2023
d0c4490
Merge pull request #230 from argentlabs/chore/split-gas-ci
sgc-code Nov 24, 2023
e46bdf8
Merge branch 'develop' into chore/merge-main-into-develop
delaaxe Nov 24, 2023
ed6d6d3
Merge branch 'develop' into chore/transaction-profiling
delaaxe Nov 24, 2023
b31d2d8
Merge pull request #234 from argentlabs/chore/transaction-profiling
delaaxe Nov 24, 2023
861a605
Merge branch 'develop' into chore/merge-main-into-develop
delaaxe Nov 24, 2023
543d0f7
no message
sgc-code Nov 27, 2023
cc5f0a0
Merge pull request #235 from argentlabs/chore/merge-main-into-develop
delaaxe Nov 28, 2023
befeac8
better support
sgc-code Nov 28, 2023
e455927
new scripts
sgc-code Nov 30, 2023
0df5670
Merge branch 'develop' into feat/txv3
sgc-code Nov 30, 2023
0769e81
Merge branch 'feat/txv3' into txv3+devnetrs
sgc-code Nov 30, 2023
3405b68
format
sgc-code Dec 4, 2023
5ca67ef
upgrade devnet and starknetjs
sgc-code Dec 5, 2023
4762f39
Style
sgc-code Dec 5, 2023
d9c618e
update readme
sgc-code Dec 5, 2023
8f5ec1c
bring back profiling
sgc-code Dec 5, 2023
033a111
update readme
sgc-code Dec 5, 2023
efd2490
delete python leftover
sgc-code Dec 6, 2023
81db62c
Update scripts/start-devnet.sh
sgc-code Dec 6, 2023
cf89fb9
check resources correctness
sgc-code Dec 6, 2023
9316c5d
wait for transfer to succeed
sgc-code Dec 6, 2023
93a3744
missing await
sgc-code Dec 11, 2023
b729f8c
fix compilations
sgc-code Dec 11, 2023
570901e
update devnet and starknet.js
sgc-code Dec 11, 2023
d6096c5
format
sgc-code Dec 11, 2023
8fc9a97
update to cairo 2.4.0
sgc-code Dec 11, 2023
485096f
better number handling
sgc-code Dec 11, 2023
fc560cd
Revert "better number handling"
sgc-code Dec 11, 2023
42be82e
style
sgc-code Dec 11, 2023
83d8e39
Merge branch 'upgrade-devnet-and-starknetjs' into feat/txv3
sgc-code Dec 12, 2023
c08cc98
Merge branch 'feat/txv3' into txv3+devnetrs
sgc-code Dec 12, 2023
8837a25
remove unexpected changes
sgc-code Dec 12, 2023
f8e4b73
update to cairo 2.4.0
sgc-code Dec 12, 2023
3823f54
Merge branch 'feat/txv3' into txv3+devnetrs
sgc-code Dec 12, 2023
dfa8b3f
upgrade devnet
sgc-code Dec 12, 2023
9a322e2
small improvements, add strk token
sgc-code Dec 12, 2023
a7f7c7f
Merge branch 'feat/txv3' into txv3+devnetrs
sgc-code Dec 12, 2023
30b378c
Merge pull request #239 from argentlabs/upgrade-devnet-and-starknetjs
sgc-code Dec 12, 2023
52fe69e
Merge branch 'develop' into feat/txv3
sgc-code Dec 12, 2023
aea17d7
Merge branch 'feat/txv3' into txv3+devnetrs
sgc-code Dec 12, 2023
546e034
fix compilation
sgc-code Dec 12, 2023
251818c
send v3 transaction
sgc-code Dec 14, 2023
b64633a
remove unneeded change
sgc-code Dec 14, 2023
79d5c9e
update sn.js and devnet
sgc-code Dec 14, 2023
257385c
adapt test to new devnet
sgc-code Dec 14, 2023
805feaa
prepare for v3 tests
sgc-code Dec 19, 2023
686aab6
fix syntax
sgc-code Dec 19, 2023
00e7dd3
high tip tests
sgc-code Dec 19, 2023
184e950
remove devnet hack
sgc-code Dec 19, 2023
1fc225b
better deployment for old accounts, more gas griefing checks
sgc-code Dec 19, 2023
74c590e
add comment
sgc-code Dec 19, 2023
6d3bd32
script for QA
sgc-code Dec 19, 2023
ab8a982
fix tests
sgc-code Dec 19, 2023
1bd0093
more tests
sgc-code Dec 19, 2023
905309e
linter
sgc-code Dec 19, 2023
02f5441
format
sgc-code Dec 19, 2023
1794709
fix tests
sgc-code Dec 19, 2023
d403490
style
sgc-code Dec 19, 2023
b47f5c2
fix tests
sgc-code Dec 19, 2023
36672b9
more multisig testing
sgc-code Dec 19, 2023
cef1d56
fix old account deployment
sgc-code Dec 19, 2023
c500b9b
fix multisig txv3 tests
sgc-code Dec 19, 2023
db0e023
tx v3 tests for multisig too
sgc-code Dec 19, 2023
19b81d6
fix test
sgc-code Dec 19, 2023
4adbbc6
faster tests
sgc-code Dec 20, 2023
cfe1e01
same speed bump for multisig
sgc-code Dec 20, 2023
754dc4b
fix multsig tests
sgc-code Dec 20, 2023
8024faa
restrict deploy parameters on multisig
sgc-code Dec 20, 2023
290f1c7
upgrade tests
sgc-code Dec 20, 2023
ff7c059
address PR comments
sgc-code Dec 22, 2023
c260cfb
reorder asserts
sgc-code Dec 22, 2023
c2631d7
Update scripts/new-account-selfdeploy.ts
sgc-code Jan 8, 2024
1b61d5f
Update tests-integration/account.test.ts
sgc-code Jan 8, 2024
a29ba45
Update tests-integration/accountMulticall.test.ts
sgc-code Jan 8, 2024
29e137e
Update tests-integration/accountDeclare.test.ts
sgc-code Jan 8, 2024
01c575b
remove last restart time
sgc-code Jan 8, 2024
5c04432
optimize imports
sgc-code Jan 8, 2024
8b540a8
add test
sgc-code Jan 8, 2024
221fe04
simplify
sgc-code Jan 8, 2024
cb01c6a
Merge pull request #225 from argentlabs/feat/txv3
sgc-code Jan 9, 2024
d0c7c95
added deployments
Leonard-Pat Jan 9, 2024
96243f6
Merge gas profiler and gas report
delaaxe Jan 11, 2024
5208dfa
Add profile for change owner
delaaxe Jan 11, 2024
eb6eaa2
Single source of truth
delaaxe Jan 15, 2024
f00f3ba
Round to 10 gas
delaaxe Jan 15, 2024
ee7acd1
Update gas.ts
delaaxe Jan 15, 2024
cd90e92
Update gas.ts
delaaxe Jan 15, 2024
eff27b2
Gaetan's review
delaaxe Jan 16, 2024
17f503b
Remove `TransactionCarrying`
delaaxe Jan 17, 2024
693fd09
Remove gas price fiddling
delaaxe Jan 17, 2024
d43a45d
Update gas.ts
delaaxe Jan 17, 2024
72c14f0
update scarb, sn.js and devnet
sgc-code Jan 17, 2024
895a30d
Merge pull request #260 from argentlabs/update-tooling
sgc-code Jan 17, 2024
31d5cd5
Merge branch 'develop' into chore/profiler
sgc-code Jan 17, 2024
80b8e16
Merge pull request #254 from argentlabs/chore/profiler
sgc-code Jan 17, 2024
ff76a52
fix gas name
gaetbout Jan 18, 2024
eede24e
fix declaration tests
sgc-code Jan 18, 2024
27eae93
Merge pull request #261 from argentlabs/chore/gas-fix-steps
juniset Jan 18, 2024
aa3351b
Merge branch 'develop' into fix-declaration-tests
sgc-code Jan 18, 2024
adf8863
Merge pull request #263 from argentlabs/fix-declaration-tests
sgc-code Jan 18, 2024
a3fe0e9
address audit issues, including total fee validation for escapes
sgc-code Jan 19, 2024
1dc8f9b
fix comments about outside execution
sgc-code Jan 19, 2024
8107f6f
decouple transaction checks further
sgc-code Jan 19, 2024
44dc459
use selector!()
sgc-code Jan 19, 2024
3b5e45c
Merge pull request #266 from argentlabs/audit-issues
sgc-code Jan 19, 2024
cf7cd30
Print storage debug table
delaaxe Jan 19, 2024
8914260
Tx V3 accounts deployment
sgc-code Jan 22, 2024
ba5c08c
Merge pull request #269 from argentlabs/latest-deployment
sgc-code Jan 22, 2024
3928215
Merge branch 'develop' into chore/storage-slot-debug
sgc-code Jan 22, 2024
9526f84
Merge pull request #267 from argentlabs/chore/storage-slot-debug
delaaxe Jan 22, 2024
dfeed9c
updated multicall address
Leonard-Pat Jan 22, 2024
b2f3c6d
merge develop
Leonard-Pat Jan 22, 2024
d9c4c9d
added deployment of other networks
Leonard-Pat Jan 22, 2024
25829ea
Merge pull request #252 from argentlabs/chore/sepolia-deployment
sgc-code Jan 23, 2024
462f1f4
add latest audit
sgc-code Jan 25, 2024
8d84b9f
Merge pull request #271 from argentlabs/add-latest-audit
sgc-code Jan 25, 2024
ff4e600
Merge branch 'main' of https://github.com/argentlabs/argent-contracts…
sgc-code Feb 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cairofmtignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
starknet-devnet-rs
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BASE_URL=https://alpha4.starknet.io/
RPC_URL=http://127.0.0.1:5050
ADDRESS=0x000000000000000000000000000000000000000000000000000000000000000
PRIVATE_KEY=0x000000000000000000000000000000000000000000000000000000000000000
52 changes: 9 additions & 43 deletions .github/workflows/cairo-ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: Cairo CI

env:
ARCHIVE_LINK: https://github.com/starkware-libs/cairo/releases/download/v2.0.0/release-x86_64-unknown-linux-musl.tar.gz
ARCHIVE_NAME: cairo.zip

on: push

jobs:
Expand All @@ -12,47 +8,17 @@ jobs:
steps:
- name: Step 1 - Check out main branch
uses: actions/checkout@v3

- name: Step 2 - Downloading binaries
run: curl -L -o $ARCHIVE_NAME $ARCHIVE_LINK

- name: Step 3 - Unzipping binaries
run: tar -xvf $ARCHIVE_NAME

- name: Step 4 - Make binaries available
run: echo "./cairo/bin" >> $GITHUB_PATH

- name: Step 5 - Run all tests
run: cairo-test --starknet ./contracts

- name: Step 2 - Getting scarb
uses: software-mansion/[email protected]
- name: Step 3 - Testing
run: scarb test

format:
runs-on: ubuntu-latest
steps:
- name: Step 1 - Check out main branch
uses: actions/checkout@v3

- name: Step 2 - Downloading binaries
run: curl -L -o $ARCHIVE_NAME $ARCHIVE_LINK

- name: Step 3 - Unzipping binaries
run: tar -xvf $ARCHIVE_NAME

- name: Step 4 - Make binaries available
run: echo "./cairo/bin" >> $GITHUB_PATH

- name: Step 5 - Check formatting
run: cairo-format --check --recursive ./contracts

contract-approvers:
runs-on: ubuntu-latest
steps:
- name: Step 1 - Check out main branch
uses: actions/checkout@v3

- name: Step 2 - Install project
run: yarn install --frozen-lockfile

- name: Step 3 - Check approvers count
run: yarn ts-node ./scripts/check-contract-approvers.ts 3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Step 2 - Getting scarb
uses: software-mansion/[email protected]
- name: Step 3 - Checking format
run: scarb fmt --check
60 changes: 30 additions & 30 deletions .github/workflows/integration-ci.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
name: Integration CI

env:
ARCHIVE_LINK: https://github.com/starkware-libs/cairo/releases/download/v2.0.0/release-x86_64-unknown-linux-musl.tar.gz
ARCHIVE_NAME: cairo_binaries.zip

on: push

jobs:
tests:
integration-tests:
runs-on: ubuntu-latest
steps:
- name: Step 1 - Check out main branch
- name: Check out main branch
uses: actions/checkout@v3

- name: Step 2 - Install correct python version
uses: actions/setup-python@v4
with:
python-version: "3.9"
cache: "pip"

- name: Step 3 - Cloning repo
run: make clone-cairo
- name: Setup Scarb
uses: software-mansion/[email protected]

- name: Install project
run: yarn install --frozen-lockfile

- name: Step 4 - Downloading binaries, unzipping them and making them available
working-directory: ./cairo
- name: Start devnet in background
run: |
curl -L -o $ARCHIVE_NAME $ARCHIVE_LINK
tar -xvf $ARCHIVE_NAME
mkdir -p target/release
mv cairo/bin/* target/release
scarb run start-devnet &
./scripts/wait-devnet-ready.sh

- name: Run integration tests
run: scarb --release build && tsc && yarn mocha tests-integration/*.test.ts --forbid-only --forbid-pending

- name: Step 5 - Installing requirements
run: pip3 install -r requirements.txt
gas-report:
runs-on: ubuntu-latest
steps:
- name: Check out main branch
uses: actions/checkout@v3

- name: Step 6 - Start devnet in background
- name: Setup Scarb
uses: software-mansion/[email protected]

- name: Install project
run: yarn install --frozen-lockfile

- name: Start devnet in background
run: |
make devnet &
scarb run start-devnet &
./scripts/wait-devnet-ready.sh

- name: Step 7 - Run integrations tests
run: |
yarn install --frozen-lockfile
make test-integration
- name: Gas report
run: scarb run profile --check

format:
runs-on: ubuntu-latest
Expand All @@ -53,7 +53,7 @@ jobs:
run: yarn install --frozen-lockfile

- name: Step 3 - Check correct formatting
run: yarn format:check
run: yarn prettier --check .

lint:
runs-on: ubuntu-latest
Expand All @@ -65,4 +65,4 @@ jobs:
run: yarn install --frozen-lockfile

- name: Step 3 - Check correct linting
run: yarn lint:check
run: yarn eslint .
9 changes: 3 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.env
.env.*
!.env.example
.idea
.vscode
.DS_Store
Expand All @@ -7,18 +9,13 @@ venv
.pytest_cache
__pycache__
artifacts
!deployments/artifacts
dist
target
node_modules
node.json

cairo
account.json
tests/fixtures/ArgentAccount.json
tests/fixtures/ArgentAccount.casm
tests/fixtures/ArgentMultisig.json
tests/fixtures/ArgentMultisig.casm
tests/fixtures/TestDapp.json
tests/fixtures/TestDapp.casm
dump
package-lock.json
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
7 changes: 5 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
cairo
contracts
venv
tests/fixtures
target
deployments/artifacts
dist
.github
tests-integration/fixtures
starknet-devnet-rs
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
scarb 2.4.3
93 changes: 0 additions & 93 deletions Makefile

This file was deleted.

Loading
Loading