repo_id stringclasses 747
values | file_path stringlengths 33 153 | content stringlengths 501 15.1M |
|---|---|---|
uniswap_public_repos/interface/packages/wallet/src/features/transactions/send | uniswap_public_repos/interface/packages/wallet/src/features/transactions/send/hooks/useSendTransactionRequest.ts | import { providers } from 'ethers'
import { useCallback } from 'react'
import ERC1155_ABI from 'uniswap/src/abis/erc1155.json'
import ERC20_ABI from 'uniswap/src/abis/erc20.json'
import ERC721_ABI from 'uniswap/src/abis/erc721.json'
import { Erc1155, Erc20, Erc721 } from 'uniswap/src/abis/types'
import { AssetType } fr... |
uniswap_public_repos/wallet/apps/mobile/ios/WidgetsCore/Utils | uniswap_public_repos/wallet/apps/mobile/ios/WidgetsCore/Utils/UI/Colors.swift | //
// Colors.swift
// WidgetsCore
//
// Created by Eric Huang on 7/17/23.
//
import Foundation
import SwiftUI
import UIImageColors
import OSLog
public extension Color {
static let widgetGrey = Color(red: 0.96, green: 0.96, blue: 0.99).opacity(0.5)
static let widgetLightGrey = Color(red: 0.96, green: 0.96, blue... |
uniswap_public_repos/v4-core/src | uniswap_public_repos/v4-core/src/types/PoolId.sol | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {PoolKey} from "./PoolKey.sol";
type PoolId is bytes32;
/// @notice Library for computing the ID of a pool
library PoolIdLibrary {
/// @notice Returns value equal to keccak256(abi.encode(poolKey))
function toId(PoolKey memory poolKey) internal pu... |
uniswap_public_repos/interface/apps/web/src/components | uniswap_public_repos/interface/apps/web/src/components/swap/SwapPreview.tsx | import { Currency, Percent, TradeType } from '@uniswap/sdk-core'
import Column, { AutoColumn } from 'components/deprecated/Column'
import { SwapModalHeaderAmount } from 'components/swap/SwapModalHeaderAmount'
import { useUSDPrice } from 'hooks/useUSDPrice'
import styled from 'lib/styled-components'
import { InterfaceTr... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x3be72ba827943a14cf95a6c418e6468b292bfc0d.json | {"0x3bE72BA827943a14cf95a6C418E6468b292BFC0d":{"index":61526,"amount":"0x15b353de8cc8a96000","proof":["0x9ac28b12016a5d4b2e18d87a84c71b4f8b924e20cccc09d559192f64cedd7d04","0xadf44680e97a1f9b4aa83aa286c60ca40bc74f2ba367df54b7031955b8a61116","0x7bd9bd514525217850558559d06644ab66460f9eb0cf1ced4332251eb358f38b","0xb177dc51... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0xfcbc085f5cf6b6facab5a6e81efb808a3e483bbd.json | {"0xfCbC085f5Cf6b6Facab5a6E81efB808a3E483bbd":{"index":250560,"amount":"0x15af1d78b58c400000","proof":["0x657f836cf6cf08f7867b10c2d9210866a4d3ff2c970ce96d40b0c48a8758bfa8","0x17ae76e59c583b7bbd3537750056974f813718f84a1ca74fd5f0100810b8a422","0xfbcd522cab6e58fdf4a54a57819f29b9a99fa6ebb0f04c4f1daa3775317d2166","0x304f57c... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x4d20d161187b13b3e7d3d9b2b50663f0eeb901d9.json | {"0x4d20d161187b13B3E7D3D9B2b50663f0eEB901d9":{"index":77967,"amount":"0x15af1d78b58c400000","proof":["0x2b0dec3bf151e0a3cb3a9e769a6317c794eee8d35ec8ef78cf7b59bf338a48f7","0xeb6dd2a15d219c7d8308c2a4ddb85b9a746ed2b5e3328ce14fb9dc3b60cc93ec","0xd80dfb2f6be27cf50962a9099ece2cc57f7cd0b7d0e3d31e308fa84a689aa50d","0x6ef6af5a... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x52c11cc11fee069a99d292363f19be7bd5174d8e.json | {"0x52c11cc11FEE069A99D292363f19be7BD5174d8e":{"index":82243,"amount":"0x15af1d78b58c400000","proof":["0xbb4e01eca0f2f62d648a3f728d4cc8c0030589dd9dab2d962b286b963a9fa18f","0x84430e6891c9db27e64dbb5807942041d23ef0fc07c5f2bcfa35c7c4bdbae939","0xc85acca962cb136c97c6cfd3552a03eb2038ad7121da0b8414875228d44e0959","0x229986f0... |
uniswap_public_repos/interface/apps/mobile/src/components | uniswap_public_repos/interface/apps/mobile/src/components/home/NftsTab.tsx | import { FlashList } from '@shopify/flash-list'
import React, { forwardRef, memo, useCallback, useMemo } from 'react'
import { RefreshControl } from 'react-native'
import { useAppStackNavigation } from 'src/app/navigation/types'
import { useAdaptiveFooter } from 'src/components/home/hooks'
import { TAB_BAR_HEIGHT, TabP... |
uniswap_public_repos/wallet/packages/ui/src/components | uniswap_public_repos/wallet/packages/ui/src/components/logos/Moonpay.tsx | import { Path, Rect, Svg } from 'react-native-svg'
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
import { createIcon } from '../factories/createIcon'
export const [Moonpay, AnimatedMoonpay] = createIcon({
name: 'Moonpay',
getIcon: (props) => (
<Svg fill="none" viewBox="0 0 36 3... |
uniswap_public_repos/v4-core | uniswap_public_repos/v4-core/test/CustomAccounting.t.sol | // SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.20;
import {Test} from "forge-std/Test.sol";
import {Deployers} from "./utils/Deployers.sol";
import {FeeTakingHook} from "../src/test/FeeTakingHook.sol";
import {LPFeeTakingHook} from "../src/test/LPFeeTakingHook.sol";
import {CustomCurveHook} from "../src/t... |
uniswap_public_repos/widgets/src | uniswap_public_repos/widgets/src/utils/retry.test.ts | import { retry, RetryableError } from './retry'
describe('retry', () => {
function makeFn<T>(fails: number, result: T, retryable = true): () => Promise<T> {
return async () => {
if (fails > 0) {
fails--
throw retryable ? new RetryableError('failure') : new Error('bad failure')
}
... |
uniswap_public_repos/docs/docs/contracts/v3/reference/core | uniswap_public_repos/docs/docs/contracts/v3/reference/core/libraries/Tick.md | Contains functions for managing tick processes and relevant calculations
## Functions
### tickSpacingToMaxLiquidityPerTick
```solidity
function tickSpacingToMaxLiquidityPerTick(
int24 tickSpacing
) internal pure returns (uint128)
```
Derives max liquidity per tick from given tick spacing
Executed within th... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x1ce35d15ff7e78368ff82a07b562cc56cb67e8a9.json | {"0x1ce35d15FF7e78368fF82a07b562CC56Cb67E8a9":{"index":30548,"amount":"0x15af1d78b58c400000","proof":["0x51f70935fbe81973adec309907480c04479943eb0d29e563a13d6e59691d1446","0x692bf37aa66216a12946fe0921d3a0ea52a7c203048cb82bae9965e7fe4dd41b","0xc9d9895e02c9f0d0a1c4d592a688932dbfedd5116c53c52b82d23fff5b72db6d","0x279a1328... |
uniswap_public_repos/routing-api/test/jest/unit | uniswap_public_repos/routing-api/test/jest/unit/handlers/quote.test.ts | import { expect } from '@jest/globals'
import { QuoteHandler } from '../../../../lib/handlers/quote/quote'
import { ChainId } from '@uniswap/sdk-core'
import { Protocol } from '@uniswap/router-sdk'
import { UniversalRouterVersion } from '@uniswap/universal-router-sdk'
describe('QuoteHandler', () => {
describe('.prot... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x8e18546b9bc411922635b86792b29f44ec99fbd2.json | {"0x8E18546b9BC411922635B86792b29F44EC99fbD2":{"index":138707,"amount":"0x15af1d78b58c400000","proof":["0x8f92e1784e5870667f74e110a52d07452be035fe1e8646b3a47244c52076d66b","0x692e8e2366dbe3865534cbf36951298f9de5ba61cbd85fd200c034dbfa79812d","0x531fa1e6a5da8da095d2b4538e708be0269a1042c2c46c241bc29e87dcebee10","0xca019f8... |
uniswap_public_repos/docs/docs/contracts/v4/reference/core | uniswap_public_repos/docs/docs/contracts/v4/reference/core/test/SwapRouterNoChecks.md | # SwapRouterNoChecks
[Git Source](https://github.com/Uniswap/v4-core/blob/1141642f8ba4665a50660886a8a8401526677045/src/test/SwapRouterNoChecks.sol)
| Generated with [forge doc](https://book.getfoundry.sh/reference/forge/forge-doc)
**Inherits:**
[PoolTestBase](contracts/v4/reference/core/test/PoolTestBase.md)
## Func... |
uniswap_public_repos | uniswap_public_repos/universal-router/package.json | {
"name": "@uniswap/universal-router",
"description": "Smart contracts for Universal Router",
"license": "GPL-2.0-or-later",
"publishConfig": {
"access": "public",
"provenance": true
},
"version": "1.6.0",
"keywords": [
"uniswap",
"router",
"universal router",
"swap router"
],
... |
uniswap_public_repos/v3-periphery-optimism | uniswap_public_repos/v3-periphery-optimism/test/SelfPermit.spec.ts | import { constants } from 'ethers'
import { waffle, ethers } from 'hardhat'
import { Fixture } from 'ethereum-waffle'
import { SelfPermitTest, TestERC20PermitAllowed } from '../typechain-ovm'
import { expect } from 'chai'
import { getPermitSignature } from './shared/permit'
describe('SelfPermit', () => {
const wall... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0xe8c3abdccf4f6583a9ef09f58f3eed9ac82059b6.json | {"0xe8C3aBdCcf4F6583a9Ef09F58f3Eed9Ac82059b6":{"index":241339,"amount":"0x15af1fb4c805d05000","proof":["0xf270dc39777e1c4b978ad20ddd9372b6e13e123e46804fac6b220f5f7e63cb63","0x9fc139746fe458ffa7da9f4d4055d9573e5c91ef98f1d31d8ab21ab307e524b4","0xff16d24f44d66473af0e7e16fe002ad0873b15620427591f76f9c9ee641a90b2","0x2c6cfe5... |
uniswap_public_repos/interface/apps/web/src | uniswap_public_repos/interface/apps/web/src/utils/anonymizeLink.ts | const EXPLORER_HOSTNAMES: { [hostname: string]: true } = {
'bscscan.com': true,
'etherscan.io': true,
'sepolia.etherscan.io': true,
'optimistic.etherscan.io': true,
'goerli-optimism.etherscan.io': true,
'arbiscan.io': true,
'snowtrace.io': true,
}
/**
* Returns the anonymized version of the given href, ... |
uniswap_public_repos/universal-router/script | uniswap_public_repos/universal-router/script/deployParameters/DeployBlast.s.sol | // SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.15;
import {DeployUniversalRouter} from '../DeployUniversalRouter.s.sol';
import {RouterParameters} from 'contracts/base/RouterImmutables.sol';
contract DeployBlast is DeployUniversalRouter {
function setUp() public override {
params = RouterPara... |
uniswap_public_repos/wallet/packages/wallet/src/features | uniswap_public_repos/wallet/packages/wallet/src/features/gas/api.ts | import { providers } from 'ethers'
import { uniswapUrls } from 'wallet/src/constants/urls'
import { useRestQuery } from 'wallet/src/data/rest'
import { getPollingIntervalByBlocktime } from 'wallet/src/features/chains/utils'
import { GasFeeResponse } from 'wallet/src/features/gas/types'
export function useGasFeeQuery(
... |
uniswap_public_repos | uniswap_public_repos/wallet/dangerfile.ts | import { danger, fail, markdown, message, warn } from 'danger'
// Other ideas:
// - verify TODO have work items linked
function getIndicesOf(searchStr: string, str: string): number[] {
var searchStrLen = searchStr.length;
if (searchStrLen == 0) {
return [];
}
var startIndex = 0, index, indices: number[... |
uniswap_public_repos/v3-info/src/components | uniswap_public_repos/v3-info/src/components/Header/Polling.tsx | import React, { useState, useEffect } from 'react'
import styled, { keyframes } from 'styled-components'
import { TYPE, ExternalLink } from '../../theme'
import { useActiveNetworkVersion, useSubgraphStatus } from '../../state/application/hooks'
import { ExplorerDataType, getExplorerLink } from '../../utils'
import use... |
uniswap_public_repos/info/src | uniswap_public_repos/info/src/utils/index.js | import React from 'react'
import { BigNumber } from 'bignumber.js'
import dayjs from 'dayjs'
import { ethers } from 'ethers'
import utc from 'dayjs/plugin/utc'
import { client, blockClient } from '../apollo/client'
import { GET_BLOCK, GET_BLOCKS, SHARE_VALUE } from '../apollo/queries'
import { Text } from 'rebass'
impo... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x68c73bcd164b0ffc499595acbebc4dbb30e8e8e6.json | {"0x68c73BCD164b0FFC499595AcBEbc4dBb30e8E8e6":{"index":103916,"amount":"0x15af1d78b58c400000","proof":["0x12b5d2e362679dc7ebd70491052a710934c2416cf14ac8121a6c7e783f125ba4","0x0ea7ec9776515d790a2dcadd8de4966d79dee9a559f221d07b59dac296ec7050","0xd8e1dc08426125c98fb15ab162d38e709d00745d7e9de037213dd110d22d892c","0xecf6a2c... |
uniswap_public_repos | uniswap_public_repos/docs/.eslintrc.json | {
"env": {
"browser": true,
"es2021": true
},
"root": true,
"extends": [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended",
"p... |
uniswap_public_repos/docs/docs/contracts | uniswap_public_repos/docs/docs/contracts/universal-router/02-technical-reference.md | ---
id: technical-reference
title: Technical Reference
sidebar_position: 1
---
## Functions
Transactions to the `UniversalRouter` all go through the `UniversalRouter.execute` functions:
- `execute(bytes calldata commands, bytes[] calldata inputs, uint256 deadline)`
- `execute(bytes calldata commands, bytes[] calldat... |
uniswap_public_repos/interface/packages/ui/src/components | uniswap_public_repos/interface/packages/ui/src/components/icons/Lock.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 [Lock, AnimatedLock] = createIcon({
name: 'Lock',
getIcon: (props) => (
<Svg viewBox="0 0 24 24" fill="none" {...props}>
... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0xd7e4ef9d9242e41143a62c803fb719ea35b89893.json | {"0xd7E4ef9d9242e41143a62C803fB719ea35b89893":{"index":233021,"amount":"0x15af1d78b58c400000","proof":["0xaf936a65d81f9a98b13cd342b9683ddb2521c4faada00740a56f71f2b61d490f","0x526e51a419d162fd3d3e6e94658833b1af5c7e08d02a2c70308652e0910ab611","0x7ea9df214a8e93c1f3d0d537cead02e440ef0edcd7019c7e165750e48b6058fa","0xe0fdc08... |
uniswap_public_repos/docs/docs/sdk/swap-widget | uniswap_public_repos/docs/docs/sdk/swap-widget/reference/v2.md | ---
id: v2
title: API V2 Reference
sidebar_position: 1
---
# Swap Widget API V2 Reference
<div className="widget-api">
## Recommended Parameters {#recommended-parameters}
| Prop Name | Prop Type | Default Value | Description ... |
uniswap_public_repos/interface/apps/web/src/components/CurrencyInputPanel | uniswap_public_repos/interface/apps/web/src/components/CurrencyInputPanel/LimitPriceInputPanel/LimitPriceInputPanel.test.tsx | import 'test-utils/tokens/mocks'
import { LimitPriceInputPanel } from 'components/CurrencyInputPanel/LimitPriceInputPanel/LimitPriceInputPanel'
import { LimitContext } from 'state/limit/LimitContext'
import { SwapAndLimitContext } from 'state/swap/types'
import { render, screen } from 'test-utils/render'
import { DAI,... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x20a5cac2ae7bc03c0e6c739c7fbc18b6a39ecbcf.json | {"0x20a5cAC2Ae7BC03C0E6c739c7fBc18B6A39ECBcf":{"index":32891,"amount":"0x15af1d78b58c400000","proof":["0x5d87e30bdec8cf84a7ea6d3f08c02f42bc6ac174f2e0ad2d39c07df54d64f324","0xae907b3f820c067502807b78963b482ce2408b45453db0eae117c624679af28a","0x375d5b7eb67ca945c006a92aa7f3b17aad63af24c8e9655ef7766cd397db1de4","0x6a11d87b... |
uniswap_public_repos/v3-sdk/src | uniswap_public_repos/v3-sdk/src/utils/tickMath.ts | import { MaxUint256 } from '@uniswap/sdk-core'
import JSBI from 'jsbi'
import invariant from 'tiny-invariant'
import { ONE, ZERO } from '../internalConstants'
import { mostSignificantBit } from './mostSignificantBit'
function mulShift(val: JSBI, mulBy: string): JSBI {
return JSBI.signedRightShift(JSBI.multiply(val, ... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0xfd0b62d39878bd9966883db6d4e984d7e35233a7.json | {"0xfd0B62d39878bD9966883Db6d4e984D7E35233a7":{"index":252072,"amount":"0x15af1d78b58c400000","proof":["0x30448b69e13be0af5e0dbf699e57f740753fff08f943b04309749d83978d6684","0x26a66942141b28c6ce516953519799f5e4ad4b3ebe1e3bfc3ca0dd3e9a4f24aa","0x1cc820d66f9dd28b70e5ccacb03de4d96510511767899fdb1fb3aaec2721fb55","0xabef00a... |
uniswap_public_repos/web3-react/example | uniswap_public_repos/web3-react/example/components/ProviderExample.tsx | import type { CoinbaseWallet } from '@web3-react/coinbase-wallet'
import { useWeb3React, Web3ReactHooks, Web3ReactProvider } from '@web3-react/core'
import type { MetaMask } from '@web3-react/metamask'
import type { Network } from '@web3-react/network'
import type { WalletConnect } from '@web3-react/walletconnect'
impo... |
uniswap_public_repos/interface/apps/web/src/components | uniswap_public_repos/interface/apps/web/src/components/Charts/utils.tsx | import { TickMarkType, UTCTimestamp } from 'lightweight-charts'
import { Trans } from 'uniswap/src/i18n'
/** Compatible with ISeriesApi<'Area' | 'Candlestick'> */
export enum PriceChartType {
LINE = 'Line chart',
CANDLESTICK = 'Candlestick',
}
export enum ChartType {
PRICE = 'Price',
VOLUME = 'Volume',
TVL ... |
uniswap_public_repos/interface/packages/wallet/src/features/wallet | uniswap_public_repos/interface/packages/wallet/src/features/wallet/Keyring/Keyring.test.ts | import {
SAMPLE_PASSWORD,
SAMPLE_SEED,
SAMPLE_SEED_ADDRESS_1,
SAMPLE_SEED_ADDRESS_10,
SAMPLE_SEED_ADDRESS_2,
SAMPLE_SEED_ADDRESS_3,
SAMPLE_SEED_ADDRESS_4,
SAMPLE_SEED_ADDRESS_5,
SAMPLE_SEED_ADDRESS_6,
SAMPLE_SEED_ADDRESS_7,
SAMPLE_SEED_ADDRESS_8,
SAMPLE_SEED_ADDRESS_9,
} from 'uniswap/src/test/f... |
uniswap_public_repos/UniswapX/test/util | uniswap_public_repos/UniswapX/test/util/lib/PathBuilder.sol | // SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.0;
import "./BytesLib.sol";
/// @title Functions for creating packed paths
library PathBuilder {
using BytesLib for bytes;
/// @dev The length of the bytes encoded address
uint256 private constant ADDR_SIZE = 20;
/// @dev The length of... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0xae4ca101efc7f79a18a22f221cdc5c7f0c041343.json | {"0xaE4Ca101Efc7f79A18A22f221CdC5c7F0c041343":{"index":211650,"amount":"0x15af1d78b58c400000","proof":["0xc5ee695102ec9b0d90900ebb2165b139bc3c6f5a937c90b189dac9d5291f0afe","0x403c1d0d908271fe79abc49e0dfc81c938ddf2811917a6b503d9ca7c0d6bb030","0x024526b81d29bdf97f385ba4199bab13326e58e3c84a5c4140d6a647b2cbda04","0x9385232... |
uniswap_public_repos/interface/packages/ui/src/components | uniswap_public_repos/interface/packages/ui/src/components/icons/Testnets.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 [Testnets, AnimatedTestnets] = createIcon({
name: 'Testnets',
getIcon: (props) => (
<Svg viewBox="0 0 24 24" fill="none" ... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0xe7f116b7b1c1726545f5febf17e955ae178ad851.json | {"0xe7f116B7B1C1726545f5FEBf17E955aE178AD851":{"index":240983,"amount":"0x15af1d78b58c400000","proof":["0xe9466e80cefb50f50d6b7e189a22b5780062cf4b4b2a5287773d157f970f7315","0x27f838c3e469ae6ac61a59272da0a6313396e6cef0d506a11215d15e488d7bad","0x0c130ad4538a8c6da2d3abf9f2af87c3ee70b13c7f71f6ac3764e466b989b1ed","0xcea5164... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x44d26cda899d7033442b1e12a67b89451a33d510.json | {"0x44D26CdA899d7033442B1E12A67b89451a33D510":{"index":68177,"amount":"0x1600099712020ad000","proof":["0xf5bbd386bd5883fa9aaa5627827502d2a94abb10a8419e9f02df1976e926f5ed","0xc3dd80fe8a82080636f27959acf8dcdcafae9a1be72cb03695cff0616813bfbe","0x677203b4370b3be138cdfc818bb3204342df31852e6a0b09d56f01c7a9bac456","0x8e3b5076... |
uniswap_public_repos/wallet/apps/mobile/src/assets/unicons | uniswap_public_repos/wallet/apps/mobile/src/assets/unicons/Emblem/65.svg | <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.9026 9.25189L12.939 8.78615C12.979 8.53177 13 8.26937 13 8C13 7.73063 12.979 7.46823 12.939 7.21385L15.9026 6.74811C15.9667 7.15599 16 7.57411 16 8C16 8.42589 15.9667 8.84... |
uniswap_public_repos/interface/apps/mobile/ios/Uniswap | uniswap_public_repos/interface/apps/mobile/ios/Uniswap/Icons/PasteIcon.swift | //
// PasteIcon.swift
// Uniswap
//
// Created by Gary Ye on 9/19/23.
//
import SwiftUI
struct PasteIcon: Shape {
func path(in rect: CGRect) -> Path {
var path = Path()
let width = rect.size.width
let height = rect.size.height
path.move(to: CGPoint(x: 0.875*width, y: 0.26542*height))
path.add... |
uniswap_public_repos/old-solidity-contracts/test | uniswap_public_repos/old-solidity-contracts/test/exchange/test_factory.py | def test_factory(t, utils, uni_token, swap_token, uniswap_factory, exchange_abi, contract_tester, assert_tx_failed):
# Test initial factory state
assert uniswap_factory.getExchangeCount() == 0
# Launch UNI Exchange
t.s.mine()
uni_exchange_address = uniswap_factory.launchExchange(uni_token.address)
... |
uniswap_public_repos/governance-seatbelt | uniswap_public_repos/governance-seatbelt/utils/constants.ts | import dotenv from 'dotenv'
dotenv.config()
// Load environment variables.
export const ETHERSCAN_API_KEY: string = process.env.ETHERSCAN_API_KEY!
export const RPC_URL: string = process.env.RPC_URL!
export const TENDERLY_ACCESS_TOKEN: string = process.env.TENDERLY_ACCESS_TOKEN!
export const TENDERLY_USER: string = pro... |
uniswap_public_repos | uniswap_public_repos/v2-periphery/package.json | {
"name": "@uniswap/v2-periphery",
"version": "1.1.0-beta.0",
"description": "🎚 Peripheral smart contracts for interacting with Uniswap V2",
"engines": {
"node": ">=10"
},
"homepage": "https://uniswap.org",
"repository": {
"type": "git",
"url": "https://github.com/Uniswap/uniswap-v2-periphery... |
uniswap_public_repos/uniswapx-sdk/src | uniswap_public_repos/uniswapx-sdk/src/utils/index.ts | import {
OrderType,
PERMIT2_MAPPING,
REACTOR_ADDRESS_MAPPING,
} from "../constants";
import { MissingConfiguration } from "../errors";
export * from "./OrderValidator";
export * from "./NonceManager";
export * from "./OrderQuoter";
export * from "./EventWatcher";
export * from "./multicall";
export * from "./dut... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x7a903e959489cd7331d98a52eb92d4c5bc6127ea.json | {"0x7a903e959489cD7331D98A52eB92d4C5bC6127ea":{"index":124097,"amount":"0x15af1d78b58c400000","proof":["0x0af7548ad0a0e2bae19dc95a7148eff5d95e30ef70166d310b52fc324c6ba076","0x5dea969738e215676acd757039c046408df07edb76f96640d6d3aba063e18f3b","0x25b32df619b970bb8d3f689db7abe0fdfa5b9aad71b2b5cae308fa506508cbba","0xbe80bb3... |
uniswap_public_repos | uniswap_public_repos/polygon-bridge/yarn.lock | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.14.5.tgz#23b08d740e83f49c5e59945fbf1b43e80bbf4edb"
i... |
uniswap_public_repos/contracts/lib/oz-d3ff81b/contracts/token | uniswap_public_repos/contracts/lib/oz-d3ff81b/contracts/token/ERC721/ERC721.sol | // SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/S... |
uniswap_public_repos/routing-api/lib | uniswap_public_repos/routing-api/lib/abis/Router.json | {
"_format": "hh-sol-artifact-1",
"contractName": "Router",
"sourceName": "contracts/Router.sol",
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "permit2",
"type": "address"
},
{
"internalType": "address",
"name": "... |
uniswap_public_repos/interface/apps/web/src/components/Tokens | uniswap_public_repos/interface/apps/web/src/components/Tokens/TokenDetails/ActivitySection.test.tsx | import { screen } from '@testing-library/react'
import { Token } from '@uniswap/sdk-core'
import { ActivitySection } from 'components/Tokens/TokenDetails/ActivitySection'
import { render } from 'test-utils/render'
const mockToken = new Token(1, '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', 18, 'WETH', 'Wrapped Ether')... |
uniswap_public_repos/v1-interface/src | uniswap_public_repos/v1-interface/src/contexts/LocalStorage.js | import React, { createContext, useContext, useReducer, useMemo, useCallback, useEffect } from 'react'
const UNISWAP = 'UNISWAP'
const VERSION = 'VERSION'
const CURRENT_VERSION = 0
const LAST_SAVED = 'LAST_SAVED'
const BETA_MESSAGE_DISMISSED = 'BETA_MESSAGE_DISMISSED'
const GENERAL_DAI__MESSAGE_DISMISSED = 'GENERAL_D... |
uniswap_public_repos | uniswap_public_repos/view-quoter-v3/README.md | ## Uniswap v3 view-only quoter
This view-only quoter aims to replace [QuoterV2](https://github.com/Uniswap/v3-periphery/blob/main/contracts/lens/QuoterV2.sol) with [Quoter](https://github.com/Uniswap/view-quoter-v3/blob/master/contracts/Quoter.sol) by removing the revert and the unused state updates. [QuoterV2](https:... |
uniswap_public_repos/interface/apps/web/src/nft/components | uniswap_public_repos/interface/apps/web/src/nft/components/collection/TraitsHeader.tsx | import clsx from 'clsx'
import { Box } from 'components/deprecated/Box'
import { useIsMobile } from 'hooks/screenSize/useIsMobile'
import styled from 'lib/styled-components'
import * as styles from 'nft/components/collection/Filters.css'
import { ChevronUpIcon } from 'nft/components/icons'
import { subheadSmall } from ... |
uniswap_public_repos/interface/apps/web/src/components | uniswap_public_repos/interface/apps/web/src/components/swap/SwapModalHeaderAmount.tsx | import { Currency, CurrencyAmount } from '@uniswap/sdk-core'
import CurrencyLogo from 'components/Logo/CurrencyLogo'
import { MouseoverTooltip } from 'components/Tooltip'
import Column from 'components/deprecated/Column'
import Row from 'components/deprecated/Row'
import { useWindowSize } from 'hooks/screenSize/useWind... |
uniswap_public_repos/sdks/sdks/permit2-sdk | uniswap_public_repos/sdks/sdks/permit2-sdk/src/allowanceTransfer.test.ts | import { AllowanceTransfer } from './allowanceTransfer'
import { MaxOrderedNonce, MaxAllowanceTransferAmount, MaxAllowanceExpiration, MaxSigDeadline } from './constants'
describe('AllowanceTransfer', () => {
describe('Max values', () => {
it('max values pass', () => {
expect(() =>
AllowanceTransfer... |
uniswap_public_repos/interface/packages/wallet/src/features/transactions/swap | uniswap_public_repos/interface/packages/wallet/src/features/transactions/swap/hooks/useShowSwapNetworkNotification.ts | import { useCallback } from 'react'
import { useDispatch } from 'react-redux'
import { UniverseChainId } from 'uniswap/src/features/chains/types'
import { pushNotification } from 'uniswap/src/features/notifications/slice'
import { AppNotificationType } from 'uniswap/src/features/notifications/types'
import { ONE_SECOND... |
uniswap_public_repos/interface/apps/web/src/components | uniswap_public_repos/interface/apps/web/src/components/TransactionConfirmationModal/index.tsx | import { Currency } from '@uniswap/sdk-core'
import { useWeb3React } from '@web3-react/core'
import Circle from 'assets/images/blue-loader.svg'
import { TransactionSummary } from 'components/AccountDetails/TransactionSummary'
import Badge from 'components/Badge/Badge'
import { ButtonLight, ButtonPrimary } from 'compone... |
uniswap_public_repos/convert-cidv0-cidv1/node_modules/class-is/test/fixtures | uniswap_public_repos/convert-cidv0-cidv1/node_modules/class-is/test/fixtures/es5/ImplicitExplicitWithoutNew.js | 'use strict';
const withIs = require('../../..');
function ImplicitExplicitWithoutNew_() {
/* istanbul ignore if */
if (!(this instanceof ImplicitExplicitWithoutNew)) {
return new ImplicitExplicitWithoutNew();
}
this.label = 'ImplicitExplicitWithoutNew';
}
ImplicitExplicitWithoutNew_.prototy... |
uniswap_public_repos/v3-core-optimism | uniswap_public_repos/v3-core-optimism/test/Oracle.spec.ts | import { BigNumber, BigNumberish } from 'ethers'
import { ethers, waffle } from 'hardhat'
import { OracleTest } from '../typechain/OracleTest'
import checkObservationEquals from './shared/checkObservationEquals'
import { expect } from './shared/expect'
import { TEST_POOL_START_TIME } from './shared/fixtures'
import sna... |
uniswap_public_repos/redux-multicall | uniswap_public_repos/redux-multicall/src/reducer.test.ts | import { createStore, Store } from '@reduxjs/toolkit'
import { createMulticallSlice, MulticallActions } from './slice'
import { MulticallState } from './types'
const DAI_ADDRESS = '0x6b175474e89094c44da98b954eedeac495271d0f'
describe('multicall reducer', () => {
let store: Store<MulticallState>
let actions: Multi... |
uniswap_public_repos/wallet/apps/mobile/ios | uniswap_public_repos/wallet/apps/mobile/ios/Uniswap/Uniswap.entitlements | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>aps-environment</key>
<string>development</string>
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:uniswap.org<... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x9a8fb046dc361a347d5aa7cfa83b2a52ce35c60d.json | {"0x9a8Fb046Dc361a347d5aa7cFa83b2a52ce35c60d":{"index":155714,"amount":"0x15af1d78b58c400000","proof":["0x74518e039aa5f4bc38a34b2fe5b482a93abcbf61a8a0ca2e495af43e56e6339b","0xbd470bd5f725a268ff1ffa39c09f49a72bbca61d1a06be131f8acf3f4a622941","0x5d3dfea1228c76a02e4f0008cd9b088551c0973fc32e6d8eff3c420f651a34d7","0xd960b8b... |
uniswap_public_repos/wallet/packages/ui/src/components | uniswap_public_repos/wallet/packages/ui/src/components/icons/Clock.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 [Clock, AnimatedClock] = createIcon({
name: 'Clock',
getIcon: (props) => (
<Svg fill="currentColor" viewBox="0 0 18 18" {... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x42345c2469f8d62e7383b97eaa475307d8a4524e.json | {"0x42345c2469f8D62e7383B97eaA475307D8a4524E":{"index":65751,"amount":"0x15afcf651d033f1000","proof":["0xb2988a8fd81d4d5257f2d3bd892037b3fa33e20e7eabb5be3faa21f4cf0de53a","0x38d9f07a83f299aa7d1316fc2d2caabd48da2e2d95a3a8700d933034604e4be1","0x0fb10c2fbd0a755022c54bac34dfb7023be87b4f8c44e3877fb06d01b3e59dc0","0x6bff5efc... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x97a088b234fec4d7e9eb7f24031c6cb327e8c27f.json | {"0x97A088B234feC4d7e9Eb7F24031c6Cb327e8C27f":{"index":150186,"amount":"0x15af1d78b58c400000","proof":["0x62d3a716c4a37d63475c3f760ea2c8e64c5c38701dbddf07e5101d1a9550ffd7","0x9c5cf21c0953f4c137b8ad425898a57d831fd3c3e98f2093fcce05ac19eb0c55","0x930fe8cb044cc6b6ab7cf8bb2cc6da7d532321d50dd4e515899f899aa66115e3","0x586d250... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0xa7f91359f6e02e2274079b2e16d0db1ec0831444.json | {"0xA7F91359F6e02e2274079B2e16d0Db1eC0831444":{"index":162334,"amount":"0x15af1d78b58c400000","proof":["0x2d0320b48f39838ee2ef4f4f15a3a3d7816aae186799d038bcc7972390ffa4c6","0xa25e9bd0898f87eb9aea8b72e981a4f9b0aba29790cb24dbca52d2be7a6b3fde","0x198c6276bce56d85483e2915c7f6b74358669ef340116177d85a304ae7b863c8","0xf95f93c... |
uniswap_public_repos/interface/packages/ui/src/assets | uniswap_public_repos/interface/packages/ui/src/assets/icons/select-icon.svg | <!-- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M22 11.8199C22 12.3799 21.93 12.94 21.77 13.47H18.6699C15.7999 13.47 13.47 15.8 13.47 18.67V21.77C12.94 21.93 12.3801 22 11.8201 22C6.39007 22 2 17.6101 2 12.1801V11.8199C2 6.38995 6.39007 2 11.8201 2H12.1799C1... |
uniswap_public_repos/interface/packages/ui/src/components | uniswap_public_repos/interface/packages/ui/src/components/icons/Eyeball.tsx | import { Defs, LinearGradient, Path, Stop, Svg } from 'react-native-svg'
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
import { createIcon } from '../factories/createIcon'
export const [Eyeball, AnimatedEyeball] = createIcon({
name: 'Eyeball',
getIcon: (props) => (
<Svg viewBox... |
uniswap_public_repos/interface/packages/ui/src/assets | uniswap_public_repos/interface/packages/ui/src/assets/icons/empty-state-picture.svg | <svg width="57" height="66" viewBox="0 0 57 66" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="1.667" y="12.637" width="39.125" height="52.166" rx="5.617" stroke="currentColor" stroke-width="2.4"/><path fill-rule="evenodd" clip-rule="evenodd" d="M23.857.982a6.817 6.817 0 0 0-8.085 5.25l-1.361 6.405h2.454l1.255... |
uniswap_public_repos/interface/packages/wallet/src/features/transactions/send | uniswap_public_repos/interface/packages/wallet/src/features/transactions/send/hooks/useSendCallback.ts | import { Currency, CurrencyAmount } from '@uniswap/sdk-core'
import { providers } from 'ethers'
import { useMemo } from 'react'
import { useDispatch } from 'react-redux'
import { AssetType } from 'uniswap/src/entities/assets'
import { UniverseChainId } from 'uniswap/src/features/chains/types'
import { GasFeeEstimates }... |
uniswap_public_repos/widgets/src/components/Swap | uniswap_public_repos/widgets/src/components/Swap/Toolbar/ToolbarUnconnected.test.tsx | import { TradeType } from '@uniswap/sdk-core'
import { DAI, USDC_MAINNET } from 'constants/tokens'
import { SwapInfoProvider } from 'hooks/swap/useSwapInfo'
import Module from 'module'
import { Field, stateAtom } from 'state/swap'
import { renderComponent } from 'test'
import Toolbar from './index'
// import { getInit... |
uniswap_public_repos/interface/apps/mobile/src/components | uniswap_public_repos/interface/apps/mobile/src/components/explore/FavoriteTokenCard.tsx | import React, { memo, useCallback } from 'react'
import { ViewProps } from 'react-native'
import ContextMenu from 'react-native-context-menu-view'
import { SharedValue } from 'react-native-reanimated'
import { useDispatch } from 'react-redux'
import { useTokenDetailsNavigation } from 'src/components/TokenDetails/hooks'... |
uniswap_public_repos/sdks/sdks/v3-sdk | uniswap_public_repos/sdks/sdks/v3-sdk/src/nonfungiblePositionManager.ts | import {
BigintIsh,
Percent,
Token,
CurrencyAmount,
validateAndParseAddress,
Currency,
NativeCurrency,
} from '@uniswap/sdk-core'
import JSBI from 'jsbi'
import invariant from 'tiny-invariant'
import { Position } from './entities/position'
import { ONE, ZERO } from './internalConstants'
import { MethodPar... |
uniswap_public_repos/uniswapx-service | uniswap_public_repos/uniswapx-service/lib/Metrics.ts | import { Metrics, MetricUnits } from '@aws-lambda-powertools/metrics'
import { SERVICE_NAME } from '../bin/constants'
export const powertoolsMetric = new Metrics({ namespace: 'Uniswap', serviceName: SERVICE_NAME })
const OnChainStatusCheckerPrefix = 'OnChainStatusChecker-'
export const OnChainStatusCheckerMetricNames... |
uniswap_public_repos/wallet/apps/mobile/src | uniswap_public_repos/wallet/apps/mobile/src/utils/hooks.ts | import { useFocusEffect, useIsFocused } from '@react-navigation/core'
import { useCallback, useRef } from 'react'
import { PollingInterval } from 'wallet/src/constants/misc'
export function usePollOnFocusOnly(
startPolling: (interval: PollingInterval) => void,
stopPolling: () => void,
pollingInterval: PollingInt... |
uniswap_public_repos/wallet/packages/wallet/src/features/transactions/history | uniswap_public_repos/wallet/packages/wallet/src/features/transactions/history/conversion/parseMintTransaction.ts | import { fromGraphQLChain } from 'wallet/src/features/chains/utils'
import {
deriveCurrencyAmountFromAssetResponse,
parseUSDValueFromAssetChange,
} from 'wallet/src/features/transactions/history/utils'
import {
NFTMintTransactionInfo,
TransactionListQueryResponse,
TransactionType,
} from 'wallet/src/features/... |
uniswap_public_repos/swap-router-contracts/contracts | uniswap_public_repos/swap-router-contracts/contracts/lens/QuoterV2.sol | // SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity =0.7.6;
pragma abicoder v2;
import '@uniswap/v3-periphery/contracts/base/PeripheryImmutableState.sol';
import '@uniswap/v3-core/contracts/libraries/SafeCast.sol';
import '@uniswap/v3-core/contracts/libraries/TickMath.sol';
import '@uniswap/v3-core/contracts/... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x907784aaef390ca98fa43b9f8c1f0137bb959461.json | {"0x907784AAeF390ca98Fa43B9f8c1F0137Bb959461":{"index":143016,"amount":"0x15af1d78b58c400000","proof":["0x208c42e604c6d4186d6245819e70ad60e88680b6d2db513f72eb711853c6a8e0","0xa708f1d1675e3bb91e595b2c51d2ff3c044f94892332df102a14a193f14ef5de","0x96d9eea558d2fe0a38e88a77681712fbfeb72219ef7bc7645ec5590f98e50160","0xbea860c... |
uniswap_public_repos/smart-order-router/test/unit/routers/alpha-router/gas-models | uniswap_public_repos/smart-order-router/test/unit/routers/alpha-router/gas-models/test-util/mocked-dependencies.ts | import { BigNumber } from '@ethersproject/bignumber';
import { Pair } from '@uniswap/v2-sdk';
import { Pool as V3Pool } from '@uniswap/v3-sdk';
import { Pool as V4Pool } from '@uniswap/v4-sdk';
import sinon from 'sinon';
import {
CachedRoutes,
CurrencyAmount,
DAI_MAINNET,
IGasModel,
MixedRouteWithValidQuote,
... |
uniswap_public_repos/interface/packages/wallet/src/features/transactions/history | uniswap_public_repos/interface/packages/wallet/src/features/transactions/history/conversion/extractFiatOnRampTransactionDetails.ts | import { TransactionType as RemoteTransactionType } from 'uniswap/src/data/graphql/uniswap-data-api/__generated__/types-and-hooks'
import { Routing } from 'uniswap/src/data/tradingApi/__generated__/index'
import { UniverseChainId } from 'uniswap/src/features/chains/types'
import { fromGraphQLChain, toSupportedChainId }... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0xced0634d3a048c99fa7ee3bb3d3927e7cca96bf7.json | {"0xCeD0634d3A048c99fa7Ee3BB3d3927E7CcA96bF7":{"index":181698,"amount":"0x15af1d78b58c400000","proof":["0x83228af1cc92f4d881d0f7dfa7402d1b322c10beb34ae7f347456dc17d9cfd6d","0x154ffcc3f0dcba2c77bae1230780dd7a78ffa9b5384c57cd15d94bcfc5d41133","0x3b8049c56a31324faa4cb6cb0caeec2a5c934f478952d980087605605f0c06c2","0xfcc78e0... |
uniswap_public_repos/v4-periphery/test | uniswap_public_repos/v4-periphery/test/script/DeployPoolManager.t.sol | // SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.20;
import {DeployPoolManager} from "../../script/01_PoolManager.s.sol";
import {IPoolManager} from "@uniswap/v4-core/src/interfaces/IPoolManager.sol";
import {Test} from "forge-std/Test.sol";
contract DeployPoolManagerTest is Test {
DeployPoolManager de... |
uniswap_public_repos/onchain-router | uniswap_public_repos/onchain-router/test/OnchainRouter.t.sol | // SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.7.6;
pragma abicoder v2;
import {Test, console, console2} from "forge-std/Test.sol";
import {IUniswapV3Factory} from "v3-core/contracts/interfaces/IUniswapV3Factory.sol";
import {IUniswapV2Pair} from "v2-core/contracts/interfaces/IUniswapV2Pair.sol";
import {IU... |
uniswap_public_repos/web3-react/packages/network | uniswap_public_repos/web3-react/packages/network/src/index.ts | import type { JsonRpcProvider } from '@ethersproject/providers'
import type { ConnectionInfo } from '@ethersproject/web'
import type { Actions } from '@web3-react/types'
import { Connector } from '@web3-react/types'
import { getBestProvider } from './utils'
type url = string | ConnectionInfo
function isUrl(url: url ... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x7b5d6d734fa40978c22eaee244259ae80f33184d.json | {"0x7B5d6d734fa40978C22eAEE244259Ae80F33184d":{"index":121522,"amount":"0x15af1d78b58c400000","proof":["0x0b8578ea47fd6a4f3a6de7f65e084f25adb0231590ff319e2a9cb415f095bd62","0xc94e15a395e9fc6e190cde17ff5bcb0f8c0e396dfff6d516513cdf8b03ea2247","0xd59d61dc8a50e4bdfed64b7a9d69cf74f4bf87a65f8d2306f93fdf0af2436a9c","0x000353f... |
uniswap_public_repos/UniswapX/src | uniswap_public_repos/UniswapX/src/base/ProtocolFees.sol | // SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.0;
import {Owned} from "solmate/src/auth/Owned.sol";
import {SafeTransferLib} from "solmate/src/utils/SafeTransferLib.sol";
import {FixedPointMathLib} from "solmate/src/utils/FixedPointMathLib.sol";
import {ERC20} from "solmate/src/tokens/ERC20.sol";
im... |
uniswap_public_repos/interface/packages/wallet/src/components | uniswap_public_repos/interface/packages/wallet/src/components/text/RelativeChange.tsx | import { ColorTokens, Flex, Text } from 'ui/src'
import { Caret } from 'ui/src/components/icons'
import { IconSizeTokens, fonts } from 'ui/src/theme'
import { useAppFiatCurrencyInfo } from 'uniswap/src/features/fiatCurrency/hooks'
import { useLocalizationContext } from 'uniswap/src/features/language/LocalizationContext... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x030b9fd1e4949fe587c7bb3870fc4cdc455169fb.json | {"0x030b9fd1E4949fe587c7Bb3870fC4CDC455169fb":{"index":3338,"amount":"0x15af1d78b58c400000","proof":["0xc985f0bf0efe80607082022641ad5c6136e414f0de7d52091eb4343db256aa9d","0xb88a6186c32384a333967a665fa813a1caef4659120aeea17662b355b3072ba2","0xe83de3b994071282e92bba791fc5defc514ae8b7ec30d920f21f8fdee681281f","0x5d6a40c31... |
uniswap_public_repos/widgets/src | uniswap_public_repos/widgets/src/hooks/usePriceImpact.test.tsx | import { formatPriceImpact } from '@uniswap/conedison/format'
import { CurrencyAmount, TradeType } from '@uniswap/sdk-core'
import { InterfaceTrade } from 'state/routing/types'
import { renderHook } from 'test'
import { buildSingleV3Route, DAI, USDC } from 'test/utils'
import { usePriceImpact } from './usePriceImpact'... |
uniswap_public_repos/interface/packages/uniswap/src/components | uniswap_public_repos/interface/packages/uniswap/src/components/text/LearnMoreLink.test.tsx | import { fireEvent } from '@testing-library/react-native'
import { LearnMoreLink } from 'uniswap/src/components/text/LearnMoreLink'
import { ON_PRESS_EVENT_PAYLOAD } from 'uniswap/src/test/fixtures'
import { renderWithProviders } from 'uniswap/src/test/render'
import { openUri } from 'uniswap/src/utils/linking'
jest.m... |
uniswap_public_repos/interface/apps/web/src | uniswap_public_repos/interface/apps/web/src/hooks/usePools.ts | import { Interface } from '@ethersproject/abi'
import { BigintIsh, Currency, Token, V3_CORE_FACTORY_ADDRESSES } from '@uniswap/sdk-core'
import IUniswapV3PoolStateJSON from '@uniswap/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolState.sol/IUniswapV3PoolState.json'
import { FeeAmount, Pool, computePoolAddres... |
uniswap_public_repos/convert-cidv0-cidv1/node_modules/@actions | uniswap_public_repos/convert-cidv0-cidv1/node_modules/@actions/core/package.json | {
"name": "@actions/core",
"version": "1.2.4",
"description": "Actions core lib",
"keywords": [
"github",
"actions",
"core"
],
"homepage": "https://github.com/actions/toolkit/tree/master/packages/core",
"license": "MIT",
"main": "lib/core.js",
"types": "lib/core.d.ts",
"directories": {
... |
uniswap_public_repos/interface/apps/web/src/nft/components | uniswap_public_repos/interface/apps/web/src/nft/components/collection/TransactionCompleteModal.css.ts | import { style } from '@vanilla-extract/css'
import { sprinkles, themeVars, vars } from 'nft/css/sprinkles.css'
export const modalContainer = style([
sprinkles({
display: 'flex',
position: 'fixed',
height: 'full',
width: { sm: 'full', md: 'min' },
left: { sm: '0', md: '1/2' },
top: '0',
z... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x15f7cb5e7d54e515c13187d7f145ccd6922cf77d.json | {"0x15f7cb5E7d54e515c13187D7f145cCD6922cF77D":{"index":22038,"amount":"0x15d22e74489c20c000","proof":["0x92af5793de07660bf2252a2c595ca19fd613c1d1ac8f3bf71db460cc99ce2c95","0xd7aee88eee7de31081c3446bdabe191940dec6ae331a49b56b8a67bb54fd9679","0x5103aca33e915d6a3609ddb184b2d963ae3ca3c51b13637ae4405e10da282fac","0xbd80dc82... |
uniswap_public_repos/mrkl-drop-data-chunks | uniswap_public_repos/mrkl-drop-data-chunks/chunks/0x697ee9f9ad75aae2d4ab53e436e03d69b5d04492.json | {"0x697Ee9f9aD75Aae2D4aB53E436e03d69B5d04492":{"index":104520,"amount":"0x15af1d78b58c400000","proof":["0xf6a38f18c375068d7381aa6a496d034643736726fb302aba0bef758ad7939d72","0x41dc562f7148320a19b5c47ed8deee88bada6aa7e6b64da7465f36115e4c1926","0x265c60cdbff5c6266ae421a3b22bc5cce3f1434aa00d7fb75cd1f95ce695f162","0x1109021... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.