* add balancer v2 * fetch balancer v2 pools from subgraph * feat: initial stab at a Balancer V2 Sampler WIP * feat: add sampling for buys and fix build issues WIP [untested] * fix: BalancerV2Sampler implementation issues, works on Kovan * chore: BalancerV2 sampling boilerplate * fix: update Balancer V2 mainnet address * fix: consolidate differences between the 2 working branches * fix: use mainnet Balancer V2 subgraph * fix: stack too deep by minimizing and inline Balancer V2 vault interface * fix: address review comments and clean up * fix: sampler vault interface and pools cache assuming a pool has swaps * address more review comments * fix: TS type issues and add a comment about deadline argument * fix: pools_cache_tests incorrect token addresses, prettier incompat * fix: make ERC20BridgeSampler support BalancerV2 non view sampler fns * fix: use a struct for passing encoded bridge data for Balancer V2 * chore: add changelog entries * fix: improve gas accuracy of gas schedule for Balancer V2 & Maker Psm * fix: don't exclude sources with stale caches & wait for cache refresh * rebase * `@0x/asset-swapper`: Fix stack too deep errors in sampler * `@0x/asset-swapper`: Add uniswap V3 sampler. * `@0x/contracts-zero-ex`: Add UniswapV3 support to FQT * `@0x/protocol-utils`: Update BridgeProtocols. `@0x/asset-swapper`: Add sell integration for UniswapV3. * `@0x/asset-swapper`: Remove unnecessary swap quote consumer constructor arg. `@0x/asset-swapper`: Enable UniswapV3 on ropsten. * `@0x/asset-swapper`: UniswapV3 fixes * `@0x/asset-swapper`: Fix stuff based on latest deployed testnet contracts * `@0x/asset-swapper`: Remove UniV3 from mainnet sources for now * `@0x/asset-swapper`: Tweak univ3 gas schedule * fix CI? * `@0x/contracts-test-utils`: Set default ganache gas limit to 100e6 Co-authored-by: xianny <xianny@gmail.com> Co-authored-by: Kim Persson <kimpersson88@gmail.com> Co-authored-by: Lawrence Forman <me@merklejerk.com> Co-authored-by: Jacob Evans <jacob@dekz.net>
92 lines
5.9 KiB
TypeScript
92 lines
5.9 KiB
TypeScript
/*
|
|
* -----------------------------------------------------------------------------
|
|
* Warning: This file is auto-generated by contracts-gen. Don't edit manually.
|
|
* -----------------------------------------------------------------------------
|
|
*/
|
|
import { ContractArtifact } from 'ethereum-types';
|
|
|
|
import * as ApproximateBuys from '../test/generated-artifacts/ApproximateBuys.json';
|
|
import * as BalanceChecker from '../test/generated-artifacts/BalanceChecker.json';
|
|
import * as BalancerSampler from '../test/generated-artifacts/BalancerSampler.json';
|
|
import * as BalancerV2Sampler from '../test/generated-artifacts/BalancerV2Sampler.json';
|
|
import * as BancorSampler from '../test/generated-artifacts/BancorSampler.json';
|
|
import * as CurveSampler from '../test/generated-artifacts/CurveSampler.json';
|
|
import * as DODOSampler from '../test/generated-artifacts/DODOSampler.json';
|
|
import * as DODOV2Sampler from '../test/generated-artifacts/DODOV2Sampler.json';
|
|
import * as DummyLiquidityProvider from '../test/generated-artifacts/DummyLiquidityProvider.json';
|
|
import * as ERC20BridgeSampler from '../test/generated-artifacts/ERC20BridgeSampler.json';
|
|
import * as Eth2DaiSampler from '../test/generated-artifacts/Eth2DaiSampler.json';
|
|
import * as FakeTaker from '../test/generated-artifacts/FakeTaker.json';
|
|
import * as IBalancer from '../test/generated-artifacts/IBalancer.json';
|
|
import * as IBancor from '../test/generated-artifacts/IBancor.json';
|
|
import * as ICurve from '../test/generated-artifacts/ICurve.json';
|
|
import * as IEth2Dai from '../test/generated-artifacts/IEth2Dai.json';
|
|
import * as IKyberNetwork from '../test/generated-artifacts/IKyberNetwork.json';
|
|
import * as IMooniswap from '../test/generated-artifacts/IMooniswap.json';
|
|
import * as IMStable from '../test/generated-artifacts/IMStable.json';
|
|
import * as IMultiBridge from '../test/generated-artifacts/IMultiBridge.json';
|
|
import * as IShell from '../test/generated-artifacts/IShell.json';
|
|
import * as ISmoothy from '../test/generated-artifacts/ISmoothy.json';
|
|
import * as IUniswapExchangeQuotes from '../test/generated-artifacts/IUniswapExchangeQuotes.json';
|
|
import * as IUniswapV2Router01 from '../test/generated-artifacts/IUniswapV2Router01.json';
|
|
import * as KyberSampler from '../test/generated-artifacts/KyberSampler.json';
|
|
import * as LiquidityProviderSampler from '../test/generated-artifacts/LiquidityProviderSampler.json';
|
|
import * as MakerPSMSampler from '../test/generated-artifacts/MakerPSMSampler.json';
|
|
import * as MooniswapSampler from '../test/generated-artifacts/MooniswapSampler.json';
|
|
import * as MStableSampler from '../test/generated-artifacts/MStableSampler.json';
|
|
import * as MultiBridgeSampler from '../test/generated-artifacts/MultiBridgeSampler.json';
|
|
import * as NativeOrderSampler from '../test/generated-artifacts/NativeOrderSampler.json';
|
|
import * as SamplerUtils from '../test/generated-artifacts/SamplerUtils.json';
|
|
import * as ShellSampler from '../test/generated-artifacts/ShellSampler.json';
|
|
import * as SmoothySampler from '../test/generated-artifacts/SmoothySampler.json';
|
|
import * as TestERC20BridgeSampler from '../test/generated-artifacts/TestERC20BridgeSampler.json';
|
|
import * as TestNativeOrderSampler from '../test/generated-artifacts/TestNativeOrderSampler.json';
|
|
import * as TwoHopSampler from '../test/generated-artifacts/TwoHopSampler.json';
|
|
import * as UniswapSampler from '../test/generated-artifacts/UniswapSampler.json';
|
|
import * as UniswapV2Sampler from '../test/generated-artifacts/UniswapV2Sampler.json';
|
|
import * as UniswapV3Sampler from '../test/generated-artifacts/UniswapV3Sampler.json';
|
|
import * as UtilitySampler from '../test/generated-artifacts/UtilitySampler.json';
|
|
export const artifacts = {
|
|
ApproximateBuys: ApproximateBuys as ContractArtifact,
|
|
BalanceChecker: BalanceChecker as ContractArtifact,
|
|
BalancerSampler: BalancerSampler as ContractArtifact,
|
|
BalancerV2Sampler: BalancerV2Sampler as ContractArtifact,
|
|
BancorSampler: BancorSampler as ContractArtifact,
|
|
CurveSampler: CurveSampler as ContractArtifact,
|
|
DODOSampler: DODOSampler as ContractArtifact,
|
|
DODOV2Sampler: DODOV2Sampler as ContractArtifact,
|
|
ERC20BridgeSampler: ERC20BridgeSampler as ContractArtifact,
|
|
Eth2DaiSampler: Eth2DaiSampler as ContractArtifact,
|
|
FakeTaker: FakeTaker as ContractArtifact,
|
|
KyberSampler: KyberSampler as ContractArtifact,
|
|
LiquidityProviderSampler: LiquidityProviderSampler as ContractArtifact,
|
|
MStableSampler: MStableSampler as ContractArtifact,
|
|
MakerPSMSampler: MakerPSMSampler as ContractArtifact,
|
|
MooniswapSampler: MooniswapSampler as ContractArtifact,
|
|
MultiBridgeSampler: MultiBridgeSampler as ContractArtifact,
|
|
NativeOrderSampler: NativeOrderSampler as ContractArtifact,
|
|
SamplerUtils: SamplerUtils as ContractArtifact,
|
|
ShellSampler: ShellSampler as ContractArtifact,
|
|
SmoothySampler: SmoothySampler as ContractArtifact,
|
|
TwoHopSampler: TwoHopSampler as ContractArtifact,
|
|
UniswapSampler: UniswapSampler as ContractArtifact,
|
|
UniswapV2Sampler: UniswapV2Sampler as ContractArtifact,
|
|
UniswapV3Sampler: UniswapV3Sampler as ContractArtifact,
|
|
UtilitySampler: UtilitySampler as ContractArtifact,
|
|
IBalancer: IBalancer as ContractArtifact,
|
|
IBancor: IBancor as ContractArtifact,
|
|
ICurve: ICurve as ContractArtifact,
|
|
IEth2Dai: IEth2Dai as ContractArtifact,
|
|
IKyberNetwork: IKyberNetwork as ContractArtifact,
|
|
IMStable: IMStable as ContractArtifact,
|
|
IMooniswap: IMooniswap as ContractArtifact,
|
|
IMultiBridge: IMultiBridge as ContractArtifact,
|
|
IShell: IShell as ContractArtifact,
|
|
ISmoothy: ISmoothy as ContractArtifact,
|
|
IUniswapExchangeQuotes: IUniswapExchangeQuotes as ContractArtifact,
|
|
IUniswapV2Router01: IUniswapV2Router01 as ContractArtifact,
|
|
DummyLiquidityProvider: DummyLiquidityProvider as ContractArtifact,
|
|
TestERC20BridgeSampler: TestERC20BridgeSampler as ContractArtifact,
|
|
TestNativeOrderSampler: TestNativeOrderSampler as ContractArtifact,
|
|
};
|