Skip to content

refactor: Update outdated webapi endpoints and models #599

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

howjmay
Copy link
Member

@howjmay howjmay commented Apr 18, 2025

No description provided.

@howjmay howjmay force-pushed the webapi branch 2 times, most recently from c85007c to 24e4b94 Compare April 18, 2025 14:33
@howjmay howjmay changed the title refactor: Update webapi refactor: Update outdated webapi endpoints and models Apr 18, 2025
@howjmay howjmay marked this pull request as ready for review April 18, 2025 22:10
Copy link
Collaborator

@lmoe lmoe left a comment

Choose a reason for hiding this comment

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

lgtm, please implement/remove any added comment

@@ -32,6 +32,7 @@ type StateAnchor struct {
Raw string `json:"raw" swagger:"desc(The raw data of the anchor (Hex)),required"`
}

// TODO should be removed in the future
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why should it be removed?

Copy link
Member Author

Choose a reason for hiding this comment

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

The user who want to examine the past versions of Anchor can use iota_tryGetPastObject. And we already have a metric about StateAnchor. Not sure how much useful that a metric of StateTransaction is

"github.com/iotaledger/wasp/clients/apiclient"
"github.com/iotaledger/wasp/packages/coin"
"github.com/iotaledger/wasp/packages/isc"
)

// TODO: Handle Coins (other than base tokens) and Objects
// TODO: Handle Objects
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might make sense to just have one balance route, which returns everything an account has. Coins and Objects. Then I'd make sense to add objects here

Copy link
Member Author

Choose a reason for hiding this comment

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

Should I rename this func for Balance ( Coins) only?

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