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: cayenne remappings #453

Conversation

Ansonhkg
Copy link
Collaborator

@Ansonhkg Ansonhkg commented May 3, 2024

Description

Remap https://cayenne.litgateway.com/ to http://207.244.70.36:7474/ using staking contract port numbers & google dns resolver to get the ip address from the root domain name (without https), then when requesting session sigs, i need to remap http://207.244.70.36:7474/ back to 127.0.0.1:7474 to be signed in the siwe message

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Copy link
Collaborator

@DashKash54 DashKash54 left a comment

Choose a reason for hiding this comment

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

LGTM!

Comment on lines +749 to +751
`${CAYENNE_URL}:7370'`,
`${CAYENNE_URL}:7371'`,
`${CAYENNE_URL}:7372'`,
Copy link
Contributor

Choose a reason for hiding this comment

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

just curious why did we make this change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This array is actually not used anymore, we can remove it. I didn't because there are interfaces/types are relying on it? Need to investigate

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah okay i was thinking it could be removed now. Making a note of this for myself @joshLong145

@joshLong145
Copy link
Contributor

Just leaving a note to re run linting. but looks good :)

@Ansonhkg
Copy link
Collaborator Author

Ansonhkg commented May 4, 2024

Just leaving a note to re run linting. but looks good :)

yea, wil need to re-run them in the staging branch anyway

@Ansonhkg Ansonhkg merged commit cff71ba into feature/lit-2958-auth-unification-ts-tests May 4, 2024
1 of 2 checks passed
@Ansonhkg Ansonhkg deleted the feature/lit-3100-auth-uni-create-a-mapping-for-cayenne-port-from-73xx-74xx branch May 4, 2024 02:14
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