Skip to content
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
14 changes: 7 additions & 7 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion crates/cheatcodes/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ vergen = { workspace = true, default-features = false, features = [
] }

[dependencies]
assertion-executor = { git = "https://github.com/phylaxsystems/credible-sdk.git", rev = "8145495", default-features = false }
assertion-executor = { git = "https://github.com/phylaxsystems/credible-sdk.git", rev = "d17125a", features = ["phoundry"]}
#assertion-executor = { path = "../../../credible-sdk/crates/assertion-executor", features = ["phoundry"]}

foundry-cheatcodes-spec.workspace = true
foundry-common.workspace = true
Expand Down
17 changes: 4 additions & 13 deletions crates/cheatcodes/spec/src/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,11 @@ sol! {
#[derive(Debug, Cheatcode)] // Keep this list small to avoid unnecessary bloat.
#[sol(abi)]
interface Vm {
/// Simple transaction struct for assertion execution testing
struct AssertionExTransaction {
/// The address of the sender
address from;
/// The address of the receiver
address to;
/// The value of the transaction
uint256 value;
/// The abi encoded calldata of the transaction
bytes data;
}
/// Gets the address for a given private key.

// Used to execute assertion against the next call or contract creation.
// Will revert if the assertion is not triggered.
#[cheatcode(group = Credible, safety = Safe)]
function assertionEx(bytes calldata tx, address assertionAdopter, bytes calldata assertionContract, string calldata assertionContractLabel) external;
function assertion(address adopter, bytes calldata createData, bytes4 fnSelector) external;


// ======== Types ========
Expand Down
Loading
Loading