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

feat(core): add transactionsByPaymentRequest query #4026

Merged
merged 5 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions apps/admin-panel/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export type BtcWallet = Wallet & {
readonly transactions?: Maybe<TransactionConnection>;
readonly transactionsByAddress?: Maybe<TransactionConnection>;
readonly transactionsByPaymentHash: ReadonlyArray<Transaction>;
readonly transactionsByPaymentRequest: ReadonlyArray<Transaction>;
readonly walletCurrency: WalletCurrency;
};

Expand Down Expand Up @@ -199,6 +200,12 @@ export type BtcWalletTransactionsByPaymentHashArgs = {
paymentHash: Scalars['PaymentHash']['input'];
};


/** A wallet belonging to an account which contains a BTC balance and a list of transactions. */
export type BtcWalletTransactionsByPaymentRequestArgs = {
paymentRequest: Scalars['LnPaymentRequest']['input'];
};

export type Coordinates = {
readonly __typename: 'Coordinates';
readonly latitude: Scalars['Float']['output'];
Expand Down Expand Up @@ -425,6 +432,7 @@ export type Query = {
readonly merchantsPendingApproval: ReadonlyArray<Merchant>;
readonly transactionById?: Maybe<Transaction>;
readonly transactionsByHash?: Maybe<ReadonlyArray<Maybe<Transaction>>>;
readonly transactionsByPaymentRequest?: Maybe<ReadonlyArray<Maybe<Transaction>>>;
readonly wallet: Wallet;
};

Expand Down Expand Up @@ -479,6 +487,11 @@ export type QueryTransactionsByHashArgs = {
};


export type QueryTransactionsByPaymentRequestArgs = {
paymentRequest: Scalars['LnPaymentRequest']['input'];
};


export type QueryWalletArgs = {
walletId: Scalars['WalletId']['input'];
};
Expand Down Expand Up @@ -585,6 +598,7 @@ export type UsdWallet = Wallet & {
readonly transactions?: Maybe<TransactionConnection>;
readonly transactionsByAddress?: Maybe<TransactionConnection>;
readonly transactionsByPaymentHash: ReadonlyArray<Transaction>;
readonly transactionsByPaymentRequest: ReadonlyArray<Transaction>;
readonly walletCurrency: WalletCurrency;
};

Expand Down Expand Up @@ -640,6 +654,12 @@ export type UsdWalletTransactionsByPaymentHashArgs = {
paymentHash: Scalars['PaymentHash']['input'];
};


/** A wallet belonging to an account which contains a USD balance and a list of transactions. */
export type UsdWalletTransactionsByPaymentRequestArgs = {
paymentRequest: Scalars['LnPaymentRequest']['input'];
};

export type UserUpdatePhoneInput = {
readonly accountId: Scalars['AccountId']['input'];
readonly phone: Scalars['Phone']['input'];
Expand Down Expand Up @@ -680,6 +700,8 @@ export type Wallet = {
readonly transactionsByAddress?: Maybe<TransactionConnection>;
/** Returns the transactions that include this paymentHash. This should be a list of size one for a received lightning payment. This can be more that one transaction for a sent lightning payment. */
readonly transactionsByPaymentHash: ReadonlyArray<Transaction>;
/** Returns the transactions that include this paymentRequest. */
readonly transactionsByPaymentRequest: ReadonlyArray<Transaction>;
readonly walletCurrency: WalletCurrency;
};

Expand Down Expand Up @@ -735,6 +757,12 @@ export type WalletTransactionsByPaymentHashArgs = {
paymentHash: Scalars['PaymentHash']['input'];
};


/** A generic wallet which stores value in one of our supported currencies. */
export type WalletTransactionsByPaymentRequestArgs = {
paymentRequest: Scalars['LnPaymentRequest']['input'];
};

export const WalletCurrency = {
Btc: 'BTC',
Usd: 'USD'
Expand Down
22 changes: 22 additions & 0 deletions apps/consent/app/graphql/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ export type BtcWallet = Wallet & {
readonly transactions?: Maybe<TransactionConnection>;
readonly transactionsByAddress?: Maybe<TransactionConnection>;
readonly transactionsByPaymentHash: ReadonlyArray<Transaction>;
readonly transactionsByPaymentRequest: ReadonlyArray<Transaction>;
readonly walletCurrency: WalletCurrency;
};

Expand Down Expand Up @@ -289,6 +290,12 @@ export type BtcWalletTransactionsByPaymentHashArgs = {
paymentHash: Scalars['PaymentHash']['input'];
};


/** A wallet belonging to an account which contains a BTC balance and a list of transactions. */
export type BtcWalletTransactionsByPaymentRequestArgs = {
paymentRequest: Scalars['LnPaymentRequest']['input'];
};

export type BuildInformation = {
readonly __typename: 'BuildInformation';
readonly commitHash?: Maybe<Scalars['String']['output']>;
Expand Down Expand Up @@ -1751,6 +1758,7 @@ export type UsdWallet = Wallet & {
readonly transactions?: Maybe<TransactionConnection>;
readonly transactionsByAddress?: Maybe<TransactionConnection>;
readonly transactionsByPaymentHash: ReadonlyArray<Transaction>;
readonly transactionsByPaymentRequest: ReadonlyArray<Transaction>;
readonly walletCurrency: WalletCurrency;
};

Expand Down Expand Up @@ -1806,6 +1814,12 @@ export type UsdWalletTransactionsByPaymentHashArgs = {
paymentHash: Scalars['PaymentHash']['input'];
};


/** A wallet belonging to an account which contains a USD balance and a list of transactions. */
export type UsdWalletTransactionsByPaymentRequestArgs = {
paymentRequest: Scalars['LnPaymentRequest']['input'];
};

export type User = {
readonly __typename: 'User';
/**
Expand Down Expand Up @@ -2026,6 +2040,8 @@ export type Wallet = {
readonly transactionsByAddress?: Maybe<TransactionConnection>;
/** Returns the transactions that include this paymentHash. This should be a list of size one for a received lightning payment. This can be more that one transaction for a sent lightning payment. */
readonly transactionsByPaymentHash: ReadonlyArray<Transaction>;
/** Returns the transactions that include this paymentRequest. */
readonly transactionsByPaymentRequest: ReadonlyArray<Transaction>;
readonly walletCurrency: WalletCurrency;
};

Expand Down Expand Up @@ -2081,6 +2097,12 @@ export type WalletTransactionsByPaymentHashArgs = {
paymentHash: Scalars['PaymentHash']['input'];
};


/** A generic wallet which stores value in one of our supported currencies. */
export type WalletTransactionsByPaymentRequestArgs = {
paymentRequest: Scalars['LnPaymentRequest']['input'];
};

export const WalletCurrency = {
Btc: 'BTC',
Usd: 'USD'
Expand Down
25 changes: 25 additions & 0 deletions apps/dashboard/services/graphql/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ export type BtcWallet = Wallet & {
readonly transactions?: Maybe<TransactionConnection>;
readonly transactionsByAddress?: Maybe<TransactionConnection>;
readonly transactionsByPaymentHash: ReadonlyArray<Transaction>;
readonly transactionsByPaymentRequest: ReadonlyArray<Transaction>;
readonly walletCurrency: WalletCurrency;
};

Expand Down Expand Up @@ -328,6 +329,12 @@ export type BtcWalletTransactionsByPaymentHashArgs = {
paymentHash: Scalars['PaymentHash']['input'];
};


/** A wallet belonging to an account which contains a BTC balance and a list of transactions. */
export type BtcWalletTransactionsByPaymentRequestArgs = {
paymentRequest: Scalars['LnPaymentRequest']['input'];
};

export type BuildInformation = {
readonly __typename: 'BuildInformation';
readonly commitHash?: Maybe<Scalars['String']['output']>;
Expand Down Expand Up @@ -1826,6 +1833,7 @@ export type UsdWallet = Wallet & {
readonly transactions?: Maybe<TransactionConnection>;
readonly transactionsByAddress?: Maybe<TransactionConnection>;
readonly transactionsByPaymentHash: ReadonlyArray<Transaction>;
readonly transactionsByPaymentRequest: ReadonlyArray<Transaction>;
readonly walletCurrency: WalletCurrency;
};

Expand Down Expand Up @@ -1881,6 +1889,12 @@ export type UsdWalletTransactionsByPaymentHashArgs = {
paymentHash: Scalars['PaymentHash']['input'];
};


/** A wallet belonging to an account which contains a USD balance and a list of transactions. */
export type UsdWalletTransactionsByPaymentRequestArgs = {
paymentRequest: Scalars['LnPaymentRequest']['input'];
};

export type User = {
readonly __typename: 'User';
readonly apiKeys: ReadonlyArray<ApiKey>;
Expand Down Expand Up @@ -2150,6 +2164,8 @@ export type Wallet = {
readonly transactionsByAddress?: Maybe<TransactionConnection>;
/** Returns the transactions that include this paymentHash. This should be a list of size one for a received lightning payment. This can be more that one transaction for a sent lightning payment. */
readonly transactionsByPaymentHash: ReadonlyArray<Transaction>;
/** Returns the transactions that include this paymentRequest. */
readonly transactionsByPaymentRequest: ReadonlyArray<Transaction>;
readonly walletCurrency: WalletCurrency;
};

Expand Down Expand Up @@ -2205,6 +2221,12 @@ export type WalletTransactionsByPaymentHashArgs = {
paymentHash: Scalars['PaymentHash']['input'];
};


/** A generic wallet which stores value in one of our supported currencies. */
export type WalletTransactionsByPaymentRequestArgs = {
paymentRequest: Scalars['LnPaymentRequest']['input'];
};

export const WalletCurrency = {
Btc: 'BTC',
Usd: 'USD'
Expand Down Expand Up @@ -3924,6 +3946,7 @@ export type BtcWalletResolvers<ContextType = any, ParentType extends ResolversPa
transactions?: Resolver<Maybe<ResolversTypes['TransactionConnection']>, ParentType, ContextType, Partial<BtcWalletTransactionsArgs>>;
transactionsByAddress?: Resolver<Maybe<ResolversTypes['TransactionConnection']>, ParentType, ContextType, RequireFields<BtcWalletTransactionsByAddressArgs, 'address'>>;
transactionsByPaymentHash?: Resolver<ReadonlyArray<ResolversTypes['Transaction']>, ParentType, ContextType, RequireFields<BtcWalletTransactionsByPaymentHashArgs, 'paymentHash'>>;
transactionsByPaymentRequest?: Resolver<ReadonlyArray<ResolversTypes['Transaction']>, ParentType, ContextType, RequireFields<BtcWalletTransactionsByPaymentRequestArgs, 'paymentRequest'>>;
walletCurrency?: Resolver<ResolversTypes['WalletCurrency'], ParentType, ContextType>;
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
};
Expand Down Expand Up @@ -4651,6 +4674,7 @@ export type UsdWalletResolvers<ContextType = any, ParentType extends ResolversPa
transactions?: Resolver<Maybe<ResolversTypes['TransactionConnection']>, ParentType, ContextType, Partial<UsdWalletTransactionsArgs>>;
transactionsByAddress?: Resolver<Maybe<ResolversTypes['TransactionConnection']>, ParentType, ContextType, RequireFields<UsdWalletTransactionsByAddressArgs, 'address'>>;
transactionsByPaymentHash?: Resolver<ReadonlyArray<ResolversTypes['Transaction']>, ParentType, ContextType, RequireFields<UsdWalletTransactionsByPaymentHashArgs, 'paymentHash'>>;
transactionsByPaymentRequest?: Resolver<ReadonlyArray<ResolversTypes['Transaction']>, ParentType, ContextType, RequireFields<UsdWalletTransactionsByPaymentRequestArgs, 'paymentRequest'>>;
walletCurrency?: Resolver<ResolversTypes['WalletCurrency'], ParentType, ContextType>;
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
};
Expand Down Expand Up @@ -4786,6 +4810,7 @@ export type WalletResolvers<ContextType = any, ParentType extends ResolversParen
transactions?: Resolver<Maybe<ResolversTypes['TransactionConnection']>, ParentType, ContextType, Partial<WalletTransactionsArgs>>;
transactionsByAddress?: Resolver<Maybe<ResolversTypes['TransactionConnection']>, ParentType, ContextType, RequireFields<WalletTransactionsByAddressArgs, 'address'>>;
transactionsByPaymentHash?: Resolver<ReadonlyArray<ResolversTypes['Transaction']>, ParentType, ContextType, RequireFields<WalletTransactionsByPaymentHashArgs, 'paymentHash'>>;
transactionsByPaymentRequest?: Resolver<ReadonlyArray<ResolversTypes['Transaction']>, ParentType, ContextType, RequireFields<WalletTransactionsByPaymentRequestArgs, 'paymentRequest'>>;
walletCurrency?: Resolver<ResolversTypes['WalletCurrency'], ParentType, ContextType>;
};

Expand Down
Loading
Loading