@gearbox-protocol/sdk 3.0.0-vfour.267 → 3.0.0-vfour.268
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 +126 -126
- package/dist/cjs/sdk/index.d.ts +174 -174
- package/dist/esm/sdk/index.d.mts +174 -174
- package/dist/esm/sdk/index.mjs +126 -126
- package/package.json +1 -1
package/dist/cjs/sdk/index.cjs
CHANGED
|
@@ -52173,6 +52173,129 @@ var iCreditConfiguratorV310Abi = [
|
|
|
52173
52173
|
name: "UpdateFees"
|
|
52174
52174
|
}
|
|
52175
52175
|
];
|
|
52176
|
+
var iCreditFacadeMulticallV310Abi = [
|
|
52177
|
+
{
|
|
52178
|
+
type: "function",
|
|
52179
|
+
inputs: [
|
|
52180
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
52181
|
+
{ name: "amount", internalType: "uint256", type: "uint256" }
|
|
52182
|
+
],
|
|
52183
|
+
name: "addCollateral",
|
|
52184
|
+
outputs: [],
|
|
52185
|
+
stateMutability: "nonpayable"
|
|
52186
|
+
},
|
|
52187
|
+
{
|
|
52188
|
+
type: "function",
|
|
52189
|
+
inputs: [
|
|
52190
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
52191
|
+
{ name: "amount", internalType: "uint256", type: "uint256" },
|
|
52192
|
+
{ name: "deadline", internalType: "uint256", type: "uint256" },
|
|
52193
|
+
{ name: "v", internalType: "uint8", type: "uint8" },
|
|
52194
|
+
{ name: "r", internalType: "bytes32", type: "bytes32" },
|
|
52195
|
+
{ name: "s", internalType: "bytes32", type: "bytes32" }
|
|
52196
|
+
],
|
|
52197
|
+
name: "addCollateralWithPermit",
|
|
52198
|
+
outputs: [],
|
|
52199
|
+
stateMutability: "nonpayable"
|
|
52200
|
+
},
|
|
52201
|
+
{
|
|
52202
|
+
type: "function",
|
|
52203
|
+
inputs: [],
|
|
52204
|
+
name: "compareBalances",
|
|
52205
|
+
outputs: [],
|
|
52206
|
+
stateMutability: "nonpayable"
|
|
52207
|
+
},
|
|
52208
|
+
{
|
|
52209
|
+
type: "function",
|
|
52210
|
+
inputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
|
|
52211
|
+
name: "decreaseDebt",
|
|
52212
|
+
outputs: [],
|
|
52213
|
+
stateMutability: "nonpayable"
|
|
52214
|
+
},
|
|
52215
|
+
{
|
|
52216
|
+
type: "function",
|
|
52217
|
+
inputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
|
|
52218
|
+
name: "increaseDebt",
|
|
52219
|
+
outputs: [],
|
|
52220
|
+
stateMutability: "nonpayable"
|
|
52221
|
+
},
|
|
52222
|
+
{
|
|
52223
|
+
type: "function",
|
|
52224
|
+
inputs: [
|
|
52225
|
+
{
|
|
52226
|
+
name: "updates",
|
|
52227
|
+
internalType: "struct PriceUpdate[]",
|
|
52228
|
+
type: "tuple[]",
|
|
52229
|
+
components: [
|
|
52230
|
+
{ name: "priceFeed", internalType: "address", type: "address" },
|
|
52231
|
+
{ name: "data", internalType: "bytes", type: "bytes" }
|
|
52232
|
+
]
|
|
52233
|
+
}
|
|
52234
|
+
],
|
|
52235
|
+
name: "onDemandPriceUpdates",
|
|
52236
|
+
outputs: [],
|
|
52237
|
+
stateMutability: "nonpayable"
|
|
52238
|
+
},
|
|
52239
|
+
{
|
|
52240
|
+
type: "function",
|
|
52241
|
+
inputs: [
|
|
52242
|
+
{ name: "bot", internalType: "address", type: "address" },
|
|
52243
|
+
{ name: "permissions", internalType: "uint192", type: "uint192" }
|
|
52244
|
+
],
|
|
52245
|
+
name: "setBotPermissions",
|
|
52246
|
+
outputs: [],
|
|
52247
|
+
stateMutability: "nonpayable"
|
|
52248
|
+
},
|
|
52249
|
+
{
|
|
52250
|
+
type: "function",
|
|
52251
|
+
inputs: [
|
|
52252
|
+
{ name: "collateralHints", internalType: "uint256[]", type: "uint256[]" },
|
|
52253
|
+
{ name: "minHealthFactor", internalType: "uint16", type: "uint16" }
|
|
52254
|
+
],
|
|
52255
|
+
name: "setFullCheckParams",
|
|
52256
|
+
outputs: [],
|
|
52257
|
+
stateMutability: "nonpayable"
|
|
52258
|
+
},
|
|
52259
|
+
{
|
|
52260
|
+
type: "function",
|
|
52261
|
+
inputs: [
|
|
52262
|
+
{
|
|
52263
|
+
name: "balanceDeltas",
|
|
52264
|
+
internalType: "struct BalanceDelta[]",
|
|
52265
|
+
type: "tuple[]",
|
|
52266
|
+
components: [
|
|
52267
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
52268
|
+
{ name: "amount", internalType: "int256", type: "int256" }
|
|
52269
|
+
]
|
|
52270
|
+
}
|
|
52271
|
+
],
|
|
52272
|
+
name: "storeExpectedBalances",
|
|
52273
|
+
outputs: [],
|
|
52274
|
+
stateMutability: "nonpayable"
|
|
52275
|
+
},
|
|
52276
|
+
{
|
|
52277
|
+
type: "function",
|
|
52278
|
+
inputs: [
|
|
52279
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
52280
|
+
{ name: "quotaChange", internalType: "int96", type: "int96" },
|
|
52281
|
+
{ name: "minQuota", internalType: "uint96", type: "uint96" }
|
|
52282
|
+
],
|
|
52283
|
+
name: "updateQuota",
|
|
52284
|
+
outputs: [],
|
|
52285
|
+
stateMutability: "nonpayable"
|
|
52286
|
+
},
|
|
52287
|
+
{
|
|
52288
|
+
type: "function",
|
|
52289
|
+
inputs: [
|
|
52290
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
52291
|
+
{ name: "amount", internalType: "uint256", type: "uint256" },
|
|
52292
|
+
{ name: "to", internalType: "address", type: "address" }
|
|
52293
|
+
],
|
|
52294
|
+
name: "withdrawCollateral",
|
|
52295
|
+
outputs: [],
|
|
52296
|
+
stateMutability: "nonpayable"
|
|
52297
|
+
}
|
|
52298
|
+
];
|
|
52176
52299
|
var iCreditFacadeV310Abi = [
|
|
52177
52300
|
{
|
|
52178
52301
|
type: "function",
|
|
@@ -52725,129 +52848,6 @@ var iCreditFacadeV310Abi = [
|
|
|
52725
52848
|
name: "WithdrawPhantomToken"
|
|
52726
52849
|
}
|
|
52727
52850
|
];
|
|
52728
|
-
var iCreditFacadeV310MulticallAbi = [
|
|
52729
|
-
{
|
|
52730
|
-
type: "function",
|
|
52731
|
-
inputs: [
|
|
52732
|
-
{ name: "token", internalType: "address", type: "address" },
|
|
52733
|
-
{ name: "amount", internalType: "uint256", type: "uint256" }
|
|
52734
|
-
],
|
|
52735
|
-
name: "addCollateral",
|
|
52736
|
-
outputs: [],
|
|
52737
|
-
stateMutability: "nonpayable"
|
|
52738
|
-
},
|
|
52739
|
-
{
|
|
52740
|
-
type: "function",
|
|
52741
|
-
inputs: [
|
|
52742
|
-
{ name: "token", internalType: "address", type: "address" },
|
|
52743
|
-
{ name: "amount", internalType: "uint256", type: "uint256" },
|
|
52744
|
-
{ name: "deadline", internalType: "uint256", type: "uint256" },
|
|
52745
|
-
{ name: "v", internalType: "uint8", type: "uint8" },
|
|
52746
|
-
{ name: "r", internalType: "bytes32", type: "bytes32" },
|
|
52747
|
-
{ name: "s", internalType: "bytes32", type: "bytes32" }
|
|
52748
|
-
],
|
|
52749
|
-
name: "addCollateralWithPermit",
|
|
52750
|
-
outputs: [],
|
|
52751
|
-
stateMutability: "nonpayable"
|
|
52752
|
-
},
|
|
52753
|
-
{
|
|
52754
|
-
type: "function",
|
|
52755
|
-
inputs: [],
|
|
52756
|
-
name: "compareBalances",
|
|
52757
|
-
outputs: [],
|
|
52758
|
-
stateMutability: "nonpayable"
|
|
52759
|
-
},
|
|
52760
|
-
{
|
|
52761
|
-
type: "function",
|
|
52762
|
-
inputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
|
|
52763
|
-
name: "decreaseDebt",
|
|
52764
|
-
outputs: [],
|
|
52765
|
-
stateMutability: "nonpayable"
|
|
52766
|
-
},
|
|
52767
|
-
{
|
|
52768
|
-
type: "function",
|
|
52769
|
-
inputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
|
|
52770
|
-
name: "increaseDebt",
|
|
52771
|
-
outputs: [],
|
|
52772
|
-
stateMutability: "nonpayable"
|
|
52773
|
-
},
|
|
52774
|
-
{
|
|
52775
|
-
type: "function",
|
|
52776
|
-
inputs: [
|
|
52777
|
-
{
|
|
52778
|
-
name: "updates",
|
|
52779
|
-
internalType: "struct PriceUpdate[]",
|
|
52780
|
-
type: "tuple[]",
|
|
52781
|
-
components: [
|
|
52782
|
-
{ name: "priceFeed", internalType: "address", type: "address" },
|
|
52783
|
-
{ name: "data", internalType: "bytes", type: "bytes" }
|
|
52784
|
-
]
|
|
52785
|
-
}
|
|
52786
|
-
],
|
|
52787
|
-
name: "onDemandPriceUpdates",
|
|
52788
|
-
outputs: [],
|
|
52789
|
-
stateMutability: "nonpayable"
|
|
52790
|
-
},
|
|
52791
|
-
{
|
|
52792
|
-
type: "function",
|
|
52793
|
-
inputs: [
|
|
52794
|
-
{ name: "bot", internalType: "address", type: "address" },
|
|
52795
|
-
{ name: "permissions", internalType: "uint192", type: "uint192" }
|
|
52796
|
-
],
|
|
52797
|
-
name: "setBotPermissions",
|
|
52798
|
-
outputs: [],
|
|
52799
|
-
stateMutability: "nonpayable"
|
|
52800
|
-
},
|
|
52801
|
-
{
|
|
52802
|
-
type: "function",
|
|
52803
|
-
inputs: [
|
|
52804
|
-
{ name: "collateralHints", internalType: "uint256[]", type: "uint256[]" },
|
|
52805
|
-
{ name: "minHealthFactor", internalType: "uint16", type: "uint16" }
|
|
52806
|
-
],
|
|
52807
|
-
name: "setFullCheckParams",
|
|
52808
|
-
outputs: [],
|
|
52809
|
-
stateMutability: "nonpayable"
|
|
52810
|
-
},
|
|
52811
|
-
{
|
|
52812
|
-
type: "function",
|
|
52813
|
-
inputs: [
|
|
52814
|
-
{
|
|
52815
|
-
name: "balanceDeltas",
|
|
52816
|
-
internalType: "struct BalanceDelta[]",
|
|
52817
|
-
type: "tuple[]",
|
|
52818
|
-
components: [
|
|
52819
|
-
{ name: "token", internalType: "address", type: "address" },
|
|
52820
|
-
{ name: "amount", internalType: "int256", type: "int256" }
|
|
52821
|
-
]
|
|
52822
|
-
}
|
|
52823
|
-
],
|
|
52824
|
-
name: "storeExpectedBalances",
|
|
52825
|
-
outputs: [],
|
|
52826
|
-
stateMutability: "nonpayable"
|
|
52827
|
-
},
|
|
52828
|
-
{
|
|
52829
|
-
type: "function",
|
|
52830
|
-
inputs: [
|
|
52831
|
-
{ name: "token", internalType: "address", type: "address" },
|
|
52832
|
-
{ name: "quotaChange", internalType: "int96", type: "int96" },
|
|
52833
|
-
{ name: "minQuota", internalType: "uint96", type: "uint96" }
|
|
52834
|
-
],
|
|
52835
|
-
name: "updateQuota",
|
|
52836
|
-
outputs: [],
|
|
52837
|
-
stateMutability: "nonpayable"
|
|
52838
|
-
},
|
|
52839
|
-
{
|
|
52840
|
-
type: "function",
|
|
52841
|
-
inputs: [
|
|
52842
|
-
{ name: "token", internalType: "address", type: "address" },
|
|
52843
|
-
{ name: "amount", internalType: "uint256", type: "uint256" },
|
|
52844
|
-
{ name: "to", internalType: "address", type: "address" }
|
|
52845
|
-
],
|
|
52846
|
-
name: "withdrawCollateral",
|
|
52847
|
-
outputs: [],
|
|
52848
|
-
stateMutability: "nonpayable"
|
|
52849
|
-
}
|
|
52850
|
-
];
|
|
52851
52851
|
var iCreditManagerV310Abi = [
|
|
52852
52852
|
{
|
|
52853
52853
|
type: "function",
|
|
@@ -58032,7 +58032,7 @@ var CreditFacadeV300Contract = class extends BaseContract {
|
|
|
58032
58032
|
};
|
|
58033
58033
|
var abi25 = [
|
|
58034
58034
|
...iCreditFacadeV310Abi,
|
|
58035
|
-
...
|
|
58035
|
+
...iCreditFacadeMulticallV310Abi,
|
|
58036
58036
|
...iPausableAbi
|
|
58037
58037
|
];
|
|
58038
58038
|
var CreditFacadeV310Contract = class extends BaseContract {
|
|
@@ -58094,7 +58094,7 @@ var CreditFacadeV310Contract = class extends BaseContract {
|
|
|
58094
58094
|
{
|
|
58095
58095
|
target: this.address,
|
|
58096
58096
|
callData: viem.encodeFunctionData({
|
|
58097
|
-
abi:
|
|
58097
|
+
abi: iCreditFacadeMulticallV310Abi,
|
|
58098
58098
|
functionName: "onDemandPriceUpdates",
|
|
58099
58099
|
args: [
|
|
58100
58100
|
updates.map((u) => ({
|
|
@@ -73219,6 +73219,7 @@ exports.iConvexTokenAbi = iConvexTokenAbi;
|
|
|
73219
73219
|
exports.iCreditAccountCompressorAbi = iCreditAccountCompressorAbi;
|
|
73220
73220
|
exports.iCreditConfiguratorV300Abi = iCreditConfiguratorV300Abi;
|
|
73221
73221
|
exports.iCreditConfiguratorV310Abi = iCreditConfiguratorV310Abi;
|
|
73222
|
+
exports.iCreditFacadeMulticallV310Abi = iCreditFacadeMulticallV310Abi;
|
|
73222
73223
|
exports.iCreditFacadeV2Abi = iCreditFacadeV2Abi;
|
|
73223
73224
|
exports.iCreditFacadeV2EventsAbi = iCreditFacadeV2EventsAbi;
|
|
73224
73225
|
exports.iCreditFacadeV2ExceptionsAbi = iCreditFacadeV2ExceptionsAbi;
|
|
@@ -73227,7 +73228,6 @@ exports.iCreditFacadeV2V2Abi = iCreditFacadeV2V2Abi;
|
|
|
73227
73228
|
exports.iCreditFacadeV300Abi = iCreditFacadeV300Abi;
|
|
73228
73229
|
exports.iCreditFacadeV300MulticallAbi = iCreditFacadeV300MulticallAbi;
|
|
73229
73230
|
exports.iCreditFacadeV310Abi = iCreditFacadeV310Abi;
|
|
73230
|
-
exports.iCreditFacadeV310MulticallAbi = iCreditFacadeV310MulticallAbi;
|
|
73231
73231
|
exports.iCreditFacadeV3Abi = iCreditFacadeV3Abi;
|
|
73232
73232
|
exports.iCreditFacadeV3EventsAbi = iCreditFacadeV3EventsAbi;
|
|
73233
73233
|
exports.iCreditFacadeV3MulticallAbi = iCreditFacadeV3MulticallAbi;
|