@compass-labs/api-sdk 2.1.26-rc.9 → 2.1.27-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/codeSamples_typescript.yaml +6 -6
- package/dist/commonjs/funcs/earnEarnManage.d.ts +4 -1
- package/dist/commonjs/funcs/earnEarnManage.d.ts.map +1 -1
- package/dist/commonjs/funcs/earnEarnManage.js +4 -1
- package/dist/commonjs/funcs/earnEarnManage.js.map +1 -1
- package/dist/commonjs/funcs/earnEarnPositions.js +1 -1
- package/dist/commonjs/funcs/earnEarnPositions.js.map +1 -1
- package/dist/commonjs/models/components/fee.d.ts +6 -5
- package/dist/commonjs/models/components/fee.d.ts.map +1 -1
- package/dist/commonjs/models/components/fee.js +2 -1
- package/dist/commonjs/models/components/fee.js.map +1 -1
- package/dist/commonjs/models/operations/v2earnpositions.d.ts +3 -3
- package/dist/commonjs/models/operations/v2earnpositions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/v2earnpositions.js +1 -6
- package/dist/commonjs/models/operations/v2earnpositions.js.map +1 -1
- package/dist/commonjs/sdk/earn.d.ts +4 -1
- package/dist/commonjs/sdk/earn.d.ts.map +1 -1
- package/dist/commonjs/sdk/earn.js +4 -1
- package/dist/commonjs/sdk/earn.js.map +1 -1
- package/dist/esm/funcs/earnEarnManage.d.ts +4 -1
- package/dist/esm/funcs/earnEarnManage.d.ts.map +1 -1
- package/dist/esm/funcs/earnEarnManage.js +4 -1
- package/dist/esm/funcs/earnEarnManage.js.map +1 -1
- package/dist/esm/funcs/earnEarnPositions.js +1 -1
- package/dist/esm/funcs/earnEarnPositions.js.map +1 -1
- package/dist/esm/models/components/fee.d.ts +6 -5
- package/dist/esm/models/components/fee.d.ts.map +1 -1
- package/dist/esm/models/components/fee.js +2 -1
- package/dist/esm/models/components/fee.js.map +1 -1
- package/dist/esm/models/operations/v2earnpositions.d.ts +3 -3
- package/dist/esm/models/operations/v2earnpositions.d.ts.map +1 -1
- package/dist/esm/models/operations/v2earnpositions.js +1 -6
- package/dist/esm/models/operations/v2earnpositions.js.map +1 -1
- package/dist/esm/sdk/earn.d.ts +4 -1
- package/dist/esm/sdk/earn.d.ts.map +1 -1
- package/dist/esm/sdk/earn.js +4 -1
- package/dist/esm/sdk/earn.js.map +1 -1
- package/docs/models/components/aavelooprequest.md +15 -15
- package/docs/models/components/aaverepayrequest.md +5 -5
- package/docs/models/components/aaverepayrequestamount.md +2 -2
- package/docs/models/components/aaverepayrequestchain.md +1 -1
- package/docs/models/components/aavesetuseremoderequest.md +3 -3
- package/docs/models/components/aavesetuseremoderequestchain.md +1 -1
- package/docs/models/components/aavesupplyrequest.md +4 -4
- package/docs/models/components/aavesupplyrequestamount.md +2 -2
- package/docs/models/components/aavesupplyrequestchain.md +1 -1
- package/docs/models/components/aavewithdrawrequest.md +5 -5
- package/docs/models/components/aavewithdrawrequestamount.md +2 -2
- package/docs/models/components/aavewithdrawrequestchain.md +1 -1
- package/docs/models/components/aerodromeslipstreambuyexactlyrequest.md +7 -7
- package/docs/models/components/aerodromeslipstreambuyexactlyrequestamountinmaximum.md +2 -2
- package/docs/models/components/aerodromeslipstreambuyexactlyrequestamountout.md +2 -2
- package/docs/models/components/aerodromeslipstreamincreaseliquidityprovisionrequest.md +7 -7
- package/docs/models/components/aerodromeslipstreamincreaseliquidityprovisionrequestamount0desired.md +2 -2
- package/docs/models/components/aerodromeslipstreamincreaseliquidityprovisionrequestamount0min.md +2 -2
- package/docs/models/components/aerodromeslipstreamincreaseliquidityprovisionrequestamount1desired.md +2 -2
- package/docs/models/components/aerodromeslipstreamincreaseliquidityprovisionrequestamount1min.md +2 -2
- package/docs/models/components/aerodromeslipstreammintliquidityprovisionrequest.md +12 -12
- package/docs/models/components/aerodromeslipstreammintliquidityprovisionrequestamount0desired.md +2 -2
- package/docs/models/components/aerodromeslipstreammintliquidityprovisionrequestamount0min.md +2 -2
- package/docs/models/components/aerodromeslipstreammintliquidityprovisionrequestamount1desired.md +2 -2
- package/docs/models/components/aerodromeslipstreammintliquidityprovisionrequestamount1min.md +2 -2
- package/docs/models/components/aerodromeslipstreamsellexactlyrequest.md +6 -6
- package/docs/models/components/aerodromeslipstreamsellexactlyrequestamountin.md +2 -2
- package/docs/models/components/aerodromeslipstreamwithdrawliquidityprovisionrequest.md +4 -4
- package/docs/models/components/aerodromeslipstreamwithdrawliquidityprovisionrequestpercentageforwithdrawal.md +2 -2
- package/docs/models/components/approvetransferrequest.md +2 -2
- package/docs/models/components/approvetransferresponse.md +7 -2
- package/docs/models/components/batchedsafeoperationsresponseinput.md +22 -9
- package/docs/models/components/batchedsafeoperationsresponseoutput.md +2 -7
- package/docs/models/components/batcheduseroperationsrequest.md +2 -2
- package/docs/models/components/createaccountrequest.md +5 -5
- package/docs/models/components/createaccountrequestchain.md +1 -1
- package/docs/models/components/denomination.md +2 -2
- package/docs/models/components/depositforburnrequest.md +4 -4
- package/docs/models/components/depositforburnrequestamount.md +2 -2
- package/docs/models/components/depositforburnresponse.md +2 -7
- package/docs/models/components/destinationchain.md +1 -1
- package/docs/models/components/earnmanageparams.md +2 -2
- package/docs/models/components/earnmanageparamsvenue.md +1 -1
- package/docs/models/components/earnmanagerequest.md +4 -4
- package/docs/models/components/earnmanagerequestvenue.md +1 -1
- package/docs/models/components/earnswaprequest.md +5 -5
- package/docs/models/components/earnswaprequestamountin.md +2 -2
- package/docs/models/components/earnswapresponse.md +2 -7
- package/docs/models/components/earntransferrequest.md +5 -5
- package/docs/models/components/earntransferrequestaction.md +1 -1
- package/docs/models/components/earntransferrequestamount.md +2 -2
- package/docs/models/components/earntransferresponse.md +2 -7
- package/docs/models/components/earntransferresponseeip712.md +6 -11
- package/docs/models/components/ethenadepositrequest.md +3 -3
- package/docs/models/components/ethenadepositrequestamount.md +2 -2
- package/docs/models/components/ethenarequesttowithdrawrequest.md +2 -2
- package/docs/models/components/ethenaunstakerequest.md +2 -2
- package/docs/models/components/fee.md +5 -5
- package/docs/models/components/feeamount.md +1 -1
- package/docs/models/components/initialcollateralamount.md +2 -2
- package/docs/models/components/loantovalue.md +2 -2
- package/docs/models/components/maxslippagepercent.md +2 -2
- package/docs/models/components/mintpreparerequest.md +5 -5
- package/docs/models/components/morphoborrowrequest.md +4 -4
- package/docs/models/components/morphoborrowrequestamount.md +2 -2
- package/docs/models/components/morphoborrowrequestchain.md +1 -1
- package/docs/models/components/morphodepositrequest.md +4 -4
- package/docs/models/components/morphodepositrequestamount.md +2 -2
- package/docs/models/components/morphodepositrequestchain.md +1 -1
- package/docs/models/components/morphorepayrequest.md +3 -3
- package/docs/models/components/morphosupplycollateralrequest.md +4 -4
- package/docs/models/components/morphosupplycollateralrequestamount.md +2 -2
- package/docs/models/components/morphosupplycollateralrequestchain.md +1 -1
- package/docs/models/components/morphowithdrawcollateralrequest.md +4 -4
- package/docs/models/components/morphowithdrawcollateralrequestamount.md +2 -2
- package/docs/models/components/morphowithdrawrequest.md +3 -3
- package/docs/models/components/morphowithdrawrequestchain.md +1 -1
- package/docs/models/components/multicallauthorizationrequest.md +4 -4
- package/docs/models/components/multicallauthorizationrequestchain.md +1 -1
- package/docs/models/components/multicallexecuterequest.md +7 -7
- package/docs/models/components/multiplier.md +2 -2
- package/docs/models/components/odosswaprequest.md +6 -6
- package/docs/models/components/odosswaprequestamountin.md +2 -2
- package/docs/models/components/pendlemanageliquidityrequest.md +7 -7
- package/docs/models/components/pendlemanageliquidityrequestamountin.md +2 -2
- package/docs/models/components/pendlemanageliquidityrequestchain.md +1 -1
- package/docs/models/components/pendleredeemyieldrequest.md +3 -3
- package/docs/models/components/pendletradeptrequest.md +7 -7
- package/docs/models/components/pendletradeptrequestaction.md +1 -1
- package/docs/models/components/pendletradeptrequestamountin.md +2 -2
- package/docs/models/components/pendletradeytrequest.md +7 -7
- package/docs/models/components/pendletradeytrequestaction.md +1 -1
- package/docs/models/components/pendletradeytrequestamountin.md +2 -2
- package/docs/models/components/permit2typeddatainput.md +10 -34
- package/docs/models/components/permit2typeddataoutput.md +4 -4
- package/docs/models/components/permittransferfrommessage.md +1 -1
- package/docs/models/components/permittypeddataresponseinput.md +50 -11
- package/docs/models/components/permittypeddataresponseoutput.md +7 -2
- package/docs/models/components/setallowancerequest.md +5 -5
- package/docs/models/components/setallowancerequestamount.md +2 -2
- package/docs/models/components/setallowancerequestcontractenum.md +1 -1
- package/docs/models/components/setallowancerequestcontractunion.md +1 -1
- package/docs/models/components/signedauthorization.md +6 -6
- package/docs/models/components/skybuyrequest.md +4 -4
- package/docs/models/components/skybuyrequestamount.md +2 -2
- package/docs/models/components/skydepositrequest.md +2 -2
- package/docs/models/components/skydepositrequestamount.md +2 -2
- package/docs/models/components/skysellrequest.md +4 -4
- package/docs/models/components/skysellrequestamount.md +2 -2
- package/docs/models/components/skysellrequesttokenout.md +1 -1
- package/docs/models/components/skywithdrawrequest.md +1 -1
- package/docs/models/components/sponsorgasrequest.md +7 -7
- package/docs/models/components/sponsorgasrequesteip712.md +76 -48
- package/docs/models/components/tokentransferrequest.md +5 -5
- package/docs/models/components/tokentransferrequestamount.md +2 -2
- package/docs/models/components/tokentransferrequestchain.md +1 -1
- package/docs/models/components/uniswapbuyexactlyrequest.md +6 -6
- package/docs/models/components/uniswapbuyexactlyrequestamountout.md +2 -2
- package/docs/models/components/uniswapbuyexactlyrequestchain.md +1 -1
- package/docs/models/components/uniswapincreaseliquidityprovisionrequest.md +7 -7
- package/docs/models/components/uniswapincreaseliquidityprovisionrequestamount0desired.md +2 -2
- package/docs/models/components/uniswapincreaseliquidityprovisionrequestamount0min.md +2 -2
- package/docs/models/components/uniswapincreaseliquidityprovisionrequestamount1desired.md +2 -2
- package/docs/models/components/uniswapincreaseliquidityprovisionrequestamount1min.md +2 -2
- package/docs/models/components/uniswapincreaseliquidityprovisionrequestchain.md +1 -1
- package/docs/models/components/uniswapmintliquidityprovisionrequest.md +11 -11
- package/docs/models/components/uniswapmintliquidityprovisionrequestamount0desired.md +2 -2
- package/docs/models/components/uniswapmintliquidityprovisionrequestamount0min.md +2 -2
- package/docs/models/components/uniswapmintliquidityprovisionrequestamount1desired.md +2 -2
- package/docs/models/components/uniswapmintliquidityprovisionrequestamount1min.md +2 -2
- package/docs/models/components/uniswapsellexactlyrequest.md +6 -6
- package/docs/models/components/uniswapsellexactlyrequestamountin.md +2 -2
- package/docs/models/components/uniswapsellexactlyrequestchain.md +1 -1
- package/docs/models/components/uniswapwithdrawliquidityprovisionrequest.md +4 -4
- package/docs/models/components/uniswapwithdrawliquidityprovisionrequestchain.md +1 -1
- package/docs/models/components/uniswapwithdrawliquidityprovisionrequestpercentageforwithdrawal.md +2 -2
- package/docs/models/components/unwrapwethrequest.md +3 -3
- package/docs/models/components/unwrapwethrequestamount.md +2 -2
- package/docs/models/components/unwrapwethrequestchain.md +1 -1
- package/docs/models/components/v2bundlerequest.md +7 -7
- package/docs/models/components/v2useroperation.md +2 -2
- package/docs/models/components/v2useroperationbody.md +2 -2
- package/docs/models/components/vaultdepositrequest.md +4 -4
- package/docs/models/components/vaultdepositrequestamount.md +2 -2
- package/docs/models/components/vaultvenue.md +1 -1
- package/docs/models/components/vaultwithdrawrequest.md +3 -3
- package/docs/models/components/vaultwithdrawrequestchain.md +1 -1
- package/docs/models/components/wrapethrequest.md +3 -3
- package/docs/models/components/wrapethrequestamount.md +2 -2
- package/docs/models/components/wrapethrequestchain.md +1 -1
- package/docs/models/operations/v2earnpositionsrequest.md +2 -2
- package/docs/sdks/earn/README.md +18 -15
- package/package.json +1 -1
- package/src/funcs/earnEarnManage.ts +4 -1
- package/src/funcs/earnEarnPositions.ts +1 -1
- package/src/models/components/fee.ts +6 -5
- package/src/models/operations/v2earnpositions.ts +4 -9
- 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: \"
|
|
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: \"
|
|
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: \"
|
|
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
|
|
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: \"
|
|
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: \"
|
|
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
|
|
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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AC,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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"earnEarnManage.js","sourceRoot":"","sources":["../../../src/funcs/earnEarnManage.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDH,wCAuB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,
|
|
70
70
|
"offset": payload.offset,
|
|
71
|
-
"
|
|
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,CAAC,EACxE,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,IAAI,CAAC;IAElB,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,oBAAoB,CAAC,EAAE,CAAC;IAEhD,MAAM,KAAK,GAAG,IAAA,8BAAe,EAAC;QAC5B,OAA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AAE,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)
|
|
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)
|
|
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)
|
|
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
|
|
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;;;;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"}
|
|
@@ -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)
|
|
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":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"fee.js","sourceRoot":"","sources":["../../../../src/models/components/fee.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDH,0CAEC;AAqBD,8BAEC;AAvED,0CAA4B;AAQ5B;;GAEG;AACU,QAAA,YAAY,GAAG;IAC1B,UAAU,EAAE,YAAY;IACxB,KAAK,EAAE,OAAO;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
|
|
20
|
+
* The address of the owner of the earn account to get positions for.
|
|
21
21
|
*/
|
|
22
|
-
|
|
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
|
-
|
|
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;
|
|
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
|
-
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
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
|
|
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,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAQ5C;;;;;;;;;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,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
|
|
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;AAC5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AAC,QAAQ,CACZ,OAAmC,EACnC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8BAAY,EAC7B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,UAAU,CACd,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
|
|
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,EA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,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
|
|
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,sBAAsB,CAAC;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CAAC,CAAC,KAAK,CAY5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,gCAAgC,CAAC,EACxD,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"}
|
|
@@ -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
|
-
"
|
|
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,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AClD,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)
|
|
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)
|
|
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)
|
|
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
|
|
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;;;;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)
|
|
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;
|
|
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;IACd,WAAW,EAAE,aAAa;CAClB,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,YAAY,EAAE,2BAA2B,CAAC,QAAQ,EAAE;CACrD,CAAC,CAAC;AAEL,MAAM,UAAU,SAAS,CAAC,GAAQ;IAChC,OAAO,IAAI,CAAC,SAAS,CAAC,kBAAkB,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
|
|
20
|
+
* The address of the owner of the earn account to get positions for.
|
|
21
21
|
*/
|
|
22
|
-
|
|
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
|
-
|
|
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;
|
|
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"}
|
|
@@ -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
|
-
|
|
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;
|
|
1
|
+
{"version":3,"file":"v2earnpositions.js","sourceRoot":"","sources":["../../../../src/models/operations/v2earnpositions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,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,MAAM,CAAC,MAAM,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,mCAAmC;IAC1C,KAAK,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"}
|
package/dist/esm/sdk/earn.d.ts
CHANGED
|
@@ -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
|
|
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,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAQ5C;;;;;;;;;;;;OAYG;IACG,YAAY,CAChB,OAAO,EAAE,UAA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Ac,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"}
|
package/dist/esm/sdk/earn.js
CHANGED
|
@@ -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
|
|
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
|
*/
|
package/dist/esm/sdk/earn.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"earn.js","sourceRoot":"","sources":["../../../src/sdk/earn.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EA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