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

Add transaction request support for omisego-admin #75

Merged
merged 19 commits into from
Nov 28, 2018

Conversation

ripzery
Copy link
Contributor

@ripzery ripzery commented Oct 29, 2018

Issue/Task Number: #74

Closes #74

Overview

This PR adds the following APIs support for omisego-admin:

  • transaction_request.get
  • transaction_request.create
  • transaction_request.consume
  • transaction_consumption.approve
  • transaction_consumption.reject

Changes

  • Added many APIs support to omisego-admin module.
  • Separated the models which used a different set of parameters across admin and client module.
  • Added live tests for verifying WebSocket supports.
  • Added live tests for HTTP request for newly added APIs.
  • Added tests for verifying the response is correctly parsed for each newly added APIs.

Implementation Details

Because of the parameters set that used for create a transaction, create a transaction request, and create a transaction consumption are not the same for admin and client, this PR separate models that used for the request to those APIs as the following:

Create the following models to admin module:

  • TransactionConsumptionParams
  • TransactionRequestCreateParams
  • TransactionCreateParams

Move the following models from core module to client module:

  • TransactionConsumptionParams
  • TransactionRequestCreateParams
  • TransactionCreateParams

Usage

See README.md in omisego-admin directory.

Impact

Need to re-import moved-package classes.

mederic-p
mederic-p previously approved these changes Nov 5, 2018
@mederic-p mederic-p removed their assignment Nov 5, 2018
Copy link

@T-Dnzt T-Dnzt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I noticed @mederic-p switched to network.omisego... instead of co/com. Shouldn't we do the same for Android?

@ripzery
Copy link
Contributor Author

ripzery commented Nov 21, 2018

@T-Dnzt Yeah, it should be the same. Will change in later PR.

@ripzery ripzery force-pushed the 74-add-transaction-request-support branch from fa74d3d to 7a99f80 Compare November 21, 2018 04:33
@ripzery ripzery changed the base branch from 71-add-login-api-for-omg-client to master November 21, 2018 04:34
@ripzery ripzery merged commit 42c7856 into master Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement 🚀 New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants