@t-rex-network/onchainid 0.0.0-stage → 3.0.0-beta0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/LICENSE.md +674 -0
  2. package/NOTICE.md +66 -0
  3. package/README.md +177 -2
  4. package/contracts/Identity.sol +235 -0
  5. package/contracts/IdentityUtilities.sol +269 -0
  6. package/contracts/KeyManager.sol +193 -0
  7. package/contracts/SmartAccount.sol +222 -0
  8. package/contracts/factory/IIdentityFactory.sol +325 -0
  9. package/contracts/factory/IdentityFactory.sol +818 -0
  10. package/contracts/interface/IClaimIssuer.sol +105 -0
  11. package/contracts/interface/IERC734.sol +69 -0
  12. package/contracts/interface/IERC735.sol +149 -0
  13. package/contracts/interface/IIdentity.sol +63 -0
  14. package/contracts/interface/IIdentityUtilities.sol +135 -0
  15. package/contracts/interface/IKeyExecutor.sol +84 -0
  16. package/contracts/libraries/Errors.sol +407 -0
  17. package/contracts/libraries/FormatResolver.sol +74 -0
  18. package/contracts/libraries/Hashing.sol +35 -0
  19. package/contracts/libraries/IdentityTypes.sol +53 -0
  20. package/contracts/libraries/KeyPurposes.sol +49 -0
  21. package/contracts/libraries/KeyTypes.sol +46 -0
  22. package/contracts/modules/claims/EASClaimIssuer.sol +348 -0
  23. package/contracts/modules/executors/KeyApprovalModule.sol +313 -0
  24. package/contracts/modules/executors/RecoveryModule.sol +88 -0
  25. package/contracts/modules/validators/ERC734Validator.sol +1000 -0
  26. package/contracts/modules/validators/ERC7579Validator.sol +74 -0
  27. package/contracts/proxy/IdentityUtilitiesProxy.sol +36 -0
  28. package/contracts/reputation/IReputationRegistry.sol +117 -0
  29. package/contracts/reputation/ReputationRegistry.sol +155 -0
  30. package/contracts/storage/Structs.sol +176 -0
  31. package/contracts/vendor/eas/IEAS.sol +36 -0
  32. package/contracts/vendor/utils/SafeCalldataBatch.sol +61 -0
  33. package/out/AbstractSigner.sol/AbstractSigner.json +1 -0
  34. package/out/AccessControlUpgradeable.sol/AccessControlUpgradeable.json +1 -0
  35. package/out/AccessManaged.sol/AccessManaged.json +1 -0
  36. package/out/AccessManager.sol/AccessManager.json +1 -0
  37. package/out/Account.sol/Account.json +1 -0
  38. package/out/AddClaimByTrustedIssuer.t.sol/AddClaimAsTrustedIssuerTest.json +1 -0
  39. package/out/Address.sol/Address.json +1 -0
  40. package/out/Arrays.sol/Arrays.json +1 -0
  41. package/out/AuthorityUtils.sol/AuthorityUtils.json +1 -0
  42. package/out/Base.sol/CommonBase.json +1 -0
  43. package/out/Base.sol/ScriptBase.json +1 -0
  44. package/out/Base.sol/TestBase.json +1 -0
  45. package/out/Base64.sol/Base64.json +1 -0
  46. package/out/BatchDecodeParity.t.sol/BatchDecodeParityTest.json +1 -0
  47. package/out/BeaconProxy.sol/BeaconProxy.json +1 -0
  48. package/out/Bytes.sol/Bytes.json +1 -0
  49. package/out/Calldata.sol/Calldata.json +1 -0
  50. package/out/ClaimSignatureDefinition.t.sol/ClaimSignatureDefinitionTest.json +1 -0
  51. package/out/ClaimSignatureDefinition.t.sol/NoERC1271Delegate.json +1 -0
  52. package/out/ClaimSignatureDefinition.t.sol/PickyERC1271Delegate.json +1 -0
  53. package/out/ClaimSignerHelper.sol/ClaimSignerHelper.json +1 -0
  54. package/out/ClaimTo.t.sol/ClaimToTest.json +1 -0
  55. package/out/Claims.t.sol/ClaimsTest.json +1 -0
  56. package/out/Claims.t.sol/ExternalIssuer.json +1 -0
  57. package/out/Comparators.sol/Comparators.json +1 -0
  58. package/out/Constants.sol/Constants.json +1 -0
  59. package/out/Context.sol/Context.json +1 -0
  60. package/out/ContextUpgradeable.sol/ContextUpgradeable.json +1 -0
  61. package/out/Create2.sol/Create2.json +1 -0
  62. package/out/Create3.sol/Create3.json +1 -0
  63. package/out/DeployOnchainID.s.sol/DeployOnchainID.json +1 -0
  64. package/out/EASClaimIssuer.sol/EASClaimIssuer.json +1 -0
  65. package/out/EASClaimIssuer.t.sol/EASClaimIssuerTest.json +1 -0
  66. package/out/EASTypes.sol/IEASTest.json +1 -0
  67. package/out/EASTypes.sol/ISchemaRegistryTest.json +1 -0
  68. package/out/ECDSA.sol/ECDSA.json +1 -0
  69. package/out/EIP712.sol/EIP712.json +1 -0
  70. package/out/ERC165.sol/ERC165.json +1 -0
  71. package/out/ERC165Upgradeable.sol/ERC165Upgradeable.json +1 -0
  72. package/out/ERC1967Proxy.sol/ERC1967Proxy.json +1 -0
  73. package/out/ERC1967Utils.sol/ERC1967Utils.json +1 -0
  74. package/out/ERC4337Utils.sol/ERC4337Utils.json +1 -0
  75. package/out/ERC4337Utils.sol/IEntryPointExtra.json +1 -0
  76. package/out/ERC734Validator.sol/ERC734Validator.json +1 -0
  77. package/out/ERC734Validator.t.sol/ERC734ValidatorTest.json +1 -0
  78. package/out/ERC734Validator.t.sol/PocCounter.json +1 -0
  79. package/out/ERC7579DelayedExecutor.sol/ERC7579DelayedExecutor.json +1 -0
  80. package/out/ERC7579Executor.sol/ERC7579Executor.json +1 -0
  81. package/out/ERC7579Multisig.sol/ERC7579Multisig.json +1 -0
  82. package/out/ERC7579MultisigWeighted.sol/ERC7579MultisigWeighted.json +1 -0
  83. package/out/ERC7579SocialRecoveryExecutor.sol/ERC7579SocialRecoveryExecutor.json +1 -0
  84. package/out/ERC7579Validator.sol/ERC7579Validator.json +1 -0
  85. package/out/ERC7786Recipient.sol/ERC7786Recipient.json +1 -0
  86. package/out/ERC7913WebAuthnVerifier.sol/ERC7913WebAuthnVerifier.json +1 -0
  87. package/out/EnumerableSet.sol/EnumerableSet.json +1 -0
  88. package/out/Errors.sol/Errors.json +1 -0
  89. package/out/Executions.t.sol/ETHReceiver.json +1 -0
  90. package/out/Executions.t.sol/ExecutionsTest.json +1 -0
  91. package/out/Executions.t.sol/RevertingReceiver.json +1 -0
  92. package/out/FormatResolver.sol/FormatResolver.json +1 -0
  93. package/out/Hashes.sol/Hashes.json +1 -0
  94. package/out/IAccessControl.sol/IAccessControl.json +1 -0
  95. package/out/IAccessManaged.sol/IAccessManaged.json +1 -0
  96. package/out/IAccessManager.sol/IAccessManager.json +1 -0
  97. package/out/IAuthority.sol/IAuthority.json +1 -0
  98. package/out/IBeacon.sol/IBeacon.json +1 -0
  99. package/out/IClaimIssuer.sol/IClaimIssuer.json +1 -0
  100. package/out/IEAS.sol/IEAS.json +1 -0
  101. package/out/IERC1271.sol/IERC1271.json +1 -0
  102. package/out/IERC165.sol/IERC165.json +1 -0
  103. package/out/IERC1967.sol/IERC1967.json +1 -0
  104. package/out/IERC4337.sol/IAccount.json +1 -0
  105. package/out/IERC4337.sol/IAccountExecute.json +1 -0
  106. package/out/IERC4337.sol/IAggregator.json +1 -0
  107. package/out/IERC4337.sol/IEntryPoint.json +1 -0
  108. package/out/IERC4337.sol/IEntryPointNonces.json +1 -0
  109. package/out/IERC4337.sol/IEntryPointStake.json +1 -0
  110. package/out/IERC4337.sol/IPaymaster.json +1 -0
  111. package/out/IERC5267.sol/IERC5267.json +1 -0
  112. package/out/IERC734.sol/IERC734.json +1 -0
  113. package/out/IERC734Surface.t.sol/IERC734SurfaceTest.json +1 -0
  114. package/out/IERC735.sol/IERC735.json +1 -0
  115. package/out/IERC7913.sol/IERC7913SignatureVerifier.json +1 -0
  116. package/out/IIdentity.sol/IIdentity.json +1 -0
  117. package/out/IIdentityFactory.sol/IIdentityFactory.json +1 -0
  118. package/out/IIdentityUtilities.sol/IIdentityUtilities.json +1 -0
  119. package/out/IKeyExecutor.sol/IKeyExecutor.json +1 -0
  120. package/out/IMulticall3.sol/IMulticall3.json +1 -0
  121. package/out/IReputationRegistry.sol/IReputationRegistry.json +1 -0
  122. package/out/Identity.sol/Identity.json +1 -0
  123. package/out/IdentityFactory.sol/IdentityFactory.json +1 -0
  124. package/out/IdentityFactory.t.sol/IdentityFactoryTest.json +1 -0
  125. package/out/IdentityHelper.sol/IdentityHelper.json +1 -0
  126. package/out/IdentityTypes.sol/IdentityTypes.json +1 -0
  127. package/out/IdentityUtilities.sol/IdentityUtilities.json +1 -0
  128. package/out/IdentityUtilities.t.sol/IdentityUtilitiesTest.json +1 -0
  129. package/out/IdentityUtilitiesProxy.sol/IdentityUtilitiesProxy.json +1 -0
  130. package/out/Init.t.sol/InitTest.json +1 -0
  131. package/out/Initializable.sol/Initializable.json +1 -0
  132. package/out/InteroperableAddressEncoding.t.sol/InteroperableAddressEncodingTest.json +1 -0
  133. package/out/KeyApprovalModule.sol/IIdentityAccount.json +1 -0
  134. package/out/KeyApprovalModule.sol/KeyApprovalModule.json +1 -0
  135. package/out/KeyApprovalModuleFactoryGuard.t.sol/KeyApprovalModuleFactoryGuardTest.json +1 -0
  136. package/out/KeyManager.sol/KeyManager.json +1 -0
  137. package/out/KeyPurposes.sol/KeyPurposes.json +1 -0
  138. package/out/KeyTypes.sol/KeyTypes.json +1 -0
  139. package/out/Keys.t.sol/KeysTest.json +1 -0
  140. package/out/LowLevelCall.sol/LowLevelCall.json +1 -0
  141. package/out/Math.sol/Math.json +1 -0
  142. package/out/MessageHashUtils.sol/MessageHashUtils.json +1 -0
  143. package/out/MockERC1271Signer.sol/MockERC1271Signer.json +1 -0
  144. package/out/MockERC1271Wallet.sol/MockERC1271Wallet.json +1 -0
  145. package/out/MockERC7786Gateway.sol/MockERC7786Gateway.json +1 -0
  146. package/out/MockERC7913PermissiveVerifier.sol/MockERC7913PermissiveVerifier.json +1 -0
  147. package/out/MockLyingERC734Getter.sol/MockLyingERC734Getter.json +1 -0
  148. package/out/MockStockECDSAValidator.sol/MockStockECDSAValidator.json +1 -0
  149. package/out/Multicall.sol/Multicall.json +1 -0
  150. package/out/Multisig.sol/Multisig.json +1 -0
  151. package/out/Nonces.sol/Nonces.json +1 -0
  152. package/out/OnchainIDSetup.sol/OnchainIDSetup.json +1 -0
  153. package/out/Ownable.sol/Ownable.json +1 -0
  154. package/out/P256.sol/P256.json +1 -0
  155. package/out/Packing.sol/Packing.json +1 -0
  156. package/out/Panic.sol/Panic.json +1 -0
  157. package/out/PrivilegedReentryGuard.t.sol/PocCounter.json +1 -0
  158. package/out/PrivilegedReentryGuard.t.sol/PrivilegedReentryGuardTest.json +1 -0
  159. package/out/Proxy.sol/Proxy.json +1 -0
  160. package/out/Proxy.t.sol/ProxyTest.json +1 -0
  161. package/out/ProxyPattern.t.sol/ProxyPatternTest.json +1 -0
  162. package/out/RecoveryModule.sol/RecoveryModule.json +1 -0
  163. package/out/RecoveryModule.t.sol/RecoveryModuleTest.json +1 -0
  164. package/out/ReputationRegistry.sol/ReputationRegistry.json +1 -0
  165. package/out/ReputationRegistry.t.sol/FakeIdentity.json +1 -0
  166. package/out/ReputationRegistry.t.sol/ReputationRegistryTest.json +1 -0
  167. package/out/RevertingIdentity.sol/RevertingIdentity.json +1 -0
  168. package/out/SafeCalldataBatch.sol/SafeCalldataBatch.json +1 -0
  169. package/out/SafeCast.sol/SafeCast.json +1 -0
  170. package/out/Script.sol/Script.json +1 -0
  171. package/out/ShortStrings.sol/ShortStrings.json +1 -0
  172. package/out/SignatureChecker.sol/SignatureChecker.json +1 -0
  173. package/out/SignedMath.sol/SignedMath.json +1 -0
  174. package/out/SlotDerivation.sol/SlotDerivation.json +1 -0
  175. package/out/SmartAccount.sol/SmartAccount.json +1 -0
  176. package/out/SmartAccount.t.sol/AlwaysApprovePolicy.json +1 -0
  177. package/out/SmartAccount.t.sol/Counter.json +1 -0
  178. package/out/SmartAccount.t.sol/IAddKeyWithData.json +1 -0
  179. package/out/SmartAccount.t.sol/ReentrantUninstaller.json +1 -0
  180. package/out/SmartAccount.t.sol/SmartAccountTest.json +1 -0
  181. package/out/SmartAccount.t.sol/TestExecutor.json +1 -0
  182. package/out/StdAssertions.sol/StdAssertions.json +1 -0
  183. package/out/StdChains.sol/StdChains.json +1 -0
  184. package/out/StdCheats.sol/StdCheats.json +1 -0
  185. package/out/StdCheats.sol/StdCheatsSafe.json +1 -0
  186. package/out/StdConstants.sol/StdConstants.json +1 -0
  187. package/out/StdError.sol/stdError.json +1 -0
  188. package/out/StdInvariant.sol/StdInvariant.json +1 -0
  189. package/out/StdJson.sol/stdJson.json +1 -0
  190. package/out/StdMath.sol/stdMath.json +1 -0
  191. package/out/StdStorage.sol/stdStorage.json +1 -0
  192. package/out/StdStorage.sol/stdStorageSafe.json +1 -0
  193. package/out/StdStyle.sol/StdStyle.json +1 -0
  194. package/out/StdToml.sol/stdToml.json +1 -0
  195. package/out/StdUtils.sol/StdUtils.json +1 -0
  196. package/out/StorageSlot.sol/StorageSlot.json +1 -0
  197. package/out/Strings.sol/Strings.json +1 -0
  198. package/out/Structs.sol/Structs.json +1 -0
  199. package/out/Test.sol/Test.json +1 -0
  200. package/out/TestIdentityUtilities.sol/TestIdentityUtilities.json +1 -0
  201. package/out/Time.sol/Time.json +1 -0
  202. package/out/TokenOid.t.sol/TokenOidTest.json +1 -0
  203. package/out/UUPSUpgradeable.sol/UUPSUpgradeable.json +1 -0
  204. package/out/UnlockedIdentity.sol/UnlockedIdentity.json +1 -0
  205. package/out/UpgradeableBeacon.sol/UpgradeableBeacon.json +1 -0
  206. package/out/VersionUpgrade.t.sol/VersionUpgradeTest.json +1 -0
  207. package/out/Vm.sol/Vm.json +1 -0
  208. package/out/Vm.sol/VmSafe.json +1 -0
  209. package/out/WebAuthn.sol/WebAuthn.json +1 -0
  210. package/out/WebAuthn.t.sol/WebAuthnTest.json +1 -0
  211. package/out/build-info/6d7390a9a3d29c7420710a69f614fbce.json +1 -0
  212. package/out/console.sol/console.json +1 -0
  213. package/out/draft-AccountERC7579Upgradeable.sol/AccountERC7579Upgradeable.json +1 -0
  214. package/out/draft-ERC7579Utils.sol/ERC7579Utils.json +1 -0
  215. package/out/draft-IERC1822.sol/IERC1822Proxiable.json +1 -0
  216. package/out/draft-IERC7579.sol/IERC7579AccountConfig.json +1 -0
  217. package/out/draft-IERC7579.sol/IERC7579Execution.json +1 -0
  218. package/out/draft-IERC7579.sol/IERC7579Hook.json +1 -0
  219. package/out/draft-IERC7579.sol/IERC7579Module.json +1 -0
  220. package/out/draft-IERC7579.sol/IERC7579ModuleConfig.json +1 -0
  221. package/out/draft-IERC7579.sol/IERC7579Validator.json +1 -0
  222. package/out/draft-IERC7786.sol/IERC7786GatewaySource.json +1 -0
  223. package/out/draft-IERC7786.sol/IERC7786Recipient.json +1 -0
  224. package/out/draft-InteroperableAddress.sol/InteroperableAddress.json +1 -0
  225. package/out/safeconsole.sol/safeconsole.json +1 -0
  226. package/out/src/Test.sol/Test.json +1 -0
  227. package/out/utils/Errors.sol/Errors.json +1 -0
  228. package/package.json +75 -4
@@ -0,0 +1 @@
1
+ {"abi":[{"type":"function","name":"addSigners","inputs":[{"name":"newSigners","type":"bytes[]","internalType":"bytes[]"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"getSignerCount","inputs":[{"name":"account","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getSigners","inputs":[{"name":"account","type":"address","internalType":"address"},{"name":"start","type":"uint64","internalType":"uint64"},{"name":"end","type":"uint64","internalType":"uint64"}],"outputs":[{"name":"","type":"bytes[]","internalType":"bytes[]"}],"stateMutability":"view"},{"type":"function","name":"isModuleType","inputs":[{"name":"moduleTypeId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"isSigner","inputs":[{"name":"account","type":"address","internalType":"address"},{"name":"signer","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"onInstall","inputs":[{"name":"initData","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"onUninstall","inputs":[{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"removeSigners","inputs":[{"name":"oldSigners","type":"bytes[]","internalType":"bytes[]"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setSignerWeights","inputs":[{"name":"signers","type":"bytes[]","internalType":"bytes[]"},{"name":"weights","type":"uint64[]","internalType":"uint64[]"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setThreshold","inputs":[{"name":"newThreshold","type":"uint64","internalType":"uint64"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"signerWeight","inputs":[{"name":"account","type":"address","internalType":"address"},{"name":"signer","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"uint64","internalType":"uint64"}],"stateMutability":"view"},{"type":"function","name":"threshold","inputs":[{"name":"account","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint64","internalType":"uint64"}],"stateMutability":"view"},{"type":"function","name":"totalWeight","inputs":[{"name":"account","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint64","internalType":"uint64"}],"stateMutability":"view"},{"type":"event","name":"ERC7579MultisigWeightChanged","inputs":[{"name":"account","type":"address","indexed":true,"internalType":"address"},{"name":"signer","type":"bytes","indexed":true,"internalType":"bytes"},{"name":"weight","type":"uint64","indexed":false,"internalType":"uint64"}],"anonymous":false},{"type":"event","name":"ERC7913SignerAdded","inputs":[{"name":"account","type":"address","indexed":true,"internalType":"address"},{"name":"signer","type":"bytes","indexed":false,"internalType":"bytes"}],"anonymous":false},{"type":"event","name":"ERC7913SignerRemoved","inputs":[{"name":"account","type":"address","indexed":true,"internalType":"address"},{"name":"signer","type":"bytes","indexed":false,"internalType":"bytes"}],"anonymous":false},{"type":"event","name":"ERC7913ThresholdSet","inputs":[{"name":"account","type":"address","indexed":true,"internalType":"address"},{"name":"threshold","type":"uint64","indexed":false,"internalType":"uint64"}],"anonymous":false},{"type":"error","name":"ERC7579MultisigAlreadyExists","inputs":[{"name":"signer","type":"bytes","internalType":"bytes"}]},{"type":"error","name":"ERC7579MultisigAlreadyInstalled","inputs":[]},{"type":"error","name":"ERC7579MultisigEmptySigners","inputs":[]},{"type":"error","name":"ERC7579MultisigInvalidInitData","inputs":[]},{"type":"error","name":"ERC7579MultisigInvalidSigner","inputs":[{"name":"signer","type":"bytes","internalType":"bytes"}]},{"type":"error","name":"ERC7579MultisigInvalidWeight","inputs":[{"name":"signer","type":"bytes","internalType":"bytes"},{"name":"weight","type":"uint64","internalType":"uint64"}]},{"type":"error","name":"ERC7579MultisigMismatchedLength","inputs":[]},{"type":"error","name":"ERC7579MultisigNonexistentSigner","inputs":[{"name":"signer","type":"bytes","internalType":"bytes"}]},{"type":"error","name":"ERC7579MultisigUnreachableThreshold","inputs":[{"name":"signers","type":"uint64","internalType":"uint64"},{"name":"threshold","type":"uint64","internalType":"uint64"}]},{"type":"error","name":"ERC7579MultisigZeroThreshold","inputs":[]},{"type":"error","name":"SafeCastOverflowedUintDowncast","inputs":[{"name":"bits","type":"uint8","internalType":"uint8"},{"name":"value","type":"uint256","internalType":"uint256"}]}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"addSigners(bytes[])":"96d4110b","getSignerCount(address)":"f5be0b18","getSigners(address,uint64,uint64)":"67994686","isModuleType(uint256)":"ecd05961","isSigner(address,bytes)":"67c6740e","onInstall(bytes)":"6d61fe70","onUninstall(bytes)":"8a91b0e3","removeSigners(bytes[])":"7cc2046b","setSignerWeights(bytes[],uint64[])":"e7273091","setThreshold(uint64)":"17c4de35","signerWeight(address,bytes)":"720db985","threshold(address)":"c86ec2bf","totalWeight(address)":"ebb1d413"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"signer\",\"type\":\"bytes\"}],\"name\":\"ERC7579MultisigAlreadyExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERC7579MultisigAlreadyInstalled\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERC7579MultisigEmptySigners\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERC7579MultisigInvalidInitData\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"signer\",\"type\":\"bytes\"}],\"name\":\"ERC7579MultisigInvalidSigner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"signer\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"weight\",\"type\":\"uint64\"}],\"name\":\"ERC7579MultisigInvalidWeight\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERC7579MultisigMismatchedLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"signer\",\"type\":\"bytes\"}],\"name\":\"ERC7579MultisigNonexistentSigner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"signers\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"threshold\",\"type\":\"uint64\"}],\"name\":\"ERC7579MultisigUnreachableThreshold\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERC7579MultisigZeroThreshold\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"bits\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"SafeCastOverflowedUintDowncast\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes\",\"name\":\"signer\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"weight\",\"type\":\"uint64\"}],\"name\":\"ERC7579MultisigWeightChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"signer\",\"type\":\"bytes\"}],\"name\":\"ERC7913SignerAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"signer\",\"type\":\"bytes\"}],\"name\":\"ERC7913SignerRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"threshold\",\"type\":\"uint64\"}],\"name\":\"ERC7913ThresholdSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"newSigners\",\"type\":\"bytes[]\"}],\"name\":\"addSigners\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getSignerCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"start\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"end\",\"type\":\"uint64\"}],\"name\":\"getSigners\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"\",\"type\":\"bytes[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"moduleTypeId\",\"type\":\"uint256\"}],\"name\":\"isModuleType\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"signer\",\"type\":\"bytes\"}],\"name\":\"isSigner\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"initData\",\"type\":\"bytes\"}],\"name\":\"onInstall\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"onUninstall\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"oldSigners\",\"type\":\"bytes[]\"}],\"name\":\"removeSigners\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"signers\",\"type\":\"bytes[]\"},{\"internalType\":\"uint64[]\",\"name\":\"weights\",\"type\":\"uint64[]\"}],\"name\":\"setSignerWeights\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"newThreshold\",\"type\":\"uint64\"}],\"name\":\"setThreshold\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"signer\",\"type\":\"bytes\"}],\"name\":\"signerWeight\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"threshold\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"totalWeight\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Extension of {ERC7579Multisig} that supports weighted signatures. This module extends the multisignature module to allow assigning different weights to each signer, enabling more flexible governance schemes. For example, some guardians could have higher weight than others, allowing for weighted voting or prioritized authorization. Example use case: A smart account with this module installed can schedule social recovery operations after obtaining approval from guardians with sufficient total weight (e.g., requiring a total weight of 10, with 3 guardians weighted as 5, 3, and 2), and then execute them after the time delay has passed. IMPORTANT: When setting a threshold value, ensure it matches the scale used for signer weights. For example, if signers have weights like 1, 2, or 3, then a threshold of 4 would require signatures with a total weight of at least 4 (e.g., one with weight 1 and one with weight 3).\",\"errors\":{\"ERC7579MultisigAlreadyExists(bytes)\":[{\"details\":\"The `signer` already exists.\"}],\"ERC7579MultisigAlreadyInstalled()\":[{\"details\":\"The `account` has already installed the module.\"}],\"ERC7579MultisigEmptySigners()\":[{\"details\":\"The `signers` array is empty.\"}],\"ERC7579MultisigInvalidInitData()\":[{\"details\":\"The `initData` is invalid.\"}],\"ERC7579MultisigInvalidSigner(bytes)\":[{\"details\":\"The `signer` is less than 20 bytes long.\"}],\"ERC7579MultisigInvalidWeight(bytes,uint64)\":[{\"details\":\"Thrown when a signer's weight is invalid.\"}],\"ERC7579MultisigMismatchedLength()\":[{\"details\":\"Thrown when the arrays lengths don't match.\"}],\"ERC7579MultisigNonexistentSigner(bytes)\":[{\"details\":\"The `signer` does not exist.\"}],\"ERC7579MultisigUnreachableThreshold(uint64,uint64)\":[{\"details\":\"The `threshold` is unreachable given the number of `signers`.\"}],\"ERC7579MultisigZeroThreshold()\":[{\"details\":\"The `threshold` is zero.\"}],\"SafeCastOverflowedUintDowncast(uint8,uint256)\":[{\"details\":\"Value doesn't fit in a uint of `bits` size.\"}]},\"events\":{\"ERC7579MultisigWeightChanged(address,bytes,uint64)\":{\"details\":\"Emitted when a signer's weight is changed. NOTE: Not emitted in {_addSigners} or {_removeSigners}. Indexers must rely on {ERC7913SignerAdded} and {ERC7913SignerRemoved} to index a default weight of 1. See {signerWeight}.\"},\"ERC7913SignerAdded(address,bytes)\":{\"details\":\"Emitted when signers are added.\"},\"ERC7913SignerRemoved(address,bytes)\":{\"details\":\"Emitted when signers are removed.\"},\"ERC7913ThresholdSet(address,uint64)\":{\"details\":\"Emitted when the threshold is updated.\"}},\"kind\":\"dev\",\"methods\":{\"addSigners(bytes[])\":{\"details\":\"Adds new signers to the authorized set for the calling account. Can only be called by the account itself. Requirements: * Each of `newSigners` must be at least 20 bytes long. * Each of `newSigners` must not be already authorized.\"},\"getSignerCount(address)\":{\"details\":\"Returns the number of authorized signers for the specified account.\"},\"getSigners(address,uint64,uint64)\":{\"details\":\"Returns a slice of the set of authorized signers for the specified account. Using `start = 0` and `end = type(uint64).max` will return the entire set of signers. WARNING: Depending on the `start` and `end`, this operation can copy a large amount of data to memory, which can be expensive. This is designed for view accessors queried without gas fees. Using it in state-changing functions may become uncallable if the slice grows too large.\"},\"isModuleType(uint256)\":{\"details\":\"Returns boolean value if module is a certain type\",\"params\":{\"moduleTypeId\":\"the module type ID according the ERC-7579 spec MUST return true if the module is of the given type and false otherwise\"}},\"isSigner(address,bytes)\":{\"details\":\"Returns whether the `signer` is an authorized signer for the specified account.\"},\"onInstall(bytes)\":{\"details\":\"Sets up the module's initial configuration when installed by an account. Besides the standard delay and signer configuration, this can also include signer weights. The initData should be encoded as: `abi.encode(bytes[] signers, uint64 threshold, uint64[] weights)` NOTE: An account can only call onInstall once. If called directly by the account, the signer will be set to the provided data. Future installations will revert with {ERC7579MultisigAlreadyInstalled}. NOTE: This function skips `super.onInstall` to avoid setting the threshold during installation since it can be greater than the total amount of signers. This function adds the signers, sets the weights, and sets the threshold. Requirements: * The `account` must have no signers installed. Reverts with {ERC7579MultisigAlreadyInstalled} if not. * Those of {_decodeMultisigWeightedInitData} for the decoding requirements.\"},\"onUninstall(bytes)\":{\"details\":\"Cleans up module's configuration when uninstalled from an account. Clears all signers, weights, and total weights. See {ERC7579Multisig-onUninstall}.\"},\"removeSigners(bytes[])\":{\"details\":\"Removes signers from the authorized set for the calling account. Can only be called by the account itself. Requirements: * Each of `oldSigners` must be authorized. * After removal, the threshold must still be reachable.\"},\"setSignerWeights(bytes[],uint64[])\":{\"details\":\"Sets weights for signers for the calling account. Can only be called by the account itself.\"},\"setThreshold(uint64)\":{\"details\":\"Sets the threshold for the calling account. Can only be called by the account itself. Requirements: * The threshold must be reachable with the current number of signers.\"},\"signerWeight(address,bytes)\":{\"details\":\"Gets the weight of a signer for a specific account. Returns 0 if the signer is not authorized.\"},\"threshold(address)\":{\"details\":\"Returns the minimum number of signers required to approve a multisignature operation for the specified account.\"},\"totalWeight(address)\":{\"details\":\"Gets the total weight of all signers for a specific account.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"dependencies/@openzeppelin-accounts-0.0.0-e4c2a32a/packages/contracts/src/modules/ERC7579MultisigWeighted.sol\":\"ERC7579MultisigWeighted\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@fhevm/solidity/=dependencies/@openzeppelin-accounts-0.0.0-e4c2a32a/packages/contracts/node_modules/@fhevm/solidity/\",\":@forge-std/=dependencies/forge-std-v1.14.0/src/\",\":@openzeppelin-accounts-0.0.0-e4c2a32a/=dependencies/@openzeppelin-accounts-0.0.0-e4c2a32a/\",\":@openzeppelin-contracts-5.7.0-rc.0/=dependencies/@openzeppelin-contracts-5.7.0-rc.0/\",\":@openzeppelin-contracts-upgradeable-5.7.0-rc.0/=dependencies/@openzeppelin-contracts-upgradeable-5.7.0-rc.0/\",\":@openzeppelin/accounts/=dependencies/@openzeppelin-accounts-0.0.0-e4c2a32a/packages/contracts/src/\",\":@openzeppelin/contracts-upgradeable/=dependencies/@openzeppelin-contracts-upgradeable-5.7.0-rc.0/contracts/\",\":@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/\",\":encrypted-types/=dependencies/@openzeppelin-accounts-0.0.0-e4c2a32a/packages/contracts/node_modules/encrypted-types/\",\":forge-std-v1.14.0/=dependencies/forge-std-v1.14.0/src/\",\":forge-std/=dependencies/forge-std-v1.14.0/src/\"],\"viaIR\":true},\"sources\":{\"dependencies/@openzeppelin-accounts-0.0.0-e4c2a32a/packages/contracts/src/modules/ERC7579Multisig.sol\":{\"keccak256\":\"0xba5efc58f8f7f7cc591200cb03ff8e3cf72ee6d8e5d136ea21a0d94cbc1c7390\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://16fb9c3be3c727d2bc283147bc29dca7e9f29e76fbfcf2ba4a300bae69d25cc4\",\"dweb:/ipfs/QmbjgY1DSsb5v82HBnZU7j6mYEmTLAUKousMUvMJ9TJnNk\"]},\"dependencies/@openzeppelin-accounts-0.0.0-e4c2a32a/packages/contracts/src/modules/ERC7579MultisigWeighted.sol\":{\"keccak256\":\"0x2b5c7413d1200b7cca80651f9d5f0ef140db97657ee0651b00b60c6b7336e757\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://07dc2076d5f2c9555a6f57b48772d66dbacae26dfa6cf30d7c14509e95c9ea5a\",\"dweb:/ipfs/QmPv4M5BMT4XPiUr1wgbXfeZrMoxrbQb5wSE7gGVcqTfFZ\"]},\"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/interfaces/IERC1271.sol\":{\"keccak256\":\"0x66c7ec42c6c43712be2107a50ab4529379bc76a632b425babec698d9da921ac6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://dce2778f0b638adfc5ba29c2c618c855fe725fa74a16846386aa1d56a834aa04\",\"dweb:/ipfs/QmPV9oWnzQdi58od266j62xvviavLNHqKLZfm6k2K1qy9E\"]},\"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/interfaces/IERC4337.sol\":{\"keccak256\":\"0x154b2a0628ca270c221ec2e613569f3fe3f81bb9e55a837c0eab8f8470da1c88\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b21c4175ac06cb21d6c8fead32c8d7c99119a3639e7fb6cd1b8ef6f17813b87b\",\"dweb:/ipfs/QmfF4UhrDRhVtgEnjw8hMg34SV3HNumMJHG8HPiUC9CEWT\"]},\"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/interfaces/IERC7913.sol\":{\"keccak256\":\"0xe5a126930df1d54e4a6dd5fea09010c4a7db0ea974c6c17a1e6082879f5a032b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2f58f5a90328536a6c68289916bfa4ed653d871319c7b2a416ab3f6263c4f2f5\",\"dweb:/ipfs/Qmaa9DmgUA16Urz5fuF4RbFz2NaVpNLV41ddwykSdasFUd\"]},\"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/interfaces/draft-IERC7579.sol\":{\"keccak256\":\"0xa9728abfadb9cbe4c850685de1ae092c94979444f6cee2712c46410579ed07a4\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0b4e26d95383d9c27936ef640e8f2d4a932c9a1ea0ec20fcb08387f9b29a7582\",\"dweb:/ipfs/QmakAqHaGqcm5d6AYWfjuVUifPJcjUrZNjhCpWsutTNPbH\"]},\"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/utils/Arrays.sol\":{\"keccak256\":\"0xbf84556b31fc425c4383dd98eb580124561a3299e997425f6169cb0396a81ae0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://bfa828aa7d75071b270d837e2c41090915ebacc5cd4d1cd62b136be7549f2cde\",\"dweb:/ipfs/QmUTpKso638JkBpR47qP9D5n8AS6qcJefv8wq4qu3wYMes\"]},\"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/utils/Bytes.sol\":{\"keccak256\":\"0x38e40627bff15b664cfad944f091c8489f05d97f34cb990a7dfc4ab0aef61f0f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3bf403a86795a632f5e52d333e78cbeeed938f2c583c513f89154fc5e0a639bc\",\"dweb:/ipfs/QmdyhK8uFP2qoasQaGGnz7PNbiYT1RAChLs2QuYbU1jNX4\"]},\"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/utils/Comparators.sol\":{\"keccak256\":\"0x302eecd8cf323b4690e3494a7d960b3cbce077032ab8ef655b323cdd136cec58\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://49ba706f1bc476d68fe6c1fad75517acea4e9e275be0989b548e292eb3a3eacd\",\"dweb:/ipfs/QmeBpvcdGWzWMKTQESUCEhHgnEQYYATVwPxLMxa6vMT7jC\"]},\"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/utils/Panic.sol\":{\"keccak256\":\"0xf7fe324703a64fc51702311dc51562d5cb1497734f074e4f483bfb6717572d7a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c6a5ff4f9fd8649b7ee20800b7fa387d3465bd77cf20c2d1068cd5c98e1ed57a\",\"dweb:/ipfs/QmVSaVJf9FXFhdYEYeCEfjMVHrxDh5qL4CGkxdMWpQCrqG\"]},\"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/utils/SlotDerivation.sol\":{\"keccak256\":\"0x94045fd4f268edf2b2d01ef119268548c320366d6f5294ad30c1b8f9d4f5225f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://edfda81f426f8948b3834115c21e83c48180e6db0d2a8cd2debb2185ed349337\",\"dweb:/ipfs/QmdYZneFyDAux1BuWQxLAdqtABrGS2k9WYCa7C9dvpKkWv\"]},\"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/utils/StorageSlot.sol\":{\"keccak256\":\"0xcf74f855663ce2ae00ed8352666b7935f6cddea2932fdf2c3ecd30a9b1cd0e97\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9f660b1f351b757dfe01438e59888f31f33ded3afcf5cb5b0d9bf9aa6f320a8b\",\"dweb:/ipfs/QmarDJ5hZEgBtCmmrVzEZWjub9769eD686jmzb2XpSU1cM\"]},\"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/utils/cryptography/ECDSA.sol\":{\"keccak256\":\"0xd1f77e84157720356c3335c6a5a767a7fe4af623fd4c1af83c5efd65a783750e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a06561eb17ec4c59dfa536ef17a2996f7c7fd92c7ae9b2c3ff8e65c6fd99bb55\",\"dweb:/ipfs/QmaVcZfZCfiUkTvTDDvpHwrgzobmYc5APgdLWCFa6ac6oM\"]},\"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/utils/cryptography/SignatureChecker.sol\":{\"keccak256\":\"0x0d53049a9969f2bc5cb88b32c909e2729a5fa157d258305b42b502427ad492c6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://eacca39a3f50c665454866342bb05f10cc1e87c2bbd73dda981a6a0de1978fb0\",\"dweb:/ipfs/QmbFKMUT5BXtCdA2SCof9GuasrVhoGzaLUQG3gUvGDtdoE\"]},\"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/utils/math/Math.sol\":{\"keccak256\":\"0x59973a93b1f983f94e10529f46ca46544a9fec2b5f56fb1390bbe9e0dc79f857\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c55ef8f0b9719790c2ae6f81d80a59ffb89f2f0abe6bc065585bd79edce058c5\",\"dweb:/ipfs/QmNNmCbX9NjPXKqHJN8R1WC2rNeZSQrPZLd6FF6AKLyH5Y\"]},\"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/utils/math/SafeCast.sol\":{\"keccak256\":\"0xc8cae21c9ae4a46e5162ff9bf5b351d6fa6a6eba72d515f3bc1bdfeda7fdf083\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ce830ebcf28e31643caba318996db3763c36d52cd0f23798ba83c135355d45e9\",\"dweb:/ipfs/QmdGPcvptHN7UBCbUYBbRX3hiRVRFLRwno8b4uga6uFNif\"]},\"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/utils/structs/EnumerableSet.sol\":{\"keccak256\":\"0xb76f7ea73d4f3c5324260446a61764c6cd512fd23a1264238d718c9f5a2f56cf\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://de3d2f8054ae5ecaaf17bd4d7533385f917e878c8df09ace7b02fc5ee6ed8be6\",\"dweb:/ipfs/QmYTMVPjZGiJR9urme6UB5TXBYwVg8T6Q5D1x9xVcKTwYz\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"bytes","name":"signer","type":"bytes"}],"type":"error","name":"ERC7579MultisigAlreadyExists"},{"inputs":[],"type":"error","name":"ERC7579MultisigAlreadyInstalled"},{"inputs":[],"type":"error","name":"ERC7579MultisigEmptySigners"},{"inputs":[],"type":"error","name":"ERC7579MultisigInvalidInitData"},{"inputs":[{"internalType":"bytes","name":"signer","type":"bytes"}],"type":"error","name":"ERC7579MultisigInvalidSigner"},{"inputs":[{"internalType":"bytes","name":"signer","type":"bytes"},{"internalType":"uint64","name":"weight","type":"uint64"}],"type":"error","name":"ERC7579MultisigInvalidWeight"},{"inputs":[],"type":"error","name":"ERC7579MultisigMismatchedLength"},{"inputs":[{"internalType":"bytes","name":"signer","type":"bytes"}],"type":"error","name":"ERC7579MultisigNonexistentSigner"},{"inputs":[{"internalType":"uint64","name":"signers","type":"uint64"},{"internalType":"uint64","name":"threshold","type":"uint64"}],"type":"error","name":"ERC7579MultisigUnreachableThreshold"},{"inputs":[],"type":"error","name":"ERC7579MultisigZeroThreshold"},{"inputs":[{"internalType":"uint8","name":"bits","type":"uint8"},{"internalType":"uint256","name":"value","type":"uint256"}],"type":"error","name":"SafeCastOverflowedUintDowncast"},{"inputs":[{"internalType":"address","name":"account","type":"address","indexed":true},{"internalType":"bytes","name":"signer","type":"bytes","indexed":true},{"internalType":"uint64","name":"weight","type":"uint64","indexed":false}],"type":"event","name":"ERC7579MultisigWeightChanged","anonymous":false},{"inputs":[{"internalType":"address","name":"account","type":"address","indexed":true},{"internalType":"bytes","name":"signer","type":"bytes","indexed":false}],"type":"event","name":"ERC7913SignerAdded","anonymous":false},{"inputs":[{"internalType":"address","name":"account","type":"address","indexed":true},{"internalType":"bytes","name":"signer","type":"bytes","indexed":false}],"type":"event","name":"ERC7913SignerRemoved","anonymous":false},{"inputs":[{"internalType":"address","name":"account","type":"address","indexed":true},{"internalType":"uint64","name":"threshold","type":"uint64","indexed":false}],"type":"event","name":"ERC7913ThresholdSet","anonymous":false},{"inputs":[{"internalType":"bytes[]","name":"newSigners","type":"bytes[]"}],"stateMutability":"nonpayable","type":"function","name":"addSigners"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"stateMutability":"view","type":"function","name":"getSignerCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint64","name":"end","type":"uint64"}],"stateMutability":"view","type":"function","name":"getSigners","outputs":[{"internalType":"bytes[]","name":"","type":"bytes[]"}]},{"inputs":[{"internalType":"uint256","name":"moduleTypeId","type":"uint256"}],"stateMutability":"view","type":"function","name":"isModuleType","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes","name":"signer","type":"bytes"}],"stateMutability":"view","type":"function","name":"isSigner","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"bytes","name":"initData","type":"bytes"}],"stateMutability":"nonpayable","type":"function","name":"onInstall"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"}],"stateMutability":"nonpayable","type":"function","name":"onUninstall"},{"inputs":[{"internalType":"bytes[]","name":"oldSigners","type":"bytes[]"}],"stateMutability":"nonpayable","type":"function","name":"removeSigners"},{"inputs":[{"internalType":"bytes[]","name":"signers","type":"bytes[]"},{"internalType":"uint64[]","name":"weights","type":"uint64[]"}],"stateMutability":"nonpayable","type":"function","name":"setSignerWeights"},{"inputs":[{"internalType":"uint64","name":"newThreshold","type":"uint64"}],"stateMutability":"nonpayable","type":"function","name":"setThreshold"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes","name":"signer","type":"bytes"}],"stateMutability":"view","type":"function","name":"signerWeight","outputs":[{"internalType":"uint64","name":"","type":"uint64"}]},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"stateMutability":"view","type":"function","name":"threshold","outputs":[{"internalType":"uint64","name":"","type":"uint64"}]},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"stateMutability":"view","type":"function","name":"totalWeight","outputs":[{"internalType":"uint64","name":"","type":"uint64"}]}],"devdoc":{"kind":"dev","methods":{"addSigners(bytes[])":{"details":"Adds new signers to the authorized set for the calling account. Can only be called by the account itself. Requirements: * Each of `newSigners` must be at least 20 bytes long. * Each of `newSigners` must not be already authorized."},"getSignerCount(address)":{"details":"Returns the number of authorized signers for the specified account."},"getSigners(address,uint64,uint64)":{"details":"Returns a slice of the set of authorized signers for the specified account. Using `start = 0` and `end = type(uint64).max` will return the entire set of signers. WARNING: Depending on the `start` and `end`, this operation can copy a large amount of data to memory, which can be expensive. This is designed for view accessors queried without gas fees. Using it in state-changing functions may become uncallable if the slice grows too large."},"isModuleType(uint256)":{"details":"Returns boolean value if module is a certain type","params":{"moduleTypeId":"the module type ID according the ERC-7579 spec MUST return true if the module is of the given type and false otherwise"}},"isSigner(address,bytes)":{"details":"Returns whether the `signer` is an authorized signer for the specified account."},"onInstall(bytes)":{"details":"Sets up the module's initial configuration when installed by an account. Besides the standard delay and signer configuration, this can also include signer weights. The initData should be encoded as: `abi.encode(bytes[] signers, uint64 threshold, uint64[] weights)` NOTE: An account can only call onInstall once. If called directly by the account, the signer will be set to the provided data. Future installations will revert with {ERC7579MultisigAlreadyInstalled}. NOTE: This function skips `super.onInstall` to avoid setting the threshold during installation since it can be greater than the total amount of signers. This function adds the signers, sets the weights, and sets the threshold. Requirements: * The `account` must have no signers installed. Reverts with {ERC7579MultisigAlreadyInstalled} if not. * Those of {_decodeMultisigWeightedInitData} for the decoding requirements."},"onUninstall(bytes)":{"details":"Cleans up module's configuration when uninstalled from an account. Clears all signers, weights, and total weights. See {ERC7579Multisig-onUninstall}."},"removeSigners(bytes[])":{"details":"Removes signers from the authorized set for the calling account. Can only be called by the account itself. Requirements: * Each of `oldSigners` must be authorized. * After removal, the threshold must still be reachable."},"setSignerWeights(bytes[],uint64[])":{"details":"Sets weights for signers for the calling account. Can only be called by the account itself."},"setThreshold(uint64)":{"details":"Sets the threshold for the calling account. Can only be called by the account itself. Requirements: * The threshold must be reachable with the current number of signers."},"signerWeight(address,bytes)":{"details":"Gets the weight of a signer for a specific account. Returns 0 if the signer is not authorized."},"threshold(address)":{"details":"Returns the minimum number of signers required to approve a multisignature operation for the specified account."},"totalWeight(address)":{"details":"Gets the total weight of all signers for a specific account."}},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@fhevm/solidity/=dependencies/@openzeppelin-accounts-0.0.0-e4c2a32a/packages/contracts/node_modules/@fhevm/solidity/","@forge-std/=dependencies/forge-std-v1.14.0/src/","@openzeppelin-accounts-0.0.0-e4c2a32a/=dependencies/@openzeppelin-accounts-0.0.0-e4c2a32a/","@openzeppelin-contracts-5.7.0-rc.0/=dependencies/@openzeppelin-contracts-5.7.0-rc.0/","@openzeppelin-contracts-upgradeable-5.7.0-rc.0/=dependencies/@openzeppelin-contracts-upgradeable-5.7.0-rc.0/","@openzeppelin/accounts/=dependencies/@openzeppelin-accounts-0.0.0-e4c2a32a/packages/contracts/src/","@openzeppelin/contracts-upgradeable/=dependencies/@openzeppelin-contracts-upgradeable-5.7.0-rc.0/contracts/","@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/","encrypted-types/=dependencies/@openzeppelin-accounts-0.0.0-e4c2a32a/packages/contracts/node_modules/encrypted-types/","forge-std-v1.14.0/=dependencies/forge-std-v1.14.0/src/","forge-std/=dependencies/forge-std-v1.14.0/src/"],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"dependencies/@openzeppelin-accounts-0.0.0-e4c2a32a/packages/contracts/src/modules/ERC7579MultisigWeighted.sol":"ERC7579MultisigWeighted"},"evmVersion":"cancun","libraries":{},"viaIR":true},"sources":{"dependencies/@openzeppelin-accounts-0.0.0-e4c2a32a/packages/contracts/src/modules/ERC7579Multisig.sol":{"keccak256":"0xba5efc58f8f7f7cc591200cb03ff8e3cf72ee6d8e5d136ea21a0d94cbc1c7390","urls":["bzz-raw://16fb9c3be3c727d2bc283147bc29dca7e9f29e76fbfcf2ba4a300bae69d25cc4","dweb:/ipfs/QmbjgY1DSsb5v82HBnZU7j6mYEmTLAUKousMUvMJ9TJnNk"],"license":"MIT"},"dependencies/@openzeppelin-accounts-0.0.0-e4c2a32a/packages/contracts/src/modules/ERC7579MultisigWeighted.sol":{"keccak256":"0x2b5c7413d1200b7cca80651f9d5f0ef140db97657ee0651b00b60c6b7336e757","urls":["bzz-raw://07dc2076d5f2c9555a6f57b48772d66dbacae26dfa6cf30d7c14509e95c9ea5a","dweb:/ipfs/QmPv4M5BMT4XPiUr1wgbXfeZrMoxrbQb5wSE7gGVcqTfFZ"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/interfaces/IERC1271.sol":{"keccak256":"0x66c7ec42c6c43712be2107a50ab4529379bc76a632b425babec698d9da921ac6","urls":["bzz-raw://dce2778f0b638adfc5ba29c2c618c855fe725fa74a16846386aa1d56a834aa04","dweb:/ipfs/QmPV9oWnzQdi58od266j62xvviavLNHqKLZfm6k2K1qy9E"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/interfaces/IERC4337.sol":{"keccak256":"0x154b2a0628ca270c221ec2e613569f3fe3f81bb9e55a837c0eab8f8470da1c88","urls":["bzz-raw://b21c4175ac06cb21d6c8fead32c8d7c99119a3639e7fb6cd1b8ef6f17813b87b","dweb:/ipfs/QmfF4UhrDRhVtgEnjw8hMg34SV3HNumMJHG8HPiUC9CEWT"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/interfaces/IERC7913.sol":{"keccak256":"0xe5a126930df1d54e4a6dd5fea09010c4a7db0ea974c6c17a1e6082879f5a032b","urls":["bzz-raw://2f58f5a90328536a6c68289916bfa4ed653d871319c7b2a416ab3f6263c4f2f5","dweb:/ipfs/Qmaa9DmgUA16Urz5fuF4RbFz2NaVpNLV41ddwykSdasFUd"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/interfaces/draft-IERC7579.sol":{"keccak256":"0xa9728abfadb9cbe4c850685de1ae092c94979444f6cee2712c46410579ed07a4","urls":["bzz-raw://0b4e26d95383d9c27936ef640e8f2d4a932c9a1ea0ec20fcb08387f9b29a7582","dweb:/ipfs/QmakAqHaGqcm5d6AYWfjuVUifPJcjUrZNjhCpWsutTNPbH"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/utils/Arrays.sol":{"keccak256":"0xbf84556b31fc425c4383dd98eb580124561a3299e997425f6169cb0396a81ae0","urls":["bzz-raw://bfa828aa7d75071b270d837e2c41090915ebacc5cd4d1cd62b136be7549f2cde","dweb:/ipfs/QmUTpKso638JkBpR47qP9D5n8AS6qcJefv8wq4qu3wYMes"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/utils/Bytes.sol":{"keccak256":"0x38e40627bff15b664cfad944f091c8489f05d97f34cb990a7dfc4ab0aef61f0f","urls":["bzz-raw://3bf403a86795a632f5e52d333e78cbeeed938f2c583c513f89154fc5e0a639bc","dweb:/ipfs/QmdyhK8uFP2qoasQaGGnz7PNbiYT1RAChLs2QuYbU1jNX4"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/utils/Comparators.sol":{"keccak256":"0x302eecd8cf323b4690e3494a7d960b3cbce077032ab8ef655b323cdd136cec58","urls":["bzz-raw://49ba706f1bc476d68fe6c1fad75517acea4e9e275be0989b548e292eb3a3eacd","dweb:/ipfs/QmeBpvcdGWzWMKTQESUCEhHgnEQYYATVwPxLMxa6vMT7jC"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/utils/Panic.sol":{"keccak256":"0xf7fe324703a64fc51702311dc51562d5cb1497734f074e4f483bfb6717572d7a","urls":["bzz-raw://c6a5ff4f9fd8649b7ee20800b7fa387d3465bd77cf20c2d1068cd5c98e1ed57a","dweb:/ipfs/QmVSaVJf9FXFhdYEYeCEfjMVHrxDh5qL4CGkxdMWpQCrqG"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/utils/SlotDerivation.sol":{"keccak256":"0x94045fd4f268edf2b2d01ef119268548c320366d6f5294ad30c1b8f9d4f5225f","urls":["bzz-raw://edfda81f426f8948b3834115c21e83c48180e6db0d2a8cd2debb2185ed349337","dweb:/ipfs/QmdYZneFyDAux1BuWQxLAdqtABrGS2k9WYCa7C9dvpKkWv"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/utils/StorageSlot.sol":{"keccak256":"0xcf74f855663ce2ae00ed8352666b7935f6cddea2932fdf2c3ecd30a9b1cd0e97","urls":["bzz-raw://9f660b1f351b757dfe01438e59888f31f33ded3afcf5cb5b0d9bf9aa6f320a8b","dweb:/ipfs/QmarDJ5hZEgBtCmmrVzEZWjub9769eD686jmzb2XpSU1cM"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/utils/cryptography/ECDSA.sol":{"keccak256":"0xd1f77e84157720356c3335c6a5a767a7fe4af623fd4c1af83c5efd65a783750e","urls":["bzz-raw://a06561eb17ec4c59dfa536ef17a2996f7c7fd92c7ae9b2c3ff8e65c6fd99bb55","dweb:/ipfs/QmaVcZfZCfiUkTvTDDvpHwrgzobmYc5APgdLWCFa6ac6oM"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/utils/cryptography/SignatureChecker.sol":{"keccak256":"0x0d53049a9969f2bc5cb88b32c909e2729a5fa157d258305b42b502427ad492c6","urls":["bzz-raw://eacca39a3f50c665454866342bb05f10cc1e87c2bbd73dda981a6a0de1978fb0","dweb:/ipfs/QmbFKMUT5BXtCdA2SCof9GuasrVhoGzaLUQG3gUvGDtdoE"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/utils/math/Math.sol":{"keccak256":"0x59973a93b1f983f94e10529f46ca46544a9fec2b5f56fb1390bbe9e0dc79f857","urls":["bzz-raw://c55ef8f0b9719790c2ae6f81d80a59ffb89f2f0abe6bc065585bd79edce058c5","dweb:/ipfs/QmNNmCbX9NjPXKqHJN8R1WC2rNeZSQrPZLd6FF6AKLyH5Y"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/utils/math/SafeCast.sol":{"keccak256":"0xc8cae21c9ae4a46e5162ff9bf5b351d6fa6a6eba72d515f3bc1bdfeda7fdf083","urls":["bzz-raw://ce830ebcf28e31643caba318996db3763c36d52cd0f23798ba83c135355d45e9","dweb:/ipfs/QmdGPcvptHN7UBCbUYBbRX3hiRVRFLRwno8b4uga6uFNif"],"license":"MIT"},"dependencies/@openzeppelin-contracts-5.7.0-rc.0/contracts/utils/structs/EnumerableSet.sol":{"keccak256":"0xb76f7ea73d4f3c5324260446a61764c6cd512fd23a1264238d718c9f5a2f56cf","urls":["bzz-raw://de3d2f8054ae5ecaaf17bd4d7533385f917e878c8df09ace7b02fc5ee6ed8be6","dweb:/ipfs/QmYTMVPjZGiJR9urme6UB5TXBYwVg8T6Q5D1x9xVcKTwYz"],"license":"MIT"}},"version":1},"id":30}