-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Block info for contract Instantiation should be returned in Contract Info Response #1295
Comments
This data is available in wasmd as:
where
with the fields
So you don't get a timestamp but something. I wonder if it makes sense to expose this information as part of the |
@alpe would know about the stability between dump-restart approaches. I think that we could provide this. I would remove tx_index or make it an option, as it depends on a middleware being installed before x/wasm (and may not always be present). My question is why? I understand the OP is building an explorer or such, and the wasmd api exposes all the information they need. Are they building this explorer as a contract that needs to query this info? I would just include block_height unless @alpe says that is unstable. |
On dump-restart the contract "created" field as well as the history are not preserved. In order to support this request, we need to revisit this approach. Current design is:
I see some value in returning the block height in queries but it is a good package of work to apply the changes to the genesis export/ import |
This is not planned at the moment |
We are building a list of certain contracts on chain. The block and datetime info of when the contract was deployed would be really great to know for showing how long a contract has been around and various comparisons.
Block info could be returned in ContractInfoResponse from the WasmQuery::ContractInfo
The text was updated successfully, but these errors were encountered: