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

Remove ProjectID, Add GHA #17

Merged
merged 8 commits into from
Apr 25, 2024
Merged

Remove ProjectID, Add GHA #17

merged 8 commits into from
Apr 25, 2024

Conversation

ProfMoo
Copy link
Contributor

@ProfMoo ProfMoo commented Apr 25, 2024

This PR removes the project ID from the Typescript client. Further, we've added a GHA that lints the codebase, replicating the process we do manually.


on:
push:
# branches:
Copy link
Contributor

Choose a reason for hiding this comment

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

is this needed ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. I commented for testing initially, but I'll uncomment now 😄.

with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
node-version: "20.x"
Copy link
Contributor

Choose a reason for hiding this comment

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

curious if we need to update our require node version docs anywhere else ? not sure.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmmm. I moved to 20.x because that's the version specified in package.json. I'll update the README here as well. If we see anywhere else that's on 18.x, let's update it there too.

'holesky',
true,
'your-wallet-address', // replace with your wallet address
'0xdb816889F2a7362EF242E5a717dfD5B38Ae849FE', // replace with your wallet address
Copy link
Contributor

Choose a reason for hiding this comment

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

can we roll this back ? or was this intentional ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Per offline discussion: Will keep in for simplicity of the example 😄.

throw new Error(
'Please set the projectId and stakerAddress variables in this file',
'Please set the privateKey and stakerAddress variables in this file',
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. can we update check to look for both priv key and walletAddress
  2. can we update message to reflect both priv key and walletAddress

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup, good catch. I'll double check these error messages in this repo to ensure they're correct as well.

'Please set the projectId and stakerAddress variables in this file',
);
if (walletAddress === '') {
throw new Error('Please set the stakerAddress variable in this file');
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: walletAddress

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed!

@ProfMoo ProfMoo merged commit 55d630f into main Apr 25, 2024
3 checks passed
@ProfMoo ProfMoo deleted the add-github-actions branch April 25, 2024 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants