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

chore: upgrade useink and setup vite #288

Closed
wants to merge 7 commits into from
Closed

chore: upgrade useink and setup vite #288

wants to merge 7 commits into from

Conversation

gaboesquivel
Copy link

No description provided.

@netlify
Copy link

netlify bot commented Aug 24, 2023

Deploy Preview for inklink ready!

Name Link
🔨 Latest commit 10fde6e
🔍 Latest deploy log https://app.netlify.com/sites/inklink/deploys/64e8c703438b26000894391c
😎 Deploy Preview https://deploy-preview-288--inklink.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@gaboesquivel
Copy link
Author

This complete @statictype @DoubleOTheven, clippy and contract test have been failing since Aug 19, 2022 https://github.com/paritytech/link/commits/master. Should we remove them?

@gaboesquivel gaboesquivel marked this pull request as ready for review August 25, 2023 05:07
frontend/.eslintcache Outdated Show resolved Hide resolved
@@ -20,7 +20,8 @@ export const useSubmitHandler = () => {
setSubmitting(false);
}

if (!result?.status.isInBlock) return;
Copy link
Contributor

Choose a reason for hiding this comment

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

@gaboesquivel we shouldn't comment out broken functionality.

@DoubleOTheven please look into why ContractSubmittableResult seems to incorrectly extend SubmittableResult in useInk.

Here is the expected shape.

If you undo the comments in this file, you will get build errors:

error TS2339: Property 'events' does not exist on type 'ContractSubmittableResult'.
error TS2339: Property 'dispatchError' does not exist on type 'ContractSubmittableResult'.

Copy link
Author

Choose a reason for hiding this comment

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

good catch, I didn't realized that was missing

import { useLinkContract } from './hooks';
import { AbiMessage, ContractExecResult, Registry } from 'useink/core';
import { useAbiMessage } from 'useink';
import { hexToString } from './lib/converter';
Copy link
Contributor

Choose a reason for hiding this comment

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

can you explain why you changed the hexToString import?

Copy link
Author

Choose a reason for hiding this comment

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

it seems the new version of useink doesnt export that function

frontend/src/Resolver.tsx Show resolved Hide resolved
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
Copy link
Contributor

Choose a reason for hiding this comment

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

please change skipLibCheck back to false

Copy link
Author

Choose a reason for hiding this comment

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

@DoubleOTheven when I disable skipLibCheck compiler is not able to find many dependencies of useink.
Perhaps they should be defined as dependencies or specified as peer dependencies?

frontend/vite.config.ts Outdated Show resolved Hide resolved
@statictype
Copy link
Contributor

This complete @statictype @DoubleOTheven, clippy and contract test have been failing since Aug 19, 2022 https://github.com/paritytech/link/commits/master. Should we remove them?

Sometimes those tests fail due to CI problems, not actual broken functionality. This is probably the reason, we haven't touched the contract code. That part would really need some love, it's still on ink! v3. wdyt @cmichi?

@peetzweg peetzweg closed this Mar 5, 2024
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.

5 participants