Open dzmitry-lahoda opened 9 months ago
{
"svm": {
// all accounts from instuctions must be passed to client TX
// ixs contain program ids, account and input data
"instructions": [
"borsch of ix as in invoke",
"borsch of ix as in invoke",
...
]
// basicaly hook can do some extra work with without being contract for some reason and build ix on fly
// fully json encoded
"extra_accounts" : [ AccountMeta(R/W), AccountMeta,... ] //
}
}
so expected that relayer parses memo,
if memo is json and json has svm then it MUST be like above (same logic as in Osmssis).
instructions
to be parsed for accounts and extra_accounts. all sorted set with proper R/W and passed as extra (after all accounts of ibc) to call.
Please document above spec or in code that it works - i mean please make above to be doc comment or MD file.
extra_accounts is optional, may not be here, instuctions is must and must not be empty. svm is optional, memo can be json, but not svm.
this is blocker for cross chain calls on solana (whatever they are maid - osmosis hook/ics27/cvm)
https://github.com/ComposableFi/emulated-light-client/issues/111#issuecomment-1821336979