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 std::{ | |
| iter::once, | |
| num::NonZero, | |
| ops::{ControlFlow, RangeInclusive}, | |
| sync::Arc, | |
| time::Duration, | |
| }; | |
| use assert_matches::assert_matches; | |
| use eyre::{bail, eyre, Result}; |
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
| import { ToriiRequirementsForApiHttp } from '@iroha2/client' | |
| import { datamodel } from '@iroha2/data-model' | |
| interface QueryParams { | |
| start?: number | |
| limit?: number | |
| sortByMetadataKey?: string | |
| } | |
| async function* queryBatches( |
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
| import { CamelCase, Simplify } from 'type-fest' | |
| declare const create: <B extends string>(blockName: B) => BlockBuilder<B> | |
| interface BlockBuilder<R extends string, M extends ModifiersArray = [], E extends BuiltElem<any, any>[] = []> { | |
| mod: { | |
| <B extends AnyBlockBuilder, M extends string>(this: B, name: M): ExtendsBlockModifiers<B, M> | |
| <B extends BlockBuilder<any, any>, M extends string, V extends string>( | |
| this: B, | |
| modName: M, |