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

WIP: Add first iteration of revised trade types lib #420

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

jijordre
Copy link
Contributor

@jijordre jijordre commented Jun 20, 2019

Solution to #415.

File TradeTypesLib2.sol was added. Eventually the old schemas in TradeTypesLib.sol will be replaced by the ones in the new file.

One question to keep at the back of your head when reviewing. Struct OrderParty has property balances, so will contain one balance amount value for each of intended and conjugate currencies. We should ask ourselves whether this should be expanded to current and previous balances for each of the two currencies, thus a total of 4 balance values for the order party.

This iteration keeps Trade.transfers for now. This property, however, is likely to be deemed obsolete at the end of updates of DSC and NSC logics (#418).

Also order cancellation should be taken with a huge pile of salt and its more thorough definition deferred to #419.

@jijordre jijordre requested review from katat, morfj and jonbern June 20, 2019 08:11
contracts/TradeTypesLib2.sol Show resolved Hide resolved
contracts/TradeTypesLib2.sol Show resolved Hide resolved
contracts/TradeTypesLib2.sol Show resolved Hide resolved
contracts/TradeTypesLib2.sol Show resolved Hide resolved
@jijordre jijordre requested review from jonbern and morfj June 20, 2019 11:57
contracts/TradeTypesLib2.sol Outdated Show resolved Hide resolved
contracts/TradeTypesLib2.sol Outdated Show resolved Hide resolved
@jijordre jijordre changed the title Add first iteration of revised trade types lib WIP: Add first iteration of revised trade types lib Jun 23, 2019
order.party.balances.conjugate
);
const walletSignatureHash = exports.hashSignature(order.seals.wallet.signature);
return cryptography.hash(partyHash, walletSignatureHash);
Copy link
Contributor

@morfj morfj Jul 19, 2019

Choose a reason for hiding this comment

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

Missing operator.data in hash?

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.

3 participants