Skip to content

Instantly share code, notes, and snippets.

Avatar

MTabz mtabz

View GitHub Profile
View hello_apply_snippet.wast
(func (;11;) (type 8) (param i64 i64 i64)
(local i32)
get_global 0
i32.const 16
i32.sub
View hello_apply.wast
(func (;11;) (type 8) (param i64 i64 i64)
(local i32)
get_global 0
i32.const 16
i32.sub
tee_local 3
set_global 0
call 10
block ;; label = @1
get_local 1
View hello_print.wast
(data (i32.const 8192) "Hello, \00")
View hello_imports.wast
(import "env" "read_action_data" (func (;1;) (type 2)))
(import "env" "require_auth" (func (;4;) (type 5)))
(import "env" "prints" (func (;5;) (type 6)))
View hello_section.wast
(module
(type (;0;) (func (param i32 i64)))
(type (;1;) (func (result i32)))
(type (;2;) (func (param i32 i32) (result i32)))
(type (;3;) (func (param i32 i32)))
(type (;4;) (func (param i32 i32 i32) (result i32)))
(type (;5;) (func (param i64)))
(type (;6;) (func (param i32)))
(type (;7;) (func))
(type (;8;) (func (param i64 i64 i64)))
@mtabz
mtabz / helloworld.cpp
Created Apr 9, 2019
EOSIO Helloworld
View helloworld.cpp
#include <eosiolib/eosio.hpp>
#include <eosiolib/print.hpp>
using namespace eosio;
class hello : public contract {
public: using contract::contract;
[[eosio::action]] void hi( name user ) {
require_auth( user );
print( "Hello, ", user);
}
View gist:2965caa5f9b888388b1052a450ada7c2
### Keybase proof
I hereby claim:
* I am mtabz on github.
* I am mtabulo (https://keybase.io/mtabulo) on keybase.
* I have a public key ASB2LwaIqz4gKs-9dSNxDdfOdPOAnZlHE-N_ZOae3QLRXAo
To claim this, I am signing this object: