Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

rpc: Implement transaction RPC API #12328

Merged
merged 24 commits into from Oct 11, 2022
Merged

Commits on Sep 22, 2022

  1. rpc/tx: Add transaction structures for serialization

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 22, 2022
    Copy the full SHA
    fe72d1e View commit details
    Browse the repository at this point in the history
  2. rpc/tx: Add public facing TransactionEvent

    To circumvent the fact that serde does not allow mixing
    `#[serde(tag = "event")]` with
    `#[serde(tag = "event", content = "block")]`
    the public facing subscription structure is serialized
    and deserialized to an intermmediate representation.
    
    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 22, 2022
    Copy the full SHA
    bb9e92a View commit details
    Browse the repository at this point in the history
  3. rpc/tx: Add trait for the transaction API

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 22, 2022
    Copy the full SHA
    8ff7cc6 View commit details
    Browse the repository at this point in the history
  4. rpc/tx: Convert RPC errors to transaction events

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 22, 2022
    Copy the full SHA
    4b1431b View commit details
    Browse the repository at this point in the history
  5. rpc/tx: Implement transaction RPC methods

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 22, 2022
    Copy the full SHA
    e6680e4 View commit details
    Browse the repository at this point in the history
  6. tx-pool: Propagate tx index to events

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 22, 2022
    Copy the full SHA
    b0a1e4f View commit details
    Browse the repository at this point in the history
  7. tx-pool: Adjust testing to reflect tx index in events

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 22, 2022
    Copy the full SHA
    83880e8 View commit details
    Browse the repository at this point in the history
  8. rpc/tx: Convert tx-pool events for the new RPC spec

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 22, 2022
    Copy the full SHA
    a67aa03 View commit details
    Browse the repository at this point in the history
  9. rpc/tx: Convert tx-pool FinalityTimeout event to Dropped

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 22, 2022
    Copy the full SHA
    9aa5dcb View commit details
    Browse the repository at this point in the history
  10. service: Enable the transaction API

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 22, 2022
    Copy the full SHA
    e5c3d29 View commit details
    Browse the repository at this point in the history
  11. rpc/tx: Add tests for tx event encoding and decoding

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 22, 2022
    Copy the full SHA
    0ac07b2 View commit details
    Browse the repository at this point in the history
  12. tx: Add indentation for subscriptions

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 22, 2022
    Copy the full SHA
    b8ea4cc View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2022

  1. rpc/tx: Fix documentation

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 23, 2022
    Copy the full SHA
    67effb6 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2022

  1. rpc/tx: Serialize usize to hex

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 26, 2022
    Copy the full SHA
    5952d97 View commit details
    Browse the repository at this point in the history
  2. tx-pool: Rename closure parameters

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 26, 2022
    Copy the full SHA
    5e272e3 View commit details
    Browse the repository at this point in the history
  3. service: Separate RPC spec versions

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 26, 2022
    Copy the full SHA
    6d6d23b View commit details
    Browse the repository at this point in the history
  4. rpc/tx: Use H256 for testing block's hash

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 26, 2022
    Copy the full SHA
    f90e08a View commit details
    Browse the repository at this point in the history
  5. rpc/tx: Serialize numbers as string

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 26, 2022
    Copy the full SHA
    bf120a9 View commit details
    Browse the repository at this point in the history
  6. tx-pool: Backward compatibility with RPC v1

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 26, 2022
    Copy the full SHA
    0f03b1e View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2022

  1. Update client/rpc-spec-v2/src/transaction/transaction.rs

    Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
    lexnv and niklasad1 committed Sep 28, 2022
    Copy the full SHA
    795d110 View commit details
    Browse the repository at this point in the history
  2. rpc/tx: Remove comment about serde clone

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 28, 2022
    Copy the full SHA
    b77cf97 View commit details
    Browse the repository at this point in the history
  3. rpc/tx: Use RPC custom error code for invalid tx format

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 28, 2022
    Copy the full SHA
    aa1dde4 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2022

  1. Update client/rpc-spec-v2/src/transaction/event.rs

    Co-authored-by: James Wilson <james@jsdw.me>
    lexnv and jsdw committed Sep 29, 2022
    Copy the full SHA
    6459acd View commit details
    Browse the repository at this point in the history
  2. rpc/tx: Adjust internal structures for serialization/deserialization

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Sep 29, 2022
    Copy the full SHA
    093c1a1 View commit details
    Browse the repository at this point in the history