@compass-labs/api-sdk 2.1.26-rc.9 → 2.1.26

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 (53) hide show
  1. package/codeSamples_typescript.yaml +6 -6
  2. package/dist/commonjs/funcs/earnEarnManage.d.ts +4 -1
  3. package/dist/commonjs/funcs/earnEarnManage.d.ts.map +1 -1
  4. package/dist/commonjs/funcs/earnEarnManage.js +4 -1
  5. package/dist/commonjs/funcs/earnEarnManage.js.map +1 -1
  6. package/dist/commonjs/funcs/earnEarnPositions.js +1 -1
  7. package/dist/commonjs/funcs/earnEarnPositions.js.map +1 -1
  8. package/dist/commonjs/models/components/fee.d.ts +6 -5
  9. package/dist/commonjs/models/components/fee.d.ts.map +1 -1
  10. package/dist/commonjs/models/components/fee.js +2 -1
  11. package/dist/commonjs/models/components/fee.js.map +1 -1
  12. package/dist/commonjs/models/operations/v2earnpositions.d.ts +3 -3
  13. package/dist/commonjs/models/operations/v2earnpositions.d.ts.map +1 -1
  14. package/dist/commonjs/models/operations/v2earnpositions.js +1 -6
  15. package/dist/commonjs/models/operations/v2earnpositions.js.map +1 -1
  16. package/dist/commonjs/sdk/earn.d.ts +4 -1
  17. package/dist/commonjs/sdk/earn.d.ts.map +1 -1
  18. package/dist/commonjs/sdk/earn.js +4 -1
  19. package/dist/commonjs/sdk/earn.js.map +1 -1
  20. package/dist/esm/funcs/earnEarnManage.d.ts +4 -1
  21. package/dist/esm/funcs/earnEarnManage.d.ts.map +1 -1
  22. package/dist/esm/funcs/earnEarnManage.js +4 -1
  23. package/dist/esm/funcs/earnEarnManage.js.map +1 -1
  24. package/dist/esm/funcs/earnEarnPositions.js +1 -1
  25. package/dist/esm/funcs/earnEarnPositions.js.map +1 -1
  26. package/dist/esm/models/components/fee.d.ts +6 -5
  27. package/dist/esm/models/components/fee.d.ts.map +1 -1
  28. package/dist/esm/models/components/fee.js +2 -1
  29. package/dist/esm/models/components/fee.js.map +1 -1
  30. package/dist/esm/models/operations/v2earnpositions.d.ts +3 -3
  31. package/dist/esm/models/operations/v2earnpositions.d.ts.map +1 -1
  32. package/dist/esm/models/operations/v2earnpositions.js +1 -6
  33. package/dist/esm/models/operations/v2earnpositions.js.map +1 -1
  34. package/dist/esm/sdk/earn.d.ts +4 -1
  35. package/dist/esm/sdk/earn.d.ts.map +1 -1
  36. package/dist/esm/sdk/earn.js +4 -1
  37. package/dist/esm/sdk/earn.js.map +1 -1
  38. package/docs/models/components/createaccountrequest.md +2 -2
  39. package/docs/models/components/denomination.md +2 -2
  40. package/docs/models/components/earnmanagerequest.md +1 -1
  41. package/docs/models/components/earnswaprequest.md +1 -1
  42. package/docs/models/components/earntransferrequest.md +1 -1
  43. package/docs/models/components/fee.md +5 -5
  44. package/docs/models/components/feeamount.md +1 -1
  45. package/docs/models/components/v2bundlerequest.md +1 -1
  46. package/docs/models/operations/v2earnpositionsrequest.md +2 -2
  47. package/docs/sdks/earn/README.md +18 -15
  48. package/package.json +1 -1
  49. package/src/funcs/earnEarnManage.ts +4 -1
  50. package/src/funcs/earnEarnPositions.ts +1 -1
  51. package/src/models/components/fee.ts +6 -5
  52. package/src/models/operations/v2earnpositions.ts +4 -9
  53. package/src/sdk/earn.ts +4 -1
@@ -506,37 +506,37 @@ actions:
506
506
  "x-codeSamples":
507
507
  - "lang": "typescript"
508
508
  "label": "Typescript (SDK)"
509
- "source": "import { CompassApiSDK } from \"@compass-labs/api-sdk\";\n\nconst compassApiSDK = new CompassApiSDK({\n apiKeyAuth: \"<YOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await compassApiSDK.earn.earnBundle({\n owner: \"0x0B8A11cF0679F163087802c4428F640cA7C89926\",\n chain: \"ethereum\",\n actions: [\n {\n body: {\n actionType: \"V2_SWAP\",\n tokenIn: \"USDC\",\n tokenOut: \"AUSD\",\n amountIn: \"100\",\n slippage: \"0.5\",\n },\n },\n {\n body: {\n actionType: \"V2_MANAGE\",\n venue: {\n type: \"VAULT\",\n vaultAddress: \"0x1B4cd53a1A8e5F50aB6320EF34E5fB4D3df7B6f6\",\n },\n action: \"DEPOSIT\",\n amount: \"ALL\",\n },\n },\n ],\n gasSponsorship: false,\n });\n\n console.log(result);\n}\n\nrun();"
509
+ "source": "import { CompassApiSDK } from \"@compass-labs/api-sdk\";\n\nconst compassApiSDK = new CompassApiSDK({\n apiKeyAuth: \"<YOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await compassApiSDK.earn.earnBundle({\n owner: \"0x01E62835dd7F52173546A325294762143eE4a882\",\n chain: \"ethereum\",\n actions: [\n {\n body: {\n actionType: \"V2_SWAP\",\n tokenIn: \"USDC\",\n tokenOut: \"AUSD\",\n amountIn: \"100\",\n slippage: \"0.5\",\n },\n },\n {\n body: {\n actionType: \"V2_MANAGE\",\n venue: {\n type: \"VAULT\",\n vaultAddress: \"0x1B4cd53a1A8e5F50aB6320EF34E5fB4D3df7B6f6\",\n },\n action: \"DEPOSIT\",\n amount: \"ALL\",\n },\n },\n ],\n gasSponsorship: false,\n });\n\n console.log(result);\n}\n\nrun();"
510
510
  - target: $["paths"]["/v2/earn/create_account"]["post"]
511
511
  update:
512
512
  "x-codeSamples":
513
513
  - "lang": "typescript"
514
514
  "label": "Typescript (SDK)"
515
- "source": "import { CompassApiSDK } from \"@compass-labs/api-sdk\";\n\nconst compassApiSDK = new CompassApiSDK({\n apiKeyAuth: \"<YOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await compassApiSDK.earn.earnCreateAccount({\n chain: \"base\",\n sender: \"0x9a30797cA5467fBaA1D74574886FeC5F79ae407A\",\n owner: \"0x9a30797cA5467fBaA1D74574886FeC5F79ae407A\",\n });\n\n console.log(result);\n}\n\nrun();"
515
+ "source": "import { CompassApiSDK } from \"@compass-labs/api-sdk\";\n\nconst compassApiSDK = new CompassApiSDK({\n apiKeyAuth: \"<YOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await compassApiSDK.earn.earnCreateAccount({\n chain: \"base\",\n sender: \"0x01E62835dd7F52173546A325294762143eE4a882\",\n owner: \"0x01E62835dd7F52173546A325294762143eE4a882\",\n });\n\n console.log(result);\n}\n\nrun();"
516
516
  - target: $["paths"]["/v2/earn/manage"]["post"]
517
517
  update:
518
518
  "x-codeSamples":
519
519
  - "lang": "typescript"
520
520
  "label": "Typescript (SDK)"
521
- "source": "import { CompassApiSDK } from \"@compass-labs/api-sdk\";\n\nconst compassApiSDK = new CompassApiSDK({\n apiKeyAuth: \"<YOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await compassApiSDK.earn.earnManage({\n venue: {\n type: \"VAULT\",\n vaultAddress: \"0x7BfA7C4f149E7415b73bdeDfe609237e29CBF34A\",\n },\n action: \"DEPOSIT\",\n amount: \"0.01\",\n owner: \"0xe5310C39a8A8f16E6126ee6B1006bf6eD58B3A49\",\n chain: \"base\",\n gasSponsorship: false,\n });\n\n console.log(result);\n}\n\nrun();"
521
+ "source": "import { CompassApiSDK } from \"@compass-labs/api-sdk\";\n\nconst compassApiSDK = new CompassApiSDK({\n apiKeyAuth: \"<YOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await compassApiSDK.earn.earnManage({\n venue: {\n type: \"VAULT\",\n vaultAddress: \"0x7BfA7C4f149E7415b73bdeDfe609237e29CBF34A\",\n },\n action: \"DEPOSIT\",\n amount: \"0.01\",\n owner: \"0x01E62835dd7F52173546A325294762143eE4a882\",\n chain: \"base\",\n gasSponsorship: false,\n });\n\n console.log(result);\n}\n\nrun();"
522
522
  - target: $["paths"]["/v2/earn/positions"]["get"]
523
523
  update:
524
524
  "x-codeSamples":
525
525
  - "lang": "typescript"
526
526
  "label": "Typescript (SDK)"
527
- "source": "import { CompassApiSDK } from \"@compass-labs/api-sdk\";\n\nconst compassApiSDK = new CompassApiSDK({\n apiKeyAuth: \"<YOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await compassApiSDK.earn.earnPositions({\n offset: 0,\n limit: 100,\n chain: \"base\",\n userAddress: \"0x7fD8D98Afe730c9aE9b584f1D815f8dA1B4B4d4c\",\n });\n\n console.log(result);\n}\n\nrun();"
527
+ "source": "import { CompassApiSDK } from \"@compass-labs/api-sdk\";\n\nconst compassApiSDK = new CompassApiSDK({\n apiKeyAuth: \"<YOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await compassApiSDK.earn.earnPositions({\n offset: 0,\n limit: 100,\n chain: \"base\",\n owner: \"0x01E62835dd7F52173546A325294762143eE4a882\",\n });\n\n console.log(result);\n}\n\nrun();"
528
528
  - target: $["paths"]["/v2/earn/swap"]["post"]
529
529
  update:
530
530
  "x-codeSamples":
531
531
  - "lang": "typescript"
532
532
  "label": "Typescript (SDK)"
533
- "source": "import { CompassApiSDK } from \"@compass-labs/api-sdk\";\n\nconst compassApiSDK = new CompassApiSDK({\n apiKeyAuth: \"<YOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await compassApiSDK.earn.earnSwap({\n tokenIn: \"USDC\",\n tokenOut: \"USDT\",\n amountIn: \"0.01\",\n slippage: \"0.5\",\n owner: \"0xC1be8f91480648De355a45f3E2562811b4e2D3FF\",\n chain: \"base\",\n gasSponsorship: false,\n });\n\n console.log(result);\n}\n\nrun();"
533
+ "source": "import { CompassApiSDK } from \"@compass-labs/api-sdk\";\n\nconst compassApiSDK = new CompassApiSDK({\n apiKeyAuth: \"<YOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await compassApiSDK.earn.earnSwap({\n tokenIn: \"USDC\",\n tokenOut: \"USDT\",\n amountIn: \"0.01\",\n slippage: \"0.5\",\n owner: \"0x01E62835dd7F52173546A325294762143eE4a882\",\n chain: \"base\",\n gasSponsorship: false,\n });\n\n console.log(result);\n}\n\nrun();"
534
534
  - target: $["paths"]["/v2/earn/transfer"]["post"]
535
535
  update:
536
536
  "x-codeSamples":
537
537
  - "lang": "typescript"
538
538
  "label": "Typescript (SDK)"
539
- "source": "import { CompassApiSDK } from \"@compass-labs/api-sdk\";\n\nconst compassApiSDK = new CompassApiSDK({\n apiKeyAuth: \"<YOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await compassApiSDK.earn.earnTransfer({\n owner: \"0xE4780eeB4D345576dE762573cEA0F269b3099adE\",\n chain: \"base\",\n token: \"USDC\",\n amount: \"0.01\",\n action: \"DEPOSIT\",\n });\n\n console.log(result);\n}\n\nrun();"
539
+ "source": "import { CompassApiSDK } from \"@compass-labs/api-sdk\";\n\nconst compassApiSDK = new CompassApiSDK({\n apiKeyAuth: \"<YOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await compassApiSDK.earn.earnTransfer({\n owner: \"0x01E62835dd7F52173546A325294762143eE4a882\",\n chain: \"base\",\n token: \"USDC\",\n amount: \"0.01\",\n action: \"DEPOSIT\",\n });\n\n console.log(result);\n}\n\nrun();"
540
540
  - target: $["paths"]["/v2/earn/vaults"]["get"]
541
541
  update:
542
542
  "x-codeSamples":
@@ -24,7 +24,10 @@ import { Result } from "../types/fp.js";
24
24
  *
25
25
  * If `WITHDRAW` is selected for `action`, tokens will be withdrawn from the selected venue address back into the Earn Account associated with the `owner` wallet.
26
26
  *
27
- * 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`.
27
+ * A fee can be configured. This fee is deducted from the total `amount`. It can be expressed as:
28
+ * - `FIXED`: a fixed token amount (e.g., 0.1 means 0.1 tokens)
29
+ * - `PERCENTAGE`: a percentage of the transaction amount (e.g., 1.5 means 1.5%)
30
+ * - `PERFORMANCE`: a percentage of realized profit using FIFO cost basis (e.g., 10 means 10% of profit). Only applicable for withdrawals.
28
31
  *
29
32
  * 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.
30
33
  */
@@ -1 +1 @@
1
- {"version":3,"file":"earnEarnManage.d.ts","sourceRoot":"","sources":["../../../src/funcs/earnEarnManage.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAK/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,kBAAkB,EAC3B,MAAM,CAAC,mBAAmB,GAC1B,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
1
+ {"version":3,"file":"earnEarnManage.d.ts","sourceRoot":"","sources":["../../../src/funcs/earnEarnManage.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAK/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,kBAAkB,EAC3B,MAAM,CAAC,mBAAmB,GAC1B,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -62,7 +62,10 @@ const async_js_1 = require("../types/async.js");
62
62
  *
63
63
  * If `WITHDRAW` is selected for `action`, tokens will be withdrawn from the selected venue address back into the Earn Account associated with the `owner` wallet.
64
64
  *
65
- * 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`.
65
+ * A fee can be configured. This fee is deducted from the total `amount`. It can be expressed as:
66
+ * - `FIXED`: a fixed token amount (e.g., 0.1 means 0.1 tokens)
67
+ * - `PERCENTAGE`: a percentage of the transaction amount (e.g., 1.5 means 1.5%)
68
+ * - `PERFORMANCE`: a percentage of realized profit using FIFO cost basis (e.g., 10 means 10% of profit). Only applicable for withdrawals.
66
69
  *
67
70
  * 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.
68
71
  */
@@ -1 +1 @@
1
- {"version":3,"file":"earnEarnManage.js","sourceRoot":"","sources":["../../../src/funcs/earnEarnManage.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CH,wCAuBC;AAjED,sDAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAS5D,kEAAoD;AAGpD,gDAAwD;AAGxD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,cAAc,CAC5B,MAAyB,EACzB,OAAqC,EACrC,OAAwB;IAexB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAyB,EACzB,OAAqC,EACrC,OAAwB;IAkBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,gCAAgC,CAAC,KAAK,CAAC,KAAK,CAAC,EACnE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAA,yBAAU,EAAC,MAAM,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAE5D,MAAM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,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -68,7 +68,7 @@ async function $do(client, request, options) {
68
68
  "chain": payload.chain,
69
69
  "limit": payload.limit,
70
70
  "offset": payload.offset,
71
- "user_address": payload.user_address,
71
+ "owner": payload.owner,
72
72
  });
73
73
  const headers = new Headers((0, primitives_js_1.compactMap)({
74
74
  Accept: "application/json",
@@ -1 +1 @@
1
- {"version":3,"file":"earnEarnPositions.js","sourceRoot":"","sources":["../../../src/funcs/earnEarnPositions.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,8CAuBC;AApDD,sDAAsD;AACtD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAS5D,kEAAoD;AAGpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,iBAAiB,CAC/B,MAAyB,EACzB,OAA0C,EAC1C,OAAwB;IAexB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAyB,EACzB,OAA0C,EAC1C,OAAwB;IAkBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,qCAAqC,CAAC,KAAK,CAAC,KAAK,CAA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E,CAAC;QACjB,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAY5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,mCAAmC,CAAC,EAC3D,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,iCAAiC,CAAC,EACxD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -1,18 +1,19 @@
1
1
  import * as z from "zod/v3";
2
2
  import { ClosedEnum } from "../../types/enums.js";
3
3
  /**
4
- * The fee amount. If `denomination` is 'PERCENTAGE', this is a percentage of the transaction amount (e.g., 1.5 for 1.5%). If `denomination` is 'FIXED', this is a fixed amount in token units (e.g., 0.1 for 0.1 tokens).
4
+ * The fee amount. If `denomination` is 'PERCENTAGE', this is a percentage of the transaction amount (e.g., 1.5 for 1.5%). If `denomination` is 'FIXED', this is a fixed amount in token units (e.g., 0.1 for 0.1 tokens). If `denomination` is 'PERFORMANCE', this is a percentage of realized profit calculated using FIFO cost basis (e.g., 10 for 10% of profit).
5
5
  */
6
6
  export type FeeAmount = number | string;
7
7
  /**
8
- * The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount) or 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens).
8
+ * The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount), 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens), or 'PERFORMANCE' for a fee based on realized profit using FIFO cost basis (e.g., 10 means 10% of profit).
9
9
  */
10
10
  export declare const Denomination: {
11
11
  readonly Percentage: "PERCENTAGE";
12
12
  readonly Fixed: "FIXED";
13
+ readonly Performance: "PERFORMANCE";
13
14
  };
14
15
  /**
15
- * The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount) or 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens).
16
+ * The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount), 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens), or 'PERFORMANCE' for a fee based on realized profit using FIFO cost basis (e.g., 10 means 10% of profit).
16
17
  */
17
18
  export type Denomination = ClosedEnum<typeof Denomination>;
18
19
  export type Fee = {
@@ -21,11 +22,11 @@ export type Fee = {
21
22
  */
22
23
  recipient: string;
23
24
  /**
24
- * The fee amount. If `denomination` is 'PERCENTAGE', this is a percentage of the transaction amount (e.g., 1.5 for 1.5%). If `denomination` is 'FIXED', this is a fixed amount in token units (e.g., 0.1 for 0.1 tokens).
25
+ * The fee amount. If `denomination` is 'PERCENTAGE', this is a percentage of the transaction amount (e.g., 1.5 for 1.5%). If `denomination` is 'FIXED', this is a fixed amount in token units (e.g., 0.1 for 0.1 tokens). If `denomination` is 'PERFORMANCE', this is a percentage of realized profit calculated using FIFO cost basis (e.g., 10 for 10% of profit).
25
26
  */
26
27
  amount: number | string;
27
28
  /**
28
- * The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount) or 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens).
29
+ * The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount), 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens), or 'PERFORMANCE' for a fee based on realized profit using FIFO cost basis (e.g., 10 means 10% of profit).
29
30
  */
30
31
  denomination?: Denomination | undefined;
31
32
  };
@@ -1 +1 @@
1
- {"version":3,"file":"fee.d.ts","sourceRoot":"","sources":["../../../../src/models/components/fee.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,YAAY;;;CAGf,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3D,MAAM,MAAM,GAAG,GAAG;IAChB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEjD,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAC9C,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,SAAS,CAC0B,CAAC;AAEtC,wBAAgB,eAA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B,CAAC,CAAC,UAAU,EACZ,SAAS,CAC0B,CAAC;AAEtC,wBAAgB,eAAe,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAE5D;AAED,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,YAAY,CACjD,CAAC;AAE7B,gBAAgB;AAChB,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC,UAAU,EAAE,GAAG,CAKtE,CAAC;AAEL,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CAE1C"}
@@ -41,11 +41,12 @@ exports.feeAmountToJSON = feeAmountToJSON;
41
41
  exports.feeToJSON = feeToJSON;
42
42
  const z = __importStar(require("zod/v3"));
43
43
  /**
44
- * The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount) or 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens).
44
+ * The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount), 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens), or 'PERFORMANCE' for a fee based on realized profit using FIFO cost basis (e.g., 10 means 10% of profit).
45
45
  */
46
46
  exports.Denomination = {
47
47
  Percentage: "PERCENTAGE",
48
48
  Fixed: "FIXED",
49
+ Performance: "PERFORMANCE",
49
50
  };
50
51
  /** @internal */
51
52
  exports.FeeAmount$outboundSchema = z.union([z.number(), z.string()]);
@@ -1 +1 @@
1
- {"version":3,"file":"fee.js","sourceRoot":"","sources":["../../../../src/models/components/fee.ts"],"names":[],"mappings":";AA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IACd,WAAW,EAAE,aAAa;CAClB,CAAC;AAwBX,gBAAgB;AACH,QAAA,wBAAwB,GAIjC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtC,SAAgB,eAAe,CAAC,SAAoB;IAClD,OAAO,IAAI,CAAC,SAAS,CAAC,gCAAwB,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;AACnE,CAAC;AAED,gBAAgB;AACH,QAAA,2BAA2B,GACtC,CAAC,CAAC,UAAU,CAAC,oBAAY,CAAC,CAAC;AAS7B,gBAAgB;AACH,QAAA,kBAAkB,GAA+C,CAAC;KAC5E,MAAM,CAAC;IACN,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACzC,YAAY,EAAE,mCAA2B,CAAC,QAAQ,EAAE;CACrD,CAAC,CAAC;AAEL,SAAgB,SAAS,CAAC,GAAQ;IAChC,OAAO,IAAI,CAAC,SAAS,CAAC,0BAAkB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AACvD,CAAC"}
@@ -17,9 +17,9 @@ export type V2EarnPositionsRequest = {
17
17
  limit?: number | undefined;
18
18
  chain: V2EarnPositionsChain;
19
19
  /**
20
- * The address of the user to get vault positions for.
20
+ * The address of the owner of the earn account to get positions for.
21
21
  */
22
- userAddress: string;
22
+ owner: string;
23
23
  };
24
24
  /** @internal */
25
25
  export declare const V2EarnPositionsChain$outboundSchema: z.ZodNativeEnum<typeof V2EarnPositionsChain>;
@@ -28,7 +28,7 @@ export type V2EarnPositionsRequest$Outbound = {
28
28
  offset?: number | undefined;
29
29
  limit?: number | undefined;
30
30
  chain: string;
31
- user_address: string;
31
+ owner: string;
32
32
  };
33
33
  /** @internal */
34
34
  export declare const V2EarnPositionsRequest$outboundSchema: z.ZodType<V2EarnPositionsRequest$Outbound, z.ZodTypeDef, V2EarnPositionsRequest>;
@@ -1 +1 @@
1
- {"version":3,"file":"v2earnpositions.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/v2earnpositions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,oBAAoB;;;;CAIvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE3E,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,KAAK,EAAE,oBAAoB,CAAC;IAC5B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,aAAa,CAC/D,OAAO,oBAAoB,CACS,CAAC;AAEvC,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,sBAAsB,CAUtB,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR"}
1
+ {"version":3,"file":"v2earnpositions.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/v2earnpositions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,oBAAoB;;;;CAIvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE3E,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,KAAK,EAAE,oBAAoB,CAAC;IAC5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,aAAa,CAC/D,OAAO,oBAAoB,CACS,CAAC;AAEvC,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,sBAAsB,CAMtB,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR"}
@@ -39,7 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.V2EarnPositionsRequest$outboundSchema = exports.V2EarnPositionsChain$outboundSchema = exports.V2EarnPositionsChain = void 0;
40
40
  exports.v2EarnPositionsRequestToJSON = v2EarnPositionsRequestToJSON;
41
41
  const z = __importStar(require("zod/v3"));
42
- const primitives_js_1 = require("../../lib/primitives.js");
43
42
  exports.V2EarnPositionsChain = {
44
43
  Arbitrum: "arbitrum",
45
44
  Base: "base",
@@ -52,11 +51,7 @@ exports.V2EarnPositionsRequest$outboundSchema = z.object({
52
51
  offset: z.number().int().optional(),
53
52
  limit: z.number().int().optional(),
54
53
  chain: exports.V2EarnPositionsChain$outboundSchema,
55
- userAddress: z.string(),
56
- }).transform((v) => {
57
- return (0, primitives_js_1.remap)(v, {
58
- userAddress: "user_address",
59
- });
54
+ owner: z.string(),
60
55
  });
61
56
  function v2EarnPositionsRequestToJSON(v2EarnPositionsRequest) {
62
57
  return JSON.stringify(exports.V2EarnPositionsRequest$outboundSchema.parse(v2EarnPositionsRequest));
@@ -1 +1 @@
1
- {"version":3,"file":"v2earnpositions.js","sourceRoot":"","sources":["../../../../src/models/operations/v2earnpositions.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DH,oEAMC;AA9DD,0CAA4B;AAC5B,2DAA0D;AAG7C,QAAA,oBAAoB,GAAG;IAClC,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;CACZ,CAAC;AAmBX,gBAAgB;AACH,QAAA,mCAAmC,GAE5C,CAAC,CAAC,UAAU,CAAC,4BAAoB,CAAC,CAAC;AAUvC,gBAAgB;AACH,QAAA,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACnC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAClC,KAAK,EAAE,2CAAmC;IAC1C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,cAAc;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,6CAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"v2earnpositions.js","sourceRoot":"","sources":["../../../../src/models/operations/v2earnpositions.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDH,oEAMC;AAzDD,0CAA4B;AAGf,QAAA,oBAAoB,GAAG;IAClC,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;CACZ,CAAC;AAmBX,gBAAgB;AACH,QAAA,mCAAmC,GAE5C,CAAC,CAAC,UAAU,CAAC,4BAAoB,CAAC,CAAC;AAUvC,gBAAgB;AACH,QAAA,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACnC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAClC,KAAK,EAAE,2CAAmC;IAC1C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAEH,SAAgB,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,6CAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC"}
@@ -81,7 +81,10 @@ export declare class Earn extends ClientSDK {
81
81
  *
82
82
  * If `WITHDRAW` is selected for `action`, tokens will be withdrawn from the selected venue address back into the Earn Account associated with the `owner` wallet.
83
83
  *
84
- * 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`.
84
+ * A fee can be configured. This fee is deducted from the total `amount`. It can be expressed as:
85
+ * - `FIXED`: a fixed token amount (e.g., 0.1 means 0.1 tokens)
86
+ * - `PERCENTAGE`: a percentage of the transaction amount (e.g., 1.5 means 1.5%)
87
+ * - `PERFORMANCE`: a percentage of realized profit using FIFO cost basis (e.g., 10 means 10% of profit). Only applicable for withdrawals.
85
88
  *
86
89
  * 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.
87
90
  */
@@ -1 +1 @@
1
- {"version":3,"file":"earn.d.ts","sourceRoot":"","sources":["../../../src/sdk/earn.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,IAAK,SAAQ,SAAS;IACjC;;;;;OAKG;IACG,aAAa,CACjB,OAAO,EAAE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAQ5C;;;;;;;OAOG;IACG,UAAU,CACd,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC;IAQrC;;;;;;;;;;;;;;OAcG;IACG,eAAe,CACnB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC;IAQ9C;;;;;;;;;;;;;;;OAeG;IACG,iBAAiB,CACrB,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,C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;;;;;;;;;;;;;OAcG;IACG,eAAe,CACnB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC;IAQ9C;;;;;;;;;;;;;;;OAeG;IACG,iBAAiB,CACrB,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAQ5C;;;;;;;;;;;;OAYG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAQ3C;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACG,UAAU,CACd,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAQzC;;;;;OAKG;IACG,QAAQ,CACZ,OAAO,EAAE,UAAU,CAAC,eAAe,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC;IAQvC;;;;;;;;;;;;;;;;;;OAkBG;IACG,UAAU,CACd,OAAO,EAAE,UAAU,CAAC,eAAe,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC;CAOxC"}
@@ -104,7 +104,10 @@ class Earn extends sdks_js_1.ClientSDK {
104
104
  *
105
105
  * If `WITHDRAW` is selected for `action`, tokens will be withdrawn from the selected venue address back into the Earn Account associated with the `owner` wallet.
106
106
  *
107
- * 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`.
107
+ * A fee can be configured. This fee is deducted from the total `amount`. It can be expressed as:
108
+ * - `FIXED`: a fixed token amount (e.g., 0.1 means 0.1 tokens)
109
+ * - `PERCENTAGE`: a percentage of the transaction amount (e.g., 1.5 means 1.5%)
110
+ * - `PERFORMANCE`: a percentage of realized profit using FIFO cost basis (e.g., 10 means 10% of profit). Only applicable for withdrawals.
108
111
  *
109
112
  * 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.
110
113
  */
@@ -1 +1 @@
1
- {"version":3,"file":"earn.js","sourceRoot":"","sources":["../../../src/sdk/earn.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4EAAsE;AACtE,kEAA4D;AAC5D,gFAA0E;AAC1E,kEAA4D;AAC5D,wEAAkE;AAClE,8DAAwD;AACxD,sEAAgE;AAChE,kEAA4D;AAC5D,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,IAAK,SAAQ,mBAAS;IACjC;;;;;OAKG;IACH,KAAK,CAAC,aAAa,CACjB,OAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wCAAiB,EAClC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,UAAU,CACd,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kCAAc,EAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,eAAe,CACnB,OAA4C,EAC5C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAAwC,EACxC,OAAwB;QA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ACd,OAAmC,EACnC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kCAAc,EAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAlMD,oBAkMC"}
@@ -24,7 +24,10 @@ import { Result } from "../types/fp.js";
24
24
  *
25
25
  * If `WITHDRAW` is selected for `action`, tokens will be withdrawn from the selected venue address back into the Earn Account associated with the `owner` wallet.
26
26
  *
27
- * 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`.
27
+ * A fee can be configured. This fee is deducted from the total `amount`. It can be expressed as:
28
+ * - `FIXED`: a fixed token amount (e.g., 0.1 means 0.1 tokens)
29
+ * - `PERCENTAGE`: a percentage of the transaction amount (e.g., 1.5 means 1.5%)
30
+ * - `PERFORMANCE`: a percentage of realized profit using FIFO cost basis (e.g., 10 means 10% of profit). Only applicable for withdrawals.
28
31
  *
29
32
  * 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.
30
33
  */
@@ -1 +1 @@
1
- {"version":3,"file":"earnEarnManage.d.ts","sourceRoot":"","sources":["../../../src/funcs/earnEarnManage.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAK/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2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;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,kBAAkB,EAC3B,MAAM,CAAC,mBAAmB,GAC1B,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -26,7 +26,10 @@ import { APIPromise } from "../types/async.js";
26
26
  *
27
27
  * If `WITHDRAW` is selected for `action`, tokens will be withdrawn from the selected venue address back into the Earn Account associated with the `owner` wallet.
28
28
  *
29
- * 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`.
29
+ * A fee can be configured. This fee is deducted from the total `amount`. It can be expressed as:
30
+ * - `FIXED`: a fixed token amount (e.g., 0.1 means 0.1 tokens)
31
+ * - `PERCENTAGE`: a percentage of the transaction amount (e.g., 1.5 means 1.5%)
32
+ * - `PERFORMANCE`: a percentage of realized profit using FIFO cost basis (e.g., 10 means 10% of profit). Only applicable for withdrawals.
30
33
  *
31
34
  * 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.
32
35
  */
@@ -1 +1 @@
1
- {"version":3,"file":"earnEarnManage.js","sourceRoot":"","sources":["../../../src/funcs/earnEarnManage.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,s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AAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -32,7 +32,7 @@ async function $do(client, request, options) {
32
32
  "chain": payload.chain,
33
33
  "limit": payload.limit,
34
34
  "offset": payload.offset,
35
- "user_address": payload.user_address,
35
+ "owner": payload.owner,
36
36
  });
37
37
  const headers = new Headers(compactMap({
38
38
  Accept: "application/json",
@@ -1 +1 @@
1
- {"version":3,"file":"earnEarnPositions.js","sourceRoot":"","sources":["../../../src/funcs/earnEarnPositions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAS5D,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAGpD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAC/B,MAAyB,EACzB,OAA0C,EAC1C,OAAwB;IAexB,OAAO,IAA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AAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -1,18 +1,19 @@
1
1
  import * as z from "zod/v3";
2
2
  import { ClosedEnum } from "../../types/enums.js";
3
3
  /**
4
- * The fee amount. If `denomination` is 'PERCENTAGE', this is a percentage of the transaction amount (e.g., 1.5 for 1.5%). If `denomination` is 'FIXED', this is a fixed amount in token units (e.g., 0.1 for 0.1 tokens).
4
+ * The fee amount. If `denomination` is 'PERCENTAGE', this is a percentage of the transaction amount (e.g., 1.5 for 1.5%). If `denomination` is 'FIXED', this is a fixed amount in token units (e.g., 0.1 for 0.1 tokens). If `denomination` is 'PERFORMANCE', this is a percentage of realized profit calculated using FIFO cost basis (e.g., 10 for 10% of profit).
5
5
  */
6
6
  export type FeeAmount = number | string;
7
7
  /**
8
- * The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount) or 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens).
8
+ * The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount), 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens), or 'PERFORMANCE' for a fee based on realized profit using FIFO cost basis (e.g., 10 means 10% of profit).
9
9
  */
10
10
  export declare const Denomination: {
11
11
  readonly Percentage: "PERCENTAGE";
12
12
  readonly Fixed: "FIXED";
13
+ readonly Performance: "PERFORMANCE";
13
14
  };
14
15
  /**
15
- * The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount) or 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens).
16
+ * The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount), 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens), or 'PERFORMANCE' for a fee based on realized profit using FIFO cost basis (e.g., 10 means 10% of profit).
16
17
  */
17
18
  export type Denomination = ClosedEnum<typeof Denomination>;
18
19
  export type Fee = {
@@ -21,11 +22,11 @@ export type Fee = {
21
22
  */
22
23
  recipient: string;
23
24
  /**
24
- * The fee amount. If `denomination` is 'PERCENTAGE', this is a percentage of the transaction amount (e.g., 1.5 for 1.5%). If `denomination` is 'FIXED', this is a fixed amount in token units (e.g., 0.1 for 0.1 tokens).
25
+ * The fee amount. If `denomination` is 'PERCENTAGE', this is a percentage of the transaction amount (e.g., 1.5 for 1.5%). If `denomination` is 'FIXED', this is a fixed amount in token units (e.g., 0.1 for 0.1 tokens). If `denomination` is 'PERFORMANCE', this is a percentage of realized profit calculated using FIFO cost basis (e.g., 10 for 10% of profit).
25
26
  */
26
27
  amount: number | string;
27
28
  /**
28
- * The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount) or 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens).
29
+ * The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount), 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens), or 'PERFORMANCE' for a fee based on realized profit using FIFO cost basis (e.g., 10 means 10% of profit).
29
30
  */
30
31
  denomination?: Denomination | undefined;
31
32
  };
@@ -1 +1 @@
1
- {"version":3,"file":"fee.d.ts","sourceRoot":"","sources":["../../../../src/models/components/fee.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,YAAY;;;CAGf,CAAC;AACX;;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,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3D,MAAM,MAAM,GAAG,GAAG;IAChB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEjD,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAC9C,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,SAAS,CAC0B,CAAC;AAEtC,wBAAgB,eAAe,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAE5D;AAED,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,YAAY,CACjD,CAAC;AAE7B,gBAAgB;AAChB,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC,UAAU,EAAE,GAAG,CAKtE,CAAC;AAEL,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CAE1C"}
@@ -3,11 +3,12 @@
3
3
  */
4
4
  import * as z from "zod/v3";
5
5
  /**
6
- * The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount) or 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens).
6
+ * The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount), 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens), or 'PERFORMANCE' for a fee based on realized profit using FIFO cost basis (e.g., 10 means 10% of profit).
7
7
  */
8
8
  export const Denomination = {
9
9
  Percentage: "PERCENTAGE",
10
10
  Fixed: "FIXED",
11
+ Performance: "PERFORMANCE",
11
12
  };
12
13
  /** @internal */
13
14
  export const FeeAmount$outboundSchema = z.union([z.number(), z.string()]);
@@ -1 +1 @@
1
- {"version":3,"file":"fee.js","sourceRoot":"","sources":["../../../../src/models/components/fee.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAQ5B;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,UAAU,EAAE,YAAY;IACxB,KAAK,EAAE,OAAO;CACN,CAAC;AAwBX,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB,GAIjC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtC,MAAM,UAAU,eAAe,CAAC,SAAoB;IAClD,OAAO,IAAI,CAAC,SAAS,CAAC,wBAAwB,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;AACnE,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,2BAA2B,GACtC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;AAS7B,gBAAgB;AAChB,MAAM,CAAC,MAAM,kBAAkB,GAA+C,CAAC;KAC5E,MAAM,CAAC;IACN,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACzC,Y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C,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AACvD,CAAC"}
@@ -17,9 +17,9 @@ export type V2EarnPositionsRequest = {
17
17
  limit?: number | undefined;
18
18
  chain: V2EarnPositionsChain;
19
19
  /**
20
- * The address of the user to get vault positions for.
20
+ * The address of the owner of the earn account to get positions for.
21
21
  */
22
- userAddress: string;
22
+ owner: string;
23
23
  };
24
24
  /** @internal */
25
25
  export declare const V2EarnPositionsChain$outboundSchema: z.ZodNativeEnum<typeof V2EarnPositionsChain>;
@@ -28,7 +28,7 @@ export type V2EarnPositionsRequest$Outbound = {
28
28
  offset?: number | undefined;
29
29
  limit?: number | undefined;
30
30
  chain: string;
31
- user_address: string;
31
+ owner: string;
32
32
  };
33
33
  /** @internal */
34
34
  export declare const V2EarnPositionsRequest$outboundSchema: z.ZodType<V2EarnPositionsRequest$Outbound, z.ZodTypeDef, V2EarnPositionsRequest>;
@@ -1 +1 @@
1
- {"version":3,"file":"v2earnpositions.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/v2earnpositions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,oBAAoB;;;;CAIvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE3E,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,KAAK,EAAE,oBAAoB,CAAC;IAC5B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,aAAa,CAC/D,OAAO,oBAAoB,CACS,CAAC;AAEvC,gBAAgB;AA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AK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,sBAAsB,CAMtB,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR"}
@@ -2,7 +2,6 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
  import * as z from "zod/v3";
5
- import { remap as remap$ } from "../../lib/primitives.js";
6
5
  export const V2EarnPositionsChain = {
7
6
  Arbitrum: "arbitrum",
8
7
  Base: "base",
@@ -15,11 +14,7 @@ export const V2EarnPositionsRequest$outboundSchema = z.object({
15
14
  offset: z.number().int().optional(),
16
15
  limit: z.number().int().optional(),
17
16
  chain: V2EarnPositionsChain$outboundSchema,
18
- userAddress: z.string(),
19
- }).transform((v) => {
20
- return remap$(v, {
21
- userAddress: "user_address",
22
- });
17
+ owner: z.string(),
23
18
  });
24
19
  export function v2EarnPositionsRequestToJSON(v2EarnPositionsRequest) {
25
20
  return JSON.stringify(V2EarnPositionsRequest$outboundSchema.parse(v2EarnPositionsRequest));
@@ -1 +1 @@
1
- {"version":3,"file":"v2earnpositions.js","sourceRoot":"","sources":["../../../../src/models/operations/v2earnpositions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAG1D,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;CACZ,CAAC;AAmBX,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAE5C,CAAC,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAUvC,gBAAgB;AAChB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,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAEH,MAAM,UAAU,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,qCAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC"}
@@ -81,7 +81,10 @@ export declare class Earn extends ClientSDK {
81
81
  *
82
82
  * If `WITHDRAW` is selected for `action`, tokens will be withdrawn from the selected venue address back into the Earn Account associated with the `owner` wallet.
83
83
  *
84
- * 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`.
84
+ * A fee can be configured. This fee is deducted from the total `amount`. It can be expressed as:
85
+ * - `FIXED`: a fixed token amount (e.g., 0.1 means 0.1 tokens)
86
+ * - `PERCENTAGE`: a percentage of the transaction amount (e.g., 1.5 means 1.5%)
87
+ * - `PERFORMANCE`: a percentage of realized profit using FIFO cost basis (e.g., 10 means 10% of profit). Only applicable for withdrawals.
85
88
  *
86
89
  * 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.
87
90
  */
@@ -1 +1 @@
1
- {"version":3,"file":"earn.d.ts","sourceRoot":"","sources":["../../../src/sdk/earn.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,IAAK,SAAQ,SAAS;IACjC;;;;;OAKG;IACG,aAAa,CACjB,OAAO,EAAE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,q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U,CAAC,eAAe,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC;CAOxC"}
@@ -101,7 +101,10 @@ export class Earn extends ClientSDK {
101
101
  *
102
102
  * If `WITHDRAW` is selected for `action`, tokens will be withdrawn from the selected venue address back into the Earn Account associated with the `owner` wallet.
103
103
  *
104
- * 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`.
104
+ * A fee can be configured. This fee is deducted from the total `amount`. It can be expressed as:
105
+ * - `FIXED`: a fixed token amount (e.g., 0.1 means 0.1 tokens)
106
+ * - `PERCENTAGE`: a percentage of the transaction amount (e.g., 1.5 means 1.5%)
107
+ * - `PERFORMANCE`: a percentage of realized profit using FIFO cost basis (e.g., 10 means 10% of profit). Only applicable for withdrawals.
105
108
  *
106
109
  * 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.
107
110
  */
@@ -1 +1 @@
1
- {"version":3,"file":"earn.js","sourceRoot":"","sources":["../../../src/sdk/earn.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,4BA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;IACL,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,eAAe,CACnB,OAA4C,EAC5C,OAAwB;QAExB,OAAO,WAAW,CAAC,mBAAmB,CACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAAwC,EACxC,OAAwB;QAExB,OAAO,WAAW,CAAC,qBAAqB,CACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,YAAY,CAChB,OAAuC,EACvC,OAAwB;QAExB,OAAO,WAAW,CAAC,gBAAgB,CACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,KAAK,CAAC,UAAU,CACd,OAAqC,EACrC,OAAwB;QAExB,OAAO,WAAW,CAAC,cAAc,CAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,QAAQ,CACZ,OAAmC,EACnC,OAAwB;QAExB,OAAO,WAAW,CAAC,YAAY,CAC7B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,UAAU,CACd,OAAmC,EACnC,OAAwB;QAExB,OAAO,WAAW,CAAC,cAAc,CAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -9,8 +9,8 @@ import { CreateAccountRequest } from "@compass-labs/api-sdk/models/components";
9
9
 
10
10
  let value: CreateAccountRequest = {
11
11
  chain: "base",
12
- sender: "0x9a30797cA5467fBaA1D74574886FeC5F79ae407A",
13
- owner: "0x9a30797cA5467fBaA1D74574886FeC5F79ae407A",
12
+ sender: "0x01E62835dd7F52173546A325294762143eE4a882",
13
+ owner: "0x01E62835dd7F52173546A325294762143eE4a882",
14
14
  };
15
15
  ```
16
16
 
@@ -1,6 +1,6 @@
1
1
  # Denomination
2
2
 
3
- The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount) or 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens).
3
+ The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount), 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens), or 'PERFORMANCE' for a fee based on realized profit using FIFO cost basis (e.g., 10 means 10% of profit).
4
4
 
5
5
  ## Example Usage
6
6
 
@@ -13,5 +13,5 @@ let value: Denomination = "PERCENTAGE";
13
13
  ## Values
14
14
 
15
15
  ```typescript
16
- "PERCENTAGE" | "FIXED"
16
+ "PERCENTAGE" | "FIXED" | "PERFORMANCE"
17
17
  ```
@@ -16,7 +16,7 @@ let value: EarnManageRequest = {
16
16
  },
17
17
  action: "DEPOSIT",
18
18
  amount: "0.01",
19
- owner: "0xe5310C39a8A8f16E6126ee6B1006bf6eD58B3A49",
19
+ owner: "0x01E62835dd7F52173546A325294762143eE4a882",
20
20
  chain: "base",
21
21
  gasSponsorship: false,
22
22
  };
@@ -14,7 +14,7 @@ let value: EarnSwapRequest = {
14
14
  tokenOut: "USDT",
15
15
  amountIn: "0.01",
16
16
  slippage: "0.5",
17
- owner: "0xC1be8f91480648De355a45f3E2562811b4e2D3FF",
17
+ owner: "0x01E62835dd7F52173546A325294762143eE4a882",
18
18
  chain: "base",
19
19
  gasSponsorship: false,
20
20
  };
@@ -6,7 +6,7 @@
6
6
  import { EarnTransferRequest } from "@compass-labs/api-sdk/models/components";
7
7
 
8
8
  let value: EarnTransferRequest = {
9
- owner: "0xE4780eeB4D345576dE762573cEA0F269b3099adE",
9
+ owner: "0x01E62835dd7F52173546A325294762143eE4a882",
10
10
  chain: "base",
11
11
  token: "USDC",
12
12
  amount: "0.01",
@@ -14,8 +14,8 @@ let value: Fee = {
14
14
 
15
15
  ## Fields
16
16
 
17
- | Field | Type | Required | Description | Example |
18
- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
19
- | `recipient` | *string* | :heavy_check_mark: | The wallet address that will receive the fee. | |
20
- | `amount` | *components.FeeAmount* | :heavy_check_mark: | The fee amount. If `denomination` is 'PERCENTAGE', this is a percentage of the transaction amount (e.g., 1.5 for 1.5%). If `denomination` is 'FIXED', this is a fixed amount in token units (e.g., 0.1 for 0.1 tokens). | |
21
- | `denomination` | [components.Denomination](../../models/components/denomination.md) | :heavy_minus_sign: | The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount) or 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens). | PERCENTAGE |
17
+ | Field | Type | Required | Description | Example |
18
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
19
+ | `recipient` | *string* | :heavy_check_mark: | The wallet address that will receive the fee. | |
20
+ | `amount` | *components.FeeAmount* | :heavy_check_mark: | The fee amount. If `denomination` is 'PERCENTAGE', this is a percentage of the transaction amount (e.g., 1.5 for 1.5%). If `denomination` is 'FIXED', this is a fixed amount in token units (e.g., 0.1 for 0.1 tokens). If `denomination` is 'PERFORMANCE', this is a percentage of realized profit calculated using FIFO cost basis (e.g., 10 for 10% of profit). | |
21
+ | `denomination` | [components.Denomination](../../models/components/denomination.md) | :heavy_minus_sign: | The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount), 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens), or 'PERFORMANCE' for a fee based on realized profit using FIFO cost basis (e.g., 10 means 10% of profit). | PERCENTAGE |
@@ -1,6 +1,6 @@
1
1
  # FeeAmount
2
2
 
3
- The fee amount. If `denomination` is 'PERCENTAGE', this is a percentage of the transaction amount (e.g., 1.5 for 1.5%). If `denomination` is 'FIXED', this is a fixed amount in token units (e.g., 0.1 for 0.1 tokens).
3
+ The fee amount. If `denomination` is 'PERCENTAGE', this is a percentage of the transaction amount (e.g., 1.5 for 1.5%). If `denomination` is 'FIXED', this is a fixed amount in token units (e.g., 0.1 for 0.1 tokens). If `denomination` is 'PERFORMANCE', this is a percentage of realized profit calculated using FIFO cost basis (e.g., 10 for 10% of profit).
4
4
 
5
5
 
6
6
  ## Supported Types
@@ -6,7 +6,7 @@
6
6
  import { V2BundleRequest } from "@compass-labs/api-sdk/models/components";
7
7
 
8
8
  let value: V2BundleRequest = {
9
- owner: "0x0B8A11cF0679F163087802c4428F640cA7C89926",
9
+ owner: "0x01E62835dd7F52173546A325294762143eE4a882",
10
10
  chain: "ethereum",
11
11
  actions: [
12
12
  {
@@ -9,7 +9,7 @@ let value: V2EarnPositionsRequest = {
9
9
  offset: 0,
10
10
  limit: 100,
11
11
  chain: "base",
12
- userAddress: "0x7fD8D98Afe730c9aE9b584f1D815f8dA1B4B4d4c",
12
+ owner: "0x01E62835dd7F52173546A325294762143eE4a882",
13
13
  };
14
14
  ```
15
15
 
@@ -20,4 +20,4 @@ let value: V2EarnPositionsRequest = {
20
20
  | `offset` | *number* | :heavy_minus_sign: | The offset of the first item to return. | 0 |
21
21
  | `limit` | *number* | :heavy_minus_sign: | The number of items to return. | 100 |
22
22
  | `chain` | [operations.V2EarnPositionsChain](../../models/operations/v2earnpositionschain.md) | :heavy_check_mark: | N/A | base |
23
- | `userAddress` | *string* | :heavy_check_mark: | The address of the user to get vault positions for. | 0x7fD8D98Afe730c9aE9b584f1D815f8dA1B4B4d4c |
23
+ | `owner` | *string* | :heavy_check_mark: | The address of the owner of the earn account to get positions for. | 0x01E62835dd7F52173546A325294762143eE4a882 |
@@ -32,7 +32,7 @@ async function run() {
32
32
  offset: 0,
33
33
  limit: 100,
34
34
  chain: "base",
35
- userAddress: "0x7fD8D98Afe730c9aE9b584f1D815f8dA1B4B4d4c",
35
+ owner: "0x01E62835dd7F52173546A325294762143eE4a882",
36
36
  });
37
37
 
38
38
  console.log(result);
@@ -60,7 +60,7 @@ async function run() {
60
60
  offset: 0,
61
61
  limit: 100,
62
62
  chain: "base",
63
- userAddress: "0x7fD8D98Afe730c9aE9b584f1D815f8dA1B4B4d4c",
63
+ owner: "0x01E62835dd7F52173546A325294762143eE4a882",
64
64
  });
65
65
  if (res.ok) {
66
66
  const { value: result } = res;
@@ -281,8 +281,8 @@ const compassApiSDK = new CompassApiSDK({
281
281
  async function run() {
282
282
  const result = await compassApiSDK.earn.earnCreateAccount({
283
283
  chain: "base",
284
- sender: "0x9a30797cA5467fBaA1D74574886FeC5F79ae407A",
285
- owner: "0x9a30797cA5467fBaA1D74574886FeC5F79ae407A",
284
+ sender: "0x01E62835dd7F52173546A325294762143eE4a882",
285
+ owner: "0x01E62835dd7F52173546A325294762143eE4a882",
286
286
  });
287
287
 
288
288
  console.log(result);
@@ -308,8 +308,8 @@ const compassApiSDK = new CompassApiSDKCore({
308
308
  async function run() {
309
309
  const res = await earnEarnCreateAccount(compassApiSDK, {
310
310
  chain: "base",
311
- sender: "0x9a30797cA5467fBaA1D74574886FeC5F79ae407A",
312
- owner: "0x9a30797cA5467fBaA1D74574886FeC5F79ae407A",
311
+ sender: "0x01E62835dd7F52173546A325294762143eE4a882",
312
+ owner: "0x01E62835dd7F52173546A325294762143eE4a882",
313
313
  });
314
314
  if (res.ok) {
315
315
  const { value: result } = res;
@@ -365,7 +365,7 @@ const compassApiSDK = new CompassApiSDK({
365
365
 
366
366
  async function run() {
367
367
  const result = await compassApiSDK.earn.earnTransfer({
368
- owner: "0xE4780eeB4D345576dE762573cEA0F269b3099adE",
368
+ owner: "0x01E62835dd7F52173546A325294762143eE4a882",
369
369
  chain: "base",
370
370
  token: "USDC",
371
371
  amount: "0.01",
@@ -394,7 +394,7 @@ const compassApiSDK = new CompassApiSDKCore({
394
394
 
395
395
  async function run() {
396
396
  const res = await earnEarnTransfer(compassApiSDK, {
397
- owner: "0xE4780eeB4D345576dE762573cEA0F269b3099adE",
397
+ owner: "0x01E62835dd7F52173546A325294762143eE4a882",
398
398
  chain: "base",
399
399
  token: "USDC",
400
400
  amount: "0.01",
@@ -445,7 +445,10 @@ If `DEPOSIT` is selected for `action`, tokens will be deposited into the selecte
445
445
 
446
446
  If `WITHDRAW` is selected for `action`, tokens will be withdrawn from the selected venue address back into the Earn Account associated with the `owner` wallet.
447
447
 
448
- 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`.
448
+ A fee can be configured. This fee is deducted from the total `amount`. It can be expressed as:
449
+ - `FIXED`: a fixed token amount (e.g., 0.1 means 0.1 tokens)
450
+ - `PERCENTAGE`: a percentage of the transaction amount (e.g., 1.5 means 1.5%)
451
+ - `PERFORMANCE`: a percentage of realized profit using FIFO cost basis (e.g., 10 means 10% of profit). Only applicable for withdrawals.
449
452
 
450
453
  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.
451
454
 
@@ -467,7 +470,7 @@ async function run() {
467
470
  },
468
471
  action: "DEPOSIT",
469
472
  amount: "0.01",
470
- owner: "0xe5310C39a8A8f16E6126ee6B1006bf6eD58B3A49",
473
+ owner: "0x01E62835dd7F52173546A325294762143eE4a882",
471
474
  chain: "base",
472
475
  gasSponsorship: false,
473
476
  });
@@ -500,7 +503,7 @@ async function run() {
500
503
  },
501
504
  action: "DEPOSIT",
502
505
  amount: "0.01",
503
- owner: "0xe5310C39a8A8f16E6126ee6B1006bf6eD58B3A49",
506
+ owner: "0x01E62835dd7F52173546A325294762143eE4a882",
504
507
  chain: "base",
505
508
  gasSponsorship: false,
506
509
  });
@@ -555,7 +558,7 @@ async function run() {
555
558
  tokenOut: "USDT",
556
559
  amountIn: "0.01",
557
560
  slippage: "0.5",
558
- owner: "0xC1be8f91480648De355a45f3E2562811b4e2D3FF",
561
+ owner: "0x01E62835dd7F52173546A325294762143eE4a882",
559
562
  chain: "base",
560
563
  gasSponsorship: false,
561
564
  });
@@ -586,7 +589,7 @@ async function run() {
586
589
  tokenOut: "USDT",
587
590
  amountIn: "0.01",
588
591
  slippage: "0.5",
589
- owner: "0xC1be8f91480648De355a45f3E2562811b4e2D3FF",
592
+ owner: "0x01E62835dd7F52173546A325294762143eE4a882",
590
593
  chain: "base",
591
594
  gasSponsorship: false,
592
595
  });
@@ -650,7 +653,7 @@ const compassApiSDK = new CompassApiSDK({
650
653
 
651
654
  async function run() {
652
655
  const result = await compassApiSDK.earn.earnBundle({
653
- owner: "0x0B8A11cF0679F163087802c4428F640cA7C89926",
656
+ owner: "0x01E62835dd7F52173546A325294762143eE4a882",
654
657
  chain: "ethereum",
655
658
  actions: [
656
659
  {
@@ -699,7 +702,7 @@ const compassApiSDK = new CompassApiSDKCore({
699
702
 
700
703
  async function run() {
701
704
  const res = await earnEarnBundle(compassApiSDK, {
702
- owner: "0x0B8A11cF0679F163087802c4428F640cA7C89926",
705
+ owner: "0x01E62835dd7F52173546A325294762143eE4a882",
703
706
  chain: "ethereum",
704
707
  actions: [
705
708
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-labs/api-sdk",
3
- "version": "2.1.26-rc.9",
3
+ "version": "2.1.26",
4
4
  "author": "royalnine",
5
5
  "type": "module",
6
6
  "tshy": {
@@ -41,7 +41,10 @@ import { Result } from "../types/fp.js";
41
41
  *
42
42
  * If `WITHDRAW` is selected for `action`, tokens will be withdrawn from the selected venue address back into the Earn Account associated with the `owner` wallet.
43
43
  *
44
- * 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`.
44
+ * A fee can be configured. This fee is deducted from the total `amount`. It can be expressed as:
45
+ * - `FIXED`: a fixed token amount (e.g., 0.1 means 0.1 tokens)
46
+ * - `PERCENTAGE`: a percentage of the transaction amount (e.g., 1.5 means 1.5%)
47
+ * - `PERFORMANCE`: a percentage of realized profit using FIFO cost basis (e.g., 10 means 10% of profit). Only applicable for withdrawals.
45
48
  *
46
49
  * 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.
47
50
  */
@@ -95,7 +95,7 @@ async function $do(
95
95
  "chain": payload.chain,
96
96
  "limit": payload.limit,
97
97
  "offset": payload.offset,
98
- "user_address": payload.user_address,
98
+ "owner": payload.owner,
99
99
  });
100
100
 
101
101
  const headers = new Headers(compactMap({
@@ -6,19 +6,20 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  /**
9
- * The fee amount. If `denomination` is 'PERCENTAGE', this is a percentage of the transaction amount (e.g., 1.5 for 1.5%). If `denomination` is 'FIXED', this is a fixed amount in token units (e.g., 0.1 for 0.1 tokens).
9
+ * The fee amount. If `denomination` is 'PERCENTAGE', this is a percentage of the transaction amount (e.g., 1.5 for 1.5%). If `denomination` is 'FIXED', this is a fixed amount in token units (e.g., 0.1 for 0.1 tokens). If `denomination` is 'PERFORMANCE', this is a percentage of realized profit calculated using FIFO cost basis (e.g., 10 for 10% of profit).
10
10
  */
11
11
  export type FeeAmount = number | string;
12
12
 
13
13
  /**
14
- * The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount) or 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens).
14
+ * The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount), 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens), or 'PERFORMANCE' for a fee based on realized profit using FIFO cost basis (e.g., 10 means 10% of profit).
15
15
  */
16
16
  export const Denomination = {
17
17
  Percentage: "PERCENTAGE",
18
18
  Fixed: "FIXED",
19
+ Performance: "PERFORMANCE",
19
20
  } as const;
20
21
  /**
21
- * The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount) or 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens).
22
+ * The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount), 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens), or 'PERFORMANCE' for a fee based on realized profit using FIFO cost basis (e.g., 10 means 10% of profit).
22
23
  */
23
24
  export type Denomination = ClosedEnum<typeof Denomination>;
24
25
 
@@ -28,11 +29,11 @@ export type Fee = {
28
29
  */
29
30
  recipient: string;
30
31
  /**
31
- * The fee amount. If `denomination` is 'PERCENTAGE', this is a percentage of the transaction amount (e.g., 1.5 for 1.5%). If `denomination` is 'FIXED', this is a fixed amount in token units (e.g., 0.1 for 0.1 tokens).
32
+ * The fee amount. If `denomination` is 'PERCENTAGE', this is a percentage of the transaction amount (e.g., 1.5 for 1.5%). If `denomination` is 'FIXED', this is a fixed amount in token units (e.g., 0.1 for 0.1 tokens). If `denomination` is 'PERFORMANCE', this is a percentage of realized profit calculated using FIFO cost basis (e.g., 10 for 10% of profit).
32
33
  */
33
34
  amount: number | string;
34
35
  /**
35
- * The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount) or 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens).
36
+ * The unit type for the fee amount. Use 'PERCENTAGE' for a percentage-based fee (e.g., 1.5 means 1.5% of the transaction amount), 'FIXED' for a fixed token amount (e.g., 0.1 means 0.1 tokens), or 'PERFORMANCE' for a fee based on realized profit using FIFO cost basis (e.g., 10 means 10% of profit).
36
37
  */
37
38
  denomination?: Denomination | undefined;
38
39
  };
@@ -3,7 +3,6 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v3";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
6
  import { ClosedEnum } from "../../types/enums.js";
8
7
 
9
8
  export const V2EarnPositionsChain = {
@@ -24,9 +23,9 @@ export type V2EarnPositionsRequest = {
24
23
  limit?: number | undefined;
25
24
  chain: V2EarnPositionsChain;
26
25
  /**
27
- * The address of the user to get vault positions for.
26
+ * The address of the owner of the earn account to get positions for.
28
27
  */
29
- userAddress: string;
28
+ owner: string;
30
29
  };
31
30
 
32
31
  /** @internal */
@@ -39,7 +38,7 @@ export type V2EarnPositionsRequest$Outbound = {
39
38
  offset?: number | undefined;
40
39
  limit?: number | undefined;
41
40
  chain: string;
42
- user_address: string;
41
+ owner: string;
43
42
  };
44
43
 
45
44
  /** @internal */
@@ -51,11 +50,7 @@ export const V2EarnPositionsRequest$outboundSchema: z.ZodType<
51
50
  offset: z.number().int().optional(),
52
51
  limit: z.number().int().optional(),
53
52
  chain: V2EarnPositionsChain$outboundSchema,
54
- userAddress: z.string(),
55
- }).transform((v) => {
56
- return remap$(v, {
57
- userAddress: "user_address",
58
- });
53
+ owner: z.string(),
59
54
  });
60
55
 
61
56
  export function v2EarnPositionsRequestToJSON(
package/src/sdk/earn.ts CHANGED
@@ -145,7 +145,10 @@ export class Earn extends ClientSDK {
145
145
  *
146
146
  * If `WITHDRAW` is selected for `action`, tokens will be withdrawn from the selected venue address back into the Earn Account associated with the `owner` wallet.
147
147
  *
148
- * 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`.
148
+ * A fee can be configured. This fee is deducted from the total `amount`. It can be expressed as:
149
+ * - `FIXED`: a fixed token amount (e.g., 0.1 means 0.1 tokens)
150
+ * - `PERCENTAGE`: a percentage of the transaction amount (e.g., 1.5 means 1.5%)
151
+ * - `PERFORMANCE`: a percentage of realized profit using FIFO cost basis (e.g., 10 means 10% of profit). Only applicable for withdrawals.
149
152
  *
150
153
  * 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.
151
154
  */