mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-05-02 14:46:22 -04:00
Bisq
This commit is contained in:
commit
8a38081c04
2800 changed files with 344130 additions and 0 deletions
28
apitest/scripts/editf2faccountform.py
Normal file
28
apitest/scripts/editf2faccountform.py
Normal file
|
@ -0,0 +1,28 @@
|
|||
import sys, os, json
|
||||
|
||||
# Writes a Bisq json F2F payment account form for the given country_code to the current working directory.
|
||||
|
||||
if len(sys.argv) < 2:
|
||||
print("usage: editf2faccountform.py country_code")
|
||||
exit(1)
|
||||
|
||||
country_code = str(sys.argv[1]).upper()
|
||||
acct_form = {
|
||||
"_COMMENTS_": [
|
||||
"Do not manually edit the paymentMethodId field.",
|
||||
"Edit the salt field only if you are recreating a payment account on a new installation and wish to preserve the account age."
|
||||
],
|
||||
"paymentMethodId": "F2F",
|
||||
"accountName": "Face to Face Payment Account",
|
||||
"city": "Anytown",
|
||||
"contact": "Me",
|
||||
"country": country_code,
|
||||
"extraInfo": "",
|
||||
"salt": ""
|
||||
}
|
||||
target=os.path.dirname(os.path.realpath(__file__)) + '/' + 'f2f-acct.json'
|
||||
with open (target, 'w') as outfile:
|
||||
json.dump(acct_form, outfile, indent=2)
|
||||
outfile.write('\n')
|
||||
|
||||
exit(0)
|
Loading…
Add table
Add a link
Reference in a new issue