Merge pull request #679 from mDuo13/init_tx_sender

Tx Sender updates
This commit is contained in:
Rome Reginelli
2019-08-30 13:52:39 -07:00
committed by GitHub
5 changed files with 82 additions and 46 deletions

View File

@@ -5,13 +5,13 @@
{% block right_sidebar %}
<div id="test-net-servers" class="card">
<div class="card-header">
<h4>Test Net Servers</h4>
<h4>Testnet Servers</h4>
</div>
<div class="card-body">
<p>Use the following URLs to connect to the XRP Test Net and send transactions, or <a href="connect-your-rippled-to-the-xrp-test-net.html">connect your own <code>rippled</code> server to the Test Net</a>.</p>
<h5>Websockets and Ripple API</h4>
<p>Use the following URLs to connect to the XRP Testnet and send transactions, or <a href="connect-your-rippled-to-the-xrp-test-net.html">connect your own <code>rippled</code> server to the Testnet</a>.</p>
<h5>Websockets and Ripple API</h5>
<pre><code>wss://s.altnet.rippletest.net:51233</code></pre>
<h5>JSON-RPC</h4>
<h5>JSON-RPC</h5>
<pre><code>https://s.altnet.rippletest.net:51234</code></pre>
</div>
</div>
@@ -19,11 +19,11 @@
{% block main %}
<section class="container-fluid pt-3 p-md-3">
<h1>XRP Test Net Faucet</h1>
<h1>XRP Testnet Faucet</h1>
<div class="content">
<p>Ripple has created this alternative XRP Ledger test network with nodes in every region of the world to provide a testing platform for any software products built on the XRP Ledger without using real funds.</p>
<p>Test Net funds are intended for <strong>testing</strong> only. The Test Net ledger and balances will be reset on a regular basis.</p>
<p>Ripple runs this <a href="parallel-networks.html">parallel XRP Ledger test network</a>, or Testnet, to provide a testing platform for any software products built on the XRP Ledger without using real funds.</p>
<p>Testnet funds are intended for <strong>testing</strong> only. The Testnet ledger and balances will be reset approximately every 90 days, or when otherwise necessary.</p>
<button id="generate-creds-button" class="btn btn-primary">Generate credentials</button>
<div id='your-credentials'></div>
<div id='loader' style="display: none;"><img class='throbber' src="assets/img/xrp-loader-96.png"> Generating Keys...</div>

View File

@@ -9,11 +9,11 @@
</div>
<div class="card-body">
<ul class="list-group list-group-flush">
<li class="list-group-item" id="connection-status-label">XRP Test Net:</li>
<li class="list-group-item" id="connection-status-label">XRP Testnet:</li>
<li class="list-group-item disabled" id="connection-status-item">Not Connected</li>
<li class="list-group-item" id="sending-address-label">Sending Address:</li>
<li class="list-group-item disabled sending-address-item">(None)</li>
<li class="list-group-item" id="balance-label">Test XRP Available:</li>
<li class="list-group-item" id="balance-label">Testnet XRP Available:</li>
<li class="list-group-item disabled" id="balance-item">(None)</li>
</ul>
<div id="tx-sender-history">
@@ -30,13 +30,18 @@
<h1>Transaction Sender</h1>
<div class="content">
<p>This tool sends transactions to the <a href="xrp-test-net-faucet.html">XRP Test Net</a> address of your choice so you can test how you monitor and respond to incoming transactions.</p>
<p>This tool sends transactions to the <a href="xrp-test-net-faucet.html">XRP Testnet</a> address of your choice so you can test how you monitor and respond to incoming transactions.</p>
<form>
<div class="form-group">
<button class="btn btn-primary form-control" type="button" id="init_button">Initialize</button>
<small class="form-text text-muted">Set up the necessary Testnet XRP addresses to send test payments.</small>
</div><!--/.form-group-->
<div class="form-group">
<label for="destination_address">Destination Address</label>
<input type="text" class="form-control" id="destination_address" aria-describedby="destination_address_help" value="rUCzEr6jrEyMpjhs4wSdQdz4g8Y382NxfM" />
<small id="destination_address_help" class="form-text text-muted">Send transactions to this XRP Test Net address</small>
<input type="text" class="form-control" id="destination_address" aria-describedby="destination_address_help" value="rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe" />
<small id="destination_address_help" class="form-text text-muted">Send transactions to this XRP Testnet address</small>
</div>
<h3>Send Transaction</h3>
@@ -46,7 +51,7 @@
<div class="input-group-prepend">
<span class="input-group-text loader" style="display: none"><img class="throbber" src="assets/img/xrp-loader-96.png" /></span>
</div>
<button class="btn btn-primary form-control" type="button" id="send_xrp_payment_btn">Send XRP Payment</button>
<button class="btn btn-primary form-control disabled needs-connection" type="button" id="send_xrp_payment_btn" disabled="disabled">Send XRP Payment</button>
<input id="send_xrp_payment_amount" class="form-control" type="number" aria-describedby="send_xrp_payment_amount_help" value="100000" min="1" max="10000000000" />
<div class="input-group-append">
<span class="input-group-text" id="send_xrp_payment_amount_help">drops of XRP</span>
@@ -69,7 +74,7 @@
</div>
<button class="btn btn-primary form-control" type="button" id="send_partial_payment_btn" disabled="disabled" autocomplete="off" title="(Please wait for partial payments setup to finish)">Send Partial Payment</button>
</div>
<small class="form-text text-muted">Delivers a small amount of XRP with a large <code>Amount</code> value, to test your handling of <a href="partial-payments.html">partial payments</a>.</small>
<small class="form-text text-muted">Deliver a small amount of XRP with a large <code>Amount</code> value, to test your handling of <a href="partial-payments.html">partial payments</a>.</small>
</div><!-- /.form group for partial payment -->
<hr />
@@ -79,7 +84,7 @@
<div class="input-group-prepend">
<span class="input-group-text loader" style="display: none"><img class="throbber" src="assets/img/xrp-loader-96.png" /></span>
</div>
<button class="btn btn-primary form-control" type="button" id="create_escrow_btn">Create Escrow</button>
<button class="btn btn-primary form-control disabled needs-connection" type="button" id="create_escrow_btn" disabled="disabled">Create Escrow</button>
<input class="form-control" type="number" value="60" min="5" max="10000" id="create_escrow_duration_seconds" />
<div class="input-group-append">
<span class="input-group-text">seconds</span>
@@ -104,7 +109,7 @@
<div class="input-group-prepend">
<span class="input-group-text loader" style="display: none"><img class="throbber" src="assets/img/xrp-loader-96.png" /></span>
</div>
<button class="btn btn-primary form-control" type="button" id="create_payment_channel_btn">Create Payment Channel</button>
<button class="btn btn-primary form-control disabled needs-connection" type="button" id="create_payment_channel_btn" disabled="disabled">Create Payment Channel</button>
<input id="create_payment_channel_amount" class="form-control" type="number" aria-describedby="create_payment_channel_amount_help" value="100000" min="1" max="10000000000" />
<div class="input-group-append">
<span class="input-group-text" id="create_payment_channel_amount_help">drops of XRP</span>
@@ -120,7 +125,7 @@
<div class="input-group-prepend">
<span class="input-group-text loader" style="display: none"><img class="throbber" src="assets/img/xrp-loader-96.png" /></span>
</div>
<button class="btn btn-primary form-control" type="button" id="send_issued_currency_btn">Send Issued Currency</button>
<button class="btn btn-primary form-control disabled needs-connection" type="button" id="send_issued_currency_btn" disabled="disabled">Send Issued Currency</button>
<input id="send_issued_currency_amount" class="form-control" type="text" value="100" /><!-- Note: HTML limits "number" inputs to IEEE 764 double precision, which isn't enough for the full range of issued currency amounts -->
<div class="input-group-append">
<span class="input-group-text" id="send_issued_currency_code">FOO</span><!-- TODO: custom currency codes -->
@@ -136,7 +141,7 @@
<div class="input-group-prepend">
<span class="input-group-text loader" style="display: none"><img class="throbber" src="assets/img/xrp-loader-96.png" /></span>
</div>
<button class="btn btn-primary form-control" type="button" id="trust_for_btn">Trust for</button>
<button class="btn btn-primary form-control disabled needs-connection" type="button" id="trust_for_btn" disabled="disabled">Trust for</button>
<input id="trust_for_amount" class="form-control disabled" type="number" value="100000" />
<div class="input-group-append">
<span class="input-group-text" id="trust_for_currency_code">FOO</span>

View File

@@ -90,9 +90,9 @@
<div class="modal-body">
<div class="form-check">
<input class="form-check-input" type="radio" name="wstool-1-connection" id="wstool-1-connection-s1" value="wss://s1.ripple.com/" data-jsonrpcurl="https://s1.ripple.com:51234/" data-shortname="Main Net" checked>
<input class="form-check-input" type="radio" name="wstool-1-connection" id="wstool-1-connection-s1" value="wss://s1.ripple.com/" data-jsonrpcurl="https://s1.ripple.com:51234/" data-shortname="Mainnet" checked>
<label class="form-check-label" for="wstool-1-connection-s1">
s1.ripple.com (Main Net Public Server)
s1.ripple.com (Mainnet Public Server)
</label>
</div>
<div class="form-check">
@@ -102,9 +102,9 @@
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="wstool-1-connection" id="wstool-1-connection-testnet" value="wss://s.altnet.rippletest.net:51233/" data-jsonrpcurl="https://s.altnet.rippletest.net:51234/" data-shortname="Test Net">
<input class="form-check-input" type="radio" name="wstool-1-connection" id="wstool-1-connection-testnet" value="wss://s.altnet.rippletest.net:51233/" data-jsonrpcurl="https://s.altnet.rippletest.net:51234/" data-shortname="Testnet">
<label class="form-check-label" for="wstool-1-connection-testnet">
s.altnet.rippletest.net (Test Net Public Server)
s.altnet.rippletest.net (Testnet Public Server)
</label>
</div>
<div class="form-check">