{"id":22072653,"url":"https://github.com/broxus/token-updater","last_synced_at":"2025-03-23T19:24:39.605Z","repository":{"id":66355187,"uuid":"466570248","full_name":"broxus/token-updater","owner":"broxus","description":"Contracts for update old tip-3 standard tokens to new tip-3.1 standard.","archived":false,"fork":false,"pushed_at":"2022-03-08T20:44:58.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-29T02:47:19.500Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/broxus.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,"publiccode":null,"codemeta":null}},"created_at":"2022-03-05T21:19:55.000Z","updated_at":"2022-03-05T23:23:41.000Z","dependencies_parsed_at":"2023-06-08T06:45:42.041Z","dependency_job_id":null,"html_url":"https://github.com/broxus/token-updater","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/broxus%2Ftoken-updater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/broxus%2Ftoken-updater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/broxus%2Ftoken-updater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/broxus%2Ftoken-updater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/broxus","download_url":"https://codeload.github.com/broxus/token-updater/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245155572,"owners_count":20569726,"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-30T21:14:08.784Z","updated_at":"2025-03-23T19:24:39.583Z","avatar_url":"https://github.com/broxus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Description \nSmart contracts to update old TIP-3 standard tokens to the new TIP-3.1 standard.\n\n## TokenUpdaterFactory\n\nMainnet address: `0:992d790ee8aadd1f2a3b41a392a55a1fd00a8dcafbb0fd29444e0ad7c458d526`\n\nABI: [TokenUpdaterFactory.abi.json](https://github.com/broxus/token-updater/blob/master/build/TokenUpdaterFactory.abi.json)\n\n## How it works:\n\nPublic method `TokenUpdaterFactory.createUpdater` allows you to deploy new `TokenRoot` + `TokenUpdater` contracts.\n\nAfter deployment `TokenUpdater` is owner of `TokenRoot`.\n\nWhen `TokenUpdater` receives a burn callback from an old token root, it will mint new tokens.\n\n`TokenUpdater` allows its owner to receive `TokenRoot` ownership. But in this case, users will no longer be able to update tokens.\n\n## How to allow upgrade tokens for users: \n\n### 1. Create TokenUpdater\n\nRun the `TokenUpdaterFactory.createUpdater` method.\\\nGas value: 10 EVER\n\nParameters: \\\n`callId` - This value is only used for callbacks. Recommended value: 0.\\\n`oldRoot` - Old token address.\\\n`updaterOwner` - Address which can acquire new TokenRoot ownership in the future.\\\n`name` - New token name. Recommended value: same as the old token name.\\\n`symbol` - New token symbol. Recommended value: same as the old token symbol.\\\n`decimals` - New token decimals. Recommended value: same as the old token decimals.\\\n`burnByRootDisabled` - Disable burn via the root functionality for new tokens. Recommended value: true.\\\n`burnPaused` - Pause burn of new tokens. Recommended value: false.\\\n`remainingGasTo` - Address for remaining gas. \n\nAddresses of deployed contracts can be found in emitted event \\\n```event UpdaterCreated(address oldRoot, address newRoot, address updater);```\n\n### 2. Create pull-request to the repository https://github.com/broxus/everscale-assets-upgrade\n\nModify `main.json` by adding item\n```\n{\n    \"symbol\": \"\u003csymbol\u003e\",\n    \"logoURI\": \"\u003cicon url\u003e\",\n    \"rootV4\": \"\u003cold token root address\u003e\",\n    \"rootV5\": \"\u003cnew token root address\u003e\",\n    \"proxy\": \"\u003cupdater address\u003e\"\n}\n```\n\n### 3. After the pull-request has been merged, it will be possible for users to upgrade tokens using DAPPs https://flatqube.io or https://octusbridge.io\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbroxus%2Ftoken-updater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbroxus%2Ftoken-updater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbroxus%2Ftoken-updater/lists"}