1
1
component
2
2
3
- import miden:base/tx-kernel @1.0.0::create-note fn(( u64, u64, u64, u64), u64, ( u64, u64, u64, u64)) mast#0x0000000000000000000000000000000000000000000000000000000000000000 lower module0::basic_wallet::bindings::miden::base::tx_kernel ::create_note::wit_import
4
- import miden:base/tx-kernel @1.0.0::add-asset fn(( u64, u64, u64, u64) ) -> ( u64, u64, u64, u64) mast#0x0000000000000000000000000000000000000000000000000000000000000000 lower wit-component:fixups::func0
5
- import miden:base/tx-kernel @1.0.0::remove-asset fn(( u64, u64, u64, u64) ) -> ( u64, u64, u64, u64) mast#0x0000000000000000000000000000000000000000000000000000000000000000 lower wit-component:fixups::func1
3
+ import miden:base/
[email protected] ::create-note fn(
struct {(struct { u64
}, struct { u64
}, struct { u64
}, struct { u64
})}, struct {struct { u64
}}, struct {(struct { u64
}, struct { u64
}, struct { u64
}, struct { u64
})}) -> struct {struct {u64}} mast#0x0000000000000000000000000000000000000000000000000000000000000000 lower module0::basic_wallet::bindings::miden::base::
tx ::create_note::wit_import
4
+ import miden:base/account @1.0.0::add-asset fn(struct {(struct { u64}, struct { u64}, struct { u64}, struct { u64})} ) -> struct {(struct { u64}, struct { u64}, struct { u64}, struct { u64})} mast#0x0000000000000000000000000000000000000000000000000000000000000000 lower wit-component:fixups::func0
5
+ import miden:base/account @1.0.0::remove-asset fn(struct {(struct { u64}, struct { u64}, struct { u64}, struct { u64})} ) -> struct {(struct { u64}, struct { u64}, struct { u64}, struct { u64})} mast#0x0000000000000000000000000000000000000000000000000000000000000000 lower wit-component:fixups::func1
6
6
7
7
module wit-component:shim {
8
8
9
- pub fn indirect-miden:base/tx-kernel @1.0.0-add-asset(i64, i64, i64, i64, i32) {
9
+ pub fn indirect-miden:base/account @1.0.0-add-asset(i64, i64, i64, i64, i32) {
10
10
block0(v0: i64, v1: i64, v2: i64, v3: i64, v4: i32):
11
11
v5 = const.i32 0 : i32;
12
12
br block1;
@@ -15,7 +15,7 @@ module wit-component:shim {
15
15
ret;
16
16
}
17
17
18
- pub fn indirect-miden:base/tx-kernel @1.0.0-remove-asset(i64, i64, i64, i64, i32) {
18
+ pub fn indirect-miden:base/account @1.0.0-remove-asset(i64, i64, i64, i64, i32) {
19
19
block0(v0: i64, v1: i64, v2: i64, v3: i64, v4: i32):
20
20
v5 = const.i32 1 : i32;
21
21
br block1;
@@ -48,7 +48,7 @@ module module0 {
48
48
v8 = global.symbol @__stack_pointer : *mut i32;
49
49
store v8, v7;
50
50
call module0::wit_bindgen::rt::run_ctors_once();
51
- call wit-component:shim::indirect-miden:base/tx-kernel @1.0.0-add-asset(v0, v1, v2, v3, v7);
51
+ call wit-component:shim::indirect-miden:base/account @1.0.0-add-asset(v0, v1, v2, v3, v7);
52
52
v9 = const.i32 32 : i32;
53
53
v10 = add.wrapping v7, v9 : i32;
54
54
v11 = global.symbol @__stack_pointer : *mut i32;
@@ -68,7 +68,7 @@ module module0 {
68
68
v13 = global.symbol @__stack_pointer : *mut i32;
69
69
store v13, v12;
70
70
call module0::wit_bindgen::rt::run_ctors_once();
71
- call wit-component:shim::indirect-miden:base/tx-kernel @1.0.0-remove-asset(v0, v1, v2, v3, v12);
71
+ call wit-component:shim::indirect-miden:base/account @1.0.0-remove-asset(v0, v1, v2, v3, v12);
72
72
v14 = cast v12 : u32;
73
73
v15 = inttoptr v14 : *mut i64;
74
74
v16 = load v15 : i64;
@@ -87,11 +87,11 @@ module module0 {
87
87
v29 = cast v28 : u32;
88
88
v30 = inttoptr v29 : *mut i64;
89
89
v31 = load v30 : i64;
90
- call module0::basic_wallet::bindings::miden::base::tx_kernel ::create_note::wit_import(v16, v21, v26, v31, v4, v5, v6, v7, v8);
91
- v32 = const.i32 32 : i32;
92
- v33 = add.wrapping v12, v32 : i32;
93
- v34 = global.symbol @__stack_pointer : *mut i32;
94
- store v34, v33 ;
90
+ v32 = call module0::basic_wallet::bindings::miden::base::tx ::create_note::wit_import(v16, v21, v26, v31, v4, v5, v6, v7, v8) : i64 ;
91
+ v33 = const.i32 32 : i32;
92
+ v34 = add.wrapping v12, v33 : i32;
93
+ v35 = global.symbol @__stack_pointer : *mut i32;
94
+ store v35, v34 ;
95
95
br block1;
96
96
97
97
block1:
@@ -907,9 +907,9 @@ module module0 {
907
907
}
908
908
909
909
910
- pub fn wit-component:shim::indirect-miden:base/tx-kernel @1.0.0-add-asset(i64, i64, i64, i64, i32);
910
+ pub fn wit-component:shim::indirect-miden:base/account @1.0.0-add-asset(i64, i64, i64, i64, i32);
911
911
912
- pub fn wit-component:shim::indirect-miden:base/tx-kernel @1.0.0-remove-asset(i64, i64, i64, i64, i32);
912
+ pub fn wit-component:shim::indirect-miden:base/account @1.0.0-remove-asset(i64, i64, i64, i64, i32);
913
913
}
914
914
915
915
module wit-component:fixups {
0 commit comments