@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
@@ -10,7 +10,7 @@ export declare class Earn extends ClientSDK {
10
10
  */
11
11
  earnPositions(request: operations.V2EarnPositionsRequest, options?: RequestOptions): Promise<components.EarnPositionsResponse>;
12
12
  /**
13
- * Get individual earn position
13
+ * Get earn position
14
14
  *
15
15
  * @remarks
16
16
  * This endpoint fetches a single Compass Earn position by its encoded ID.
@@ -27,15 +27,15 @@ export declare class Earn extends ClientSDK {
27
27
  * Create earn account
28
28
  *
29
29
  * @remarks
30
- * Create a Compass Earn Account.
30
+ * Create an Earn Account.
31
31
  *
32
- * Before creating Earn positions you must create a Compass Earn Account. This account will be associated with the `owner` wallet address.
32
+ * Before creating Earn positions, the `owner` must create an Earn Account associated with their wallet address.
33
33
  *
34
34
  * Only the `owner` has the authority to sign transactions for this account. This can be done in one of two ways:
35
35
  *
36
- * 1) The `owner` signs an unsigned transaction and submits to the network for execution. The `owner` covers the cost of gas in this case.
36
+ * 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.
37
37
  *
38
- * 2) The `owner` does an off-chain EIP-712 signature and submits this signature to the 'Prepare gas-sponsored transaction' endpoint (`/gas_sponsorship/prepare`).
38
+ * 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.
39
39
  *
40
40
  * 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.
41
41
  */
@@ -44,14 +44,14 @@ export declare class Earn extends ClientSDK {
44
44
  * Transfer tokens to/from account
45
45
  *
46
46
  * @remarks
47
- * Transfer tokens to and from a Compass Earn Account.
47
+ * Transfer tokens to and from an Earn Account.
48
48
  *
49
49
  * If `DEPOSIT`'` is selected, tokens will be transferred from the `owner`'s wallet into their Earn Account.
50
50
  *
51
51
  * If `WITHDRAW` is selected, tokens will be transferred from the `owner`'s Earn Account into their wallet.
52
52
  *
53
- * 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.
54
- * 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`).
53
+ * 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.
54
+ * 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.
55
55
  */
56
56
  earnTransfer(request: components.EarnTransferRequest, options?: RequestOptions): Promise<components.EarnTransferResponse>;
57
57
  /**
@@ -68,9 +68,9 @@ export declare class Earn extends ClientSDK {
68
68
  *
69
69
  * If `WITHDRAW` is selected, tokens will be withdrawn from the market to the `owner`'s Earn Account.
70
70
  *
71
- * A fee can be configured. This fee is deducted from the total `amount`. It can be expressed as a `FIXED` amount or a `PERCENTAGE`.
71
+ * 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`.
72
72
  *
73
- * 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.
73
+ * 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.
74
74
  */
75
75
  earnManage(request: components.EarnManageRequest, options?: RequestOptions): Promise<components.EarnManageResponse>;
76
76
  }
@@ -20,7 +20,7 @@ export class Earn extends ClientSDK {
20
20
  return unwrapAsync(earnEarnPositions(this, request, options));
21
21
  }
22
22
  /**
23
- * Get individual earn position
23
+ * Get earn position
24
24
  *
25
25
  * @remarks
26
26
  * This endpoint fetches a single Compass Earn position by its encoded ID.
@@ -41,15 +41,15 @@ export class Earn extends ClientSDK {
41
41
  * Create earn account
42
42
  *
43
43
  * @remarks
44
- * Create a Compass Earn Account.
44
+ * Create an Earn Account.
45
45
  *
46
- * Before creating Earn positions you must create a Compass Earn Account. This account will be associated with the `owner` wallet address.
46
+ * Before creating Earn positions, the `owner` must create an Earn Account associated with their wallet address.
47
47
  *
48
48
  * Only the `owner` has the authority to sign transactions for this account. This can be done in one of two ways:
49
49
  *
50
- * 1) The `owner` signs an unsigned transaction and submits to the network for execution. The `owner` covers the cost of gas in this case.
50
+ * 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.
51
51
  *
52
- * 2) The `owner` does an off-chain EIP-712 signature and submits this signature to the 'Prepare gas-sponsored transaction' endpoint (`/gas_sponsorship/prepare`).
52
+ * 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.
53
53
  *
54
54
  * 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.
55
55
  */
@@ -60,14 +60,14 @@ export class Earn extends ClientSDK {
60
60
  * Transfer tokens to/from account
61
61
  *
62
62
  * @remarks
63
- * Transfer tokens to and from a Compass Earn Account.
63
+ * Transfer tokens to and from an Earn Account.
64
64
  *
65
65
  * If `DEPOSIT`'` is selected, tokens will be transferred from the `owner`'s wallet into their Earn Account.
66
66
  *
67
67
  * If `WITHDRAW` is selected, tokens will be transferred from the `owner`'s Earn Account into their wallet.
68
68
  *
69
- * 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.
70
- * 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`).
69
+ * 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.
70
+ * 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.
71
71
  */
72
72
  async earnTransfer(request, options) {
73
73
  return unwrapAsync(earnEarnTransfer(this, request, options));
@@ -86,9 +86,9 @@ export class Earn extends ClientSDK {
86
86
  *
87
87
  * If `WITHDRAW` is selected, tokens will be withdrawn from the market to the `owner`'s Earn Account.
88
88
  *
89
- * A fee can be configured. This fee is deducted from the total `amount`. It can be expressed as a `FIXED` amount or a `PERCENTAGE`.
89
+ * 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`.
90
90
  *
91
- * 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.
91
+ * 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.
92
92
  */
93
93
  async earnManage(request, options) {
94
94
  return unwrapAsync(earnEarnManage(this, request, options));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-labs/api-sdk",
3
- "version": "2.1.1-rc.1",
3
+ "version": "2.1.1",
4
4
  "author": "royalnine",
5
5
  "type": "module",
6
6
  "bin": {
@@ -29,15 +29,15 @@ import { Result } from "../types/fp.js";
29
29
  * Create earn account
30
30
  *
31
31
  * @remarks
32
- * Create a Compass Earn Account.
32
+ * Create an Earn Account.
33
33
  *
34
- * Before creating Earn positions you must create a Compass Earn Account. This account will be associated with the `owner` wallet address.
34
+ * Before creating Earn positions, the `owner` must create an Earn Account associated with their wallet address.
35
35
  *
36
36
  * Only the `owner` has the authority to sign transactions for this account. This can be done in one of two ways:
37
37
  *
38
- * 1) The `owner` signs an unsigned transaction and submits to the network for execution. The `owner` covers the cost of gas in this case.
38
+ * 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.
39
39
  *
40
- * 2) The `owner` does an off-chain EIP-712 signature and submits this signature to the 'Prepare gas-sponsored transaction' endpoint (`/gas_sponsorship/prepare`).
40
+ * 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.
41
41
  *
42
42
  * 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.
43
43
  */
@@ -39,9 +39,9 @@ import { Result } from "../types/fp.js";
39
39
  *
40
40
  * If `WITHDRAW` is selected, tokens will be withdrawn from the market to the `owner`'s Earn Account.
41
41
  *
42
- * A fee can be configured. This fee is deducted from the total `amount`. It can be expressed as a `FIXED` amount or a `PERCENTAGE`.
42
+ * 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`.
43
43
  *
44
- * 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.
44
+ * 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.
45
45
  */
46
46
  export function earnEarnManage(
47
47
  client: CompassApiSDKCore,
@@ -27,7 +27,7 @@ import { APICall, APIPromise } from "../types/async.js";
27
27
  import { Result } from "../types/fp.js";
28
28
 
29
29
  /**
30
- * Get individual earn position
30
+ * Get earn position
31
31
  *
32
32
  * @remarks
33
33
  * This endpoint fetches a single Compass Earn position by its encoded ID.
@@ -29,14 +29,14 @@ import { Result } from "../types/fp.js";
29
29
  * Transfer tokens to/from account
30
30
  *
31
31
  * @remarks
32
- * Transfer tokens to and from a Compass Earn Account.
32
+ * Transfer tokens to and from an Earn Account.
33
33
  *
34
34
  * If `DEPOSIT`'` is selected, tokens will be transferred from the `owner`'s wallet into their Earn Account.
35
35
  *
36
36
  * If `WITHDRAW` is selected, tokens will be transferred from the `owner`'s Earn Account into their wallet.
37
37
  *
38
- * 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.
39
- * 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`).
38
+ * 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.
39
+ * 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.
40
40
  */
41
41
  export function earnEarnTransfer(
42
42
  client: CompassApiSDKCore,
@@ -14,15 +14,15 @@ export const tool$earnEarnCreateAccount: ToolDefinition<typeof args> = {
14
14
  name: "earn-earn-create-account",
15
15
  description: `Create earn account
16
16
 
17
- Create a Compass Earn Account.
17
+ Create an Earn Account.
18
18
 
19
- Before creating Earn positions you must create a Compass Earn Account. This account will be associated with the \`owner\` wallet address.
19
+ Before creating Earn positions, the \`owner\` must create an Earn Account associated with their wallet address.
20
20
 
21
21
  Only the \`owner\` has the authority to sign transactions for this account. This can be done in one of two ways:
22
22
 
23
- 1) The \`owner\` signs an unsigned transaction and submits to the network for execution. The \`owner\` covers the cost of gas in this case.
23
+ 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.
24
24
 
25
- 2) The \`owner\` does an off-chain EIP-712 signature and submits this signature to the 'Prepare gas-sponsored transaction' endpoint (\`/gas_sponsorship/prepare\`).
25
+ 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.
26
26
 
27
27
  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.`,
28
28
  args,
@@ -24,9 +24,9 @@ If \`DEPOSIT\` is selected for \`action\`, tokens will be deposited to the marke
24
24
 
25
25
  If \`WITHDRAW\` is selected, tokens will be withdrawn from the market to the \`owner\`'s Earn Account.
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\`.
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\`.
28
28
 
29
- 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.`,
29
+ 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
30
  args,
31
31
  tool: async (client, args, ctx) => {
32
32
  const [result, apiCall] = await earnEarnManage(
@@ -12,7 +12,7 @@ const args = {
12
12
 
13
13
  export const tool$earnEarnPositionsPositionId: ToolDefinition<typeof args> = {
14
14
  name: "earn-earn-positions-position-id",
15
- description: `Get individual earn position
15
+ description: `Get earn position
16
16
 
17
17
  This endpoint fetches a single Compass Earn position by its encoded ID.`,
18
18
  args,
@@ -14,14 +14,14 @@ export const tool$earnEarnTransfer: ToolDefinition<typeof args> = {
14
14
  name: "earn-earn-transfer",
15
15
  description: `Transfer tokens to/from account
16
16
 
17
- Transfer tokens to and from a Compass Earn Account.
17
+ Transfer tokens to and from an Earn Account.
18
18
 
19
19
  If \`DEPOSIT\`'\` is selected, tokens will be transferred from the \`owner\`'s wallet into their Earn Account.
20
20
 
21
21
  If \`WITHDRAW\` is selected, tokens will be transferred from the \`owner\`'s Earn Account into their wallet.
22
22
 
23
- 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.
24
- 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\`).`,
23
+ 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.
24
+ 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.`,
25
25
  args,
26
26
  tool: async (client, args, ctx) => {
27
27
  const [result, apiCall] = await earnEarnTransfer(
package/src/sdk/earn.ts CHANGED
@@ -32,7 +32,7 @@ export class Earn extends ClientSDK {
32
32
  }
33
33
 
34
34
  /**
35
- * Get individual earn position
35
+ * Get earn position
36
36
  *
37
37
  * @remarks
38
38
  * This endpoint fetches a single Compass Earn position by its encoded ID.
@@ -69,15 +69,15 @@ export class Earn extends ClientSDK {
69
69
  * Create earn account
70
70
  *
71
71
  * @remarks
72
- * Create a Compass Earn Account.
72
+ * Create an Earn Account.
73
73
  *
74
- * Before creating Earn positions you must create a Compass Earn Account. This account will be associated with the `owner` wallet address.
74
+ * Before creating Earn positions, the `owner` must create an Earn Account associated with their wallet address.
75
75
  *
76
76
  * Only the `owner` has the authority to sign transactions for this account. This can be done in one of two ways:
77
77
  *
78
- * 1) The `owner` signs an unsigned transaction and submits to the network for execution. The `owner` covers the cost of gas in this case.
78
+ * 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.
79
79
  *
80
- * 2) The `owner` does an off-chain EIP-712 signature and submits this signature to the 'Prepare gas-sponsored transaction' endpoint (`/gas_sponsorship/prepare`).
80
+ * 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.
81
81
  *
82
82
  * 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.
83
83
  */
@@ -96,14 +96,14 @@ export class Earn extends ClientSDK {
96
96
  * Transfer tokens to/from account
97
97
  *
98
98
  * @remarks
99
- * Transfer tokens to and from a Compass Earn Account.
99
+ * Transfer tokens to and from an Earn Account.
100
100
  *
101
101
  * If `DEPOSIT`'` is selected, tokens will be transferred from the `owner`'s wallet into their Earn Account.
102
102
  *
103
103
  * If `WITHDRAW` is selected, tokens will be transferred from the `owner`'s Earn Account into their wallet.
104
104
  *
105
- * 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.
106
- * 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`).
105
+ * 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.
106
+ * 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.
107
107
  */
108
108
  async earnTransfer(
109
109
  request: components.EarnTransferRequest,
@@ -130,9 +130,9 @@ export class Earn extends ClientSDK {
130
130
  *
131
131
  * If `WITHDRAW` is selected, tokens will be withdrawn from the market to the `owner`'s Earn Account.
132
132
  *
133
- * A fee can be configured. This fee is deducted from the total `amount`. It can be expressed as a `FIXED` amount or a `PERCENTAGE`.
133
+ * 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`.
134
134
  *
135
- * 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.
135
+ * 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.
136
136
  */
137
137
  async earnManage(
138
138
  request: components.EarnManageRequest,