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

Support for Sveltekit Template #320

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

Philix27
Copy link

@Philix27 Philix27 commented Nov 6, 2024

This PR resolves #313.

This template is designed to have only the essential packages neccessary for web3 connections.

Main implementation points to an external repository. If one is created for Celo Org, I can push it there.

Features

  • Wallet connection using web3Modal
  • Interact wallet/account details using wagmi core
  • Interact with Smart contact using wagmi core

Copy link

netlify bot commented Nov 6, 2024

👷 Deploy request for celo-composer pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 9619fa5

@Philix27 Philix27 marked this pull request as draft November 8, 2024 08:24
@Philix27 Philix27 marked this pull request as draft November 8, 2024 08:24
@viral-sangani
Copy link
Contributor

Hey @Philix27 can you please also add Sveltekit code in this PR as well instead of linking it to your repo?
Sorry for late reply.

Copy link

socket-security bot commented Nov 28, 2024

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@sveltejs/[email protected] environment +1 84.9 kB svelte-admin
npm/@sveltejs/[email protected] environment, eval Transitive: filesystem, network, shell +69 281 MB svelte-admin
npm/@sveltejs/[email protected] Transitive: environment +6 813 kB conduitry, dominik_g, rich_harris, ...1 more
npm/@tailwindcss/[email protected] None +1 60.6 kB thecrypticace
npm/@tailwindcss/[email protected] None +3 304 kB adamwathan
npm/@tanstack/[email protected] None +1 2.54 MB nksaraf, tannerlinsley
npm/@types/[email protected] None +1 221 kB types
npm/@wagmi/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +183 120 MB awkweb
npm/@wagmi/[email protected] Transitive: environment +5 36 MB awkweb
npm/@web3modal/[email protected] None 0 5.97 MB iljadoesdev
npm/@web3modal/[email protected] Transitive: environment, filesystem, network +23 6.78 MB iljadoesdev
npm/@web3modal/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +165 95.9 MB zoruka
npm/[email protected] None +1 30.6 kB joebell93
npm/[email protected] filesystem, unsafe Transitive: environment, shell +32 9.99 MB ota-meshi
npm/[email protected] environment 0 1.5 MB dummdidumm
npm/[email protected] None 0 7.83 MB prettier-bot
npm/[email protected] None +5 37.2 MB svelte-language-tools-deploy
npm/[email protected] None 0 71.4 kB wobsoriano
npm/[email protected] None +16 4.71 MB conduitry, rich_harris, svelte-admin
npm/[email protected] Transitive: environment, filesystem, network, shell, unsafe +30 10.6 MB adamwathan, malfaitrobin, reinink
npm/[email protected] Transitive: environment, network +19 59.5 MB awkweb, jmoxey
npm/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +94 279 MB davidmyersdev
npm/[email protected] Transitive: environment, filesystem, network, shell +49 276 MB cokakoala
npm/[email protected] Transitive: environment, filesystem, network, shell, unsafe +49 300 MB antfu, patak, soda, ...2 more
npm/[email protected] environment, eval Transitive: filesystem, shell, unsafe +34 6.73 MB antfu, oreanno, patak, ...1 more

View full report↗︎

Copy link

socket-security bot commented Nov 28, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
Install scripts npm/[email protected] 🚫
Install scripts npm/[email protected] 🚫
Native code npm/@parcel/[email protected] 🚫
Install scripts npm/@parcel/[email protected]
  • Install script: install
  • Source: node scripts/build-from-source.js
🚫
Install scripts npm/@sveltejs/[email protected]
  • Install script: postinstall
  • Source: node postinstall.js
🚫

View full report↗︎

Next steps

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Why is native code a concern?

Contains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.

Verify that the inclusion of native code is expected and necessary for this package's functionality. If it is unnecessary or unexpected, consider using alternative packages without native code to mitigate potential risks.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/[email protected] or ignore all packages with @SocketSecurity ignore-all

@Philix27
Copy link
Author

I have moved the template to this repository. @viral-sangani

Socket Security is pointing to sveltekit core packages (sveltejs/kit, esbuild) needed to run the app. I feel we can let some of these packages pass through.

@Philix27
Copy link
Author

Philix27 commented Nov 29, 2024

Can we remove the use of template url and just clone a subdirectory from the packages folder in this repo. @viral-sangani

When the cli runs and Minipay is selected, an external repo is cloned instead of copying from the list of packages/app we have here.

@Philix27
Copy link
Author

Philix27 commented Dec 5, 2024

@viral-sangani

Any luck with reviewing this PR?

@Philix27 Philix27 marked this pull request as ready for review December 7, 2024 05:16
@viral-sangani
Copy link
Contributor

@Philix27 It does make sense to clone the sub directory rather than cloning from different URL, but we are trying to keep all the templates outside the celo composer repo and all the code components i.e. Basic React + Hardhat etc in the main repo.
How about this -

Initially we planned to keep the code here and give an option between ReactJS and Svelte, but looking at the requirement for svelte vs react in web3 development, we want to keep react as default options and svelte as a template which is maintained by community.

@Philix27
Copy link
Author

Philix27 commented Dec 10, 2024

@viral-sangani Okay, I tried pushing to the new repo but my access was denied. I can't even make a PR.

Screenshot 2024-12-10 at 13 32 58

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.

[Feature]: Add support for Sveltekit
2 participants