@etherisc/gif-next 0.0.2-c83506f-943 → 0.0.2-c8625de-563

Sign up to get free protection for your applications and to get access to all the features.
Files changed (320) hide show
  1. package/README.md +140 -2
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  3. package/artifacts/contracts/components/Component.sol/Component.json +853 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +1007 -228
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/{instance/service/IComponentOwnerService.sol/IComponentOwnerService.json → components/IComponent.sol/IComponent.json} +203 -156
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +791 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +669 -31
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +654 -5
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +834 -286
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +646 -154
  18. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +1 -1
  20. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  22. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  24. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  33. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  36. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
  37. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  38. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
  39. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  40. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  41. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  42. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +764 -0
  43. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  44. package/artifacts/contracts/instance/{AccessManagedSimple.sol/AccessManagedSimple.json → Cloneable.sol/Cloneable.json} +86 -2
  45. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  46. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +2192 -59
  47. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  48. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +222 -145
  49. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  50. package/artifacts/contracts/instance/Instance.sol/Instance.json +895 -966
  51. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  52. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +211 -144
  53. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  54. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +197 -68
  55. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  56. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +516 -184
  57. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  58. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +344 -75
  59. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  60. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
  61. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  62. package/artifacts/contracts/instance/base/{ComponentServiceBase.sol/ComponentServiceBase.json → ComponentService.sol/ComponentService.json} +203 -143
  63. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  64. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  65. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  66. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +2 -2
  67. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  68. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +2 -2
  69. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  70. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +59 -16
  71. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  72. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  73. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  74. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  75. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  76. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  77. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  78. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +858 -0
  79. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  80. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +657 -0
  81. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  82. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1085 -0
  83. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  84. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +661 -0
  85. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
  86. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +743 -0
  87. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  88. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +637 -0
  89. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  90. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +935 -0
  91. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  92. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +677 -0
  93. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  94. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +462 -0
  95. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  96. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +622 -0
  97. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
  98. package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → instance/service/IClaimService.sol/IClaimService.json} +138 -182
  99. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  100. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +197 -163
  101. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  102. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +572 -0
  103. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  104. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +30 -255
  105. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  106. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +41 -419
  107. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  108. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1109 -0
  109. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  110. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +717 -0
  111. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  112. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +716 -0
  113. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  114. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +649 -0
  115. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  116. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +766 -0
  117. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  118. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +649 -0
  119. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  120. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +2 -2
  121. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  122. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +354 -61
  123. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  124. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +223 -216
  125. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  126. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  127. package/artifacts/contracts/registry/Registry.sol/Registry.json +314 -188
  128. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  129. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  130. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  131. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +222 -317
  132. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  133. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +304 -138
  134. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  135. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
  136. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  137. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +498 -0
  138. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  139. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  140. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
  141. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  142. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +40 -29
  143. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  144. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +129 -0
  145. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  146. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +21 -34
  147. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  148. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.json +48 -0
  149. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  150. package/artifacts/contracts/shared/IService.sol/IService.json +23 -186
  151. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  152. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -152
  153. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  154. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +120 -27
  155. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  156. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +248 -0
  157. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  158. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +294 -61
  159. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  160. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +129 -51
  161. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  162. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +84 -0
  163. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  164. package/artifacts/contracts/shared/Service.sol/Service.json +119 -173
  165. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  166. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  167. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  168. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  169. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -152
  170. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  171. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  172. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +129 -51
  173. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  174. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  175. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  176. package/artifacts/contracts/test/TestService.sol/TestService.json +140 -230
  177. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  178. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  179. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  180. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  181. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +8 -190
  182. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  183. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  184. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  185. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  186. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  187. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +100 -0
  188. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  189. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
  190. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  191. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  192. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
  193. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  194. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  195. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  196. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  197. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  198. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  199. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  200. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  201. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +100 -0
  202. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  203. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +2 -2
  204. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  205. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  206. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  207. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  208. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  209. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  210. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  211. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  212. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  213. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  214. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  215. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  216. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  217. package/contracts/components/Component.sol +242 -0
  218. package/contracts/components/Distribution.sol +209 -67
  219. package/contracts/components/IComponent.sol +55 -0
  220. package/contracts/components/IDistributionComponent.sol +59 -2
  221. package/contracts/components/IPoolComponent.sol +54 -29
  222. package/contracts/components/IProductComponent.sol +7 -3
  223. package/contracts/components/Pool.sol +153 -158
  224. package/contracts/components/Product.sol +120 -132
  225. package/contracts/instance/BundleManager.sol +125 -0
  226. package/contracts/instance/Cloneable.sol +46 -0
  227. package/contracts/instance/IInstance.sol +74 -10
  228. package/contracts/instance/IInstanceService.sol +43 -1
  229. package/contracts/instance/Instance.sol +124 -269
  230. package/contracts/instance/InstanceAccessManager.sol +87 -78
  231. package/contracts/instance/InstanceReader.sol +34 -21
  232. package/contracts/instance/InstanceService.sol +425 -51
  233. package/contracts/instance/InstanceServiceManager.sol +11 -13
  234. package/contracts/instance/ObjectManager.sol +84 -0
  235. package/contracts/instance/base/ComponentService.sol +134 -0
  236. package/contracts/instance/module/IAccess.sol +27 -18
  237. package/contracts/instance/module/IBundle.sol +1 -0
  238. package/contracts/instance/module/IPolicy.sol +4 -2
  239. package/contracts/instance/module/ISetup.sol +7 -3
  240. package/contracts/instance/service/ApplicationService.sol +268 -0
  241. package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
  242. package/contracts/instance/service/BundleService.sol +298 -0
  243. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  244. package/contracts/instance/service/ClaimService.sol +151 -0
  245. package/contracts/instance/service/ClaimServiceManager.sol +35 -0
  246. package/contracts/instance/service/DistributionService.sol +277 -0
  247. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  248. package/contracts/instance/service/IApplicationService.sol +82 -0
  249. package/contracts/instance/service/IBundleService.sol +54 -0
  250. package/contracts/instance/service/IClaimService.sol +61 -0
  251. package/contracts/instance/service/IDistributionService.sol +53 -0
  252. package/contracts/instance/service/IPolicyService.sol +89 -0
  253. package/contracts/instance/service/IPoolService.sol +6 -23
  254. package/contracts/instance/service/IProductService.sol +6 -73
  255. package/contracts/instance/service/PolicyService.sol +474 -0
  256. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  257. package/contracts/instance/service/PoolService.sol +109 -0
  258. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  259. package/contracts/instance/service/ProductService.sol +233 -0
  260. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  261. package/contracts/registry/ChainNft.sol +1 -1
  262. package/contracts/registry/IRegistry.sol +50 -8
  263. package/contracts/registry/IRegistryService.sol +46 -14
  264. package/contracts/registry/Registry.sol +261 -220
  265. package/contracts/registry/RegistryAccessManager.sol +216 -0
  266. package/contracts/registry/RegistryService.sol +110 -266
  267. package/contracts/registry/RegistryServiceManager.sol +24 -26
  268. package/contracts/registry/ReleaseManager.sol +322 -0
  269. package/contracts/registry/TokenRegistry.sol +116 -0
  270. package/contracts/shared/ERC165.sol +14 -8
  271. package/contracts/shared/INftOwnable.sol +11 -10
  272. package/contracts/shared/IPolicyHolder.sol +26 -0
  273. package/contracts/shared/IRegisterable.sol +4 -6
  274. package/contracts/shared/IRegistryLinked.sol +12 -0
  275. package/contracts/shared/IService.sol +2 -1
  276. package/contracts/shared/IVersionable.sol +4 -47
  277. package/contracts/shared/NftOwnable.sol +67 -83
  278. package/contracts/shared/PolicyHolder.sol +81 -0
  279. package/contracts/shared/ProxyManager.sol +100 -25
  280. package/contracts/shared/Registerable.sol +14 -29
  281. package/contracts/shared/RegistryLinked.sol +48 -0
  282. package/contracts/shared/Service.sol +26 -22
  283. package/contracts/shared/Versionable.sol +4 -92
  284. package/contracts/test/TestRegisterable.sol +1 -1
  285. package/contracts/test/TestService.sol +4 -3
  286. package/contracts/types/ClaimId.sol +52 -0
  287. package/contracts/types/DistributorType.sol +2 -2
  288. package/contracts/types/NftIdSet.sol +26 -24
  289. package/contracts/types/ObjectType.sol +9 -5
  290. package/contracts/types/PayoutId.sol +54 -0
  291. package/contracts/types/RoleId.sol +14 -6
  292. package/contracts/types/StateId.sol +4 -0
  293. package/contracts/types/Version.sol +4 -1
  294. package/package.json +3 -3
  295. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  296. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -314
  297. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  298. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -267
  299. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
  300. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
  301. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1119
  302. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
  303. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
  304. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  305. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  306. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
  307. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  308. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -827
  309. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  310. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
  311. package/contracts/components/BaseComponent.sol +0 -86
  312. package/contracts/components/IBaseComponent.sol +0 -24
  313. package/contracts/instance/AccessManagedSimple.sol +0 -114
  314. package/contracts/instance/AccessManagerSimple.sol +0 -682
  315. package/contracts/instance/IAccessManagerSimple.sol +0 -391
  316. package/contracts/instance/base/ComponentServiceBase.sol +0 -49
  317. package/contracts/instance/base/IInstanceBase.sol +0 -23
  318. package/contracts/instance/service/ComponentOwnerService.sol +0 -317
  319. package/contracts/instance/service/IComponentOwnerService.sol +0 -20
  320. package/contracts/shared/RegisterableUpgradable.sol +0 -16
@@ -5,18 +5,13 @@
5
5
  "abi": [
6
6
  {
7
7
  "inputs": [
8
- {
9
- "internalType": "address",
10
- "name": "registry",
11
- "type": "address"
12
- },
13
8
  {
14
9
  "internalType": "NftId",
15
10
  "name": "nftId",
16
11
  "type": "uint96"
17
12
  }
18
13
  ],
19
- "name": "ErrorAlreadyLinked",
14
+ "name": "ErrorNftOwnableAlreadyLinked",
20
15
  "type": "error"
21
16
  },
22
17
  {
@@ -27,76 +22,48 @@
27
22
  "type": "address"
28
23
  }
29
24
  ],
30
- "name": "ErrorContractNotRegistered",
25
+ "name": "ErrorNftOwnableContractNotRegistered",
31
26
  "type": "error"
32
27
  },
33
28
  {
34
- "inputs": [
35
- {
36
- "internalType": "address",
37
- "name": "account",
38
- "type": "address"
39
- }
40
- ],
41
- "name": "ErrorNotOwner",
29
+ "inputs": [],
30
+ "name": "ErrorNftOwnableInitialOwnerZero",
42
31
  "type": "error"
43
32
  },
44
33
  {
45
34
  "inputs": [
46
35
  {
47
36
  "internalType": "address",
48
- "name": "registryAddress",
37
+ "name": "account",
49
38
  "type": "address"
50
39
  }
51
40
  ],
52
- "name": "ErrorNotRegistry",
53
- "type": "error"
54
- },
55
- {
56
- "inputs": [],
57
- "name": "ErrorRegistryAddressZero",
41
+ "name": "ErrorNftOwnableNotOwner",
58
42
  "type": "error"
59
43
  },
60
44
  {
61
45
  "inputs": [
62
46
  {
63
47
  "internalType": "address",
64
- "name": "registry",
48
+ "name": "registryAddress",
65
49
  "type": "address"
66
50
  }
67
51
  ],
68
- "name": "ErrorRegistryAlreadyInitialized",
52
+ "name": "ErrorNotRegistry",
69
53
  "type": "error"
70
54
  },
71
55
  {
72
56
  "inputs": [],
73
- "name": "ErrorRegistryNotInitialized",
74
- "type": "error"
75
- },
76
- {
77
- "anonymous": false,
78
- "inputs": [
79
- {
80
- "indexed": false,
81
- "internalType": "Version",
82
- "name": "version",
83
- "type": "uint24"
84
- },
85
- {
86
- "indexed": false,
87
- "internalType": "address",
88
- "name": "implementation",
89
- "type": "address"
90
- },
57
+ "name": "getDomain",
58
+ "outputs": [
91
59
  {
92
- "indexed": false,
93
- "internalType": "address",
94
- "name": "activatedBy",
95
- "type": "address"
60
+ "internalType": "ObjectType",
61
+ "name": "serviceDomain",
62
+ "type": "uint8"
96
63
  }
97
64
  ],
98
- "name": "LogVersionableInitialized",
99
- "type": "event"
65
+ "stateMutability": "pure",
66
+ "type": "function"
100
67
  },
101
68
  {
102
69
  "inputs": [],
@@ -143,24 +110,6 @@
143
110
  "internalType": "struct IRegistry.ObjectInfo",
144
111
  "name": "",
145
112
  "type": "tuple"
146
- },
147
- {
148
- "internalType": "bytes",
149
- "name": "data",
150
- "type": "bytes"
151
- }
152
- ],
153
- "stateMutability": "view",
154
- "type": "function"
155
- },
156
- {
157
- "inputs": [],
158
- "name": "getInitializedVersion",
159
- "outputs": [
160
- {
161
- "internalType": "uint64",
162
- "name": "",
163
- "type": "uint64"
164
113
  }
165
114
  ],
166
115
  "stateMutability": "view",
@@ -179,19 +128,6 @@
179
128
  "stateMutability": "view",
180
129
  "type": "function"
181
130
  },
182
- {
183
- "inputs": [],
184
- "name": "getName",
185
- "outputs": [
186
- {
187
- "internalType": "string",
188
- "name": "name",
189
- "type": "string"
190
- }
191
- ],
192
- "stateMutability": "pure",
193
- "type": "function"
194
- },
195
131
  {
196
132
  "inputs": [],
197
133
  "name": "getNftId",
@@ -233,31 +169,12 @@
233
169
  },
234
170
  {
235
171
  "inputs": [],
236
- "name": "getVersion",
172
+ "name": "getRegistryAddress",
237
173
  "outputs": [
238
174
  {
239
- "internalType": "Version",
175
+ "internalType": "address",
240
176
  "name": "",
241
- "type": "uint24"
242
- }
243
- ],
244
- "stateMutability": "pure",
245
- "type": "function"
246
- },
247
- {
248
- "inputs": [
249
- {
250
- "internalType": "uint256",
251
- "name": "index",
252
- "type": "uint256"
253
- }
254
- ],
255
- "name": "getVersion",
256
- "outputs": [
257
- {
258
- "internalType": "Version",
259
- "name": "version",
260
- "type": "uint24"
177
+ "type": "address"
261
178
  }
262
179
  ],
263
180
  "stateMutability": "view",
@@ -265,70 +182,19 @@
265
182
  },
266
183
  {
267
184
  "inputs": [],
268
- "name": "getVersionCount",
185
+ "name": "getVersion",
269
186
  "outputs": [
270
- {
271
- "internalType": "uint256",
272
- "name": "numberOfVersions",
273
- "type": "uint256"
274
- }
275
- ],
276
- "stateMutability": "view",
277
- "type": "function"
278
- },
279
- {
280
- "inputs": [
281
187
  {
282
188
  "internalType": "Version",
283
- "name": "version",
189
+ "name": "",
284
190
  "type": "uint24"
285
191
  }
286
192
  ],
287
- "name": "getVersionInfo",
288
- "outputs": [
289
- {
290
- "components": [
291
- {
292
- "internalType": "Version",
293
- "name": "version",
294
- "type": "uint24"
295
- },
296
- {
297
- "internalType": "address",
298
- "name": "implementation",
299
- "type": "address"
300
- },
301
- {
302
- "internalType": "address",
303
- "name": "activatedBy",
304
- "type": "address"
305
- },
306
- {
307
- "internalType": "Timestamp",
308
- "name": "activatedAt",
309
- "type": "uint40"
310
- },
311
- {
312
- "internalType": "Blocknumber",
313
- "name": "activatedIn",
314
- "type": "uint32"
315
- }
316
- ],
317
- "internalType": "struct IVersionable.VersionInfo",
318
- "name": "versionInfo",
319
- "type": "tuple"
320
- }
321
- ],
322
- "stateMutability": "view",
193
+ "stateMutability": "pure",
323
194
  "type": "function"
324
195
  },
325
196
  {
326
197
  "inputs": [
327
- {
328
- "internalType": "address",
329
- "name": "implementation",
330
- "type": "address"
331
- },
332
198
  {
333
199
  "internalType": "address",
334
200
  "name": "activatedBy",
@@ -340,30 +206,11 @@
340
206
  "type": "bytes"
341
207
  }
342
208
  ],
343
- "name": "initialize",
209
+ "name": "initializeVersionable",
344
210
  "outputs": [],
345
211
  "stateMutability": "nonpayable",
346
212
  "type": "function"
347
213
  },
348
- {
349
- "inputs": [
350
- {
351
- "internalType": "Version",
352
- "name": "version",
353
- "type": "uint24"
354
- }
355
- ],
356
- "name": "isInitialized",
357
- "outputs": [
358
- {
359
- "internalType": "bool",
360
- "name": "",
361
- "type": "bool"
362
- }
363
- ],
364
- "stateMutability": "view",
365
- "type": "function"
366
- },
367
214
  {
368
215
  "inputs": [],
369
216
  "name": "linkToRegisteredNftId",
@@ -392,23 +239,13 @@
392
239
  },
393
240
  {
394
241
  "inputs": [
395
- {
396
- "internalType": "address",
397
- "name": "implementation",
398
- "type": "address"
399
- },
400
- {
401
- "internalType": "address",
402
- "name": "activatedBy",
403
- "type": "address"
404
- },
405
242
  {
406
243
  "internalType": "bytes",
407
244
  "name": "upgradeData",
408
245
  "type": "bytes"
409
246
  }
410
247
  ],
411
- "name": "upgrade",
248
+ "name": "upgradeVersionable",
412
249
  "outputs": [],
413
250
  "stateMutability": "nonpayable",
414
251
  "type": "function"
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/e9844962b604f2337cc8063f448ec25f.json"
3
+ "buildInfo": "../../../build-info/671c400d7418b1fe552582ba223238eb.json"
4
4
  }
@@ -3,44 +3,6 @@
3
3
  "contractName": "IVersionable",
4
4
  "sourceName": "contracts/shared/IVersionable.sol",
5
5
  "abi": [
6
- {
7
- "anonymous": false,
8
- "inputs": [
9
- {
10
- "indexed": false,
11
- "internalType": "Version",
12
- "name": "version",
13
- "type": "uint24"
14
- },
15
- {
16
- "indexed": false,
17
- "internalType": "address",
18
- "name": "implementation",
19
- "type": "address"
20
- },
21
- {
22
- "indexed": false,
23
- "internalType": "address",
24
- "name": "activatedBy",
25
- "type": "address"
26
- }
27
- ],
28
- "name": "LogVersionableInitialized",
29
- "type": "event"
30
- },
31
- {
32
- "inputs": [],
33
- "name": "getInitializedVersion",
34
- "outputs": [
35
- {
36
- "internalType": "uint64",
37
- "name": "",
38
- "type": "uint64"
39
- }
40
- ],
41
- "stateMutability": "view",
42
- "type": "function"
43
- },
44
6
  {
45
7
  "inputs": [],
46
8
  "name": "getVersion",
@@ -54,91 +16,8 @@
54
16
  "stateMutability": "pure",
55
17
  "type": "function"
56
18
  },
57
- {
58
- "inputs": [
59
- {
60
- "internalType": "uint256",
61
- "name": "index",
62
- "type": "uint256"
63
- }
64
- ],
65
- "name": "getVersion",
66
- "outputs": [
67
- {
68
- "internalType": "Version",
69
- "name": "version",
70
- "type": "uint24"
71
- }
72
- ],
73
- "stateMutability": "view",
74
- "type": "function"
75
- },
76
- {
77
- "inputs": [],
78
- "name": "getVersionCount",
79
- "outputs": [
80
- {
81
- "internalType": "uint256",
82
- "name": "numberOfVersions",
83
- "type": "uint256"
84
- }
85
- ],
86
- "stateMutability": "view",
87
- "type": "function"
88
- },
89
- {
90
- "inputs": [
91
- {
92
- "internalType": "Version",
93
- "name": "version",
94
- "type": "uint24"
95
- }
96
- ],
97
- "name": "getVersionInfo",
98
- "outputs": [
99
- {
100
- "components": [
101
- {
102
- "internalType": "Version",
103
- "name": "version",
104
- "type": "uint24"
105
- },
106
- {
107
- "internalType": "address",
108
- "name": "implementation",
109
- "type": "address"
110
- },
111
- {
112
- "internalType": "address",
113
- "name": "activatedBy",
114
- "type": "address"
115
- },
116
- {
117
- "internalType": "Timestamp",
118
- "name": "activatedAt",
119
- "type": "uint40"
120
- },
121
- {
122
- "internalType": "Blocknumber",
123
- "name": "activatedIn",
124
- "type": "uint32"
125
- }
126
- ],
127
- "internalType": "struct IVersionable.VersionInfo",
128
- "name": "versionInfo",
129
- "type": "tuple"
130
- }
131
- ],
132
- "stateMutability": "view",
133
- "type": "function"
134
- },
135
19
  {
136
20
  "inputs": [
137
- {
138
- "internalType": "address",
139
- "name": "implementation",
140
- "type": "address"
141
- },
142
21
  {
143
22
  "internalType": "address",
144
23
  "name": "activatedBy",
@@ -150,49 +29,20 @@
150
29
  "type": "bytes"
151
30
  }
152
31
  ],
153
- "name": "initialize",
32
+ "name": "initializeVersionable",
154
33
  "outputs": [],
155
34
  "stateMutability": "nonpayable",
156
35
  "type": "function"
157
36
  },
158
37
  {
159
38
  "inputs": [
160
- {
161
- "internalType": "Version",
162
- "name": "version",
163
- "type": "uint24"
164
- }
165
- ],
166
- "name": "isInitialized",
167
- "outputs": [
168
- {
169
- "internalType": "bool",
170
- "name": "",
171
- "type": "bool"
172
- }
173
- ],
174
- "stateMutability": "view",
175
- "type": "function"
176
- },
177
- {
178
- "inputs": [
179
- {
180
- "internalType": "address",
181
- "name": "implementation",
182
- "type": "address"
183
- },
184
- {
185
- "internalType": "address",
186
- "name": "activatedBy",
187
- "type": "address"
188
- },
189
39
  {
190
40
  "internalType": "bytes",
191
41
  "name": "upgradeData",
192
42
  "type": "bytes"
193
43
  }
194
44
  ],
195
- "name": "upgrade",
45
+ "name": "upgradeVersionable",
196
46
  "outputs": [],
197
47
  "stateMutability": "nonpayable",
198
48
  "type": "function"
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/e9844962b604f2337cc8063f448ec25f.json"
3
+ "buildInfo": "../../../build-info/671c400d7418b1fe552582ba223238eb.json"
4
4
  }