From f49607e7b16eb203151297f292275303766b1960 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=AB=20=E3=82=A6=E3=82=A7=E3=83=83?= =?UTF-8?q?=E3=83=96?= Date: Wed, 21 Nov 2018 11:53:17 -0600 Subject: [PATCH] Updated web-daemon commands for 0.30.0 --- app/components/client/playground-scripts.js | 4 ++-- app/helpers/fetch-metadata.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/components/client/playground-scripts.js b/app/components/client/playground-scripts.js index b460778..cf9af68 100644 --- a/app/components/client/playground-scripts.js +++ b/app/components/client/playground-scripts.js @@ -190,7 +190,7 @@ curl --header "Content-Type: application/json" send(JSON.stringify({ claim: data, message: "fetch metadata", - method: "wallet_send", + method: "claim_tip", example: exampleNumber })); @@ -199,7 +199,7 @@ curl --header "Content-Type: application/json" document.getElementById("playground-results").innerHTML = `

 # With the LBRY app/daemon running locally, you can use this in your Terminal
-curl --header "Content-Type: application/json" --data '{ "method": "wallet_send", "params": { "amount": "0.01", "claim_id": "${data}" }}' http://localhost:5279    
+curl --header "Content-Type: application/json" --data '{ "method": "claim_tip", "params": { "amount": "0.001", "claim_id": "${data}" }}' http://localhost:5279    
         
diff --git a/app/helpers/fetch-metadata.js b/app/helpers/fetch-metadata.js index 84e998f..b10df2f 100644 --- a/app/helpers/fetch-metadata.js +++ b/app/helpers/fetch-metadata.js @@ -35,7 +35,7 @@ module.exports = exports = (data, socket) => { const allowedMethods = [ "publish", "resolve", - "wallet_send" + "claim_tip" ]; const body = {}; @@ -59,7 +59,7 @@ module.exports = exports = (data, socket) => { // Required for publishing body.author = "lbry.tech"; - body.bid = 0.0001; // Hardcoded publish amount + body.bid = "0.001"; // Hardcoded publish amount body.description = dataDetails.description; body.language = dataDetails.language; body.license = dataDetails.license; @@ -154,7 +154,7 @@ module.exports = exports = (data, socket) => { body.uri = claimAddress; } - if (resolveMethod === "wallet_send") { + if (resolveMethod === "claim_tip") { const approvedIds = [ "3db81c073f82fd1bb670c65f526faea3b8546720", "173412f5b1b7aa63a752e8832406aafd9f1ecb4e", @@ -182,7 +182,7 @@ module.exports = exports = (data, socket) => { apiRequestMethod = "POST"; - body.amount = "0.01"; // Hardcoded tip amount + body.amount = "0.001"; // Hardcoded tip amount body.claim_id = claimAddress; }