{"id":18263320,"url":"https://github.com/safe-global/safe-token","last_synced_at":"2025-09-02T17:47:17.964Z","repository":{"id":37087547,"uuid":"450472507","full_name":"safe-global/safe-token","owner":"safe-global","description":"Safe Token","archived":false,"fork":false,"pushed_at":"2024-08-02T13:42:06.000Z","size":13714,"stargazers_count":25,"open_issues_count":5,"forks_count":21,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-03-20T18:22:33.472Z","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":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/safe-global.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"publiccode":null,"codemeta":null}},"created_at":"2022-01-21T11:55:06.000Z","updated_at":"2025-01-07T15:43:15.000Z","dependencies_parsed_at":"2024-11-05T11:14:24.291Z","dependency_job_id":"e4292e2d-e141-4d93-8203-23513f8901ba","html_url":"https://github.com/safe-global/safe-token","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safe-global%2Fsafe-token","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safe-global%2Fsafe-token/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safe-global%2Fsafe-token/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safe-global%2Fsafe-token/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/safe-global","download_url":"https://codeload.github.com/safe-global/safe-token/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247085300,"owners_count":20881154,"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":"2024-11-05T11:10:46.723Z","updated_at":"2025-04-04T20:31:05.769Z","avatar_url":"https://github.com/safe-global.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Safe Token Contracts\n=====================\n\n### Contract behaviour\n- [Deployment](./docs/deployment.md)\n- [Token](./docs/token.md)\n- [Vesting Pool](./docs/vesting.md)\n- [Airdrop](./docs/airdrop.md)\n\n### Audits\n- [G0 Group Audit of the Token contract](./docs/g0_audit_token_contract.pdf)\n- [G0 Group Audit of the VestingPool contract](./docs/g0_audit_vesting_contract.pdf)\n- [Ackee Blockchain Audit of the VestingPool contract](./docs/ackee_audit_vesting_contract.pdf)\n- [Ackee Blockchain Audit of the Airdrop contract](./docs/ackee_audit_airdrop_contract.pdf)\n\nUsage\n-----\n### Install requirements with yarn:\n\n```bash\nyarn\n```\n\n### Run all tests:\n\n```bash\nyarn build\nyarn test\n```\n\n### Deploy\n\n\u003e :warning: **Make sure to use the correct commit when deploying the contracts.** Any change (even comments) within the contract files will result in different addresses. The tagged versions can be found in the [releases](https://github.com/safe-global/safe-token/releases).\n\nThis will deploy the contracts deterministically and verify the contracts on etherscan using [Solidity 0.7.6](https://github.com/ethereum/solidity/releases/tag/v0.7.6) by default.\n\nPreparation:\n- Set `MNEMONIC` in `.env`\n- Set `INFURA_KEY` in `.env`\n\n```bash\nyarn deploy-all \u003cnetwork\u003e\n```\n\nThis will perform the following steps\n\n```bash\nyarn build\nyarn hardhat --network \u003cnetwork\u003e deploy\nyarn hardhat --network \u003cnetwork\u003e etherscan-verify\nyarn hardhat --network \u003cnetwork\u003e local-verify\n```\n\n#### Custom Networks\n\nIt is possible to use the `NODE_URL` env var to connect to any EVM based network via an RPC endpoint. This connection then can be used with the `custom` network.\n\nE.g. to deploy the Safe contract suite on that network you would run `yarn deploy-all custom`. \n\nThe resulting addresses should be on all networks the same.\n\nNote: Address will vary if contract code is changed or a different Solidity version is used.\n\n#### Disable Replay protection (EIP-155)\n\nBy default the deployment process uses the [Safe singleton factory](https://github.com/gnosis/safe-singleton-factory) for deployment. If \nSome networks require replay protection. If replay protection is not required it is possible to use a presigned transaction without replay protection to deploy the comunity factory (see https://github.com/Arachnid/deterministic-deployment-proxy). To enable this the `USE_COMMUNITY_FACTORY` env var has to be set to `true` (see `.env.sample`).\n\nNote: This will result in different addresses compared to the default deployment process.\n\n### Verify contract\n\nThis command will use the deployment artifacts to compile the contracts and compare them to the onchain code\n```bash\nyarn hardhat --network \u003cnetwork\u003e local-verify\n```\n\nThis command will upload the contract source to Etherescan\n```bash\nyarn hardhat --network \u003cnetwork\u003e etherscan-verify\n```\n\nSecurity and Liability\n----------------------\nAll contracts are WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\nLicense\n-------\nAll smart contracts are released under LGPL-3.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafe-global%2Fsafe-token","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsafe-global%2Fsafe-token","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafe-global%2Fsafe-token/lists"}