import os
from subprocess import call
def main():
extensions = ('.sol')
for subdir, dirs, files in os.walk("."):
for file in files:
ext = os.path.splitext(file)[-1].lower()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base from 'base-x' | |
const ipfsClient = require('ipfs-http-client') | |
const ENDPOINT = new URL('api/v0', 'http://ipfs.network.thegraph.com/').href | |
const ipfs = new ipfsClient(ENDPOINT) | |
// convert ipfsHash to Hex string | |
export const ipfsHexHash = (ipfsHash: string) => { | |
const base58 = base('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ethereum account of the subgraph owner | |
const ethereumAccount = 0xbeb123.... | |
// you need to upload the version metadata object to IPFS | |
const versionData = { | |
label: "v0.0.1", | |
description: "can be empty" | |
} | |
// IPFS Qm hash of the file with version metadata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Javascript Node CircleCI 2.0 configuration file | |
# | |
# Check https://circleci.com/docs/2.0/language-javascript/ for more details | |
# | |
# | |
version: 2 | |
jobs: | |
build: | |
docker: | |
# specify the version you desire here |