Skip to content

Commit b2bc871

Browse files
committed
Spark wallet
1 parent 654af65 commit b2bc871

File tree

24 files changed

+1486
-43
lines changed

24 files changed

+1486
-43
lines changed

api/typeDefs/wallet.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,16 @@ const typeDefs = gql`
119119
noffer: String!
120120
): WalletRecvClink!
121121
122+
upsertWalletSendSpark(
123+
${shared},
124+
mnemonic: VaultEntryInput!
125+
): WalletSendSpark!
126+
127+
upsertWalletRecvSpark(
128+
${shared},
129+
identityPublicKey: String!
130+
): WalletRecvSpark!
131+
122132
# tests
123133
testWalletRecvNWC(
124134
url: String!
@@ -159,6 +169,10 @@ const typeDefs = gql`
159169
noffer: String!
160170
): Boolean!
161171
172+
testWalletRecvSpark(
173+
identityPublicKey: String!
174+
): Boolean!
175+
162176
# delete
163177
deleteWallet(id: ID!): Boolean
164178
@@ -235,6 +249,7 @@ const typeDefs = gql`
235249
| WalletSendLNC
236250
| WalletSendCLNRest
237251
| WalletSendClink
252+
| WalletSendSpark
238253
| WalletRecvNWC
239254
| WalletRecvLNbits
240255
| WalletRecvPhoenixd
@@ -243,6 +258,7 @@ const typeDefs = gql`
243258
| WalletRecvCLNRest
244259
| WalletRecvLNDGRPC
245260
| WalletRecvClink
261+
| WalletRecvSpark
246262
247263
type WalletSettings {
248264
receiveCreditsBelowSats: Int!
@@ -309,6 +325,11 @@ const typeDefs = gql`
309325
secretKey: VaultEntry!
310326
}
311327
328+
type WalletSendSpark {
329+
id: ID!
330+
mnemonic: VaultEntry!
331+
}
332+
312333
type WalletRecvNWC {
313334
id: ID!
314335
url: String!
@@ -356,6 +377,11 @@ const typeDefs = gql`
356377
noffer: String!
357378
}
358379
380+
type WalletRecvSpark {
381+
id: ID!
382+
identityPublicKey: String!
383+
}
384+
359385
input AutowithdrawSettings {
360386
autoWithdrawThreshold: Int!
361387
autoWithdrawMaxFeePercent: Float!

0 commit comments

Comments
 (0)