Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial version of wrc20 token #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
10 changes: 10 additions & 0 deletions ewasm-token/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
WAT_ARGS ?= --fold-exprs --inline-exports --generate-names

/ewasm_token.rs:
rustc +nightly --target wasm32-unknown-unknown -O --crate-type=cdylib ewasm_token.rs
mv ewasm_token.wasm ewasm_token-bloated.wasm
wasm-gc ewasm_token-bloated.wasm ewasm_token.wasm

all: ewasm_token.rs
wasm2wat $(WAT_ARGS) ewasm_token.wasm > ewasm_token.wat
wasm2wat $(WAT_ARGS) ewasm_token-bloated.wasm > ewasm_token-bloated.wat
6 changes: 6 additions & 0 deletions ewasm-token/bin2hex.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
var fs = require('fs');

var bin = fs.readFileSync('./ewasm_token_env_ethereum.wasm');

console.log('binary as hex:')
console.log(bin.toString('hex'))
Binary file added ewasm-token/ewasm_token-bloated.wasm
Binary file not shown.
Loading