id
stringlengths
26
1.14k
sliced_code
stringlengths
14
19.8M
type
stringlengths
1
1.35M
0b5vr_automaton/packages/automaton/src/tests/Channel.test.ts#channel#var#33
import { Automaton } from '../Automaton'; import { Channel } from '../Channel'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; const channel: <mask> = new Channel(automaton, { items: [{ curve: 1, time: 0.1 }], }) automaton = new Automaton(data) channel.getValue(0.05...
Channel
0b5vr_automaton/packages/automaton/src/Channel.ts#reset#ret#22
import { Automaton } from './Automaton'; import { ChannelItem } from './ChannelItem'; import { binarySearch } from './utils/binarySearch'; import type { ChannelUpdateEvent } from './types/ChannelUpdateEvent'; import type { SerializedChannel } from './types/SerializedChannel'; public reset(): <mask> { this.__tim...
void
0b5vr_automaton/packages/automaton/src/tests/Channel.test.ts#channel#var#18
import { Automaton } from '../Automaton'; import { Channel } from '../Channel'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; const channel: <mask> = new Channel(automaton, { items: [{ curve: 0, time: 0.1 }], }) expect(channel).toBeInstanceOf(Channel) automaton = new Autom...
Channel
0b5vr_automaton/packages/automaton/src/Channel.ts#uninit#var#59
import { Automaton } from './Automaton'; import { ChannelItem } from './ChannelItem'; import { binarySearch } from './utils/binarySearch'; import type { ChannelUpdateEvent } from './types/ChannelUpdateEvent'; import type { SerializedChannel } from './types/SerializedChannel'; let uninit: <mask> uninit = true;
true | undefined
0b5vr_automaton/packages/automaton/src/tests/Curve.test.ts#curve#var#22
import { Automaton } from '../Automaton'; import { Curve } from '../Curve'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; const curve: <mask> = new Curve(automaton, { nodes: [[], [0.5, 1.0]], }) automaton = new Automaton(data) curve.getValue(0.0) expect(curve.getVa...
Curve
0b5vr_automaton/packages/automaton/src/ChannelItem.ts#deserialize#ret#34
import { Automaton, Curve } from '.'; import type { SerializedChannelItem } from './types/SerializedChannelItem'; Automaton.getCurve(index:any): Curve AutomatonWithGUI.getCurve(index:any): CurveWithGUI public deserialize(data): <mask> { this.time = data.time ?? 0.0; this.length = data.length ?? 0.0; ...
void
0b5vr_automaton/packages/automaton/src/tests/Channel.test.ts#channel#var#25
import { Automaton } from '../Automaton'; import { Channel } from '../Channel'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; const channel: <mask> = new Channel(automaton, { items: [{ curve: 0, time: 0.1 }], }) automaton = new Automaton(data) channel.getValue(0.05...
Channel
0b5vr_automaton/packages/automaton/src/tests/Curve.test.ts#automaton#var#10
import { Automaton } from '../Automaton'; import { Curve } from '../Curve'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; data = { resolution: 100.0, curves: [], channels: [] } let automaton: <mask> = new Automaton(data) automaton = new Automaton(data); curve = new Curve(automaton...
Automaton
0xProject_0x-starter-project/src/provider_engine.ts#pe#var#10
import { GanacheSubprovider, MnemonicWalletSubprovider, RPCSubprovider, Web3ProviderEngine } from '@0x/subproviders'; import { providerUtils } from '@0x/utils'; import { BASE_DERIVATION_PATH, GANACHE_CONFIGS, MNEMONIC, NETWORK_CONFIGS } from './configs'; const pe: <mask> = new Web3ProviderEngine() pe.addProvider(mnemon...
Web3ProviderEngine
0b5vr_automaton/packages/automaton-with-gui/src/view/history/HistoryCommand.ts#automaton#arg#483
import { AutomatonWithGUI } from '../../AutomatonWithGUI'; import { BezierNode, FxSection, SerializedChannel, SerializedCurve } from '@0b5vr/automaton'; import { WithBypass } from '../../types/WithBypass'; import { WithID } from '../../types/WithID'; import type { StateChannelItem } from '../../types/StateChannelItem';...
AutomatonWithGUI
0xProject_0x-starter-project/src/provider_engine.ts#providerEngine#var#26
import { GanacheSubprovider, MnemonicWalletSubprovider, RPCSubprovider, Web3ProviderEngine } from '@0x/subproviders'; import { providerUtils } from '@0x/utils'; import { BASE_DERIVATION_PATH, GANACHE_CONFIGS, MNEMONIC, NETWORK_CONFIGS } from './configs'; const providerEngine: <mask> = determineProvider() determineProvi...
import("/mnt/fmh_data/type4ts/temp/0xProject_0x-starter-project/node_modules/@types/web3-provider-engine/index")
0b5vr_automaton/packages/automaton/src/tests/Channel.test.ts#channel#var#49
import { Automaton } from '../Automaton'; import { Channel } from '../Channel'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; const channel: <mask> = new Channel(automaton, { items: [{ curve: 0, time: 0.1, reset: true }], }) automaton = new Automaton(data) channel....
Channel
0b5vr_automaton/packages/automaton/src/tests/Channel.test.ts#channel#var#41
import { Automaton } from '../Automaton'; import { Channel } from '../Channel'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; const channel: <mask> = new Channel(automaton, { items: [{ time: 0.5, length: 0.5, value: 1.0, reset: true }], }) automaton = new Automaton...
Channel
0xProject_0x-starter-project/src/provider_engine.ts#determineProvider#var#9
import { GanacheSubprovider, MnemonicWalletSubprovider, RPCSubprovider, Web3ProviderEngine } from '@0x/subproviders'; import { providerUtils } from '@0x/utils'; import { BASE_DERIVATION_PATH, GANACHE_CONFIGS, MNEMONIC, NETWORK_CONFIGS } from './configs'; pe = new Web3ProviderEngine() pe.addProvider(mnemonicWallet) pe.a...
() => import("/mnt/fmh_data/type4ts/temp/0xProject_0x-starter-project/node_modules/@types/web3-provider-engine/index")
0b5vr_automaton/packages/automaton-with-gui/src/compat/v3Compat.ts#curves#var#7
import { defaultGUISettings } from '../types/GUISettings'; import type { SerializedAutomatonWithGUI } from '../types/SerializedAutomatonWithGUI'; import type { SerializedBezierNode, SerializedChannel, SerializedCurve } from '@0b5vr/automaton'; import type { V3SerializedAutomatonWithGUI } from './v3types/V3SerializedAut...
SerializedCurve[]
0b5vr_automaton/packages/automaton-with-gui/src/compat/v3Compat.ts#newData#var#24
import { defaultGUISettings } from '../types/GUISettings'; import type { SerializedAutomatonWithGUI } from '../types/SerializedAutomatonWithGUI'; import type { SerializedBezierNode, SerializedChannel, SerializedCurve } from '@0b5vr/automaton'; import type { V3SerializedAutomatonWithGUI } from './v3types/V3SerializedAut...
SerializedAutomatonWithGUI
0xProject_0x-starter-project/src/contracts.ts#ERC721_TOKENS_BY_CHAIN_ID#var#5
import { DummyERC721TokenContract } from '@0x/contracts-erc721'; import { GANACHE_CONFIGS, NETWORK_CONFIGS } from './configs'; import { ROPSTEN_NETWORK_ID } from './constants'; import { providerEngine } from './provider_engine'; const ERC721_TOKENS_BY_CHAIN_ID: <mask> = { [GANACHE_CONFIGS.chainId]: ['0x07f96aa816c1...
{ [chainId: number]: string[]; }
0b5vr_automaton/packages/automaton/src/tests/Curve.test.ts#data#var#4
import { Automaton } from '../Automaton'; import { Curve } from '../Curve'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; const data: <mask> = { resolution: 100.0, curves: [], channels: [] } automaton = new Automaton(data) automaton = new Automaton(data);
{ resolution: number; curves: Curve[]; channels: any[]; }
0xProject_0x-starter-project/src/provider_engine.ts#mnemonicWallet#var#4
import { GanacheSubprovider, MnemonicWalletSubprovider, RPCSubprovider, Web3ProviderEngine } from '@0x/subproviders'; import { providerUtils } from '@0x/utils'; import { BASE_DERIVATION_PATH, GANACHE_CONFIGS, MNEMONIC, NETWORK_CONFIGS } from './configs'; const mnemonicWallet: <mask> = new MnemonicWalletSubprovider({ ...
MnemonicWalletSubprovider
0b5vr_automaton/packages/automaton/src/tests/Curve.test.ts#curve#var#15
import { Automaton } from '../Automaton'; import { Curve } from '../Curve'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; const curve: <mask> = new Curve(automaton, { nodes: [[], [0.5, 1.0]], }) expect(curve).toBeInstanceOf(Curve) automaton = new Automaton(data) expect(cur...
Curve
0b5vr_automaton/packages/automaton/src/tests/Curve.test.ts#curve#var#30
import { Automaton } from '../Automaton'; import { Curve } from '../Curve'; import type { SerializedAutomaton } from '../types/SerializedAutomaton'; const curve: <mask> = new Curve(automaton, { nodes: [[], [0.5, 1.0], [0.5], [1.0, 1.0]], }) automaton = new Automaton(data) curve.getValue(0.5 ...
Curve
0xProject_0x-starter-project/src/scenarios/exchange_proxy_subscribe.ts#filterValues#var#10
import { ContractWrappers, DecodedLogEvent, IndexedFilterValues, IZeroExEvents, IZeroExRfqOrderFilledEventArgs, } from '@0x/contract-wrappers'; import { NETWORK_CONFIGS } from '../configs'; import { PrintUtils } from '../print_utils'; import { providerEngine } from '../provider_engine'; import { runMigrationsOnceIfRequ...
IndexedFilterValues
0b5vr_automaton/packages/automaton-with-gui/src/compat/v3Compat.ts#data#arg#5
import { defaultGUISettings } from '../types/GUISettings'; import type { SerializedAutomatonWithGUI } from '../types/SerializedAutomatonWithGUI'; import type { SerializedBezierNode, SerializedChannel, SerializedCurve } from '@0b5vr/automaton'; import type { V3SerializedAutomatonWithGUI } from './v3types/V3SerializedAut...
V3SerializedAutomatonWithGUI
0b5vr_automaton/packages/automaton-with-gui/src/view/history/HistoryCommand.ts#performRedo#ret#488
import { AutomatonWithGUI } from '../../AutomatonWithGUI'; import { BezierNode, FxSection, SerializedChannel, SerializedCurve } from '@0b5vr/automaton'; import { WithBypass } from '../../types/WithBypass'; import { WithID } from '../../types/WithID'; import type { StateChannelItem } from '../../types/StateChannelItem';...
void
0b5vr_automaton/packages/automaton/src/ChannelItem.ts#getValue#ret#21
import { Automaton, Curve } from '.'; import type { SerializedChannelItem } from './types/SerializedChannelItem'; Channel.getValue(time:any): number ChannelItem.getValue(time:any): number Curve.getValue(time:any): number ChannelItemWithGUI.public getValue(time, isFromGUI?) { const value = super.getValue(time); ...
number
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/useTimeValueRange.ts#useTimeValueRangeFuncs#ret#5
import { Resolution } from './Resolution'; import { TimeValueRange } from './TimeValueRange'; import { useCallback } from 'react'; import { useSelector } from '../states/store'; function export function useSelector<T>(selector) { return useReduxSelector(selector, shallowEqual); } function dx2dt(x:any, range:any, wi...
{ x2t: (x: number) => number; t2x: (t: number) => number; y2v: (y: number) => number; v2y: (v: number) => number; dx2dt: (x: number) => number; dt2dx: (t: number) => number; dy2dv: (y: number) => number; dv2dy: (v: number) => number; snapTime: (t: number) => number; snapValue: (v...
0b5vr_automaton/packages/automaton-with-gui/src/view/components/Inspector.tsx#content#var#49
import { Colors } from '../constants/Colors'; import { ErrorBoundary } from './ErrorBoundary'; import { Icons } from '../icons/Icons'; import { InspectorBeat } from './InspectorBeat'; import { InspectorChannelItem } from './InspectorChannelItem'; import { InspectorCurveFx } from './InspectorCurveFx'; import { Inspector...
JSX.Element | null
0b5vr_automaton/packages/automaton-with-gui/src/view/history/HistoryCommand.ts#automaton#arg#488
import { AutomatonWithGUI } from '../../AutomatonWithGUI'; import { BezierNode, FxSection, SerializedChannel, SerializedCurve } from '@0b5vr/automaton'; import { WithBypass } from '../../types/WithBypass'; import { WithID } from '../../types/WithID'; import type { StateChannelItem } from '../../types/StateChannelItem';...
AutomatonWithGUI
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/arraySet.ts#array#arg#9
export function arraySetHas<T>(array: <mask>, value) { return array.indexOf(value) !== -1; } array.indexOf(value) return array.indexOf(value) !== -1; function arraySetHas(array,value): boolean out = [...a] out.push(v) out.push(v); arraySetHas(out, v) function export function useSelector<T>(selector) { return us...
T[]
0b5vr_automaton/packages/automaton/src/Channel.ts#progress#var#57
import { Automaton } from './Automaton'; import { ChannelItem } from './ChannelItem'; import { binarySearch } from './utils/binarySearch'; import type { ChannelUpdateEvent } from './types/ChannelUpdateEvent'; import type { SerializedChannel } from './types/SerializedChannel'; let progress: <mask> progress = 1.0; progre...
number
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#width#arg#14
import { GUISettings } from '../../types/GUISettings'; export function x2t(x, range, width: <mask>) { return (x / width) * (range.t1 - range.t0) + range.t0; } return (x / width) * (range.t1 - range.t0) + range.t0;
number
0b5vr_automaton/packages/automaton/src/Channel.ts#data#arg#19
import { Automaton } from './Automaton'; import { ChannelItem } from './ChannelItem'; import { binarySearch } from './utils/binarySearch'; import type { ChannelUpdateEvent } from './types/ChannelUpdateEvent'; import type { SerializedChannel } from './types/SerializedChannel'; public deserialize(data: <mask>) { ...
SerializedChannel
0b5vr_automaton/packages/automaton/src/Channel.ts#subscribe#ret#27
import { Automaton } from './Automaton'; import { ChannelItem } from './ChannelItem'; import { binarySearch } from './utils/binarySearch'; import type { ChannelUpdateEvent } from './types/ChannelUpdateEvent'; import type { SerializedChannel } from './types/SerializedChannel'; public subscribe(listener): <mask> { ...
void
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#range#arg#14
import { GUISettings } from '../../types/GUISettings'; export function x2t(x, range: <mask>, width) { return (x / width) * (range.t1 - range.t0) + range.t0; } range.t1 - range.t0 return (x / width) * (range.t1 - range.t0) + range.t0; (x / width) * (range.t1 - range.t0) + range.t0
TimeRange
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#x#arg#14
import { GUISettings } from '../../types/GUISettings'; export function x2t(x: <mask>, range, width) { return (x / width) * (range.t1 - range.t0) + range.t0; } return (x / width) * (range.t1 - range.t0) + range.t0;
number
0b5vr_automaton/packages/automaton/src/Channel.ts#time#arg#30
import { Automaton } from './Automaton'; import { ChannelItem } from './ChannelItem'; import { binarySearch } from './utils/binarySearch'; import type { ChannelUpdateEvent } from './types/ChannelUpdateEvent'; import type { SerializedChannel } from './types/SerializedChannel'; public getValue(time: <mask>) { if ...
number
0xProject_0x-starter-project/src/scenarios/create_staking_pool.ts#scenarioAsync#ret#14
import { ContractWrappers, ERC20TokenContract, StakingContract } from '@0x/contract-wrappers'; import { BigNumber } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import { NETWORK_CONFIGS } from '../configs'; import { DECIMALS, UNLIMITED_ALLOWANCE_IN_BASE_UNITS } from '../constants'; import { PrintUt...
Promise<void>
0xProject_0x-starter-project/src/utils.ts#web3Wrapper#var#14
import { runMigrationsOnceAsync } from '@0x/migrations'; import { BigNumber } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import * as ethers from 'ethers'; import { GANACHE_CONFIGS, NETWORK_CONFIGS, TX_DEFAULTS } from './configs'; import { ONE_SECOND_MS, TEN_MINUTES_MS } from './constants'; import...
Web3Wrapper
0xProject_0x-starter-project/src/utils.ts#runMigrationsOnceIfRequiredAsync#var#12
import { runMigrationsOnceAsync } from '@0x/migrations'; import { BigNumber } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import * as ethers from 'ethers'; import { GANACHE_CONFIGS, NETWORK_CONFIGS, TX_DEFAULTS } from './configs'; import { ONE_SECOND_MS, TEN_MINUTES_MS } from './constants'; import...
() => Promise<void>
0xProject_0x-starter-project/src/utils.ts#getRandomFutureDateInSeconds#var#9
import { runMigrationsOnceAsync } from '@0x/migrations'; import { BigNumber } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import * as ethers from 'ethers'; import { GANACHE_CONFIGS, NETWORK_CONFIGS, TX_DEFAULTS } from './configs'; import { ONE_SECOND_MS, TEN_MINUTES_MS } from './constants'; import...
() => default
0xProject_0x-starter-project/src/utils.ts#calculateProtocolFee#var#19
import { runMigrationsOnceAsync } from '@0x/migrations'; import { BigNumber } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import * as ethers from 'ethers'; import { GANACHE_CONFIGS, NETWORK_CONFIGS, TX_DEFAULTS } from './configs'; import { ONE_SECOND_MS, TEN_MINUTES_MS } from './constants'; import...
(numOrders: number, multiplier: default, gasPrice?: number | default) => default
0xsequence_erc-1155/hardhat.config.ts#config#var#7
import { HardhatUserConfig } from 'hardhat/config'; import '@nomiclabs/hardhat-truffle5'; import '@nomiclabs/hardhat-ethers'; import '@nomiclabs/hardhat-web3'; import 'hardhat-gas-reporter'; import 'solidity-coverage'; const config: <mask> = { solidity: { version: '0.8.18', settings: { o...
HardhatUserConfig
0b5vr_automaton/packages/automaton/src/Channel.ts#consume#ret#46
import { Automaton } from './Automaton'; import { ChannelItem } from './ChannelItem'; import { binarySearch } from './utils/binarySearch'; import type { ChannelUpdateEvent } from './types/ChannelUpdateEvent'; import type { SerializedChannel } from './types/SerializedChannel'; Channel.getValue(time:any): number ChannelI...
[ time: number, update: () => void ][]
0b5vr_automaton/packages/automaton/src/Channel.ts#time#arg#46
import { Automaton } from './Automaton'; import { ChannelItem } from './ChannelItem'; import { binarySearch } from './utils/binarySearch'; import type { ChannelUpdateEvent } from './types/ChannelUpdateEvent'; import type { SerializedChannel } from './types/SerializedChannel'; public consume(time: <mask>) { cons...
number
0xProject_0x-starter-project/src/scenarios/exchange_proxy_subscribe.ts#scenarioAsync#ret#6
import { ContractWrappers, DecodedLogEvent, IndexedFilterValues, IZeroExEvents, IZeroExRfqOrderFilledEventArgs, } from '@0x/contract-wrappers'; import { NETWORK_CONFIGS } from '../configs'; import { PrintUtils } from '../print_utils'; import { providerEngine } from '../provider_engine'; import { runMigrationsOnceIfRequ...
Promise<void>
0b5vr_automaton/packages/automaton/src/Channel.ts#listener#arg#27
import { Automaton } from './Automaton'; import { ChannelItem } from './ChannelItem'; import { binarySearch } from './utils/binarySearch'; import type { ChannelUpdateEvent } from './types/ChannelUpdateEvent'; import type { SerializedChannel } from './types/SerializedChannel'; public subscribe(listener: <mask>) { ...
(event: ChannelUpdateEvent) => void
0b5vr_automaton/packages/automaton-with-gui/src/view/history/HistoryCommand.ts#command#arg#196
import { AutomatonWithGUI } from '../../AutomatonWithGUI'; import { BezierNode, FxSection, SerializedChannel, SerializedCurve } from '@0b5vr/automaton'; import { WithBypass } from '../../types/WithBypass'; import { WithID } from '../../types/WithID'; import type { StateChannelItem } from '../../types/StateChannelItem';...
HistoryCommand
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/arraySet.ts#value#arg#9
export function arraySetHas<T>(array, value: <mask>) { return array.indexOf(value) !== -1; } array.indexOf(value) function arraySetHas(array,value): boolean out = [...a] out.push(v) out.push(v); arraySetHas(out, v) function export function useSelector<T>(selector) { return useReduxSelector(selector, shallowEqua...
T
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#v#arg#35
import { GUISettings } from '../../types/GUISettings'; export function dv2dy(v: <mask>, range, height) { return -v / (range.v1 - range.v0) * height; }
number
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/arraySet.ts#arraySetHas#ret#9
export function arraySetHas<T>(array, value): <mask> { return array.indexOf(value) !== -1; } function arraySetHas(array,value): boolean out = [...a] out.push(v) out.push(v); arraySetHas(out, v) function export function useSelector<T>(selector) { return useReduxSelector(selector, shallowEqual); } selectedFxs = u...
boolean
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#range#arg#35
import { GUISettings } from '../../types/GUISettings'; export function dv2dy(v, range: <mask>, height) { return -v / (range.v1 - range.v0) * height; } range.v1 - range.v0 return -v / (range.v1 - range.v0) * height;
ValueRange
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#dv2dy#ret#35
import { GUISettings } from '../../types/GUISettings'; height export function dv2dy(v, range, height): <mask> { return -v / (range.v1 - range.v0) * height; }
number
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#height#arg#35
import { GUISettings } from '../../types/GUISettings'; export function dv2dy(v, range, height: <mask>) { return -v / (range.v1 - range.v0) * height; } return -v / (range.v1 - range.v0) * height;
number
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#x2t#ret#14
import { GUISettings } from '../../types/GUISettings'; export function x2t(x, range, width): <mask> { return (x / width) * (range.t1 - range.t0) + range.t0; }
number
0b5vr_automaton/packages/automaton/src/Channel.ts#getValue#ret#30
import { Automaton } from './Automaton'; import { ChannelItem } from './ChannelItem'; import { binarySearch } from './utils/binarySearch'; import type { ChannelUpdateEvent } from './types/ChannelUpdateEvent'; import type { SerializedChannel } from './types/SerializedChannel'; function binarySearch(array:any, elementOrC...
number
0b5vr_automaton/packages/automaton-with-gui/src/compat/v3Compat.ts#v3Compat#ret#5
import { defaultGUISettings } from '../types/GUISettings'; import type { SerializedAutomatonWithGUI } from '../types/SerializedAutomatonWithGUI'; import type { SerializedBezierNode, SerializedChannel, SerializedCurve } from '@0b5vr/automaton'; import type { V3SerializedAutomatonWithGUI } from './v3types/V3SerializedAut...
SerializedAutomatonWithGUI
0xProject_0x-starter-project/src/scenarios/fill_0x_api_swap.ts#scenarioAsync#ret#11
import { ContractWrappers } from '@0x/contract-wrappers'; import { BigNumber } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import axios from 'axios'; import { NETWORK_CONFIGS, TX_DEFAULTS } from '../configs'; import { DECIMALS, MOCK_0x_API_BASE_URL, UNLIMITED_ALLOWANCE_IN_BASE_UNITS } from '../con...
Promise<void>
0b5vr_automaton/packages/automaton/src/Channel.ts#deserialize#ret#19
import { Automaton } from './Automaton'; import { ChannelItem } from './ChannelItem'; import { binarySearch } from './utils/binarySearch'; import type { ChannelUpdateEvent } from './types/ChannelUpdateEvent'; import type { SerializedChannel } from './types/SerializedChannel'; public deserialize(data): <mask> { ...
void
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#y#arg#20
import { GUISettings } from '../../types/GUISettings'; export function y2v(y: <mask>, range, height) { return (1.0 - y / height) * (range.v1 - range.v0) + range.v0; } return (1.0 - y / height) * (range.v1 - range.v0) + range.v0; dt = x2t(0.0, range, size.width) - x2t(action.dx, range, size.width) function export fu...
number
0b5vr_automaton/packages/automaton-with-gui/src/view/components/AutomatonStateListener.tsx#curve#arg#10
import { Action, useDispatch } from '../states/store'; import { AutomatonWithGUI } from '../../AutomatonWithGUI'; import { ChannelWithGUI } from '../../ChannelWithGUI'; import { CurveWithGUI } from '../../CurveWithGUI'; import { batch } from 'react-redux'; import { useAnimationFrame } from '../utils/useAnimationFrame';...
CurveWithGUI
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#height#arg#20
import { GUISettings } from '../../types/GUISettings'; export function y2v(y, range, height: <mask>) { return (1.0 - y / height) * (range.v1 - range.v0) + range.v0; } return (1.0 - y / height) * (range.v1 - range.v0) + range.v0; dt = x2t(0.0, range, size.width) - x2t(action.dx, range, size.width) function export fu...
number
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#width#arg#29
import { GUISettings } from '../../types/GUISettings'; export function dt2dx(t, range, width: <mask>) { return t / (range.t1 - range.t0) * width; } return t / (range.t1 - range.t0) * width; t2x(fx.time, range, size.width) x = t2x(fx.time, range, size.width) if (fx.bypass) { return null; } fx.byp...
number
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#range#arg#29
import { GUISettings } from '../../types/GUISettings'; export function dt2dx(t, range: <mask>, width) { return t / (range.t1 - range.t0) * width; } range.t1 - range.t0 return t / (range.t1 - range.t0) * width; t2x(fx.time, range, size.width) x = t2x(fx.time, range, size.width) if (fx.bypass) { return nu...
TimeRange
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#dt2dx#ret#29
import { GUISettings } from '../../types/GUISettings'; export function dt2dx(t, range, width): <mask> { return t / (range.t1 - range.t0) * width; } t2x(fx.time, range, size.width) x = t2x(fx.time, range, size.width) if (fx.bypass) { return null; } fx.bypass {fx.$id} return (<Root key={fx.$id} tr...
number
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#snapValue#ret#57
import { GUISettings } from '../../types/GUISettings'; function dy2dv(y:any, range:any, height:any): number v = value export function snapValue(value, range, height, settings): <mask> { let v = value; if (settings?.snapValueActive) { const interval = settings.snapValueInterval; const threshold =...
number
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#range#arg#20
import { GUISettings } from '../../types/GUISettings'; export function y2v(y, range: <mask>, height) { return (1.0 - y / height) * (range.v1 - range.v0) + range.v0; } range.v1 - range.v0 return (1.0 - y / height) * (range.v1 - range.v0) + range.v0; (1.0 - y / height) * (range.v1 - range.v0) + range.v0 dt = x2t(0.0,...
ValueRange
0b5vr_automaton/packages/automaton-with-gui/src/view/components/AboutLargeA.tsx#LargeA#var#6
import { Colors } from '../constants/Colors'; import { Icons } from '../icons/Icons'; import { useSelector } from '../states/store'; import React, { useMemo } from 'react'; import styled from 'styled-components'; export interface AboutLargeAProps { className?: string; } const LargeA: <mask> = styled(Icons.Automaton...
StyledComponent<any, any, any, any>
0b5vr_automaton/packages/automaton-with-gui/src/view/components/AboutLargeA.tsx#Root#var#15
import { Colors } from '../constants/Colors'; import { Icons } from '../icons/Icons'; import { useSelector } from '../states/store'; import React, { useMemo } from 'react'; import styled from 'styled-components'; const Root: <mask> = styled.div` `
StyledComponent<"div", any, {}, never>
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#t#arg#29
import { GUISettings } from '../../types/GUISettings'; export function dt2dx(t: <mask>, range, width) { return t / (range.t1 - range.t0) * width; } return t / (range.t1 - range.t0) * width; t2x(fx.time, range, size.width) x = t2x(fx.time, range, size.width) if (fx.bypass) { return null; } fx.byp...
number
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#y2v#ret#20
import { GUISettings } from '../../types/GUISettings'; height export function y2v(y, range, height): <mask> { return (1.0 - y / height) * (range.v1 - range.v0) + range.v0; } dt = x2t(0.0, range, size.width) - x2t(action.dx, range, size.width) function export function x2t(x, range, width) { return (x / width) * ...
number
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#settings#arg#57
import { GUISettings } from '../../types/GUISettings'; export function snapValue(value, range, height, settings: <mask>) { let v = value; if (settings?.snapValueActive) { const interval = settings.snapValueInterval; const threshold = dy2dv(-5.0, range, height); const nearest = Math.round...
GUISettings | null
0b5vr_automaton/packages/automaton-with-gui/src/view/components/AboutLargeA.tsx#t#var#31
import { Colors } from '../constants/Colors'; import { Icons } from '../icons/Icons'; import { useSelector } from '../states/store'; import React, { useMemo } from 'react'; import styled from 'styled-components'; const t: <mask> = Math.max(time - i * 0.00166, 0.0) ChannelWithGUI.public getValueFromGUI(time) { i...
number
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#value#arg#57
import { GUISettings } from '../../types/GUISettings'; export function snapValue(value: <mask>, range, height, 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/InspectorGeneral.tsx#ConfirmButton#var#9
import { Colors } from '../constants/Colors'; import { InspectorHeader } from './InspectorHeader'; import { InspectorHr } from './InspectorHr'; import { InspectorItem } from './InspectorItem'; import { NumberParam } from './NumberParam'; import { useDispatch, useSelector } from '../states/store'; import React, { useEff...
StyledComponent<"div", any, {}, never>
0b5vr_automaton/packages/automaton-with-gui/src/view/components/AboutLargeA.tsx#values#var#27
import { Colors } from '../constants/Colors'; import { Icons } from '../icons/Icons'; import { useSelector } from '../states/store'; import React, { useMemo } from 'react'; import styled from 'styled-components'; export interface AboutLargeAProps { className?: string; } const values: <mask> = useMemo(() => new Arra...
number[]
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#range#arg#17
import { GUISettings } from '../../types/GUISettings'; export function t2x(t, range: <mask>, width) { return ((t - range.t0) / (range.t1 - range.t0)) * width; } t - range.t0 return ((t - range.t0) / (range.t1 - range.t0)) * width; range.t1 - range.t0 rectSelectState.isSelecting && (<RectSelectView x0={t2x(rectSelec...
TimeRange
0b5vr_automaton/packages/automaton-with-gui/src/view/components/AutomatonStateListener.tsx#genCurvePath#ret#10
import { Action, useDispatch } from '../states/store'; import { AutomatonWithGUI } from '../../AutomatonWithGUI'; import { ChannelWithGUI } from '../../ChannelWithGUI'; import { CurveWithGUI } from '../../CurveWithGUI'; import { batch } from 'react-redux'; import { useAnimationFrame } from '../utils/useAnimationFrame';...
string
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#width#arg#17
import { GUISettings } from '../../types/GUISettings'; export function t2x(t, range, width: <mask>) { 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-with-gui/src/view/components/InspectorGeneral.tsx#InspectorGeneral#var#29
import { Colors } from '../constants/Colors'; import { InspectorHeader } from './InspectorHeader'; import { InspectorHr } from './InspectorHr'; import { InspectorItem } from './InspectorItem'; import { NumberParam } from './NumberParam'; import { useDispatch, useSelector } from '../states/store'; import React, { useEff...
() => JSX.Element | null
0xProject_0x-starter-project/src/scenarios/execute_metatransaction_fill_rfq_order.ts#metaTxFields#var#71
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...
MetaTransactionFields
0b5vr_automaton/packages/automaton-with-gui/src/view/components/InspectorGeneral.tsx#dispatch#var#30
import { Colors } from '../constants/Colors'; import { InspectorHeader } from './InspectorHeader'; import { InspectorHr } from './InspectorHr'; import { InspectorItem } from './InspectorItem'; import { NumberParam } from './NumberParam'; import { useDispatch, useSelector } from '../states/store'; import React, { useEff...
Dispatch<Action>
0xProject_0x-starter-project/src/scenarios/execute_metatransaction_fill_rfq_order.ts#rfqOrder#var#47
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...
RfqOrder
0b5vr_automaton/packages/automaton-with-gui/src/utils/Throttle.ts#now#var#11
const now: <mask> = Date.now() untilNext = Math.max(0, this.__lastTime + this.rate - now)
number
0b5vr_automaton/packages/automaton-with-gui/src/utils/Throttle.ts#untilNext#var#12
const untilNext: <mask> = Math.max(0, this.__lastTime + this.rate - now) setTimeout(() => { this.__lastTime = Date.now(); resolve(this.__latest!()); this.__currentPromise = null; }, untilNext) private __lastTime = 0; public rate; now = Date.now...
number
0b5vr_automaton/packages/automaton-with-gui/src/utils/Throttle.ts#func#arg#9
public do(func: <mask>) { do.__latest = func; const now = Date.now(); const untilNext = Math.max(0, do.__lastTime + do.rate - now); if (!do.__currentPromise) { do.__currentPromise = new Promise((resolve) => { setTimeout(() => { do.__lastTim...
() => T
0b5vr_automaton/packages/automaton-with-gui/src/utils/Throttle.ts#do#ret#9
private __currentPromise: Promise<T> | null = null; public do(func): <mask> { this.__latest = func; const now = Date.now(); const untilNext = Math.max(0, this.__lastTime + this.rate - now); if (!this.__currentPromise) { this.__currentPromise = new Promise((resolve) => { ...
Promise<T>
0b5vr_automaton/packages/automaton/src/Automaton.ts#index#arg#58
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#id#arg#55
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-with-gui/src/view/utils/TimeValueRange.ts#v#arg#23
import { GUISettings } from '../../types/GUISettings'; export function v2y(v: <mask>, range, height) { return (1.0 - (v - range.v0) / (range.v1 - range.v0)) * height; } return (1.0 - (v - range.v0) / (range.v1 - range.v0)) * height; rectSelectState.isSelecting && (<RectSelectView x0={t2x(rectSelectState.t0)} x1={t2...
number
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#height#arg#23
import { GUISettings } from '../../types/GUISettings'; export function v2y(v, range, height: <mask>) { return (1.0 - (v - range.v0) / (range.v1 - range.v0)) * height; } return (1.0 - (v - range.v0) / (range.v1 - range.v0)) * height; rectSelectState.isSelecting && (<RectSelectView x0={t2x(rectSelectState.t0)} x1={t2...
number
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#v2y#ret#23
import { GUISettings } from '../../types/GUISettings'; height export function v2y(v, range, height): <mask> { return (1.0 - (v - range.v0) / (range.v1 - range.v0)) * height; } rectSelectState.isSelecting && (<RectSelectView x0={t2x(rectSelectState.t0)} x1={t2x(rectSelectState.t1)} y0={v2y(rectSelectState.v1)} y1={v...
number
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#snapTime#ret#38
import { GUISettings } from '../../types/GUISettings'; function dx2dt(x:any, range:any, width:any): number result = time export function snapTime(time, range, width, settings): <mask> { const { snapTimeActive, snapBeatActive, snapTimeInterval, bpm, beatOffset } = settings; let result = time; if (snapTimeAct...
number
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#time#arg#38
import { GUISettings } from '../../types/GUISettings'; export function snapTime(time: <mask>, range, width, settings) { const { snapTimeActive, snapBeatActive, snapTimeInterval, bpm, beatOffset } = settings; let result = time; if (snapTimeActive) { const interval = snapTimeInterval; const th...
number
0xProject_0x-starter-project/src/scenarios/transform_erc20.ts#rfqOrder#var#32
import { ContractWrappers, ERC20TokenContract } from '@0x/contract-wrappers'; import { encodeFillQuoteTransformerData, encodeWethTransformerData, FillQuoteTransformerOrderType, FillQuoteTransformerSide, findTransformerNonce, RfqOrder, SignatureType, } from '@0x/protocol-utils'; import { BigNumber, hexUtils } from '@0x/...
RfqOrder
0b5vr_automaton/packages/automaton/src/Automaton.ts#getFxDefinition#ret#55
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...
FxDefinition | null
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#range#arg#23
import { GUISettings } from '../../types/GUISettings'; export function v2y(v, range: <mask>, height) { return (1.0 - (v - range.v0) / (range.v1 - range.v0)) * height; } v - range.v0 return (1.0 - (v - range.v0) / (range.v1 - range.v0)) * height; range.v1 - range.v0 rectSelectState.isSelecting && (<RectSelectView x0...
ValueRange
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#settings#arg#38
import { GUISettings } from '../../types/GUISettings'; export function snapTime(time, range, width, settings: <mask>) { const { snapTimeActive, snapBeatActive, snapTimeInterval, bpm, beatOffset } = settings; let result = time; if (snapTimeActive) { const interval = snapTimeInterval; const th...
GUISettings
0b5vr_automaton/packages/automaton/src/Automaton.ts#update#ret#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...
void
0b5vr_automaton/packages/automaton/src/Automaton.ts#getCurve#ret#58
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...
Curve | null
0b5vr_automaton/packages/automaton-with-gui/src/view/utils/TimeValueRange.ts#range#arg#32
import { GUISettings } from '../../types/GUISettings'; export function dy2dv(y, range: <mask>, height) { return -y / height * (range.v1 - range.v0); } 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 th...
ValueRange