Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Simple "Buy Me a Coffee" React button with payments in SUI.
pnpm add mersui || yarn add mersui || npm install mersui
First of all, wrap your main app component into the MerSuiProvider
component.
import { MerSuiProvider } from "mersui";
function App() {
return (
<MerSuiProvider>
<YourApp />
</MerSuiProvider>
);
}
Then, use the MerSuiWidget
component to render the button.
import { MerSuiWidget } from "mersui";
function App() {
return (
<div>
<MerSuiWidget recipientAddress="0x..." />
</div>
);
}
Enjoy!
Prop | Type | Default | Description |
---|---|---|---|
buttonLabel | string | - | Button label |
recipientAddress | string | - | Sui address of the recipient |
containerClassName | string | - | Optional class name for the button container |
buttonClassName | string | - | Optional class name for the button |
statusClassName | string | - | Optional class name for the status message. The status-success and status-error classes are automatically added for your convenience. |
MerSui uses Pyth's Sponsored Feed for SUI/USD to properly calculate the transaction amount in SUI.
See lib/MerSuiWidget.tsx/fetchSuiPrice
.
The lib
folder contains the source code of the library.
The src
folder contains a demo app that you can use to play with the library locally.
But before that, you need to set up the environment variables:
# .env.local
VITE_RECIPIENT_ADDRESS=0x...
Then, run the development server:
pnpm dev
pnpm build
Copyright (c) 2024 Konstantin Komelin
Licensed under the MIT License.
FAQs
Simple "Buy Me a Coffee" React button with payments in SUI. No intermediaries, you receive donations directly to your Sui address.
We found that mersui demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.