@fepvenancio/stela-sdk 0.4.1 → 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: "0x00b7deedb4ab03d94f54da2e7c911c2336b19c2a4610eb98f55cd7be5a53ece0",
25
+ sepolia: "0x038fb9a3bbf84aef962c70bc0ed15744f4f3088bae73bed99031b6f2b7cfab01",
26
26
  mainnet: "0x0"
27
27
  };
28
28
  var VALID_NETWORKS = ["sepolia", "mainnet"];
@@ -1367,6 +1367,29 @@ var stela_default = [
1367
1367
  outputs: [],
1368
1368
  state_mutability: "external"
1369
1369
  },
1370
+ {
1371
+ type: "function",
1372
+ name: "set_fee_vault",
1373
+ inputs: [
1374
+ {
1375
+ name: "fee_vault",
1376
+ type: "core::starknet::contract_address::ContractAddress"
1377
+ }
1378
+ ],
1379
+ outputs: [],
1380
+ state_mutability: "external"
1381
+ },
1382
+ {
1383
+ type: "function",
1384
+ name: "get_fee_vault",
1385
+ inputs: [],
1386
+ outputs: [
1387
+ {
1388
+ type: "core::starknet::contract_address::ContractAddress"
1389
+ }
1390
+ ],
1391
+ state_mutability: "view"
1392
+ },
1370
1393
  {
1371
1394
  type: "function",
1372
1395
  name: "pause",
@@ -2946,13 +2969,14 @@ var LockerClient = class {
2946
2969
  /** Read multiple ERC20 balances held by a locker */
2947
2970
  async getLockerBalances(inscriptionId, tokenAddresses) {
2948
2971
  const lockerAddress = await this.getLockerAddress(inscriptionId);
2949
- const balances = /* @__PURE__ */ new Map();
2950
- for (const addr of tokenAddresses) {
2951
- const token = new Contract(erc20_default, addr, this.provider);
2952
- const result = await token.call("balance_of", [lockerAddress]);
2953
- balances.set(addr, BigInt(result[0]));
2954
- }
2955
- 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);
2956
2980
  }
2957
2981
  // ---- Governance execution through Locker ----
2958
2982
  /**