address_transaction/index.html.eex template. Although, there is an existent adress/show.html.eex template. What should we use for it?Hey @gfreh!
I believe you will want to put your template in templates/address_contract.html.eex.
Transactions is just the default tab selection for the address page.
It may help to see the router:
resources "/addresses", AddressController, only: [:show] do
resources("/transactions", AddressTransactionController, only: [:index], as: :transaction)
resources(
"/internal_transactions",
AddressInternalTransactionController,
only: [:index],
as: :internal_transaction
)
end
You will want to model off of the /transactions or /internal_transactions routes.
Let me know if I'm not answering your questions or if you need more clarification!
The bytecode is stored by the indexer as it exists in #162 as t:Explorer.Chain.InternalTransaction.t/0 created_contract_code. It is is not currently attached directly to the t:Explorer.Chain.Address.t/0.
After talking to @KronicDeth, we've agreed on including the contract_code column to the addresses table as a bytea in this card. 馃憣
@igorffs when adding fields, feel free to just rewrite the the corresponding table's migration. We're assuming that (for now) we'll drop the database and reindex for any indexed fields like this and so don't have to write layered migrations.
Most helpful comment
Hey @gfreh!
I believe you will want to put your template in
templates/address_contract.html.eex.Transactions is just the default tab selection for the address page.
It may help to see the router:
You will want to model off of the
/transactionsor/internal_transactionsroutes.Let me know if I'm not answering your questions or if you need more clarification!