-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from sota-zk-labs/mzk-41-layout7
Mzk 41 layout7
- Loading branch information
Showing
45 changed files
with
16,817 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[package] | ||
name = "cpu" | ||
version = "1.0.0" | ||
authors = [] | ||
|
||
[addresses] | ||
cpu_addr = "_" | ||
|
||
[dev-addresses] | ||
cpu_addr = "1725fb72ba62d830193fe57a932b5071c9718a44e40891e4067a2fe0e78f4d0f" | ||
lib_addr = "54ba5979fbdf5fa56c4f4b5147fa33068148d08f6f191c23bca865c21192dcaa" | ||
|
||
[dependencies.AptosFramework] | ||
git = "https://github.com/aptos-labs/aptos-core.git" | ||
rev = "aptos-release-v1.17" | ||
subdir = "aptos-move/framework/aptos-framework" | ||
|
||
[dependencies] | ||
libs = { local = "../libs" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module cpu_addr::cairo_bootloader_program { | ||
use std::signer::address_of; | ||
|
||
struct CompiledProgram has key { | ||
inner: vector<u256> | ||
} | ||
|
||
public fun init_compiled_program(signer: &signer, compiled_program: vector<u256>) { | ||
if (!exists<CompiledProgram>(address_of(signer))) { | ||
move_to(signer, CompiledProgram { | ||
inner: compiled_program | ||
}); | ||
}; | ||
} | ||
|
||
#[view] | ||
public fun get_compiled_program(signer: &signer): vector<u256> acquires CompiledProgram { | ||
borrow_global<CompiledProgram>(address_of(signer)).inner | ||
} | ||
} |
Oops, something went wrong.