
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@emurgo/bringweb3-chrome-extension-kit
Advanced tools
Crypto cashback integration kit for crypto outlets extension
This integration kit is designed to enhance existing Chrome extensions by adding functionality that enables automatic crypto cashback on online purchases.
This kit consists of a set of JavaScript files that crypto outlets can integrate into their crypto wallet extensions. This integration facilitates a seamless addition of cashback features, leveraging cryptocurrency transactions in the context of online shopping.
When a user visits supported online retailer websites, the Crypto Cashback system determines eligibility for cashback offers based on the user's location and the website's relevance.
Using npm:
$ npm install @bringweb3/chrome-extension-kit
Using yarn:
$ yarn add @bringweb3/chrome-extension-kit
Using pnpm:
$ pnpm add @bringweb3/chrome-extension-kit
Include this configuration inside your manifest.json
file:
"permissions": [
"storage",
"tabs"
],
"content_scripts": [
{
"matches": [
"<all_urls>"
],
"js": [
"contentScript.js" // The name of the file importing the bringContentScriptInit
]
}
],
"host_permissions": [
"https://*.bringweb3.io/*"
]
Once the package is installed, you can import the library using import
or require
approach:
import { bringInitBackground } from '@bringweb3/chrome-extension-kit';
import { bringInitContentScript } from '@bringweb3/chrome-extension-kit';
const { bringInitBackground } = require('@bringweb3/chrome-extension-kit');
const { bringInitContentScript } = require('@bringweb3/chrome-extension-kit');
import { bringInitBackground } from '@bringweb3/chrome-extension-kit';
bringInitBackground({
identifier: process.env.PLATFORM_IDENTIFIER, // The identifier key you obtained from Bringweb3
apiEndpoint: 'sandbox', // 'sandbox' || 'prod'
cashbackPagePath: '/wallet/cashback' // The relative path to your Cashback Dashboard if you have one inside your extension
})
import { bringInitContentScript } from "@bringweb3/chrome-extension-kit";
bringInitContentScript({
getWalletAddress: async () => await new Promise(resolve => setTimeout(() => resolve('<USER_WALLET_ADDRESS>'), 200)),// Async function that returns the current user's wallet address
promptLogin: () => {...}, // Function that prompts a UI element asking the user to login
walletAddressListeners: ["customEvent:addressChanged"], // An optional list of custom events that dispatched when the user's wallet address had changed, don't add it if you are using walletAddressUpdateCallback
walletAddressUpdateCallback: (callback)=>{...}, //an optional function that runs when the user's wallet address had changed and execute the callback, don't add it if you are using walletAddressUpdateCallback
switchWallet: true // Add switch wallet button, this requires also a UI for changing wallet address.
themeMode: 'light' // 'light' | 'dark',
text:'lower' // 'lower' | 'upper'
darkTheme: {...}, // Same as lightTheme
lightTheme: {
// font
fontUrl: 'https://fonts.googleapis.com/css2?family=Matemasie&display=swap',
fontFamily: "'Matemasie', system-ui",
// Popup
popupBg: "#192E34",
popupShadow: "",
// Primary button
primaryBtnBg: "linear-gradient(135deg, #5DEB5A 0%, #FDFC47 100%)",
primaryBtnFC: "#041417",
primaryBtnFW: "600",
primaryBtnFS: "14px",
primaryBtnBorderC: "transparent",
primaryBtnBorderW: "0",
primaryBtnRadius: "8px",
// Secondary button
secondaryBtnBg: "transparent",
secondaryBtnFS: "12px",
secondaryBtnFW: "500",
secondaryBtnFC: "white",
secondaryBtnBorderC: "rgba(149, 176, 178, 0.50)",
secondaryBtnBorderW: "2px",
secondaryBtnRadius: "8px",
// Markdown
markdownBg: "#07131766",
markdownFS: "12px",
markdownFC: "#DADCE5",
markdownBorderW: "0",
markdownRadius: "4px",
markdownBorderC: "black",
markdownScrollbarC: "#DADCE5",
// Wallet address
walletBg: "#33535B",
walletFS: "10px",
walletFW: "400",
walletFC: "white",
walletBorderC: "white",
walletBorderW: "0",
walletRadius: "4px",
// Details of offering
detailsBg: "#33535B",
detailsTitleFS: "15px",
detailsTitleFW: "600",
detailsTitleFC: "white",
detailsSubtitleFS: "14px",
detailsSubtitleFW: "500",
detailsSubtitleFC: "#A8ADBF",
detailsRadius: "8px",
detailsBorderW: "0",
detailsBorderC: "transparent",
detailsAmountFC: "#5DEB5A",
detailsAmountFW: "700",
// Overlay
overlayBg: "#192E34E6",
overlayFS: "13px",
overlayFW: "400",
overlayFC: "#DADCE5",
loaderBg: "#0A2EC0",
// Optout \ Turn off
optoutBg: "#192E34",
optoutFS: "14px",
optoutFW: "400",
optoutFC: "white",
optoutRadius: "56px",
// X Button and close buttons
closeFS: "9px",
closeFW: "300",
closeFC: "#B9BBBF",
// Token name
tokenBg: "transparent",
tokenFS: "13px",
tokenFW: "600",
tokenFC: "#DADCE5",
tokenBorderW: "2px",
tokenBorderC: "#DADCE5",
tokenRadius: "8px",
// Notification popup
notificationFS: "14px",
notificationFW: "500",
notificationFC: "white",
notificationBtnBg: "linear-gradient(135deg, #5DEB5A 0%, #FDFC47 100%)",
notificationBtnFS: "12px",
notificationBtnFW: "500",
notificationBtnFC: "#041417",
notificationBtnBorderW: "0",
notificationBtnBorderC: "transparent",
notificationBtnRadius: "8px",
activateTitleFS: "14px",
activateTitleFW: "600",
activateTitleFC: "white",
activateTitleBoldFS: "14px",
activateTitleBoldFW: "700",
activateTitleBoldFC: "white",
}
});
import { getTurnOff, setTurnOff } from "@bringweb3/chrome-extension-kit";
// Get state example
const current = await getTurnOff()
console.log(current) // true | false
// Set state example
const res = await setTurnOff(true)
console.log(res.isTurnedOff) // true
For more information: contact us
FAQs
Crypto cashback integration kit for crypto outlets extension
The npm package @emurgo/bringweb3-chrome-extension-kit receives a total of 66 weekly downloads. As such, @emurgo/bringweb3-chrome-extension-kit popularity was classified as not popular.
We found that @emurgo/bringweb3-chrome-extension-kit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.