@gearbox-protocol/sdk 3.0.0-vfour.113 → 3.0.0-vfour.115
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/sdk/index.cjs +392 -47
- package/dist/cjs/sdk/index.d.ts +317 -97
- package/dist/esm/sdk/index.d.mts +317 -97
- package/dist/esm/sdk/index.mjs +392 -50
- package/package.json +1 -1
package/dist/esm/sdk/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as viem from 'viem';
|
|
2
|
-
import { Address, Chain, Transport, PublicClient, Abi, DecodeFunctionDataReturnType, GetEventArgs, Log, ContractEventName, Hex, ContractFunctionName, EncodeFunctionDataParameters, TransactionReceipt, UnionOmit, RequiredBy, GetContractReturnType, Client, ContractFunctionParameters, CallParameters, MulticallContracts, Narrow, AbiStateMutability, MulticallResults, GetChainContractAddressErrorType, ReadContractErrorType, GetContractErrorReturnType, EncodeFunctionDataErrorType, DecodeFunctionResultErrorType } from 'viem';
|
|
2
|
+
import { Address, Chain, Transport, PublicClient, Abi, DecodeFunctionDataReturnType, GetEventArgs, Log, ContractEventName, Hex, ContractFunctionName, EncodeFunctionDataParameters, TransactionReceipt, UnionOmit, RequiredBy, GetContractReturnType, Client, Account, SendTransactionReturnType, ContractFunctionParameters, CallParameters, MulticallContracts, Narrow, AbiStateMutability, MulticallResults, GetChainContractAddressErrorType, ReadContractErrorType, GetContractErrorReturnType, EncodeFunctionDataErrorType, DecodeFunctionResultErrorType } from 'viem';
|
|
3
3
|
import { AbiParametersToPrimitiveTypes, ExtractAbiFunction } from 'abitype';
|
|
4
4
|
import { PartialRecord } from '@gearbox-protocol/sdk-gov';
|
|
5
5
|
|
|
@@ -15281,7 +15281,7 @@ declare class AbstractAdapterContract<const abi extends Abi | readonly unknown[]
|
|
|
15281
15281
|
get adapterType(): AdapterContractType;
|
|
15282
15282
|
}
|
|
15283
15283
|
|
|
15284
|
-
declare const abi$
|
|
15284
|
+
declare const abi$O: readonly [{
|
|
15285
15285
|
readonly type: "constructor";
|
|
15286
15286
|
readonly inputs: readonly [{
|
|
15287
15287
|
readonly name: "_creditManager";
|
|
@@ -15822,11 +15822,11 @@ declare const abi$N: readonly [{
|
|
|
15822
15822
|
readonly inputs: readonly [];
|
|
15823
15823
|
readonly name: "ZeroAddressException";
|
|
15824
15824
|
}];
|
|
15825
|
-
declare class BalancerV2VaultAdapterContract extends AbstractAdapterContract<typeof abi$
|
|
15826
|
-
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$
|
|
15825
|
+
declare class BalancerV2VaultAdapterContract extends AbstractAdapterContract<typeof abi$O> {
|
|
15826
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$O>, "abi">);
|
|
15827
15827
|
}
|
|
15828
15828
|
|
|
15829
|
-
declare const abi$
|
|
15829
|
+
declare const abi$N: readonly [{
|
|
15830
15830
|
readonly type: "constructor";
|
|
15831
15831
|
readonly inputs: readonly [{
|
|
15832
15832
|
readonly name: "_creditManager";
|
|
@@ -16320,11 +16320,11 @@ declare const abi$M: readonly [{
|
|
|
16320
16320
|
readonly inputs: readonly [];
|
|
16321
16321
|
readonly name: "ZeroAddressException";
|
|
16322
16322
|
}];
|
|
16323
|
-
declare class CamelotV3AdapterContract extends AbstractAdapterContract<typeof abi$
|
|
16324
|
-
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$
|
|
16323
|
+
declare class CamelotV3AdapterContract extends AbstractAdapterContract<typeof abi$N> {
|
|
16324
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$N>, "abi">);
|
|
16325
16325
|
}
|
|
16326
16326
|
|
|
16327
|
-
declare const abi$
|
|
16327
|
+
declare const abi$M: readonly [{
|
|
16328
16328
|
readonly type: "constructor";
|
|
16329
16329
|
readonly inputs: readonly [{
|
|
16330
16330
|
readonly name: "_creditManager";
|
|
@@ -16657,11 +16657,11 @@ declare const abi$L: readonly [{
|
|
|
16657
16657
|
readonly inputs: readonly [];
|
|
16658
16658
|
readonly name: "ZeroAddressException";
|
|
16659
16659
|
}];
|
|
16660
|
-
declare class ConvexV1BaseRewardPoolAdapterContract extends AbstractAdapterContract<typeof abi$
|
|
16661
|
-
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$
|
|
16660
|
+
declare class ConvexV1BaseRewardPoolAdapterContract extends AbstractAdapterContract<typeof abi$M> {
|
|
16661
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$M>, "abi">);
|
|
16662
16662
|
}
|
|
16663
16663
|
|
|
16664
|
-
declare const abi$
|
|
16664
|
+
declare const abi$L: readonly [{
|
|
16665
16665
|
readonly type: "constructor";
|
|
16666
16666
|
readonly inputs: readonly [{
|
|
16667
16667
|
readonly name: "_creditManager";
|
|
@@ -16877,11 +16877,11 @@ declare const abi$K: readonly [{
|
|
|
16877
16877
|
readonly inputs: readonly [];
|
|
16878
16878
|
readonly name: "ZeroAddressException";
|
|
16879
16879
|
}];
|
|
16880
|
-
declare class ConvexV1BoosterAdapterContract extends AbstractAdapterContract<typeof abi$
|
|
16881
|
-
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$
|
|
16880
|
+
declare class ConvexV1BoosterAdapterContract extends AbstractAdapterContract<typeof abi$L> {
|
|
16881
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$L>, "abi">);
|
|
16882
16882
|
}
|
|
16883
16883
|
|
|
16884
|
-
declare const abi$
|
|
16884
|
+
declare const abi$K: readonly [{
|
|
16885
16885
|
readonly type: "constructor";
|
|
16886
16886
|
readonly inputs: readonly [{
|
|
16887
16887
|
readonly name: "_creditManager";
|
|
@@ -17588,11 +17588,11 @@ declare const abi$J: readonly [{
|
|
|
17588
17588
|
readonly inputs: readonly [];
|
|
17589
17589
|
readonly name: "ZeroAddressException";
|
|
17590
17590
|
}];
|
|
17591
|
-
declare class Curve2AssetsAdapterContract extends AbstractAdapterContract<typeof abi$
|
|
17592
|
-
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$
|
|
17591
|
+
declare class Curve2AssetsAdapterContract extends AbstractAdapterContract<typeof abi$K> {
|
|
17592
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$K>, "abi">);
|
|
17593
17593
|
}
|
|
17594
17594
|
|
|
17595
|
-
declare const abi$
|
|
17595
|
+
declare const abi$J: readonly [{
|
|
17596
17596
|
readonly type: "constructor";
|
|
17597
17597
|
readonly inputs: readonly [{
|
|
17598
17598
|
readonly name: "_creditManager";
|
|
@@ -18299,11 +18299,11 @@ declare const abi$I: readonly [{
|
|
|
18299
18299
|
readonly inputs: readonly [];
|
|
18300
18300
|
readonly name: "ZeroAddressException";
|
|
18301
18301
|
}];
|
|
18302
|
-
declare class Curve3AssetsAdapterContract extends AbstractAdapterContract<typeof abi$
|
|
18303
|
-
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$
|
|
18302
|
+
declare class Curve3AssetsAdapterContract extends AbstractAdapterContract<typeof abi$J> {
|
|
18303
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$J>, "abi">);
|
|
18304
18304
|
}
|
|
18305
18305
|
|
|
18306
|
-
declare const abi$
|
|
18306
|
+
declare const abi$I: readonly [{
|
|
18307
18307
|
readonly type: "constructor";
|
|
18308
18308
|
readonly inputs: readonly [{
|
|
18309
18309
|
readonly name: "_creditManager";
|
|
@@ -19010,11 +19010,11 @@ declare const abi$H: readonly [{
|
|
|
19010
19010
|
readonly inputs: readonly [];
|
|
19011
19011
|
readonly name: "ZeroAddressException";
|
|
19012
19012
|
}];
|
|
19013
|
-
declare class Curve4AssetsAdapterContract extends AbstractAdapterContract<typeof abi$
|
|
19014
|
-
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$
|
|
19013
|
+
declare class Curve4AssetsAdapterContract extends AbstractAdapterContract<typeof abi$I> {
|
|
19014
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$I>, "abi">);
|
|
19015
19015
|
}
|
|
19016
19016
|
|
|
19017
|
-
declare const abi$
|
|
19017
|
+
declare const abi$H: readonly [{
|
|
19018
19018
|
readonly type: "constructor";
|
|
19019
19019
|
readonly inputs: readonly [{
|
|
19020
19020
|
readonly name: "_creditManager";
|
|
@@ -19721,11 +19721,11 @@ declare const abi$G: readonly [{
|
|
|
19721
19721
|
readonly inputs: readonly [];
|
|
19722
19722
|
readonly name: "ZeroAddressException";
|
|
19723
19723
|
}];
|
|
19724
|
-
declare class CurveV1AdapterStableNGContract extends AbstractAdapterContract<typeof abi$
|
|
19725
|
-
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$
|
|
19724
|
+
declare class CurveV1AdapterStableNGContract extends AbstractAdapterContract<typeof abi$H> {
|
|
19725
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$H>, "abi">);
|
|
19726
19726
|
}
|
|
19727
19727
|
|
|
19728
|
-
declare const abi$
|
|
19728
|
+
declare const abi$G: readonly [{
|
|
19729
19729
|
readonly type: "constructor";
|
|
19730
19730
|
readonly inputs: readonly [{
|
|
19731
19731
|
readonly name: "_creditManager";
|
|
@@ -20428,11 +20428,11 @@ declare const abi$F: readonly [{
|
|
|
20428
20428
|
readonly inputs: readonly [];
|
|
20429
20429
|
readonly name: "ZeroAddressException";
|
|
20430
20430
|
}];
|
|
20431
|
-
declare class CurveV1AdapterStETHContract extends AbstractAdapterContract<typeof abi$
|
|
20432
|
-
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$
|
|
20431
|
+
declare class CurveV1AdapterStETHContract extends AbstractAdapterContract<typeof abi$G> {
|
|
20432
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$G>, "abi">);
|
|
20433
20433
|
}
|
|
20434
20434
|
|
|
20435
|
-
declare const abi$
|
|
20435
|
+
declare const abi$F: readonly [{
|
|
20436
20436
|
readonly type: "function";
|
|
20437
20437
|
readonly name: "_gearboxAdapterType";
|
|
20438
20438
|
readonly inputs: readonly [];
|
|
@@ -20603,12 +20603,12 @@ declare const abi$E: readonly [{
|
|
|
20603
20603
|
}];
|
|
20604
20604
|
readonly stateMutability: "nonpayable";
|
|
20605
20605
|
}];
|
|
20606
|
-
type abi$
|
|
20607
|
-
declare class DaiUsdsAdapterContract extends AbstractAdapterContract<typeof abi$
|
|
20608
|
-
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi$
|
|
20606
|
+
type abi$F = typeof abi$F;
|
|
20607
|
+
declare class DaiUsdsAdapterContract extends AbstractAdapterContract<typeof abi$F> {
|
|
20608
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi$F>, "abi">);
|
|
20609
20609
|
}
|
|
20610
20610
|
|
|
20611
|
-
declare const abi$
|
|
20611
|
+
declare const abi$E: readonly [{
|
|
20612
20612
|
readonly type: "constructor";
|
|
20613
20613
|
readonly inputs: readonly [{
|
|
20614
20614
|
readonly name: "_creditManager";
|
|
@@ -20851,13 +20851,13 @@ declare const abi$D: readonly [{
|
|
|
20851
20851
|
readonly inputs: readonly [];
|
|
20852
20852
|
readonly name: "ZeroAddressException";
|
|
20853
20853
|
}];
|
|
20854
|
-
declare class ERC4626AdapterContract extends AbstractAdapterContract<typeof abi$
|
|
20855
|
-
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$
|
|
20854
|
+
declare class ERC4626AdapterContract extends AbstractAdapterContract<typeof abi$E> {
|
|
20855
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$E>, "abi">);
|
|
20856
20856
|
}
|
|
20857
20857
|
|
|
20858
20858
|
declare function createAdapter(sdk: GearboxSDK, args: AdapterData): IAdapterContract;
|
|
20859
20859
|
|
|
20860
|
-
declare const abi$
|
|
20860
|
+
declare const abi$D: readonly [{
|
|
20861
20861
|
readonly type: "function";
|
|
20862
20862
|
readonly name: "_gearboxAdapterType";
|
|
20863
20863
|
readonly inputs: readonly [];
|
|
@@ -21066,11 +21066,11 @@ declare const abi$C: readonly [{
|
|
|
21066
21066
|
readonly internalType: "address";
|
|
21067
21067
|
}];
|
|
21068
21068
|
}];
|
|
21069
|
-
declare class MellowVaultAdapterContract extends AbstractAdapterContract<typeof abi$
|
|
21070
|
-
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$
|
|
21069
|
+
declare class MellowVaultAdapterContract extends AbstractAdapterContract<typeof abi$D> {
|
|
21070
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$D>, "abi">);
|
|
21071
21071
|
}
|
|
21072
21072
|
|
|
21073
|
-
declare const abi$
|
|
21073
|
+
declare const abi$C: readonly [{
|
|
21074
21074
|
readonly type: "function";
|
|
21075
21075
|
readonly name: "_gearboxAdapterType";
|
|
21076
21076
|
readonly inputs: readonly [];
|
|
@@ -21901,12 +21901,12 @@ declare const abi$B: readonly [{
|
|
|
21901
21901
|
readonly name: "RedemptionNotAllowedException";
|
|
21902
21902
|
readonly inputs: readonly [];
|
|
21903
21903
|
}];
|
|
21904
|
-
type abi$
|
|
21905
|
-
declare class PendleRouterAdapterContract extends AbstractAdapterContract<typeof abi$
|
|
21906
|
-
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi$
|
|
21904
|
+
type abi$C = typeof abi$C;
|
|
21905
|
+
declare class PendleRouterAdapterContract extends AbstractAdapterContract<typeof abi$C> {
|
|
21906
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi$C>, "abi">);
|
|
21907
21907
|
}
|
|
21908
21908
|
|
|
21909
|
-
declare const abi$
|
|
21909
|
+
declare const abi$B: readonly [{
|
|
21910
21910
|
readonly type: "function";
|
|
21911
21911
|
readonly name: "_gearboxAdapterType";
|
|
21912
21912
|
readonly inputs: readonly [];
|
|
@@ -22103,12 +22103,12 @@ declare const abi$A: readonly [{
|
|
|
22103
22103
|
}];
|
|
22104
22104
|
readonly stateMutability: "nonpayable";
|
|
22105
22105
|
}];
|
|
22106
|
-
type abi$
|
|
22107
|
-
declare class StakingRewardsAdapterContract extends AbstractAdapterContract<typeof abi$
|
|
22108
|
-
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi$
|
|
22106
|
+
type abi$B = typeof abi$B;
|
|
22107
|
+
declare class StakingRewardsAdapterContract extends AbstractAdapterContract<typeof abi$B> {
|
|
22108
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi$B>, "abi">);
|
|
22109
22109
|
}
|
|
22110
22110
|
|
|
22111
|
-
declare const abi$
|
|
22111
|
+
declare const abi$A: readonly [{
|
|
22112
22112
|
readonly type: "constructor";
|
|
22113
22113
|
readonly inputs: readonly [{
|
|
22114
22114
|
readonly name: "_creditManager";
|
|
@@ -22356,11 +22356,11 @@ declare const abi$z: readonly [{
|
|
|
22356
22356
|
readonly inputs: readonly [];
|
|
22357
22357
|
readonly name: "ZeroAddressException";
|
|
22358
22358
|
}];
|
|
22359
|
-
declare class UniswapV2AdapterContract extends AbstractAdapterContract<typeof abi$
|
|
22360
|
-
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$
|
|
22359
|
+
declare class UniswapV2AdapterContract extends AbstractAdapterContract<typeof abi$A> {
|
|
22360
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$A>, "abi">);
|
|
22361
22361
|
}
|
|
22362
22362
|
|
|
22363
|
-
declare const abi$
|
|
22363
|
+
declare const abi$z: readonly [{
|
|
22364
22364
|
readonly type: "constructor";
|
|
22365
22365
|
readonly inputs: readonly [{
|
|
22366
22366
|
readonly name: "_creditManager";
|
|
@@ -22785,14 +22785,14 @@ declare const abi$y: readonly [{
|
|
|
22785
22785
|
readonly inputs: readonly [];
|
|
22786
22786
|
readonly name: "ZeroAddressException";
|
|
22787
22787
|
}];
|
|
22788
|
-
declare class UniswapV3AdapterContract extends AbstractAdapterContract<typeof abi$
|
|
22789
|
-
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$
|
|
22790
|
-
parseFunctionParams(params: DecodeFunctionDataReturnType<typeof abi$
|
|
22788
|
+
declare class UniswapV3AdapterContract extends AbstractAdapterContract<typeof abi$z> {
|
|
22789
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$z>, "abi">);
|
|
22790
|
+
parseFunctionParams(params: DecodeFunctionDataReturnType<typeof abi$z>): string[] | undefined;
|
|
22791
22791
|
private trackInputPath;
|
|
22792
22792
|
private trackOutputPath;
|
|
22793
22793
|
}
|
|
22794
22794
|
|
|
22795
|
-
declare const abi$
|
|
22795
|
+
declare const abi$y: readonly [{
|
|
22796
22796
|
readonly type: "constructor";
|
|
22797
22797
|
readonly inputs: readonly [{
|
|
22798
22798
|
readonly name: "_creditManager";
|
|
@@ -23066,11 +23066,11 @@ declare const abi$x: readonly [{
|
|
|
23066
23066
|
readonly inputs: readonly [];
|
|
23067
23067
|
readonly name: "ZeroAddressException";
|
|
23068
23068
|
}];
|
|
23069
|
-
declare class VelodromeV2RouterAdapterContract extends AbstractAdapterContract<typeof abi$
|
|
23070
|
-
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$
|
|
23069
|
+
declare class VelodromeV2RouterAdapterContract extends AbstractAdapterContract<typeof abi$y> {
|
|
23070
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$y>, "abi">);
|
|
23071
23071
|
}
|
|
23072
23072
|
|
|
23073
|
-
declare const abi$
|
|
23073
|
+
declare const abi$x: readonly [{
|
|
23074
23074
|
readonly type: "constructor";
|
|
23075
23075
|
readonly inputs: readonly [{
|
|
23076
23076
|
readonly name: "_creditManager";
|
|
@@ -23253,11 +23253,11 @@ declare const abi$w: readonly [{
|
|
|
23253
23253
|
readonly inputs: readonly [];
|
|
23254
23254
|
readonly name: "ZeroAddressException";
|
|
23255
23255
|
}];
|
|
23256
|
-
declare class WstETHV1AdapterContract extends AbstractAdapterContract<typeof abi$
|
|
23257
|
-
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$
|
|
23256
|
+
declare class WstETHV1AdapterContract extends AbstractAdapterContract<typeof abi$x> {
|
|
23257
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$x>, "abi">);
|
|
23258
23258
|
}
|
|
23259
23259
|
|
|
23260
|
-
declare const abi$
|
|
23260
|
+
declare const abi$w: readonly [{
|
|
23261
23261
|
readonly type: "constructor";
|
|
23262
23262
|
readonly inputs: readonly [{
|
|
23263
23263
|
readonly name: "_creditManager";
|
|
@@ -23510,11 +23510,11 @@ declare const abi$v: readonly [{
|
|
|
23510
23510
|
readonly inputs: readonly [];
|
|
23511
23511
|
readonly name: "ZeroAddressException";
|
|
23512
23512
|
}];
|
|
23513
|
-
declare class YearnV2RouterAdapterContract extends AbstractAdapterContract<typeof abi$
|
|
23514
|
-
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$
|
|
23513
|
+
declare class YearnV2RouterAdapterContract extends AbstractAdapterContract<typeof abi$w> {
|
|
23514
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi$w>, "abi">);
|
|
23515
23515
|
}
|
|
23516
23516
|
|
|
23517
|
-
declare const abi$
|
|
23517
|
+
declare const abi$v: readonly [{
|
|
23518
23518
|
readonly type: "constructor";
|
|
23519
23519
|
readonly inputs: readonly [{
|
|
23520
23520
|
readonly name: "_creditManager";
|
|
@@ -24303,22 +24303,22 @@ declare const abi$u: readonly [{
|
|
|
24303
24303
|
readonly inputs: readonly [];
|
|
24304
24304
|
readonly name: "ZeroAddressException";
|
|
24305
24305
|
}];
|
|
24306
|
-
type abi$
|
|
24307
|
-
type RampEvent = GetEventArgs<abi$
|
|
24306
|
+
type abi$v = typeof creditConfiguratorV3Abi;
|
|
24307
|
+
type RampEvent = GetEventArgs<abi$v, "ScheduleTokenLiquidationThresholdRamp", {
|
|
24308
24308
|
EnableUnion: false;
|
|
24309
24309
|
IndexedOnly: false;
|
|
24310
24310
|
Required: true;
|
|
24311
24311
|
}>;
|
|
24312
|
-
declare class CreditConfiguratorV300Contract extends BaseContract<abi$
|
|
24312
|
+
declare class CreditConfiguratorV300Contract extends BaseContract<abi$v> {
|
|
24313
24313
|
readonly adapters: Address[];
|
|
24314
24314
|
isPaused: boolean;
|
|
24315
24315
|
constructor(sdk: GearboxSDK, { creditConfigurator, creditManager }: CreditManagerData);
|
|
24316
|
-
processLog(log: Log<bigint, number, false, undefined, undefined, abi$
|
|
24316
|
+
processLog(log: Log<bigint, number, false, undefined, undefined, abi$v, ContractEventName<abi$v>>): void;
|
|
24317
24317
|
checkRamps(): Promise<RampEvent[]>;
|
|
24318
|
-
parseFunctionParams(params: DecodeFunctionDataReturnType<abi$
|
|
24318
|
+
parseFunctionParams(params: DecodeFunctionDataReturnType<abi$v>): Array<string> | undefined;
|
|
24319
24319
|
}
|
|
24320
24320
|
|
|
24321
|
-
declare const abi$
|
|
24321
|
+
declare const abi$u: readonly [{
|
|
24322
24322
|
readonly type: "function";
|
|
24323
24323
|
readonly name: "acl";
|
|
24324
24324
|
readonly inputs: readonly [];
|
|
@@ -24860,14 +24860,14 @@ declare const abi$t: readonly [{
|
|
|
24860
24860
|
}];
|
|
24861
24861
|
readonly anonymous: false;
|
|
24862
24862
|
}];
|
|
24863
|
-
type abi$
|
|
24864
|
-
declare class CreditConfiguratorV310Contract extends BaseContract<abi$
|
|
24863
|
+
type abi$u = typeof abi$u;
|
|
24864
|
+
declare class CreditConfiguratorV310Contract extends BaseContract<abi$u> {
|
|
24865
24865
|
readonly adapters: Address[];
|
|
24866
24866
|
isPaused: boolean;
|
|
24867
24867
|
constructor(sdk: GearboxSDK, { creditConfigurator, creditManager }: CreditManagerData);
|
|
24868
|
-
processLog(log: Log<bigint, number, false, undefined, undefined, abi$
|
|
24868
|
+
processLog(log: Log<bigint, number, false, undefined, undefined, abi$u, ContractEventName<abi$u>>): void;
|
|
24869
24869
|
checkRamps(): Promise<RampEvent[]>;
|
|
24870
|
-
parseFunctionParams(params: DecodeFunctionDataReturnType<abi$
|
|
24870
|
+
parseFunctionParams(params: DecodeFunctionDataReturnType<abi$u>): Array<string> | undefined;
|
|
24871
24871
|
}
|
|
24872
24872
|
|
|
24873
24873
|
declare class AddressMap<T> {
|
|
@@ -24955,7 +24955,7 @@ declare const json_stringify: (obj: any, space?: number) => string;
|
|
|
24955
24955
|
declare const json_parse: (s: string) => any;
|
|
24956
24956
|
|
|
24957
24957
|
type PriceFeedUsageType = "Main" | "Reserve";
|
|
24958
|
-
type PriceFeedContractType = "PF_CHAINLINK_ORACLE" | "PF_ZERO_ORACLE" | "PF_COMPOSITE_ORACLE" | "PF_BALANCER_STABLE_LP_ORACLE" | "PF_CURVE_STABLE_LP_ORACLE" | "PF_CURVE_CRYPTO_LP_ORACLE" | "PF_CURVE_USD_ORACLE" | "PF_ERC4626_ORACLE" | "PF_WSTETH_ORACLE" | "PF_YEARN_ORACLE" | "PF_MELLOW_LRT_ORACLE" | "PF_BALANCER_WEIGHTED_LP_ORACLE" | "PF_BOUNDED_ORACLE" | "PF_PYTH_ORACLE" | "PF_REDSTONE_ORACLE";
|
|
24958
|
+
type PriceFeedContractType = "PF_CHAINLINK_ORACLE" | "PF_ZERO_ORACLE" | "PF_COMPOSITE_ORACLE" | "PF_BALANCER_STABLE_LP_ORACLE" | "PF_CURVE_STABLE_LP_ORACLE" | "PF_CURVE_CRYPTO_LP_ORACLE" | "PF_CURVE_USD_ORACLE" | "PF_ERC4626_ORACLE" | "PF_WSTETH_ORACLE" | "PF_YEARN_ORACLE" | "PF_MELLOW_LRT_ORACLE" | "PF_BALANCER_WEIGHTED_LP_ORACLE" | "PF_BOUNDED_ORACLE" | "PF_PYTH_ORACLE" | "PF_REDSTONE_ORACLE" | "PF_PENDLE_PT_TWAP_ORACLE";
|
|
24959
24959
|
interface IPriceFeedContract extends IBaseContract {
|
|
24960
24960
|
readonly hasLowerBoundCap: boolean;
|
|
24961
24961
|
readonly priceFeedType: PriceFeedContractType;
|
|
@@ -25032,67 +25032,273 @@ declare abstract class AbstractLPPriceFeedContract<const abi extends Abi | reado
|
|
|
25032
25032
|
static toLowerBound(value: bigint): bigint;
|
|
25033
25033
|
}
|
|
25034
25034
|
|
|
25035
|
-
type abi$
|
|
25036
|
-
declare class BalancerStablePriceFeedContract extends AbstractLPPriceFeedContract<abi$
|
|
25035
|
+
type abi$t = typeof bptStablePriceFeedAbi;
|
|
25036
|
+
declare class BalancerStablePriceFeedContract extends AbstractLPPriceFeedContract<abi$t> {
|
|
25037
25037
|
constructor(sdk: GearboxSDK, args: PartialPriceFeedTreeNode);
|
|
25038
25038
|
getValue(): Promise<bigint>;
|
|
25039
25039
|
}
|
|
25040
25040
|
|
|
25041
|
-
type abi$
|
|
25042
|
-
declare class BalancerWeightedPriceFeedContract extends AbstractLPPriceFeedContract<abi$
|
|
25041
|
+
type abi$s = typeof bptWeightedPriceFeedAbi;
|
|
25042
|
+
declare class BalancerWeightedPriceFeedContract extends AbstractLPPriceFeedContract<abi$s> {
|
|
25043
25043
|
constructor(sdk: GearboxSDK, args: PartialPriceFeedTreeNode);
|
|
25044
25044
|
getValue(): Promise<bigint>;
|
|
25045
25045
|
}
|
|
25046
25046
|
|
|
25047
|
-
type abi$
|
|
25048
|
-
declare class BoundedPriceFeedContract extends AbstractPriceFeedContract<abi$
|
|
25049
|
-
upperBound: bigint;
|
|
25047
|
+
type abi$r = typeof boundedPriceFeedAbi;
|
|
25048
|
+
declare class BoundedPriceFeedContract extends AbstractPriceFeedContract<abi$r> {
|
|
25049
|
+
readonly upperBound: bigint;
|
|
25050
25050
|
constructor(sdk: GearboxSDK, args: PartialPriceFeedTreeNode);
|
|
25051
25051
|
stateHuman(raw?: boolean): Omit<BoundedOracleStateHuman, "stalenessPeriod">;
|
|
25052
25052
|
}
|
|
25053
25053
|
|
|
25054
|
-
type abi$
|
|
25055
|
-
declare class ChainlinkPriceFeedContract extends AbstractPriceFeedContract<abi$
|
|
25054
|
+
type abi$q = typeof chainlinkReadableAggregatorAbi;
|
|
25055
|
+
declare class ChainlinkPriceFeedContract extends AbstractPriceFeedContract<abi$q> {
|
|
25056
25056
|
constructor(sdk: GearboxSDK, args: PartialPriceFeedTreeNode);
|
|
25057
25057
|
}
|
|
25058
25058
|
|
|
25059
|
-
type abi$
|
|
25060
|
-
declare class CompositePriceFeedContract extends AbstractPriceFeedContract<abi$
|
|
25059
|
+
type abi$p = typeof compositePriceFeedAbi;
|
|
25060
|
+
declare class CompositePriceFeedContract extends AbstractPriceFeedContract<abi$p> {
|
|
25061
25061
|
constructor(sdk: GearboxSDK, args: PartialPriceFeedTreeNode);
|
|
25062
25062
|
get targetToBasePriceFeed(): PriceFeedRef;
|
|
25063
25063
|
get baseToUsdPriceFeed(): PriceFeedRef;
|
|
25064
25064
|
}
|
|
25065
25065
|
|
|
25066
|
-
type abi$
|
|
25067
|
-
declare class CurveCryptoPriceFeedContract extends AbstractLPPriceFeedContract<abi$
|
|
25066
|
+
type abi$o = typeof curveCryptoLpPriceFeedAbi;
|
|
25067
|
+
declare class CurveCryptoPriceFeedContract extends AbstractLPPriceFeedContract<abi$o> {
|
|
25068
25068
|
constructor(sdk: GearboxSDK, args: PartialPriceFeedTreeNode);
|
|
25069
25069
|
getValue(): Promise<bigint>;
|
|
25070
25070
|
}
|
|
25071
25071
|
|
|
25072
|
-
type abi$
|
|
25073
|
-
declare class CurveStablePriceFeedContract extends AbstractLPPriceFeedContract<abi$
|
|
25072
|
+
type abi$n = typeof curveStableLpPriceFeedAbi;
|
|
25073
|
+
declare class CurveStablePriceFeedContract extends AbstractLPPriceFeedContract<abi$n> {
|
|
25074
25074
|
constructor(sdk: GearboxSDK, args: PartialPriceFeedTreeNode);
|
|
25075
25075
|
getValue(): Promise<bigint>;
|
|
25076
25076
|
}
|
|
25077
25077
|
|
|
25078
|
-
type abi$
|
|
25079
|
-
declare class CurveUSDPriceFeedContract extends AbstractLPPriceFeedContract<abi$
|
|
25078
|
+
type abi$m = typeof curveUsdPriceFeedAbi;
|
|
25079
|
+
declare class CurveUSDPriceFeedContract extends AbstractLPPriceFeedContract<abi$m> {
|
|
25080
25080
|
constructor(sdk: GearboxSDK, args: PartialPriceFeedTreeNode);
|
|
25081
25081
|
getValue(): Promise<bigint>;
|
|
25082
25082
|
}
|
|
25083
25083
|
|
|
25084
|
-
type abi$
|
|
25085
|
-
declare class Erc4626PriceFeedContract extends AbstractLPPriceFeedContract<abi$
|
|
25084
|
+
type abi$l = typeof erc4626PriceFeedAbi;
|
|
25085
|
+
declare class Erc4626PriceFeedContract extends AbstractLPPriceFeedContract<abi$l> {
|
|
25086
25086
|
constructor(sdk: GearboxSDK, args: PartialPriceFeedTreeNode);
|
|
25087
25087
|
getValue(): Promise<bigint>;
|
|
25088
25088
|
}
|
|
25089
25089
|
|
|
25090
|
-
type abi$
|
|
25091
|
-
declare class MellowLRTPriceFeedContract extends AbstractLPPriceFeedContract<abi$
|
|
25090
|
+
type abi$k = typeof mellowLrtPriceFeedAbi;
|
|
25091
|
+
declare class MellowLRTPriceFeedContract extends AbstractLPPriceFeedContract<abi$k> {
|
|
25092
25092
|
constructor(sdk: GearboxSDK, args: PartialPriceFeedTreeNode);
|
|
25093
25093
|
getValue(): Promise<bigint>;
|
|
25094
25094
|
}
|
|
25095
25095
|
|
|
25096
|
+
declare const abi$j: readonly [{
|
|
25097
|
+
readonly type: "constructor";
|
|
25098
|
+
readonly inputs: readonly [{
|
|
25099
|
+
readonly name: "_market";
|
|
25100
|
+
readonly type: "address";
|
|
25101
|
+
readonly internalType: "address";
|
|
25102
|
+
}, {
|
|
25103
|
+
readonly name: "_priceFeed";
|
|
25104
|
+
readonly type: "address";
|
|
25105
|
+
readonly internalType: "address";
|
|
25106
|
+
}, {
|
|
25107
|
+
readonly name: "_stalenessPeriod";
|
|
25108
|
+
readonly type: "uint32";
|
|
25109
|
+
readonly internalType: "uint32";
|
|
25110
|
+
}, {
|
|
25111
|
+
readonly name: "_twapWindow";
|
|
25112
|
+
readonly type: "uint32";
|
|
25113
|
+
readonly internalType: "uint32";
|
|
25114
|
+
}];
|
|
25115
|
+
readonly stateMutability: "nonpayable";
|
|
25116
|
+
}, {
|
|
25117
|
+
readonly type: "function";
|
|
25118
|
+
readonly name: "decimals";
|
|
25119
|
+
readonly inputs: readonly [];
|
|
25120
|
+
readonly outputs: readonly [{
|
|
25121
|
+
readonly name: "";
|
|
25122
|
+
readonly type: "uint8";
|
|
25123
|
+
readonly internalType: "uint8";
|
|
25124
|
+
}];
|
|
25125
|
+
readonly stateMutability: "view";
|
|
25126
|
+
}, {
|
|
25127
|
+
readonly type: "function";
|
|
25128
|
+
readonly name: "description";
|
|
25129
|
+
readonly inputs: readonly [];
|
|
25130
|
+
readonly outputs: readonly [{
|
|
25131
|
+
readonly name: "";
|
|
25132
|
+
readonly type: "string";
|
|
25133
|
+
readonly internalType: "string";
|
|
25134
|
+
}];
|
|
25135
|
+
readonly stateMutability: "view";
|
|
25136
|
+
}, {
|
|
25137
|
+
readonly type: "function";
|
|
25138
|
+
readonly name: "expiry";
|
|
25139
|
+
readonly inputs: readonly [];
|
|
25140
|
+
readonly outputs: readonly [{
|
|
25141
|
+
readonly name: "";
|
|
25142
|
+
readonly type: "uint256";
|
|
25143
|
+
readonly internalType: "uint256";
|
|
25144
|
+
}];
|
|
25145
|
+
readonly stateMutability: "view";
|
|
25146
|
+
}, {
|
|
25147
|
+
readonly type: "function";
|
|
25148
|
+
readonly name: "latestRoundData";
|
|
25149
|
+
readonly inputs: readonly [];
|
|
25150
|
+
readonly outputs: readonly [{
|
|
25151
|
+
readonly name: "";
|
|
25152
|
+
readonly type: "uint80";
|
|
25153
|
+
readonly internalType: "uint80";
|
|
25154
|
+
}, {
|
|
25155
|
+
readonly name: "";
|
|
25156
|
+
readonly type: "int256";
|
|
25157
|
+
readonly internalType: "int256";
|
|
25158
|
+
}, {
|
|
25159
|
+
readonly name: "";
|
|
25160
|
+
readonly type: "uint256";
|
|
25161
|
+
readonly internalType: "uint256";
|
|
25162
|
+
}, {
|
|
25163
|
+
readonly name: "";
|
|
25164
|
+
readonly type: "uint256";
|
|
25165
|
+
readonly internalType: "uint256";
|
|
25166
|
+
}, {
|
|
25167
|
+
readonly name: "";
|
|
25168
|
+
readonly type: "uint80";
|
|
25169
|
+
readonly internalType: "uint80";
|
|
25170
|
+
}];
|
|
25171
|
+
readonly stateMutability: "view";
|
|
25172
|
+
}, {
|
|
25173
|
+
readonly type: "function";
|
|
25174
|
+
readonly name: "market";
|
|
25175
|
+
readonly inputs: readonly [];
|
|
25176
|
+
readonly outputs: readonly [{
|
|
25177
|
+
readonly name: "";
|
|
25178
|
+
readonly type: "address";
|
|
25179
|
+
readonly internalType: "address";
|
|
25180
|
+
}];
|
|
25181
|
+
readonly stateMutability: "view";
|
|
25182
|
+
}, {
|
|
25183
|
+
readonly type: "function";
|
|
25184
|
+
readonly name: "priceFeed";
|
|
25185
|
+
readonly inputs: readonly [];
|
|
25186
|
+
readonly outputs: readonly [{
|
|
25187
|
+
readonly name: "";
|
|
25188
|
+
readonly type: "address";
|
|
25189
|
+
readonly internalType: "address";
|
|
25190
|
+
}];
|
|
25191
|
+
readonly stateMutability: "view";
|
|
25192
|
+
}, {
|
|
25193
|
+
readonly type: "function";
|
|
25194
|
+
readonly name: "priceFeedType";
|
|
25195
|
+
readonly inputs: readonly [];
|
|
25196
|
+
readonly outputs: readonly [{
|
|
25197
|
+
readonly name: "";
|
|
25198
|
+
readonly type: "uint8";
|
|
25199
|
+
readonly internalType: "enum PriceFeedType";
|
|
25200
|
+
}];
|
|
25201
|
+
readonly stateMutability: "view";
|
|
25202
|
+
}, {
|
|
25203
|
+
readonly type: "function";
|
|
25204
|
+
readonly name: "skipCheck";
|
|
25205
|
+
readonly inputs: readonly [];
|
|
25206
|
+
readonly outputs: readonly [{
|
|
25207
|
+
readonly name: "";
|
|
25208
|
+
readonly type: "bool";
|
|
25209
|
+
readonly internalType: "bool";
|
|
25210
|
+
}];
|
|
25211
|
+
readonly stateMutability: "view";
|
|
25212
|
+
}, {
|
|
25213
|
+
readonly type: "function";
|
|
25214
|
+
readonly name: "skipPriceCheck";
|
|
25215
|
+
readonly inputs: readonly [];
|
|
25216
|
+
readonly outputs: readonly [{
|
|
25217
|
+
readonly name: "";
|
|
25218
|
+
readonly type: "bool";
|
|
25219
|
+
readonly internalType: "bool";
|
|
25220
|
+
}];
|
|
25221
|
+
readonly stateMutability: "view";
|
|
25222
|
+
}, {
|
|
25223
|
+
readonly type: "function";
|
|
25224
|
+
readonly name: "stalenessPeriod";
|
|
25225
|
+
readonly inputs: readonly [];
|
|
25226
|
+
readonly outputs: readonly [{
|
|
25227
|
+
readonly name: "";
|
|
25228
|
+
readonly type: "uint32";
|
|
25229
|
+
readonly internalType: "uint32";
|
|
25230
|
+
}];
|
|
25231
|
+
readonly stateMutability: "view";
|
|
25232
|
+
}, {
|
|
25233
|
+
readonly type: "function";
|
|
25234
|
+
readonly name: "sy";
|
|
25235
|
+
readonly inputs: readonly [];
|
|
25236
|
+
readonly outputs: readonly [{
|
|
25237
|
+
readonly name: "";
|
|
25238
|
+
readonly type: "address";
|
|
25239
|
+
readonly internalType: "address";
|
|
25240
|
+
}];
|
|
25241
|
+
readonly stateMutability: "view";
|
|
25242
|
+
}, {
|
|
25243
|
+
readonly type: "function";
|
|
25244
|
+
readonly name: "twapWindow";
|
|
25245
|
+
readonly inputs: readonly [];
|
|
25246
|
+
readonly outputs: readonly [{
|
|
25247
|
+
readonly name: "";
|
|
25248
|
+
readonly type: "uint32";
|
|
25249
|
+
readonly internalType: "uint32";
|
|
25250
|
+
}];
|
|
25251
|
+
readonly stateMutability: "view";
|
|
25252
|
+
}, {
|
|
25253
|
+
readonly type: "function";
|
|
25254
|
+
readonly name: "version";
|
|
25255
|
+
readonly inputs: readonly [];
|
|
25256
|
+
readonly outputs: readonly [{
|
|
25257
|
+
readonly name: "";
|
|
25258
|
+
readonly type: "uint256";
|
|
25259
|
+
readonly internalType: "uint256";
|
|
25260
|
+
}];
|
|
25261
|
+
readonly stateMutability: "view";
|
|
25262
|
+
}, {
|
|
25263
|
+
readonly type: "function";
|
|
25264
|
+
readonly name: "yt";
|
|
25265
|
+
readonly inputs: readonly [];
|
|
25266
|
+
readonly outputs: readonly [{
|
|
25267
|
+
readonly name: "";
|
|
25268
|
+
readonly type: "address";
|
|
25269
|
+
readonly internalType: "address";
|
|
25270
|
+
}];
|
|
25271
|
+
readonly stateMutability: "view";
|
|
25272
|
+
}, {
|
|
25273
|
+
readonly type: "error";
|
|
25274
|
+
readonly name: "AddressIsNotContractException";
|
|
25275
|
+
readonly inputs: readonly [{
|
|
25276
|
+
readonly name: "";
|
|
25277
|
+
readonly type: "address";
|
|
25278
|
+
readonly internalType: "address";
|
|
25279
|
+
}];
|
|
25280
|
+
}, {
|
|
25281
|
+
readonly type: "error";
|
|
25282
|
+
readonly name: "IncorrectParameterException";
|
|
25283
|
+
readonly inputs: readonly [];
|
|
25284
|
+
}, {
|
|
25285
|
+
readonly type: "error";
|
|
25286
|
+
readonly name: "IncorrectPriceException";
|
|
25287
|
+
readonly inputs: readonly [];
|
|
25288
|
+
}, {
|
|
25289
|
+
readonly type: "error";
|
|
25290
|
+
readonly name: "IncorrectPriceFeedException";
|
|
25291
|
+
readonly inputs: readonly [];
|
|
25292
|
+
}, {
|
|
25293
|
+
readonly type: "error";
|
|
25294
|
+
readonly name: "StalePriceException";
|
|
25295
|
+
readonly inputs: readonly [];
|
|
25296
|
+
}];
|
|
25297
|
+
type abi$j = typeof abi$j;
|
|
25298
|
+
declare class PendleTWAPPTPriceFeed extends AbstractPriceFeedContract<abi$j> {
|
|
25299
|
+
constructor(sdk: GearboxSDK, args: PartialPriceFeedTreeNode);
|
|
25300
|
+
}
|
|
25301
|
+
|
|
25096
25302
|
interface IHooks<HookMap extends Record<string, any[]>> {
|
|
25097
25303
|
addHook: <K extends keyof HookMap>(hookName: K, fn: (...args: HookMap[K]) => void | Promise<void>) => void;
|
|
25098
25304
|
removeHook: <K extends keyof HookMap>(hookName: K, fn: (...args: HookMap[K]) => void | Promise<void>) => void;
|
|
@@ -25133,7 +25339,14 @@ declare class PriceFeedRegister extends SDKConstruct implements IHooks<PriceFeed
|
|
|
25133
25339
|
* Loads PARTIAL information about all updatable price feeds from MarketCompressor
|
|
25134
25340
|
* This can later be used to load price feed updates
|
|
25135
25341
|
*/
|
|
25136
|
-
|
|
25342
|
+
preloadUpdatablePriceFeeds(curators?: Address[], pools?: Address[]): Promise<void>;
|
|
25343
|
+
/**
|
|
25344
|
+
* Generates price update transaction via multicall3 without any market data knowledge
|
|
25345
|
+
* @param curators
|
|
25346
|
+
* @param pools
|
|
25347
|
+
* @returns
|
|
25348
|
+
*/
|
|
25349
|
+
getUpdatePriceFeedsTx(curators?: Address[], pools?: Address[]): Promise<RawTx>;
|
|
25137
25350
|
}
|
|
25138
25351
|
|
|
25139
25352
|
type abi$i = typeof redstonePriceFeedAbi;
|
|
@@ -32180,6 +32393,7 @@ declare const NOT_DEPLOYED = "0xNOT DEPLOYED";
|
|
|
32180
32393
|
*/
|
|
32181
32394
|
declare const USDC: Record<NetworkType, Address>;
|
|
32182
32395
|
declare const TIMELOCK: Record<NetworkType, Address>;
|
|
32396
|
+
declare const GEARBOX_RISK_CURATORS: Record<NetworkType, Address[]>;
|
|
32183
32397
|
|
|
32184
32398
|
declare enum BotPermissions {
|
|
32185
32399
|
ADD_COLLATERAL = 1,
|
|
@@ -32250,6 +32464,12 @@ declare class GaugeStakingService extends SDKConstruct {
|
|
|
32250
32464
|
|
|
32251
32465
|
declare function detectNetwork(client: PublicClient): Promise<NetworkType>;
|
|
32252
32466
|
|
|
32467
|
+
interface SendRawTxParameters {
|
|
32468
|
+
account?: Account;
|
|
32469
|
+
tx: RawTx;
|
|
32470
|
+
}
|
|
32471
|
+
declare function sendRawTx<chain extends Chain | undefined = Chain | undefined>(client: Client<Transport, chain, Account | undefined>, params: SendRawTxParameters): Promise<SendTransactionReturnType>;
|
|
32472
|
+
|
|
32253
32473
|
type MulticallParameters<contracts extends readonly unknown[] = readonly ContractFunctionParameters[], allowFailure extends boolean = true, options extends {
|
|
32254
32474
|
optional?: boolean;
|
|
32255
32475
|
properties?: Record<string, any>;
|
|
@@ -32277,4 +32497,4 @@ type MulticallErrorType = GetChainContractAddressErrorType | ReadContractErrorTy
|
|
|
32277
32497
|
*/
|
|
32278
32498
|
declare function simulateMulticall<const contracts extends readonly unknown[], chain extends Chain | undefined, allowFailure extends boolean = true>(client: Client<Transport, chain>, parameters: MulticallParameters<contracts, allowFailure>): Promise<MulticallReturnType<contracts, allowFailure>>;
|
|
32279
32499
|
|
|
32280
|
-
export { ADDRESS_0X0, ADDRESS_PROVIDER, ADDRESS_PROVIDER_BLOCK, AP_ACCOUNT_FACTORY, AP_ACL, AP_ADAPTER_COMPRESSOR, AP_BOT_LIST, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DEGEN_DISTRIBUTOR, AP_DEGEN_NFT, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, AP_GEAR_STAKING, AP_GEAR_TOKEN, AP_INFLATION_ATTACK_BLOCKER, AP_INSOLVENCY_CHECKER, AP_MARKET_COMPRESSOR, AP_MARKET_CONFIGURATOR, AP_MULTI_PAUSE, AP_PARTIAL_LIQUIDATION_BOT, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_ORACLE, AP_ROUTER, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, AbstractPriceFeedContract, type AdapterContractType, type AdapterData, AddressLabeller, AddressMap, AddressProviderContractV3_1, type AddressProviderV3StateHuman, type Asset, type AssetPriceFeedStateHuman, BLOCKS_PER_WEEK_BY_NETWORK, BalancerStablePriceFeedContract, BalancerV2VaultAdapterContract, BalancerWeightedPriceFeedContract, BaseContract, type BaseContractOptions, type BaseContractStateHuman, type BaseParams, type BasePriceFeedStateHuman, type BotAddresses, type BotBaseType, type BotDataPayload, type BotDetailedType, BotListContract, type BotListStateHuman, BotPermissions, BotsService, type BoundedOracleStateHuman, BoundedPriceFeedContract, CamelotV3AdapterContract, ChainlinkPriceFeedContract, type ClaimFarmRewardsProps, type CloseCreditAccountResult, type ClosePathBalances, type CommonResult, CompositePriceFeedContract, type ConnectionOptions, type ContractMethod, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, type CoreStateHuman, type CreditAccountData, type CreditAccountDataSlice, type CreditAccountFilter, CreditAccountsService, type CreditConfiguratorState, type CreditConfiguratorStateHuman, CreditConfiguratorV300Contract, CreditConfiguratorV310Contract, type CreditFacadeState, type CreditFacadeStateHuman, CreditFacadeV300Contract, CreditFacadeV310Contract, CreditFactory, type CreditFactoryStateHuman, type CreditManagerData, type CreditManagerDebtParams, type CreditManagerDebtParamsHuman, type CreditManagerState, type CreditManagerStateHuman, CreditManagerV300Contract, CreditManagerV310Contract, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve4AssetsAdapterContract, CurveCryptoPriceFeedContract, type CurvePoolStruct, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1AdapterStableNGContract, DaiUsdsAdapterContract, ERC4626AdapterContract, Erc4626PriceFeedContract, type EtherscanURLParam, type FindClosePathInput, GaugeContract, type GaugeParams, type GaugeParamsHuman, type GaugeStakingDataPayload, GaugeStakingService, type GaugeStateHuman, GearStakingContract, type GearStakingV3StateHuman, GearboxSDK, type GearboxStateHuman, type IAdapterContract, type IBaseContract, type ILPPriceFeedContract, type ILogger, type IPriceFeedContract, type IPriceOracleContract, LinearModelContract, type LinearModelStateHuman, type LiquidationBotType, type LogFn, MAX_UINT16, MAX_UINT256, MIN_INT96, type MarketData, MarketFactory, MarketRegister, type MarketStateHuman, MellowLRTPriceFeedContract, MellowVaultAdapterContract, type MultiCall, type MultiVote, type MulticallErrorType, type MulticallParameters, type MulticallReturnType, NOT_DEPLOYED, NO_VERSION, type NetworkOptions, type NetworkType, type OnDemandPriceUpdate, type OpenStrategyResult, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PRICE_DECIMALS, PRICE_DECIMALS_POW, type PartialPriceFeedTreeNode, type PathOption, type PathOptionSerie, PendleRouterAdapterContract, type PermitResult, PoolContract, type PoolData, PoolFactory, type PoolFactoryStateHuman, PoolQuotaKeeperContract, type PoolQuotaKeeperData, type PoolQuotaKeeperStateHuman, type PoolStateHuman, type PriceFeedConstructorArgs, type PriceFeedContractType, type PriceFeedMapEntry, PriceFeedRef, PriceFeedRegister, type PriceFeedRegisterHooks, type PriceFeedStateHuman, type PriceFeedTreeNode, type PriceFeedUsageType, type PriceOracleData, PriceOracleV300Contract, PriceOracleV310Contract, type PriceOracleV3StateHuman, Provider, type QuotaParamsHuman, type QuotaState, RAMP_DURATION_BY_NETWORK, RAY, RAY_DECIMALS_POW, type RampEvent, type RateKeeperData, type RawTx, RedstonePriceFeedContract, type RedstonePriceFeedStateHuman, type RouterCloseResult, type RouterHooks, type RouterResult, RouterV3Contract, SDKConstruct, type SDKHooks, type SDKOptions, SUPPORTED_CHAINS, StakingRewardsAdapterContract, type SwapOperation, type SwapTask, type SyncStateOptions, TIMELOCK, type TVL, type TokenMetaData, TokensMeta, type TransportOptions, USDC, UniswapV2AdapterContract, UniswapV3AdapterContract, type UpdatePriceFeedsResult, VelodromeV2RouterAdapterContract, VotingContractStatus, WAD, WAD_DECIMALS_POW, WstETHPriceFeedContract, WstETHV1AdapterContract, YearnPriceFeedContract, YearnV2RouterAdapterContract, type ZapperData, type ZapperStateHuman, ZeroPriceFeedContract, assetsMap, balancesMap, botPermissionsToString, bytes32ToString, chains, childLogger, createAdapter, createRawTx, createTransport, detectNetwork, etherscanUrl, filterDust, fmtBinaryMask, formatBN, formatBNvalue, formatBn4dig, formatDuration, formatNumberToString_, halfRAY, json_parse, json_stringify, numberWithCommas, percentFmt, rawTxToMulticallPriceUpdate, simulateMulticall, toHumanFormat, tokenToTicker };
|
|
32500
|
+
export { ADDRESS_0X0, ADDRESS_PROVIDER, ADDRESS_PROVIDER_BLOCK, AP_ACCOUNT_FACTORY, AP_ACL, AP_ADAPTER_COMPRESSOR, AP_BOT_LIST, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DEGEN_DISTRIBUTOR, AP_DEGEN_NFT, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, AP_GEAR_STAKING, AP_GEAR_TOKEN, AP_INFLATION_ATTACK_BLOCKER, AP_INSOLVENCY_CHECKER, AP_MARKET_COMPRESSOR, AP_MARKET_CONFIGURATOR, AP_MULTI_PAUSE, AP_PARTIAL_LIQUIDATION_BOT, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_ORACLE, AP_ROUTER, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, AbstractPriceFeedContract, type AdapterContractType, type AdapterData, AddressLabeller, AddressMap, AddressProviderContractV3_1, type AddressProviderV3StateHuman, type Asset, type AssetPriceFeedStateHuman, BLOCKS_PER_WEEK_BY_NETWORK, BalancerStablePriceFeedContract, BalancerV2VaultAdapterContract, BalancerWeightedPriceFeedContract, BaseContract, type BaseContractOptions, type BaseContractStateHuman, type BaseParams, type BasePriceFeedStateHuman, type BotAddresses, type BotBaseType, type BotDataPayload, type BotDetailedType, BotListContract, type BotListStateHuman, BotPermissions, BotsService, type BoundedOracleStateHuman, BoundedPriceFeedContract, CamelotV3AdapterContract, ChainlinkPriceFeedContract, type ClaimFarmRewardsProps, type CloseCreditAccountResult, type ClosePathBalances, type CommonResult, CompositePriceFeedContract, type ConnectionOptions, type ContractMethod, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, type CoreStateHuman, type CreditAccountData, type CreditAccountDataSlice, type CreditAccountFilter, CreditAccountsService, type CreditConfiguratorState, type CreditConfiguratorStateHuman, CreditConfiguratorV300Contract, CreditConfiguratorV310Contract, type CreditFacadeState, type CreditFacadeStateHuman, CreditFacadeV300Contract, CreditFacadeV310Contract, CreditFactory, type CreditFactoryStateHuman, type CreditManagerData, type CreditManagerDebtParams, type CreditManagerDebtParamsHuman, type CreditManagerState, type CreditManagerStateHuman, CreditManagerV300Contract, CreditManagerV310Contract, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve4AssetsAdapterContract, CurveCryptoPriceFeedContract, type CurvePoolStruct, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1AdapterStableNGContract, DaiUsdsAdapterContract, ERC4626AdapterContract, Erc4626PriceFeedContract, type EtherscanURLParam, type FindClosePathInput, GEARBOX_RISK_CURATORS, GaugeContract, type GaugeParams, type GaugeParamsHuman, type GaugeStakingDataPayload, GaugeStakingService, type GaugeStateHuman, GearStakingContract, type GearStakingV3StateHuman, GearboxSDK, type GearboxStateHuman, type IAdapterContract, type IBaseContract, type ILPPriceFeedContract, type ILogger, type IPriceFeedContract, type IPriceOracleContract, LinearModelContract, type LinearModelStateHuman, type LiquidationBotType, type LogFn, MAX_UINT16, MAX_UINT256, MIN_INT96, type MarketData, MarketFactory, MarketRegister, type MarketStateHuman, MellowLRTPriceFeedContract, MellowVaultAdapterContract, type MultiCall, type MultiVote, type MulticallErrorType, type MulticallParameters, type MulticallReturnType, NOT_DEPLOYED, NO_VERSION, type NetworkOptions, type NetworkType, type OnDemandPriceUpdate, type OpenStrategyResult, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PRICE_DECIMALS, PRICE_DECIMALS_POW, type PartialPriceFeedTreeNode, type PathOption, type PathOptionSerie, PendleRouterAdapterContract, PendleTWAPPTPriceFeed, type PermitResult, PoolContract, type PoolData, PoolFactory, type PoolFactoryStateHuman, PoolQuotaKeeperContract, type PoolQuotaKeeperData, type PoolQuotaKeeperStateHuman, type PoolStateHuman, type PriceFeedConstructorArgs, type PriceFeedContractType, type PriceFeedMapEntry, PriceFeedRef, PriceFeedRegister, type PriceFeedRegisterHooks, type PriceFeedStateHuman, type PriceFeedTreeNode, type PriceFeedUsageType, type PriceOracleData, PriceOracleV300Contract, PriceOracleV310Contract, type PriceOracleV3StateHuman, Provider, type QuotaParamsHuman, type QuotaState, RAMP_DURATION_BY_NETWORK, RAY, RAY_DECIMALS_POW, type RampEvent, type RateKeeperData, type RawTx, RedstonePriceFeedContract, type RedstonePriceFeedStateHuman, type RouterCloseResult, type RouterHooks, type RouterResult, RouterV3Contract, SDKConstruct, type SDKHooks, type SDKOptions, SUPPORTED_CHAINS, type SendRawTxParameters, StakingRewardsAdapterContract, type SwapOperation, type SwapTask, type SyncStateOptions, TIMELOCK, type TVL, type TokenMetaData, TokensMeta, type TransportOptions, USDC, UniswapV2AdapterContract, UniswapV3AdapterContract, type UpdatePriceFeedsResult, VelodromeV2RouterAdapterContract, VotingContractStatus, WAD, WAD_DECIMALS_POW, WstETHPriceFeedContract, WstETHV1AdapterContract, YearnPriceFeedContract, YearnV2RouterAdapterContract, type ZapperData, type ZapperStateHuman, ZeroPriceFeedContract, assetsMap, balancesMap, botPermissionsToString, bytes32ToString, chains, childLogger, createAdapter, createRawTx, createTransport, detectNetwork, etherscanUrl, filterDust, fmtBinaryMask, formatBN, formatBNvalue, formatBn4dig, formatDuration, formatNumberToString_, halfRAY, json_parse, json_stringify, numberWithCommas, percentFmt, rawTxToMulticallPriceUpdate, sendRawTx, simulateMulticall, toHumanFormat, tokenToTicker };
|