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.
@verto/tippar
Advanced tools
A simple library to select which PST token holder receives a tip. With the addition of SmartWeave contracts being able to custody different types of PSTs, there now needs to be a way for tips to be distributed to contracts in addition to wallets.
Tippar chooses token holders from contract(s) in recursion until a wallet is selected. Take note of the following examples:
A tip needs to be given to a token holder in Contract A
Tippar Process:
select holder from contract (A)
if holder === contract (B)
select new holder from contract (B)
if new holder === wallet
return new holder
else
...continue recursion
Real-World Example:
An ArDrive user is sending a tip to an ArDrive holder. If the random token-holder selected to receive the tip is the Verto Contract, a new token-holder is calculated from the users who hold a balance of VRT. This means that the ArDrive tip will now be sent to the VRT token holder.
yarn add @verto/tippar
chooseRecipient
async function chooseRecipient(client: Arweave, contract: string, mode?: string): Promise<string>
client
: Arweave client instancecontract
: Profit-Sharing token contract to choose holder frommode?
: Optional parameter for setting type of selection
Example:
import { chooseRecipient } from "@verto/tippar;
async function someUserInteraction() {
...
const tipReceiver = await chooseRecipient(arweaveClient, pstContract);
console.log(`Wallet of tip receiver: ${tipReceiver}`);
...
}
Any and all contributions are welcome. Feel free to make a PR with any updates for fixes.
FAQs
Tipping for Profit-Sharing Communities made easy
The npm package @verto/tippar receives a total of 4 weekly downloads. As such, @verto/tippar popularity was classified as not popular.
We found that @verto/tippar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
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.