-
Notifications
You must be signed in to change notification settings - Fork 42
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
#98 Allow for descriminate-types options and other typechain flags #99
#98 Allow for descriminate-types options and other typechain flags #99
Conversation
ShravanSunder
commented
May 13, 2022
•
edited
Loading
edited
- Allow for descriminate-types options and other typechain flags #98
# Conflicts: # packages/eth-sdk/src/client/generateTsClient.ts # packages/eth-sdk/src/client/generateTypes.ts
🦋 Changeset detectedLatest commit: 8a74669 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
# Conflicts: # packages/eth-sdk/src/client/generateTsClient.ts # packages/eth-sdk/src/client/generateTypes.ts
cc: @krzkaczor |
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.
Let me know if you want to make tweak to TypeChain or do you want to merge this as it is -- we can always tweak default flags sometime later.
@@ -19,7 +20,17 @@ export async function generateSdk(ctx: EthSdkCtx): Promise<void> { | |||
const outputToAbiRelativePath = relative(outputPath, abisRoot).replace(/\\/g, '/') | |||
|
|||
const randomTmpDir = await fs.tmpDir('eth-sdk') | |||
await generateTsClient(contracts, abisRoot, randomTmpDir, outputToAbiRelativePath, fs) | |||
|
|||
const shapedFlag: CodegenConfig = { |
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 don't like that we provide defaults for the second time here. Could you make a PR to TypeChain that would export DEFAULT_FLAGS
? Then we could simply use them here and add only user provided flags
@krzkaczor i'm unable to develop typechain due to pnpm issues, maybe we can mere this as is and make another PR for the default flags? I'll push change to the name of the flag |
@krzkaczor made the change you suggested, if possible lets do the default change in a seperate PR? :) |
@ShravanSunder yes we can merge this but build failed. Can you take a look. And please pull before fixing it because I pushed changeset fix. |
@krzkaczor fixed! 🙏🏽 |