Skip to content

Commit

Permalink
Merge pull request #1245 from radixdlt/feature/typed-native-events
Browse files Browse the repository at this point in the history
Feature/typed native events
  • Loading branch information
0xOmarA authored Jul 19, 2023
2 parents 638673d + 0c8ffd8 commit b40aa9c
Show file tree
Hide file tree
Showing 26 changed files with 982 additions and 98 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: 1.70.0
- name: Check format
run: bash ./check.sh
sbor-unit-tests:
Expand All @@ -43,7 +43,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: 1.70.0
- name: Run tests
run: cargo test
working-directory: sbor
Expand All @@ -63,7 +63,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: 1.70.0
- name: Run tests
run: cargo test
working-directory: sbor-tests
Expand All @@ -83,7 +83,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: 1.70.0
- name: Run tests
run: cargo test
working-directory: scrypto
Expand All @@ -106,7 +106,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: 1.70.0
- name: Run tests
run: cargo test
working-directory: scrypto-tests
Expand All @@ -123,7 +123,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: 1.70.0
- name: Add wasm target
run: rustup target add wasm32-unknown-unknown
- name: Add wasm target (nightly)
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: 1.70.0
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: Install RocksDB metrics dependency
Expand Down Expand Up @@ -185,7 +185,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: 1.70.0
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: Add wasm target
Expand All @@ -206,7 +206,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: 1.70.0
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: Add wasm target
Expand All @@ -227,7 +227,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: 1.70.0
- name: Add wasm target
run: rustup target add wasm32-unknown-unknown
- name: Run bench
Expand All @@ -243,7 +243,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: 1.70.0
- name: Add wasm target
run: rustup target add wasm32-unknown-unknown
- name: Run bench
Expand All @@ -259,7 +259,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: 1.70.0
- name: Run tests
run: cargo test
working-directory: transaction
Expand Down Expand Up @@ -287,7 +287,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: 1.70.0
- uses: radixdlt/rust-cache@allow_registry_src_caching
with:
prefix-key: ""
Expand Down Expand Up @@ -321,7 +321,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: 1.70.0
- uses: radixdlt/rust-cache@allow_registry_src_caching
with:
prefix-key: ""
Expand Down Expand Up @@ -349,7 +349,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: 1.70.0
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: Add wasm target
Expand Down
75 changes: 55 additions & 20 deletions assets/blueprints/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion radix-engine-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ num-integer = { version = "0.1.45", default-features = false }
num-bigint = { version = "0.4.3", default-features = false }
bnum = { version = "0.7.0", default-features = false, features = ["numtraits"] }
bech32 = { version = "0.9.0", default-features = false }
paste = { version = "1.0.7"}
paste = { version = "1.0.13" }
blake2 = { version = "0.10.6", default-features = false }
lazy_static = "1.4.0"
strum = { version = "0.24", default-features = false, features = ["derive"] }
Expand Down
3 changes: 3 additions & 0 deletions radix-engine-common/tests/scrypto_codec.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// This test module fails to compile if we do not increase the recursion limit.
#![recursion_limit = "256"]

use radix_engine_common::data::scrypto::model::NonFungibleLocalId;
use radix_engine_common::data::scrypto::*;
use radix_engine_common::*;
Expand Down
2 changes: 1 addition & 1 deletion radix-engine-interface/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ serde_json = { version = "1.0", default-features = false }
lazy_static = "1.4.0"
const-sha1 = { git = "https://github.com/radixdlt/const-sha1", default-features = false } # Chosen because of its small size and 0 transitive dependencies
arbitrary = { version = "1.3.0", features = ["derive"], optional = true }
paste = { version = "1.0.12" }
paste = { version = "1.0.13" }

[features]
# You should enable either `std` or `alloc`
Expand Down
5 changes: 3 additions & 2 deletions radix-engine-queries/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ transaction = { path = "../transaction", default-features = false }
utils = { path = "../utils", default-features = false }
itertools = { version = "0.10.3", default-features = false }
hex = { version = "0.4.3", default-features = false }
paste = { version = "1.0.13" }

[features]
# You should enable either `std` or `alloc`
default = ["std", "moka"]
std = ["hex/std", "sbor/std", "transaction/std", "radix-engine-interface/std", "radix-engine-store-interface/std", "utils/std"]
alloc = ["hex/alloc", "sbor/alloc", "transaction/alloc", "radix-engine-interface/alloc", "radix-engine-store-interface/alloc", "utils/alloc"]
std = ["radix-engine/std", "hex/std", "sbor/std", "transaction/std", "radix-engine-interface/std", "radix-engine-store-interface/std", "utils/std"]
alloc = ["radix-engine/alloc", "hex/alloc", "sbor/alloc", "transaction/alloc", "radix-engine-interface/alloc", "radix-engine-store-interface/alloc", "utils/alloc"]

moka = ["radix-engine/moka"]
lru = ["radix-engine/lru"]
Expand Down
1 change: 1 addition & 0 deletions radix-engine-queries/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ compile_error!("Either feature `std` or `alloc` must be enabled for this crate."
compile_error!("Feature `std` and `alloc` can't be enabled at the same time.");

pub mod query;
pub mod typed_native_events;
pub mod typed_substate_layout;
Loading

0 comments on commit b40aa9c

Please sign in to comment.