@etherisc/gif-next 0.0.2-851536d → 0.0.2-86f4673-518

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (421) hide show
  1. package/README.md +436 -8
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
  3. package/artifacts/contracts/components/Component.sol/Component.json +735 -30
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +1140 -0
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/{registry/IChainNft.sol/IChainNft.json → components/IComponent.sol/IComponent.json} +292 -224
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +708 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +894 -0
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +813 -0
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +1216 -76
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +1148 -102
  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/Require.sol/Require.json +2 -2
  26. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +2 -2
  28. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +2 -2
  30. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +2 -2
  32. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  36. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  37. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  38. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +4 -0
  39. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +59 -0
  40. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +4 -0
  41. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +124 -0
  42. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +4 -0
  43. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +74 -0
  44. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +4 -0
  45. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +124 -0
  46. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +4 -0
  47. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +207 -0
  48. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  49. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +2 -2
  50. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  51. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +2 -2
  52. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  53. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +764 -0
  54. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  55. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +185 -0
  56. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  57. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1592 -476
  58. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  59. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +674 -0
  60. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  61. package/artifacts/contracts/instance/Instance.sol/Instance.json +2653 -518
  62. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  63. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +984 -0
  64. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  65. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1386 -0
  66. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  67. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1260 -0
  68. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  69. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +610 -0
  70. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  71. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
  72. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  73. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +754 -0
  74. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  75. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +429 -0
  76. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  77. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.json +115 -0
  78. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  79. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +502 -0
  80. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  81. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
  82. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  83. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +254 -0
  84. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  85. package/artifacts/contracts/instance/{access/IAccess.sol/IAccess.json → module/IBundle.sol/IBundle.json} +2 -2
  86. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  87. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.json +10 -0
  88. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  89. package/artifacts/contracts/instance/{policy → module}/IPolicy.sol/IPolicy.json +1 -1
  90. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  91. package/artifacts/contracts/instance/{pool/IPoolModule.sol/IPool.json → module/IRisk.sol/IRisk.json} +2 -2
  92. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  93. package/artifacts/contracts/instance/{component/IComponent.sol/IComponent.json → module/ISetup.sol/ISetup.json} +2 -2
  94. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  95. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.json +10 -0
  96. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  97. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +1117 -0
  98. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  99. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1318 -0
  100. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  101. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +586 -0
  102. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  103. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +923 -0
  104. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  105. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +574 -0
  106. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  107. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +638 -0
  108. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  109. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +798 -0
  110. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  111. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +459 -0
  112. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  113. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +784 -0
  114. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
  115. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +512 -0
  116. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
  117. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +549 -0
  118. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  119. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1378 -0
  120. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  121. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +642 -0
  122. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  123. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +957 -0
  124. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  125. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +574 -0
  126. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  127. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +1007 -0
  128. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  129. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +574 -0
  130. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  131. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +239 -2
  132. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  133. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +519 -61
  134. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  135. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +999 -0
  136. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  137. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  138. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  139. package/artifacts/contracts/registry/Registry.sol/Registry.json +567 -75
  140. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  141. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  142. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  143. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1351 -0
  144. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  145. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +601 -0
  146. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  147. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
  148. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  149. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +531 -0
  150. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  151. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  152. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +4 -0
  153. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +73 -0
  154. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  155. package/artifacts/contracts/{registry/Registry.sol/Registerable.json → shared/INftOwnable.sol/INftOwnable.json} +68 -70
  156. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  157. package/artifacts/contracts/{instance/product/IProductService.sol/IProductService.json → shared/IPolicyHolder.sol/IPolicyHolder.json} +68 -53
  158. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
  159. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +214 -0
  160. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  161. package/artifacts/contracts/{instance/product/ProductService.sol/ProductModule.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +23 -29
  162. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  163. package/artifacts/contracts/shared/IService.sol/IService.json +434 -0
  164. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
  165. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +205 -0
  166. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  167. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +303 -0
  168. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  169. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +269 -0
  170. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  171. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +499 -0
  172. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
  173. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +415 -0
  174. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  175. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +105 -0
  176. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  177. package/artifacts/contracts/shared/Service.sol/Service.json +627 -0
  178. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  179. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  180. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  181. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  182. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
  183. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +228 -0
  184. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
  185. package/artifacts/contracts/test/TestFee.sol/TestFee.json +119 -0
  186. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
  187. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +446 -0
  188. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +4 -0
  189. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +116 -0
  190. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
  191. package/artifacts/contracts/test/TestService.sol/TestService.json +759 -0
  192. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
  193. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +376 -0
  194. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
  195. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +218 -0
  196. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
  197. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +286 -0
  198. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
  199. package/artifacts/contracts/test/Usdc.sol/USDC.json +376 -0
  200. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  201. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -0
  202. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  203. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
  204. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  205. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +2 -2
  206. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  207. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  208. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +4 -0
  209. package/artifacts/contracts/types/Fee.sol/FeeLib.json +257 -0
  210. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
  211. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +125 -0
  212. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  213. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +65 -4
  214. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  215. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +33 -0
  216. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  217. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  218. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
  219. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +92 -0
  220. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  221. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  222. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  223. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  224. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
  225. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +156 -0
  226. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +4 -0
  227. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +92 -0
  228. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  229. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +77 -2
  230. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  231. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  232. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  233. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +479 -0
  234. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
  235. package/artifacts/contracts/types/Version.sol/VersionLib.json +177 -0
  236. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
  237. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +49 -0
  238. package/contracts/components/Component.sol +205 -37
  239. package/contracts/components/Distribution.sol +156 -0
  240. package/contracts/components/IComponent.sol +50 -0
  241. package/contracts/components/IDistributionComponent.sol +47 -0
  242. package/contracts/components/IPoolComponent.sol +87 -0
  243. package/contracts/components/IProductComponent.sol +39 -0
  244. package/contracts/components/Pool.sol +242 -17
  245. package/contracts/components/Product.sol +244 -32
  246. package/contracts/experiment/cloning/Cloner.sol +47 -0
  247. package/contracts/experiment/errors/Require.sol +10 -5
  248. package/contracts/experiment/errors/Revert.sol +13 -8
  249. package/contracts/experiment/inheritance/A.sol +8 -11
  250. package/contracts/experiment/inheritance/B.sol +10 -5
  251. package/contracts/experiment/inheritance/C.sol +11 -5
  252. package/contracts/experiment/inheritance/IA.sol +2 -7
  253. package/contracts/experiment/inheritance/IB.sol +3 -2
  254. package/contracts/experiment/inheritance/IC.sol +4 -3
  255. package/contracts/experiment/statemachine/Dummy.sol +27 -0
  256. package/contracts/experiment/statemachine/ISM.sol +25 -0
  257. package/contracts/experiment/statemachine/SM.sol +57 -0
  258. package/contracts/experiment/statemachine/SimpleStateMachine.sol +31 -0
  259. package/contracts/experiment/types/TypeA.sol +14 -9
  260. package/contracts/experiment/types/TypeB.sol +14 -9
  261. package/contracts/instance/BundleManager.sol +125 -0
  262. package/contracts/instance/Cloneable.sol +46 -0
  263. package/contracts/instance/IInstance.sol +67 -15
  264. package/contracts/instance/IInstanceService.sol +59 -0
  265. package/contracts/instance/Instance.sol +247 -43
  266. package/contracts/instance/InstanceAccessManager.sol +297 -0
  267. package/contracts/instance/InstanceReader.sol +293 -0
  268. package/contracts/instance/InstanceService.sol +433 -0
  269. package/contracts/instance/InstanceServiceManager.sol +54 -0
  270. package/contracts/instance/ObjectManager.sol +84 -0
  271. package/contracts/instance/base/ComponentService.sol +134 -0
  272. package/contracts/instance/base/IKeyValueStore.sol +49 -0
  273. package/contracts/instance/base/ILifecycle.sol +30 -0
  274. package/contracts/instance/base/KeyValueStore.sol +172 -0
  275. package/contracts/instance/base/Lifecycle.sol +100 -0
  276. package/contracts/instance/module/IAccess.sol +47 -0
  277. package/contracts/instance/module/IBundle.sol +20 -0
  278. package/contracts/instance/module/IDistribution.sol +39 -0
  279. package/contracts/instance/module/IPolicy.sol +45 -0
  280. package/contracts/instance/module/IRisk.sol +11 -0
  281. package/contracts/instance/module/ISetup.sol +47 -0
  282. package/contracts/instance/module/ITreasury.sol +23 -0
  283. package/contracts/instance/service/ApplicationService.sol +268 -0
  284. package/contracts/instance/service/BundleService.sol +298 -0
  285. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  286. package/contracts/instance/service/DistributionService.sol +105 -0
  287. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  288. package/contracts/instance/service/IApplicationService.sol +82 -0
  289. package/contracts/instance/service/IBundleService.sol +54 -0
  290. package/contracts/instance/service/IDistributionService.sol +12 -0
  291. package/contracts/instance/service/IPolicyService.sol +88 -0
  292. package/contracts/instance/service/IPoolService.sol +20 -0
  293. package/contracts/instance/service/IProductService.sol +40 -0
  294. package/contracts/instance/service/PolicyService.sol +524 -0
  295. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  296. package/contracts/instance/service/PoolService.sol +109 -0
  297. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  298. package/contracts/instance/service/ProductService.sol +233 -0
  299. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  300. package/contracts/registry/ChainNft.sol +138 -109
  301. package/contracts/registry/IRegistry.sol +78 -49
  302. package/contracts/registry/IRegistryService.sol +65 -0
  303. package/contracts/registry/ITransferInterceptor.sol +6 -0
  304. package/contracts/registry/Registry.sol +396 -116
  305. package/contracts/registry/RegistryAccessManager.sol +216 -0
  306. package/contracts/registry/RegistryService.sol +261 -0
  307. package/contracts/registry/RegistryServiceManager.sol +62 -0
  308. package/contracts/registry/ReleaseManager.sol +332 -0
  309. package/contracts/registry/TokenRegistry.sol +113 -0
  310. package/contracts/shared/ContractDeployerLib.sol +72 -0
  311. package/contracts/shared/ERC165.sol +26 -0
  312. package/contracts/shared/INftOwnable.sol +28 -0
  313. package/contracts/shared/IPolicyHolder.sol +26 -0
  314. package/contracts/shared/IRegisterable.sol +15 -0
  315. package/contracts/shared/IRegistryLinked.sol +15 -0
  316. package/contracts/shared/IService.sol +16 -0
  317. package/contracts/shared/IVersionable.sol +96 -0
  318. package/contracts/shared/NftOwnable.sol +190 -0
  319. package/contracts/shared/PolicyHolder.sol +81 -0
  320. package/contracts/shared/ProxyManager.sol +95 -0
  321. package/contracts/shared/Registerable.sol +81 -0
  322. package/contracts/shared/RegistryLinked.sol +64 -0
  323. package/contracts/shared/Service.sol +60 -0
  324. package/contracts/shared/TokenHandler.sol +27 -0
  325. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  326. package/contracts/shared/Versionable.sol +148 -0
  327. package/contracts/test/TestFee.sol +25 -0
  328. package/contracts/test/TestRegisterable.sol +18 -0
  329. package/contracts/test/TestRoleId.sol +14 -0
  330. package/contracts/test/TestService.sol +25 -0
  331. package/contracts/test/TestToken.sol +26 -0
  332. package/contracts/test/TestVersion.sol +44 -0
  333. package/contracts/test/TestVersionable.sol +17 -0
  334. package/contracts/test/Usdc.sol +26 -0
  335. package/contracts/types/AddressSet.sol +58 -0
  336. package/contracts/types/Blocknumber.sol +76 -18
  337. package/contracts/types/ChainId.sol +18 -10
  338. package/contracts/types/DistributorType.sol +55 -0
  339. package/contracts/types/Fee.sol +56 -0
  340. package/contracts/types/Key32.sol +50 -0
  341. package/contracts/types/NftId.sol +48 -11
  342. package/contracts/types/NftIdSet.sol +62 -0
  343. package/contracts/types/NumberId.sol +52 -0
  344. package/contracts/types/ObjectType.sol +156 -0
  345. package/contracts/types/Referral.sol +85 -0
  346. package/contracts/types/RiskId.sol +43 -0
  347. package/contracts/types/RoleId.sol +90 -0
  348. package/contracts/types/StateId.sol +105 -0
  349. package/contracts/types/Timestamp.sol +89 -17
  350. package/contracts/types/UFixed.sol +193 -75
  351. package/contracts/types/Version.sol +107 -0
  352. package/package.json +21 -6
  353. package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +0 -4
  354. package/artifacts/contracts/components/Component.sol/InstanceLinked.json +0 -35
  355. package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +0 -4
  356. package/artifacts/contracts/components/IPool.sol/IPoolComponent.json +0 -179
  357. package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +0 -4
  358. package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +0 -192
  359. package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +0 -4
  360. package/artifacts/contracts/instance/access/Access.sol/AccessModule.json +0 -400
  361. package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +0 -4
  362. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +0 -4
  363. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +0 -35
  364. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +0 -4
  365. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +0 -50
  366. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  367. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.json +0 -336
  368. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  369. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.json +0 -327
  370. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +0 -4
  371. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +0 -147
  372. package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +0 -4
  373. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +0 -4
  374. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.json +0 -179
  375. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  376. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +0 -245
  377. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +0 -4
  378. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +0 -94
  379. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
  380. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.json +0 -24
  381. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  382. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  383. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.json +0 -231
  384. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  385. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.json +0 -231
  386. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  387. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  388. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.json +0 -149
  389. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  390. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.json +0 -162
  391. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +0 -4
  392. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +0 -75
  393. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +0 -4
  394. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +0 -4
  395. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +0 -4
  396. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +0 -167
  397. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  398. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
  399. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.json +0 -24
  400. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
  401. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.json +0 -166
  402. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +0 -4
  403. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.json +0 -49
  404. package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +0 -4
  405. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +0 -4
  406. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +0 -60
  407. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  408. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +0 -440
  409. package/contracts/components/IPool.sol +0 -9
  410. package/contracts/components/IProduct.sol +0 -12
  411. package/contracts/instance/access/Access.sol +0 -218
  412. package/contracts/instance/access/IAccess.sol +0 -83
  413. package/contracts/instance/component/ComponentModule.sol +0 -248
  414. package/contracts/instance/component/IComponent.sol +0 -95
  415. package/contracts/instance/policy/IPolicy.sol +0 -66
  416. package/contracts/instance/policy/PolicyModule.sol +0 -107
  417. package/contracts/instance/pool/IPoolModule.sol +0 -41
  418. package/contracts/instance/pool/PoolModule.sol +0 -86
  419. package/contracts/instance/product/IProductService.sol +0 -46
  420. package/contracts/instance/product/ProductService.sol +0 -108
  421. package/contracts/registry/IChainNft.sol +0 -18
@@ -0,0 +1,1140 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "Distribution",
4
+ "sourceName": "contracts/components/Distribution.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "authority",
11
+ "type": "address"
12
+ }
13
+ ],
14
+ "name": "AccessManagedInvalidAuthority",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
19
+ {
20
+ "internalType": "address",
21
+ "name": "caller",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "internalType": "uint32",
26
+ "name": "delay",
27
+ "type": "uint32"
28
+ }
29
+ ],
30
+ "name": "AccessManagedRequiredDelay",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "address",
37
+ "name": "caller",
38
+ "type": "address"
39
+ }
40
+ ],
41
+ "name": "AccessManagedUnauthorized",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "address",
48
+ "name": "target",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "name": "AddressEmptyCode",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "internalType": "address",
59
+ "name": "account",
60
+ "type": "address"
61
+ }
62
+ ],
63
+ "name": "AddressInsufficientBalance",
64
+ "type": "error"
65
+ },
66
+ {
67
+ "inputs": [
68
+ {
69
+ "internalType": "address",
70
+ "name": "registry",
71
+ "type": "address"
72
+ },
73
+ {
74
+ "internalType": "NftId",
75
+ "name": "nftId",
76
+ "type": "uint96"
77
+ }
78
+ ],
79
+ "name": "ErrorAlreadyLinked",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [
84
+ {
85
+ "internalType": "address",
86
+ "name": "caller",
87
+ "type": "address"
88
+ }
89
+ ],
90
+ "name": "ErrorComponentNotChainNft",
91
+ "type": "error"
92
+ },
93
+ {
94
+ "inputs": [
95
+ {
96
+ "internalType": "NftId",
97
+ "name": "instanceNftId",
98
+ "type": "uint96"
99
+ },
100
+ {
101
+ "internalType": "address",
102
+ "name": "instance",
103
+ "type": "address"
104
+ }
105
+ ],
106
+ "name": "ErrorComponentNotInstance",
107
+ "type": "error"
108
+ },
109
+ {
110
+ "inputs": [
111
+ {
112
+ "internalType": "address",
113
+ "name": "caller",
114
+ "type": "address"
115
+ }
116
+ ],
117
+ "name": "ErrorComponentNotProductService",
118
+ "type": "error"
119
+ },
120
+ {
121
+ "inputs": [],
122
+ "name": "ErrorComponentProductNftAlreadySet",
123
+ "type": "error"
124
+ },
125
+ {
126
+ "inputs": [
127
+ {
128
+ "internalType": "address",
129
+ "name": "caller",
130
+ "type": "address"
131
+ },
132
+ {
133
+ "internalType": "uint64",
134
+ "name": "requiredRoleIdNum",
135
+ "type": "uint64"
136
+ }
137
+ ],
138
+ "name": "ErrorComponentUnauthorized",
139
+ "type": "error"
140
+ },
141
+ {
142
+ "inputs": [
143
+ {
144
+ "internalType": "address",
145
+ "name": "newWallet",
146
+ "type": "address"
147
+ }
148
+ ],
149
+ "name": "ErrorComponentWalletAddressIsSameAsCurrent",
150
+ "type": "error"
151
+ },
152
+ {
153
+ "inputs": [],
154
+ "name": "ErrorComponentWalletAddressZero",
155
+ "type": "error"
156
+ },
157
+ {
158
+ "inputs": [
159
+ {
160
+ "internalType": "address",
161
+ "name": "oldWallet",
162
+ "type": "address"
163
+ },
164
+ {
165
+ "internalType": "address",
166
+ "name": "newWallet",
167
+ "type": "address"
168
+ },
169
+ {
170
+ "internalType": "uint256",
171
+ "name": "allowance",
172
+ "type": "uint256"
173
+ },
174
+ {
175
+ "internalType": "uint256",
176
+ "name": "balance",
177
+ "type": "uint256"
178
+ }
179
+ ],
180
+ "name": "ErrorComponentWalletAllowanceTooSmall",
181
+ "type": "error"
182
+ },
183
+ {
184
+ "inputs": [
185
+ {
186
+ "internalType": "address",
187
+ "name": "contractAddress",
188
+ "type": "address"
189
+ }
190
+ ],
191
+ "name": "ErrorContractNotRegistered",
192
+ "type": "error"
193
+ },
194
+ {
195
+ "inputs": [],
196
+ "name": "ErrorInitialOwnerZero",
197
+ "type": "error"
198
+ },
199
+ {
200
+ "inputs": [
201
+ {
202
+ "internalType": "address",
203
+ "name": "account",
204
+ "type": "address"
205
+ }
206
+ ],
207
+ "name": "ErrorNotOwner",
208
+ "type": "error"
209
+ },
210
+ {
211
+ "inputs": [
212
+ {
213
+ "internalType": "address",
214
+ "name": "registryAddress",
215
+ "type": "address"
216
+ }
217
+ ],
218
+ "name": "ErrorNotRegistry",
219
+ "type": "error"
220
+ },
221
+ {
222
+ "inputs": [
223
+ {
224
+ "internalType": "address",
225
+ "name": "registryAddress",
226
+ "type": "address"
227
+ }
228
+ ],
229
+ "name": "ErrorRegisterableNotRegistry",
230
+ "type": "error"
231
+ },
232
+ {
233
+ "inputs": [],
234
+ "name": "ErrorRegistryAddressZero",
235
+ "type": "error"
236
+ },
237
+ {
238
+ "inputs": [
239
+ {
240
+ "internalType": "address",
241
+ "name": "registry",
242
+ "type": "address"
243
+ }
244
+ ],
245
+ "name": "ErrorRegistryAlreadyInitialized",
246
+ "type": "error"
247
+ },
248
+ {
249
+ "inputs": [],
250
+ "name": "ErrorRegistryNotInitialized",
251
+ "type": "error"
252
+ },
253
+ {
254
+ "inputs": [],
255
+ "name": "FailedInnerCall",
256
+ "type": "error"
257
+ },
258
+ {
259
+ "inputs": [],
260
+ "name": "InvalidInitialization",
261
+ "type": "error"
262
+ },
263
+ {
264
+ "inputs": [],
265
+ "name": "NotInitializing",
266
+ "type": "error"
267
+ },
268
+ {
269
+ "inputs": [
270
+ {
271
+ "internalType": "address",
272
+ "name": "token",
273
+ "type": "address"
274
+ }
275
+ ],
276
+ "name": "SafeERC20FailedOperation",
277
+ "type": "error"
278
+ },
279
+ {
280
+ "anonymous": false,
281
+ "inputs": [
282
+ {
283
+ "indexed": false,
284
+ "internalType": "address",
285
+ "name": "authority",
286
+ "type": "address"
287
+ }
288
+ ],
289
+ "name": "AuthorityUpdated",
290
+ "type": "event"
291
+ },
292
+ {
293
+ "anonymous": false,
294
+ "inputs": [
295
+ {
296
+ "indexed": false,
297
+ "internalType": "uint64",
298
+ "name": "version",
299
+ "type": "uint64"
300
+ }
301
+ ],
302
+ "name": "Initialized",
303
+ "type": "event"
304
+ },
305
+ {
306
+ "anonymous": false,
307
+ "inputs": [
308
+ {
309
+ "indexed": false,
310
+ "internalType": "address",
311
+ "name": "newWallet",
312
+ "type": "address"
313
+ }
314
+ ],
315
+ "name": "LogComponentWalletAddressChanged",
316
+ "type": "event"
317
+ },
318
+ {
319
+ "anonymous": false,
320
+ "inputs": [
321
+ {
322
+ "indexed": false,
323
+ "internalType": "address",
324
+ "name": "from",
325
+ "type": "address"
326
+ },
327
+ {
328
+ "indexed": false,
329
+ "internalType": "address",
330
+ "name": "to",
331
+ "type": "address"
332
+ },
333
+ {
334
+ "indexed": false,
335
+ "internalType": "uint256",
336
+ "name": "amount",
337
+ "type": "uint256"
338
+ }
339
+ ],
340
+ "name": "LogComponentWalletTokensTransferred",
341
+ "type": "event"
342
+ },
343
+ {
344
+ "inputs": [],
345
+ "name": "CONTRACT_LOCATION_V1",
346
+ "outputs": [
347
+ {
348
+ "internalType": "bytes32",
349
+ "name": "",
350
+ "type": "bytes32"
351
+ }
352
+ ],
353
+ "stateMutability": "view",
354
+ "type": "function"
355
+ },
356
+ {
357
+ "inputs": [],
358
+ "name": "DISTRIBUTION_STORAGE_LOCATION_V1",
359
+ "outputs": [
360
+ {
361
+ "internalType": "bytes32",
362
+ "name": "",
363
+ "type": "bytes32"
364
+ }
365
+ ],
366
+ "stateMutability": "view",
367
+ "type": "function"
368
+ },
369
+ {
370
+ "inputs": [],
371
+ "name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
372
+ "outputs": [
373
+ {
374
+ "internalType": "bytes32",
375
+ "name": "",
376
+ "type": "bytes32"
377
+ }
378
+ ],
379
+ "stateMutability": "view",
380
+ "type": "function"
381
+ },
382
+ {
383
+ "inputs": [],
384
+ "name": "REGISTERABLE_LOCATION_V1",
385
+ "outputs": [
386
+ {
387
+ "internalType": "bytes32",
388
+ "name": "",
389
+ "type": "bytes32"
390
+ }
391
+ ],
392
+ "stateMutability": "view",
393
+ "type": "function"
394
+ },
395
+ {
396
+ "inputs": [],
397
+ "name": "authority",
398
+ "outputs": [
399
+ {
400
+ "internalType": "address",
401
+ "name": "",
402
+ "type": "address"
403
+ }
404
+ ],
405
+ "stateMutability": "view",
406
+ "type": "function"
407
+ },
408
+ {
409
+ "inputs": [
410
+ {
411
+ "internalType": "ReferralId",
412
+ "name": "referralId",
413
+ "type": "bytes8"
414
+ },
415
+ {
416
+ "internalType": "uint256",
417
+ "name": "netPremiumAmount",
418
+ "type": "uint256"
419
+ }
420
+ ],
421
+ "name": "calculateFeeAmount",
422
+ "outputs": [
423
+ {
424
+ "internalType": "uint256",
425
+ "name": "feeAmount",
426
+ "type": "uint256"
427
+ }
428
+ ],
429
+ "stateMutability": "view",
430
+ "type": "function"
431
+ },
432
+ {
433
+ "inputs": [
434
+ {
435
+ "internalType": "ReferralId",
436
+ "name": "referralId",
437
+ "type": "bytes8"
438
+ },
439
+ {
440
+ "internalType": "uint256",
441
+ "name": "netPremiumAmount",
442
+ "type": "uint256"
443
+ }
444
+ ],
445
+ "name": "calculateRenewalFeeAmount",
446
+ "outputs": [
447
+ {
448
+ "internalType": "uint256",
449
+ "name": "feeAmount",
450
+ "type": "uint256"
451
+ }
452
+ ],
453
+ "stateMutability": "view",
454
+ "type": "function"
455
+ },
456
+ {
457
+ "inputs": [],
458
+ "name": "getInitialInfo",
459
+ "outputs": [
460
+ {
461
+ "components": [
462
+ {
463
+ "internalType": "NftId",
464
+ "name": "nftId",
465
+ "type": "uint96"
466
+ },
467
+ {
468
+ "internalType": "NftId",
469
+ "name": "parentNftId",
470
+ "type": "uint96"
471
+ },
472
+ {
473
+ "internalType": "ObjectType",
474
+ "name": "objectType",
475
+ "type": "uint8"
476
+ },
477
+ {
478
+ "internalType": "bool",
479
+ "name": "isInterceptor",
480
+ "type": "bool"
481
+ },
482
+ {
483
+ "internalType": "address",
484
+ "name": "objectAddress",
485
+ "type": "address"
486
+ },
487
+ {
488
+ "internalType": "address",
489
+ "name": "initialOwner",
490
+ "type": "address"
491
+ },
492
+ {
493
+ "internalType": "bytes",
494
+ "name": "data",
495
+ "type": "bytes"
496
+ }
497
+ ],
498
+ "internalType": "struct IRegistry.ObjectInfo",
499
+ "name": "info",
500
+ "type": "tuple"
501
+ }
502
+ ],
503
+ "stateMutability": "view",
504
+ "type": "function"
505
+ },
506
+ {
507
+ "inputs": [],
508
+ "name": "getInitialOwner",
509
+ "outputs": [
510
+ {
511
+ "internalType": "address",
512
+ "name": "",
513
+ "type": "address"
514
+ }
515
+ ],
516
+ "stateMutability": "view",
517
+ "type": "function"
518
+ },
519
+ {
520
+ "inputs": [],
521
+ "name": "getInstance",
522
+ "outputs": [
523
+ {
524
+ "internalType": "contract IInstance",
525
+ "name": "instance",
526
+ "type": "address"
527
+ }
528
+ ],
529
+ "stateMutability": "view",
530
+ "type": "function"
531
+ },
532
+ {
533
+ "inputs": [],
534
+ "name": "getInstanceService",
535
+ "outputs": [
536
+ {
537
+ "internalType": "contract IInstanceService",
538
+ "name": "",
539
+ "type": "address"
540
+ }
541
+ ],
542
+ "stateMutability": "view",
543
+ "type": "function"
544
+ },
545
+ {
546
+ "inputs": [],
547
+ "name": "getName",
548
+ "outputs": [
549
+ {
550
+ "internalType": "string",
551
+ "name": "name",
552
+ "type": "string"
553
+ }
554
+ ],
555
+ "stateMutability": "view",
556
+ "type": "function"
557
+ },
558
+ {
559
+ "inputs": [],
560
+ "name": "getNftId",
561
+ "outputs": [
562
+ {
563
+ "internalType": "NftId",
564
+ "name": "",
565
+ "type": "uint96"
566
+ }
567
+ ],
568
+ "stateMutability": "view",
569
+ "type": "function"
570
+ },
571
+ {
572
+ "inputs": [],
573
+ "name": "getOwner",
574
+ "outputs": [
575
+ {
576
+ "internalType": "address",
577
+ "name": "",
578
+ "type": "address"
579
+ }
580
+ ],
581
+ "stateMutability": "view",
582
+ "type": "function"
583
+ },
584
+ {
585
+ "inputs": [],
586
+ "name": "getProductNftId",
587
+ "outputs": [
588
+ {
589
+ "internalType": "NftId",
590
+ "name": "productNftId",
591
+ "type": "uint96"
592
+ }
593
+ ],
594
+ "stateMutability": "view",
595
+ "type": "function"
596
+ },
597
+ {
598
+ "inputs": [],
599
+ "name": "getProductService",
600
+ "outputs": [
601
+ {
602
+ "internalType": "contract IProductService",
603
+ "name": "",
604
+ "type": "address"
605
+ }
606
+ ],
607
+ "stateMutability": "view",
608
+ "type": "function"
609
+ },
610
+ {
611
+ "inputs": [],
612
+ "name": "getRegistry",
613
+ "outputs": [
614
+ {
615
+ "internalType": "contract IRegistry",
616
+ "name": "",
617
+ "type": "address"
618
+ }
619
+ ],
620
+ "stateMutability": "view",
621
+ "type": "function"
622
+ },
623
+ {
624
+ "inputs": [],
625
+ "name": "getRegistryAddress",
626
+ "outputs": [
627
+ {
628
+ "internalType": "address",
629
+ "name": "",
630
+ "type": "address"
631
+ }
632
+ ],
633
+ "stateMutability": "view",
634
+ "type": "function"
635
+ },
636
+ {
637
+ "inputs": [],
638
+ "name": "getSetupInfo",
639
+ "outputs": [
640
+ {
641
+ "components": [
642
+ {
643
+ "internalType": "NftId",
644
+ "name": "productNftId",
645
+ "type": "uint96"
646
+ },
647
+ {
648
+ "internalType": "contract TokenHandler",
649
+ "name": "tokenHandler",
650
+ "type": "address"
651
+ },
652
+ {
653
+ "components": [
654
+ {
655
+ "internalType": "UFixed",
656
+ "name": "fractionalFee",
657
+ "type": "uint256"
658
+ },
659
+ {
660
+ "internalType": "uint256",
661
+ "name": "fixedFee",
662
+ "type": "uint256"
663
+ }
664
+ ],
665
+ "internalType": "struct Fee",
666
+ "name": "distributionFee",
667
+ "type": "tuple"
668
+ },
669
+ {
670
+ "internalType": "address",
671
+ "name": "wallet",
672
+ "type": "address"
673
+ }
674
+ ],
675
+ "internalType": "struct ISetup.DistributionSetupInfo",
676
+ "name": "setupInfo",
677
+ "type": "tuple"
678
+ }
679
+ ],
680
+ "stateMutability": "view",
681
+ "type": "function"
682
+ },
683
+ {
684
+ "inputs": [],
685
+ "name": "getToken",
686
+ "outputs": [
687
+ {
688
+ "internalType": "contract IERC20Metadata",
689
+ "name": "token",
690
+ "type": "address"
691
+ }
692
+ ],
693
+ "stateMutability": "view",
694
+ "type": "function"
695
+ },
696
+ {
697
+ "inputs": [],
698
+ "name": "getWallet",
699
+ "outputs": [
700
+ {
701
+ "internalType": "address",
702
+ "name": "walletAddress",
703
+ "type": "address"
704
+ }
705
+ ],
706
+ "stateMutability": "view",
707
+ "type": "function"
708
+ },
709
+ {
710
+ "inputs": [
711
+ {
712
+ "internalType": "address",
713
+ "name": "registry",
714
+ "type": "address"
715
+ },
716
+ {
717
+ "internalType": "NftId",
718
+ "name": "instanceNftId",
719
+ "type": "uint96"
720
+ },
721
+ {
722
+ "internalType": "string",
723
+ "name": "name",
724
+ "type": "string"
725
+ },
726
+ {
727
+ "internalType": "address",
728
+ "name": "token",
729
+ "type": "address"
730
+ },
731
+ {
732
+ "internalType": "ObjectType",
733
+ "name": "componentType",
734
+ "type": "uint8"
735
+ },
736
+ {
737
+ "internalType": "bool",
738
+ "name": "isInterceptor",
739
+ "type": "bool"
740
+ },
741
+ {
742
+ "internalType": "address",
743
+ "name": "initialOwner",
744
+ "type": "address"
745
+ },
746
+ {
747
+ "internalType": "bytes",
748
+ "name": "data",
749
+ "type": "bytes"
750
+ }
751
+ ],
752
+ "name": "initializeComponent",
753
+ "outputs": [],
754
+ "stateMutability": "nonpayable",
755
+ "type": "function"
756
+ },
757
+ {
758
+ "inputs": [
759
+ {
760
+ "internalType": "address",
761
+ "name": "registry",
762
+ "type": "address"
763
+ },
764
+ {
765
+ "internalType": "NftId",
766
+ "name": "instanceNftId",
767
+ "type": "uint96"
768
+ },
769
+ {
770
+ "internalType": "string",
771
+ "name": "name",
772
+ "type": "string"
773
+ },
774
+ {
775
+ "internalType": "address",
776
+ "name": "token",
777
+ "type": "address"
778
+ },
779
+ {
780
+ "components": [
781
+ {
782
+ "internalType": "UFixed",
783
+ "name": "fractionalFee",
784
+ "type": "uint256"
785
+ },
786
+ {
787
+ "internalType": "uint256",
788
+ "name": "fixedFee",
789
+ "type": "uint256"
790
+ }
791
+ ],
792
+ "internalType": "struct Fee",
793
+ "name": "distributionFee",
794
+ "type": "tuple"
795
+ },
796
+ {
797
+ "internalType": "address",
798
+ "name": "initialOwner",
799
+ "type": "address"
800
+ },
801
+ {
802
+ "internalType": "bytes",
803
+ "name": "data",
804
+ "type": "bytes"
805
+ }
806
+ ],
807
+ "name": "initializeDistribution",
808
+ "outputs": [],
809
+ "stateMutability": "nonpayable",
810
+ "type": "function"
811
+ },
812
+ {
813
+ "inputs": [],
814
+ "name": "initializeERC165",
815
+ "outputs": [],
816
+ "stateMutability": "nonpayable",
817
+ "type": "function"
818
+ },
819
+ {
820
+ "inputs": [
821
+ {
822
+ "internalType": "address",
823
+ "name": "initialOwner",
824
+ "type": "address"
825
+ },
826
+ {
827
+ "internalType": "address",
828
+ "name": "registryAddress",
829
+ "type": "address"
830
+ }
831
+ ],
832
+ "name": "initializeNftOwnable",
833
+ "outputs": [],
834
+ "stateMutability": "nonpayable",
835
+ "type": "function"
836
+ },
837
+ {
838
+ "inputs": [
839
+ {
840
+ "internalType": "address",
841
+ "name": "initialOwner",
842
+ "type": "address"
843
+ }
844
+ ],
845
+ "name": "initializeOwner",
846
+ "outputs": [],
847
+ "stateMutability": "nonpayable",
848
+ "type": "function"
849
+ },
850
+ {
851
+ "inputs": [
852
+ {
853
+ "internalType": "address",
854
+ "name": "registryAddress",
855
+ "type": "address"
856
+ },
857
+ {
858
+ "internalType": "NftId",
859
+ "name": "parentNftId",
860
+ "type": "uint96"
861
+ },
862
+ {
863
+ "internalType": "ObjectType",
864
+ "name": "objectType",
865
+ "type": "uint8"
866
+ },
867
+ {
868
+ "internalType": "bool",
869
+ "name": "isInterceptor",
870
+ "type": "bool"
871
+ },
872
+ {
873
+ "internalType": "address",
874
+ "name": "initialOwner",
875
+ "type": "address"
876
+ },
877
+ {
878
+ "internalType": "bytes",
879
+ "name": "data",
880
+ "type": "bytes"
881
+ }
882
+ ],
883
+ "name": "initializeRegisterable",
884
+ "outputs": [],
885
+ "stateMutability": "nonpayable",
886
+ "type": "function"
887
+ },
888
+ {
889
+ "inputs": [
890
+ {
891
+ "internalType": "address",
892
+ "name": "registryAddress",
893
+ "type": "address"
894
+ }
895
+ ],
896
+ "name": "initializeRegistryLinked",
897
+ "outputs": [],
898
+ "stateMutability": "nonpayable",
899
+ "type": "function"
900
+ },
901
+ {
902
+ "inputs": [],
903
+ "name": "isConsumingScheduledOp",
904
+ "outputs": [
905
+ {
906
+ "internalType": "bytes4",
907
+ "name": "",
908
+ "type": "bytes4"
909
+ }
910
+ ],
911
+ "stateMutability": "view",
912
+ "type": "function"
913
+ },
914
+ {
915
+ "inputs": [],
916
+ "name": "isNftInterceptor",
917
+ "outputs": [
918
+ {
919
+ "internalType": "bool",
920
+ "name": "isInterceptor",
921
+ "type": "bool"
922
+ }
923
+ ],
924
+ "stateMutability": "view",
925
+ "type": "function"
926
+ },
927
+ {
928
+ "inputs": [],
929
+ "name": "isVerifying",
930
+ "outputs": [
931
+ {
932
+ "internalType": "bool",
933
+ "name": "verifying",
934
+ "type": "bool"
935
+ }
936
+ ],
937
+ "stateMutability": "view",
938
+ "type": "function"
939
+ },
940
+ {
941
+ "inputs": [],
942
+ "name": "linkToRegisteredNftId",
943
+ "outputs": [],
944
+ "stateMutability": "nonpayable",
945
+ "type": "function"
946
+ },
947
+ {
948
+ "inputs": [],
949
+ "name": "lock",
950
+ "outputs": [],
951
+ "stateMutability": "nonpayable",
952
+ "type": "function"
953
+ },
954
+ {
955
+ "inputs": [
956
+ {
957
+ "internalType": "address",
958
+ "name": "from",
959
+ "type": "address"
960
+ },
961
+ {
962
+ "internalType": "address",
963
+ "name": "to",
964
+ "type": "address"
965
+ },
966
+ {
967
+ "internalType": "uint256",
968
+ "name": "tokenId",
969
+ "type": "uint256"
970
+ }
971
+ ],
972
+ "name": "nftTransferFrom",
973
+ "outputs": [],
974
+ "stateMutability": "nonpayable",
975
+ "type": "function"
976
+ },
977
+ {
978
+ "inputs": [
979
+ {
980
+ "internalType": "ReferralId",
981
+ "name": "referralId",
982
+ "type": "bytes8"
983
+ },
984
+ {
985
+ "internalType": "uint256",
986
+ "name": "feeAmount",
987
+ "type": "uint256"
988
+ }
989
+ ],
990
+ "name": "processRenewal",
991
+ "outputs": [],
992
+ "stateMutability": "nonpayable",
993
+ "type": "function"
994
+ },
995
+ {
996
+ "inputs": [
997
+ {
998
+ "internalType": "ReferralId",
999
+ "name": "referralId",
1000
+ "type": "bytes8"
1001
+ },
1002
+ {
1003
+ "internalType": "uint256",
1004
+ "name": "feeAmount",
1005
+ "type": "uint256"
1006
+ }
1007
+ ],
1008
+ "name": "processSale",
1009
+ "outputs": [],
1010
+ "stateMutability": "nonpayable",
1011
+ "type": "function"
1012
+ },
1013
+ {
1014
+ "inputs": [
1015
+ {
1016
+ "internalType": "ReferralId",
1017
+ "name": "referralId",
1018
+ "type": "bytes8"
1019
+ }
1020
+ ],
1021
+ "name": "referralIsValid",
1022
+ "outputs": [
1023
+ {
1024
+ "internalType": "bool",
1025
+ "name": "isValid",
1026
+ "type": "bool"
1027
+ }
1028
+ ],
1029
+ "stateMutability": "view",
1030
+ "type": "function"
1031
+ },
1032
+ {
1033
+ "inputs": [
1034
+ {
1035
+ "internalType": "bytes4",
1036
+ "name": "interfaceId",
1037
+ "type": "bytes4"
1038
+ }
1039
+ ],
1040
+ "name": "registerInterface",
1041
+ "outputs": [],
1042
+ "stateMutability": "nonpayable",
1043
+ "type": "function"
1044
+ },
1045
+ {
1046
+ "inputs": [
1047
+ {
1048
+ "internalType": "address",
1049
+ "name": "newAuthority",
1050
+ "type": "address"
1051
+ }
1052
+ ],
1053
+ "name": "setAuthority",
1054
+ "outputs": [],
1055
+ "stateMutability": "nonpayable",
1056
+ "type": "function"
1057
+ },
1058
+ {
1059
+ "inputs": [
1060
+ {
1061
+ "components": [
1062
+ {
1063
+ "internalType": "UFixed",
1064
+ "name": "fractionalFee",
1065
+ "type": "uint256"
1066
+ },
1067
+ {
1068
+ "internalType": "uint256",
1069
+ "name": "fixedFee",
1070
+ "type": "uint256"
1071
+ }
1072
+ ],
1073
+ "internalType": "struct Fee",
1074
+ "name": "distributionFee",
1075
+ "type": "tuple"
1076
+ }
1077
+ ],
1078
+ "name": "setFees",
1079
+ "outputs": [],
1080
+ "stateMutability": "nonpayable",
1081
+ "type": "function"
1082
+ },
1083
+ {
1084
+ "inputs": [
1085
+ {
1086
+ "internalType": "NftId",
1087
+ "name": "productNftId",
1088
+ "type": "uint96"
1089
+ }
1090
+ ],
1091
+ "name": "setProductNftId",
1092
+ "outputs": [],
1093
+ "stateMutability": "nonpayable",
1094
+ "type": "function"
1095
+ },
1096
+ {
1097
+ "inputs": [
1098
+ {
1099
+ "internalType": "address",
1100
+ "name": "newWallet",
1101
+ "type": "address"
1102
+ }
1103
+ ],
1104
+ "name": "setWallet",
1105
+ "outputs": [],
1106
+ "stateMutability": "nonpayable",
1107
+ "type": "function"
1108
+ },
1109
+ {
1110
+ "inputs": [
1111
+ {
1112
+ "internalType": "bytes4",
1113
+ "name": "interfaceId",
1114
+ "type": "bytes4"
1115
+ }
1116
+ ],
1117
+ "name": "supportsInterface",
1118
+ "outputs": [
1119
+ {
1120
+ "internalType": "bool",
1121
+ "name": "",
1122
+ "type": "bool"
1123
+ }
1124
+ ],
1125
+ "stateMutability": "view",
1126
+ "type": "function"
1127
+ },
1128
+ {
1129
+ "inputs": [],
1130
+ "name": "unlock",
1131
+ "outputs": [],
1132
+ "stateMutability": "nonpayable",
1133
+ "type": "function"
1134
+ }
1135
+ ],
1136
+ "bytecode": "0x",
1137
+ "deployedBytecode": "0x",
1138
+ "linkReferences": {},
1139
+ "deployedLinkReferences": {}
1140
+ }