
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@laborx/airdrop-contracts
Advanced tools
Provides Ethereum smart contract that allows to perform token airdrop using merkle tree and merkle proof to record and check allowance for token withdrawals.
Provides Ethereum smart contract that allows to perform token airdrop using merkle tree and merkle proof to record and check allowance for token withdrawals.
Install package using npm or yarn package managers:
npm install @laborx/airdrop-contracts
or
yarn add @laborx/airdrop-contracts
Import smart contract as you usually do with external libraries
import "@laborx/airdrop-contracts/contracts/Airdrop.sol";
contract ExtendedAirdrop is Airdrop {
// ...
}
It allowes to:
For managing Merkle trees for airdrops we use package @laborx/merkletree
.
More information about Airdrop contract you can find in documentation;
More information about ScopedAirdropInterface interface you can find in documentation;
There are two main areas for support functionality:
Deployment of a contract could be run with truffle framework by providing deployment context from @truffle-types/deployment-context
package.
const deployerAccount = "0x...";
const deploymentContext = new ContractDeploymentContext(
web3,
artifacts,
undefined,
"path to deployed-addresses.json file"
);
await AirdropDeployment.deployScopeAirdrop(
deploymentContext,
deployerAccount,
{
airdrop: "AirdropContractKey",
airdropBackendProvider:
"AirdropBackendProviderContractKey",
airdropLib: "AirdropLibraryContractKey"
},
{
airdrop: { redeploy: false, owners: [] },
airdropBackendProvider: {
redeploy: false,
updateLib: false
},
airdropLib: { redeploy: false }
}
);
Provides the next constants:
AirdropRevertReasons
, ScopedAirdropRevertReasons
, BytesLibRevertReasons
)errorsLibrary
)ContractNames
)FAQs
Provides Ethereum smart contract that allows to perform token airdrop using merkle tree and merkle proof to record and check allowance for token withdrawals.
We found that @laborx/airdrop-contracts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.