mirror of
https://github.com/pezkuwichain/pezkuwi-subquery.git
synced 2026-11-25 23:39:55 +00:00
Run the noter and payout bots on the fixed crypto stack, from their lockfiles
Both images ran `npm install` with version ranges and ignored any lockfile, so what production ran depended on the day the image was built. The live containers, built on 2026-10-03, run @pezkuwi/wasm-crypto 7.5.17, whose ed25519, ecdsa and mnemonic generation are stubs that throw. Both bots sign with sr25519 only, which is why they kept working. Each bot now has a package.json and package-lock.json (@pezkuwi/api 16.5.37, keyring, util and util-crypto 14.0.26, wasm-crypto 7.5.20) and its image installs exactly that with `npm ci`. Node 20 is past its end of life; the images move to node:24-alpine. CI gains a `bots` job that builds each image and runs inside it: scripts/bot-smoke.mjs checks the installed versions against the lockfile and signs and verifies with sr25519, ed25519 and ecdsa, and the bot itself must load and stop at the mnemonic it is not given. Against the previous lockfile the smoke check fails on mnemonic generation, ed25519 and ecdsa.
This commit is contained in:
1 parent
d5b3962f24
commit
cf2646a33a
8 files changed
+1225
-232
No files matched your search
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"name": "pezkuwi-payout-bot",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"description": "Payout bot: claims staking rewards for every validator in completed eras on Asset Hub",
|
||||
"type": "commonjs",
|
||||
"scripts": {
|
||||
"start": "node bot.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pezkuwi/api": "^16.5.37",
|
||||
"@pezkuwi/keyring": "^14.0.26",
|
||||
"@pezkuwi/util": "^14.0.26",
|
||||
"@pezkuwi/util-crypto": "^14.0.26"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user