damm-sdk 1.1.11 → 1.1.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.
package/dist/index.cjs CHANGED
@@ -62761,6 +62761,9 @@ var contractsRegistry_default = {
62761
62761
  },
62762
62762
  zodiac: {
62763
62763
  rolesModule: "0x9646fDAD06d3e24444381f44362a3B0eB343D337"
62764
+ },
62765
+ tokens: {
62766
+ ausd: "0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"
62764
62767
  }
62765
62768
  }
62766
62769
  };
@@ -62773,26 +62776,28 @@ var chainIdToName = {
62773
62776
  137: "polygon",
62774
62777
  42161: "arbitrumOne",
62775
62778
  8453: "base",
62776
- 130: "unichain"
62779
+ 130: "unichain",
62780
+ 5000: "mantle",
62781
+ 480: "worldchain"
62777
62782
  };
62778
62783
  function getAddressOrThrow(chainId, key2) {
62779
62784
  const chainName = chainIdToName[chainId];
62780
62785
  if (!chainName) {
62781
- throw new Error(`Unsupported chainId: ${chainId}`);
62786
+ throw new Error(`DAMM-sdk:Unsupported chainId: ${chainId}`);
62782
62787
  }
62783
62788
  let current = contractsRegistry_default[chainName];
62784
62789
  if (!current) {
62785
- throw new Error(`No contracts found for chainId: ${chainId} (${chainName})`);
62790
+ throw new Error(`DAMM-sdk: No contracts found for chainId: ${chainId} (${chainName})`);
62786
62791
  }
62787
62792
  const path = key2.split(".");
62788
62793
  for (const segment of path) {
62789
62794
  if (typeof current !== "object" || current === null || !(segment in current)) {
62790
- throw new Error(`Key "${key2}" not found for chainId ${chainId} (${chainName})`);
62795
+ throw new Error(`DAMM-sdk: Key "${key2}" not found for chainId ${chainId} (${chainName})`);
62791
62796
  }
62792
62797
  current = current[segment];
62793
62798
  }
62794
62799
  if (typeof current !== "string") {
62795
- throw new Error(`Key "${key2}" does not resolve to an address for chainId ${chainId} (${chainName})`);
62800
+ throw new Error(`DAMM-sdk: Key "${key2}" does not resolve to an address for chainId ${chainId} (${chainName})`);
62796
62801
  }
62797
62802
  return current;
62798
62803
  }
@@ -81625,4 +81630,4 @@ var simulateOrThrow = async (env) => {
81625
81630
  };
81626
81631
  };
81627
81632
 
81628
- //# debugId=F4717F856BDF490364756E2164756E21
81633
+ //# debugId=74D8ECF41608731C64756E2164756E21