package node import ( _ "embed" "net/http" ) //go:embed explorer/index.html var explorerIndexHTML string //go:embed explorer/address.html var explorerAddressHTML string //go:embed explorer/tx.html var explorerTxHTML string //go:embed explorer/node.html var explorerNodeHTML string //go:embed explorer/style.css var explorerStyleCSS string //go:embed explorer/common.js var explorerCommonJS string //go:embed explorer/app.js var explorerAppJS string //go:embed explorer/address.js var explorerAddressJS string //go:embed explorer/tx.js var explorerTxJS string //go:embed explorer/node.js var explorerNodeJS string //go:embed explorer/relays.html var explorerRelaysHTML string //go:embed explorer/relays.js var explorerRelaysJS string //go:embed explorer/validators.html var explorerValidatorsHTML string //go:embed explorer/validators.js var explorerValidatorsJS string //go:embed explorer/contract.html var explorerContractHTML string //go:embed explorer/contract.js var explorerContractJS string //go:embed explorer/tokens.html var explorerTokensHTML string //go:embed explorer/tokens.js var explorerTokensJS string //go:embed explorer/token.html var explorerTokenHTML string //go:embed explorer/token.js var explorerTokenJS string func serveExplorerIndex(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "text/html; charset=utf-8") _, _ = w.Write([]byte(explorerIndexHTML)) } func serveExplorerAddressPage(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "text/html; charset=utf-8") _, _ = w.Write([]byte(explorerAddressHTML)) } func serveExplorerTxPage(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "text/html; charset=utf-8") _, _ = w.Write([]byte(explorerTxHTML)) } func serveExplorerNodePage(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "text/html; charset=utf-8") _, _ = w.Write([]byte(explorerNodeHTML)) } func serveExplorerCSS(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "text/css; charset=utf-8") _, _ = w.Write([]byte(explorerStyleCSS)) } func serveExplorerCommonJS(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "application/javascript; charset=utf-8") _, _ = w.Write([]byte(explorerCommonJS)) } func serveExplorerJS(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "application/javascript; charset=utf-8") _, _ = w.Write([]byte(explorerAppJS)) } func serveExplorerAddressJS(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "application/javascript; charset=utf-8") _, _ = w.Write([]byte(explorerAddressJS)) } func serveExplorerTxJS(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "application/javascript; charset=utf-8") _, _ = w.Write([]byte(explorerTxJS)) } func serveExplorerNodeJS(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "application/javascript; charset=utf-8") _, _ = w.Write([]byte(explorerNodeJS)) } func serveExplorerRelaysPage(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "text/html; charset=utf-8") _, _ = w.Write([]byte(explorerRelaysHTML)) } func serveExplorerRelaysJS(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "application/javascript; charset=utf-8") _, _ = w.Write([]byte(explorerRelaysJS)) } func serveExplorerValidatorsPage(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "text/html; charset=utf-8") _, _ = w.Write([]byte(explorerValidatorsHTML)) } func serveExplorerValidatorsJS(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "application/javascript; charset=utf-8") _, _ = w.Write([]byte(explorerValidatorsJS)) } func serveExplorerContractPage(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "text/html; charset=utf-8") _, _ = w.Write([]byte(explorerContractHTML)) } func serveExplorerContractJS(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "application/javascript; charset=utf-8") _, _ = w.Write([]byte(explorerContractJS)) } func serveExplorerTokensPage(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "text/html; charset=utf-8") _, _ = w.Write([]byte(explorerTokensHTML)) } func serveExplorerTokensJS(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "application/javascript; charset=utf-8") _, _ = w.Write([]byte(explorerTokensJS)) } func serveExplorerTokenPage(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "text/html; charset=utf-8") _, _ = w.Write([]byte(explorerTokenHTML)) } func serveExplorerTokenJS(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "application/javascript; charset=utf-8") _, _ = w.Write([]byte(explorerTokenJS)) }