Skip to content
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

question(ibc-hooks): incentives to relay wasm hooks #154

Closed
dzmitry-lahoda opened this issue Dec 27, 2023 · 1 comment
Closed

question(ibc-hooks): incentives to relay wasm hooks #154

dzmitry-lahoda opened this issue Dec 27, 2023 · 1 comment

Comments

@dzmitry-lahoda
Copy link
Contributor

dzmitry-lahoda commented Dec 27, 2023

There are 2 undone issues to handle relayer incentives it on CW level:

CosmWasm/cosmwasm#1491

CosmWasm/cosmwasm#893

Incentive - why would relayer burn gas on wasm hook packet?

One solution could be packet fee takes from ics20, but that is per chain module and does not work in all cases.

So how I can within existing wasm hook do incentives?

Can my contract reflect (query current TX context) on signer (get signer infos) in Cosmos chain so that my contract can bank transfer some?

Gas prices spiked recently on bull market.

ICS27 has solution has something about fees, but its callback sucks (it is 2x more blocks slowness on top of existing wasm hook).

@dzmitry-lahoda
Copy link
Contributor Author

dzmitry-lahoda commented Dec 27, 2023

Why ICS27 callbacks not great as of now:

dzmitry lahoda, [19/12/2023 12.21]
ICS Callbacks specs seems 2x blocks over ICS20+memo. If that is right, spec should be changed to same block amount as in ICS20+memo imho.

dzmitry lahoda, [19/12/2023 12.22]
I guess if that is the case of 2x block times, that is most bearish in spec and likely impl. If I have read it right?

Susannah | IBC at Interchain away until 3rd Jan, [19/12/2023 12.26]
I've added in Serdar who worked on the callbacks middleware

Susannah | IBC at Interchain away until 3rd Jan, [19/12/2023 12.27]
just want to check with @srdtrk that you can see the previous messages? The context is that yesterday I was speaking with Blas about why they were interested in ibc-hooks and whether the callbacks middleware could solve for their desired use case

Susannah | IBC at Interchain away until 3rd Jan, [19/12/2023 12.28]
do you mean that the aciton takes place over 2 blocks rather than in one? I don't think this is the case though

dzmitry lahoda, [19/12/2023 12.28]
over 2 IBC roundtrips

dzmitry lahoda, [19/12/2023 12.29]
2 times more than ICS20+hook

dzmitry lahoda, [19/12/2023 12.29]
ICS20+ICS27 takes 2x time of ICS20+Hook

Susannah | IBC at Interchain away until 3rd Jan, [19/12/2023 12.32]
ok got it, I see what you mean now

Susannah | IBC at Interchain away until 3rd Jan, [19/12/2023 12.40]
but once confio implement the contract keepers for the callbacks middleware then you can use it in the same way as hooks

dzmitry lahoda, [19/12/2023 12.43]
i can do it now too

dzmitry lahoda, [19/12/2023 12.43]
but helpers are nice sure

dzmitry lahoda, [19/12/2023 12.44]
i guess keepers will not change samantics of spec? so keepers and 2x are independant things

dzmitry lahoda, [19/12/2023 12.47]
i feel that as chatty as it is now, the spec, may not fit eth or to some degree sol. when cosmos stops subcidies to relays.and does 1000x gas price. are all things ok?

dzmitry lahoda, [19/12/2023 12.53]
also hope confio at some point may use ibc rs types, because need to write wrappers all the time to extend cw with ibc rs https://github.com/cosmos/ibc-rs/pull/719

Susannah | IBC at Interchain away until 3rd Jan, [19/12/2023 13.49]
yeah, I guess we just wanted to have the 'official' support from Confio as the maintainers of cosmwasm and so it is more of a default there

Susannah | IBC at Interchain away until 3rd Jan, [19/12/2023 13.49]
do you have more specific feedback there? what precisely won't fit?

dzmitry lahoda, [19/12/2023 13.52]
sure

dzmitry lahoda, [19/12/2023 18.07]
there are several kinds of incetives, with  ics20-memo hooks and high prices I feel that some incetives are more easy to do or possible at all, and high prices lead to more incetive thinking. you may ask Brainjar about incetives - so you may come up to other conclusions than me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant