forked from tonkeeper/w5
-
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.
Backport some tooling from entrypoint branch
- Loading branch information
Showing
4 changed files
with
30 additions
and
1 deletion.
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,16 @@ | ||
#!/usr/bin/fift -s | ||
"Asm.fif" include | ||
"Disasm.fif" include | ||
|
||
"../build/wallet_v5_compiled.txt" file>B B>$ x>B B>boc | ||
|
||
show-vm-code std-disasm +indent +indent | ||
|
||
."Disasm" cr | ||
dup <s disasm cr | ||
|
||
."Cell tree:" cr | ||
dup <s csr. cr | ||
|
||
."Free bits in root cell" | ||
dup <s sbits 1023 - -1 * ." " dup . ." (" 8 / . ."bytes)" cr |
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,8 @@ | ||
#!/bin/bash | ||
|
||
cd "$(dirname "$0")" || exit | ||
cd ../fift || exit | ||
|
||
jq -j ".hex" ../build/wallet_v5.compiled.json > ../build/wallet_v5_compiled.txt | ||
|
||
fift dasm.fif |