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 configurable skynet webportal url #7

Closed
wants to merge 2 commits into from
Closed

Add configurable skynet webportal url #7

wants to merge 2 commits into from

Conversation

Delivator
Copy link

Fix #6

@@ -52,15 +53,15 @@ function createSkynsEntry(entryUrl) {
const rawSkylink = parseSkylink(skylink);
const skylinkDecoded = decodeBase64(rawSkylink);
const skylinkEncodedBase32 = encodeBase32(skylinkDecoded);
const skylinkUrl = `https://${skylinkEncodedBase32}.siasky.net`;
const skylinkUrl = `${portalUrl.protocol}//${skylinkEncodedBase32}.${portalUrl.host}`;
Copy link
Contributor

@kwypchlo kwypchlo Jul 15, 2021

Choose a reason for hiding this comment

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

we should use getSkylinkUrl method to get this link instead of constructing it ourselves

https://github.com/SkynetLabs/skynet-js/blob/master/src/download.ts#L180-L192

You wouldn't need to construct new URL then too

With subdomain option https://github.com/SkynetLabs/skynet-js/blob/master/src/download.ts#L240-L241

@kwypchlo
Copy link
Contributor

kwypchlo commented Aug 12, 2021

We're deprecating this repo in favour of SkynetLabs fork https://github.com/SkynetLabs/deploy-to-skynet-action (action from this repo will still work just fine but it's advisable to use the new release from SkynetLabs repo once it's out). It is going to be mostly backwards compatible with one change that if you used registry entry in a hns domain you will need to replace it with the resolver skylink since the data encoding is different.

I ported your changes to the pull request we're using to upgrade the repo to use with resolver skylinks - #1

I'll go ahead and close this up, we will continue the development on https://github.com/SkynetLabs/deploy-to-skynet-action so feel free to open up any new pull requests there :)

@kwypchlo kwypchlo closed this Aug 12, 2021
@Delivator Delivator deleted the feat/portal-url branch August 15, 2021 19:35
kwypchlo pushed a commit that referenced this pull request May 25, 2022
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.

Configurable skynet webportal location
2 participants