
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
bancor-conversion-widget
Advanced tools
An open sourced widget that uses Bancor's smart contracts to allow a user to convert tokens or ethereum.
An open sourced widget that uses Bancor's smart contracts to allow a user to convert tokens or ethereum.
npm install bancor-conversion-widget --save
<script src="https://unpkg.com/bancor-conversion-widget@latest"></script>
<body onload="render()">
<script>
const render = () => {
// render it
new BancorConversionWidget({
target: document.body,
props: {},
});
};
</script>
</body>
npm install react-svelte --save
import SvelteComponent from "react-svelte";
import BancorConversionWidget from "bancor-conversion-widget";
// render it
<SvelteComponent this={BancorConversionWidget} />;
<script>
import BancorConversionWidget from "bancor-conversion-widget";
</script>
<!-- render it -->
<BancorConversionWidget />
Read a more in-depth integration guide here
Name | Description | Type | Default |
---|---|---|---|
tokenSend | initial "send" token | string | "ETH" |
tokenReceive | initial "receive" token | string | "BNT" |
colors | custom colors | object | src |
showRelayTokens | show or hide relay tokens | boolean | false |
addresses | custom registry addresses | object | src |
affiliate.account | affiliate ethereum address | string | undefined |
affiliate.fee | affiliate fee percentage (max 3%) | number | undefined |
onChange | event triggered on token change | function | undefined |
FAQs
An open sourced widget that uses Bancor's smart contracts to allow a user to convert tokens or ethereum.
We found that bancor-conversion-widget demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.