From b3632c4b85e7e3a46e575ea352c75971b02fa20f Mon Sep 17 00:00:00 2001 From: Oliver Eggert Date: Sat, 9 Nov 2024 17:13:13 -0800 Subject: [PATCH 1/2] apiv2 code updates --- _code-samples/escrow/js/create-escrow.js | 2 +- _code-samples/escrow/py/create_escrow.py | 4 +-- .../issue-a-token/js/issue-a-token.js | 6 ++-- .../js/monitor-payments.js | 4 +-- .../js/read-amount-received.js | 8 +++--- .../py/read_amount_received.py | 10 +++---- .../js/1.get-accounts-send-xrp.html | 2 +- .../js/2.create-trustline-send-currency.html | 2 +- .../quickstart/js/3a.CreateOffer.html | 2 +- .../quickstart/js/ripplex1-send-xrp.js | 4 +-- .../quickstart/js/ripplex2-send-currency.js | 4 +-- .../js/ripplex3b-NameFieldSupport.js | 4 +-- .../secure-signing/js/signPayment.js | 4 +-- _code-samples/send-a-memo/js/send-a-memo.js | 8 +++--- _code-samples/send-a-memo/py/send-a-memo.py | 6 ++-- _code-samples/send-xrp/js/send-xrp.js | 2 +- docs/tutorials/how-tos/send-xrp.md | 4 +-- package-lock.json | 28 +------------------ 18 files changed, 39 insertions(+), 65 deletions(-) diff --git a/_code-samples/escrow/js/create-escrow.js b/_code-samples/escrow/js/create-escrow.js index a5dc268e3d2..cd9d032312e 100644 --- a/_code-samples/escrow/js/create-escrow.js +++ b/_code-samples/escrow/js/create-escrow.js @@ -55,7 +55,7 @@ async function main() { JSON.stringify(escrowCreateTransaction, null, "\t"), "\n" ); const response = await client.submitAndWait(escrowCreateTransaction, { wallet }); - console.log(`Sequence number: ${response.result.Sequence}`); + console.log(`Sequence number: ${response.result.tx_json.Sequence}`); console.log(`Finished submitting! ${JSON.stringify(response.result, null, "\t")}`); await client.disconnect(); diff --git a/_code-samples/escrow/py/create_escrow.py b/_code-samples/escrow/py/create_escrow.py index c810cce6b61..c35775a5e3a 100644 --- a/_code-samples/escrow/py/create_escrow.py +++ b/_code-samples/escrow/py/create_escrow.py @@ -44,8 +44,8 @@ # Parse result and print out the neccesary info -print(stxn_result["Account"]) -print(stxn_result["Sequence"]) +print(stxn_result["tx_json"]["Account"]) +print(stxn_result["tx_json"]["Sequence"]) print(stxn_result["meta"]["TransactionResult"]) print(stxn_result["hash"]) diff --git a/_code-samples/issue-a-token/js/issue-a-token.js b/_code-samples/issue-a-token/js/issue-a-token.js index bd99309a3e8..c8cebcd5278 100644 --- a/_code-samples/issue-a-token/js/issue-a-token.js +++ b/_code-samples/issue-a-token/js/issue-a-token.js @@ -145,7 +145,7 @@ async function main() { const send_token_tx = { "TransactionType": "Payment", "Account": cold_wallet.address, - "Amount": { + "DeliverMax": { "currency": currency_code, "value": issue_quantity, "issuer": cold_wallet.address @@ -171,7 +171,7 @@ async function main() { const send_token_tx2 = { "TransactionType": "Payment", "Account": hot_wallet.address, - "Amount": { + "DeliverMax": { "currency": currency_code, "value": issue_quantity, "issuer": cold_wallet.address @@ -197,7 +197,7 @@ async function main() { const send_token_tx3 = { "TransactionType": "Payment", "Account": customer_one_wallet.address, - "Amount": { + "DeliverMax": { "currency": currency_code, "value": issue_quantity, "issuer": cold_wallet.address diff --git a/_code-samples/monitor-payments-websocket/js/monitor-payments.js b/_code-samples/monitor-payments-websocket/js/monitor-payments.js index c38511e351d..5e4e537e407 100644 --- a/_code-samples/monitor-payments-websocket/js/monitor-payments.js +++ b/_code-samples/monitor-payments-websocket/js/monitor-payments.js @@ -82,8 +82,8 @@ async function do_subscribe() { } const log_tx = function(tx) { - console.log(tx.transaction.TransactionType + " transaction sent by " + - tx.transaction.Account + + console.log(tx.tx_json.TransactionType + " transaction sent by " + + tx.tx_json.Account + "\n Result: " + tx.meta.TransactionResult + " in ledger " + tx.ledger_index + "\n Validated? " + tx.validated) diff --git a/_code-samples/monitor-payments-websocket/js/read-amount-received.js b/_code-samples/monitor-payments-websocket/js/read-amount-received.js index d044b274e97..ae253100ea7 100644 --- a/_code-samples/monitor-payments-websocket/js/read-amount-received.js +++ b/_code-samples/monitor-payments-websocket/js/read-amount-received.js @@ -51,8 +51,8 @@ function CountXRPReceived(tx, address) { console.log("Transaction failed.") return } - if (tx.transaction.TransactionType === "Payment") { - if (tx.transaction.Destination !== address) { + if (tx.tx_json.TransactionType === "Payment") { + if (tx.tx_json.Destination !== address) { console.log("Not the destination of this payment.") return } @@ -67,10 +67,10 @@ function CountXRPReceived(tx, address) { } } else if (["PaymentChannelClaim", "PaymentChannelFund", "OfferCreate", "CheckCash", "EscrowFinish"].includes( - tx.transaction.TransactionType)) { + tx.tx_json.TransactionType)) { CountXRPDifference(tx.meta.AffectedNodes, address) } else { console.log("Not a currency-delivering transaction type (" + - tx.transaction.TransactionType + ").") + tx.tx_json.TransactionType + ").") } } diff --git a/_code-samples/monitor-payments-websocket/py/read_amount_received.py b/_code-samples/monitor-payments-websocket/py/read_amount_received.py index 5f54fcf3c5e..39c0e987fe6 100644 --- a/_code-samples/monitor-payments-websocket/py/read_amount_received.py +++ b/_code-samples/monitor-payments-websocket/py/read_amount_received.py @@ -53,21 +53,21 @@ def CountXRPReceived(tx, address): if tx['meta']['TransactionResult'] != 'tesSUCCESS': print("Transaction failed") return - if tx['transaction']['TransactionType'] == 'Payment': - if tx['transaction']['Destination'] != address: + if tx['tx_json']['TransactionType'] == 'Payment': + if tx['tx_json']['Destination'] != address: print("Not the destination of this payment.") return if tx['meta']['delivered_amount'] is int or str: - amount_in_drops = int(tx['transaction']['Amount']) + amount_in_drops = int(tx['tx_json']['DeliverMax']) xrp_amount = (amount_in_drops / 1000000) print(f"Received {xrp_amount} XRP") return else: print("Received non-XRP currency") - elif tx['transaction']['TransactionType'] == 'PaymentChannelClaim' or 'PaymentChannelFund' or'OfferCreate' or 'CheckCash' or 'EscrowFinish': + elif tx['tx_json']['TransactionType'] == 'PaymentChannelClaim' or 'PaymentChannelFund' or'OfferCreate' or 'CheckCash' or 'EscrowFinish': FindXRPDifference(tx, address) else: - print("Not a currency-delivering transaction type", tx['transaction']['TransactionType']) + print("Not a currency-delivering transaction type", tx['tx_json']['TransactionType']) CountXRPReceived(tx=transaction, address='rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe') diff --git a/_code-samples/quickstart/js/1.get-accounts-send-xrp.html b/_code-samples/quickstart/js/1.get-accounts-send-xrp.html index 2a0c79d081b..82cc70f5b5a 100644 --- a/_code-samples/quickstart/js/1.get-accounts-send-xrp.html +++ b/_code-samples/quickstart/js/1.get-accounts-send-xrp.html @@ -9,7 +9,7 @@ button{font-weight: bold;font-family: "Work Sans", sans-serif;} td{vertical-align: middle;} - + + + diff --git a/_code-samples/quickstart/js/ripplex1-send-xrp.js b/_code-samples/quickstart/js/ripplex1-send-xrp.js index 07c1d274e32..6e1bf3b93ce 100644 --- a/_code-samples/quickstart/js/ripplex1-send-xrp.js +++ b/_code-samples/quickstart/js/ripplex1-send-xrp.js @@ -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 }) diff --git a/_code-samples/quickstart/js/ripplex2-send-currency.js b/_code-samples/quickstart/js/ripplex2-send-currency.js index 47365cec0d1..03b961a2bfd 100644 --- a/_code-samples/quickstart/js/ripplex2-send-currency.js +++ b/_code-samples/quickstart/js/ripplex2-send-currency.js @@ -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 diff --git a/_code-samples/quickstart/js/ripplex3b-NameFieldSupport.js b/_code-samples/quickstart/js/ripplex3b-NameFieldSupport.js index 5157a1d913b..89e613ce63d 100644 --- a/_code-samples/quickstart/js/ripplex3b-NameFieldSupport.js +++ b/_code-samples/quickstart/js/ripplex3b-NameFieldSupport.js @@ -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 }) diff --git a/_code-samples/secure-signing/js/signPayment.js b/_code-samples/secure-signing/js/signPayment.js index effe44cfcdf..259f62e4479 100644 --- a/_code-samples/secure-signing/js/signPayment.js +++ b/_code-samples/secure-signing/js/signPayment.js @@ -15,7 +15,7 @@ const txJSON = { "Account": my_wallet.address, "TransactionType":"Payment", "Destination":"rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn", - "Amount":"13000000", + "DeliverMax":"13000000", "Flags":2147483648, "LastLedgerSequence":7835923, // Optional, but recommended. "Fee":"13", @@ -25,4 +25,4 @@ const txJSON = { const signed = my_wallet.sign(txJSON) console.log("tx_blob is:", signed.tx_blob) -console.log("tx hash is:", signed.hash) +console.log("tx hash is:", signed.tx_json.hash) diff --git a/_code-samples/send-a-memo/js/send-a-memo.js b/_code-samples/send-a-memo/js/send-a-memo.js index 677fd375882..27b11e6f7f6 100644 --- a/_code-samples/send-a-memo/js/send-a-memo.js +++ b/_code-samples/send-a-memo/js/send-a-memo.js @@ -31,7 +31,7 @@ if (typeof module !== "undefined") { "TransactionType": "Payment", "Account": wallet.address, "Destination": "rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe", - "Amount": "1000000", // Amount in drops, 1 XRP = 1,000,000 drops + "DeliverMax": "1000000", // Amount in drops, 1 XRP = 1,000,000 drops "Memos": [{ "Memo":{ "MemoType": MemoType, @@ -45,9 +45,9 @@ if (typeof module !== "undefined") { console.log("Submitting a payment transaction with our memo field...") const submit_result = await client.submitAndWait(signed.tx_blob) xrpl.convertHexToString - const tx_MemoData = xrpl.convertHexToString(string=submit_result.result.Memos[0].Memo.MemoData); - const tx_MemoFormat = xrpl.convertHexToString(string=submit_result.result.Memos[0].Memo.MemoFormat); - const tx_MemoType = xrpl.convertHexToString(string=submit_result.result.Memos[0].Memo.MemoType); + const tx_MemoData = xrpl.convertHexToString(string=submit_result.result.tx_json.Memos[0].Memo.MemoData); + const tx_MemoFormat = xrpl.convertHexToString(string=submit_result.result.tx_json.Memos[0].Memo.MemoFormat); + const tx_MemoType = xrpl.convertHexToString(string=submit_result.result.tx_json.Memos[0].Memo.MemoType); console.log(`\n Encoded Transaction MEMO: ${JSON.stringify({"MemoType": MemoType, "MemoData": MemoData, "MemoFormat": MemoFormat})}`) console.log(` Decoded Transaction MEMO: ${JSON.stringify({"MemoType": tx_MemoType, "MemoData": tx_MemoData, "MemoFormat": tx_MemoFormat})}`); diff --git a/_code-samples/send-a-memo/py/send-a-memo.py b/_code-samples/send-a-memo/py/send-a-memo.py index adb66fc6116..36b1a6559ed 100644 --- a/_code-samples/send-a-memo/py/send-a-memo.py +++ b/_code-samples/send-a-memo/py/send-a-memo.py @@ -49,9 +49,9 @@ submit_tx_regular = submit_and_wait(transaction=payment_tx_signed, client=client) submit_tx_regular = submit_tx_regular.result -tx_MemoData = bytes.fromhex(submit_tx_regular['Memos'][0]['Memo']['MemoData']).decode('utf-8') -tx_MemoFormat = bytes.fromhex(submit_tx_regular['Memos'][0]['Memo']['MemoFormat']).decode('utf-8') -tx_MemoType = bytes.fromhex(submit_tx_regular['Memos'][0]['Memo']['MemoType']).decode('utf-8') +tx_MemoData = bytes.fromhex(submit_tx_regular['tx_json']['Memos'][0]['Memo']['MemoData']).decode('utf-8') +tx_MemoFormat = bytes.fromhex(submit_tx_regular['tx_json']['Memos'][0]['Memo']['MemoFormat']).decode('utf-8') +tx_MemoType = bytes.fromhex(submit_tx_regular['tx_json']['Memos'][0]['Memo']['MemoType']).decode('utf-8') print(f" Decoded Transaction MEMO:") print(f" MemoData: {tx_MemoData}") diff --git a/_code-samples/send-xrp/js/send-xrp.js b/_code-samples/send-xrp/js/send-xrp.js index 1c932ed667e..1a7e64a8897 100644 --- a/_code-samples/send-xrp/js/send-xrp.js +++ b/_code-samples/send-xrp/js/send-xrp.js @@ -23,7 +23,7 @@ async function main() { const prepared = await client.autofill({ "TransactionType": "Payment", "Account": wallet.address, - "Amount": xrpl.xrpToDrops("22"), + "DeliverMax": xrpl.xrpToDrops("22"), "Destination": "rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe" }) const max_ledger = prepared.LastLedgerSequence diff --git a/docs/tutorials/how-tos/send-xrp.md b/docs/tutorials/how-tos/send-xrp.md index 811d554a48b..2508a5e906a 100644 --- a/docs/tutorials/how-tos/send-xrp.md +++ b/docs/tutorials/how-tos/send-xrp.md @@ -102,7 +102,7 @@ Typically, we create XRP Ledger transactions as objects in the JSON [transaction { "TransactionType": "Payment", "Account": "rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe", - "Amount": "2000000", + "DeliverMax": "2000000", "Destination": "rUCzEr6jrEyMpjhs4wSdQdz4g8Y382NxfM" } ``` @@ -112,7 +112,7 @@ The bare minimum set of instructions you must provide for an XRP Payment is: - An indicator that this is a payment. (`"TransactionType": "Payment"`) - The sending address. (`"Account"`) - The address that should receive the XRP (`"Destination"`). This can't be the same as the sending address. -- The amount of XRP to send (`"Amount"`). Typically, this is specified as an integer in "drops" of XRP, where 1,000,000 drops equals 1 XRP. +- The amount of XRP to send (`"DeliverMax"`). Typically, this is specified as an integer in "drops" of XRP, where 1,000,000 drops equals 1 XRP. Technically, a transaction must contain some additional fields, and certain optional fields such as `LastLedgerSequence` are strongly recommended. Some other language-specific notes: diff --git a/package-lock.json b/package-lock.json index 8d8ad1ce8f4..52cc6b2ff28 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2783,33 +2783,6 @@ "resolved": "https://registry.npmjs.org/crelt/-/crelt-1.0.6.tgz", "integrity": "sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==" }, - "node_modules/cross-fetch": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.0.0.tgz", - "integrity": "sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==", - "dependencies": { - "node-fetch": "^2.6.12" - } - }, - "node_modules/cross-fetch/node_modules/node-fetch": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", - "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, "node_modules/crypto-js": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz", @@ -6898,6 +6871,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/xrpl/-/xrpl-4.0.0.tgz", "integrity": "sha512-VZm1lQWHQ6PheAAFGdH+ISXKvqB2hZDQ0w4ZcdAEtmqZQXtSIVQHOKPz95rEgGANbos7+XClxJ73++joPhA8Cw==", + "license": "ISC", "dependencies": { "@scure/bip32": "^1.3.1", "@scure/bip39": "^1.2.1", From 20afacf2164fab1351b5e9105bf5fe686d6443e3 Mon Sep 17 00:00:00 2001 From: Oliver Eggert Date: Tue, 19 Nov 2024 11:50:45 -0800 Subject: [PATCH 2/2] update dependencies --- _code-samples/airgapped-wallet/js/package.json | 2 +- _code-samples/airgapped-wallet/py/requirements.txt | 2 +- _code-samples/auction-slot/js/package.json | 2 +- _code-samples/build-a-browser-wallet/js/package.json | 2 +- _code-samples/build-a-desktop-wallet/js/package.json | 2 +- _code-samples/build-a-desktop-wallet/py/requirements.txt | 2 +- _code-samples/checks/js/package.json | 2 +- _code-samples/create-amm/js/package.json | 2 +- _code-samples/create-amm/ts/package.json | 2 +- _code-samples/escrow/js/package.json | 2 +- _code-samples/escrow/py/requirements.txt | 2 +- _code-samples/freeze/js/package.json | 2 +- _code-samples/freeze/py/requirements.txt | 2 +- _code-samples/get-started/js/package.json | 2 +- _code-samples/issue-a-token/js/demo.html | 2 +- _code-samples/issue-a-token/js/package.json | 2 +- _code-samples/key-derivation/js/package.json | 2 +- _code-samples/non-fungible-token/js/package.json | 2 +- _code-samples/quickstart/js/10.check.html | 2 +- _code-samples/quickstart/js/11.create-amm.html | 2 +- _code-samples/quickstart/js/12.add-to-amm.html | 2 +- _code-samples/quickstart/js/13.trade-with-auction-slot.html | 2 +- _code-samples/quickstart/js/3.mint-nfts.html | 2 +- _code-samples/quickstart/js/4.transfer-nfts.html | 2 +- _code-samples/quickstart/js/5.broker-nfts.html | 2 +- _code-samples/quickstart/js/6.authorized-minter.html | 2 +- _code-samples/quickstart/js/7.batch-minting.html | 2 +- _code-samples/quickstart/js/8.escrow.html | 2 +- _code-samples/quickstart/js/9.escrow-condition.html | 2 +- _code-samples/require-destination-tags/js/demo.html | 2 +- _code-samples/require-destination-tags/js/package.json | 2 +- _code-samples/send-a-memo/js/package.json | 2 +- _code-samples/send-xrp/js/demo.html | 2 +- _code-samples/send-xrp/js/package.json | 2 +- _code-samples/trade-in-the-decentralized-exchange/js/demo.html | 2 +- .../trade-in-the-decentralized-exchange/js/package.json | 2 +- _code-samples/tx-serialization/js/package.json | 2 +- _code-samples/use-tickets/js/demo.html | 2 +- _code-samples/use-tickets/js/package.json | 2 +- 39 files changed, 39 insertions(+), 39 deletions(-) diff --git a/_code-samples/airgapped-wallet/js/package.json b/_code-samples/airgapped-wallet/js/package.json index 08caefc512e..b5b9d3b3a70 100644 --- a/_code-samples/airgapped-wallet/js/package.json +++ b/_code-samples/airgapped-wallet/js/package.json @@ -8,7 +8,7 @@ "pbkdf2-hmac": "^1.1.0", "prompt": "^1.3.0", "qrcode": "^1.5.1", - "xrpl": "^3.0.0" + "xrpl": "^4.0.0" }, "main": "index.js", "scripts": { diff --git a/_code-samples/airgapped-wallet/py/requirements.txt b/_code-samples/airgapped-wallet/py/requirements.txt index 19fa7a080b9..fec4574c0bd 100644 --- a/_code-samples/airgapped-wallet/py/requirements.txt +++ b/_code-samples/airgapped-wallet/py/requirements.txt @@ -1,4 +1,4 @@ cryptography==43.0.1 Pillow==10.3.0 qrcode==7.2 -xrpl-py==3.0.0 +xrpl-py>=3.0.0 diff --git a/_code-samples/auction-slot/js/package.json b/_code-samples/auction-slot/js/package.json index 1b96fc2efce..a0b77f863c3 100644 --- a/_code-samples/auction-slot/js/package.json +++ b/_code-samples/auction-slot/js/package.json @@ -1,6 +1,6 @@ { "dependencies": { - "xrpl": "^3.0.0", + "xrpl": "^4.0.0", "bignumber.js": "^9.0.0" } } diff --git a/_code-samples/build-a-browser-wallet/js/package.json b/_code-samples/build-a-browser-wallet/js/package.json index 94022b73643..2aa8251a56f 100644 --- a/_code-samples/build-a-browser-wallet/js/package.json +++ b/_code-samples/build-a-browser-wallet/js/package.json @@ -16,6 +16,6 @@ }, "dependencies": { "dotenv": "^16.0.3", - "xrpl": "^3.0.0" + "xrpl": "^4.0.0" } } diff --git a/_code-samples/build-a-desktop-wallet/js/package.json b/_code-samples/build-a-desktop-wallet/js/package.json index 0b409b58996..009036e61a4 100644 --- a/_code-samples/build-a-desktop-wallet/js/package.json +++ b/_code-samples/build-a-desktop-wallet/js/package.json @@ -20,7 +20,7 @@ "pbkdf2-hmac": "^1.1.0", "open": "^8.4.0", "toml": "^3.0.0", - "xrpl": "^3.0.0" + "xrpl": "^4.0.0" }, "devDependencies": { "electron": "22.3.25" diff --git a/_code-samples/build-a-desktop-wallet/py/requirements.txt b/_code-samples/build-a-desktop-wallet/py/requirements.txt index 819794fb9ad..1d2ad232428 100644 --- a/_code-samples/build-a-desktop-wallet/py/requirements.txt +++ b/_code-samples/build-a-desktop-wallet/py/requirements.txt @@ -1,4 +1,4 @@ -xrpl-py==2.0.0 +xrpl-py>=3.0.0 wxPython==4.2.1 toml==0.10.2 requests==2.32.0 diff --git a/_code-samples/checks/js/package.json b/_code-samples/checks/js/package.json index c07e1514ba0..ac4af0cb196 100644 --- a/_code-samples/checks/js/package.json +++ b/_code-samples/checks/js/package.json @@ -4,6 +4,6 @@ "version": "0.0.2", "license": "MIT", "dependencies": { - "xrpl": "^3.0.0" + "xrpl": "^4.0.0" } } diff --git a/_code-samples/create-amm/js/package.json b/_code-samples/create-amm/js/package.json index 9bdc35287e8..58e2ddda324 100644 --- a/_code-samples/create-amm/js/package.json +++ b/_code-samples/create-amm/js/package.json @@ -1,5 +1,5 @@ { "dependencies": { - "xrpl": "3.0.0" + "xrpl": "^4.0.0" } } diff --git a/_code-samples/create-amm/ts/package.json b/_code-samples/create-amm/ts/package.json index e94ee1b446e..fa29f933da5 100644 --- a/_code-samples/create-amm/ts/package.json +++ b/_code-samples/create-amm/ts/package.json @@ -14,6 +14,6 @@ "dotenv": "^16.3.1", "ts-node": "^10.9.1", "typescript": "^5.2.2", - "xrpl": "3.0.0" + "xrpl": "^4.0.0" } } diff --git a/_code-samples/escrow/js/package.json b/_code-samples/escrow/js/package.json index 5e40fe76494..f10d9adf373 100644 --- a/_code-samples/escrow/js/package.json +++ b/_code-samples/escrow/js/package.json @@ -4,6 +4,6 @@ "license": "MIT", "dependencies": { "five-bells-condition": "*", - "xrpl": "^3.0.0" + "xrpl": "^4.0.0" } } diff --git a/_code-samples/escrow/py/requirements.txt b/_code-samples/escrow/py/requirements.txt index a2c9b974ab5..617e07eb84f 100644 --- a/_code-samples/escrow/py/requirements.txt +++ b/_code-samples/escrow/py/requirements.txt @@ -1,2 +1,2 @@ -xrpl-py +xrpl-py>=3.0.0 cryptoconditions diff --git a/_code-samples/freeze/js/package.json b/_code-samples/freeze/js/package.json index daaa6e93893..2d9e8c9dbe4 100644 --- a/_code-samples/freeze/js/package.json +++ b/_code-samples/freeze/js/package.json @@ -3,6 +3,6 @@ "version": "0.1.0", "license": "MIT", "dependencies": { - "xrpl": "^3.0.0" + "xrpl": "^4.0.0" } } diff --git a/_code-samples/freeze/py/requirements.txt b/_code-samples/freeze/py/requirements.txt index 75f7f9b06a7..0f8c67667a3 100644 --- a/_code-samples/freeze/py/requirements.txt +++ b/_code-samples/freeze/py/requirements.txt @@ -1 +1 @@ -xrpl-py +xrpl-py>=3.0.0 diff --git a/_code-samples/get-started/js/package.json b/_code-samples/get-started/js/package.json index e0e9b83e712..58e2ddda324 100644 --- a/_code-samples/get-started/js/package.json +++ b/_code-samples/get-started/js/package.json @@ -1,5 +1,5 @@ { "dependencies": { - "xrpl": "^3.0.0" + "xrpl": "^4.0.0" } } diff --git a/_code-samples/issue-a-token/js/demo.html b/_code-samples/issue-a-token/js/demo.html index f97d45b30c6..cb32312dfad 100644 --- a/_code-samples/issue-a-token/js/demo.html +++ b/_code-samples/issue-a-token/js/demo.html @@ -3,7 +3,7 @@ Code Sample - Issue a Token - + Open your browser's console (F12) to see the logs. diff --git a/_code-samples/issue-a-token/js/package.json b/_code-samples/issue-a-token/js/package.json index e0e9b83e712..58e2ddda324 100644 --- a/_code-samples/issue-a-token/js/package.json +++ b/_code-samples/issue-a-token/js/package.json @@ -1,5 +1,5 @@ { "dependencies": { - "xrpl": "^3.0.0" + "xrpl": "^4.0.0" } } diff --git a/_code-samples/key-derivation/js/package.json b/_code-samples/key-derivation/js/package.json index ce29c3ea522..e5a57555882 100644 --- a/_code-samples/key-derivation/js/package.json +++ b/_code-samples/key-derivation/js/package.json @@ -12,7 +12,7 @@ "ripple-address-codec": "^5.0.0", "ripple-keypairs": "^2.0.0", "secp256k1": "^5.0.0", - "xrpl": "^3.0.0" + "xrpl": "^4.0.0" }, "main": "index.js", "scripts": { diff --git a/_code-samples/non-fungible-token/js/package.json b/_code-samples/non-fungible-token/js/package.json index dd0cabc0715..12db570f5af 100644 --- a/_code-samples/non-fungible-token/js/package.json +++ b/_code-samples/non-fungible-token/js/package.json @@ -1,5 +1,5 @@ { "dependencies": { - "xrpl": "^3.0.0" + "xrpl": "^4.0.0" } } diff --git a/_code-samples/quickstart/js/10.check.html b/_code-samples/quickstart/js/10.check.html index ef569c351b7..5abef4fe9d9 100644 --- a/_code-samples/quickstart/js/10.check.html +++ b/_code-samples/quickstart/js/10.check.html @@ -9,7 +9,7 @@ button{font-weight: bold;font-family: "Work Sans", sans-serif;} td{vertical-align: middle;} - + diff --git a/_code-samples/quickstart/js/11.create-amm.html b/_code-samples/quickstart/js/11.create-amm.html index 0bd0a166de4..9d7c04745b9 100644 --- a/_code-samples/quickstart/js/11.create-amm.html +++ b/_code-samples/quickstart/js/11.create-amm.html @@ -9,7 +9,7 @@ button{font-weight: bold;font-family: "Work Sans", sans-serif;} td{vertical-align: middle;} - + diff --git a/_code-samples/quickstart/js/12.add-to-amm.html b/_code-samples/quickstart/js/12.add-to-amm.html index 5271508c082..d3f901553e5 100644 --- a/_code-samples/quickstart/js/12.add-to-amm.html +++ b/_code-samples/quickstart/js/12.add-to-amm.html @@ -9,7 +9,7 @@ button{font-weight: bold;font-family: "Work Sans", sans-serif;} td{vertical-align: middle;} - + diff --git a/_code-samples/quickstart/js/13.trade-with-auction-slot.html b/_code-samples/quickstart/js/13.trade-with-auction-slot.html index e103ed4166c..59abcce1428 100644 --- a/_code-samples/quickstart/js/13.trade-with-auction-slot.html +++ b/_code-samples/quickstart/js/13.trade-with-auction-slot.html @@ -9,7 +9,7 @@ button{font-weight: bold;font-family: "Work Sans", sans-serif;} td{vertical-align: middle;} - + diff --git a/_code-samples/quickstart/js/3.mint-nfts.html b/_code-samples/quickstart/js/3.mint-nfts.html index 880bc5bf69e..1de748ae69c 100644 --- a/_code-samples/quickstart/js/3.mint-nfts.html +++ b/_code-samples/quickstart/js/3.mint-nfts.html @@ -9,7 +9,7 @@ button{font-weight: bold;font-family: "Work Sans", sans-serif;} td{vertical-align: middle;} - + diff --git a/_code-samples/quickstart/js/4.transfer-nfts.html b/_code-samples/quickstart/js/4.transfer-nfts.html index aa32017a34e..cea57001da7 100644 --- a/_code-samples/quickstart/js/4.transfer-nfts.html +++ b/_code-samples/quickstart/js/4.transfer-nfts.html @@ -9,7 +9,7 @@ button{font-weight: bold;font-family: "Work Sans", sans-serif;} td{vertical-align: middle;} - + diff --git a/_code-samples/quickstart/js/5.broker-nfts.html b/_code-samples/quickstart/js/5.broker-nfts.html index 3b425193085..cd687c112a2 100644 --- a/_code-samples/quickstart/js/5.broker-nfts.html +++ b/_code-samples/quickstart/js/5.broker-nfts.html @@ -9,7 +9,7 @@ button{font-weight: bold;font-family: "Work Sans", sans-serif;} td{vertical-align: middle;} - + diff --git a/_code-samples/quickstart/js/6.authorized-minter.html b/_code-samples/quickstart/js/6.authorized-minter.html index 264149dc59c..f98d03d3074 100644 --- a/_code-samples/quickstart/js/6.authorized-minter.html +++ b/_code-samples/quickstart/js/6.authorized-minter.html @@ -9,7 +9,7 @@ button{font-weight: bold;font-family: "Work Sans", sans-serif;} td{vertical-align: middle;} - + diff --git a/_code-samples/quickstart/js/7.batch-minting.html b/_code-samples/quickstart/js/7.batch-minting.html index e65d20483f4..b742cd96572 100644 --- a/_code-samples/quickstart/js/7.batch-minting.html +++ b/_code-samples/quickstart/js/7.batch-minting.html @@ -9,7 +9,7 @@ button{font-weight: bold;font-family: "Work Sans", sans-serif;} td{vertical-align: middle;} - + diff --git a/_code-samples/quickstart/js/8.escrow.html b/_code-samples/quickstart/js/8.escrow.html index 5b5ec57e730..a7f7115d825 100644 --- a/_code-samples/quickstart/js/8.escrow.html +++ b/_code-samples/quickstart/js/8.escrow.html @@ -9,7 +9,7 @@ button{font-weight: bold;font-family: "Work Sans", sans-serif;} td{vertical-align: middle;} - + diff --git a/_code-samples/quickstart/js/9.escrow-condition.html b/_code-samples/quickstart/js/9.escrow-condition.html index 574f6a53eb0..04d1e84ee88 100644 --- a/_code-samples/quickstart/js/9.escrow-condition.html +++ b/_code-samples/quickstart/js/9.escrow-condition.html @@ -9,7 +9,7 @@ button{font-weight: bold;font-family: "Work Sans", sans-serif;} td{vertical-align: middle;} - + diff --git a/_code-samples/require-destination-tags/js/demo.html b/_code-samples/require-destination-tags/js/demo.html index 7e34fba12ca..0af0c400dd0 100644 --- a/_code-samples/require-destination-tags/js/demo.html +++ b/_code-samples/require-destination-tags/js/demo.html @@ -2,7 +2,7 @@ - + Open your browser's console (F12) to see the logs. diff --git a/_code-samples/require-destination-tags/js/package.json b/_code-samples/require-destination-tags/js/package.json index e0e9b83e712..58e2ddda324 100644 --- a/_code-samples/require-destination-tags/js/package.json +++ b/_code-samples/require-destination-tags/js/package.json @@ -1,5 +1,5 @@ { "dependencies": { - "xrpl": "^3.0.0" + "xrpl": "^4.0.0" } } diff --git a/_code-samples/send-a-memo/js/package.json b/_code-samples/send-a-memo/js/package.json index 1c0733ff400..5d82682fc1f 100644 --- a/_code-samples/send-a-memo/js/package.json +++ b/_code-samples/send-a-memo/js/package.json @@ -9,6 +9,6 @@ "author": "", "license": "CC0-1.0", "dependencies": { - "xrpl": "^3.0.0" + "xrpl": "^4.0.0" } } diff --git a/_code-samples/send-xrp/js/demo.html b/_code-samples/send-xrp/js/demo.html index 5fc42f7a9f4..97d61ebab02 100644 --- a/_code-samples/send-xrp/js/demo.html +++ b/_code-samples/send-xrp/js/demo.html @@ -3,7 +3,7 @@ Code Sample - Send XRP - + Open your browser's console (F12) to see the logs. diff --git a/_code-samples/send-xrp/js/package.json b/_code-samples/send-xrp/js/package.json index e0e9b83e712..58e2ddda324 100644 --- a/_code-samples/send-xrp/js/package.json +++ b/_code-samples/send-xrp/js/package.json @@ -1,5 +1,5 @@ { "dependencies": { - "xrpl": "^3.0.0" + "xrpl": "^4.0.0" } } diff --git a/_code-samples/trade-in-the-decentralized-exchange/js/demo.html b/_code-samples/trade-in-the-decentralized-exchange/js/demo.html index 5892fb9d016..954c395e119 100644 --- a/_code-samples/trade-in-the-decentralized-exchange/js/demo.html +++ b/_code-samples/trade-in-the-decentralized-exchange/js/demo.html @@ -3,7 +3,7 @@ Code Sample - Trade in the Decentralized Exchange - + diff --git a/_code-samples/trade-in-the-decentralized-exchange/js/package.json b/_code-samples/trade-in-the-decentralized-exchange/js/package.json index 1b96fc2efce..a0b77f863c3 100644 --- a/_code-samples/trade-in-the-decentralized-exchange/js/package.json +++ b/_code-samples/trade-in-the-decentralized-exchange/js/package.json @@ -1,6 +1,6 @@ { "dependencies": { - "xrpl": "^3.0.0", + "xrpl": "^4.0.0", "bignumber.js": "^9.0.0" } } diff --git a/_code-samples/tx-serialization/js/package.json b/_code-samples/tx-serialization/js/package.json index 410e84f03d7..91450677f9a 100644 --- a/_code-samples/tx-serialization/js/package.json +++ b/_code-samples/tx-serialization/js/package.json @@ -10,7 +10,7 @@ "fs": "^0.0.1-security", "minimist": "^1.2.7", "ripple-address-codec": "^5.0.0", - "xrpl": "^3.0.0" + "xrpl": "^4.0.0" }, "main": "index.js", "scripts": { diff --git a/_code-samples/use-tickets/js/demo.html b/_code-samples/use-tickets/js/demo.html index 26356a68024..287b80c068a 100644 --- a/_code-samples/use-tickets/js/demo.html +++ b/_code-samples/use-tickets/js/demo.html @@ -3,7 +3,7 @@ Code Sample - Use Tickets - + Open your browser's console (F12) to see the logs. diff --git a/_code-samples/use-tickets/js/package.json b/_code-samples/use-tickets/js/package.json index e0e9b83e712..58e2ddda324 100644 --- a/_code-samples/use-tickets/js/package.json +++ b/_code-samples/use-tickets/js/package.json @@ -1,5 +1,5 @@ { "dependencies": { - "xrpl": "^3.0.0" + "xrpl": "^4.0.0" } }