Skip to content

Conversation

@abhayks1
Copy link
Contributor

Integration of mosaic.js npm 0.10.0-beta.2
Fixes #76

benjaminbollen
benjaminbollen previously approved these changes Feb 20, 2019
Copy link
Contributor

@benjaminbollen benjaminbollen left a comment

Choose a reason for hiding this comment

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

LGTM

…s_integration

# Conflicts:
#	lib/helper/GnosisSafe.js
#	package.json
#	test/integration/DirectTransfer.js
Copy link

@pgev pgev left a comment

Choose a reason for hiding this comment

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

LGTM (we can merge), left some inline comments.

* ABI and BIN files sit in contracts/abi, contracts/bin folder.
*/
class OpenSTAbiBinProvider extends AbiBinProvider {
/**
Copy link

Choose a reason for hiding this comment

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

I am not sure why OpenSTAbiBinProvider is inheriting from AbiBinProvider of mosaic?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OpenST is on top of mosaic. Inheriting AbiBinProvider of mosaic helps end users to retrieve abi/bin of mosaic with a single OpenST AbiBinProvider object.

Copy link
Contributor

Choose a reason for hiding this comment

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

But should they need to? Why?

binFolderPath = binFolderPath || DEFAULT_BIN_FOLDER_PATH;
super(abiFolderPath, binFolderPath);
constructor(abiFolderPath, binFolderPath) {
const abiDirectoryPath = abiFolderPath || DEFAULT_ABI_FOLDER_PATH;
Copy link

Choose a reason for hiding this comment

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

DEFAULT_ABI_FOLDER_PATH and DEFAULT_BIN_FOLDER_PATH are guarded (NOT_FOR_WEB__BEGIN). Should we check that if they are undefined and abiFolderPath, binFolderPath are not passed and raise error?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense. However I am still not sure how can DEFAULT_ABI_FOLDER_PATH, DEFAULT_BIN_FOLDER_PATH can be undefined.

Having said that once openst-contracts npm package are integrated, we will not need path dependencies .

Copy link
Contributor

Choose a reason for hiding this comment

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

@abhayks1 can you please expand on that? I cannot follow.

@pgev pgev merged commit cc2e083 into OpenST:develop Feb 20, 2019
@abhayks1 abhayks1 deleted the mosaic_js_integration branch February 26, 2019 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants