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

Sargon 0.7.1 | Rust Analyzer is FAST again, thx to bumping Scrypto (and RET) #118

Merged
merged 2 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
90 changes: 45 additions & 45 deletions Cargo.lock

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

24 changes: 9 additions & 15 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sargon"
version = "0.6.56"
version = "0.7.1"
edition = "2021"
build = "build.rs"

Expand Down Expand Up @@ -74,28 +74,22 @@ strum = { git = "https://github.com/Peternator7/strum/", rev = "f746c3699acf1501
"derive",
] }

# 587d5988cd4ca3c5193ddf37027ff4e4ecd637dc is the Scrypto commit that RET 1cfe879c7370cfa497857ada7a8973f8a3388abc uses
radix-engine-common = { git = "https://github.com/radixdlt/radixdlt-scrypto", rev = "587d5988cd4ca3c5193ddf37027ff4e4ecd637dc", features = [
radix-engine-common = { git = "https://github.com/radixdlt/radixdlt-scrypto", rev = "v1.1.2", features = [
"serde",
] }

radix-engine = { git = "https://github.com/radixdlt/radixdlt-scrypto", rev = "587d5988cd4ca3c5193ddf37027ff4e4ecd637dc" }

sbor = { git = "https://github.com/radixdlt/radixdlt-scrypto", rev = "587d5988cd4ca3c5193ddf37027ff4e4ecd637dc" }

radix-engine-derive = { git = "https://github.com/radixdlt/radixdlt-scrypto", rev = "587d5988cd4ca3c5193ddf37027ff4e4ecd637dc" }

radix-engine-interface = { git = "https://github.com/radixdlt/radixdlt-scrypto", rev = "587d5988cd4ca3c5193ddf37027ff4e4ecd637dc", features = [
radix-engine = { git = "https://github.com/radixdlt/radixdlt-scrypto", rev = "v1.1.2" }
sbor = { git = "https://github.com/radixdlt/radixdlt-scrypto", rev = "v1.1.2" }
radix-engine-derive = { git = "https://github.com/radixdlt/radixdlt-scrypto", rev = "v1.1.2" }
radix-engine-interface = { git = "https://github.com/radixdlt/radixdlt-scrypto", rev = "v1.1.2", features = [
"std",
] }

transaction = { git = "https://github.com/radixdlt/radixdlt-scrypto", rev = "587d5988cd4ca3c5193ddf37027ff4e4ecd637dc", features = [
transaction = { git = "https://github.com/radixdlt/radixdlt-scrypto", rev = "v1.1.2", features = [
"std",
] }

radix-engine-toolkit-json = { git = "https://github.com/radixdlt/radix-engine-toolkit", rev = "1cfe879c7370cfa497857ada7a8973f8a3388abc" }

radix-engine-toolkit = { git = "https://github.com/radixdlt/radix-engine-toolkit", rev = "1cfe879c7370cfa497857ada7a8973f8a3388abc" }
radix-engine-toolkit-json = { git = "https://github.com/radixdlt/radix-engine-toolkit", rev = "v2.0.1" }
radix-engine-toolkit = { git = "https://github.com/radixdlt/radix-engine-toolkit", rev = "v2.0.1" }

# enum-iterator = "1.4.1"
enum-iterator = { git = "https://github.com/stephaneyfx/enum-iterator/", rev = "9d472a1237cfd03b1c7657fdcba74c8070bfb4ea" }
Expand Down
2 changes: 1 addition & 1 deletion src/core/types/keys/public_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ mod tests {
"#;

let result =
serde_json::from_str::<PublicKey>(&json_with_wrong_curve).unwrap();
serde_json::from_str::<PublicKey>(json_with_wrong_curve).unwrap();
assert_eq!(expected_secp256k1, result);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use radix_engine_toolkit::functions::address::decode as RET_decode_address;
#[derive(Clone, Debug, PartialEq, Eq, derive_more::Display, uniffi::Record)]
#[display("{}", self.instructions_string())]
pub struct Instructions {
secret_magic: InstructionsSecretMagic, // MUST be first prop, else you break build.
pub secret_magic: InstructionsSecretMagic, // MUST be first prop, else you break build.
pub network_id: NetworkID,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::prelude::*;
/// `private let secretMagic: InstructionsSecretMagic`
/// And hide its initializers.
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct InstructionsSecretMagic(Vec<ScryptoInstruction>);
pub struct InstructionsSecretMagic(pub Vec<ScryptoInstruction>);

impl InstructionsSecretMagic {
pub(crate) fn instructions(&self) -> &Vec<ScryptoInstruction> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ impl TransactionManifest {
}

pub fn involved_resource_addresses(&self) -> Vec<ResourceAddress> {
let (addresses, _) = RET_ins_extract_addresses(self.instructions());
let (addresses, _) = RET_ins_extract_addresses(
self.secret_magic.instructions.secret_magic.0.as_slice(),
);
addresses
.into_iter()
.filter_map(|a| {
Expand Down
Loading