* Refactor integrator ID and add Prometheus metrics * Update packages/asset-swapper/src/swap_quoter.ts Co-authored-by: David Walsh <5778036+rhinodavid@users.noreply.github.com> * Update packages/asset-swapper/src/swap_quoter.ts Co-authored-by: David Walsh <5778036+rhinodavid@users.noreply.github.com> * Update packages/asset-swapper/src/swap_quoter.ts Co-authored-by: David Walsh <5778036+rhinodavid@users.noreply.github.com> * Added documentation and fixed some minor requests * Added more metrics * more docs * lint fix * added new Integrator ID addition * refactor tests Co-authored-by: David Walsh <5778036+rhinodavid@users.noreply.github.com>
		
			
				
	
	
		
			179 lines
		
	
	
		
			4.7 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			179 lines
		
	
	
		
			4.7 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| export {
 | |
|     AwaitTransactionSuccessOpts,
 | |
|     ContractFunctionObj,
 | |
|     ContractTxFunctionObj,
 | |
|     SendTransactionOpts,
 | |
| } from '@0x/base-contract';
 | |
| export { ContractAddresses } from '@0x/contract-addresses';
 | |
| export {
 | |
|     V4RFQFirmQuote,
 | |
|     V4RFQIndicativeQuote,
 | |
|     V4SignedRfqOrder,
 | |
|     TakerRequestQueryParamsUnnested as TakerRequestQueryParams,
 | |
| } from '@0x/quote-server';
 | |
| export { Asset, AssetPairsItem, DecodedLogEvent, EventCallback, IndexedFilterValues } from '@0x/types';
 | |
| export { BigNumber } from '@0x/utils';
 | |
| export {
 | |
|     RfqOrderFields,
 | |
|     LimitOrderFields,
 | |
|     FillQuoteTransformerOrderType,
 | |
|     RfqOrder,
 | |
|     LimitOrder,
 | |
|     Signature,
 | |
|     SignatureType,
 | |
| } from '@0x/protocol-utils';
 | |
| export { AxiosInstance } from 'axios';
 | |
| export {
 | |
|     AbiDefinition,
 | |
|     BlockParam,
 | |
|     BlockParamLiteral,
 | |
|     CallData,
 | |
|     CompilerOpts,
 | |
|     CompilerSettings,
 | |
|     CompilerSettingsMetadata,
 | |
|     ConstructorAbi,
 | |
|     ConstructorStateMutability,
 | |
|     ContractAbi,
 | |
|     ContractArtifact,
 | |
|     ContractChainData,
 | |
|     ContractChains,
 | |
|     ContractEventArg,
 | |
|     DataItem,
 | |
|     DecodedLogArgs,
 | |
|     DevdocOutput,
 | |
|     EIP1193Event,
 | |
|     EIP1193Provider,
 | |
|     EventAbi,
 | |
|     EventParameter,
 | |
|     EvmBytecodeOutput,
 | |
|     EvmBytecodeOutputLinkReferences,
 | |
|     EvmOutput,
 | |
|     FallbackAbi,
 | |
|     FunctionAbi,
 | |
|     GanacheProvider,
 | |
|     GethCallOverrides,
 | |
|     JSONRPCErrorCallback,
 | |
|     JSONRPCRequestPayload,
 | |
|     JSONRPCResponseError,
 | |
|     JSONRPCResponsePayload,
 | |
|     LogWithDecodedArgs,
 | |
|     MethodAbi,
 | |
|     OptimizerSettings,
 | |
|     OutputField,
 | |
|     ParamDescription,
 | |
|     RevertErrorAbi,
 | |
|     StandardContractOutput,
 | |
|     StateMutability,
 | |
|     SupportedProvider,
 | |
|     TupleDataItem,
 | |
|     TxData,
 | |
|     TxDataPayable,
 | |
|     Web3JsProvider,
 | |
|     Web3JsV1Provider,
 | |
|     Web3JsV2Provider,
 | |
|     Web3JsV3Provider,
 | |
|     ZeroExProvider,
 | |
| } from 'ethereum-types';
 | |
| export { artifacts } from './artifacts';
 | |
| export { InsufficientAssetLiquidityError } from './errors';
 | |
| export { SwapQuoteConsumer } from './quote_consumers/swap_quote_consumer';
 | |
| export { SwapQuoter, Orderbook } from './swap_quoter';
 | |
| export {
 | |
|     AltOffering,
 | |
|     AltRfqMakerAssetOfferings,
 | |
|     AffiliateFeeType,
 | |
|     AffiliateFeeAmount,
 | |
|     AssetSwapperContractAddresses,
 | |
|     CalldataInfo,
 | |
|     ExchangeProxyContractOpts,
 | |
|     ExchangeProxyRefundReceiver,
 | |
|     GetExtensionContractTypeOpts,
 | |
|     Integrator,
 | |
|     LogFunction,
 | |
|     MarketBuySwapQuote,
 | |
|     MarketOperation,
 | |
|     MarketSellSwapQuote,
 | |
|     MockedRfqQuoteResponse,
 | |
|     OrderPrunerPermittedFeeTypes,
 | |
|     RfqMakerAssetOfferings,
 | |
|     RfqFirmQuoteValidator,
 | |
|     RfqRequestOpts,
 | |
|     SamplerOverrides,
 | |
|     SignedNativeOrder,
 | |
|     SignedOrder,
 | |
|     SwapQuote,
 | |
|     SwapQuoteConsumerBase,
 | |
|     SwapQuoteConsumerError,
 | |
|     SwapQuoteConsumerOpts,
 | |
|     SwapQuoteExecutionOpts,
 | |
|     SwapQuoteGetOutputOpts,
 | |
|     SwapQuoteInfo,
 | |
|     SwapQuoteOrdersBreakdown,
 | |
|     SwapQuoteRequestOpts,
 | |
|     SwapQuoterError,
 | |
|     SwapQuoterOpts,
 | |
|     SwapQuoterRfqOpts,
 | |
| } from './types';
 | |
| export { affiliateFeeUtils } from './utils/affiliate_fee_utils';
 | |
| export {
 | |
|     DEFAULT_TOKEN_ADJACENCY_GRAPH_BY_CHAIN_ID,
 | |
|     DEFAULT_GAS_SCHEDULE,
 | |
|     SOURCE_FLAGS,
 | |
|     BUY_SOURCE_FILTER_BY_CHAIN_ID,
 | |
|     SELL_SOURCE_FILTER_BY_CHAIN_ID,
 | |
|     NATIVE_FEE_TOKEN_BY_CHAIN_ID,
 | |
| } from './utils/market_operation_utils/constants';
 | |
| export {
 | |
|     Parameters,
 | |
|     SamplerContractCall,
 | |
|     SamplerContractOperation,
 | |
| } from './utils/market_operation_utils/sampler_contract_operation';
 | |
| export {
 | |
|     BalancerFillData,
 | |
|     BancorFillData,
 | |
|     CollapsedFill,
 | |
|     CurveFillData,
 | |
|     CurveFunctionSelectors,
 | |
|     CurveInfo,
 | |
|     DexSample,
 | |
|     DODOFillData,
 | |
|     ERC20BridgeSource,
 | |
|     ExchangeProxyOverhead,
 | |
|     FeeSchedule,
 | |
|     Fill,
 | |
|     FillData,
 | |
|     GetMarketOrdersRfqOpts,
 | |
|     KyberFillData,
 | |
|     LiquidityProviderFillData,
 | |
|     LiquidityProviderRegistry,
 | |
|     MarketDepth,
 | |
|     MarketDepthSide,
 | |
|     MooniswapFillData,
 | |
|     MultiHopFillData,
 | |
|     NativeCollapsedFill,
 | |
|     NativeRfqOrderFillData,
 | |
|     NativeLimitOrderFillData,
 | |
|     NativeFillData,
 | |
|     OptimizedMarketOrder,
 | |
|     SourceQuoteOperation,
 | |
|     TokenAdjacencyGraph,
 | |
|     UniswapV2FillData,
 | |
| } from './utils/market_operation_utils/types';
 | |
| export { ProtocolFeeUtils } from './utils/protocol_fee_utils';
 | |
| export {
 | |
|     BridgeQuoteReportEntry,
 | |
|     MultiHopQuoteReportEntry,
 | |
|     NativeLimitOrderQuoteReportEntry,
 | |
|     NativeRfqOrderQuoteReportEntry,
 | |
|     QuoteReport,
 | |
|     QuoteReportEntry,
 | |
|     PriceComparisonsReport,
 | |
| } from './utils/quote_report_generator';
 | |
| export { QuoteRequestor } from './utils/quote_requestor';
 | |
| export { ERC20BridgeSamplerContract, BalanceCheckerContract, FakeTakerContract } from './wrappers';
 | |
| import { ERC20BridgeSource } from './utils/market_operation_utils/types';
 | |
| export type Native = ERC20BridgeSource.Native;
 | |
| export type MultiHop = ERC20BridgeSource.MultiHop;
 | |
| 
 | |
| export { rfqtMocker, RfqtQuoteEndpoint } from './utils/rfqt_mocker';
 |