@etherisc/gif-next 0.0.2-f2b0fa2-473 → 0.0.2-f30e0eb-805

Sign up to get free protection for your applications and to get access to all the features.
Files changed (379) hide show
  1. package/README.md +140 -2
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  3. package/artifacts/contracts/components/Component.sol/Component.json +832 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +938 -229
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/{instance/base/ComponentServiceBase.sol/ComponentServiceBase.json → components/IComponent.sol/IComponent.json} +192 -168
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +743 -26
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +755 -50
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +582 -9
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +818 -236
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +627 -224
  18. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  19. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  20. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  21. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +778 -0
  22. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  23. package/artifacts/contracts/instance/{AccessManagedSimple.sol/AccessManagedSimple.json → Cloneable.sol/Cloneable.json} +91 -2
  24. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  25. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +2185 -189
  26. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  27. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +299 -153
  28. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  29. package/artifacts/contracts/instance/Instance.sol/Instance.json +993 -1183
  30. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  31. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +571 -177
  32. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  33. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +232 -210
  34. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  35. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +520 -190
  36. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  37. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +352 -75
  38. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  39. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +256 -0
  40. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  41. package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → instance/base/ComponentService.sol/ComponentService.json} +236 -126
  42. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  43. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  44. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  45. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +40 -10
  46. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  47. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +36 -11
  48. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  49. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +69 -43
  50. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  51. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
  52. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.json +10 -0
  53. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  54. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  55. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  56. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  57. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  58. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  59. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +968 -0
  60. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  61. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +665 -0
  62. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  63. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1093 -0
  64. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  65. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +661 -0
  66. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
  67. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +754 -0
  68. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  69. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +637 -0
  70. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  71. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1732 -0
  72. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  73. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +805 -0
  74. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  75. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +556 -0
  76. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  77. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +630 -0
  78. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
  79. package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IClaimService.sol/IClaimService.json} +150 -207
  80. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  81. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +727 -160
  82. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  83. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +540 -0
  84. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  85. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +84 -217
  86. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  87. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +47 -414
  88. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  89. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1021 -0
  90. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  91. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +689 -0
  92. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  93. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +824 -0
  94. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  95. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +657 -0
  96. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  97. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +777 -0
  98. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  99. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +649 -0
  100. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  101. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +15 -2
  102. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  103. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +373 -61
  104. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  105. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +234 -216
  106. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  107. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +18 -0
  108. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  109. package/artifacts/contracts/registry/Registry.sol/Registry.json +333 -188
  110. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  111. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  112. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  113. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +229 -313
  114. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  115. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +304 -138
  116. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  117. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
  118. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  119. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +498 -0
  120. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  121. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  122. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
  123. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  124. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +40 -29
  125. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  126. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +129 -0
  127. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  128. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +21 -34
  129. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  130. package/artifacts/contracts/{experiment/inheritance/IB.sol/IB.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +18 -20
  131. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  132. package/artifacts/contracts/shared/IService.sol/IService.json +31 -183
  133. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  134. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -152
  135. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  136. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +120 -27
  137. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  138. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +248 -0
  139. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  140. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +294 -61
  141. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  142. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +129 -51
  143. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  144. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +84 -0
  145. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  146. package/artifacts/contracts/shared/Service.sol/Service.json +127 -170
  147. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  148. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +2 -2
  149. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  150. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  151. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  152. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -152
  153. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  154. package/artifacts/contracts/test/TestFee.sol/TestFee.json +2 -2
  155. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  156. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +129 -51
  157. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  158. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +6 -6
  159. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  160. package/artifacts/contracts/test/TestService.sol/TestService.json +148 -227
  161. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  162. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  163. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  164. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  165. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +8 -190
  166. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  167. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  168. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  169. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
  170. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  171. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  172. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +100 -0
  173. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  174. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
  175. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  176. package/artifacts/contracts/types/Fee.sol/FeeLib.json +2 -2
  177. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  178. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
  179. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  180. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +17 -4
  181. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  182. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  183. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  184. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  185. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  186. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  187. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +100 -0
  188. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  189. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +23 -4
  190. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  191. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  192. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  193. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  194. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
  195. package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
  196. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  197. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  198. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  199. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +25 -7
  200. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  201. package/artifacts/contracts/types/UFixed.sol/MathLib.json +2 -2
  202. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  203. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +2 -2
  204. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  205. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  206. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  207. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  208. package/contracts/components/Component.sol +251 -0
  209. package/contracts/components/Distribution.sol +200 -86
  210. package/contracts/components/IComponent.sol +74 -0
  211. package/contracts/components/IDistributionComponent.sol +44 -16
  212. package/contracts/components/IPoolComponent.sol +88 -37
  213. package/contracts/components/IProductComponent.sol +10 -5
  214. package/contracts/components/Pool.sol +217 -177
  215. package/contracts/components/Product.sol +130 -134
  216. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +13 -0
  217. package/contracts/instance/BundleManager.sol +127 -0
  218. package/contracts/instance/Cloneable.sol +51 -0
  219. package/contracts/instance/IInstance.sol +81 -11
  220. package/contracts/instance/IInstanceService.sol +56 -1
  221. package/contracts/instance/Instance.sol +156 -265
  222. package/contracts/instance/InstanceAccessManager.sol +410 -176
  223. package/contracts/instance/InstanceReader.sol +39 -29
  224. package/contracts/instance/InstanceService.sol +448 -55
  225. package/contracts/instance/InstanceServiceManager.sol +11 -13
  226. package/contracts/instance/ObjectManager.sol +82 -0
  227. package/contracts/instance/base/ComponentService.sol +134 -0
  228. package/contracts/instance/base/KeyValueStore.sol +5 -2
  229. package/contracts/instance/base/Lifecycle.sol +11 -2
  230. package/contracts/instance/module/IAccess.sol +36 -20
  231. package/contracts/instance/module/IBundle.sol +2 -0
  232. package/contracts/instance/module/IComponents.sol +35 -0
  233. package/contracts/instance/module/IDistribution.sol +2 -0
  234. package/contracts/instance/module/IPolicy.sol +30 -3
  235. package/contracts/instance/module/ISetup.sol +9 -19
  236. package/contracts/instance/service/ApplicationService.sol +350 -0
  237. package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
  238. package/contracts/instance/service/BundleService.sol +336 -0
  239. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  240. package/contracts/instance/service/ClaimService.sol +151 -0
  241. package/contracts/instance/service/ClaimServiceManager.sol +35 -0
  242. package/contracts/instance/service/DistributionService.sol +467 -0
  243. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  244. package/contracts/instance/service/IApplicationService.sol +82 -0
  245. package/contracts/instance/service/IBundleService.sol +62 -0
  246. package/contracts/instance/service/IClaimService.sol +61 -0
  247. package/contracts/instance/service/IDistributionService.sol +86 -0
  248. package/contracts/instance/service/IPolicyService.sol +72 -0
  249. package/contracts/instance/service/IPoolService.sol +21 -23
  250. package/contracts/instance/service/IProductService.sol +6 -73
  251. package/contracts/instance/service/PolicyService.sol +403 -0
  252. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  253. package/contracts/instance/service/PoolService.sol +220 -0
  254. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  255. package/contracts/instance/service/ProductService.sol +241 -0
  256. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  257. package/contracts/registry/ChainNft.sol +9 -1
  258. package/contracts/registry/IRegistry.sol +52 -8
  259. package/contracts/registry/IRegistryService.sol +46 -14
  260. package/contracts/registry/ITransferInterceptor.sol +1 -0
  261. package/contracts/registry/Registry.sol +270 -226
  262. package/contracts/registry/RegistryAccessManager.sol +216 -0
  263. package/contracts/registry/RegistryService.sol +110 -266
  264. package/contracts/registry/RegistryServiceManager.sol +24 -26
  265. package/contracts/registry/ReleaseManager.sol +322 -0
  266. package/contracts/registry/TokenRegistry.sol +116 -0
  267. package/contracts/shared/ERC165.sol +14 -8
  268. package/contracts/shared/INftOwnable.sol +11 -10
  269. package/contracts/shared/IPolicyHolder.sol +26 -0
  270. package/contracts/shared/IRegisterable.sol +4 -6
  271. package/contracts/shared/IRegistryLinked.sol +12 -0
  272. package/contracts/shared/IService.sol +4 -1
  273. package/contracts/shared/IVersionable.sol +4 -47
  274. package/contracts/shared/NftOwnable.sol +67 -83
  275. package/contracts/shared/PolicyHolder.sol +81 -0
  276. package/contracts/shared/ProxyManager.sol +100 -25
  277. package/contracts/shared/Registerable.sol +16 -31
  278. package/contracts/shared/RegistryLinked.sol +48 -0
  279. package/contracts/shared/Service.sol +26 -22
  280. package/contracts/shared/TokenHandler.sol +11 -5
  281. package/contracts/shared/Versionable.sol +4 -92
  282. package/contracts/test/TestRegisterable.sol +1 -1
  283. package/contracts/test/TestService.sol +4 -3
  284. package/contracts/types/Blocknumber.sol +1 -0
  285. package/contracts/types/ClaimId.sol +52 -0
  286. package/contracts/types/DistributorType.sol +2 -2
  287. package/contracts/types/Fee.sol +1 -0
  288. package/contracts/types/NftId.sol +8 -0
  289. package/contracts/types/NftIdSet.sol +26 -24
  290. package/contracts/types/ObjectType.sol +10 -5
  291. package/contracts/types/PayoutId.sol +54 -0
  292. package/contracts/types/Referral.sol +4 -0
  293. package/contracts/types/RoleId.sol +26 -11
  294. package/contracts/types/Seconds.sol +54 -0
  295. package/contracts/types/StateId.sol +5 -0
  296. package/contracts/types/Timestamp.sol +13 -13
  297. package/contracts/types/UFixed.sol +1 -0
  298. package/contracts/types/Version.sol +5 -1
  299. package/package.json +3 -3
  300. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  301. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -314
  302. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  303. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -267
  304. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +0 -4
  305. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +0 -66
  306. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +0 -4
  307. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +0 -24
  308. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +0 -4
  309. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +0 -42
  310. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  311. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  312. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  313. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  314. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  315. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  316. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  317. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  318. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  319. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  320. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  321. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  322. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  323. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  324. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  325. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +0 -37
  326. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  327. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  328. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  329. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  330. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  331. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  332. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  333. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  334. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  335. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  336. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  337. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  338. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  339. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  340. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  341. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  342. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +0 -10
  343. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
  344. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
  345. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1119
  346. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
  347. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
  348. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  349. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  350. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
  351. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  352. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -827
  353. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  354. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
  355. package/contracts/components/BaseComponent.sol +0 -86
  356. package/contracts/components/IBaseComponent.sol +0 -24
  357. package/contracts/experiment/cloning/Cloner.sol +0 -47
  358. package/contracts/experiment/errors/Require.sol +0 -38
  359. package/contracts/experiment/errors/Revert.sol +0 -44
  360. package/contracts/experiment/inheritance/A.sol +0 -53
  361. package/contracts/experiment/inheritance/B.sol +0 -28
  362. package/contracts/experiment/inheritance/C.sol +0 -34
  363. package/contracts/experiment/inheritance/IA.sol +0 -13
  364. package/contracts/experiment/inheritance/IB.sol +0 -10
  365. package/contracts/experiment/inheritance/IC.sol +0 -12
  366. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  367. package/contracts/experiment/statemachine/ISM.sol +0 -25
  368. package/contracts/experiment/statemachine/SM.sol +0 -57
  369. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  370. package/contracts/experiment/types/TypeA.sol +0 -47
  371. package/contracts/experiment/types/TypeB.sol +0 -29
  372. package/contracts/instance/AccessManagedSimple.sol +0 -114
  373. package/contracts/instance/AccessManagerSimple.sol +0 -682
  374. package/contracts/instance/IAccessManagerSimple.sol +0 -391
  375. package/contracts/instance/base/ComponentServiceBase.sol +0 -49
  376. package/contracts/instance/base/IInstanceBase.sol +0 -23
  377. package/contracts/instance/service/ComponentOwnerService.sol +0 -317
  378. package/contracts/instance/service/IComponentOwnerService.sol +0 -20
  379. package/contracts/shared/RegisterableUpgradable.sol +0 -16
@@ -7,134 +7,188 @@
7
7
  "inputs": [
8
8
  {
9
9
  "internalType": "address",
10
- "name": "registry",
10
+ "name": "authority",
11
11
  "type": "address"
12
- },
12
+ }
13
+ ],
14
+ "name": "AccessManagedInvalidAuthority",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
13
19
  {
14
- "internalType": "NftId",
15
- "name": "instanceNftId",
16
- "type": "uint96"
20
+ "internalType": "address",
21
+ "name": "caller",
22
+ "type": "address"
17
23
  },
18
24
  {
19
- "internalType": "NftId",
20
- "name": "productNftId",
21
- "type": "uint96"
22
- },
25
+ "internalType": "uint32",
26
+ "name": "delay",
27
+ "type": "uint32"
28
+ }
29
+ ],
30
+ "name": "AccessManagedRequiredDelay",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
23
35
  {
24
36
  "internalType": "address",
25
- "name": "token",
37
+ "name": "caller",
26
38
  "type": "address"
27
- },
28
- {
29
- "internalType": "bool",
30
- "name": "verifying",
31
- "type": "bool"
32
- },
39
+ }
40
+ ],
41
+ "name": "AccessManagedUnauthorized",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
33
46
  {
34
- "components": [
35
- {
36
- "internalType": "UFixed",
37
- "name": "fractionalFee",
38
- "type": "uint256"
39
- },
40
- {
41
- "internalType": "uint256",
42
- "name": "fixedFee",
43
- "type": "uint256"
44
- }
45
- ],
46
- "internalType": "struct Fee",
47
- "name": "distributionFee",
48
- "type": "tuple"
49
- },
47
+ "internalType": "address",
48
+ "name": "target",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "name": "AddressEmptyCode",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
50
57
  {
51
58
  "internalType": "address",
52
- "name": "initialOwner",
59
+ "name": "account",
53
60
  "type": "address"
54
61
  }
55
62
  ],
56
- "stateMutability": "nonpayable",
57
- "type": "constructor"
63
+ "name": "AddressInsufficientBalance",
64
+ "type": "error"
58
65
  },
59
66
  {
60
67
  "inputs": [
61
68
  {
62
69
  "internalType": "address",
63
- "name": "registry",
70
+ "name": "caller",
64
71
  "type": "address"
65
- },
72
+ }
73
+ ],
74
+ "name": "ErrorComponentNotChainNft",
75
+ "type": "error"
76
+ },
77
+ {
78
+ "inputs": [
66
79
  {
67
80
  "internalType": "NftId",
68
- "name": "nftId",
81
+ "name": "instanceNftId",
69
82
  "type": "uint96"
70
83
  }
71
84
  ],
72
- "name": "ErrorAlreadyLinked",
85
+ "name": "ErrorComponentNotInstance",
73
86
  "type": "error"
74
87
  },
75
88
  {
76
89
  "inputs": [
77
90
  {
78
91
  "internalType": "address",
79
- "name": "contractAddress",
92
+ "name": "caller",
80
93
  "type": "address"
81
94
  }
82
95
  ],
83
- "name": "ErrorContractNotRegistered",
96
+ "name": "ErrorComponentNotProductService",
97
+ "type": "error"
98
+ },
99
+ {
100
+ "inputs": [],
101
+ "name": "ErrorComponentProductNftAlreadySet",
102
+ "type": "error"
103
+ },
104
+ {
105
+ "inputs": [],
106
+ "name": "ErrorComponentWalletAddressIsSameAsCurrent",
107
+ "type": "error"
108
+ },
109
+ {
110
+ "inputs": [],
111
+ "name": "ErrorComponentWalletAddressZero",
84
112
  "type": "error"
85
113
  },
86
114
  {
87
115
  "inputs": [
88
116
  {
89
117
  "internalType": "address",
90
- "name": "account",
118
+ "name": "oldWallet",
91
119
  "type": "address"
120
+ },
121
+ {
122
+ "internalType": "address",
123
+ "name": "newWallet",
124
+ "type": "address"
125
+ },
126
+ {
127
+ "internalType": "uint256",
128
+ "name": "allowance",
129
+ "type": "uint256"
130
+ },
131
+ {
132
+ "internalType": "uint256",
133
+ "name": "balance",
134
+ "type": "uint256"
92
135
  }
93
136
  ],
94
- "name": "ErrorNotOwner",
137
+ "name": "ErrorComponentWalletAllowanceTooSmall",
95
138
  "type": "error"
96
139
  },
97
140
  {
98
141
  "inputs": [
99
142
  {
100
- "internalType": "address",
101
- "name": "registryAddress",
102
- "type": "address"
143
+ "internalType": "NftId",
144
+ "name": "nftId",
145
+ "type": "uint96"
103
146
  }
104
147
  ],
105
- "name": "ErrorNotRegistry",
148
+ "name": "ErrorNftOwnableAlreadyLinked",
106
149
  "type": "error"
107
150
  },
108
151
  {
109
152
  "inputs": [
110
153
  {
111
154
  "internalType": "address",
112
- "name": "registryAddress",
155
+ "name": "contractAddress",
113
156
  "type": "address"
114
157
  }
115
158
  ],
116
- "name": "ErrorRegisterableNotRegistry",
159
+ "name": "ErrorNftOwnableContractNotRegistered",
117
160
  "type": "error"
118
161
  },
119
162
  {
120
163
  "inputs": [],
121
- "name": "ErrorRegistryAddressZero",
164
+ "name": "ErrorNftOwnableInitialOwnerZero",
122
165
  "type": "error"
123
166
  },
124
167
  {
125
168
  "inputs": [
126
169
  {
127
170
  "internalType": "address",
128
- "name": "registry",
171
+ "name": "account",
172
+ "type": "address"
173
+ }
174
+ ],
175
+ "name": "ErrorNftOwnableNotOwner",
176
+ "type": "error"
177
+ },
178
+ {
179
+ "inputs": [
180
+ {
181
+ "internalType": "address",
182
+ "name": "registryAddress",
129
183
  "type": "address"
130
184
  }
131
185
  ],
132
- "name": "ErrorRegistryAlreadyInitialized",
186
+ "name": "ErrorNotRegistry",
133
187
  "type": "error"
134
188
  },
135
189
  {
136
190
  "inputs": [],
137
- "name": "ErrorRegistryNotInitialized",
191
+ "name": "FailedInnerCall",
138
192
  "type": "error"
139
193
  },
140
194
  {
@@ -147,6 +201,30 @@
147
201
  "name": "NotInitializing",
148
202
  "type": "error"
149
203
  },
204
+ {
205
+ "inputs": [
206
+ {
207
+ "internalType": "address",
208
+ "name": "token",
209
+ "type": "address"
210
+ }
211
+ ],
212
+ "name": "SafeERC20FailedOperation",
213
+ "type": "error"
214
+ },
215
+ {
216
+ "anonymous": false,
217
+ "inputs": [
218
+ {
219
+ "indexed": false,
220
+ "internalType": "address",
221
+ "name": "authority",
222
+ "type": "address"
223
+ }
224
+ ],
225
+ "name": "AuthorityUpdated",
226
+ "type": "event"
227
+ },
150
228
  {
151
229
  "anonymous": false,
152
230
  "inputs": [
@@ -160,9 +238,72 @@
160
238
  "name": "Initialized",
161
239
  "type": "event"
162
240
  },
241
+ {
242
+ "anonymous": false,
243
+ "inputs": [
244
+ {
245
+ "indexed": false,
246
+ "internalType": "address",
247
+ "name": "oldWallet",
248
+ "type": "address"
249
+ },
250
+ {
251
+ "indexed": false,
252
+ "internalType": "address",
253
+ "name": "newWallet",
254
+ "type": "address"
255
+ }
256
+ ],
257
+ "name": "LogComponentWalletAddressChanged",
258
+ "type": "event"
259
+ },
260
+ {
261
+ "anonymous": false,
262
+ "inputs": [
263
+ {
264
+ "indexed": false,
265
+ "internalType": "address",
266
+ "name": "from",
267
+ "type": "address"
268
+ },
269
+ {
270
+ "indexed": false,
271
+ "internalType": "address",
272
+ "name": "to",
273
+ "type": "address"
274
+ },
275
+ {
276
+ "indexed": false,
277
+ "internalType": "uint256",
278
+ "name": "amount",
279
+ "type": "uint256"
280
+ }
281
+ ],
282
+ "name": "LogComponentWalletTokensTransferred",
283
+ "type": "event"
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
+ },
163
304
  {
164
305
  "inputs": [],
165
- "name": "REGISTERABLE_LOCATION_V1",
306
+ "name": "COMPONENT_LOCATION_V1",
166
307
  "outputs": [
167
308
  {
168
309
  "internalType": "bytes32",
@@ -174,24 +315,52 @@
174
315
  "type": "function"
175
316
  },
176
317
  {
177
- "inputs": [
318
+ "inputs": [],
319
+ "name": "DISTRIBUTION_STORAGE_LOCATION_V1",
320
+ "outputs": [
178
321
  {
179
- "internalType": "ReferralId",
180
- "name": "referralId",
181
- "type": "bytes8"
182
- },
322
+ "internalType": "bytes32",
323
+ "name": "",
324
+ "type": "bytes32"
325
+ }
326
+ ],
327
+ "stateMutability": "view",
328
+ "type": "function"
329
+ },
330
+ {
331
+ "inputs": [],
332
+ "name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
333
+ "outputs": [
183
334
  {
184
- "internalType": "uint256",
185
- "name": "netPremiumAmount",
186
- "type": "uint256"
335
+ "internalType": "bytes32",
336
+ "name": "",
337
+ "type": "bytes32"
338
+ }
339
+ ],
340
+ "stateMutability": "view",
341
+ "type": "function"
342
+ },
343
+ {
344
+ "inputs": [],
345
+ "name": "REGISTERABLE_LOCATION_V1",
346
+ "outputs": [
347
+ {
348
+ "internalType": "bytes32",
349
+ "name": "",
350
+ "type": "bytes32"
187
351
  }
188
352
  ],
189
- "name": "calculateFeeAmount",
353
+ "stateMutability": "view",
354
+ "type": "function"
355
+ },
356
+ {
357
+ "inputs": [],
358
+ "name": "authority",
190
359
  "outputs": [
191
360
  {
192
- "internalType": "uint256",
193
- "name": "feeAmount",
194
- "type": "uint256"
361
+ "internalType": "address",
362
+ "name": "",
363
+ "type": "address"
195
364
  }
196
365
  ],
197
366
  "stateMutability": "view",
@@ -222,17 +391,213 @@
222
391
  "type": "function"
223
392
  },
224
393
  {
225
- "inputs": [],
226
- "name": "getInitialInfo",
227
- "outputs": [
394
+ "inputs": [
228
395
  {
229
- "components": [
230
- {
231
- "internalType": "NftId",
232
- "name": "nftId",
233
- "type": "uint96"
234
- },
235
- {
396
+ "internalType": "address",
397
+ "name": "distributor",
398
+ "type": "address"
399
+ },
400
+ {
401
+ "internalType": "DistributorType",
402
+ "name": "distributorType",
403
+ "type": "bytes8"
404
+ },
405
+ {
406
+ "internalType": "bytes",
407
+ "name": "data",
408
+ "type": "bytes"
409
+ }
410
+ ],
411
+ "name": "createDistributor",
412
+ "outputs": [
413
+ {
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",
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"
468
+ }
469
+ ],
470
+ "name": "createDistributorType",
471
+ "outputs": [
472
+ {
473
+ "internalType": "DistributorType",
474
+ "name": "distributorType",
475
+ "type": "bytes8"
476
+ }
477
+ ],
478
+ "stateMutability": "nonpayable",
479
+ "type": "function"
480
+ },
481
+ {
482
+ "inputs": [],
483
+ "name": "getComponentInfo",
484
+ "outputs": [
485
+ {
486
+ "components": [
487
+ {
488
+ "internalType": "string",
489
+ "name": "name",
490
+ "type": "string"
491
+ },
492
+ {
493
+ "internalType": "contract IERC20Metadata",
494
+ "name": "token",
495
+ "type": "address"
496
+ },
497
+ {
498
+ "internalType": "contract TokenHandler",
499
+ "name": "tokenHandler",
500
+ "type": "address"
501
+ },
502
+ {
503
+ "internalType": "address",
504
+ "name": "wallet",
505
+ "type": "address"
506
+ },
507
+ {
508
+ "internalType": "bytes",
509
+ "name": "data",
510
+ "type": "bytes"
511
+ }
512
+ ],
513
+ "internalType": "struct IComponents.ComponentInfo",
514
+ "name": "info",
515
+ "type": "tuple"
516
+ }
517
+ ],
518
+ "stateMutability": "view",
519
+ "type": "function"
520
+ },
521
+ {
522
+ "inputs": [
523
+ {
524
+ "internalType": "string",
525
+ "name": "referralCode",
526
+ "type": "string"
527
+ }
528
+ ],
529
+ "name": "getDiscountPercentage",
530
+ "outputs": [
531
+ {
532
+ "internalType": "UFixed",
533
+ "name": "discountPercentage",
534
+ "type": "uint256"
535
+ },
536
+ {
537
+ "internalType": "ReferralStatus",
538
+ "name": "status",
539
+ "type": "uint8"
540
+ }
541
+ ],
542
+ "stateMutability": "view",
543
+ "type": "function"
544
+ },
545
+ {
546
+ "inputs": [],
547
+ "name": "getDistributionFee",
548
+ "outputs": [
549
+ {
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"
565
+ }
566
+ ],
567
+ "stateMutability": "view",
568
+ "type": "function"
569
+ },
570
+ {
571
+ "inputs": [
572
+ {
573
+ "internalType": "address",
574
+ "name": "distributor",
575
+ "type": "address"
576
+ }
577
+ ],
578
+ "name": "getDistributorNftId",
579
+ "outputs": [
580
+ {
581
+ "internalType": "NftId",
582
+ "name": "distributorNftId",
583
+ "type": "uint96"
584
+ }
585
+ ],
586
+ "stateMutability": "view",
587
+ "type": "function"
588
+ },
589
+ {
590
+ "inputs": [],
591
+ "name": "getInitialInfo",
592
+ "outputs": [
593
+ {
594
+ "components": [
595
+ {
596
+ "internalType": "NftId",
597
+ "name": "nftId",
598
+ "type": "uint96"
599
+ },
600
+ {
236
601
  "internalType": "NftId",
237
602
  "name": "parentNftId",
238
603
  "type": "uint96"
@@ -264,143 +629,441 @@
264
629
  }
265
630
  ],
266
631
  "internalType": "struct IRegistry.ObjectInfo",
632
+ "name": "info",
633
+ "type": "tuple"
634
+ }
635
+ ],
636
+ "stateMutability": "view",
637
+ "type": "function"
638
+ },
639
+ {
640
+ "inputs": [],
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",
668
+ "outputs": [
669
+ {
670
+ "internalType": "NftId",
671
+ "name": "",
672
+ "type": "uint96"
673
+ }
674
+ ],
675
+ "stateMutability": "view",
676
+ "type": "function"
677
+ },
678
+ {
679
+ "inputs": [],
680
+ "name": "getOwner",
681
+ "outputs": [
682
+ {
683
+ "internalType": "address",
684
+ "name": "",
685
+ "type": "address"
686
+ }
687
+ ],
688
+ "stateMutability": "view",
689
+ "type": "function"
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
+ },
723
+ {
724
+ "inputs": [],
725
+ "name": "getRegistry",
726
+ "outputs": [
727
+ {
728
+ "internalType": "contract IRegistry",
729
+ "name": "",
730
+ "type": "address"
731
+ }
732
+ ],
733
+ "stateMutability": "view",
734
+ "type": "function"
735
+ },
736
+ {
737
+ "inputs": [],
738
+ "name": "getRegistryAddress",
739
+ "outputs": [
740
+ {
741
+ "internalType": "address",
267
742
  "name": "",
743
+ "type": "address"
744
+ }
745
+ ],
746
+ "stateMutability": "view",
747
+ "type": "function"
748
+ },
749
+ {
750
+ "inputs": [],
751
+ "name": "getSetupInfo",
752
+ "outputs": [
753
+ {
754
+ "components": [
755
+ {
756
+ "internalType": "NftId",
757
+ "name": "productNftId",
758
+ "type": "uint96"
759
+ },
760
+ {
761
+ "internalType": "contract TokenHandler",
762
+ "name": "tokenHandler",
763
+ "type": "address"
764
+ },
765
+ {
766
+ "components": [
767
+ {
768
+ "internalType": "UFixed",
769
+ "name": "fractionalFee",
770
+ "type": "uint256"
771
+ },
772
+ {
773
+ "internalType": "uint256",
774
+ "name": "fixedFee",
775
+ "type": "uint256"
776
+ }
777
+ ],
778
+ "internalType": "struct Fee",
779
+ "name": "minDistributionOwnerFee",
780
+ "type": "tuple"
781
+ },
782
+ {
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"
798
+ },
799
+ {
800
+ "internalType": "address",
801
+ "name": "wallet",
802
+ "type": "address"
803
+ },
804
+ {
805
+ "internalType": "uint256",
806
+ "name": "sumDistributionOwnerFees",
807
+ "type": "uint256"
808
+ }
809
+ ],
810
+ "internalType": "struct ISetup.DistributionSetupInfo",
811
+ "name": "setupInfo",
812
+ "type": "tuple"
813
+ }
814
+ ],
815
+ "stateMutability": "view",
816
+ "type": "function"
817
+ },
818
+ {
819
+ "inputs": [],
820
+ "name": "getToken",
821
+ "outputs": [
822
+ {
823
+ "internalType": "contract IERC20Metadata",
824
+ "name": "token",
825
+ "type": "address"
826
+ }
827
+ ],
828
+ "stateMutability": "view",
829
+ "type": "function"
830
+ },
831
+ {
832
+ "inputs": [],
833
+ "name": "getWallet",
834
+ "outputs": [
835
+ {
836
+ "internalType": "address",
837
+ "name": "walletAddress",
838
+ "type": "address"
839
+ }
840
+ ],
841
+ "stateMutability": "view",
842
+ "type": "function"
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",
268
946
  "type": "tuple"
269
947
  },
948
+ {
949
+ "internalType": "address",
950
+ "name": "initialOwner",
951
+ "type": "address"
952
+ },
270
953
  {
271
954
  "internalType": "bytes",
272
- "name": "",
955
+ "name": "registryData",
273
956
  "type": "bytes"
274
957
  }
275
958
  ],
276
- "stateMutability": "view",
959
+ "name": "initializeDistribution",
960
+ "outputs": [],
961
+ "stateMutability": "nonpayable",
277
962
  "type": "function"
278
963
  },
279
964
  {
280
965
  "inputs": [],
281
- "name": "getInstance",
282
- "outputs": [
966
+ "name": "initializeERC165",
967
+ "outputs": [],
968
+ "stateMutability": "nonpayable",
969
+ "type": "function"
970
+ },
971
+ {
972
+ "inputs": [
283
973
  {
284
- "internalType": "contract IInstance",
285
- "name": "instance",
974
+ "internalType": "address",
975
+ "name": "initialOwner",
976
+ "type": "address"
977
+ },
978
+ {
979
+ "internalType": "address",
980
+ "name": "registryAddress",
286
981
  "type": "address"
287
982
  }
288
983
  ],
289
- "stateMutability": "view",
984
+ "name": "initializeNftOwnable",
985
+ "outputs": [],
986
+ "stateMutability": "nonpayable",
290
987
  "type": "function"
291
988
  },
292
989
  {
293
- "inputs": [],
294
- "name": "getNftId",
295
- "outputs": [
990
+ "inputs": [
991
+ {
992
+ "internalType": "address",
993
+ "name": "registryAddress",
994
+ "type": "address"
995
+ },
296
996
  {
297
997
  "internalType": "NftId",
298
- "name": "",
998
+ "name": "parentNftId",
299
999
  "type": "uint96"
300
- }
301
- ],
302
- "stateMutability": "view",
303
- "type": "function"
304
- },
305
- {
306
- "inputs": [],
307
- "name": "getOwner",
308
- "outputs": [
1000
+ },
1001
+ {
1002
+ "internalType": "ObjectType",
1003
+ "name": "objectType",
1004
+ "type": "uint8"
1005
+ },
1006
+ {
1007
+ "internalType": "bool",
1008
+ "name": "isInterceptor",
1009
+ "type": "bool"
1010
+ },
309
1011
  {
310
1012
  "internalType": "address",
311
- "name": "",
1013
+ "name": "initialOwner",
312
1014
  "type": "address"
1015
+ },
1016
+ {
1017
+ "internalType": "bytes",
1018
+ "name": "registryData",
1019
+ "type": "bytes"
313
1020
  }
314
1021
  ],
315
- "stateMutability": "view",
1022
+ "name": "initializeRegisterable",
1023
+ "outputs": [],
1024
+ "stateMutability": "nonpayable",
316
1025
  "type": "function"
317
1026
  },
318
1027
  {
319
- "inputs": [],
320
- "name": "getProductNftId",
321
- "outputs": [
1028
+ "inputs": [
322
1029
  {
323
- "internalType": "NftId",
324
- "name": "productNftId",
325
- "type": "uint96"
1030
+ "internalType": "address",
1031
+ "name": "registryAddress",
1032
+ "type": "address"
326
1033
  }
327
1034
  ],
328
- "stateMutability": "view",
1035
+ "name": "initializeRegistryLinked",
1036
+ "outputs": [],
1037
+ "stateMutability": "nonpayable",
329
1038
  "type": "function"
330
1039
  },
331
1040
  {
332
1041
  "inputs": [],
333
- "name": "getRegistry",
1042
+ "name": "isConsumingScheduledOp",
334
1043
  "outputs": [
335
1044
  {
336
- "internalType": "contract IRegistry",
1045
+ "internalType": "bytes4",
337
1046
  "name": "",
338
- "type": "address"
1047
+ "type": "bytes4"
339
1048
  }
340
1049
  ],
341
1050
  "stateMutability": "view",
342
1051
  "type": "function"
343
1052
  },
344
1053
  {
345
- "inputs": [],
346
- "name": "getSetupInfo",
347
- "outputs": [
1054
+ "inputs": [
348
1055
  {
349
- "components": [
350
- {
351
- "internalType": "NftId",
352
- "name": "productNftId",
353
- "type": "uint96"
354
- },
355
- {
356
- "internalType": "contract TokenHandler",
357
- "name": "tokenHandler",
358
- "type": "address"
359
- },
360
- {
361
- "components": [
362
- {
363
- "internalType": "UFixed",
364
- "name": "fractionalFee",
365
- "type": "uint256"
366
- },
367
- {
368
- "internalType": "uint256",
369
- "name": "fixedFee",
370
- "type": "uint256"
371
- }
372
- ],
373
- "internalType": "struct Fee",
374
- "name": "distributionFee",
375
- "type": "tuple"
376
- },
377
- {
378
- "internalType": "bool",
379
- "name": "isIntercepting",
380
- "type": "bool"
381
- },
382
- {
383
- "internalType": "address",
384
- "name": "wallet",
385
- "type": "address"
386
- }
387
- ],
388
- "internalType": "struct ISetup.DistributionSetupInfo",
389
- "name": "setupInfo",
390
- "type": "tuple"
1056
+ "internalType": "address",
1057
+ "name": "candidate",
1058
+ "type": "address"
391
1059
  }
392
1060
  ],
393
- "stateMutability": "view",
394
- "type": "function"
395
- },
396
- {
397
- "inputs": [],
398
- "name": "getToken",
1061
+ "name": "isDistributor",
399
1062
  "outputs": [
400
1063
  {
401
- "internalType": "contract IERC20Metadata",
402
- "name": "token",
403
- "type": "address"
1064
+ "internalType": "bool",
1065
+ "name": "",
1066
+ "type": "bool"
404
1067
  }
405
1068
  ],
406
1069
  "stateMutability": "view",
@@ -408,12 +1071,12 @@
408
1071
  },
409
1072
  {
410
1073
  "inputs": [],
411
- "name": "getWallet",
1074
+ "name": "isNftInterceptor",
412
1075
  "outputs": [
413
1076
  {
414
- "internalType": "address",
415
- "name": "walletAddress",
416
- "type": "address"
1077
+ "internalType": "bool",
1078
+ "name": "isInterceptor",
1079
+ "type": "bool"
417
1080
  }
418
1081
  ],
419
1082
  "stateMutability": "view",
@@ -449,17 +1112,40 @@
449
1112
  {
450
1113
  "inputs": [
451
1114
  {
452
- "internalType": "ReferralId",
453
- "name": "referralId",
454
- "type": "bytes8"
1115
+ "internalType": "address",
1116
+ "name": "to",
1117
+ "type": "address"
455
1118
  },
456
1119
  {
457
1120
  "internalType": "uint256",
458
- "name": "feeAmount",
1121
+ "name": "tokenId",
459
1122
  "type": "uint256"
460
1123
  }
461
1124
  ],
462
- "name": "processRenewal",
1125
+ "name": "nftMint",
1126
+ "outputs": [],
1127
+ "stateMutability": "nonpayable",
1128
+ "type": "function"
1129
+ },
1130
+ {
1131
+ "inputs": [
1132
+ {
1133
+ "internalType": "address",
1134
+ "name": "from",
1135
+ "type": "address"
1136
+ },
1137
+ {
1138
+ "internalType": "address",
1139
+ "name": "to",
1140
+ "type": "address"
1141
+ },
1142
+ {
1143
+ "internalType": "uint256",
1144
+ "name": "tokenId",
1145
+ "type": "uint256"
1146
+ }
1147
+ ],
1148
+ "name": "nftTransferFrom",
463
1149
  "outputs": [],
464
1150
  "stateMutability": "nonpayable",
465
1151
  "type": "function"
@@ -477,7 +1163,7 @@
477
1163
  "type": "uint256"
478
1164
  }
479
1165
  ],
480
- "name": "processSale",
1166
+ "name": "processRenewal",
481
1167
  "outputs": [],
482
1168
  "stateMutability": "nonpayable",
483
1169
  "type": "function"
@@ -485,24 +1171,48 @@
485
1171
  {
486
1172
  "inputs": [
487
1173
  {
488
- "internalType": "ReferralId",
489
- "name": "referralId",
490
- "type": "bytes8"
1174
+ "internalType": "bytes4",
1175
+ "name": "interfaceId",
1176
+ "type": "bytes4"
491
1177
  }
492
1178
  ],
493
- "name": "referralIsValid",
494
- "outputs": [
1179
+ "name": "registerInterface",
1180
+ "outputs": [],
1181
+ "stateMutability": "nonpayable",
1182
+ "type": "function"
1183
+ },
1184
+ {
1185
+ "inputs": [
495
1186
  {
496
- "internalType": "bool",
497
- "name": "isValid",
498
- "type": "bool"
1187
+ "internalType": "address",
1188
+ "name": "newAuthority",
1189
+ "type": "address"
499
1190
  }
500
1191
  ],
501
- "stateMutability": "view",
1192
+ "name": "setAuthority",
1193
+ "outputs": [],
1194
+ "stateMutability": "nonpayable",
502
1195
  "type": "function"
503
1196
  },
504
1197
  {
505
1198
  "inputs": [
1199
+ {
1200
+ "components": [
1201
+ {
1202
+ "internalType": "UFixed",
1203
+ "name": "fractionalFee",
1204
+ "type": "uint256"
1205
+ },
1206
+ {
1207
+ "internalType": "uint256",
1208
+ "name": "fixedFee",
1209
+ "type": "uint256"
1210
+ }
1211
+ ],
1212
+ "internalType": "struct Fee",
1213
+ "name": "minDistributionOwnerFee",
1214
+ "type": "tuple"
1215
+ },
506
1216
  {
507
1217
  "components": [
508
1218
  {
@@ -526,6 +1236,32 @@
526
1236
  "stateMutability": "nonpayable",
527
1237
  "type": "function"
528
1238
  },
1239
+ {
1240
+ "inputs": [
1241
+ {
1242
+ "internalType": "NftId",
1243
+ "name": "productNftId",
1244
+ "type": "uint96"
1245
+ }
1246
+ ],
1247
+ "name": "setProductNftId",
1248
+ "outputs": [],
1249
+ "stateMutability": "nonpayable",
1250
+ "type": "function"
1251
+ },
1252
+ {
1253
+ "inputs": [
1254
+ {
1255
+ "internalType": "address",
1256
+ "name": "newWallet",
1257
+ "type": "address"
1258
+ }
1259
+ ],
1260
+ "name": "setWallet",
1261
+ "outputs": [],
1262
+ "stateMutability": "nonpayable",
1263
+ "type": "function"
1264
+ },
529
1265
  {
530
1266
  "inputs": [
531
1267
  {
@@ -551,60 +1287,33 @@
551
1287
  "outputs": [],
552
1288
  "stateMutability": "nonpayable",
553
1289
  "type": "function"
554
- }
555
- ],
556
- "bytecode": "0x60806040523480156200001157600080fd5b5060405162001c5638038062001c568339810160408190526200003491620006a1565b8686868660786301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff1916600190811790915586600280546001600160a01b03191633179055604080516020810190915260008152620000ab88888686868662000371565b6000620000c06001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b038a1660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa15801562000110573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200013a91908101906200081f565b6080810151600780546001600160a01b0319166001600160a01b0390921691821790556040516301ffc9a760e01b81526342e19e5f60e01b6004820152919250906301ffc9a790602401602060405180830381865afa158015620001a2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001c8919062000905565b620001f45760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b600760009054906101000a90046001600160a01b03166001600160a01b0316636fa298536040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000248573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200026e91906200092a565b600380546001600160a01b03199081166001600160a01b039384161790915560058054309083161790556006805490911688831617905560078054909116600160a01b6001600160601b038a160217905563593e597960e11b60009081526020527fe5ff73b5268559916713b465b9aafbfc723fb1444fb210a355c8977973af6095805460ff191660011790555050600a80548b151560ff199182161790915589516008556020808b015160095563c8ea96c560e01b600090815290527f358bf83baf6613c2def0011c88aae44093f6c2a350167255c9453fdf9640579480549091166001179055506200036495505050505050565b5050505050505062000aa5565b6200037d828762000442565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166001600160681b0319909116176c0100000000000000000000000060ff8816021760ff60681b19166d010000000000000000000000000086151502178155905060018101620003fc8382620009d9565b506303fb044760e21b60009081526020527fb43e4f3791bfcdefa3a0fbe2a5555f8d6490b90e01de0ff40c66f18b49b562c5805460ff1916600117905550505050505050565b600280546001600160a01b0319166001600160a01b03841617905562000468816200046c565b5050565b6001546001600160a01b031615620004a75760015460405163fcdbf2d960e01b81526001600160a01b039091166004820152602401620001eb565b6001600160a01b038116620004cf5760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b600003620005075760405163fdeac91f60e01b81526001600160a01b0382166004820152602401620001eb565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b815263350fb35160e11b60048201526301ffc9a790602401602060405180830381865afa92505050801562000584575060408051601f3d908101601f19168201909252620005819181019062000905565b60015b620005ae5760405163fdeac91f60e01b81526001600160a01b0382166004820152602401620001eb565b80620004685760405163fdeac91f60e01b81526001600160a01b0383166004820152602401620001eb565b50565b6001600160a01b0381168114620005d957600080fd5b8051620005ff81620005dc565b919050565b80516001600160601b0381168114620005ff57600080fd5b80518015158114620005ff57600080fd5b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b03811182821017156200066857620006686200062d565b60405290565b604051601f8201601f191681016001600160401b03811182821017156200069957620006996200062d565b604052919050565b6000806000806000806000878903610100811215620006bf57600080fd5b8851620006cc81620005dc565b9750620006dc60208a0162000604565b9650620006ec60408a0162000604565b95506060890151620006fe81620005dc565b94506200070e60808a016200061c565b93506040609f19820112156200072357600080fd5b50604080519081016001600160401b03811182821017156200074957620007496200062d565b60405260a0890151815260c0890151602082015260e08901519092506200077081620005dc565b8091505092959891949750929550565b805160ff81168114620005ff57600080fd5b600082601f830112620007a457600080fd5b81516001600160401b03811115620007c057620007c06200062d565b6020620007d6601f8301601f191682016200066e565b8281528582848701011115620007eb57600080fd5b60005b838110156200080b578581018301518282018401528201620007ee565b506000928101909101919091529392505050565b6000602082840312156200083257600080fd5b81516001600160401b03808211156200084a57600080fd5b9083019060e082860312156200085f57600080fd5b6200086962000643565b620008748362000604565b8152620008846020840162000604565b6020820152620008976040840162000780565b6040820152620008aa606084016200061c565b6060820152620008bd60808401620005f2565b6080820152620008d060a08401620005f2565b60a082015260c083015182811115620008e857600080fd5b620008f68782860162000792565b60c08301525095945050505050565b6000602082840312156200091857600080fd5b62000923826200061c565b9392505050565b6000602082840312156200093d57600080fd5b81516200092381620005dc565b600181811c908216806200095f57607f821691505b6020821081036200098057634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620009d457600081815260208120601f850160051c81016020861015620009af5750805b601f850160051c820191505b81811015620009d057828155600101620009bb565b5050505b505050565b81516001600160401b03811115620009f557620009f56200062d565b62000a0d8162000a0684546200094a565b8462000986565b602080601f83116001811462000a45576000841562000a2c5750858301515b600019600386901b1c1916600185901b178555620009d0565b600085815260208120601f198616915b8281101562000a765788860151825594840194600190910190840162000a55565b508582101562000a955787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6111a18062000ab56000396000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c8063644c45e0116100b8578063d16d0fe81161007c578063d16d0fe814610305578063de7b5d1414610318578063e214756714610329578063f7d39dea1461033d578063f80e207214610247578063f83d08ba1461035057600080fd5b8063644c45e01461026b57806387ef9ba014610283578063893d20e81461028e578063a69df4b514610296578063c200b8091461029e57600080fd5b80631eff4b22116100ff5780631eff4b22146101ee57806321df0da7146102235780633f52c0f6146102345780634cf30a84146102475780635ab1bd531461025a57600080fd5b806251884a1461013b57806301ffc9a71461016c5780630fec111c146101a957806313299604146101bf578063138461e0146101e4575b600080fd5b600754600160a01b90046001600160601b03165b6040516001600160601b0390911681526020015b60405180910390f35b61019961017a366004610d89565b6001600160e01b03191660009081526020819052604090205460ff1690565b6040519015158152602001610163565b6101b1610358565b604051610163929190610e00565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610163565b6101ec6103df565b005b6102157f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610163565b6006546001600160a01b03166101cc565b6101ec610242366004610ede565b610601565b6101ec610255366004610f2d565b61066a565b6001546001600160a01b03166101cc565b600154600160a01b90046001600160601b031661014f565b600a5460ff16610199565b6101cc6106d2565b6101ec6107f0565b6102a661086d565b6040805182516001600160601b031681526020808401516001600160a01b0390811682840152848401518051948401949094529201516060808301919091528301511515608080830191909152909201511660a082015260c001610163565b610215610313366004610f2d565b610a73565b6007546001600160a01b03166101cc565b610199610337366004610f57565b50600090565b61021561034b366004610f2d565b610a88565b6101ec610b2a565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820181905290918061039c610ba7565b50600a546040805160085460208201526009548183015260ff90921615156060808401919091528151808403909101815260809092019052909590945092505050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610441573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104659190610f82565b156104ac576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b03166104d55760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa15801561051e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105429190610f82565b61056a576040516372657a5160e01b81526001600160a01b03821660048201526024016104a3565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa1580156105b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d89190610fb4565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b600a54604051631fa9607b60e11b81526101009091046001600160a01b031690633f52c0f690610635908490600401610fcf565b600060405180830381600087803b15801561064f57600080fd5b505af1158015610663573d6000803e3d6000fd5b5050505050565b600b546001600160a01b031633146106ce5760405162461bcd60e51b815260206004820152602160248201527f4552524f523a504f4c2d3030323a4e4f545f50524f445543545f5345525649436044820152604560f81b60648201526084016104a3565b5050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610737573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075b9190610f82565b156107e057600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa1580156107b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107db9190611009565b905090565b506002546001600160a01b031690565b60006107fa6106d2565b90506001600160a01b0381161580159061081d5750336001600160a01b03821614155b1561083d5760405163700dd81160e01b81523360048201526024016104a3565b600354604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c90602401610635565b610875610d2d565b6001546040805163c4cade9d60e01b8152600160a01b9092046001600160601b03166004830152600060248301525173__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__9163c4cade9d9160448083019260209291908290030181865af41580156108e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109089190610f82565b1561096c57506040805160a081018252600754600160a01b90046001600160601b03168152600060208083018290528351808501855260085481526009549181019190915292820192909252600a5460ff1615156060820152608081019190915290565b600754604080516302cd307160e01b815290516000926001600160a01b0316916302cd30719160048083019260209291908290030181865afa1580156109b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109da9190611009565b9050806001600160a01b0316639ad69c67610a056001546001600160601b03600160a01b9091041690565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240160c060405180830381865afa158015610a49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6d9190611026565b91505090565b6000610a7f82826110e8565b90505b92915050565b600080610a9361086d565b604081810151905163012ebd8360e21b81528151600482015260208201516024820152604481018690529192509073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af4158015610afc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b20919061110d565b5095945050505050565b6000610b346106d2565b90506001600160a01b03811615801590610b575750336001600160a01b03821614155b15610b775760405163700dd81160e01b81523360048201526024016104a3565b60035460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a790602401610635565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c0810191909152606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e00160405280610c2e6001546001600160601b03600160a01b9091041690565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a001610c766106d2565b6001600160a01b03168152602001826001018054610c9390611131565b80601f0160208091040260200160405190810160405280929190818152602001828054610cbf90611131565b8015610d0c5780601f10610ce157610100808354040283529160200191610d0c565b820191906000526020600020905b815481529060010190602001808311610cef57829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6040518060a0016040528060006001600160601b0316815260200160006001600160a01b03168152602001610d75604051806040016040528060008152602001600081525090565b815260006020820181905260409091015290565b600060208284031215610d9b57600080fd5b81356001600160e01b031981168114610db357600080fd5b9392505050565b6000815180845260005b81811015610de057602081850181015186830182015201610dc4565b506000602082860101526020601f19601f83011685010191505092915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff60408501511660808301526060840151610e4460a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e0610100840152610e8a610120840182610dba565b90508281036020840152610e9e8185610dba565b95945050505050565b6040805190810167ffffffffffffffff81118282101715610ed857634e487b7160e01b600052604160045260246000fd5b60405290565b600060408284031215610ef057600080fd5b610ef8610ea7565b82358152602083013560208201528091505092915050565b80356001600160c01b031981168114610f2857600080fd5b919050565b60008060408385031215610f4057600080fd5b610f4983610f10565b946020939093013593505050565b600060208284031215610f6957600080fd5b610a7f82610f10565b80518015158114610f2857600080fd5b600060208284031215610f9457600080fd5b610a7f82610f72565b80516001600160601b0381168114610f2857600080fd5b600060208284031215610fc657600080fd5b610a7f82610f9d565b815181526020808301519082015260408101610a82565b6001600160a01b0381168114610ffb57600080fd5b50565b8051610f2881610fe6565b60006020828403121561101b57600080fd5b8151610db381610fe6565b600081830360c081121561103957600080fd5b60405160a0810181811067ffffffffffffffff8211171561106a57634e487b7160e01b600052604160045260246000fd5b60405261107684610f9d565b8152602084015161108681610fe6565b60208201526040603f198301121561109d57600080fd5b6110a5610ea7565b915060408401518252606084015160208301528160408201526110ca60808501610f72565b60608201526110db60a08501610ffe565b6080820152949350505050565b8082028115828204841417610a8257634e487b7160e01b600052601160045260246000fd5b6000806040838503121561112057600080fd5b505080516020909101519092909150565b600181811c9082168061114557607f821691505b60208210810361116557634e487b7160e01b600052602260045260246000fd5b5091905056fea264697066735822122021ee7995ed7ba0e643cce54175a2c79dd9525de27d4539f5678db5e8b8467fe864736f6c63430008140033",
557
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101365760003560e01c8063644c45e0116100b8578063d16d0fe81161007c578063d16d0fe814610305578063de7b5d1414610318578063e214756714610329578063f7d39dea1461033d578063f80e207214610247578063f83d08ba1461035057600080fd5b8063644c45e01461026b57806387ef9ba014610283578063893d20e81461028e578063a69df4b514610296578063c200b8091461029e57600080fd5b80631eff4b22116100ff5780631eff4b22146101ee57806321df0da7146102235780633f52c0f6146102345780634cf30a84146102475780635ab1bd531461025a57600080fd5b806251884a1461013b57806301ffc9a71461016c5780630fec111c146101a957806313299604146101bf578063138461e0146101e4575b600080fd5b600754600160a01b90046001600160601b03165b6040516001600160601b0390911681526020015b60405180910390f35b61019961017a366004610d89565b6001600160e01b03191660009081526020819052604090205460ff1690565b6040519015158152602001610163565b6101b1610358565b604051610163929190610e00565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610163565b6101ec6103df565b005b6102157f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610163565b6006546001600160a01b03166101cc565b6101ec610242366004610ede565b610601565b6101ec610255366004610f2d565b61066a565b6001546001600160a01b03166101cc565b600154600160a01b90046001600160601b031661014f565b600a5460ff16610199565b6101cc6106d2565b6101ec6107f0565b6102a661086d565b6040805182516001600160601b031681526020808401516001600160a01b0390811682840152848401518051948401949094529201516060808301919091528301511515608080830191909152909201511660a082015260c001610163565b610215610313366004610f2d565b610a73565b6007546001600160a01b03166101cc565b610199610337366004610f57565b50600090565b61021561034b366004610f2d565b610a88565b6101ec610b2a565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820181905290918061039c610ba7565b50600a546040805160085460208201526009548183015260ff90921615156060808401919091528151808403909101815260809092019052909590945092505050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610441573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104659190610f82565b156104ac576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b03166104d55760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa15801561051e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105429190610f82565b61056a576040516372657a5160e01b81526001600160a01b03821660048201526024016104a3565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa1580156105b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d89190610fb4565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b600a54604051631fa9607b60e11b81526101009091046001600160a01b031690633f52c0f690610635908490600401610fcf565b600060405180830381600087803b15801561064f57600080fd5b505af1158015610663573d6000803e3d6000fd5b5050505050565b600b546001600160a01b031633146106ce5760405162461bcd60e51b815260206004820152602160248201527f4552524f523a504f4c2d3030323a4e4f545f50524f445543545f5345525649436044820152604560f81b60648201526084016104a3565b5050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610737573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075b9190610f82565b156107e057600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa1580156107b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107db9190611009565b905090565b506002546001600160a01b031690565b60006107fa6106d2565b90506001600160a01b0381161580159061081d5750336001600160a01b03821614155b1561083d5760405163700dd81160e01b81523360048201526024016104a3565b600354604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c90602401610635565b610875610d2d565b6001546040805163c4cade9d60e01b8152600160a01b9092046001600160601b03166004830152600060248301525173__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__9163c4cade9d9160448083019260209291908290030181865af41580156108e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109089190610f82565b1561096c57506040805160a081018252600754600160a01b90046001600160601b03168152600060208083018290528351808501855260085481526009549181019190915292820192909252600a5460ff1615156060820152608081019190915290565b600754604080516302cd307160e01b815290516000926001600160a01b0316916302cd30719160048083019260209291908290030181865afa1580156109b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109da9190611009565b9050806001600160a01b0316639ad69c67610a056001546001600160601b03600160a01b9091041690565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240160c060405180830381865afa158015610a49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6d9190611026565b91505090565b6000610a7f82826110e8565b90505b92915050565b600080610a9361086d565b604081810151905163012ebd8360e21b81528151600482015260208201516024820152604481018690529192509073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af4158015610afc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b20919061110d565b5095945050505050565b6000610b346106d2565b90506001600160a01b03811615801590610b575750336001600160a01b03821614155b15610b775760405163700dd81160e01b81523360048201526024016104a3565b60035460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a790602401610635565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c0810191909152606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e00160405280610c2e6001546001600160601b03600160a01b9091041690565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a001610c766106d2565b6001600160a01b03168152602001826001018054610c9390611131565b80601f0160208091040260200160405190810160405280929190818152602001828054610cbf90611131565b8015610d0c5780601f10610ce157610100808354040283529160200191610d0c565b820191906000526020600020905b815481529060010190602001808311610cef57829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6040518060a0016040528060006001600160601b0316815260200160006001600160a01b03168152602001610d75604051806040016040528060008152602001600081525090565b815260006020820181905260409091015290565b600060208284031215610d9b57600080fd5b81356001600160e01b031981168114610db357600080fd5b9392505050565b6000815180845260005b81811015610de057602081850181015186830182015201610dc4565b506000602082860101526020601f19601f83011685010191505092915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff60408501511660808301526060840151610e4460a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e0610100840152610e8a610120840182610dba565b90508281036020840152610e9e8185610dba565b95945050505050565b6040805190810167ffffffffffffffff81118282101715610ed857634e487b7160e01b600052604160045260246000fd5b60405290565b600060408284031215610ef057600080fd5b610ef8610ea7565b82358152602083013560208201528091505092915050565b80356001600160c01b031981168114610f2857600080fd5b919050565b60008060408385031215610f4057600080fd5b610f4983610f10565b946020939093013593505050565b600060208284031215610f6957600080fd5b610a7f82610f10565b80518015158114610f2857600080fd5b600060208284031215610f9457600080fd5b610a7f82610f72565b80516001600160601b0381168114610f2857600080fd5b600060208284031215610fc657600080fd5b610a7f82610f9d565b815181526020808301519082015260408101610a82565b6001600160a01b0381168114610ffb57600080fd5b50565b8051610f2881610fe6565b60006020828403121561101b57600080fd5b8151610db381610fe6565b600081830360c081121561103957600080fd5b60405160a0810181811067ffffffffffffffff8211171561106a57634e487b7160e01b600052604160045260246000fd5b60405261107684610f9d565b8152602084015161108681610fe6565b60208201526040603f198301121561109d57600080fd5b6110a5610ea7565b915060408401518252606084015160208301528160408201526110ca60808501610f72565b60608201526110db60a08501610ffe565b6080820152949350505050565b8082028115828204841417610a8257634e487b7160e01b600052601160045260246000fd5b6000806040838503121561112057600080fd5b505080516020909101519092909150565b600181811c9082168061114557607f821691505b60208210810361116557634e487b7160e01b600052602260045260246000fd5b5091905056fea264697066735822122021ee7995ed7ba0e643cce54175a2c79dd9525de27d4539f5678db5e8b8467fe864736f6c63430008140033",
558
- "linkReferences": {
559
- "contracts/types/Fee.sol": {
560
- "FeeLib": [
561
- {
562
- "length": 20,
563
- "start": 5496
564
- }
565
- ]
566
- },
567
- "contracts/types/NftId.sol": {
568
- "NftIdLib": [
569
- {
570
- "length": 20,
571
- "start": 3772
572
- },
573
- {
574
- "length": 20,
575
- "start": 4530
576
- },
577
- {
578
- "length": 20,
579
- "start": 4955
580
- }
581
- ]
582
- }
583
- },
584
- "deployedLinkReferences": {
585
- "contracts/types/Fee.sol": {
586
- "FeeLib": [
587
- {
588
- "length": 20,
589
- "start": 2755
590
- }
591
- ]
592
1290
  },
593
- "contracts/types/NftId.sol": {
594
- "NftIdLib": [
1291
+ {
1292
+ "inputs": [
595
1293
  {
596
- "length": 20,
597
- "start": 1031
1294
+ "internalType": "NftId",
1295
+ "name": "distributorNftId",
1296
+ "type": "uint96"
598
1297
  },
599
1298
  {
600
- "length": 20,
601
- "start": 1789
1299
+ "internalType": "DistributorType",
1300
+ "name": "distributorType",
1301
+ "type": "bytes8"
602
1302
  },
603
1303
  {
604
- "length": 20,
605
- "start": 2214
1304
+ "internalType": "bytes",
1305
+ "name": "data",
1306
+ "type": "bytes"
606
1307
  }
607
- ]
1308
+ ],
1309
+ "name": "updateDistributorType",
1310
+ "outputs": [],
1311
+ "stateMutability": "nonpayable",
1312
+ "type": "function"
608
1313
  }
609
- }
1314
+ ],
1315
+ "bytecode": "0x",
1316
+ "deployedBytecode": "0x",
1317
+ "linkReferences": {},
1318
+ "deployedLinkReferences": {}
610
1319
  }