@exagent/sdk 0.1.7 → 0.1.9

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.mts CHANGED
@@ -87,6 +87,8 @@ interface TradeIntent {
87
87
  minAmountOut?: bigint;
88
88
  maxSlippageBps?: number;
89
89
  deadline?: number;
90
+ /** LLM config hash (bytes32) for epoch attribution — passed to on-chain router */
91
+ configHash?: `0x${string}`;
90
92
  }
91
93
  /**
92
94
  * M2M service request
@@ -1337,7 +1339,7 @@ declare class ExagentStaking {
1337
1339
  }
1338
1340
 
1339
1341
  /** SDK version — sent to API for version gating */
1340
- declare const SDK_VERSION = "0.1.6";
1342
+ declare const SDK_VERSION = "0.1.9";
1341
1343
  /**
1342
1344
  * Default RPC URL for Base mainnet.
1343
1345
  * Uses a higher-limit public endpoint to avoid rate-limiting.
package/dist/index.d.ts CHANGED
@@ -87,6 +87,8 @@ interface TradeIntent {
87
87
  minAmountOut?: bigint;
88
88
  maxSlippageBps?: number;
89
89
  deadline?: number;
90
+ /** LLM config hash (bytes32) for epoch attribution — passed to on-chain router */
91
+ configHash?: `0x${string}`;
90
92
  }
91
93
  /**
92
94
  * M2M service request
@@ -1337,7 +1339,7 @@ declare class ExagentStaking {
1337
1339
  }
1338
1340
 
1339
1341
  /** SDK version — sent to API for version gating */
1340
- declare const SDK_VERSION = "0.1.6";
1342
+ declare const SDK_VERSION = "0.1.9";
1341
1343
  /**
1342
1344
  * Default RPC URL for Base mainnet.
1343
1345
  * Uses a higher-limit public endpoint to avoid rate-limiting.
package/dist/index.js CHANGED
@@ -2059,7 +2059,7 @@ var ExagentStaking = class {
2059
2059
 
2060
2060
  // src/constants.ts
2061
2061
  var import_chains = require("viem/chains");
2062
- var SDK_VERSION = "0.1.6";
2062
+ var SDK_VERSION = "0.1.9";
2063
2063
  var DEFAULT_RPC_URL = "https://base-rpc.publicnode.com";
2064
2064
  function getRpcUrl() {
2065
2065
  if (typeof process !== "undefined" && process.env) {
@@ -2075,7 +2075,7 @@ var CONTRACT_ADDRESSES = {
2075
2075
  agentRegistry: "0x2261706C751F8ac5cdDb481B7b56EA2137d4A723",
2076
2076
  exaToken: "0x13403Fb738C97cF7564F279288468c140AaEd05c",
2077
2077
  staking: "0xAF1729D1519A72f7d9b87aa23a305b775e2849DA",
2078
- router: "0x11daD5366D903a3eF5d8f07EFF87ce6b173859a9",
2078
+ router: "0x1BCFa13f677fDCf697D8b7d5120f544817F1de1A",
2079
2079
  vaultFactory: "0xe9F1F6393448921bD29a1cBAbd951Bb8F8EA4A6f",
2080
2080
  feeCollector: "0xe66328a964AF93bEF2eDB226D039C35aE6e66De1",
2081
2081
  buyback: "0x39967532b640B2f735548c7a5b46d8D890A0B2f2",
@@ -2361,7 +2361,8 @@ var ExagentClient = class {
2361
2361
  tokenOut: intent.tokenOut,
2362
2362
  amountIn: intent.amountIn.toString(),
2363
2363
  slippageBps: intent.maxSlippageBps ?? 50,
2364
- taker: this.account.address
2364
+ taker: this.account.address,
2365
+ ...intent.configHash && { configHash: intent.configHash }
2365
2366
  })
2366
2367
  });
2367
2368
  if (!response.ok) {
package/dist/index.mjs CHANGED
@@ -2024,7 +2024,7 @@ var ExagentStaking = class {
2024
2024
 
2025
2025
  // src/constants.ts
2026
2026
  import { base } from "viem/chains";
2027
- var SDK_VERSION = "0.1.6";
2027
+ var SDK_VERSION = "0.1.9";
2028
2028
  var DEFAULT_RPC_URL = "https://base-rpc.publicnode.com";
2029
2029
  function getRpcUrl() {
2030
2030
  if (typeof process !== "undefined" && process.env) {
@@ -2040,7 +2040,7 @@ var CONTRACT_ADDRESSES = {
2040
2040
  agentRegistry: "0x2261706C751F8ac5cdDb481B7b56EA2137d4A723",
2041
2041
  exaToken: "0x13403Fb738C97cF7564F279288468c140AaEd05c",
2042
2042
  staking: "0xAF1729D1519A72f7d9b87aa23a305b775e2849DA",
2043
- router: "0x11daD5366D903a3eF5d8f07EFF87ce6b173859a9",
2043
+ router: "0x1BCFa13f677fDCf697D8b7d5120f544817F1de1A",
2044
2044
  vaultFactory: "0xe9F1F6393448921bD29a1cBAbd951Bb8F8EA4A6f",
2045
2045
  feeCollector: "0xe66328a964AF93bEF2eDB226D039C35aE6e66De1",
2046
2046
  buyback: "0x39967532b640B2f735548c7a5b46d8D890A0B2f2",
@@ -2326,7 +2326,8 @@ var ExagentClient = class {
2326
2326
  tokenOut: intent.tokenOut,
2327
2327
  amountIn: intent.amountIn.toString(),
2328
2328
  slippageBps: intent.maxSlippageBps ?? 50,
2329
- taker: this.account.address
2329
+ taker: this.account.address,
2330
+ ...intent.configHash && { configHash: intent.configHash }
2330
2331
  })
2331
2332
  });
2332
2333
  if (!response.ok) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exagent/sdk",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "TypeScript SDK for Exagent",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",