Skip to content

Commit

Permalink
Bump clvmr and chia_rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Oct 19, 2024
1 parent 51378b4 commit 987e716
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 79 deletions.
114 changes: 63 additions & 51 deletions Cargo.lock

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

18 changes: 9 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,16 @@ chia-sdk-offers = { version = "0.16.0", path = "./crates/chia-sdk-offers" }
chia-sdk-signer = { version = "0.16.0", path = "./crates/chia-sdk-signer" }
chia-sdk-test = { version = "0.16.0", path = "./crates/chia-sdk-test" }
chia-sdk-types = { version = "0.16.0", path = "./crates/chia-sdk-types" }
chia = "0.13.0"
chia = "0.15.0"
chia-ssl = "0.11.0"
chia-protocol = "0.13.0"
chia-consensus = "0.13.0"
chia-traits = "0.11.0"
chia-bls = "0.13.0"
chia-puzzles = "0.13.0"
clvm-traits = "0.13.0"
clvm-utils = "0.13.0"
clvmr = "0.8.0"
chia-protocol = "0.15.0"
chia-consensus = "0.15.0"
chia-traits = "0.15.0"
chia-bls = "0.15.0"
chia-puzzles = "0.15.0"
clvm-traits = "0.15.0"
clvm-utils = "0.15.0"
clvmr = "0.9.0"
thiserror = "1.0.61"
hex = "0.4.3"
bech32 = "0.9.1"
Expand Down
1 change: 1 addition & 0 deletions crates/chia-sdk-driver/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ hex = { workspace = true }

[dev-dependencies]
chia-sdk-test = { workspace = true }
chia-sdk-signer = { workspace = true }
anyhow = { workspace = true }
chia-consensus = { workspace = true }
hex = { workspace = true }
Expand Down
32 changes: 15 additions & 17 deletions crates/chia-sdk-driver/src/primitives/nft/nft_launcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,11 @@ mod tests {

use super::*;

use chia_consensus::gen::{
conditions::EmptyVisitor, run_block_generator::run_block_generator,
solution_generator::solution_generator,
};
use chia_protocol::Coin;
use chia_consensus::spendbundle_conditions::get_conditions_from_spendbundle;
use chia_protocol::{Coin, SpendBundle};
use chia_puzzles::{nft::NftMetadata, standard::StandardArgs};
use chia_sdk_test::{test_secret_key, Simulator};
use chia_sdk_signer::AggSigConstants;
use chia_sdk_test::{sign_transaction, test_secret_key, Simulator};
use chia_sdk_types::{announcement_id, TESTNET11_CONSTANTS};

#[test]
Expand Down Expand Up @@ -157,22 +155,22 @@ mod tests {
)?;

let coin_spends = ctx.take();

let generator = solution_generator(
coin_spends
.iter()
.map(|cs| (cs.coin, cs.puzzle_reveal.clone(), cs.solution.clone())),
let signature = sign_transaction(
&coin_spends,
&[sk],
&AggSigConstants::new(TESTNET11_CONSTANTS.agg_sig_me_additional_data),
)?;
let conds = run_block_generator::<Vec<u8>, EmptyVisitor, _>(
let spend_bundle = SpendBundle::new(coin_spends, signature);

let conds = get_conditions_from_spendbundle(
&mut ctx.allocator,
&generator,
[],
11_000_000_000,
0,
&spend_bundle,
u64::MAX,
100_000_000,
&TESTNET11_CONSTANTS,
)?;

assert_eq!(conds.cost, 119_613_445);
assert_eq!(conds.cost, 109_517_025);

Ok(())
}
Expand Down
Loading

0 comments on commit 987e716

Please sign in to comment.