Skip to content
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

Include Flags in Server Definitions #303

Closed
WietseWind opened this issue Apr 1, 2024 · 5 comments
Closed

Include Flags in Server Definitions #303

WietseWind opened this issue Apr 1, 2024 · 5 comments
Assignees

Comments

@WietseWind
Copy link
Contributor

WietseWind commented Apr 1, 2024

With different amendments not only come different TX types and fields, but also different flags. As we see right now, even the same flag numbers with different meanings. For example, AccountSet flag 16 on XRPL mainnet is asfAllowTrustLineClawback while on Xahau asfDisallowIncomingRemit.

I propose the flags are included in the RPC server_definitions calls, so explorers & clients like Xaman can adapt ther screens (e.g. Sign Request & TX Details information) to a specific network.

I propose an object added to the definitions with an array with e.g. Flags per TX Type, or even an object with TX Type » Flag » integer. (Or any other format).

[
  { transactor: 'AccountSet', flagName: 'asfAllowTrustLineClawback', flag: 16 }
]

or

{
  AccountSet: {
    asfAllowTrustLineClawback: 16
  }
}

Prio

This is needed for:

@RichardAH
Copy link
Contributor

yep good catch, we'll add to server definitions

@zgrguric
Copy link

zgrguric commented Apr 3, 2024

I would like to see flags included on XRPL also.

@WietseWind
Copy link
Contributor Author

I would like to see flags included on XRPL also.

Yep we should definitely PR this into xrplf/rippled

@WietseWind
Copy link
Contributor Author

@N3TC4T This will be in the upcoming xahaud release :) So we can include the right flag names in 3.0 :)

@RichardAH
Copy link
Contributor

#304
#306

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

No branches or pull requests

4 participants