Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@mirror-protocol/mirror-airdrop
Advanced tools
$ npm install @mirror-protocol/mirror-airdrop
airdrop.json
{
"accounts": [
{
"address": "terra1qfqa2eu9wp272ha93lj4yhcenrc6ymng079nu8",
"amount": "1000000"
},
{
"address": "terra1ucp369yry6n70qq3zaxyt85cnug75r7ln8l6se",
"amount": "2000000"
},
{
"address": "terra1t849fxw7e8ney35mxemh4h3ayea4zf77dslwna",
"amount": "3000000"
},
...
]
}
import { Airdrop } from "@mirror-protocol/mirror-airdrop";
import { accounts } from "../airdrop.json";
const airdrop = new Airdrop(accounts);
const proof = airdrop.getMerkleProof(accounts[0]);
console.log("Merkle Root", airdrop.getMerkleRoot());
console.log("Merkle Proof", proof);
console.log("Target Acc", accounts[0]);
console.log("Verified", airdrop.verify(proof, accounts[0]));
import { Snapshot } from "@mirror-protocol/mirror-airdrop";
const snapshot = new Snapshot("https://lcd.terra.dev");
snapshot.takeSnapshot(10000).then(delegators => {
console.log(delegators)
});
$ docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="devcontract_cache_airdrop",target=/code/contracts/airdrop/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/rust-optimizer:0.10.2 ./contracts/airdrop
FAQs
Airdrop implementation
The npm package @mirror-protocol/mirror-airdrop receives a total of 12 weekly downloads. As such, @mirror-protocol/mirror-airdrop popularity was classified as not popular.
We found that @mirror-protocol/mirror-airdrop demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.