Open otech47 opened 1 year ago
ContributorType {
...
onchainAddress: String
}
Fail if the user has not set up their wallet
If the user has a Simple wallet configured, return the string value
If the user has an Advanced wallet configured, use the LND API /address/next
(https://api.lightning.community/#v2-wallet-address-next) to retrieve a new BTC address
If the user has a Federated wallet, their macaroon
should have been automatically filled out so the process is the same as an Advanced wallet
ContributorType {
...
lightningInvoice(amount: Int!, memo: String): String
}
macaroon
configured (Simple wallets do not support Lightning invoice generation)query {
getInvoiceStatus(invoice: String!): String
}
PAID
or UNPAID
type SimpleWalletConfig {
onchainAddress: String!
}
type AdvancedWalletConfig {
macaroon: String!,
host: String!
}
mutation {
configureWallet(
simpleConfig: SimpleWalletConfig,
advancedConfig: AdvancedWalletConfig,
federatedConfig: Boolean
)
}
voltage_api_key
voltage_api_key
on the Contirbutor's Allocations for Projects linked to a Wallet
We can have a query to get the necessary wallet details