Skip to content

Commit

Permalink
fix: speed null in onchain queries/mutations (#3384)
Browse files Browse the repository at this point in the history
  • Loading branch information
dolcalmi authored Oct 25, 2023
1 parent a80691b commit fb70de9
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 21 deletions.
14 changes: 7 additions & 7 deletions core/api/dev/apollo-federation/supergraph.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ input OnChainPaymentSendAllInput
{
address: OnChainAddress!
memo: Memo
speed: PayoutSpeed = FAST
speed: PayoutSpeed! = FAST
walletId: WalletId!
}

Expand All @@ -1102,7 +1102,7 @@ input OnChainPaymentSendInput
address: OnChainAddress!
amount: SatAmount!
memo: Memo
speed: PayoutSpeed = FAST
speed: PayoutSpeed! = FAST
walletId: WalletId!
}

Expand Down Expand Up @@ -1132,7 +1132,7 @@ input OnChainUsdPaymentSendAsBtcDenominatedInput
address: OnChainAddress!
amount: SatAmount!
memo: Memo
speed: PayoutSpeed = FAST
speed: PayoutSpeed! = FAST
walletId: WalletId!
}

Expand All @@ -1142,7 +1142,7 @@ input OnChainUsdPaymentSendInput
address: OnChainAddress!
amount: CentAmount!
memo: Memo
speed: PayoutSpeed = FAST
speed: PayoutSpeed! = FAST
walletId: WalletId!
}

Expand Down Expand Up @@ -1340,9 +1340,9 @@ type Query
lnInvoicePaymentStatus(input: LnInvoicePaymentStatusInput!): LnInvoicePaymentStatusPayload!
me: User
mobileVersions: [MobileVersions]
onChainTxFee(address: OnChainAddress!, amount: SatAmount!, speed: PayoutSpeed = FAST, walletId: WalletId!): OnChainTxFee!
onChainUsdTxFee(address: OnChainAddress!, amount: CentAmount!, speed: PayoutSpeed = FAST, walletId: WalletId!): OnChainUsdTxFee!
onChainUsdTxFeeAsBtcDenominated(address: OnChainAddress!, amount: SatAmount!, speed: PayoutSpeed = FAST, walletId: WalletId!): OnChainUsdTxFee!
onChainTxFee(address: OnChainAddress!, amount: SatAmount!, speed: PayoutSpeed! = FAST, walletId: WalletId!): OnChainTxFee!
onChainUsdTxFee(address: OnChainAddress!, amount: CentAmount!, speed: PayoutSpeed! = FAST, walletId: WalletId!): OnChainUsdTxFee!
onChainUsdTxFeeAsBtcDenominated(address: OnChainAddress!, amount: SatAmount!, speed: PayoutSpeed! = FAST, walletId: WalletId!): OnChainUsdTxFee!
quizQuestions: [QuizQuestion] @deprecated(reason: "TODO: remove. we don't need a non authenticated version of this query. the users can only do the query while authenticated")

"""Returns 1 Sat and 1 Usd Cent price for the given currency"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const OnChainPaymentSendAllInput = GT.Input({
walletId: { type: GT.NonNull(WalletId) },
address: { type: GT.NonNull(OnChainAddress) },
speed: {
type: PayoutSpeed,
type: GT.NonNull(PayoutSpeed),
defaultValue: DomainPayoutSpeed.Fast,
},
memo: { type: Memo },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const OnChainPaymentSendInput = GT.Input({
address: { type: GT.NonNull(OnChainAddress) },
amount: { type: GT.NonNull(SatAmount) },
speed: {
type: PayoutSpeed,
type: GT.NonNull(PayoutSpeed),
defaultValue: DomainPayoutSpeed.Fast,
},
memo: { type: Memo },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const OnChainUsdPaymentSendAsBtcDenominatedInput = GT.Input({
address: { type: GT.NonNull(OnChainAddress) },
amount: { type: GT.NonNull(SatsAmount) },
speed: {
type: PayoutSpeed,
type: GT.NonNull(PayoutSpeed),
defaultValue: DomainPayoutSpeed.Fast,
},
memo: { type: Memo },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const OnChainUsdPaymentSendInput = GT.Input({
address: { type: GT.NonNull(OnChainAddress) },
amount: { type: GT.NonNull(CentAmount) },
speed: {
type: PayoutSpeed,
type: GT.NonNull(PayoutSpeed),
defaultValue: DomainPayoutSpeed.Fast,
},
memo: { type: Memo },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const OnChainTxFeeQuery = GT.Field<null, GraphQLPublicContextAuth>({
address: { type: GT.NonNull(OnChainAddress) },
amount: { type: GT.NonNull(SatAmount) },
speed: {
type: PayoutSpeed,
type: GT.NonNull(PayoutSpeed),
defaultValue: DomainPayoutSpeed.Fast,
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const OnChainUsdTxFeeAsBtcDenominatedQuery = GT.Field<null, GraphQLPublicContext
address: { type: GT.NonNull(OnChainAddress) },
amount: { type: GT.NonNull(SatAmount) },
speed: {
type: PayoutSpeed,
type: GT.NonNull(PayoutSpeed),
defaultValue: DomainPayoutSpeed.Fast,
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const OnChainUsdTxFeeQuery = GT.Field<null, GraphQLPublicContextAuth>({
address: { type: GT.NonNull(OnChainAddress) },
amount: { type: GT.NonNull(CentAmount) },
speed: {
type: PayoutSpeed,
type: GT.NonNull(PayoutSpeed),
defaultValue: DomainPayoutSpeed.Fast,
},
},
Expand Down
14 changes: 7 additions & 7 deletions core/api/src/graphql/public/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -860,15 +860,15 @@ type OnChainAddressPayload {
input OnChainPaymentSendAllInput {
address: OnChainAddress!
memo: Memo
speed: PayoutSpeed = FAST
speed: PayoutSpeed! = FAST
walletId: WalletId!
}

input OnChainPaymentSendInput {
address: OnChainAddress!
amount: SatAmount!
memo: Memo
speed: PayoutSpeed = FAST
speed: PayoutSpeed! = FAST
walletId: WalletId!
}

Expand All @@ -891,15 +891,15 @@ input OnChainUsdPaymentSendAsBtcDenominatedInput {
address: OnChainAddress!
amount: SatAmount!
memo: Memo
speed: PayoutSpeed = FAST
speed: PayoutSpeed! = FAST
walletId: WalletId!
}

input OnChainUsdPaymentSendInput {
address: OnChainAddress!
amount: CentAmount!
memo: Memo
speed: PayoutSpeed = FAST
speed: PayoutSpeed! = FAST
walletId: WalletId!
}

Expand Down Expand Up @@ -1054,9 +1054,9 @@ type Query {
lnInvoicePaymentStatus(input: LnInvoicePaymentStatusInput!): LnInvoicePaymentStatusPayload!
me: User
mobileVersions: [MobileVersions]
onChainTxFee(address: OnChainAddress!, amount: SatAmount!, speed: PayoutSpeed = FAST, walletId: WalletId!): OnChainTxFee!
onChainUsdTxFee(address: OnChainAddress!, amount: CentAmount!, speed: PayoutSpeed = FAST, walletId: WalletId!): OnChainUsdTxFee!
onChainUsdTxFeeAsBtcDenominated(address: OnChainAddress!, amount: SatAmount!, speed: PayoutSpeed = FAST, walletId: WalletId!): OnChainUsdTxFee!
onChainTxFee(address: OnChainAddress!, amount: SatAmount!, speed: PayoutSpeed! = FAST, walletId: WalletId!): OnChainTxFee!
onChainUsdTxFee(address: OnChainAddress!, amount: CentAmount!, speed: PayoutSpeed! = FAST, walletId: WalletId!): OnChainUsdTxFee!
onChainUsdTxFeeAsBtcDenominated(address: OnChainAddress!, amount: SatAmount!, speed: PayoutSpeed! = FAST, walletId: WalletId!): OnChainUsdTxFee!
quizQuestions: [QuizQuestion] @deprecated(reason: "TODO: remove. we don't need a non authenticated version of this query. the users can only do the query while authenticated")

"""Returns 1 Sat and 1 Usd Cent price for the given currency"""
Expand Down

0 comments on commit fb70de9

Please sign in to comment.