forked from tonicpow/go-minercraft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.go
61 lines (50 loc) · 1.58 KB
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package minercraft
const (
// version is the current package version
version = "v0.0.5"
// defaultUserAgent is the default user agent for all requests
defaultUserAgent string = "go-minercraft: " + version
// defaultProtocol is used for url endpoints in requests
defaultProtocol = "https://"
)
const (
// routeFeeQuote is the route for getting a fee quote
routeFeeQuote = "/mapi/feeQuote"
// routeQueryTx is the route for querying a transaction
routeQueryTx = "/mapi/tx/"
// routeSubmitTx is the route for submit a transaction
routeSubmitTx = "/mapi/tx"
)
const (
// MinerTaal is the name of the known miner for "Taal"
MinerTaal = "Taal"
// MinerMempool is the name of the known miner for "Mempool"
MinerMempool = "Mempool"
// MinerMatterpool is the name of the known miner for "Matterpool"
MinerMatterpool = "Matterpool"
)
// KnownMiners is a pre-filled list of known miners
// Any pre-filled tokens are for free use only
// update your custom token with client.MinerUpdateToken("name", "token")
const KnownMiners = `
[
{
"name": "Taal",
"miner_id": "03e92d3e5c3f7bd945dfbf48e7a99393b1bfb3f11f380ae30d286e7ff2aec5a270",
"token": "",
"url": "merchantapi.taal.com"
},
{
"name": "Mempool",
"miner_id": "03e92d3e5c3f7bd945dfbf48e7a99393b1bfb3f11f380ae30d286e7ff2aec5a270",
"token": "561b756d12572020ea9a104c3441b71790acbbce95a6ddbf7e0630971af9424b",
"url": "www.ddpurse.com/openapi"
},
{
"name": "Matterpool",
"miner_id": "0211ccfc29e3058b770f3cf3eb34b0b2fd2293057a994d4d275121be4151cdf087",
"token": "",
"url": "merchantapi.matterpool.io"
}
]
`