andromedaprotocol/andromeda-core

[1.0.rc-1] Method to update and Query to get `CURR_CHAIN` state in kernel

Closed this issue · 0 comments

Description

CURR_CHAIN state is set during instantiation but there is no smart query to get the curr chain info (we can still get it using raw query).
A method to update CURR_CHAIN is also needed to update name for same contract otherwise we will need to migrate contract with custom code just to update name ( creating new contract is not feasible)

Implementation

Add UpdateChainName and GetChainName methods. For security reason, only owner of kernel can update CURR_CHAIN state.

Dependencies

None

Acceptance Criteria

  • UpdateChainName execute method
  • GetChainName smart query