// npm 패키지
weavedb-exm-sdk
WeaveDB on Execution Machine.
버전
11
메인테이너
1
라이선스
MIT
최초 publish
2022-10-28
publisher
asteroiddao
tarball
2,054 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2022-11-24
// publisher 캠페인by asteroiddao
이 계정에서 catch된 패키지 9건고립된 catch가 아닙니다. 동일 publisher가 8개의 다른 패키지를 추가로 발행했고, 모두 파이프라인이 catch했습니다 — 일회성이 아닌 조직적 캠페인의 형태. 아래 링크는 각 형제 catch의 분석으로 이동합니다.
// offending code· @0.7.3· no static-pattern hits
- @0.7.3··AUTO-PUBLISHED·publisher: asteroiddaoheuristic 75/100static flags 0llm skippedmature-packagehas-source-repoosv-flagged:MAL-2026-4718
// offending code· no static-pattern hits
--- package.json (entry) --- { "name": "weavedb-exm-sdk", "version": "0.7.3", "description": "WeaveDB on Execution Machine.", "homepage": "https://weavedb.dev", "repository": { "type": "git", "url": "https://github.com/weavedb/weavedb" }, "main": "index.js", "license": "MIT", "engines": { "node": "16" }, "dependencies": { "@execution-machine/sdk": "^0.1.6", "arweave": "^1.11.4", "ramda": "^0.28.0", "weavedb-base": "^0.7.3" }, "devDependencies": { "esbuild": "^0.14.50", "rimraf": "^3.0.2" } } --- index.js (entry) --- const Base = require("weavedb-base") const Arweave = require("arweave") const { isNil, clone, keys } = require("ramda") const { Exm } = require("@execution-machine/sdk") class SDK extends Base { constructor({ arweave = {}, arweave_wallet, functionId, token }) { super() this.exm = new Exm({ token, }) this.functionId = functionId this.arweave_wallet = arweave_wallet this.arweave = Arweave.init(arweave) this.domain = { name: "weavedb", version: "1", verifyingContract: "exm" } } async request(func, ...query) { return this.viewState({ function: func, query, }) } async viewState(opt) { const tx = await this.exm.functions.write(this.functionId, [opt], true) if ( isNil(tx.data.execution.result) || tx.data.execution.result.success !== true ) { throw new Error() } return tx.data.execution.result.result } async getNonce(addr) { return ( (await this.viewState({ function: "nonce", address: addr, })) + 1 ) } async getIds(tx) { return this.viewState({ function: "ids", tx: keys(tx.validity)[0], }) } async _request(func, para
