@enzymefinance/testutils 4.0.0-next.0 → 4.0.0-next.5
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/CHANGELOG.md +33 -0
- package/dist/declarations/src/assertions.d.ts +4 -4
- package/dist/declarations/src/deployment.d.ts +181 -82
- package/dist/declarations/src/gasRelayer.d.ts +56 -54
- package/dist/declarations/src/helpers.d.ts +16 -15
- package/dist/declarations/src/index.d.ts +6 -6
- package/dist/declarations/src/scaffolding/assets.d.ts +10 -10
- package/dist/declarations/src/scaffolding/chainlink.d.ts +3 -3
- package/dist/declarations/src/scaffolding/common.d.ts +7 -7
- package/dist/declarations/src/scaffolding/core.d.ts +17 -16
- package/dist/declarations/src/scaffolding/extensions/common.d.ts +11 -11
- package/dist/declarations/src/scaffolding/extensions/external-positions/actions.d.ts +35 -0
- package/dist/declarations/src/scaffolding/extensions/external-positions/compound.d.ts +56 -59
- package/dist/declarations/src/scaffolding/extensions/external-positions/index.d.ts +4 -2
- package/dist/declarations/src/scaffolding/extensions/external-positions/mocks.d.ts +53 -20
- package/dist/declarations/src/scaffolding/extensions/external-positions/uniswap-v3-liquidity.d.ts +99 -0
- package/dist/declarations/src/scaffolding/extensions/fees.d.ts +12 -12
- package/dist/declarations/src/scaffolding/extensions/index.d.ts +5 -5
- package/dist/declarations/src/scaffolding/extensions/integrations/aave.d.ts +20 -19
- package/dist/declarations/src/scaffolding/extensions/integrations/compound.d.ts +28 -28
- package/dist/declarations/src/scaffolding/extensions/integrations/curve.d.ts +272 -271
- package/dist/declarations/src/scaffolding/extensions/integrations/idle.d.ts +28 -28
- package/dist/declarations/src/scaffolding/extensions/integrations/index.d.ts +14 -12
- package/dist/declarations/src/scaffolding/extensions/integrations/mock.d.ts +32 -32
- package/dist/declarations/src/scaffolding/extensions/integrations/paraSwapV4.d.ts +23 -22
- package/dist/declarations/src/scaffolding/extensions/integrations/paraSwapV5.d.ts +23 -0
- package/dist/declarations/src/scaffolding/extensions/integrations/poolTogetherV4.d.ts +29 -0
- package/dist/declarations/src/scaffolding/extensions/integrations/synthetix.d.ts +33 -25
- package/dist/declarations/src/scaffolding/extensions/integrations/trackedAssets.d.ts +15 -15
- package/dist/declarations/src/scaffolding/extensions/integrations/uniswapV2.d.ts +46 -46
- package/dist/declarations/src/scaffolding/extensions/integrations/uniswapV3.d.ts +15 -15
- package/dist/declarations/src/scaffolding/extensions/integrations/yearn.d.ts +22 -22
- package/dist/declarations/src/scaffolding/extensions/integrations/zeroExV2.d.ts +12 -12
- package/dist/declarations/src/scaffolding/extensions/policies.d.ts +17 -17
- package/dist/declarations/src/scaffolding/index.d.ts +8 -8
- package/dist/declarations/src/scaffolding/setup.d.ts +77 -75
- package/dist/declarations/src/scaffolding/shares.d.ts +35 -35
- package/dist/declarations/src/scaffolding/vaultCalls.d.ts +32 -17
- package/dist/declarations/src/whales.d.ts +42 -44
- package/dist/enzymefinance-testutils.browser.cjs.js +1470 -697
- package/dist/enzymefinance-testutils.browser.esm.js +1257 -508
- package/dist/enzymefinance-testutils.cjs.dev.js +1470 -697
- package/dist/enzymefinance-testutils.cjs.prod.js +1470 -697
- package/dist/enzymefinance-testutils.esm.js +1257 -508
- package/package.json +6 -6
- package/src/assertions.ts +5 -2
- package/src/deployment.ts +202 -99
- package/src/gasRelayer.ts +17 -18
- package/src/helpers.ts +6 -4
- package/src/scaffolding/assets.ts +6 -5
- package/src/scaffolding/chainlink.ts +2 -2
- package/src/scaffolding/common.ts +1 -1
- package/src/scaffolding/core.ts +28 -12
- package/src/scaffolding/extensions/common.ts +4 -4
- package/src/scaffolding/extensions/external-positions/actions.ts +103 -0
- package/src/scaffolding/extensions/external-positions/compound.ts +69 -114
- package/src/scaffolding/extensions/external-positions/index.ts +2 -0
- package/src/scaffolding/extensions/external-positions/mocks.ts +132 -10
- package/src/scaffolding/extensions/external-positions/uniswap-v3-liquidity.ts +290 -0
- package/src/scaffolding/extensions/fees.ts +1 -1
- package/src/scaffolding/extensions/integrations/aave.ts +6 -8
- package/src/scaffolding/extensions/integrations/compound.ts +10 -11
- package/src/scaffolding/extensions/integrations/curve.ts +72 -68
- package/src/scaffolding/extensions/integrations/idle.ts +9 -11
- package/src/scaffolding/extensions/integrations/index.ts +2 -0
- package/src/scaffolding/extensions/integrations/mock.ts +11 -13
- package/src/scaffolding/extensions/integrations/paraSwapV4.ts +16 -11
- package/src/scaffolding/extensions/integrations/paraSwapV5.ts +73 -0
- package/src/scaffolding/extensions/integrations/poolTogetherV4.ts +117 -0
- package/src/scaffolding/extensions/integrations/synthetix.ts +45 -12
- package/src/scaffolding/extensions/integrations/trackedAssets.ts +3 -4
- package/src/scaffolding/extensions/integrations/uniswapV2.ts +31 -27
- package/src/scaffolding/extensions/integrations/uniswapV3.ts +9 -10
- package/src/scaffolding/extensions/integrations/yearn.ts +9 -11
- package/src/scaffolding/extensions/integrations/zeroExV2.ts +9 -7
- package/src/scaffolding/extensions/policies.ts +2 -1
- package/src/scaffolding/setup.ts +27 -19
- package/src/scaffolding/shares.ts +5 -4
- package/src/scaffolding/vaultCalls.ts +50 -3
- package/src/whales.ts +26 -17
- package/tsconfig.json +2 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { SignerWithAddress } from '@enzymefinance/hardhat';
|
|
2
|
-
import { ComptrollerLib, IdleAdapter, IntegrationManager, StandardToken } from '@enzymefinance/protocol';
|
|
3
|
-
import { BigNumberish } from 'ethers';
|
|
4
|
-
export declare function idleClaimRewards({ comptrollerProxy, integrationManager, fundOwner, idleAdapter, idleToken, }: {
|
|
5
|
-
comptrollerProxy: ComptrollerLib;
|
|
6
|
-
integrationManager: IntegrationManager;
|
|
7
|
-
fundOwner: SignerWithAddress;
|
|
8
|
-
idleAdapter: IdleAdapter;
|
|
9
|
-
idleToken: StandardToken;
|
|
10
|
-
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: import("@enzymefinance/ethers").AddressLike, _actionId: BigNumberish, _callArgs: import("ethers").BytesLike], void, ComptrollerLib>>>;
|
|
11
|
-
export declare function idleLend({ comptrollerProxy, integrationManager, fundOwner, idleAdapter, idleToken, outgoingUnderlyingAmount, minIncomingIdleTokenAmount, }: {
|
|
12
|
-
comptrollerProxy: ComptrollerLib;
|
|
13
|
-
integrationManager: IntegrationManager;
|
|
14
|
-
fundOwner: SignerWithAddress;
|
|
15
|
-
idleAdapter: IdleAdapter;
|
|
16
|
-
idleToken: StandardToken;
|
|
17
|
-
outgoingUnderlyingAmount: BigNumberish;
|
|
18
|
-
minIncomingIdleTokenAmount?: BigNumberish;
|
|
19
|
-
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: import("@enzymefinance/ethers").AddressLike, _actionId: BigNumberish, _callArgs: import("ethers").BytesLike], void, ComptrollerLib>>>;
|
|
20
|
-
export declare function idleRedeem({ comptrollerProxy, integrationManager, fundOwner, idleAdapter, idleToken, outgoingIdleTokenAmount, minIncomingUnderlyingAmount, }: {
|
|
21
|
-
comptrollerProxy: ComptrollerLib;
|
|
22
|
-
integrationManager: IntegrationManager;
|
|
23
|
-
fundOwner: SignerWithAddress;
|
|
24
|
-
idleAdapter: IdleAdapter;
|
|
25
|
-
idleToken: StandardToken;
|
|
26
|
-
outgoingIdleTokenAmount: BigNumberish;
|
|
27
|
-
minIncomingUnderlyingAmount?: BigNumberish;
|
|
28
|
-
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: import("@enzymefinance/ethers").AddressLike, _actionId: BigNumberish, _callArgs: import("ethers").BytesLike], void, ComptrollerLib>>>;
|
|
1
|
+
import type { SignerWithAddress } from '@enzymefinance/hardhat';
|
|
2
|
+
import type { ComptrollerLib, IdleAdapter, IntegrationManager, StandardToken } from '@enzymefinance/protocol';
|
|
3
|
+
import type { BigNumberish } from 'ethers';
|
|
4
|
+
export declare function idleClaimRewards({ comptrollerProxy, integrationManager, fundOwner, idleAdapter, idleToken, }: {
|
|
5
|
+
comptrollerProxy: ComptrollerLib;
|
|
6
|
+
integrationManager: IntegrationManager;
|
|
7
|
+
fundOwner: SignerWithAddress;
|
|
8
|
+
idleAdapter: IdleAdapter;
|
|
9
|
+
idleToken: StandardToken;
|
|
10
|
+
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: import("@enzymefinance/ethers").AddressLike, _actionId: BigNumberish, _callArgs: import("ethers").BytesLike], void, ComptrollerLib>>>;
|
|
11
|
+
export declare function idleLend({ comptrollerProxy, integrationManager, fundOwner, idleAdapter, idleToken, outgoingUnderlyingAmount, minIncomingIdleTokenAmount, }: {
|
|
12
|
+
comptrollerProxy: ComptrollerLib;
|
|
13
|
+
integrationManager: IntegrationManager;
|
|
14
|
+
fundOwner: SignerWithAddress;
|
|
15
|
+
idleAdapter: IdleAdapter;
|
|
16
|
+
idleToken: StandardToken;
|
|
17
|
+
outgoingUnderlyingAmount: BigNumberish;
|
|
18
|
+
minIncomingIdleTokenAmount?: BigNumberish;
|
|
19
|
+
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: import("@enzymefinance/ethers").AddressLike, _actionId: BigNumberish, _callArgs: import("ethers").BytesLike], void, ComptrollerLib>>>;
|
|
20
|
+
export declare function idleRedeem({ comptrollerProxy, integrationManager, fundOwner, idleAdapter, idleToken, outgoingIdleTokenAmount, minIncomingUnderlyingAmount, }: {
|
|
21
|
+
comptrollerProxy: ComptrollerLib;
|
|
22
|
+
integrationManager: IntegrationManager;
|
|
23
|
+
fundOwner: SignerWithAddress;
|
|
24
|
+
idleAdapter: IdleAdapter;
|
|
25
|
+
idleToken: StandardToken;
|
|
26
|
+
outgoingIdleTokenAmount: BigNumberish;
|
|
27
|
+
minIncomingUnderlyingAmount?: BigNumberish;
|
|
28
|
+
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: import("@enzymefinance/ethers").AddressLike, _actionId: BigNumberish, _callArgs: import("ethers").BytesLike], void, ComptrollerLib>>>;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
export * from './aave';
|
|
2
|
-
export * from './compound';
|
|
3
|
-
export * from './curve';
|
|
4
|
-
export * from './idle';
|
|
5
|
-
export * from './mock';
|
|
6
|
-
export * from './paraSwapV4';
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
1
|
+
export * from './aave';
|
|
2
|
+
export * from './compound';
|
|
3
|
+
export * from './curve';
|
|
4
|
+
export * from './idle';
|
|
5
|
+
export * from './mock';
|
|
6
|
+
export * from './paraSwapV4';
|
|
7
|
+
export * from './paraSwapV5';
|
|
8
|
+
export * from './poolTogetherV4';
|
|
9
|
+
export * from './synthetix';
|
|
10
|
+
export * from './trackedAssets';
|
|
11
|
+
export * from './uniswapV2';
|
|
12
|
+
export * from './uniswapV3';
|
|
13
|
+
export * from './yearn';
|
|
14
|
+
export * from './zeroExV2';
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { AddressLike } from '@enzymefinance/ethers';
|
|
2
|
-
import { SignerWithAddress } from '@enzymefinance/hardhat';
|
|
3
|
-
import { ComptrollerLib, IntegrationManager,
|
|
4
|
-
import { BigNumberish, BytesLike } from 'ethers';
|
|
5
|
-
export declare const mockGenericRemoveOnlySelector: string;
|
|
6
|
-
export declare const mockGenericSwapASelector: string;
|
|
7
|
-
export declare const mockGenericSwapBSelector: string;
|
|
8
|
-
export declare const mockGenericSwapDirectFromVaultSelector: string;
|
|
9
|
-
export declare const mockGenericSwapViaApprovalSelector: string;
|
|
10
|
-
export declare function mockGenericSwapArgs({ spendAssets, actualSpendAssetAmounts, maxSpendAssetAmounts, incomingAssets, actualIncomingAssetAmounts, minIncomingAssetAmounts, }: {
|
|
11
|
-
spendAssets?: AddressLike[];
|
|
12
|
-
maxSpendAssetAmounts?: BigNumberish[];
|
|
13
|
-
actualSpendAssetAmounts?: BigNumberish[];
|
|
14
|
-
incomingAssets?: AddressLike[];
|
|
15
|
-
minIncomingAssetAmounts?: BigNumberish[];
|
|
16
|
-
actualIncomingAssetAmounts?: BigNumberish[];
|
|
17
|
-
}): string;
|
|
18
|
-
export declare function mockGenericSwap({ comptrollerProxy, vaultProxy, integrationManager, fundOwner, mockGenericAdapter, selector, spendAssets, actualSpendAssetAmounts, maxSpendAssetAmounts, incomingAssets, actualIncomingAssetAmounts, minIncomingAssetAmounts, seedFund, }: {
|
|
19
|
-
comptrollerProxy: ComptrollerLib;
|
|
20
|
-
vaultProxy: VaultLib;
|
|
21
|
-
integrationManager: IntegrationManager;
|
|
22
|
-
fundOwner: SignerWithAddress;
|
|
23
|
-
mockGenericAdapter: MockGenericAdapter;
|
|
24
|
-
selector?: BytesLike;
|
|
25
|
-
spendAssets?: StandardToken[];
|
|
26
|
-
maxSpendAssetAmounts?: BigNumberish[];
|
|
27
|
-
actualSpendAssetAmounts?: BigNumberish[];
|
|
28
|
-
incomingAssets?: StandardToken[];
|
|
29
|
-
minIncomingAssetAmounts?: BigNumberish[];
|
|
30
|
-
actualIncomingAssetAmounts?: BigNumberish[];
|
|
31
|
-
seedFund?: boolean;
|
|
32
|
-
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: AddressLike, _actionId: BigNumberish, _callArgs: BytesLike], void, ComptrollerLib>>>;
|
|
1
|
+
import type { AddressLike } from '@enzymefinance/ethers';
|
|
2
|
+
import type { SignerWithAddress } from '@enzymefinance/hardhat';
|
|
3
|
+
import type { ComptrollerLib, IntegrationManager, MockGenericAdapter, StandardToken, VaultLib } from '@enzymefinance/protocol';
|
|
4
|
+
import type { BigNumberish, BytesLike } from 'ethers';
|
|
5
|
+
export declare const mockGenericRemoveOnlySelector: string;
|
|
6
|
+
export declare const mockGenericSwapASelector: string;
|
|
7
|
+
export declare const mockGenericSwapBSelector: string;
|
|
8
|
+
export declare const mockGenericSwapDirectFromVaultSelector: string;
|
|
9
|
+
export declare const mockGenericSwapViaApprovalSelector: string;
|
|
10
|
+
export declare function mockGenericSwapArgs({ spendAssets, actualSpendAssetAmounts, maxSpendAssetAmounts, incomingAssets, actualIncomingAssetAmounts, minIncomingAssetAmounts, }: {
|
|
11
|
+
spendAssets?: AddressLike[];
|
|
12
|
+
maxSpendAssetAmounts?: BigNumberish[];
|
|
13
|
+
actualSpendAssetAmounts?: BigNumberish[];
|
|
14
|
+
incomingAssets?: AddressLike[];
|
|
15
|
+
minIncomingAssetAmounts?: BigNumberish[];
|
|
16
|
+
actualIncomingAssetAmounts?: BigNumberish[];
|
|
17
|
+
}): string;
|
|
18
|
+
export declare function mockGenericSwap({ comptrollerProxy, vaultProxy, integrationManager, fundOwner, mockGenericAdapter, selector, spendAssets, actualSpendAssetAmounts, maxSpendAssetAmounts, incomingAssets, actualIncomingAssetAmounts, minIncomingAssetAmounts, seedFund, }: {
|
|
19
|
+
comptrollerProxy: ComptrollerLib;
|
|
20
|
+
vaultProxy: VaultLib;
|
|
21
|
+
integrationManager: IntegrationManager;
|
|
22
|
+
fundOwner: SignerWithAddress;
|
|
23
|
+
mockGenericAdapter: MockGenericAdapter;
|
|
24
|
+
selector?: BytesLike;
|
|
25
|
+
spendAssets?: StandardToken[];
|
|
26
|
+
maxSpendAssetAmounts?: BigNumberish[];
|
|
27
|
+
actualSpendAssetAmounts?: BigNumberish[];
|
|
28
|
+
incomingAssets?: StandardToken[];
|
|
29
|
+
minIncomingAssetAmounts?: BigNumberish[];
|
|
30
|
+
actualIncomingAssetAmounts?: BigNumberish[];
|
|
31
|
+
seedFund?: boolean;
|
|
32
|
+
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: AddressLike, _actionId: BigNumberish, _callArgs: BytesLike], void, ComptrollerLib>>>;
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { AddressLike } from '@enzymefinance/ethers';
|
|
2
|
-
import { SignerWithAddress } from '@enzymefinance/hardhat';
|
|
3
|
-
import { ComptrollerLib, IntegrationManager, ParaSwapV4Adapter, ParaSwapV4Path, StandardToken } from '@enzymefinance/protocol';
|
|
4
|
-
import { BigNumberish
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import type { AddressLike } from '@enzymefinance/ethers';
|
|
2
|
+
import type { SignerWithAddress } from '@enzymefinance/hardhat';
|
|
3
|
+
import type { ComptrollerLib, IntegrationManager, ParaSwapV4Adapter, ParaSwapV4Path, StandardToken } from '@enzymefinance/protocol';
|
|
4
|
+
import type { BigNumberish } from 'ethers';
|
|
5
|
+
import { utils } from 'ethers';
|
|
6
|
+
export declare function paraSwapV4GenerateDummyPaths({ toTokens }: {
|
|
7
|
+
toTokens: AddressLike[];
|
|
8
|
+
}): {
|
|
9
|
+
routes: never[];
|
|
10
|
+
to: AddressLike;
|
|
11
|
+
totalNetworkFee: number;
|
|
12
|
+
}[];
|
|
13
|
+
export declare function paraSwapV4TakeOrder({ comptrollerProxy, integrationManager, fundOwner, paraSwapV4Adapter, outgoingAsset, outgoingAssetAmount, minIncomingAssetAmount, expectedIncomingAssetAmount, paths, }: {
|
|
14
|
+
comptrollerProxy: ComptrollerLib;
|
|
15
|
+
integrationManager: IntegrationManager;
|
|
16
|
+
fundOwner: SignerWithAddress;
|
|
17
|
+
paraSwapV4Adapter: ParaSwapV4Adapter;
|
|
18
|
+
outgoingAsset: StandardToken;
|
|
19
|
+
outgoingAssetAmount?: BigNumberish;
|
|
20
|
+
minIncomingAssetAmount?: BigNumberish;
|
|
21
|
+
expectedIncomingAssetAmount?: BigNumberish;
|
|
22
|
+
paths: ParaSwapV4Path[];
|
|
23
|
+
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: AddressLike, _actionId: BigNumberish, _callArgs: utils.BytesLike], void, ComptrollerLib>>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { AddressLike } from '@enzymefinance/ethers';
|
|
2
|
+
import type { SignerWithAddress } from '@enzymefinance/hardhat';
|
|
3
|
+
import type { ComptrollerLib, IntegrationManager, ParaSwapV5Adapter, ParaSwapV5Path, StandardToken } from '@enzymefinance/protocol';
|
|
4
|
+
import type { BigNumberish, BytesLike } from 'ethers';
|
|
5
|
+
export declare function paraSwapV5GenerateDummyPaths({ toTokens }: {
|
|
6
|
+
toTokens: AddressLike[];
|
|
7
|
+
}): {
|
|
8
|
+
adapters: never[];
|
|
9
|
+
to: AddressLike;
|
|
10
|
+
totalNetworkFee: number;
|
|
11
|
+
}[];
|
|
12
|
+
export declare function paraSwapV5TakeOrder({ comptrollerProxy, integrationManager, fundOwner, paraSwapV5Adapter, outgoingAsset, outgoingAssetAmount, minIncomingAssetAmount, expectedIncomingAssetAmount, uuid, paths, }: {
|
|
13
|
+
comptrollerProxy: ComptrollerLib;
|
|
14
|
+
integrationManager: IntegrationManager;
|
|
15
|
+
fundOwner: SignerWithAddress;
|
|
16
|
+
paraSwapV5Adapter: ParaSwapV5Adapter;
|
|
17
|
+
outgoingAsset: StandardToken;
|
|
18
|
+
outgoingAssetAmount: BigNumberish;
|
|
19
|
+
minIncomingAssetAmount?: BigNumberish;
|
|
20
|
+
expectedIncomingAssetAmount?: BigNumberish;
|
|
21
|
+
uuid?: BytesLike;
|
|
22
|
+
paths: ParaSwapV5Path[];
|
|
23
|
+
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: AddressLike, _actionId: BigNumberish, _callArgs: BytesLike], void, ComptrollerLib>>>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { AddressLike } from '@enzymefinance/ethers';
|
|
2
|
+
import type { SignerWithAddress } from '@enzymefinance/hardhat';
|
|
3
|
+
import type { ComptrollerLib, IntegrationManager, PoolTogetherV4Adapter, StandardToken } from '@enzymefinance/protocol';
|
|
4
|
+
import type { BigNumberish, BytesLike } from 'ethers';
|
|
5
|
+
export declare function poolTogetherV4Lend({ comptrollerProxy, integrationManager, fundOwner, poolTogetherV4Adapter, ptToken, amount, }: {
|
|
6
|
+
comptrollerProxy: ComptrollerLib;
|
|
7
|
+
integrationManager: IntegrationManager;
|
|
8
|
+
fundOwner: SignerWithAddress;
|
|
9
|
+
poolTogetherV4Adapter: PoolTogetherV4Adapter;
|
|
10
|
+
ptToken: StandardToken;
|
|
11
|
+
amount?: BigNumberish;
|
|
12
|
+
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: AddressLike, _actionId: BigNumberish, _callArgs: BytesLike], void, ComptrollerLib>>>;
|
|
13
|
+
export declare function poolTogetherV4Redeem({ comptrollerProxy, integrationManager, fundOwner, poolTogetherV4Adapter, ptToken, amount, }: {
|
|
14
|
+
comptrollerProxy: ComptrollerLib;
|
|
15
|
+
integrationManager: IntegrationManager;
|
|
16
|
+
fundOwner: SignerWithAddress;
|
|
17
|
+
poolTogetherV4Adapter: PoolTogetherV4Adapter;
|
|
18
|
+
ptToken: StandardToken;
|
|
19
|
+
amount?: BigNumberish;
|
|
20
|
+
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: AddressLike, _actionId: BigNumberish, _callArgs: BytesLike], void, ComptrollerLib>>>;
|
|
21
|
+
export declare function poolTogetherV4ClaimRewards({ comptrollerProxy, integrationManager, fundOwner, poolTogetherV4Adapter, prizeDistributor, drawIds, winningPicks, }: {
|
|
22
|
+
comptrollerProxy: ComptrollerLib;
|
|
23
|
+
integrationManager: IntegrationManager;
|
|
24
|
+
fundOwner: SignerWithAddress;
|
|
25
|
+
poolTogetherV4Adapter: PoolTogetherV4Adapter;
|
|
26
|
+
prizeDistributor: AddressLike;
|
|
27
|
+
drawIds: BigNumberish[];
|
|
28
|
+
winningPicks: BytesLike;
|
|
29
|
+
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: AddressLike, _actionId: BigNumberish, _callArgs: BytesLike], void, ComptrollerLib>>>;
|
|
@@ -1,25 +1,33 @@
|
|
|
1
|
-
import { AddressLike } from '@enzymefinance/ethers';
|
|
2
|
-
import { ComptrollerLib, IntegrationManager, ISynthetixAddressResolver, StandardToken, SynthetixAdapter, VaultLib } from '@enzymefinance/protocol';
|
|
3
|
-
import { BigNumberish, Signer
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
integrationManager: IntegrationManager;
|
|
18
|
-
|
|
19
|
-
synthetixAdapter: SynthetixAdapter;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
import type { AddressLike } from '@enzymefinance/ethers';
|
|
2
|
+
import type { ComptrollerLib, IntegrationManager, ISynthetixAddressResolver, StandardToken, SynthetixAdapter, VaultLib } from '@enzymefinance/protocol';
|
|
3
|
+
import type { BigNumberish, Signer } from 'ethers';
|
|
4
|
+
import { utils } from 'ethers';
|
|
5
|
+
export declare function synthetixAssignExchangeDelegate({ comptrollerProxy, addressResolver, fundOwner, delegate, }: {
|
|
6
|
+
comptrollerProxy: ComptrollerLib;
|
|
7
|
+
addressResolver: ISynthetixAddressResolver;
|
|
8
|
+
fundOwner: Signer;
|
|
9
|
+
delegate: AddressLike;
|
|
10
|
+
}): Promise<void>;
|
|
11
|
+
export declare function synthetixResolveAddress({ addressResolver, name, }: {
|
|
12
|
+
addressResolver: ISynthetixAddressResolver;
|
|
13
|
+
name: string;
|
|
14
|
+
}): Promise<string>;
|
|
15
|
+
export declare function synthetixRedeem({ comptrollerProxy, integrationManager, signer, synthetixAdapter, synths, }: {
|
|
16
|
+
comptrollerProxy: ComptrollerLib;
|
|
17
|
+
integrationManager: IntegrationManager;
|
|
18
|
+
signer: Signer;
|
|
19
|
+
synthetixAdapter: SynthetixAdapter;
|
|
20
|
+
synths: AddressLike[];
|
|
21
|
+
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: AddressLike, _actionId: BigNumberish, _callArgs: utils.BytesLike], void, ComptrollerLib>>>;
|
|
22
|
+
export declare function synthetixTakeOrder({ comptrollerProxy, vaultProxy, integrationManager, fundOwner, synthetixAdapter, outgoingAsset, outgoingAssetAmount, incomingAsset, minIncomingAssetAmount, seedFund, }: {
|
|
23
|
+
comptrollerProxy: ComptrollerLib;
|
|
24
|
+
vaultProxy: VaultLib;
|
|
25
|
+
integrationManager: IntegrationManager;
|
|
26
|
+
fundOwner: Signer;
|
|
27
|
+
synthetixAdapter: SynthetixAdapter;
|
|
28
|
+
outgoingAsset: StandardToken;
|
|
29
|
+
outgoingAssetAmount?: BigNumberish;
|
|
30
|
+
incomingAsset: StandardToken;
|
|
31
|
+
minIncomingAssetAmount?: BigNumberish;
|
|
32
|
+
seedFund?: boolean;
|
|
33
|
+
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: AddressLike, _actionId: BigNumberish, _callArgs: utils.BytesLike], void, ComptrollerLib>>>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { AddressLike } from '@enzymefinance/ethers';
|
|
2
|
-
import { SignerWithAddress } from '@enzymefinance/hardhat';
|
|
3
|
-
import { ComptrollerLib, IntegrationManager } from '@enzymefinance/protocol';
|
|
4
|
-
export declare function addTrackedAssetsToVault({ signer, comptrollerProxy, integrationManager, assets, }: {
|
|
5
|
-
signer: SignerWithAddress;
|
|
6
|
-
comptrollerProxy: ComptrollerLib;
|
|
7
|
-
integrationManager: IntegrationManager;
|
|
8
|
-
assets: AddressLike[];
|
|
9
|
-
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: AddressLike, _actionId: import("ethers").BigNumberish, _callArgs: import("ethers").BytesLike], void, ComptrollerLib>>>;
|
|
10
|
-
export declare function removeTrackedAssetsFromVault({ signer, comptrollerProxy, integrationManager, assets, }: {
|
|
11
|
-
signer: SignerWithAddress;
|
|
12
|
-
comptrollerProxy: ComptrollerLib;
|
|
13
|
-
integrationManager: IntegrationManager;
|
|
14
|
-
assets: AddressLike[];
|
|
15
|
-
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: AddressLike, _actionId: import("ethers").BigNumberish, _callArgs: import("ethers").BytesLike], void, ComptrollerLib>>>;
|
|
1
|
+
import type { AddressLike } from '@enzymefinance/ethers';
|
|
2
|
+
import type { SignerWithAddress } from '@enzymefinance/hardhat';
|
|
3
|
+
import type { ComptrollerLib, IntegrationManager } from '@enzymefinance/protocol';
|
|
4
|
+
export declare function addTrackedAssetsToVault({ signer, comptrollerProxy, integrationManager, assets, }: {
|
|
5
|
+
signer: SignerWithAddress;
|
|
6
|
+
comptrollerProxy: ComptrollerLib;
|
|
7
|
+
integrationManager: IntegrationManager;
|
|
8
|
+
assets: AddressLike[];
|
|
9
|
+
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: AddressLike, _actionId: import("ethers").BigNumberish, _callArgs: import("ethers").BytesLike], void, ComptrollerLib>>>;
|
|
10
|
+
export declare function removeTrackedAssetsFromVault({ signer, comptrollerProxy, integrationManager, assets, }: {
|
|
11
|
+
signer: SignerWithAddress;
|
|
12
|
+
comptrollerProxy: ComptrollerLib;
|
|
13
|
+
integrationManager: IntegrationManager;
|
|
14
|
+
assets: AddressLike[];
|
|
15
|
+
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: AddressLike, _actionId: import("ethers").BigNumberish, _callArgs: import("ethers").BytesLike], void, ComptrollerLib>>>;
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { AddressLike, Call, Contract, Send } from '@enzymefinance/ethers';
|
|
2
|
-
import { SignerWithAddress } from '@enzymefinance/hardhat';
|
|
3
|
-
import { ComptrollerLib, IntegrationManager, StandardToken,
|
|
4
|
-
import { BigNumberish } from 'ethers';
|
|
5
|
-
export interface UniswapV2Factory extends Contract<UniswapV2Factory> {
|
|
6
|
-
createPair: Send<(_token0: AddressLike, _token1: AddressLike) => AddressLike>;
|
|
7
|
-
getPair: Call<(_token0: AddressLike, _token1: AddressLike) => AddressLike>;
|
|
8
|
-
}
|
|
9
|
-
export declare const UniswapV2Factory: import("@enzymefinance/ethers").ContractFactory<UniswapV2Factory, never>;
|
|
10
|
-
export declare function uniswapV2Lend({ comptrollerProxy, vaultProxy, integrationManager, fundOwner,
|
|
11
|
-
comptrollerProxy: ComptrollerLib;
|
|
12
|
-
vaultProxy: VaultLib;
|
|
13
|
-
integrationManager: IntegrationManager;
|
|
14
|
-
fundOwner: SignerWithAddress;
|
|
15
|
-
|
|
16
|
-
tokenA: StandardToken;
|
|
17
|
-
tokenB: StandardToken;
|
|
18
|
-
amountADesired: BigNumberish;
|
|
19
|
-
amountBDesired: BigNumberish;
|
|
20
|
-
amountAMin: BigNumberish;
|
|
21
|
-
amountBMin: BigNumberish;
|
|
22
|
-
minPoolTokenAmount: BigNumberish;
|
|
23
|
-
seedFund?: boolean;
|
|
24
|
-
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: AddressLike, _actionId: BigNumberish, _callArgs: import("ethers").BytesLike], void, ComptrollerLib>>>;
|
|
25
|
-
export declare function uniswapV2Redeem({ comptrollerProxy, integrationManager, fundOwner,
|
|
26
|
-
comptrollerProxy: ComptrollerLib;
|
|
27
|
-
integrationManager: IntegrationManager;
|
|
28
|
-
fundOwner: SignerWithAddress;
|
|
29
|
-
|
|
30
|
-
poolTokenAmount: BigNumberish;
|
|
31
|
-
tokenA: AddressLike;
|
|
32
|
-
tokenB: AddressLike;
|
|
33
|
-
amountAMin: BigNumberish;
|
|
34
|
-
amountBMin: BigNumberish;
|
|
35
|
-
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: AddressLike, _actionId: BigNumberish, _callArgs: import("ethers").BytesLike], void, ComptrollerLib>>>;
|
|
36
|
-
export declare function uniswapV2TakeOrder({ comptrollerProxy, vaultProxy, integrationManager, fundOwner,
|
|
37
|
-
comptrollerProxy: ComptrollerLib;
|
|
38
|
-
vaultProxy: VaultLib;
|
|
39
|
-
integrationManager: IntegrationManager;
|
|
40
|
-
fundOwner: SignerWithAddress;
|
|
41
|
-
|
|
42
|
-
path: StandardToken[];
|
|
43
|
-
outgoingAssetAmount: BigNumberish;
|
|
44
|
-
minIncomingAssetAmount: BigNumberish;
|
|
45
|
-
seedFund?: boolean;
|
|
46
|
-
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: AddressLike, _actionId: BigNumberish, _callArgs: import("ethers").BytesLike], void, ComptrollerLib>>>;
|
|
1
|
+
import type { AddressLike, Call, Contract, Send } from '@enzymefinance/ethers';
|
|
2
|
+
import type { SignerWithAddress } from '@enzymefinance/hardhat';
|
|
3
|
+
import type { ComptrollerLib, IntegrationManager, StandardToken, UniswapV2ExchangeAdapter, UniswapV2LiquidityAdapter, VaultLib } from '@enzymefinance/protocol';
|
|
4
|
+
import type { BigNumberish } from 'ethers';
|
|
5
|
+
export interface UniswapV2Factory extends Contract<UniswapV2Factory> {
|
|
6
|
+
createPair: Send<(_token0: AddressLike, _token1: AddressLike) => AddressLike>;
|
|
7
|
+
getPair: Call<(_token0: AddressLike, _token1: AddressLike) => AddressLike>;
|
|
8
|
+
}
|
|
9
|
+
export declare const UniswapV2Factory: import("@enzymefinance/ethers").ContractFactory<UniswapV2Factory, never>;
|
|
10
|
+
export declare function uniswapV2Lend({ comptrollerProxy, vaultProxy, integrationManager, fundOwner, uniswapV2LiquidityAdapter, tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, minPoolTokenAmount, seedFund, }: {
|
|
11
|
+
comptrollerProxy: ComptrollerLib;
|
|
12
|
+
vaultProxy: VaultLib;
|
|
13
|
+
integrationManager: IntegrationManager;
|
|
14
|
+
fundOwner: SignerWithAddress;
|
|
15
|
+
uniswapV2LiquidityAdapter: UniswapV2LiquidityAdapter;
|
|
16
|
+
tokenA: StandardToken;
|
|
17
|
+
tokenB: StandardToken;
|
|
18
|
+
amountADesired: BigNumberish;
|
|
19
|
+
amountBDesired: BigNumberish;
|
|
20
|
+
amountAMin: BigNumberish;
|
|
21
|
+
amountBMin: BigNumberish;
|
|
22
|
+
minPoolTokenAmount: BigNumberish;
|
|
23
|
+
seedFund?: boolean;
|
|
24
|
+
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: AddressLike, _actionId: BigNumberish, _callArgs: import("ethers").BytesLike], void, ComptrollerLib>>>;
|
|
25
|
+
export declare function uniswapV2Redeem({ comptrollerProxy, integrationManager, fundOwner, uniswapV2LiquidityAdapter, poolTokenAmount, tokenA, tokenB, amountAMin, amountBMin, }: {
|
|
26
|
+
comptrollerProxy: ComptrollerLib;
|
|
27
|
+
integrationManager: IntegrationManager;
|
|
28
|
+
fundOwner: SignerWithAddress;
|
|
29
|
+
uniswapV2LiquidityAdapter: UniswapV2LiquidityAdapter;
|
|
30
|
+
poolTokenAmount: BigNumberish;
|
|
31
|
+
tokenA: AddressLike;
|
|
32
|
+
tokenB: AddressLike;
|
|
33
|
+
amountAMin: BigNumberish;
|
|
34
|
+
amountBMin: BigNumberish;
|
|
35
|
+
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: AddressLike, _actionId: BigNumberish, _callArgs: import("ethers").BytesLike], void, ComptrollerLib>>>;
|
|
36
|
+
export declare function uniswapV2TakeOrder({ comptrollerProxy, vaultProxy, integrationManager, fundOwner, uniswapV2ExchangeAdapter, path, outgoingAssetAmount, minIncomingAssetAmount, seedFund, }: {
|
|
37
|
+
comptrollerProxy: ComptrollerLib;
|
|
38
|
+
vaultProxy: VaultLib;
|
|
39
|
+
integrationManager: IntegrationManager;
|
|
40
|
+
fundOwner: SignerWithAddress;
|
|
41
|
+
uniswapV2ExchangeAdapter: UniswapV2ExchangeAdapter;
|
|
42
|
+
path: StandardToken[];
|
|
43
|
+
outgoingAssetAmount: BigNumberish;
|
|
44
|
+
minIncomingAssetAmount: BigNumberish;
|
|
45
|
+
seedFund?: boolean;
|
|
46
|
+
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: AddressLike, _actionId: BigNumberish, _callArgs: import("ethers").BytesLike], void, ComptrollerLib>>>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { AddressLike } from '@enzymefinance/ethers';
|
|
2
|
-
import { SignerWithAddress } from '@enzymefinance/hardhat';
|
|
3
|
-
import { ComptrollerLib, IntegrationManager, StandardToken } from '@enzymefinance/protocol';
|
|
4
|
-
import { BigNumber, BigNumberish } from 'ethers';
|
|
5
|
-
export declare function uniswapV3TakeOrder({ comptrollerProxy, integrationManager, fundOwner, uniswapV3Adapter, pathAddresses, pathFees, outgoingAssetAmount, minIncomingAssetAmount, seedFund, }: {
|
|
6
|
-
comptrollerProxy: ComptrollerLib;
|
|
7
|
-
integrationManager: IntegrationManager;
|
|
8
|
-
fundOwner: SignerWithAddress;
|
|
9
|
-
uniswapV3Adapter: AddressLike;
|
|
10
|
-
pathAddresses: StandardToken[];
|
|
11
|
-
pathFees: BigNumber[];
|
|
12
|
-
outgoingAssetAmount: BigNumberish;
|
|
13
|
-
minIncomingAssetAmount?: BigNumberish;
|
|
14
|
-
seedFund?: boolean;
|
|
15
|
-
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: AddressLike, _actionId: BigNumberish, _callArgs: import("ethers").BytesLike], void, ComptrollerLib>>>;
|
|
1
|
+
import type { AddressLike } from '@enzymefinance/ethers';
|
|
2
|
+
import type { SignerWithAddress } from '@enzymefinance/hardhat';
|
|
3
|
+
import type { ComptrollerLib, IntegrationManager, StandardToken } from '@enzymefinance/protocol';
|
|
4
|
+
import type { BigNumber, BigNumberish } from 'ethers';
|
|
5
|
+
export declare function uniswapV3TakeOrder({ comptrollerProxy, integrationManager, fundOwner, uniswapV3Adapter, pathAddresses, pathFees, outgoingAssetAmount, minIncomingAssetAmount, seedFund, }: {
|
|
6
|
+
comptrollerProxy: ComptrollerLib;
|
|
7
|
+
integrationManager: IntegrationManager;
|
|
8
|
+
fundOwner: SignerWithAddress;
|
|
9
|
+
uniswapV3Adapter: AddressLike;
|
|
10
|
+
pathAddresses: StandardToken[];
|
|
11
|
+
pathFees: BigNumber[];
|
|
12
|
+
outgoingAssetAmount: BigNumberish;
|
|
13
|
+
minIncomingAssetAmount?: BigNumberish;
|
|
14
|
+
seedFund?: boolean;
|
|
15
|
+
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: AddressLike, _actionId: BigNumberish, _callArgs: import("ethers").BytesLike], void, ComptrollerLib>>>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { SignerWithAddress } from '@enzymefinance/hardhat';
|
|
2
|
-
import { ComptrollerLib, IntegrationManager, StandardToken, YearnVaultV2Adapter } from '@enzymefinance/protocol';
|
|
3
|
-
import { BigNumberish } from 'ethers';
|
|
4
|
-
export declare function yearnVaultV2Lend({ signer, comptrollerProxy, integrationManager, yearnVaultV2Adapter, yVault, outgoingUnderlyingAmount, minIncomingYVaultSharesAmount, }: {
|
|
5
|
-
signer: SignerWithAddress;
|
|
6
|
-
comptrollerProxy: ComptrollerLib;
|
|
7
|
-
integrationManager: IntegrationManager;
|
|
8
|
-
yearnVaultV2Adapter: YearnVaultV2Adapter;
|
|
9
|
-
yVault: StandardToken;
|
|
10
|
-
outgoingUnderlyingAmount: BigNumberish;
|
|
11
|
-
minIncomingYVaultSharesAmount?: BigNumberish;
|
|
12
|
-
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: import("@enzymefinance/ethers").AddressLike, _actionId: BigNumberish, _callArgs: import("ethers").BytesLike], void, ComptrollerLib>>>;
|
|
13
|
-
export declare function yearnVaultV2Redeem({ signer, comptrollerProxy, integrationManager, yearnVaultV2Adapter, yVault, maxOutgoingYVaultSharesAmount, minIncomingUnderlyingAmount, slippageToleranceBps, }: {
|
|
14
|
-
signer: SignerWithAddress;
|
|
15
|
-
comptrollerProxy: ComptrollerLib;
|
|
16
|
-
integrationManager: IntegrationManager;
|
|
17
|
-
yearnVaultV2Adapter: YearnVaultV2Adapter;
|
|
18
|
-
yVault: StandardToken;
|
|
19
|
-
maxOutgoingYVaultSharesAmount: BigNumberish;
|
|
20
|
-
minIncomingUnderlyingAmount?: BigNumberish;
|
|
21
|
-
slippageToleranceBps?: BigNumberish;
|
|
22
|
-
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: import("@enzymefinance/ethers").AddressLike, _actionId: BigNumberish, _callArgs: import("ethers").BytesLike], void, ComptrollerLib>>>;
|
|
1
|
+
import type { SignerWithAddress } from '@enzymefinance/hardhat';
|
|
2
|
+
import type { ComptrollerLib, IntegrationManager, StandardToken, YearnVaultV2Adapter } from '@enzymefinance/protocol';
|
|
3
|
+
import type { BigNumberish } from 'ethers';
|
|
4
|
+
export declare function yearnVaultV2Lend({ signer, comptrollerProxy, integrationManager, yearnVaultV2Adapter, yVault, outgoingUnderlyingAmount, minIncomingYVaultSharesAmount, }: {
|
|
5
|
+
signer: SignerWithAddress;
|
|
6
|
+
comptrollerProxy: ComptrollerLib;
|
|
7
|
+
integrationManager: IntegrationManager;
|
|
8
|
+
yearnVaultV2Adapter: YearnVaultV2Adapter;
|
|
9
|
+
yVault: StandardToken;
|
|
10
|
+
outgoingUnderlyingAmount: BigNumberish;
|
|
11
|
+
minIncomingYVaultSharesAmount?: BigNumberish;
|
|
12
|
+
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: import("@enzymefinance/ethers").AddressLike, _actionId: BigNumberish, _callArgs: import("ethers").BytesLike], void, ComptrollerLib>>>;
|
|
13
|
+
export declare function yearnVaultV2Redeem({ signer, comptrollerProxy, integrationManager, yearnVaultV2Adapter, yVault, maxOutgoingYVaultSharesAmount, minIncomingUnderlyingAmount, slippageToleranceBps, }: {
|
|
14
|
+
signer: SignerWithAddress;
|
|
15
|
+
comptrollerProxy: ComptrollerLib;
|
|
16
|
+
integrationManager: IntegrationManager;
|
|
17
|
+
yearnVaultV2Adapter: YearnVaultV2Adapter;
|
|
18
|
+
yVault: StandardToken;
|
|
19
|
+
maxOutgoingYVaultSharesAmount: BigNumberish;
|
|
20
|
+
minIncomingUnderlyingAmount?: BigNumberish;
|
|
21
|
+
slippageToleranceBps?: BigNumberish;
|
|
22
|
+
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: import("@enzymefinance/ethers").AddressLike, _actionId: BigNumberish, _callArgs: import("ethers").BytesLike], void, ComptrollerLib>>>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { SignerWithAddress } from '@enzymefinance/hardhat';
|
|
2
|
-
import { ComptrollerLib, IntegrationManager,
|
|
3
|
-
import { BigNumberish } from 'ethers';
|
|
4
|
-
export declare function zeroExV2TakeOrder({ comptrollerProxy, integrationManager, fundOwner, zeroExV2Adapter, signedOrder, takerAssetFillAmount, }: {
|
|
5
|
-
comptrollerProxy: ComptrollerLib;
|
|
6
|
-
vaultProxy: VaultLib;
|
|
7
|
-
integrationManager: IntegrationManager;
|
|
8
|
-
fundOwner: SignerWithAddress;
|
|
9
|
-
zeroExV2Adapter: ZeroExV2Adapter;
|
|
10
|
-
signedOrder: SignedZeroExV2Order;
|
|
11
|
-
takerAssetFillAmount: BigNumberish;
|
|
12
|
-
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: import("@enzymefinance/ethers").AddressLike, _actionId: BigNumberish, _callArgs: import("ethers").BytesLike], void, ComptrollerLib>>>;
|
|
1
|
+
import type { SignerWithAddress } from '@enzymefinance/hardhat';
|
|
2
|
+
import type { ComptrollerLib, IntegrationManager, SignedZeroExV2Order, VaultLib, ZeroExV2Adapter } from '@enzymefinance/protocol';
|
|
3
|
+
import type { BigNumberish } from 'ethers';
|
|
4
|
+
export declare function zeroExV2TakeOrder({ comptrollerProxy, integrationManager, fundOwner, zeroExV2Adapter, signedOrder, takerAssetFillAmount, }: {
|
|
5
|
+
comptrollerProxy: ComptrollerLib;
|
|
6
|
+
vaultProxy: VaultLib;
|
|
7
|
+
integrationManager: IntegrationManager;
|
|
8
|
+
fundOwner: SignerWithAddress;
|
|
9
|
+
zeroExV2Adapter: ZeroExV2Adapter;
|
|
10
|
+
signedOrder: SignedZeroExV2Order;
|
|
11
|
+
takerAssetFillAmount: BigNumberish;
|
|
12
|
+
}): Promise<import("@enzymefinance/ethers").ContractReceipt<import("@enzymefinance/ethers").SendFunction<[_extension: import("@enzymefinance/ethers").AddressLike, _actionId: BigNumberish, _callArgs: import("ethers").BytesLike], void, ComptrollerLib>>>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { IPolicy } from '@enzymefinance/protocol';
|
|
2
|
-
import { Signer } from 'ethers';
|
|
3
|
-
export declare function generatePolicyManagerConfigWithMockPolicies({ deployer }: {
|
|
4
|
-
deployer: Signer;
|
|
5
|
-
}): Promise<string>;
|
|
6
|
-
export declare function generateMockPolicies({ deployer }: {
|
|
7
|
-
deployer: Signer;
|
|
8
|
-
}): Promise<{
|
|
9
|
-
mockAddTrackedAssetsPolicy: import("@enzymefinance/ethers").MockContract<IPolicy>;
|
|
10
|
-
mockCreateExternalPositionPolicy: import("@enzymefinance/ethers").MockContract<IPolicy>;
|
|
11
|
-
mockPostBuySharesPolicy: import("@enzymefinance/ethers").MockContract<IPolicy>;
|
|
12
|
-
mockPostCallOnExternalPositionPolicy: import("@enzymefinance/ethers").MockContract<IPolicy>;
|
|
13
|
-
mockPostCoIPolicy: import("@enzymefinance/ethers").MockContract<IPolicy>;
|
|
14
|
-
mockPreTransferSharesPolicy: import("@enzymefinance/ethers").MockContract<IPolicy>;
|
|
15
|
-
mockRedeemSharesForSpecificAssetsPolicy: import("@enzymefinance/ethers").MockContract<IPolicy>;
|
|
16
|
-
mockRemoveExternalPositionPolicy: import("@enzymefinance/ethers").MockContract<IPolicy>;
|
|
17
|
-
}>;
|
|
1
|
+
import { IPolicy } from '@enzymefinance/protocol';
|
|
2
|
+
import type { Signer } from 'ethers';
|
|
3
|
+
export declare function generatePolicyManagerConfigWithMockPolicies({ deployer }: {
|
|
4
|
+
deployer: Signer;
|
|
5
|
+
}): Promise<string>;
|
|
6
|
+
export declare function generateMockPolicies({ deployer }: {
|
|
7
|
+
deployer: Signer;
|
|
8
|
+
}): Promise<{
|
|
9
|
+
mockAddTrackedAssetsPolicy: import("@enzymefinance/ethers").MockContract<IPolicy>;
|
|
10
|
+
mockCreateExternalPositionPolicy: import("@enzymefinance/ethers").MockContract<IPolicy>;
|
|
11
|
+
mockPostBuySharesPolicy: import("@enzymefinance/ethers").MockContract<IPolicy>;
|
|
12
|
+
mockPostCallOnExternalPositionPolicy: import("@enzymefinance/ethers").MockContract<IPolicy>;
|
|
13
|
+
mockPostCoIPolicy: import("@enzymefinance/ethers").MockContract<IPolicy>;
|
|
14
|
+
mockPreTransferSharesPolicy: import("@enzymefinance/ethers").MockContract<IPolicy>;
|
|
15
|
+
mockRedeemSharesForSpecificAssetsPolicy: import("@enzymefinance/ethers").MockContract<IPolicy>;
|
|
16
|
+
mockRemoveExternalPositionPolicy: import("@enzymefinance/ethers").MockContract<IPolicy>;
|
|
17
|
+
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from './assets';
|
|
2
|
-
export * from './chainlink';
|
|
3
|
-
export * from './common';
|
|
4
|
-
export * from './core';
|
|
5
|
-
export * from './extensions';
|
|
6
|
-
export * from './setup';
|
|
7
|
-
export * from './shares';
|
|
8
|
-
export * from './vaultCalls';
|
|
1
|
+
export * from './assets';
|
|
2
|
+
export * from './chainlink';
|
|
3
|
+
export * from './common';
|
|
4
|
+
export * from './core';
|
|
5
|
+
export * from './extensions';
|
|
6
|
+
export * from './setup';
|
|
7
|
+
export * from './shares';
|
|
8
|
+
export * from './vaultCalls';
|