autonomo-sdk 0.1.4 → 0.1.5

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/README.md CHANGED
@@ -110,8 +110,8 @@ new Autonomo({
110
110
  privateKey,
111
111
  payWith: "auto", // or "usdg" / "autonomo" / "usdc" (USDC on Base)
112
112
  limits: {
113
- perCall: { usdg: "0.05", autonomo: "5000" }, // the defaults
114
- daily: { usdg: "1", autonomo: "10000" }, // per UTC day; Gloam and Borro count as USDG
113
+ perCall: { usdg: "0.5", autonomo: "5000" }, // the defaults
114
+ daily: { usdg: "5", autonomo: "10000" }, // per UTC day; Gloam and Borro count as USDG
115
115
  },
116
116
  });
117
117
  ```
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { type Hex } from "viem";
2
- export declare const VERSION = "0.1.4";
2
+ export declare const VERSION = "0.1.5";
3
3
  export type TokenName = "usdg" | "autonomo" | "usdc";
4
4
  /** The tokens with limits of their own. USDC on Base is held to the USDG (dollar) limits. */
5
5
  type LimitName = "usdg" | "autonomo";
@@ -26,7 +26,7 @@ export declare const DEFAULT_LIMITS: {
26
26
  };
27
27
  };
28
28
  export type Limits = {
29
- /** Most to pay for one call, in whole tokens, e.g. { usdg: "0.05" }. The usdg limit covers USDC on Base too. */
29
+ /** Most to pay for one call, in whole tokens, e.g. { usdg: "0.5" }. The usdg limit covers USDC on Base too. */
30
30
  perCall?: Partial<Record<LimitName, string>>;
31
31
  /** Most to spend per UTC day, in whole tokens. USDC on Base, Gloam and Borro payments count against the usdg limit. */
32
32
  daily?: Partial<Record<LimitName, string>>;
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ import { homedir } from "node:os";
17
17
  import { dirname, join } from "node:path";
18
18
  import { createPublicClient, createWalletClient, defineChain, erc20Abi, formatEther, formatUnits, getAddress, http, maxUint256, parseUnits, toHex, } from "viem";
19
19
  import { privateKeyToAccount } from "viem/accounts";
20
- export const VERSION = "0.1.4";
20
+ export const VERSION = "0.1.5";
21
21
  const NETWORK = "eip155:4663";
22
22
  const CHAIN_ID = 4663;
23
23
  const EXPLORER = "https://robinhoodchain.blockscout.com";
@@ -33,8 +33,8 @@ export const TOKENS = {
33
33
  };
34
34
  const limitOf = (t) => (t === "autonomo" ? "autonomo" : "usdg");
35
35
  export const DEFAULT_LIMITS = {
36
- perCall: { usdg: "0.05", autonomo: "5000" },
37
- daily: { usdg: "1", autonomo: "10000" },
36
+ perCall: { usdg: "0.5", autonomo: "5000" },
37
+ daily: { usdg: "5", autonomo: "10000" },
38
38
  };
39
39
  export class AutonomoError extends Error {
40
40
  code;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autonomo-sdk",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "One call for AI agents: find the right paid API on Autonomo, pay in USDG or $AUTONOMO (privately through Gloam, or on Borro credit), within spending caps, and get a receipt.",
5
5
  "homepage": "https://autonomo.fun",
6
6
  "author": "Autonomo (https://autonomo.fun)",