Is it possible to call CosmWasm contract before/diring block initialization? #92
Replies: 1 comment
-
Using the contractKeeper wasmtypes.ContractOpsKeeper (you get this from the wasmKeeper ContractKeeper = wasmkeeper.NewDefaultPermissionKeeper(&appKeepers.WasmKeeper)), you can then execute against this as a module vs having to be a user So you can execute
See as example: |
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Hey guys,
We currently have some custom logic running in the BeginBlocker function during the block initialization stage, and I’m exploring ways to move this code outside the core. One of ideas that we’ve considered is calling a CosmWasm contract to encapsulate the required logic.
However, CosmWasm contracts are executed through the WasmVM, which is typically invoked by transaction messages and does not natively support calling contracts outside of this message-driven architecture.
I’d like to double-check if there are no any possibilities to achieve this.
Beta Was this translation helpful? Give feedback.
All reactions