2024-10-25 19:10:37 +00:00
import { string } from '@/lib/yup'
2024-08-26 23:20:45 +00:00
export const name = 'phoenixd'
2024-10-14 15:49:06 +00:00
export const walletType = 'PHOENIXD'
export const walletField = 'walletPhoenixd'
2024-08-26 23:20:45 +00:00
// configure wallet fields
export const fields = [
{
name : 'url' ,
label : 'url' ,
2024-10-25 19:10:37 +00:00
type : 'text' ,
validate : string ( ) . url ( ) . trim ( )
2024-08-26 23:20:45 +00: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 19:10:37 +00:00
requiredWithout : 'secondaryPassword' ,
validate : string ( ) . length ( 64 ) . hex ( )
2024-08-26 23:20:45 +00: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 19:10:37 +00:00
requiredWithout : 'primaryPassword' ,
validate : string ( ) . length ( 64 ) . hex ( )
2024-08-26 23:20:45 +00:00
}
]
// configure wallet card
export const card = {
title : 'phoenixd' ,
subtitle : 'use [phoenixd](https://phoenix.acinq.co/server) for payments' ,
2024-10-22 19:07:09 +00:00
badges : [ 'send' , 'receive' ]
2024-08-26 23:20:45 +00:00
}