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

Demo: URI-Resolver As-A-Wrapper #23

Open
dOrgJelli opened this issue Dec 23, 2021 · 7 comments
Open

Demo: URI-Resolver As-A-Wrapper #23

dOrgJelli opened this issue Dec 23, 2021 · 7 comments

Comments

@dOrgJelli
Copy link
Contributor

Build a wrapper that implements the URI-Resolver interface. This demo should include tests that successfully add it to the client, and query URIs using it successfully.

@GuruDev0807
Copy link

GuruDev0807 commented Feb 21, 2022

Hi. As a blockchain developer I can help you.
Start date: 2022/02/22
End date: 2022/02/28
metamask: 0x92eC4112a367FD54Ae258774A9DbE30eedAfA114

@dOrgJelli
Copy link
Contributor Author

dOrgJelli commented Feb 22, 2022

Some implementation details:

Here's what your query module's index.ts should look like:

// Import the generated schema types
import {
  Input_tryResolveUri,
  Input_getFile,
  UriResolver_MaybeUriOrManifest
} from "./w3";

export function tryResolveUri(
  input: Input_tryResolveUri
): UriResolver_MaybeUriOrManifest {
  // TODO: implement this for your custom URI type
  // Example from IPFS JS Plugin:
  // https://github.com/polywrap/monorepo/blob/a8e9f8cb3dc64a307fa983a7e29e22cae535f3f2/packages/js/plugins/ipfs/src/resolvers.ts#L32-L90
}

export function getFile(
  input: Input_getFile
): ArrayBuffer | null {
  // TODO: implement this
}

@dOrgJelli
Copy link
Contributor Author

@rihp
Copy link
Contributor

rihp commented Mar 3, 2022

@GuruDev0807 some time has passed with no updates, reached through DM to follow up.

if there's no reasonable response we'll assign this to someone else
image

@nerfZael
Copy link

nerfZael commented Mar 23, 2022

@alphak3y
Copy link

alphak3y commented Apr 7, 2022

Happy to take this up and see where it goes as a first task for the DAO.

Let me know where I should start. Discord or here are okay places to reach me.

@dOrgJelli
Copy link
Contributor Author

dOrgJelli commented Apr 9, 2022

Hey @alphak3y, this should be unblocked. Please feel free to take this on, and message here or on Discord with any questions you may have while starting this!

NOTE: the blocking issue above will be in version 0.0.1-prealpha.71 which will be released shortly. You should be able to get started now though.

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

No branches or pull requests

5 participants