Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into chain_id
Browse files Browse the repository at this point in the history
  • Loading branch information
jbcaron committed Feb 11, 2024
2 parents 3493b9c + a9ba8cd commit 8fbebe3
Show file tree
Hide file tree
Showing 86 changed files with 2,793 additions and 2,149 deletions.
7 changes: 7 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,13 @@
"avatar_url": "https://avatars.githubusercontent.com/u/74653697?v=4",
"profile": "https://github.com/antiyro",
"contributions": ["code"]
},
{
"login": "azurwastaken",
"name": "azurwastaken",
"avatar_url": "https://avatars.githubusercontent.com/u/30268138?v=4",
"profile": "https://github.com/azurwastaken",
"contributions": ["code"]
}
],
"contributorsPerLine": 7,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
- name: Checkout toml files
uses: actions/checkout@v3
- name: Run toml check
run: npx @taplo/cli fmt --config ./taplo/taplo.toml --check
run: npx @taplo/cli@0.5.2 fmt --config ./taplo/taplo.toml --check
18 changes: 16 additions & 2 deletions .github/workflows/starknet-rpc-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,30 @@ jobs:
${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}-${{
github.run_id }}
fail-on-cache-miss: true
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.3.1"
- name: Setup build deps
run: |
sudo apt-get update
sudo apt-get install -y clang llvm libudev-dev protobuf-compiler
- name: Setup dev chain
run: |
./target/release/madara setup --chain=dev --from-local=configs
- name: Run rpc test
- name: Compile contracts for rpc-tests
run: |
cd starknet-rpc-test/contracts && ./generate_declare_contracts.sh 8
- name: Run rpc test without cache
run: |-
./target/release/madara --dev --sealing=manual --da-layer=ethereum --da-conf=examples/da-confs/ethereum.json &
MADARA_RUN_PID=$!
while ! echo exit | nc localhost 9944; do sleep 1; done
cd starknet-rpc-test
cargo test
kill $MADARA_RUN_PID
- name: Run rpc test with cache
run: |-
./target/release/madara --dev --sealing=manual &
./target/release/madara --dev --sealing=manual --cache --da-layer=ethereum --da-conf=examples/da-confs/ethereum.json &
MADARA_RUN_PID=$!
while ! echo exit | nc localhost 9944; do sleep 1; done
cd starknet-rpc-test
Expand Down
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
# These are backup files generated by rustfmt
**/*.rs.bk

# generated contracts for rpc-tests
counter*/

# Rust compiler error files
rustc-ice-*.txt

Expand Down Expand Up @@ -48,4 +51,6 @@ starknet-e2e-test/contracts/cache
starknet-e2e-test/contracts/build

# vscode settings
.vscode/settings.json
.vscode/settings.json

tmp/
25 changes: 24 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,32 @@ git # Madara Changelog
## Next release

- fix: update and store ConfigFetch in l2 sync(), chainId rpc call
- fix: get_events paging with continuation_token
- fux(getStorageAt): #28
- fix(genesis): #107
- fix(class): #32 #33 #34
- fix(class): #116
- feat(class): download classes from sequencer
- feat: update and store highest block hash and number from sequencer
- feat: store events in block, return events in call get_transaction_receipt
- fix: updating outdated links to external resources in documentation
- feat(client/data-availability): implement custom error handling
- fix: get_block_by_block_hash then default rather than error
- feat(rpc): added `get_state_update` real values from DA db
- feat: add transparent representation to `Felt252Wrapper`
- feat(rpc/trace_api): add `trace_block_transaction`
- chore(db): changed the way hashes are encoded

## v0.7.0

- chore: release v0.7.0
- refacto: remove abusive `TryInto` impl
- dev: optimize tx trace creation
- dev: make Madara std compatible
- CI: fix taplo version
- chore: add cache usage for `getEvents` and `getTransactionReceipt`
- fix: cairo1 contracts should be identified by their sierra class hash
- fix(cli): repair broken cli for da conf
- feat(client): on `add_declare_transaction` store sierra contract classes in
the madara backend
- chore: use struct error in client/db
Expand Down Expand Up @@ -72,7 +93,7 @@ git # Madara Changelog
- feat: fixing getNonce Rpc Call and adding a new test
- refactor: use Zaun crate for Starknet core contract bindings
- refactor: use Anvil sandbox from Zaun crate
- feat(rpc) : estimateMessageFee RPC call implementation
- feat(rpc): estimateMessageFee RPC call implementation

## v0.6.0

Expand Down Expand Up @@ -277,3 +298,5 @@ git # Madara Changelog
- feat: add `madara_tsukuyomi` as a submodule
- branding: use new logo in the README
- dev: Get the block status from the actual block in get_block_with_tx_hashes
- fix: l1-l2 messaging
- dev : clean contracts and compiled files
Loading

0 comments on commit 8fbebe3

Please sign in to comment.