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

Refactor Abstraxion to fetch config #121

Merged
merged 11 commits into from
Mar 26, 2024
Merged

Refactor Abstraxion to fetch config #121

merged 11 commits into from
Mar 26, 2024

Conversation

BurntVal
Copy link
Contributor

@BurntVal BurntVal commented Mar 6, 2024

No description provided.

Copy link

changeset-bot bot commented Mar 6, 2024

🦋 Changeset detected

Latest commit: 2ab0bac

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@burnt-labs/abstraxion Minor
@burnt-labs/constants Minor
abstraxion-dashboard Patch
demo-app Patch
@burnt-labs/abstraxion-core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Mar 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
xion-js-abstraxion-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 25, 2024 4:36pm
xion-js-demo-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 25, 2024 4:36pm

@@ -87,7 +96,7 @@ export function AbstraxionSignin(): JSX.Element {
}
urlParams.set("redirect_uri", currentUrl);
const queryString = urlParams.toString(); // Convert URLSearchParams to string
window.location.href = `${dashboardUrl}?${queryString}`;
window.location.href = `https://${dashUrl}?${queryString}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

The dashboard URL might be local, should include the protocol in the passed var

// If mainnet chain-id/network changes be sure to update here.
const DASHBOARD_URLS = {
"xion-mainnet-1": "dashboard.burnt.com",
"xion-testnet-1": "testnet-dashboard.burnt.com",
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
"xion-testnet-1": "testnet-dashboard.burnt.com",
"xion-testnet-1": "testnet.dashboard.burnt.com",

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can make this change but I was under the impression that we wanted to stay away from using too many "." and thus the reason for the hyphenated sub-domain

Copy link
Contributor

@justinbarry justinbarry left a comment

Choose a reason for hiding this comment

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

Nice work! Requested 2 changes.

Copy link
Contributor

@justinbarry justinbarry left a comment

Choose a reason for hiding this comment

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

LGTM

@BurntVal BurntVal merged commit 2f9ad6d into main Mar 26, 2024
4 checks passed
@BurntVal BurntVal deleted the fix/abstraxion-config branch March 26, 2024 19: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.

2 participants