2024-10-25 14:10:37 -05:00
import { string } from '@/lib/yup'
2024-08-26 18:20:45 -05:00
export const name = 'phoenixd'
2024-10-14 17:49:06 +02:00
export const walletType = 'PHOENIXD'
export const walletField = 'walletPhoenixd'
2024-08-26 18:20:45 -05:00
// configure wallet fields
export const fields = [
{
name : 'url' ,
label : 'url' ,
2024-10-25 14:10:37 -05:00
type : 'text' ,
validate : string ( ) . url ( ) . trim ( )
2024-08-26 18:20:45 -05:00
} ,
{
name : 'primaryPassword' ,
label : 'primary password' ,
type : 'password' ,
optional : 'for sending' ,
help : 'You can find the primary password as `http-password` in your phoenixd configuration file as mentioned [here](https://phoenix.acinq.co/server/api#security).' ,
clientOnly : true ,
2024-10-25 14:10:37 -05:00
requiredWithout : 'secondaryPassword' ,
validate : string ( ) . length ( 64 ) . hex ( )
2024-08-26 18:20:45 -05:00
} ,
{
name : 'secondaryPassword' ,
label : 'secondary password' ,
type : 'password' ,
optional : 'for receiving' ,
help : 'You can find the secondary password as `http-password-limited-access` in your phoenixd configuration file as mentioned [here](https://phoenix.acinq.co/server/api#security).' ,
serverOnly : true ,
2024-10-25 14:10:37 -05:00
requiredWithout : 'primaryPassword' ,
validate : string ( ) . length ( 64 ) . hex ( )
2024-08-26 18:20:45 -05:00
}
]
// configure wallet card
export const card = {
title : 'phoenixd' ,
subtitle : 'use [phoenixd](https://phoenix.acinq.co/server) for payments' ,
2024-10-22 21:07:09 +02:00
badges : [ 'send' , 'receive' ]
2024-08-26 18:20:45 -05:00
}