@gearbox-protocol/sdk 9.12.13 → 9.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/abi/310/configure/creditSuiteParams.js +130 -0
- package/dist/cjs/abi/310/configure/iCreditConfigureActions.js +181 -0
- package/dist/cjs/abi/310/configure/iPoolConfigureActions.js +80 -0
- package/dist/cjs/abi/310/configure/iPriceOracleConfigureActions.js +49 -0
- package/dist/cjs/abi/310/crossChainMultisig.js +540 -0
- package/dist/cjs/abi/{v310.js → 310/generated.js} +3 -3
- package/dist/cjs/abi/310/iBytecodeRepository.js +897 -0
- package/dist/cjs/abi/310/iMarketConfiguratorFactory.js +189 -0
- package/dist/cjs/abi/310/iPriceFeedStore.js +417 -0
- package/dist/cjs/abi/310/iTreasurySplitter.js +36 -0
- package/dist/cjs/abi/310/instanceManager.js +274 -0
- package/dist/cjs/abi/compressors/creditAccountCompressor.js +456 -0
- package/dist/cjs/abi/compressors/creditSuiteCompressor.js +774 -0
- package/dist/cjs/abi/compressors/defillamaCompressor.js +183 -0
- package/dist/cjs/abi/compressors/gaugeCompressor.js +184 -0
- package/dist/cjs/abi/compressors/marketCompressor.js +2477 -0
- package/dist/cjs/abi/compressors/peripheryCompressor.js +202 -0
- package/dist/cjs/abi/compressors/priceFeedCompressor.js +581 -0
- package/dist/cjs/abi/compressors/rewardsCompressor.js +82 -0
- package/dist/cjs/abi/compressors/subcompressors/infinifiWithdrawalSubcompressor.js +187 -0
- package/dist/cjs/abi/compressors/subcompressors/mellowWithdrawalSubcompressor.js +187 -0
- package/dist/cjs/abi/compressors/subcompressors/midasWithdrawalSubcompressor.js +187 -0
- package/dist/cjs/abi/compressors/subcompressors/upshiftWithdrawalSubcompressor.js +187 -0
- package/dist/cjs/abi/compressors/tokenCompressor.js +95 -0
- package/dist/cjs/abi/compressors/withdrawalCompressor.js +272 -0
- package/dist/cjs/abi/governance/batchesChain.js +68 -0
- package/dist/cjs/abi/governance/governor.js +472 -0
- package/dist/cjs/abi/governance/iTimeLock.js +257 -0
- package/dist/cjs/abi/router/balancerV2Worker.js +730 -0
- package/dist/cjs/abi/router/balancerV3Worker.js +734 -0
- package/dist/cjs/abi/router/camelotV3Worker.js +558 -0
- package/dist/cjs/abi/router/convexWorker.js +541 -0
- package/dist/cjs/abi/router/curveWorker.js +718 -0
- package/dist/cjs/abi/router/daiUsdsWorker.js +541 -0
- package/dist/cjs/abi/router/equalizerRouterWorker.js +541 -0
- package/dist/cjs/abi/router/erc4626Worker.js +572 -0
- package/dist/cjs/abi/router/fluidDexWorker.js +551 -0
- package/dist/cjs/abi/router/gearboxRouter.js +651 -0
- package/dist/cjs/abi/router/infraredVaultWorker.js +541 -0
- package/dist/cjs/abi/router/kodiakWorker.js +732 -0
- package/dist/cjs/abi/router/lidoWorker.js +541 -0
- package/dist/cjs/abi/router/mellow4626Worker.js +541 -0
- package/dist/cjs/abi/router/mellowDVVWorker.js +541 -0
- package/dist/cjs/abi/router/mellowVaultWorker.js +551 -0
- package/dist/cjs/abi/router/pendleRouterWorker.js +567 -0
- package/dist/cjs/abi/router/routingManager.js +397 -0
- package/dist/cjs/abi/router/stakingRewardsWorker.js +541 -0
- package/dist/cjs/abi/router/traderJoeWorker.js +541 -0
- package/dist/cjs/abi/router/uniswapV2Worker.js +541 -0
- package/dist/cjs/abi/router/uniswapV3Worker.js +568 -0
- package/dist/cjs/abi/router/upshiftWorker.js +541 -0
- package/dist/cjs/abi/router/velodromeV2Worker.js +541 -0
- package/dist/cjs/abi/router/wstETHWorker.js +541 -0
- package/dist/cjs/abi/router/yearnV2Worker.js +541 -0
- package/dist/cjs/dev/migrateFaucet.js +6 -6
- package/dist/cjs/plugins/accounts-counter/AccountsCounterPlugin.js +3 -3
- package/dist/cjs/plugins/bots/BotsPlugin.js +2 -2
- package/dist/cjs/plugins/pools-history/Pools7DAgoPlugin.js +2 -2
- package/dist/cjs/plugins/zappers/ZappersPlugin.js +2 -2
- package/dist/cjs/sdk/accounts/AbstractCreditAccountsService.js +11 -9
- package/dist/cjs/sdk/accounts/CreditAccountsServiceV310.js +2 -2
- package/dist/cjs/sdk/chain/detectNetwork.js +2 -2
- package/dist/cjs/sdk/core/address-provider/AddressProviderV310Contract.js +2 -2
- package/dist/cjs/sdk/gauges/GaugeStakingService.js +2 -2
- package/dist/cjs/sdk/market/MarketConfiguratorContract.js +2 -2
- package/dist/cjs/sdk/market/MarketRegister.js +3 -3
- package/dist/cjs/sdk/market/credit/CreditConfiguratorV310Contract.js +2 -2
- package/dist/cjs/sdk/market/credit/CreditFacadeV310Contract.js +3 -3
- package/dist/cjs/sdk/market/credit/CreditManagerV310Contract.js +2 -2
- package/dist/cjs/sdk/market/oracle/PriceOracleBaseContract.js +2 -2
- package/dist/cjs/sdk/market/oracle/PriceOracleV310Contract.js +3 -3
- package/dist/cjs/sdk/market/pool/PoolQuotaKeeperV310Contract.js +2 -2
- package/dist/cjs/sdk/market/pool/PoolV310Contract.js +2 -2
- package/dist/cjs/sdk/market/pool/TumblerContract.js +2 -2
- package/dist/cjs/sdk/market/pricefeeds/PriceFeedsRegister.js +3 -3
- package/dist/cjs/sdk/router/RouterV310Contract.js +2 -2
- package/dist/cjs/sdk/sdk-legacy/tokens/tokenData.js +2 -1
- package/dist/cjs/sdk/utils/viem/simulateWithPriceUpdates.js +3 -2
- package/dist/esm/abi/310/configure/creditSuiteParams.js +104 -0
- package/dist/esm/abi/310/configure/iCreditConfigureActions.js +157 -0
- package/dist/esm/abi/310/configure/iPoolConfigureActions.js +56 -0
- package/dist/esm/abi/310/configure/iPriceOracleConfigureActions.js +25 -0
- package/dist/esm/abi/310/crossChainMultisig.js +516 -0
- package/dist/esm/abi/310/iBytecodeRepository.js +873 -0
- package/dist/esm/abi/310/iMarketConfiguratorFactory.js +165 -0
- package/dist/esm/abi/310/iPriceFeedStore.js +393 -0
- package/dist/esm/abi/310/iTreasurySplitter.js +12 -0
- package/dist/esm/abi/310/instanceManager.js +250 -0
- package/dist/esm/abi/compressors/creditAccountCompressor.js +432 -0
- package/dist/esm/abi/compressors/creditSuiteCompressor.js +750 -0
- package/dist/esm/abi/compressors/defillamaCompressor.js +159 -0
- package/dist/esm/abi/compressors/gaugeCompressor.js +160 -0
- package/dist/esm/abi/compressors/marketCompressor.js +2453 -0
- package/dist/esm/abi/compressors/peripheryCompressor.js +178 -0
- package/dist/esm/abi/compressors/priceFeedCompressor.js +557 -0
- package/dist/esm/abi/compressors/rewardsCompressor.js +58 -0
- package/dist/esm/abi/compressors/subcompressors/infinifiWithdrawalSubcompressor.js +163 -0
- package/dist/esm/abi/compressors/subcompressors/mellowWithdrawalSubcompressor.js +163 -0
- package/dist/esm/abi/compressors/subcompressors/midasWithdrawalSubcompressor.js +163 -0
- package/dist/esm/abi/compressors/subcompressors/upshiftWithdrawalSubcompressor.js +163 -0
- package/dist/esm/abi/compressors/tokenCompressor.js +71 -0
- package/dist/esm/abi/compressors/withdrawalCompressor.js +248 -0
- package/dist/esm/abi/governance/batchesChain.js +44 -0
- package/dist/esm/abi/governance/governor.js +448 -0
- package/dist/esm/abi/governance/iTimeLock.js +233 -0
- package/dist/esm/abi/router/balancerV2Worker.js +706 -0
- package/dist/esm/abi/router/balancerV3Worker.js +710 -0
- package/dist/esm/abi/router/camelotV3Worker.js +534 -0
- package/dist/esm/abi/router/convexWorker.js +517 -0
- package/dist/esm/abi/router/curveWorker.js +694 -0
- package/dist/esm/abi/router/daiUsdsWorker.js +517 -0
- package/dist/esm/abi/router/equalizerRouterWorker.js +517 -0
- package/dist/esm/abi/router/erc4626Worker.js +548 -0
- package/dist/esm/abi/router/fluidDexWorker.js +527 -0
- package/dist/esm/abi/router/gearboxRouter.js +627 -0
- package/dist/esm/abi/router/infraredVaultWorker.js +517 -0
- package/dist/esm/abi/router/kodiakWorker.js +708 -0
- package/dist/esm/abi/router/lidoWorker.js +517 -0
- package/dist/esm/abi/router/mellow4626Worker.js +517 -0
- package/dist/esm/abi/router/mellowDVVWorker.js +517 -0
- package/dist/esm/abi/router/mellowVaultWorker.js +527 -0
- package/dist/esm/abi/router/pendleRouterWorker.js +543 -0
- package/dist/esm/abi/router/routingManager.js +373 -0
- package/dist/esm/abi/router/stakingRewardsWorker.js +517 -0
- package/dist/esm/abi/router/traderJoeWorker.js +517 -0
- package/dist/esm/abi/router/uniswapV2Worker.js +517 -0
- package/dist/esm/abi/router/uniswapV3Worker.js +544 -0
- package/dist/esm/abi/router/upshiftWorker.js +517 -0
- package/dist/esm/abi/router/velodromeV2Worker.js +517 -0
- package/dist/esm/abi/router/wstETHWorker.js +517 -0
- package/dist/esm/abi/router/yearnV2Worker.js +517 -0
- package/dist/esm/dev/migrateFaucet.js +1 -1
- package/dist/esm/plugins/accounts-counter/AccountsCounterPlugin.js +3 -3
- package/dist/esm/plugins/bots/BotsPlugin.js +2 -2
- package/dist/esm/plugins/pools-history/Pools7DAgoPlugin.js +2 -2
- package/dist/esm/plugins/zappers/ZappersPlugin.js +2 -2
- package/dist/esm/sdk/accounts/AbstractCreditAccountsService.js +10 -12
- package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +1 -1
- package/dist/esm/sdk/chain/detectNetwork.js +1 -1
- package/dist/esm/sdk/core/address-provider/AddressProviderV310Contract.js +1 -1
- package/dist/esm/sdk/gauges/GaugeStakingService.js +2 -2
- package/dist/esm/sdk/market/MarketConfiguratorContract.js +1 -1
- package/dist/esm/sdk/market/MarketRegister.js +3 -3
- package/dist/esm/sdk/market/credit/CreditConfiguratorV310Contract.js +1 -1
- package/dist/esm/sdk/market/credit/CreditFacadeV310Contract.js +2 -2
- package/dist/esm/sdk/market/credit/CreditManagerV310Contract.js +1 -1
- package/dist/esm/sdk/market/oracle/PriceOracleBaseContract.js +2 -2
- package/dist/esm/sdk/market/oracle/PriceOracleV310Contract.js +1 -1
- package/dist/esm/sdk/market/pool/PoolQuotaKeeperV310Contract.js +1 -1
- package/dist/esm/sdk/market/pool/PoolV310Contract.js +1 -1
- package/dist/esm/sdk/market/pool/TumblerContract.js +1 -1
- package/dist/esm/sdk/market/pricefeeds/PriceFeedsRegister.js +3 -3
- package/dist/esm/sdk/router/RouterV310Contract.js +2 -2
- package/dist/esm/sdk/sdk-legacy/tokens/tokenData.js +2 -1
- package/dist/esm/sdk/utils/viem/simulateWithPriceUpdates.js +2 -1
- package/dist/types/abi/310/configure/creditSuiteParams.d.ts +92 -0
- package/dist/types/abi/310/configure/iCreditConfigureActions.d.ts +187 -0
- package/dist/types/abi/310/configure/iPoolConfigureActions.d.ts +65 -0
- package/dist/types/abi/310/configure/iPriceOracleConfigureActions.d.ts +29 -0
- package/dist/types/abi/310/crossChainMultisig.d.ts +709 -0
- package/dist/types/abi/310/iBytecodeRepository.d.ts +1139 -0
- package/dist/types/abi/310/iMarketConfiguratorFactory.d.ts +218 -0
- package/dist/types/abi/310/iPriceFeedStore.d.ts +526 -0
- package/dist/types/abi/310/iTreasurySplitter.d.ts +11 -0
- package/dist/types/abi/{iPriceFeedStore.d.ts → 310/instanceManager.d.ts} +183 -143
- package/dist/types/abi/compressors/creditAccountCompressor.d.ts +828 -0
- package/dist/types/abi/compressors/creditSuiteCompressor.d.ts +829 -0
- package/dist/types/abi/compressors/defillamaCompressor.d.ts +201 -0
- package/dist/types/abi/compressors/gaugeCompressor.d.ts +228 -0
- package/dist/types/abi/{compressors.d.ts → compressors/marketCompressor.d.ts} +1322 -4121
- package/dist/types/abi/compressors/peripheryCompressor.d.ts +217 -0
- package/dist/types/abi/compressors/priceFeedCompressor.d.ts +684 -0
- package/dist/types/abi/compressors/rewardsCompressor.d.ts +70 -0
- package/dist/types/abi/compressors/subcompressors/infinifiWithdrawalSubcompressor.d.ts +220 -0
- package/dist/types/abi/compressors/subcompressors/mellowWithdrawalSubcompressor.d.ts +220 -0
- package/dist/types/abi/compressors/subcompressors/midasWithdrawalSubcompressor.d.ts +220 -0
- package/dist/types/abi/compressors/subcompressors/upshiftWithdrawalSubcompressor.d.ts +220 -0
- package/dist/types/abi/compressors/tokenCompressor.d.ts +101 -0
- package/dist/types/abi/{routerV310.d.ts → compressors/withdrawalCompressor.d.ts} +175 -253
- package/dist/types/abi/governance/batchesChain.d.ts +31 -0
- package/dist/types/abi/governance/governor.d.ts +584 -0
- package/dist/types/abi/governance/iTimeLock.d.ts +328 -0
- package/dist/types/abi/router/balancerV2Worker.d.ts +961 -0
- package/dist/types/abi/router/balancerV3Worker.d.ts +961 -0
- package/dist/types/abi/router/camelotV3Worker.d.ts +754 -0
- package/dist/types/abi/router/convexWorker.d.ts +726 -0
- package/dist/types/abi/router/curveWorker.d.ts +947 -0
- package/dist/types/abi/router/daiUsdsWorker.d.ts +726 -0
- package/dist/types/abi/router/equalizerRouterWorker.d.ts +726 -0
- package/dist/types/abi/router/erc4626Worker.d.ts +769 -0
- package/dist/types/abi/router/fluidDexWorker.d.ts +740 -0
- package/dist/types/abi/router/gearboxRouter.d.ts +881 -0
- package/dist/types/abi/router/infraredVaultWorker.d.ts +726 -0
- package/dist/types/abi/router/kodiakWorker.d.ts +967 -0
- package/dist/types/abi/router/lidoWorker.d.ts +726 -0
- package/dist/types/abi/router/mellow4626Worker.d.ts +726 -0
- package/dist/types/abi/router/mellowDVVWorker.d.ts +726 -0
- package/dist/types/abi/router/mellowVaultWorker.d.ts +740 -0
- package/dist/types/abi/router/pendleRouterWorker.d.ts +760 -0
- package/dist/types/abi/router/routingManager.d.ts +494 -0
- package/dist/types/abi/router/stakingRewardsWorker.d.ts +726 -0
- package/dist/types/abi/router/traderJoeWorker.d.ts +726 -0
- package/dist/types/abi/router/uniswapV2Worker.d.ts +726 -0
- package/dist/types/abi/router/uniswapV3Worker.d.ts +774 -0
- package/dist/types/abi/router/upshiftWorker.d.ts +726 -0
- package/dist/types/abi/router/velodromeV2Worker.d.ts +726 -0
- package/dist/types/abi/router/wstETHWorker.d.ts +726 -0
- package/dist/types/abi/router/yearnV2Worker.d.ts +726 -0
- package/dist/types/plugins/bots/types.d.ts +2 -2
- package/dist/types/plugins/zappers/types.d.ts +2 -2
- package/dist/types/sdk/accounts/types.d.ts +2 -2
- package/dist/types/sdk/base/types.d.ts +11 -7
- package/dist/types/sdk/market/credit/CreditManagerV310Contract.d.ts +1 -1
- package/dist/types/sdk/market/oracle/types.d.ts +3 -3
- package/dist/types/sdk/router/RouterV310Contract.d.ts +481 -1
- package/dist/types/sdk/sdk-legacy/payload/pool.d.ts +2 -2
- package/package.json +1 -1
- package/dist/cjs/abi/compressors.js +0 -4555
- package/dist/cjs/abi/iPriceFeedStore.js +0 -254
- package/dist/cjs/abi/index.js +0 -46
- package/dist/cjs/abi/package.json +0 -1
- package/dist/cjs/abi/routerV310.js +0 -276
- package/dist/esm/abi/compressors.js +0 -4524
- package/dist/esm/abi/iPriceFeedStore.js +0 -230
- package/dist/esm/abi/index.js +0 -13
- package/dist/esm/abi/package.json +0 -1
- package/dist/esm/abi/routerV310.js +0 -252
- package/dist/types/abi/index.d.ts +0 -13
- /package/dist/esm/abi/{v310.js → 310/generated.js} +0 -0
- /package/dist/types/abi/{v310.d.ts → 310/generated.d.ts} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AbiParametersToPrimitiveTypes, ExtractAbiFunction } from "abitype";
|
|
2
2
|
import type { Address } from "viem";
|
|
3
|
-
import type {
|
|
3
|
+
import type { peripheryCompressorAbi } from "../../abi/compressors/peripheryCompressor.js";
|
|
4
4
|
import type { BaseContractStateHuman, Unarray } from "../../sdk/index.js";
|
|
5
|
-
export type BotState = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof
|
|
5
|
+
export type BotState = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof peripheryCompressorAbi, "getBots">["outputs"]>>;
|
|
6
6
|
export interface BotParameters {
|
|
7
7
|
treasury: Address;
|
|
8
8
|
minHealthFactor: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AbiParametersToPrimitiveTypes, ExtractAbiFunction } from "abitype";
|
|
2
2
|
import type { Address } from "viem";
|
|
3
|
-
import type {
|
|
3
|
+
import type { peripheryCompressorAbi } from "../../abi/compressors/peripheryCompressor.js";
|
|
4
4
|
import type { BaseContractStateHuman, Unarray } from "../../sdk/index.js";
|
|
5
|
-
export type ZapperData = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof
|
|
5
|
+
export type ZapperData = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof peripheryCompressorAbi, "getZappers">["outputs"]>>;
|
|
6
6
|
export interface ZapperDataFull extends ZapperData {
|
|
7
7
|
pool: Address;
|
|
8
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Address, ContractFunctionArgs } from "viem";
|
|
2
|
-
import type {
|
|
2
|
+
import type { creditAccountCompressorAbi } from "../../abi/compressors/creditAccountCompressor.js";
|
|
3
3
|
import type { LiquidationBotType as LiquidationBotTypeSDK } from "../../plugins/bots/types.js";
|
|
4
4
|
import type { MigrationBotType } from "../accountMigration/types.js";
|
|
5
5
|
import type { ConnectedBotData, CreditAccountData } from "../base/index.js";
|
|
@@ -7,7 +7,7 @@ import type { SDKConstruct } from "../base/SDKConstruct.js";
|
|
|
7
7
|
import type { CreditSuite, OnDemandPriceUpdates, PriceUpdateV300, PriceUpdateV310, UpdatePriceFeedsResult } from "../market/index.js";
|
|
8
8
|
import type { Asset, CreditAccountTokensSlice, RouterCASlice, RouterCloseResult } from "../router/index.js";
|
|
9
9
|
import type { MultiCall, RawTx } from "../types/index.js";
|
|
10
|
-
export type GetCreditAccountsArgs = ContractFunctionArgs<typeof
|
|
10
|
+
export type GetCreditAccountsArgs = ContractFunctionArgs<typeof creditAccountCompressorAbi, "pure" | "view", "getCreditAccounts">;
|
|
11
11
|
export interface CreditAccountFilter {
|
|
12
12
|
owner: Address;
|
|
13
13
|
includeZeroDebt: boolean;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { AbiParametersToPrimitiveTypes, ExtractAbiFunction } from "abitype";
|
|
2
2
|
import type { Address, Hex } from "viem";
|
|
3
|
-
import type {
|
|
3
|
+
import type { creditAccountCompressorAbi } from "../../abi/compressors/creditAccountCompressor.js";
|
|
4
|
+
import type { gaugeCompressorAbi } from "../../abi/compressors/gaugeCompressor.js";
|
|
5
|
+
import type { marketCompressorAbi } from "../../abi/compressors/marketCompressor.js";
|
|
6
|
+
import type { peripheryCompressorAbi } from "../../abi/compressors/peripheryCompressor.js";
|
|
7
|
+
import type { rewardsCompressorAbi } from "../../abi/compressors/rewardsCompressor.js";
|
|
4
8
|
export type Unarray<A> = A extends readonly unknown[] ? Unarray<A[number]> : A;
|
|
5
9
|
export interface BaseParams {
|
|
6
10
|
addr: Address;
|
|
@@ -11,12 +15,12 @@ export interface BaseParams {
|
|
|
11
15
|
export interface BaseState {
|
|
12
16
|
baseParams: BaseParams;
|
|
13
17
|
}
|
|
14
|
-
export type MarketFilter = AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof
|
|
15
|
-
export type CreditAccountData = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof
|
|
16
|
-
export type RewardInfo = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof
|
|
17
|
-
export type MarketData = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof
|
|
18
|
-
export type GaugeData = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof
|
|
19
|
-
export type ConnectedBotData = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof
|
|
18
|
+
export type MarketFilter = AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof marketCompressorAbi, "getMarkets">["inputs"]>[0];
|
|
19
|
+
export type CreditAccountData = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof creditAccountCompressorAbi, "getCreditAccountData">["outputs"]>>;
|
|
20
|
+
export type RewardInfo = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof rewardsCompressorAbi, "getRewards">["outputs"]>>;
|
|
21
|
+
export type MarketData = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof marketCompressorAbi, "getMarkets">["outputs"]>>;
|
|
22
|
+
export type GaugeData = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof gaugeCompressorAbi, "getGaugeInfo">["outputs"]>>;
|
|
23
|
+
export type ConnectedBotData = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof peripheryCompressorAbi, "getConnectedBots">["outputs"]>>;
|
|
20
24
|
export type CreditSuiteState = Unarray<MarketData["creditManagers"]>;
|
|
21
25
|
export type CreditManagerState = CreditSuiteState["creditManager"];
|
|
22
26
|
export type CreditFacadeState = CreditSuiteState["creditFacade"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Address, ContractEventName, Log } from "viem";
|
|
2
|
-
import { iCreditManagerV310Abi } from "../../../abi/
|
|
2
|
+
import { iCreditManagerV310Abi } from "../../../abi/310/generated.js";
|
|
3
3
|
import type { CreditManagerState, CreditSuiteState } from "../../base/index.js";
|
|
4
4
|
import { BaseContract } from "../../base/index.js";
|
|
5
5
|
import type { GearboxSDK } from "../../GearboxSDK.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Address, ContractFunctionParameters, ContractFunctionReturnType } from "viem";
|
|
2
|
-
import type {
|
|
2
|
+
import type { priceFeedCompressorAbi } from "../../../abi/compressors/priceFeedCompressor.js";
|
|
3
3
|
import type { IBaseContract } from "../../base/index.js";
|
|
4
4
|
import type { MultiCall, PriceOracleStateHuman } from "../../types/index.js";
|
|
5
5
|
import type { AddressMap } from "../../utils/index.js";
|
|
@@ -131,6 +131,6 @@ export interface IPriceOracleContract extends IBaseContract {
|
|
|
131
131
|
stateHuman: (raw?: boolean) => PriceOracleStateHuman;
|
|
132
132
|
}
|
|
133
133
|
export interface DelegatedOracleMulticall {
|
|
134
|
-
call: ContractFunctionParameters<typeof
|
|
135
|
-
onResult: (resp: ContractFunctionReturnType<typeof
|
|
134
|
+
call: ContractFunctionParameters<typeof priceFeedCompressorAbi, "view", "getPriceOracleState">;
|
|
135
|
+
onResult: (resp: ContractFunctionReturnType<typeof priceFeedCompressorAbi, "view", "getPriceOracleState">) => void;
|
|
136
136
|
}
|
|
@@ -4,6 +4,14 @@ import type { Leftovers } from "./AbstractRouterContract.js";
|
|
|
4
4
|
import { AbstractRouterContract } from "./AbstractRouterContract.js";
|
|
5
5
|
import type { FindAllSwapsProps, FindBestClosePathProps, FindClaimAllRewardsProps, FindClosePathInput, FindOneTokenPathProps, FindOpenStrategyPathProps, IRouterContract, OpenStrategyResult, RouterCASlice, RouterCloseResult, RouterCMSlice, RouterResult, RouterRewardsResult } from "./types.js";
|
|
6
6
|
declare const abi: readonly [{
|
|
7
|
+
readonly type: "constructor";
|
|
8
|
+
readonly inputs: readonly [{
|
|
9
|
+
readonly name: "owner";
|
|
10
|
+
readonly type: "address";
|
|
11
|
+
readonly internalType: "address";
|
|
12
|
+
}];
|
|
13
|
+
readonly stateMutability: "nonpayable";
|
|
14
|
+
}, {
|
|
7
15
|
readonly type: "function";
|
|
8
16
|
readonly name: "componentAddressByType";
|
|
9
17
|
readonly inputs: readonly [{
|
|
@@ -27,6 +35,330 @@ declare const abi: readonly [{
|
|
|
27
35
|
readonly internalType: "bytes32";
|
|
28
36
|
}];
|
|
29
37
|
readonly stateMutability: "view";
|
|
38
|
+
}, {
|
|
39
|
+
readonly type: "function";
|
|
40
|
+
readonly name: "createOpenStrategyPathTask";
|
|
41
|
+
readonly inputs: readonly [{
|
|
42
|
+
readonly name: "creditManager";
|
|
43
|
+
readonly type: "address";
|
|
44
|
+
readonly internalType: "contract ICreditManagerV3";
|
|
45
|
+
}, {
|
|
46
|
+
readonly name: "target";
|
|
47
|
+
readonly type: "address";
|
|
48
|
+
readonly internalType: "address";
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "slippage";
|
|
51
|
+
readonly type: "uint256";
|
|
52
|
+
readonly internalType: "uint256";
|
|
53
|
+
}, {
|
|
54
|
+
readonly name: "tData";
|
|
55
|
+
readonly type: "tuple[]";
|
|
56
|
+
readonly internalType: "struct TokenData[]";
|
|
57
|
+
readonly components: readonly [{
|
|
58
|
+
readonly name: "token";
|
|
59
|
+
readonly type: "address";
|
|
60
|
+
readonly internalType: "address";
|
|
61
|
+
}, {
|
|
62
|
+
readonly name: "balance";
|
|
63
|
+
readonly type: "uint256";
|
|
64
|
+
readonly internalType: "uint256";
|
|
65
|
+
}, {
|
|
66
|
+
readonly name: "leftoverBalance";
|
|
67
|
+
readonly type: "uint256";
|
|
68
|
+
readonly internalType: "uint256";
|
|
69
|
+
}, {
|
|
70
|
+
readonly name: "numSplits";
|
|
71
|
+
readonly type: "uint256";
|
|
72
|
+
readonly internalType: "uint256";
|
|
73
|
+
}, {
|
|
74
|
+
readonly name: "claimRewards";
|
|
75
|
+
readonly type: "bool";
|
|
76
|
+
readonly internalType: "bool";
|
|
77
|
+
}];
|
|
78
|
+
}];
|
|
79
|
+
readonly outputs: readonly [{
|
|
80
|
+
readonly name: "task";
|
|
81
|
+
readonly type: "tuple";
|
|
82
|
+
readonly internalType: "struct StrategyPathTask";
|
|
83
|
+
readonly components: readonly [{
|
|
84
|
+
readonly name: "creditAccount";
|
|
85
|
+
readonly type: "address";
|
|
86
|
+
readonly internalType: "address";
|
|
87
|
+
}, {
|
|
88
|
+
readonly name: "graph";
|
|
89
|
+
readonly type: "tuple";
|
|
90
|
+
readonly internalType: "struct Graph";
|
|
91
|
+
readonly components: readonly [{
|
|
92
|
+
readonly name: "vertices";
|
|
93
|
+
readonly type: "tuple[]";
|
|
94
|
+
readonly internalType: "struct Vertex[]";
|
|
95
|
+
readonly components: readonly [{
|
|
96
|
+
readonly name: "token";
|
|
97
|
+
readonly type: "address";
|
|
98
|
+
readonly internalType: "address";
|
|
99
|
+
}, {
|
|
100
|
+
readonly name: "balance";
|
|
101
|
+
readonly type: "uint256";
|
|
102
|
+
readonly internalType: "uint256";
|
|
103
|
+
}, {
|
|
104
|
+
readonly name: "leftoverBalance";
|
|
105
|
+
readonly type: "uint256";
|
|
106
|
+
readonly internalType: "uint256";
|
|
107
|
+
}, {
|
|
108
|
+
readonly name: "numSplits";
|
|
109
|
+
readonly type: "uint256";
|
|
110
|
+
readonly internalType: "uint256";
|
|
111
|
+
}, {
|
|
112
|
+
readonly name: "currentOptimalEdge";
|
|
113
|
+
readonly type: "uint256";
|
|
114
|
+
readonly internalType: "uint256";
|
|
115
|
+
}];
|
|
116
|
+
}, {
|
|
117
|
+
readonly name: "edges";
|
|
118
|
+
readonly type: "tuple[]";
|
|
119
|
+
readonly internalType: "struct Edge[]";
|
|
120
|
+
readonly components: readonly [{
|
|
121
|
+
readonly name: "id";
|
|
122
|
+
readonly type: "uint256";
|
|
123
|
+
readonly internalType: "uint256";
|
|
124
|
+
}, {
|
|
125
|
+
readonly name: "tokenIn";
|
|
126
|
+
readonly type: "address";
|
|
127
|
+
readonly internalType: "address";
|
|
128
|
+
}, {
|
|
129
|
+
readonly name: "tokenOut";
|
|
130
|
+
readonly type: "address";
|
|
131
|
+
readonly internalType: "address";
|
|
132
|
+
}, {
|
|
133
|
+
readonly name: "adapter";
|
|
134
|
+
readonly type: "address";
|
|
135
|
+
readonly internalType: "address";
|
|
136
|
+
}, {
|
|
137
|
+
readonly name: "worker";
|
|
138
|
+
readonly type: "address";
|
|
139
|
+
readonly internalType: "address";
|
|
140
|
+
}, {
|
|
141
|
+
readonly name: "extraData";
|
|
142
|
+
readonly type: "bytes";
|
|
143
|
+
readonly internalType: "bytes";
|
|
144
|
+
}, {
|
|
145
|
+
readonly name: "amountInTotal";
|
|
146
|
+
readonly type: "uint256";
|
|
147
|
+
readonly internalType: "uint256";
|
|
148
|
+
}, {
|
|
149
|
+
readonly name: "amountOutTotal";
|
|
150
|
+
readonly type: "uint256";
|
|
151
|
+
readonly internalType: "uint256";
|
|
152
|
+
}, {
|
|
153
|
+
readonly name: "amountInCurrent";
|
|
154
|
+
readonly type: "uint256";
|
|
155
|
+
readonly internalType: "uint256";
|
|
156
|
+
}, {
|
|
157
|
+
readonly name: "amountOutCurrent";
|
|
158
|
+
readonly type: "uint256";
|
|
159
|
+
readonly internalType: "uint256";
|
|
160
|
+
}];
|
|
161
|
+
}];
|
|
162
|
+
}, {
|
|
163
|
+
readonly name: "target";
|
|
164
|
+
readonly type: "address";
|
|
165
|
+
readonly internalType: "address";
|
|
166
|
+
}, {
|
|
167
|
+
readonly name: "adapters";
|
|
168
|
+
readonly type: "address[]";
|
|
169
|
+
readonly internalType: "address[]";
|
|
170
|
+
}, {
|
|
171
|
+
readonly name: "slippage";
|
|
172
|
+
readonly type: "uint256";
|
|
173
|
+
readonly internalType: "uint256";
|
|
174
|
+
}, {
|
|
175
|
+
readonly name: "force";
|
|
176
|
+
readonly type: "bool";
|
|
177
|
+
readonly internalType: "bool";
|
|
178
|
+
}, {
|
|
179
|
+
readonly name: "initTargetBalance";
|
|
180
|
+
readonly type: "uint256";
|
|
181
|
+
readonly internalType: "uint256";
|
|
182
|
+
}, {
|
|
183
|
+
readonly name: "calls";
|
|
184
|
+
readonly type: "tuple[]";
|
|
185
|
+
readonly internalType: "struct MultiCall[]";
|
|
186
|
+
readonly components: readonly [{
|
|
187
|
+
readonly name: "target";
|
|
188
|
+
readonly type: "address";
|
|
189
|
+
readonly internalType: "address";
|
|
190
|
+
}, {
|
|
191
|
+
readonly name: "callData";
|
|
192
|
+
readonly type: "bytes";
|
|
193
|
+
readonly internalType: "bytes";
|
|
194
|
+
}];
|
|
195
|
+
}];
|
|
196
|
+
}];
|
|
197
|
+
readonly stateMutability: "nonpayable";
|
|
198
|
+
}, {
|
|
199
|
+
readonly type: "function";
|
|
200
|
+
readonly name: "createStrategyPathTask";
|
|
201
|
+
readonly inputs: readonly [{
|
|
202
|
+
readonly name: "creditAccount";
|
|
203
|
+
readonly type: "address";
|
|
204
|
+
readonly internalType: "address";
|
|
205
|
+
}, {
|
|
206
|
+
readonly name: "target";
|
|
207
|
+
readonly type: "address";
|
|
208
|
+
readonly internalType: "address";
|
|
209
|
+
}, {
|
|
210
|
+
readonly name: "slippage";
|
|
211
|
+
readonly type: "uint256";
|
|
212
|
+
readonly internalType: "uint256";
|
|
213
|
+
}, {
|
|
214
|
+
readonly name: "force";
|
|
215
|
+
readonly type: "bool";
|
|
216
|
+
readonly internalType: "bool";
|
|
217
|
+
}, {
|
|
218
|
+
readonly name: "tData";
|
|
219
|
+
readonly type: "tuple[]";
|
|
220
|
+
readonly internalType: "struct TokenData[]";
|
|
221
|
+
readonly components: readonly [{
|
|
222
|
+
readonly name: "token";
|
|
223
|
+
readonly type: "address";
|
|
224
|
+
readonly internalType: "address";
|
|
225
|
+
}, {
|
|
226
|
+
readonly name: "balance";
|
|
227
|
+
readonly type: "uint256";
|
|
228
|
+
readonly internalType: "uint256";
|
|
229
|
+
}, {
|
|
230
|
+
readonly name: "leftoverBalance";
|
|
231
|
+
readonly type: "uint256";
|
|
232
|
+
readonly internalType: "uint256";
|
|
233
|
+
}, {
|
|
234
|
+
readonly name: "numSplits";
|
|
235
|
+
readonly type: "uint256";
|
|
236
|
+
readonly internalType: "uint256";
|
|
237
|
+
}, {
|
|
238
|
+
readonly name: "claimRewards";
|
|
239
|
+
readonly type: "bool";
|
|
240
|
+
readonly internalType: "bool";
|
|
241
|
+
}];
|
|
242
|
+
}];
|
|
243
|
+
readonly outputs: readonly [{
|
|
244
|
+
readonly name: "task";
|
|
245
|
+
readonly type: "tuple";
|
|
246
|
+
readonly internalType: "struct StrategyPathTask";
|
|
247
|
+
readonly components: readonly [{
|
|
248
|
+
readonly name: "creditAccount";
|
|
249
|
+
readonly type: "address";
|
|
250
|
+
readonly internalType: "address";
|
|
251
|
+
}, {
|
|
252
|
+
readonly name: "graph";
|
|
253
|
+
readonly type: "tuple";
|
|
254
|
+
readonly internalType: "struct Graph";
|
|
255
|
+
readonly components: readonly [{
|
|
256
|
+
readonly name: "vertices";
|
|
257
|
+
readonly type: "tuple[]";
|
|
258
|
+
readonly internalType: "struct Vertex[]";
|
|
259
|
+
readonly components: readonly [{
|
|
260
|
+
readonly name: "token";
|
|
261
|
+
readonly type: "address";
|
|
262
|
+
readonly internalType: "address";
|
|
263
|
+
}, {
|
|
264
|
+
readonly name: "balance";
|
|
265
|
+
readonly type: "uint256";
|
|
266
|
+
readonly internalType: "uint256";
|
|
267
|
+
}, {
|
|
268
|
+
readonly name: "leftoverBalance";
|
|
269
|
+
readonly type: "uint256";
|
|
270
|
+
readonly internalType: "uint256";
|
|
271
|
+
}, {
|
|
272
|
+
readonly name: "numSplits";
|
|
273
|
+
readonly type: "uint256";
|
|
274
|
+
readonly internalType: "uint256";
|
|
275
|
+
}, {
|
|
276
|
+
readonly name: "currentOptimalEdge";
|
|
277
|
+
readonly type: "uint256";
|
|
278
|
+
readonly internalType: "uint256";
|
|
279
|
+
}];
|
|
280
|
+
}, {
|
|
281
|
+
readonly name: "edges";
|
|
282
|
+
readonly type: "tuple[]";
|
|
283
|
+
readonly internalType: "struct Edge[]";
|
|
284
|
+
readonly components: readonly [{
|
|
285
|
+
readonly name: "id";
|
|
286
|
+
readonly type: "uint256";
|
|
287
|
+
readonly internalType: "uint256";
|
|
288
|
+
}, {
|
|
289
|
+
readonly name: "tokenIn";
|
|
290
|
+
readonly type: "address";
|
|
291
|
+
readonly internalType: "address";
|
|
292
|
+
}, {
|
|
293
|
+
readonly name: "tokenOut";
|
|
294
|
+
readonly type: "address";
|
|
295
|
+
readonly internalType: "address";
|
|
296
|
+
}, {
|
|
297
|
+
readonly name: "adapter";
|
|
298
|
+
readonly type: "address";
|
|
299
|
+
readonly internalType: "address";
|
|
300
|
+
}, {
|
|
301
|
+
readonly name: "worker";
|
|
302
|
+
readonly type: "address";
|
|
303
|
+
readonly internalType: "address";
|
|
304
|
+
}, {
|
|
305
|
+
readonly name: "extraData";
|
|
306
|
+
readonly type: "bytes";
|
|
307
|
+
readonly internalType: "bytes";
|
|
308
|
+
}, {
|
|
309
|
+
readonly name: "amountInTotal";
|
|
310
|
+
readonly type: "uint256";
|
|
311
|
+
readonly internalType: "uint256";
|
|
312
|
+
}, {
|
|
313
|
+
readonly name: "amountOutTotal";
|
|
314
|
+
readonly type: "uint256";
|
|
315
|
+
readonly internalType: "uint256";
|
|
316
|
+
}, {
|
|
317
|
+
readonly name: "amountInCurrent";
|
|
318
|
+
readonly type: "uint256";
|
|
319
|
+
readonly internalType: "uint256";
|
|
320
|
+
}, {
|
|
321
|
+
readonly name: "amountOutCurrent";
|
|
322
|
+
readonly type: "uint256";
|
|
323
|
+
readonly internalType: "uint256";
|
|
324
|
+
}];
|
|
325
|
+
}];
|
|
326
|
+
}, {
|
|
327
|
+
readonly name: "target";
|
|
328
|
+
readonly type: "address";
|
|
329
|
+
readonly internalType: "address";
|
|
330
|
+
}, {
|
|
331
|
+
readonly name: "adapters";
|
|
332
|
+
readonly type: "address[]";
|
|
333
|
+
readonly internalType: "address[]";
|
|
334
|
+
}, {
|
|
335
|
+
readonly name: "slippage";
|
|
336
|
+
readonly type: "uint256";
|
|
337
|
+
readonly internalType: "uint256";
|
|
338
|
+
}, {
|
|
339
|
+
readonly name: "force";
|
|
340
|
+
readonly type: "bool";
|
|
341
|
+
readonly internalType: "bool";
|
|
342
|
+
}, {
|
|
343
|
+
readonly name: "initTargetBalance";
|
|
344
|
+
readonly type: "uint256";
|
|
345
|
+
readonly internalType: "uint256";
|
|
346
|
+
}, {
|
|
347
|
+
readonly name: "calls";
|
|
348
|
+
readonly type: "tuple[]";
|
|
349
|
+
readonly internalType: "struct MultiCall[]";
|
|
350
|
+
readonly components: readonly [{
|
|
351
|
+
readonly name: "target";
|
|
352
|
+
readonly type: "address";
|
|
353
|
+
readonly internalType: "address";
|
|
354
|
+
}, {
|
|
355
|
+
readonly name: "callData";
|
|
356
|
+
readonly type: "bytes";
|
|
357
|
+
readonly internalType: "bytes";
|
|
358
|
+
}];
|
|
359
|
+
}];
|
|
360
|
+
}];
|
|
361
|
+
readonly stateMutability: "nonpayable";
|
|
30
362
|
}, {
|
|
31
363
|
readonly type: "function";
|
|
32
364
|
readonly name: "futureRouter";
|
|
@@ -37,6 +369,55 @@ declare const abi: readonly [{
|
|
|
37
369
|
readonly internalType: "address";
|
|
38
370
|
}];
|
|
39
371
|
readonly stateMutability: "view";
|
|
372
|
+
}, {
|
|
373
|
+
readonly type: "function";
|
|
374
|
+
readonly name: "getAdapters";
|
|
375
|
+
readonly inputs: readonly [{
|
|
376
|
+
readonly name: "creditManager";
|
|
377
|
+
readonly type: "address";
|
|
378
|
+
readonly internalType: "contract ICreditManagerV3";
|
|
379
|
+
}];
|
|
380
|
+
readonly outputs: readonly [{
|
|
381
|
+
readonly name: "result";
|
|
382
|
+
readonly type: "address[]";
|
|
383
|
+
readonly internalType: "address[]";
|
|
384
|
+
}];
|
|
385
|
+
readonly stateMutability: "view";
|
|
386
|
+
}, {
|
|
387
|
+
readonly type: "function";
|
|
388
|
+
readonly name: "getDefaultTokenData";
|
|
389
|
+
readonly inputs: readonly [{
|
|
390
|
+
readonly name: "creditAccount";
|
|
391
|
+
readonly type: "address";
|
|
392
|
+
readonly internalType: "address";
|
|
393
|
+
}];
|
|
394
|
+
readonly outputs: readonly [{
|
|
395
|
+
readonly name: "tData";
|
|
396
|
+
readonly type: "tuple[]";
|
|
397
|
+
readonly internalType: "struct TokenData[]";
|
|
398
|
+
readonly components: readonly [{
|
|
399
|
+
readonly name: "token";
|
|
400
|
+
readonly type: "address";
|
|
401
|
+
readonly internalType: "address";
|
|
402
|
+
}, {
|
|
403
|
+
readonly name: "balance";
|
|
404
|
+
readonly type: "uint256";
|
|
405
|
+
readonly internalType: "uint256";
|
|
406
|
+
}, {
|
|
407
|
+
readonly name: "leftoverBalance";
|
|
408
|
+
readonly type: "uint256";
|
|
409
|
+
readonly internalType: "uint256";
|
|
410
|
+
}, {
|
|
411
|
+
readonly name: "numSplits";
|
|
412
|
+
readonly type: "uint256";
|
|
413
|
+
readonly internalType: "uint256";
|
|
414
|
+
}, {
|
|
415
|
+
readonly name: "claimRewards";
|
|
416
|
+
readonly type: "bool";
|
|
417
|
+
readonly internalType: "bool";
|
|
418
|
+
}];
|
|
419
|
+
}];
|
|
420
|
+
readonly stateMutability: "view";
|
|
40
421
|
}, {
|
|
41
422
|
readonly type: "function";
|
|
42
423
|
readonly name: "isRouterConfigurator";
|
|
@@ -56,11 +437,31 @@ declare const abi: readonly [{
|
|
|
56
437
|
readonly name: "knownComponentTypes";
|
|
57
438
|
readonly inputs: readonly [];
|
|
58
439
|
readonly outputs: readonly [{
|
|
59
|
-
readonly name: "";
|
|
440
|
+
readonly name: "knownTypes";
|
|
60
441
|
readonly type: "bytes32[]";
|
|
61
442
|
readonly internalType: "bytes32[]";
|
|
62
443
|
}];
|
|
63
444
|
readonly stateMutability: "view";
|
|
445
|
+
}, {
|
|
446
|
+
readonly type: "function";
|
|
447
|
+
readonly name: "migrateRouterComponents";
|
|
448
|
+
readonly inputs: readonly [{
|
|
449
|
+
readonly name: "_prevRouter";
|
|
450
|
+
readonly type: "address";
|
|
451
|
+
readonly internalType: "address";
|
|
452
|
+
}];
|
|
453
|
+
readonly outputs: readonly [];
|
|
454
|
+
readonly stateMutability: "nonpayable";
|
|
455
|
+
}, {
|
|
456
|
+
readonly type: "function";
|
|
457
|
+
readonly name: "owner";
|
|
458
|
+
readonly inputs: readonly [];
|
|
459
|
+
readonly outputs: readonly [{
|
|
460
|
+
readonly name: "";
|
|
461
|
+
readonly type: "address";
|
|
462
|
+
readonly internalType: "address";
|
|
463
|
+
}];
|
|
464
|
+
readonly stateMutability: "view";
|
|
64
465
|
}, {
|
|
65
466
|
readonly type: "function";
|
|
66
467
|
readonly name: "processClaims";
|
|
@@ -109,6 +510,12 @@ declare const abi: readonly [{
|
|
|
109
510
|
}];
|
|
110
511
|
}];
|
|
111
512
|
readonly stateMutability: "nonpayable";
|
|
513
|
+
}, {
|
|
514
|
+
readonly type: "function";
|
|
515
|
+
readonly name: "renounceOwnership";
|
|
516
|
+
readonly inputs: readonly [];
|
|
517
|
+
readonly outputs: readonly [];
|
|
518
|
+
readonly stateMutability: "nonpayable";
|
|
112
519
|
}, {
|
|
113
520
|
readonly type: "function";
|
|
114
521
|
readonly name: "routeManyToOne";
|
|
@@ -363,6 +770,56 @@ declare const abi: readonly [{
|
|
|
363
770
|
}];
|
|
364
771
|
}];
|
|
365
772
|
readonly stateMutability: "nonpayable";
|
|
773
|
+
}, {
|
|
774
|
+
readonly type: "function";
|
|
775
|
+
readonly name: "routingManager";
|
|
776
|
+
readonly inputs: readonly [];
|
|
777
|
+
readonly outputs: readonly [{
|
|
778
|
+
readonly name: "";
|
|
779
|
+
readonly type: "address";
|
|
780
|
+
readonly internalType: "contract IRoutingManager";
|
|
781
|
+
}];
|
|
782
|
+
readonly stateMutability: "view";
|
|
783
|
+
}, {
|
|
784
|
+
readonly type: "function";
|
|
785
|
+
readonly name: "setFutureRouter";
|
|
786
|
+
readonly inputs: readonly [{
|
|
787
|
+
readonly name: "_futureRouter";
|
|
788
|
+
readonly type: "address";
|
|
789
|
+
readonly internalType: "address";
|
|
790
|
+
}];
|
|
791
|
+
readonly outputs: readonly [];
|
|
792
|
+
readonly stateMutability: "nonpayable";
|
|
793
|
+
}, {
|
|
794
|
+
readonly type: "function";
|
|
795
|
+
readonly name: "setPathComponent";
|
|
796
|
+
readonly inputs: readonly [{
|
|
797
|
+
readonly name: "componentAddress";
|
|
798
|
+
readonly type: "address";
|
|
799
|
+
readonly internalType: "address";
|
|
800
|
+
}];
|
|
801
|
+
readonly outputs: readonly [];
|
|
802
|
+
readonly stateMutability: "nonpayable";
|
|
803
|
+
}, {
|
|
804
|
+
readonly type: "function";
|
|
805
|
+
readonly name: "setPathComponentBatch";
|
|
806
|
+
readonly inputs: readonly [{
|
|
807
|
+
readonly name: "componentAddresses";
|
|
808
|
+
readonly type: "address[]";
|
|
809
|
+
readonly internalType: "address[]";
|
|
810
|
+
}];
|
|
811
|
+
readonly outputs: readonly [];
|
|
812
|
+
readonly stateMutability: "nonpayable";
|
|
813
|
+
}, {
|
|
814
|
+
readonly type: "function";
|
|
815
|
+
readonly name: "transferOwnership";
|
|
816
|
+
readonly inputs: readonly [{
|
|
817
|
+
readonly name: "newOwner";
|
|
818
|
+
readonly type: "address";
|
|
819
|
+
readonly internalType: "address";
|
|
820
|
+
}];
|
|
821
|
+
readonly outputs: readonly [];
|
|
822
|
+
readonly stateMutability: "nonpayable";
|
|
366
823
|
}, {
|
|
367
824
|
readonly type: "function";
|
|
368
825
|
readonly name: "version";
|
|
@@ -373,6 +830,21 @@ declare const abi: readonly [{
|
|
|
373
830
|
readonly internalType: "uint256";
|
|
374
831
|
}];
|
|
375
832
|
readonly stateMutability: "view";
|
|
833
|
+
}, {
|
|
834
|
+
readonly type: "event";
|
|
835
|
+
readonly name: "OwnershipTransferred";
|
|
836
|
+
readonly inputs: readonly [{
|
|
837
|
+
readonly name: "previousOwner";
|
|
838
|
+
readonly type: "address";
|
|
839
|
+
readonly indexed: true;
|
|
840
|
+
readonly internalType: "address";
|
|
841
|
+
}, {
|
|
842
|
+
readonly name: "newOwner";
|
|
843
|
+
readonly type: "address";
|
|
844
|
+
readonly indexed: true;
|
|
845
|
+
readonly internalType: "address";
|
|
846
|
+
}];
|
|
847
|
+
readonly anonymous: false;
|
|
376
848
|
}, {
|
|
377
849
|
readonly type: "event";
|
|
378
850
|
readonly name: "RouterComponentUpdate";
|
|
@@ -403,6 +875,14 @@ declare const abi: readonly [{
|
|
|
403
875
|
readonly internalType: "address";
|
|
404
876
|
}];
|
|
405
877
|
readonly anonymous: false;
|
|
878
|
+
}, {
|
|
879
|
+
readonly type: "error";
|
|
880
|
+
readonly name: "UnsupportedRouterComponent";
|
|
881
|
+
readonly inputs: readonly [{
|
|
882
|
+
readonly name: "";
|
|
883
|
+
readonly type: "address";
|
|
884
|
+
readonly internalType: "address";
|
|
885
|
+
}];
|
|
406
886
|
}];
|
|
407
887
|
type abi = typeof abi;
|
|
408
888
|
export declare class RouterV310Contract extends AbstractRouterContract<abi> implements IRouterContract {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { AbiParametersToPrimitiveTypes, ExtractAbiFunction } from "abitype";
|
|
2
2
|
import type { Address } from "viem";
|
|
3
|
-
import type {
|
|
3
|
+
import type { peripheryCompressorAbi } from "../../../abi/compressors/peripheryCompressor.js";
|
|
4
4
|
import type { Unarray } from "../../base/types.js";
|
|
5
5
|
import type { NetworkType } from "../../chain/chains.js";
|
|
6
|
-
export type ZapperData = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof
|
|
6
|
+
export type ZapperData = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof peripheryCompressorAbi, "getZappers">["outputs"]>>;
|
|
7
7
|
export interface ZapperDataFull extends ZapperData {
|
|
8
8
|
pool: Address;
|
|
9
9
|
}
|