@steerprotocol/sdk 3.0.6 → 3.0.8

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
@@ -56,6 +56,7 @@ let Chain = /* @__PURE__ */ function(Chain) {
56
56
  Chain["Saga"] = "Saga";
57
57
  Chain["Nibiru"] = "Nibiru";
58
58
  Chain["Hyperevm"] = "Hyperevm";
59
+ Chain["Bittensor"] = "Bittensor";
59
60
  return Chain;
60
61
  }({});
61
62
  const ChainId = {
@@ -107,7 +108,8 @@ const ChainId = {
107
108
  Ronin: 2020,
108
109
  Saga: 5464,
109
110
  Nibiru: 6900,
110
- Hyperevm: 999
111
+ Hyperevm: 999,
112
+ Bittensor: 964
111
113
  };
112
114
  let Protocol = /* @__PURE__ */ function(Protocol) {
113
115
  Protocol["QuickSwap"] = "QuickSwap";
@@ -172,6 +174,8 @@ let Protocol = /* @__PURE__ */ function(Protocol) {
172
174
  Protocol["Cypher"] = "Cypher";
173
175
  Protocol["SparkIntegral"] = "SparkIntegral";
174
176
  Protocol["UniswapV4"] = "UniswapV4";
177
+ Protocol["Hydrex"] = "Hydrex";
178
+ Protocol["BittensorUniV3"] = "BittensorUniV3";
175
179
  return Protocol;
176
180
  }({});
177
181
  let StrykePositionManagers = /* @__PURE__ */ function(StrykePositionManagers) {
@@ -248,6 +252,8 @@ let MultiPositionManagers = /* @__PURE__ */ function(MultiPositionManagers) {
248
252
  MultiPositionManagers["MultiPositionSushiManaged"] = "MultiPositionSushiManaged";
249
253
  MultiPositionManagers["MultiPositionSparkIntegral"] = "MultiPositionSparkIntegral";
250
254
  MultiPositionManagers["MultiPositionHenjinAlgebraHook"] = "HenjinIntegralHook";
255
+ MultiPositionManagers["MultiPositionHydrex"] = "MultiPositionHydrex";
256
+ MultiPositionManagers["MultiPositionBittensorUniV3"] = "MultiPositionBittensorUniV3";
251
257
  return MultiPositionManagers;
252
258
  }({});
253
259
  const AlgebgraHookBeacons = [MultiPositionManagers.MultiPositionHenjinAlgebraHook, MultiPositionManagers.AlgebraHook];
@@ -7906,6 +7912,50 @@ const sagaAddresses = {
7906
7912
  }
7907
7913
  };
7908
7914
  //#endregion
7915
+ //#region src/const/deployments/bittensor.ts
7916
+ const bittensorAddresses = {
7917
+ KeeperRegistry: {
7918
+ address: "0x3B4cAD7D6cd045bD038697a4EaA3AD5A99E5Aa70",
7919
+ startBlock: 8081621
7920
+ },
7921
+ Orchestrator: {
7922
+ address: "0x588B34D2a9598497f481A9d31B4eD372C6135f32",
7923
+ startBlock: 8081627
7924
+ },
7925
+ StrategyRegistry: {
7926
+ address: "0xcE33017087582548c996581d1cde9549ea54221d",
7927
+ startBlock: 8081624
7928
+ },
7929
+ VaultRegistry: {
7930
+ address: "0x83966243D6055b1A1157f800cBC9f5084162b871",
7931
+ startBlock: 8081631
7932
+ },
7933
+ BundleRegistry: {
7934
+ address: "0x10b988Df6b17B4dF7Fe6DFf6De45346e8fa8376D",
7935
+ startBlock: 8081645
7936
+ },
7937
+ GasVault: {
7938
+ address: "0x4E4D0040AF576482E7757aD4aE47b4f4587807d6",
7939
+ startBlock: 8081637
7940
+ },
7941
+ SteerPeriphery: {
7942
+ address: "0x83ee3e4Bcac37f69C133f908E5a704eA9b7d74Eb",
7943
+ startBlock: 8081642
7944
+ },
7945
+ Helper: {
7946
+ address: "0xEe351402D6A89E4468D2E6fD0f702602AdeAde91",
7947
+ startBlock: 8081629
7948
+ },
7949
+ FeeManager: {
7950
+ address: "0xC347cB5492360aD29a9Cb14A11ecBF5aa23038C7",
7951
+ startBlock: 8081648
7952
+ },
7953
+ WhitelistRegistry: {
7954
+ address: "0x6511080422911D210681f5618DBd50DEC3e954de",
7955
+ startBlock: 8081628
7956
+ }
7957
+ };
7958
+ //#endregion
7909
7959
  //#region src/const/deployments/berachainbartio.ts
7910
7960
  const berachainbartioAddresses = {
7911
7961
  "Orchestrator_Proxy": {
@@ -8777,6 +8827,15 @@ const networks = {
8777
8827
  chainId: ChainId.Hyperevm,
8778
8828
  transactionType: 0,
8779
8829
  ...hyperevmAddresses
8830
+ },
8831
+ [Chain.Bittensor]: {
8832
+ address: "0x134f59E8B8637FD70ae12f263492B1dc73A25D1e",
8833
+ name: Chain.Bittensor,
8834
+ wrappedNativeToken: "WTAO",
8835
+ isWrappingEnabled: true,
8836
+ chainId: ChainId.Bittensor,
8837
+ transactionType: 0,
8838
+ ...bittensorAddresses
8780
8839
  }
8781
8840
  };
8782
8841
  for (const network of Object.values(networks)) {
@@ -8949,7 +9008,8 @@ const ALGEBRA_PROTOCOLS = [
8949
9008
  Protocol.Blackhole,
8950
9009
  Protocol.Nest,
8951
9010
  Protocol.Cypher,
8952
- Protocol.SparkIntegral
9011
+ Protocol.SparkIntegral,
9012
+ Protocol.Hydrex
8953
9013
  ];
8954
9014
  const SHADOW_PROTOCOLS = [Protocol.Shadow, Protocol.MachineX];
8955
9015
  /**
@@ -8977,7 +9037,8 @@ const ALGEBRA_INTEGRAL_PROTOCOLS = [
8977
9037
  Protocol.Blackhole,
8978
9038
  Protocol.Nest,
8979
9039
  Protocol.Cypher,
8980
- Protocol.SparkIntegral
9040
+ Protocol.SparkIntegral,
9041
+ Protocol.Hydrex
8981
9042
  ];
8982
9043
  const AERODROME_PROTOCOLS = [
8983
9044
  Protocol.Aerodrome,
@@ -8990,7 +9051,8 @@ const ALGEBRA_INTEGRAL_V_2_0_PROTOCOLS = [
8990
9051
  Protocol.KatanaIntegral,
8991
9052
  Protocol.Blackhole,
8992
9053
  Protocol.Cypher,
8993
- Protocol.SparkIntegral
9054
+ Protocol.SparkIntegral,
9055
+ Protocol.Hydrex
8994
9056
  ];
8995
9057
  /**
8996
9058
  * List of protocols that implement the Thick interface
@@ -9124,7 +9186,8 @@ const steerSubgraphConfig = {
9124
9186
  [Chain.Ronin]: "https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/793Lz5oiK51wdm9kCLtHqunkAPk2qjg7denpCrHqrLcA",
9125
9187
  [Chain.Saga]: "https://api.goldsky.com/api/public/project_clohj3ta78ok12nzs5m8yag0b/subgraphs/steer-protocol-saga-evm/prod/gn",
9126
9188
  [Chain.Nibiru]: "https://app.sentio.xyz//api/v1/graphql/rakesh/steer-protocol-nibiru",
9127
- [Chain.Hyperevm]: "https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-hyperevm/prod/gn"
9189
+ [Chain.Hyperevm]: "https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-hyperevm/prod/gn",
9190
+ [Chain.Bittensor]: "http://35.247.158.26/subgraphs/name/steer-subgraph/graphql"
9128
9191
  };
9129
9192
  /**
9130
9193
  * Retrieves the subgraph URL for a given chain ID.
@@ -14707,6 +14770,17 @@ const nestVaultConfig = () => ({
14707
14770
  QuoterV2Address: { [Chain.Hyperevm]: "0xBea20609A4772311c5b81F814Cd4f9ECaEF5DFAd" }
14708
14771
  });
14709
14772
  //#endregion
14773
+ //#region src/const/amm/configs/protocols/bittensor-univ3.ts
14774
+ const bittensorUniV3Config = () => ({
14775
+ beaconContract: MultiPositionManagers.MultiPositionBittensorUniV3,
14776
+ subgraph: { [Chain.Bittensor]: "http://35.247.158.26/subgraphs/name/uniswap-v3-bittensor/graphql" },
14777
+ factoryAddress: { [Chain.Bittensor]: "0xfB30AE7542a5E8A5BC134128c0c9dEb4646a2508" },
14778
+ NFTManagerAddress: { [Chain.Bittensor]: "0x32aF22F550bB1E9dd1382BEaBb0E3e6bb12fA549" },
14779
+ swapRouterAddress: { [Chain.Bittensor]: "0xa0a90ebB2A57083d06146D86d99a2eED3378359d" },
14780
+ TickLensAddress: { [Chain.Bittensor]: "0x40b628AE57f51E482C90AF0DBF8e2F2E124E5fc4" },
14781
+ QuoterV2Address: { [Chain.Bittensor]: "0xC52476b7e73789f45E8bDe1863653439f1170d01" }
14782
+ });
14783
+ //#endregion
14710
14784
  //#region src/const/amm/configs/protocols/blackhole.ts
14711
14785
  const blackholeConfig = () => ({
14712
14786
  beaconContract: MultiPositionManagers.MultiPositionBlackhole,
@@ -14912,6 +14986,17 @@ const uniswapV4Config = (theGraphApiKey) => ({
14912
14986
  Permit2: { [Chain.Unichain]: "0x000000000022D473030F116dDEE9F6B43aC78BA3" }
14913
14987
  });
14914
14988
  //#endregion
14989
+ //#region src/const/amm/configs/protocols/hydrex.ts
14990
+ const hydrexConfig = () => ({
14991
+ beaconContract: MultiPositionManagers.MultiPositionHydrex,
14992
+ beaconAlgebraHook: MultiPositionManagers.AlgebraHook,
14993
+ algebraHookSupportedChains: [Chain.Base],
14994
+ subgraph: { [Chain.Base]: "https://analytics-subgraph.hydrex.fi/" },
14995
+ factoryAddress: { [Chain.Base]: "0x36077D39cdC65E1e3FB65810430E5b2c4D5fA29E" },
14996
+ TickLensAddress: { [Chain.Base]: "0x0044e9642381607Eee1CCF06bae2378C3cB9B863" },
14997
+ QuoterV2Address: { [Chain.Base]: "0x08b46265643a5389529D6f6616FA4a0d66F13Fdb" }
14998
+ });
14999
+ //#endregion
14915
15000
  //#region src/const/amm/configs/ammConfig.ts
14916
15001
  const getAmmConfig = (theGraphApiKey) => {
14917
15002
  return {
@@ -14976,7 +15061,9 @@ const getAmmConfig = (theGraphApiKey) => {
14976
15061
  Nest: nestVaultConfig(),
14977
15062
  Cypher: cypherConfig(theGraphApiKey),
14978
15063
  SparkIntegral: sparkIntegralConfig(),
14979
- UniswapV4: uniswapV4Config(theGraphApiKey)
15064
+ UniswapV4: uniswapV4Config(theGraphApiKey),
15065
+ Hydrex: hydrexConfig(),
15066
+ BittensorUniV3: bittensorUniV3Config()
14980
15067
  };
14981
15068
  };
14982
15069
  //#endregion
@@ -14987,6 +15074,7 @@ const BEACON_TO_SUPPORTED_PROTOCOL_MAP = {
14987
15074
  maia: "Maia",
14988
15075
  sushi: "Sushi",
14989
15076
  uniswapv4: "UniswapV4",
15077
+ bittensoruniv3: "BittensorUniV3",
14990
15078
  uniswap: "Uniswap",
14991
15079
  pancake: "PancakeSwap",
14992
15080
  quickswapuniv3: "QuickSwapUniv3",
@@ -15041,13 +15129,15 @@ const BEACON_TO_SUPPORTED_PROTOCOL_MAP = {
15041
15129
  multiPositionAerodrome: "Aerodrome",
15042
15130
  aerodromeStakedPositionManager: "AerodromeV2",
15043
15131
  nest: "Nest",
15044
- cypher: "Cypher"
15132
+ cypher: "Cypher",
15133
+ hydrex: "Hydrex"
15045
15134
  };
15046
15135
  const BEACON_TO_PROTOCOL_MAP = {
15047
15136
  retro: Protocol.Retro,
15048
15137
  forge: Protocol.Forge,
15049
15138
  maia: Protocol.Maia,
15050
15139
  sushi: Protocol.Sushi,
15140
+ bittensoruniv3: Protocol.BittensorUniV3,
15051
15141
  uniswap: Protocol.Uniswap,
15052
15142
  pancake: Protocol.PancakeSwap,
15053
15143
  quickswapuniv3: Protocol.QuickSwapUniv3,
@@ -15099,7 +15189,8 @@ const BEACON_TO_PROTOCOL_MAP = {
15099
15189
  aerodromeStakedPositionManager: Protocol.AerodromeV2,
15100
15190
  nest: Protocol.Nest,
15101
15191
  cypher: Protocol.Cypher,
15102
- sparkintegral: Protocol.SparkIntegral
15192
+ sparkintegral: Protocol.SparkIntegral,
15193
+ hydrex: Protocol.Hydrex
15103
15194
  };
15104
15195
  const PROTOCOL_TO_BEACON_MAP = Object.fromEntries(Object.entries(BEACON_TO_SUPPORTED_PROTOCOL_MAP).map(([beacon, protocol]) => [protocol, beacon]));
15105
15196
  const CUSTOM_BEACON_TO_PROTOCOL_MAP = {
@@ -15115,7 +15206,8 @@ const CUSTOM_BEACON_TO_PROTOCOL_MAP = {
15115
15206
  [MultiPositionManagers.MultiPositionCypher]: Protocol.Cypher,
15116
15207
  [MultiPositionManagers.MultiPositionSushiManaged]: Protocol.Sushi,
15117
15208
  [MultiPositionManagers.MultiPositionSparkIntegral]: Protocol.SparkIntegral,
15118
- [MultiPositionManagers.MultiPositionHenjinAlgebraHook]: Protocol.Henjin
15209
+ [MultiPositionManagers.MultiPositionHenjinAlgebraHook]: Protocol.Henjin,
15210
+ [MultiPositionManagers.MultiPositionBittensorUniV3]: Protocol.BittensorUniV3
15119
15211
  };
15120
15212
  /**`
15121
15213
  * Retrieves the beacon name associated with a given protocol.
@@ -42749,7 +42841,12 @@ var VaultClient = class extends SubgraphClient {
42749
42841
  })) return true;
42750
42842
  const expectedBeacon = resolvedProtocol ? getBeaconNameByProtocol(resolvedProtocol) : protocolFilter;
42751
42843
  const normalizedExpectedBeacon = this.normalizeProtocolValue(expectedBeacon);
42752
- return normalizedExpectedBeacon.length > 0 && normalizedBeaconName.includes(normalizedExpectedBeacon);
42844
+ if (normalizedExpectedBeacon.length > 0 && normalizedBeaconName.includes(normalizedExpectedBeacon)) return true;
42845
+ if (!resolvedProtocol) return false;
42846
+ return this.getProtocolBeaconNames(resolvedProtocol).some((beacon) => {
42847
+ const normalizedBeacon = this.normalizeProtocolValue(beacon);
42848
+ return normalizedBeacon.length > 0 && normalizedBeaconName === normalizedBeacon;
42849
+ });
42753
42850
  }
42754
42851
  applyProtocolFilter(vaultsConnection, protocol) {
42755
42852
  if (!protocol) return vaultsConnection;
@@ -46710,6 +46807,8 @@ exports.baseAddresses = baseAddresses;
46710
46807
  exports.baseSwapConfig = baseSwapConfig;
46711
46808
  exports.basexConfig = basexConfig;
46712
46809
  exports.beraAddresses = beraAddresses;
46810
+ exports.bittensorAddresses = bittensorAddresses;
46811
+ exports.bittensorUniV3Config = bittensorUniV3Config;
46713
46812
  exports.blastAddresses = blastAddresses;
46714
46813
  exports.bscAddresses = bscAddresses;
46715
46814
  exports.calculateLimitPrice = calculateLimitPrice;