id
stringlengths
26
1.14k
sliced_code
stringlengths
14
19.8M
type
stringlengths
1
1.35M
0b5vr_automaton/packages/automaton/src/Automaton.ts#time#arg#67
import { Channel } from './Channel'; import { Curve } from './Curve'; import type { AutomatonOptions } from './types/AutomatonOptions'; import type { ChannelUpdateEvent } from './types/ChannelUpdateEvent'; import type { FxDefinition } from './types/FxDefinition'; import type { SerializedAutomaton } from './types/Serial...
number
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#range#arg#57
import { GUISettings } from '../../types/GUISettings'; export function snapValue(value, range: <mask>, height, settings) { let v = value; if (settings?.snapValueActive) { const interval = settings.snapValueInterval; const threshold = dy2dv(-5.0, range, height); const nearest = Math.round...
ValueRange
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#t2x#ret#17
import { GUISettings } from '../../types/GUISettings'; export function t2x(t, range, width): <mask> { return ((t - range.t0) / (range.t1 - range.t0)) * width; } rectSelectState.isSelecting && (<RectSelectView x0={t2x(rectSelectState.t0)} x1={t2x(rectSelectState.t1)} y0={v2y(rectSelectState.v1)} y1={v2y(rectSelectSt...
number
0xProject_0x-starter-project/src/scenarios/execute_metatransaction_fill_rfq_order.ts#scenarioAsync#ret#10
import { ContractWrappers, ERC20TokenContract } from '@0x/contract-wrappers'; import { MetaTransaction, MetaTransactionFields, OrderStatus, RfqOrder, SignatureType } from '@0x/protocol-utils'; import { BigNumber, hexUtils, NULL_ADDRESS } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import { NETWORK...
Promise<void>
0b5vr_automaton/packages/automaton-with-gui/src/view/components/ContextMenuHr.tsx#ContextMenuHr#var#3
import { Colors } from '../constants/Colors'; import styled from 'styled-components'; styled.div` margin: 0.25rem 0; height: 0.125rem; width: 100%; background: ${Colors.back3}; ` const ContextMenuHr: <mask> = styled.div` margin: 0.25rem 0; height: 0.125rem; width: 100%; background: ${Colors.back3}; ` Co...
StyledComponent<"div", any, {}, never>
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#height#arg#57
import { GUISettings } from '../../types/GUISettings'; export function snapValue(value, range, height: <mask>, settings) { let v = value; if (settings?.snapValueActive) { const interval = settings.snapValueInterval; const threshold = dy2dv(-5.0, range, height); const nearest = Math.round...
number
0b5vr_automaton/packages/automaton-with-gui/src/view/components/CurveList.tsx#NewCurveButton#var#13
import { useDispatch, useSelector } from '../states/store'; import React, { useCallback } from 'react'; import { Colors } from '../constants/Colors'; import { CurveListEntry } from './CurveListEntry'; import { Icons } from '../icons/Icons'; import { Metrics } from '../constants/Metrics'; import { Scrollable } from './S...
StyledComponent<"div", any, {}, never>
0b5vr_automaton/packages/automaton-with-gui/src/types/GUISettings.ts#defaultGUISettings#var#13
export interface GUISettings { snapTimeActive: boolean; snapTimeInterval: number; snapValueActive: boolean; snapValueInterval: number; snapBeatActive: boolean; bpm: number; beatOffset: number; useBeatInGUI: boolean; minimizedPrecisionTime: number; minimizedPrecisionValue: number;...
Readonly<GUISettings>
0b5vr_automaton/packages/automaton/src/Curve.ts#time#arg#51
import { Automaton } from './Automaton'; import { bezierEasing } from './utils/bezierEasing'; import type { BezierNode } from './types/BezierNode'; import type { FxContext } from './types/FxContext'; import type { FxSection } from './types/FxSection'; import type { SerializedCurve } from './types/SerializedCurve'; publ...
number
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#t#arg#17
import { GUISettings } from '../../types/GUISettings'; export function t2x(t: <mask>, range, width) { return ((t - range.t0) / (range.t1 - range.t0)) * width; } return ((t - range.t0) / (range.t1 - range.t0)) * width; rectSelectState.isSelecting && (<RectSelectView x0={t2x(rectSelectState.t0)} x1={t2x(rectSelectSta...
number
0b5vr_automaton/packages/automaton/src/Automaton.ts#name#arg#73
import { Channel } from './Channel'; import { Curve } from './Curve'; import type { AutomatonOptions } from './types/AutomatonOptions'; import type { ChannelUpdateEvent } from './types/ChannelUpdateEvent'; import type { FxDefinition } from './types/FxDefinition'; import type { SerializedAutomaton } from './types/Serial...
string
0b5vr_automaton/packages/automaton/src/Automaton.ts#addFxDefinitions#ret#42
import { Channel } from './Channel'; import { Curve } from './Curve'; import type { AutomatonOptions } from './types/AutomatonOptions'; import type { ChannelUpdateEvent } from './types/ChannelUpdateEvent'; import type { FxDefinition } from './types/FxDefinition'; import type { SerializedAutomaton } from './types/Serial...
void
0b5vr_automaton/packages/automaton/src/Automaton.ts#__auto#ret#73
import { Channel } from './Channel'; import { Curve } from './Curve'; import type { AutomatonOptions } from './types/AutomatonOptions'; import type { ChannelUpdateEvent } from './types/ChannelUpdateEvent'; import type { FxDefinition } from './types/FxDefinition'; import type { SerializedAutomaton } from './types/Serial...
number
0b5vr_automaton/packages/automaton/src/Automaton.ts#data#arg#25
import { Channel } from './Channel'; import { Curve } from './Curve'; import type { AutomatonOptions } from './types/AutomatonOptions'; import type { ChannelUpdateEvent } from './types/ChannelUpdateEvent'; import type { FxDefinition } from './types/FxDefinition'; import type { SerializedAutomaton } from './types/Serial...
SerializedAutomaton
0b5vr_automaton/packages/automaton-with-gui/src/view/components/CurveList.tsx#dispatch#var#40
import { useDispatch, useSelector } from '../states/store'; import React, { useCallback } from 'react'; import { Colors } from '../constants/Colors'; import { CurveListEntry } from './CurveListEntry'; import { Icons } from '../icons/Icons'; import { Metrics } from '../constants/Metrics'; import { Scrollable } from './S...
Dispatch<Action>
0b5vr_automaton/packages/automaton/src/Automaton.ts#reset#ret#64
import { Channel } from './Channel'; import { Curve } from './Curve'; import type { AutomatonOptions } from './types/AutomatonOptions'; import type { ChannelUpdateEvent } from './types/ChannelUpdateEvent'; import type { FxDefinition } from './types/FxDefinition'; import type { SerializedAutomaton } from './types/Serial...
void
0xsequence_erc-1155/tests/utils/index.ts#{ assert, expect }#var#10
import * as chai from 'chai'; import chaiAsPromised from 'chai-as-promised'; import chaiString from 'chai-string'; import { ethers } from 'ethers'; const { assert, expect }: <mask> = chai .use(chaiString) .use(chaiAsPromised) .use(ChaiBigNumber()) chai .use(chaiString) ChaiBigNumber = require('chai-bign...
{ assert: Chai.AssertStatic; expect: Chai.ExpectStatic; }
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#width#arg#38
import { GUISettings } from '../../types/GUISettings'; export function snapTime(time, range, width: <mask>, settings) { const { snapTimeActive, snapBeatActive, snapTimeInterval, bpm, beatOffset } = settings; let result = time; if (snapTimeActive) { const interval = snapTimeInterval; const th...
number
0xsequence_erc-1155/tests/utils/index.ts#BigNumber#var#8
import * as chai from 'chai'; import chaiAsPromised from 'chai-as-promised'; import chaiString from 'chai-string'; import { ethers } from 'ethers'; const BigNumber: <mask> = ethers.BigNumber
typeof ethers.BigNumber
0b5vr_automaton/packages/automaton-with-gui/src/view/components/CurveList.tsx#StyledCurveListEntry#var#27
import { useDispatch, useSelector } from '../states/store'; import React, { useCallback } from 'react'; import { Colors } from '../constants/Colors'; import { CurveListEntry } from './CurveListEntry'; import { Icons } from '../icons/Icons'; import { Metrics } from '../constants/Metrics'; import { Scrollable } from './S...
StyledComponent<(props: CurveListEntryProps) => JSX.Element, any, {}, never>
0b5vr_automaton/packages/automaton/src/Automaton.ts#listener#arg#73
import { Channel } from './Channel'; import { Curve } from './Curve'; import type { AutomatonOptions } from './types/AutomatonOptions'; import type { ChannelUpdateEvent } from './types/ChannelUpdateEvent'; import type { FxDefinition } from './types/FxDefinition'; import type { SerializedAutomaton } from './types/Serial...
(event: ChannelUpdateEvent) => void
0xsequence_erc-1155/tests/utils/index.ts#ChaiBigNumber#var#3
import * as chai from 'chai'; import chaiAsPromised from 'chai-as-promised'; import chaiString from 'chai-string'; import { ethers } from 'ethers'; const ChaiBigNumber: <mask> = require('chai-bignumber')
object
0b5vr_automaton/packages/automaton-with-gui/src/view/components/CurveList.tsx#NewCurveIcon#var#9
import { useDispatch, useSelector } from '../states/store'; import React, { useCallback } from 'react'; import { Colors } from '../constants/Colors'; import { CurveListEntry } from './CurveListEntry'; import { Icons } from '../icons/Icons'; import { Metrics } from '../constants/Metrics'; import { Scrollable } from './S...
StyledComponent<"img", any, {}, never>
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#x#arg#26
import { GUISettings } from '../../types/GUISettings'; export function dx2dt(x: <mask>, range, width) { return (x / width) * (range.t1 - range.t0); } return (x / width) * (range.t1 - range.t0); function dx2dt(x,range,width): number result = Math.abs(time - nearest) < threshold ? nearest : result; threshold = dx2dt(...
number
0b5vr_automaton/packages/automaton/src/Automaton.ts#deserialize#ret#25
import { Channel } from './Channel'; import { Curve } from './Curve'; import type { AutomatonOptions } from './types/AutomatonOptions'; import type { ChannelUpdateEvent } from './types/ChannelUpdateEvent'; import type { FxDefinition } from './types/FxDefinition'; import type { SerializedAutomaton } from './types/Serial...
void
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#dy2dv#ret#32
import { GUISettings } from '../../types/GUISettings'; height export function dy2dv(y, range, height): <mask> { return -y / height * (range.v1 - range.v0); } function dy2dv(y,range,height): number v = Math.abs(v - nearest) < threshold ? nearest : v; threshold = dy2dv(-5.0, range, height) dy += movementSum.y; dy = 0...
number
0b5vr_automaton/packages/automaton-with-gui/src/view/components/CurveList.tsx#Root#var#33
import { useDispatch, useSelector } from '../states/store'; import React, { useCallback } from 'react'; import { Colors } from '../constants/Colors'; import { CurveListEntry } from './CurveListEntry'; import { Icons } from '../icons/Icons'; import { Metrics } from '../constants/Metrics'; import { Scrollable } from './S...
StyledComponent<(props: ScrollableProps) => JSX.Element, any, {}, never>
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#range#arg#26
import { GUISettings } from '../../types/GUISettings'; export function dx2dt(x, range: <mask>, width) { return (x / width) * (range.t1 - range.t0); } range.t1 - range.t0 return (x / width) * (range.t1 - range.t0); function dx2dt(x,range,width): number result = Math.abs(time - nearest) < threshold ? nearest : result...
TimeRange
0xProject_0x-starter-project/src/scenarios/transform_erc20.ts#scenarioAsync#ret#10
import { ContractWrappers, ERC20TokenContract } from '@0x/contract-wrappers'; import { encodeFillQuoteTransformerData, encodeWethTransformerData, FillQuoteTransformerOrderType, FillQuoteTransformerSide, findTransformerNonce, RfqOrder, SignatureType, } from '@0x/protocol-utils'; import { BigNumber, hexUtils } from '@0x/...
Promise<void>
0b5vr_automaton/packages/automaton/src/Curve.ts#context#var#117
import { Automaton } from './Automaton'; import { bezierEasing } from './utils/bezierEasing'; import type { BezierNode } from './types/BezierNode'; import type { FxContext } from './types/FxContext'; import type { FxSection } from './types/FxSection'; import type { SerializedCurve } from './types/SerializedCurve'; inde...
FxContext
0b5vr_automaton/packages/automaton-with-gui/src/view/components/CurveList.tsx#handleClickNewCurve#var#45
import { useDispatch, useSelector } from '../states/store'; import React, { useCallback } from 'react'; import { Colors } from '../constants/Colors'; import { CurveListEntry } from './CurveListEntry'; import { Icons } from '../icons/Icons'; import { Metrics } from '../constants/Metrics'; import { Scrollable } from './S...
() => void
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#dx2dt#ret#26
import { GUISettings } from '../../types/GUISettings'; export function dx2dt(x, range, width): <mask> { return (x / width) * (range.t1 - range.t0); } function dx2dt(x,range,width): number result = Math.abs(time - nearest) < threshold ? nearest : result; threshold = dx2dt(5.0, range, width) range.t1 - range.t0 order...
number
0b5vr_automaton/packages/automaton/src/Automaton.ts#precalcAll#ret#61
import { Channel } from './Channel'; import { Curve } from './Curve'; import type { AutomatonOptions } from './types/AutomatonOptions'; import type { ChannelUpdateEvent } from './types/ChannelUpdateEvent'; import type { FxDefinition } from './types/FxDefinition'; import type { SerializedAutomaton } from './types/Serial...
void
0x006F_react-media-recorder/src/index.ts#requiredMedia#var#74
import { register, MediaRecorder as ExtendableMediaRecorder, IMediaRecorder, } from "extendable-media-recorder"; import { ReactElement, useCallback, useEffect, useRef, useState } from "react"; import { connect } from "extendable-media-recorder-wav-encoder"; const requiredMedia: <mask> = { audio: typeof audi...
MediaStreamConstraints
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#range#arg#38
import { GUISettings } from '../../types/GUISettings'; export function snapTime(time, range: <mask>, width, settings) { const { snapTimeActive, snapBeatActive, snapTimeInterval, bpm, beatOffset } = settings; let result = time; if (snapTimeActive) { const interval = snapTimeInterval; const th...
TimeRange
0b5vr_automaton/packages/automaton/src/Curve.ts#getValue#ret#51
import { Automaton } from './Automaton'; import { bezierEasing } from './utils/bezierEasing'; import type { BezierNode } from './types/BezierNode'; import type { FxContext } from './types/FxContext'; import type { FxSection } from './types/FxSection'; import type { SerializedCurve } from './types/SerializedCurve'; prot...
number
0b5vr_automaton/packages/automaton/src/Curve.ts#data#arg#20
import { Automaton } from './Automaton'; import { bezierEasing } from './utils/bezierEasing'; import type { BezierNode } from './types/BezierNode'; import type { FxContext } from './types/FxContext'; import type { FxSection } from './types/FxSection'; import type { SerializedCurve } from './types/SerializedCurve'; publ...
SerializedCurve
0x006F_react-media-recorder/src/index.ts#blobProperty#var#193
import { register, MediaRecorder as ExtendableMediaRecorder, IMediaRecorder, } from "extendable-media-recorder"; import { ReactElement, useCallback, useEffect, useRef, useState } from "react"; import { connect } from "extendable-media-recorder-wav-encoder"; const blobProperty: <mask> = Object.assign({ type: chunk.type ...
BlobPropertyBag
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#height#arg#32
import { GUISettings } from '../../types/GUISettings'; export function dy2dv(y, range, height: <mask>) { return -y / height * (range.v1 - range.v0); } return -y / height * (range.v1 - range.v0); function dy2dv(y,range,height): number v = Math.abs(v - nearest) < threshold ? nearest : v; height threshold = dy2dv(-5.0...
number
0b5vr_automaton/packages/automaton/src/Automaton.ts#fxDefinitions#arg#42
import { Channel } from './Channel'; import { Curve } from './Curve'; import type { AutomatonOptions } from './types/AutomatonOptions'; import type { ChannelUpdateEvent } from './types/ChannelUpdateEvent'; import type { FxDefinition } from './types/FxDefinition'; import type { SerializedAutomaton } from './types/Serial...
{ [id: string]: FxDefinition; }
0b5vr_automaton/packages/automaton/src/tests/Automaton.test.ts#result#var#71
import { Automaton } from '../Automaton'; import type { ChannelUpdateEvent } from '../types/ChannelUpdateEvent'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; let result: <mask> result = event; expect(result?.init) expect(result?.init).toBe(true); expect(result?.uninit) expect(result?.uninit)...
ChannelUpdateEvent | undefined
0xsequence_niftyswap/src/gen/typechain/factories/interfaces/IDelegatedERC1155Metadata__factory.ts#address#arg#24
import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { IDelegatedERC1155Metadata, IDelegatedERC1155MetadataInterface, } from "../../interfaces/IDelegatedERC1155Metadata"; static connect(address: <mask>, signerOrProvider) { return new Contract(ad...
string
0b5vr_automaton/packages/automaton/src/tests/Automaton.test.ts#automaton#var#82
import { Automaton } from '../Automaton'; import type { ChannelUpdateEvent } from '../types/ChannelUpdateEvent'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; const automaton: <mask> = new Automaton({ resolution: 100.0, curves: [], channels: [ ...
SerializedAutomaton
0xsequence_niftyswap/src/gen/typechain/factories/interfaces/IDelegatedERC1155Metadata__factory.ts#signerOrProvider#arg#24
import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { IDelegatedERC1155Metadata, IDelegatedERC1155MetadataInterface, } from "../../interfaces/IDelegatedERC1155Metadata"; static connect(address, signerOrProvider: <mask>) { return new Contract(ad...
Signer | Provider
0b5vr_automaton/packages/automaton/src/tests/Automaton.test.ts#automaton#var#17
import { Automaton } from '../Automaton'; import type { ChannelUpdateEvent } from '../types/ChannelUpdateEvent'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; const automaton: <mask> = new Automaton(data) expect(automaton).toBeInstanceOf(Automaton) data = { resolution: 100.0, curves: ...
SerializedAutomaton
0xsequence_niftyswap/src/gen/typechain/factories/interfaces/IERC2981__factory.ts#address#arg#59
import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { IERC2981, IERC2981Interface } from "../../interfaces/IERC2981"; static connect(address: <mask>, signerOrProvider) { return new Contract(address, _abi, signerOrProvider) as IERC2981; } re...
string
0xsequence_niftyswap/src/gen/typechain/factories/interfaces/IERC2981__factory.ts#signerOrProvider#arg#59
import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { IERC2981, IERC2981Interface } from "../../interfaces/IERC2981"; static connect(address, signerOrProvider: <mask>) { return new Contract(address, _abi, signerOrProvider) as IERC2981; } re...
Signer | Provider
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#y#arg#32
import { GUISettings } from '../../types/GUISettings'; export function dy2dv(y: <mask>, range, height) { return -y / height * (range.v1 - range.v0); } function dy2dv(y,range,height): number v = Math.abs(v - nearest) < threshold ? nearest : v; height threshold = dy2dv(-5.0, range, height) dy += movementSum.y; dy = 0...
number
0b5vr_automaton/packages/automaton/src/tests/Automaton.test.ts#data#var#4
import { Automaton } from '../Automaton'; import type { ChannelUpdateEvent } from '../types/ChannelUpdateEvent'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; const data: <mask> = { resolution: 100.0, curves: [ { nodes: [[0.0, 0.0], [0.6, 1.0]] }, { nodes: [[0.0, 2.0],...
SerializedAutomaton
0b5vr_automaton/packages/automaton/src/tests/Automaton.test.ts#auto#var#22
import { Automaton } from '../Automaton'; import type { ChannelUpdateEvent } from '../types/ChannelUpdateEvent'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; automaton = new Automaton(data) let auto: <mask> = automaton.auto auto = automaton.auto;
SerializedAutomaton
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#width#arg#26
import { GUISettings } from '../../types/GUISettings'; export function dx2dt(x, range, width: <mask>) { return (x / width) * (range.t1 - range.t0); } return (x / width) * (range.t1 - range.t0); function dx2dt(x,range,width): number result = Math.abs(time - nearest) < threshold ? nearest : result; threshold = dx2dt(...
number
0b5vr_automaton/packages/automaton/src/Curve.ts#precalc#ret#44
import { Automaton } from './Automaton'; import { bezierEasing } from './utils/bezierEasing'; import type { BezierNode } from './types/BezierNode'; import type { FxContext } from './types/FxContext'; import type { FxSection } from './types/FxSection'; import type { SerializedCurve } from './types/SerializedCurve'; Curv...
void
0b5vr_automaton/packages/automaton/src/tests/Automaton.test.ts#resultC#var#93
import { Automaton } from '../Automaton'; import type { ChannelUpdateEvent } from '../types/ChannelUpdateEvent'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; let resultC: <mask> auto('c', () => resultC = [auto('a'), auto('b')]); expect(resultC)
[ number, number ] | undefined
0b5vr_automaton/packages/automaton/src/tests/Automaton.test.ts#automaton#var#21
import { Automaton } from '../Automaton'; import type { ChannelUpdateEvent } from '../types/ChannelUpdateEvent'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; data = { resolution: 100.0, curves: [ { nodes: [[0.0, 0.0], [0.6, 1.0]] }, { nodes: [[0.0, 2.0], [0.6, 2.0]] }...
SerializedAutomaton
0b5vr_automaton/packages/automaton/src/tests/Automaton.test.ts#auto#var#92
import { Automaton } from '../Automaton'; import type { ChannelUpdateEvent } from '../types/ChannelUpdateEvent'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; automaton = new Automaton({ resolution: 100.0, curves: [], channels: [ ...
SerializedAutomaton
0b5vr_automaton/packages/automaton/src/tests/Automaton.test.ts#result#var#113
import { Automaton } from '../Automaton'; import type { ChannelUpdateEvent } from '../types/ChannelUpdateEvent'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; const result: <mask> = [] result.push([event.begin, 'a']) auto('a', (event) => result.push([event.begin, 'a'])); result.push([event.be...
[ number, string ][]
0b5vr_automaton/packages/automaton/src/tests/Automaton.test.ts#result#var#60
import { Automaton } from '../Automaton'; import type { ChannelUpdateEvent } from '../types/ChannelUpdateEvent'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; let result: <mask> result = event; expect(result?.init) expect(result?.init).toBe(true); expect(result?.uninit) expect(result?.uninit)...
ChannelUpdateEvent | undefined
0xProject_0x-starter-project/src/util_scripts/mint_test_zrx.ts#contractWrappers#var#10
import { ContractWrappers } from '@0x/contract-wrappers'; import { DummyERC20TokenContract } from '@0x/contracts-erc20'; import { BigNumber } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import { NETWORK_CONFIGS, TX_DEFAULTS } from '../configs'; import { DECIMALS } from '../constants'; import { Pri...
ContractWrappers
0b5vr_automaton/packages/automaton/src/tests/Automaton.test.ts#automaton#var#53
import { Automaton } from '../Automaton'; import type { ChannelUpdateEvent } from '../types/ChannelUpdateEvent'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; data = { resolution: 100.0, curves: [ { nodes: [[0.0, 0.0], [0.6, 1.0]] }, { nodes: [[0.0, 2.0], [0.6, 2.0]] }...
SerializedAutomaton
0xProject_0x-starter-project/src/util_scripts/mint_test_zrx.ts#zrxToken#var#14
import { ContractWrappers } from '@0x/contract-wrappers'; import { DummyERC20TokenContract } from '@0x/contracts-erc20'; import { BigNumber } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import { NETWORK_CONFIGS, TX_DEFAULTS } from '../configs'; import { DECIMALS } from '../constants'; import { Pri...
DummyERC20TokenContract
0b5vr_automaton/packages/automaton/src/tests/Automaton.test.ts#auto#var#54
import { Automaton } from '../Automaton'; import type { ChannelUpdateEvent } from '../types/ChannelUpdateEvent'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; automaton = new Automaton(data) let auto: <mask> = automaton.auto auto = automaton.auto auto = automaton.auto;
SerializedAutomaton
0xProject_0x-starter-project/src/util_scripts/mint_test_zrx.ts#mintAmount#var#17
import { ContractWrappers } from '@0x/contract-wrappers'; import { DummyERC20TokenContract } from '@0x/contracts-erc20'; import { BigNumber } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import { NETWORK_CONFIGS, TX_DEFAULTS } from '../configs'; import { DECIMALS } from '../constants'; import { Pri...
default
0xProject_0x-starter-project/src/util_scripts/mint_test_zrx.ts#printUtils#var#15
import { ContractWrappers } from '@0x/contract-wrappers'; import { DummyERC20TokenContract } from '@0x/contracts-erc20'; import { BigNumber } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import { NETWORK_CONFIGS, TX_DEFAULTS } from '../configs'; import { DECIMALS } from '../constants'; import { Pri...
PrintUtils
0xsequence_niftyswap/src/gen/typechain/factories/interfaces/IERC1155Metadata__factory.ts#signerOrProvider#arg#30
import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { IERC1155Metadata, IERC1155MetadataInterface, } from "../../interfaces/IERC1155Metadata"; static connect(address, signerOrProvider: <mask>) { return new Contract(address, _abi, signerOrProvid...
Signer | Provider
0xsequence_niftyswap/src/gen/typechain/factories/interfaces/IERC1155Metadata__factory.ts#address#arg#30
import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { IERC1155Metadata, IERC1155MetadataInterface, } from "../../interfaces/IERC1155Metadata"; static connect(address: <mask>, signerOrProvider) { return new Contract(address, _abi, signerOrProvid...
string
0xsequence_niftyswap/src/gen/typechain/factories/interfaces/IOwnable__factory.ts#address#arg#37
import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { IOwnable, IOwnableInterface } from "../../interfaces/IOwnable"; static connect(address: <mask>, signerOrProvider) { return new Contract(address, _abi, signerOrProvider) as IOwnable; } re...
string
0xsequence_niftyswap/src/gen/typechain/factories/interfaces/IOwnable__factory.ts#signerOrProvider#arg#37
import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { IOwnable, IOwnableInterface } from "../../interfaces/IOwnable"; static connect(address, signerOrProvider: <mask>) { return new Contract(address, _abi, signerOrProvider) as IOwnable; } re...
Signer | Provider
0b5vr_automaton/packages/automaton/src/tests/Automaton.test.ts#auto#var#141
import { Automaton } from '../Automaton'; import type { ChannelUpdateEvent } from '../types/ChannelUpdateEvent'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; automaton = new Automaton({ resolution: 100.0, curves: [], channels: [ ...
SerializedAutomaton
0b5vr_automaton/packages/automaton/src/tests/Automaton.test.ts#auto#var#112
import { Automaton } from '../Automaton'; import type { ChannelUpdateEvent } from '../types/ChannelUpdateEvent'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; automaton = new Automaton({ resolution: 100.0, curves: [], channels: [ ...
SerializedAutomaton
0xProject_0x-starter-project/src/util_scripts/mint_test_zrx.ts#zrxTokenAddress#var#13
import { ContractWrappers } from '@0x/contract-wrappers'; import { DummyERC20TokenContract } from '@0x/contracts-erc20'; import { BigNumber } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import { NETWORK_CONFIGS, TX_DEFAULTS } from '../configs'; import { DECIMALS } from '../constants'; import { Pri...
string
0b5vr_automaton/packages/automaton/src/Curve.ts#deserialize#ret#20
import { Automaton } from './Automaton'; import { bezierEasing } from './utils/bezierEasing'; import type { BezierNode } from './types/BezierNode'; import type { FxContext } from './types/FxContext'; import type { FxSection } from './types/FxSection'; import type { SerializedCurve } from './types/SerializedCurve'; Curv...
void
0b5vr_automaton/packages/automaton/src/tests/Automaton.test.ts#automaton#var#131
import { Automaton } from '../Automaton'; import type { ChannelUpdateEvent } from '../types/ChannelUpdateEvent'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; const automaton: <mask> = new Automaton({ resolution: 100.0, curves: [], channels: [ ...
SerializedAutomaton
0xProject_0x-starter-project/src/util_scripts/mint_test_zrx.ts#web3Wrapper#var#11
import { ContractWrappers } from '@0x/contract-wrappers'; import { DummyERC20TokenContract } from '@0x/contracts-erc20'; import { BigNumber } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import { NETWORK_CONFIGS, TX_DEFAULTS } from '../configs'; import { DECIMALS } from '../constants'; import { Pri...
Web3Wrapper
0xProject_0x-starter-project/src/util_scripts/mint_test_zrx.ts#mintZrxTx#var#18
import { ContractWrappers } from '@0x/contract-wrappers'; import { DummyERC20TokenContract } from '@0x/contracts-erc20'; import { BigNumber } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import { NETWORK_CONFIGS, TX_DEFAULTS } from '../configs'; import { DECIMALS } from '../constants'; import { Pri...
string
0xsequence_niftyswap/src/gen/typechain/factories/interfaces/IWrapAndNiftyswap__factory.ts#address#arg#112
import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { IWrapAndNiftyswap, IWrapAndNiftyswapInterface, } from "../../interfaces/IWrapAndNiftyswap"; static connect(address: <mask>, signerOrProvider) { return new Contract(address, _abi, signerOrPro...
string
0xsequence_niftyswap/src/gen/typechain/factories/interfaces/IWrapAndNiftyswap__factory.ts#signerOrProvider#arg#112
import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { IWrapAndNiftyswap, IWrapAndNiftyswapInterface, } from "../../interfaces/IWrapAndNiftyswap"; static connect(address, signerOrProvider: <mask>) { return new Contract(address, _abi, signerOrPro...
Signer | Provider
0xsequence_niftyswap/src/utils/constants.ts#SellTokensType#var#19
const SellTokensType: <mask> = `tuple( address recipient, uint256 minBaseTokens, uint256 deadline )`
string
0xsequence_niftyswap/src/utils/constants.ts#BuyTokensType#var#13
const BuyTokensType: <mask> = `tuple( address recipient, uint256[] tokensBoughtIDs, uint256[] tokensBoughtAmounts, uint256 deadline )`
string
0xsequence_niftyswap/src/utils/constants.ts#SellTokens20Type#var#24
const SellTokens20Type: <mask> = `tuple( address recipient, uint256 minCurrency, address[] extraFeeRecipients, uint256[] extraFeeAmounts, uint256 deadline )`
string
0b5vr_automaton/packages/automaton/src/tests/Automaton.test.ts#resultD#var#94
import { Automaton } from '../Automaton'; import type { ChannelUpdateEvent } from '../types/ChannelUpdateEvent'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; let resultD: <mask> auto('d', () => resultD = [auto('a'), auto('b')]); expect(resultD)
[ number, number ] | undefined
0xsequence_niftyswap/src/gen/typechain/factories/interfaces/IDelegatedERC1155Metadata__factory.ts#connect#ret#24
import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { IDelegatedERC1155Metadata, IDelegatedERC1155MetadataInterface, } from "../../interfaces/IDelegatedERC1155Metadata"; address _abi = [ { inputs: [], name: "metadataProvider", ...
IDelegatedERC1155Metadata
0xsequence_niftyswap/src/utils/constants.ts#AddLiquidityType#var#31
const AddLiquidityType: <mask> = `tuple( uint256[] maxCurrency, uint256 deadline )`
string
0b5vr_automaton/packages/automaton/src/tests/Automaton.test.ts#result#var#142
import { Automaton } from '../Automaton'; import type { ChannelUpdateEvent } from '../types/ChannelUpdateEvent'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; const result: <mask> = [] result.push([event.begin, 'a']) auto('a', (event) => result.push([event.begin, 'a'])); result.push([event.be...
[ number, string ][]
0xsequence_niftyswap/src/utils/constants.ts#RemoveLiquidityType#var#35
const RemoveLiquidityType: <mask> = `tuple( uint256[] minCurrency, uint256[] minTokens, uint256 deadline )`
string
0b5vr_automaton/packages/automaton/src/tests/Automaton.test.ts#automaton#var#102
import { Automaton } from '../Automaton'; import type { ChannelUpdateEvent } from '../types/ChannelUpdateEvent'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; const automaton: <mask> = new Automaton({ resolution: 100.0, curves: [], channels: [ ...
SerializedAutomaton
0xsequence_niftyswap/src/gen/typechain/factories/interfaces/IERC2981__factory.ts#createInterface#ret#56
import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { IERC2981, IERC2981Interface } from "../../interfaces/IERC2981"; _abi = [ { inputs: [ { internalType: "uint256", name: "_tokenId", ...
IERC2981Interface
0b5vr_automaton/packages/automaton/src/Curve.ts#__generateCurve#ret#72
import { Automaton } from './Automaton'; import { bezierEasing } from './utils/bezierEasing'; import type { BezierNode } from './types/BezierNode'; import type { FxContext } from './types/FxContext'; import type { FxSection } from './types/FxSection'; import type { SerializedCurve } from './types/SerializedCurve'; func...
void
0b5vr_automaton/packages/automaton/src/Curve.ts#__applyFxs#ret#96
import { Automaton } from './Automaton'; import { bezierEasing } from './utils/bezierEasing'; import type { BezierNode } from './types/BezierNode'; import type { FxContext } from './types/FxContext'; import type { FxSection } from './types/FxSection'; import type { SerializedCurve } from './types/SerializedCurve'; Auto...
void
0xsequence_niftyswap/src/gen/typechain/factories/interfaces/INiftyswapExchange20Wrapper__factory.ts#address#arg#70
import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { INiftyswapExchange20Wrapper, INiftyswapExchange20WrapperInterface, } from "../../interfaces/INiftyswapExchange20Wrapper"; static connect(address: <mask>, signerOrProvider) { return new Contr...
string
0xsequence_niftyswap/src/gen/typechain/factories/interfaces/INiftyswapExchange20Wrapper__factory.ts#signerOrProvider#arg#70
import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { INiftyswapExchange20Wrapper, INiftyswapExchange20WrapperInterface, } from "../../interfaces/INiftyswapExchange20Wrapper"; static connect(address, signerOrProvider: <mask>) { return new Contr...
Signer | Provider
0xsequence_niftyswap/src/gen/typechain/factories/interfaces/IERC2981__factory.ts#connect#ret#59
import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { IERC2981, IERC2981Interface } from "../../interfaces/IERC2981"; address _abi = [ { inputs: [ { internalType: "uint256", name: "_tokenId", ...
IERC2981
0xProject_0x-starter-project/src/scenarios/cancel_pair_limit_orders.ts#sellZrxLimitOrder1#var#25
import { ContractWrappers } from '@0x/contract-wrappers'; import { LimitOrder, OrderInfo } from '@0x/protocol-utils'; import { BigNumber, hexUtils } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import { NETWORK_CONFIGS, TX_DEFAULTS } from '../configs'; import { NULL_ADDRESS, ZERO } from '../constan...
LimitOrder
0xsequence_niftyswap/src/gen/typechain/factories/interfaces/IDelegatedERC1155Metadata__factory.ts#createInterface#ret#21
import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { IDelegatedERC1155Metadata, IDelegatedERC1155MetadataInterface, } from "../../interfaces/IDelegatedERC1155Metadata"; _abi = [ { inputs: [], name: "metadataProvider", outpu...
IDelegatedERC1155MetadataInterface
0b5vr_automaton/packages/automaton-with-gui/src/compat/v2types/V2SerializedData.ts#v2DefaultData#var#12
import { V2AutomatonGUISettings } from './V2AutomatonGUISettings'; import { V2SerializedParam } from './V2SerializedParam'; export interface V2SerializedData { v: string; length: number; resolution: number; params: { [name: string]: V2SerializedParam; }; guiSettings: V2AutomatonGUISettin...
V2SerializedData
0xProject_0x-starter-project/src/scenarios/cancel_pair_limit_orders.ts#sellZrxLimitOrder2#var#41
import { ContractWrappers } from '@0x/contract-wrappers'; import { LimitOrder, OrderInfo } from '@0x/protocol-utils'; import { BigNumber, hexUtils } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import { NETWORK_CONFIGS, TX_DEFAULTS } from '../configs'; import { NULL_ADDRESS, ZERO } from '../constan...
LimitOrder
0xProject_0x-starter-project/src/scenarios/cancel_pair_limit_orders.ts#sellZrxLimitOrder3#var#45
import { ContractWrappers } from '@0x/contract-wrappers'; import { LimitOrder, OrderInfo } from '@0x/protocol-utils'; import { BigNumber, hexUtils } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import { NETWORK_CONFIGS, TX_DEFAULTS } from '../configs'; import { NULL_ADDRESS, ZERO } from '../constan...
LimitOrder
0xProject_0x-starter-project/src/scenarios/cancel_pair_limit_orders.ts#sellWethLimitOrder3#var#61
import { ContractWrappers } from '@0x/contract-wrappers'; import { LimitOrder, OrderInfo } from '@0x/protocol-utils'; import { BigNumber, hexUtils } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import { NETWORK_CONFIGS, TX_DEFAULTS } from '../configs'; import { NULL_ADDRESS, ZERO } from '../constan...
LimitOrder
0x006F_react-media-recorder/src/index.ts#{ audio = true, video = false, selfBrowserSurface = undefined, preferCurrentTab = false, onStop = () => null, onStart = () => null, blobPropertyBag, screen = false, mediaRecorderOptions = undefined, customMediaStream = null, stopStreamsOnStop = true, askPermissionOnMount = false...
import { register, MediaRecorder as ExtendableMediaRecorder, IMediaRecorder, } from "extendable-media-recorder"; import { ReactElement, useCallback, useEffect, useRef, useState } from "react"; import { connect } from "extendable-media-recorder-wav-encoder"; export function useReactMediaRecorder({ audio = true, video = ...
ReactMediaRecorderHookProps
0xProject_0x-starter-project/src/scenarios/cancel_pair_limit_orders.ts#sellWethLimitOrder2#var#57
import { ContractWrappers } from '@0x/contract-wrappers'; import { LimitOrder, OrderInfo } from '@0x/protocol-utils'; import { BigNumber, hexUtils } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import { NETWORK_CONFIGS, TX_DEFAULTS } from '../configs'; import { NULL_ADDRESS, ZERO } from '../constan...
LimitOrder
0xProject_0x-starter-project/src/scenarios/cancel_pair_limit_orders.ts#sellWethLimitOrder1#var#49
import { ContractWrappers } from '@0x/contract-wrappers'; import { LimitOrder, OrderInfo } from '@0x/protocol-utils'; import { BigNumber, hexUtils } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import { NETWORK_CONFIGS, TX_DEFAULTS } from '../configs'; import { NULL_ADDRESS, ZERO } from '../constan...
LimitOrder