
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@crunchdao/crunch-client
Advanced tools
CrunchDAO Protocol enables decentralised coordination for data science competitions. The platform consists of two main components:
Coordinator Program: Manages the registration and organization of "Crunches" (data science competitions). Coordinators can sign up to create and manage competitions on the platform.
Staking Program: Handles staking pools and reward emissions, allowing participants to stake tokens and earn rewards based on their contributions and performance.
The platform is built using:
├── .github
│ └── workflows: Contains GitHub Actions workflow configurations
├── programs: Contains the Solana programs/smart contracts
│ └── coordinator: Coordinator app to sign up coordinators and organise Crunches
│ └── staking: Staking pools and reward emissions
├── tests: Integration tests and e2e tests
├── cli: Command-line interface tools
│ ├── commands: CLI command implementations
│ └── utils: CLI utility functions
├── app: Frontend application code
│ ├── setup: Setup scripts for provisioning contracts
│ └── utils: Client side utility functions
├── accounts: Canned accounts and keys used for testing and devneet
├── scripts: Utility scripts
└── target: Build output directory
pnpm install
anchor test
If you want a new programId run step 2 and step 6
[!WARNING]
When deploying with a new program id, update the github secret containing the keypair of the program, PROGRAM_ADDRESS_KEYPAIR here https://github.com/crunchdao/crunchdao-protocol/settings/secrets/actions
see https://github.com/solana-developers/github-workflows/issues/2
sh scripts/new_coordinator_programId.sh
solana airdrop 5 4xnqERu669swTYSTn37XU5ou44Bn9B8HrKXt2XfjcDvj
NETWORK=devnet
CRUNCH_NAME=bird-game
ts-node ./cli/admin-cli.ts -n $NETWORK -w accounts/deploy-keypair.json -c createConfig '{
"usdcMint": "B9yyYFe3S6i2LVrZeEpXtyVVMUr4vzrQquzzb7pLsNhy",
"foundationMarginPercentage": 10,
"burnMarginPercentage": 10,
"foundationWallet": "./accounts/foundation_wallet.json",
"burnWallet": "./accounts/burn_wallet.json",
"claimExpirySeconds": 2419200
}'
ts-node ./cli/crunch-cli.ts -n $NETWORK -w accounts/coordinator.json -c address $CRUNCH_NAME -l silent
COORDINATOR_ADDRESS=$(solana-keygen pubkey ./accounts/coordinator.json)
solana airdrop 5 $COORDINATOR_ADDRESS
ts-node ./cli/coordinator-cli.ts -n $NETWORK -w accounts/coordinator.json -c register "Bird game Coordinator"
ts-node ./cli/admin-cli.ts -n $NETWORK -w accounts/deploy-keypair.json -c approve $COORDINATOR_ADDRESS
ts-node ./cli/crunch-cli.ts -n $NETWORK -w accounts/coordinator.json -c create-crunch $CRUNCH_NAME 10000
ts-node ./cli/crunch-cli.ts -n $NETWORK -w accounts/coordinator.json -c deposit-reward $CRUNCH_ADDRESS 15000
ts-node ./cli/crunch-cli.ts -n $NETWORK -w accounts/coordinator.json -c start-crunch $CRUNCH_NAME
Deploy the tournament hub with the updated package version of @crunchdao/crunch-client
Update competion.onchain_id
update `tournament_staging_competition_service`.`participants`
set `on_chain_id`=<CRUNCH_ADDRESS>
Unregister everybody
DELETE FROM `tournament_staging_competition_service`.`participants` WHERE `competition_id` = (SELECT id FROM `competitions` where name = 'bird-game');
delete FROM payouts where type = 'checkpoint' and competition_id = 14;
delete from payout_recipients where payout_id not in (select id from payouts);
DELETE FROM payout_details WHERE recipient_id NOT in (select id from payout_recipients)
Web-to-3 needs an updated address, to poll the correct accounts. Read here how to do it.
Send a message to the beta testers in the birdgame test Discord channel
FAQs
Crunch DAO SDK
The npm package @crunchdao/crunch-client receives a total of 0 weekly downloads. As such, @crunchdao/crunch-client popularity was classified as not popular.
We found that @crunchdao/crunch-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.