@gearbox-protocol/deploy-tools 5.3.11 → 5.3.13

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.
Files changed (2) hide show
  1. package/dist/index.mjs +18 -4
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -409246,9 +409246,17 @@ var AccountOpener = class {
409246
409246
  */
409247
409247
  async openCreditAccounts(targets) {
409248
409248
  await this.#prepareBorrower(targets);
409249
+ const toApprove = new AddressMap();
409249
409250
  for (const c of targets) {
409250
409251
  const cm = this.sdk.marketRegister.findCreditManager(c.creditManager);
409251
- await this.#approve(c.collateral, cm);
409252
+ const toApproveOnCM = toApprove.get(c.creditManager) ?? /* @__PURE__ */ new Set();
409253
+ toApproveOnCM.add(cm.underlying);
409254
+ }
409255
+ for (const [cmAddr, tokens] of toApprove.entries()) {
409256
+ const cm = this.sdk.marketRegister.findCreditManager(cmAddr);
409257
+ for (const token of tokens) {
409258
+ await this.#approve(token, cm);
409259
+ }
409252
409260
  }
409253
409261
  for (let i = 0; i < targets.length; i++) {
409254
409262
  const target = targets[i];
@@ -417920,7 +417928,13 @@ function openAccounts() {
417920
417928
  creditManager: "0x3EB95430FdB99439A86d3c6D7D01C3c561393556",
417921
417929
  // [Trade USDC Tier 1]
417922
417930
  collateral: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599"
417923
- // wbtc
417931
+ // WBTC
417932
+ },
417933
+ {
417934
+ creditManager: "0x3EB95430FdB99439A86d3c6D7D01C3c561393556",
417935
+ // [Trade USDC Tier 1]
417936
+ collateral: "0x6B175474E89094C44Da98b954EedeAC495271d0F"
417937
+ // DAI
417924
417938
  },
417925
417939
  {
417926
417940
  creditManager: "0x3EB95430FdB99439A86d3c6D7D01C3c561393556",
@@ -417988,7 +418002,7 @@ function getRenderer(opts) {
417988
418002
  var package_default = {
417989
418003
  name: "@gearbox-protocol/deploy-tools",
417990
418004
  description: "Gearbox deploy tools",
417991
- version: "5.3.11",
418005
+ version: "5.3.13",
417992
418006
  homepage: "https://gearbox.fi",
417993
418007
  keywords: [
417994
418008
  "gearbox"
@@ -418031,7 +418045,7 @@ var package_default = {
418031
418045
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
418032
418046
  "@gearbox-protocol/deploy-tools-shared": "0.0.0",
418033
418047
  "@gearbox-protocol/deploy-tools-types": "0.0.0",
418034
- "@gearbox-protocol/sdk": "^3.0.0-vfour.162",
418048
+ "@gearbox-protocol/sdk": "^3.0.0-vfour.163",
418035
418049
  "@gearbox-protocol/sdk-gov": "^2.33.2",
418036
418050
  "@types/lodash-es": "^4.17.12",
418037
418051
  "@types/node": "^22.10.5",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/deploy-tools",
3
3
  "description": "Gearbox deploy tools",
4
- "version": "5.3.11",
4
+ "version": "5.3.13",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"
@@ -44,7 +44,7 @@
44
44
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
45
45
  "@gearbox-protocol/deploy-tools-shared": "0.0.0",
46
46
  "@gearbox-protocol/deploy-tools-types": "0.0.0",
47
- "@gearbox-protocol/sdk": "^3.0.0-vfour.162",
47
+ "@gearbox-protocol/sdk": "^3.0.0-vfour.163",
48
48
  "@gearbox-protocol/sdk-gov": "^2.33.2",
49
49
  "@types/lodash-es": "^4.17.12",
50
50
  "@types/node": "^22.10.5",