瀏覽代碼

faucetd: RPCAPI styling.

parazyd 3 年之前
父節點
當前提交
4b85db76a2
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      bin/faucetd/src/main.rs

+ 4 - 4
bin/faucetd/src/main.rs

@@ -372,10 +372,10 @@ impl Faucetd {
     // necessary to execute the VDF with the challenge as input and pass it to the
     // `airdrop` call, which the faucet will then verify.
     //
-    // ### Params:
+    // **Params:**
     // * `array[0]`: base58 encoded address string of the recipient
     //
-    // ### Returns:
+    // **Returns:**
     // * `array[0]`: hex-encoded challenge string
     // * `array[1]`: n steps (`u64`) needed for VDF evaluation
     //
@@ -426,12 +426,12 @@ impl Faucetd {
     // Processes a native token airdrop request and airdrops requested amount to address.
     // Returns the transaction ID upon success.
     //
-    // ### Params:
+    // **Params:**
     // * `array[0]`: base58 encoded address string of the recipient
     // * `array[1]`: Amount to airdrop in form of f64
     // * `array[2]`: VDF evaluation witness as hex-encoded BigUint string
     //
-    // ### Returns:
+    // **Returns:**
     // * hex-encoded transaction ID string
     //
     // --> {"jsonrpc": "2.0", "method": "airdrop", "params": ["1DarkFi...", 1.42, "0x123..."], "id": 1}