{"id":28652302,"url":"https://github.com/morpho-org/snapshot-safe-sync","last_synced_at":"2025-06-13T06:07:49.726Z","repository":{"id":190133736,"uuid":"681716669","full_name":"morpho-org/snapshot-safe-sync","owner":"morpho-org","description":"Synchronize Snapshot ⚡ and Safe{Wallet} backends for offchain signatures","archived":false,"fork":false,"pushed_at":"2024-03-02T17:57:28.000Z","size":66,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-26T14:42:00.148Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/morpho-org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-08-22T15:47:59.000Z","updated_at":"2025-05-22T17:49:31.000Z","dependencies_parsed_at":"2024-02-06T12:48:28.975Z","dependency_job_id":"c10220ce-e10f-4323-acfb-e363e8307f58","html_url":"https://github.com/morpho-org/snapshot-safe-sync","commit_stats":null,"previous_names":["morpho-labs/snapshot-safe-synchronizer"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/morpho-org/snapshot-safe-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fsnapshot-safe-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fsnapshot-safe-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fsnapshot-safe-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fsnapshot-safe-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morpho-org","download_url":"https://codeload.github.com/morpho-org/snapshot-safe-sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fsnapshot-safe-sync/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259592261,"owners_count":22881266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-13T06:05:45.965Z","updated_at":"2025-06-13T06:07:49.700Z","avatar_url":"https://github.com/morpho-org.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# snapshot-safe-synchronizer\n\n[![npm package][npm-img]][npm-url]\n[![Build Status][build-img]][build-url]\n[![Downloads][downloads-img]][downloads-url]\n[![Issues][issues-img]][issues-url]\n[![Commitizen Friendly][commitizen-img]][commitizen-url]\n[![Semantic Release][semantic-release-img]][semantic-release-url]\n\n\u003e Synchronize Snapshot ⚡ and Safe{Wallet} backends for offchain signatures\n\nThe EIP-1271 is now supported for offchain signatures by both snapshot \u0026 [safe](https://help.safe.global/en/articles/40783-what-are-signed-messages) backends.\n\nHowever, Snapshot is not pulling signatures from safe after having collected all required signatures. \nThis script is pulling signed messages from safe and pushing them to snapshot, after a small transformation to validate the payload.\n\nYou can run this script as a cron job to keep your snapshot proposals up to date with the latest signatures, or run it manually after\nyou have collected all required signatures.\n\n## Getting started\n\nYou can run the script on the fly with npx:\n\n```bash\nnpx snapshot-safe-sync \u003caddress-or-ens\u003e\n```\n\nThe CLI accept an optional --rpc-url to resolve the ENS. By default, the script is using the MAINNET_RPC_URL env variable, and fallbacks on the the default rpc of `ethers`\n\n```bash\nnpx snapshot-safe-sync \u003caddress-or-ens\u003e --rpc-url \u003crpc-url\u003e\n```\n\nOr call the function in a script:\n\n```js\nconst { getDefaultProvider } = require('ethers');\nconst { syncBackends } = require('snapshot-safe-sync');\n\nconst provider = getDefaultProvider();\n\nsyncBackends('\u003caddress-or-ens\u003e', provider);\n```\nOr, with a module import:\n\n```js\nimport { getDefaultProvider } from 'ethers';\nimport { syncBackends } from 'snapshot-safe-sync';\n\nsyncBackends('\u003caddress-or-ens\u003e', getDefaultProvider(process.env.MAINNET_RPC_URL));\n```\n\nyou can set a RPC_URL to resolve the ENS. By default, the script is using the default rpc of `ethers`\n\n\u003e **Warning**\n\u003e The script is build only for mainnet.\n\n[build-img]: https://github.com/morpho-labs/snapshot-safe-sync/actions/workflows/release.yml/badge.svg\n[build-url]: https://github.com/morpho-labs/snapshot-safe-sync/actions/workflows/release.yml\n[downloads-img]: https://img.shields.io/npm/dt/snapshot-safe-sync\n[downloads-url]: https://www.npmtrends.com/snapshot-safe-sync\n[npm-img]: https://img.shields.io/npm/v/snapshot-safe-sync\n[npm-url]: https://www.npmjs.com/package/snapshot-safe-sync\n[issues-img]: https://img.shields.io/github/issues/morpho-labs/snapshot-safe-sync\n[issues-url]: https://github.com/morpho-labs/snapshot-safe-sync/issues\n[codecov-img]: https://codecov.io/gh/morpho-labs/snapshot-safe-sync/branch/main/graph/badge.svg\n[codecov-url]: https://codecov.io/gh/morpho-labs/snapshot-safe-sync\n[semantic-release-img]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\n[semantic-release-url]: https://github.com/semantic-release/semantic-release\n[commitizen-img]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg\n[commitizen-url]: http://commitizen.github.io/cz-cli/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorpho-org%2Fsnapshot-safe-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorpho-org%2Fsnapshot-safe-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorpho-org%2Fsnapshot-safe-sync/lists"}