Skip to content

Commit

Permalink
chore: change file locations
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleSamtoshi committed Oct 6, 2023
1 parent b92c394 commit f0e41fe
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 8 deletions.
4 changes: 4 additions & 0 deletions core/api/dev/apollo-federation/supergraph.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ type BTCWallet implements Wallet
"""A balance stored in BTC."""
balance: SignedAmount!
id: ID!

"""
The lightning invoice with the matching paymentHash belonging to this wallet.
"""
invoiceByHash(paymentHash: PaymentHash!): LnInvoice!

"""An unconfirmed incoming onchain balance."""
Expand Down
4 changes: 4 additions & 0 deletions core/api/src/graphql/admin/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ type BTCWallet implements Wallet {
"""A balance stored in BTC."""
balance: SignedAmount!
id: ID!

"""
The lightning invoice with the matching paymentHash belonging to this wallet.
"""
invoiceByHash(paymentHash: PaymentHash!): LnInvoice!

"""An unconfirmed incoming onchain balance."""
Expand Down
4 changes: 4 additions & 0 deletions core/api/src/graphql/public/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ type BTCWallet implements Wallet {
"""A balance stored in BTC."""
balance: SignedAmount!
id: ID!

"""
The lightning invoice with the matching paymentHash belonging to this wallet.
"""
invoiceByHash(paymentHash: PaymentHash!): LnInvoice!

"""An unconfirmed incoming onchain balance."""
Expand Down
2 changes: 1 addition & 1 deletion core/api/src/graphql/public/types/payload/ln-invoice.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import IError from "../../../shared/types/abstract/error"

import LnInvoice from "../object/ln-invoice"
import LnInvoice from "../../../shared/types/object/ln-invoice"

import { GT } from "@/graphql/index"

Expand Down
2 changes: 1 addition & 1 deletion core/api/src/graphql/shared/types/abstract/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import PaymentHash from "../scalar/payment-hash"

import { connectionArgs } from "@/graphql/connections"
import { GT } from "@/graphql/index"
import LnInvoice from "@/graphql/public/types/object/ln-invoice"
import LnInvoice from "@/graphql/shared/types/object/ln-invoice"

const IWallet = GT.Interface({
name: "Wallet",
Expand Down
4 changes: 3 additions & 1 deletion core/api/src/graphql/shared/types/object/btc-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { mapError } from "@/graphql/error-map"
import { Wallets } from "@/app"

import { WalletCurrency as WalletCurrencyDomain } from "@/domain/shared"
import LnInvoice from "@/graphql/public/types/object/ln-invoice"
import LnInvoice from "@/graphql/shared/types/object/ln-invoice"

const BtcWallet = GT.Object<Wallet>({
name: "BTCWallet",
Expand Down Expand Up @@ -135,6 +135,8 @@ const BtcWallet = GT.Object<Wallet>({
type: GT.NonNull(PaymentHash),
},
},
description:
"The lightning invoice with the matching paymentHash belonging to this wallet.",
resolve: async (source, args) => {
const { paymentHash } = args
if (paymentHash instanceof Error) throw paymentHash
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import LnPaymentRequest from "../../../shared/types/scalar/ln-payment-request"
import PaymentHash from "../../../shared/types/scalar/payment-hash"
import LnPaymentSecret from "../../../shared/types/scalar/ln-payment-secret"
import SatAmount from "../../../shared/types/scalar/sat-amount"
import LnPaymentRequest from "../scalar/ln-payment-request"
import PaymentHash from "../scalar/payment-hash"
import LnPaymentSecret from "../scalar/ln-payment-secret"
import SatAmount from "../scalar/sat-amount"

import { GT } from "@/graphql/index"

Expand Down
2 changes: 1 addition & 1 deletion core/api/src/graphql/shared/types/object/usd-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { mapError } from "@/graphql/error-map"
import { Wallets } from "@/app"

import { WalletCurrency as WalletCurrencyDomain } from "@/domain/shared"
import LnInvoice from "@/graphql/public/types/object/ln-invoice"
import LnInvoice from "@/graphql/shared/types/object/ln-invoice"

const UsdWallet = GT.Object<Wallet>({
name: "UsdWallet",
Expand Down

0 comments on commit f0e41fe

Please sign in to comment.