這篇是針對使用 WordPress.org 作為 Quick Deploy Solution,快速製作 POC (Proof of Concept) 時前台該如何開發的介紹。由於牽涉到各團隊的組成,有的團隊有 RD,有的團隊沒有,因此這套 Solution 必須要能滿足不同使用情境。
| 術語 Terminology | 概念 Concept |
|---|---|
| Theme | 佈景主題,也就是網站的外觀 |
Stratum挖矿协议: 该协议是由SlushPool制定的,请参阅其官方文档:https://slushpool.com/help/manual/stratum-protocol
以下所有报文均使用\n做为行结束符。
矿机订阅:
{"id": 1, "method": "mining.subscribe", "params": []}| const fs = require("fs"); | |
| const solc = require('solc') | |
| let Web3 = require('web3'); | |
| let web3 = new Web3(); | |
| web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545')); | |
| var input = { | |
| 'strings.sol': fs.readFileSync('strings.sol', 'utf8'), | |
| 'StringLib.sol': fs.readFileSync('StringLib.sol', 'utf8'), |