-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #259 from DFXswiss/develop
KYC redirect
- Loading branch information
Showing
5 changed files
with
40 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
const bitcoinAddressFormat = "([13]|bc1)[a-zA-HJ-NP-Z0-9]{25,62}"; | ||
const lightningAddressFormat = "(LNURL|LNDHUB)[A-Z0-9]{25,250}|LNNID[A-Z0-9]{66}"; | ||
const moneroAddressFormat = "[48][0-9AB][1-9A-HJ-NP-Za-km-z]{93}"; | ||
const ethereumAddressFormat = "0x\\w{40}"; | ||
const defichainAddressFormat = "[78]\\w{33}|[td]\\w{33}|[td]\\w{41}"; | ||
|
||
const allAddressFormat = `${bitcoinAddressFormat}|${lightningAddressFormat}|${ethereumAddressFormat}|${defichainAddressFormat}`; | ||
const allAddressFormat = `${bitcoinAddressFormat}|${lightningAddressFormat}|${moneroAddressFormat}|${ethereumAddressFormat}|${defichainAddressFormat}`; | ||
|
||
const bitcoinSignatureFormat = ".{87}="; | ||
const lightningSignatureFormat = "[a-z0-9]{104}"; | ||
const lightningCustodialSignatureFormat = "[a-z0-9]{140,146}"; | ||
const moneroSignatureFormat = "SigV\\d[0-9a-zA-Z]{88}"; | ||
const ethereumSignatureFormat = "(0x)?[a-f0-9]{130}"; | ||
|
||
const allSignatureFormat = `${bitcoinSignatureFormat}|${lightningSignatureFormat}|${lightningCustodialSignatureFormat}|${moneroSignatureFormat}|${ethereumSignatureFormat}`; | ||
|
||
export const Environment = { | ||
debug: true, | ||
defaultLanguage: "DE", | ||
addressFormat: new RegExp(`^(${allAddressFormat})$`), | ||
signatureFormat: /^(.{87}=|[a-f0-9]{130}|[a-f0-9x]{132}|[a-z0-9]{104}|[a-z0-9]{140,146})$/, | ||
signatureFormat: new RegExp(`^(${allSignatureFormat})$`), | ||
api: { | ||
baseUrl: "https://dev.api.dfx.swiss/v1", | ||
refUrl: "https://dev.api.dfx.swiss/app?code=", | ||
}, | ||
services: "https://dev.services.dfx.swiss", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,26 @@ | ||
const bitcoinAddressFormat = "([13]|bc1)[a-zA-HJ-NP-Z0-9]{25,62}"; | ||
const lightningAddressFormat = "(LNURL|LNDHUB)[A-Z0-9]{25,250}|LNNID[A-Z0-9]{66}"; | ||
const moneroAddressFormat = "[48][0-9AB][1-9A-HJ-NP-Za-km-z]{93}"; | ||
const ethereumAddressFormat = "0x\\w{40}"; | ||
const defichainAddressFormat = "8\\w{33}|d\\w{33}|d\\w{41}"; | ||
|
||
const allAddressFormat = `${bitcoinAddressFormat}|${lightningAddressFormat}|${ethereumAddressFormat}|${defichainAddressFormat}`; | ||
const allAddressFormat = `${bitcoinAddressFormat}|${lightningAddressFormat}|${moneroAddressFormat}|${ethereumAddressFormat}|${defichainAddressFormat}`; | ||
|
||
const bitcoinSignatureFormat = ".{87}="; | ||
const lightningSignatureFormat = "[a-z0-9]{104}"; | ||
const lightningCustodialSignatureFormat = "[a-z0-9]{140,146}"; | ||
const moneroSignatureFormat = "SigV\\d[0-9a-zA-Z]{88}"; | ||
const ethereumSignatureFormat = "(0x)?[a-f0-9]{130}"; | ||
|
||
const allSignatureFormat = `${bitcoinSignatureFormat}|${lightningSignatureFormat}|${lightningCustodialSignatureFormat}|${moneroSignatureFormat}|${ethereumSignatureFormat}`; | ||
|
||
export const Environment = { | ||
defaultLanguage: "DE", | ||
addressFormat: new RegExp(`^(${allAddressFormat})$`), | ||
signatureFormat: /^(.{87}=|[a-f0-9]{130}|[a-f0-9x]{132}|[a-z0-9]{104}|[a-z0-9]{140,146})$/, | ||
signatureFormat: new RegExp(`^(${allSignatureFormat})$`), | ||
api: { | ||
baseUrl: "https://api.dfx.swiss/v1", | ||
refUrl: "https://dfx.swiss/app?code=", | ||
}, | ||
services: "https://services.dfx.swiss", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
const bitcoinAddressFormat = "([13]|bc1)[a-zA-HJ-NP-Z0-9]{25,62}"; | ||
const lightningAddressFormat = "(LNURL|LNDHUB)[A-Z0-9]{25,250}|LNNID[A-Z0-9]{66}"; | ||
const moneroAddressFormat = "[48][0-9AB][1-9A-HJ-NP-Za-km-z]{93}"; | ||
const ethereumAddressFormat = "0x\\w{40}"; | ||
const defichainAddressFormat = "[78]\\w{33}|[td]\\w{33}|[td]\\w{41}"; | ||
|
||
const allAddressFormat = `${bitcoinAddressFormat}|${lightningAddressFormat}|${ethereumAddressFormat}|${defichainAddressFormat}`; | ||
const allAddressFormat = `${bitcoinAddressFormat}|${lightningAddressFormat}|${moneroAddressFormat}|${ethereumAddressFormat}|${defichainAddressFormat}`; | ||
|
||
const bitcoinSignatureFormat = ".{87}="; | ||
const lightningSignatureFormat = "[a-z0-9]{104}"; | ||
const lightningCustodialSignatureFormat = "[a-z0-9]{140,146}"; | ||
const moneroSignatureFormat = "SigV\\d[0-9a-zA-Z]{88}"; | ||
const ethereumSignatureFormat = "(0x)?[a-f0-9]{130}"; | ||
|
||
const allSignatureFormat = `${bitcoinSignatureFormat}|${lightningSignatureFormat}|${lightningCustodialSignatureFormat}|${moneroSignatureFormat}|${ethereumSignatureFormat}`; | ||
|
||
export const Environment = { | ||
debug: true, | ||
defaultLanguage: "DE", | ||
addressFormat: new RegExp(`^(${allAddressFormat})$`), | ||
signatureFormat: /^(.{87}=|[a-f0-9]{130}|[a-f0-9x]{132}|[a-z0-9]{104}|[a-z0-9]{140,146})$/, | ||
signatureFormat: new RegExp(`^(${allSignatureFormat})$`), | ||
api: { | ||
baseUrl: "http://localhost:3000/v1", | ||
refUrl: "http://localhost:3000/app?code=", | ||
}, | ||
services: "http://localhost:3001", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters