repo_id
stringclasses
747 values
file_path
stringlengths
33
153
content
stringlengths
501
15.1M
uniswap_public_repos/interface/packages/uniswap/src/i18n/locales
uniswap_public_repos/interface/packages/uniswap/src/i18n/locales/translations/fil-PH.json
{ "account.authHeader.claimReward": "I-claim ang reward na {{amount}}", "account.cloud.backup.subtitle": "Maraming recovery phrase na naka-back up sa iyong {{cloudProviderName}}.", "account.cloud.backup.title": "Pumili ng backup na ire-restore", "account.cloud.button.restore.android": "I-restore mula sa Google ...
uniswap_public_repos/interface/packages/uniswap/src/data/graphql/uniswap-data-api/web
uniswap_public_repos/interface/packages/uniswap/src/data/graphql/uniswap-data-api/web/nft/collection.graphql
query Collection($addresses: [String!]!) { nftCollections(filter: { addresses: $addresses }) { edges { cursor node { bannerImage { url } collectionId description discordUrl homepageUrl image { url } instagramNa...
uniswap_public_repos/wallet/packages/ui/src/assets
uniswap_public_repos/wallet/packages/ui/src/assets/icons/arrow-down-circle.svg
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M8.00004 14.6667C11.6819 14.6667 14.6667 11.6819 14.6667 8.00003C14.6667 4.31813 11.6819 1.33337 8.00004 1.33337C4.31814 1.33337 1.33337 4.31813 1.33337 8.00003C1.33337 11.6819 4.31814 14.6667 8.00004 14.6667Z" fill...
uniswap_public_repos/convert-cidv0-cidv1/node_modules/multibase
uniswap_public_repos/convert-cidv0-cidv1/node_modules/multibase/src/base64.js
'use strict' const { Buffer } = require('buffer') module.exports = function base64 (alphabet) { // The alphabet is only used to know: // 1. If padding is enabled (must contain '=') // 2. If the output must be url-safe (must contain '-' and '_') // 3. If the input of the output function is valid // The ...
uniswap_public_repos/interface/packages/uniswap/src/features
uniswap_public_repos/interface/packages/uniswap/src/features/gas/hooks.ts
import { Currency, CurrencyAmount } from '@uniswap/sdk-core' import { providers } from 'ethers/lib/ethers' import { useEffect, useMemo, useState } from 'react' import { useTranslation } from 'react-i18next' import { isWeb } from 'ui/src' import { Warning, WarningAction, WarningLabel, WarningSeverity } from 'uniswap/src...
uniswap_public_repos/mrkl-drop-data-chunks
uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x47d2d609e86438da73f0183c0f5ca6b13986bd71.json
{"0x47d2D609E86438da73f0183C0f5CA6B13986BD71":{"index":71385,"amount":"0x1e763f036d78557000","proof":["0x692ebdce8f611ac461b788ab483659317e6f69b203b87f8d7a28747924a31820","0x9489b48ffb51b1fd4c65b7e571aef45039f8e3ea0e02741ab9bd7257d9467a0a","0x50ff14b2994df9e30fba34f33bea42c6790c4b293fa7c4f673a8266ff676396c","0xe274ee13...
uniswap_public_repos/interface/apps/mobile/src/components
uniswap_public_repos/interface/apps/mobile/src/components/text/DecimalNumber.test.tsx
import React from 'react' import { DecimalNumber } from 'src/components/text/DecimalNumber' import { render } from 'src/test/test-utils' it('renders a DecimalNumber', () => { const tree = render(<DecimalNumber formattedNumber="14,123.78" number={14123.78} variant="body1" />) expect(tree).toMatchSnapshot() }) it(...
uniswap_public_repos/docs/docs/contracts/v4/reference/core
uniswap_public_repos/docs/docs/contracts/v4/reference/core/libraries/CurrencyReserves.md
# CurrencyReserves [Git Source](https://github.com/Uniswap/v4-core/blob/1141642f8ba4665a50660886a8a8401526677045/src/libraries/CurrencyReserves.sol) | Generated with [forge doc](https://book.getfoundry.sh/reference/forge/forge-doc) ## State Variables ### RESERVES_OF_SLOT bytes32(uint256(keccak256("ReservesOf")) - 1) ...
uniswap_public_repos/mrkl-drop-data-chunks
uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x4d6de557092f9742606e226860d6718281c9d241.json
{"0x4D6DE557092f9742606e226860d6718281C9D241":{"index":75105,"amount":"0x15af1d78b58c400000","proof":["0x7934cec290587eb6f87021b0b3f674e668bb4959df290c54344485768e68e618","0x9ab4493e68cfa6fe63697f2966de8384030226754aea6d3054e46b7089611192","0x9772ba2e8aca40353f8b69f1d9b24fd0bd0a55f88f27a98dc506a1cb80685a82","0x3d963347...
uniswap_public_repos/interface/apps/web/src
uniswap_public_repos/interface/apps/web/src/hooks/useMaxAmountIn.test.tsx
import { useMaxAmountIn } from 'hooks/useMaxAmountIn' import { TEST_ALLOWED_SLIPPAGE, TEST_TRADE_EXACT_INPUT } from 'test-utils/constants' import { renderHook } from 'test-utils/render' describe('useMaxAmountIn', () => { it('returns undefined for an undefined trade', () => { const { result } = renderHook(() => u...
uniswap_public_repos/mrkl-drop-data-chunks
uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x256defc3657ca81677ffe67ce0f389b0f85b3734.json
{"0x256dEFC3657Ca81677FfE67CE0f389b0f85b3734":{"index":37372,"amount":"0x15af1d78b58c400000","proof":["0x8d0e7ae123bf89af6aad1d504d776929a6b5e8f96c0488eb87fbde68008b5331","0x04e533b005aee0e9a2b7383bf60a5b354d4a152e72072dbd3bfebb8033caa78a","0x3e2ffbb76cc4de63e4cd2dec8347a7e7e6e8a9c76703760b56b743bb60795a32","0x772d0694...
uniswap_public_repos/v4-periphery
uniswap_public_repos/v4-periphery/src/PositionDescriptor.sol
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.26; import {IPoolManager} from "@uniswap/v4-core/src/interfaces/IPoolManager.sol"; import {Currency, CurrencyLibrary} from "@uniswap/v4-core/src/types/Currency.sol"; import {StateLibrary} from "@uniswap/v4-core/src/libraries/StateLibrary.sol"; import {PoolKey}...
uniswap_public_repos/v3-periphery-optimism/contracts
uniswap_public_repos/v3-periphery-optimism/contracts/lens/UniswapInterfaceMulticall.sol
// SPDX-License-Identifier: MIT pragma solidity =0.7.6; pragma abicoder v2; /// @notice A fork of Multicall2 specifically tailored for the Uniswap Interface contract UniswapInterfaceMulticall { struct Call { address target; uint256 gasLimit; bytes callData; } struct Result { ...
uniswap_public_repos/interface/apps/mobile/src/app
uniswap_public_repos/interface/apps/mobile/src/app/modals/ExperimentsModal.tsx
import { useApolloClient } from '@apollo/client' import React, { useState } from 'react' import { ScrollView } from 'react-native-gesture-handler' import { useDispatch, useSelector } from 'react-redux' import { Action } from 'redux' import { closeModal } from 'src/features/modals/modalSlice' import { selectCustomEndpoi...
uniswap_public_repos/v4-periphery/test
uniswap_public_repos/v4-periphery/test/position-managers/Execute.t.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "forge-std/Test.sol"; import {PoolManager} from "@uniswap/v4-core/src/PoolManager.sol"; import {IPoolManager} from "@uniswap/v4-core/src/interfaces/IPoolManager.sol"; import {IHooks} from "@uniswap/v4-core/src/interfaces/IHooks.sol"; import {Currency, Cur...
uniswap_public_repos
uniswap_public_repos/eslint-config/restrictedImports.js
exports.node = { paths: [ { name: 'ethers', message: "Please import from '@ethersproject/module' directly to support tree-shaking.", }, ], patterns: [ { group: ['**/dist'], message: 'Do not import from dist/ - this is an implementation detail, and breaks tree-shaking.', }, ...
uniswap_public_repos
uniswap_public_repos/v2-subgraph/schema.graphql
type UniswapFactory @entity { # factory address id: ID! # pair info pairCount: Int! # total volume totalVolumeUSD: BigDecimal! totalVolumeETH: BigDecimal! # untracked values - less confident USD scores untrackedVolumeUSD: BigDecimal! # total liquidity totalLiquidityUSD: BigDecimal! totalLiqu...
uniswap_public_repos/contracts/lib/oz-v5.0.2/contracts
uniswap_public_repos/contracts/lib/oz-v5.0.2/contracts/utils/Strings.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) pragma solidity ^0.8.20; import {Math} from "./math/Math.sol"; import {SignedMath} from "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "01234567...
uniswap_public_repos/interface/apps/web/src/nft/components
uniswap_public_repos/interface/apps/web/src/nft/components/explore/Explore.css.ts
import { style } from '@vanilla-extract/css' import { body, bodySmall } from 'nft/css/common.css' import { sprinkles } from 'nft/css/sprinkles.css' export const section = style([ sprinkles({ paddingLeft: { sm: '16', xl: '0' }, paddingRight: { sm: '16', xl: '0' }, }), { maxWidth: '1200px', margin:...
uniswap_public_repos/v3-subgraph/src/mappings
uniswap_public_repos/v3-subgraph/src/mappings/pool/initialize.ts
import { BigInt } from '@graphprotocol/graph-ts' import { Bundle, Pool, Token } from '../../types/schema' import { Initialize } from '../../types/templates/Pool/Pool' import { getSubgraphConfig, SubgraphConfig } from '../../utils/chains' import { updatePoolDayData, updatePoolHourData } from '../../utils/intervalUpdate...
uniswap_public_repos/mrkl-drop-data-chunks
uniswap_public_repos/mrkl-drop-data-chunks/chunks/0xcdfdc90a23f57518ed6a9fff8de3a313b873c2f1.json
{"0xCDfdc90A23F57518ED6a9fff8De3a313b873C2f1":{"index":180044,"amount":"0x15af1d78b58c400000","proof":["0xaa391e228bc8e74a064ba41b0ebda2a4d7cd05a11c3a75b7b07f9214c501823c","0xcc71c0fdac6811fcc3c1a12d1daccd7f344517302d050348b8a720dc9feb1b8c","0x8fe51a9305c8fe853e87debe505b12ef7d113c1d7fc3e3f77820feb877ba9931","0x10a108c...
uniswap_public_repos
uniswap_public_repos/unified-routing-api/.eslintrc
{ "root": true, "parser": "@typescript-eslint/parser", "parserOptions": { "sourceType": "module" }, "env": { "node": true, "es6": true }, "plugins": ["@typescript-eslint", "import", "jest"], "extends": [ "eslint:recommended", "plugin:@typescript-eslint/eslint-recommended", "plugi...
uniswap_public_repos/interface/apps/web/public
uniswap_public_repos/interface/apps/web/public/images/54x54_Verified_Check.svg
<svg width="55" height="55" viewBox="0 0 55 55" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M8.48223 46.7073C7.39664 45.6264 6.85526 43.9605 6.85814 41.7096V36.8327C6.8693 36.41 6.71466 35.9999 6.42734 35.69L2.981 32.2403C1.37846 30.6564 0.577148 29.0983 0.577148 27....
uniswap_public_repos/v3-subgraph/src/mappings
uniswap_public_repos/v3-subgraph/src/mappings/pool/collect.ts
import { BigInt } from '@graphprotocol/graph-ts' import { Bundle, Collect, Factory, Pool, Token } from '../../types/schema' import { Collect as CollectEvent } from '../../types/templates/Pool/Pool' import { convertTokenToDecimal, loadTransaction } from '../../utils' import { getSubgraphConfig, SubgraphConfig } from '....
uniswap_public_repos/interface/packages/uniswap/src/features
uniswap_public_repos/interface/packages/uniswap/src/features/tokens/NativeCurrency.ts
// adapted from https://github.com/Uniswap/interface/src/constants/tokens.ts import { Currency, NativeCurrency as NativeCurrencyClass, Token } from '@uniswap/sdk-core' import { getNativeAddress } from 'uniswap/src/constants/addresses' import { getChainInfo } from 'uniswap/src/features/chains/chainInfo' import { Univers...
uniswap_public_repos/interface/packages/ui/src/components
uniswap_public_repos/interface/packages/ui/src/components/icons/MoneyBillSend.tsx
import { Path, Svg } from 'react-native-svg' // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths import { createIcon } from '../factories/createIcon' export const [MoneyBillSend, AnimatedMoneyBillSend] = createIcon({ name: 'MoneyBillSend', getIcon: (props) => ( <Svg viewBox="0 0 20 1...
uniswap_public_repos/mrkl-drop-data-chunks
uniswap_public_repos/mrkl-drop-data-chunks/chunks/0xb781e00935cee03c817c376b9debcdd19822b418.json
{"0xb781e00935CEe03C817c376b9DeBCdD19822b418":{"index":217257,"amount":"0x15af1d78b58c400000","proof":["0x4fa0659c0a87ad620456c4bd99986913470a4fff7a0ad04b5f1232d4cc53daee","0xe134c448e8c0d60a79f7e55ec6a5d9846feb03f7059c1e16ce830235725d5005","0x720097f2a8e80328807c54939deab0d6466fbceb1e8368c74a3613cb24ee943b","0xac3546f...
uniswap_public_repos/examples
uniswap_public_repos/examples/web3-react/yarn.lock
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. # yarn lockfile v1 "@ampproject/remapping@^2.1.0": version "2.2.0" resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.0.tgz#56c133824780de3174aed5ab6834f3026790154d" integrity sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAas...
uniswap_public_repos/interface/apps/web/src/components
uniswap_public_repos/interface/apps/web/src/components/AccountDrawer/index.tsx
import { InterfaceEventName } from '@uniswap/analytics-events' import DefaultMenu from 'components/AccountDrawer/DefaultMenu' import { useAccountDrawer } from 'components/AccountDrawer/MiniPortfolio/hooks' import { ScrollBarStyles } from 'components/Common/styles' import { Web3StatusRef } from 'components/Web3Status' i...
uniswap_public_repos/wallet/apps/mobile/src/features
uniswap_public_repos/wallet/apps/mobile/src/features/wallet/hooks.ts
import { useCallback, useEffect, useState } from 'react' import { useAppSelector } from 'src/app/hooks' import { openModal } from 'src/features/modals/modalSlice' import { selectModalState } from 'src/features/modals/selectModalState' import { ModalName } from 'src/features/telemetry/constants' import { logger } from '...
uniswap_public_repos/wallet/apps/mobile/src/components/layout
uniswap_public_repos/wallet/apps/mobile/src/components/layout/screens/WithScrollToTop.tsx
import React, { forwardRef, PropsWithChildren } from 'react' import { Pressable } from 'react-native' // accept any ref // eslint-disable-next-line @typescript-eslint/no-explicit-any export const WithScrollToTop = forwardRef<any, PropsWithChildren<unknown>>( function _WithScrollToTop({ children }: PropsWithChildren<...
uniswap_public_repos/interface/apps/web/src/pages/App
uniswap_public_repos/interface/apps/web/src/pages/App/utils/ResetPageScroll.tsx
import { memo, useEffect, useState } from 'react' import { useLocation } from 'react-router-dom' import { getCurrentPageFromLocation } from 'utils/urlRoutes' export const ResetPageScrollEffect = memo(function ResetPageScrollEffect() { const location = useLocation() const { pathname } = location const currentPage...
uniswap_public_repos/interface/packages/ui/src/components
uniswap_public_repos/interface/packages/ui/src/components/icons/ArrowTurnDownRight.tsx
import { G, Path, Svg } from 'react-native-svg' // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths import { createIcon } from '../factories/createIcon' export const [ArrowTurnDownRight, AnimatedArrowTurnDownRight] = createIcon({ name: 'ArrowTurnDownRight', getIcon: (props) => ( <Svg...
uniswap_public_repos/interface/packages/uniswap/src/features/transactions/swap
uniswap_public_repos/interface/packages/uniswap/src/features/transactions/swap/utils/trade.test.ts
import { Currency, CurrencyAmount, TradeType } from '@uniswap/sdk-core' import { FeeAmount, Pool, Route } from '@uniswap/v3-sdk' import { UNI, WBTC } from 'uniswap/src/constants/tokens' import { Routing } from 'uniswap/src/data/tradingApi/__generated__' import { UniverseChainId } from 'uniswap/src/features/chains/types...
uniswap_public_repos/permit2/src
uniswap_public_repos/permit2/src/libraries/Permit2Lib.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import {ERC20} from "solmate/src/tokens/ERC20.sol"; import {IDAIPermit} from "../interfaces/IDAIPermit.sol"; import {IAllowanceTransfer} from "../interfaces/IAllowanceTransfer.sol"; import {SafeCast160} from "./SafeCast160.sol"; /// @title Permit2Lib /// @noti...
uniswap_public_repos/mrkl-drop-data-chunks
uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x35e4a342930b5a5f2a3546fec85af621e78e7b03.json
{"0x35e4a342930B5a5f2a3546feC85aF621E78E7B03":{"index":53783,"amount":"0x15af1d78b58c400000","proof":["0xcf0f3f35504f594553754899a858a21aa18e403df9474c5afedd004987f515df","0x550d9408754c2f2d1ff4cd9a8628de802263bc6de61f90f8e8034f30d797f718","0x6a0c488e08de8e43c743e07213b46fe1cc4e6ad1eb25c6ba9d7efe996c0ce7fe","0xef01e293...
uniswap_public_repos/interface/packages/uniswap/src/components
uniswap_public_repos/interface/packages/uniswap/src/components/modals/InfoLinkModal.tsx
import { ReactNode } from 'react' import { Button, Flex, isWeb, Text, TouchableArea, useSporeColors } from 'ui/src' import { X } from 'ui/src/components/icons/X' import { zIndices } from 'ui/src/theme' import { Modal } from 'uniswap/src/components/modals/Modal' import { ModalNameType } from 'uniswap/src/features/teleme...
uniswap_public_repos/contracts/lib/oz-v4.7.0/contracts/vendor
uniswap_public_repos/contracts/lib/oz-v4.7.0/contracts/vendor/amb/IAMB.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (vendor/amb/IAMB.sol) pragma solidity ^0.8.0; interface IAMB { event UserRequestForAffirmation(bytes32 indexed messageId, bytes encodedData); event UserRequestForSignature(bytes32 indexed messageId, bytes encodedData); event Af...
uniswap_public_repos/mrkl-drop-data-chunks
uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x0f5c5ab6a918dba7b5a78d707eb6b0555782b0ea.json
{"0x0f5C5aB6A918dBA7B5a78D707EB6B0555782b0ea":{"index":15775,"amount":"0x15af1d78b58c400000","proof":["0xfc1d287458d530ef33eeb8e573a06e3525c7a2135da0fcfbd092ce05861f1a0e","0x9bf0059851923977ec53efafd1fe41e372f2bce48939cfae1c121f041977c54f","0x07ede69cc84d6c3f2e80999e80f2a6db72446d40f1beb3323b75dbb937737e45","0x5039bedc...
uniswap_public_repos/interface/packages/uniswap/src/components
uniswap_public_repos/interface/packages/uniswap/src/components/TokenSelector/utils.test.tsx
import { TokenOptionSection } from 'uniswap/src/components/TokenSelector/types' import { isSwapListLoading } from 'uniswap/src/components/TokenSelector/utils' describe(isSwapListLoading, () => { it('returns true if loading and no sections', () => { expect(isSwapListLoading(true, undefined, undefined)).toBe(true)...
uniswap_public_repos/v3-core/contracts
uniswap_public_repos/v3-core/contracts/libraries/SafeCast.sol
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.5.0; /// @title Safe casting methods /// @notice Contains methods for safely casting between types library SafeCast { /// @notice Cast a uint256 to a uint160, revert on overflow /// @param y The uint256 to be downcasted /// @return z The down...
uniswap_public_repos/v1-docs
uniswap_public_repos/v1-docs/sdk-documentation/orchestration.md
# Orchestration Orchestration functions are plain-english wrappers for the function defined in [Data](data.md) and [Computation](https://github.com/Uniswap/docs/tree/d81e772a2b536e59f7887e7ac82a4bc568e69267/sdk-documentation/Computation.md). * tradeExactEthForTokensWithData * Function Signature * Input Parameters...
uniswap_public_repos/wallet/packages/ui/src/assets
uniswap_public_repos/wallet/packages/ui/src/assets/icons/empty-state-tokens.svg
<svg width="66" height="65" viewBox="0 0 66 65" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="35.573" y="22.926" width="8.463" height="36.073" rx="2.327" transform="rotate(90 35.573 22.926)" fill="currentColor"/><rect x="35.573" y="11.463" width="8.463" height="36.073" rx="2.327" transform="rotate(90 35.573 1...
uniswap_public_repos/interface/apps/web/src
uniswap_public_repos/interface/apps/web/src/state/migrations.test.ts
import { Store } from '@reduxjs/toolkit' import { persistStore } from 'redux-persist' import { createDefaultStore } from 'state' import { initialState as initialListsState } from 'state/lists/reducer' import { PERSIST_VERSION } from 'state/migrations' import { RouterPreference } from 'state/routing/types' import { init...
uniswap_public_repos/interface/apps/web/src/components/NavBar
uniswap_public_repos/interface/apps/web/src/components/NavBar/Tabs/Tabs.tsx
import { NavDropdown, NavDropdownTabWrapper } from 'components/NavBar/NavDropdown/index' import { TabsItem, TabsSection, useTabsContent } from 'components/NavBar/Tabs/TabsContent' import { useKeyPress } from 'hooks/useKeyPress' import styled from 'lib/styled-components' import { useCallback, useEffect, useRef, useState...
uniswap_public_repos/mrkl-drop-data-chunks
uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x45fb8de238678ff6df85342391b8c9d1877a88e0.json
{"0x45Fb8dE238678Ff6DF85342391B8c9D1877A88E0":{"index":69295,"amount":"0x15af1d78b58c400000","proof":["0x838c0ca46a980568aae45bdeb7a4c798144dcc64138188db4c7720a67f1fa585","0xb5f9fa8c8917d29847bb670e46935dc81028897db27e4326d63f26cbee1e1cd2","0xa8ab30c2f9a6b67c00146fd23200a5347e76a1b9953d01701909d781a49a29e8","0x27f038c3...
uniswap_public_repos/universal-router/test/integration-tests/shared
uniswap_public_repos/universal-router/test/integration-tests/shared/abis/Element.json
[ { "inputs": [{ "internalType": "contract IEtherToken", "name": "weth", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "orderHash", "type": "bytes32" }, { "ind...
uniswap_public_repos/v4-core/src
uniswap_public_repos/v4-core/src/libraries/UnsafeMath.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @title Math functions that do not check inputs or outputs /// @notice Contains methods that perform common math functions but do not do any overflow or underflow checks library UnsafeMath { /// @notice Returns ceil(x / y) /// @dev division by 0 will r...
uniswap_public_repos/contracts/lib/oz-v5.0.2/contracts/token
uniswap_public_repos/contracts/lib/oz-v5.0.2/contracts/token/ERC1155/IERC1155.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.20; import {IERC165} from "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip...
uniswap_public_repos/mrkl-drop-data-chunks
uniswap_public_repos/mrkl-drop-data-chunks/chunks/0xe64f25ffb2b59cf4b9d1b9d1e3cd66ce63d3564b.json
{"0xE64F25ffb2B59CF4b9D1b9d1e3cD66CE63d3564B":{"index":192937,"amount":"0x15af1d78b58c400000","proof":["0x849883313ad8563a7eadde1cc07112431c6781f0b51735bee4d074028fc8bc5f","0x1ce8c01201ee0edc24a753972b87c7f566b9799939e3eb1b1a118a1dc540358e","0xa3a5c38c41456afd2f0ac7bc939d53d5fdabe0e5b645b58113e47a028099136e","0x78717ef...
uniswap_public_repos/interface/packages/wallet/src/features/transactions
uniswap_public_repos/interface/packages/wallet/src/features/transactions/contexts/SendContext.tsx
import { TransactionRequest } from '@ethersproject/providers' import { Currency } from '@uniswap/sdk-core' import { providers } from 'ethers' import { ReactNode, createContext, useCallback, useContext, useMemo, useState } from 'react' import { useTranslation } from 'react-i18next' import { WarningAction } from 'uniswap...
uniswap_public_repos/docs/src
uniswap_public_repos/docs/src/theme/DocSidebarItem.tsx
import OriginalDocSidebarItem from '@theme-original/DocSidebarItem' import { TraceEvent } from '@uniswap/analytics' import { BrowserEvent, SharedEventName } from '@uniswap/analytics-events' import React from 'react' const DOCUSAURUS_LINK_ITEM_TYPE = 'link' export default function DocSidebarItem(props: { item }) { r...
uniswap_public_repos/mrkl-drop-data-chunks
uniswap_public_repos/mrkl-drop-data-chunks/chunks/0xd2ec4724baf1952de4718fbfd3ecbe95dc98fdbe.json
{"0xD2EC4724BAf1952de4718FbFD3EcBE95dC98fDBE":{"index":183332,"amount":"0x15af2468f3cb7f1000","proof":["0x9f761c2bade12be7f851a895a2cac7222662bca7510e802b2ccd63cbda583564","0x8158f889788da360340fe354e60c7f1b5da7042736b08132cb9da6d1961c3e25","0x3a3edb76619eb5f482708d2d655cc23f7d18c0c74637d42c6ea8b8385506d8e6","0x0de4eec...
uniswap_public_repos
uniswap_public_repos/v2-core/package.json
{ "name": "@uniswap/v2-core", "description": "🎛 Core contracts for the UniswapV2 protocol", "version": "1.0.1", "homepage": "https://uniswap.org", "repository": { "type": "git", "url": "https://github.com/Uniswap/uniswap-v2-core" }, "keywords": [ "uniswap", "ethereum", "v2", "core...
uniswap_public_repos/contracts/lib/oz-v4.7.0/contracts/token
uniswap_public_repos/contracts/lib/oz-v4.7.0/contracts/token/ERC1155/ERC1155.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../.....
uniswap_public_repos/interface/packages/utilities/src/telemetry
uniswap_public_repos/interface/packages/utilities/src/telemetry/trace/Trace.tsx
import { useFocusEffect } from '@react-navigation/core' import { BrowserEvent, SharedEventName } from '@uniswap/analytics-events' import React, { PropsWithChildren, ReactNode, memo, useEffect, useId, useMemo } from 'react' import { isWeb } from 'utilities/src/platform' // eslint-disable-next-line no-restricted-imports ...
uniswap_public_repos/mrkl-drop-data-chunks
uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x50dd530c291fa962ee56b0893418f41668251fa5.json
{"0x50dD530C291fA962EE56b0893418f41668251FA5":{"index":80262,"amount":"0x15af1d78b58c400000","proof":["0x4fbdcbb7de337236fb047504ecd8f787ab3de2a187f52dfe5c7e69295dd2f5e3","0xd091e177f86b9f227c398c3d49384dec8fdfcc56bcb387e0b97c27d20b8aa4cf","0xea86028a586b8f01988b7e425cbece36f504f7219303268b8bd11f9bc9e212cf","0xbbbd761d...
uniswap_public_repos/v3-info/src
uniswap_public_repos/v3-info/src/hooks/useLast.ts
import { useEffect, useState } from 'react' /** * Returns the last value of type T that passes a filter function * @param value changing value * @param filterFn function that determines whether a given value should be considered for the last value */ export default function useLast<T>( value: T | undefined | nul...
uniswap_public_repos/sdks/sdks/v2-sdk/src
uniswap_public_repos/sdks/sdks/v2-sdk/src/entities/entities.test.ts
import JSBI from 'jsbi' import invariant from 'tiny-invariant' import { WETH9 as _WETH9, TradeType, Token, CurrencyAmount } from '@uniswap/sdk-core' import { Pair, Route, Trade } from '../index' const ADDRESSES = [ '0x0000000000000000000000000000000000000001', '0x0000000000000000000000000000000000000002', '0x000...
uniswap_public_repos/sdks/.yarn
uniswap_public_repos/sdks/.yarn/patches/@manypkg-cli-npm-0.19.2-ea52ff91d4.patch
diff --git a/dist/cli.cjs.dev.js b/dist/cli.cjs.dev.js index 6f836f85e5881b60bc0bb1f730a81663a63fb494..d7b59a0fa5c5392688af925577745c5a952553e5 100644 --- a/dist/cli.cjs.dev.js +++ b/dist/cli.cjs.dev.js @@ -307,89 +307,89 @@ var EXTERNAL_MISMATCH = makeCheck({ type: "all" }); -var INTERNAL_MISMATCH = makeCheck({ ...
uniswap_public_repos/interface/apps/mobile/src/components/layout
uniswap_public_repos/interface/apps/mobile/src/components/layout/screens/WithScrollToTop.tsx
import React, { forwardRef, PropsWithChildren } from 'react' import { Pressable } from 'react-native' // accept any ref // eslint-disable-next-line @typescript-eslint/no-explicit-any export const WithScrollToTop = forwardRef<any, PropsWithChildren<unknown>>(function _WithScrollToTop( { children }: PropsWithChildren<...
uniswap_public_repos/info/src
uniswap_public_repos/info/src/utils/tokenLists.ts
import { TokenList } from '@uniswap/token-lists' import schema from '@uniswap/token-lists/src/tokenlist.schema.json' import Ajv from 'ajv' /** * Given a URI that may be ipfs, ipns, http, or https protocol, return the fetch-able http(s) URLs for the same content * @param uri to convert to fetch-able http url */ func...
uniswap_public_repos/interface/apps/web/src/components/Tokens/TokenDetails
uniswap_public_repos/interface/apps/web/src/components/Tokens/TokenDetails/ChartSection/util.ts
import { ChartType } from 'components/Charts/utils' import { UTCTimestamp } from 'lightweight-charts' import ms from 'ms' import { HistoryDuration } from 'uniswap/src/data/graphql/uniswap-data-api/__generated__/types-and-hooks' export type ChartQueryResult<TDataType, TChartType extends ChartType> = { chartType: TCha...
uniswap_public_repos/mrkl-drop-data-chunks
uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x857e6fbb7518fe4fc28667c5581c329f9a571b6c.json
{"0x857e6FbB7518fe4Fc28667C5581C329f9A571B6c":{"index":132312,"amount":"0x15af1d78b58c400000","proof":["0xeb9bf63e175264bf1ac2d014eb667727a2d443eb12c1792d289785b2048ba31c","0x7f68e84a3822f5aa044d680214685138367b57bfc3d3f07b37ac68dda103e8d6","0x6c99a7bf29a923f52c63b1f1be47512bb39e97922f9ef3a85e68e392af726e4e","0xe0730e1...
uniswap_public_repos/interface/apps/mobile/ios
uniswap_public_repos/interface/apps/mobile/ios/Uniswap/AppDelegate.m
#import "AppDelegate.h" #import "RNFBAppCheckModule.h" #import <Firebase.h> #import "Uniswap-Swift.h" #import <React/RCTBundleURLProvider.h> #import <ReactNativePerformance/ReactNativePerformance.h> #import <RCTAppSetupUtils.h> #import "RNSplashScreen.h" @implementation AppDelegate - (BOOL)application:(UIApplicati...
uniswap_public_repos/wallet/packages/ui/src/components
uniswap_public_repos/wallet/packages/ui/src/components/icons/Walletconnect.tsx
import { G, Path, Svg } from 'react-native-svg' // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths import { createIcon } from '../factories/createIcon' export const [Walletconnect, AnimatedWalletconnect] = createIcon({ name: 'Walletconnect', getIcon: (props) => ( <Svg height="185" v...
uniswap_public_repos/mrkl-drop-data-chunks
uniswap_public_repos/mrkl-drop-data-chunks/chunks/0xf9b1be6f2db3a84451ad1d79f40150835a5738a7.json
{"0xF9b1be6F2dB3A84451AD1D79f40150835A5738A7":{"index":202556,"amount":"0x15af1d78b58c400000","proof":["0x22c9216a450beff307ecf69895c57f59f936f8b2bb3ddfe90c5112679fc30751","0xbb246b1798d13f3e8f00a5eddd7f4f3c2e9375ec4120ddabadc20476da3338eb","0x7720fd47813a76d138809eb14faccf928ac0be37c434bd6f4e62dc4309fe6db0","0x8884314...
uniswap_public_repos/contracts/lib/oz-d3ff81b/contracts/crosschain
uniswap_public_repos/contracts/lib/oz-d3ff81b/contracts/crosschain/arbitrum/CrossChainEnabledArbitrumL1.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (crosschain/arbitrum/CrossChainEnabledArbitrumL1.sol) pragma solidity ^0.8.4; import "../CrossChainEnabled.sol"; import "./LibArbitrumL1.sol"; /** * @dev https://arbitrum.io/[Arbitrum] specialization or the * {CrossChainEnabled} abstra...
uniswap_public_repos/mrkl-drop-data-chunks
uniswap_public_repos/mrkl-drop-data-chunks/chunks/0xdc3590f6ec210ac31b8aa0ce6d188410026e8952.json
{"0xDC3590F6EC210Ac31b8aa0ce6d188410026e8952":{"index":187486,"amount":"0x15af1d78b58c400000","proof":["0x7cec7c3135a64c5be262b18e24b1658fdcb6e4f44efe49b9173bc3d9675095e2","0xe3c821fcd7dc0613029c56781e1d0b07da899cc138bbeed1b2523642ebc99135","0xceaf9e6d0565680cdded2d21ef4b917d30d50c4813f53026e2ae88232f22f4e0","0x716a290...
uniswap_public_repos/contracts/lib/oz-v4.7.0/contracts
uniswap_public_repos/contracts/lib/oz-v4.7.0/contracts/interfaces/IERC3156FlashLender.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC3156FlashLender.sol) pragma solidity ^0.8.0; import "./IERC3156FlashBorrower.sol"; /** * @dev Interface of the ERC3156 FlashLender, as defined in * https://eips.ethereum.org/EIPS/eip-3156[ERC-3156]. * * _Available since v4.1._ */ i...
uniswap_public_repos/v3-core-optimism/contracts
uniswap_public_repos/v3-core-optimism/contracts/test/LowGasSafeMathEchidnaTest.sol
// SPDX-License-Identifier: UNLICENSED pragma solidity =0.7.6; import '../libraries/LowGasSafeMath.sol'; contract LowGasSafeMathEchidnaTest { function checkAdd(uint256 x, uint256 y) external pure { uint256 z = LowGasSafeMath.add(x, y); assert(z == x + y); assert(z >= x && z >= y); } ...
uniswap_public_repos/wallet/packages/ui/src/components
uniswap_public_repos/wallet/packages/ui/src/components/icons/Plus.tsx
import { Path, Svg } from 'react-native-svg' // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths import { createIcon } from '../factories/createIcon' export const [Plus, AnimatedPlus] = createIcon({ name: 'Plus', getIcon: (props) => ( <Svg fill="none" viewBox="0 0 16 16" {...props}> ...
uniswap_public_repos/interface/apps/web/src/nft/types
uniswap_public_repos/interface/apps/web/src/nft/types/collection/index.ts
import { Markets, Rarity, TokenType } from 'nft/types/common' import { NftActivityType, NftStandard, OrderStatus, } from 'uniswap/src/data/graphql/uniswap-data-api/__generated__/types-and-hooks' export interface CollectionInfoForAsset { collectionDescription?: string | null collectionImageUrl?: string colle...
uniswap_public_repos/interface/packages/wallet/src/features
uniswap_public_repos/interface/packages/wallet/src/features/transactions/TransactionHistoryUpdater.tsx
import { useApolloClient } from '@apollo/client' import dayjs from 'dayjs' import { useEffect, useMemo } from 'react' import { View } from 'react-native' import { batch, useDispatch, useSelector } from 'react-redux' import { PollingInterval } from 'uniswap/src/constants/misc' import { TransactionHistoryUpdaterQueryRe...
uniswap_public_repos
uniswap_public_repos/v4-periphery/LICENSE
GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is no...
uniswap_public_repos/interface/apps/web/src/nft
uniswap_public_repos/interface/apps/web/src/nft/utils/pooledAssets.ts
import { BigNumber } from '@ethersproject/bignumber' import { BagItem, BagItemStatus, GenieAsset, isPooledMarket, Markets } from 'nft/types' import { isInSameMarketplaceCollection, isInSameSudoSwapPool } from 'nft/utils' const PRECISION = '1000000000000000000' const PROTOCOL_FEE_MULTIPLIER = BigNumber.from('5000000000...
uniswap_public_repos
uniswap_public_repos/deploy-v3/tsconfig.json
{ "compilerOptions": { /* Visit https://aka.ms/tsconfig.json to read more about this file */ /* Basic Options */ // "incremental": true, /* Enable incremental compilation */ "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES201...
uniswap_public_repos/v3-sdk/src
uniswap_public_repos/v3-sdk/src/utils/index.ts
export * from './calldata' export * from './computePoolAddress' export * from './encodeRouteToPath' export * from './encodeSqrtRatioX96' export * from './fullMath' export * from './isSorted' export * from './liquidityMath' export * from './maxLiquidityForAmounts' export * from './mostSignificantBit' export * from './ne...
uniswap_public_repos
uniswap_public_repos/unisocks-erc721/README.md
## IPFS hashes Image: [`QmYN3R1YY5cSVW6mNHXz86n6HAvjJoNeVGXmwrQcYqgMUU`](https://cloudflare-ipfs.com/ipfs/QmYN3R1YY5cSVW6mNHXz86n6HAvjJoNeVGXmwrQcYqgMUU) JSON: [`QmNZEeAN1zk6hLoHHREVkZ7PoPYaoH7n6LR6w9QAcEc29h`](https://cloudflare-ipfs.com/ipfs/QmNZEeAN1zk6hLoHHREVkZ7PoPYaoH7n6LR6w9QAcEc29h) ## Addresses SOCKS: [`0x...
uniswap_public_repos/docs/docs/contracts/v4/reference/periphery
uniswap_public_repos/docs/docs/contracts/v4/reference/periphery/base/ImmutableState.md
# ImmutableState [Git Source](https://github.com/Uniswap/v4-periphery/blob/47e3c30ae8a0d7c086bf3e41bd0e7e3a854e280b/src/base/ImmutableState.sol) | Generated with [forge doc](https://book.getfoundry.sh/reference/forge/forge-doc) A collection of immutable state variables, commonly used across multiple contracts ## Sta...
uniswap_public_repos/v3-periphery/contracts
uniswap_public_repos/v3-periphery/contracts/test/MockObservable.sol
// SPDX-License-Identifier: UNLICENSED pragma solidity =0.7.6; contract MockObservable { Observation private observation0; Observation private observation1; struct Observation { uint32 secondsAgo; int56 tickCumulatives; uint160 secondsPerLiquidityCumulativeX128s; } constru...
uniswap_public_repos/v4-periphery/test
uniswap_public_repos/v4-periphery/test/libraries/Descriptor.t.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import {Descriptor} from "../../src/libraries/Descriptor.sol"; import {Test} from "forge-std/Test.sol"; import {TickMath} from "@uniswap/v4-core/src/libraries/TickMath.sol"; contract DescriptorTest is Test { function test_feeToPercentString_succeeds() publi...
uniswap_public_repos/mrkl-drop-data-chunks
uniswap_public_repos/mrkl-drop-data-chunks/chunks/0xc3b6d592b0bba67e723ff324fafca060e9c86a65.json
{"0xC3B6d592b0bbA67E723Ff324faFCA060e9C86A65":{"index":175896,"amount":"0x15af1d78b58c400000","proof":["0x25ed2e63e0addf0790fdad848d5002ea866b25ff75b794a4855fc8c28537d507","0xbf3b9aa87c5bfac0eec1dc05df6a91a733b4ccbc128fa9046c0ea1e52b70c0c4","0x4c0eee6504519cda7d0001a6f50041547692011bb36077f1402bbca338faf2e9","0xde85d17...
uniswap_public_repos/mrkl-drop-data-chunks
uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x9ac2b04f4fca71418271054ca07dbb6c36f0bf2c.json
{"0x9aC2B04F4fcA71418271054Ca07Dbb6C36F0bF2c":{"index":155781,"amount":"0x15af1d78b58c400000","proof":["0xcd96d7fa26e736e8816aa0315cdbb142bc9e32a5198ee157bd282ee15a49ce95","0x938b78feaf541b1d02739fc8fa552cfb12a053e70f33b7a68e50ea815946fd19","0x69c14000b61d049d7dafae8e31373ad1f85e779c5f793f06cdf34fe96a9ecdd4","0x406f694...
uniswap_public_repos/contracts/docs/autogen
uniswap_public_repos/contracts/docs/autogen/src/README.md
## Template Repo (Foundry) [![CI Status](../../actions/workflows/test.yaml/badge.svg)](../../actions) This template repo is a quick and easy way to get started with a new Solidity project. It comes with a number of features that are useful for developing and deploying smart contracts. Such as: - Pre-commit hooks for...
uniswap_public_repos/wallet/apps/mobile/ios/WidgetsCore
uniswap_public_repos/wallet/apps/mobile/ios/WidgetsCore/MobileSchema/README.md
# Swift Mobile GraphQL Schema This Framework contains autogenerated code that is generated from running Apollo iOS graphQL codegen. This code is not checked in, but the generated files are referenced for the XCode build process. ## Generating the Swift GraphQL Schema `yarn mobile ios:prebuild` ## Verifying Schema C...
uniswap_public_repos/ds-tools/dune
uniswap_public_repos/ds-tools/dune/summary/Ethereum_DEX_stats.sql
-- this query mirrors https://dune.xyz/queries/463288/879957 on Dune Analytics SELECT DATE_TRUNC('{{frequency}}', block_time) as date1, case WHEN project = 'Uniswap' OR project = 'Sushiswap' OR project = 'Curve' OR project = '0x Native' OR project = 'Bala...
uniswap_public_repos/mrkl-drop-data-chunks
uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x1f3a3bce6c53df7566a4f7c5ada7ca3b5703cfa5.json
{"0x1f3a3BCe6C53Df7566a4F7c5aDA7Ca3B5703CfA5":{"index":31729,"amount":"0x15af1d78b58c400000","proof":["0x5492ef3a86117134c6c66ffd683537bcd9074e2185e7fe646956746018ba5683","0xb8be781dd5d46938de4421b4def1dcd3fb853efa1be6a9b66a616886c6b8ff5d","0x6c0e317c1027e4cc9c15e9fcf62e5d13cdad9ff35f3ec0ed4fb31e8c376582fc","0xd906a0d8...
uniswap_public_repos/mrkl-drop-data-chunks
uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x335584eec38fd37b6a5b199c97a1406bd4711aa9.json
{"0x335584eeC38fD37B6a5b199c97a1406bd4711AA9":{"index":51106,"amount":"0x15af1d78b58c400000","proof":["0x2c3499e5cbf9bdf450f018eb1f0eaddae6d1e1836bd63862f7768318c2e34d3e","0x070b4b1999af457aa5e00decfab1f0920f23e78809f57a63a9785cdb0b57ea0f","0x6fba1d9258221b558a7adf1c2cc0f02cda19cb8910e2321b44898ef1b718c472","0xb6fda77f...
uniswap_public_repos/interface/apps/web/src/components
uniswap_public_repos/interface/apps/web/src/components/Charts/ChartHeader.tsx
import { useHeaderDateFormatter } from 'components/Charts/hooks' import { PROTOCOL_LEGEND_ELEMENT_ID } from 'components/Charts/types' import { getProtocolColor, getProtocolName } from 'graphql/data/util' import { useTheme } from 'lib/styled-components' import { UTCTimestamp } from 'lightweight-charts' import { ReactEle...
uniswap_public_repos/mrkl-drop-data-chunks
uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x8a9b844c131372b5790d2d2e2398640846ce4ebe.json
{"0x8a9B844c131372B5790d2d2e2398640846ce4eBe":{"index":139923,"amount":"0x15af1d78b58c400000","proof":["0x8d959214097384f568e79b884776259e03e67a74104520f52bdb2c11df7fcf8b","0xee7d7edc7f7cf1ed73d86f47e9ed56b3e024304a28794bfd25140f9774c649d9","0x9fa42b6bc53eb23f21753505a1c49b7bb0713b96aa7b411eb33b91f573b04c1b","0x5b1f351...
uniswap_public_repos/mask-app/public
uniswap_public_repos/mask-app/public/models/face_landmark_68_model-weights_manifest.json
[{"weights":[{"name":"dense0/conv0/filters","shape":[3,3,3,32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.004853619781194949,"min":-0.5872879935245888}},{"name":"dense0/conv0/bias","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.004396426443960153,"min":-0.7298067896973853}},{"...
uniswap_public_repos/convert-cidv0-cidv1/node_modules/cids
uniswap_public_repos/convert-cidv0-cidv1/node_modules/cids/dist/index.min.js
/*! For license information please see index.min.js.LICENSE.txt */ !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.Cids=n():e.Cids=n()}(window,(function(){return function(e){var n={};function t(i){if(...
uniswap_public_repos/contracts/lib/oz-v5.0.2/contracts/mocks
uniswap_public_repos/contracts/lib/oz-v5.0.2/contracts/mocks/token/ERC721ConsecutiveMock.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import {ERC721} from "../../token/ERC721/ERC721.sol"; import {ERC721Consecutive} from "../../token/ERC721/extensions/ERC721Consecutive.sol"; import {ERC721Pausable} from "../../token/ERC721/extensions/ERC721Pausable.sol"; import {ERC721Votes} from "../../token/...
uniswap_public_repos/v2-periphery
uniswap_public_repos/v2-periphery/test/ExampleFlashSwap.spec.ts
import chai, { expect } from 'chai' import { Contract } from 'ethers' import { MaxUint256 } from 'ethers/constants' import { BigNumber, bigNumberify, defaultAbiCoder, formatEther } from 'ethers/utils' import { solidity, MockProvider, createFixtureLoader, deployContract } from 'ethereum-waffle' import { expandTo18Decim...
uniswap_public_repos/wallet/packages/wallet/src/features/transactions
uniswap_public_repos/wallet/packages/wallet/src/features/transactions/transfer/transferTokenSaga.test.ts
import { call } from '@redux-saga/core/effects' import { BigNumber } from 'ethers' import { expectSaga } from 'redux-saga-test-plan' import * as matchers from 'redux-saga-test-plan/matchers' import { getNativeAddress } from 'wallet/src/constants/addresses' import { ChainId } from 'wallet/src/constants/chains' import { ...
uniswap_public_repos/wallet/apps/mobile/src/features
uniswap_public_repos/wallet/apps/mobile/src/features/telemetry/saga.ts
import { OriginApplication } from '@uniswap/analytics' import DeviceInfo from 'react-native-device-info' import { call, fork, takeEvery } from 'typed-redux-saga' import { analytics } from 'utilities/src/telemetry/analytics/analytics' import { ApplicationTransport } from 'utilities/src/telemetry/analytics/ApplicationTra...
uniswap_public_repos/mrkl-drop-data-chunks
uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x90ab71c69679dd998805ec539b3489c2cc626e57.json
{"0x90aB71c69679dd998805ec539b3489c2cc626E57":{"index":143382,"amount":"0x15af1d78b58c400000","proof":["0x45ac990358160f7420b220b0c60f5010cc0b092a6a66c46fea33775b1aad4a0a","0xc832db3a12990eb866b290e681f2742b389e631e42417463c9e4a0ec63b20b62","0x6c7842b14a7e3fcba5d4743b7665da77bfdb11da7c80c606fe6853cd2081bdf2","0x77d3cc6...
uniswap_public_repos/v4-periphery/test
uniswap_public_repos/v4-periphery/test/position-managers/PositionManager.multicall.t.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "forge-std/Test.sol"; import {PoolManager} from "@uniswap/v4-core/src/PoolManager.sol"; import {IPoolManager} from "@uniswap/v4-core/src/interfaces/IPoolManager.sol"; import {IHooks} from "@uniswap/v4-core/src/interfaces/IHooks.sol"; import {Currency, Cur...
uniswap_public_repos/v3-periphery-optimism/test
uniswap_public_repos/v3-periphery-optimism/test/shared/permit.ts
import { BigNumberish, constants, Signature, Wallet } from 'ethers' import { splitSignature } from 'ethers/lib/utils' import { TestERC20, TestERC20PermitAllowed } from '../../typechain-ovm' export async function getPermitSignature( wallet: Wallet, token: TestERC20 | TestERC20PermitAllowed, spender: string, val...