fix node warning for watcher

This commit is contained in:
Vamsi Krishna B 2022-11-12 19:45:20 +05:30
parent bd2abc18d3
commit 64d4a1d5a8
6 changed files with 4664 additions and 4516 deletions

View File

@ -39,14 +39,14 @@
}
},
"../deps/phoenix": {
"version": "1.6.6",
"version": "1.6.11",
"license": "MIT"
},
"../deps/phoenix_html": {
"version": "3.2.0"
},
"../deps/phoenix_live_view": {
"version": "0.17.9",
"version": "0.17.11",
"license": "MIT"
},
"node_modules/@babel/code-frame": {

View File

@ -3,7 +3,7 @@
"description": " ",
"license": "MIT",
"scripts": {
"deploy": "NODE_ENV=production webpack --mode production",
"deploy": "NODE_OPTIONS=--openssl-legacy-provider NODE_ENV=production webpack --mode production",
"watch": "webpack --mode development --watch"
},
"dependencies": {

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,8 @@ config :zcash_explorer, ZcashExplorerWeb.Endpoint,
"--mode",
"development",
"--watch-stdin",
cd: Path.expand("../assets", __DIR__)
cd: Path.expand("../assets", __DIR__),
env: [{"NODE_OPTIONS", "--openssl-legacy-provider"}]
]
]

View File

@ -34,7 +34,6 @@ defmodule ZcashExplorerWeb.TransactionView do
0
end
def format_zec(value) when value == nil do
""
end
@ -351,6 +350,43 @@ defmodule ZcashExplorerWeb.TransactionView do
fee |> format_zec()
end
# e145617c5d7d1646674da1d36540faff8e548738c0f500857e3230b35e85ca5f
def unknown_tx_fees(tx)
when tx.vjoinsplit != nil and
tx.version == 5 and
length(tx.vjoinsplit) == 0 and
length(tx.vin) > 0 and
length(tx.vout) == 0 and
length(tx.vShieldedOutput) == 0 and
length(tx.vShieldedSpend) == 0 and
tx.valueBalance == 0.0 do
"¯\\_(ツ)_/¯"
end
def unknown_tx_fees(tx)
when tx.vjoinsplit != nil and
tx.version == 5 and
length(tx.vjoinsplit) == 0 and
length(tx.vin) > 0 and
length(tx.vout) > 0 and
length(tx.vShieldedOutput) == 0 and
length(tx.vShieldedSpend) == 0 and
tx.valueBalance < 0.0 do
"¯\\_(ツ)_/¯"
end
def unknown_tx_fees(tx)
when tx.vjoinsplit != nil and
tx.version == 5 and
length(tx.vjoinsplit) == 0 and
length(tx.vin) > 0 and
length(tx.vout) > 0 and
length(tx.vShieldedOutput) == 0 and
length(tx.vShieldedSpend) == 0 and
tx.valueBalance == 0.0 do
"¯\\_(ツ)_/¯"
end
def unknown_tx_fees(tx)
when tx.vjoinsplit != nil and
tx.version == 5 and

View File

@ -7,7 +7,7 @@ defmodule ZcashExplorer.MixProject do
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
compilers: [:phoenix] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps()