Skip to content

Instantly share code, notes, and snippets.

version: '3.2'
services:
explorer-api:
build: explorer-api/.
image: polkascan/pre-explorer-api:latest
hostname: explorer-api
volumes:
- './explorer-api:/usr/src/app'
"""Membership
Revision ID: 4974d874ba73
Revises: eab2bca0e472
Create Date: 2019-08-19 18:25:37.506739
"""
from alembic import op
import sqlalchemy as sa
BUILD AND RUN POLKASCAN


>> git clone https://github.com/polkascan/polkascan-pre.git


>> cd polkascan-pre


>> git submodule update --init —-recursive
>> download docker-compose.workshop.yml @
https://gist.github.com/arjanz


>> docker-compose -p dev -f docker-compose.workshop.yml up -d mysql


>> docker-compose -p dev -f docker-compose.workshop.yml up --build
# Install package with: pip install git+https://github.com/polkascan/py-substrate-interface.git@master#egg=substrateinterface
from scalecodec.base import RuntimeConfiguration
from scalecodec.type_registry import load_type_registry_preset
from substrateinterface import SubstrateInterface
from substrateinterface.utils.ss58 import ss58_encode
RuntimeConfiguration().update_type_registry(load_type_registry_preset("default"))
RuntimeConfiguration().update_type_registry(load_type_registry_preset("kusama"))
@arjanz
arjanz / acala.json
Created August 25, 2021 12:07
Acala type registry
{
"types": {
"CallOf": "Call",
"DispatchTime": {
"type": "enum",
"type_mapping": [
[
"At",
"BlockNumber"
],