Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@pontem/liquidswap-widget
Advanced tools
A web component custom element which can be embedded to any frontend application or even plain html / js / css. Using full strength of @pontem/liquidswap-sdk widget can provide swap operations with multiple wallets.
yarn add @pontem/liquidswap-widget
or
npm install @pontem/liquidswap-widget
Function loadWidget
accepts widgets HTML tag name. It can be custom name but should be in kebab case.
We recommend to use 'liquidswap-widget' name. Passed name should be exactly the same as tag name.
import React, { useLayoutEffect } from 'react';
import { loadWidget } from '@pontem/liquidswap-widget';
export const Widget = () => {
useLayoutEffect(() => {
loadWidget('liquidswap-widget');
}, []);
return (
<div className="'Your Wrapper className'">
<liquidswap-widget/>
</div>
);
};
<template>
<div class="'Your Wrapper class name'">
<liquidswap-widget>
</div>
</template>
<script setup lang="ts">
import { loadWidget } from '@pontem/liquidswap-widget';
loadWidget('liquidswap-widget');
</script>
liquidswap-widget
into app.<liquidswap-widget></liquidswap-widget>
loadWidget
function from npm and run with passing html tag name in kebab case;import { loadWidget } from '@pontem/liquidswap-widget';
loadWidget('liquidswap-widget');
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)FAQs
Liquidswap widget as custom web component
We found that @pontem/liquidswap-widget demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.