Magickbase / godwoken_explorer

Godwoken Explorer
https://v1.gwscan.com
18 stars 9 forks source link

add script to process erc721 burnt and created count of history data #1399

Closed Naupio closed 1 year ago

Naupio commented 1 year ago
defmodule Temp do
  alias GodwokenExplorer.Repo
  alias GodwokenExplorer.UDT

  import Ecto.Query

  def doing() do
    addresses =
      from(u in UDT, where: u.eth_type == :erc721, select: u.contract_address_hash) |> Repo.all()

    GodwokenIndexer.Worker.UpdateUDTCountInfo.do_perform(addresses, addresses)
  end
end
Naupio commented 1 year ago

@FrederLu pls check some erc721 udt like this https://v1.gwscan.com/nft-collection/0x754cde948476adee65b0b0227dd71c0fc13ccb62 is correct

FrederLu commented 1 year ago

Verified. The corresponding Minted Count is now displayed properly.