diff --git a/extension/.cspell.json b/extension/.cspell.json index 1be2fc4a..220fa185 100644 --- a/extension/.cspell.json +++ b/extension/.cspell.json @@ -53,7 +53,6 @@ "Stakewise", "Sushiswap", "toastify", - "typechain", "Uids", "walletconnect", "whatsabi", @@ -68,7 +67,6 @@ "tsconfig.json", "public/build/**", "public/_metadata/**", - "src/types/typechain/**", "**/*.svg" ] } diff --git a/extension/.eslintignore b/extension/.eslintignore index 8c21f22a..1efc134d 100644 --- a/extension/.eslintignore +++ b/extension/.eslintignore @@ -1,2 +1 @@ -esbuild.js -src/types/typechain \ No newline at end of file +esbuild.js \ No newline at end of file diff --git a/extension/.pnp.cjs b/extension/.pnp.cjs index c70e9563..d84282b5 100755 --- a/extension/.pnp.cjs +++ b/extension/.pnp.cjs @@ -39,7 +39,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@safe-global/safe-gateway-typescript-sdk", "npm:3.14.0"],\ ["@shazow/whatsabi", "npm:0.2.1"],\ ["@testing-library/jest-dom", "npm:5.17.0"],\ - ["@typechain/ethers-v5", "virtual:919984625f908c00f58e56a3a023a4bcc5a02977fb9ef0230392d1979706b2cc874abc287345e6561886da69e547c4d1330a8c5645be8f7e62b06d5144141c21#npm:10.2.1"],\ ["@types/chrome", "npm:0.0.233"],\ ["@types/events", "npm:3.0.3"],\ ["@types/jest", "npm:27.5.2"],\ @@ -87,7 +86,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["react-toastify", "virtual:919984625f908c00f58e56a3a023a4bcc5a02977fb9ef0230392d1979706b2cc874abc287345e6561886da69e547c4d1330a8c5645be8f7e62b06d5144141c21#npm:9.1.3"],\ ["rimraf", "npm:3.0.2"],\ ["ts-jest", "virtual:919984625f908c00f58e56a3a023a4bcc5a02977fb9ef0230392d1979706b2cc874abc287345e6561886da69e547c4d1330a8c5645be8f7e62b06d5144141c21#npm:27.1.5"],\ - ["typechain", "virtual:919984625f908c00f58e56a3a023a4bcc5a02977fb9ef0230392d1979706b2cc874abc287345e6561886da69e547c4d1330a8c5645be8f7e62b06d5144141c21#npm:8.3.2"],\ ["typescript", "patch:typescript@npm%3A4.9.5#~builtin::version=4.9.5&hash=289587"],\ ["typescript-plugin-css-modules", "virtual:919984625f908c00f58e56a3a023a4bcc5a02977fb9ef0230392d1979706b2cc874abc287345e6561886da69e547c4d1330a8c5645be8f7e62b06d5144141c21#npm:3.4.0"]\ ],\ @@ -3489,46 +3487,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["@typechain/ethers-v5", [\ - ["npm:10.2.1", {\ - "packageLocation": "./.yarn/cache/@typechain-ethers-v5-npm-10.2.1-898ac8fd8c-852da4b1ff.zip/node_modules/@typechain/ethers-v5/",\ - "packageDependencies": [\ - ["@typechain/ethers-v5", "npm:10.2.1"]\ - ],\ - "linkType": "SOFT"\ - }],\ - ["virtual:919984625f908c00f58e56a3a023a4bcc5a02977fb9ef0230392d1979706b2cc874abc287345e6561886da69e547c4d1330a8c5645be8f7e62b06d5144141c21#npm:10.2.1", {\ - "packageLocation": "./.yarn/__virtual__/@typechain-ethers-v5-virtual-7f926d65cc/0/cache/@typechain-ethers-v5-npm-10.2.1-898ac8fd8c-852da4b1ff.zip/node_modules/@typechain/ethers-v5/",\ - "packageDependencies": [\ - ["@typechain/ethers-v5", "virtual:919984625f908c00f58e56a3a023a4bcc5a02977fb9ef0230392d1979706b2cc874abc287345e6561886da69e547c4d1330a8c5645be8f7e62b06d5144141c21#npm:10.2.1"],\ - ["@ethersproject/abi", "npm:5.7.0"],\ - ["@ethersproject/providers", "npm:5.7.2"],\ - ["@types/ethers", null],\ - ["@types/ethersproject__abi", null],\ - ["@types/ethersproject__providers", null],\ - ["@types/typechain", null],\ - ["@types/typescript", null],\ - ["ethers", "npm:5.7.2"],\ - ["lodash", "npm:4.17.21"],\ - ["ts-essentials", "virtual:7f926d65ccbe4c6a060d1b52ce9c043fd148aee6189d63a0be9171e216b11723684cc8ac267c2b98fdcee2cd6f2e2bb32aee2892d05066e55f58a704e6ab76d2#npm:7.0.3"],\ - ["typechain", "virtual:919984625f908c00f58e56a3a023a4bcc5a02977fb9ef0230392d1979706b2cc874abc287345e6561886da69e547c4d1330a8c5645be8f7e62b06d5144141c21#npm:8.3.2"],\ - ["typescript", "patch:typescript@npm%3A4.9.5#~builtin::version=4.9.5&hash=289587"]\ - ],\ - "packagePeers": [\ - "@ethersproject/abi",\ - "@ethersproject/providers",\ - "@types/ethers",\ - "@types/ethersproject__abi",\ - "@types/ethersproject__providers",\ - "@types/typechain",\ - "@types/typescript",\ - "ethers",\ - "typechain",\ - "typescript"\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["@types/babel__core", [\ ["npm:7.20.5", {\ "packageLocation": "./.yarn/cache/@types-babel__core-npm-7.20.5-4d95f75eab-a3226f7930.zip/node_modules/@types/babel__core/",\ @@ -4803,22 +4761,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["array-back", [\ - ["npm:3.1.0", {\ - "packageLocation": "./.yarn/cache/array-back-npm-3.1.0-a52d25f5a3-7205004fcd.zip/node_modules/array-back/",\ - "packageDependencies": [\ - ["array-back", "npm:3.1.0"]\ - ],\ - "linkType": "HARD"\ - }],\ - ["npm:4.0.2", {\ - "packageLocation": "./.yarn/cache/array-back-npm-4.0.2-f735073f8f-f306032707.zip/node_modules/array-back/",\ - "packageDependencies": [\ - ["array-back", "npm:4.0.2"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["array-buffer-byte-length", [\ ["npm:1.0.0", {\ "packageLocation": "./.yarn/cache/array-buffer-byte-length-npm-1.0.0-331671f28a-044e101ce1.zip/node_modules/array-buffer-byte-length/",\ @@ -6046,32 +5988,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["command-line-args", [\ - ["npm:5.2.1", {\ - "packageLocation": "./.yarn/cache/command-line-args-npm-5.2.1-093a68d295-e759519087.zip/node_modules/command-line-args/",\ - "packageDependencies": [\ - ["command-line-args", "npm:5.2.1"],\ - ["array-back", "npm:3.1.0"],\ - ["find-replace", "npm:3.0.0"],\ - ["lodash.camelcase", "npm:4.3.0"],\ - ["typical", "npm:4.0.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ - ["command-line-usage", [\ - ["npm:6.1.3", {\ - "packageLocation": "./.yarn/cache/command-line-usage-npm-6.1.3-145c2dabe1-8261d4e553.zip/node_modules/command-line-usage/",\ - "packageDependencies": [\ - ["command-line-usage", "npm:6.1.3"],\ - ["array-back", "npm:4.0.2"],\ - ["chalk", "npm:2.4.2"],\ - ["table-layout", "npm:1.0.2"],\ - ["typical", "npm:5.2.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["commander", [\ ["npm:9.5.0", {\ "packageLocation": "./.yarn/cache/commander-npm-9.5.0-993b3f2434-c7a3e27aa5.zip/node_modules/commander/",\ @@ -6771,15 +6687,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["deep-extend", [\ - ["npm:0.6.0", {\ - "packageLocation": "./.yarn/cache/deep-extend-npm-0.6.0-e182924219-7be7e5a8d4.zip/node_modules/deep-extend/",\ - "packageDependencies": [\ - ["deep-extend", "npm:0.6.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["deep-is", [\ ["npm:0.1.4", {\ "packageLocation": "./.yarn/cache/deep-is-npm-0.1.4-88938b5a67-edb65dd0d7.zip/node_modules/deep-is/",\ @@ -8410,16 +8317,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["find-replace", [\ - ["npm:3.0.0", {\ - "packageLocation": "./.yarn/cache/find-replace-npm-3.0.0-686bd07d28-6b04bcfd79.zip/node_modules/find-replace/",\ - "packageDependencies": [\ - ["find-replace", "npm:3.0.0"],\ - ["array-back", "npm:3.1.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["find-root", [\ ["npm:1.1.0", {\ "packageLocation": "./.yarn/cache/find-root-npm-1.1.0-a16a94005f-b2a59fe4b6.zip/node_modules/find-root/",\ @@ -8569,16 +8466,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["universalify", "npm:0.1.2"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:7.0.1", {\ - "packageLocation": "./.yarn/cache/fs-extra-npm-7.0.1-b33a5e53e9-141b9dccb2.zip/node_modules/fs-extra/",\ - "packageDependencies": [\ - ["fs-extra", "npm:7.0.1"],\ - ["graceful-fs", "npm:4.2.11"],\ - ["jsonfile", "npm:4.0.0"],\ - ["universalify", "npm:0.1.2"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["fs-minipass", [\ @@ -8800,19 +8687,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ],\ "linkType": "HARD"\ }],\ - ["npm:7.1.7", {\ - "packageLocation": "./.yarn/cache/glob-npm-7.1.7-5698ad9c48-b61f48973b.zip/node_modules/glob/",\ - "packageDependencies": [\ - ["glob", "npm:7.1.7"],\ - ["fs.realpath", "npm:1.0.0"],\ - ["inflight", "npm:1.0.6"],\ - ["inherits", "npm:2.0.4"],\ - ["minimatch", "npm:3.1.2"],\ - ["once", "npm:1.4.0"],\ - ["path-is-absolute", "npm:1.0.1"]\ - ],\ - "linkType": "HARD"\ - }],\ ["npm:7.2.3", {\ "packageLocation": "./.yarn/cache/glob-npm-7.2.3-2d866d17a5-29452e97b3.zip/node_modules/glob/",\ "packageDependencies": [\ @@ -13861,15 +13735,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["reduce-flatten", [\ - ["npm:2.0.0", {\ - "packageLocation": "./.yarn/cache/reduce-flatten-npm-2.0.0-01bd4936fa-64393ef99a.zip/node_modules/reduce-flatten/",\ - "packageDependencies": [\ - ["reduce-flatten", "npm:2.0.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["reflect.getprototypeof", [\ ["npm:1.0.4", {\ "packageLocation": "./.yarn/cache/reflect.getprototypeof-npm-1.0.4-fa901640c3-16e2361988.zip/node_modules/reflect.getprototypeof/",\ @@ -14735,15 +14600,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["string-format", [\ - ["npm:2.0.0", {\ - "packageLocation": "./.yarn/cache/string-format-npm-2.0.0-002ceb1816-dada2ef95f.zip/node_modules/string-format/",\ - "packageDependencies": [\ - ["string-format", "npm:2.0.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["string-hash", [\ ["npm:1.1.3", {\ "packageLocation": "./.yarn/cache/string-hash-npm-1.1.3-3cb8892e7c-104b8667a5.zip/node_modules/string-hash/",\ @@ -15039,19 +14895,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["table-layout", [\ - ["npm:1.0.2", {\ - "packageLocation": "./.yarn/cache/table-layout-npm-1.0.2-0b3fe79240-8f41b5671f.zip/node_modules/table-layout/",\ - "packageDependencies": [\ - ["table-layout", "npm:1.0.2"],\ - ["array-back", "npm:4.0.2"],\ - ["deep-extend", "npm:0.6.0"],\ - ["typical", "npm:5.2.0"],\ - ["wordwrapjs", "npm:4.0.1"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["tar", [\ ["npm:4.4.19", {\ "packageLocation": "./.yarn/cache/tar-npm-4.4.19-5f8e81b87e-423c8259b1.zip/node_modules/tar/",\ @@ -15246,41 +15089,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["ts-command-line-args", [\ - ["npm:2.5.1", {\ - "packageLocation": "./.yarn/cache/ts-command-line-args-npm-2.5.1-9de033aad1-7c0a7582e9.zip/node_modules/ts-command-line-args/",\ - "packageDependencies": [\ - ["ts-command-line-args", "npm:2.5.1"],\ - ["chalk", "npm:4.1.2"],\ - ["command-line-args", "npm:5.2.1"],\ - ["command-line-usage", "npm:6.1.3"],\ - ["string-format", "npm:2.0.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ - ["ts-essentials", [\ - ["npm:7.0.3", {\ - "packageLocation": "./.yarn/cache/ts-essentials-npm-7.0.3-dbefe5cb3b-74d75868ac.zip/node_modules/ts-essentials/",\ - "packageDependencies": [\ - ["ts-essentials", "npm:7.0.3"]\ - ],\ - "linkType": "SOFT"\ - }],\ - ["virtual:7f926d65ccbe4c6a060d1b52ce9c043fd148aee6189d63a0be9171e216b11723684cc8ac267c2b98fdcee2cd6f2e2bb32aee2892d05066e55f58a704e6ab76d2#npm:7.0.3", {\ - "packageLocation": "./.yarn/__virtual__/ts-essentials-virtual-7be7f1bef4/0/cache/ts-essentials-npm-7.0.3-dbefe5cb3b-74d75868ac.zip/node_modules/ts-essentials/",\ - "packageDependencies": [\ - ["ts-essentials", "virtual:7f926d65ccbe4c6a060d1b52ce9c043fd148aee6189d63a0be9171e216b11723684cc8ac267c2b98fdcee2cd6f2e2bb32aee2892d05066e55f58a704e6ab76d2#npm:7.0.3"],\ - ["@types/typescript", null],\ - ["typescript", "patch:typescript@npm%3A4.9.5#~builtin::version=4.9.5&hash=289587"]\ - ],\ - "packagePeers": [\ - "@types/typescript",\ - "typescript"\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["ts-jest", [\ ["npm:27.1.5", {\ "packageLocation": "./.yarn/cache/ts-jest-npm-27.1.5-6f0b4fcb08-3ef51c538b.zip/node_modules/ts-jest/",\ @@ -15483,38 +15291,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["typechain", [\ - ["npm:8.3.2", {\ - "packageLocation": "./.yarn/cache/typechain-npm-8.3.2-b02e27439e-146a1896fa.zip/node_modules/typechain/",\ - "packageDependencies": [\ - ["typechain", "npm:8.3.2"]\ - ],\ - "linkType": "SOFT"\ - }],\ - ["virtual:919984625f908c00f58e56a3a023a4bcc5a02977fb9ef0230392d1979706b2cc874abc287345e6561886da69e547c4d1330a8c5645be8f7e62b06d5144141c21#npm:8.3.2", {\ - "packageLocation": "./.yarn/__virtual__/typechain-virtual-89bfca3f67/0/cache/typechain-npm-8.3.2-b02e27439e-146a1896fa.zip/node_modules/typechain/",\ - "packageDependencies": [\ - ["typechain", "virtual:919984625f908c00f58e56a3a023a4bcc5a02977fb9ef0230392d1979706b2cc874abc287345e6561886da69e547c4d1330a8c5645be8f7e62b06d5144141c21#npm:8.3.2"],\ - ["@types/prettier", "npm:2.7.3"],\ - ["@types/typescript", null],\ - ["debug", "virtual:4b12ba5111caf7e8338099bdbc7cb046a9f8e079a44e74d0c03dca469876e3071ebbe671c5e90ae6b78ae33e22c205fa5ed32169a4aabd1404b13c56d09986e1#npm:4.3.4"],\ - ["fs-extra", "npm:7.0.1"],\ - ["glob", "npm:7.1.7"],\ - ["js-sha3", "npm:0.8.0"],\ - ["lodash", "npm:4.17.21"],\ - ["mkdirp", "npm:1.0.4"],\ - ["prettier", "npm:2.8.8"],\ - ["ts-command-line-args", "npm:2.5.1"],\ - ["ts-essentials", "virtual:7f926d65ccbe4c6a060d1b52ce9c043fd148aee6189d63a0be9171e216b11723684cc8ac267c2b98fdcee2cd6f2e2bb32aee2892d05066e55f58a704e6ab76d2#npm:7.0.3"],\ - ["typescript", "patch:typescript@npm%3A4.9.5#~builtin::version=4.9.5&hash=289587"]\ - ],\ - "packagePeers": [\ - "@types/typescript",\ - "typescript"\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["typed-array-buffer", [\ ["npm:1.0.0", {\ "packageLocation": "./.yarn/cache/typed-array-buffer-npm-1.0.0-95cb610310-3e0281c79b.zip/node_modules/typed-array-buffer/",\ @@ -15620,22 +15396,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["typical", [\ - ["npm:4.0.0", {\ - "packageLocation": "./.yarn/cache/typical-npm-4.0.0-2255d8d515-a242081956.zip/node_modules/typical/",\ - "packageDependencies": [\ - ["typical", "npm:4.0.0"]\ - ],\ - "linkType": "HARD"\ - }],\ - ["npm:5.2.0", {\ - "packageLocation": "./.yarn/cache/typical-npm-5.2.0-d4de46c932-ccaeb151a9.zip/node_modules/typical/",\ - "packageDependencies": [\ - ["typical", "npm:5.2.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["ufo", [\ ["npm:1.3.2", {\ "packageLocation": "./.yarn/cache/ufo-npm-1.3.2-dcaf8105d0-f1180bb715.zip/node_modules/ufo/",\ @@ -16882,17 +16642,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["wordwrapjs", [\ - ["npm:4.0.1", {\ - "packageLocation": "./.yarn/cache/wordwrapjs-npm-4.0.1-b6c3c84d76-3d927f3c95.zip/node_modules/wordwrapjs/",\ - "packageDependencies": [\ - ["wordwrapjs", "npm:4.0.1"],\ - ["reduce-flatten", "npm:2.0.0"],\ - ["typical", "npm:5.2.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["wrap-ansi", [\ ["npm:6.2.0", {\ "packageLocation": "./.yarn/cache/wrap-ansi-npm-6.2.0-439a7246d8-6cd96a4101.zip/node_modules/wrap-ansi/",\ @@ -17307,7 +17056,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@safe-global/safe-gateway-typescript-sdk", "npm:3.14.0"],\ ["@shazow/whatsabi", "npm:0.2.1"],\ ["@testing-library/jest-dom", "npm:5.17.0"],\ - ["@typechain/ethers-v5", "virtual:919984625f908c00f58e56a3a023a4bcc5a02977fb9ef0230392d1979706b2cc874abc287345e6561886da69e547c4d1330a8c5645be8f7e62b06d5144141c21#npm:10.2.1"],\ ["@types/chrome", "npm:0.0.233"],\ ["@types/events", "npm:3.0.3"],\ ["@types/jest", "npm:27.5.2"],\ @@ -17355,7 +17103,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["react-toastify", "virtual:919984625f908c00f58e56a3a023a4bcc5a02977fb9ef0230392d1979706b2cc874abc287345e6561886da69e547c4d1330a8c5645be8f7e62b06d5144141c21#npm:9.1.3"],\ ["rimraf", "npm:3.0.2"],\ ["ts-jest", "virtual:919984625f908c00f58e56a3a023a4bcc5a02977fb9ef0230392d1979706b2cc874abc287345e6561886da69e547c4d1330a8c5645be8f7e62b06d5144141c21#npm:27.1.5"],\ - ["typechain", "virtual:919984625f908c00f58e56a3a023a4bcc5a02977fb9ef0230392d1979706b2cc874abc287345e6561886da69e547c4d1330a8c5645be8f7e62b06d5144141c21#npm:8.3.2"],\ ["typescript", "patch:typescript@npm%3A4.9.5#~builtin::version=4.9.5&hash=289587"],\ ["typescript-plugin-css-modules", "virtual:919984625f908c00f58e56a3a023a4bcc5a02977fb9ef0230392d1979706b2cc874abc287345e6561886da69e547c4d1330a8c5645be8f7e62b06d5144141c21#npm:3.4.0"]\ ],\ diff --git a/extension/.prettierignore b/extension/.prettierignore index 1dd22c1a..0e80a3c8 100644 --- a/extension/.prettierignore +++ b/extension/.prettierignore @@ -1,3 +1,2 @@ # package.json is formatted by package managers, so we ignore it here -package.json -src/types/typechain/**/*.ts \ No newline at end of file +package.json \ No newline at end of file diff --git a/extension/.yarn/cache/@typechain-ethers-v5-npm-10.2.1-898ac8fd8c-852da4b1ff.zip b/extension/.yarn/cache/@typechain-ethers-v5-npm-10.2.1-898ac8fd8c-852da4b1ff.zip deleted file mode 100644 index 33dc8df8..00000000 Binary files a/extension/.yarn/cache/@typechain-ethers-v5-npm-10.2.1-898ac8fd8c-852da4b1ff.zip and /dev/null differ diff --git a/extension/.yarn/cache/array-back-npm-3.1.0-a52d25f5a3-7205004fcd.zip b/extension/.yarn/cache/array-back-npm-3.1.0-a52d25f5a3-7205004fcd.zip deleted file mode 100644 index 7e02ce53..00000000 Binary files a/extension/.yarn/cache/array-back-npm-3.1.0-a52d25f5a3-7205004fcd.zip and /dev/null differ diff --git a/extension/.yarn/cache/array-back-npm-4.0.2-f735073f8f-f306032707.zip b/extension/.yarn/cache/array-back-npm-4.0.2-f735073f8f-f306032707.zip deleted file mode 100644 index 6884e6ac..00000000 Binary files a/extension/.yarn/cache/array-back-npm-4.0.2-f735073f8f-f306032707.zip and /dev/null differ diff --git a/extension/.yarn/cache/command-line-args-npm-5.2.1-093a68d295-e759519087.zip b/extension/.yarn/cache/command-line-args-npm-5.2.1-093a68d295-e759519087.zip deleted file mode 100644 index d5cc8adc..00000000 Binary files a/extension/.yarn/cache/command-line-args-npm-5.2.1-093a68d295-e759519087.zip and /dev/null differ diff --git a/extension/.yarn/cache/command-line-usage-npm-6.1.3-145c2dabe1-8261d4e553.zip b/extension/.yarn/cache/command-line-usage-npm-6.1.3-145c2dabe1-8261d4e553.zip deleted file mode 100644 index 17bff004..00000000 Binary files a/extension/.yarn/cache/command-line-usage-npm-6.1.3-145c2dabe1-8261d4e553.zip and /dev/null differ diff --git a/extension/.yarn/cache/deep-extend-npm-0.6.0-e182924219-7be7e5a8d4.zip b/extension/.yarn/cache/deep-extend-npm-0.6.0-e182924219-7be7e5a8d4.zip deleted file mode 100644 index 87f0270e..00000000 Binary files a/extension/.yarn/cache/deep-extend-npm-0.6.0-e182924219-7be7e5a8d4.zip and /dev/null differ diff --git a/extension/.yarn/cache/find-replace-npm-3.0.0-686bd07d28-6b04bcfd79.zip b/extension/.yarn/cache/find-replace-npm-3.0.0-686bd07d28-6b04bcfd79.zip deleted file mode 100644 index 550c3235..00000000 Binary files a/extension/.yarn/cache/find-replace-npm-3.0.0-686bd07d28-6b04bcfd79.zip and /dev/null differ diff --git a/extension/.yarn/cache/fs-extra-npm-7.0.1-b33a5e53e9-141b9dccb2.zip b/extension/.yarn/cache/fs-extra-npm-7.0.1-b33a5e53e9-141b9dccb2.zip deleted file mode 100644 index 2d57183e..00000000 Binary files a/extension/.yarn/cache/fs-extra-npm-7.0.1-b33a5e53e9-141b9dccb2.zip and /dev/null differ diff --git a/extension/.yarn/cache/glob-npm-7.1.7-5698ad9c48-b61f48973b.zip b/extension/.yarn/cache/glob-npm-7.1.7-5698ad9c48-b61f48973b.zip deleted file mode 100644 index e1b168a7..00000000 Binary files a/extension/.yarn/cache/glob-npm-7.1.7-5698ad9c48-b61f48973b.zip and /dev/null differ diff --git a/extension/.yarn/cache/reduce-flatten-npm-2.0.0-01bd4936fa-64393ef99a.zip b/extension/.yarn/cache/reduce-flatten-npm-2.0.0-01bd4936fa-64393ef99a.zip deleted file mode 100644 index 7ab0e947..00000000 Binary files a/extension/.yarn/cache/reduce-flatten-npm-2.0.0-01bd4936fa-64393ef99a.zip and /dev/null differ diff --git a/extension/.yarn/cache/string-format-npm-2.0.0-002ceb1816-dada2ef95f.zip b/extension/.yarn/cache/string-format-npm-2.0.0-002ceb1816-dada2ef95f.zip deleted file mode 100644 index d7703c65..00000000 Binary files a/extension/.yarn/cache/string-format-npm-2.0.0-002ceb1816-dada2ef95f.zip and /dev/null differ diff --git a/extension/.yarn/cache/table-layout-npm-1.0.2-0b3fe79240-8f41b5671f.zip b/extension/.yarn/cache/table-layout-npm-1.0.2-0b3fe79240-8f41b5671f.zip deleted file mode 100644 index e8b724b7..00000000 Binary files a/extension/.yarn/cache/table-layout-npm-1.0.2-0b3fe79240-8f41b5671f.zip and /dev/null differ diff --git a/extension/.yarn/cache/ts-command-line-args-npm-2.5.1-9de033aad1-7c0a7582e9.zip b/extension/.yarn/cache/ts-command-line-args-npm-2.5.1-9de033aad1-7c0a7582e9.zip deleted file mode 100644 index 1ec685fd..00000000 Binary files a/extension/.yarn/cache/ts-command-line-args-npm-2.5.1-9de033aad1-7c0a7582e9.zip and /dev/null differ diff --git a/extension/.yarn/cache/ts-essentials-npm-7.0.3-dbefe5cb3b-74d75868ac.zip b/extension/.yarn/cache/ts-essentials-npm-7.0.3-dbefe5cb3b-74d75868ac.zip deleted file mode 100644 index cc8c969d..00000000 Binary files a/extension/.yarn/cache/ts-essentials-npm-7.0.3-dbefe5cb3b-74d75868ac.zip and /dev/null differ diff --git a/extension/.yarn/cache/typechain-npm-8.3.2-b02e27439e-146a1896fa.zip b/extension/.yarn/cache/typechain-npm-8.3.2-b02e27439e-146a1896fa.zip deleted file mode 100644 index 9b5db882..00000000 Binary files a/extension/.yarn/cache/typechain-npm-8.3.2-b02e27439e-146a1896fa.zip and /dev/null differ diff --git a/extension/.yarn/cache/typical-npm-4.0.0-2255d8d515-a242081956.zip b/extension/.yarn/cache/typical-npm-4.0.0-2255d8d515-a242081956.zip deleted file mode 100644 index 2aa38eae..00000000 Binary files a/extension/.yarn/cache/typical-npm-4.0.0-2255d8d515-a242081956.zip and /dev/null differ diff --git a/extension/.yarn/cache/typical-npm-5.2.0-d4de46c932-ccaeb151a9.zip b/extension/.yarn/cache/typical-npm-5.2.0-d4de46c932-ccaeb151a9.zip deleted file mode 100644 index 1762727e..00000000 Binary files a/extension/.yarn/cache/typical-npm-5.2.0-d4de46c932-ccaeb151a9.zip and /dev/null differ diff --git a/extension/.yarn/cache/wordwrapjs-npm-4.0.1-b6c3c84d76-3d927f3c95.zip b/extension/.yarn/cache/wordwrapjs-npm-4.0.1-b6c3c84d76-3d927f3c95.zip deleted file mode 100644 index ccd3653c..00000000 Binary files a/extension/.yarn/cache/wordwrapjs-npm-4.0.1-b6c3c84d76-3d927f3c95.zip and /dev/null differ diff --git a/extension/package.json b/extension/package.json index bba90077..5039facb 100644 --- a/extension/package.json +++ b/extension/package.json @@ -1,9 +1,9 @@ { "name": "zodiac-pilot", - "version": "1.0.0", + "version": "0.0.0", "description": "Chrome extension to simulate dApp interactions and record transactions", "main": "index.js", - "repository": "https://github.com/gnosis/zodiac-pilot.git", + "repository": "https://github.com/gnosisguild/zodiac-pilot.git", "author": "Jan-Felix ", "license": "MIT", "private": true, @@ -11,7 +11,6 @@ "build": "NODE_ENV=production rimraf public/build && node esbuild.js", "zip": "mv public zodiac-pilot && zip -vr zodiac-pilot.zip zodiac-pilot/ -x \"*.DS_Store\" && mv zodiac-pilot public", "dev": "NODE_ENV=development node esbuild.js", - "generate:types": "rimraf ./src/types/typechain && typechain --target=ethers-v5 --out-dir ./src/types/typechain ./src/abi/*.json", "test": "jest", "check": "yarn check:ts && yarn check:prettier && yarn check:lint && yarn check:spelling", "check:ts": "tsc --noEmit", @@ -34,7 +33,6 @@ "@safe-global/safe-gateway-typescript-sdk": "^3.14.0", "@shazow/whatsabi": "^0.2.1", "@testing-library/jest-dom": "^5.16.1", - "@typechain/ethers-v5": "^10.2.1", "@types/chrome": "^0.0.233", "@types/events": "^3.0.3", "@types/jest": "^27.5.2", @@ -82,9 +80,8 @@ "react-toastify": "^9.0.8", "rimraf": "^3.0.2", "ts-jest": "^27.1.2", - "typechain": "^8.3.2", "typescript": "^4.9.4", "typescript-plugin-css-modules": "^3.4.0" }, "packageManager": "yarn@3.7.0" -} +} \ No newline at end of file diff --git a/extension/src/abi/Permissions.json b/extension/src/abi/Permissions.json deleted file mode 100644 index a3c33507..00000000 --- a/extension/src/abi/Permissions.json +++ /dev/null @@ -1,520 +0,0 @@ -[ - { - "inputs": [], - "name": "ArraysDifferentLength", - "type": "error" - }, - { - "inputs": [], - "name": "CalldataOutOfBounds", - "type": "error" - }, - { - "inputs": [], - "name": "DelegateCallNotAllowed", - "type": "error" - }, - { - "inputs": [], - "name": "FunctionNotAllowed", - "type": "error" - }, - { - "inputs": [], - "name": "FunctionSignatureTooShort", - "type": "error" - }, - { - "inputs": [], - "name": "NoMembership", - "type": "error" - }, - { - "inputs": [], - "name": "NotEnoughCompValuesForOneOf", - "type": "error" - }, - { - "inputs": [], - "name": "ParameterGreaterThanAllowed", - "type": "error" - }, - { - "inputs": [], - "name": "ParameterLessThanAllowed", - "type": "error" - }, - { - "inputs": [], - "name": "ParameterNotAllowed", - "type": "error" - }, - { - "inputs": [], - "name": "ParameterNotOneOfAllowed", - "type": "error" - }, - { - "inputs": [], - "name": "ScopeMaxParametersExceeded", - "type": "error" - }, - { - "inputs": [], - "name": "SendNotAllowed", - "type": "error" - }, - { - "inputs": [], - "name": "TargetAddressNotAllowed", - "type": "error" - }, - { - "inputs": [], - "name": "UnacceptableMultiSendOffset", - "type": "error" - }, - { - "inputs": [], - "name": "UnsuitableDynamic32CompValueSize", - "type": "error" - }, - { - "inputs": [], - "name": "UnsuitableOneOfComparison", - "type": "error" - }, - { - "inputs": [], - "name": "UnsuitableRelativeComparison", - "type": "error" - }, - { - "inputs": [], - "name": "UnsuitableStaticCompValueSize", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint16", - "name": "role", - "type": "uint16" - }, - { - "indexed": false, - "internalType": "address", - "name": "targetAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "enum ExecutionOptions", - "name": "options", - "type": "uint8" - } - ], - "name": "AllowTarget", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint16", - "name": "role", - "type": "uint16" - }, - { - "indexed": false, - "internalType": "address", - "name": "targetAddress", - "type": "address" - } - ], - "name": "RevokeTarget", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint16", - "name": "role", - "type": "uint16" - }, - { - "indexed": false, - "internalType": "address", - "name": "targetAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes4", - "name": "selector", - "type": "bytes4" - }, - { - "indexed": false, - "internalType": "enum ExecutionOptions", - "name": "options", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "resultingScopeConfig", - "type": "uint256" - } - ], - "name": "ScopeAllowFunction", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint16", - "name": "role", - "type": "uint16" - }, - { - "indexed": false, - "internalType": "address", - "name": "targetAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes4", - "name": "functionSig", - "type": "bytes4" - }, - { - "indexed": false, - "internalType": "bool[]", - "name": "isParamScoped", - "type": "bool[]" - }, - { - "indexed": false, - "internalType": "enum ParameterType[]", - "name": "paramType", - "type": "uint8[]" - }, - { - "indexed": false, - "internalType": "enum Comparison[]", - "name": "paramComp", - "type": "uint8[]" - }, - { - "indexed": false, - "internalType": "bytes[]", - "name": "compValue", - "type": "bytes[]" - }, - { - "indexed": false, - "internalType": "enum ExecutionOptions", - "name": "options", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "resultingScopeConfig", - "type": "uint256" - } - ], - "name": "ScopeFunction", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint16", - "name": "role", - "type": "uint16" - }, - { - "indexed": false, - "internalType": "address", - "name": "targetAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes4", - "name": "functionSig", - "type": "bytes4" - }, - { - "indexed": false, - "internalType": "enum ExecutionOptions", - "name": "options", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "resultingScopeConfig", - "type": "uint256" - } - ], - "name": "ScopeFunctionExecutionOptions", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint16", - "name": "role", - "type": "uint16" - }, - { - "indexed": false, - "internalType": "address", - "name": "targetAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes4", - "name": "functionSig", - "type": "bytes4" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "index", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "enum ParameterType", - "name": "paramType", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "enum Comparison", - "name": "paramComp", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "compValue", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "resultingScopeConfig", - "type": "uint256" - } - ], - "name": "ScopeParameter", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint16", - "name": "role", - "type": "uint16" - }, - { - "indexed": false, - "internalType": "address", - "name": "targetAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes4", - "name": "functionSig", - "type": "bytes4" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "index", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "enum ParameterType", - "name": "paramType", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "bytes[]", - "name": "compValues", - "type": "bytes[]" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "resultingScopeConfig", - "type": "uint256" - } - ], - "name": "ScopeParameterAsOneOf", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint16", - "name": "role", - "type": "uint16" - }, - { - "indexed": false, - "internalType": "address", - "name": "targetAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes4", - "name": "selector", - "type": "bytes4" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "resultingScopeConfig", - "type": "uint256" - } - ], - "name": "ScopeRevokeFunction", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint16", - "name": "role", - "type": "uint16" - }, - { - "indexed": false, - "internalType": "address", - "name": "targetAddress", - "type": "address" - } - ], - "name": "ScopeTarget", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint16", - "name": "role", - "type": "uint16" - }, - { - "indexed": false, - "internalType": "address", - "name": "targetAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes4", - "name": "functionSig", - "type": "bytes4" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "index", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "resultingScopeConfig", - "type": "uint256" - } - ], - "name": "UnscopeParameter", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "targetAddress", - "type": "address" - }, - { - "internalType": "bytes4", - "name": "functionSig", - "type": "bytes4" - }, - { - "internalType": "uint256", - "name": "index", - "type": "uint256" - } - ], - "name": "keyForCompValues", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "targetAddress", - "type": "address" - }, - { - "internalType": "bytes4", - "name": "functionSig", - "type": "bytes4" - } - ], - "name": "keyForFunctions", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "pure", - "type": "function" - } -] diff --git a/extension/src/abi/Roles.json b/extension/src/abi/Roles.json deleted file mode 100644 index 475a7710..00000000 --- a/extension/src/abi/Roles.json +++ /dev/null @@ -1,990 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "address", - "name": "_owner", - "type": "address" - }, - { - "internalType": "address", - "name": "_avatar", - "type": "address" - }, - { - "internalType": "address", - "name": "_target", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [], - "name": "ArraysDifferentLength", - "type": "error" - }, - { - "inputs": [], - "name": "ModuleTransactionFailed", - "type": "error" - }, - { - "inputs": [], - "name": "NoMembership", - "type": "error" - }, - { - "inputs": [], - "name": "SetUpModulesAlreadyCalled", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "module", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint16[]", - "name": "roles", - "type": "uint16[]" - }, - { - "indexed": false, - "internalType": "bool[]", - "name": "memberOf", - "type": "bool[]" - } - ], - "name": "AssignRoles", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousAvatar", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newAvatar", - "type": "address" - } - ], - "name": "AvatarSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "guard", - "type": "address" - } - ], - "name": "ChangedGuard", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "DisabledModule", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "EnabledModule", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "initiator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "avatar", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "target", - "type": "address" - } - ], - "name": "RolesModSetup", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "module", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint16", - "name": "defaultRole", - "type": "uint16" - } - ], - "name": "SetDefaultRole", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "multisendAddress", - "type": "address" - } - ], - "name": "SetMultisendAddress", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousTarget", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newTarget", - "type": "address" - } - ], - "name": "TargetSet", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "uint16", - "name": "role", - "type": "uint16" - }, - { - "internalType": "address", - "name": "targetAddress", - "type": "address" - }, - { - "internalType": "enum ExecutionOptions", - "name": "options", - "type": "uint8" - } - ], - "name": "allowTarget", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "module", - "type": "address" - }, - { - "internalType": "uint16[]", - "name": "_roles", - "type": "uint16[]" - }, - { - "internalType": "bool[]", - "name": "memberOf", - "type": "bool[]" - } - ], - "name": "assignRoles", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "avatar", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "defaultRoles", - "outputs": [ - { - "internalType": "uint16", - "name": "", - "type": "uint16" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "prevModule", - "type": "address" - }, - { - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "disableModule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "enableModule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - } - ], - "name": "execTransactionFromModule", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - } - ], - "name": "execTransactionFromModuleReturnData", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - }, - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - }, - { - "internalType": "uint16", - "name": "role", - "type": "uint16" - }, - { - "internalType": "bool", - "name": "shouldRevert", - "type": "bool" - } - ], - "name": "execTransactionWithRole", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - }, - { - "internalType": "uint16", - "name": "role", - "type": "uint16" - }, - { - "internalType": "bool", - "name": "shouldRevert", - "type": "bool" - } - ], - "name": "execTransactionWithRoleReturnData", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - }, - { - "internalType": "bytes", - "name": "returnData", - "type": "bytes" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getGuard", - "outputs": [ - { - "internalType": "address", - "name": "_guard", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "start", - "type": "address" - }, - { - "internalType": "uint256", - "name": "pageSize", - "type": "uint256" - } - ], - "name": "getModulesPaginated", - "outputs": [ - { - "internalType": "address[]", - "name": "array", - "type": "address[]" - }, - { - "internalType": "address", - "name": "next", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "guard", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_module", - "type": "address" - } - ], - "name": "isModuleEnabled", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "multisend", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint16", - "name": "role", - "type": "uint16" - }, - { - "internalType": "address", - "name": "targetAddress", - "type": "address" - } - ], - "name": "revokeTarget", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint16", - "name": "role", - "type": "uint16" - }, - { - "internalType": "address", - "name": "targetAddress", - "type": "address" - }, - { - "internalType": "bytes4", - "name": "functionSig", - "type": "bytes4" - }, - { - "internalType": "enum ExecutionOptions", - "name": "options", - "type": "uint8" - } - ], - "name": "scopeAllowFunction", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint16", - "name": "role", - "type": "uint16" - }, - { - "internalType": "address", - "name": "targetAddress", - "type": "address" - }, - { - "internalType": "bytes4", - "name": "functionSig", - "type": "bytes4" - }, - { - "internalType": "bool[]", - "name": "isParamScoped", - "type": "bool[]" - }, - { - "internalType": "enum ParameterType[]", - "name": "paramType", - "type": "uint8[]" - }, - { - "internalType": "enum Comparison[]", - "name": "paramComp", - "type": "uint8[]" - }, - { - "internalType": "bytes[]", - "name": "compValue", - "type": "bytes[]" - }, - { - "internalType": "enum ExecutionOptions", - "name": "options", - "type": "uint8" - } - ], - "name": "scopeFunction", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint16", - "name": "role", - "type": "uint16" - }, - { - "internalType": "address", - "name": "targetAddress", - "type": "address" - }, - { - "internalType": "bytes4", - "name": "functionSig", - "type": "bytes4" - }, - { - "internalType": "enum ExecutionOptions", - "name": "options", - "type": "uint8" - } - ], - "name": "scopeFunctionExecutionOptions", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint16", - "name": "role", - "type": "uint16" - }, - { - "internalType": "address", - "name": "targetAddress", - "type": "address" - }, - { - "internalType": "bytes4", - "name": "functionSig", - "type": "bytes4" - }, - { - "internalType": "uint256", - "name": "paramIndex", - "type": "uint256" - }, - { - "internalType": "enum ParameterType", - "name": "paramType", - "type": "uint8" - }, - { - "internalType": "enum Comparison", - "name": "paramComp", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "compValue", - "type": "bytes" - } - ], - "name": "scopeParameter", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint16", - "name": "role", - "type": "uint16" - }, - { - "internalType": "address", - "name": "targetAddress", - "type": "address" - }, - { - "internalType": "bytes4", - "name": "functionSig", - "type": "bytes4" - }, - { - "internalType": "uint256", - "name": "paramIndex", - "type": "uint256" - }, - { - "internalType": "enum ParameterType", - "name": "paramType", - "type": "uint8" - }, - { - "internalType": "bytes[]", - "name": "compValues", - "type": "bytes[]" - } - ], - "name": "scopeParameterAsOneOf", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint16", - "name": "role", - "type": "uint16" - }, - { - "internalType": "address", - "name": "targetAddress", - "type": "address" - }, - { - "internalType": "bytes4", - "name": "functionSig", - "type": "bytes4" - } - ], - "name": "scopeRevokeFunction", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint16", - "name": "role", - "type": "uint16" - }, - { - "internalType": "address", - "name": "targetAddress", - "type": "address" - } - ], - "name": "scopeTarget", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_avatar", - "type": "address" - } - ], - "name": "setAvatar", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "module", - "type": "address" - }, - { - "internalType": "uint16", - "name": "role", - "type": "uint16" - } - ], - "name": "setDefaultRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_guard", - "type": "address" - } - ], - "name": "setGuard", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_multisend", - "type": "address" - } - ], - "name": "setMultisend", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_target", - "type": "address" - } - ], - "name": "setTarget", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "initParams", - "type": "bytes" - } - ], - "name": "setUp", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "target", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint16", - "name": "role", - "type": "uint16" - }, - { - "internalType": "address", - "name": "targetAddress", - "type": "address" - }, - { - "internalType": "bytes4", - "name": "functionSig", - "type": "bytes4" - }, - { - "internalType": "uint8", - "name": "paramIndex", - "type": "uint8" - } - ], - "name": "unscopeParameter", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] diff --git a/extension/src/browser/ProvideProvider.tsx b/extension/src/browser/ProvideProvider.tsx index f15898f1..6b1b75dc 100644 --- a/extension/src/browser/ProvideProvider.tsx +++ b/extension/src/browser/ProvideProvider.tsx @@ -41,7 +41,7 @@ const SubmitTransactionsContext = createContext<(() => Promise) | null>( export const useSubmitTransactions = () => useContext(SubmitTransactionsContext) const ProvideProvider: React.FC = ({ simulate, children }) => { - const { provider, connection, chainId } = useConnection() + const { provider, connection } = useConnection() const tenderlyProvider = useTenderlyProvider() const dispatch = useDispatch() const transactions = useNewTransactions() @@ -75,17 +75,13 @@ const ProvideProvider: React.FC = ({ simulate, children }) => { payload: { input: inputRaw, isDelegateCall }, }) - if (!chainId) { - throw new Error('chainId is undefined') - } - // Now we can take some time decoding the transaction for real and we update the state once that's done. const input = await decodeSingle( metaTx, new Web3Provider(provider), (address: string, data: string) => fetchAbi( - chainId as ChainId, + connection.chainId, address, data, new Web3Provider(provider) @@ -108,7 +104,7 @@ const ProvideProvider: React.FC = ({ simulate, children }) => { }) }, }), - [tenderlyProvider, provider, chainId, connection, dispatch] + [tenderlyProvider, provider, connection, dispatch] ) const submitTransactions = useCallback(async () => { diff --git a/extension/src/providers/ForkProvider.ts b/extension/src/providers/ForkProvider.ts index e477a886..a4255dae 100644 --- a/extension/src/providers/ForkProvider.ts +++ b/extension/src/providers/ForkProvider.ts @@ -97,7 +97,7 @@ class ForkProvider extends EventEmitter { if (tx) { const safeTxHash = await this.sendMetaTransaction(tx) - // TODO we probably won't even need this, but for now we keep it for debugging purposes + // TODO we don't even need this, but for now we keep it for debugging purposes const safeMessageHash = await safeInterface.encodeFunctionData( 'getMessageHashForSafe', [this.avatarAddress, typedDataHash(params[0])] diff --git a/extension/src/providers/WrappingProvider.ts b/extension/src/providers/WrappingProvider.ts index 7565b2e9..1a242fc0 100644 --- a/extension/src/providers/WrappingProvider.ts +++ b/extension/src/providers/WrappingProvider.ts @@ -9,8 +9,6 @@ import { Connection, Eip1193Provider, TransactionData } from '../types' const RolesV1Interface = ContractFactories[KnownContracts.ROLES_V1].createInterface() -const RolesV2Interface = - ContractFactories[KnownContracts.ROLES_V2].createInterface() const DelayInterface = ContractFactories[KnownContracts.DELAY].createInterface() export function wrapRequest( @@ -24,6 +22,7 @@ export function wrapRequest( let data: string switch (connection.moduleType) { case KnownContracts.ROLES_V1: + case KnownContracts.ROLES_V2: data = RolesV1Interface.encodeFunctionData('execTransactionWithRole', [ request.to || '', request.value || 0, @@ -33,9 +32,6 @@ export function wrapRequest( true, ]) break - case KnownContracts.ROLES_V2: - // TODO - break case KnownContracts.DELAY: data = DelayInterface.encodeFunctionData('execTransactionFromModule', [ request.to || '', diff --git a/extension/src/types/typechain/Permissions.ts b/extension/src/types/typechain/Permissions.ts deleted file mode 100644 index 6a2f8cc7..00000000 --- a/extension/src/types/typechain/Permissions.ts +++ /dev/null @@ -1,486 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "./common"; - -export interface PermissionsInterface extends utils.Interface { - functions: { - "keyForCompValues(address,bytes4,uint256)": FunctionFragment; - "keyForFunctions(address,bytes4)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: "keyForCompValues" | "keyForFunctions" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "keyForCompValues", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "keyForFunctions", - values: [PromiseOrValue, PromiseOrValue] - ): string; - - decodeFunctionResult( - functionFragment: "keyForCompValues", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "keyForFunctions", - data: BytesLike - ): Result; - - events: { - "AllowTarget(uint16,address,uint8)": EventFragment; - "RevokeTarget(uint16,address)": EventFragment; - "ScopeAllowFunction(uint16,address,bytes4,uint8,uint256)": EventFragment; - "ScopeFunction(uint16,address,bytes4,bool[],uint8[],uint8[],bytes[],uint8,uint256)": EventFragment; - "ScopeFunctionExecutionOptions(uint16,address,bytes4,uint8,uint256)": EventFragment; - "ScopeParameter(uint16,address,bytes4,uint256,uint8,uint8,bytes,uint256)": EventFragment; - "ScopeParameterAsOneOf(uint16,address,bytes4,uint256,uint8,bytes[],uint256)": EventFragment; - "ScopeRevokeFunction(uint16,address,bytes4,uint256)": EventFragment; - "ScopeTarget(uint16,address)": EventFragment; - "UnscopeParameter(uint16,address,bytes4,uint256,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "AllowTarget"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RevokeTarget"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ScopeAllowFunction"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ScopeFunction"): EventFragment; - getEvent( - nameOrSignatureOrTopic: "ScopeFunctionExecutionOptions" - ): EventFragment; - getEvent(nameOrSignatureOrTopic: "ScopeParameter"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ScopeParameterAsOneOf"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ScopeRevokeFunction"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ScopeTarget"): EventFragment; - getEvent(nameOrSignatureOrTopic: "UnscopeParameter"): EventFragment; -} - -export interface AllowTargetEventObject { - role: number; - targetAddress: string; - options: number; -} -export type AllowTargetEvent = TypedEvent< - [number, string, number], - AllowTargetEventObject ->; - -export type AllowTargetEventFilter = TypedEventFilter; - -export interface RevokeTargetEventObject { - role: number; - targetAddress: string; -} -export type RevokeTargetEvent = TypedEvent< - [number, string], - RevokeTargetEventObject ->; - -export type RevokeTargetEventFilter = TypedEventFilter; - -export interface ScopeAllowFunctionEventObject { - role: number; - targetAddress: string; - selector: string; - options: number; - resultingScopeConfig: BigNumber; -} -export type ScopeAllowFunctionEvent = TypedEvent< - [number, string, string, number, BigNumber], - ScopeAllowFunctionEventObject ->; - -export type ScopeAllowFunctionEventFilter = - TypedEventFilter; - -export interface ScopeFunctionEventObject { - role: number; - targetAddress: string; - functionSig: string; - isParamScoped: boolean[]; - paramType: number[]; - paramComp: number[]; - compValue: string[]; - options: number; - resultingScopeConfig: BigNumber; -} -export type ScopeFunctionEvent = TypedEvent< - [ - number, - string, - string, - boolean[], - number[], - number[], - string[], - number, - BigNumber - ], - ScopeFunctionEventObject ->; - -export type ScopeFunctionEventFilter = TypedEventFilter; - -export interface ScopeFunctionExecutionOptionsEventObject { - role: number; - targetAddress: string; - functionSig: string; - options: number; - resultingScopeConfig: BigNumber; -} -export type ScopeFunctionExecutionOptionsEvent = TypedEvent< - [number, string, string, number, BigNumber], - ScopeFunctionExecutionOptionsEventObject ->; - -export type ScopeFunctionExecutionOptionsEventFilter = - TypedEventFilter; - -export interface ScopeParameterEventObject { - role: number; - targetAddress: string; - functionSig: string; - index: BigNumber; - paramType: number; - paramComp: number; - compValue: string; - resultingScopeConfig: BigNumber; -} -export type ScopeParameterEvent = TypedEvent< - [number, string, string, BigNumber, number, number, string, BigNumber], - ScopeParameterEventObject ->; - -export type ScopeParameterEventFilter = TypedEventFilter; - -export interface ScopeParameterAsOneOfEventObject { - role: number; - targetAddress: string; - functionSig: string; - index: BigNumber; - paramType: number; - compValues: string[]; - resultingScopeConfig: BigNumber; -} -export type ScopeParameterAsOneOfEvent = TypedEvent< - [number, string, string, BigNumber, number, string[], BigNumber], - ScopeParameterAsOneOfEventObject ->; - -export type ScopeParameterAsOneOfEventFilter = - TypedEventFilter; - -export interface ScopeRevokeFunctionEventObject { - role: number; - targetAddress: string; - selector: string; - resultingScopeConfig: BigNumber; -} -export type ScopeRevokeFunctionEvent = TypedEvent< - [number, string, string, BigNumber], - ScopeRevokeFunctionEventObject ->; - -export type ScopeRevokeFunctionEventFilter = - TypedEventFilter; - -export interface ScopeTargetEventObject { - role: number; - targetAddress: string; -} -export type ScopeTargetEvent = TypedEvent< - [number, string], - ScopeTargetEventObject ->; - -export type ScopeTargetEventFilter = TypedEventFilter; - -export interface UnscopeParameterEventObject { - role: number; - targetAddress: string; - functionSig: string; - index: BigNumber; - resultingScopeConfig: BigNumber; -} -export type UnscopeParameterEvent = TypedEvent< - [number, string, string, BigNumber, BigNumber], - UnscopeParameterEventObject ->; - -export type UnscopeParameterEventFilter = - TypedEventFilter; - -export interface Permissions extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: PermissionsInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - keyForCompValues( - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - index: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - keyForFunctions( - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - }; - - keyForCompValues( - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - index: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - keyForFunctions( - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - callStatic: { - keyForCompValues( - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - index: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - keyForFunctions( - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "AllowTarget(uint16,address,uint8)"( - role?: null, - targetAddress?: null, - options?: null - ): AllowTargetEventFilter; - AllowTarget( - role?: null, - targetAddress?: null, - options?: null - ): AllowTargetEventFilter; - - "RevokeTarget(uint16,address)"( - role?: null, - targetAddress?: null - ): RevokeTargetEventFilter; - RevokeTarget(role?: null, targetAddress?: null): RevokeTargetEventFilter; - - "ScopeAllowFunction(uint16,address,bytes4,uint8,uint256)"( - role?: null, - targetAddress?: null, - selector?: null, - options?: null, - resultingScopeConfig?: null - ): ScopeAllowFunctionEventFilter; - ScopeAllowFunction( - role?: null, - targetAddress?: null, - selector?: null, - options?: null, - resultingScopeConfig?: null - ): ScopeAllowFunctionEventFilter; - - "ScopeFunction(uint16,address,bytes4,bool[],uint8[],uint8[],bytes[],uint8,uint256)"( - role?: null, - targetAddress?: null, - functionSig?: null, - isParamScoped?: null, - paramType?: null, - paramComp?: null, - compValue?: null, - options?: null, - resultingScopeConfig?: null - ): ScopeFunctionEventFilter; - ScopeFunction( - role?: null, - targetAddress?: null, - functionSig?: null, - isParamScoped?: null, - paramType?: null, - paramComp?: null, - compValue?: null, - options?: null, - resultingScopeConfig?: null - ): ScopeFunctionEventFilter; - - "ScopeFunctionExecutionOptions(uint16,address,bytes4,uint8,uint256)"( - role?: null, - targetAddress?: null, - functionSig?: null, - options?: null, - resultingScopeConfig?: null - ): ScopeFunctionExecutionOptionsEventFilter; - ScopeFunctionExecutionOptions( - role?: null, - targetAddress?: null, - functionSig?: null, - options?: null, - resultingScopeConfig?: null - ): ScopeFunctionExecutionOptionsEventFilter; - - "ScopeParameter(uint16,address,bytes4,uint256,uint8,uint8,bytes,uint256)"( - role?: null, - targetAddress?: null, - functionSig?: null, - index?: null, - paramType?: null, - paramComp?: null, - compValue?: null, - resultingScopeConfig?: null - ): ScopeParameterEventFilter; - ScopeParameter( - role?: null, - targetAddress?: null, - functionSig?: null, - index?: null, - paramType?: null, - paramComp?: null, - compValue?: null, - resultingScopeConfig?: null - ): ScopeParameterEventFilter; - - "ScopeParameterAsOneOf(uint16,address,bytes4,uint256,uint8,bytes[],uint256)"( - role?: null, - targetAddress?: null, - functionSig?: null, - index?: null, - paramType?: null, - compValues?: null, - resultingScopeConfig?: null - ): ScopeParameterAsOneOfEventFilter; - ScopeParameterAsOneOf( - role?: null, - targetAddress?: null, - functionSig?: null, - index?: null, - paramType?: null, - compValues?: null, - resultingScopeConfig?: null - ): ScopeParameterAsOneOfEventFilter; - - "ScopeRevokeFunction(uint16,address,bytes4,uint256)"( - role?: null, - targetAddress?: null, - selector?: null, - resultingScopeConfig?: null - ): ScopeRevokeFunctionEventFilter; - ScopeRevokeFunction( - role?: null, - targetAddress?: null, - selector?: null, - resultingScopeConfig?: null - ): ScopeRevokeFunctionEventFilter; - - "ScopeTarget(uint16,address)"( - role?: null, - targetAddress?: null - ): ScopeTargetEventFilter; - ScopeTarget(role?: null, targetAddress?: null): ScopeTargetEventFilter; - - "UnscopeParameter(uint16,address,bytes4,uint256,uint256)"( - role?: null, - targetAddress?: null, - functionSig?: null, - index?: null, - resultingScopeConfig?: null - ): UnscopeParameterEventFilter; - UnscopeParameter( - role?: null, - targetAddress?: null, - functionSig?: null, - index?: null, - resultingScopeConfig?: null - ): UnscopeParameterEventFilter; - }; - - estimateGas: { - keyForCompValues( - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - index: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - keyForFunctions( - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - populateTransaction: { - keyForCompValues( - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - index: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - keyForFunctions( - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; -} diff --git a/extension/src/types/typechain/Roles.ts b/extension/src/types/typechain/Roles.ts deleted file mode 100644 index 8e979e08..00000000 --- a/extension/src/types/typechain/Roles.ts +++ /dev/null @@ -1,1665 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "./common"; - -export interface RolesInterface extends utils.Interface { - functions: { - "allowTarget(uint16,address,uint8)": FunctionFragment; - "assignRoles(address,uint16[],bool[])": FunctionFragment; - "avatar()": FunctionFragment; - "defaultRoles(address)": FunctionFragment; - "disableModule(address,address)": FunctionFragment; - "enableModule(address)": FunctionFragment; - "execTransactionFromModule(address,uint256,bytes,uint8)": FunctionFragment; - "execTransactionFromModuleReturnData(address,uint256,bytes,uint8)": FunctionFragment; - "execTransactionWithRole(address,uint256,bytes,uint8,uint16,bool)": FunctionFragment; - "execTransactionWithRoleReturnData(address,uint256,bytes,uint8,uint16,bool)": FunctionFragment; - "getGuard()": FunctionFragment; - "getModulesPaginated(address,uint256)": FunctionFragment; - "guard()": FunctionFragment; - "isModuleEnabled(address)": FunctionFragment; - "multisend()": FunctionFragment; - "owner()": FunctionFragment; - "renounceOwnership()": FunctionFragment; - "revokeTarget(uint16,address)": FunctionFragment; - "scopeAllowFunction(uint16,address,bytes4,uint8)": FunctionFragment; - "scopeFunction(uint16,address,bytes4,bool[],uint8[],uint8[],bytes[],uint8)": FunctionFragment; - "scopeFunctionExecutionOptions(uint16,address,bytes4,uint8)": FunctionFragment; - "scopeParameter(uint16,address,bytes4,uint256,uint8,uint8,bytes)": FunctionFragment; - "scopeParameterAsOneOf(uint16,address,bytes4,uint256,uint8,bytes[])": FunctionFragment; - "scopeRevokeFunction(uint16,address,bytes4)": FunctionFragment; - "scopeTarget(uint16,address)": FunctionFragment; - "setAvatar(address)": FunctionFragment; - "setDefaultRole(address,uint16)": FunctionFragment; - "setGuard(address)": FunctionFragment; - "setMultisend(address)": FunctionFragment; - "setTarget(address)": FunctionFragment; - "setUp(bytes)": FunctionFragment; - "target()": FunctionFragment; - "transferOwnership(address)": FunctionFragment; - "unscopeParameter(uint16,address,bytes4,uint8)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "allowTarget" - | "assignRoles" - | "avatar" - | "defaultRoles" - | "disableModule" - | "enableModule" - | "execTransactionFromModule" - | "execTransactionFromModuleReturnData" - | "execTransactionWithRole" - | "execTransactionWithRoleReturnData" - | "getGuard" - | "getModulesPaginated" - | "guard" - | "isModuleEnabled" - | "multisend" - | "owner" - | "renounceOwnership" - | "revokeTarget" - | "scopeAllowFunction" - | "scopeFunction" - | "scopeFunctionExecutionOptions" - | "scopeParameter" - | "scopeParameterAsOneOf" - | "scopeRevokeFunction" - | "scopeTarget" - | "setAvatar" - | "setDefaultRole" - | "setGuard" - | "setMultisend" - | "setTarget" - | "setUp" - | "target" - | "transferOwnership" - | "unscopeParameter" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "allowTarget", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "assignRoles", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue[] - ] - ): string; - encodeFunctionData(functionFragment: "avatar", values?: undefined): string; - encodeFunctionData( - functionFragment: "defaultRoles", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "disableModule", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "enableModule", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "execTransactionFromModule", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "execTransactionFromModuleReturnData", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "execTransactionWithRole", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "execTransactionWithRoleReturnData", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData(functionFragment: "getGuard", values?: undefined): string; - encodeFunctionData( - functionFragment: "getModulesPaginated", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "guard", values?: undefined): string; - encodeFunctionData( - functionFragment: "isModuleEnabled", - values: [PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "multisend", values?: undefined): string; - encodeFunctionData(functionFragment: "owner", values?: undefined): string; - encodeFunctionData( - functionFragment: "renounceOwnership", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "revokeTarget", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "scopeAllowFunction", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "scopeFunction", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue[], - PromiseOrValue[], - PromiseOrValue[], - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "scopeFunctionExecutionOptions", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "scopeParameter", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "scopeParameterAsOneOf", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[] - ] - ): string; - encodeFunctionData( - functionFragment: "scopeRevokeFunction", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "scopeTarget", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setAvatar", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setDefaultRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setGuard", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setMultisend", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setTarget", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setUp", - values: [PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "target", values?: undefined): string; - encodeFunctionData( - functionFragment: "transferOwnership", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "unscopeParameter", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult( - functionFragment: "allowTarget", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "assignRoles", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "avatar", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "defaultRoles", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "disableModule", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "enableModule", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "execTransactionFromModule", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "execTransactionFromModuleReturnData", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "execTransactionWithRole", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "execTransactionWithRoleReturnData", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "getGuard", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getModulesPaginated", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "guard", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "isModuleEnabled", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "multisend", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "renounceOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "revokeTarget", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "scopeAllowFunction", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "scopeFunction", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "scopeFunctionExecutionOptions", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "scopeParameter", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "scopeParameterAsOneOf", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "scopeRevokeFunction", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "scopeTarget", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "setAvatar", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "setDefaultRole", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "setGuard", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "setMultisend", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "setTarget", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "setUp", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "target", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "transferOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "unscopeParameter", - data: BytesLike - ): Result; - - events: { - "AssignRoles(address,uint16[],bool[])": EventFragment; - "AvatarSet(address,address)": EventFragment; - "ChangedGuard(address)": EventFragment; - "DisabledModule(address)": EventFragment; - "EnabledModule(address)": EventFragment; - "OwnershipTransferred(address,address)": EventFragment; - "RolesModSetup(address,address,address,address)": EventFragment; - "SetDefaultRole(address,uint16)": EventFragment; - "SetMultisendAddress(address)": EventFragment; - "TargetSet(address,address)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "AssignRoles"): EventFragment; - getEvent(nameOrSignatureOrTopic: "AvatarSet"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ChangedGuard"): EventFragment; - getEvent(nameOrSignatureOrTopic: "DisabledModule"): EventFragment; - getEvent(nameOrSignatureOrTopic: "EnabledModule"): EventFragment; - getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RolesModSetup"): EventFragment; - getEvent(nameOrSignatureOrTopic: "SetDefaultRole"): EventFragment; - getEvent(nameOrSignatureOrTopic: "SetMultisendAddress"): EventFragment; - getEvent(nameOrSignatureOrTopic: "TargetSet"): EventFragment; -} - -export interface AssignRolesEventObject { - module: string; - roles: number[]; - memberOf: boolean[]; -} -export type AssignRolesEvent = TypedEvent< - [string, number[], boolean[]], - AssignRolesEventObject ->; - -export type AssignRolesEventFilter = TypedEventFilter; - -export interface AvatarSetEventObject { - previousAvatar: string; - newAvatar: string; -} -export type AvatarSetEvent = TypedEvent<[string, string], AvatarSetEventObject>; - -export type AvatarSetEventFilter = TypedEventFilter; - -export interface ChangedGuardEventObject { - guard: string; -} -export type ChangedGuardEvent = TypedEvent<[string], ChangedGuardEventObject>; - -export type ChangedGuardEventFilter = TypedEventFilter; - -export interface DisabledModuleEventObject { - module: string; -} -export type DisabledModuleEvent = TypedEvent< - [string], - DisabledModuleEventObject ->; - -export type DisabledModuleEventFilter = TypedEventFilter; - -export interface EnabledModuleEventObject { - module: string; -} -export type EnabledModuleEvent = TypedEvent<[string], EnabledModuleEventObject>; - -export type EnabledModuleEventFilter = TypedEventFilter; - -export interface OwnershipTransferredEventObject { - previousOwner: string; - newOwner: string; -} -export type OwnershipTransferredEvent = TypedEvent< - [string, string], - OwnershipTransferredEventObject ->; - -export type OwnershipTransferredEventFilter = - TypedEventFilter; - -export interface RolesModSetupEventObject { - initiator: string; - owner: string; - avatar: string; - target: string; -} -export type RolesModSetupEvent = TypedEvent< - [string, string, string, string], - RolesModSetupEventObject ->; - -export type RolesModSetupEventFilter = TypedEventFilter; - -export interface SetDefaultRoleEventObject { - module: string; - defaultRole: number; -} -export type SetDefaultRoleEvent = TypedEvent< - [string, number], - SetDefaultRoleEventObject ->; - -export type SetDefaultRoleEventFilter = TypedEventFilter; - -export interface SetMultisendAddressEventObject { - multisendAddress: string; -} -export type SetMultisendAddressEvent = TypedEvent< - [string], - SetMultisendAddressEventObject ->; - -export type SetMultisendAddressEventFilter = - TypedEventFilter; - -export interface TargetSetEventObject { - previousTarget: string; - newTarget: string; -} -export type TargetSetEvent = TypedEvent<[string, string], TargetSetEventObject>; - -export type TargetSetEventFilter = TypedEventFilter; - -export interface Roles extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: RolesInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - allowTarget( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - options: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - assignRoles( - module: PromiseOrValue, - _roles: PromiseOrValue[], - memberOf: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - avatar(overrides?: CallOverrides): Promise<[string]>; - - defaultRoles( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[number]>; - - disableModule( - prevModule: PromiseOrValue, - module: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - enableModule( - module: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - execTransactionFromModule( - to: PromiseOrValue, - value: PromiseOrValue, - data: PromiseOrValue, - operation: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - execTransactionFromModuleReturnData( - to: PromiseOrValue, - value: PromiseOrValue, - data: PromiseOrValue, - operation: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - execTransactionWithRole( - to: PromiseOrValue, - value: PromiseOrValue, - data: PromiseOrValue, - operation: PromiseOrValue, - role: PromiseOrValue, - shouldRevert: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - execTransactionWithRoleReturnData( - to: PromiseOrValue, - value: PromiseOrValue, - data: PromiseOrValue, - operation: PromiseOrValue, - role: PromiseOrValue, - shouldRevert: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getGuard(overrides?: CallOverrides): Promise<[string] & { _guard: string }>; - - getModulesPaginated( - start: PromiseOrValue, - pageSize: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string[], string] & { array: string[]; next: string }>; - - guard(overrides?: CallOverrides): Promise<[string]>; - - isModuleEnabled( - _module: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - - multisend(overrides?: CallOverrides): Promise<[string]>; - - owner(overrides?: CallOverrides): Promise<[string]>; - - renounceOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeTarget( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeAllowFunction( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - options: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeFunction( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - isParamScoped: PromiseOrValue[], - paramType: PromiseOrValue[], - paramComp: PromiseOrValue[], - compValue: PromiseOrValue[], - options: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeFunctionExecutionOptions( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - options: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeParameter( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - paramIndex: PromiseOrValue, - paramType: PromiseOrValue, - paramComp: PromiseOrValue, - compValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeParameterAsOneOf( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - paramIndex: PromiseOrValue, - paramType: PromiseOrValue, - compValues: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeRevokeFunction( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeTarget( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setAvatar( - _avatar: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setDefaultRole( - module: PromiseOrValue, - role: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setGuard( - _guard: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setMultisend( - _multisend: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setTarget( - _target: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setUp( - initParams: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - target(overrides?: CallOverrides): Promise<[string]>; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - unscopeParameter( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - paramIndex: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - allowTarget( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - options: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - assignRoles( - module: PromiseOrValue, - _roles: PromiseOrValue[], - memberOf: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - avatar(overrides?: CallOverrides): Promise; - - defaultRoles( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - disableModule( - prevModule: PromiseOrValue, - module: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - enableModule( - module: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - execTransactionFromModule( - to: PromiseOrValue, - value: PromiseOrValue, - data: PromiseOrValue, - operation: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - execTransactionFromModuleReturnData( - to: PromiseOrValue, - value: PromiseOrValue, - data: PromiseOrValue, - operation: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - execTransactionWithRole( - to: PromiseOrValue, - value: PromiseOrValue, - data: PromiseOrValue, - operation: PromiseOrValue, - role: PromiseOrValue, - shouldRevert: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - execTransactionWithRoleReturnData( - to: PromiseOrValue, - value: PromiseOrValue, - data: PromiseOrValue, - operation: PromiseOrValue, - role: PromiseOrValue, - shouldRevert: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getGuard(overrides?: CallOverrides): Promise; - - getModulesPaginated( - start: PromiseOrValue, - pageSize: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string[], string] & { array: string[]; next: string }>; - - guard(overrides?: CallOverrides): Promise; - - isModuleEnabled( - _module: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - multisend(overrides?: CallOverrides): Promise; - - owner(overrides?: CallOverrides): Promise; - - renounceOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeTarget( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeAllowFunction( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - options: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeFunction( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - isParamScoped: PromiseOrValue[], - paramType: PromiseOrValue[], - paramComp: PromiseOrValue[], - compValue: PromiseOrValue[], - options: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeFunctionExecutionOptions( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - options: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeParameter( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - paramIndex: PromiseOrValue, - paramType: PromiseOrValue, - paramComp: PromiseOrValue, - compValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeParameterAsOneOf( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - paramIndex: PromiseOrValue, - paramType: PromiseOrValue, - compValues: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeRevokeFunction( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeTarget( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setAvatar( - _avatar: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setDefaultRole( - module: PromiseOrValue, - role: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setGuard( - _guard: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setMultisend( - _multisend: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setTarget( - _target: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setUp( - initParams: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - target(overrides?: CallOverrides): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - unscopeParameter( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - paramIndex: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - allowTarget( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - options: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - assignRoles( - module: PromiseOrValue, - _roles: PromiseOrValue[], - memberOf: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - avatar(overrides?: CallOverrides): Promise; - - defaultRoles( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - disableModule( - prevModule: PromiseOrValue, - module: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - enableModule( - module: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - execTransactionFromModule( - to: PromiseOrValue, - value: PromiseOrValue, - data: PromiseOrValue, - operation: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - execTransactionFromModuleReturnData( - to: PromiseOrValue, - value: PromiseOrValue, - data: PromiseOrValue, - operation: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean, string]>; - - execTransactionWithRole( - to: PromiseOrValue, - value: PromiseOrValue, - data: PromiseOrValue, - operation: PromiseOrValue, - role: PromiseOrValue, - shouldRevert: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - execTransactionWithRoleReturnData( - to: PromiseOrValue, - value: PromiseOrValue, - data: PromiseOrValue, - operation: PromiseOrValue, - role: PromiseOrValue, - shouldRevert: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean, string] & { success: boolean; returnData: string }>; - - getGuard(overrides?: CallOverrides): Promise; - - getModulesPaginated( - start: PromiseOrValue, - pageSize: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string[], string] & { array: string[]; next: string }>; - - guard(overrides?: CallOverrides): Promise; - - isModuleEnabled( - _module: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - multisend(overrides?: CallOverrides): Promise; - - owner(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: CallOverrides): Promise; - - revokeTarget( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - scopeAllowFunction( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - options: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - scopeFunction( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - isParamScoped: PromiseOrValue[], - paramType: PromiseOrValue[], - paramComp: PromiseOrValue[], - compValue: PromiseOrValue[], - options: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - scopeFunctionExecutionOptions( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - options: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - scopeParameter( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - paramIndex: PromiseOrValue, - paramType: PromiseOrValue, - paramComp: PromiseOrValue, - compValue: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - scopeParameterAsOneOf( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - paramIndex: PromiseOrValue, - paramType: PromiseOrValue, - compValues: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - scopeRevokeFunction( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - scopeTarget( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setAvatar( - _avatar: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setDefaultRole( - module: PromiseOrValue, - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setGuard( - _guard: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setMultisend( - _multisend: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setTarget( - _target: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setUp( - initParams: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - target(overrides?: CallOverrides): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - unscopeParameter( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - paramIndex: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "AssignRoles(address,uint16[],bool[])"( - module?: null, - roles?: null, - memberOf?: null - ): AssignRolesEventFilter; - AssignRoles( - module?: null, - roles?: null, - memberOf?: null - ): AssignRolesEventFilter; - - "AvatarSet(address,address)"( - previousAvatar?: PromiseOrValue | null, - newAvatar?: PromiseOrValue | null - ): AvatarSetEventFilter; - AvatarSet( - previousAvatar?: PromiseOrValue | null, - newAvatar?: PromiseOrValue | null - ): AvatarSetEventFilter; - - "ChangedGuard(address)"(guard?: null): ChangedGuardEventFilter; - ChangedGuard(guard?: null): ChangedGuardEventFilter; - - "DisabledModule(address)"(module?: null): DisabledModuleEventFilter; - DisabledModule(module?: null): DisabledModuleEventFilter; - - "EnabledModule(address)"(module?: null): EnabledModuleEventFilter; - EnabledModule(module?: null): EnabledModuleEventFilter; - - "OwnershipTransferred(address,address)"( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null - ): OwnershipTransferredEventFilter; - OwnershipTransferred( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null - ): OwnershipTransferredEventFilter; - - "RolesModSetup(address,address,address,address)"( - initiator?: PromiseOrValue | null, - owner?: PromiseOrValue | null, - avatar?: PromiseOrValue | null, - target?: null - ): RolesModSetupEventFilter; - RolesModSetup( - initiator?: PromiseOrValue | null, - owner?: PromiseOrValue | null, - avatar?: PromiseOrValue | null, - target?: null - ): RolesModSetupEventFilter; - - "SetDefaultRole(address,uint16)"( - module?: null, - defaultRole?: null - ): SetDefaultRoleEventFilter; - SetDefaultRole( - module?: null, - defaultRole?: null - ): SetDefaultRoleEventFilter; - - "SetMultisendAddress(address)"( - multisendAddress?: null - ): SetMultisendAddressEventFilter; - SetMultisendAddress( - multisendAddress?: null - ): SetMultisendAddressEventFilter; - - "TargetSet(address,address)"( - previousTarget?: PromiseOrValue | null, - newTarget?: PromiseOrValue | null - ): TargetSetEventFilter; - TargetSet( - previousTarget?: PromiseOrValue | null, - newTarget?: PromiseOrValue | null - ): TargetSetEventFilter; - }; - - estimateGas: { - allowTarget( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - options: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - assignRoles( - module: PromiseOrValue, - _roles: PromiseOrValue[], - memberOf: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - avatar(overrides?: CallOverrides): Promise; - - defaultRoles( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - disableModule( - prevModule: PromiseOrValue, - module: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - enableModule( - module: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - execTransactionFromModule( - to: PromiseOrValue, - value: PromiseOrValue, - data: PromiseOrValue, - operation: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - execTransactionFromModuleReturnData( - to: PromiseOrValue, - value: PromiseOrValue, - data: PromiseOrValue, - operation: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - execTransactionWithRole( - to: PromiseOrValue, - value: PromiseOrValue, - data: PromiseOrValue, - operation: PromiseOrValue, - role: PromiseOrValue, - shouldRevert: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - execTransactionWithRoleReturnData( - to: PromiseOrValue, - value: PromiseOrValue, - data: PromiseOrValue, - operation: PromiseOrValue, - role: PromiseOrValue, - shouldRevert: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getGuard(overrides?: CallOverrides): Promise; - - getModulesPaginated( - start: PromiseOrValue, - pageSize: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - guard(overrides?: CallOverrides): Promise; - - isModuleEnabled( - _module: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - multisend(overrides?: CallOverrides): Promise; - - owner(overrides?: CallOverrides): Promise; - - renounceOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeTarget( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeAllowFunction( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - options: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeFunction( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - isParamScoped: PromiseOrValue[], - paramType: PromiseOrValue[], - paramComp: PromiseOrValue[], - compValue: PromiseOrValue[], - options: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeFunctionExecutionOptions( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - options: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeParameter( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - paramIndex: PromiseOrValue, - paramType: PromiseOrValue, - paramComp: PromiseOrValue, - compValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeParameterAsOneOf( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - paramIndex: PromiseOrValue, - paramType: PromiseOrValue, - compValues: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeRevokeFunction( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeTarget( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setAvatar( - _avatar: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setDefaultRole( - module: PromiseOrValue, - role: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setGuard( - _guard: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setMultisend( - _multisend: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setTarget( - _target: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setUp( - initParams: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - target(overrides?: CallOverrides): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - unscopeParameter( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - paramIndex: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - allowTarget( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - options: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - assignRoles( - module: PromiseOrValue, - _roles: PromiseOrValue[], - memberOf: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - avatar(overrides?: CallOverrides): Promise; - - defaultRoles( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - disableModule( - prevModule: PromiseOrValue, - module: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - enableModule( - module: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - execTransactionFromModule( - to: PromiseOrValue, - value: PromiseOrValue, - data: PromiseOrValue, - operation: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - execTransactionFromModuleReturnData( - to: PromiseOrValue, - value: PromiseOrValue, - data: PromiseOrValue, - operation: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - execTransactionWithRole( - to: PromiseOrValue, - value: PromiseOrValue, - data: PromiseOrValue, - operation: PromiseOrValue, - role: PromiseOrValue, - shouldRevert: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - execTransactionWithRoleReturnData( - to: PromiseOrValue, - value: PromiseOrValue, - data: PromiseOrValue, - operation: PromiseOrValue, - role: PromiseOrValue, - shouldRevert: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getGuard(overrides?: CallOverrides): Promise; - - getModulesPaginated( - start: PromiseOrValue, - pageSize: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - guard(overrides?: CallOverrides): Promise; - - isModuleEnabled( - _module: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - multisend(overrides?: CallOverrides): Promise; - - owner(overrides?: CallOverrides): Promise; - - renounceOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeTarget( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeAllowFunction( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - options: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeFunction( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - isParamScoped: PromiseOrValue[], - paramType: PromiseOrValue[], - paramComp: PromiseOrValue[], - compValue: PromiseOrValue[], - options: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeFunctionExecutionOptions( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - options: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeParameter( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - paramIndex: PromiseOrValue, - paramType: PromiseOrValue, - paramComp: PromiseOrValue, - compValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeParameterAsOneOf( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - paramIndex: PromiseOrValue, - paramType: PromiseOrValue, - compValues: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeRevokeFunction( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - scopeTarget( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setAvatar( - _avatar: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setDefaultRole( - module: PromiseOrValue, - role: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setGuard( - _guard: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setMultisend( - _multisend: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setTarget( - _target: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setUp( - initParams: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - target(overrides?: CallOverrides): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - unscopeParameter( - role: PromiseOrValue, - targetAddress: PromiseOrValue, - functionSig: PromiseOrValue, - paramIndex: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/extension/src/types/typechain/common.ts b/extension/src/types/typechain/common.ts deleted file mode 100644 index 4c90b08b..00000000 --- a/extension/src/types/typechain/common.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { Listener } from "@ethersproject/providers"; -import type { Event, EventFilter } from "ethers"; - -export interface TypedEvent< - TArgsArray extends Array = any, - TArgsObject = any -> extends Event { - args: TArgsArray & TArgsObject; -} - -export interface TypedEventFilter<_TEvent extends TypedEvent> - extends EventFilter {} - -export interface TypedListener { - (...listenerArg: [...__TypechainArgsArray, TEvent]): void; -} - -type __TypechainArgsArray = T extends TypedEvent ? U : never; - -export interface OnEvent { - ( - eventFilter: TypedEventFilter, - listener: TypedListener - ): TRes; - (eventName: string, listener: Listener): TRes; -} - -export type MinEthersFactory = { - deploy(...a: ARGS[]): Promise; -}; - -export type GetContractTypeFromFactory = F extends MinEthersFactory< - infer C, - any -> - ? C - : never; - -export type GetARGsTypeFromFactory = F extends MinEthersFactory - ? Parameters - : never; - -export type PromiseOrValue = T | Promise; diff --git a/extension/src/types/typechain/factories/Permissions__factory.ts b/extension/src/types/typechain/factories/Permissions__factory.ts deleted file mode 100644 index d21a1249..00000000 --- a/extension/src/types/typechain/factories/Permissions__factory.ts +++ /dev/null @@ -1,541 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { Permissions, PermissionsInterface } from "../Permissions"; - -const _abi = [ - { - inputs: [], - name: "ArraysDifferentLength", - type: "error", - }, - { - inputs: [], - name: "CalldataOutOfBounds", - type: "error", - }, - { - inputs: [], - name: "DelegateCallNotAllowed", - type: "error", - }, - { - inputs: [], - name: "FunctionNotAllowed", - type: "error", - }, - { - inputs: [], - name: "FunctionSignatureTooShort", - type: "error", - }, - { - inputs: [], - name: "NoMembership", - type: "error", - }, - { - inputs: [], - name: "NotEnoughCompValuesForOneOf", - type: "error", - }, - { - inputs: [], - name: "ParameterGreaterThanAllowed", - type: "error", - }, - { - inputs: [], - name: "ParameterLessThanAllowed", - type: "error", - }, - { - inputs: [], - name: "ParameterNotAllowed", - type: "error", - }, - { - inputs: [], - name: "ParameterNotOneOfAllowed", - type: "error", - }, - { - inputs: [], - name: "ScopeMaxParametersExceeded", - type: "error", - }, - { - inputs: [], - name: "SendNotAllowed", - type: "error", - }, - { - inputs: [], - name: "TargetAddressNotAllowed", - type: "error", - }, - { - inputs: [], - name: "UnacceptableMultiSendOffset", - type: "error", - }, - { - inputs: [], - name: "UnsuitableDynamic32CompValueSize", - type: "error", - }, - { - inputs: [], - name: "UnsuitableOneOfComparison", - type: "error", - }, - { - inputs: [], - name: "UnsuitableRelativeComparison", - type: "error", - }, - { - inputs: [], - name: "UnsuitableStaticCompValueSize", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint16", - name: "role", - type: "uint16", - }, - { - indexed: false, - internalType: "address", - name: "targetAddress", - type: "address", - }, - { - indexed: false, - internalType: "enum ExecutionOptions", - name: "options", - type: "uint8", - }, - ], - name: "AllowTarget", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint16", - name: "role", - type: "uint16", - }, - { - indexed: false, - internalType: "address", - name: "targetAddress", - type: "address", - }, - ], - name: "RevokeTarget", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint16", - name: "role", - type: "uint16", - }, - { - indexed: false, - internalType: "address", - name: "targetAddress", - type: "address", - }, - { - indexed: false, - internalType: "bytes4", - name: "selector", - type: "bytes4", - }, - { - indexed: false, - internalType: "enum ExecutionOptions", - name: "options", - type: "uint8", - }, - { - indexed: false, - internalType: "uint256", - name: "resultingScopeConfig", - type: "uint256", - }, - ], - name: "ScopeAllowFunction", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint16", - name: "role", - type: "uint16", - }, - { - indexed: false, - internalType: "address", - name: "targetAddress", - type: "address", - }, - { - indexed: false, - internalType: "bytes4", - name: "functionSig", - type: "bytes4", - }, - { - indexed: false, - internalType: "bool[]", - name: "isParamScoped", - type: "bool[]", - }, - { - indexed: false, - internalType: "enum ParameterType[]", - name: "paramType", - type: "uint8[]", - }, - { - indexed: false, - internalType: "enum Comparison[]", - name: "paramComp", - type: "uint8[]", - }, - { - indexed: false, - internalType: "bytes[]", - name: "compValue", - type: "bytes[]", - }, - { - indexed: false, - internalType: "enum ExecutionOptions", - name: "options", - type: "uint8", - }, - { - indexed: false, - internalType: "uint256", - name: "resultingScopeConfig", - type: "uint256", - }, - ], - name: "ScopeFunction", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint16", - name: "role", - type: "uint16", - }, - { - indexed: false, - internalType: "address", - name: "targetAddress", - type: "address", - }, - { - indexed: false, - internalType: "bytes4", - name: "functionSig", - type: "bytes4", - }, - { - indexed: false, - internalType: "enum ExecutionOptions", - name: "options", - type: "uint8", - }, - { - indexed: false, - internalType: "uint256", - name: "resultingScopeConfig", - type: "uint256", - }, - ], - name: "ScopeFunctionExecutionOptions", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint16", - name: "role", - type: "uint16", - }, - { - indexed: false, - internalType: "address", - name: "targetAddress", - type: "address", - }, - { - indexed: false, - internalType: "bytes4", - name: "functionSig", - type: "bytes4", - }, - { - indexed: false, - internalType: "uint256", - name: "index", - type: "uint256", - }, - { - indexed: false, - internalType: "enum ParameterType", - name: "paramType", - type: "uint8", - }, - { - indexed: false, - internalType: "enum Comparison", - name: "paramComp", - type: "uint8", - }, - { - indexed: false, - internalType: "bytes", - name: "compValue", - type: "bytes", - }, - { - indexed: false, - internalType: "uint256", - name: "resultingScopeConfig", - type: "uint256", - }, - ], - name: "ScopeParameter", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint16", - name: "role", - type: "uint16", - }, - { - indexed: false, - internalType: "address", - name: "targetAddress", - type: "address", - }, - { - indexed: false, - internalType: "bytes4", - name: "functionSig", - type: "bytes4", - }, - { - indexed: false, - internalType: "uint256", - name: "index", - type: "uint256", - }, - { - indexed: false, - internalType: "enum ParameterType", - name: "paramType", - type: "uint8", - }, - { - indexed: false, - internalType: "bytes[]", - name: "compValues", - type: "bytes[]", - }, - { - indexed: false, - internalType: "uint256", - name: "resultingScopeConfig", - type: "uint256", - }, - ], - name: "ScopeParameterAsOneOf", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint16", - name: "role", - type: "uint16", - }, - { - indexed: false, - internalType: "address", - name: "targetAddress", - type: "address", - }, - { - indexed: false, - internalType: "bytes4", - name: "selector", - type: "bytes4", - }, - { - indexed: false, - internalType: "uint256", - name: "resultingScopeConfig", - type: "uint256", - }, - ], - name: "ScopeRevokeFunction", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint16", - name: "role", - type: "uint16", - }, - { - indexed: false, - internalType: "address", - name: "targetAddress", - type: "address", - }, - ], - name: "ScopeTarget", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint16", - name: "role", - type: "uint16", - }, - { - indexed: false, - internalType: "address", - name: "targetAddress", - type: "address", - }, - { - indexed: false, - internalType: "bytes4", - name: "functionSig", - type: "bytes4", - }, - { - indexed: false, - internalType: "uint256", - name: "index", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "resultingScopeConfig", - type: "uint256", - }, - ], - name: "UnscopeParameter", - type: "event", - }, - { - inputs: [ - { - internalType: "address", - name: "targetAddress", - type: "address", - }, - { - internalType: "bytes4", - name: "functionSig", - type: "bytes4", - }, - { - internalType: "uint256", - name: "index", - type: "uint256", - }, - ], - name: "keyForCompValues", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "targetAddress", - type: "address", - }, - { - internalType: "bytes4", - name: "functionSig", - type: "bytes4", - }, - ], - name: "keyForFunctions", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "pure", - type: "function", - }, -]; - -export class Permissions__factory { - static readonly abi = _abi; - static createInterface(): PermissionsInterface { - return new utils.Interface(_abi) as PermissionsInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): Permissions { - return new Contract(address, _abi, signerOrProvider) as Permissions; - } -} diff --git a/extension/src/types/typechain/factories/Roles__factory.ts b/extension/src/types/typechain/factories/Roles__factory.ts deleted file mode 100644 index 5b5179ba..00000000 --- a/extension/src/types/typechain/factories/Roles__factory.ts +++ /dev/null @@ -1,1008 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { Roles, RolesInterface } from "../Roles"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "_owner", - type: "address", - }, - { - internalType: "address", - name: "_avatar", - type: "address", - }, - { - internalType: "address", - name: "_target", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "ArraysDifferentLength", - type: "error", - }, - { - inputs: [], - name: "ModuleTransactionFailed", - type: "error", - }, - { - inputs: [], - name: "NoMembership", - type: "error", - }, - { - inputs: [], - name: "SetUpModulesAlreadyCalled", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "module", - type: "address", - }, - { - indexed: false, - internalType: "uint16[]", - name: "roles", - type: "uint16[]", - }, - { - indexed: false, - internalType: "bool[]", - name: "memberOf", - type: "bool[]", - }, - ], - name: "AssignRoles", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "previousAvatar", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "newAvatar", - type: "address", - }, - ], - name: "AvatarSet", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "guard", - type: "address", - }, - ], - name: "ChangedGuard", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "module", - type: "address", - }, - ], - name: "DisabledModule", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "module", - type: "address", - }, - ], - name: "EnabledModule", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "previousOwner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "newOwner", - type: "address", - }, - ], - name: "OwnershipTransferred", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "initiator", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "owner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "avatar", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "target", - type: "address", - }, - ], - name: "RolesModSetup", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "module", - type: "address", - }, - { - indexed: false, - internalType: "uint16", - name: "defaultRole", - type: "uint16", - }, - ], - name: "SetDefaultRole", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "multisendAddress", - type: "address", - }, - ], - name: "SetMultisendAddress", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "previousTarget", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "newTarget", - type: "address", - }, - ], - name: "TargetSet", - type: "event", - }, - { - inputs: [ - { - internalType: "uint16", - name: "role", - type: "uint16", - }, - { - internalType: "address", - name: "targetAddress", - type: "address", - }, - { - internalType: "enum ExecutionOptions", - name: "options", - type: "uint8", - }, - ], - name: "allowTarget", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "module", - type: "address", - }, - { - internalType: "uint16[]", - name: "_roles", - type: "uint16[]", - }, - { - internalType: "bool[]", - name: "memberOf", - type: "bool[]", - }, - ], - name: "assignRoles", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "avatar", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - name: "defaultRoles", - outputs: [ - { - internalType: "uint16", - name: "", - type: "uint16", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "prevModule", - type: "address", - }, - { - internalType: "address", - name: "module", - type: "address", - }, - ], - name: "disableModule", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "module", - type: "address", - }, - ], - name: "enableModule", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - { - internalType: "enum Enum.Operation", - name: "operation", - type: "uint8", - }, - ], - name: "execTransactionFromModule", - outputs: [ - { - internalType: "bool", - name: "success", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - { - internalType: "enum Enum.Operation", - name: "operation", - type: "uint8", - }, - ], - name: "execTransactionFromModuleReturnData", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - { - internalType: "bytes", - name: "", - type: "bytes", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - { - internalType: "enum Enum.Operation", - name: "operation", - type: "uint8", - }, - { - internalType: "uint16", - name: "role", - type: "uint16", - }, - { - internalType: "bool", - name: "shouldRevert", - type: "bool", - }, - ], - name: "execTransactionWithRole", - outputs: [ - { - internalType: "bool", - name: "success", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - { - internalType: "enum Enum.Operation", - name: "operation", - type: "uint8", - }, - { - internalType: "uint16", - name: "role", - type: "uint16", - }, - { - internalType: "bool", - name: "shouldRevert", - type: "bool", - }, - ], - name: "execTransactionWithRoleReturnData", - outputs: [ - { - internalType: "bool", - name: "success", - type: "bool", - }, - { - internalType: "bytes", - name: "returnData", - type: "bytes", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "getGuard", - outputs: [ - { - internalType: "address", - name: "_guard", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "start", - type: "address", - }, - { - internalType: "uint256", - name: "pageSize", - type: "uint256", - }, - ], - name: "getModulesPaginated", - outputs: [ - { - internalType: "address[]", - name: "array", - type: "address[]", - }, - { - internalType: "address", - name: "next", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "guard", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_module", - type: "address", - }, - ], - name: "isModuleEnabled", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "multisend", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "owner", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "renounceOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint16", - name: "role", - type: "uint16", - }, - { - internalType: "address", - name: "targetAddress", - type: "address", - }, - ], - name: "revokeTarget", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint16", - name: "role", - type: "uint16", - }, - { - internalType: "address", - name: "targetAddress", - type: "address", - }, - { - internalType: "bytes4", - name: "functionSig", - type: "bytes4", - }, - { - internalType: "enum ExecutionOptions", - name: "options", - type: "uint8", - }, - ], - name: "scopeAllowFunction", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint16", - name: "role", - type: "uint16", - }, - { - internalType: "address", - name: "targetAddress", - type: "address", - }, - { - internalType: "bytes4", - name: "functionSig", - type: "bytes4", - }, - { - internalType: "bool[]", - name: "isParamScoped", - type: "bool[]", - }, - { - internalType: "enum ParameterType[]", - name: "paramType", - type: "uint8[]", - }, - { - internalType: "enum Comparison[]", - name: "paramComp", - type: "uint8[]", - }, - { - internalType: "bytes[]", - name: "compValue", - type: "bytes[]", - }, - { - internalType: "enum ExecutionOptions", - name: "options", - type: "uint8", - }, - ], - name: "scopeFunction", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint16", - name: "role", - type: "uint16", - }, - { - internalType: "address", - name: "targetAddress", - type: "address", - }, - { - internalType: "bytes4", - name: "functionSig", - type: "bytes4", - }, - { - internalType: "enum ExecutionOptions", - name: "options", - type: "uint8", - }, - ], - name: "scopeFunctionExecutionOptions", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint16", - name: "role", - type: "uint16", - }, - { - internalType: "address", - name: "targetAddress", - type: "address", - }, - { - internalType: "bytes4", - name: "functionSig", - type: "bytes4", - }, - { - internalType: "uint256", - name: "paramIndex", - type: "uint256", - }, - { - internalType: "enum ParameterType", - name: "paramType", - type: "uint8", - }, - { - internalType: "enum Comparison", - name: "paramComp", - type: "uint8", - }, - { - internalType: "bytes", - name: "compValue", - type: "bytes", - }, - ], - name: "scopeParameter", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint16", - name: "role", - type: "uint16", - }, - { - internalType: "address", - name: "targetAddress", - type: "address", - }, - { - internalType: "bytes4", - name: "functionSig", - type: "bytes4", - }, - { - internalType: "uint256", - name: "paramIndex", - type: "uint256", - }, - { - internalType: "enum ParameterType", - name: "paramType", - type: "uint8", - }, - { - internalType: "bytes[]", - name: "compValues", - type: "bytes[]", - }, - ], - name: "scopeParameterAsOneOf", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint16", - name: "role", - type: "uint16", - }, - { - internalType: "address", - name: "targetAddress", - type: "address", - }, - { - internalType: "bytes4", - name: "functionSig", - type: "bytes4", - }, - ], - name: "scopeRevokeFunction", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint16", - name: "role", - type: "uint16", - }, - { - internalType: "address", - name: "targetAddress", - type: "address", - }, - ], - name: "scopeTarget", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_avatar", - type: "address", - }, - ], - name: "setAvatar", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "module", - type: "address", - }, - { - internalType: "uint16", - name: "role", - type: "uint16", - }, - ], - name: "setDefaultRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_guard", - type: "address", - }, - ], - name: "setGuard", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_multisend", - type: "address", - }, - ], - name: "setMultisend", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_target", - type: "address", - }, - ], - name: "setTarget", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes", - name: "initParams", - type: "bytes", - }, - ], - name: "setUp", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "target", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "newOwner", - type: "address", - }, - ], - name: "transferOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint16", - name: "role", - type: "uint16", - }, - { - internalType: "address", - name: "targetAddress", - type: "address", - }, - { - internalType: "bytes4", - name: "functionSig", - type: "bytes4", - }, - { - internalType: "uint8", - name: "paramIndex", - type: "uint8", - }, - ], - name: "unscopeParameter", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -]; - -export class Roles__factory { - static readonly abi = _abi; - static createInterface(): RolesInterface { - return new utils.Interface(_abi) as RolesInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): Roles { - return new Contract(address, _abi, signerOrProvider) as Roles; - } -} diff --git a/extension/src/types/typechain/factories/index.ts b/extension/src/types/typechain/factories/index.ts deleted file mode 100644 index 988b69d2..00000000 --- a/extension/src/types/typechain/factories/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { Permissions__factory } from "./Permissions__factory"; -export { Roles__factory } from "./Roles__factory"; diff --git a/extension/src/types/typechain/index.ts b/extension/src/types/typechain/index.ts deleted file mode 100644 index 3991ed2a..00000000 --- a/extension/src/types/typechain/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { Permissions } from "./Permissions"; -export type { Roles } from "./Roles"; -export * as factories from "./factories"; -export { Permissions__factory } from "./factories/Permissions__factory"; -export { Roles__factory } from "./factories/Roles__factory"; diff --git a/extension/src/utils/decodeRolesError.ts b/extension/src/utils/decodeRolesError.ts index 2c4e0682..6f25923c 100644 --- a/extension/src/utils/decodeRolesError.ts +++ b/extension/src/utils/decodeRolesError.ts @@ -1,12 +1,16 @@ +import { ContractFactories, KnownContracts } from '@gnosis.pm/zodiac' import { JsonRpcError } from '../types' -import { Permissions__factory, Roles__factory } from '../types/typechain' -const permissionsInterface = Permissions__factory.createInterface() -const rolesInterface = Roles__factory.createInterface() +const RolesV1Interface = + ContractFactories[KnownContracts.ROLES_V1].createInterface() +const RolesV1PermissionsInterface = + ContractFactories[KnownContracts.PERMISSIONS].createInterface() +const RolesV2Interface = + ContractFactories[KnownContracts.ROLES_V2].createInterface() -const KNOWN_ERRORS = Object.keys(rolesInterface.errors).concat( - Object.keys(permissionsInterface.errors) -) +const KNOWN_ERRORS = Object.keys(RolesV1Interface.errors) + .concat(Object.keys(RolesV1PermissionsInterface.errors)) + .concat(Object.keys(RolesV2Interface.errors)) export default function decodeRolesError(error: JsonRpcError) { // The errors thrown when a transaction is reverted use different formats, depending on: @@ -29,11 +33,15 @@ export default function decodeRolesError(error: JsonRpcError) { if (revertData.startsWith('0x')) { const rolesError = - Object.keys(rolesInterface.errors).find( - (errSig) => rolesInterface.getSighash(errSig) === revertData + Object.keys(RolesV1Interface.errors).find( + (errSig) => RolesV1Interface.getSighash(errSig) === revertData ) || - Object.keys(permissionsInterface.errors).find( - (errSig) => permissionsInterface.getSighash(errSig) === revertData + Object.keys(RolesV1PermissionsInterface.errors).find( + (errSig) => + RolesV1PermissionsInterface.getSighash(errSig) === revertData + ) || + Object.keys(RolesV2Interface.errors).find( + (errSig) => RolesV2Interface.getSighash(errSig) === revertData ) if (rolesError) return rolesError diff --git a/extension/yarn.lock b/extension/yarn.lock index 99b33252..74290a82 100644 --- a/extension/yarn.lock +++ b/extension/yarn.lock @@ -2647,22 +2647,6 @@ __metadata: languageName: node linkType: hard -"@typechain/ethers-v5@npm:^10.2.1": - version: 10.2.1 - resolution: "@typechain/ethers-v5@npm:10.2.1" - dependencies: - lodash: ^4.17.15 - ts-essentials: ^7.0.1 - peerDependencies: - "@ethersproject/abi": ^5.0.0 - "@ethersproject/providers": ^5.0.0 - ethers: ^5.1.3 - typechain: ^8.1.1 - typescript: ">=4.3.0" - checksum: 852da4b1ff368ef87251111a5d50077de3d0fc12c519529269a74223740f8bda89297e67a5eb6c1f5b04ee23119566d6cbccf58264d32a83132be0f328a58d22 - languageName: node - linkType: hard - "@types/babel__core@npm:^7.0.0, @types/babel__core@npm:^7.1.14": version: 7.20.5 resolution: "@types/babel__core@npm:7.20.5" @@ -2881,7 +2865,7 @@ __metadata: languageName: node linkType: hard -"@types/prettier@npm:^2.1.1, @types/prettier@npm:^2.1.5": +"@types/prettier@npm:^2.1.5": version: 2.7.3 resolution: "@types/prettier@npm:2.7.3" checksum: 705384209cea6d1433ff6c187c80dcc0b95d99d5c5ce21a46a9a58060c527973506822e428789d842761e0280d25e3359300f017fbe77b9755bc772ab3dc2f83 @@ -3707,20 +3691,6 @@ __metadata: languageName: node linkType: hard -"array-back@npm:^3.0.1, array-back@npm:^3.1.0": - version: 3.1.0 - resolution: "array-back@npm:3.1.0" - checksum: 7205004fcd0f9edd926db921af901b083094608d5b265738d0290092f9822f73accb468e677db74c7c94ef432d39e5ed75a7b1786701e182efb25bbba9734209 - languageName: node - linkType: hard - -"array-back@npm:^4.0.1, array-back@npm:^4.0.2": - version: 4.0.2 - resolution: "array-back@npm:4.0.2" - checksum: f30603270771eeb54e5aad5f54604c62b3577a18b6db212a7272b2b6c32049121b49431f656654790ed1469411e45f387e7627c0de8fd0515995cc40df9b9294 - languageName: node - linkType: hard - "array-buffer-byte-length@npm:^1.0.0": version: 1.0.0 resolution: "array-buffer-byte-length@npm:1.0.0" @@ -4524,7 +4494,7 @@ __metadata: languageName: node linkType: hard -"chalk@npm:^4.0.0, chalk@npm:^4.1.0, chalk@npm:^4.1.2": +"chalk@npm:^4.0.0, chalk@npm:^4.1.2": version: 4.1.2 resolution: "chalk@npm:4.1.2" dependencies: @@ -4762,30 +4732,6 @@ __metadata: languageName: node linkType: hard -"command-line-args@npm:^5.1.1": - version: 5.2.1 - resolution: "command-line-args@npm:5.2.1" - dependencies: - array-back: ^3.1.0 - find-replace: ^3.0.0 - lodash.camelcase: ^4.3.0 - typical: ^4.0.0 - checksum: e759519087be3cf2e86af8b9a97d3058b4910cd11ee852495be881a067b72891f6a32718fb685ee6d41531ab76b2b7bfb6602f79f882cd4b7587ff1e827982c7 - languageName: node - linkType: hard - -"command-line-usage@npm:^6.1.0": - version: 6.1.3 - resolution: "command-line-usage@npm:6.1.3" - dependencies: - array-back: ^4.0.2 - chalk: ^2.4.2 - table-layout: ^1.0.2 - typical: ^5.2.0 - checksum: 8261d4e5536eb0bcddee0ec5e89c05bb2abd18e5760785c8078ede5020bc1c612cbe28eb6586f5ed4a3660689748e5aaad4a72f21566f4ef39393694e2fa1a0b - languageName: node - linkType: hard - "commander@npm:^9.2.0": version: 9.5.0 resolution: "commander@npm:9.5.0" @@ -5370,13 +5316,6 @@ __metadata: languageName: node linkType: hard -"deep-extend@npm:~0.6.0": - version: 0.6.0 - resolution: "deep-extend@npm:0.6.0" - checksum: 7be7e5a8d468d6b10e6a67c3de828f55001b6eb515d014f7aeb9066ce36bd5717161eb47d6a0f7bed8a9083935b465bc163ee2581c8b128d29bf61092fdf57a7 - languageName: node - linkType: hard - "deep-is@npm:^0.1.3": version: 0.1.4 resolution: "deep-is@npm:0.1.4" @@ -6803,15 +6742,6 @@ __metadata: languageName: node linkType: hard -"find-replace@npm:^3.0.0": - version: 3.0.0 - resolution: "find-replace@npm:3.0.0" - dependencies: - array-back: ^3.0.1 - checksum: 6b04bcfd79027f5b84aa1dfe100e3295da989bdac4b4de6b277f4d063e78f5c9e92ebc8a1fec6dd3b448c924ba404ee051cc759e14a3ee3e825fa1361025df08 - languageName: node - linkType: hard - "find-root@npm:^1.1.0": version: 1.1.0 resolution: "find-root@npm:1.1.0" @@ -6948,17 +6878,6 @@ __metadata: languageName: node linkType: hard -"fs-extra@npm:^7.0.0": - version: 7.0.1 - resolution: "fs-extra@npm:7.0.1" - dependencies: - graceful-fs: ^4.1.2 - jsonfile: ^4.0.0 - universalify: ^0.1.0 - checksum: 141b9dccb23b66a66cefdd81f4cda959ff89282b1d721b98cea19ba08db3dcbe6f862f28841f3cf24bb299e0b7e6c42303908f65093cb7e201708e86ea5a8dcf - languageName: node - linkType: hard - "fs-minipass@npm:^1.2.7": version: 1.2.7 resolution: "fs-minipass@npm:1.2.7" @@ -7170,20 +7089,6 @@ __metadata: languageName: node linkType: hard -"glob@npm:7.1.7": - version: 7.1.7 - resolution: "glob@npm:7.1.7" - dependencies: - fs.realpath: ^1.0.0 - inflight: ^1.0.4 - inherits: 2 - minimatch: ^3.0.4 - once: ^1.3.0 - path-is-absolute: ^1.0.0 - checksum: b61f48973bbdcf5159997b0874a2165db572b368b931135832599875919c237fc05c12984e38fe828e69aa8a921eb0e8a4997266211c517c9cfaae8a93988bb8 - languageName: node - linkType: hard - "glob@npm:^10.2.2, glob@npm:^10.3.10": version: 10.3.10 resolution: "glob@npm:10.3.10" @@ -9960,7 +9865,7 @@ __metadata: languageName: node linkType: hard -"mkdirp@npm:^1.0.3, mkdirp@npm:^1.0.4, mkdirp@npm:~1.0.4": +"mkdirp@npm:^1.0.3, mkdirp@npm:~1.0.4": version: 1.0.4 resolution: "mkdirp@npm:1.0.4" bin: @@ -11051,7 +10956,7 @@ __metadata: languageName: node linkType: hard -"prettier@npm:^2.3.1, prettier@npm:^2.8.2": +"prettier@npm:^2.8.2": version: 2.8.8 resolution: "prettier@npm:2.8.8" bin: @@ -11564,13 +11469,6 @@ __metadata: languageName: node linkType: hard -"reduce-flatten@npm:^2.0.0": - version: 2.0.0 - resolution: "reduce-flatten@npm:2.0.0" - checksum: 64393ef99a16b20692acfd60982d7fdbd7ff8d9f8f185c6023466444c6dd2abb929d67717a83cec7f7f8fb5f46a25d515b3b2bf2238fdbfcdbfd01d2a9e73cb8 - languageName: node - linkType: hard - "reflect.getprototypeof@npm:^1.0.4": version: 1.0.4 resolution: "reflect.getprototypeof@npm:1.0.4" @@ -12374,13 +12272,6 @@ __metadata: languageName: node linkType: hard -"string-format@npm:^2.0.0": - version: 2.0.0 - resolution: "string-format@npm:2.0.0" - checksum: dada2ef95f6d36c66562c673d95315f80457fa7dce2f3609a2e75d1190b98c88319028cf0a5b6c043d01c18d581b2641579f79480584ba030d6ac6fceb30bc55 - languageName: node - linkType: hard - "string-hash@npm:^1.1.1": version: 1.1.3 resolution: "string-hash@npm:1.1.3" @@ -12652,18 +12543,6 @@ __metadata: languageName: node linkType: hard -"table-layout@npm:^1.0.2": - version: 1.0.2 - resolution: "table-layout@npm:1.0.2" - dependencies: - array-back: ^4.0.1 - deep-extend: ~0.6.0 - typical: ^5.2.0 - wordwrapjs: ^4.0.0 - checksum: 8f41b5671f101a5195747ec1727b1d35ea2cd5bf85addda11cc2f4b36892db9696ce3c2c7334b5b8a122505b34d19135fede50e25678df71b0439e0704fd953f - languageName: node - linkType: hard - "tar@npm:^4.0.2": version: 4.4.19 resolution: "tar@npm:4.4.19" @@ -12837,29 +12716,6 @@ __metadata: languageName: node linkType: hard -"ts-command-line-args@npm:^2.2.0": - version: 2.5.1 - resolution: "ts-command-line-args@npm:2.5.1" - dependencies: - chalk: ^4.1.0 - command-line-args: ^5.1.1 - command-line-usage: ^6.1.0 - string-format: ^2.0.0 - bin: - write-markdown: dist/write-markdown.js - checksum: 7c0a7582e94f1d2160e3dd379851ec4f1758bc673ccd71bae07f839f83051b6b83e0ae14325c2d04ea728e5bde7b7eacfd2ab060b8fd4b8ab29e0bbf77f6c51e - languageName: node - linkType: hard - -"ts-essentials@npm:^7.0.1": - version: 7.0.3 - resolution: "ts-essentials@npm:7.0.3" - peerDependencies: - typescript: ">=3.7.0" - checksum: 74d75868acf7f8b95e447d8b3b7442ca21738c6894e576df9917a352423fde5eb43c5651da5f78997da6061458160ae1f6b279150b42f47ccc58b73e55acaa2f - languageName: node - linkType: hard - "ts-jest@npm:^27.1.2": version: 27.1.5 resolution: "ts-jest@npm:27.1.5" @@ -13007,28 +12863,6 @@ __metadata: languageName: node linkType: hard -"typechain@npm:^8.3.2": - version: 8.3.2 - resolution: "typechain@npm:8.3.2" - dependencies: - "@types/prettier": ^2.1.1 - debug: ^4.3.1 - fs-extra: ^7.0.0 - glob: 7.1.7 - js-sha3: ^0.8.0 - lodash: ^4.17.15 - mkdirp: ^1.0.4 - prettier: ^2.3.1 - ts-command-line-args: ^2.2.0 - ts-essentials: ^7.0.1 - peerDependencies: - typescript: ">=4.3.0" - bin: - typechain: dist/cli/cli.js - checksum: 146a1896fa93403404be78757790b0f95b5457efebcca16b61622e09c374d555ef4f837c1c4eedf77e03abc50276d96a2f33064ec09bb802f62d8cc2b13fce70 - languageName: node - linkType: hard - "typed-array-buffer@npm:^1.0.0": version: 1.0.0 resolution: "typed-array-buffer@npm:1.0.0" @@ -13128,20 +12962,6 @@ __metadata: languageName: node linkType: hard -"typical@npm:^4.0.0": - version: 4.0.0 - resolution: "typical@npm:4.0.0" - checksum: a242081956825328f535e6195a924240b34daf6e7fdb573a1809a42b9f37fb8114fa99c7ab89a695e0cdb419d4149d067f6723e4b95855ffd39c6c4ca378efb3 - languageName: node - linkType: hard - -"typical@npm:^5.2.0": - version: 5.2.0 - resolution: "typical@npm:5.2.0" - checksum: ccaeb151a9a556291b495571ca44c4660f736fb49c29314bbf773c90fad92e9485d3cc2b074c933866c1595abbbc962f2b8bfc6e0f52a8c6b0cdd205442036ac - languageName: node - linkType: hard - "ufo@npm:^1.3.0, ufo@npm:^1.3.1, ufo@npm:^1.3.2": version: 1.3.2 resolution: "ufo@npm:1.3.2" @@ -14248,16 +14068,6 @@ __metadata: languageName: node linkType: hard -"wordwrapjs@npm:^4.0.0": - version: 4.0.1 - resolution: "wordwrapjs@npm:4.0.1" - dependencies: - reduce-flatten: ^2.0.0 - typical: ^5.2.0 - checksum: 3d927f3c95d0ad990968da54c0ad8cde2801d8e91006cd7474c26e6b742cc8557250ce495c9732b2f9db1f903601cb74ec282e0f122ee0d02d7abe81e150eea8 - languageName: node - linkType: hard - "wrap-ansi-cjs@npm:wrap-ansi@^7.0.0, wrap-ansi@npm:^7.0.0": version: 7.0.0 resolution: "wrap-ansi@npm:7.0.0" @@ -14576,7 +14386,6 @@ __metadata: "@safe-global/safe-gateway-typescript-sdk": ^3.14.0 "@shazow/whatsabi": ^0.2.1 "@testing-library/jest-dom": ^5.16.1 - "@typechain/ethers-v5": ^10.2.1 "@types/chrome": ^0.0.233 "@types/events": ^3.0.3 "@types/jest": ^27.5.2 @@ -14624,7 +14433,6 @@ __metadata: react-toastify: ^9.0.8 rimraf: ^3.0.2 ts-jest: ^27.1.2 - typechain: ^8.3.2 typescript: ^4.9.4 typescript-plugin-css-modules: ^3.4.0 languageName: unknown