@etherisc/gif-next 0.0.2-f0d86c2-077 → 0.0.2-f2b0fa2-473

Sign up to get free protection for your applications and to get access to all the features.
Files changed (360) hide show
  1. package/README.md +176 -11
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
  3. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +168 -28
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +610 -0
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  7. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +121 -28
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +152 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +74 -181
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +55 -177
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +447 -60
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +519 -70
  18. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +4 -0
  19. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +66 -0
  20. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +4 -0
  21. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +24 -0
  22. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +4 -0
  23. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +42 -0
  24. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  36. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  37. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  38. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  39. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
  40. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  41. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
  42. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  43. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  44. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +4 -0
  45. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.json +101 -0
  46. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +4 -0
  47. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +1119 -0
  48. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +4 -0
  49. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +1082 -0
  50. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  51. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +234 -1749
  52. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  53. package/artifacts/contracts/instance/{base/ServiceBase.sol/ServiceBase.json → IInstanceService.sol/IInstanceService.json} +182 -61
  54. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  55. package/artifacts/contracts/instance/Instance.sol/Instance.json +2415 -1152
  56. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  57. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +917 -0
  58. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  59. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1257 -0
  60. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  61. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +703 -0
  62. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  63. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +424 -0
  64. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
  65. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +224 -43
  66. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  67. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +51 -1
  68. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  69. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +45 -127
  70. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  71. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  72. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +55 -245
  73. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  74. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +4 -4
  75. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  76. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +211 -0
  77. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  78. package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
  79. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  80. package/artifacts/contracts/instance/module/{access/IAccess.sol/IAccess.json → IDistribution.sol/IDistribution.json} +2 -2
  81. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  82. package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
  83. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  84. package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
  85. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  86. package/artifacts/contracts/instance/{base/ModuleBase.sol/ModuleBase.json → module/ISetup.sol/ISetup.json} +2 -2
  87. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  88. package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
  89. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  90. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +381 -77
  91. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  92. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +177 -75
  93. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  94. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +446 -0
  95. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  96. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +235 -50
  97. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  98. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +325 -51
  99. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  100. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +186 -12
  101. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  102. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +190 -51
  103. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  104. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +872 -0
  105. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  106. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  107. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  108. package/artifacts/contracts/registry/Registry.sol/Registry.json +380 -139
  109. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  110. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1261 -0
  111. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  112. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +504 -0
  113. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  114. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  115. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  116. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  117. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  118. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +127 -0
  119. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  120. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +117 -37
  121. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  122. package/artifacts/contracts/{instance/base → shared}/IService.sol/IService.json +175 -54
  123. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  124. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +55 -14
  125. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  126. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +158 -0
  127. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  128. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +349 -0
  129. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  130. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +190 -37
  131. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +4 -0
  132. package/artifacts/contracts/{instance/base/InstanceBase.sol/InstanceBase.json → shared/RegisterableUpgradable.sol/RegisterableUpgradable.json} +199 -83
  133. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  134. package/artifacts/contracts/shared/Service.sol/Service.json +468 -0
  135. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  136. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  137. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  138. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  139. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  140. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +78 -14
  141. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  142. package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
  143. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  144. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +204 -36
  145. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  146. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +14 -14
  147. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  148. package/artifacts/contracts/test/TestService.sol/TestService.json +283 -62
  149. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  150. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
  151. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  152. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  153. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  154. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +103 -23
  155. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  156. package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
  157. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  158. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  159. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  160. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  161. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  162. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  163. package/artifacts/contracts/types/Fee.sol/FeeLib.json +52 -13
  164. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  165. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +31 -17
  166. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  167. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  168. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  169. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
  170. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  171. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  172. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  173. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  174. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  175. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  176. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  177. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  178. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  179. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +134 -8
  180. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  181. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  182. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  183. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +15 -2
  184. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  185. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  186. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  187. package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
  188. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  189. package/artifacts/contracts/types/Version.sol/VersionLib.json +40 -2
  190. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  191. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
  192. package/contracts/components/BaseComponent.sol +20 -22
  193. package/contracts/components/Distribution.sol +166 -0
  194. package/contracts/components/IBaseComponent.sol +8 -3
  195. package/contracts/components/IDistributionComponent.sol +43 -0
  196. package/contracts/components/IPoolComponent.sol +14 -9
  197. package/contracts/components/IProductComponent.sol +25 -9
  198. package/contracts/components/Pool.sol +115 -30
  199. package/contracts/components/Product.sol +212 -32
  200. package/contracts/experiment/cloning/Cloner.sol +47 -0
  201. package/contracts/instance/AccessManagedSimple.sol +114 -0
  202. package/contracts/instance/AccessManagerSimple.sol +682 -0
  203. package/contracts/instance/IAccessManagerSimple.sol +391 -0
  204. package/contracts/instance/IInstance.sol +17 -41
  205. package/contracts/instance/IInstanceService.sol +17 -0
  206. package/contracts/instance/Instance.sol +420 -52
  207. package/contracts/instance/InstanceAccessManager.sol +288 -0
  208. package/contracts/instance/InstanceReader.sol +280 -0
  209. package/contracts/instance/InstanceService.sol +102 -0
  210. package/contracts/instance/InstanceServiceManager.sol +56 -0
  211. package/contracts/instance/base/ComponentServiceBase.sol +15 -8
  212. package/contracts/instance/base/IInstanceBase.sol +11 -2
  213. package/contracts/instance/base/IKeyValueStore.sol +13 -13
  214. package/contracts/instance/base/ILifecycle.sol +3 -3
  215. package/contracts/instance/base/KeyValueStore.sol +53 -37
  216. package/contracts/instance/base/Lifecycle.sol +16 -11
  217. package/contracts/instance/module/IAccess.sol +38 -0
  218. package/contracts/instance/module/IBundle.sol +19 -0
  219. package/contracts/instance/module/IDistribution.sol +39 -0
  220. package/contracts/instance/module/IPolicy.sol +45 -0
  221. package/contracts/instance/module/IRisk.sol +11 -0
  222. package/contracts/instance/module/ISetup.sol +43 -0
  223. package/contracts/instance/module/ITreasury.sol +23 -0
  224. package/contracts/instance/service/ComponentOwnerService.sol +244 -97
  225. package/contracts/instance/service/IComponentOwnerService.sol +1 -3
  226. package/contracts/instance/service/IDistributionService.sol +12 -0
  227. package/contracts/instance/service/IPoolService.sol +8 -1
  228. package/contracts/instance/service/IProductService.sol +56 -7
  229. package/contracts/registry/ChainNft.sol +80 -37
  230. package/contracts/registry/IRegistry.sol +28 -28
  231. package/contracts/registry/IRegistryService.sol +35 -0
  232. package/contracts/registry/ITransferInterceptor.sol +6 -0
  233. package/contracts/registry/Registry.sol +315 -273
  234. package/contracts/registry/RegistryService.sol +439 -0
  235. package/contracts/registry/RegistryServiceManager.sol +64 -0
  236. package/contracts/shared/ContractDeployerLib.sol +72 -0
  237. package/contracts/shared/INftOwnable.sol +22 -0
  238. package/contracts/shared/IRegisterable.sol +8 -15
  239. package/contracts/{instance/base → shared}/IService.sol +3 -3
  240. package/contracts/shared/IVersionable.sol +55 -11
  241. package/contracts/shared/NftOwnable.sol +136 -0
  242. package/contracts/shared/ProxyManager.sol +94 -0
  243. package/contracts/shared/Registerable.sol +62 -59
  244. package/contracts/shared/RegisterableUpgradable.sol +16 -0
  245. package/contracts/shared/Service.sol +54 -0
  246. package/contracts/shared/TokenHandler.sol +27 -0
  247. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  248. package/contracts/shared/Versionable.sol +113 -55
  249. package/contracts/test/TestFee.sol +2 -2
  250. package/contracts/test/TestRegisterable.sol +5 -6
  251. package/contracts/test/TestRoleId.sol +1 -1
  252. package/contracts/test/TestService.sol +5 -13
  253. package/contracts/types/DistributorType.sol +55 -0
  254. package/contracts/types/Fee.sol +10 -5
  255. package/contracts/types/Key32.sol +8 -3
  256. package/contracts/types/NumberId.sol +52 -0
  257. package/contracts/types/ObjectType.sol +51 -14
  258. package/contracts/types/Referral.sol +85 -0
  259. package/contracts/types/RiskId.sol +43 -0
  260. package/contracts/types/RoleId.sol +54 -10
  261. package/contracts/types/StateId.sol +1 -1
  262. package/contracts/types/Timestamp.sol +7 -3
  263. package/contracts/types/UFixed.sol +128 -12
  264. package/contracts/types/Version.sol +9 -0
  265. package/package.json +4 -3
  266. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
  267. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
  268. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  269. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  270. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
  271. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  272. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  273. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  274. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  275. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  276. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  277. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
  278. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -296
  279. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
  280. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
  281. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -296
  282. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +0 -4
  283. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +0 -10
  284. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +0 -4
  285. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.json +0 -10
  286. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +0 -4
  287. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.json +0 -10
  288. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  289. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +0 -188
  290. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
  291. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
  292. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  293. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +0 -188
  294. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  295. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  296. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -261
  297. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  298. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -261
  299. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  300. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.json +0 -10
  301. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  302. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -149
  303. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  304. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -149
  305. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
  306. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
  307. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -10
  308. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
  309. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -10
  310. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  311. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  312. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -533
  313. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  314. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
  315. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  316. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -533
  317. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +0 -4
  318. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +0 -471
  319. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +0 -4
  320. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +0 -673
  321. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  322. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -452
  323. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
  324. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
  325. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
  326. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
  327. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
  328. package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -387
  329. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
  330. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -393
  331. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  332. package/contracts/experiment/statemachine/README.md +0 -112
  333. package/contracts/instance/IInstanceLinked.sol +0 -8
  334. package/contracts/instance/base/InstanceBase.sol +0 -80
  335. package/contracts/instance/base/ModuleBase.sol +0 -52
  336. package/contracts/instance/base/ServiceBase.sol +0 -37
  337. package/contracts/instance/module/access/Access.sol +0 -149
  338. package/contracts/instance/module/access/IAccess.sol +0 -53
  339. package/contracts/instance/module/bundle/BundleModule.sol +0 -136
  340. package/contracts/instance/module/bundle/IBundle.sol +0 -58
  341. package/contracts/instance/module/compensation/CompensationModule.sol +0 -8
  342. package/contracts/instance/module/compensation/ICompensation.sol +0 -10
  343. package/contracts/instance/module/component/ComponentModule.sol +0 -95
  344. package/contracts/instance/module/component/IComponent.sol +0 -53
  345. package/contracts/instance/module/policy/IPolicy.sol +0 -60
  346. package/contracts/instance/module/policy/PolicyModule.sol +0 -76
  347. package/contracts/instance/module/pool/IPoolModule.sol +0 -41
  348. package/contracts/instance/module/pool/PoolModule.sol +0 -87
  349. package/contracts/instance/module/risk/IRisk.sol +0 -10
  350. package/contracts/instance/module/risk/RiskModule.sol +0 -8
  351. package/contracts/instance/module/treasury/ITreasury.sol +0 -103
  352. package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
  353. package/contracts/instance/module/treasury/TreasuryModule.sol +0 -152
  354. package/contracts/instance/service/PoolService.sol +0 -123
  355. package/contracts/instance/service/ProductService.sol +0 -354
  356. package/contracts/registry/IChainNft.sol +0 -21
  357. package/contracts/registry/IRegistryLinked.sol +0 -8
  358. package/contracts/shared/IOwnable.sol +0 -6
  359. package/contracts/test/TestPool.sol +0 -22
  360. package/contracts/test/TestProduct.sol +0 -44
@@ -0,0 +1,1119 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "AccessManagerSimple",
4
+ "sourceName": "contracts/instance/AccessManagerSimple.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "initialAdmin",
11
+ "type": "address"
12
+ }
13
+ ],
14
+ "stateMutability": "nonpayable",
15
+ "type": "constructor"
16
+ },
17
+ {
18
+ "inputs": [
19
+ {
20
+ "internalType": "bytes32",
21
+ "name": "operationId",
22
+ "type": "bytes32"
23
+ }
24
+ ],
25
+ "name": "AccessManagerAlreadyScheduled",
26
+ "type": "error"
27
+ },
28
+ {
29
+ "inputs": [],
30
+ "name": "AccessManagerBadConfirmation",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "bytes32",
37
+ "name": "operationId",
38
+ "type": "bytes32"
39
+ }
40
+ ],
41
+ "name": "AccessManagerExpired",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "address",
48
+ "name": "initialAdmin",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "name": "AccessManagerInvalidInitialAdmin",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "internalType": "address",
59
+ "name": "account",
60
+ "type": "address"
61
+ }
62
+ ],
63
+ "name": "AccessManagerLockedAccount",
64
+ "type": "error"
65
+ },
66
+ {
67
+ "inputs": [
68
+ {
69
+ "internalType": "uint64",
70
+ "name": "roleId",
71
+ "type": "uint64"
72
+ }
73
+ ],
74
+ "name": "AccessManagerLockedRole",
75
+ "type": "error"
76
+ },
77
+ {
78
+ "inputs": [
79
+ {
80
+ "internalType": "bytes32",
81
+ "name": "operationId",
82
+ "type": "bytes32"
83
+ }
84
+ ],
85
+ "name": "AccessManagerNotReady",
86
+ "type": "error"
87
+ },
88
+ {
89
+ "inputs": [
90
+ {
91
+ "internalType": "bytes32",
92
+ "name": "operationId",
93
+ "type": "bytes32"
94
+ }
95
+ ],
96
+ "name": "AccessManagerNotScheduled",
97
+ "type": "error"
98
+ },
99
+ {
100
+ "inputs": [
101
+ {
102
+ "internalType": "address",
103
+ "name": "msgsender",
104
+ "type": "address"
105
+ },
106
+ {
107
+ "internalType": "uint64",
108
+ "name": "roleId",
109
+ "type": "uint64"
110
+ }
111
+ ],
112
+ "name": "AccessManagerUnauthorizedAccount",
113
+ "type": "error"
114
+ },
115
+ {
116
+ "inputs": [
117
+ {
118
+ "internalType": "address",
119
+ "name": "caller",
120
+ "type": "address"
121
+ },
122
+ {
123
+ "internalType": "address",
124
+ "name": "target",
125
+ "type": "address"
126
+ },
127
+ {
128
+ "internalType": "bytes4",
129
+ "name": "selector",
130
+ "type": "bytes4"
131
+ }
132
+ ],
133
+ "name": "AccessManagerUnauthorizedCall",
134
+ "type": "error"
135
+ },
136
+ {
137
+ "inputs": [
138
+ {
139
+ "internalType": "address",
140
+ "name": "msgsender",
141
+ "type": "address"
142
+ },
143
+ {
144
+ "internalType": "address",
145
+ "name": "caller",
146
+ "type": "address"
147
+ },
148
+ {
149
+ "internalType": "address",
150
+ "name": "target",
151
+ "type": "address"
152
+ },
153
+ {
154
+ "internalType": "bytes4",
155
+ "name": "selector",
156
+ "type": "bytes4"
157
+ }
158
+ ],
159
+ "name": "AccessManagerUnauthorizedCancel",
160
+ "type": "error"
161
+ },
162
+ {
163
+ "inputs": [
164
+ {
165
+ "internalType": "address",
166
+ "name": "target",
167
+ "type": "address"
168
+ }
169
+ ],
170
+ "name": "AccessManagerUnauthorizedConsume",
171
+ "type": "error"
172
+ },
173
+ {
174
+ "anonymous": false,
175
+ "inputs": [
176
+ {
177
+ "indexed": true,
178
+ "internalType": "bytes32",
179
+ "name": "operationId",
180
+ "type": "bytes32"
181
+ },
182
+ {
183
+ "indexed": true,
184
+ "internalType": "uint32",
185
+ "name": "nonce",
186
+ "type": "uint32"
187
+ }
188
+ ],
189
+ "name": "OperationCanceled",
190
+ "type": "event"
191
+ },
192
+ {
193
+ "anonymous": false,
194
+ "inputs": [
195
+ {
196
+ "indexed": true,
197
+ "internalType": "bytes32",
198
+ "name": "operationId",
199
+ "type": "bytes32"
200
+ },
201
+ {
202
+ "indexed": true,
203
+ "internalType": "uint32",
204
+ "name": "nonce",
205
+ "type": "uint32"
206
+ }
207
+ ],
208
+ "name": "OperationExecuted",
209
+ "type": "event"
210
+ },
211
+ {
212
+ "anonymous": false,
213
+ "inputs": [
214
+ {
215
+ "indexed": true,
216
+ "internalType": "bytes32",
217
+ "name": "operationId",
218
+ "type": "bytes32"
219
+ },
220
+ {
221
+ "indexed": true,
222
+ "internalType": "uint32",
223
+ "name": "nonce",
224
+ "type": "uint32"
225
+ },
226
+ {
227
+ "indexed": false,
228
+ "internalType": "uint48",
229
+ "name": "schedule",
230
+ "type": "uint48"
231
+ },
232
+ {
233
+ "indexed": false,
234
+ "internalType": "address",
235
+ "name": "caller",
236
+ "type": "address"
237
+ },
238
+ {
239
+ "indexed": false,
240
+ "internalType": "address",
241
+ "name": "target",
242
+ "type": "address"
243
+ },
244
+ {
245
+ "indexed": false,
246
+ "internalType": "bytes",
247
+ "name": "data",
248
+ "type": "bytes"
249
+ }
250
+ ],
251
+ "name": "OperationScheduled",
252
+ "type": "event"
253
+ },
254
+ {
255
+ "anonymous": false,
256
+ "inputs": [
257
+ {
258
+ "indexed": true,
259
+ "internalType": "uint64",
260
+ "name": "roleId",
261
+ "type": "uint64"
262
+ },
263
+ {
264
+ "indexed": true,
265
+ "internalType": "uint64",
266
+ "name": "admin",
267
+ "type": "uint64"
268
+ }
269
+ ],
270
+ "name": "RoleAdminChanged",
271
+ "type": "event"
272
+ },
273
+ {
274
+ "anonymous": false,
275
+ "inputs": [
276
+ {
277
+ "indexed": true,
278
+ "internalType": "uint64",
279
+ "name": "roleId",
280
+ "type": "uint64"
281
+ },
282
+ {
283
+ "indexed": false,
284
+ "internalType": "uint32",
285
+ "name": "delay",
286
+ "type": "uint32"
287
+ },
288
+ {
289
+ "indexed": false,
290
+ "internalType": "uint48",
291
+ "name": "since",
292
+ "type": "uint48"
293
+ }
294
+ ],
295
+ "name": "RoleGrantDelayChanged",
296
+ "type": "event"
297
+ },
298
+ {
299
+ "anonymous": false,
300
+ "inputs": [
301
+ {
302
+ "indexed": true,
303
+ "internalType": "uint64",
304
+ "name": "roleId",
305
+ "type": "uint64"
306
+ },
307
+ {
308
+ "indexed": true,
309
+ "internalType": "address",
310
+ "name": "account",
311
+ "type": "address"
312
+ },
313
+ {
314
+ "indexed": false,
315
+ "internalType": "uint32",
316
+ "name": "delay",
317
+ "type": "uint32"
318
+ },
319
+ {
320
+ "indexed": false,
321
+ "internalType": "uint48",
322
+ "name": "since",
323
+ "type": "uint48"
324
+ },
325
+ {
326
+ "indexed": false,
327
+ "internalType": "bool",
328
+ "name": "newMember",
329
+ "type": "bool"
330
+ }
331
+ ],
332
+ "name": "RoleGranted",
333
+ "type": "event"
334
+ },
335
+ {
336
+ "anonymous": false,
337
+ "inputs": [
338
+ {
339
+ "indexed": true,
340
+ "internalType": "uint64",
341
+ "name": "roleId",
342
+ "type": "uint64"
343
+ },
344
+ {
345
+ "indexed": true,
346
+ "internalType": "uint64",
347
+ "name": "guardian",
348
+ "type": "uint64"
349
+ }
350
+ ],
351
+ "name": "RoleGuardianChanged",
352
+ "type": "event"
353
+ },
354
+ {
355
+ "anonymous": false,
356
+ "inputs": [
357
+ {
358
+ "indexed": true,
359
+ "internalType": "uint64",
360
+ "name": "roleId",
361
+ "type": "uint64"
362
+ },
363
+ {
364
+ "indexed": false,
365
+ "internalType": "string",
366
+ "name": "label",
367
+ "type": "string"
368
+ }
369
+ ],
370
+ "name": "RoleLabel",
371
+ "type": "event"
372
+ },
373
+ {
374
+ "anonymous": false,
375
+ "inputs": [
376
+ {
377
+ "indexed": true,
378
+ "internalType": "uint64",
379
+ "name": "roleId",
380
+ "type": "uint64"
381
+ },
382
+ {
383
+ "indexed": true,
384
+ "internalType": "address",
385
+ "name": "account",
386
+ "type": "address"
387
+ }
388
+ ],
389
+ "name": "RoleRevoked",
390
+ "type": "event"
391
+ },
392
+ {
393
+ "anonymous": false,
394
+ "inputs": [
395
+ {
396
+ "indexed": true,
397
+ "internalType": "address",
398
+ "name": "target",
399
+ "type": "address"
400
+ },
401
+ {
402
+ "indexed": false,
403
+ "internalType": "uint32",
404
+ "name": "delay",
405
+ "type": "uint32"
406
+ },
407
+ {
408
+ "indexed": false,
409
+ "internalType": "uint48",
410
+ "name": "since",
411
+ "type": "uint48"
412
+ }
413
+ ],
414
+ "name": "TargetAdminDelayUpdated",
415
+ "type": "event"
416
+ },
417
+ {
418
+ "anonymous": false,
419
+ "inputs": [
420
+ {
421
+ "indexed": true,
422
+ "internalType": "address",
423
+ "name": "target",
424
+ "type": "address"
425
+ },
426
+ {
427
+ "indexed": false,
428
+ "internalType": "bool",
429
+ "name": "closed",
430
+ "type": "bool"
431
+ }
432
+ ],
433
+ "name": "TargetClosed",
434
+ "type": "event"
435
+ },
436
+ {
437
+ "anonymous": false,
438
+ "inputs": [
439
+ {
440
+ "indexed": true,
441
+ "internalType": "address",
442
+ "name": "target",
443
+ "type": "address"
444
+ },
445
+ {
446
+ "indexed": false,
447
+ "internalType": "bytes4",
448
+ "name": "selector",
449
+ "type": "bytes4"
450
+ },
451
+ {
452
+ "indexed": true,
453
+ "internalType": "uint64",
454
+ "name": "roleId",
455
+ "type": "uint64"
456
+ }
457
+ ],
458
+ "name": "TargetFunctionRoleUpdated",
459
+ "type": "event"
460
+ },
461
+ {
462
+ "inputs": [],
463
+ "name": "ADMIN_ROLE",
464
+ "outputs": [
465
+ {
466
+ "internalType": "uint64",
467
+ "name": "",
468
+ "type": "uint64"
469
+ }
470
+ ],
471
+ "stateMutability": "view",
472
+ "type": "function"
473
+ },
474
+ {
475
+ "inputs": [],
476
+ "name": "PUBLIC_ROLE",
477
+ "outputs": [
478
+ {
479
+ "internalType": "uint64",
480
+ "name": "",
481
+ "type": "uint64"
482
+ }
483
+ ],
484
+ "stateMutability": "view",
485
+ "type": "function"
486
+ },
487
+ {
488
+ "inputs": [
489
+ {
490
+ "internalType": "address",
491
+ "name": "caller",
492
+ "type": "address"
493
+ },
494
+ {
495
+ "internalType": "address",
496
+ "name": "target",
497
+ "type": "address"
498
+ },
499
+ {
500
+ "internalType": "bytes4",
501
+ "name": "selector",
502
+ "type": "bytes4"
503
+ }
504
+ ],
505
+ "name": "canCall",
506
+ "outputs": [
507
+ {
508
+ "internalType": "bool",
509
+ "name": "immediate",
510
+ "type": "bool"
511
+ },
512
+ {
513
+ "internalType": "uint32",
514
+ "name": "delay",
515
+ "type": "uint32"
516
+ }
517
+ ],
518
+ "stateMutability": "view",
519
+ "type": "function"
520
+ },
521
+ {
522
+ "inputs": [
523
+ {
524
+ "internalType": "address",
525
+ "name": "caller",
526
+ "type": "address"
527
+ },
528
+ {
529
+ "internalType": "address",
530
+ "name": "target",
531
+ "type": "address"
532
+ },
533
+ {
534
+ "internalType": "bytes",
535
+ "name": "data",
536
+ "type": "bytes"
537
+ }
538
+ ],
539
+ "name": "cancel",
540
+ "outputs": [
541
+ {
542
+ "internalType": "uint32",
543
+ "name": "",
544
+ "type": "uint32"
545
+ }
546
+ ],
547
+ "stateMutability": "nonpayable",
548
+ "type": "function"
549
+ },
550
+ {
551
+ "inputs": [
552
+ {
553
+ "internalType": "address",
554
+ "name": "caller",
555
+ "type": "address"
556
+ },
557
+ {
558
+ "internalType": "bytes",
559
+ "name": "data",
560
+ "type": "bytes"
561
+ }
562
+ ],
563
+ "name": "consumeScheduledOp",
564
+ "outputs": [],
565
+ "stateMutability": "nonpayable",
566
+ "type": "function"
567
+ },
568
+ {
569
+ "inputs": [
570
+ {
571
+ "internalType": "address",
572
+ "name": "target",
573
+ "type": "address"
574
+ },
575
+ {
576
+ "internalType": "bytes",
577
+ "name": "data",
578
+ "type": "bytes"
579
+ }
580
+ ],
581
+ "name": "execute",
582
+ "outputs": [
583
+ {
584
+ "internalType": "uint32",
585
+ "name": "",
586
+ "type": "uint32"
587
+ }
588
+ ],
589
+ "stateMutability": "payable",
590
+ "type": "function"
591
+ },
592
+ {
593
+ "inputs": [],
594
+ "name": "expiration",
595
+ "outputs": [
596
+ {
597
+ "internalType": "uint32",
598
+ "name": "",
599
+ "type": "uint32"
600
+ }
601
+ ],
602
+ "stateMutability": "view",
603
+ "type": "function"
604
+ },
605
+ {
606
+ "inputs": [
607
+ {
608
+ "internalType": "uint64",
609
+ "name": "roleId",
610
+ "type": "uint64"
611
+ },
612
+ {
613
+ "internalType": "address",
614
+ "name": "account",
615
+ "type": "address"
616
+ }
617
+ ],
618
+ "name": "getAccess",
619
+ "outputs": [
620
+ {
621
+ "internalType": "uint48",
622
+ "name": "since",
623
+ "type": "uint48"
624
+ },
625
+ {
626
+ "internalType": "uint32",
627
+ "name": "currentDelay",
628
+ "type": "uint32"
629
+ },
630
+ {
631
+ "internalType": "uint32",
632
+ "name": "pendingDelay",
633
+ "type": "uint32"
634
+ },
635
+ {
636
+ "internalType": "uint48",
637
+ "name": "effect",
638
+ "type": "uint48"
639
+ }
640
+ ],
641
+ "stateMutability": "view",
642
+ "type": "function"
643
+ },
644
+ {
645
+ "inputs": [
646
+ {
647
+ "internalType": "bytes32",
648
+ "name": "id",
649
+ "type": "bytes32"
650
+ }
651
+ ],
652
+ "name": "getNonce",
653
+ "outputs": [
654
+ {
655
+ "internalType": "uint32",
656
+ "name": "",
657
+ "type": "uint32"
658
+ }
659
+ ],
660
+ "stateMutability": "view",
661
+ "type": "function"
662
+ },
663
+ {
664
+ "inputs": [
665
+ {
666
+ "internalType": "uint64",
667
+ "name": "roleId",
668
+ "type": "uint64"
669
+ }
670
+ ],
671
+ "name": "getRoleAdmin",
672
+ "outputs": [
673
+ {
674
+ "internalType": "uint64",
675
+ "name": "",
676
+ "type": "uint64"
677
+ }
678
+ ],
679
+ "stateMutability": "view",
680
+ "type": "function"
681
+ },
682
+ {
683
+ "inputs": [
684
+ {
685
+ "internalType": "uint64",
686
+ "name": "roleId",
687
+ "type": "uint64"
688
+ }
689
+ ],
690
+ "name": "getRoleGrantDelay",
691
+ "outputs": [
692
+ {
693
+ "internalType": "uint32",
694
+ "name": "",
695
+ "type": "uint32"
696
+ }
697
+ ],
698
+ "stateMutability": "view",
699
+ "type": "function"
700
+ },
701
+ {
702
+ "inputs": [
703
+ {
704
+ "internalType": "uint64",
705
+ "name": "roleId",
706
+ "type": "uint64"
707
+ }
708
+ ],
709
+ "name": "getRoleGuardian",
710
+ "outputs": [
711
+ {
712
+ "internalType": "uint64",
713
+ "name": "",
714
+ "type": "uint64"
715
+ }
716
+ ],
717
+ "stateMutability": "view",
718
+ "type": "function"
719
+ },
720
+ {
721
+ "inputs": [
722
+ {
723
+ "internalType": "bytes32",
724
+ "name": "id",
725
+ "type": "bytes32"
726
+ }
727
+ ],
728
+ "name": "getSchedule",
729
+ "outputs": [
730
+ {
731
+ "internalType": "uint48",
732
+ "name": "",
733
+ "type": "uint48"
734
+ }
735
+ ],
736
+ "stateMutability": "view",
737
+ "type": "function"
738
+ },
739
+ {
740
+ "inputs": [
741
+ {
742
+ "internalType": "address",
743
+ "name": "target",
744
+ "type": "address"
745
+ }
746
+ ],
747
+ "name": "getTargetAdminDelay",
748
+ "outputs": [
749
+ {
750
+ "internalType": "uint32",
751
+ "name": "",
752
+ "type": "uint32"
753
+ }
754
+ ],
755
+ "stateMutability": "view",
756
+ "type": "function"
757
+ },
758
+ {
759
+ "inputs": [
760
+ {
761
+ "internalType": "address",
762
+ "name": "target",
763
+ "type": "address"
764
+ },
765
+ {
766
+ "internalType": "bytes4",
767
+ "name": "selector",
768
+ "type": "bytes4"
769
+ }
770
+ ],
771
+ "name": "getTargetFunctionRole",
772
+ "outputs": [
773
+ {
774
+ "internalType": "uint64",
775
+ "name": "",
776
+ "type": "uint64"
777
+ }
778
+ ],
779
+ "stateMutability": "view",
780
+ "type": "function"
781
+ },
782
+ {
783
+ "inputs": [
784
+ {
785
+ "internalType": "uint64",
786
+ "name": "roleId",
787
+ "type": "uint64"
788
+ },
789
+ {
790
+ "internalType": "address",
791
+ "name": "account",
792
+ "type": "address"
793
+ },
794
+ {
795
+ "internalType": "uint32",
796
+ "name": "executionDelay",
797
+ "type": "uint32"
798
+ }
799
+ ],
800
+ "name": "grantRole",
801
+ "outputs": [],
802
+ "stateMutability": "nonpayable",
803
+ "type": "function"
804
+ },
805
+ {
806
+ "inputs": [
807
+ {
808
+ "internalType": "uint64",
809
+ "name": "roleId",
810
+ "type": "uint64"
811
+ },
812
+ {
813
+ "internalType": "address",
814
+ "name": "account",
815
+ "type": "address"
816
+ }
817
+ ],
818
+ "name": "hasRole",
819
+ "outputs": [
820
+ {
821
+ "internalType": "bool",
822
+ "name": "isMember",
823
+ "type": "bool"
824
+ },
825
+ {
826
+ "internalType": "uint32",
827
+ "name": "executionDelay",
828
+ "type": "uint32"
829
+ }
830
+ ],
831
+ "stateMutability": "view",
832
+ "type": "function"
833
+ },
834
+ {
835
+ "inputs": [
836
+ {
837
+ "internalType": "address",
838
+ "name": "caller",
839
+ "type": "address"
840
+ },
841
+ {
842
+ "internalType": "address",
843
+ "name": "target",
844
+ "type": "address"
845
+ },
846
+ {
847
+ "internalType": "bytes",
848
+ "name": "data",
849
+ "type": "bytes"
850
+ }
851
+ ],
852
+ "name": "hashOperation",
853
+ "outputs": [
854
+ {
855
+ "internalType": "bytes32",
856
+ "name": "",
857
+ "type": "bytes32"
858
+ }
859
+ ],
860
+ "stateMutability": "view",
861
+ "type": "function"
862
+ },
863
+ {
864
+ "inputs": [
865
+ {
866
+ "internalType": "address",
867
+ "name": "target",
868
+ "type": "address"
869
+ }
870
+ ],
871
+ "name": "isTargetClosed",
872
+ "outputs": [
873
+ {
874
+ "internalType": "bool",
875
+ "name": "",
876
+ "type": "bool"
877
+ }
878
+ ],
879
+ "stateMutability": "view",
880
+ "type": "function"
881
+ },
882
+ {
883
+ "inputs": [
884
+ {
885
+ "internalType": "uint64",
886
+ "name": "roleId",
887
+ "type": "uint64"
888
+ },
889
+ {
890
+ "internalType": "string",
891
+ "name": "label",
892
+ "type": "string"
893
+ }
894
+ ],
895
+ "name": "labelRole",
896
+ "outputs": [],
897
+ "stateMutability": "nonpayable",
898
+ "type": "function"
899
+ },
900
+ {
901
+ "inputs": [],
902
+ "name": "minSetback",
903
+ "outputs": [
904
+ {
905
+ "internalType": "uint32",
906
+ "name": "",
907
+ "type": "uint32"
908
+ }
909
+ ],
910
+ "stateMutability": "view",
911
+ "type": "function"
912
+ },
913
+ {
914
+ "inputs": [
915
+ {
916
+ "internalType": "uint64",
917
+ "name": "roleId",
918
+ "type": "uint64"
919
+ },
920
+ {
921
+ "internalType": "address",
922
+ "name": "callerConfirmation",
923
+ "type": "address"
924
+ }
925
+ ],
926
+ "name": "renounceRole",
927
+ "outputs": [],
928
+ "stateMutability": "nonpayable",
929
+ "type": "function"
930
+ },
931
+ {
932
+ "inputs": [
933
+ {
934
+ "internalType": "uint64",
935
+ "name": "roleId",
936
+ "type": "uint64"
937
+ },
938
+ {
939
+ "internalType": "address",
940
+ "name": "account",
941
+ "type": "address"
942
+ }
943
+ ],
944
+ "name": "revokeRole",
945
+ "outputs": [],
946
+ "stateMutability": "nonpayable",
947
+ "type": "function"
948
+ },
949
+ {
950
+ "inputs": [
951
+ {
952
+ "internalType": "address",
953
+ "name": "target",
954
+ "type": "address"
955
+ },
956
+ {
957
+ "internalType": "bytes",
958
+ "name": "data",
959
+ "type": "bytes"
960
+ },
961
+ {
962
+ "internalType": "uint48",
963
+ "name": "when",
964
+ "type": "uint48"
965
+ }
966
+ ],
967
+ "name": "schedule",
968
+ "outputs": [
969
+ {
970
+ "internalType": "bytes32",
971
+ "name": "operationId",
972
+ "type": "bytes32"
973
+ },
974
+ {
975
+ "internalType": "uint32",
976
+ "name": "nonce",
977
+ "type": "uint32"
978
+ }
979
+ ],
980
+ "stateMutability": "nonpayable",
981
+ "type": "function"
982
+ },
983
+ {
984
+ "inputs": [
985
+ {
986
+ "internalType": "uint64",
987
+ "name": "roleId",
988
+ "type": "uint64"
989
+ },
990
+ {
991
+ "internalType": "uint32",
992
+ "name": "newDelay",
993
+ "type": "uint32"
994
+ }
995
+ ],
996
+ "name": "setGrantDelay",
997
+ "outputs": [],
998
+ "stateMutability": "nonpayable",
999
+ "type": "function"
1000
+ },
1001
+ {
1002
+ "inputs": [
1003
+ {
1004
+ "internalType": "uint64",
1005
+ "name": "roleId",
1006
+ "type": "uint64"
1007
+ },
1008
+ {
1009
+ "internalType": "uint64",
1010
+ "name": "admin",
1011
+ "type": "uint64"
1012
+ }
1013
+ ],
1014
+ "name": "setRoleAdmin",
1015
+ "outputs": [],
1016
+ "stateMutability": "nonpayable",
1017
+ "type": "function"
1018
+ },
1019
+ {
1020
+ "inputs": [
1021
+ {
1022
+ "internalType": "uint64",
1023
+ "name": "roleId",
1024
+ "type": "uint64"
1025
+ },
1026
+ {
1027
+ "internalType": "uint64",
1028
+ "name": "guardian",
1029
+ "type": "uint64"
1030
+ }
1031
+ ],
1032
+ "name": "setRoleGuardian",
1033
+ "outputs": [],
1034
+ "stateMutability": "nonpayable",
1035
+ "type": "function"
1036
+ },
1037
+ {
1038
+ "inputs": [
1039
+ {
1040
+ "internalType": "address",
1041
+ "name": "target",
1042
+ "type": "address"
1043
+ },
1044
+ {
1045
+ "internalType": "uint32",
1046
+ "name": "newDelay",
1047
+ "type": "uint32"
1048
+ }
1049
+ ],
1050
+ "name": "setTargetAdminDelay",
1051
+ "outputs": [],
1052
+ "stateMutability": "nonpayable",
1053
+ "type": "function"
1054
+ },
1055
+ {
1056
+ "inputs": [
1057
+ {
1058
+ "internalType": "address",
1059
+ "name": "target",
1060
+ "type": "address"
1061
+ },
1062
+ {
1063
+ "internalType": "bool",
1064
+ "name": "closed",
1065
+ "type": "bool"
1066
+ }
1067
+ ],
1068
+ "name": "setTargetClosed",
1069
+ "outputs": [],
1070
+ "stateMutability": "nonpayable",
1071
+ "type": "function"
1072
+ },
1073
+ {
1074
+ "inputs": [
1075
+ {
1076
+ "internalType": "address",
1077
+ "name": "target",
1078
+ "type": "address"
1079
+ },
1080
+ {
1081
+ "internalType": "bytes4[]",
1082
+ "name": "selectors",
1083
+ "type": "bytes4[]"
1084
+ },
1085
+ {
1086
+ "internalType": "uint64",
1087
+ "name": "roleId",
1088
+ "type": "uint64"
1089
+ }
1090
+ ],
1091
+ "name": "setTargetFunctionRole",
1092
+ "outputs": [],
1093
+ "stateMutability": "nonpayable",
1094
+ "type": "function"
1095
+ },
1096
+ {
1097
+ "inputs": [
1098
+ {
1099
+ "internalType": "address",
1100
+ "name": "target",
1101
+ "type": "address"
1102
+ },
1103
+ {
1104
+ "internalType": "address",
1105
+ "name": "newAuthority",
1106
+ "type": "address"
1107
+ }
1108
+ ],
1109
+ "name": "updateAuthority",
1110
+ "outputs": [],
1111
+ "stateMutability": "nonpayable",
1112
+ "type": "function"
1113
+ }
1114
+ ],
1115
+ "bytecode": "0x60806040523480156200001157600080fd5b5060405162001a2238038062001a228339810160408190526200003491620001de565b6001600160a01b0381166200006457604051630409d6d160e11b8152600060048201526024015b60405180910390fd5b6200007360008281806200007b565b505062000210565b60006002600160401b03196001600160401b03861601620000bb5760405163061c6a4360e21b81526001600160401b03861660048201526024016200005b565b6001600160401b03851660009081526001602090815260408083206001600160a01b038816845290915281205465ffffffffffff161590811562000170575060408051808201825265ffffffffffff428181168352600060208085018281526001600160401b038d168352600182528683206001600160a01b038d1684529091529490209251835494516001600160701b03166601000000000000026001600160a01b03199095169216919091179290921790555b6040805163ffffffff8616815265ffffffffffff831660208201528315158183015290516001600160a01b038816916001600160401b038a16917ff98448b987f1428e0e230e1f3c6e2ce15b5693eaf31827fbd0b1ec4b424ae7cf9181900360600190a35095945050505050565b600060208284031215620001f157600080fd5b81516001600160a01b03811681146200020957600080fd5b9392505050565b61180280620002206000396000f3fe6080604052600436106101d85760003560e01c8063530dd45611610102578063b700961311610095578063d22b598911610064578063d22b598914610625578063d6bb62c614610640578063f801a69814610665578063fe0776f5146106a657600080fd5b8063b700961314610593578063b7d2b162146105cf578063cc1b6c81146105ef578063d1f856ee1461060557600080fd5b806394c7d7ee116100d157806394c7d7ee146104d2578063a166aa89146104f2578063a64d95ce14610545578063abd9bd2a1461056557600080fd5b8063530dd456146104405780636d5115bd1461047d57806375b238fc1461049d578063853551b8146104b257600080fd5b80633078f1141161017a5780634136a33c116101495780634136a33c146103d45780634665096d146103ef5780634c1da1e214610405578063529629521461042057600080fd5b80633078f1141461030d57806330cae187146103675780633adc277a146103875780633ca7c02a146103b957600080fd5b8063167bd395116101b6578063167bd3951461029657806318ff183c146102b65780631cff79cd146102d657806325c471a0146102ed57600080fd5b806308d6122d146101dd5780630b0a93ba146101ff57806312be872714610260575b600080fd5b3480156101e957600080fd5b506101fd6101f836600461124e565b6106c6565b005b34801561020b57600080fd5b5061024361021a3660046112e6565b6001600160401b0390811660009081526001602081905260409091200154600160401b90041690565b6040516001600160401b0390911681526020015b60405180910390f35b34801561026c57600080fd5b5061028161027b3660046112e6565b50600090565b60405163ffffffff9091168152602001610257565b3480156102a257600080fd5b506101fd6102b1366004611301565b610721565b3480156102c257600080fd5b506101fd6102d136600461133f565b610737565b6102816102e43660046113ae565b60009392505050565b3480156102f957600080fd5b506101fd610308366004611416565b61079e565b34801561031957600080fd5b5061032d61032836600461145b565b6107b9565b604051610257949392919065ffffffffffff948516815263ffffffff93841660208201529190921660408201529116606082015260800190565b34801561037357600080fd5b506101fd610382366004611477565b6107fa565b34801561039357600080fd5b506103a261027b3660046114aa565b60405165ffffffffffff9091168152602001610257565b3480156103c557600080fd5b506102436001600160401b0381565b3480156103e057600080fd5b5061028161027b3660046114aa565b3480156103fb57600080fd5b5062093a80610281565b34801561041157600080fd5b5061028161027b3660046114c3565b34801561042c57600080fd5b506101fd61043b366004611477565b61080c565b34801561044c57600080fd5b5061024361045b3660046112e6565b6001600160401b03908116600090815260016020819052604090912001541690565b34801561048957600080fd5b506102436104983660046114f8565b61081e565b3480156104a957600080fd5b50610243600081565b3480156104be57600080fd5b506101fd6104cd366004611524565b61085a565b3480156104de57600080fd5b506101fd6104ed3660046113ae565b505050565b3480156104fe57600080fd5b5061053561050d3660046114c3565b6001600160a01b0316600090815260208190526040902060010154600160701b900460ff1690565b6040519015158152602001610257565b34801561055157600080fd5b506101fd610560366004611542565b6108f6565b34801561057157600080fd5b5061058561058036600461156c565b6108fe565b604051908152602001610257565b34801561059f57600080fd5b506105b36105ae3660046115d0565b610937565b60408051921515835263ffffffff909116602083015201610257565b3480156105db57600080fd5b506101fd6105ea36600461145b565b6109b5565b3480156105fb57600080fd5b5062069780610281565b34801561061157600080fd5b506105b361062036600461145b565b6109c7565b34801561063157600080fd5b506101fd61056036600461160e565b34801561064c57600080fd5b5061028161065b36600461156c565b6000949350505050565b34801561067157600080fd5b5061068c61068036600461162c565b60008094509492505050565b6040805192835263ffffffff909116602083015201610257565b3480156106b257600080fd5b506101fd6106c136600461145b565b610a3d565b6106ce610a66565b60005b8281101561071a5761070a858585848181106106ef576106ef61169e565b905060200201602081019061070491906116b4565b84610ad1565b610713816116cf565b90506106d1565b5050505050565b610729610a66565b6107338282610b53565b5050565b61073f610a66565b604051637a9e5e4b60e01b81526001600160a01b038281166004830152831690637a9e5e4b90602401600060405180830381600087803b15801561078257600080fd5b505af1158015610796573d6000803e3d6000fd5b505050505050565b6107a6610a66565b6107b38383600084610bf9565b50505050565b6001600160401b03821660009081526001602090815260408083206001600160a01b038516845290915281205465ffffffffffff1690808092959194509250565b610802610a66565b6107338282610d61565b610814610a66565b6107338282610e05565b6001600160a01b0382166000908152602081815260408083206001600160e01b0319851684529091529020546001600160401b03165b92915050565b610862610a66565b6001600160401b038316158061088057506001600160401b03838116145b156108ae5760405163061c6a4360e21b81526001600160401b03841660048201526024015b60405180910390fd5b826001600160401b03167f1256f5b5ecb89caec12db449738f2fbcd1ba5806cf38f35413f4e5c15bf6a45083836040516108e992919061171f565b60405180910390a2505050565b610733610a66565b600084848484604051602001610917949392919061173b565b604051602081830303815290604052805190602001209050949350505050565b6001600160a01b0382166000908152602081905260408120600101548190600160701b900460ff161561096f575060009050806109ad565b600061097b858561081e565b905060008061098a83896109c7565b915091508161099b576000806109a5565b63ffffffff811615815b945094505050505b935093915050565b6109bd610a66565b6104ed8282610eb7565b60008067fffffffffffffffe196001600160401b038516016109ef5750600190506000610a36565b6000806109fc86866107b9565b5050915091508165ffffffffffff16600014158015610a2b57504265ffffffffffff168265ffffffffffff1611155b93509150610a369050565b9250929050565b6001600160a01b03811633146109bd57604051635f159e6360e01b815260040160405180910390fd5b33600080610a75838236610fa4565b91509150816104ed578063ffffffff166000036104ed576000610a98813661101e565b5060405163f07e038f60e01b81526001600160a01b03871660048201526001600160401b038216602482015290925060440190506108a5565b6001600160a01b0383166000818152602081815260408083206001600160e01b0319871680855290835292819020805467ffffffffffffffff19166001600160401b038716908117909155905192835292917f9ea6790c7dadfd01c9f8b9762b3682607af2c7e79e05a9f9fdf5580dde949151910160405180910390a3505050565b306001600160a01b03831603610b8757604051630b40d17960e31b81526001600160a01b03831660048201526024016108a5565b6001600160a01b038216600081815260208190526040908190206001018054841515600160701b0260ff60701b19909116179055517f90d4e7bb7e5d933792b3562e1741306f8be94837e1348dacef9b6f1df56eb13890610bed90841515815260200190565b60405180910390a25050565b600067fffffffffffffffe196001600160401b03861601610c385760405163061c6a4360e21b81526001600160401b03861660048201526024016108a5565b6001600160401b03851660009081526001602090815260408083206001600160a01b038816845290915281205465ffffffffffff1615908115610cf3575060408051808201825265ffffffffffff428181168352600060208085018281526001600160401b038d168352600182528683206001600160a01b038d1684529091529490209251835494516dffffffffffffffffffffffffffff166601000000000000026001600160a01b03199095169216919091179290921790555b6040805163ffffffff8616815265ffffffffffff831660208201528315158183015290516001600160a01b038816916001600160401b038a16917ff98448b987f1428e0e230e1f3c6e2ce15b5693eaf31827fbd0b1ec4b424ae7cf9181900360600190a35095945050505050565b6001600160401b0382161580610d7f57506001600160401b03828116145b15610da85760405163061c6a4360e21b81526001600160401b03831660048201526024016108a5565b6001600160401b038281166000818152600160208190526040808320909101805467ffffffffffffffff19169486169485179055517f1fd6dd7631312dfac2205b52913f99de03b4d7e381d5d27d3dbfe0713e6e63409190a35050565b6001600160401b0382161580610e2357506001600160401b03828116145b15610e4c5760405163061c6a4360e21b81526001600160401b03831660048201526024016108a5565b6001600160401b03828116600081815260016020819052604080832090910180546fffffffffffffffff00000000000000001916600160401b958716958602179055517f7a8059630b897b5de4c08ade69f8b90c3ead1f8596d62d10b6c4d14a0afb4ae29190a35050565b600067fffffffffffffffe196001600160401b03841601610ef65760405163061c6a4360e21b81526001600160401b03841660048201526024016108a5565b6001600160401b03831660009081526001602090815260408083206001600160a01b038616845290915281205465ffffffffffff169003610f3957506000610854565b6001600160401b03831660008181526001602090815260408083206001600160a01b038716808552925280832080546001600160a01b0319169055519092917ff229baa593af28c41b1d16b748cd7688f0c83aaf92d4be41c44005defe84c16691a350600192915050565b6000806004831015610fbb575060009050806109ad565b6000806000610fca878761101e565b92509250925082610fe457600080945094505050506109ad565b600080610ff1848b6109c7565b915091508161100b576000809650965050505050506109ad565b5060019960009950975050505050505050565b600080806004841015611039575060009150819050806111f4565b600061104586866111fb565b90506001600160e01b031981166310a6aa3760e31b148061107657506001600160e01b031981166330cae18760e01b145b8061109157506001600160e01b0319811663294b14a960e11b145b806110ac57506001600160e01b03198116635326cae760e11b145b806110c757506001600160e01b0319811663d22b598960e01b145b156110dd576001600080935093509350506111f4565b6001600160e01b0319811663063fc60f60e21b148061110c57506001600160e01b0319811663167bd39560e01b145b8061112757506001600160e01b031981166308d6122d60e01b145b1561115d57600061113c60246004888a611772565b81019061114991906114c3565b5060019450600093508392506111f4915050565b6001600160e01b0319811663012e238d60e51b148061118c57506001600160e01b03198116635be958b160e11b145b156111e75760006111a160246004888a611772565b8101906111ae91906112e6565b905060016111d8826001600160401b03908116600090815260016020819052604090912001541690565b600094509450945050506111f4565b6000806000935093509350505b9250925092565b600061120a6004828486611772565b6112139161179c565b9392505050565b6001600160a01b038116811461122f57600080fd5b50565b80356001600160401b038116811461124957600080fd5b919050565b6000806000806060858703121561126457600080fd5b843561126f8161121a565b935060208501356001600160401b038082111561128b57600080fd5b818701915087601f83011261129f57600080fd5b8135818111156112ae57600080fd5b8860208260051b85010111156112c357600080fd5b6020830195508094505050506112db60408601611232565b905092959194509250565b6000602082840312156112f857600080fd5b61121382611232565b6000806040838503121561131457600080fd5b823561131f8161121a565b91506020830135801515811461133457600080fd5b809150509250929050565b6000806040838503121561135257600080fd5b823561135d8161121a565b915060208301356113348161121a565b60008083601f84011261137f57600080fd5b5081356001600160401b0381111561139657600080fd5b602083019150836020828501011115610a3657600080fd5b6000806000604084860312156113c357600080fd5b83356113ce8161121a565b925060208401356001600160401b038111156113e957600080fd5b6113f58682870161136d565b9497909650939450505050565b803563ffffffff8116811461124957600080fd5b60008060006060848603121561142b57600080fd5b61143484611232565b925060208401356114448161121a565b915061145260408501611402565b90509250925092565b6000806040838503121561146e57600080fd5b61135d83611232565b6000806040838503121561148a57600080fd5b61149383611232565b91506114a160208401611232565b90509250929050565b6000602082840312156114bc57600080fd5b5035919050565b6000602082840312156114d557600080fd5b81356112138161121a565b80356001600160e01b03198116811461124957600080fd5b6000806040838503121561150b57600080fd5b82356115168161121a565b91506114a1602084016114e0565b60008060006040848603121561153957600080fd5b6113ce84611232565b6000806040838503121561155557600080fd5b61155e83611232565b91506114a160208401611402565b6000806000806060858703121561158257600080fd5b843561158d8161121a565b9350602085013561159d8161121a565b925060408501356001600160401b038111156115b857600080fd5b6115c48782880161136d565b95989497509550505050565b6000806000606084860312156115e557600080fd5b83356115f08161121a565b925060208401356116008161121a565b9150611452604085016114e0565b6000806040838503121561162157600080fd5b823561155e8161121a565b6000806000806060858703121561164257600080fd5b843561164d8161121a565b935060208501356001600160401b0381111561166857600080fd5b6116748782880161136d565b909450925050604085013565ffffffffffff8116811461169357600080fd5b939692955090935050565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156116c657600080fd5b611213826114e0565b6000600182016116ef57634e487b7160e01b600052601160045260246000fd5b5060010190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006117336020830184866116f6565b949350505050565b6001600160a01b0385811682528416602082015260606040820181905260009061176890830184866116f6565b9695505050505050565b6000808585111561178257600080fd5b8386111561178f57600080fd5b5050820193919092039150565b6001600160e01b031981358181169160048510156117c45780818660040360031b1b83161692505b50509291505056fea26469706673582212208f59b69eb9aa5e0dd7edd12e3fd74c955758ce571e4beeabf8fdcbec60f3d35c64736f6c63430008140033",
1116
+ "deployedBytecode": "0x6080604052600436106101d85760003560e01c8063530dd45611610102578063b700961311610095578063d22b598911610064578063d22b598914610625578063d6bb62c614610640578063f801a69814610665578063fe0776f5146106a657600080fd5b8063b700961314610593578063b7d2b162146105cf578063cc1b6c81146105ef578063d1f856ee1461060557600080fd5b806394c7d7ee116100d157806394c7d7ee146104d2578063a166aa89146104f2578063a64d95ce14610545578063abd9bd2a1461056557600080fd5b8063530dd456146104405780636d5115bd1461047d57806375b238fc1461049d578063853551b8146104b257600080fd5b80633078f1141161017a5780634136a33c116101495780634136a33c146103d45780634665096d146103ef5780634c1da1e214610405578063529629521461042057600080fd5b80633078f1141461030d57806330cae187146103675780633adc277a146103875780633ca7c02a146103b957600080fd5b8063167bd395116101b6578063167bd3951461029657806318ff183c146102b65780631cff79cd146102d657806325c471a0146102ed57600080fd5b806308d6122d146101dd5780630b0a93ba146101ff57806312be872714610260575b600080fd5b3480156101e957600080fd5b506101fd6101f836600461124e565b6106c6565b005b34801561020b57600080fd5b5061024361021a3660046112e6565b6001600160401b0390811660009081526001602081905260409091200154600160401b90041690565b6040516001600160401b0390911681526020015b60405180910390f35b34801561026c57600080fd5b5061028161027b3660046112e6565b50600090565b60405163ffffffff9091168152602001610257565b3480156102a257600080fd5b506101fd6102b1366004611301565b610721565b3480156102c257600080fd5b506101fd6102d136600461133f565b610737565b6102816102e43660046113ae565b60009392505050565b3480156102f957600080fd5b506101fd610308366004611416565b61079e565b34801561031957600080fd5b5061032d61032836600461145b565b6107b9565b604051610257949392919065ffffffffffff948516815263ffffffff93841660208201529190921660408201529116606082015260800190565b34801561037357600080fd5b506101fd610382366004611477565b6107fa565b34801561039357600080fd5b506103a261027b3660046114aa565b60405165ffffffffffff9091168152602001610257565b3480156103c557600080fd5b506102436001600160401b0381565b3480156103e057600080fd5b5061028161027b3660046114aa565b3480156103fb57600080fd5b5062093a80610281565b34801561041157600080fd5b5061028161027b3660046114c3565b34801561042c57600080fd5b506101fd61043b366004611477565b61080c565b34801561044c57600080fd5b5061024361045b3660046112e6565b6001600160401b03908116600090815260016020819052604090912001541690565b34801561048957600080fd5b506102436104983660046114f8565b61081e565b3480156104a957600080fd5b50610243600081565b3480156104be57600080fd5b506101fd6104cd366004611524565b61085a565b3480156104de57600080fd5b506101fd6104ed3660046113ae565b505050565b3480156104fe57600080fd5b5061053561050d3660046114c3565b6001600160a01b0316600090815260208190526040902060010154600160701b900460ff1690565b6040519015158152602001610257565b34801561055157600080fd5b506101fd610560366004611542565b6108f6565b34801561057157600080fd5b5061058561058036600461156c565b6108fe565b604051908152602001610257565b34801561059f57600080fd5b506105b36105ae3660046115d0565b610937565b60408051921515835263ffffffff909116602083015201610257565b3480156105db57600080fd5b506101fd6105ea36600461145b565b6109b5565b3480156105fb57600080fd5b5062069780610281565b34801561061157600080fd5b506105b361062036600461145b565b6109c7565b34801561063157600080fd5b506101fd61056036600461160e565b34801561064c57600080fd5b5061028161065b36600461156c565b6000949350505050565b34801561067157600080fd5b5061068c61068036600461162c565b60008094509492505050565b6040805192835263ffffffff909116602083015201610257565b3480156106b257600080fd5b506101fd6106c136600461145b565b610a3d565b6106ce610a66565b60005b8281101561071a5761070a858585848181106106ef576106ef61169e565b905060200201602081019061070491906116b4565b84610ad1565b610713816116cf565b90506106d1565b5050505050565b610729610a66565b6107338282610b53565b5050565b61073f610a66565b604051637a9e5e4b60e01b81526001600160a01b038281166004830152831690637a9e5e4b90602401600060405180830381600087803b15801561078257600080fd5b505af1158015610796573d6000803e3d6000fd5b505050505050565b6107a6610a66565b6107b38383600084610bf9565b50505050565b6001600160401b03821660009081526001602090815260408083206001600160a01b038516845290915281205465ffffffffffff1690808092959194509250565b610802610a66565b6107338282610d61565b610814610a66565b6107338282610e05565b6001600160a01b0382166000908152602081815260408083206001600160e01b0319851684529091529020546001600160401b03165b92915050565b610862610a66565b6001600160401b038316158061088057506001600160401b03838116145b156108ae5760405163061c6a4360e21b81526001600160401b03841660048201526024015b60405180910390fd5b826001600160401b03167f1256f5b5ecb89caec12db449738f2fbcd1ba5806cf38f35413f4e5c15bf6a45083836040516108e992919061171f565b60405180910390a2505050565b610733610a66565b600084848484604051602001610917949392919061173b565b604051602081830303815290604052805190602001209050949350505050565b6001600160a01b0382166000908152602081905260408120600101548190600160701b900460ff161561096f575060009050806109ad565b600061097b858561081e565b905060008061098a83896109c7565b915091508161099b576000806109a5565b63ffffffff811615815b945094505050505b935093915050565b6109bd610a66565b6104ed8282610eb7565b60008067fffffffffffffffe196001600160401b038516016109ef5750600190506000610a36565b6000806109fc86866107b9565b5050915091508165ffffffffffff16600014158015610a2b57504265ffffffffffff168265ffffffffffff1611155b93509150610a369050565b9250929050565b6001600160a01b03811633146109bd57604051635f159e6360e01b815260040160405180910390fd5b33600080610a75838236610fa4565b91509150816104ed578063ffffffff166000036104ed576000610a98813661101e565b5060405163f07e038f60e01b81526001600160a01b03871660048201526001600160401b038216602482015290925060440190506108a5565b6001600160a01b0383166000818152602081815260408083206001600160e01b0319871680855290835292819020805467ffffffffffffffff19166001600160401b038716908117909155905192835292917f9ea6790c7dadfd01c9f8b9762b3682607af2c7e79e05a9f9fdf5580dde949151910160405180910390a3505050565b306001600160a01b03831603610b8757604051630b40d17960e31b81526001600160a01b03831660048201526024016108a5565b6001600160a01b038216600081815260208190526040908190206001018054841515600160701b0260ff60701b19909116179055517f90d4e7bb7e5d933792b3562e1741306f8be94837e1348dacef9b6f1df56eb13890610bed90841515815260200190565b60405180910390a25050565b600067fffffffffffffffe196001600160401b03861601610c385760405163061c6a4360e21b81526001600160401b03861660048201526024016108a5565b6001600160401b03851660009081526001602090815260408083206001600160a01b038816845290915281205465ffffffffffff1615908115610cf3575060408051808201825265ffffffffffff428181168352600060208085018281526001600160401b038d168352600182528683206001600160a01b038d1684529091529490209251835494516dffffffffffffffffffffffffffff166601000000000000026001600160a01b03199095169216919091179290921790555b6040805163ffffffff8616815265ffffffffffff831660208201528315158183015290516001600160a01b038816916001600160401b038a16917ff98448b987f1428e0e230e1f3c6e2ce15b5693eaf31827fbd0b1ec4b424ae7cf9181900360600190a35095945050505050565b6001600160401b0382161580610d7f57506001600160401b03828116145b15610da85760405163061c6a4360e21b81526001600160401b03831660048201526024016108a5565b6001600160401b038281166000818152600160208190526040808320909101805467ffffffffffffffff19169486169485179055517f1fd6dd7631312dfac2205b52913f99de03b4d7e381d5d27d3dbfe0713e6e63409190a35050565b6001600160401b0382161580610e2357506001600160401b03828116145b15610e4c5760405163061c6a4360e21b81526001600160401b03831660048201526024016108a5565b6001600160401b03828116600081815260016020819052604080832090910180546fffffffffffffffff00000000000000001916600160401b958716958602179055517f7a8059630b897b5de4c08ade69f8b90c3ead1f8596d62d10b6c4d14a0afb4ae29190a35050565b600067fffffffffffffffe196001600160401b03841601610ef65760405163061c6a4360e21b81526001600160401b03841660048201526024016108a5565b6001600160401b03831660009081526001602090815260408083206001600160a01b038616845290915281205465ffffffffffff169003610f3957506000610854565b6001600160401b03831660008181526001602090815260408083206001600160a01b038716808552925280832080546001600160a01b0319169055519092917ff229baa593af28c41b1d16b748cd7688f0c83aaf92d4be41c44005defe84c16691a350600192915050565b6000806004831015610fbb575060009050806109ad565b6000806000610fca878761101e565b92509250925082610fe457600080945094505050506109ad565b600080610ff1848b6109c7565b915091508161100b576000809650965050505050506109ad565b5060019960009950975050505050505050565b600080806004841015611039575060009150819050806111f4565b600061104586866111fb565b90506001600160e01b031981166310a6aa3760e31b148061107657506001600160e01b031981166330cae18760e01b145b8061109157506001600160e01b0319811663294b14a960e11b145b806110ac57506001600160e01b03198116635326cae760e11b145b806110c757506001600160e01b0319811663d22b598960e01b145b156110dd576001600080935093509350506111f4565b6001600160e01b0319811663063fc60f60e21b148061110c57506001600160e01b0319811663167bd39560e01b145b8061112757506001600160e01b031981166308d6122d60e01b145b1561115d57600061113c60246004888a611772565b81019061114991906114c3565b5060019450600093508392506111f4915050565b6001600160e01b0319811663012e238d60e51b148061118c57506001600160e01b03198116635be958b160e11b145b156111e75760006111a160246004888a611772565b8101906111ae91906112e6565b905060016111d8826001600160401b03908116600090815260016020819052604090912001541690565b600094509450945050506111f4565b6000806000935093509350505b9250925092565b600061120a6004828486611772565b6112139161179c565b9392505050565b6001600160a01b038116811461122f57600080fd5b50565b80356001600160401b038116811461124957600080fd5b919050565b6000806000806060858703121561126457600080fd5b843561126f8161121a565b935060208501356001600160401b038082111561128b57600080fd5b818701915087601f83011261129f57600080fd5b8135818111156112ae57600080fd5b8860208260051b85010111156112c357600080fd5b6020830195508094505050506112db60408601611232565b905092959194509250565b6000602082840312156112f857600080fd5b61121382611232565b6000806040838503121561131457600080fd5b823561131f8161121a565b91506020830135801515811461133457600080fd5b809150509250929050565b6000806040838503121561135257600080fd5b823561135d8161121a565b915060208301356113348161121a565b60008083601f84011261137f57600080fd5b5081356001600160401b0381111561139657600080fd5b602083019150836020828501011115610a3657600080fd5b6000806000604084860312156113c357600080fd5b83356113ce8161121a565b925060208401356001600160401b038111156113e957600080fd5b6113f58682870161136d565b9497909650939450505050565b803563ffffffff8116811461124957600080fd5b60008060006060848603121561142b57600080fd5b61143484611232565b925060208401356114448161121a565b915061145260408501611402565b90509250925092565b6000806040838503121561146e57600080fd5b61135d83611232565b6000806040838503121561148a57600080fd5b61149383611232565b91506114a160208401611232565b90509250929050565b6000602082840312156114bc57600080fd5b5035919050565b6000602082840312156114d557600080fd5b81356112138161121a565b80356001600160e01b03198116811461124957600080fd5b6000806040838503121561150b57600080fd5b82356115168161121a565b91506114a1602084016114e0565b60008060006040848603121561153957600080fd5b6113ce84611232565b6000806040838503121561155557600080fd5b61155e83611232565b91506114a160208401611402565b6000806000806060858703121561158257600080fd5b843561158d8161121a565b9350602085013561159d8161121a565b925060408501356001600160401b038111156115b857600080fd5b6115c48782880161136d565b95989497509550505050565b6000806000606084860312156115e557600080fd5b83356115f08161121a565b925060208401356116008161121a565b9150611452604085016114e0565b6000806040838503121561162157600080fd5b823561155e8161121a565b6000806000806060858703121561164257600080fd5b843561164d8161121a565b935060208501356001600160401b0381111561166857600080fd5b6116748782880161136d565b909450925050604085013565ffffffffffff8116811461169357600080fd5b939692955090935050565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156116c657600080fd5b611213826114e0565b6000600182016116ef57634e487b7160e01b600052601160045260246000fd5b5060010190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006117336020830184866116f6565b949350505050565b6001600160a01b0385811682528416602082015260606040820181905260009061176890830184866116f6565b9695505050505050565b6000808585111561178257600080fd5b8386111561178f57600080fd5b5050820193919092039150565b6001600160e01b031981358181169160048510156117c45780818660040360031b1b83161692505b50509291505056fea26469706673582212208f59b69eb9aa5e0dd7edd12e3fd74c955758ce571e4beeabf8fdcbec60f3d35c64736f6c63430008140033",
1117
+ "linkReferences": {},
1118
+ "deployedLinkReferences": {}
1119
+ }