Skip to content

Commit

Permalink
chore: bump alloy & foundry to latest (#83)
Browse files Browse the repository at this point in the history
* chore: bump alloy & foundry to latest

* chore: fix CodeQL

* chore: fix syntax?

* chore: fix CodeQL

* chore: bump erc6492

* chore: ditch EOL versions

* chore: fix merge

* chore: fmt
  • Loading branch information
chris13524 authored Dec 11, 2024
1 parent fb2ba7c commit 88490c7
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-kotlin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
cp target/${{ matrix.target }}/release/libuniffi_yttrium.so yttrium/libs/$abi_name/
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifacts
path: yttrium/
Expand All @@ -95,7 +95,7 @@ jobs:
uses: actions/checkout@v3

- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: artifacts
path: yttrium/
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ serde_json = "1.0"
oslog = "0.2.0"
log = "0.4.20"

alloy = "0.6.1"
alloy-provider = "0.6.1"
erc6492 = { git = "https://github.com/reown-com/erc6492.git", branch = "main" }
alloy = "0.7.3"
alloy-provider = "0.7.3"
erc6492 = { git = "https://github.com/reown-com/erc6492.git", rev = "3e764e1" }

serial_test = "3.2.0"

Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CONFIG = debug
PLATFORM_IOS = iOS Simulator,id=$(call udid_for,iOS 17.5,iPhone \d\+ Pro [^M])

build:
# GitHub CodeQL is automatically calling `make build` on PRs
# This Makefile is deprecated, but we need to keep this make target for CodeQL to work
cargo build

build-swift-apple-platforms:
export USE_LOCAL_RUST_XCFRAMEWORK=1; \
for platform in "iOS"; do \
Expand Down
7 changes: 2 additions & 5 deletions crates/yttrium/src/chain_abstraction/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ async fn happy_path() {
txn.to.unwrap()
);
assert_eq!(route_ui_fields.fee.fee.symbol, "ETH");
assert_eq!(route_ui_fields.fee.fee.unit, Unit::ETHER);
assert_eq!(route_ui_fields.fee.fee.unit, Unit::ETHER.get());
assert!(floats_close(
route_ui_fields.fee.fee.as_float_inaccurate(),
Amount::new("NULL".to_owned(), fee, Unit::ETHER)
Expand Down Expand Up @@ -1374,10 +1374,7 @@ async fn happy_path_full_dependency_on_route_ui_fields() {

assert_eq!(result.metadata.funding_from.len(), 1);
assert_eq!(result.metadata.funding_from.first().unwrap().symbol, "USDC");
assert_eq!(
result.metadata.funding_from.first().unwrap().decimals,
Unit::new(6).unwrap()
);
assert_eq!(result.metadata.funding_from.first().unwrap().decimals, 6);
assert_eq!(
result
.metadata
Expand Down
5 changes: 2 additions & 3 deletions crates/yttrium_dart/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ flutter_rust_bridge_codegen = "2.6.0"

[dependencies]
flutter_rust_bridge = "=2.7.0"
yttrium = { git = "https://github.com/reown-com/yttrium.git", package = "yttrium"}
yttrium = { path = "../../yttrium" }
# uniffi = { git = "https://github.com/mozilla/uniffi-rs", rev = "e796e00ad150f8b14b61a859a2e8c6497b35074e" }
openssl = { version = "0.10", features = ["vendored"] }
openssl-sys = { version = "0.9.103", features = ["vendored"] }
Expand All @@ -26,8 +26,7 @@ eyre.workspace = true
thiserror.workspace = true

alloy.workspace = true
alloy-provider = "0.6.1"
erc6492 = { git = "https://github.com/reown-com/erc6492.git", branch = "main" }
erc6492.workspace = true

# Async
tokio.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion test/scripts/forked_state/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
anvil:
image: ghcr.io/foundry-rs/foundry:nightly-96105b4d240681c336e063eac0e250cc51a84414
image: ghcr.io/foundry-rs/foundry:nightly-00efa0d5965269149f374ba142fb1c3c7edd6c94
restart: unless-stopped
ports: ["8545:8545"]
entrypoint: [ "anvil", "--fork-url", "https://gateway.tenderly.co/public/sepolia", "--host", "0.0.0.0", "--block-time", "0.1", "--gas-price", "1", "--silent", "--hardfork", "prague" ]
Expand Down

0 comments on commit 88490c7

Please sign in to comment.