Skip to content

feat: add expandAssets param to offers and multisig-info endpoint - #598

Merged
Sulex45 merged 2 commits into
stellarkit-lab-devtools:mainfrom
Hovibby:feat/offers-expand-assets-multisig-info
Jul 26, 2026
Merged

feat: add expandAssets param to offers and multisig-info endpoint#598
Sulex45 merged 2 commits into
stellarkit-lab-devtools:mainfrom
Hovibby:feat/offers-expand-assets-multisig-info

Conversation

@Hovibby

@Hovibby Hovibby commented Jul 25, 2026

Copy link
Copy Markdown

…heck-multisig example

  • GET /account/:id/offers?expandAssets=true embeds full { code, issuer, type } asset objects under selling.asset and buying.asset on each offer. Default behaviour (omitted) returns simplified spread fields — backward-compatible.

  • GET /account/:id/multisig-info returns isMultisig, masterWeight, thresholds (low/med/high), and full signers list with normalized types.

  • examples/check-multisig.js: dependency-free runnable script that calls /account/:id/multisig-info and prints a formatted human-readable summary of the account's signing setup. Usage: node examples/check-multisig.js G...

  • tests/account.offers.expandAssets.test.js: covers both default and expanded modes, native/credit assets, and expandAssets=false fallback.

  • tests/account.multisigInfo.test.js: covers happy path, single-signer, threshold-based isMultisig detection, type normalisation, 404, and 400.

  • Fix pre-existing duplicate const declarations (cacheService, cacheTTL) at the top of src/routes/account.js.

Description

Linked Issue

Closes #

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Testing Notes

Checklist

  • I have updated the documentation accordingly.
  • My changes generate no new warnings.
  • I have performed a self-review of my own code.

closes #588
closes #584

…heck-multisig example

- GET /account/:id/offers?expandAssets=true embeds full { code, issuer, type }
  asset objects under selling.asset and buying.asset on each offer.
  Default behaviour (omitted) returns simplified spread fields — backward-compatible.

- GET /account/:id/multisig-info returns isMultisig, masterWeight,
  thresholds (low/med/high), and full signers list with normalized types.

- examples/check-multisig.js: dependency-free runnable script that calls
  /account/:id/multisig-info and prints a formatted human-readable summary
  of the account's signing setup. Usage: node examples/check-multisig.js G...

- tests/account.offers.expandAssets.test.js: covers both default and
  expanded modes, native/credit assets, and expandAssets=false fallback.

- tests/account.multisigInfo.test.js: covers happy path, single-signer,
  threshold-based isMultisig detection, type normalisation, 404, and 400.

- Fix pre-existing duplicate const declarations (cacheService, cacheTTL)
  at the top of src/routes/account.js.
@drips-wave

drips-wave Bot commented Jul 25, 2026

Copy link
Copy Markdown

@Hovibby Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Sulex45
Sulex45 merged commit f7796df into stellarkit-lab-devtools:main Jul 26, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants