{"id":20406934,"url":"https://github.com/panukettu/pkxp-forge-safe","last_synced_at":"2026-01-31T16:34:08.410Z","repository":{"id":242203992,"uuid":"791003461","full_name":"panukettu/pkxp-forge-safe","owner":"panukettu","description":"Create safe transactions from forge scripts.","archived":false,"fork":false,"pushed_at":"2024-09-12T02:31:57.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-11T11:33:09.685Z","etag":null,"topics":["forge","gnosis-safe","multisig","solidity"],"latest_commit_sha":null,"homepage":"","language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/panukettu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-04-23T23:20:29.000Z","updated_at":"2024-09-23T00:44:23.000Z","dependencies_parsed_at":"2024-06-01T10:56:26.833Z","dependency_job_id":"fe042521-b72d-4c30-b68e-f59ddb58636e","html_url":"https://github.com/panukettu/pkxp-forge-safe","commit_stats":null,"previous_names":["panukettu/forge-safe"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/panukettu/pkxp-forge-safe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panukettu%2Fpkxp-forge-safe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panukettu%2Fpkxp-forge-safe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panukettu%2Fpkxp-forge-safe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panukettu%2Fpkxp-forge-safe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/panukettu","download_url":"https://codeload.github.com/panukettu/pkxp-forge-safe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panukettu%2Fpkxp-forge-safe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28947664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["forge","gnosis-safe","multisig","solidity"],"created_at":"2024-11-15T05:20:04.520Z","updated_at":"2026-01-31T16:34:08.383Z","avatar_url":"https://github.com/panukettu.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# forge + safe\n\nSend batch of transactions from forge script to Safe Transaction Service.\nSupports Trezor, Ledger or Frame (for pk/mnemonic and it also supports Trezor/Ledger).\n\nChains: Mainnet, Sepolia, Optimism, Arbitrum, BSC, Gnosis, Polygon, Polygon zkEVM, zkSync, Celo, Aurora\n\n## Requirements\n\n- **foundry**: required, obvious\n\n```shell\ncurl -L https://foundry.paradigm.xyz | bash\n```\n\n- **bun**: required, for ffi-scripts\n\n```shell\ncurl -fsSL https://bun.sh/install | bash\n```\n\n- **frame**: optional, required for pk/mnemonic\n\nhttps://frame.sh/\n\n- **just**: optional, buut better just use it\n\nhttps://github.com/casey/just\n\n## Setup\n\n```shell\nforge install \u0026\u0026 cp .env.example .env\n```\n\n- SIGNER_TYPE: 0 = Trezor, 1 = Frame, 2 = Ledger\n- SAFE_ADDRESS: Address of your safe.\n- SAFE_NETWORK: Matches what is configured in foundry.toml eg. \"arbitrum\".\n- SAFE_CHAIN_ID: Matches the above network.\n- MNEMONIC_PATH: Derivation path for directly using trezor/ledger.\n- MNEMONIC: Optional, some other wallet (use with eg. getAddr(0), see: SafeTxBase.sol)\n\n## Usage\n\nThis thing relies on unique function naming as it uses `--sig \"myFunc()\"` - do not use the default function `run()`.\n\nOnly transactions broadcasted by `SAFE_ADDRESS` are included in the batch. If the batch depends on other transactions they need to be broadcasted separately.\n\n### Dry run\n\nSimulates and signs a batch without proposing:\n\n```shell\njust safe-dry Send safeTx\n```\n\nYou can later propose it using the output file written in `temp/sign`, eg:\n\n```shell\njust safe-file 1717240045-42161-signed-batch\n```\n\n### Simulate and propose\n\nWith current nonce\n\n```shell\njust safe-run Send safeTx\n```\n\nor\n\n```shell\nforge script Send --sig \"safeTx()\" \u0026\u0026 forge script SafeScript --sig \"sendBatch(string)\" safeTx --ffi -vvv\n```\n\nWith custom nonce\n\n```shell\njust safe-run-nonce Send safeTx 111\n```\n\nor\n\n```shell\nforge script Send --sig \"safeTx()\" \u0026\u0026 forge script SafeScript --sig \"sendBatch(string,uint256)\" safeTx 111 --ffi -vvv\n```\n\n### Delete a proposed transaction batch\n\n```shell\njust safe-del 0xSAFE_TX_HASH\n```\n\nor\n\n```shell\nbun utils/ffi.ts deleteBatch 0xSAFE_TX_HASH\n```\n\n## Misc\n\n- Look into `utils/ffi.ts` for other available commands using `bun utils/ffi.ts command ...args`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanukettu%2Fpkxp-forge-safe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpanukettu%2Fpkxp-forge-safe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanukettu%2Fpkxp-forge-safe/lists"}