-
Notifications
You must be signed in to change notification settings - Fork 59
Alex/decode order data #78
Conversation
); | ||
require( | ||
to < b.length, | ||
to <= b.length, |
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.
@felix2feng did they respond to your question about this?
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.
Nope
const exchange = _.sample(EXCHANGES); | ||
exchangeOrderDatum.push(paddedBufferForData(exchange)); | ||
|
||
const orderLength = _.random(120, 160) |
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.
Hoping to sub any kind of util function we write later that generates a real exchange order that mirrors what setProtocol.js
will return
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.
I've been already starting to generate more realistic orders. We can fix after my PR goes through
); | ||
require( | ||
to < b.length, | ||
to <= b.length, |
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.
Nope
const exchange = _.sample(EXCHANGES); | ||
exchangeOrderDatum.push(paddedBufferForData(exchange)); | ||
|
||
const orderLength = _.random(120, 160) |
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.
I've been already starting to generate more realistic orders. We can fix after my PR goes through
import { CoreState } from "../lib/CoreState.sol"; | ||
|
||
|
||
// /** |
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.
Why are there 2 types of comments here?
contracts/core/lib/CoreState.sol
Outdated
/* ============ Structs ============ */ | ||
|
||
struct State { | ||
// Mapping of exchagne enumeration to address |
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.
"exchange"
// ============ Structs ============ | ||
|
||
struct OrderHeader { | ||
uint8 exchange; |
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.
FYI - Currently, we don't get any storage savings from packing with just a uint8
ea6c75a
to
87567a7
Compare
* Adding lib bytes and removing coverage of it. * Add slice * Add content address
Pull Request Test Coverage Report for Build 384
💛 - Coveralls |
e35fc9b
to
f240377
Compare
f240377
to
5e0f168
Compare
MockExchangeOrderHandler
which was added just to test theExchangeOrderHandler
libraryExchangeDispatcher
as an Core extension to manage valid exchanges that can be used to fill the issuanceOrder