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

Build configureWallet mutation API #716

Open
otech47 opened this issue Nov 9, 2022 · 0 comments
Open

Build configureWallet mutation API #716

otech47 opened this issue Nov 9, 2022 · 0 comments

Comments

@otech47
Copy link
Member

otech47 commented Nov 9, 2022

WalletType: mutation - configureWallet

type SimpleWalletConfig {
  onchainAddress: String!
}
type AdvancedWalletConfig {
  macaroon: String!,
  host: String!
}
mutation {
  configureWallet(
    simpleConfig: SimpleWalletConfig,
    advancedConfig: AdvancedWalletConfig,
    federatedConfig: Boolean
  )
}
  • Fail if more than 1 config option is provided in a single request: "Please provide only 1 of simpleConfig, advancedConfig, or federatedConfig"
  • Fail if federatedConfig is provided, but the Contributor does not have any Allocations for Projects linked to a Wallet with a voltage_api_key
  • If the user already has a Wallet record, simply update it with whatever new config is provided
  • If the federatedConfig is provided, check for a voltage_api_key on the Contirbutor's Allocations for Projects linked to a Wallet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant