-
Notifications
You must be signed in to change notification settings - Fork 465
Add decoders for broker and stop-limit data #2484
Conversation
78754dc
to
8371bc8
Compare
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.
preesh the encoding/decoding tests!
proto: BigNumber; | ||
quality: BigNumber; |
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.
would the abi encoder accept these if they were just number
s?
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.
ah yeah, changed to BigNumber | number
const MAX_UINT8 = new BigNumber(2).exponentiatedBy(8).minus(1); | ||
const MAX_UINT16 = new BigNumber(2).exponentiatedBy(16).minus(1); |
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.
Nit: Seems clearer to just do like new BigNumber(2**8-1)
@@ -15,12 +27,13 @@ import { LocalBalanceStore } from '../framework/balances/local_balance_store'; | |||
import { DeploymentManager } from '../framework/deployment_manager'; | |||
import { ChainlinkStopLimitContract, TestChainlinkAggregatorContract } from '../wrappers'; | |||
|
|||
blockchainTests.resets('Chainlink stop-limit order tests', env => { | |||
blockchainTests.resets.only('Chainlink stop-limit order tests', env => { |
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.
blockchainTests.resets.only('Chainlink stop-limit order tests', env => { | |
blockchainTests.resets('Chainlink stop-limit order tests', env => { |
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.
LGTM! 🥂
Description
Adds decoding equivalents to the encoders found in
chainlink_utils
andgods_unchained_utils
Testing instructions
Types of changes
Checklist:
[WIP]
if necessary.