apiv2 code updates

This commit is contained in:
Oliver Eggert
2024-11-09 17:13:13 -08:00
parent 3eb9131cbc
commit b3632c4b85
18 changed files with 39 additions and 65 deletions

View File

@@ -9,7 +9,7 @@
button{font-weight: bold;font-family: "Work Sans", sans-serif;}
td{vertical-align: middle;}
</style>
<script src='https://unpkg.com/xrpl@2.7.0/build/xrpl-latest-min.js'></script>
<script src='https://unpkg.com/xrpl@4.0.0/build/xrpl-latest.js'></script>
<script src='ripplex1-send-xrp.js'></script>
<script>
if (typeof module !== "undefined") {

View File

@@ -9,7 +9,7 @@
button{font-weight: bold;font-family: "Work Sans", sans-serif;}
td{vertical-align: middle;}
</style>
<script src='https://unpkg.com/xrpl@2.7.0/build/xrpl-latest-min.js'></script>
<script src='https://unpkg.com/xrpl@4.0.0/build/xrpl-latest.js'></script>
<script src='ripplex1-send-xrp.js'></script>
<script src='ripplex2-send-currency.js'></script>
<script>

View File

@@ -9,7 +9,7 @@
button{font-weight: bold;font-family: "Work Sans", sans-serif;}
td{vertical-align: middle;}
</style>
<script src='https://unpkg.com/xrpl@2.7.0/build/xrpl-latest-min.js'></script>
<script src='https://unpkg.com/xrpl@4.0.0/build/xrpl-latest.js'></script>
<script src='ripplex2-send-currency.js'></script>
<script src='ripplex3a-create-offers.js'></script>
<script src='ripplex3b-NameFieldSupport.js'></script>

View File

@@ -128,7 +128,7 @@ async function sendXRP() {
const prepared = await client.autofill({
"TransactionType": "Payment",
"Account": standby_wallet.address,
"Amount": xrpl.xrpToDrops(sendAmount),
"DeliverMax": xrpl.xrpToDrops(sendAmount),
"Destination": standbyDestinationField.value
})
@@ -178,7 +178,7 @@ async function oPsendXRP() {
const prepared = await client.autofill({
"TransactionType": "Payment",
"Account": operational_wallet.address,
"Amount": xrpl.xrpToDrops(operationalAmountField.value),
"DeliverMax": xrpl.xrpToDrops(operationalAmountField.value),
"Destination": operationalDestinationField.value
})

View File

@@ -116,7 +116,7 @@ async function sendCurrency() {
const send_token_tx = {
"TransactionType": "Payment",
"Account": standby_wallet.address,
"Amount": {
"DeliverMax": {
"currency": standbyCurrencyField.value,
"value": standbyAmountField.value,
"issuer": standby_wallet.address
@@ -249,7 +249,7 @@ async function oPsendCurrency() {
const send_token_tx = {
"TransactionType": "Payment",
"Account": operational_wallet.address,
"Amount": {
"DeliverMax": {
"currency": currency_code,
"value": issue_quantity,
"issuer": operational_wallet.address

View File

@@ -136,7 +136,7 @@ async function sendXRP() {
const prepared = await client.autofill({
"TransactionType": "Payment",
"Account": standby_wallet.address,
"Amount": xrpl.xrpToDrops(sendAmount),
"DeliverMax": xrpl.xrpToDrops(sendAmount),
"Destination": standbyDestinationField.value
})
@@ -186,7 +186,7 @@ async function oPsendXRP() {
const prepared = await client.autofill({
"TransactionType": "Payment",
"Account": operational_wallet.address,
"Amount": xrpl.xrpToDrops(sendAmount),
"DeliverMax": xrpl.xrpToDrops(sendAmount),
"Destination": operationalDestinationField.value
})