@fepvenancio/stela-sdk 0.4.2 → 0.4.3

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/index.js CHANGED
@@ -22,7 +22,7 @@ var STATUS_LABELS = {
22
22
 
23
23
  // src/constants/addresses.ts
24
24
  var STELA_ADDRESS = {
25
- sepolia: "0x03e88d289b9ce13e5d6e6ca5159930f9227b08cfbd004231a09a1d6f48568973",
25
+ sepolia: "0x038fb9a3bbf84aef962c70bc0ed15744f4f3088bae73bed99031b6f2b7cfab01",
26
26
  mainnet: "0x0"
27
27
  };
28
28
  var VALID_NETWORKS = ["sepolia", "mainnet"];
@@ -2969,13 +2969,14 @@ var LockerClient = class {
2969
2969
  /** Read multiple ERC20 balances held by a locker */
2970
2970
  async getLockerBalances(inscriptionId, tokenAddresses) {
2971
2971
  const lockerAddress = await this.getLockerAddress(inscriptionId);
2972
- const balances = /* @__PURE__ */ new Map();
2973
- for (const addr of tokenAddresses) {
2974
- const token = new Contract(erc20_default, addr, this.provider);
2975
- const result = await token.call("balance_of", [lockerAddress]);
2976
- balances.set(addr, BigInt(result[0]));
2977
- }
2978
- return balances;
2972
+ const results = await Promise.all(
2973
+ tokenAddresses.map(async (addr) => {
2974
+ const token = new Contract(erc20_default, addr, this.provider);
2975
+ const result = await token.call("balance_of", [lockerAddress]);
2976
+ return [addr, BigInt(result[0])];
2977
+ })
2978
+ );
2979
+ return new Map(results);
2979
2980
  }
2980
2981
  // ---- Governance execution through Locker ----
2981
2982
  /**