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

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ members = [
"codegen/*",
"dialects/*",
"eval",
"felt-repr/*",
"frontend/*",
"hir",
"hir-analysis",
Expand Down
18 changes: 18 additions & 0 deletions examples/auth-component-no-auth/Cargo.lock

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

18 changes: 18 additions & 0 deletions examples/auth-component-rpo-falcon512/Cargo.lock

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

18 changes: 18 additions & 0 deletions examples/basic-wallet-tx-script/Cargo.lock

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

18 changes: 18 additions & 0 deletions examples/basic-wallet/Cargo.lock

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

18 changes: 18 additions & 0 deletions examples/counter-contract/Cargo.lock

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

18 changes: 18 additions & 0 deletions examples/counter-note/Cargo.lock

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

19 changes: 19 additions & 0 deletions examples/p2id-note/Cargo.lock

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

1 change: 1 addition & 0 deletions examples/p2id-note/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ crate-type = ["cdylib"]
# Miden SDK consists of a stdlib (intrinsic functions for VM ops, stdlib functions and types)
# and transaction kernel API for the Miden rollup
miden = { path = "../../sdk/sdk" }
miden-felt-repr-onchain = { path = "../../felt-repr/onchain" }

[package.metadata.component]
package = "miden:p2id"
Expand Down
12 changes: 2 additions & 10 deletions examples/p2id-note/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
// Do not link against libstd (i.e. anything defined in `std::`)
#![no_std]

// However, we could still use some standard library types while
// remaining no-std compatible, if we uncommented the following lines:
//
// extern crate alloc;
// use alloc::vec::Vec;

use miden::*;

use crate::bindings::Account;

#[note_script]
fn run(_arg: Word, account: &mut Account) {
let inputs = active_note::get_inputs();
let target_account_id_prefix = inputs[0];
let target_account_id_suffix = inputs[1];
let target_account_id: AccountId = inputs.as_slice().into();

let target_account = AccountId::from(target_account_id_prefix, target_account_id_suffix);
let current_account = account.get_id();
assert_eq!(current_account, target_account);
assert_eq!(current_account, target_account_id);

let assets = active_note::get_assets();
for asset in assets {
Expand Down
18 changes: 18 additions & 0 deletions examples/p2ide-note/Cargo.lock

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

Loading