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.
novalab-raiders
Advanced tools
Raiders Contracts will allow anyone to create bounties for community members to earn
rewards for taking specific actions.
There are a few validators we will be using:
RaidNFT
RaidNFT
with their bountyParameterNFT
ParameterNFT
with its datumtype RaidDatum {
quantity: Int,
/// price is in lovelace
price: Int,
creator: VerificationKeyHash, /// Pub Key Hash
}
pub type Parameter {
raid_locker_script_hash: ScriptHash,
/// Script Hash of Raid Locker
}
import { parameterBurn, parameterMint } from "novalab-raiders";
// lucid: `LucidEvolution` from `@lucid-evolution/lucid`
// select Admin's wallet
// adminAddress: Raider Platform's Admin Address
const txCompleteResult = await parameterMint(lucid, adminAddress);
if (!txCompleteResult.ok) {
// Tx Failed
console.error(txCompleteResult.error);
} else {
// Submit Tx
const txHash = await(await txCompleteResult.data.sign().complete()).submit();
}
// lucid: `LucidEvolution` from `@lucid-evolution/lucid`
// select Admin's wallet
// adminAddress: Raider Platform's Admin Address
// unit: Asset Id of Parameter NFT to burn
const txCompleteResult = await parameterBurn(lucid, adminAddress, unit);
if (!txCompleteResult.ok) {
// Tx Failed
console.error(txCompleteResult.error);
} else {
// Submit Tx
const txHash = await(await txCompleteResult.data.sign().complete()).submit();
}
import { raidClaim, raidCreate, raidRemove, raidUpdate } from "novalab-raiders";
// lucid: `LucidEvolution` from `@lucid-evolution/lucid`
// select Creator's wallet
// quantity: Quantity of Bounty
// price: Bounty Price - e.g. `10_000_000n` for 10 ada
// creator: Creator's Address
// parameterRefUtxoTxHash: Tx Hash of Reference UTxO where Paremeter NFT exists
// parameterRefUtxoTxIndex: Tx Hash of Reference UTxO where Paremeter NFT exists
const txCompleteResult = await raidCreate(
lucid,
quantity,
price,
creator,
parameterRefUtxoTxHash,
parameterRefUtxoTxIndex
);
// lucid: `LucidEvolution` from `@lucid-evolution/lucid`
// select User's wallet
// adminAddress: Admin's Address
// unit: Asset Id of Raid from which to claim
// userAddress: User's Address to perform claim
// parameterRefUtxoTxHash: Tx Hash of Reference UTxO where Paremeter NFT exists
// parameterRefUtxoTxIndex: Tx Hash of Reference UTxO where Paremeter NFT exists
const txCompleteResult = await raidClaim(
lucid,
adminAddress,
unit,
userAddress,
parameterRefUtxoTxHash,
parameterRefUtxoTxIndex
);
// NOTE: Transaction must be signed by Admin Address also
// lucid: `LucidEvolution` from `@lucid-evolution/lucid`
// select User's wallet
// unit: Asset Id of Raid to update
// newQuantity: New Quantity to update to
// userAddress: User's Address to perform update
// parameterRefUtxoTxHash: Tx Hash of Reference UTxO where Paremeter NFT exists
// parameterRefUtxoTxIndex: Tx Hash of Reference UTxO where Paremeter NFT exists
const txCompleteResult = await raidUpdate(
lucid,
unit,
newQuantity,
userAddress,
parameterRefUtxoTxHash,
parameterRefUtxoTxIndex
);
// lucid: `LucidEvolution` from `@lucid-evolution/lucid`
// select User's wallet
// unit: Asset Id of Raid from which to claim
// userAddress: User's Address to perform remove
// parameterRefUtxoTxHash: Tx Hash of Reference UTxO where Paremeter NFT exists
// parameterRefUtxoTxIndex: Tx Hash of Reference UTxO where Paremeter NFT exists
const txCompleteResult = await raidRemove(
lucid,
unit,
userAddress,
parameterRefUtxoTxHash,
parameterRefUtxoTxIndex
);
// NOTE: Transaction must be signed by Raid's Creator also
FAQs
This is raiders validator from Novalab
The npm package novalab-raiders receives a total of 3 weekly downloads. As such, novalab-raiders popularity was classified as not popular.
We found that novalab-raiders 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.
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.