@compass-labs/api-sdk 0.0.3 → 0.0.4

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/FUNCTIONS.md CHANGED
@@ -30,7 +30,10 @@ const compassApiSDK = new CompassApiSDKCore({
30
30
  });
31
31
 
32
32
  async function run() {
33
- const res = await aaveV3TokenPrice(compassApiSDK, {});
33
+ const res = await aaveV3TokenPrice(compassApiSDK, {
34
+ chain: "arbitrum:mainnet",
35
+ token: "USDC",
36
+ });
34
37
 
35
38
  switch (true) {
36
39
  case res.ok:
package/README.md CHANGED
@@ -180,7 +180,10 @@ const compassApiSDK = new CompassApiSDK({
180
180
  });
181
181
 
182
182
  async function run() {
183
- const result = await compassApiSDK.aaveV3.tokenPrice({});
183
+ const result = await compassApiSDK.aaveV3.tokenPrice({
184
+ chain: "arbitrum:mainnet",
185
+ token: "USDC",
186
+ });
184
187
 
185
188
  // Handle the result
186
189
  console.log(result);
@@ -211,7 +214,10 @@ const compassApiSDK = new CompassApiSDK({
211
214
  });
212
215
 
213
216
  async function run() {
214
- const result = await compassApiSDK.aaveV3.tokenPrice({});
217
+ const result = await compassApiSDK.aaveV3.tokenPrice({
218
+ chain: "arbitrum:mainnet",
219
+ token: "USDC",
220
+ });
215
221
 
216
222
  // Handle the result
217
223
  console.log(result);
@@ -387,7 +393,10 @@ const compassApiSDK = new CompassApiSDK({
387
393
  });
388
394
 
389
395
  async function run() {
390
- const result = await compassApiSDK.aaveV3.tokenPrice({}, {
396
+ const result = await compassApiSDK.aaveV3.tokenPrice({
397
+ chain: "arbitrum:mainnet",
398
+ token: "USDC",
399
+ }, {
391
400
  retries: {
392
401
  strategy: "backoff",
393
402
  backoff: {
@@ -427,7 +436,10 @@ const compassApiSDK = new CompassApiSDK({
427
436
  });
428
437
 
429
438
  async function run() {
430
- const result = await compassApiSDK.aaveV3.tokenPrice({});
439
+ const result = await compassApiSDK.aaveV3.tokenPrice({
440
+ chain: "arbitrum:mainnet",
441
+ token: "USDC",
442
+ });
431
443
 
432
444
  // Handle the result
433
445
  console.log(result);
@@ -464,7 +476,10 @@ const compassApiSDK = new CompassApiSDK({
464
476
  async function run() {
465
477
  let result;
466
478
  try {
467
- result = await compassApiSDK.aaveV3.tokenPrice({});
479
+ result = await compassApiSDK.aaveV3.tokenPrice({
480
+ chain: "arbitrum:mainnet",
481
+ token: "USDC",
482
+ });
468
483
 
469
484
  // Handle the result
470
485
  console.log(result);
@@ -523,7 +538,10 @@ const compassApiSDK = new CompassApiSDK({
523
538
  });
524
539
 
525
540
  async function run() {
526
- const result = await compassApiSDK.aaveV3.tokenPrice({});
541
+ const result = await compassApiSDK.aaveV3.tokenPrice({
542
+ chain: "arbitrum:mainnet",
543
+ token: "USDC",
544
+ });
527
545
 
528
546
  // Handle the result
529
547
  console.log(result);
package/bin/mcp-server.js CHANGED
@@ -34190,9 +34190,9 @@ var init_config = __esm(() => {
34190
34190
  SDK_METADATA = {
34191
34191
  language: "typescript",
34192
34192
  openapiDocVersion: "0.0.1",
34193
- sdkVersion: "0.0.3",
34193
+ sdkVersion: "0.0.4",
34194
34194
  genVersion: "2.595.4",
34195
- userAgent: "speakeasy-sdk/typescript 0.0.3 2.595.4 0.0.1 @compass-labs/api-sdk"
34195
+ userAgent: "speakeasy-sdk/typescript 0.0.4 2.595.4 0.0.1 @compass-labs/api-sdk"
34196
34196
  };
34197
34197
  });
34198
34198
 
@@ -39323,7 +39323,7 @@ var init_morphovaults = __esm(() => {
39323
39323
  })(MorphoVaultsChain$ ||= {});
39324
39324
  MorphoVaultsRequest$inboundSchema = objectType({
39325
39325
  chain: MorphoVaultsChain$inboundSchema.default("ethereum:mainnet"),
39326
- deposit_token: nullableType(stringType()).optional()
39326
+ deposit_token: nullableType(stringType())
39327
39327
  }).transform((v2) => {
39328
39328
  return remap(v2, {
39329
39329
  deposit_token: "depositToken"
@@ -39331,7 +39331,7 @@ var init_morphovaults = __esm(() => {
39331
39331
  });
39332
39332
  MorphoVaultsRequest$outboundSchema = objectType({
39333
39333
  chain: MorphoVaultsChain$outboundSchema.default("ethereum:mainnet"),
39334
- depositToken: nullableType(stringType()).optional()
39334
+ depositToken: nullableType(stringType())
39335
39335
  }).transform((v2) => {
39336
39336
  return remap(v2, {
39337
39337
  depositToken: "deposit_token"
@@ -45700,7 +45700,7 @@ it to be traded on DeFi protocols.`,
45700
45700
  function createMCPServer(deps) {
45701
45701
  const server = new McpServer({
45702
45702
  name: "CompassApiSDK",
45703
- version: "0.0.3"
45703
+ version: "0.0.4"
45704
45704
  });
45705
45705
  const client = new CompassApiSDKCore({
45706
45706
  apiKeyAuth: deps.apiKeyAuth,
@@ -47015,7 +47015,7 @@ var routes = an({
47015
47015
  var app = He(routes, {
47016
47016
  name: "mcp",
47017
47017
  versionInfo: {
47018
- currentVersion: "0.0.3"
47018
+ currentVersion: "0.0.4"
47019
47019
  }
47020
47020
  });
47021
47021
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -47023,5 +47023,5 @@ export {
47023
47023
  app
47024
47024
  };
47025
47025
 
47026
- //# debugId=28072651C860F52B64756E2164756E21
47026
+ //# debugId=D2B3534D2D1AE17064756E2164756E21
47027
47027
  //# sourceMappingURL=mcp-server.js.map