-
Notifications
You must be signed in to change notification settings - Fork 465
Conversation
c6ee90b
to
1212555
Compare
bc5aed2
to
a37fa1a
Compare
@@ -6,6 +6,7 @@ export interface ContractAddresses { | |||
zrxToken: string; | |||
etherToken: string; | |||
exchange: string; | |||
exchange_v3: string; |
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.
Convention in TypeScript is to use camelCase
instead of under_scores
. Maybe we could call this exchangeV3
?
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.
Think we should remove this completely. Our packages won't support multiple versions, we don't intend to operate both simultaneously.
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.
Sure, I'd be in favor of removing it.
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 think we should leave the old exchange address as exchangeV2
. We'll still need it for mainnet deployments, and v2 will probably continue to be live for ~3 months after v3 is deployed.
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.
Code under my ownership looks good to me.
@@ -6,6 +6,7 @@ export interface ContractAddresses { | |||
zrxToken: string; | |||
etherToken: string; | |||
exchange: string; | |||
exchange_v3: string; |
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.
Think we should remove this completely. Our packages won't support multiple versions, we don't intend to operate both simultaneously.
@@ -31,6 +36,7 @@ const NULL_ADDRESS = '0x0000000000000000000000000000000000000000'; | |||
const networkToAddresses: { [networkId: number]: ContractAddresses } = { | |||
1: { | |||
exchange: '0x080bf510fcbf18b91105470639e9561022937712', |
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: '0x080bf510fcbf18b91105470639e9561022937712', | |
exchange: NULL_ADDRESS, |
Let's break this so no one can actually get hurt if used on mainnet.
1212555
to
aa198ad
Compare
a37fa1a
to
ffcd297
Compare
7122906
to
ac1063d
Compare
Description
This PR:
getSelector
method to each function in the auto-generated wrappers and regenerates all of the existing wrappers.contract-addresses
with all of the new testnet addresses.TODOs (likely in another PR):
test_contract_configs.ts
to verify the new configurations.migration.ts
to do a fresh 3.0 deployment with proper configurations (this might break other packages).Testing instructions
Types of changes
Checklist:
[WIP]
if necessary.