@avaprotocol/sdk-js 4.0.0-dev.0 → 4.0.0-dev.2

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.
Files changed (90) hide show
  1. package/dist/index.js +874 -14
  2. package/dist/index.mjs +873 -14
  3. package/dist/v4/builders/nodes.d.ts +5 -2
  4. package/dist/v4/builders/nodes.d.ts.map +1 -1
  5. package/dist/v4/builders/nodes.js +1 -0
  6. package/dist/v4/index.d.ts +1 -0
  7. package/dist/v4/index.d.ts.map +1 -1
  8. package/dist/v4/index.js +1 -0
  9. package/dist/v4/protocols/aave-v3.d.ts +21 -0
  10. package/dist/v4/protocols/aave-v3.d.ts.map +1 -0
  11. package/dist/v4/protocols/aave-v3.js +238 -0
  12. package/dist/v4/protocols/aerodrome.d.ts +4 -0
  13. package/dist/v4/protocols/aerodrome.d.ts.map +1 -0
  14. package/dist/v4/protocols/aerodrome.js +9 -0
  15. package/dist/v4/protocols/chainlink.d.ts +7 -0
  16. package/dist/v4/protocols/chainlink.d.ts.map +1 -0
  17. package/dist/v4/protocols/chainlink.js +25 -0
  18. package/dist/v4/protocols/common.d.ts +16 -0
  19. package/dist/v4/protocols/common.d.ts.map +1 -0
  20. package/dist/v4/protocols/common.js +76 -0
  21. package/dist/v4/protocols/compound-v3.d.ts +4 -0
  22. package/dist/v4/protocols/compound-v3.d.ts.map +1 -0
  23. package/dist/v4/protocols/compound-v3.js +15 -0
  24. package/dist/v4/protocols/erc20.d.ts +5 -0
  25. package/dist/v4/protocols/erc20.d.ts.map +1 -0
  26. package/dist/v4/protocols/erc20.js +18 -0
  27. package/dist/v4/protocols/ethena.d.ts +7 -0
  28. package/dist/v4/protocols/ethena.d.ts.map +1 -0
  29. package/dist/v4/protocols/ethena.js +58 -0
  30. package/dist/v4/protocols/frax-ether.d.ts +7 -0
  31. package/dist/v4/protocols/frax-ether.d.ts.map +1 -0
  32. package/dist/v4/protocols/frax-ether.js +20 -0
  33. package/dist/v4/protocols/index.d.ts +132 -0
  34. package/dist/v4/protocols/index.d.ts.map +1 -0
  35. package/dist/v4/protocols/index.js +87 -0
  36. package/dist/v4/protocols/lido.d.ts +7 -0
  37. package/dist/v4/protocols/lido.d.ts.map +1 -0
  38. package/dist/v4/protocols/lido.js +44 -0
  39. package/dist/v4/protocols/morpho.d.ts +6 -0
  40. package/dist/v4/protocols/morpho.d.ts.map +1 -0
  41. package/dist/v4/protocols/morpho.js +89 -0
  42. package/dist/v4/protocols/rocket-pool.d.ts +6 -0
  43. package/dist/v4/protocols/rocket-pool.d.ts.map +1 -0
  44. package/dist/v4/protocols/rocket-pool.js +36 -0
  45. package/dist/v4/protocols/sky.d.ts +6 -0
  46. package/dist/v4/protocols/sky.d.ts.map +1 -0
  47. package/dist/v4/protocols/sky.js +13 -0
  48. package/dist/v4/protocols/spark.d.ts +4 -0
  49. package/dist/v4/protocols/spark.d.ts.map +1 -0
  50. package/dist/v4/protocols/spark.js +15 -0
  51. package/dist/v4/protocols/superfluid.d.ts +6 -0
  52. package/dist/v4/protocols/superfluid.d.ts.map +1 -0
  53. package/dist/v4/protocols/superfluid.js +39 -0
  54. package/dist/v4/protocols/types.d.ts +17 -0
  55. package/dist/v4/protocols/types.d.ts.map +1 -0
  56. package/dist/v4/protocols/types.js +1 -0
  57. package/dist/v4/protocols/uniswap-v3.d.ts +27 -0
  58. package/dist/v4/protocols/uniswap-v3.d.ts.map +1 -0
  59. package/dist/v4/protocols/uniswap-v3.js +197 -0
  60. package/dist/v4/protocols/wrapped.d.ts +6 -0
  61. package/dist/v4/protocols/wrapped.d.ts.map +1 -0
  62. package/dist/v4/protocols/wrapped.js +55 -0
  63. package/dist/v4/resources/executions.d.ts +6 -0
  64. package/dist/v4/resources/executions.d.ts.map +1 -1
  65. package/dist/v4/resources/executions.js +6 -0
  66. package/dist/v4/resources/health.d.ts +11 -1
  67. package/dist/v4/resources/health.d.ts.map +1 -1
  68. package/dist/v4/resources/health.js +11 -1
  69. package/dist/v4/resources/nodes.d.ts +21 -1
  70. package/dist/v4/resources/nodes.d.ts.map +1 -1
  71. package/dist/v4/resources/nodes.js +21 -1
  72. package/dist/v4/resources/operators.d.ts +15 -1
  73. package/dist/v4/resources/operators.d.ts.map +1 -1
  74. package/dist/v4/resources/operators.js +15 -1
  75. package/dist/v4/resources/secrets.d.ts +10 -0
  76. package/dist/v4/resources/secrets.d.ts.map +1 -1
  77. package/dist/v4/resources/secrets.js +10 -0
  78. package/dist/v4/resources/tokens.d.ts +16 -4
  79. package/dist/v4/resources/tokens.d.ts.map +1 -1
  80. package/dist/v4/resources/tokens.js +16 -4
  81. package/dist/v4/resources/triggers.d.ts +21 -1
  82. package/dist/v4/resources/triggers.d.ts.map +1 -1
  83. package/dist/v4/resources/triggers.js +21 -1
  84. package/dist/v4/resources/wallets.d.ts +53 -6
  85. package/dist/v4/resources/wallets.d.ts.map +1 -1
  86. package/dist/v4/resources/wallets.js +53 -6
  87. package/dist/v4/resources/workflows.d.ts +10 -0
  88. package/dist/v4/resources/workflows.d.ts.map +1 -1
  89. package/dist/v4/resources/workflows.js +10 -0
  90. package/package.json +7 -2
@@ -1,25 +1,72 @@
1
1
  import type { v4 } from "@avaprotocol/types";
2
2
  import { Transport } from "../internal/transport";
3
+ /**
4
+ * `client.wallets.*` — smart-wallet CRUD plus the UserOp-driven
5
+ * withdraw action. A "wallet" here is an ERC-6900 / ERC-4337 smart
6
+ * account derived deterministically from `(owner, factory, salt)` —
7
+ * the SDK never creates an EOA, it ensures-and-registers smart
8
+ * accounts owned by the authenticated user's EOA.
9
+ *
10
+ * All endpoints require auth and operate on wallets owned by the
11
+ * JWT's subject EOA.
12
+ */
3
13
  export declare class WalletsResource {
4
14
  private readonly transport;
5
15
  constructor(transport: Transport);
6
- /** GET /wallets */
16
+ /**
17
+ * GET /wallets — every smart wallet owned by the authenticated
18
+ * EOA on the JWT's audience chain.
19
+ *
20
+ * Hidden wallets (`isHidden=true`) are excluded by default. The
21
+ * response is an envelope `{ data: Wallet[] }`, not a bare array.
22
+ */
7
23
  list(): Promise<v4.WalletList>;
8
24
  /**
9
25
  * POST /wallets — idempotent "ensure exists". Derives the CREATE2
10
- * address from (owner, salt, factory) and persists the record.
26
+ * address from `(owner, salt, factory)` and persists the record;
27
+ * calling twice with the same triple returns the same address.
28
+ *
29
+ * The on-chain account is **not** deployed by this call — deployment
30
+ * happens lazily as part of the first UserOp (workflow execution or
31
+ * `withdraw`) via the `initCode` field, so the smart wallet costs
32
+ * zero gas until it's first used.
33
+ *
34
+ * Per-owner cap is enforced by `max_wallets_per_owner` in the
35
+ * aggregator config; the call returns 429 `WALLETS_LIMIT_REACHED`
36
+ * when exceeded.
11
37
  */
12
38
  create(req: v4.CreateWalletRequest): Promise<v4.Wallet>;
13
39
  /**
14
- * PATCH /wallets/{address} — partial update. Today the only
15
- * mutable field is `isHidden`.
40
+ * PATCH /wallets/{address} — partial update. The only mutable
41
+ * field today is `isHidden`, used by the Studio UI's hide/unhide
42
+ * wallet action. Keyed by **address**, not salt — callers that
43
+ * still think in salts must look up the address first via
44
+ * `create({ salt })`.
16
45
  */
17
46
  update(address: string, body: {
18
47
  isHidden?: boolean;
19
48
  }): Promise<v4.Wallet>;
20
- /** POST /wallets/{address}:withdraw — UserOp-driven withdraw. */
49
+ /**
50
+ * POST /wallets/{address}:withdraw — transfer ETH or an ERC-20 out
51
+ * of the smart wallet via a UserOp through the bundler + paymaster.
52
+ *
53
+ * Per-chain config (bundler URL, paymaster address, RPC) is resolved
54
+ * by the gateway from the JWT's `aud` claim or `body.chainId`.
55
+ * The response's `status` is one of `pending | confirmed | failed`:
56
+ * `confirmed` means the bundler returned a receipt synchronously,
57
+ * `pending` means it accepted the UserOp but the receipt hasn't
58
+ * landed yet, `failed` means the bundler rejected the op or it
59
+ * reverted before inclusion.
60
+ */
21
61
  withdraw(address: string, req: v4.WithdrawRequest): Promise<v4.WithdrawResponse>;
22
- /** GET /wallets/{address}:getNonce */
62
+ /**
63
+ * GET /wallets/{address}:getNonce — current AA nonce for the wallet.
64
+ *
65
+ * Used when an external signer needs to assemble a UserOp outside
66
+ * the SDK's bundler path. Most callers don't need this directly —
67
+ * `workflows.simulate` and `wallets.withdraw` handle nonce sourcing
68
+ * internally.
69
+ */
23
70
  getNonce(address: string): Promise<v4.NonceResponse>;
24
71
  }
25
72
  //# sourceMappingURL=wallets.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wallets.d.ts","sourceRoot":"","sources":["../../../src/v4/resources/wallets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,qBAAa,eAAe;IACd,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,SAAS;IAEjD,mBAAmB;IACnB,IAAI,IAAI,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC;IAI9B;;;OAGG;IACH,MAAM,CAAC,GAAG,EAAE,EAAE,CAAC,mBAAmB,GAAG,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC;IAQvD;;;OAGG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC;IAQzE,iEAAiE;IACjE,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,eAAe,GAAG,OAAO,CAAC,EAAE,CAAC,gBAAgB,CAAC;IAQhF,sCAAsC;IACtC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,EAAE,CAAC,aAAa,CAAC;CAKrD"}
1
+ {"version":3,"file":"wallets.d.ts","sourceRoot":"","sources":["../../../src/v4/resources/wallets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;GASG;AACH,qBAAa,eAAe;IACd,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,SAAS;IAEjD;;;;;;OAMG;IACH,IAAI,IAAI,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC;IAI9B;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,GAAG,EAAE,EAAE,CAAC,mBAAmB,GAAG,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC;IAQvD;;;;;;OAMG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC;IAQzE;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,eAAe,GAAG,OAAO,CAAC,EAAE,CAAC,gBAAgB,CAAC;IAQhF;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,EAAE,CAAC,aAAa,CAAC;CAKrD"}
@@ -1,14 +1,40 @@
1
+ /**
2
+ * `client.wallets.*` — smart-wallet CRUD plus the UserOp-driven
3
+ * withdraw action. A "wallet" here is an ERC-6900 / ERC-4337 smart
4
+ * account derived deterministically from `(owner, factory, salt)` —
5
+ * the SDK never creates an EOA, it ensures-and-registers smart
6
+ * accounts owned by the authenticated user's EOA.
7
+ *
8
+ * All endpoints require auth and operate on wallets owned by the
9
+ * JWT's subject EOA.
10
+ */
1
11
  export class WalletsResource {
2
12
  constructor(transport) {
3
13
  this.transport = transport;
4
14
  }
5
- /** GET /wallets */
15
+ /**
16
+ * GET /wallets — every smart wallet owned by the authenticated
17
+ * EOA on the JWT's audience chain.
18
+ *
19
+ * Hidden wallets (`isHidden=true`) are excluded by default. The
20
+ * response is an envelope `{ data: Wallet[] }`, not a bare array.
21
+ */
6
22
  list() {
7
23
  return this.transport.request({ path: "/wallets" });
8
24
  }
9
25
  /**
10
26
  * POST /wallets — idempotent "ensure exists". Derives the CREATE2
11
- * address from (owner, salt, factory) and persists the record.
27
+ * address from `(owner, salt, factory)` and persists the record;
28
+ * calling twice with the same triple returns the same address.
29
+ *
30
+ * The on-chain account is **not** deployed by this call — deployment
31
+ * happens lazily as part of the first UserOp (workflow execution or
32
+ * `withdraw`) via the `initCode` field, so the smart wallet costs
33
+ * zero gas until it's first used.
34
+ *
35
+ * Per-owner cap is enforced by `max_wallets_per_owner` in the
36
+ * aggregator config; the call returns 429 `WALLETS_LIMIT_REACHED`
37
+ * when exceeded.
12
38
  */
13
39
  create(req) {
14
40
  return this.transport.request({
@@ -18,8 +44,11 @@ export class WalletsResource {
18
44
  });
19
45
  }
20
46
  /**
21
- * PATCH /wallets/{address} — partial update. Today the only
22
- * mutable field is `isHidden`.
47
+ * PATCH /wallets/{address} — partial update. The only mutable
48
+ * field today is `isHidden`, used by the Studio UI's hide/unhide
49
+ * wallet action. Keyed by **address**, not salt — callers that
50
+ * still think in salts must look up the address first via
51
+ * `create({ salt })`.
23
52
  */
24
53
  update(address, body) {
25
54
  return this.transport.request({
@@ -28,7 +57,18 @@ export class WalletsResource {
28
57
  body,
29
58
  });
30
59
  }
31
- /** POST /wallets/{address}:withdraw — UserOp-driven withdraw. */
60
+ /**
61
+ * POST /wallets/{address}:withdraw — transfer ETH or an ERC-20 out
62
+ * of the smart wallet via a UserOp through the bundler + paymaster.
63
+ *
64
+ * Per-chain config (bundler URL, paymaster address, RPC) is resolved
65
+ * by the gateway from the JWT's `aud` claim or `body.chainId`.
66
+ * The response's `status` is one of `pending | confirmed | failed`:
67
+ * `confirmed` means the bundler returned a receipt synchronously,
68
+ * `pending` means it accepted the UserOp but the receipt hasn't
69
+ * landed yet, `failed` means the bundler rejected the op or it
70
+ * reverted before inclusion.
71
+ */
32
72
  withdraw(address, req) {
33
73
  return this.transport.request({
34
74
  path: `/wallets/${encodeURIComponent(address)}:withdraw`,
@@ -36,7 +76,14 @@ export class WalletsResource {
36
76
  body: req,
37
77
  });
38
78
  }
39
- /** GET /wallets/{address}:getNonce */
79
+ /**
80
+ * GET /wallets/{address}:getNonce — current AA nonce for the wallet.
81
+ *
82
+ * Used when an external signer needs to assemble a UserOp outside
83
+ * the SDK's bundler path. Most callers don't need this directly —
84
+ * `workflows.simulate` and `wallets.withdraw` handle nonce sourcing
85
+ * internally.
86
+ */
40
87
  getNonce(address) {
41
88
  return this.transport.request({
42
89
  path: `/wallets/${encodeURIComponent(address)}:getNonce`,
@@ -24,6 +24,16 @@ export interface CountWorkflowsParams {
24
24
  status?: v4.WorkflowStatus[];
25
25
  chainId?: number;
26
26
  }
27
+ /**
28
+ * `client.workflows.*` — the primary surface for creating and
29
+ * controlling automations. A "workflow" is one trigger + a DAG of
30
+ * nodes that fires when the trigger condition matches. This resource
31
+ * covers the full lifecycle: create, list, retrieve, pause / resume,
32
+ * cancel, manual trigger, dry-run simulation, and fee estimation.
33
+ *
34
+ * Executions produced by these workflows are read via
35
+ * [`ExecutionsResource`](ExecutionsResource.mdx).
36
+ */
27
37
  export declare class WorkflowsResource {
28
38
  private readonly transport;
29
39
  constructor(transport: Transport);
@@ -1 +1 @@
1
- {"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../../src/v4/resources/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;GAQG;AACH,MAAM,WAAW,mBAAmB;IAClC,uEAAuE;IACvE,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,wDAAwD;IACxD,MAAM,CAAC,EAAE,EAAE,CAAC,cAAc,EAAE,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,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AC;IAM1C;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAOjC,iCAAiC;IACjC,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC;IAOvC,kCAAkC;IAClC,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC;IAOxC,mCAAmC;IACnC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,sBAAsB,GAAG,OAAO,CAAC,EAAE,CAAC,uBAAuB,CAAC;IAQxF,0DAA0D;IAC1D,QAAQ,CAAC,GAAG,EAAE,EAAE,CAAC,uBAAuB,GAAG,OAAO,CAAC,EAAE,CAAC,SAAS,CAAC;IAQhE,mCAAmC;IACnC,YAAY,CAAC,GAAG,EAAE,EAAE,CAAC,mBAAmB,GAAG,OAAO,CAAC,EAAE,CAAC,oBAAoB,CAAC;IAQ3E,2BAA2B;IAC3B,KAAK,CAAC,MAAM,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,EAAE,CAAC,aAAa,CAAC;CAMhE"}
@@ -1,3 +1,13 @@
1
+ /**
2
+ * `client.workflows.*` — the primary surface for creating and
3
+ * controlling automations. A "workflow" is one trigger + a DAG of
4
+ * nodes that fires when the trigger condition matches. This resource
5
+ * covers the full lifecycle: create, list, retrieve, pause / resume,
6
+ * cancel, manual trigger, dry-run simulation, and fee estimation.
7
+ *
8
+ * Executions produced by these workflows are read via
9
+ * [`ExecutionsResource`](ExecutionsResource.mdx).
10
+ */
1
11
  export class WorkflowsResource {
2
12
  constructor(transport) {
3
13
  this.transport = transport;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avaprotocol/sdk-js",
3
- "version": "4.0.0-dev.0",
3
+ "version": "4.0.0-dev.2",
4
4
  "description": "TypeScript SDK for Ava Protocol's AVS REST API (v4). Resource-grouped sub-clients, fetch transport, EIP-191 auth.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -27,12 +27,17 @@
27
27
  "build:declarations": "tsc -b tsconfig.json",
28
28
  "build:js": "tsup src/index.ts --format cjs,esm",
29
29
  "build": "yarn build:declarations && yarn build:js",
30
- "clean": "rm -rf node_modules dist tsconfig.tsbuildinfo",
30
+ "clean": "rm -rf node_modules dist tsconfig.tsbuildinfo docs-api",
31
+ "docs": "typedoc && node scripts/flatten-docs.js",
31
32
  "prepare": "node ../../scripts/prepare-package.js"
32
33
  },
33
34
  "dependencies": {
34
35
  "@avaprotocol/types": "4.0.0-dev.0",
35
36
  "dotenv": "^16.4.5",
36
37
  "ethers": "^6.13.2"
38
+ },
39
+ "devDependencies": {
40
+ "typedoc": "^0.28.19",
41
+ "typedoc-plugin-markdown": "^4.11.0"
37
42
  }
38
43
  }