2024-08-18 16:36:55 +00:00
import { blinkSchema } from '@/lib/validate'
2024-10-16 17:46:33 +00:00
import { galoyBlinkDashboardUrl } from 'wallets/blink/common'
2024-08-18 16:36:55 +00:00
export const name = 'blink'
2024-10-16 17:46:33 +00:00
export const walletType = 'BLINK'
export const walletField = 'walletBlink'
export const fieldValidation = blinkSchema
2024-08-18 16:36:55 +00:00
export const fields = [
{
name : 'apiKey' ,
label : 'api key' ,
type : 'password' ,
2024-10-16 17:46:33 +00:00
help : ` you can get an API key from [Blink Dashboard]( ${ galoyBlinkDashboardUrl } ). \n Please make sure to select ONLY the 'Read' and 'Write' scopes when generating this API key. ` ,
placeholder : 'blink_...' ,
optional : 'for sending' ,
2024-10-22 08:51:33 +00:00
clientOnly : true ,
editable : false
2024-08-18 16:36:55 +00:00
} ,
{
name : 'currency' ,
label : 'wallet type' ,
type : 'text' ,
help : 'the blink wallet to use (BTC or USD for stablesats)' ,
placeholder : 'BTC' ,
clear : true ,
2024-10-16 17:46:33 +00:00
autoComplete : 'off' ,
optional : 'for sending' ,
2024-10-22 08:51:33 +00:00
clientOnly : true ,
editable : false
2024-10-16 17:46:33 +00:00
} ,
{
name : 'apiKeyRecv' ,
label : 'api key' ,
type : 'password' ,
help : ` you can get an API key from [Blink Dashboard]( ${ galoyBlinkDashboardUrl } ). \n Please make sure to select ONLY the 'Read' and 'Receive' scopes when generating this API key. ` ,
placeholder : 'blink_...' ,
optional : 'for receiving' ,
2024-10-22 08:51:33 +00:00
serverOnly : true ,
editable : false
2024-10-16 17:46:33 +00:00
} ,
{
name : 'currencyRecv' ,
label : 'wallet type' ,
type : 'text' ,
help : 'the blink wallet to use (BTC or USD for stablesats)' ,
value : 'BTC' ,
clear : true ,
autoComplete : 'off' ,
optional : 'for receiving' ,
serverOnly : true ,
editable : false
2024-08-18 16:36:55 +00:00
}
]
export const card = {
title : 'Blink' ,
subtitle : 'use [Blink](https://blink.sv/) for payments' ,
2024-10-16 17:46:33 +00:00
badges : [ 'send & receive' ]
2024-08-18 16:36:55 +00:00
}