Skip to content

Commit 5c9bb26

Browse files
committed
Use SDK from spark.money
1 parent a3a7ff1 commit 5c9bb26

File tree

22 files changed

+1354
-539
lines changed

22 files changed

+1354
-539
lines changed

.env.development

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ TWITTER_POSTER_API_KEY_SECRET=
3838
TWITTER_POSTER_ACCESS_TOKEN=
3939
TWITTER_POSTER_ACCESS_TOKEN_SECRET=
4040

41-
# Breez SDK
42-
NEXT_PUBLIC_BREEZ_SDK_API_KEY=
43-
4441
########################################
4542
# SNDEV STUFF WE PRESET #
4643
# which you can override in .env.local #
@@ -187,7 +184,6 @@ SKIP_SSL_CERT_DOWNLOAD=1
187184

188185
# tor proxy
189186
TOR_PROXY=http://tor:7050/
190-
grpc_proxy=http://tor:7050/
191187

192188
# lnbits
193189
LNBITS_WEB_PORT=5001

api/typeDefs/wallet.js

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,15 @@ const typeDefs = gql`
119119
noffer: String!
120120
): WalletRecvClink!
121121
122-
upsertWalletSendBreezSpark(
122+
upsertWalletSendSpark(
123123
${shared},
124124
mnemonic: VaultEntryInput!
125-
): WalletSendBreezSpark!
125+
): WalletSendSpark!
126+
127+
upsertWalletRecvSpark(
128+
${shared},
129+
identityPublicKey: String!
130+
): WalletRecvSpark!
126131
127132
# tests
128133
testWalletRecvNWC(
@@ -164,6 +169,10 @@ const typeDefs = gql`
164169
noffer: String!
165170
): Boolean!
166171
172+
testWalletRecvSpark(
173+
identityPublicKey: String!
174+
): Boolean!
175+
167176
# delete
168177
deleteWallet(id: ID!): Boolean
169178
@@ -240,7 +249,7 @@ const typeDefs = gql`
240249
| WalletSendLNC
241250
| WalletSendCLNRest
242251
| WalletSendClink
243-
| WalletSendBreezSpark
252+
| WalletSendSpark
244253
| WalletRecvNWC
245254
| WalletRecvLNbits
246255
| WalletRecvPhoenixd
@@ -249,6 +258,7 @@ const typeDefs = gql`
249258
| WalletRecvCLNRest
250259
| WalletRecvLNDGRPC
251260
| WalletRecvClink
261+
| WalletRecvSpark
252262
253263
type WalletSettings {
254264
receiveCreditsBelowSats: Int!
@@ -315,7 +325,7 @@ const typeDefs = gql`
315325
secretKey: VaultEntry!
316326
}
317327
318-
type WalletSendBreezSpark {
328+
type WalletSendSpark {
319329
id: ID!
320330
mnemonic: VaultEntry!
321331
}
@@ -367,6 +377,11 @@ const typeDefs = gql`
367377
noffer: String!
368378
}
369379
380+
type WalletRecvSpark {
381+
id: ID!
382+
identityPublicKey: String!
383+
}
384+
370385
input AutowithdrawSettings {
371386
autoWithdrawThreshold: Int!
372387
autoWithdrawMaxFeePercent: Float!

0 commit comments

Comments
 (0)