Skip to content

Commit

Permalink
Update URLs from README and test.html
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanbelasich committed Feb 16, 2024
1 parent 6fb9ee9 commit 8eb6a5f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,17 @@ It can be embedded on any website and supports multiple wallets and languages.
<tbody>
<tr>
<td>Public</td>
<td><a href="https://sign.scalemote.io">sign.scalemote.io</a></td>
<td><a href="https://sign.bigger.systems">sign.bigger.systems</a></td>
<td>Implemented</td>
</tr>
<tr>
<td>Testnet</td>
<td><a href="https://sign-testnet.scalemote.io">sign-testnet.scalemote.io</a></td>
<td><a href="https://sign-testnet.bigger.systems">sign-testnet.bigger.systems</a></td>
<td>Implemented</td>
</tr>
<tr>
<td>Futurenet</td>
<td><a href="https://sign-futurenet.scalemote.io">sign-futurenet.scalemote.io</a></td>
<td><a href="https://sign-futurenet.bigger.systems">sign-futurenet.bigger.systems</a></td>
<td>Implemented</td>
</tr>
</tbody>
Expand Down Expand Up @@ -137,7 +137,7 @@ send a message to your website with the Public Key of the logged in account and
<body>
<button onclick="openConnectWindow()">Connect</button>
<script>
const simpleSignerUrl = 'https://sign.scalemote.io';
const simpleSignerUrl = 'https://sign.bigger.systems';
function openConnectWindow() {
window.open(
Expand Down Expand Up @@ -200,7 +200,7 @@ endpoint. Simple Signer will send a message back to your website with the signed
const unsignedXdr =
'AAAAAgAAAADhqXT1t6e85DlUDyM5OzmJ2KPmujX8gegA027HvKSMpQAAAZAADGyCAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAQAAAADhqXT1t6e85DlUDyM5OzmJ2KPmujX8gegA027HvKSMpQAAAAAAAAAAAvrwgAAAAAAAAAABAAAAAOGpdPW3p7zkOVQPIzk7OYnYo+a6NfyB6ADTbse8pIylAAAAAAAAAAAC+vCAAAAAAAAAAAEAAAAA4al09benvOQ5VA8jOTs5idij5ro1/IHoANNux7ykjKUAAAAAAAAAAAL68IAAAAAAAAAAAQAAAADhqXT1t6e85DlUDyM5OzmJ2KPmujX8gegA027HvKSMpQAAAAAAAAAAAvrwgAAAAAAAAAAA';
const simpleSignerUrl = 'https://sign.scalemote.io';
const simpleSignerUrl = 'https://sign.bigger.systems';
async function openSignWindow(xdr) {
const signWindow = window.open(
Expand Down Expand Up @@ -275,7 +275,7 @@ Via URL:
const unsignedXdr =
'AAAAAgAAAADhqXT1t6e85DlUDyM5OzmJ2KPmujX8gegA027HvKSMpQAAAZAADGyCAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAQAAAADhqXT1t6e85DlUDyM5OzmJ2KPmujX8gegA027HvKSMpQAAAAAAAAAAAvrwgAAAAAAAAAABAAAAAOGpdPW3p7zkOVQPIzk7OYnYo+a6NfyB6ADTbse8pIylAAAAAAAAAAAC+vCAAAAAAAAAAAEAAAAA4al09benvOQ5VA8jOTs5idij5ro1/IHoANNux7ykjKUAAAAAAAAAAAL68IAAAAAAAAAAAQAAAADhqXT1t6e85DlUDyM5OzmJ2KPmujX8gegA027HvKSMpQAAAAAAAAAAAvrwgAAAAAAAAAAA';
const signWindow = window.open(
`https://sign.scalemote.io/sign/?xdr=${unsignedXdr}`,
`https://sign.bigger.systems/sign/?xdr=${unsignedXdr}`,
'Sign_Window',
'width=360, height=700',
);
Expand All @@ -288,7 +288,7 @@ Post Message has some advantages over the URL method which are covered in the [S
```javascript
const unsignedXdr =
'AAAAAgAAAADhqXT1t6e85DlUDyM5OzmJ2KPmujX8gegA027HvKSMpQAAAZAADGyCAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAQAAAADhqXT1t6e85DlUDyM5OzmJ2KPmujX8gegA027HvKSMpQAAAAAAAAAAAvrwgAAAAAAAAAABAAAAAOGpdPW3p7zkOVQPIzk7OYnYo+a6NfyB6ADTbse8pIylAAAAAAAAAAAC+vCAAAAAAAAAAAEAAAAA4al09benvOQ5VA8jOTs5idij5ro1/IHoANNux7ykjKUAAAAAAAAAAAL68IAAAAAAAAAAAQAAAADhqXT1t6e85DlUDyM5OzmJ2KPmujX8gegA027HvKSMpQAAAAAAAAAAAvrwgAAAAAAAAAAA';
const simpleSignerUrl = 'https://sign.scalemote.io';
const simpleSignerUrl = 'https://sign.bigger.systems';
const signWindow = window.open(
`${simpleSignerUrl}/sign`,
'Sign_Window',
Expand Down Expand Up @@ -378,7 +378,7 @@ You can pass the payment parameters such as the receiver's account, amount, asse
);
// Listen for payment completion message
window.addEventListener('message', async (event) => {
window.addEventListener('message', (event) => {
if (event.origin !== simpleSignerUrl) return;
const { type, message } = event.data;
Expand All @@ -404,7 +404,7 @@ const assetCode = 'native'; // 'native' for XLM, or asset code for other assets
const issuer = ''; // If assetCode is not 'native', provide issuer's public key

const paymentWindow = window.open(
`https://sign.scalemote.io/payment/?receiver=${receiver}&amount=${amount}&assetCode=${assetCode}&issuer=${issuer}`,
`https://sign.bigger.systems/payment/?receiver=${receiver}&amount=${amount}&assetCode=${assetCode}&issuer=${issuer}`,
'Payment_Window',
'width=360, height=700',
);
Expand All @@ -420,7 +420,7 @@ const amount = '10';
const assetCode = 'native'; // 'native' for XLM, or asset code for other assets
const issuer = ''; // If assetCode is not 'native', provide issuer's public key

const simpleSignerUrl = 'https://sign.scalemote.io';
const simpleSignerUrl = 'https://sign.bigger.systems';
const paymentWindow = window.open(
`${simpleSignerUrl}/payment`,
'Payment_Window',
Expand Down Expand Up @@ -501,7 +501,7 @@ parameter in the URL or by sending a message to Simple Signer. By default, all a

If you want to configure the wallets that are presented to the user, use valid wallet values appended in
multiple `wallets` parameters, for example:
`https://sign.scalemote.io/connect/?wallets=xbull&wallets=freighter&wallets=albedo`
`https://sign.bigger.systems/connect/?wallets=xbull&wallets=freighter&wallets=albedo`

### Via Post Message

Expand All @@ -514,7 +514,7 @@ You may also choose to send the wallets at another moment, once Simple Signer is
Example usage:

```javascript
const simpleSignerUrl = 'https://sign.scalemote.io';
const simpleSignerUrl = 'https://sign.bigger.systems';
const connectWindow = window.open(
`${simpleSignerUrl}/connect`,
'Connect_Window',
Expand Down Expand Up @@ -564,7 +564,7 @@ See examples below via URL and via postMessage for a clearer picture on how they
This is the preferred method to pass messages to Simple Signer.

```javascript
const simpleSignerUrl = 'https://sign.scalemote.io';
const simpleSignerUrl = 'https://sign.bigger.systems';
const signWindow = window.open(
`${simpleSignerUrl}/sign`,
'Sign_Window',
Expand Down Expand Up @@ -611,7 +611,7 @@ window.addEventListener('message', (e) => {
Please note operation groups are not available via URL, use postMessage instead.

```javascript
const simpleSignerUrl = 'https://sign.scalemote.io';
const simpleSignerUrl = 'https://sign.bigger.systems';
const sampleXdr =
'AAAAAgAAAADhqXT1t6e85DlUDyM5OzmJ2KPmujX8gegA027HvKSMpQAAAZAADGyCAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAQAAAADhqXT1t6e85DlUDyM5OzmJ2KPmujX8gegA027HvKSMpQAAAAAAAAAAAvrwgAAAAAAAAAABAAAAAOGpdPW3p7zkOVQPIzk7OYnYo+a6NfyB6ADTbse8pIylAAAAAAAAAAAC+vCAAAAAAAAAAAEAAAAA4al09benvOQ5VA8jOTs5idij5ro1/IHoANNux7ykjKUAAAAAAAAAAAL68IAAAAAAAAAAAQAAAADhqXT1t6e85DlUDyM5OzmJ2KPmujX8gegA027HvKSMpQAAAAAAAAAAAvrwgAAAAAAAAAAA';
const signWindow = window.open(
Expand Down
2 changes: 1 addition & 1 deletion test.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<button onclick="openPaymentWindowUsingUrlParams()">Open payment via URL</button>
<button onclick="openPaymentWindowUsingPostMessage()">Open payment via postMessage</button>
<script type="text/javascript">
const simpleSignerURL = 'https://sign.scalemote.io';
const simpleSignerURL = 'https://sign.bigger.systems';
const sampleXdr =
'AAAAAgAAAADhqXT1t6e85DlUDyM5OzmJ2KPmujX8gegA027HvKSMpQAAAZAADGyCAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAQAAAADhqXT1t6e85DlUDyM5OzmJ2KPmujX8gegA027HvKSMpQAAAAAAAAAAAvrwgAAAAAAAAAABAAAAAOGpdPW3p7zkOVQPIzk7OYnYo+a6NfyB6ADTbse8pIylAAAAAAAAAAAC+vCAAAAAAAAAAAEAAAAA4al09benvOQ5VA8jOTs5idij5ro1/IHoANNux7ykjKUAAAAAAAAAAAL68IAAAAAAAAAAAQAAAADhqXT1t6e85DlUDyM5OzmJ2KPmujX8gegA027HvKSMpQAAAAAAAAAAAvrwgAAAAAAAAAAA';
const sampleReceiver = 'GBS23SVOXH73F4L3ETIXFNAHIPIISLLPF3DREGQZE4TRAANMMYB7COKZ';
Expand Down

0 comments on commit 8eb6a5f

Please sign in to comment.