thor icon indicating copy to clipboard operation
thor copied to clipboard

Thor client

Open paologalligit opened this issue 6 months ago • 10 comments

Description

This PR introduces a thor client. This refers to this gh issue. The structure was taken from the Draupnir's client. The client supports the following operations:

  • GetTransactionReceipt
  • InspectClauses
  • InspectTxClauses
  • SendTransaction
  • SendEncodedTransaction
  • GetLogEvents
  • GetLogTransfer
  • GetAccount
  • GetAccountForRevision
  • GetAccountCode
  • GetAccountCodeForRevision
  • GetStorage
  • GetExpandedBlock
  • GetBlock
  • GetBestBlock
  • GetTransaction
  • GetPendingTransaction
  • GetPeers
  • ChainTag
  • SubscribeBlocks
  • SubscribeEvents
  • SubscribeTransfers
  • SubscribeTxPool
  • SubscribeBeats
  • SubscribeBeats2

Type of change

  • [x] New feature (non-breaking change which adds functionality)
  • [x] This change requires a documentation update

How Has This Been Tested?

  • [x] Unit tests

Checklist:

  • [x] My code follows the style guidelines of this project
  • [x] I have performed a self-review of my code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [x] I have made corresponding changes to the documentation
  • [x] My changes generate no new warnings
  • [x] I have added tests that prove my fix is effective or that my feature works
  • [x] New and existing unit tests pass locally with my changes
  • [x] New and existing E2E tests pass locally with my changes
  • [x] Any dependent changes have been merged and published in downstream modules
  • [x] I have not added any vulnerable dependencies to my code

paologalligit avatar Aug 13 '24 14:08 paologalligit