@etherisc/gif-next 0.0.2-f7eda15-119 → 0.0.2-f831797-539

Sign up to get free protection for your applications and to get access to all the features.
Files changed (340) hide show
  1. package/README.md +73 -1
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
  3. package/artifacts/contracts/components/Component.sol/Component.json +252 -94
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +611 -159
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +1 -1
  7. package/artifacts/contracts/components/IComponent.sol/IComponent.json +104 -72
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +311 -108
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +331 -164
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +108 -144
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +553 -185
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +356 -166
  18. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
  19. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +30 -11
  20. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
  21. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  22. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +722 -422
  23. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  24. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +94 -171
  25. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  26. package/artifacts/contracts/instance/Instance.sol/Instance.json +911 -779
  27. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  28. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +39 -89
  29. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  30. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +119 -216
  31. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  32. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +276 -254
  33. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  34. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +319 -99
  35. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
  36. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +2 -2
  37. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +1 -1
  38. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +118 -169
  39. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  40. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  41. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  42. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +40 -10
  43. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  44. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +36 -11
  45. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  46. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +13 -13
  47. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  48. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
  49. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.json +10 -0
  50. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  51. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  52. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  53. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  54. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  55. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  56. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +968 -0
  57. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  58. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +665 -0
  59. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +1 -1
  60. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +306 -315
  61. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
  62. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +305 -93
  63. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
  64. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +754 -0
  65. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  66. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +637 -0
  67. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  68. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1207 -255
  69. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  70. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +449 -85
  71. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  72. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +556 -0
  73. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
  74. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +155 -240
  75. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
  76. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +409 -0
  77. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  78. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +711 -139
  79. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
  80. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +60 -286
  81. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  82. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +81 -147
  83. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  84. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +22 -169
  85. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
  86. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +185 -391
  87. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
  88. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +311 -127
  89. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  90. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +214 -204
  91. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  92. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +306 -90
  93. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  94. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +142 -221
  95. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
  96. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +302 -90
  97. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  98. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  99. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +15 -2
  100. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  101. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +83 -174
  102. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  103. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  104. package/artifacts/contracts/registry/Registry.sol/Registry.json +28 -15
  105. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +1 -1
  106. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +2 -2
  107. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  108. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +193 -216
  109. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  110. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +300 -94
  111. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
  112. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +11 -11
  113. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  114. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +141 -37
  115. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  116. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  117. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
  118. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  119. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +40 -29
  120. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  121. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +129 -0
  122. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  123. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +21 -29
  124. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  125. package/artifacts/contracts/{experiment/inheritance/IB.sol/IB.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +18 -20
  126. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  127. package/artifacts/contracts/shared/IService.sol/IService.json +22 -169
  128. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  129. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -152
  130. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  131. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +113 -33
  132. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  133. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +248 -0
  134. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  135. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +294 -74
  136. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  137. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +125 -55
  138. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  139. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +84 -0
  140. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  141. package/artifacts/contracts/shared/Service.sol/Service.json +113 -164
  142. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  143. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +2 -2
  144. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  145. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  146. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  147. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -152
  148. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  149. package/artifacts/contracts/test/TestFee.sol/TestFee.json +2 -2
  150. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  151. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +125 -55
  152. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  153. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  154. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  155. package/artifacts/contracts/test/TestService.sol/TestService.json +134 -221
  156. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  157. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  158. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  159. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  160. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +8 -190
  161. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  162. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  163. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  164. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
  165. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  166. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  167. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +100 -0
  168. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  169. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
  170. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  171. package/artifacts/contracts/types/Fee.sol/FeeLib.json +2 -2
  172. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  173. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
  174. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  175. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +17 -4
  176. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  177. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
  178. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  179. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  180. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  181. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  182. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +100 -0
  183. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  184. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +23 -4
  185. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  186. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  187. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  188. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  189. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
  190. package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
  191. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  192. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  193. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  194. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +25 -7
  195. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  196. package/artifacts/contracts/types/UFixed.sol/MathLib.json +2 -2
  197. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  198. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +2 -2
  199. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  200. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  201. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  202. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
  203. package/contracts/components/Component.sol +103 -78
  204. package/contracts/components/Distribution.sol +187 -57
  205. package/contracts/components/IComponent.sol +48 -17
  206. package/contracts/components/IDistributionComponent.sol +39 -15
  207. package/contracts/components/IPoolComponent.sol +84 -31
  208. package/contracts/components/IProductComponent.sol +3 -2
  209. package/contracts/components/Pool.sol +217 -145
  210. package/contracts/components/Product.sol +97 -69
  211. package/contracts/instance/BundleManager.sol +7 -5
  212. package/contracts/instance/IInstance.sol +24 -3
  213. package/contracts/instance/IInstanceService.sol +20 -1
  214. package/contracts/instance/Instance.sol +65 -39
  215. package/contracts/instance/InstanceAccessManager.sol +12 -13
  216. package/contracts/instance/InstanceReader.sol +4 -3
  217. package/contracts/instance/InstanceService.sol +111 -57
  218. package/contracts/instance/InstanceServiceManager.sol +1 -1
  219. package/contracts/instance/base/ComponentService.sol +1 -1
  220. package/contracts/instance/base/KeyValueStore.sol +5 -2
  221. package/contracts/instance/base/Lifecycle.sol +11 -2
  222. package/contracts/instance/module/IAccess.sol +3 -4
  223. package/contracts/instance/module/IBundle.sol +2 -1
  224. package/contracts/instance/module/IComponents.sol +35 -0
  225. package/contracts/instance/module/IDistribution.sol +2 -0
  226. package/contracts/instance/module/IPolicy.sol +30 -3
  227. package/contracts/instance/module/ISetup.sol +7 -20
  228. package/contracts/instance/service/ApplicationService.sol +350 -0
  229. package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
  230. package/contracts/instance/service/BundleService.sol +82 -39
  231. package/contracts/instance/service/BundleServiceManager.sol +1 -1
  232. package/contracts/instance/service/ClaimService.sol +151 -0
  233. package/contracts/instance/service/ClaimServiceManager.sol +35 -0
  234. package/contracts/instance/service/DistributionService.sol +360 -16
  235. package/contracts/instance/service/DistributionServiceManager.sol +1 -1
  236. package/contracts/instance/service/IApplicationService.sol +82 -0
  237. package/contracts/instance/service/IBundleService.sol +30 -12
  238. package/contracts/instance/service/IClaimService.sol +61 -0
  239. package/contracts/instance/service/IDistributionService.sol +86 -0
  240. package/contracts/instance/service/IPolicyService.sol +27 -49
  241. package/contracts/instance/service/IPoolService.sol +17 -2
  242. package/contracts/instance/service/PolicyService.sol +148 -283
  243. package/contracts/instance/service/PolicyServiceManager.sol +2 -2
  244. package/contracts/instance/service/PoolService.sol +75 -22
  245. package/contracts/instance/service/PoolServiceManager.sol +1 -1
  246. package/contracts/instance/service/ProductService.sol +10 -11
  247. package/contracts/instance/service/ProductServiceManager.sol +2 -2
  248. package/contracts/registry/IRegistry.sol +3 -2
  249. package/contracts/registry/IRegistryService.sol +10 -8
  250. package/contracts/registry/Registry.sol +20 -8
  251. package/contracts/registry/RegistryService.sol +69 -48
  252. package/contracts/registry/RegistryServiceManager.sol +13 -13
  253. package/contracts/registry/ReleaseManager.sol +18 -28
  254. package/contracts/registry/TokenRegistry.sol +16 -12
  255. package/contracts/shared/ERC165.sol +14 -12
  256. package/contracts/shared/INftOwnable.sol +11 -10
  257. package/contracts/shared/IPolicyHolder.sol +26 -0
  258. package/contracts/shared/IRegisterable.sol +3 -3
  259. package/contracts/shared/IRegistryLinked.sol +12 -0
  260. package/contracts/shared/IService.sol +2 -0
  261. package/contracts/shared/IVersionable.sol +4 -47
  262. package/contracts/shared/NftOwnable.sol +66 -85
  263. package/contracts/shared/PolicyHolder.sol +81 -0
  264. package/contracts/shared/ProxyManager.sol +100 -25
  265. package/contracts/shared/Registerable.sol +7 -19
  266. package/contracts/shared/RegistryLinked.sol +48 -0
  267. package/contracts/shared/Service.sol +15 -17
  268. package/contracts/shared/TokenHandler.sol +11 -5
  269. package/contracts/shared/Versionable.sol +4 -92
  270. package/contracts/test/TestRegisterable.sol +1 -1
  271. package/contracts/test/TestService.sol +1 -1
  272. package/contracts/types/Blocknumber.sol +1 -0
  273. package/contracts/types/ClaimId.sol +52 -0
  274. package/contracts/types/DistributorType.sol +2 -2
  275. package/contracts/types/Fee.sol +1 -0
  276. package/contracts/types/NftId.sol +8 -0
  277. package/contracts/types/ObjectType.sol +10 -5
  278. package/contracts/types/PayoutId.sol +54 -0
  279. package/contracts/types/Referral.sol +4 -0
  280. package/contracts/types/RoleId.sol +10 -5
  281. package/contracts/types/Seconds.sol +54 -0
  282. package/contracts/types/StateId.sol +1 -0
  283. package/contracts/types/Timestamp.sol +13 -13
  284. package/contracts/types/UFixed.sol +1 -0
  285. package/contracts/types/Version.sol +1 -0
  286. package/package.json +3 -3
  287. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +0 -4
  288. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +0 -66
  289. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +0 -4
  290. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +0 -24
  291. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +0 -4
  292. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +0 -42
  293. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  294. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  295. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  296. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  297. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  298. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  299. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  300. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  301. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  302. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  303. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  304. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  305. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  306. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  307. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  308. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +0 -37
  309. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  310. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  311. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  312. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  313. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  314. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  315. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  316. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  317. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  318. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  319. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  320. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  321. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  322. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  323. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  324. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  325. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +0 -10
  326. package/contracts/experiment/cloning/Cloner.sol +0 -47
  327. package/contracts/experiment/errors/Require.sol +0 -38
  328. package/contracts/experiment/errors/Revert.sol +0 -44
  329. package/contracts/experiment/inheritance/A.sol +0 -53
  330. package/contracts/experiment/inheritance/B.sol +0 -28
  331. package/contracts/experiment/inheritance/C.sol +0 -34
  332. package/contracts/experiment/inheritance/IA.sol +0 -13
  333. package/contracts/experiment/inheritance/IB.sol +0 -10
  334. package/contracts/experiment/inheritance/IC.sol +0 -12
  335. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  336. package/contracts/experiment/statemachine/ISM.sol +0 -25
  337. package/contracts/experiment/statemachine/SM.sol +0 -57
  338. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  339. package/contracts/experiment/types/TypeA.sol +0 -47
  340. package/contracts/experiment/types/TypeB.sol +0 -29
@@ -67,16 +67,11 @@
67
67
  "inputs": [
68
68
  {
69
69
  "internalType": "address",
70
- "name": "registry",
70
+ "name": "caller",
71
71
  "type": "address"
72
- },
73
- {
74
- "internalType": "NftId",
75
- "name": "nftId",
76
- "type": "uint96"
77
72
  }
78
73
  ],
79
- "name": "ErrorAlreadyLinked",
74
+ "name": "ErrorComponentNotChainNft",
80
75
  "type": "error"
81
76
  },
82
77
  {
@@ -85,11 +80,6 @@
85
80
  "internalType": "NftId",
86
81
  "name": "instanceNftId",
87
82
  "type": "uint96"
88
- },
89
- {
90
- "internalType": "address",
91
- "name": "instance",
92
- "type": "address"
93
83
  }
94
84
  ],
95
85
  "name": "ErrorComponentNotInstance",
@@ -112,29 +102,7 @@
112
102
  "type": "error"
113
103
  },
114
104
  {
115
- "inputs": [
116
- {
117
- "internalType": "address",
118
- "name": "caller",
119
- "type": "address"
120
- },
121
- {
122
- "internalType": "uint64",
123
- "name": "requiredRoleIdNum",
124
- "type": "uint64"
125
- }
126
- ],
127
- "name": "ErrorComponentUnauthorized",
128
- "type": "error"
129
- },
130
- {
131
- "inputs": [
132
- {
133
- "internalType": "address",
134
- "name": "newWallet",
135
- "type": "address"
136
- }
137
- ],
105
+ "inputs": [],
138
106
  "name": "ErrorComponentWalletAddressIsSameAsCurrent",
139
107
  "type": "error"
140
108
  },
@@ -172,66 +140,50 @@
172
140
  {
173
141
  "inputs": [
174
142
  {
175
- "internalType": "address",
176
- "name": "contractAddress",
177
- "type": "address"
143
+ "internalType": "NftId",
144
+ "name": "nftId",
145
+ "type": "uint96"
178
146
  }
179
147
  ],
180
- "name": "ErrorContractNotRegistered",
148
+ "name": "ErrorNftOwnableAlreadyLinked",
181
149
  "type": "error"
182
150
  },
183
151
  {
184
152
  "inputs": [
185
153
  {
186
154
  "internalType": "address",
187
- "name": "account",
155
+ "name": "contractAddress",
188
156
  "type": "address"
189
157
  }
190
158
  ],
191
- "name": "ErrorNotOwner",
159
+ "name": "ErrorNftOwnableContractNotRegistered",
192
160
  "type": "error"
193
161
  },
194
162
  {
195
- "inputs": [
196
- {
197
- "internalType": "address",
198
- "name": "registryAddress",
199
- "type": "address"
200
- }
201
- ],
202
- "name": "ErrorNotRegistry",
163
+ "inputs": [],
164
+ "name": "ErrorNftOwnableInitialOwnerZero",
203
165
  "type": "error"
204
166
  },
205
167
  {
206
168
  "inputs": [
207
169
  {
208
170
  "internalType": "address",
209
- "name": "registryAddress",
171
+ "name": "account",
210
172
  "type": "address"
211
173
  }
212
174
  ],
213
- "name": "ErrorRegisterableNotRegistry",
214
- "type": "error"
215
- },
216
- {
217
- "inputs": [],
218
- "name": "ErrorRegistryAddressZero",
175
+ "name": "ErrorNftOwnableNotOwner",
219
176
  "type": "error"
220
177
  },
221
178
  {
222
179
  "inputs": [
223
180
  {
224
181
  "internalType": "address",
225
- "name": "registry",
182
+ "name": "registryAddress",
226
183
  "type": "address"
227
184
  }
228
185
  ],
229
- "name": "ErrorRegistryAlreadyInitialized",
230
- "type": "error"
231
- },
232
- {
233
- "inputs": [],
234
- "name": "ErrorRegistryNotInitialized",
186
+ "name": "ErrorNotRegistry",
235
187
  "type": "error"
236
188
  },
237
189
  {
@@ -289,6 +241,12 @@
289
241
  {
290
242
  "anonymous": false,
291
243
  "inputs": [
244
+ {
245
+ "indexed": false,
246
+ "internalType": "address",
247
+ "name": "oldWallet",
248
+ "type": "address"
249
+ },
292
250
  {
293
251
  "indexed": false,
294
252
  "internalType": "address",
@@ -324,9 +282,54 @@
324
282
  "name": "LogComponentWalletTokensTransferred",
325
283
  "type": "event"
326
284
  },
285
+ {
286
+ "anonymous": false,
287
+ "inputs": [
288
+ {
289
+ "indexed": false,
290
+ "internalType": "address",
291
+ "name": "to",
292
+ "type": "address"
293
+ },
294
+ {
295
+ "indexed": false,
296
+ "internalType": "address",
297
+ "name": "caller",
298
+ "type": "address"
299
+ }
300
+ ],
301
+ "name": "LogDistributorUpdated",
302
+ "type": "event"
303
+ },
304
+ {
305
+ "inputs": [],
306
+ "name": "COMPONENT_LOCATION_V1",
307
+ "outputs": [
308
+ {
309
+ "internalType": "bytes32",
310
+ "name": "",
311
+ "type": "bytes32"
312
+ }
313
+ ],
314
+ "stateMutability": "view",
315
+ "type": "function"
316
+ },
317
+ {
318
+ "inputs": [],
319
+ "name": "DISTRIBUTION_STORAGE_LOCATION_V1",
320
+ "outputs": [
321
+ {
322
+ "internalType": "bytes32",
323
+ "name": "",
324
+ "type": "bytes32"
325
+ }
326
+ ],
327
+ "stateMutability": "view",
328
+ "type": "function"
329
+ },
327
330
  {
328
331
  "inputs": [],
329
- "name": "CONTRACT_LOCATION_V1",
332
+ "name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
330
333
  "outputs": [
331
334
  {
332
335
  "internalType": "bytes32",
@@ -376,7 +379,7 @@
376
379
  "type": "uint256"
377
380
  }
378
381
  ],
379
- "name": "calculateFeeAmount",
382
+ "name": "calculateRenewalFeeAmount",
380
383
  "outputs": [
381
384
  {
382
385
  "internalType": "uint256",
@@ -390,61 +393,115 @@
390
393
  {
391
394
  "inputs": [
392
395
  {
393
- "internalType": "ReferralId",
394
- "name": "referralId",
396
+ "internalType": "address",
397
+ "name": "distributor",
398
+ "type": "address"
399
+ },
400
+ {
401
+ "internalType": "DistributorType",
402
+ "name": "distributorType",
395
403
  "type": "bytes8"
396
404
  },
397
405
  {
398
- "internalType": "uint256",
399
- "name": "netPremiumAmount",
400
- "type": "uint256"
406
+ "internalType": "bytes",
407
+ "name": "data",
408
+ "type": "bytes"
401
409
  }
402
410
  ],
403
- "name": "calculateRenewalFeeAmount",
411
+ "name": "createDistributor",
404
412
  "outputs": [
405
413
  {
406
- "internalType": "uint256",
407
- "name": "feeAmount",
414
+ "internalType": "NftId",
415
+ "name": "distributorNftId",
416
+ "type": "uint96"
417
+ }
418
+ ],
419
+ "stateMutability": "nonpayable",
420
+ "type": "function"
421
+ },
422
+ {
423
+ "inputs": [
424
+ {
425
+ "internalType": "string",
426
+ "name": "name",
427
+ "type": "string"
428
+ },
429
+ {
430
+ "internalType": "UFixed",
431
+ "name": "minDiscountPercentage",
432
+ "type": "uint256"
433
+ },
434
+ {
435
+ "internalType": "UFixed",
436
+ "name": "maxDiscountPercentage",
437
+ "type": "uint256"
438
+ },
439
+ {
440
+ "internalType": "UFixed",
441
+ "name": "commissionPercentage",
408
442
  "type": "uint256"
443
+ },
444
+ {
445
+ "internalType": "uint32",
446
+ "name": "maxReferralCount",
447
+ "type": "uint32"
448
+ },
449
+ {
450
+ "internalType": "uint32",
451
+ "name": "maxReferralLifetime",
452
+ "type": "uint32"
453
+ },
454
+ {
455
+ "internalType": "bool",
456
+ "name": "allowSelfReferrals",
457
+ "type": "bool"
458
+ },
459
+ {
460
+ "internalType": "bool",
461
+ "name": "allowRenewals",
462
+ "type": "bool"
463
+ },
464
+ {
465
+ "internalType": "bytes",
466
+ "name": "data",
467
+ "type": "bytes"
409
468
  }
410
469
  ],
411
- "stateMutability": "view",
470
+ "name": "createDistributorType",
471
+ "outputs": [
472
+ {
473
+ "internalType": "DistributorType",
474
+ "name": "distributorType",
475
+ "type": "bytes8"
476
+ }
477
+ ],
478
+ "stateMutability": "nonpayable",
412
479
  "type": "function"
413
480
  },
414
481
  {
415
482
  "inputs": [],
416
- "name": "getInitialInfo",
483
+ "name": "getComponentInfo",
417
484
  "outputs": [
418
485
  {
419
486
  "components": [
420
487
  {
421
- "internalType": "NftId",
422
- "name": "nftId",
423
- "type": "uint96"
424
- },
425
- {
426
- "internalType": "NftId",
427
- "name": "parentNftId",
428
- "type": "uint96"
429
- },
430
- {
431
- "internalType": "ObjectType",
432
- "name": "objectType",
433
- "type": "uint8"
488
+ "internalType": "string",
489
+ "name": "name",
490
+ "type": "string"
434
491
  },
435
492
  {
436
- "internalType": "bool",
437
- "name": "isInterceptor",
438
- "type": "bool"
493
+ "internalType": "contract IERC20Metadata",
494
+ "name": "token",
495
+ "type": "address"
439
496
  },
440
497
  {
441
- "internalType": "address",
442
- "name": "objectAddress",
498
+ "internalType": "contract TokenHandler",
499
+ "name": "tokenHandler",
443
500
  "type": "address"
444
501
  },
445
502
  {
446
503
  "internalType": "address",
447
- "name": "initialOwner",
504
+ "name": "wallet",
448
505
  "type": "address"
449
506
  },
450
507
  {
@@ -453,7 +510,7 @@
453
510
  "type": "bytes"
454
511
  }
455
512
  ],
456
- "internalType": "struct IRegistry.ObjectInfo",
513
+ "internalType": "struct IComponents.ComponentInfo",
457
514
  "name": "info",
458
515
  "type": "tuple"
459
516
  }
@@ -462,26 +519,24 @@
462
519
  "type": "function"
463
520
  },
464
521
  {
465
- "inputs": [],
466
- "name": "getInitialOwner",
467
- "outputs": [
522
+ "inputs": [
468
523
  {
469
- "internalType": "address",
470
- "name": "",
471
- "type": "address"
524
+ "internalType": "string",
525
+ "name": "referralCode",
526
+ "type": "string"
472
527
  }
473
528
  ],
474
- "stateMutability": "view",
475
- "type": "function"
476
- },
477
- {
478
- "inputs": [],
479
- "name": "getInstance",
529
+ "name": "getDiscountPercentage",
480
530
  "outputs": [
481
531
  {
482
- "internalType": "contract IInstance",
483
- "name": "instance",
484
- "type": "address"
532
+ "internalType": "UFixed",
533
+ "name": "discountPercentage",
534
+ "type": "uint256"
535
+ },
536
+ {
537
+ "internalType": "ReferralStatus",
538
+ "name": "status",
539
+ "type": "uint8"
485
540
  }
486
541
  ],
487
542
  "stateMutability": "view",
@@ -489,37 +544,42 @@
489
544
  },
490
545
  {
491
546
  "inputs": [],
492
- "name": "getInstanceService",
547
+ "name": "getDistributionFee",
493
548
  "outputs": [
494
549
  {
495
- "internalType": "contract IInstanceService",
496
- "name": "",
497
- "type": "address"
550
+ "components": [
551
+ {
552
+ "internalType": "UFixed",
553
+ "name": "fractionalFee",
554
+ "type": "uint256"
555
+ },
556
+ {
557
+ "internalType": "uint256",
558
+ "name": "fixedFee",
559
+ "type": "uint256"
560
+ }
561
+ ],
562
+ "internalType": "struct Fee",
563
+ "name": "distributionFee",
564
+ "type": "tuple"
498
565
  }
499
566
  ],
500
567
  "stateMutability": "view",
501
568
  "type": "function"
502
569
  },
503
570
  {
504
- "inputs": [],
505
- "name": "getName",
506
- "outputs": [
571
+ "inputs": [
507
572
  {
508
- "internalType": "string",
509
- "name": "name",
510
- "type": "string"
573
+ "internalType": "address",
574
+ "name": "distributor",
575
+ "type": "address"
511
576
  }
512
577
  ],
513
- "stateMutability": "view",
514
- "type": "function"
515
- },
516
- {
517
- "inputs": [],
518
- "name": "getNftId",
578
+ "name": "getDistributorNftId",
519
579
  "outputs": [
520
580
  {
521
581
  "internalType": "NftId",
522
- "name": "",
582
+ "name": "distributorNftId",
523
583
  "type": "uint96"
524
584
  }
525
585
  ],
@@ -528,24 +588,87 @@
528
588
  },
529
589
  {
530
590
  "inputs": [],
531
- "name": "getOwner",
591
+ "name": "getInitialInfo",
532
592
  "outputs": [
533
593
  {
534
- "internalType": "address",
535
- "name": "",
536
- "type": "address"
537
- }
538
- ],
594
+ "components": [
595
+ {
596
+ "internalType": "NftId",
597
+ "name": "nftId",
598
+ "type": "uint96"
599
+ },
600
+ {
601
+ "internalType": "NftId",
602
+ "name": "parentNftId",
603
+ "type": "uint96"
604
+ },
605
+ {
606
+ "internalType": "ObjectType",
607
+ "name": "objectType",
608
+ "type": "uint8"
609
+ },
610
+ {
611
+ "internalType": "bool",
612
+ "name": "isInterceptor",
613
+ "type": "bool"
614
+ },
615
+ {
616
+ "internalType": "address",
617
+ "name": "objectAddress",
618
+ "type": "address"
619
+ },
620
+ {
621
+ "internalType": "address",
622
+ "name": "initialOwner",
623
+ "type": "address"
624
+ },
625
+ {
626
+ "internalType": "bytes",
627
+ "name": "data",
628
+ "type": "bytes"
629
+ }
630
+ ],
631
+ "internalType": "struct IRegistry.ObjectInfo",
632
+ "name": "info",
633
+ "type": "tuple"
634
+ }
635
+ ],
539
636
  "stateMutability": "view",
540
637
  "type": "function"
541
638
  },
542
639
  {
543
640
  "inputs": [],
544
- "name": "getProductNftId",
641
+ "name": "getInstance",
642
+ "outputs": [
643
+ {
644
+ "internalType": "contract IInstance",
645
+ "name": "instance",
646
+ "type": "address"
647
+ }
648
+ ],
649
+ "stateMutability": "view",
650
+ "type": "function"
651
+ },
652
+ {
653
+ "inputs": [],
654
+ "name": "getName",
655
+ "outputs": [
656
+ {
657
+ "internalType": "string",
658
+ "name": "name",
659
+ "type": "string"
660
+ }
661
+ ],
662
+ "stateMutability": "view",
663
+ "type": "function"
664
+ },
665
+ {
666
+ "inputs": [],
667
+ "name": "getNftId",
545
668
  "outputs": [
546
669
  {
547
670
  "internalType": "NftId",
548
- "name": "productNftId",
671
+ "name": "",
549
672
  "type": "uint96"
550
673
  }
551
674
  ],
@@ -554,10 +677,10 @@
554
677
  },
555
678
  {
556
679
  "inputs": [],
557
- "name": "getProductService",
680
+ "name": "getOwner",
558
681
  "outputs": [
559
682
  {
560
- "internalType": "contract IProductService",
683
+ "internalType": "address",
561
684
  "name": "",
562
685
  "type": "address"
563
686
  }
@@ -565,6 +688,38 @@
565
688
  "stateMutability": "view",
566
689
  "type": "function"
567
690
  },
691
+ {
692
+ "inputs": [],
693
+ "name": "getProductNftId",
694
+ "outputs": [
695
+ {
696
+ "internalType": "NftId",
697
+ "name": "productNftId",
698
+ "type": "uint96"
699
+ }
700
+ ],
701
+ "stateMutability": "view",
702
+ "type": "function"
703
+ },
704
+ {
705
+ "inputs": [
706
+ {
707
+ "internalType": "string",
708
+ "name": "referralCode",
709
+ "type": "string"
710
+ }
711
+ ],
712
+ "name": "getReferralId",
713
+ "outputs": [
714
+ {
715
+ "internalType": "ReferralId",
716
+ "name": "referralId",
717
+ "type": "bytes8"
718
+ }
719
+ ],
720
+ "stateMutability": "view",
721
+ "type": "function"
722
+ },
568
723
  {
569
724
  "inputs": [],
570
725
  "name": "getRegistry",
@@ -578,6 +733,19 @@
578
733
  "stateMutability": "view",
579
734
  "type": "function"
580
735
  },
736
+ {
737
+ "inputs": [],
738
+ "name": "getRegistryAddress",
739
+ "outputs": [
740
+ {
741
+ "internalType": "address",
742
+ "name": "",
743
+ "type": "address"
744
+ }
745
+ ],
746
+ "stateMutability": "view",
747
+ "type": "function"
748
+ },
581
749
  {
582
750
  "inputs": [],
583
751
  "name": "getSetupInfo",
@@ -608,18 +776,35 @@
608
776
  }
609
777
  ],
610
778
  "internalType": "struct Fee",
611
- "name": "distributionFee",
779
+ "name": "minDistributionOwnerFee",
612
780
  "type": "tuple"
613
781
  },
614
782
  {
615
- "internalType": "bool",
616
- "name": "isIntercepting",
617
- "type": "bool"
783
+ "components": [
784
+ {
785
+ "internalType": "UFixed",
786
+ "name": "fractionalFee",
787
+ "type": "uint256"
788
+ },
789
+ {
790
+ "internalType": "uint256",
791
+ "name": "fixedFee",
792
+ "type": "uint256"
793
+ }
794
+ ],
795
+ "internalType": "struct Fee",
796
+ "name": "distributionFee",
797
+ "type": "tuple"
618
798
  },
619
799
  {
620
800
  "internalType": "address",
621
801
  "name": "wallet",
622
802
  "type": "address"
803
+ },
804
+ {
805
+ "internalType": "uint256",
806
+ "name": "sumDistributionOwnerFees",
807
+ "type": "uint256"
623
808
  }
624
809
  ],
625
810
  "internalType": "struct ISetup.DistributionSetupInfo",
@@ -656,6 +841,202 @@
656
841
  "stateMutability": "view",
657
842
  "type": "function"
658
843
  },
844
+ {
845
+ "inputs": [
846
+ {
847
+ "internalType": "address",
848
+ "name": "registry",
849
+ "type": "address"
850
+ },
851
+ {
852
+ "internalType": "NftId",
853
+ "name": "instanceNftId",
854
+ "type": "uint96"
855
+ },
856
+ {
857
+ "internalType": "string",
858
+ "name": "name",
859
+ "type": "string"
860
+ },
861
+ {
862
+ "internalType": "address",
863
+ "name": "token",
864
+ "type": "address"
865
+ },
866
+ {
867
+ "internalType": "ObjectType",
868
+ "name": "componentType",
869
+ "type": "uint8"
870
+ },
871
+ {
872
+ "internalType": "bool",
873
+ "name": "isInterceptor",
874
+ "type": "bool"
875
+ },
876
+ {
877
+ "internalType": "address",
878
+ "name": "initialOwner",
879
+ "type": "address"
880
+ },
881
+ {
882
+ "internalType": "bytes",
883
+ "name": "registryData",
884
+ "type": "bytes"
885
+ }
886
+ ],
887
+ "name": "initializeComponent",
888
+ "outputs": [],
889
+ "stateMutability": "nonpayable",
890
+ "type": "function"
891
+ },
892
+ {
893
+ "inputs": [
894
+ {
895
+ "internalType": "address",
896
+ "name": "registry",
897
+ "type": "address"
898
+ },
899
+ {
900
+ "internalType": "NftId",
901
+ "name": "instanceNftId",
902
+ "type": "uint96"
903
+ },
904
+ {
905
+ "internalType": "string",
906
+ "name": "name",
907
+ "type": "string"
908
+ },
909
+ {
910
+ "internalType": "address",
911
+ "name": "token",
912
+ "type": "address"
913
+ },
914
+ {
915
+ "components": [
916
+ {
917
+ "internalType": "UFixed",
918
+ "name": "fractionalFee",
919
+ "type": "uint256"
920
+ },
921
+ {
922
+ "internalType": "uint256",
923
+ "name": "fixedFee",
924
+ "type": "uint256"
925
+ }
926
+ ],
927
+ "internalType": "struct Fee",
928
+ "name": "minDistributionOwnerFee",
929
+ "type": "tuple"
930
+ },
931
+ {
932
+ "components": [
933
+ {
934
+ "internalType": "UFixed",
935
+ "name": "fractionalFee",
936
+ "type": "uint256"
937
+ },
938
+ {
939
+ "internalType": "uint256",
940
+ "name": "fixedFee",
941
+ "type": "uint256"
942
+ }
943
+ ],
944
+ "internalType": "struct Fee",
945
+ "name": "distributionFee",
946
+ "type": "tuple"
947
+ },
948
+ {
949
+ "internalType": "address",
950
+ "name": "initialOwner",
951
+ "type": "address"
952
+ },
953
+ {
954
+ "internalType": "bytes",
955
+ "name": "registryData",
956
+ "type": "bytes"
957
+ }
958
+ ],
959
+ "name": "initializeDistribution",
960
+ "outputs": [],
961
+ "stateMutability": "nonpayable",
962
+ "type": "function"
963
+ },
964
+ {
965
+ "inputs": [],
966
+ "name": "initializeERC165",
967
+ "outputs": [],
968
+ "stateMutability": "nonpayable",
969
+ "type": "function"
970
+ },
971
+ {
972
+ "inputs": [
973
+ {
974
+ "internalType": "address",
975
+ "name": "initialOwner",
976
+ "type": "address"
977
+ },
978
+ {
979
+ "internalType": "address",
980
+ "name": "registryAddress",
981
+ "type": "address"
982
+ }
983
+ ],
984
+ "name": "initializeNftOwnable",
985
+ "outputs": [],
986
+ "stateMutability": "nonpayable",
987
+ "type": "function"
988
+ },
989
+ {
990
+ "inputs": [
991
+ {
992
+ "internalType": "address",
993
+ "name": "registryAddress",
994
+ "type": "address"
995
+ },
996
+ {
997
+ "internalType": "NftId",
998
+ "name": "parentNftId",
999
+ "type": "uint96"
1000
+ },
1001
+ {
1002
+ "internalType": "ObjectType",
1003
+ "name": "objectType",
1004
+ "type": "uint8"
1005
+ },
1006
+ {
1007
+ "internalType": "bool",
1008
+ "name": "isInterceptor",
1009
+ "type": "bool"
1010
+ },
1011
+ {
1012
+ "internalType": "address",
1013
+ "name": "initialOwner",
1014
+ "type": "address"
1015
+ },
1016
+ {
1017
+ "internalType": "bytes",
1018
+ "name": "registryData",
1019
+ "type": "bytes"
1020
+ }
1021
+ ],
1022
+ "name": "initializeRegisterable",
1023
+ "outputs": [],
1024
+ "stateMutability": "nonpayable",
1025
+ "type": "function"
1026
+ },
1027
+ {
1028
+ "inputs": [
1029
+ {
1030
+ "internalType": "address",
1031
+ "name": "registryAddress",
1032
+ "type": "address"
1033
+ }
1034
+ ],
1035
+ "name": "initializeRegistryLinked",
1036
+ "outputs": [],
1037
+ "stateMutability": "nonpayable",
1038
+ "type": "function"
1039
+ },
659
1040
  {
660
1041
  "inputs": [],
661
1042
  "name": "isConsumingScheduledOp",
@@ -669,6 +1050,38 @@
669
1050
  "stateMutability": "view",
670
1051
  "type": "function"
671
1052
  },
1053
+ {
1054
+ "inputs": [
1055
+ {
1056
+ "internalType": "address",
1057
+ "name": "candidate",
1058
+ "type": "address"
1059
+ }
1060
+ ],
1061
+ "name": "isDistributor",
1062
+ "outputs": [
1063
+ {
1064
+ "internalType": "bool",
1065
+ "name": "",
1066
+ "type": "bool"
1067
+ }
1068
+ ],
1069
+ "stateMutability": "view",
1070
+ "type": "function"
1071
+ },
1072
+ {
1073
+ "inputs": [],
1074
+ "name": "isNftInterceptor",
1075
+ "outputs": [
1076
+ {
1077
+ "internalType": "bool",
1078
+ "name": "isInterceptor",
1079
+ "type": "bool"
1080
+ }
1081
+ ],
1082
+ "stateMutability": "view",
1083
+ "type": "function"
1084
+ },
672
1085
  {
673
1086
  "inputs": [],
674
1087
  "name": "isVerifying",
@@ -699,17 +1112,22 @@
699
1112
  {
700
1113
  "inputs": [
701
1114
  {
702
- "internalType": "ReferralId",
703
- "name": "referralId",
704
- "type": "bytes8"
1115
+ "internalType": "address",
1116
+ "name": "from",
1117
+ "type": "address"
1118
+ },
1119
+ {
1120
+ "internalType": "address",
1121
+ "name": "to",
1122
+ "type": "address"
705
1123
  },
706
1124
  {
707
1125
  "internalType": "uint256",
708
- "name": "feeAmount",
1126
+ "name": "tokenId",
709
1127
  "type": "uint256"
710
1128
  }
711
1129
  ],
712
- "name": "processRenewal",
1130
+ "name": "nftTransferFrom",
713
1131
  "outputs": [],
714
1132
  "stateMutability": "nonpayable",
715
1133
  "type": "function"
@@ -727,7 +1145,7 @@
727
1145
  "type": "uint256"
728
1146
  }
729
1147
  ],
730
- "name": "processSale",
1148
+ "name": "processRenewal",
731
1149
  "outputs": [],
732
1150
  "stateMutability": "nonpayable",
733
1151
  "type": "function"
@@ -735,20 +1153,14 @@
735
1153
  {
736
1154
  "inputs": [
737
1155
  {
738
- "internalType": "ReferralId",
739
- "name": "referralId",
740
- "type": "bytes8"
741
- }
742
- ],
743
- "name": "referralIsValid",
744
- "outputs": [
745
- {
746
- "internalType": "bool",
747
- "name": "isValid",
748
- "type": "bool"
1156
+ "internalType": "bytes4",
1157
+ "name": "interfaceId",
1158
+ "type": "bytes4"
749
1159
  }
750
1160
  ],
751
- "stateMutability": "view",
1161
+ "name": "registerInterface",
1162
+ "outputs": [],
1163
+ "stateMutability": "nonpayable",
752
1164
  "type": "function"
753
1165
  },
754
1166
  {
@@ -766,6 +1178,23 @@
766
1178
  },
767
1179
  {
768
1180
  "inputs": [
1181
+ {
1182
+ "components": [
1183
+ {
1184
+ "internalType": "UFixed",
1185
+ "name": "fractionalFee",
1186
+ "type": "uint256"
1187
+ },
1188
+ {
1189
+ "internalType": "uint256",
1190
+ "name": "fixedFee",
1191
+ "type": "uint256"
1192
+ }
1193
+ ],
1194
+ "internalType": "struct Fee",
1195
+ "name": "minDistributionOwnerFee",
1196
+ "type": "tuple"
1197
+ },
769
1198
  {
770
1199
  "components": [
771
1200
  {
@@ -840,6 +1269,29 @@
840
1269
  "outputs": [],
841
1270
  "stateMutability": "nonpayable",
842
1271
  "type": "function"
1272
+ },
1273
+ {
1274
+ "inputs": [
1275
+ {
1276
+ "internalType": "NftId",
1277
+ "name": "distributorNftId",
1278
+ "type": "uint96"
1279
+ },
1280
+ {
1281
+ "internalType": "DistributorType",
1282
+ "name": "distributorType",
1283
+ "type": "bytes8"
1284
+ },
1285
+ {
1286
+ "internalType": "bytes",
1287
+ "name": "data",
1288
+ "type": "bytes"
1289
+ }
1290
+ ],
1291
+ "name": "updateDistributorType",
1292
+ "outputs": [],
1293
+ "stateMutability": "nonpayable",
1294
+ "type": "function"
843
1295
  }
844
1296
  ],
845
1297
  "bytecode": "0x",