repo stringlengths 7 64 | file_url stringlengths 81 338 | file_path stringlengths 5 257 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:25:31 2026-01-05 01:50:38 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
RStankov/FocusedTask | https://github.com/RStankov/FocusedTask/blob/2532371d6b6a3d097cd8e23588c7786390b4e268/app/src/screens/task/Title/index.tsx | app/src/screens/task/Title/index.tsx | import * as React from 'react';
import Stack from 'components/Stack';
import styles from './styles.module.css';
import { updateTaskTitle } from 'modules/task';
import { getTitle, getSelectedTaskId } from 'modules/selectors';
import Input from 'components/Input';
import useSelector from 'hooks/useSelector';
import useDi... | typescript | MIT | 2532371d6b6a3d097cd8e23588c7786390b4e268 | 2026-01-05T05:01:29.805825Z | false |
RStankov/FocusedTask | https://github.com/RStankov/FocusedTask/blob/2532371d6b6a3d097cd8e23588c7786390b4e268/app/src/screens/task/DragFileMessage/index.tsx | app/src/screens/task/DragFileMessage/index.tsx | import * as React from 'react';
import styles from './styles.module.css';
export default function DragFileMessage() {
return <div className={styles.dragFileMessage}>Drop to add a bookmark</div>;
}
| typescript | MIT | 2532371d6b6a3d097cd8e23588c7786390b4e268 | 2026-01-05T05:01:29.805825Z | false |
RStankov/FocusedTask | https://github.com/RStankov/FocusedTask/blob/2532371d6b6a3d097cd8e23588c7786390b4e268/app/src/screens/task/Note/index.tsx | app/src/screens/task/Note/index.tsx | import * as React from 'react';
import Input from 'components/Input';
import keyCodes from 'utils/keyCodes';
import { updateNote } from 'modules/task';
import { getNote } from 'modules/selectors';
import useSelector from 'hooks/useSelector';
import useDispatch from 'hooks/useDispatch';
import Stack from 'components/Sta... | typescript | MIT | 2532371d6b6a3d097cd8e23588c7786390b4e268 | 2026-01-05T05:01:29.805825Z | false |
RStankov/FocusedTask | https://github.com/RStankov/FocusedTask/blob/2532371d6b6a3d097cd8e23588c7786390b4e268/app/src/screens/task/Bookmarks/index.tsx | app/src/screens/task/Bookmarks/index.tsx | import * as React from 'react';
import Stack from 'components/Stack';
import keyCodes from 'utils/keyCodes';
import { focusOnBookmarkWithIndex } from 'utils/focusOn';
import useSelector from 'hooks/useSelector';
import useDispatch from 'hooks/useDispatch';
import { openURI } from 'utils/electron';
import Sortable from ... | typescript | MIT | 2532371d6b6a3d097cd8e23588c7786390b4e268 | 2026-01-05T05:01:29.805825Z | false |
RStankov/FocusedTask | https://github.com/RStankov/FocusedTask/blob/2532371d6b6a3d097cd8e23588c7786390b4e268/app/src/screens/task/Bookmarks/OpenLink/index.tsx | app/src/screens/task/Bookmarks/OpenLink/index.tsx | import * as React from 'react';
import styles from './styles.module.css';
import ExternalLink from 'components/ExternalLink';
import { bookmarkUri } from 'utils/bookmarks';
interface IProps {
bookmark: {
uri: string;
};
index: number;
}
export default function BookmarkOpenLink({ bookmark, index }: IProps) {... | typescript | MIT | 2532371d6b6a3d097cd8e23588c7786390b4e268 | 2026-01-05T05:01:29.805825Z | false |
RStankov/FocusedTask | https://github.com/RStankov/FocusedTask/blob/2532371d6b6a3d097cd8e23588c7786390b4e268/app/src/screens/changelog/index.tsx | app/src/screens/changelog/index.tsx | import * as React from 'react';
import Stack from 'components/Stack';
import BackButton from 'components/BackButton';
import Title from 'components/Title';
import ReactMarkdown from 'react-markdown';
import styles from './styles.module.css';
import raw from 'raw.macro';
const markdown = raw('../../../../CHANGELOG.md')... | typescript | MIT | 2532371d6b6a3d097cd8e23588c7786390b4e268 | 2026-01-05T05:01:29.805825Z | false |
RStankov/FocusedTask | https://github.com/RStankov/FocusedTask/blob/2532371d6b6a3d097cd8e23588c7786390b4e268/app/src/types/dom.d.ts | app/src/types/dom.d.ts | declare class ResizeObserver {
constructor(callback: () => void);
observe: (target: Element, options?: ResizeObserverObserveOptions) => void;
}
interface ResizeObserverObserveOptions {
box?: 'content-box' | 'border-box';
}
| typescript | MIT | 2532371d6b6a3d097cd8e23588c7786390b4e268 | 2026-01-05T05:01:29.805825Z | false |
RStankov/FocusedTask | https://github.com/RStankov/FocusedTask/blob/2532371d6b6a3d097cd8e23588c7786390b4e268/app/src/types/raw.micro.d.ts | app/src/types/raw.micro.d.ts | declare module 'raw.macro';
| typescript | MIT | 2532371d6b6a3d097cd8e23588c7786390b4e268 | 2026-01-05T05:01:29.805825Z | false |
RStankov/FocusedTask | https://github.com/RStankov/FocusedTask/blob/2532371d6b6a3d097cd8e23588c7786390b4e268/app/src/modules/actions.ts | app/src/modules/actions.ts | export function newTask() {
return { type: 'tasks/new' };
}
export function selectTask(task: { id: string }) {
return { type: 'tasks/select', payload: { task } };
}
export function nextTask() {
return { type: 'tasks/next' };
}
export function deleteTask(task: { id: string }) {
return { type: 'tasks/delete', ... | typescript | MIT | 2532371d6b6a3d097cd8e23588c7786390b4e268 | 2026-01-05T05:01:29.805825Z | false |
RStankov/FocusedTask | https://github.com/RStankov/FocusedTask/blob/2532371d6b6a3d097cd8e23588c7786390b4e268/app/src/modules/index.tsx | app/src/modules/index.tsx | import { configureStore } from '@reduxjs/toolkit';
import { throttle } from 'lodash';
import { preloadStore, saveStore } from 'utils/stateRestore';
import tasks from './tasks';
import selectedScreen from './selectedScreen';
import preferences from './preferences';
const store = configureStore({
reducer: {
tasks,... | typescript | MIT | 2532371d6b6a3d097cd8e23588c7786390b4e268 | 2026-01-05T05:01:29.805825Z | false |
RStankov/FocusedTask | https://github.com/RStankov/FocusedTask/blob/2532371d6b6a3d097cd8e23588c7786390b4e268/app/src/modules/selectors.ts | app/src/modules/selectors.ts | import { IStoreState } from './index';
export function getSelectedScreen(store: IStoreState) {
return store.selectedScreen;
}
export function getSelectedTask(store: IStoreState) {
return store.tasks.tasks[store.tasks.selected]!;
}
export function getAllTasks(store: IStoreState) {
return Object.values(store.tas... | typescript | MIT | 2532371d6b6a3d097cd8e23588c7786390b4e268 | 2026-01-05T05:01:29.805825Z | false |
RStankov/FocusedTask | https://github.com/RStankov/FocusedTask/blob/2532371d6b6a3d097cd8e23588c7786390b4e268/app/src/modules/tasks/index.ts | app/src/modules/tasks/index.ts | import taskReducer, { ITask } from '../task';
import generateId from 'utils/generateId';
type IState = {
tasks: { [key: string]: ITask };
selected: string;
undo: {
lastAction: string | null;
past: ITask[];
future: ITask[];
};
};
interface IAction {
type: string;
payload?: any;
}
export defaul... | typescript | MIT | 2532371d6b6a3d097cd8e23588c7786390b4e268 | 2026-01-05T05:01:29.805825Z | false |
RStankov/FocusedTask | https://github.com/RStankov/FocusedTask/blob/2532371d6b6a3d097cd8e23588c7786390b4e268/app/src/modules/selectedScreen/index.tsx | app/src/modules/selectedScreen/index.tsx | import { createSlice } from '@reduxjs/toolkit';
import { IScreens } from 'screens/screens';
const initialState = 'task' as IScreens;
export const slice = createSlice({
name: 'selectedScreen',
initialState,
reducers: {
openTask: () => 'task' as 'task',
openShortcuts: () => 'shortcuts' as 'shortcuts',
... | typescript | MIT | 2532371d6b6a3d097cd8e23588c7786390b4e268 | 2026-01-05T05:01:29.805825Z | false |
RStankov/FocusedTask | https://github.com/RStankov/FocusedTask/blob/2532371d6b6a3d097cd8e23588c7786390b4e268/app/src/modules/preferences/index.ts | app/src/modules/preferences/index.ts | import { createSlice } from '@reduxjs/toolkit';
export const themes = ['light', 'dark'] as const;
export type ITheme = typeof themes[number];
interface IPreferences {
theme: ITheme;
}
export const slice = createSlice({
name: 'selectedScreen',
initialState: {
theme: initialLoadTheme(),
} as IPreferences,
... | typescript | MIT | 2532371d6b6a3d097cd8e23588c7786390b4e268 | 2026-01-05T05:01:29.805825Z | false |
RStankov/FocusedTask | https://github.com/RStankov/FocusedTask/blob/2532371d6b6a3d097cd8e23588c7786390b4e268/app/src/modules/task/index.tsx | app/src/modules/task/index.tsx | import { createSlice } from '@reduxjs/toolkit';
import * as types from './types';
import generateId from 'utils/generateId';
import {
createTodo,
createBookmark,
find,
findIndex,
insertAfter,
move,
paste,
} from './utils';
type IWithId = types.IWithId;
export type ITask = types.ITask;
export type ITodo... | typescript | MIT | 2532371d6b6a3d097cd8e23588c7786390b4e268 | 2026-01-05T05:01:29.805825Z | false |
RStankov/FocusedTask | https://github.com/RStankov/FocusedTask/blob/2532371d6b6a3d097cd8e23588c7786390b4e268/app/src/modules/task/utils.tsx | app/src/modules/task/utils.tsx | import { ITodo, IBookmark, IWithId } from './types';
import generateId from 'utils/generateId';
export function createTodo({
after,
text = '',
}: { after?: { ident: number }; text?: string } = {}): ITodo {
return {
id: generateId('todo'),
text: text || '',
isCompleted: false,
autoCompleted: false... | typescript | MIT | 2532371d6b6a3d097cd8e23588c7786390b4e268 | 2026-01-05T05:01:29.805825Z | false |
RStankov/FocusedTask | https://github.com/RStankov/FocusedTask/blob/2532371d6b6a3d097cd8e23588c7786390b4e268/app/src/modules/task/types.tsx | app/src/modules/task/types.tsx | export interface ITodo {
id: string;
text: string;
isCompleted: boolean;
ident: number;
autoCompleted: boolean;
}
export interface IBookmark {
id: string;
uri: string;
}
export interface ITask {
id: string;
title: string;
todos: ITodo[];
bookmarks: IBookmark[];
note: string;
}
export interfac... | typescript | MIT | 2532371d6b6a3d097cd8e23588c7786390b4e268 | 2026-01-05T05:01:29.805825Z | false |
RStankov/FocusedTask | https://github.com/RStankov/FocusedTask/blob/2532371d6b6a3d097cd8e23588c7786390b4e268/updater/src/config.ts | updater/src/config.ts | import createConnectionPool from '@databases/pg';
export const db = process.env.DATABASE_URL
? createConnectionPool({
onQueryError: (_query: any, { text }: any, err: any) => {
console.log(
`${new Date().toISOString()} ERROR QUERY ${text} - ${err.message}`,
);
},
})
: creat... | typescript | MIT | 2532371d6b6a3d097cd8e23588c7786390b4e268 | 2026-01-05T05:01:29.805825Z | false |
RStankov/FocusedTask | https://github.com/RStankov/FocusedTask/blob/2532371d6b6a3d097cd8e23588c7786390b4e268/updater/src/releases.ts | updater/src/releases.ts | import fetch from 'node-fetch';
import { releasesURL } from './config';
interface TRelease {
version: string;
updateTo: {
version: string;
name: string;
pub_date: string;
notes: string;
url: string;
};
}
interface TReleases {
currentRelease: string;
releases: TRelease[];
}
export async ... | typescript | MIT | 2532371d6b6a3d097cd8e23588c7786390b4e268 | 2026-01-05T05:01:29.805825Z | false |
RStankov/FocusedTask | https://github.com/RStankov/FocusedTask/blob/2532371d6b6a3d097cd8e23588c7786390b4e268/updater/src/index.ts | updater/src/index.ts | import express from 'express';
import isBot from 'isbot';
import { port, siteURL } from './config';
import { fetchCurrentRelease, fetchAllReleases } from './releases';
import { logDownload, logUpdate } from './db';
import { db } from './config';
const app = express();
app.use('/status', (_req, res) => {
res.send('r... | typescript | MIT | 2532371d6b6a3d097cd8e23588c7786390b4e268 | 2026-01-05T05:01:29.805825Z | false |
RStankov/FocusedTask | https://github.com/RStankov/FocusedTask/blob/2532371d6b6a3d097cd8e23588c7786390b4e268/updater/src/db/migrate.ts | updater/src/db/migrate.ts | import { db } from '../config';
import { sql } from '@databases/pg';
const MIGRATIONS = [
() =>
db.query(sql`
ALTER TABLE download_logs ADD COLUMN referer VARCHAR(255);
`),
() =>
db.query(sql`
ALTER TABLE download_logs ALTER COLUMN requested_at TYPE TIMESTAMP USING requested_at::timestamp;
... | typescript | MIT | 2532371d6b6a3d097cd8e23588c7786390b4e268 | 2026-01-05T05:01:29.805825Z | false |
RStankov/FocusedTask | https://github.com/RStankov/FocusedTask/blob/2532371d6b6a3d097cd8e23588c7786390b4e268/updater/src/db/index.ts | updater/src/db/index.ts | import { db } from '../config';
import { sql } from '@databases/pg';
export async function logDownload(version: string, ref: any) {
await db.query(sql`
INSERT INTO download_logs
(version, requested_at, referer)
VALUES
(${version}, ${new Date()}, ${ref})
`);
db.query(sql`SELECT * FROM downloa... | typescript | MIT | 2532371d6b6a3d097cd8e23588c7786390b4e268 | 2026-01-05T05:01:29.805825Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/hardhat.config.ts | hardhat.config.ts | import '@nomiclabs/hardhat-ethers';
import '@nomiclabs/hardhat-waffle';
import 'hardhat-deploy';
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';
import dotenv from 'dotenv';
import { BigNumber } from 'ethers';
import { task } from 'hardhat/config';
import { HardhatUserConfig } from 'hardhat/type... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/scripts/nft.ts | scripts/nft.ts | import { Contract } from "ethers"
import { ethers } from "hardhat"
import { abi } from "../artifacts/contracts/NFT.sol/NFT.json"
const coinAddr: string = "0xe304EDd5C4e590e2b8ce08b9625597FF38192D71"
const main = async (): Promise<any> => {
const contract: Contract = new Contract(coinAddr, abi, ethers.provider)
con... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/scripts/erc20.ts | scripts/erc20.ts | import {
BigNumber,
Contract
} from "ethers"
import { ethers } from "hardhat"
const coinName: string = ""
const coinAddr: string = ""
const walletAddress: string = ""
const main = async (): Promise<any> => {
const contract: Contract = await ethers.getContractAt(coinName, coinAddr)
const contractAddress: strin... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/scripts/sendAvaxWalletSigner.ts | scripts/sendAvaxWalletSigner.ts | import {
BigNumber,
providers,
utils,
Wallet
} from "ethers"
const walletAddress: string = "0xDd1749831fbF70d88AB7bB07ef7CD9c53D054a57"
const pk: string = "0x56289e99c94b6912bfc12adc093c9b51124f0dc54ac7a766b2bc5ccf558d8027"
const protocol: string = "http"
const host: string = "localhost"
const port: number = ... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/scripts/storage.ts | scripts/storage.ts | import {
BigNumber,
Contract
} from "ethers"
import { ethers } from "hardhat"
const contractName: string = "Storage"
const contractAddress: string = "0xE3573540ab8A1C4c754Fd958Dc1db39BBE81b208"
const main = async(): Promise<any> => {
const contract: Contract = await ethers.getContractAt(contractName, contractA... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/scripts/sendAvaxJSONProvider.ts | scripts/sendAvaxJSONProvider.ts | import { utils } from "ethers"
import { ethers } from "hardhat"
interface Param {
from: string
to: string
value: string
}
const main = async(): Promise<any> => {
const from: string = "0x8db97C7cEcE249c2b98bDC0226Cc4C2A57BF52FC"
const to: string = "0xDd1749831fbF70d88AB7bB07ef7CD9c53D054a57"
const amount: ... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/scripts/deploy.ts | scripts/deploy.ts | import {
Contract,
ContractFactory
} from "ethers"
import { ethers } from "hardhat"
const main = async(): Promise<any> => {
const Coin: ContractFactory = await ethers.getContractFactory("ExampleERC20")
const coin: Contract = await Coin.deploy()
await coin.deployed()
console.log(`Coin deployed to: ${coi... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/scripts/flash-arb/services/swap/swap-partner-to-main.ts | scripts/flash-arb/services/swap/swap-partner-to-main.ts | import { BigNumber, Contract } from 'ethers';
import { getNamedAccounts, network } from 'hardhat';
import { bigNumberToNumber, calculateGasCost, expandToXDecimals, isLocalEnv } from '../../../../shared/utilities';
const swapPartnerToMain = async (
arbitrageAmount: BigNumber, primaryTokenPair: Contract, secondaryT... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/scripts/flash-arb/services/swap/swap-main-to-partner.ts | scripts/flash-arb/services/swap/swap-main-to-partner.ts | import { BigNumber, Contract } from 'ethers';
import { getNamedAccounts, network } from 'hardhat';
import { bigNumberToNumber, calculateGasCost, expandToXDecimals, isLocalEnv } from '../../../../shared/utilities';
const swapMainToPartner = async (
arbitrageAmount: BigNumber, primaryTokenPair: Contract, secondaryT... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/scripts/flash-arb/services/setup/setup-pangolin-trader-joe.ts | scripts/flash-arb/services/setup/setup-pangolin-trader-joe.ts | import { artifacts, getNamedAccounts, network } from 'hardhat';
import { ContractOptions, IPangolinTraderJoe } from '../../../../shared/types';
import { isLocalEnv } from '../../../../shared/utilities';
import IJoeFacotryArtifact from '@traderjoe-xyz/core/artifacts/contracts/traderjoe/interfaces/IJoeFactory.sol/IJoeFac... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/scripts/flash-arb/services/setup/setup-pangolin-sushi.ts | scripts/flash-arb/services/setup/setup-pangolin-sushi.ts | import { getNamedAccounts, network, artifacts } from 'hardhat';
import { ContractOptions, IPangolinSushi } from "../../../../shared/types";
import { isLocalEnv } from '../../../../shared/utilities';
import IUniswapV2FactoryAbi from '@sushiswap/core/build/abi/IUniswapV2Factory.json';
import IPangolinFactoryArtifact from... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/scripts/flash-arb/trader-joe/trader-joe-pangolin-swap-joe-wavax.ts | scripts/flash-arb/trader-joe/trader-joe-pangolin-swap-joe-wavax.ts | import { getNamedAccounts, network } from 'hardhat';
import { INTERVAL_TIME } from '../../../shared/constants';
import { ContractOptions } from '../../../shared/types';
import { ChainlinkPriceOptions, expandTo18Decimals, getChainlinkPrice, isLocalEnv } from '../../../shared/utilities';
import setupPangolinTraderJoe fr... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/scripts/flash-arb/trader-joe/trader-joe-pangolin-swap-wavax-usdt.ts | scripts/flash-arb/trader-joe/trader-joe-pangolin-swap-wavax-usdt.ts | import { getNamedAccounts, network } from 'hardhat';
import { INTERVAL_TIME } from '../../../shared/constants';
import { ContractOptions } from '../../../shared/types';
import { ChainlinkPriceOptions, expandTo18Decimals, getChainlinkPrice, isLocalEnv } from '../../../shared/utilities';
import setupPangolinTraderJoe fr... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/scripts/flash-arb/trader-joe/trader-joe-pangolin-swap-wavax-joe.ts | scripts/flash-arb/trader-joe/trader-joe-pangolin-swap-wavax-joe.ts | import { getNamedAccounts, network } from 'hardhat';
import { INTERVAL_TIME } from '../../../shared/constants';
import { ContractOptions } from '../../../shared/types';
import { ChainlinkPriceOptions, expandTo18Decimals, getChainlinkPrice, isLocalEnv } from '../../../shared/utilities';
import setupPangolinTraderJoe fr... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/scripts/flash-arb/trader-joe/trader-joe-pangolin-swap-usdt-wavax.ts | scripts/flash-arb/trader-joe/trader-joe-pangolin-swap-usdt-wavax.ts | import { getNamedAccounts, network } from 'hardhat';
import { INTERVAL_TIME } from '../../../shared/constants';
import { ContractOptions } from '../../../shared/types';
import { ChainlinkPriceOptions, expandToXDecimals, getChainlinkPrice, isLocalEnv } from '../../../shared/utilities';
import setupPangolinTraderJoe fro... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/scripts/flash-arb/sushi/sushi-pangolin-swap-wavax-usdt.ts | scripts/flash-arb/sushi/sushi-pangolin-swap-wavax-usdt.ts | import { getNamedAccounts, network } from 'hardhat';
import { INTERVAL_TIME } from '../../../shared/constants';
import { ContractOptions } from '../../../shared/types';
import { ChainlinkPriceOptions, expandTo18Decimals, getChainlinkPrice, isLocalEnv } from '../../../shared/utilities';
import setupPangolinSushi from '... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/scripts/flash-arb/sushi/sushi-pangolin-swap-usdt-wavax.ts | scripts/flash-arb/sushi/sushi-pangolin-swap-usdt-wavax.ts | import { getNamedAccounts, network } from 'hardhat';
import { INTERVAL_TIME } from '../../../shared/constants';
import { ContractOptions } from '../../../shared/types';
import { ChainlinkPriceOptions, expandToXDecimals, getChainlinkPrice, isLocalEnv } from '../../../shared/utilities';
import setupPangolinSushi from '.... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/scripts/flash-arb/pangolin/pangolin-trader-joe-swap-usdt-wavax.ts | scripts/flash-arb/pangolin/pangolin-trader-joe-swap-usdt-wavax.ts | import { getNamedAccounts, network } from 'hardhat';
import { INTERVAL_TIME } from '../../../shared/constants';
import { ContractOptions } from '../../../shared/types';
import { ChainlinkPriceOptions, expandToXDecimals, getChainlinkPrice, isLocalEnv } from '../../../shared/utilities';
import setupPangolinTraderJoe fro... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/scripts/flash-arb/pangolin/pangolin-trader-joe-swap-wavax-usdt.ts | scripts/flash-arb/pangolin/pangolin-trader-joe-swap-wavax-usdt.ts | import { getNamedAccounts, network } from 'hardhat';
import { INTERVAL_TIME } from '../../../shared/constants';
import { ContractOptions } from '../../../shared/types';
import { ChainlinkPriceOptions, expandTo18Decimals, getChainlinkPrice, isLocalEnv } from '../../../shared/utilities';
import setupPangolinTraderJoe fr... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/scripts/flash-arb/pangolin/pangolin-sushi-swap-wavax-usdt.ts | scripts/flash-arb/pangolin/pangolin-sushi-swap-wavax-usdt.ts | import { getNamedAccounts, network } from 'hardhat';
import { INTERVAL_TIME } from '../../../shared/constants';
import { ContractOptions } from '../../../shared/types';
import { ChainlinkPriceOptions, expandTo18Decimals, getChainlinkPrice, isLocalEnv } from '../../../shared/utilities';
import setupPangolinSushi from '... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/scripts/flash-arb/pangolin/pangolin-trader-joe-swap-wavax-joe.ts | scripts/flash-arb/pangolin/pangolin-trader-joe-swap-wavax-joe.ts | import { getNamedAccounts, network } from 'hardhat';
import { INTERVAL_TIME } from '../../../shared/constants';
import { ContractOptions } from '../../../shared/types';
import { ChainlinkPriceOptions, expandTo18Decimals, getChainlinkPrice, isLocalEnv } from '../../../shared/utilities';
import setupPangolinTraderJoe fr... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/scripts/flash-arb/pangolin/pangolin-trader-joe-swap-joe-wavax.ts | scripts/flash-arb/pangolin/pangolin-trader-joe-swap-joe-wavax.ts | import { getNamedAccounts, network } from 'hardhat';
import { INTERVAL_TIME } from '../../../shared/constants';
import { ContractOptions } from '../../../shared/types';
import { ChainlinkPriceOptions, expandTo18Decimals, getChainlinkPrice, isLocalEnv } from '../../../shared/utilities';
import setupPangolinTraderJoe fr... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/scripts/flash-arb/pangolin/pangolin-sushi-swap-usdt-wavax.ts | scripts/flash-arb/pangolin/pangolin-sushi-swap-usdt-wavax.ts | import { getNamedAccounts, network } from 'hardhat';
import { INTERVAL_TIME } from '../../../shared/constants';
import { ContractOptions } from '../../../shared/types';
import { ChainlinkPriceOptions, expandToXDecimals, getChainlinkPrice, isLocalEnv } from '../../../shared/utilities';
import setupPangolinSushi from '.... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/deploy/03_deploy_uniswap_liquidity_compute.ts | deploy/03_deploy_uniswap_liquidity_compute.ts | import { DeployFunction } from 'hardhat-deploy/types';
import { HardhatRuntimeEnvironment } from 'hardhat/types';
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployments, getNamedAccounts } = hre;
const { deploy } = deployments;
const {
deployer,
... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/deploy/01_deploy_flash_swap_sushi_pango.ts | deploy/01_deploy_flash_swap_sushi_pango.ts | import { DeployFunction } from "hardhat-deploy/types";
import { HardhatRuntimeEnvironment } from "hardhat/types";
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployments, getNamedAccounts } = hre;
const { deploy } = deployments;
const {
deployer,
sushiSwapFact... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/deploy/02_deploy_pangolin_liquidity_compute.ts | deploy/02_deploy_pangolin_liquidity_compute.ts | import { DeployFunction } from 'hardhat-deploy/types';
import { HardhatRuntimeEnvironment } from 'hardhat/types';
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployments, getNamedAccounts } = hre;
const { deploy } = deployments;
const {
deployer,
... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/deploy/06_deploy_flash_swap_trader_joe_pango.ts | deploy/06_deploy_flash_swap_trader_joe_pango.ts | import { DeployFunction } from "hardhat-deploy/types";
import { HardhatRuntimeEnvironment } from "hardhat/types";
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployments, getNamedAccounts } = hre;
const { deploy } = deployments;
const {
deployer,
traderJoeFact... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/deploy/05_deploy_flash_swap_pangot_trader_joe.ts | deploy/05_deploy_flash_swap_pangot_trader_joe.ts | import { DeployFunction } from "hardhat-deploy/types";
import { HardhatRuntimeEnvironment } from "hardhat/types";
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployments, getNamedAccounts } = hre;
const { deploy } = deployments;
const {
deployer,
traderJoeRout... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/deploy/00_deploy_flash_swap_pango_sushi.ts | deploy/00_deploy_flash_swap_pango_sushi.ts | import { DeployFunction } from "hardhat-deploy/types";
import { HardhatRuntimeEnvironment } from "hardhat/types";
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployments, getNamedAccounts } = hre;
const { deploy } = deployments;
const {
deployer,
sushiSwapRout... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/deploy/04_deploy_trader_joe_liquidity_compute.ts | deploy/04_deploy_trader_joe_liquidity_compute.ts | import { DeployFunction } from 'hardhat-deploy/types';
import { HardhatRuntimeEnvironment } from 'hardhat/types';
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployments, getNamedAccounts } = hre;
const { deploy } = deployments;
const {
deployer,
... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/test/FlashSwapSushi.spec.ts | test/FlashSwapSushi.spec.ts | import { BigNumber, Contract } from "ethers";
import { network, getNamedAccounts, ethers } from "hardhat";
import {
expandTo18Decimals,
bigNumberToNumber,
isLocalEnv,
} from "../shared/utilities";
import { expect } from "chai";
import setupTest from "./test-fixture";
describe("FlashSwapSushiPango", () => {
le... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/test/test-fixture.ts | test/test-fixture.ts | import { deployments } from "hardhat";
import PangolinFactory from "@pangolindex/exchange-contracts/artifacts/contracts/pangolin-core/PangolinFactory.sol/PangolinFactory.json";
import PangolinRouter from "@pangolindex/exchange-contracts/artifacts/contracts/pangolin-periphery/PangolinRouter.sol/PangolinRouter.json";
imp... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/test/flash-swap-price-prediction.spec.ts | test/flash-swap-price-prediction.spec.ts | import { expect } from "chai";
import { Contract } from "ethers";
import { network, getNamedAccounts } from "hardhat";
import { isLocalEnv, expandTo18Decimals } from "../shared/utilities";
import setupTest from "./test-fixture";
describe("FlashSwapProfitPrediction", () => {
let Wavax: Contract;
let Usdt: Contract;... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/test/SushiswapV2ComputeLiquidityValue.spec.ts | test/SushiswapV2ComputeLiquidityValue.spec.ts | import { expect } from "chai";
import { Contract } from "ethers";
import { network, getNamedAccounts } from "hardhat";
import { isLocalEnv, expandTo18Decimals } from "../shared/utilities";
import setupTest from "./test-fixture";
describe("SushiswapV2ComputeLiquidityValue", () => {
let Wavax: Contract;
let Usdt: Co... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/test/PangolinComputeLiquidityValue.spec.ts | test/PangolinComputeLiquidityValue.spec.ts | import { expect } from "chai";
import { Contract } from "ethers";
import { network, getNamedAccounts } from "hardhat";
import { isLocalEnv, expandTo18Decimals } from "../shared/utilities";
import setupTest from "./test-fixture";
describe("PangoComputeLiquidityValue", () => {
let Wavax: Contract;
let Usdt: Contract... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/test/FlashSwapPango.spec.ts | test/FlashSwapPango.spec.ts | import { BigNumber, Contract } from "ethers";
import { network, getNamedAccounts, ethers } from "hardhat";
import {
expandTo18Decimals,
bigNumberToNumber,
isLocalEnv,
} from "../shared/utilities";
import { expect } from "chai";
import setupTest from "./test-fixture";
describe("FlashSwapPangolinSushi", () => {
... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/test/Coin.spec.ts | test/Coin.spec.ts | // test/Airdrop.js
// Load dependencies
const { expect } = require("chai");
const { BigNumber } = require("ethers");
const { ethers } = require("hardhat");
const Web3 = require("web3");
const OWNER_ADDRESS = ethers.utils.getAddress(
"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
);
const DECIMALS = 2;
const AMT = 15... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/shared/utilities.ts | shared/utilities.ts | import { BigNumber } from 'ethers';
import { getNamedAccounts } from 'hardhat';
export const MINIMUM_LIQUIDITY = BigNumber.from(10).pow(3)
export const AggregatorV3InterfaceABI = [{ "inputs": [], "name": "decimals", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/shared/constants.ts | shared/constants.ts | export const INTERVAL_TIME = 10000; | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
cjthoma1/flashswap-arbitrage-avalanche | https://github.com/cjthoma1/flashswap-arbitrage-avalanche/blob/d5bb893cabcaa391a4b01aa49e120f3856ef7e8c/shared/types.ts | shared/types.ts | import { Contract } from 'ethers';
export enum ContractOptions {
PANGOLIN = 'PANGOLIN',
SUSHI_SWAP = 'SUSHI_SWAP',
TRADER_JOE = 'TRADER_JOE'
}
export interface IPangolinSushi {
sushiTokenPair: Contract;
pangolinTokenPair: Contract;
sushiSwapLiquidityCompute: Contract;
pangolinLiquidityCompu... | typescript | BSD-3-Clause | d5bb893cabcaa391a4b01aa49e120f3856ef7e8c | 2026-01-05T05:01:29.278907Z | false |
NativeScript/nativescript-geolocation | https://github.com/NativeScript/nativescript-geolocation/blob/2100c0b6d74bbe47c370791545ad0c8a1254b2d3/demo-angular/references.d.ts | demo-angular/references.d.ts | /// <reference path="./node_modules/tns-core-modules/tns-core-modules.d.ts" />
/// <reference path="../src/node_modules/tns-platform-declarations/ios.d.ts" />
/// <reference path="../src/node_modules/tns-platform-declarations/android.d.ts" />
| typescript | Apache-2.0 | 2100c0b6d74bbe47c370791545ad0c8a1254b2d3 | 2026-01-05T05:01:25.710891Z | false |
NativeScript/nativescript-geolocation | https://github.com/NativeScript/nativescript-geolocation/blob/2100c0b6d74bbe47c370791545ad0c8a1254b2d3/demo-angular/src/main.ts | demo-angular/src/main.ts | // this import should be first in order to load some required settings (like globals and reflect-metadata)
import { platformNativeScriptDynamic } from "nativescript-angular/platform";
import { AppModule } from "./app/app.module";
platformNativeScriptDynamic().bootstrapModule(AppModule);
| typescript | Apache-2.0 | 2100c0b6d74bbe47c370791545ad0c8a1254b2d3 | 2026-01-05T05:01:25.710891Z | false |
NativeScript/nativescript-geolocation | https://github.com/NativeScript/nativescript-geolocation/blob/2100c0b6d74bbe47c370791545ad0c8a1254b2d3/demo-angular/src/app/app.component.ts | demo-angular/src/app/app.component.ts | import { Component } from "@angular/core";
@Component({
moduleId: module.id,
selector: "ns-app",
templateUrl: "app.component.html"
})
export class AppComponent { }
| typescript | Apache-2.0 | 2100c0b6d74bbe47c370791545ad0c8a1254b2d3 | 2026-01-05T05:01:25.710891Z | false |
NativeScript/nativescript-geolocation | https://github.com/NativeScript/nativescript-geolocation/blob/2100c0b6d74bbe47c370791545ad0c8a1254b2d3/demo-angular/src/app/app.module.ts | demo-angular/src/app/app.module.ts | import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
import { NativeScriptModule } from "nativescript-angular/nativescript.module";
import { AppRoutingModule } from "./app-routing.module";
import { AppComponent } from "./app.component";
@NgModule({
bootstrap: [
AppComponent
],
imports: [
... | typescript | Apache-2.0 | 2100c0b6d74bbe47c370791545ad0c8a1254b2d3 | 2026-01-05T05:01:25.710891Z | false |
NativeScript/nativescript-geolocation | https://github.com/NativeScript/nativescript-geolocation/blob/2100c0b6d74bbe47c370791545ad0c8a1254b2d3/demo-angular/src/app/app-routing.module.ts | demo-angular/src/app/app-routing.module.ts | import { NgModule } from "@angular/core";
import { Routes } from "@angular/router";
import { NativeScriptRouterModule } from "nativescript-angular/router";
const routes: Routes = [
{ path: "", redirectTo: "/home", pathMatch: "full" },
{ path: "home", loadChildren: "~/app/home/home.module#HomeModule" }
];
@NgM... | typescript | Apache-2.0 | 2100c0b6d74bbe47c370791545ad0c8a1254b2d3 | 2026-01-05T05:01:25.710891Z | false |
NativeScript/nativescript-geolocation | https://github.com/NativeScript/nativescript-geolocation/blob/2100c0b6d74bbe47c370791545ad0c8a1254b2d3/demo-angular/src/app/home/home-routing.module.ts | demo-angular/src/app/home/home-routing.module.ts | import { NgModule } from "@angular/core";
import { Routes } from "@angular/router";
import { NativeScriptRouterModule } from "nativescript-angular/router";
import { HomeComponent } from "./home.component";
const routes: Routes = [
{ path: "", component: HomeComponent }
];
@NgModule({
imports: [NativeScriptRo... | typescript | Apache-2.0 | 2100c0b6d74bbe47c370791545ad0c8a1254b2d3 | 2026-01-05T05:01:25.710891Z | false |
NativeScript/nativescript-geolocation | https://github.com/NativeScript/nativescript-geolocation/blob/2100c0b6d74bbe47c370791545ad0c8a1254b2d3/demo-angular/src/app/home/home.component.ts | demo-angular/src/app/home/home.component.ts | import { Component, OnInit } from "@angular/core";
import * as geolocation from "nativescript-geolocation";
import { Accuracy } from "tns-core-modules/ui/enums";
@Component({
selector: "Home",
moduleId: module.id,
templateUrl: "./home.component.html"
})
export class HomeComponent implements OnInit {
l... | typescript | Apache-2.0 | 2100c0b6d74bbe47c370791545ad0c8a1254b2d3 | 2026-01-05T05:01:25.710891Z | false |
NativeScript/nativescript-geolocation | https://github.com/NativeScript/nativescript-geolocation/blob/2100c0b6d74bbe47c370791545ad0c8a1254b2d3/demo-angular/src/app/home/home.module.ts | demo-angular/src/app/home/home.module.ts | import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
import { NativeScriptCommonModule } from "nativescript-angular/common";
import { HomeRoutingModule } from "./home-routing.module";
import { HomeComponent } from "./home.component";
@NgModule({
imports: [
NativeScriptCommonModule,
HomeRout... | typescript | Apache-2.0 | 2100c0b6d74bbe47c370791545ad0c8a1254b2d3 | 2026-01-05T05:01:25.710891Z | false |
NativeScript/nativescript-geolocation | https://github.com/NativeScript/nativescript-geolocation/blob/2100c0b6d74bbe47c370791545ad0c8a1254b2d3/src/location.d.ts | src/location.d.ts | /**
* A data class that encapsulates common properties for a geolocation.
*/
export class Location {
/**
* The latitude of the geolocation, in degrees.
*/
latitude: number;
/**
* The longitude of the geolocation, in degrees.
*/
longitude: number;
/**
* The altitude (if av... | typescript | Apache-2.0 | 2100c0b6d74bbe47c370791545ad0c8a1254b2d3 | 2026-01-05T05:01:25.710891Z | false |
NativeScript/nativescript-geolocation | https://github.com/NativeScript/nativescript-geolocation/blob/2100c0b6d74bbe47c370791545ad0c8a1254b2d3/src/location-monitor.d.ts | src/location-monitor.d.ts | import { Location } from "./location";
/**
* Provides options for location monitoring.
*/
export interface Options {
/**
* Specifies desired accuracy in meters. Defaults to DesiredAccuracy.HIGH
*/
desiredAccuracy?: number;
/**
* Update distance filter in meters. Specifies how often to update. Default... | typescript | Apache-2.0 | 2100c0b6d74bbe47c370791545ad0c8a1254b2d3 | 2026-01-05T05:01:25.710891Z | false |
NativeScript/nativescript-geolocation | https://github.com/NativeScript/nativescript-geolocation/blob/2100c0b6d74bbe47c370791545ad0c8a1254b2d3/src/index.d.ts | src/index.d.ts | export * from "./location";
export * from "./location-monitor";
| typescript | Apache-2.0 | 2100c0b6d74bbe47c370791545ad0c8a1254b2d3 | 2026-01-05T05:01:25.710891Z | false |
NativeScript/nativescript-geolocation | https://github.com/NativeScript/nativescript-geolocation/blob/2100c0b6d74bbe47c370791545ad0c8a1254b2d3/src/geolocation.ios.ts | src/geolocation.ios.ts | import { Accuracy } from "tns-core-modules/ui/enums";
import { setTimeout, clearTimeout } from "tns-core-modules/timer";
import { on as applicationOn, uncaughtErrorEvent, UnhandledErrorEventData } from "tns-core-modules/application";
import {
LocationBase,
defaultGetLocationTimeout,
minRangeUpdate
} from "... | typescript | Apache-2.0 | 2100c0b6d74bbe47c370791545ad0c8a1254b2d3 | 2026-01-05T05:01:25.710891Z | false |
NativeScript/nativescript-geolocation | https://github.com/NativeScript/nativescript-geolocation/blob/2100c0b6d74bbe47c370791545ad0c8a1254b2d3/src/references.d.ts | src/references.d.ts | /// <reference path="./node_modules/tns-platform-declarations/ios.d.ts" />
/// <reference path="./node_modules/tns-platform-declarations/android.d.ts" />
| typescript | Apache-2.0 | 2100c0b6d74bbe47c370791545ad0c8a1254b2d3 | 2026-01-05T05:01:25.710891Z | false |
NativeScript/nativescript-geolocation | https://github.com/NativeScript/nativescript-geolocation/blob/2100c0b6d74bbe47c370791545ad0c8a1254b2d3/src/geolocation.android.ts | src/geolocation.android.ts | import { on as applicationOn, android as androidAppInstance, AndroidApplication, uncaughtErrorEvent, UnhandledErrorEventData } from "application";
import { Accuracy } from "tns-core-modules/ui/enums";
import { setTimeout, clearTimeout } from "tns-core-modules/timer";
import { LocationBase, defaultGetLocationTimeout, fa... | typescript | Apache-2.0 | 2100c0b6d74bbe47c370791545ad0c8a1254b2d3 | 2026-01-05T05:01:25.710891Z | false |
NativeScript/nativescript-geolocation | https://github.com/NativeScript/nativescript-geolocation/blob/2100c0b6d74bbe47c370791545ad0c8a1254b2d3/src/geolocation.common.ts | src/geolocation.common.ts | import { Location as LocationDef } from "./location";
export class LocationBase implements LocationDef {
public latitude: number;
public longitude: number;
public altitude: number;
public horizontalAccuracy: number;
public verticalAccuracy: number;
public speed: number; // in m/s ?
public direction: numb... | typescript | Apache-2.0 | 2100c0b6d74bbe47c370791545ad0c8a1254b2d3 | 2026-01-05T05:01:25.710891Z | false |
NativeScript/nativescript-geolocation | https://github.com/NativeScript/nativescript-geolocation/blob/2100c0b6d74bbe47c370791545ad0c8a1254b2d3/demo-vue/references.d.ts | demo-vue/references.d.ts | /// <reference path="./node_modules/tns-core-modules/tns-core-modules.d.ts" />
/// <reference path="../src/node_modules/tns-platform-declarations/ios.d.ts" />
/// <reference path="../src/node_modules/tns-platform-declarations/android.d.ts" />
| typescript | Apache-2.0 | 2100c0b6d74bbe47c370791545ad0c8a1254b2d3 | 2026-01-05T05:01:25.710891Z | false |
NativeScript/nativescript-geolocation | https://github.com/NativeScript/nativescript-geolocation/blob/2100c0b6d74bbe47c370791545ad0c8a1254b2d3/demo/references.d.ts | demo/references.d.ts | /// <reference path="./node_modules/tns-core-modules/tns-core-modules.d.ts" />
/// <reference path="../src/node_modules/tns-platform-declarations/ios.d.ts" />
/// <reference path="../src/node_modules/tns-platform-declarations/android.d.ts" />
| typescript | Apache-2.0 | 2100c0b6d74bbe47c370791545ad0c8a1254b2d3 | 2026-01-05T05:01:25.710891Z | false |
NativeScript/nativescript-geolocation | https://github.com/NativeScript/nativescript-geolocation/blob/2100c0b6d74bbe47c370791545ad0c8a1254b2d3/demo/app/app.ts | demo/app/app.ts | import * as application from 'tns-core-modules/application';
application.run({ moduleName: "app-root" });
| typescript | Apache-2.0 | 2100c0b6d74bbe47c370791545ad0c8a1254b2d3 | 2026-01-05T05:01:25.710891Z | false |
NativeScript/nativescript-geolocation | https://github.com/NativeScript/nativescript-geolocation/blob/2100c0b6d74bbe47c370791545ad0c8a1254b2d3/demo/app/background-service.ts | demo/app/background-service.ts | import * as geolocation from "nativescript-geolocation";
import { Accuracy } from "tns-core-modules/ui/enums";
import * as application from "tns-core-modules/application";
import { device } from "tns-core-modules/platform";
import * as Toast from "nativescript-toast";
let watchId;
function _clearWatch() {
if (wat... | typescript | Apache-2.0 | 2100c0b6d74bbe47c370791545ad0c8a1254b2d3 | 2026-01-05T05:01:25.710891Z | false |
NativeScript/nativescript-geolocation | https://github.com/NativeScript/nativescript-geolocation/blob/2100c0b6d74bbe47c370791545ad0c8a1254b2d3/demo/app/main-page.ts | demo/app/main-page.ts | import * as geolocation from "nativescript-geolocation";
import { Accuracy } from "tns-core-modules/ui/enums";
import { EventData } from "tns-core-modules/data/observable";
import { Page } from "tns-core-modules/ui/page";
import { MainViewModel } from "./main-view-model";
const utils = require("tns-core-modules/utils/u... | typescript | Apache-2.0 | 2100c0b6d74bbe47c370791545ad0c8a1254b2d3 | 2026-01-05T05:01:25.710891Z | false |
NativeScript/nativescript-geolocation | https://github.com/NativeScript/nativescript-geolocation/blob/2100c0b6d74bbe47c370791545ad0c8a1254b2d3/demo/app/main-view-model.ts | demo/app/main-view-model.ts | import * as geolocation from "nativescript-geolocation";
import { Observable } from "tns-core-modules/data/observable";
import { ObservableArray } from "tns-core-modules/data/observable-array";
export class MainViewModel extends Observable {
private _locations: ObservableArray<geolocation.Location>;
public ge... | typescript | Apache-2.0 | 2100c0b6d74bbe47c370791545ad0c8a1254b2d3 | 2026-01-05T05:01:25.710891Z | false |
fluidtrends/carmel | https://github.com/fluidtrends/carmel/blob/eb147a52d8879a3298d84ad9915ed3838b773273/sentinel/src/light.ts | sentinel/src/light.ts | import { start, stop } from './main'
(async () => {
try {
process.on('SIGINT', async () => {
await stop()
process.exit()
})
await start(undefined, false)
} catch (e) {
process.exit(1)
}
})()
| typescript | MIT | eb147a52d8879a3298d84ad9915ed3838b773273 | 2026-01-05T04:59:17.813855Z | false |
fluidtrends/carmel | https://github.com/fluidtrends/carmel/blob/eb147a52d8879a3298d84ad9915ed3838b773273/sentinel/src/main.ts | sentinel/src/main.ts | import debug from 'debug'
import path from 'path'
import fs from 'fs-extra'
import { Session } from '@carmel/core'
import { create } from 'ipfs-core'
import { createLibp2p } from 'libp2p'
import { libp2pConfig } from './config'
const LOG = debug("carmel:sentinel")
let node: any = undefined
let ses: any = undefined
co... | typescript | MIT | eb147a52d8879a3298d84ad9915ed3838b773273 | 2026-01-05T04:59:17.813855Z | false |
fluidtrends/carmel | https://github.com/fluidtrends/carmel/blob/eb147a52d8879a3298d84ad9915ed3838b773273/sentinel/src/index.ts | sentinel/src/index.ts | import { start, stop } from './main'
import * as functions from './functions'
(async () => {
try {
process.on('SIGINT', async () => {
await stop()
process.exit()
})
await start(functions)
} catch (e) {
process.exit(1)
}
})()
| typescript | MIT | eb147a52d8879a3298d84ad9915ed3838b773273 | 2026-01-05T04:59:17.813855Z | false |
fluidtrends/carmel | https://github.com/fluidtrends/carmel/blob/eb147a52d8879a3298d84ad9915ed3838b773273/sentinel/src/types/wrtc/index.d.ts | sentinel/src/types/wrtc/index.d.ts | declare module "wrtc" {
export interface RTCAnswerOptions extends RTCOfferAnswerOptions {
}
export interface RTCCertificateExpiration {
expires?: number;
}
export interface RTCConfiguration {
bundlePolicy?: RTCBundlePolicy;
certificates?: RTCCertificate[];
iceCandi... | typescript | MIT | eb147a52d8879a3298d84ad9915ed3838b773273 | 2026-01-05T04:59:17.813855Z | false |
fluidtrends/carmel | https://github.com/fluidtrends/carmel/blob/eb147a52d8879a3298d84ad9915ed3838b773273/sentinel/src/config/libp2p.ts | sentinel/src/config/libp2p.ts | import { webRTCStar } from '@libp2p/webrtc-star'
import { kadDHT } from '@libp2p/kad-dht'
import { gossipsub } from '@chainsafe/libp2p-gossipsub'
import { noise } from '@chainsafe/libp2p-noise'
import { yamux } from '@chainsafe/libp2p-yamux'
import { mplex } from '@libp2p/mplex'
import { webSockets } from '@libp2p/webs... | typescript | MIT | eb147a52d8879a3298d84ad9915ed3838b773273 | 2026-01-05T04:59:17.813855Z | false |
fluidtrends/carmel | https://github.com/fluidtrends/carmel/blob/eb147a52d8879a3298d84ad9915ed3838b773273/sentinel/src/config/index.ts | sentinel/src/config/index.ts | export * from './libp2p' | typescript | MIT | eb147a52d8879a3298d84ad9915ed3838b773273 | 2026-01-05T04:59:17.813855Z | false |
fluidtrends/carmel | https://github.com/fluidtrends/carmel/blob/eb147a52d8879a3298d84ad9915ed3838b773273/sentinel/src/functions/index.ts | sentinel/src/functions/index.ts | export * as register from './register' | typescript | MIT | eb147a52d8879a3298d84ad9915ed3838b773273 | 2026-01-05T04:59:17.813855Z | false |
fluidtrends/carmel | https://github.com/fluidtrends/carmel/blob/eb147a52d8879a3298d84ad9915ed3838b773273/sentinel/src/functions/register/index.ts | sentinel/src/functions/register/index.ts | export const request = async ({ session, data, log }: any) => {
const { username, code, publicKey } = data
log(`Registering ${username} [code: ${code} | publicKey: ${publicKey}] ...`)
return {
error: "Invalid code"
}
} | typescript | MIT | eb147a52d8879a3298d84ad9915ed3838b773273 | 2026-01-05T04:59:17.813855Z | false |
fluidtrends/carmel | https://github.com/fluidtrends/carmel/blob/eb147a52d8879a3298d84ad9915ed3838b773273/sentinel/lib/main.d.ts | sentinel/lib/main.d.ts | export declare const start: (isOperator?: boolean) => Promise<void>;
| typescript | MIT | eb147a52d8879a3298d84ad9915ed3838b773273 | 2026-01-05T04:59:17.813855Z | false |
fluidtrends/carmel | https://github.com/fluidtrends/carmel/blob/eb147a52d8879a3298d84ad9915ed3838b773273/sentinel/lib/light.d.ts | sentinel/lib/light.d.ts | export {};
| typescript | MIT | eb147a52d8879a3298d84ad9915ed3838b773273 | 2026-01-05T04:59:17.813855Z | false |
fluidtrends/carmel | https://github.com/fluidtrends/carmel/blob/eb147a52d8879a3298d84ad9915ed3838b773273/sentinel/lib/index.d.ts | sentinel/lib/index.d.ts | export {};
| typescript | MIT | eb147a52d8879a3298d84ad9915ed3838b773273 | 2026-01-05T04:59:17.813855Z | false |
fluidtrends/carmel | https://github.com/fluidtrends/carmel/blob/eb147a52d8879a3298d84ad9915ed3838b773273/relay/src/Swarm.ts | relay/src/Swarm.ts | import debug from 'debug'
import { OFFER, MULTIADDRESS, ID, EVENT, PAYLOAD, Server } from '.'
import { promisify } from 'util'
const LOG = debug('carmel:swarm')
export class Swarm {
private _server: Server
private _set: any
private _get: any
private _del: any
constructor(server: Server) {
... | typescript | MIT | eb147a52d8879a3298d84ad9915ed3838b773273 | 2026-01-05T04:59:17.813855Z | false |
fluidtrends/carmel | https://github.com/fluidtrends/carmel/blob/eb147a52d8879a3298d84ad9915ed3838b773273/relay/src/Pipe.ts | relay/src/Pipe.ts | import debug from 'debug'
import { OFFER, MULTIADDRESS, ID, EVENT, PAYLOAD, Server } from '.'
import { promisify } from 'util'
const LOG = debug('carmel:relay:pipe')
const SYNC_INTERVAL = 2000
export class Pipe {
private _io: any
private _adapter: any
private _server: Server
private _join: any
p... | typescript | MIT | eb147a52d8879a3298d84ad9915ed3838b773273 | 2026-01-05T04:59:17.813855Z | false |
fluidtrends/carmel | https://github.com/fluidtrends/carmel/blob/eb147a52d8879a3298d84ad9915ed3838b773273/relay/src/start.ts | relay/src/start.ts | (async () => {
const { Server } = require('.')
const server = new Server()
await server.start()
})() | typescript | MIT | eb147a52d8879a3298d84ad9915ed3838b773273 | 2026-01-05T04:59:17.813855Z | false |
fluidtrends/carmel | https://github.com/fluidtrends/carmel/blob/eb147a52d8879a3298d84ad9915ed3838b773273/relay/src/Server.ts | relay/src/Server.ts | import path from 'path'
import debug from 'debug'
import express from 'express'
import bodyParser from 'body-parser'
import cookieParser from 'cookie-parser'
import cors from 'cors'
import http from 'http'
import { Pipe, Swarm } from '.'
import { Cluster } from 'ioredis'
import { createHttpTerminator, HttpTerminator } ... | typescript | MIT | eb147a52d8879a3298d84ad9915ed3838b773273 | 2026-01-05T04:59:17.813855Z | false |
fluidtrends/carmel | https://github.com/fluidtrends/carmel/blob/eb147a52d8879a3298d84ad9915ed3838b773273/relay/src/types.ts | relay/src/types.ts | export type MULTIADDRESS = string
export type ID = string
export type ERROR = string
export type ANSWER = any
export type PAYLOAD = any
export enum EVENT {
PEER = 'ws-peer',
HANDSHAKE = 'ws-handshake'
}
export type SIGNAL = {
type: string,
sdp: string
}
export type OFFER = {
intentId: ID
srcM... | typescript | MIT | eb147a52d8879a3298d84ad9915ed3838b773273 | 2026-01-05T04:59:17.813855Z | false |
fluidtrends/carmel | https://github.com/fluidtrends/carmel/blob/eb147a52d8879a3298d84ad9915ed3838b773273/relay/src/index.ts | relay/src/index.ts | export * from './types'
export * from './Server'
export * from './Pipe'
export * from './Swarm' | typescript | MIT | eb147a52d8879a3298d84ad9915ed3838b773273 | 2026-01-05T04:59:17.813855Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.