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

Create support for GRPCv2 in the nodejs-sdk #102

Closed
61 of 63 tasks
rasmus-kirk opened this issue Nov 10, 2022 · 0 comments
Closed
61 of 63 tasks

Create support for GRPCv2 in the nodejs-sdk #102

rasmus-kirk opened this issue Nov 10, 2022 · 0 comments
Assignees
Labels
[Type] Task An additional feature or improvement.

Comments

@rasmus-kirk
Copy link
Collaborator

rasmus-kirk commented Nov 10, 2022

Task Description

Currently, the nodejs-sdk only supports GRPCv1 and we need to also support GRPCv2.

We are starting with these as they are needed by the browser/desktop wallet.

  • PR1: getAccountInfo(), getNextAccountSequenceNumber() and getCryptographicParameters()
  • PR2: The rest of these. PR1 needs to be merged in, and need type translation.
  • PR3: getBlocks() from the GRPCv2 protocol and implement a local "waitForTransactionToFinalize()" function that utilizes it. PR1+PR2 needs to be merged in, and need type translation.
  • PR4: getAccountList(), getModuleList(), getAncestors(), getInstanceList(), getInstanceState(), instanceStateLookup()
  • PR5: getAnonymityRevokers, getIdentityProviders, getBlocksAtHeight, getBlockInfo, getBakerList
  • PR6: getPoolDelegators, getPoolDelegatorsRewardPeriod, getPassiveDelegators, getPassiveDelegatorsRewardPeriod, getBranches
  • PR7: getElectionInfo, getAccountNonFinalizedTransactions, getBlockTransactionEvents, getNextUpdateSequenceNumbers
  • PR8: shutdown, peerConnect, peerDisconnect, getBannedPeers, banPeer, unbanPeer, dumpStart, dumpStop
  • PR9: getPeersInfo, getNodeInfo
  • PR10: getBlockSpecialEvents, getBlockPendingUpdates, getBlockFinalizationSummary

Functions merged

49 / 49

  • getBlocks
  • getFinalizedBlocks
  • getAccountInfo
  • getAccountList
  • getModuleList
  • getAncestors
  • getModuleSource
  • getInstanceList
  • getInstanceInfo
  • getInstanceState
  • instanceStateLookup
  • getNextAccountSequenceNumber
  • getConsensusInfo
  • getBlockItemStatus
  • getCryptographicParameters
  • getBlockInfo
  • getBakerList
  • getPoolInfo
  • getPassiveDelegationInfo
  • getBlocksAtHeight
  • getTokenomicsInfo
  • invokeInstance
  • getPoolDelegators
  • getPoolDelegatorsRewardPeriod
  • getPassiveDelegators
  • getPassiveDelegatorsRewardPeriod
  • getBranches
  • getElectionInfo
  • getIdentityProviders
  • getAnonymityRevokers
  • getAccountNonFinalizedTransactions
  • getBlockTransactionEvents
  • getBlockSpecialEvents
  • getBlockPendingUpdates
  • getNextUpdateSequenceNumbers
  • shutdown
  • peerConnect
  • peerDisconnect
  • getBannedPeers
  • banPeer
  • unbanPeer
  • dumpStart
  • dumpStop
  • getPeersInfo
  • getNodeInfo
  • sendBlockItem
  • getAccountTransactionSignHash
  • getBlockChainParameters
  • getBlockFinalizationSummary

Todo's:

Accounts:

  • Basic account: 3kBx2h5Y2veb4hZgAJWPrr8RyQESKm5TjzF3ti1QQ4VSYLwK1G
    • CredId: aa730045bcd20bb5c24349db29d949f767e72f7cce459dc163c4b93c780a7d7f65801dda8ff7e4fc06fdf1a1b246276f
  • Baker Account (ID: 5): 4EJJ1hVhbVZT2sR9xPzWUwFcJWK3fPX54z94zskTozFVk8Xd4L
  • Delegator Account: 3bFo43GiPnkk5MmaSdsRVboaX2DNSKaRkLseQbyB3WPW1osPwh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Task An additional feature or improvement.
Projects
None yet
Development

No branches or pull requests

2 participants