From 463b92484cff9d45af18573f6989c37ba09dea30 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 5 Apr 2023 13:41:07 -0700 Subject: replace coinos --- src/lib/samples.js | 24 ++++++++++++------------ src/lib/ticket.js | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'src/lib') diff --git a/src/lib/samples.js b/src/lib/samples.js index 0b447d06..2c4d0aaf 100644 --- a/src/lib/samples.js +++ b/src/lib/samples.js @@ -1,40 +1,40 @@ export default { - register: `curl "https://coinos.io/api/register" -H "content-type: application/json" -d '{ + register: `curl "https://swapee.me/api/register" -H "content-type: application/json" -d '{ "username": "demo", "password": "hunter2" }'`, - login: `curl "https://coinos.io/api/login" -H "content-type: application/json" -d '{ + login: `curl "https://swapee.me/api/login" -H "content-type: application/json" -d '{ "username": "demo", "password": "hunter2" }'`, - payments: `curl "https://coinos.io/api/payments" + payments: `curl "https://swapee.me/api/payments" -H "content-type: application/json" -H "Authorization: Bearer $token" `, - lightning: `curl "https://coinos.io/api/payments" + lightning: `curl "https://swapee.me/api/payments" -H "content-type: application/json" -H "Authorization: Bearer $token" -d '{ "payreq": "lnbc1pj94d8fsp5n77k340ps4m9jn7kp8he8yynpddvurv6mcsrrqpnq5l2jxdxzlwqpp5m96pqhc5nrlk8cqsu9ufdxxa43sarp8vwf9egvm2pg9nl0zu9r8qdq2vdhkjmn0wvxqztgcqpjrzjqwhmav82kntsppmkp8jp4vg4h9nns78tsy8mg7ve4lq5txrkp0h56zlarvqqdtcqqsqqqqqqqqqqp6cq9q9qyysgqzxlypywzphyujm3ga5j5csfcmqvlnae0fgnvymkaaw94eeg7py5rqzysyjkr3ev2snq63qpsc69vf54adkd0szvmvwt5cuadjnuy95sq4xfa40" }'`, - bitcoin: `curl "https://coinos.io/api/payments" + bitcoin: `curl "https://swapee.me/api/payments" -H "content-type: application/json" -H "Authorization: Bearer $token" -d '{ "amount": 5000, "hash": "bc1q3unh97w4rmelflrm2hvdwz37d8kray3vn4d5ca" }'`, - internal: `curl "https://coinos.io/api/payments" + internal: `curl "https://swapee.me/api/payments" -H "content-type: application/json" -H "Authorization: Bearer $token" -d '{ "amount": 5000, "username": "alice" }'`, - rates: `curl "https://coinos.io/api/rates" + rates: `curl "https://swapee.me/api/rates" -H "content-type: application/json" }'`, - lightningInvoice: `curl "https://coinos.io/api/invoice" + lightningInvoice: `curl "https://swapee.me/api/invoice" -H "content-type: application/json" -H "Authorization: Bearer $token" -d '{ @@ -43,7 +43,7 @@ export default { "type": "lightning" } }'`, - bitcoinAddress: `curl "https://coinos.io/api/invoice" + bitcoinAddress: `curl "https://swapee.me/api/invoice" -H "content-type: application/json" -H "Authorization: Bearer $token" -d '{ @@ -52,7 +52,7 @@ export default { "type": "bitcoin" } }'`, - webhook: `curl "https://coinos.io/api/invoice" + webhook: `curl "https://swapee.me/api/invoice" -H "content-type: application/json" -H "Authorization: Bearer $token" -d '{ @@ -62,7 +62,7 @@ export default { "secret": "webhooksecret" } }'`, - fetchInvoice: `curl "https://coinos.io/api/invoice/bc1qmhfk9stzffhd9umzmld92vff7zg3mdlh7rvvaj" + fetchInvoice: `curl "https://swapee.me/api/invoice/bc1qmhfk9stzffhd9umzmld92vff7zg3mdlh7rvvaj" -H "content-type: application/json"'`, invoiceResponse: `{ "amount":3141 @@ -77,5 +77,5 @@ export default { "received":0 "created":1677537428134 }`, - socketAuth: `echo '{"type":"login","data":{"username":"user","password":"password"}}' | websocat -n https://coinos.io/ws` + socketAuth: `echo '{"type":"login","data":{"username":"user","password":"password"}}' | websocat -n https://swapee.io/ws` }; diff --git a/src/lib/ticket.js b/src/lib/ticket.js index e1ebcb8c..7d2c37df 100644 --- a/src/lib/ticket.js +++ b/src/lib/ticket.js @@ -20,7 +20,7 @@ export const createTicket = async (cookies, username) => { precision: 0, asset_amount: '1', token_amount: 0, - domain: 'coinos.io', + domain: 'swapee.io', filename: tickets[ticket] }, { authorization: `Bearer ${env.LAUNCH}` } -- cgit v1.2.3