Skip to content

Commit

Permalink
Create FractionalCentAmount & update schema (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
brh28 authored Oct 7, 2024
1 parent be6ad63 commit ac3b62f
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 207 deletions.
8 changes: 6 additions & 2 deletions dev/apollo-federation/supergraph.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,10 @@ type FeesInformation
deposit: DepositFeesInformation!
}

"""(Positive) Cent amount (1/100 of a dollar) as a float"""
scalar FractionalCentAmount
@join__type(graph: PUBLIC)

"""
Provides global settings for the application which might have an impact for the user.
"""
Expand Down Expand Up @@ -786,7 +790,7 @@ input LnUsdInvoiceCreateInput
@join__type(graph: PUBLIC)
{
"""Amount in USD cents."""
amount: CentAmount!
amount: FractionalCentAmount!

"""Optional invoice expiration time in minutes."""
expiresIn: Minutes
Expand Down Expand Up @@ -1066,7 +1070,7 @@ type npubByUsername
npub: npub

"""Optional immutable user friendly identifier."""
username: Username @deprecated(reason: "will be moved to @Handle in Account and Wallet")
username: Username
}

"""An address for an on-chain bitcoin destination"""
Expand Down
Loading

0 comments on commit ac3b62f

Please sign in to comment.