@shogun-sdk/intents-sdk 1.4.0 → 1.4.1

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
@@ -859,7 +859,7 @@ declare function fetchUserOrders({ token, wallet, network }: FetchUserOrdersPara
859
859
  interface GetUserOrdersParams {
860
860
  /** Wallet address to query. Combined with any wallet(s) carried by the JWT claims. */
861
861
  wallet?: string;
862
- /** Restrict results to a single chain. Serialized as its chain id (e.g. 8453). */
862
+ /** Restrict results to a single chain. Serialized as the auctioneer's network name (e.g. Base). */
863
863
  network?: SupportedChain;
864
864
  }
865
865
  declare class AuctioneerAPI {
package/dist/index.d.ts CHANGED
@@ -859,7 +859,7 @@ declare function fetchUserOrders({ token, wallet, network }: FetchUserOrdersPara
859
859
  interface GetUserOrdersParams {
860
860
  /** Wallet address to query. Combined with any wallet(s) carried by the JWT claims. */
861
861
  wallet?: string;
862
- /** Restrict results to a single chain. Serialized as its chain id (e.g. 8453). */
862
+ /** Restrict results to a single chain. Serialized as the auctioneer's network name (e.g. Base). */
863
863
  network?: SupportedChain;
864
864
  }
865
865
  declare class AuctioneerAPI {
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
20
20
  function isEvmChain(chainId) {
21
21
  return chainId !== 7565164 /* Solana */ && chainId !== 101 /* Sui */;
22
22
  }
23
- var ChainType, ChainID, SupportedChains, isSupportedChain, chainIdToChainTypeMap;
23
+ var ChainType, ChainID, SupportedChains, isSupportedChain, chainIdToChainTypeMap, chainIdToNetworkName;
24
24
  var init_chains = __esm({
25
25
  "src/chains.ts"() {
26
26
  "use strict";
@@ -65,6 +65,16 @@ var init_chains = __esm({
65
65
  [56 /* BSC */]: "EVM" /* EVM */,
66
66
  [143 /* MONAD */]: "EVM" /* EVM */
67
67
  };
68
+ chainIdToNetworkName = {
69
+ [42161 /* Arbitrum */]: "ArbitrumOne",
70
+ [10 /* Optimism */]: "Optimism",
71
+ [8453 /* Base */]: "Base",
72
+ [999 /* Hyperliquid */]: "HyperEVM",
73
+ [7565164 /* Solana */]: "Solana",
74
+ [101 /* Sui */]: "Sui",
75
+ [56 /* BSC */]: "Bsc",
76
+ [143 /* MONAD */]: "Monad"
77
+ };
68
78
  }
69
79
  });
70
80
 
@@ -8063,6 +8073,7 @@ var SuiSDK = class extends BaseSDK {
8063
8073
 
8064
8074
  // src/core/orders/api/index.ts
8065
8075
  init_constants();
8076
+ init_chains();
8066
8077
  var AuctioneerAPI = class {
8067
8078
  constructor(aggregatedToken) {
8068
8079
  __publicField(this, "aggregatedToken");
@@ -8077,7 +8088,7 @@ var AuctioneerAPI = class {
8077
8088
  query.set("wallet", params.wallet);
8078
8089
  }
8079
8090
  if (params.network !== void 0) {
8080
- query.set("network", String(params.network));
8091
+ query.set("network", chainIdToNetworkName[params.network]);
8081
8092
  }
8082
8093
  const queryString = query.toString();
8083
8094
  const url = `${AUCTIONEER_URL}/user_intent${queryString ? `?${queryString}` : ""}`;