|
|
@ -10,7 +10,7 @@ defmodule Explorer.Account.WatchlistNotification do |
|
|
|
|
|
|
|
|
|
|
|
alias Explorer.Account.WatchlistAddress |
|
|
|
alias Explorer.Account.WatchlistAddress |
|
|
|
|
|
|
|
|
|
|
|
# alias Explorer.Chain.Hash |
|
|
|
alias Explorer.Chain.Hash |
|
|
|
|
|
|
|
|
|
|
|
schema "account_watchlist_notifications" do |
|
|
|
schema "account_watchlist_notifications" do |
|
|
|
field(:amount, :decimal) |
|
|
|
field(:amount, :decimal) |
|
|
@ -21,30 +21,30 @@ defmodule Explorer.Account.WatchlistNotification do |
|
|
|
field(:type, :string) |
|
|
|
field(:type, :string) |
|
|
|
field(:viewed_at, :integer) |
|
|
|
field(:viewed_at, :integer) |
|
|
|
|
|
|
|
|
|
|
|
# field(:name, :string) |
|
|
|
field(:name, :string) |
|
|
|
# field(:subject, :string) |
|
|
|
field(:subject, :string) |
|
|
|
|
|
|
|
|
|
|
|
# field(:encrypted_name, Explorer.Encrypted.Binary) |
|
|
|
field(:encrypted_name, Explorer.Encrypted.Binary) |
|
|
|
# field(:encrypted_subject, Explorer.Encrypted.Binary) |
|
|
|
field(:encrypted_subject, Explorer.Encrypted.Binary) |
|
|
|
|
|
|
|
|
|
|
|
field(:name, Explorer.Encrypted.Binary) |
|
|
|
# field(:name, Explorer.Encrypted.Binary) |
|
|
|
field(:subject, Explorer.Encrypted.Binary) |
|
|
|
# field(:subject, Explorer.Encrypted.Binary) |
|
|
|
|
|
|
|
|
|
|
|
field(:subject_hash, Cloak.Ecto.SHA256) |
|
|
|
field(:subject_hash, Cloak.Ecto.SHA256) |
|
|
|
|
|
|
|
|
|
|
|
belongs_to(:watchlist_address, WatchlistAddress) |
|
|
|
belongs_to(:watchlist_address, WatchlistAddress) |
|
|
|
|
|
|
|
|
|
|
|
# field(:encrypted_from_address_hash, Explorer.Encrypted.AddressHash) |
|
|
|
field(:encrypted_from_address_hash, Explorer.Encrypted.AddressHash) |
|
|
|
# field(:encrypted_to_address_hash, Explorer.Encrypted.AddressHash) |
|
|
|
field(:encrypted_to_address_hash, Explorer.Encrypted.AddressHash) |
|
|
|
# field(:encrypted_transaction_hash, Explorer.Encrypted.TransactionHash) |
|
|
|
field(:encrypted_transaction_hash, Explorer.Encrypted.TransactionHash) |
|
|
|
|
|
|
|
|
|
|
|
# field(:from_address_hash, Hash.Address) |
|
|
|
field(:from_address_hash, Hash.Address) |
|
|
|
# field(:to_address_hash, Hash.Address) |
|
|
|
field(:to_address_hash, Hash.Address) |
|
|
|
# field(:transaction_hash, Hash.Full) |
|
|
|
field(:transaction_hash, Hash.Full) |
|
|
|
|
|
|
|
|
|
|
|
field(:from_address_hash, Explorer.Encrypted.AddressHash) |
|
|
|
# field(:from_address_hash, Explorer.Encrypted.AddressHash) |
|
|
|
field(:to_address_hash, Explorer.Encrypted.AddressHash) |
|
|
|
# field(:to_address_hash, Explorer.Encrypted.AddressHash) |
|
|
|
field(:transaction_hash, Explorer.Encrypted.TransactionHash) |
|
|
|
# field(:transaction_hash, Explorer.Encrypted.TransactionHash) |
|
|
|
|
|
|
|
|
|
|
|
field(:from_address_hash_hash, Cloak.Ecto.SHA256) |
|
|
|
field(:from_address_hash_hash, Cloak.Ecto.SHA256) |
|
|
|
field(:to_address_hash_hash, Cloak.Ecto.SHA256) |
|
|
|
field(:to_address_hash_hash, Cloak.Ecto.SHA256) |
|
|
|