Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
@boostxyz/cli
Advanced tools
@boostxyz/cli
A command line interface simplifying Boost protocol deployment, and Boost creation.
# npm
npm install -g @boostxyz/cli
npx boost --help
git clone https://github.com/boostxyz/boost-protocol.git
cd boost-protocol
pnpm install
turbo build --filter="./packages/cli"
npx boost seed generate
Basic usage pattern:
# see the detailed help documentation
boost --help
# deploy the Boost Protocol to a local hardhat instance
boost deploy --privateKey="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" --chain="hardhat"
# generate a json template that can be used with `boost seed`
# if privateKey or mnemonic is supplied, your 0 address will be slotted into the requisite owner locations
boost seed generate --privateKey="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" --chain="hardhat"
# create boosts
boost seed PATH/TO/seed.json PATH/TO/another.json --privateKey="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" --chain="hardhat"
# deploy new erc20's that can be used with boosts and budgets
boost seed erc20 --privateKey="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" --chain="hardhat"
Option | Alias | Description | Default |
---|---|---|---|
--help | -h | Show documentation | - |
--version | -v | Show the current version number | - |
--chain | - | Target a specific viem chain, ie hardhat, anvil, sepolia, base, etc. See https://github.com/wevm/viem/tree/main/src/chains/definitions for a list of valid names | - |
--privateKey | - | Private key to derive account from to use for contract operations, see https://viem.sh/docs/accounts/local/privateKeyToAccount#generating-private-keys for more information | - |
--mnemonic | - | Mnemonic to derive account from to use for contract operations, see https://viem.sh/docs/accounts/local/mnemonicToAccount#generating-private-keys for more information | - |
--rpcUrl | - | Optional URL to provide to Viem http transport, will typically be specific to targeted chain | - |
--out | - | Filepath to write result of command. Can be useful if used with --format="env" to write to a .env file | - |
--format | - | Specify command output format, either env or json | env |
Here is an example seed template.
test...junk
's 0 account unless --privateKey
or --mnemonic
is provided.action
signatures
, While you generally need to manually supply the byte selector, you have the option of supplying a plain english signature, which will be converted into the bytes selector for you when passed into the seed
command."shouldMintAndAllocate": true
to an ERC20 incentive, the seed command will automatically call mint
on the referenced asset with the total amount required to allocate and fund the Boosts's budget, so make sure the privateKey
or mnemonic
option is correctly supplied to make this call.{
"protocolFee": 0,
"maxParticipants": 10,
"budget": {
"type": "ManagedBudget",
"owner": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"authorized": [
"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
],
"roles": [
1
]
},
"action": {
"type": "EventAction",
"actionClaimant": {
"signatureType": 1,
"signature": "function mint(address to, uint256 amount)", // This will be converted into a bytes selector for you
"fieldIndex": 0,
"targetContract": "0x0000000000000000000000000000000000000000",
"chainid": 31337
},
"actionSteps": [
{
"signature": "event Minted(address to, uint256 amount)",
"signatureType": 1,
"actionType": 0,
"targetContract": "0x0000000000000000000000000000000000000000",
"chainid": 31337,
"actionParameter": {
"filterType": 0,
"fieldType": 1,
"fieldIndex": 0,
"filterData": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
}
}
]
},
"validator": {
"type": "SignerValidator",
"signers": [
"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
],
"validatorCaller": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
},
"allowList": {
"type": "SimpleDenyList",
"owner": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"denied": []
},
"incentives": [
{
"type": "ERC20Incentive",
"asset": "0xf3B2d0E4f2d8F453DBCc278b10e88b20d7f19f8D", // By default, this is STAGING https://sepolia.etherscan.io/token/0xf3B2d0E4f2d8F453DBCc278b10e88b20d7f19f8D
"shouldMintAndAllocate": true, // if set to true, will call `mint` on the referenced asset with the total amount required to fund this Boosts's budget.
"strategy": 0,
"reward": 1,
"limit": 1,
"manager": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
}
]
}
Contributions are welcome! Please read our Contributing Guide for details on our code of conduct and the process for submitting pull requests.
git clone https://github.com/boostxyz/boost-protocol.git
cd boost-protocol
pnpm install
FAQs
A repository of useful scripts to interact with the protocol
We found that @boostxyz/cli 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.