@gearbox-protocol/sdk 3.0.0-vfour.24 → 3.0.0-vfour.26
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/dev/index.d.ts +2 -2
- package/dist/cjs/sdk/index.cjs +145 -6
- package/dist/cjs/sdk/index.d.ts +0 -1
- package/dist/esm/dev/index.d.mts +2 -2
- package/dist/esm/sdk/index.d.mts +0 -1
- package/dist/esm/sdk/index.mjs +145 -6
- package/package.json +1 -1
package/dist/cjs/dev/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address,
|
|
1
|
+
import { Address, Block, Hex, Prettify, Client, Transport, Chain, TestActions, PublicClient, WalletClient, TestRpcSchema } from 'viem';
|
|
2
2
|
import { GearboxSDK, CreditAccountData, ILogger, CreditFactory } from '../sdk';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -76,4 +76,4 @@ declare function evmMineDetailed(client: Client<any, any, any, AnvilRPCSchema, a
|
|
|
76
76
|
*/
|
|
77
77
|
declare function setLTs(sdk: GearboxSDK, cm: CreditFactory, newLTs: Record<Address, number>, logger?: ILogger): Promise<void>;
|
|
78
78
|
|
|
79
|
-
export { type AnvilActions, type AnvilClient, type AnvilClientConfig,
|
|
79
|
+
export { type AnvilActions, type AnvilClient, type AnvilClientConfig, calcLiquidatableLTs, createAnvilClient, evmMineDetailed, isAnvil, setLTs };
|
package/dist/cjs/sdk/index.cjs
CHANGED
|
@@ -2068,6 +2068,147 @@ var iMarketCompressorAbi = [
|
|
|
2068
2068
|
}
|
|
2069
2069
|
];
|
|
2070
2070
|
|
|
2071
|
+
// src/sdk/abi/errors.ts
|
|
2072
|
+
var iRouterV3ErrorsAbi = [
|
|
2073
|
+
{
|
|
2074
|
+
type: "error",
|
|
2075
|
+
inputs: [
|
|
2076
|
+
{ name: "tokenIn", internalType: "address", type: "address" },
|
|
2077
|
+
{ name: "tokenOut", internalType: "address", type: "address" }
|
|
2078
|
+
],
|
|
2079
|
+
name: "PathNotFoundException"
|
|
2080
|
+
},
|
|
2081
|
+
{
|
|
2082
|
+
type: "error",
|
|
2083
|
+
inputs: [
|
|
2084
|
+
{ name: "ttIn", internalType: "uint8", type: "uint8" },
|
|
2085
|
+
{ name: "tokenOut", internalType: "address", type: "address" }
|
|
2086
|
+
],
|
|
2087
|
+
name: "PathNotFoundExceptionTyped"
|
|
2088
|
+
},
|
|
2089
|
+
{
|
|
2090
|
+
type: "error",
|
|
2091
|
+
inputs: [{ name: "tokenOut", internalType: "address", type: "address" }],
|
|
2092
|
+
name: "PathToTargetNotFound"
|
|
2093
|
+
},
|
|
2094
|
+
{ type: "error", inputs: [], name: "UnsupportedAdapterType" },
|
|
2095
|
+
{
|
|
2096
|
+
type: "error",
|
|
2097
|
+
inputs: [{ name: "", internalType: "address", type: "address" }],
|
|
2098
|
+
name: "UnsupportedRouterComponent"
|
|
2099
|
+
}
|
|
2100
|
+
];
|
|
2101
|
+
var iExceptionsAbi = [
|
|
2102
|
+
{ type: "error", inputs: [], name: "ActiveCreditAccountNotSetException" },
|
|
2103
|
+
{ type: "error", inputs: [], name: "ActiveCreditAccountOverridenException" },
|
|
2104
|
+
{ type: "error", inputs: [], name: "AdapterIsNotRegisteredException" },
|
|
2105
|
+
{
|
|
2106
|
+
type: "error",
|
|
2107
|
+
inputs: [{ name: "", internalType: "address", type: "address" }],
|
|
2108
|
+
name: "AddressIsNotContractException"
|
|
2109
|
+
},
|
|
2110
|
+
{ type: "error", inputs: [], name: "AddressNotFoundException" },
|
|
2111
|
+
{ type: "error", inputs: [], name: "AllowanceFailedException" },
|
|
2112
|
+
{ type: "error", inputs: [], name: "AmountCantBeZeroException" },
|
|
2113
|
+
{ type: "error", inputs: [], name: "BalanceLessThanExpectedException" },
|
|
2114
|
+
{ type: "error", inputs: [], name: "BorrowAmountOutOfLimitsException" },
|
|
2115
|
+
{ type: "error", inputs: [], name: "BorrowedBlockLimitException" },
|
|
2116
|
+
{ type: "error", inputs: [], name: "BorrowingMoreThanU2ForbiddenException" },
|
|
2117
|
+
{ type: "error", inputs: [], name: "CallerNotAccountFactoryException" },
|
|
2118
|
+
{ type: "error", inputs: [], name: "CallerNotAdapterException" },
|
|
2119
|
+
{ type: "error", inputs: [], name: "CallerNotConfiguratorException" },
|
|
2120
|
+
{ type: "error", inputs: [], name: "CallerNotControllerException" },
|
|
2121
|
+
{ type: "error", inputs: [], name: "CallerNotCreditAccountOwnerException" },
|
|
2122
|
+
{ type: "error", inputs: [], name: "CallerNotCreditFacadeException" },
|
|
2123
|
+
{ type: "error", inputs: [], name: "CallerNotCreditManagerException" },
|
|
2124
|
+
{ type: "error", inputs: [], name: "CallerNotExecutorException" },
|
|
2125
|
+
{ type: "error", inputs: [], name: "CallerNotGaugeException" },
|
|
2126
|
+
{ type: "error", inputs: [], name: "CallerNotMigratorException" },
|
|
2127
|
+
{ type: "error", inputs: [], name: "CallerNotPausableAdminException" },
|
|
2128
|
+
{ type: "error", inputs: [], name: "CallerNotPoolQuotaKeeperException" },
|
|
2129
|
+
{ type: "error", inputs: [], name: "CallerNotUnpausableAdminException" },
|
|
2130
|
+
{ type: "error", inputs: [], name: "CallerNotVetoAdminException" },
|
|
2131
|
+
{ type: "error", inputs: [], name: "CallerNotVoterException" },
|
|
2132
|
+
{ type: "error", inputs: [], name: "CloseAccountWithEnabledTokensException" },
|
|
2133
|
+
{ type: "error", inputs: [], name: "CloseAccountWithNonZeroDebtException" },
|
|
2134
|
+
{ type: "error", inputs: [], name: "CreditAccountDoesNotExistException" },
|
|
2135
|
+
{ type: "error", inputs: [], name: "CreditAccountIsInUseException" },
|
|
2136
|
+
{ type: "error", inputs: [], name: "CreditAccountNotLiquidatableException" },
|
|
2137
|
+
{ type: "error", inputs: [], name: "CreditManagerCantBorrowException" },
|
|
2138
|
+
{ type: "error", inputs: [], name: "CustomHealthFactorTooLowException" },
|
|
2139
|
+
{ type: "error", inputs: [], name: "DebtToZeroWithActiveQuotasException" },
|
|
2140
|
+
{ type: "error", inputs: [], name: "DebtUpdatedTwiceInOneBlockException" },
|
|
2141
|
+
{ type: "error", inputs: [], name: "ExpectedBalancesAlreadySetException" },
|
|
2142
|
+
{ type: "error", inputs: [], name: "ExpectedBalancesNotSetException" },
|
|
2143
|
+
{ type: "error", inputs: [], name: "ForbiddenInWhitelistedModeException" },
|
|
2144
|
+
{
|
|
2145
|
+
type: "error",
|
|
2146
|
+
inputs: [],
|
|
2147
|
+
name: "ForbiddenTokenBalanceIncreasedException"
|
|
2148
|
+
},
|
|
2149
|
+
{ type: "error", inputs: [], name: "ForbiddenTokenEnabledException" },
|
|
2150
|
+
{ type: "error", inputs: [], name: "ForbiddenTokensException" },
|
|
2151
|
+
{ type: "error", inputs: [], name: "IncompatibleContractException" },
|
|
2152
|
+
{ type: "error", inputs: [], name: "IncompatibleCreditManagerException" },
|
|
2153
|
+
{ type: "error", inputs: [], name: "IncompatiblePoolQuotaKeeperException" },
|
|
2154
|
+
{ type: "error", inputs: [], name: "IncompatibleSuccessorException" },
|
|
2155
|
+
{ type: "error", inputs: [], name: "IncorrectExpirationDateException" },
|
|
2156
|
+
{ type: "error", inputs: [], name: "IncorrectLimitsException" },
|
|
2157
|
+
{ type: "error", inputs: [], name: "IncorrectLiquidationThresholdException" },
|
|
2158
|
+
{ type: "error", inputs: [], name: "IncorrectParameterException" },
|
|
2159
|
+
{ type: "error", inputs: [], name: "IncorrectPriceException" },
|
|
2160
|
+
{ type: "error", inputs: [], name: "IncorrectPriceFeedException" },
|
|
2161
|
+
{ type: "error", inputs: [], name: "IncorrectTokenContractException" },
|
|
2162
|
+
{ type: "error", inputs: [], name: "InsufficientBalanceException" },
|
|
2163
|
+
{ type: "error", inputs: [], name: "InsufficientRemainingFundsException" },
|
|
2164
|
+
{ type: "error", inputs: [], name: "InsufficientVotesException" },
|
|
2165
|
+
{ type: "error", inputs: [], name: "InvalidBotException" },
|
|
2166
|
+
{ type: "error", inputs: [], name: "InvalidCollateralHintException" },
|
|
2167
|
+
{
|
|
2168
|
+
type: "error",
|
|
2169
|
+
inputs: [],
|
|
2170
|
+
name: "MasterCreditAccountAlreadyDeployedException"
|
|
2171
|
+
},
|
|
2172
|
+
{
|
|
2173
|
+
type: "error",
|
|
2174
|
+
inputs: [{ name: "permission", internalType: "uint256", type: "uint256" }],
|
|
2175
|
+
name: "NoPermissionException"
|
|
2176
|
+
},
|
|
2177
|
+
{ type: "error", inputs: [], name: "NotAllowedAfterExpirationException" },
|
|
2178
|
+
{ type: "error", inputs: [], name: "NotAllowedWhenNotExpirableException" },
|
|
2179
|
+
{ type: "error", inputs: [], name: "NotApprovedBotException" },
|
|
2180
|
+
{ type: "error", inputs: [], name: "NotEnoughCollateralException" },
|
|
2181
|
+
{ type: "error", inputs: [], name: "NotImplementedException" },
|
|
2182
|
+
{ type: "error", inputs: [], name: "ParameterChangedAfterQueuedTxException" },
|
|
2183
|
+
{ type: "error", inputs: [], name: "ParameterChecksFailedException" },
|
|
2184
|
+
{ type: "error", inputs: [], name: "PriceFeedDoesNotExistException" },
|
|
2185
|
+
{ type: "error", inputs: [], name: "QuotaIsOutOfBoundsException" },
|
|
2186
|
+
{ type: "error", inputs: [], name: "ReceiveIsNotAllowedException" },
|
|
2187
|
+
{ type: "error", inputs: [], name: "RegisteredCreditManagerOnlyException" },
|
|
2188
|
+
{ type: "error", inputs: [], name: "RegisteredPoolOnlyException" },
|
|
2189
|
+
{
|
|
2190
|
+
type: "error",
|
|
2191
|
+
inputs: [],
|
|
2192
|
+
name: "RemainingTokenBalanceIncreasedException"
|
|
2193
|
+
},
|
|
2194
|
+
{ type: "error", inputs: [], name: "StalePriceException" },
|
|
2195
|
+
{ type: "error", inputs: [], name: "TargetContractNotAllowedException" },
|
|
2196
|
+
{ type: "error", inputs: [], name: "TokenAlreadyAddedException" },
|
|
2197
|
+
{ type: "error", inputs: [], name: "TokenIsNotQuotedException" },
|
|
2198
|
+
{ type: "error", inputs: [], name: "TokenNotAllowedException" },
|
|
2199
|
+
{ type: "error", inputs: [], name: "TooManyEnabledTokensException" },
|
|
2200
|
+
{ type: "error", inputs: [], name: "TooManyTokensException" },
|
|
2201
|
+
{ type: "error", inputs: [], name: "TxExecutedOutsideTimeWindowException" },
|
|
2202
|
+
{ type: "error", inputs: [], name: "TxExecutionRevertedException" },
|
|
2203
|
+
{ type: "error", inputs: [], name: "TxNotQueuedException" },
|
|
2204
|
+
{ type: "error", inputs: [], name: "UnexpectedPermissionsException" },
|
|
2205
|
+
{ type: "error", inputs: [], name: "UnknownMethodException" },
|
|
2206
|
+
{ type: "error", inputs: [], name: "UpdateQuotaOnZeroDebtAccountException" },
|
|
2207
|
+
{ type: "error", inputs: [], name: "ValueOutOfRangeException" },
|
|
2208
|
+
{ type: "error", inputs: [], name: "VotingContractNotAllowedException" },
|
|
2209
|
+
{ type: "error", inputs: [], name: "ZeroAddressException" }
|
|
2210
|
+
];
|
|
2211
|
+
|
|
2071
2212
|
// src/sdk/abi/generated.ts
|
|
2072
2213
|
var botListV3Abi = [
|
|
2073
2214
|
{
|
|
@@ -12839,7 +12980,8 @@ var BaseContract = class extends SDKConstruct {
|
|
|
12839
12980
|
this.#address = args.addr;
|
|
12840
12981
|
this.contract = viem.getContract({
|
|
12841
12982
|
address: this.address,
|
|
12842
|
-
|
|
12983
|
+
// add exceptions for better error decoding
|
|
12984
|
+
abi: [this.abi, ...iExceptionsAbi, ...iRouterV3ErrorsAbi],
|
|
12843
12985
|
client: {
|
|
12844
12986
|
public: sdk.provider.publicClient
|
|
12845
12987
|
}
|
|
@@ -13232,8 +13374,7 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
13232
13374
|
maxHealthFactor = 65535,
|
|
13233
13375
|
// TODO: this will change to bigint
|
|
13234
13376
|
minHealthFactor = 0,
|
|
13235
|
-
owner = ADDRESS_0X0
|
|
13236
|
-
batchLimit
|
|
13377
|
+
owner = ADDRESS_0X0
|
|
13237
13378
|
} = args ?? {};
|
|
13238
13379
|
const arg0 = creditManager ?? {
|
|
13239
13380
|
curators: [],
|
|
@@ -13252,9 +13393,7 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
13252
13393
|
let offset = 0n;
|
|
13253
13394
|
do {
|
|
13254
13395
|
const [accounts, newOffset] = await this.#getCreditAccounts(
|
|
13255
|
-
[arg0, { ...caFilter, reverting }, offset,
|
|
13256
|
-
Boolean
|
|
13257
|
-
),
|
|
13396
|
+
[arg0, { ...caFilter, reverting }, offset],
|
|
13258
13397
|
priceUpdateTxs,
|
|
13259
13398
|
options
|
|
13260
13399
|
);
|
package/dist/cjs/sdk/index.d.ts
CHANGED
|
@@ -17212,7 +17212,6 @@ interface CreditAccountFilter {
|
|
|
17212
17212
|
includeZeroDebt?: boolean;
|
|
17213
17213
|
minHealthFactor?: number;
|
|
17214
17214
|
maxHealthFactor?: number;
|
|
17215
|
-
batchLimit?: bigint;
|
|
17216
17215
|
}
|
|
17217
17216
|
declare class CreditAccountsService extends SDKConstruct {
|
|
17218
17217
|
#private;
|
package/dist/esm/dev/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address,
|
|
1
|
+
import { Address, Block, Hex, Prettify, Client, Transport, Chain, TestActions, PublicClient, WalletClient, TestRpcSchema } from 'viem';
|
|
2
2
|
import { GearboxSDK, CreditAccountData, ILogger, CreditFactory } from '../sdk';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -76,4 +76,4 @@ declare function evmMineDetailed(client: Client<any, any, any, AnvilRPCSchema, a
|
|
|
76
76
|
*/
|
|
77
77
|
declare function setLTs(sdk: GearboxSDK, cm: CreditFactory, newLTs: Record<Address, number>, logger?: ILogger): Promise<void>;
|
|
78
78
|
|
|
79
|
-
export { type AnvilActions, type AnvilClient, type AnvilClientConfig,
|
|
79
|
+
export { type AnvilActions, type AnvilClient, type AnvilClientConfig, calcLiquidatableLTs, createAnvilClient, evmMineDetailed, isAnvil, setLTs };
|
package/dist/esm/sdk/index.d.mts
CHANGED
|
@@ -17212,7 +17212,6 @@ interface CreditAccountFilter {
|
|
|
17212
17212
|
includeZeroDebt?: boolean;
|
|
17213
17213
|
minHealthFactor?: number;
|
|
17214
17214
|
maxHealthFactor?: number;
|
|
17215
|
-
batchLimit?: bigint;
|
|
17216
17215
|
}
|
|
17217
17216
|
declare class CreditAccountsService extends SDKConstruct {
|
|
17218
17217
|
#private;
|
package/dist/esm/sdk/index.mjs
CHANGED
|
@@ -2066,6 +2066,147 @@ var iMarketCompressorAbi = [
|
|
|
2066
2066
|
}
|
|
2067
2067
|
];
|
|
2068
2068
|
|
|
2069
|
+
// src/sdk/abi/errors.ts
|
|
2070
|
+
var iRouterV3ErrorsAbi = [
|
|
2071
|
+
{
|
|
2072
|
+
type: "error",
|
|
2073
|
+
inputs: [
|
|
2074
|
+
{ name: "tokenIn", internalType: "address", type: "address" },
|
|
2075
|
+
{ name: "tokenOut", internalType: "address", type: "address" }
|
|
2076
|
+
],
|
|
2077
|
+
name: "PathNotFoundException"
|
|
2078
|
+
},
|
|
2079
|
+
{
|
|
2080
|
+
type: "error",
|
|
2081
|
+
inputs: [
|
|
2082
|
+
{ name: "ttIn", internalType: "uint8", type: "uint8" },
|
|
2083
|
+
{ name: "tokenOut", internalType: "address", type: "address" }
|
|
2084
|
+
],
|
|
2085
|
+
name: "PathNotFoundExceptionTyped"
|
|
2086
|
+
},
|
|
2087
|
+
{
|
|
2088
|
+
type: "error",
|
|
2089
|
+
inputs: [{ name: "tokenOut", internalType: "address", type: "address" }],
|
|
2090
|
+
name: "PathToTargetNotFound"
|
|
2091
|
+
},
|
|
2092
|
+
{ type: "error", inputs: [], name: "UnsupportedAdapterType" },
|
|
2093
|
+
{
|
|
2094
|
+
type: "error",
|
|
2095
|
+
inputs: [{ name: "", internalType: "address", type: "address" }],
|
|
2096
|
+
name: "UnsupportedRouterComponent"
|
|
2097
|
+
}
|
|
2098
|
+
];
|
|
2099
|
+
var iExceptionsAbi = [
|
|
2100
|
+
{ type: "error", inputs: [], name: "ActiveCreditAccountNotSetException" },
|
|
2101
|
+
{ type: "error", inputs: [], name: "ActiveCreditAccountOverridenException" },
|
|
2102
|
+
{ type: "error", inputs: [], name: "AdapterIsNotRegisteredException" },
|
|
2103
|
+
{
|
|
2104
|
+
type: "error",
|
|
2105
|
+
inputs: [{ name: "", internalType: "address", type: "address" }],
|
|
2106
|
+
name: "AddressIsNotContractException"
|
|
2107
|
+
},
|
|
2108
|
+
{ type: "error", inputs: [], name: "AddressNotFoundException" },
|
|
2109
|
+
{ type: "error", inputs: [], name: "AllowanceFailedException" },
|
|
2110
|
+
{ type: "error", inputs: [], name: "AmountCantBeZeroException" },
|
|
2111
|
+
{ type: "error", inputs: [], name: "BalanceLessThanExpectedException" },
|
|
2112
|
+
{ type: "error", inputs: [], name: "BorrowAmountOutOfLimitsException" },
|
|
2113
|
+
{ type: "error", inputs: [], name: "BorrowedBlockLimitException" },
|
|
2114
|
+
{ type: "error", inputs: [], name: "BorrowingMoreThanU2ForbiddenException" },
|
|
2115
|
+
{ type: "error", inputs: [], name: "CallerNotAccountFactoryException" },
|
|
2116
|
+
{ type: "error", inputs: [], name: "CallerNotAdapterException" },
|
|
2117
|
+
{ type: "error", inputs: [], name: "CallerNotConfiguratorException" },
|
|
2118
|
+
{ type: "error", inputs: [], name: "CallerNotControllerException" },
|
|
2119
|
+
{ type: "error", inputs: [], name: "CallerNotCreditAccountOwnerException" },
|
|
2120
|
+
{ type: "error", inputs: [], name: "CallerNotCreditFacadeException" },
|
|
2121
|
+
{ type: "error", inputs: [], name: "CallerNotCreditManagerException" },
|
|
2122
|
+
{ type: "error", inputs: [], name: "CallerNotExecutorException" },
|
|
2123
|
+
{ type: "error", inputs: [], name: "CallerNotGaugeException" },
|
|
2124
|
+
{ type: "error", inputs: [], name: "CallerNotMigratorException" },
|
|
2125
|
+
{ type: "error", inputs: [], name: "CallerNotPausableAdminException" },
|
|
2126
|
+
{ type: "error", inputs: [], name: "CallerNotPoolQuotaKeeperException" },
|
|
2127
|
+
{ type: "error", inputs: [], name: "CallerNotUnpausableAdminException" },
|
|
2128
|
+
{ type: "error", inputs: [], name: "CallerNotVetoAdminException" },
|
|
2129
|
+
{ type: "error", inputs: [], name: "CallerNotVoterException" },
|
|
2130
|
+
{ type: "error", inputs: [], name: "CloseAccountWithEnabledTokensException" },
|
|
2131
|
+
{ type: "error", inputs: [], name: "CloseAccountWithNonZeroDebtException" },
|
|
2132
|
+
{ type: "error", inputs: [], name: "CreditAccountDoesNotExistException" },
|
|
2133
|
+
{ type: "error", inputs: [], name: "CreditAccountIsInUseException" },
|
|
2134
|
+
{ type: "error", inputs: [], name: "CreditAccountNotLiquidatableException" },
|
|
2135
|
+
{ type: "error", inputs: [], name: "CreditManagerCantBorrowException" },
|
|
2136
|
+
{ type: "error", inputs: [], name: "CustomHealthFactorTooLowException" },
|
|
2137
|
+
{ type: "error", inputs: [], name: "DebtToZeroWithActiveQuotasException" },
|
|
2138
|
+
{ type: "error", inputs: [], name: "DebtUpdatedTwiceInOneBlockException" },
|
|
2139
|
+
{ type: "error", inputs: [], name: "ExpectedBalancesAlreadySetException" },
|
|
2140
|
+
{ type: "error", inputs: [], name: "ExpectedBalancesNotSetException" },
|
|
2141
|
+
{ type: "error", inputs: [], name: "ForbiddenInWhitelistedModeException" },
|
|
2142
|
+
{
|
|
2143
|
+
type: "error",
|
|
2144
|
+
inputs: [],
|
|
2145
|
+
name: "ForbiddenTokenBalanceIncreasedException"
|
|
2146
|
+
},
|
|
2147
|
+
{ type: "error", inputs: [], name: "ForbiddenTokenEnabledException" },
|
|
2148
|
+
{ type: "error", inputs: [], name: "ForbiddenTokensException" },
|
|
2149
|
+
{ type: "error", inputs: [], name: "IncompatibleContractException" },
|
|
2150
|
+
{ type: "error", inputs: [], name: "IncompatibleCreditManagerException" },
|
|
2151
|
+
{ type: "error", inputs: [], name: "IncompatiblePoolQuotaKeeperException" },
|
|
2152
|
+
{ type: "error", inputs: [], name: "IncompatibleSuccessorException" },
|
|
2153
|
+
{ type: "error", inputs: [], name: "IncorrectExpirationDateException" },
|
|
2154
|
+
{ type: "error", inputs: [], name: "IncorrectLimitsException" },
|
|
2155
|
+
{ type: "error", inputs: [], name: "IncorrectLiquidationThresholdException" },
|
|
2156
|
+
{ type: "error", inputs: [], name: "IncorrectParameterException" },
|
|
2157
|
+
{ type: "error", inputs: [], name: "IncorrectPriceException" },
|
|
2158
|
+
{ type: "error", inputs: [], name: "IncorrectPriceFeedException" },
|
|
2159
|
+
{ type: "error", inputs: [], name: "IncorrectTokenContractException" },
|
|
2160
|
+
{ type: "error", inputs: [], name: "InsufficientBalanceException" },
|
|
2161
|
+
{ type: "error", inputs: [], name: "InsufficientRemainingFundsException" },
|
|
2162
|
+
{ type: "error", inputs: [], name: "InsufficientVotesException" },
|
|
2163
|
+
{ type: "error", inputs: [], name: "InvalidBotException" },
|
|
2164
|
+
{ type: "error", inputs: [], name: "InvalidCollateralHintException" },
|
|
2165
|
+
{
|
|
2166
|
+
type: "error",
|
|
2167
|
+
inputs: [],
|
|
2168
|
+
name: "MasterCreditAccountAlreadyDeployedException"
|
|
2169
|
+
},
|
|
2170
|
+
{
|
|
2171
|
+
type: "error",
|
|
2172
|
+
inputs: [{ name: "permission", internalType: "uint256", type: "uint256" }],
|
|
2173
|
+
name: "NoPermissionException"
|
|
2174
|
+
},
|
|
2175
|
+
{ type: "error", inputs: [], name: "NotAllowedAfterExpirationException" },
|
|
2176
|
+
{ type: "error", inputs: [], name: "NotAllowedWhenNotExpirableException" },
|
|
2177
|
+
{ type: "error", inputs: [], name: "NotApprovedBotException" },
|
|
2178
|
+
{ type: "error", inputs: [], name: "NotEnoughCollateralException" },
|
|
2179
|
+
{ type: "error", inputs: [], name: "NotImplementedException" },
|
|
2180
|
+
{ type: "error", inputs: [], name: "ParameterChangedAfterQueuedTxException" },
|
|
2181
|
+
{ type: "error", inputs: [], name: "ParameterChecksFailedException" },
|
|
2182
|
+
{ type: "error", inputs: [], name: "PriceFeedDoesNotExistException" },
|
|
2183
|
+
{ type: "error", inputs: [], name: "QuotaIsOutOfBoundsException" },
|
|
2184
|
+
{ type: "error", inputs: [], name: "ReceiveIsNotAllowedException" },
|
|
2185
|
+
{ type: "error", inputs: [], name: "RegisteredCreditManagerOnlyException" },
|
|
2186
|
+
{ type: "error", inputs: [], name: "RegisteredPoolOnlyException" },
|
|
2187
|
+
{
|
|
2188
|
+
type: "error",
|
|
2189
|
+
inputs: [],
|
|
2190
|
+
name: "RemainingTokenBalanceIncreasedException"
|
|
2191
|
+
},
|
|
2192
|
+
{ type: "error", inputs: [], name: "StalePriceException" },
|
|
2193
|
+
{ type: "error", inputs: [], name: "TargetContractNotAllowedException" },
|
|
2194
|
+
{ type: "error", inputs: [], name: "TokenAlreadyAddedException" },
|
|
2195
|
+
{ type: "error", inputs: [], name: "TokenIsNotQuotedException" },
|
|
2196
|
+
{ type: "error", inputs: [], name: "TokenNotAllowedException" },
|
|
2197
|
+
{ type: "error", inputs: [], name: "TooManyEnabledTokensException" },
|
|
2198
|
+
{ type: "error", inputs: [], name: "TooManyTokensException" },
|
|
2199
|
+
{ type: "error", inputs: [], name: "TxExecutedOutsideTimeWindowException" },
|
|
2200
|
+
{ type: "error", inputs: [], name: "TxExecutionRevertedException" },
|
|
2201
|
+
{ type: "error", inputs: [], name: "TxNotQueuedException" },
|
|
2202
|
+
{ type: "error", inputs: [], name: "UnexpectedPermissionsException" },
|
|
2203
|
+
{ type: "error", inputs: [], name: "UnknownMethodException" },
|
|
2204
|
+
{ type: "error", inputs: [], name: "UpdateQuotaOnZeroDebtAccountException" },
|
|
2205
|
+
{ type: "error", inputs: [], name: "ValueOutOfRangeException" },
|
|
2206
|
+
{ type: "error", inputs: [], name: "VotingContractNotAllowedException" },
|
|
2207
|
+
{ type: "error", inputs: [], name: "ZeroAddressException" }
|
|
2208
|
+
];
|
|
2209
|
+
|
|
2069
2210
|
// src/sdk/abi/generated.ts
|
|
2070
2211
|
var botListV3Abi = [
|
|
2071
2212
|
{
|
|
@@ -12837,7 +12978,8 @@ var BaseContract = class extends SDKConstruct {
|
|
|
12837
12978
|
this.#address = args.addr;
|
|
12838
12979
|
this.contract = getContract({
|
|
12839
12980
|
address: this.address,
|
|
12840
|
-
|
|
12981
|
+
// add exceptions for better error decoding
|
|
12982
|
+
abi: [this.abi, ...iExceptionsAbi, ...iRouterV3ErrorsAbi],
|
|
12841
12983
|
client: {
|
|
12842
12984
|
public: sdk.provider.publicClient
|
|
12843
12985
|
}
|
|
@@ -13230,8 +13372,7 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
13230
13372
|
maxHealthFactor = 65535,
|
|
13231
13373
|
// TODO: this will change to bigint
|
|
13232
13374
|
minHealthFactor = 0,
|
|
13233
|
-
owner = ADDRESS_0X0
|
|
13234
|
-
batchLimit
|
|
13375
|
+
owner = ADDRESS_0X0
|
|
13235
13376
|
} = args ?? {};
|
|
13236
13377
|
const arg0 = creditManager ?? {
|
|
13237
13378
|
curators: [],
|
|
@@ -13250,9 +13391,7 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
13250
13391
|
let offset = 0n;
|
|
13251
13392
|
do {
|
|
13252
13393
|
const [accounts, newOffset] = await this.#getCreditAccounts(
|
|
13253
|
-
[arg0, { ...caFilter, reverting }, offset,
|
|
13254
|
-
Boolean
|
|
13255
|
-
),
|
|
13394
|
+
[arg0, { ...caFilter, reverting }, offset],
|
|
13256
13395
|
priceUpdateTxs,
|
|
13257
13396
|
options
|
|
13258
13397
|
);
|