Skip to content
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

Add basic TypeScript example app #372

Merged
merged 14 commits into from
Nov 5, 2024
Merged

Add basic TypeScript example app #372

merged 14 commits into from
Nov 5, 2024

Conversation

awrichar
Copy link
Contributor

@awrichar awrichar commented Nov 4, 2024

No description provided.

@awrichar awrichar marked this pull request as ready for review November 5, 2024 00:39
Copy link
Contributor

@peterbroadhurst peterbroadhurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great. Will make a massive difference to developers to be able to consume the bond sample like this in Typescript/NodeJS (compared to the Golang/Java internal E2E test code).

Also loving the Typescript SDK work that's begun here.

@@ -135,6 +136,10 @@ func (tm *txManager) WritePreparedTransactions(ctx context.Context, dbTX *gorm.D

if len(preparedTxInserts) > 0 {
err = dbTX.WithContext(ctx).
Clauses(clause.OnConflict{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this on the way 👍
The delivery semantic is at least once, so this makes sense.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very glad you did a NPM version of this, rather than requiring users to need gradle to run the samples 👍

... I do think though this won't have run the actual build. But an NPM user will probably be happy to just run npx hardhat build in the solidity project.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the README lays out the minimum steps, all of which can be done with just npm (in the solidity folder and then here).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brilliant to see the starting point on this 🙌

@awrichar awrichar merged commit ec27a8b into main Nov 5, 2024
3 checks passed
@awrichar awrichar deleted the ts-example branch November 5, 2024 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants