{"id":23107829,"url":"https://github.com/kleros/emergency-toolkit","last_synced_at":"2025-04-03T22:44:10.547Z","repository":{"id":48125460,"uuid":"497047563","full_name":"kleros/emergency-toolkit","owner":"kleros","description":"Collection of tools for incidents and other emergencies.","archived":false,"fork":false,"pushed_at":"2023-02-10T02:14:18.000Z","size":7750,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T16:51:05.178Z","etag":null,"topics":["emergency-response","hardhat","opsec"],"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/kleros.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-05-27T15:28:43.000Z","updated_at":"2022-06-30T15:03:08.000Z","dependencies_parsed_at":"2025-02-09T10:41:18.968Z","dependency_job_id":"c9de516a-ff1a-4c76-b157-b3e3b046f095","html_url":"https://github.com/kleros/emergency-toolkit","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/kleros%2Femergency-toolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleros%2Femergency-toolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleros%2Femergency-toolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleros%2Femergency-toolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kleros","download_url":"https://codeload.github.com/kleros/emergency-toolkit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247092373,"owners_count":20882217,"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":["emergency-response","hardhat","opsec"],"created_at":"2024-12-17T01:16:16.926Z","updated_at":"2025-04-03T22:44:10.532Z","avatar_url":"https://github.com/kleros.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Emergency Toolkit\nA collection of tools for incidents and other emergencies.\n\n## Setup\nAs usual:\n1. `yarn install`\n1. `cp .env.example .env`\n1. Edit `.env` with your keys\n\n## Resending a stuck transaction\n\n\n### Private key\nYou must have access to the private key used to send the transaction.\n\nFor example if the Court's Action Callback Bot has a transaction pending, typically because the gas was set too low, you must set the `.env` variable `PRIVATE_KEY` corresponding to bot's private key.\n\n### Hardhat task `resend-tx`\n\n**Overview**\n\n```bash\n$ yarn hardhat resend-tx --help\nHardhat version 2.9.6\n\nUsage: hardhat [GLOBAL OPTIONS] resend-tx --fee-per-gas \u003cSTRING\u003e --priority-fee-per-gas \u003cSTRING\u003e --txid \u003cSTRING\u003e\n\nOPTIONS:\n\n  --fee-per-gas         \tThe fee per gas in gwei. \n  --priority-fee-per-gas\tThe priority fee in gwei. \n  --txid                \tThe transaction identifier \n\nresend-tx: Resends a transaction\n\nFor global options help run: hardhat help\n```\n\n:warning: In addition to the these task-specific options, we need to specify the `--network` global option.\n\n**Example**\n\nOnce you have identified a stuck transaction, pass it via `--txid`.\n\n```bash\n$ yarn hardhat resend-tx --network mainnet --txid 0x04dd7bcd067c7157517314601721426848737a17452013935bae73aa8b3c3908  --fee-per-gas 35 --priority-fee-per-gas 2\nOriginal Tx: {\n  hash: '0x04dd7bcd067c7157517314601721426848737a17452013935bae73aa8b3c3908',\n  type: 2,\n  accessList: [],\n  blockHash: null,\n  blockNumber: null,\n  transactionIndex: null,\n  confirmations: 0,\n  from: '0x4D2f8c3b4052aCA0360a50ae9B47cFC084cd1E28',\n  gasPrice: [BigNumber],\n  maxPriorityFeePerGas: [BigNumber],\n  maxFeePerGas: [BigNumber],\n  gasLimit: [BigNumber],\n  to: '0x82458d1C812D7c930Bb3229c9e159cbabD9AA8Cb',\n  value: [BigNumber],\n  nonce: 13486,\n  data: '0xa8f0802e000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000e0e1bc8c6cd1b81993e2fcfb80832d814886ea3800000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024974e527a000000000000000000000000000000000000000000000000000000000000001500000000000000000000000000000000000000000000000000000000',\n  r: '0x7f363cb4277baa395cba846058fa48081d0975a6922052720c33be49853bfd75',\n  s: '0x6352dad094013987d6558fd84706b933232f1e89f76ba87bcd21fa5b46b2ba1b',\n  v: 0,\n  creates: null,\n  chainId: 1,\n  wait: [Function (anonymous)]\n}\nResent Tx: {\n  type: 2,\n  chainId: 1,\n  nonce: 13486,\n  maxPriorityFeePerGas: [BigNumber],\n  maxFeePerGas: [BigNumber],\n  gasPrice: null,\n  gasLimit: [BigNumber],\n  to: '0x82458d1C812D7c930Bb3229c9e159cbabD9AA8Cb',\n  value: [BigNumber],\n  data: '0xa8f0802e000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000e0e1bc8c6cd1b81993e2fcfb80832d814886ea3800000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024974e527a000000000000000000000000000000000000000000000000000000000000001500000000000000000000000000000000000000000000000000000000',\n  accessList: [],\n  hash: '0xc62155c952170be95c5c9485e3495ddb47279b78ef72be44262c63cdd6b4b0b6',\n  v: 0,\n  r: '0x02e9c97178303c1205a450fdd536c471eb529ed7eb171c8a394e397b88c56879',\n  s: '0x67f8c061176c7f5d73f59e6fe1396b49796195a57595a4d46434750b16253b18',\n  from: '0x4D2f8c3b4052aCA0360a50ae9B47cFC084cd1E28',\n  confirmations: 0,\n  wait: [Function (anonymous)]\n}\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkleros%2Femergency-toolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkleros%2Femergency-toolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkleros%2Femergency-toolkit/lists"}