{"_id":"@aim-predict/snap","_rev":"2-f73e1a33178d172702a1c365a873d4a2","name":"@aim-predict/snap","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@aim-predict/snap","version":"0.1.0","license":"(MIT-0 OR Apache-2.0)","_id":"@aim-predict/snap@0.1.0","maintainers":[{"name":"fangdazou","email":"founderzou@outlook.com"}],"homepage":"https://www.aimpredict.com/","dist":{"shasum":"be354fe082ae14113647942ec9c0df4838f81494","tarball":"https://registry.npmjs.org/@aim-predict/snap/-/snap-0.1.0.tgz","fileCount":5,"integrity":"sha512-eSuNMmijLk1hi6IDKFeRD8wynVAQLAOpHBFfyWA49I7d1/CqUEycHOgeuHFH1Js0kLTapW4xADrGmMFD6V2WGA==","signatures":[{"sig":"MEUCIQD115BUSec79Ga/C3v543/BLG2z/GWtFlCTWg/U47rVuAIgS6si8oSTObmD0ndk3DvbeIi3fNZ/lg20/dH93Jx1/aE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12572},"main":"./dist/bundle.js","engines":{"node":">=18.6.0"},"gitHead":"b7f9039b866e5aa8a76ac79d3b210492fe3e4eeb","scripts":{"lint":"bun run lint:eslint && bun run lint:misc --check","test":"jest","build":"mm-snap build","clean":"rimraf dist","serve":"mm-snap serve","start":"mm-snap watch","lint:fix":"bun run lint:eslint --fix && bun run lint:misc --write","lint:misc":"prettier '**/*.json' '**/*.md' '**/*.yml' --ignore-path ../../.gitignore --no-error-on-unmatched-pattern","build:clean":"bun run clean && bun run build","lint:eslint":"eslint . --cache","allow-scripts":"bun run --filter \"snap-root\" allow-scripts","prepublishOnly":"mm-snap manifest"},"_npmUser":{"name":"fangdazou","email":"founderzou@outlook.com"},"repository":{"url":"git+https://git.fluxdesk.net/fps/AIM-Build.git","type":"git","directory":"packages/snap/packages/snap"},"_npmVersion":"11.5.1","description":"Prediction Market Aggregator","directories":{},"_nodeVersion":"24.7.0","dependencies":{"@metamask/snaps-sdk":"~10.3.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^9.11.0","rimraf":"^3.0.2","ts-jest":"^29.1.0","typescript":"~5.7.3","@types/react":"18.2.4","@jest/globals":"^29.5.0","@types/react-dom":"18.2.4","@metamask/snaps-cli":"^8.3.0","@metamask/snaps-jest":"^9.8.0"},"_npmOperationalInternal":{"tmp":"tmp/snap_0.1.0_1782393831555_0.9410478859675198","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@aim-predict/snap","version":"0.1.1","description":"Prediction Market Aggregator","homepage":"https://www.aimpredict.com/","license":"(MIT-0 OR Apache-2.0)","repository":{"type":"git","url":"git+https://git.fluxdesk.net/fps/AIM-Build.git","directory":"packages/snap/packages/snap"},"main":"./dist/bundle.js","scripts":{"allow-scripts":"bun run --filter \"snap-root\" allow-scripts","build":"mm-snap build","build:clean":"bun run clean && bun run build","clean":"rimraf dist","lint":"bun run lint:eslint && bun run lint:misc --check","lint:eslint":"eslint . --cache","lint:fix":"bun run lint:eslint --fix && bun run lint:misc --write","lint:misc":"prettier '**/*.json' '**/*.md' '**/*.yml' --ignore-path ../../.gitignore --no-error-on-unmatched-pattern","prepublishOnly":"mm-snap manifest","serve":"mm-snap serve","start":"mm-snap watch","test":"jest"},"dependencies":{"@metamask/snaps-sdk":"~10.3.0"},"devDependencies":{"@jest/globals":"^29.5.0","@metamask/snaps-cli":"^8.3.0","@metamask/snaps-jest":"^9.8.0","eslint":"^9.11.0","jest":"^29.5.0","rimraf":"^3.0.2","ts-jest":"^29.1.0","typescript":"~5.7.3"},"engines":{"node":">=18.6.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_id":"@aim-predict/snap@0.1.1","gitHead":"89c89ac719a3409502da160dae90e20be5647891","_nodeVersion":"24.7.0","_npmVersion":"11.5.1","dist":{"integrity":"sha512-UKKgSTde7oJJgWSLscep/UzLcf4n1Qpxi7526pP3qxb8/8VJgM9+5Yrfa8byYQv/0RUb/U8HuF0Dp4pV7yU0Dw==","shasum":"b3bf126f1a5c87a3af8fe739c280aa411ef04e5d","tarball":"https://registry.npmjs.org/@aim-predict/snap/-/snap-0.1.1.tgz","fileCount":5,"unpackedSize":13450,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIH28R0tr8wzKMJkFCZ/2kLiWHnm70dbm3M3xeT1V8epVAiEA7iYbAQ4C2O+71T7/7flylkjjVR3LyqJlDmGP61RYNlM="}]},"_npmUser":{"name":"fangdazou","email":"founderzou@outlook.com"},"directories":{},"maintainers":[{"name":"fangdazou","email":"founderzou@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/snap_0.1.1_1784813828226_0.4895367042151093"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-25T13:23:51.434Z","modified":"2026-07-23T13:37:08.542Z","0.1.0":"2026-06-25T13:23:51.702Z","0.1.1":"2026-07-23T13:37:08.388Z"},"license":"(MIT-0 OR Apache-2.0)","homepage":"https://www.aimpredict.com/","repository":{"type":"git","url":"git+https://git.fluxdesk.net/fps/AIM-Build.git","directory":"packages/snap/packages/snap"},"description":"Prediction Market Aggregator","maintainers":[{"name":"fangdazou","email":"founderzou@outlook.com"}],"readme":"# AimPredict Snap\n\nMetaMask Snap for [AimPredict](https://www.aimpredict.com/) wallet push notifications.\n\nWhen wallet push is enabled in AimPredict and your MetaMask address is linked, this Snap polls for unread alerts every minute and shows in-app notifications for followed prediction markets (price moves, volume spikes, market closing, and more).\n\n## Snap ID\n\n```\nnpm:@aim-predict/snap\n```\n\n## Install\n\nThe recommended way to install is from the AimPredict user center:\n\n1. Sign in at [aimpredict.com](https://www.aimpredict.com/)\n2. Open **User Center** → enable **Wallet push**\n3. Click **Install AimPredict Snap** (or **Reconnect Snap** if already installed)\n4. Approve the Snap in MetaMask\n\nYou can also install programmatically from a dapp:\n\n```ts\nawait ethereum.request({\n  method: 'wallet_requestSnaps',\n  params: {\n    'npm:@aim-predict/snap': { version: '0.1.1' },\n  },\n});\n\nawait ethereum.request({\n  method: 'wallet_invokeSnap',\n  params: {\n    snapId: 'npm:@aim-predict/snap',\n    request: {\n      method: 'configure',\n      params: { apiBaseUrl: 'https://www.aimpredict.com' },\n    },\n  },\n});\n```\n\n## Permissions\n\n\n| Permission                    | Purpose                                           |\n| ----------------------------- | ------------------------------------------------- |\n| `endowment:cronjob`           | Poll AimPredict every minute for new alerts       |\n| `endowment:network-access`    | Call `POST /api/snap/messages`                    |\n| `endowment:ethereum-provider` | Read linked wallet addresses                      |\n| `snap_manageState`            | Store poll cursor and API base URL                |\n| `snap_notify`                 | Show in-app notifications with expandable details |\n| `endowment:rpc`               | Expose `configure` and `pollMessages` to dapps    |\n\n\n## RPC methods\n\n### `configure`\n\nSets the AimPredict API base URL and requests wallet account access.\n\n```ts\n{ method: 'configure', params: { apiBaseUrl: 'https://www.aimpredict.com' } }\n```\n\n### `pollMessages`\n\nManually triggers a poll (also invoked by the cron job).\n\n## Links\n\n- Website: [https://www.aimpredict.com/](https://www.aimpredict.com/)\n\n## License\n\nMIT-0 OR Apache-2.0","readmeFilename":"README.md"}