Skip to content

Instantly share code, notes, and snippets.

View metmirr's full-sized avatar
🎯
Focusing

Metin Demir metmirr

🎯
Focusing
View GitHub Profile
@metmirr
metmirr / SampleContractABI.json
Last active December 18, 2020 09:09
A sample contract abi use to generate typescript types
{
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint64",
"name": "_id",
"type": "uint64"
@metmirr
metmirr / babylon-release.md
Last active September 10, 2020 10:59
Joystream Babylon release query node schema+mappings workflow

Babylon Release

Implement content directory query node schemas+mappings This is a gigantic task, needs a lot of decomposition

Runtime

Get familiar with content directory runtime module:

  • Data types
  • Runtime events

Keybase proof

I hereby claim:

  • I am metmirr on github.
  • I am metmirr (https://keybase.io/metmirr) on keybase.
  • I have a public key ASCjVDVEn2fWM1a3DqTf8tCi0t2s0R5Va01Aj9BxKoJ3Qwo

To claim this, I am signing this object:

@metmirr
metmirr / jsondategenerator.py
Created March 12, 2020 15:06
Generate hourly json date data based on start and end date
import json
from datetime import datetime, timedelta
def generate(start_date, end_date):
time_delta = end_date - start_date
hours = time_delta.days * 24 + time_delta.seconds // 3600
print(hours)
dates = [start_date + timedelta(hours=i) for i in range(1, hours + 1)]