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 Keyring types #74

Merged
merged 32 commits into from
Feb 18, 2023
Merged

Add Keyring types #74

merged 32 commits into from
Feb 18, 2023

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Jan 24, 2023

WIP; description to be added later.

This is a port of this old draft PR: https://github.com/MetaMask/types/pull/5/files

WIP; description to be added later.
src/encryption.ts Outdated Show resolved Hide resolved
src/keyring.ts Outdated
@@ -0,0 +1,250 @@
import type { Transaction } from '@ethereumjs/tx';
Copy link
Member Author

Choose a reason for hiding this comment

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

TODO: Find a replacement Transaction type that doesn't tie us to this specific library.

Copy link
Member Author

Choose a reason for hiding this comment

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

src/transaction-types.ts Outdated Show resolved Hide resolved
src/transaction-types.ts Outdated Show resolved Hide resolved
src/transaction-types.ts Outdated Show resolved Hide resolved
src/transaction-types.ts Outdated Show resolved Hide resolved
@gantunesr gantunesr marked this pull request as ready for review February 16, 2023 20:12
@gantunesr gantunesr requested a review from a team as a code owner February 16, 2023 20:12
src/transaction-types.ts Outdated Show resolved Hide resolved
src/transaction-types.ts Outdated Show resolved Hide resolved
src/transaction-types.ts Outdated Show resolved Hide resolved
src/transaction-types.ts Outdated Show resolved Hide resolved
src/transaction-types.ts Outdated Show resolved Hide resolved
src/transaction-types.ts Outdated Show resolved Hide resolved
Copy link
Member

@Mrtenz Mrtenz left a comment

Choose a reason for hiding this comment

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

We have utils for working with bytes, which can do almost everything that Buffer can do, so I would strongly prefer using that.

src/transaction-types.ts Outdated Show resolved Hide resolved
src/transaction-types.ts Outdated Show resolved Hide resolved
src/transaction-types.ts Outdated Show resolved Hide resolved
src/transaction-types.ts Outdated Show resolved Hide resolved
src/transaction-types.ts Outdated Show resolved Hide resolved
src/transaction-types.ts Outdated Show resolved Hide resolved
src/transaction-types.ts Outdated Show resolved Hide resolved
src/transaction-types.ts Outdated Show resolved Hide resolved
src/transaction-types.ts Outdated Show resolved Hide resolved
src/transaction-types.ts Outdated Show resolved Hide resolved
gantunesr and others added 11 commits February 17, 2023 13:41
Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
Copy link
Member

@Mrtenz Mrtenz left a comment

Choose a reason for hiding this comment

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

This looks great!

src/transaction-types.ts Outdated Show resolved Hide resolved
@Gudahtt
Copy link
Member Author

Gudahtt commented Feb 18, 2023

LGTM! (it won't let me approve because I opened it)

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.

5 participants