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

ABI and BIN provider now uses contracts from BrandedTokenContracts npm #117

Merged
merged 4 commits into from
Mar 7, 2019

Conversation

0xsarvesh
Copy link
Contributor

@0xsarvesh 0xsarvesh commented Mar 7, 2019

Fixes #116

ABI BIN provider now uses BrandedTokenContract NPM.
Noticeable changes:

  1. ABI BIN provider doesn't accept the folder path in the constructor.
  2. Custom ABIs and BINs can be added using addABI and addBIN function.
  3. Getter for ABI and BIN first checks custom abi and bin, if not found gets ABI and BIN from BrandedTokenContract.

Copy link
Contributor

@schemar schemar left a comment

Choose a reason for hiding this comment

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

Nice :shipit:

},
Staker: Staker,
Facilitator: Facilitator,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Facilitator: Facilitator,
Facilitator,

},
Staker: Staker,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Staker: Staker,
Staker,

);
}

contract.bin = contractBin;
Copy link
Contributor

Choose a reason for hiding this comment

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

You could probably refactor the addABI and addBIN methods to call on something like addCustom('abi', contractName, contractAbi) (similar for bin).

@@ -31,7 +31,8 @@ const config = require('../../utils/configReader');
const shared = require('../shared');

const { GatewayComposerHelper } = Package.EconomySetup;
const { Staker, StakeHelper } = Package.Helpers;
const { StakeHelper } = Package.Helpers;
const { Staker } = Package;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it on purpose that the tests import "Package" and not the modules directly?

@schemar schemar merged commit 9911380 into OpenST:develop Mar 7, 2019
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.

2 participants