@gearbox-protocol/sdk 11.8.4 → 11.8.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.
@@ -77,6 +77,18 @@ class AccountOpener extends import_sdk.SDKConstruct {
77
77
  this.#poolDepositMultiplier = BigInt(poolDepositMultiplier);
78
78
  this.#minDebtMultiplier = BigInt(minDebtMultiplier);
79
79
  this.#leverageDelta = BigInt(leverageDelta);
80
+ this.#logger?.info(
81
+ {
82
+ borrower: (0, import_accounts.privateKeyToAccount)(this.borrowerKey).address,
83
+ depositor: (0, import_accounts.privateKeyToAccount)(this.depositorKey).address,
84
+ faucet: this.faucet,
85
+ poolDepositMultiplier: this.#poolDepositMultiplier.toString(),
86
+ minDebtMultiplier: this.#minDebtMultiplier.toString(),
87
+ leverageDelta: this.#leverageDelta.toString(),
88
+ allowMint: this.#allowMint
89
+ },
90
+ "account opener options"
91
+ );
80
92
  }
81
93
  get borrower() {
82
94
  if (!this.#borrower) {
@@ -94,6 +106,14 @@ class AccountOpener extends import_sdk.SDKConstruct {
94
106
  * Tries to open account with underlying only in each CM
95
107
  */
96
108
  async openCreditAccounts(targets, depositIntoPools = true, claimFromFaucet2 = true) {
109
+ this.#logger?.info(
110
+ {
111
+ targets,
112
+ depositIntoPools,
113
+ claimFromFaucet: claimFromFaucet2
114
+ },
115
+ "opening credit accounts"
116
+ );
97
117
  let deposits = [];
98
118
  if (depositIntoPools) {
99
119
  try {
@@ -69,6 +69,18 @@ class AccountOpener extends SDKConstruct {
69
69
  this.#poolDepositMultiplier = BigInt(poolDepositMultiplier);
70
70
  this.#minDebtMultiplier = BigInt(minDebtMultiplier);
71
71
  this.#leverageDelta = BigInt(leverageDelta);
72
+ this.#logger?.info(
73
+ {
74
+ borrower: privateKeyToAccount(this.borrowerKey).address,
75
+ depositor: privateKeyToAccount(this.depositorKey).address,
76
+ faucet: this.faucet,
77
+ poolDepositMultiplier: this.#poolDepositMultiplier.toString(),
78
+ minDebtMultiplier: this.#minDebtMultiplier.toString(),
79
+ leverageDelta: this.#leverageDelta.toString(),
80
+ allowMint: this.#allowMint
81
+ },
82
+ "account opener options"
83
+ );
72
84
  }
73
85
  get borrower() {
74
86
  if (!this.#borrower) {
@@ -86,6 +98,14 @@ class AccountOpener extends SDKConstruct {
86
98
  * Tries to open account with underlying only in each CM
87
99
  */
88
100
  async openCreditAccounts(targets, depositIntoPools = true, claimFromFaucet2 = true) {
101
+ this.#logger?.info(
102
+ {
103
+ targets,
104
+ depositIntoPools,
105
+ claimFromFaucet: claimFromFaucet2
106
+ },
107
+ "opening credit accounts"
108
+ );
89
109
  let deposits = [];
90
110
  if (depositIntoPools) {
91
111
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "11.8.4",
3
+ "version": "11.8.5",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",