@gearbox-protocol/sdk 8.27.1 → 8.27.2
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.
|
@@ -518,7 +518,7 @@ class AbstractCreditAccountService extends import_base.SDKConstruct {
|
|
|
518
518
|
const multiAcceptContract = (0, import_viem.getContract)({
|
|
519
519
|
address: mellowClaimerAdapter.address,
|
|
520
520
|
abi: iMellowClaimerAdapterAbi,
|
|
521
|
-
client: this.
|
|
521
|
+
client: this.client
|
|
522
522
|
});
|
|
523
523
|
const indices = await multiAcceptContract.read.getMultiVaultSubvaultIndices(
|
|
524
524
|
[sourceToken]
|
|
@@ -590,7 +590,7 @@ class AbstractCreditAccountService extends import_base.SDKConstruct {
|
|
|
590
590
|
const multiAcceptContract = (0, import_viem.getContract)({
|
|
591
591
|
address: mellowClaimerAdapter.address,
|
|
592
592
|
abi: iMellowClaimerAdapterAbi,
|
|
593
|
-
client: this.
|
|
593
|
+
client: this.client
|
|
594
594
|
});
|
|
595
595
|
const indices = await multiAcceptContract.read.getUserSubvaultIndices([
|
|
596
596
|
sourceToken,
|
|
@@ -1052,6 +1052,9 @@ class AbstractCreditAccountService extends import_base.SDKConstruct {
|
|
|
1052
1052
|
import_constants.VERSION_RANGE_310
|
|
1053
1053
|
)[0];
|
|
1054
1054
|
}
|
|
1055
|
+
get client() {
|
|
1056
|
+
return this.sdk.provider.publicClient;
|
|
1057
|
+
}
|
|
1055
1058
|
}
|
|
1056
1059
|
const iMellowClaimerAdapterAbi = [
|
|
1057
1060
|
{
|
|
@@ -515,7 +515,7 @@ class AbstractCreditAccountService extends SDKConstruct {
|
|
|
515
515
|
const multiAcceptContract = getContract({
|
|
516
516
|
address: mellowClaimerAdapter.address,
|
|
517
517
|
abi: iMellowClaimerAdapterAbi,
|
|
518
|
-
client: this.
|
|
518
|
+
client: this.client
|
|
519
519
|
});
|
|
520
520
|
const indices = await multiAcceptContract.read.getMultiVaultSubvaultIndices(
|
|
521
521
|
[sourceToken]
|
|
@@ -587,7 +587,7 @@ class AbstractCreditAccountService extends SDKConstruct {
|
|
|
587
587
|
const multiAcceptContract = getContract({
|
|
588
588
|
address: mellowClaimerAdapter.address,
|
|
589
589
|
abi: iMellowClaimerAdapterAbi,
|
|
590
|
-
client: this.
|
|
590
|
+
client: this.client
|
|
591
591
|
});
|
|
592
592
|
const indices = await multiAcceptContract.read.getUserSubvaultIndices([
|
|
593
593
|
sourceToken,
|
|
@@ -1049,6 +1049,9 @@ class AbstractCreditAccountService extends SDKConstruct {
|
|
|
1049
1049
|
VERSION_RANGE_310
|
|
1050
1050
|
)[0];
|
|
1051
1051
|
}
|
|
1052
|
+
get client() {
|
|
1053
|
+
return this.sdk.provider.publicClient;
|
|
1054
|
+
}
|
|
1052
1055
|
}
|
|
1053
1056
|
const iMellowClaimerAdapterAbi = [
|
|
1054
1057
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Address } from "viem";
|
|
1
|
+
import type { Address, PublicClient } from "viem";
|
|
2
2
|
import type { CreditAccountData } from "../base/index.js";
|
|
3
3
|
import { SDKConstruct } from "../base/index.js";
|
|
4
4
|
import type { GearboxSDK } from "../GearboxSDK.js";
|
|
@@ -213,4 +213,5 @@ export declare abstract class AbstractCreditAccountService extends SDKConstruct
|
|
|
213
213
|
private get marketConfigurators();
|
|
214
214
|
private get rewardCompressor();
|
|
215
215
|
private get peripheryCompressor();
|
|
216
|
+
get client(): PublicClient;
|
|
216
217
|
}
|