@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/README.md CHANGED
@@ -418,6 +418,10 @@ pnpm build
418
418
  npm publish --access public
419
419
  ```
420
420
 
421
+ ## Running a Relayer
422
+
423
+ The Stela protocol is fully permissionless — anyone can run a relayer to settle matched orders and earn **5 BPS** on every settlement. See [RELAYER.md](RELAYER.md) for the SDK integration guide and the [stela-relayer](https://github.com/fepvenancio/stela-relayer) repo for a standalone implementation.
424
+
421
425
  ## License
422
426
 
423
427
  MIT
package/dist/index.cjs CHANGED
@@ -24,7 +24,7 @@ var STATUS_LABELS = {
24
24
 
25
25
  // src/constants/addresses.ts
26
26
  var STELA_ADDRESS = {
27
- sepolia: "0x03e88d289b9ce13e5d6e6ca5159930f9227b08cfbd004231a09a1d6f48568973",
27
+ sepolia: "0x038fb9a3bbf84aef962c70bc0ed15744f4f3088bae73bed99031b6f2b7cfab01",
28
28
  mainnet: "0x0"
29
29
  };
30
30
  var VALID_NETWORKS = ["sepolia", "mainnet"];
@@ -2971,13 +2971,14 @@ var LockerClient = class {
2971
2971
  /** Read multiple ERC20 balances held by a locker */
2972
2972
  async getLockerBalances(inscriptionId, tokenAddresses) {
2973
2973
  const lockerAddress = await this.getLockerAddress(inscriptionId);
2974
- const balances = /* @__PURE__ */ new Map();
2975
- for (const addr of tokenAddresses) {
2976
- const token = new starknet.Contract(erc20_default, addr, this.provider);
2977
- const result = await token.call("balance_of", [lockerAddress]);
2978
- balances.set(addr, BigInt(result[0]));
2979
- }
2980
- return balances;
2974
+ const results = await Promise.all(
2975
+ tokenAddresses.map(async (addr) => {
2976
+ const token = new starknet.Contract(erc20_default, addr, this.provider);
2977
+ const result = await token.call("balance_of", [lockerAddress]);
2978
+ return [addr, BigInt(result[0])];
2979
+ })
2980
+ );
2981
+ return new Map(results);
2981
2982
  }
2982
2983
  // ---- Governance execution through Locker ----
2983
2984
  /**