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

feat:kakarot connectors #519

Merged
merged 2 commits into from
Oct 29, 2024
Merged

Conversation

enitrat
Copy link
Contributor

@enitrat enitrat commented Oct 22, 2024

Initial work on implementing a wrapper around EVM connectors through Kakarot

@enitrat enitrat requested a review from fracek as a code owner October 22, 2024 18:08
@enitrat enitrat marked this pull request as draft October 22, 2024 18:08
packages/kakarot/README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@fracek fracek left a comment

Choose a reason for hiding this comment

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

Looks good. Can you fix the CI and the README so that I can merge and make a release?

@enitrat enitrat marked this pull request as ready for review October 26, 2024 17:11
@enitrat enitrat changed the title (wip) feat:kakarot connectors feat:kakarot connectors Oct 26, 2024
@enitrat enitrat force-pushed the feat/kakarot-connectors branch 2 times, most recently from d1358cf to 5502dea Compare October 29, 2024 04:47
@@ -45,7 +45,9 @@ export abstract class Connector extends EventEmitter<ConnectorEvents> {
/** Whether connector is already authorized */
abstract ready(): Promise<boolean>;
/** Connect wallet. */
abstract connect(): Promise<ConnectorData>;
abstract connect(parameters?: {
chainIdHint: bigint;
Copy link
Contributor

Choose a reason for hiding this comment

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

Here parameters is optional, but chainIdHint is required. Can you make chainIdHint optional?

Comment on lines 48 to 50
abstract connect(parameters?: {
chainIdHint: bigint;
}): Promise<ConnectorData>;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
abstract connect(parameters?: {
chainIdHint: bigint;
}): Promise<ConnectorData>;
abstract connect(parameters: {
chainIdHint?: bigint;
} = {}): Promise<ConnectorData>;

@fracek fracek merged commit 38176c4 into apibara:main Oct 29, 2024
1 check passed
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.

3 participants