cosmwasm/cw-account/README.md
cw-accountThis contract provides proxy account functionality. Both local admins (accounts on this chain) and remote admins (via ucs03-zkgm) are able to dispatch messages on behalf of this contract. Remote admins enable cross-chain account ownership and arbitrary message execution via the ucs03-zkgm Call opcode.
This contract supports both standard contract instantiation and frissitheto.
set_zkgm
Sets the zkgm address. This is mostly intended to be used for configuring a cw-account init'd with a local config, however it also allows for overwriting the zkgm address if already configured.
add_admin
Adds an admin, either remote or local.
remove_admin
Removes an admin, either remote or local.
An admin is able to remove itself, however a contract must have at least one admin at any given time.
dispatch
Dispatch a list of CosmosMsg as the proxy account.
on_zkgm
This contract implements Zkgmable to enable the cross-chain execution. Intents (on_intent_zkgm) are not supported.
The admin is extracted from the sender, destination_channel_id, and path from the OnZkgm message.
The provided message is expected to be a JSON-serialized list of CosmosMsg, which will be executed in the order provided (the same behaviour as dispatch).