-
Notifications
You must be signed in to change notification settings - Fork 465
switch @0x/contract-wrappers to generated wrappers #2037
Changes from all commits
e57d29a
9ea1936
49c1b68
900d558
92f0dd7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,6 @@ | |
"homepage": "https://github.com/0xProject/0x-monorepo/contracts/dev-utils/README.md", | ||
"devDependencies": { | ||
"@0x/abi-gen": "^3.1.2", | ||
"@0x/contract-wrappers": "^10.1.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this package wasn't using contract-wrappers |
||
"@0x/contracts-gen": "^1.0.12", | ||
"@0x/contracts-test-utils": "^3.1.12", | ||
"@0x/dev-utils": "^2.2.6", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,6 @@ | |
"homepage": "https://github.com/0xProject/0x-monorepo/contracts/extensions/README.md", | ||
"devDependencies": { | ||
"@0x/abi-gen": "^3.1.2", | ||
"@0x/contract-wrappers": "^10.1.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this package wasn't using contract-wrappers |
||
"@0x/contracts-gen": "^1.0.12", | ||
"@0x/contracts-test-utils": "^3.1.12", | ||
"@0x/dev-utils": "^2.2.6", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ | |
"homepage": "https://github.com/0xProject/0x-monorepo/contracts/extensions/README.md", | ||
"devDependencies": { | ||
"@0x/abi-gen": "^3.1.2", | ||
"@0x/contract-wrappers": "^10.1.0", | ||
"@0x/contract-wrappers": "10.1.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. pinning the version to do a mass refactor later. Some packages will be complicated to refactor, and before publishing, we can't specify |
||
"@0x/contracts-gen": "^1.0.12", | ||
"@0x/contracts-test-utils": "^3.1.12", | ||
"@0x/dev-utils": "^2.2.6", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,7 @@ | |
"config": { | ||
"contractsPackages": "@0x/contracts-asset-proxy @0x/contracts-erc20 @0x/contracts-erc721 @0x/contracts-erc1155 @0x/contracts-exchange @0x/contracts-exchange-forwarder @0x/contracts-exchange-libs @0x/contracts-extensions @0x/contracts-multisig @0x/contracts-test-utils @0x/contracts-utils @0x/contracts-coordinator @0x/contracts-dev-utils", | ||
"mnemonic": "concert load couple harbor equip island argue ramp clarify fence smart topic", | ||
"packagesWithDocPages": "0x.js connect json-schemas subproviders web3-wrapper contract-wrappers order-utils order-watcher sol-compiler sol-coverage sol-profiler sol-trace ethereum-types asset-buyer migrations", | ||
"packagesWithDocPages": "0x.js connect json-schemas subproviders web3-wrapper order-utils order-watcher sol-compiler sol-coverage sol-profiler sol-trace ethereum-types asset-buyer migrations", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
"ignoreDependencyVersions": "@types/styled-components @types/node", | ||
"ignoreDependencyVersionsForPackage": "website instant dev-tools-pages" | ||
}, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,13 @@ export { | |
} from '@0x/contract-wrappers'; | ||
|
||
export { | ||
DutchAuctionContract, | ||
ERC20ProxyContract, | ||
ERC721ProxyContract, | ||
ExchangeContract, | ||
ForwarderContract, | ||
OrderValidatorContract, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
WETH9Contract, | ||
WETH9Events, | ||
WETH9WithdrawalEventArgs, | ||
WETH9ApprovalEventArgs, | ||
|
@@ -102,15 +109,12 @@ export { | |
ObjectMap, | ||
OrderRelevantState, | ||
Stats, | ||
DutchAuctionDetails, | ||
ZeroExTransaction, | ||
SignedZeroExTransaction, | ||
} from '@0x/types'; | ||
|
||
export { | ||
BlockParamLiteral, | ||
ContractAbi, | ||
BlockParam, | ||
LogWithDecodedArgs, | ||
ContractEventArg, | ||
SupportedProvider, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,8 +83,10 @@ export class {{contractName}}Contract extends BaseContract { | |
const bytecode = artifact.compilerOutput.evm.bytecode.object; | ||
const abi = artifact.compilerOutput.abi; | ||
const logDecodeDependenciesAbiOnly: { [contractName: string]: ContractAbi } = {}; | ||
for (const key of Object.keys(logDecodeDependencies)) { | ||
logDecodeDependenciesAbiOnly[key] = logDecodeDependencies[key].compilerOutput.abi; | ||
if (Object.keys(logDecodeDependencies) !== undefined) { | ||
for (const key of Object.keys(logDecodeDependencies)) { | ||
logDecodeDependenciesAbiOnly[key] = logDecodeDependencies[key].compilerOutput.abi; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was throwing runtime errors. |
||
} | ||
return {{contractName}}Contract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly, {{> params inputs=ctor.inputs}}); | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
❤️