@forevermoney/sdk 0.5.3 → 0.5.4

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.d.cts CHANGED
@@ -9,9 +9,9 @@ declare const SUBTENSOR_CCIP_SELECTOR = 2135107236357186872n;
9
9
  declare const RAO_PER_TAO = 1000000000n;
10
10
  declare const EVM_WEI_PER_RAO = 1000000000n;
11
11
  declare const SN80_NETUID = 80n;
12
- declare const FOREVERMONEY_DEPLOYMENT_VERSION: "1.3.0";
12
+ declare const FOREVERMONEY_DEPLOYMENT_VERSION: "1.4.0";
13
13
  declare const foreverMoneyDeployment: Readonly<{
14
- version: "1.3.0";
14
+ version: "1.4.0";
15
15
  base: Readonly<{
16
16
  key: "base";
17
17
  name: "Base";
@@ -40,6 +40,7 @@ declare const foreverMoneyDeployment: Readonly<{
40
40
  gateway: `0x${string}`;
41
41
  legacyGateways: readonly `0x${string}`[];
42
42
  wrappedTao: `0x${string}`;
43
+ wrappedSn80: `0x${string}`;
43
44
  ccipRouter: `0x${string}`;
44
45
  ccipOffRampFromSubtensor: `0x${string}`;
45
46
  }>;
package/dist/index.d.ts CHANGED
@@ -9,9 +9,9 @@ declare const SUBTENSOR_CCIP_SELECTOR = 2135107236357186872n;
9
9
  declare const RAO_PER_TAO = 1000000000n;
10
10
  declare const EVM_WEI_PER_RAO = 1000000000n;
11
11
  declare const SN80_NETUID = 80n;
12
- declare const FOREVERMONEY_DEPLOYMENT_VERSION: "1.3.0";
12
+ declare const FOREVERMONEY_DEPLOYMENT_VERSION: "1.4.0";
13
13
  declare const foreverMoneyDeployment: Readonly<{
14
- version: "1.3.0";
14
+ version: "1.4.0";
15
15
  base: Readonly<{
16
16
  key: "base";
17
17
  name: "Base";
@@ -40,6 +40,7 @@ declare const foreverMoneyDeployment: Readonly<{
40
40
  gateway: `0x${string}`;
41
41
  legacyGateways: readonly `0x${string}`[];
42
42
  wrappedTao: `0x${string}`;
43
+ wrappedSn80: `0x${string}`;
43
44
  ccipRouter: `0x${string}`;
44
45
  ccipOffRampFromSubtensor: `0x${string}`;
45
46
  }>;
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ var SUBTENSOR_CCIP_SELECTOR = 2135107236357186872n;
9
9
  var RAO_PER_TAO = 1000000000n;
10
10
  var EVM_WEI_PER_RAO = 1000000000n;
11
11
  var SN80_NETUID = 80n;
12
- var FOREVERMONEY_DEPLOYMENT_VERSION = "1.3.0";
12
+ var FOREVERMONEY_DEPLOYMENT_VERSION = "1.4.0";
13
13
  var foreverMoneyDeployment = Object.freeze({
14
14
  version: FOREVERMONEY_DEPLOYMENT_VERSION,
15
15
  base: Object.freeze({
@@ -62,6 +62,9 @@ var foreverMoneyDeployment = Object.freeze({
62
62
  wrappedTao: getAddress(
63
63
  "0xf3081494B87e8D5fb7960f066E931D1D0e6E3d67"
64
64
  ),
65
+ wrappedSn80: getAddress(
66
+ "0x6f63d869011f95274498023b4abfc00b30c34378"
67
+ ),
65
68
  ccipRouter: getAddress(
66
69
  "0x06fC836cf9839B1cd891C440A0a45242DA6Ae1c9"
67
70
  ),
@@ -740,15 +743,9 @@ function bridgeAsset(evmChain, asset = "tao") {
740
743
  'Asset must be "tao" or "sn80".'
741
744
  );
742
745
  }
743
- if (asset === "sn80" && evmChain !== "base") {
744
- throw new ForeverMoneyError(
745
- "INVALID_TRANSACTION_PLAN",
746
- "SN80 bridging is supported between Base and Subtensor."
747
- );
748
- }
749
746
  const evm = getForeverMoneyEvmDeployment(evmChain);
750
747
  return asset === "sn80" ? {
751
- evmToken: foreverMoneyDeployment.base.contracts.wrappedSn80,
748
+ evmToken: evm.contracts.wrappedSn80,
752
749
  subtensorToken: foreverMoneyDeployment.subtensor.contracts.wrappedSn80,
753
750
  label: "SN80",
754
751
  wrappedLabel: "SN80"