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: tracking evmos token status in Osmosis with User Account Address #1

Open
3 tasks done
sigridjineth opened this issue Jan 6, 2023 · 0 comments
Open
3 tasks done
Assignees
Labels
enhancement New feature or request

Comments

@sigridjineth
Copy link
Contributor

sigridjineth commented Jan 6, 2023

Implementation

  • with given address, get the balance of evmos (in osmosis) first 6f50a26

  • get to know the message type of osmosis in locking token /unlocking token /joinpool/exitpool & how to communicate in grpc

  • all related modules in the following link

  • Messages To Work with is the following
    A. DumpMsg: beginUnlocking, beginUnlockingAll, lockTokens, superfluidUnbondLock, superfluidUndelegate,
    B. HodlMsg: JoinPool, LockTokens, lockAndSuperfluidDelegate, superfluidDelegate
    C. Difference in context: SwapExactAmountIn, SwapExactAmountOut

  • utilize sonarpod api to query all account's transaction, then find messages only if the type on the above

  • when requesting with /messages, then it returns with the following response after filitering with (evmos) related msgs

'TotalDumpMsgs': int,
'TotalHodlMsgs': int,
'Address': String,
'TargetChain': string,
'TokenDenom': string,
'Msgs': {
   'DumpMsg': [
     {
       'MsgType': 'beginUnlocking',
       'TxHash': 'asbsd',
     },
   ],
   'HodlMsg': [
     {
       'MsgType': 'joinPool',
       'TxHash': 'asbsd',
     },
   ],
}
  • call like this
grpcurl -plaintext -d '{"hash": "F54E1C65DF27C20EE0D124DB897B59D4A70D2A93955303D5FA12642609258DE6"}' grpc.osmosis.zone:9090 cosmos.tx.v1beta1.Service/GetTx
  • osmosis only has evmos related pool in #722
@sigridjineth sigridjineth self-assigned this Jan 6, 2023
@sigridjineth sigridjineth added the enhancement New feature or request label Jan 6, 2023
@sigridjineth sigridjineth reopened this Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant