Skip to content

feature [SGW-904] add params on post requests in L1 api#29

Merged
juanolmedo1 merged 3 commits intomainfrom
development/juan-o/SGW-904/l1-api-with-params
Aug 27, 2025
Merged

feature [SGW-904] add params on post requests in L1 api#29
juanolmedo1 merged 3 commits intomainfrom
development/juan-o/SGW-904/l1-api-with-params

Conversation

@juanolmedo1
Copy link
Contributor

@juanolmedo1 juanolmedo1 commented Aug 26, 2025

SGW-904

Changes

  • Added params and options as optional fields in the following methods:
    • postAllowSpend()
    • postTokenLock()
    • postTransaction()
  • Expose new params on clients: dag-account and metagraph-token-client

@juanolmedo1 juanolmedo1 self-assigned this Aug 26, 2025
@@ -1,4 +1,4 @@
import { RestApi } from "@stardust-collective/dag4-core";
import { RestApi, RestApiOptions } from "@stardust-collective/dag4-core";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason why we need to include RestApiOptions instead of just params?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not for now. I added the options param just for flexibility, we may need it in the future and the RestApi class supports it. I though it was a good opportunity to expose all supported params.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AlexBrandes any input?

@juanolmedo1 juanolmedo1 merged commit c23236d into main Aug 27, 2025
1 check passed
@juanolmedo1 juanolmedo1 deleted the development/juan-o/SGW-904/l1-api-with-params branch August 27, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants