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

feat(solana): manual instruction ls accounts propagation to cross chain calls #457

Open
dzmitry-lahoda opened this issue Nov 21, 2023 · 3 comments
Assignees

Comments

@dzmitry-lahoda
Copy link
Contributor

ComposableFi/emulated-light-client#111 (comment)

@dzmitry-lahoda dzmitry-lahoda changed the title feat(solana): manual instruction propagation to cross chain calls feat(solana): manual instruction ls accounts propagation to cross chain calls Nov 21, 2023
@dzmitry-lahoda
Copy link
Contributor Author

{
 "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.

@dzmitry-lahoda
Copy link
Contributor Author

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.

@dzmitry-lahoda
Copy link
Contributor Author

this is blocker for cross chain calls on solana (whatever they are maid - osmosis hook/ics27/cvm)

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

2 participants