@compass-labs/api-sdk 0.0.25 → 0.0.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.
- package/bin/mcp-server.js +6 -6
- package/bin/mcp-server.js.map +31 -31
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/operations/aavehistoricaltransactions.d.ts +9 -0
- package/dist/commonjs/models/operations/aavehistoricaltransactions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aavehistoricaltransactions.js.map +1 -1
- package/dist/commonjs/models/operations/aaveliquiditychange.d.ts +7 -6
- package/dist/commonjs/models/operations/aaveliquiditychange.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaveliquiditychange.js.map +1 -1
- package/dist/commonjs/models/operations/aaverate.d.ts +1 -6
- package/dist/commonjs/models/operations/aaverate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaverate.js.map +1 -1
- package/dist/commonjs/models/operations/aavereserveoverview.d.ts +1 -6
- package/dist/commonjs/models/operations/aavereserveoverview.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aavereserveoverview.js.map +1 -1
- package/dist/commonjs/models/operations/aavetokenprice.d.ts +1 -6
- package/dist/commonjs/models/operations/aavetokenprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aavetokenprice.js.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionpertoken.d.ts +4 -6
- package/dist/commonjs/models/operations/aaveuserpositionpertoken.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionpertoken.js.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionsummary.d.ts +3 -0
- package/dist/commonjs/models/operations/aaveuserpositionsummary.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionsummary.js.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts +3 -0
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.js.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.d.ts +5 -12
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.js.map +1 -1
- package/dist/commonjs/models/operations/genericallowance.d.ts +13 -6
- package/dist/commonjs/models/operations/genericallowance.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericallowance.js +3 -0
- package/dist/commonjs/models/operations/genericallowance.js.map +1 -1
- package/dist/commonjs/models/operations/genericens.d.ts +3 -0
- package/dist/commonjs/models/operations/genericens.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericens.js.map +1 -1
- package/dist/commonjs/models/operations/genericportfolio.d.ts +3 -0
- package/dist/commonjs/models/operations/genericportfolio.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericportfolio.js.map +1 -1
- package/dist/commonjs/models/operations/genericvisualizeportfolio.d.ts +3 -0
- package/dist/commonjs/models/operations/genericvisualizeportfolio.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericvisualizeportfolio.js.map +1 -1
- package/dist/commonjs/models/operations/morphomarketposition.d.ts +6 -0
- package/dist/commonjs/models/operations/morphomarketposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphomarketposition.js.map +1 -1
- package/dist/commonjs/models/operations/morphomarkets.d.ts +6 -0
- package/dist/commonjs/models/operations/morphomarkets.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphomarkets.js.map +1 -1
- package/dist/commonjs/models/operations/morphovaultposition.d.ts +6 -0
- package/dist/commonjs/models/operations/morphovaultposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphovaultposition.js.map +1 -1
- package/dist/commonjs/models/operations/morphovaults.d.ts +3 -0
- package/dist/commonjs/models/operations/morphovaults.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphovaults.js.map +1 -1
- package/dist/commonjs/models/operations/skyposition.d.ts +3 -0
- package/dist/commonjs/models/operations/skyposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/skyposition.js.map +1 -1
- package/dist/commonjs/models/operations/tokenaddress.d.ts +1 -6
- package/dist/commonjs/models/operations/tokenaddress.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tokenaddress.js.map +1 -1
- package/dist/commonjs/models/operations/tokenbalance.d.ts +9 -0
- package/dist/commonjs/models/operations/tokenbalance.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tokenbalance.js.map +1 -1
- package/dist/commonjs/models/operations/tokenprice.d.ts +1 -6
- package/dist/commonjs/models/operations/tokenprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tokenprice.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.d.ts +3 -0
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.d.ts +3 -0
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.js.map +1 -1
- package/dist/commonjs/models/operations/uniswappoolprice.d.ts +3 -17
- package/dist/commonjs/models/operations/uniswappoolprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswappoolprice.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.d.ts +9 -17
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotesellexactly.d.ts +9 -17
- package/dist/commonjs/models/operations/uniswapquotesellexactly.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotesellexactly.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/operations/aavehistoricaltransactions.d.ts +9 -0
- package/dist/esm/models/operations/aavehistoricaltransactions.d.ts.map +1 -1
- package/dist/esm/models/operations/aavehistoricaltransactions.js.map +1 -1
- package/dist/esm/models/operations/aaveliquiditychange.d.ts +7 -6
- package/dist/esm/models/operations/aaveliquiditychange.d.ts.map +1 -1
- package/dist/esm/models/operations/aaveliquiditychange.js.map +1 -1
- package/dist/esm/models/operations/aaverate.d.ts +1 -6
- package/dist/esm/models/operations/aaverate.d.ts.map +1 -1
- package/dist/esm/models/operations/aaverate.js.map +1 -1
- package/dist/esm/models/operations/aavereserveoverview.d.ts +1 -6
- package/dist/esm/models/operations/aavereserveoverview.d.ts.map +1 -1
- package/dist/esm/models/operations/aavereserveoverview.js.map +1 -1
- package/dist/esm/models/operations/aavetokenprice.d.ts +1 -6
- package/dist/esm/models/operations/aavetokenprice.d.ts.map +1 -1
- package/dist/esm/models/operations/aavetokenprice.js.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionpertoken.d.ts +4 -6
- package/dist/esm/models/operations/aaveuserpositionpertoken.d.ts.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionpertoken.js.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionsummary.d.ts +3 -0
- package/dist/esm/models/operations/aaveuserpositionsummary.d.ts.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionsummary.js.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts +3 -0
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.js.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.d.ts +5 -12
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.d.ts.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.js.map +1 -1
- package/dist/esm/models/operations/genericallowance.d.ts +13 -6
- package/dist/esm/models/operations/genericallowance.d.ts.map +1 -1
- package/dist/esm/models/operations/genericallowance.js +3 -0
- package/dist/esm/models/operations/genericallowance.js.map +1 -1
- package/dist/esm/models/operations/genericens.d.ts +3 -0
- package/dist/esm/models/operations/genericens.d.ts.map +1 -1
- package/dist/esm/models/operations/genericens.js.map +1 -1
- package/dist/esm/models/operations/genericportfolio.d.ts +3 -0
- package/dist/esm/models/operations/genericportfolio.d.ts.map +1 -1
- package/dist/esm/models/operations/genericportfolio.js.map +1 -1
- package/dist/esm/models/operations/genericvisualizeportfolio.d.ts +3 -0
- package/dist/esm/models/operations/genericvisualizeportfolio.d.ts.map +1 -1
- package/dist/esm/models/operations/genericvisualizeportfolio.js.map +1 -1
- package/dist/esm/models/operations/morphomarketposition.d.ts +6 -0
- package/dist/esm/models/operations/morphomarketposition.d.ts.map +1 -1
- package/dist/esm/models/operations/morphomarketposition.js.map +1 -1
- package/dist/esm/models/operations/morphomarkets.d.ts +6 -0
- package/dist/esm/models/operations/morphomarkets.d.ts.map +1 -1
- package/dist/esm/models/operations/morphomarkets.js.map +1 -1
- package/dist/esm/models/operations/morphovaultposition.d.ts +6 -0
- package/dist/esm/models/operations/morphovaultposition.d.ts.map +1 -1
- package/dist/esm/models/operations/morphovaultposition.js.map +1 -1
- package/dist/esm/models/operations/morphovaults.d.ts +3 -0
- package/dist/esm/models/operations/morphovaults.d.ts.map +1 -1
- package/dist/esm/models/operations/morphovaults.js.map +1 -1
- package/dist/esm/models/operations/skyposition.d.ts +3 -0
- package/dist/esm/models/operations/skyposition.d.ts.map +1 -1
- package/dist/esm/models/operations/skyposition.js.map +1 -1
- package/dist/esm/models/operations/tokenaddress.d.ts +1 -6
- package/dist/esm/models/operations/tokenaddress.d.ts.map +1 -1
- package/dist/esm/models/operations/tokenaddress.js.map +1 -1
- package/dist/esm/models/operations/tokenbalance.d.ts +9 -0
- package/dist/esm/models/operations/tokenbalance.d.ts.map +1 -1
- package/dist/esm/models/operations/tokenbalance.js.map +1 -1
- package/dist/esm/models/operations/tokenprice.d.ts +1 -6
- package/dist/esm/models/operations/tokenprice.d.ts.map +1 -1
- package/dist/esm/models/operations/tokenprice.js.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.d.ts +3 -0
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.js.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.d.ts +3 -0
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.js.map +1 -1
- package/dist/esm/models/operations/uniswappoolprice.d.ts +3 -17
- package/dist/esm/models/operations/uniswappoolprice.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswappoolprice.js.map +1 -1
- package/dist/esm/models/operations/uniswapquotebuyexactly.d.ts +9 -17
- package/dist/esm/models/operations/uniswapquotebuyexactly.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapquotebuyexactly.js.map +1 -1
- package/dist/esm/models/operations/uniswapquotesellexactly.d.ts +9 -17
- package/dist/esm/models/operations/uniswapquotesellexactly.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapquotesellexactly.js.map +1 -1
- package/docs/sdks/aavev3/README.md +14 -14
- package/docs/sdks/aerodromeslipstream/README.md +30 -30
- package/docs/sdks/morpho/README.md +10 -14
- package/docs/sdks/sky/README.md +2 -2
- package/docs/sdks/token/README.md +2 -2
- package/docs/sdks/transactionbatching/README.md +20 -26
- package/docs/sdks/uniswapv3/README.md +26 -26
- package/docs/sdks/universal/README.md +4 -4
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/aavehistoricaltransactions.ts +9 -0
- package/src/models/operations/aaveliquiditychange.ts +7 -6
- package/src/models/operations/aaverate.ts +1 -6
- package/src/models/operations/aavereserveoverview.ts +1 -6
- package/src/models/operations/aavetokenprice.ts +1 -6
- package/src/models/operations/aaveuserpositionpertoken.ts +4 -6
- package/src/models/operations/aaveuserpositionsummary.ts +3 -0
- package/src/models/operations/aerodromeslipstreamliquidityprovisionpositions.ts +3 -0
- package/src/models/operations/aerodromeslipstreampoolprice.ts +5 -12
- package/src/models/operations/genericallowance.ts +13 -6
- package/src/models/operations/genericens.ts +3 -0
- package/src/models/operations/genericportfolio.ts +3 -0
- package/src/models/operations/genericvisualizeportfolio.ts +3 -0
- package/src/models/operations/morphomarketposition.ts +6 -0
- package/src/models/operations/morphomarkets.ts +6 -0
- package/src/models/operations/morphovaultposition.ts +6 -0
- package/src/models/operations/morphovaults.ts +3 -0
- package/src/models/operations/skyposition.ts +3 -0
- package/src/models/operations/tokenaddress.ts +1 -6
- package/src/models/operations/tokenbalance.ts +9 -0
- package/src/models/operations/tokenprice.ts +1 -6
- package/src/models/operations/uniswapliquidityprovisioninrange.ts +3 -0
- package/src/models/operations/uniswapliquidityprovisionpositions.ts +3 -0
- package/src/models/operations/uniswappoolprice.ts +3 -17
- package/src/models/operations/uniswapquotebuyexactly.ts +9 -17
- package/src/models/operations/uniswapquotesellexactly.ts +9 -17
|
@@ -35,9 +35,7 @@ const compassApiSDK = new CompassApiSDK({
|
|
|
35
35
|
});
|
|
36
36
|
|
|
37
37
|
async function run() {
|
|
38
|
-
const result = await compassApiSDK.morpho.vaults({
|
|
39
|
-
depositToken: "<value>",
|
|
40
|
-
});
|
|
38
|
+
const result = await compassApiSDK.morpho.vaults({});
|
|
41
39
|
|
|
42
40
|
// Handle the result
|
|
43
41
|
console.log(result);
|
|
@@ -61,9 +59,7 @@ const compassApiSDK = new CompassApiSDKCore({
|
|
|
61
59
|
});
|
|
62
60
|
|
|
63
61
|
async function run() {
|
|
64
|
-
const res = await morphoVaults(compassApiSDK, {
|
|
65
|
-
depositToken: "<value>",
|
|
66
|
-
});
|
|
62
|
+
const res = await morphoVaults(compassApiSDK, {});
|
|
67
63
|
|
|
68
64
|
if (!res.ok) {
|
|
69
65
|
throw res.error;
|
|
@@ -355,7 +351,7 @@ async function run() {
|
|
|
355
351
|
const result = await compassApiSDK.morpho.allowance({
|
|
356
352
|
vaultAddress: "0xbEef047a543E45807105E51A8BBEFCc5950fcfBa",
|
|
357
353
|
amount: 1.5,
|
|
358
|
-
chain: "
|
|
354
|
+
chain: "ethereum:mainnet",
|
|
359
355
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
360
356
|
});
|
|
361
357
|
|
|
@@ -384,7 +380,7 @@ async function run() {
|
|
|
384
380
|
const res = await morphoAllowance(compassApiSDK, {
|
|
385
381
|
vaultAddress: "0xbEef047a543E45807105E51A8BBEFCc5950fcfBa",
|
|
386
382
|
amount: 1.5,
|
|
387
|
-
chain: "
|
|
383
|
+
chain: "ethereum:mainnet",
|
|
388
384
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
389
385
|
});
|
|
390
386
|
|
|
@@ -629,7 +625,7 @@ async function run() {
|
|
|
629
625
|
const result = await compassApiSDK.morpho.supplyCollateral({
|
|
630
626
|
amount: 1.5,
|
|
631
627
|
uniqueMarketKey: "0xe7399fdebc318d76dfec7356caafcf8cd4b91287e139a3ec423f09aeeb656fc4",
|
|
632
|
-
chain: "
|
|
628
|
+
chain: "ethereum:mainnet",
|
|
633
629
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
634
630
|
});
|
|
635
631
|
|
|
@@ -658,7 +654,7 @@ async function run() {
|
|
|
658
654
|
const res = await morphoSupplyCollateral(compassApiSDK, {
|
|
659
655
|
amount: 1.5,
|
|
660
656
|
uniqueMarketKey: "0xe7399fdebc318d76dfec7356caafcf8cd4b91287e139a3ec423f09aeeb656fc4",
|
|
661
|
-
chain: "
|
|
657
|
+
chain: "ethereum:mainnet",
|
|
662
658
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
663
659
|
});
|
|
664
660
|
|
|
@@ -808,7 +804,7 @@ async function run() {
|
|
|
808
804
|
const result = await compassApiSDK.morpho.borrow({
|
|
809
805
|
amount: 1.5,
|
|
810
806
|
uniqueMarketKey: "0xe7399fdebc318d76dfec7356caafcf8cd4b91287e139a3ec423f09aeeb656fc4",
|
|
811
|
-
chain: "
|
|
807
|
+
chain: "base:mainnet",
|
|
812
808
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
813
809
|
});
|
|
814
810
|
|
|
@@ -837,7 +833,7 @@ async function run() {
|
|
|
837
833
|
const res = await morphoBorrow(compassApiSDK, {
|
|
838
834
|
amount: 1.5,
|
|
839
835
|
uniqueMarketKey: "0xe7399fdebc318d76dfec7356caafcf8cd4b91287e139a3ec423f09aeeb656fc4",
|
|
840
|
-
chain: "
|
|
836
|
+
chain: "base:mainnet",
|
|
841
837
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
842
838
|
});
|
|
843
839
|
|
|
@@ -894,7 +890,7 @@ const compassApiSDK = new CompassApiSDK({
|
|
|
894
890
|
|
|
895
891
|
async function run() {
|
|
896
892
|
const result = await compassApiSDK.morpho.repay({
|
|
897
|
-
amount: "
|
|
893
|
+
amount: "1.5",
|
|
898
894
|
uniqueMarketKey: "0xe7399fdebc318d76dfec7356caafcf8cd4b91287e139a3ec423f09aeeb656fc4",
|
|
899
895
|
chain: "ethereum:mainnet",
|
|
900
896
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
@@ -923,7 +919,7 @@ const compassApiSDK = new CompassApiSDKCore({
|
|
|
923
919
|
|
|
924
920
|
async function run() {
|
|
925
921
|
const res = await morphoRepay(compassApiSDK, {
|
|
926
|
-
amount: "
|
|
922
|
+
amount: "1.5",
|
|
927
923
|
uniqueMarketKey: "0xe7399fdebc318d76dfec7356caafcf8cd4b91287e139a3ec423f09aeeb656fc4",
|
|
928
924
|
chain: "ethereum:mainnet",
|
|
929
925
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
package/docs/sdks/sky/README.md
CHANGED
|
@@ -360,7 +360,7 @@ const compassApiSDK = new CompassApiSDK({
|
|
|
360
360
|
|
|
361
361
|
async function run() {
|
|
362
362
|
const result = await compassApiSDK.sky.withdraw({
|
|
363
|
-
amount: "
|
|
363
|
+
amount: "797.31",
|
|
364
364
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
365
365
|
});
|
|
366
366
|
|
|
@@ -387,7 +387,7 @@ const compassApiSDK = new CompassApiSDKCore({
|
|
|
387
387
|
|
|
388
388
|
async function run() {
|
|
389
389
|
const res = await skyWithdraw(compassApiSDK, {
|
|
390
|
-
amount: "
|
|
390
|
+
amount: "797.31",
|
|
391
391
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
392
392
|
});
|
|
393
393
|
|
|
@@ -189,7 +189,7 @@ async function run() {
|
|
|
189
189
|
const result = await compassApiSDK.token.balance({
|
|
190
190
|
chain: "arbitrum:mainnet",
|
|
191
191
|
user: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
192
|
-
token: "
|
|
192
|
+
token: "KNC",
|
|
193
193
|
});
|
|
194
194
|
|
|
195
195
|
// Handle the result
|
|
@@ -217,7 +217,7 @@ async function run() {
|
|
|
217
217
|
const res = await tokenBalance(compassApiSDK, {
|
|
218
218
|
chain: "arbitrum:mainnet",
|
|
219
219
|
user: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
220
|
-
token: "
|
|
220
|
+
token: "KNC",
|
|
221
221
|
});
|
|
222
222
|
|
|
223
223
|
if (!res.ok) {
|
|
@@ -113,7 +113,7 @@ const compassApiSDK = new CompassApiSDK({
|
|
|
113
113
|
|
|
114
114
|
async function run() {
|
|
115
115
|
const result = await compassApiSDK.transactionBatching.execute({
|
|
116
|
-
chain: "
|
|
116
|
+
chain: "base:mainnet",
|
|
117
117
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
118
118
|
signedAuthorization: {
|
|
119
119
|
nonce: 1000,
|
|
@@ -125,14 +125,11 @@ async function run() {
|
|
|
125
125
|
},
|
|
126
126
|
actions: [
|
|
127
127
|
{
|
|
128
|
-
actionType: "
|
|
128
|
+
actionType: "ALLOWANCE_INCREASE",
|
|
129
129
|
body: {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
fee: "0.01",
|
|
130
|
+
token: "WETH",
|
|
131
|
+
contractName: "AaveV3Pool",
|
|
133
132
|
amount: 1.5,
|
|
134
|
-
maxSlippagePercent: 0.5,
|
|
135
|
-
wrapEth: true,
|
|
136
133
|
},
|
|
137
134
|
},
|
|
138
135
|
],
|
|
@@ -161,7 +158,7 @@ const compassApiSDK = new CompassApiSDKCore({
|
|
|
161
158
|
|
|
162
159
|
async function run() {
|
|
163
160
|
const res = await transactionBatchingExecute(compassApiSDK, {
|
|
164
|
-
chain: "
|
|
161
|
+
chain: "base:mainnet",
|
|
165
162
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
166
163
|
signedAuthorization: {
|
|
167
164
|
nonce: 1000,
|
|
@@ -173,14 +170,11 @@ async function run() {
|
|
|
173
170
|
},
|
|
174
171
|
actions: [
|
|
175
172
|
{
|
|
176
|
-
actionType: "
|
|
173
|
+
actionType: "ALLOWANCE_INCREASE",
|
|
177
174
|
body: {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
fee: "0.01",
|
|
175
|
+
token: "WETH",
|
|
176
|
+
contractName: "AaveV3Pool",
|
|
181
177
|
amount: 1.5,
|
|
182
|
-
maxSlippagePercent: 0.5,
|
|
183
|
-
wrapEth: true,
|
|
184
178
|
},
|
|
185
179
|
},
|
|
186
180
|
],
|
|
@@ -244,7 +238,7 @@ const compassApiSDK = new CompassApiSDK({
|
|
|
244
238
|
|
|
245
239
|
async function run() {
|
|
246
240
|
const result = await compassApiSDK.transactionBatching.aaveLoop({
|
|
247
|
-
chain: "
|
|
241
|
+
chain: "base:mainnet",
|
|
248
242
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
249
243
|
signedAuthorization: {
|
|
250
244
|
nonce: 1000,
|
|
@@ -254,12 +248,12 @@ async function run() {
|
|
|
254
248
|
s: 5.471500338403868e+76,
|
|
255
249
|
yParity: 0,
|
|
256
250
|
},
|
|
257
|
-
collateralToken: "
|
|
258
|
-
borrowToken: "
|
|
251
|
+
collateralToken: "MKR",
|
|
252
|
+
borrowToken: "FXS",
|
|
259
253
|
collateralAmount: "1000",
|
|
260
|
-
loopCount:
|
|
261
|
-
maxSlippagePercent:
|
|
262
|
-
loanToValue:
|
|
254
|
+
loopCount: 3,
|
|
255
|
+
maxSlippagePercent: 10,
|
|
256
|
+
loanToValue: 70,
|
|
263
257
|
});
|
|
264
258
|
|
|
265
259
|
// Handle the result
|
|
@@ -285,7 +279,7 @@ const compassApiSDK = new CompassApiSDKCore({
|
|
|
285
279
|
|
|
286
280
|
async function run() {
|
|
287
281
|
const res = await transactionBatchingAaveLoop(compassApiSDK, {
|
|
288
|
-
chain: "
|
|
282
|
+
chain: "base:mainnet",
|
|
289
283
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
290
284
|
signedAuthorization: {
|
|
291
285
|
nonce: 1000,
|
|
@@ -295,12 +289,12 @@ async function run() {
|
|
|
295
289
|
s: 5.471500338403868e+76,
|
|
296
290
|
yParity: 0,
|
|
297
291
|
},
|
|
298
|
-
collateralToken: "
|
|
299
|
-
borrowToken: "
|
|
292
|
+
collateralToken: "MKR",
|
|
293
|
+
borrowToken: "FXS",
|
|
300
294
|
collateralAmount: "1000",
|
|
301
|
-
loopCount:
|
|
302
|
-
maxSlippagePercent:
|
|
303
|
-
loanToValue:
|
|
295
|
+
loopCount: 3,
|
|
296
|
+
maxSlippagePercent: 10,
|
|
297
|
+
loanToValue: 70,
|
|
304
298
|
});
|
|
305
299
|
|
|
306
300
|
if (!res.ok) {
|
|
@@ -469,9 +469,9 @@ const compassApiSDK = new CompassApiSDK({
|
|
|
469
469
|
|
|
470
470
|
async function run() {
|
|
471
471
|
const result = await compassApiSDK.uniswapV3.swapBuyExactly({
|
|
472
|
-
tokenIn: "
|
|
473
|
-
tokenOut: "
|
|
474
|
-
fee: "
|
|
472
|
+
tokenIn: "FXS",
|
|
473
|
+
tokenOut: "ETHx",
|
|
474
|
+
fee: "0.01",
|
|
475
475
|
amount: 1.5,
|
|
476
476
|
maxSlippagePercent: 0.5,
|
|
477
477
|
chain: "ethereum:mainnet",
|
|
@@ -501,9 +501,9 @@ const compassApiSDK = new CompassApiSDKCore({
|
|
|
501
501
|
|
|
502
502
|
async function run() {
|
|
503
503
|
const res = await uniswapV3SwapBuyExactly(compassApiSDK, {
|
|
504
|
-
tokenIn: "
|
|
505
|
-
tokenOut: "
|
|
506
|
-
fee: "
|
|
504
|
+
tokenIn: "FXS",
|
|
505
|
+
tokenOut: "ETHx",
|
|
506
|
+
fee: "0.01",
|
|
507
507
|
amount: 1.5,
|
|
508
508
|
maxSlippagePercent: 0.5,
|
|
509
509
|
chain: "ethereum:mainnet",
|
|
@@ -565,7 +565,7 @@ const compassApiSDK = new CompassApiSDK({
|
|
|
565
565
|
async function run() {
|
|
566
566
|
const result = await compassApiSDK.uniswapV3.swapSellExactly({
|
|
567
567
|
tokenIn: "FXS",
|
|
568
|
-
tokenOut: "
|
|
568
|
+
tokenOut: "UNI",
|
|
569
569
|
fee: "0.05",
|
|
570
570
|
amount: 1.5,
|
|
571
571
|
maxSlippagePercent: 0.5,
|
|
@@ -597,7 +597,7 @@ const compassApiSDK = new CompassApiSDKCore({
|
|
|
597
597
|
async function run() {
|
|
598
598
|
const res = await uniswapV3SwapSellExactly(compassApiSDK, {
|
|
599
599
|
tokenIn: "FXS",
|
|
600
|
-
tokenOut: "
|
|
600
|
+
tokenOut: "UNI",
|
|
601
601
|
fee: "0.05",
|
|
602
602
|
amount: 1.5,
|
|
603
603
|
maxSlippagePercent: 0.5,
|
|
@@ -661,12 +661,12 @@ const compassApiSDK = new CompassApiSDK({
|
|
|
661
661
|
|
|
662
662
|
async function run() {
|
|
663
663
|
const result = await compassApiSDK.uniswapV3.liquidityProvisionIncrease({
|
|
664
|
-
tokenId:
|
|
664
|
+
tokenId: 819447,
|
|
665
665
|
amount0Desired: "1.5",
|
|
666
666
|
amount1Desired: "1.7",
|
|
667
667
|
amount0Min: "1.4",
|
|
668
668
|
amount1Min: "1.6",
|
|
669
|
-
chain: "
|
|
669
|
+
chain: "ethereum:mainnet",
|
|
670
670
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
671
671
|
});
|
|
672
672
|
|
|
@@ -693,12 +693,12 @@ const compassApiSDK = new CompassApiSDKCore({
|
|
|
693
693
|
|
|
694
694
|
async function run() {
|
|
695
695
|
const res = await uniswapV3LiquidityProvisionIncrease(compassApiSDK, {
|
|
696
|
-
tokenId:
|
|
696
|
+
tokenId: 819447,
|
|
697
697
|
amount0Desired: "1.5",
|
|
698
698
|
amount1Desired: "1.7",
|
|
699
699
|
amount0Min: "1.4",
|
|
700
700
|
amount1Min: "1.6",
|
|
701
|
-
chain: "
|
|
701
|
+
chain: "ethereum:mainnet",
|
|
702
702
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
703
703
|
});
|
|
704
704
|
|
|
@@ -758,9 +758,9 @@ const compassApiSDK = new CompassApiSDK({
|
|
|
758
758
|
|
|
759
759
|
async function run() {
|
|
760
760
|
const result = await compassApiSDK.uniswapV3.liquidityProvisionMint({
|
|
761
|
-
token0: "
|
|
762
|
-
token1: "
|
|
763
|
-
fee: "0.
|
|
761
|
+
token0: "USDCe",
|
|
762
|
+
token1: "ARB",
|
|
763
|
+
fee: "0.3",
|
|
764
764
|
tickLower: -1000,
|
|
765
765
|
tickUpper: 1000,
|
|
766
766
|
amount0Desired: "1.5",
|
|
@@ -768,7 +768,7 @@ async function run() {
|
|
|
768
768
|
amount0Min: "1.4",
|
|
769
769
|
amount1Min: "1.6",
|
|
770
770
|
recipient: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
771
|
-
chain: "
|
|
771
|
+
chain: "arbitrum:mainnet",
|
|
772
772
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
773
773
|
});
|
|
774
774
|
|
|
@@ -795,9 +795,9 @@ const compassApiSDK = new CompassApiSDKCore({
|
|
|
795
795
|
|
|
796
796
|
async function run() {
|
|
797
797
|
const res = await uniswapV3LiquidityProvisionMint(compassApiSDK, {
|
|
798
|
-
token0: "
|
|
799
|
-
token1: "
|
|
800
|
-
fee: "0.
|
|
798
|
+
token0: "USDCe",
|
|
799
|
+
token1: "ARB",
|
|
800
|
+
fee: "0.3",
|
|
801
801
|
tickLower: -1000,
|
|
802
802
|
tickUpper: 1000,
|
|
803
803
|
amount0Desired: "1.5",
|
|
@@ -805,7 +805,7 @@ async function run() {
|
|
|
805
805
|
amount0Min: "1.4",
|
|
806
806
|
amount1Min: "1.6",
|
|
807
807
|
recipient: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
808
|
-
chain: "
|
|
808
|
+
chain: "arbitrum:mainnet",
|
|
809
809
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
810
810
|
});
|
|
811
811
|
|
|
@@ -866,9 +866,9 @@ const compassApiSDK = new CompassApiSDK({
|
|
|
866
866
|
|
|
867
867
|
async function run() {
|
|
868
868
|
const result = await compassApiSDK.uniswapV3.liquidityProvisionWithdraw({
|
|
869
|
-
tokenId:
|
|
870
|
-
percentageForWithdrawal: "
|
|
871
|
-
chain: "
|
|
869
|
+
tokenId: 719537,
|
|
870
|
+
percentageForWithdrawal: "100",
|
|
871
|
+
chain: "arbitrum:mainnet",
|
|
872
872
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
873
873
|
});
|
|
874
874
|
|
|
@@ -895,9 +895,9 @@ const compassApiSDK = new CompassApiSDKCore({
|
|
|
895
895
|
|
|
896
896
|
async function run() {
|
|
897
897
|
const res = await uniswapV3LiquidityProvisionWithdraw(compassApiSDK, {
|
|
898
|
-
tokenId:
|
|
899
|
-
percentageForWithdrawal: "
|
|
900
|
-
chain: "
|
|
898
|
+
tokenId: 719537,
|
|
899
|
+
percentageForWithdrawal: "100",
|
|
900
|
+
chain: "arbitrum:mainnet",
|
|
901
901
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
902
902
|
});
|
|
903
903
|
|
|
@@ -436,7 +436,7 @@ const compassApiSDK = new CompassApiSDK({
|
|
|
436
436
|
async function run() {
|
|
437
437
|
const result = await compassApiSDK.universal.wrapEth({
|
|
438
438
|
amount: 1.5,
|
|
439
|
-
chain: "
|
|
439
|
+
chain: "arbitrum:mainnet",
|
|
440
440
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
441
441
|
});
|
|
442
442
|
|
|
@@ -464,7 +464,7 @@ const compassApiSDK = new CompassApiSDKCore({
|
|
|
464
464
|
async function run() {
|
|
465
465
|
const res = await universalWrapEth(compassApiSDK, {
|
|
466
466
|
amount: 1.5,
|
|
467
|
-
chain: "
|
|
467
|
+
chain: "arbitrum:mainnet",
|
|
468
468
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
469
469
|
});
|
|
470
470
|
|
|
@@ -607,7 +607,7 @@ async function run() {
|
|
|
607
607
|
token: "rETH",
|
|
608
608
|
contractName: "AaveV3Pool",
|
|
609
609
|
amount: 1.5,
|
|
610
|
-
chain: "
|
|
610
|
+
chain: "base:mainnet",
|
|
611
611
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
612
612
|
});
|
|
613
613
|
|
|
@@ -637,7 +637,7 @@ async function run() {
|
|
|
637
637
|
token: "rETH",
|
|
638
638
|
contractName: "AaveV3Pool",
|
|
639
639
|
amount: 1.5,
|
|
640
|
-
chain: "
|
|
640
|
+
chain: "base:mainnet",
|
|
641
641
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
642
642
|
});
|
|
643
643
|
|
package/jsr.json
CHANGED
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -57,8 +57,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
57
57
|
export const SDK_METADATA = {
|
|
58
58
|
language: "typescript",
|
|
59
59
|
openapiDocVersion: "0.0.1",
|
|
60
|
-
sdkVersion: "0.0.
|
|
61
|
-
genVersion: "2.
|
|
60
|
+
sdkVersion: "0.0.26",
|
|
61
|
+
genVersion: "2.603.1",
|
|
62
62
|
userAgent:
|
|
63
|
-
"speakeasy-sdk/typescript 0.0.
|
|
63
|
+
"speakeasy-sdk/typescript 0.0.26 2.603.1 0.0.1 @compass-labs/api-sdk",
|
|
64
64
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -25,12 +25,21 @@ export type AaveHistoricalTransactionsChain = ClosedEnum<
|
|
|
25
25
|
>;
|
|
26
26
|
|
|
27
27
|
export type AaveHistoricalTransactionsRequest = {
|
|
28
|
+
/**
|
|
29
|
+
* The offset of the first item to return.
|
|
30
|
+
*/
|
|
28
31
|
offset?: number | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* The number of items to return.
|
|
34
|
+
*/
|
|
29
35
|
limit?: number | undefined;
|
|
30
36
|
/**
|
|
31
37
|
* The chain to use.
|
|
32
38
|
*/
|
|
33
39
|
chain?: AaveHistoricalTransactionsChain | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* The address of the user to get historical transactions for.
|
|
42
|
+
*/
|
|
34
43
|
userAddress?: string | undefined;
|
|
35
44
|
};
|
|
36
45
|
|
|
@@ -96,15 +96,16 @@ export type AaveLiquidityChangeRequest = {
|
|
|
96
96
|
*/
|
|
97
97
|
chain?: AaveLiquidityChangeChain | undefined;
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* @remarks
|
|
102
|
-
*
|
|
103
|
-
* This class is used to represent the token in the system. Notice individual
|
|
104
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
99
|
+
* The symbol of the asset to get liquidity change for..
|
|
105
100
|
*/
|
|
106
101
|
token?: AaveLiquidityChangeToken | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* The start block to calculate liquidity change from.
|
|
104
|
+
*/
|
|
107
105
|
startBlock?: number | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* The end block to calculate liquidity change to.
|
|
108
|
+
*/
|
|
108
109
|
endBlock?: number | undefined;
|
|
109
110
|
};
|
|
110
111
|
|
|
@@ -91,12 +91,7 @@ export type AaveRateRequest = {
|
|
|
91
91
|
*/
|
|
92
92
|
chain?: AaveRateChain | undefined;
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
* @remarks
|
|
97
|
-
*
|
|
98
|
-
* This class is used to represent the token in the system. Notice individual
|
|
99
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
94
|
+
* The symbol of the asset to fetch the users' position on..
|
|
100
95
|
*/
|
|
101
96
|
token?: AaveRateToken | undefined;
|
|
102
97
|
};
|
|
@@ -95,12 +95,7 @@ export type AaveReserveOverviewRequest = {
|
|
|
95
95
|
*/
|
|
96
96
|
chain?: AaveReserveOverviewChain | undefined;
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
* @remarks
|
|
101
|
-
*
|
|
102
|
-
* This class is used to represent the token in the system. Notice individual
|
|
103
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
98
|
+
* The symbol of the asset..
|
|
104
99
|
*/
|
|
105
100
|
token?: AaveReserveOverviewToken | undefined;
|
|
106
101
|
};
|
|
@@ -91,12 +91,7 @@ export type AaveTokenPriceRequest = {
|
|
|
91
91
|
*/
|
|
92
92
|
chain?: AaveTokenPriceChain | undefined;
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
* @remarks
|
|
97
|
-
*
|
|
98
|
-
* This class is used to represent the token in the system. Notice individual
|
|
99
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
94
|
+
* The symbol of the asset whose price you want..
|
|
100
95
|
*/
|
|
101
96
|
token?: AaveTokenPriceToken | undefined;
|
|
102
97
|
};
|
|
@@ -94,14 +94,12 @@ export type AaveUserPositionPerTokenRequest = {
|
|
|
94
94
|
* The chain to use.
|
|
95
95
|
*/
|
|
96
96
|
chain?: AaveUserPositionPerTokenChain | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* The user to fetch the token-specific position of.
|
|
99
|
+
*/
|
|
97
100
|
user?: string | undefined;
|
|
98
101
|
/**
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* @remarks
|
|
102
|
-
*
|
|
103
|
-
* This class is used to represent the token in the system. Notice individual
|
|
104
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
102
|
+
* The symbol of the asset to fetch the user's position on..
|
|
105
103
|
*/
|
|
106
104
|
token?: AaveUserPositionPerTokenToken | undefined;
|
|
107
105
|
};
|
|
@@ -28,6 +28,9 @@ export type AerodromeSlipstreamLiquidityProvisionPositionsRequest = {
|
|
|
28
28
|
* The chain to use.
|
|
29
29
|
*/
|
|
30
30
|
chain?: AerodromeSlipstreamLiquidityProvisionPositionsChain | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The user to get positions for.
|
|
33
|
+
*/
|
|
31
34
|
user?: string | undefined;
|
|
32
35
|
};
|
|
33
36
|
|
|
@@ -162,23 +162,16 @@ export type AerodromeSlipstreamPoolPriceRequest = {
|
|
|
162
162
|
*/
|
|
163
163
|
chain?: AerodromeSlipstreamPoolPriceChain | undefined;
|
|
164
164
|
/**
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
* @remarks
|
|
168
|
-
*
|
|
169
|
-
* This class is used to represent the token in the system. Notice individual
|
|
170
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
165
|
+
* The symbol of a token in the pool.
|
|
171
166
|
*/
|
|
172
167
|
tokenIn?: AerodromeSlipstreamPoolPriceTokenInToken | undefined;
|
|
173
168
|
/**
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
* @remarks
|
|
177
|
-
*
|
|
178
|
-
* This class is used to represent the token in the system. Notice individual
|
|
179
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
169
|
+
* The symbol of a token in the pool.
|
|
180
170
|
*/
|
|
181
171
|
tokenOut?: AerodromeSlipstreamPoolPriceTokenOutToken | undefined;
|
|
172
|
+
/**
|
|
173
|
+
* The tick spacing of the pool
|
|
174
|
+
*/
|
|
182
175
|
tickSpacing?: number | undefined;
|
|
183
176
|
};
|
|
184
177
|
|
|
@@ -86,6 +86,9 @@ export const GenericAllowanceToken = {
|
|
|
86
86
|
*/
|
|
87
87
|
export type GenericAllowanceToken = ClosedEnum<typeof GenericAllowanceToken>;
|
|
88
88
|
|
|
89
|
+
/**
|
|
90
|
+
* The name of the contract to check allowance for.
|
|
91
|
+
*/
|
|
89
92
|
export const ContractName = {
|
|
90
93
|
AaveV3Pool: "AaveV3Pool",
|
|
91
94
|
AerodromeBasicRouter: "AerodromeBasicRouter",
|
|
@@ -99,6 +102,9 @@ export const ContractName = {
|
|
|
99
102
|
SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
|
|
100
103
|
SkyUsdsVault: "SkyUsdsVault",
|
|
101
104
|
} as const;
|
|
105
|
+
/**
|
|
106
|
+
* The name of the contract to check allowance for.
|
|
107
|
+
*/
|
|
102
108
|
export type ContractName = ClosedEnum<typeof ContractName>;
|
|
103
109
|
|
|
104
110
|
export type GenericAllowanceRequest = {
|
|
@@ -106,16 +112,17 @@ export type GenericAllowanceRequest = {
|
|
|
106
112
|
* The chain to use.
|
|
107
113
|
*/
|
|
108
114
|
chain?: GenericAllowanceChain | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* The user to get the ERC20 allowance of.
|
|
117
|
+
*/
|
|
109
118
|
user?: string | undefined;
|
|
110
119
|
/**
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
* @remarks
|
|
114
|
-
*
|
|
115
|
-
* This class is used to represent the token in the system. Notice individual
|
|
116
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
120
|
+
* The symbol of the token for which the allowance is checked..
|
|
117
121
|
*/
|
|
118
122
|
token?: GenericAllowanceToken | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* The name of the contract to check allowance for.
|
|
125
|
+
*/
|
|
119
126
|
contractName?: ContractName | undefined;
|
|
120
127
|
};
|
|
121
128
|
|