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 SequenceIndexerOpts #528

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

xiam
Copy link

@xiam xiam commented May 20, 2024

This PR adds support for SequenceIndexerOpts, this type can be used to configure different authentication keys without relying on positional arguments. This is backwards compatible with the current positional-arguments based configuration.

Reference: https://github.com/0xsequence/issue-tracker/issues/2358

@xiam xiam marked this pull request as draft May 20, 2024 19:57
@xiam xiam marked this pull request as ready for review May 20, 2024 20:32
Copy link
Contributor

@VojtechVitek VojtechVitek left a comment

Choose a reason for hiding this comment

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

LGTM

Minor suggestions/questions

Comment on lines +36 to +38
const [projectAccessKey, jwtAuth] = args
this.projectAccessKey = projectAccessKey || undefined
this.jwtAuth = jwtAuth || undefined
Copy link
Contributor

Choose a reason for hiding this comment

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

this is for backward-compatibility?

can we console.error() with a warning to update to the new Opts object?

was this implemented a long time ago? do you expect customers using it?

constructor(
hostname: string,
projectAccessKey?: string,
jwtAuth?: string
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is fine

I'm just thinking - should we call it SecretKey as in the Builder UI? cc @moskalyk

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