@gearbox-protocol/sdk 3.0.0-vfour.207 → 3.0.0-vfour.208

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.
@@ -2106,8 +2106,7 @@ var SDKExample = class {
2106
2106
  const {
2107
2107
  addressProvider: ap,
2108
2108
  addressProviderJson,
2109
- marketConfigurator: mc,
2110
- marketConfiguratorJson,
2109
+ marketConfigurators,
2111
2110
  anvilUrl = "http://127.0.0.1:8545",
2112
2111
  outFile
2113
2112
  } = opts;
@@ -2116,23 +2115,16 @@ var SDKExample = class {
2116
2115
  ap,
2117
2116
  addressProviderJson
2118
2117
  );
2119
- const marketConfigurator = await this.#readConfigAddress(
2120
- "marketConfigurator",
2121
- mc,
2122
- marketConfiguratorJson
2123
- );
2124
2118
  this.#sdk = await sdk.GearboxSDK.attach({
2125
2119
  rpcURLs: [anvilUrl],
2126
2120
  timeout: 48e4,
2127
2121
  addressProvider,
2128
2122
  logger: this.#logger,
2129
2123
  ignoreUpdateablePrices: true,
2130
- marketConfigurators: [marketConfigurator]
2124
+ marketConfigurators
2131
2125
  });
2132
2126
  await this.#safeMigrateFaucet(addressProvider);
2133
- const puTx = await this.#sdk.priceFeeds.getUpdatePriceFeedsTx([
2134
- marketConfigurator
2135
- ]);
2127
+ const puTx = await this.#sdk.priceFeeds.getUpdatePriceFeedsTx(marketConfigurators);
2136
2128
  const updater = viem.createWalletClient({
2137
2129
  account: accounts.privateKeyToAccount(
2138
2130
  "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
@@ -2145,7 +2137,7 @@ var SDKExample = class {
2145
2137
  });
2146
2138
  const hash = await sdk.sendRawTx(updater, { tx: puTx });
2147
2139
  await publicClient.waitForTransactionReceipt({ hash });
2148
- await this.#sdk.marketRegister.loadMarkets([marketConfigurator], true);
2140
+ await this.#sdk.marketRegister.loadMarkets(marketConfigurators, true);
2149
2141
  this.#logger?.info("attached sdk");
2150
2142
  if (outFile) {
2151
2143
  try {
@@ -393,8 +393,7 @@ declare class PriceFeedStore extends SDKConstruct {
393
393
  interface SDKExampleOptions {
394
394
  addressProvider?: string;
395
395
  addressProviderJson?: string;
396
- marketConfigurator?: string;
397
- marketConfiguratorJson?: string;
396
+ marketConfigurators: Address[];
398
397
  anvilUrl?: string;
399
398
  outFile?: string;
400
399
  }