Skip to content

Instantly share code, notes, and snippets.

View agryaznov's full-sized avatar

Alexander Gryaznov agryaznov

View GitHub Profile
@agryaznov
agryaznov / balance.wat
Last active November 2, 2023 11:55
wasm instumentation examples
(module
(import "seal0" "seal_balance" (func $seal_balance (param i32 i32)))
(import "env" "memory" (memory 1 1))
;; [0, 8) reserved for $seal_balance output
;; [8, 16) length of the buffer for $seal_balance
;; [16, inf) zero initialized
(data (i32.const 8) "\08")
;; Utility function for making assertions.
(func $assert (param i32)
(block $ok
@agryaznov
agryaznov / interview-task-openapi-spec.yaml
Created October 12, 2020 16:25
Open API Specification for the Interview Task API
openapi: 3.0.0
info:
title: Interview Task API
description: This is an API to submit inteview task solution
contact:
email: you@your-company.com
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
version: 1.0.0
This file has been truncated, but you can view the full file.
{
"name": "Robonomics",
"id": "robonomics_testnet",
"bootNodes": [
"/ip4/92.216.202.55/tcp/30333/p2p/QmbPgV4iTsWHhrZDTPU5g1YtxJ11PcGC3f9oMTaNLUvJ6m",
"/ip4/54.38.53.77/tcp/30333/p2p/QmPVJKr8TkLkDF98BYyySxe2bVJ2BY9epXvmdCkExwtp2Q",
"/ip4/139.162.132.141/tcp/30333/p2p/QmUQhKfBKfb5jMstpQ5kUER5HzVsLLJysyewnFDHEveHkh",
"/ip6/2001:41d0:401:3100::34e6/tcp/30333/p2p/QmbPgV4iTsWHhrZDTPU5g1YtxJ11PcGC3f9oMTaNLUvJ6m",
"/ip6/fc6c:99a2:171a:f36a:8cd0:cc6b:efb7:8bb4/tcp/30333/p2p/QmbPgV4iTsWHhrZDTPU5g1YtxJ11PcGC3f9oMTaNLUvJ6m",
"/ip6/fcaa:9c13:6ea4:4b92:8b9b:9:2390:52c1/tcp/30333/p2p/QmduvgCG1Tfj2P1oLRDjGzrhto4PKmSUtCGCNKoKEvNHxL",
@agryaznov
agryaznov / master.log
Created May 28, 2019 22:18
Robonomics Substrate node logs master
$ ./target/release/robonomics
2019-05-29 01:14:55 Robonomics Node
2019-05-29 01:14:55 version 0.10.2-9870c2a-x86_64-linux-gnu
2019-05-29 01:14:55 by Airalab <research@aira.life>, 2018, 2019
2019-05-29 01:14:55 Chain specification: Robonomics
2019-05-29 01:14:55 Node name: aloof-boats-2960
2019-05-29 01:14:55 Roles: FULL
2019-05-29 01:14:55 Best block: #0
2019-05-29 01:14:55 Using default protocol ID "sup" because none is configured in the chain specs
2019-05-29 01:14:55 Local node address is: /ip4/0.0.0.0/tcp/30333/p2p/QmQQuYX6iTdenAtCC3iREtXjUpre1zc3j1S6FNZEiJj7Tx
@agryaznov
agryaznov / v.0.10.2.log
Created May 28, 2019 22:04
Robonomics Substrte node log
$ ./target/release/robonomics
2019-05-29 00:49:54 Robonomics Node
2019-05-29 00:49:54 version 0.10.2-7d90f8a-x86_64-linux-gnu
2019-05-29 00:49:54 by Airalab <research@aira.life>, 2018, 2019
2019-05-29 00:49:54 Chain specification: Robonomics
2019-05-29 00:49:54 Node name: yummy-cow-2141
2019-05-29 00:49:54 Roles: FULL
2019-05-29 00:49:54 Best block: #0
2019-05-29 00:49:54 Using default protocol ID "sup" because none is configured in the chain specs
2019-05-29 00:49:54 Local node address is: /ip4/0.0.0.0/tcp/30333/p2p/QmQQuYX6iTdenAtCC3iREtXjUpre1zc3j1S6FNZEiJj7Tx
[
{
"constant": false,
"inputs": [
{
"name": "hashes",
"type": "bytes32[]"
},
{
"name": "amounts",
[
{
"constant": false,
"inputs": [
{
"name": "hashCode",
"type": "bytes32"
},
{
"name": "amount",
[{"constant":false,"inputs":[{"name":"newcodes","type":"uint256[25]"}],"name":"addCodes","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"state","type":"bool"}],"name":"setState","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"balance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_address","type":"address"}],"name":"setTokenContract","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"code","type":"uint256"}],"name":"submit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"class_on","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"cons
@agryaznov
agryaznov / Lecture.md
Last active October 13, 2017 14:25
Dapps lecture