This file contains hidden or 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
| [package] | |
| name = "avail-ipld" | |
| version = "0.1.0" | |
| edition = "2018" | |
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
| [dependencies] | |
| libipld = {version = "0.12.0", features = ["unleashed"]} | |
| multihash = "0.14.0" |
This file contains hidden or 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
| module rlnc_in_storage | |
| go 1.16 | |
| require github.com/itzmeanjan/kodr v0.2.0 |
This file contains hidden or 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
| use dusk_plonk::fft::EvaluationDomain; | |
| use dusk_plonk::prelude::BlsScalar; | |
| mod utils { | |
| use dusk_plonk::fft::EvaluationDomain; | |
| use dusk_plonk::prelude::BlsScalar; | |
| use rand::rngs::StdRng; | |
| use rand::{Rng, SeedableRng}; | |
| use std::time::{SystemTime, UNIX_EPOCH}; |
This file contains hidden or 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
| #!/usr/bin/python3 | |
| from requests import post | |
| def find_missing_depositBlockIds(): | |
| url = 'https://mainnet.infura.io/v3/<project-id>' | |
| from_ = 10_167_767 | |
| to_ = from_ + 1_000 | |
| stop_ = 12_908_120 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| #!/usr/bin/python3 | |
| from typing import List, Tuple | |
| from prime_ring import PrimeRing | |
| from galois import GF | |
| class Decoder: | |
| def __init__(self, target_rank: int) -> None: | |
| self._target_rank = target_rank |
This file contains hidden or 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
| numpy==1.20.3 | |
| galois==0.0.17 |
This file contains hidden or 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
| #!/usr/bin/python3 | |
| from python_graphql_client import GraphqlClient | |
| from json import dumps | |
| from asyncio import run | |
| from re import compile as re_compile | |
| from pytimeparse import parse | |
| reg = re_compile(r'^(\d+(\.\d+)?)') | |
| handle = None |
This file contains hidden or 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
| const { ApiPromise, WsProvider, Keyring } = require('@polkadot/api') | |
| // ❌ Never use this phrase in production | |
| const PHRASE = process.env.DA_FAUCET_PHRASE || '<get-yourself-one>' | |
| const URL = process.env.DA_URL || 'ws://127.0.0.1:8000' | |
| const AMOUNT = 1_000_000_000 | |
| const RECEIVER = '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY' | |
| const transferBalance = (api, faucet, receiver, amount, waitForFinalization = true) => new Promise(async (res, rej) => { | |
| try { |
This file contains hidden or 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
| const { ApiPromise, WsProvider, Keyring } = require('@polkadot/api') | |
| const { Buffer } = require('buffer') | |
| const { createWriteStream } = require('fs') | |
| const BATCH = process.env.BATCH || 100 // these many tx(s) to be attempted to be submitted | |
| const PAYLOAD = process.env.PAYLOAD || 512 // in terms of bytes | |
| const WSURL = process.env.WSURL || 'ws://localhost:9944' | |
| // To be initialized, after `setUp` is called | |
| let handle |