@compass-labs/api-sdk 2.1.1-rc.1 → 2.1.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.
Files changed (45) hide show
  1. package/README.md +2 -2
  2. package/bin/mcp-server.js +11 -11
  3. package/bin/mcp-server.js.map +9 -9
  4. package/dist/commonjs/funcs/earnEarnCreateAccount.d.ts +4 -4
  5. package/dist/commonjs/funcs/earnEarnCreateAccount.js +4 -4
  6. package/dist/commonjs/funcs/earnEarnManage.d.ts +2 -2
  7. package/dist/commonjs/funcs/earnEarnManage.js +2 -2
  8. package/dist/commonjs/funcs/earnEarnPositionsPositionId.d.ts +1 -1
  9. package/dist/commonjs/funcs/earnEarnPositionsPositionId.js +1 -1
  10. package/dist/commonjs/funcs/earnEarnTransfer.d.ts +3 -3
  11. package/dist/commonjs/funcs/earnEarnTransfer.js +3 -3
  12. package/dist/commonjs/mcp-server/tools/earnEarnCreateAccount.js +4 -4
  13. package/dist/commonjs/mcp-server/tools/earnEarnManage.js +2 -2
  14. package/dist/commonjs/mcp-server/tools/earnEarnManage.js.map +1 -1
  15. package/dist/commonjs/mcp-server/tools/earnEarnPositionsPositionId.js +1 -1
  16. package/dist/commonjs/mcp-server/tools/earnEarnTransfer.js +3 -3
  17. package/dist/commonjs/mcp-server/tools/earnEarnTransfer.js.map +1 -1
  18. package/dist/commonjs/sdk/earn.d.ts +10 -10
  19. package/dist/commonjs/sdk/earn.js +10 -10
  20. package/dist/esm/funcs/earnEarnCreateAccount.d.ts +4 -4
  21. package/dist/esm/funcs/earnEarnCreateAccount.js +4 -4
  22. package/dist/esm/funcs/earnEarnManage.d.ts +2 -2
  23. package/dist/esm/funcs/earnEarnManage.js +2 -2
  24. package/dist/esm/funcs/earnEarnPositionsPositionId.d.ts +1 -1
  25. package/dist/esm/funcs/earnEarnPositionsPositionId.js +1 -1
  26. package/dist/esm/funcs/earnEarnTransfer.d.ts +3 -3
  27. package/dist/esm/funcs/earnEarnTransfer.js +3 -3
  28. package/dist/esm/mcp-server/tools/earnEarnCreateAccount.js +4 -4
  29. package/dist/esm/mcp-server/tools/earnEarnManage.js +2 -2
  30. package/dist/esm/mcp-server/tools/earnEarnManage.js.map +1 -1
  31. package/dist/esm/mcp-server/tools/earnEarnPositionsPositionId.js +1 -1
  32. package/dist/esm/mcp-server/tools/earnEarnTransfer.js +3 -3
  33. package/dist/esm/mcp-server/tools/earnEarnTransfer.js.map +1 -1
  34. package/dist/esm/sdk/earn.d.ts +10 -10
  35. package/dist/esm/sdk/earn.js +10 -10
  36. package/package.json +1 -1
  37. package/src/funcs/earnEarnCreateAccount.ts +4 -4
  38. package/src/funcs/earnEarnManage.ts +2 -2
  39. package/src/funcs/earnEarnPositionsPositionId.ts +1 -1
  40. package/src/funcs/earnEarnTransfer.ts +3 -3
  41. package/src/mcp-server/tools/earnEarnCreateAccount.ts +4 -4
  42. package/src/mcp-server/tools/earnEarnManage.ts +2 -2
  43. package/src/mcp-server/tools/earnEarnPositionsPositionId.ts +1 -1
  44. package/src/mcp-server/tools/earnEarnTransfer.ts +3 -3
  45. package/src/sdk/earn.ts +10 -10
package/README.md CHANGED
@@ -253,7 +253,7 @@ run();
253
253
  ### [earn](docs/sdks/earn/README.md)
254
254
 
255
255
  * [earnPositions](docs/sdks/earn/README.md#earnpositions) - List earn positions
256
- * [earnPositionsPositionId](docs/sdks/earn/README.md#earnpositionspositionid) - Get individual earn position
256
+ * [earnPositionsPositionId](docs/sdks/earn/README.md#earnpositionspositionid) - Get earn position
257
257
  * [earnVaults](docs/sdks/earn/README.md#earnvaults) - List vaults
258
258
  * [earnCreateAccount](docs/sdks/earn/README.md#earncreateaccount) - Create earn account
259
259
  * [earnTransfer](docs/sdks/earn/README.md#earntransfer) - Transfer tokens to/from account
@@ -400,7 +400,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
400
400
  - [`earnEarnCreateAccount`](docs/sdks/earn/README.md#earncreateaccount) - Create earn account
401
401
  - [`earnEarnManage`](docs/sdks/earn/README.md#earnmanage) - Manage earn position
402
402
  - [`earnEarnPositions`](docs/sdks/earn/README.md#earnpositions) - List earn positions
403
- - [`earnEarnPositionsPositionId`](docs/sdks/earn/README.md#earnpositionspositionid) - Get individual earn position
403
+ - [`earnEarnPositionsPositionId`](docs/sdks/earn/README.md#earnpositionspositionid) - Get earn position
404
404
  - [`earnEarnTransfer`](docs/sdks/earn/README.md#earntransfer) - Transfer tokens to/from account
405
405
  - [`earnEarnVaults`](docs/sdks/earn/README.md#earnvaults) - List vaults
406
406
  - [`erc4626VaultsVaultsDeposit`](docs/sdks/erc4626vaults/README.md#vaultsdeposit) - Deposit to Vault
package/bin/mcp-server.js CHANGED
@@ -47817,15 +47817,15 @@ var init_earnEarnCreateAccount2 = __esm(() => {
47817
47817
  name: "earn-earn-create-account",
47818
47818
  description: `Create earn account
47819
47819
 
47820
- Create a Compass Earn Account.
47820
+ Create an Earn Account.
47821
47821
 
47822
- Before creating Earn positions you must create a Compass Earn Account. This account will be associated with the \`owner\` wallet address.
47822
+ Before creating Earn positions, the \`owner\` must create an Earn Account associated with their wallet address.
47823
47823
 
47824
47824
  Only the \`owner\` has the authority to sign transactions for this account. This can be done in one of two ways:
47825
47825
 
47826
- 1) The \`owner\` signs an unsigned transaction and submits to the network for execution. The \`owner\` covers the cost of gas in this case.
47826
+ 1) **No gas-sponsorship:** The \`owner\` signs a transaction and submits it to the network for execution. The \`owner\` covers the cost of gas in this case.
47827
47827
 
47828
- 2) The \`owner\` does an off-chain EIP-712 signature and submits this signature to the 'Prepare gas-sponsored transaction' endpoint (\`/gas_sponsorship/prepare\`).
47828
+ 2) **Gas-sponsorship:** The \`owner\` does an off-chain EIP-712 signature and submits this signature to the 'Prepare gas-sponsored transaction' endpoint (\`/gas_sponsorship/prepare\`). Here, another wallet address is set as \`sender\`. This wallet will sign, submit and cover the gas fees of the transaction.
47829
47829
 
47830
47830
  The creation of an Earn Account itself can be a gas-sponsored transaction by setting the \`sender\` to the wallet which will sign and send the transaction.`,
47831
47831
  args: args22,
@@ -47940,9 +47940,9 @@ If \`DEPOSIT\` is selected for \`action\`, tokens will be deposited to the marke
47940
47940
 
47941
47941
  If \`WITHDRAW\` is selected, tokens will be withdrawn from the market to the \`owner\`'s Earn Account.
47942
47942
 
47943
- A fee can be configured. This fee is deducted from the total \`amount\`. It can be expressed as a \`FIXED\` amount or a \`PERCENTAGE\`.
47943
+ A fee can be configured. This fee is deducted from the total \`amount\`. It can be expressed as a \`FIXED\` amount or a \`PERCENTAGE\` of \`amount\`.
47944
47944
 
47945
- The transaction can be gas-sponsored by an arbitrary wallet address. Where the owner of said wallet will sign, submit and pay the required gas for the transaction. If \`gas_sponsorship\` is set to \`true\`, EIP-712 typed data will be returned that must be signed by the \`owner\` and submitted to the 'Prepare gas-sponsored transaction' endpoint (\`/gas_sponsorship/prepare\`) where the \`sender\` of the transaction can be set.`,
47945
+ The transaction can be gas-sponsored by an arbitrary wallet address which will sign, submit and pay the required gas for the transaction. If \`gas_sponsorship\` is set to \`true\`, EIP-712 typed data will be returned that must be signed by the \`owner\` and submitted to the 'Prepare gas-sponsored transaction' endpoint (\`/gas_sponsorship/prepare\`) where the \`sender\` of the transaction can be set.`,
47946
47946
  args: args23,
47947
47947
  tool: async (client, args24, ctx) => {
47948
47948
  const [result, apiCall] = await earnEarnManage(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -48165,7 +48165,7 @@ var init_earnEarnPositionsPositionId2 = __esm(() => {
48165
48165
  };
48166
48166
  tool$earnEarnPositionsPositionId = {
48167
48167
  name: "earn-earn-positions-position-id",
48168
- description: `Get individual earn position
48168
+ description: `Get earn position
48169
48169
 
48170
48170
  This endpoint fetches a single Compass Earn position by its encoded ID.`,
48171
48171
  args: args25,
@@ -48270,14 +48270,14 @@ var init_earnEarnTransfer2 = __esm(() => {
48270
48270
  name: "earn-earn-transfer",
48271
48271
  description: `Transfer tokens to/from account
48272
48272
 
48273
- Transfer tokens to and from a Compass Earn Account.
48273
+ Transfer tokens to and from an Earn Account.
48274
48274
 
48275
48275
  If \`DEPOSIT\`'\` is selected, tokens will be transferred from the \`owner\`'s wallet into their Earn Account.
48276
48276
 
48277
48277
  If \`WITHDRAW\` is selected, tokens will be transferred from the \`owner\`'s Earn Account into their wallet.
48278
48278
 
48279
- If a gas-sponsored \`DEPOSIT\` transfer is desired for a given token, a one-time Permit2 allowance must be set before proceeding. This is common practice for many other applications and, for many users, this one-time allowance will already have been set for the token they would like to transfer.
48280
- Once the one-time allowance is set for a given token, EIP-712 typed data will be returned and can be signed off-chain by the user. This signature can then be submitted to the 'Prepare gas-sponsored transaction' endpoint (\`/gas_sponsorship/prepare\`).`,
48279
+ If a gas-sponsored \`DEPOSIT\` transfer is desired for a given token, a one-time Permit2 allowance must be set before proceeding. This is common practice for many other applications and, for many \`owner\`s, this one-time allowance will already have been set for the token they would like to transfer.
48280
+ Once the one-time allowance is set for a given token and \`gas_sponsorship\` is set to 'true', EIP-712 typed data will be returned and can be signed off-chain by the user. This signature can then be submitted to the 'Prepare gas-sponsored transaction' endpoint (\`/gas_sponsorship/prepare\`) where a \`sender\` can be set for the transaction.`,
48281
48281
  args: args26,
48282
48282
  tool: async (client, args27, ctx) => {
48283
48283
  const [result, apiCall] = await earnEarnTransfer(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -56562,5 +56562,5 @@ export {
56562
56562
  app
56563
56563
  };
56564
56564
 
56565
- //# debugId=B32A35E8492910EB64756E2164756E21
56565
+ //# debugId=82051501CC880E9464756E2164756E21
56566
56566
  //# sourceMappingURL=mcp-server.js.map