-
Notifications
You must be signed in to change notification settings - Fork 14
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
Rosetta SDK: Initial Draft Implementation #1
Rosetta SDK: Initial Draft Implementation #1
Conversation
…ot an application
… default configuration file
…they extracted the model name wrong and accessed the schema incorrectly.
the other is a skeleton for a basic Rosetta Server Implementation.
@SmartArray , can we close this PR out in favor of the newer one? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking really good. Just a few comments on implementing ESLint with Semistandard rules and fixing up some formatting issues here and there.
examples/server/index.js
Outdated
}); | ||
|
||
Server.launch() | ||
.catch(e => logger.error(e)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a new line here? I'll take a look at the project structure but we should be using ES Lint with Semistandard rules. Most IDEs would catch this as a result and offer to automatically fix them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct.
|
||
RosettaSyncerEvents, | ||
Errors, | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here @SmartArray , We'll want to use something like ES Lint to fix all this up automatically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thought I was using ESLint, but let me double check.
Kk, let us close all the PRs. Will do one for every version. Please create a branch 1.3.1 and 1.4.1 so I can PR against them. |
Introduction
This PR contains an initial draft implementation for Coinbase's official Rosetta Spec, written in NodeJS/Javascript.
State of this implementation
The state of this implementation is still an early alpha. All components have been ported from the official Go reference implementation to maintain 100% compatibility.
At the moment: the following unit tests have been ported to this implementation:
Additional Remarks
We have used the official OpenAPI NodeJS Express Generator to generate the server stub.
Furthermore, the Client Module was generated with the OpenAPI Javascript Generator. This generator was executed twice to have one promised version, and one with callbacks. They have also generated type classes, which are located in
lib/client/src/model
. These may be exported to another separate module in the future.Documentation has been added for Fetcher Module only. See
lib/fetcher/README.md
.