@etherisc/gif-next 0.0.2-fe34d97-357 → 0.0.2-fe88ad7-208

Sign up to get free protection for your applications and to get access to all the features.
Files changed (410) hide show
  1. package/README.md +231 -27
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
  3. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +331 -23
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +675 -0
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  7. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +246 -23
  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 +90 -171
  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 +520 -133
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +540 -113
  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/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  45. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  46. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  47. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +788 -0
  48. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  49. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +185 -0
  50. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  51. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +946 -1214
  52. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  53. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +448 -0
  54. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  55. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +570 -0
  56. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  57. package/artifacts/contracts/instance/Instance.sol/Instance.json +1852 -1184
  58. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  59. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +1047 -0
  60. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +4 -0
  61. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +763 -0
  62. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  63. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1422 -0
  64. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  65. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +963 -0
  66. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  67. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +460 -0
  68. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  69. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +285 -0
  70. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
  71. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +280 -48
  72. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  73. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +33 -1
  74. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  75. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +27 -158
  76. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  77. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  78. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +37 -245
  79. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  80. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +2 -2
  81. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  82. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +254 -0
  83. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  84. package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
  85. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  86. package/artifacts/contracts/instance/module/{access/IAccess.sol/IAccess.json → IDistribution.sol/IDistribution.json} +2 -2
  87. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  88. package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
  89. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  90. package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
  91. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  92. package/artifacts/contracts/instance/{base/ModuleBase.sol/ModuleBase.json → module/ISetup.sol/ISetup.json} +2 -2
  93. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  94. package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
  95. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  96. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +945 -0
  97. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  98. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +432 -0
  99. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  100. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +380 -89
  101. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  102. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +693 -0
  103. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  104. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +420 -0
  105. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  106. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +669 -0
  107. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  108. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +185 -83
  109. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  110. package/artifacts/contracts/instance/{base/IService.sol/IService.json → service/IDistributionService.sol/IDistributionService.json} +206 -60
  111. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  112. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +664 -0
  113. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  114. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +200 -77
  115. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  116. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +184 -196
  117. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  118. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +993 -0
  119. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  120. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +464 -0
  121. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  122. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +345 -89
  123. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  124. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +420 -0
  125. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  126. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +300 -267
  127. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  128. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +420 -0
  129. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  130. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +186 -12
  131. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  132. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +376 -37
  133. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  134. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +976 -0
  135. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  136. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  137. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  138. package/artifacts/contracts/registry/Registry.sol/Registry.json +397 -115
  139. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  140. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  141. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  142. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1195 -0
  143. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  144. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +451 -0
  145. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  146. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +546 -0
  147. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  148. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +397 -0
  149. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  150. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  151. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  152. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  153. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  154. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +127 -0
  155. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  156. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +117 -37
  157. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  158. package/artifacts/contracts/{instance/base/InstanceBase.sol/InstanceBase.json → shared/IService.sol/IService.json} +172 -95
  159. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  160. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +55 -14
  161. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  162. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +158 -0
  163. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  164. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +349 -0
  165. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  166. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +190 -37
  167. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +4 -0
  168. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.json +442 -0
  169. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  170. package/artifacts/contracts/{instance/base/ServiceBase.sol/ServiceBase.json → shared/Service.sol/Service.json} +224 -56
  171. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  172. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  173. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  174. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  175. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  176. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +78 -14
  177. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  178. package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
  179. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  180. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +204 -36
  181. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  182. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +14 -14
  183. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  184. package/artifacts/contracts/test/TestService.sol/TestService.json +289 -68
  185. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  186. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
  187. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  188. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  189. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  190. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +103 -23
  191. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  192. package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
  193. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  194. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  195. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  196. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  197. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  198. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  199. package/artifacts/contracts/types/Fee.sol/FeeLib.json +52 -13
  200. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  201. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +31 -17
  202. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  203. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  204. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  205. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  206. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  207. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  208. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  209. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  210. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  211. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  212. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  213. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  214. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  215. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +134 -8
  216. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  217. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  218. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  219. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +15 -2
  220. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  221. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  222. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  223. package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
  224. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  225. package/artifacts/contracts/types/Version.sol/VersionLib.json +40 -2
  226. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  227. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  228. package/contracts/components/BaseComponent.sol +104 -39
  229. package/contracts/components/Distribution.sol +163 -0
  230. package/contracts/components/IBaseComponent.sol +18 -3
  231. package/contracts/components/IDistributionComponent.sol +44 -0
  232. package/contracts/components/IPoolComponent.sol +19 -10
  233. package/contracts/components/IProductComponent.sol +25 -9
  234. package/contracts/components/Pool.sol +126 -46
  235. package/contracts/components/Product.sol +172 -61
  236. package/contracts/experiment/cloning/Cloner.sol +47 -0
  237. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +23 -0
  238. package/contracts/instance/BundleManager.sol +129 -0
  239. package/contracts/instance/Cloneable.sol +46 -0
  240. package/contracts/instance/IInstance.sol +55 -44
  241. package/contracts/instance/IInstanceBase.sol +26 -0
  242. package/contracts/instance/IInstanceService.sol +40 -0
  243. package/contracts/instance/Instance.sol +261 -56
  244. package/contracts/instance/InstanceAccessManager.sol +303 -0
  245. package/contracts/instance/InstanceBase.sol +41 -0
  246. package/contracts/instance/InstanceReader.sol +315 -0
  247. package/contracts/instance/InstanceService.sol +350 -0
  248. package/contracts/instance/InstanceServiceManager.sol +54 -0
  249. package/contracts/instance/ObjectManager.sol +101 -0
  250. package/contracts/instance/base/ComponentServiceBase.sol +57 -17
  251. package/contracts/instance/base/IInstanceBase.sol +6 -2
  252. package/contracts/instance/base/IKeyValueStore.sol +13 -14
  253. package/contracts/instance/base/ILifecycle.sol +3 -3
  254. package/contracts/instance/base/KeyValueStore.sol +49 -38
  255. package/contracts/instance/base/Lifecycle.sol +1 -1
  256. package/contracts/instance/module/IAccess.sol +48 -0
  257. package/contracts/instance/module/IBundle.sol +20 -0
  258. package/contracts/instance/module/IDistribution.sol +39 -0
  259. package/contracts/instance/module/IPolicy.sol +45 -0
  260. package/contracts/instance/module/IRisk.sol +11 -0
  261. package/contracts/instance/module/ISetup.sol +46 -0
  262. package/contracts/instance/module/ITreasury.sol +23 -0
  263. package/contracts/instance/service/BundleService.sol +260 -0
  264. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  265. package/contracts/instance/service/ComponentOwnerService.sol +238 -78
  266. package/contracts/instance/service/DistributionService.sol +113 -0
  267. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  268. package/contracts/instance/service/IBundleService.sol +45 -0
  269. package/contracts/instance/service/IComponentOwnerService.sol +1 -3
  270. package/contracts/instance/service/IDistributionService.sol +12 -0
  271. package/contracts/instance/service/IPolicyService.sol +87 -0
  272. package/contracts/instance/service/IPoolService.sol +8 -18
  273. package/contracts/instance/service/IProductService.sol +12 -50
  274. package/contracts/instance/service/PolicyService.sol +503 -0
  275. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  276. package/contracts/instance/service/PoolService.sol +87 -92
  277. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  278. package/contracts/instance/service/ProductService.sol +103 -339
  279. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  280. package/contracts/registry/ChainNft.sol +79 -36
  281. package/contracts/registry/IRegistry.sol +58 -24
  282. package/contracts/registry/IRegistryService.sol +58 -0
  283. package/contracts/registry/ITransferInterceptor.sol +6 -0
  284. package/contracts/registry/Registry.sol +303 -288
  285. package/contracts/registry/RegistryAccessManager.sol +210 -0
  286. package/contracts/registry/RegistryService.sol +323 -0
  287. package/contracts/registry/RegistryServiceManager.sol +62 -0
  288. package/contracts/registry/ReleaseManager.sol +348 -0
  289. package/contracts/registry/TokenRegistry.sol +110 -0
  290. package/contracts/shared/ContractDeployerLib.sol +72 -0
  291. package/contracts/shared/ERC165.sol +6 -2
  292. package/contracts/shared/INftOwnable.sol +22 -0
  293. package/contracts/shared/IRegisterable.sol +8 -15
  294. package/contracts/shared/IService.sol +16 -0
  295. package/contracts/shared/IVersionable.sol +55 -11
  296. package/contracts/shared/NftOwnable.sol +134 -0
  297. package/contracts/shared/ProxyManager.sol +94 -0
  298. package/contracts/shared/Registerable.sol +63 -59
  299. package/contracts/shared/RegisterableUpgradable.sol +16 -0
  300. package/contracts/shared/Service.sol +58 -0
  301. package/contracts/shared/TokenHandler.sol +27 -0
  302. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  303. package/contracts/shared/Versionable.sol +113 -55
  304. package/contracts/test/TestFee.sol +2 -2
  305. package/contracts/test/TestRegisterable.sol +5 -6
  306. package/contracts/test/TestRoleId.sol +1 -1
  307. package/contracts/test/TestService.sol +7 -14
  308. package/contracts/types/DistributorType.sol +55 -0
  309. package/contracts/types/Fee.sol +10 -5
  310. package/contracts/types/Key32.sol +8 -3
  311. package/contracts/types/NftIdSet.sol +26 -24
  312. package/contracts/types/NumberId.sol +52 -0
  313. package/contracts/types/ObjectType.sol +32 -7
  314. package/contracts/types/Referral.sol +85 -0
  315. package/contracts/types/RoleId.sol +62 -10
  316. package/contracts/types/StateId.sol +5 -1
  317. package/contracts/types/Timestamp.sol +7 -3
  318. package/contracts/types/UFixed.sol +128 -12
  319. package/contracts/types/Version.sol +13 -1
  320. package/package.json +4 -3
  321. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
  322. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
  323. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  324. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  325. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
  326. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  327. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  328. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  329. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  330. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  331. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  332. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
  333. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -265
  334. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
  335. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
  336. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -265
  337. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +0 -4
  338. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +0 -10
  339. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +0 -4
  340. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.json +0 -10
  341. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +0 -4
  342. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.json +0 -10
  343. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  344. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +0 -136
  345. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
  346. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
  347. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  348. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +0 -136
  349. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  350. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  351. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -288
  352. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  353. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -288
  354. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  355. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.json +0 -10
  356. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  357. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -144
  358. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  359. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -144
  360. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
  361. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
  362. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -132
  363. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
  364. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -150
  365. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  366. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  367. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -531
  368. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  369. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
  370. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  371. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -531
  372. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  373. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -452
  374. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
  375. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
  376. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
  377. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
  378. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
  379. package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -455
  380. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
  381. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -479
  382. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  383. package/contracts/experiment/statemachine/README.md +0 -112
  384. package/contracts/instance/IInstanceLinked.sol +0 -8
  385. package/contracts/instance/base/IService.sol +0 -15
  386. package/contracts/instance/base/InstanceBase.sol +0 -84
  387. package/contracts/instance/base/ModuleBase.sol +0 -53
  388. package/contracts/instance/base/ServiceBase.sol +0 -37
  389. package/contracts/instance/module/access/Access.sol +0 -149
  390. package/contracts/instance/module/access/IAccess.sol +0 -53
  391. package/contracts/instance/module/bundle/BundleModule.sol +0 -135
  392. package/contracts/instance/module/bundle/IBundle.sol +0 -51
  393. package/contracts/instance/module/compensation/CompensationModule.sol +0 -17
  394. package/contracts/instance/module/compensation/ICompensation.sol +0 -10
  395. package/contracts/instance/module/component/ComponentModule.sol +0 -81
  396. package/contracts/instance/module/component/IComponent.sol +0 -29
  397. package/contracts/instance/module/policy/IPolicy.sol +0 -62
  398. package/contracts/instance/module/policy/PolicyModule.sol +0 -92
  399. package/contracts/instance/module/pool/IPoolModule.sol +0 -40
  400. package/contracts/instance/module/pool/PoolModule.sol +0 -90
  401. package/contracts/instance/module/risk/IRisk.sol +0 -27
  402. package/contracts/instance/module/risk/RiskModule.sol +0 -70
  403. package/contracts/instance/module/treasury/ITreasury.sol +0 -96
  404. package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
  405. package/contracts/instance/module/treasury/TreasuryModule.sol +0 -171
  406. package/contracts/registry/IChainNft.sol +0 -21
  407. package/contracts/registry/IRegistryLinked.sol +0 -8
  408. package/contracts/shared/IOwnable.sol +0 -6
  409. package/contracts/test/TestPool.sol +0 -24
  410. package/contracts/test/TestProduct.sol +0 -66
@@ -1,479 +0,0 @@
1
- {
2
- "_format": "hh-sol-artifact-1",
3
- "contractName": "TestProduct",
4
- "sourceName": "contracts/test/TestProduct.sol",
5
- "abi": [
6
- {
7
- "inputs": [
8
- {
9
- "internalType": "address",
10
- "name": "registry",
11
- "type": "address"
12
- },
13
- {
14
- "internalType": "NftId",
15
- "name": "instanceNftid",
16
- "type": "uint96"
17
- },
18
- {
19
- "internalType": "address",
20
- "name": "token",
21
- "type": "address"
22
- },
23
- {
24
- "internalType": "address",
25
- "name": "pool",
26
- "type": "address"
27
- },
28
- {
29
- "components": [
30
- {
31
- "internalType": "UFixed",
32
- "name": "fractionalFee",
33
- "type": "uint256"
34
- },
35
- {
36
- "internalType": "uint256",
37
- "name": "fixedFee",
38
- "type": "uint256"
39
- }
40
- ],
41
- "internalType": "struct Fee",
42
- "name": "policyFee",
43
- "type": "tuple"
44
- },
45
- {
46
- "components": [
47
- {
48
- "internalType": "UFixed",
49
- "name": "fractionalFee",
50
- "type": "uint256"
51
- },
52
- {
53
- "internalType": "uint256",
54
- "name": "fixedFee",
55
- "type": "uint256"
56
- }
57
- ],
58
- "internalType": "struct Fee",
59
- "name": "processingFee",
60
- "type": "tuple"
61
- }
62
- ],
63
- "stateMutability": "nonpayable",
64
- "type": "constructor"
65
- },
66
- {
67
- "anonymous": false,
68
- "inputs": [
69
- {
70
- "indexed": false,
71
- "internalType": "address",
72
- "name": "sender",
73
- "type": "address"
74
- }
75
- ],
76
- "name": "LogTestProductSender",
77
- "type": "event"
78
- },
79
- {
80
- "inputs": [],
81
- "name": "DEFAULT_RISK_NAME",
82
- "outputs": [
83
- {
84
- "internalType": "string",
85
- "name": "",
86
- "type": "string"
87
- }
88
- ],
89
- "stateMutability": "view",
90
- "type": "function"
91
- },
92
- {
93
- "inputs": [
94
- {
95
- "internalType": "uint256",
96
- "name": "sumInsuredAmount",
97
- "type": "uint256"
98
- },
99
- {
100
- "internalType": "uint256",
101
- "name": "premiumAmount",
102
- "type": "uint256"
103
- },
104
- {
105
- "internalType": "uint256",
106
- "name": "lifetime",
107
- "type": "uint256"
108
- },
109
- {
110
- "internalType": "NftId",
111
- "name": "bundleNftId",
112
- "type": "uint96"
113
- }
114
- ],
115
- "name": "applyForPolicy",
116
- "outputs": [
117
- {
118
- "internalType": "NftId",
119
- "name": "nftId",
120
- "type": "uint96"
121
- }
122
- ],
123
- "stateMutability": "nonpayable",
124
- "type": "function"
125
- },
126
- {
127
- "inputs": [
128
- {
129
- "internalType": "NftId",
130
- "name": "nftId",
131
- "type": "uint96"
132
- },
133
- {
134
- "internalType": "Timestamp",
135
- "name": "activateAt",
136
- "type": "uint40"
137
- }
138
- ],
139
- "name": "collectPremium",
140
- "outputs": [],
141
- "stateMutability": "nonpayable",
142
- "type": "function"
143
- },
144
- {
145
- "inputs": [],
146
- "name": "getData",
147
- "outputs": [
148
- {
149
- "internalType": "bytes",
150
- "name": "data",
151
- "type": "bytes"
152
- }
153
- ],
154
- "stateMutability": "view",
155
- "type": "function"
156
- },
157
- {
158
- "inputs": [],
159
- "name": "getDefaultRiskId",
160
- "outputs": [
161
- {
162
- "internalType": "RiskId",
163
- "name": "",
164
- "type": "bytes8"
165
- }
166
- ],
167
- "stateMutability": "pure",
168
- "type": "function"
169
- },
170
- {
171
- "inputs": [],
172
- "name": "getInstance",
173
- "outputs": [
174
- {
175
- "internalType": "contract IInstance",
176
- "name": "instance",
177
- "type": "address"
178
- }
179
- ],
180
- "stateMutability": "view",
181
- "type": "function"
182
- },
183
- {
184
- "inputs": [],
185
- "name": "getNftId",
186
- "outputs": [
187
- {
188
- "internalType": "NftId",
189
- "name": "nftId",
190
- "type": "uint96"
191
- }
192
- ],
193
- "stateMutability": "view",
194
- "type": "function"
195
- },
196
- {
197
- "inputs": [],
198
- "name": "getOwner",
199
- "outputs": [
200
- {
201
- "internalType": "address",
202
- "name": "owner",
203
- "type": "address"
204
- }
205
- ],
206
- "stateMutability": "view",
207
- "type": "function"
208
- },
209
- {
210
- "inputs": [],
211
- "name": "getParentNftId",
212
- "outputs": [
213
- {
214
- "internalType": "NftId",
215
- "name": "nftId",
216
- "type": "uint96"
217
- }
218
- ],
219
- "stateMutability": "view",
220
- "type": "function"
221
- },
222
- {
223
- "inputs": [],
224
- "name": "getPolicyFee",
225
- "outputs": [
226
- {
227
- "components": [
228
- {
229
- "internalType": "UFixed",
230
- "name": "fractionalFee",
231
- "type": "uint256"
232
- },
233
- {
234
- "internalType": "uint256",
235
- "name": "fixedFee",
236
- "type": "uint256"
237
- }
238
- ],
239
- "internalType": "struct Fee",
240
- "name": "policyFee",
241
- "type": "tuple"
242
- }
243
- ],
244
- "stateMutability": "view",
245
- "type": "function"
246
- },
247
- {
248
- "inputs": [],
249
- "name": "getPoolNftId",
250
- "outputs": [
251
- {
252
- "internalType": "NftId",
253
- "name": "poolNftId",
254
- "type": "uint96"
255
- }
256
- ],
257
- "stateMutability": "view",
258
- "type": "function"
259
- },
260
- {
261
- "inputs": [],
262
- "name": "getProcessingFee",
263
- "outputs": [
264
- {
265
- "components": [
266
- {
267
- "internalType": "UFixed",
268
- "name": "fractionalFee",
269
- "type": "uint256"
270
- },
271
- {
272
- "internalType": "uint256",
273
- "name": "fixedFee",
274
- "type": "uint256"
275
- }
276
- ],
277
- "internalType": "struct Fee",
278
- "name": "processingFee",
279
- "type": "tuple"
280
- }
281
- ],
282
- "stateMutability": "view",
283
- "type": "function"
284
- },
285
- {
286
- "inputs": [],
287
- "name": "getRegistry",
288
- "outputs": [
289
- {
290
- "internalType": "contract IRegistry",
291
- "name": "registry",
292
- "type": "address"
293
- }
294
- ],
295
- "stateMutability": "view",
296
- "type": "function"
297
- },
298
- {
299
- "inputs": [],
300
- "name": "getToken",
301
- "outputs": [
302
- {
303
- "internalType": "contract IERC20Metadata",
304
- "name": "token",
305
- "type": "address"
306
- }
307
- ],
308
- "stateMutability": "view",
309
- "type": "function"
310
- },
311
- {
312
- "inputs": [],
313
- "name": "getType",
314
- "outputs": [
315
- {
316
- "internalType": "ObjectType",
317
- "name": "",
318
- "type": "uint8"
319
- }
320
- ],
321
- "stateMutability": "pure",
322
- "type": "function"
323
- },
324
- {
325
- "inputs": [],
326
- "name": "getWallet",
327
- "outputs": [
328
- {
329
- "internalType": "address",
330
- "name": "walletAddress",
331
- "type": "address"
332
- }
333
- ],
334
- "stateMutability": "view",
335
- "type": "function"
336
- },
337
- {
338
- "inputs": [],
339
- "name": "lock",
340
- "outputs": [],
341
- "stateMutability": "nonpayable",
342
- "type": "function"
343
- },
344
- {
345
- "inputs": [],
346
- "name": "register",
347
- "outputs": [
348
- {
349
- "internalType": "NftId",
350
- "name": "componentId",
351
- "type": "uint96"
352
- }
353
- ],
354
- "stateMutability": "nonpayable",
355
- "type": "function"
356
- },
357
- {
358
- "inputs": [
359
- {
360
- "components": [
361
- {
362
- "internalType": "UFixed",
363
- "name": "fractionalFee",
364
- "type": "uint256"
365
- },
366
- {
367
- "internalType": "uint256",
368
- "name": "fixedFee",
369
- "type": "uint256"
370
- }
371
- ],
372
- "internalType": "struct Fee",
373
- "name": "policyFee",
374
- "type": "tuple"
375
- },
376
- {
377
- "components": [
378
- {
379
- "internalType": "UFixed",
380
- "name": "fractionalFee",
381
- "type": "uint256"
382
- },
383
- {
384
- "internalType": "uint256",
385
- "name": "fixedFee",
386
- "type": "uint256"
387
- }
388
- ],
389
- "internalType": "struct Fee",
390
- "name": "processingFee",
391
- "type": "tuple"
392
- }
393
- ],
394
- "name": "setFees",
395
- "outputs": [],
396
- "stateMutability": "nonpayable",
397
- "type": "function"
398
- },
399
- {
400
- "inputs": [
401
- {
402
- "internalType": "bytes4",
403
- "name": "interfaceId",
404
- "type": "bytes4"
405
- }
406
- ],
407
- "name": "supportsInterface",
408
- "outputs": [
409
- {
410
- "internalType": "bool",
411
- "name": "",
412
- "type": "bool"
413
- }
414
- ],
415
- "stateMutability": "view",
416
- "type": "function"
417
- },
418
- {
419
- "inputs": [
420
- {
421
- "internalType": "NftId",
422
- "name": "nftId",
423
- "type": "uint96"
424
- },
425
- {
426
- "internalType": "bool",
427
- "name": "requirePremiumPayment",
428
- "type": "bool"
429
- },
430
- {
431
- "internalType": "Timestamp",
432
- "name": "activateAt",
433
- "type": "uint40"
434
- }
435
- ],
436
- "name": "underwrite",
437
- "outputs": [],
438
- "stateMutability": "nonpayable",
439
- "type": "function"
440
- },
441
- {
442
- "inputs": [],
443
- "name": "unlock",
444
- "outputs": [],
445
- "stateMutability": "nonpayable",
446
- "type": "function"
447
- }
448
- ],
449
- "bytecode": "0x60e06040523480156200001157600080fd5b5060405162001d2338038062001d23833981016040819052620000349162000700565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff1916600117905585858585858585858582826001600160a01b038216620000d75760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5247422d3031303a52454749535452595f5a45524f000000000060448201526064015b60405180910390fd5b6001600160a01b03821660808190526040516301ffc9a760e01b81526306ecd8ef60e01b60048201526301ffc9a790602401602060405180830381865afa15801562000127573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200014d91906200078b565b6200019b5760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a5247422d3031313a4e4f545f52454749535452590000000000006044820152606401620000ce565b6001600160601b03811660a081905260805160405163e74d052f60e01b815260048101929092526001600160a01b03169063e74d052f90602401602060405180830381865afa158015620001f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200021991906200078b565b620002735760405162461bcd60e51b815260206004820152602360248201527f4552524f523a5247422d3031323a504152454e545f4e4f545f5245474953544560448201526214915160ea1b6064820152608401620000ce565b3360c052631dfba64760e11b60009081526020527f95e5a2564f7af40498dc043c6da135e06324c5edb1f60c2bf4dcdf2da207fa45805460ff1916600117905550506080516040516305247a1760e51b81526001600160601b03841660048201526000916001600160a01b03169063a48f42e090602401600060405180830381865afa15801562000308573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262000332919081019062000843565b6060810151600580546001600160a01b0319166001600160a01b0390921691821790556040516301ffc9a760e01b8152630506037b60e21b6004820152919250906301ffc9a790602401602060405180830381865afa1580156200039a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003c091906200078b565b620003e85760405162461bcd60e51b81526020600482015260006024820152604401620000ce565b600560009054906101000a90046001600160a01b03166001600160a01b0316636fa298536040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200043c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200046291906200091d565b600180546001600160a01b039283166001600160a01b0319918216179091556003805482163017905560048054928516929091169190911781556005805460ff60a01b1916905560408051632bd182d360e01b8152815173__$a23651848365a6a5ca15f07b4331037f48$__93632bd182d39383820193909291908290030181865af4158015620004f7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200051d91906200093d565b805160065560209081015160075560055460408051634288121d60e01b815290516001600160a01b039092169650634288121d9550600480820195509293509091908290030181865afa15801562000579573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200059f91906200091d565b600880546001600160a01b039283166001600160a01b03199182161790915560098054959092169416939093179092558051600a55602090810151600b558151600c550151600d55506200095c975050505050505050565b6001600160a01b03811681146200060d57600080fd5b50565b80516200061d81620005f7565b919050565b80516001600160601b03811681146200061d57600080fd5b634e487b7160e01b600052604160045260246000fd5b60405160c081016001600160401b03811182821017156200067557620006756200063a565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620006a657620006a66200063a565b604052919050565b600060408284031215620006c157600080fd5b604080519081016001600160401b0381118282101715620006e657620006e66200063a565b604052825181526020928301519281019290925250919050565b60008060008060008061010087890312156200071b57600080fd5b86516200072881620005f7565b9550620007386020880162000622565b945060408701516200074a81620005f7565b60608801519094506200075d81620005f7565b92506200076e8860808901620006ae565b91506200077f8860c08901620006ae565b90509295509295509295565b6000602082840312156200079e57600080fd5b81518015158114620007af57600080fd5b9392505050565b600082601f830112620007c857600080fd5b81516001600160401b03811115620007e457620007e46200063a565b6020620007fa601f8301601f191682016200067b565b82815285828487010111156200080f57600080fd5b60005b838110156200082f57858101830151828201840152820162000812565b506000928101909101919091529392505050565b6000602082840312156200085657600080fd5b81516001600160401b03808211156200086e57600080fd5b9083019060c082860312156200088357600080fd5b6200088d62000650565b620008988362000622565b8152620008a86020840162000622565b6020820152604083015160ff81168114620008c257600080fd5b6040820152620008d56060840162000610565b6060820152620008e86080840162000610565b608082015260a0830151828111156200090057600080fd5b6200090e87828601620007b6565b60a08301525095945050505050565b6000602082840312156200093057600080fd5b8151620007af81620005f7565b6000604082840312156200095057600080fd5b620007af8383620006ae565b60805160a05160c05161136d620009b66000396000610711015260006101f801526000818161023b015281816103970152818161042d0152818161059601528181610639015281816106920152610754015261136d6000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c8063893d20e8116100b8578063bbfbbfba1161007c578063bbfbbfba146102eb578063bc74aab0146102fe578063daafed4014610313578063de7b5d141461031b578063f83d08ba1461032c578063ff47c73b1461033457600080fd5b8063893d20e81461027c578063955fd78214610284578063a69df4b5146102a5578063abd732ef146102ad578063b6b412ba146102d857600080fd5b806321df0da71161010a57806321df0da7146101e557806331b62a3b146101f65780633bc5de301461021c5780635ab1bd5314610239578063630361f61461025f578063644c45e01461027457600080fd5b806301ffc9a714610147578063132996041461018957806315dae03e146101ae5780631aa3a008146101bd5780631bdd6b76146101dd575b600080fd5b610174610155366004610ec2565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6003546001600160a01b03165b6040516001600160a01b039091168152602001610180565b604051606e8152602001610180565b6101c561034c565b6040516001600160601b039091168152602001610180565b6101c5610571565b6004546001600160a01b0316610196565b7f00000000000000000000000000000000000000000000000000000000000000006101c5565b6040805160208101909152600081525b6040516101809190610f39565b7f0000000000000000000000000000000000000000000000000000000000000000610196565b61027261026d366004610f8c565b6105de565b005b6101c5610621565b610196610670565b61028c6107cd565b6040516001600160c01b03199091168152602001610180565b6102726107fc565b61022c6040518060400160405280600c81526020016b44454641554c545f5249534b60a01b81525081565b6102726102e636600461106c565b610894565b6102726102f93660046110a1565b610934565b610306610942565b60405161018091906110cd565b610306610a85565b6005546001600160a01b0316610196565b610272610bc8565b6101c56103423660046110e4565b610c30565b905090565b6000610356610670565b6001600160a01b0316336001600160a01b0316146103955760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661040b5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a434f422d3030313a52454749535452595f5a45524f0000000000604482015260640161038c565b60055460405163c3c5a54760e01b81526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063c3c5a54790602401602060405180830381865afa158015610476573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049a9190611125565b6104f05760405162461bcd60e51b815260206004820152602160248201527f4552524f523a434f423a494e5354414e43455f4e4f545f5245474953544552456044820152601160fa1b606482015260840161038c565b6005805460ff60a01b1916600160a01b179055600154604051632210724360e11b81523060048201526001600160a01b0390911690634420e486906024016020604051808303816000875af115801561054d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610347919061114d565b600954604051636939560f60e11b81526001600160a01b0391821660048201526000917f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e906024015b602060405180830381865afa15801561054d573d6000803e3d6000fd5b6040513381527fb00037f8426b35b13d3428bd0d8bb6059e05f90d0da23ee636f827aee1718e489060200160405180910390a161061c838383610c89565b505050565b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e906024016105c1565b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa1580156106d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106fd919061114d565b905061070a816000610d09565b15610736577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa1580156107a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c7919061117f565b91505090565b60006103476040518060400160405280600c81526020016b44454641554c545f5249534b60a01b815250610d1f565b610804610670565b6001600160a01b0316336001600160a01b0316146108345760405162461bcd60e51b815260040161038c9061119c565b600154604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b15801561087a57600080fd5b505af115801561088e573d6000803e3d6000fd5b50505050565b61089c610670565b6001600160a01b0316336001600160a01b0316146108cc5760405162461bcd60e51b815260040161038c9061119c565b600854604051635b5a095d60e11b81526001600160a01b039091169063b6b412ba906108fe90859085906004016111d3565b600060405180830381600087803b15801561091857600080fd5b505af115801561092c573d6000803e3d6000fd5b505050505050565b61093e8282610d9a565b5050565b60408051808201909152600080825260208201526000610960610621565b60055460405163a310e2a360e01b81526001600160601b03831660048201529192506000916001600160a01b039091169063a310e2a390602401602060405180830381865afa1580156109b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109db919061117f565b6001600160a01b031614610a695760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101a060405180830381865afa158015610a3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5f9190611234565b6080015191505090565b505060408051808201909152600a548152600b54602082015290565b60408051808201909152600080825260208201526000610aa3610621565b60055460405163a310e2a360e01b81526001600160601b03831660048201529192506000916001600160a01b039091169063a310e2a390602401602060405180830381865afa158015610afa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b1e919061117f565b6001600160a01b031614610bac5760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101a060405180830381865afa158015610b7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba29190611234565b60a0015191505090565b505060408051808201909152600c548152600d54602082015290565b610bd0610670565b6001600160a01b0316336001600160a01b031614610c005760405162461bcd60e51b815260040161038c9061119c565b60015460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a790602401610860565b600e5460009060ff16610c6b57610c5d610c486107cd565b60405180602001604052806000815250610de0565b600e805460ff191660011790555b610c8033610c776107cd565b87878787610e12565b95945050505050565b600854604051633181b0fb60e11b81526001600160601b0385166004820152831515602482015264ffffffffff831660448201526001600160a01b039091169063630361f690606401600060405180830381600087803b158015610cec57600080fd5b505af1158015610d00573d6000803e3d6000fd5b50505050505050565b6001600160601b03828116908216145b92915050565b60405163253a42dd60e11b815260009073__$19a201e37be2e25dc57bd4aa563a0edb25$__90634a7485ba90610d59908590600401610f39565b602060405180830381865af4158015610d76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1991906112df565b600854604051635dfddfdd60e11b81526001600160601b038416600482015264ffffffffff831660248201526001600160a01b039091169063bbfbbfba906044016108fe565b6008546040516304af15b960e11b81526001600160a01b039091169063095e2b72906108fe9085908590600401611309565b6008546040516364d2cb2960e11b81526001600160a01b0388811660048301526001600160c01b0319881660248301526044820187905260648201869052608482018590526001600160601b03841660a4830152600092169063c9a596529060c4016020604051808303816000875af1158015610e93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb7919061114d565b979650505050505050565b600060208284031215610ed457600080fd5b81356001600160e01b031981168114610eec57600080fd5b9392505050565b6000815180845260005b81811015610f1957602081850181015186830182015201610efd565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610eec6020830184610ef3565b6001600160601b0381168114610f6157600080fd5b50565b8015158114610f6157600080fd5b803564ffffffffff81168114610f8757600080fd5b919050565b600080600060608486031215610fa157600080fd5b8335610fac81610f4c565b92506020840135610fbc81610f64565b9150610fca60408501610f72565b90509250925092565b6040805190810167ffffffffffffffff8111828210171561100457634e487b7160e01b600052604160045260246000fd5b60405290565b604051610100810167ffffffffffffffff8111828210171561100457634e487b7160e01b600052604160045260246000fd5b60006040828403121561104e57600080fd5b611056610fd3565b9050813581526020820135602082015292915050565b6000806080838503121561107f57600080fd5b611089848461103c565b9150611098846040850161103c565b90509250929050565b600080604083850312156110b457600080fd5b82356110bf81610f4c565b915061109860208401610f72565b815181526020808301519082015260408101610d19565b600080600080608085870312156110fa57600080fd5b843593506020850135925060408501359150606085013561111a81610f4c565b939692955090935050565b60006020828403121561113757600080fd5b8151610eec81610f64565b8051610f8781610f4c565b60006020828403121561115f57600080fd5b8151610eec81610f4c565b6001600160a01b0381168114610f6157600080fd5b60006020828403121561119157600080fd5b8151610eec8161116a565b60208082526017908201527f4552524f523a5247422d3030313a4e4f545f4f574e4552000000000000000000604082015260600190565b825181526020808401518183015282516040830152820151606082015260808101610eec565b8051610f878161116a565b60006040828403121561121657600080fd5b61121e610fd3565b9050815181526020820151602082015292915050565b60006101a0828403121561124757600080fd5b61124f61100a565b61125883611142565b815261126660208401611142565b6020820152611277604084016111f9565b60408201526112898460608501611204565b606082015261129b8460a08501611204565b60808201526112ad8460e08501611204565b60a08201526112c0846101208501611204565b60c08201526112d3846101608501611204565b60e08201529392505050565b6000602082840312156112f157600080fd5b81516001600160c01b031981168114610eec57600080fd5b67ffffffffffffffff60c01b8316815260406020820152600061132f6040830184610ef3565b94935050505056fea264697066735822122000731d726c0bda6351154f2c8cd25e7f09e1553fb1ac62d3080efd1094bf3acf64736f6c63430008140033",
450
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101425760003560e01c8063893d20e8116100b8578063bbfbbfba1161007c578063bbfbbfba146102eb578063bc74aab0146102fe578063daafed4014610313578063de7b5d141461031b578063f83d08ba1461032c578063ff47c73b1461033457600080fd5b8063893d20e81461027c578063955fd78214610284578063a69df4b5146102a5578063abd732ef146102ad578063b6b412ba146102d857600080fd5b806321df0da71161010a57806321df0da7146101e557806331b62a3b146101f65780633bc5de301461021c5780635ab1bd5314610239578063630361f61461025f578063644c45e01461027457600080fd5b806301ffc9a714610147578063132996041461018957806315dae03e146101ae5780631aa3a008146101bd5780631bdd6b76146101dd575b600080fd5b610174610155366004610ec2565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6003546001600160a01b03165b6040516001600160a01b039091168152602001610180565b604051606e8152602001610180565b6101c561034c565b6040516001600160601b039091168152602001610180565b6101c5610571565b6004546001600160a01b0316610196565b7f00000000000000000000000000000000000000000000000000000000000000006101c5565b6040805160208101909152600081525b6040516101809190610f39565b7f0000000000000000000000000000000000000000000000000000000000000000610196565b61027261026d366004610f8c565b6105de565b005b6101c5610621565b610196610670565b61028c6107cd565b6040516001600160c01b03199091168152602001610180565b6102726107fc565b61022c6040518060400160405280600c81526020016b44454641554c545f5249534b60a01b81525081565b6102726102e636600461106c565b610894565b6102726102f93660046110a1565b610934565b610306610942565b60405161018091906110cd565b610306610a85565b6005546001600160a01b0316610196565b610272610bc8565b6101c56103423660046110e4565b610c30565b905090565b6000610356610670565b6001600160a01b0316336001600160a01b0316146103955760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661040b5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a434f422d3030313a52454749535452595f5a45524f0000000000604482015260640161038c565b60055460405163c3c5a54760e01b81526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063c3c5a54790602401602060405180830381865afa158015610476573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049a9190611125565b6104f05760405162461bcd60e51b815260206004820152602160248201527f4552524f523a434f423a494e5354414e43455f4e4f545f5245474953544552456044820152601160fa1b606482015260840161038c565b6005805460ff60a01b1916600160a01b179055600154604051632210724360e11b81523060048201526001600160a01b0390911690634420e486906024016020604051808303816000875af115801561054d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610347919061114d565b600954604051636939560f60e11b81526001600160a01b0391821660048201526000917f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e906024015b602060405180830381865afa15801561054d573d6000803e3d6000fd5b6040513381527fb00037f8426b35b13d3428bd0d8bb6059e05f90d0da23ee636f827aee1718e489060200160405180910390a161061c838383610c89565b505050565b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e906024016105c1565b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa1580156106d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106fd919061114d565b905061070a816000610d09565b15610736577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa1580156107a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c7919061117f565b91505090565b60006103476040518060400160405280600c81526020016b44454641554c545f5249534b60a01b815250610d1f565b610804610670565b6001600160a01b0316336001600160a01b0316146108345760405162461bcd60e51b815260040161038c9061119c565b600154604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b15801561087a57600080fd5b505af115801561088e573d6000803e3d6000fd5b50505050565b61089c610670565b6001600160a01b0316336001600160a01b0316146108cc5760405162461bcd60e51b815260040161038c9061119c565b600854604051635b5a095d60e11b81526001600160a01b039091169063b6b412ba906108fe90859085906004016111d3565b600060405180830381600087803b15801561091857600080fd5b505af115801561092c573d6000803e3d6000fd5b505050505050565b61093e8282610d9a565b5050565b60408051808201909152600080825260208201526000610960610621565b60055460405163a310e2a360e01b81526001600160601b03831660048201529192506000916001600160a01b039091169063a310e2a390602401602060405180830381865afa1580156109b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109db919061117f565b6001600160a01b031614610a695760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101a060405180830381865afa158015610a3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5f9190611234565b6080015191505090565b505060408051808201909152600a548152600b54602082015290565b60408051808201909152600080825260208201526000610aa3610621565b60055460405163a310e2a360e01b81526001600160601b03831660048201529192506000916001600160a01b039091169063a310e2a390602401602060405180830381865afa158015610afa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b1e919061117f565b6001600160a01b031614610bac5760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101a060405180830381865afa158015610b7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba29190611234565b60a0015191505090565b505060408051808201909152600c548152600d54602082015290565b610bd0610670565b6001600160a01b0316336001600160a01b031614610c005760405162461bcd60e51b815260040161038c9061119c565b60015460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a790602401610860565b600e5460009060ff16610c6b57610c5d610c486107cd565b60405180602001604052806000815250610de0565b600e805460ff191660011790555b610c8033610c776107cd565b87878787610e12565b95945050505050565b600854604051633181b0fb60e11b81526001600160601b0385166004820152831515602482015264ffffffffff831660448201526001600160a01b039091169063630361f690606401600060405180830381600087803b158015610cec57600080fd5b505af1158015610d00573d6000803e3d6000fd5b50505050505050565b6001600160601b03828116908216145b92915050565b60405163253a42dd60e11b815260009073__$19a201e37be2e25dc57bd4aa563a0edb25$__90634a7485ba90610d59908590600401610f39565b602060405180830381865af4158015610d76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1991906112df565b600854604051635dfddfdd60e11b81526001600160601b038416600482015264ffffffffff831660248201526001600160a01b039091169063bbfbbfba906044016108fe565b6008546040516304af15b960e11b81526001600160a01b039091169063095e2b72906108fe9085908590600401611309565b6008546040516364d2cb2960e11b81526001600160a01b0388811660048301526001600160c01b0319881660248301526044820187905260648201869052608482018590526001600160601b03841660a4830152600092169063c9a596529060c4016020604051808303816000875af1158015610e93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb7919061114d565b979650505050505050565b600060208284031215610ed457600080fd5b81356001600160e01b031981168114610eec57600080fd5b9392505050565b6000815180845260005b81811015610f1957602081850181015186830182015201610efd565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610eec6020830184610ef3565b6001600160601b0381168114610f6157600080fd5b50565b8015158114610f6157600080fd5b803564ffffffffff81168114610f8757600080fd5b919050565b600080600060608486031215610fa157600080fd5b8335610fac81610f4c565b92506020840135610fbc81610f64565b9150610fca60408501610f72565b90509250925092565b6040805190810167ffffffffffffffff8111828210171561100457634e487b7160e01b600052604160045260246000fd5b60405290565b604051610100810167ffffffffffffffff8111828210171561100457634e487b7160e01b600052604160045260246000fd5b60006040828403121561104e57600080fd5b611056610fd3565b9050813581526020820135602082015292915050565b6000806080838503121561107f57600080fd5b611089848461103c565b9150611098846040850161103c565b90509250929050565b600080604083850312156110b457600080fd5b82356110bf81610f4c565b915061109860208401610f72565b815181526020808301519082015260408101610d19565b600080600080608085870312156110fa57600080fd5b843593506020850135925060408501359150606085013561111a81610f4c565b939692955090935050565b60006020828403121561113757600080fd5b8151610eec81610f64565b8051610f8781610f4c565b60006020828403121561115f57600080fd5b8151610eec81610f4c565b6001600160a01b0381168114610f6157600080fd5b60006020828403121561119157600080fd5b8151610eec8161116a565b60208082526017908201527f4552524f523a5247422d3030313a4e4f545f4f574e4552000000000000000000604082015260600190565b825181526020808401518183015282516040830152820151606082015260808101610eec565b8051610f878161116a565b60006040828403121561121657600080fd5b61121e610fd3565b9050815181526020820151602082015292915050565b60006101a0828403121561124757600080fd5b61124f61100a565b61125883611142565b815261126660208401611142565b6020820152611277604084016111f9565b60408201526112898460608501611204565b606082015261129b8460a08501611204565b60808201526112ad8460e08501611204565b60a08201526112c0846101208501611204565b60c08201526112d3846101608501611204565b60e08201529392505050565b6000602082840312156112f157600080fd5b81516001600160c01b031981168114610eec57600080fd5b67ffffffffffffffff60c01b8316815260406020820152600061132f6040830184610ef3565b94935050505056fea264697066735822122000731d726c0bda6351154f2c8cd25e7f09e1553fb1ac62d3080efd1094bf3acf64736f6c63430008140033",
451
- "linkReferences": {
452
- "contracts/types/Fee.sol": {
453
- "FeeLib": [
454
- {
455
- "length": 20,
456
- "start": 1211
457
- }
458
- ]
459
- },
460
- "contracts/types/RiskId.sol": {
461
- "RiskIdLib": [
462
- {
463
- "length": 20,
464
- "start": 5863
465
- }
466
- ]
467
- }
468
- },
469
- "deployedLinkReferences": {
470
- "contracts/types/RiskId.sol": {
471
- "RiskIdLib": [
472
- {
473
- "length": 20,
474
- "start": 3377
475
- }
476
- ]
477
- }
478
- }
479
- }
@@ -1,4 +0,0 @@
1
- {
2
- "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/01797c1a22420f170e92428a4c013a0c.json"
4
- }
@@ -1,112 +0,0 @@
1
- # State Machines
2
-
3
- Most GIF objects have a life cycle defined by a state machine.
4
-
5
- For each object type the set of possible states is defined together with its initial state and the set of valid state transitions.
6
-
7
- ## Object Types without States
8
-
9
- * Protocol
10
- * Chains
11
- * Registries (both chain and main registry)
12
-
13
- ## Object Types with States
14
-
15
- * Tokens
16
- * Instances
17
- * Products
18
- * Oracles
19
- * Pools
20
- * Bundles
21
- * Policies
22
- * Claim (non-NFT)
23
- * Payout (non-NFT)
24
-
25
- ### Simple State Machine
26
-
27
- Valid states
28
-
29
- * Active (initial state)
30
- * Paused
31
- * Archived (final state)
32
-
33
- Valid state transitions:
34
-
35
- * Active -> Paused
36
- * Paused -> Active
37
- * Paused -> Archived
38
-
39
-
40
- Candidate object types for simple state machine
41
-
42
- * Token
43
- * Instance
44
- * Product
45
- * Oracle
46
- * Pool
47
-
48
- To discuss:
49
-
50
- * Archived is final state
51
- * What mechanism should exist to revert an unintended transition to 'Archived' state. Should there be such a mechanism?
52
- * What mechanism should exist when the NFT of such an object is burned prematurely. Should there be such a mechanism
53
-
54
- ### Bundle State Machine
55
-
56
- Valid states
57
-
58
- * Active (initial state)
59
- * Paused
60
- * Expired (implicit state)
61
- * Closed (final state)
62
-
63
- Expired is not an explicit state.
64
- A bundle is expired for block.timestamp >= expiredAt
65
-
66
- ### Policy State Machine
67
-
68
- Valid states
69
-
70
- * Applied (initial state)
71
- * Revoked (final state)
72
- * Declined (final state)
73
- * Active
74
- * Expired (implicit state)
75
- * Closed (final state)
76
-
77
- Expired is not an explicit state.
78
- A policy is expired for block.timestamp >= expiredAt
79
-
80
- To discuss:
81
-
82
- * Should 'Closed' be less explicit using a closedAt state variable?
83
- * Or even more lighweight? ie. block.timestamp >= expiredAt and no open claims
84
-
85
- Valid state transitions:
86
-
87
- * Applied -> Revoked
88
- * Applied -> Declined
89
- * Applied -> Active
90
- * Active -> Closed (needs to be expired)
91
-
92
- ### Claim State Machine
93
-
94
- Valid states
95
- * Applied (initial state)
96
- * Confirmed
97
- * Declined (final state)
98
- * Closed (final state)
99
-
100
- Valid state transitions:
101
- * Applied -> Confirmed
102
- * Applied -> Declined
103
- * Confirmed -> Closed
104
-
105
- ### Payout State Machine
106
-
107
- Valid states
108
- * Expected
109
- * PaidOut
110
-
111
- Valid state transitions:
112
- * Expected -> PaidOut
@@ -1,8 +0,0 @@
1
- // SPDX-License-Identifier: Apache-2.0
2
- pragma solidity ^0.8.19;
3
-
4
- import {IInstance} from "./IInstance.sol";
5
-
6
- interface IInstanceLinked {
7
- function getInstance() external view returns (IInstance instance);
8
- }
@@ -1,15 +0,0 @@
1
- // SPDX-License-Identifier: Apache-2.0
2
- pragma solidity ^0.8.19;
3
-
4
- import {VersionPart} from "../../types/Version.sol";
5
-
6
- import {IRegisterable} from "../../shared/IRegisterable.sol";
7
- import {IVersionable} from "../../shared/IVersionable.sol";
8
-
9
- interface IService is
10
- IRegisterable,
11
- IVersionable
12
- {
13
- function getName() external pure returns(string memory name);
14
- function getMajorVersion() external view returns(VersionPart majorVersion);
15
- }