@etherisc/gif-next 0.0.2-bdd64e2-180 → 0.0.2-be8b3db-650

Sign up to get free protection for your applications and to get access to all the features.
Files changed (374) hide show
  1. package/README.md +136 -2
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  3. package/artifacts/contracts/components/Component.sol/Component.json +814 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +871 -240
  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} +177 -176
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +684 -37
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +745 -58
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +564 -9
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +774 -309
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +601 -237
  18. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  19. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +783 -0
  20. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  21. package/artifacts/contracts/instance/{AccessManagedSimple.sol/AccessManagedSimple.json → Cloneable.sol/Cloneable.json} +86 -2
  22. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  23. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1769 -242
  24. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  25. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +194 -165
  26. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  27. package/artifacts/contracts/instance/Instance.sol/Instance.json +892 -1240
  28. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  29. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +211 -144
  30. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  31. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +133 -237
  32. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  33. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +428 -273
  34. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  35. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +302 -101
  36. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  37. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
  38. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  39. package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → instance/base/ComponentService.sol/ComponentService.json} +236 -126
  40. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  41. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  42. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  43. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +40 -10
  44. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  45. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +36 -11
  46. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  47. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +59 -16
  48. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  49. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
  50. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.json +10 -0
  51. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  52. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  53. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  54. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  55. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  56. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  57. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +968 -0
  58. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  59. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +665 -0
  60. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  61. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1093 -0
  62. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  63. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +661 -0
  64. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
  65. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +754 -0
  66. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  67. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +637 -0
  68. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  69. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1251 -184
  70. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  71. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +440 -75
  72. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  73. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +556 -0
  74. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  75. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +630 -0
  76. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
  77. package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IClaimService.sol/IClaimService.json} +150 -207
  78. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  79. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +727 -160
  80. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  81. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +540 -0
  82. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  83. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +84 -217
  84. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  85. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +47 -414
  86. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  87. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1021 -0
  88. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  89. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +689 -0
  90. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  91. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +294 -274
  92. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  93. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +300 -95
  94. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  95. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +777 -0
  96. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  97. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +649 -0
  98. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  99. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +15 -2
  100. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  101. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +208 -224
  102. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  103. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +243 -206
  104. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  105. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  106. package/artifacts/contracts/registry/Registry.sol/Registry.json +222 -330
  107. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  108. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  109. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  110. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +235 -295
  111. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  112. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +295 -150
  113. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  114. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
  115. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  116. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +141 -53
  117. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  118. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  119. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
  120. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  121. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +40 -29
  122. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  123. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +129 -0
  124. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  125. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +21 -34
  126. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  127. package/artifacts/contracts/{experiment/inheritance/IB.sol/IB.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +18 -20
  128. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  129. package/artifacts/contracts/shared/IService.sol/IService.json +31 -183
  130. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  131. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -152
  132. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  133. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +120 -27
  134. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  135. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +248 -0
  136. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  137. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +294 -61
  138. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  139. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +129 -51
  140. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  141. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +84 -0
  142. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  143. package/artifacts/contracts/shared/Service.sol/Service.json +127 -170
  144. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  145. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +2 -2
  146. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  147. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  148. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  149. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -152
  150. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  151. package/artifacts/contracts/test/TestFee.sol/TestFee.json +2 -2
  152. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  153. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +129 -51
  154. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  155. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  156. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  157. package/artifacts/contracts/test/TestService.sol/TestService.json +148 -227
  158. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  159. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  160. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  161. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  162. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +8 -190
  163. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  164. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  165. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  166. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
  167. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  168. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  169. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +100 -0
  170. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  171. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
  172. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  173. package/artifacts/contracts/types/Fee.sol/FeeLib.json +2 -2
  174. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  175. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
  176. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  177. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +17 -4
  178. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  179. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  180. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  181. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  182. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  183. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  184. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +100 -0
  185. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  186. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +23 -4
  187. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  188. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  189. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  190. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  191. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
  192. package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
  193. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  194. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  195. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  196. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +25 -7
  197. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  198. package/artifacts/contracts/types/UFixed.sol/MathLib.json +2 -2
  199. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  200. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +2 -2
  201. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  202. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  203. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  204. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
  205. package/contracts/components/Component.sol +241 -0
  206. package/contracts/components/Distribution.sol +197 -83
  207. package/contracts/components/IComponent.sol +74 -0
  208. package/contracts/components/IDistributionComponent.sol +43 -18
  209. package/contracts/components/IPoolComponent.sol +88 -37
  210. package/contracts/components/IProductComponent.sol +10 -5
  211. package/contracts/components/Pool.sol +214 -162
  212. package/contracts/components/Product.sol +130 -134
  213. package/contracts/instance/BundleManager.sol +127 -0
  214. package/contracts/instance/Cloneable.sol +46 -0
  215. package/contracts/instance/IInstance.sol +64 -10
  216. package/contracts/instance/IInstanceService.sol +34 -4
  217. package/contracts/instance/Instance.sol +119 -267
  218. package/contracts/instance/InstanceAccessManager.sol +87 -78
  219. package/contracts/instance/InstanceReader.sol +16 -28
  220. package/contracts/instance/InstanceService.sol +404 -97
  221. package/contracts/instance/InstanceServiceManager.sol +11 -13
  222. package/contracts/instance/ObjectManager.sol +84 -0
  223. package/contracts/instance/base/ComponentService.sol +134 -0
  224. package/contracts/instance/base/KeyValueStore.sol +5 -2
  225. package/contracts/instance/base/Lifecycle.sol +11 -2
  226. package/contracts/instance/module/IAccess.sol +27 -18
  227. package/contracts/instance/module/IBundle.sol +2 -1
  228. package/contracts/instance/module/IComponents.sol +35 -0
  229. package/contracts/instance/module/IDistribution.sol +2 -0
  230. package/contracts/instance/module/IPolicy.sol +30 -3
  231. package/contracts/instance/module/ISetup.sol +9 -20
  232. package/contracts/instance/service/ApplicationService.sol +350 -0
  233. package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
  234. package/contracts/instance/service/BundleService.sol +336 -0
  235. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  236. package/contracts/instance/service/ClaimService.sol +151 -0
  237. package/contracts/instance/service/ClaimServiceManager.sol +35 -0
  238. package/contracts/instance/service/DistributionService.sol +391 -46
  239. package/contracts/instance/service/DistributionServiceManager.sol +11 -13
  240. package/contracts/instance/service/IApplicationService.sol +82 -0
  241. package/contracts/instance/service/IBundleService.sol +62 -0
  242. package/contracts/instance/service/IClaimService.sol +61 -0
  243. package/contracts/instance/service/IDistributionService.sol +86 -0
  244. package/contracts/instance/service/IPolicyService.sol +72 -0
  245. package/contracts/instance/service/IPoolService.sol +21 -23
  246. package/contracts/instance/service/IProductService.sol +6 -73
  247. package/contracts/instance/service/PolicyService.sol +403 -0
  248. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  249. package/contracts/instance/service/PoolService.sol +96 -144
  250. package/contracts/instance/service/PoolServiceManager.sol +11 -13
  251. package/contracts/instance/service/ProductService.sol +233 -0
  252. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  253. package/contracts/registry/ChainNft.sol +5 -1
  254. package/contracts/registry/IRegistry.sol +38 -33
  255. package/contracts/registry/IRegistryService.sol +47 -13
  256. package/contracts/registry/Registry.sol +222 -249
  257. package/contracts/registry/RegistryAccessManager.sol +216 -0
  258. package/contracts/registry/RegistryService.sol +113 -229
  259. package/contracts/registry/RegistryServiceManager.sol +21 -39
  260. package/contracts/registry/ReleaseManager.sol +322 -0
  261. package/contracts/registry/TokenRegistry.sol +22 -17
  262. package/contracts/shared/ERC165.sol +14 -12
  263. package/contracts/shared/INftOwnable.sol +11 -10
  264. package/contracts/shared/IPolicyHolder.sol +26 -0
  265. package/contracts/shared/IRegisterable.sol +4 -6
  266. package/contracts/shared/IRegistryLinked.sol +12 -0
  267. package/contracts/shared/IService.sol +4 -1
  268. package/contracts/shared/IVersionable.sol +4 -47
  269. package/contracts/shared/NftOwnable.sol +67 -83
  270. package/contracts/shared/PolicyHolder.sol +81 -0
  271. package/contracts/shared/ProxyManager.sol +100 -25
  272. package/contracts/shared/Registerable.sol +16 -32
  273. package/contracts/shared/RegistryLinked.sol +48 -0
  274. package/contracts/shared/Service.sol +26 -22
  275. package/contracts/shared/TokenHandler.sol +11 -5
  276. package/contracts/shared/Versionable.sol +4 -92
  277. package/contracts/test/TestRegisterable.sol +1 -1
  278. package/contracts/test/TestService.sol +4 -3
  279. package/contracts/types/Blocknumber.sol +1 -0
  280. package/contracts/types/ClaimId.sol +52 -0
  281. package/contracts/types/DistributorType.sol +2 -2
  282. package/contracts/types/Fee.sol +1 -0
  283. package/contracts/types/NftId.sol +8 -0
  284. package/contracts/types/NftIdSet.sol +26 -24
  285. package/contracts/types/ObjectType.sol +10 -5
  286. package/contracts/types/PayoutId.sol +54 -0
  287. package/contracts/types/Referral.sol +4 -0
  288. package/contracts/types/RoleId.sol +19 -13
  289. package/contracts/types/Seconds.sol +54 -0
  290. package/contracts/types/StateId.sol +1 -0
  291. package/contracts/types/Timestamp.sol +13 -13
  292. package/contracts/types/UFixed.sol +1 -0
  293. package/contracts/types/Version.sol +1 -0
  294. package/package.json +3 -3
  295. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  296. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -327
  297. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  298. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -280
  299. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +0 -4
  300. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +0 -66
  301. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +0 -4
  302. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +0 -24
  303. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +0 -4
  304. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +0 -42
  305. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  306. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  307. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  308. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  309. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  310. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  311. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  312. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  313. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  314. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  315. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  316. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  317. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  318. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  319. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  320. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +0 -37
  321. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  322. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  323. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  324. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  325. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  326. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  327. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  328. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  329. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  330. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  331. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  332. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  333. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  334. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  335. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  336. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  337. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +0 -10
  338. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
  339. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
  340. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1132
  341. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
  342. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
  343. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  344. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  345. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
  346. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  347. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -827
  348. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  349. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
  350. package/contracts/components/BaseComponent.sol +0 -91
  351. package/contracts/components/IBaseComponent.sol +0 -25
  352. package/contracts/experiment/cloning/Cloner.sol +0 -47
  353. package/contracts/experiment/errors/Require.sol +0 -38
  354. package/contracts/experiment/errors/Revert.sol +0 -44
  355. package/contracts/experiment/inheritance/A.sol +0 -53
  356. package/contracts/experiment/inheritance/B.sol +0 -28
  357. package/contracts/experiment/inheritance/C.sol +0 -34
  358. package/contracts/experiment/inheritance/IA.sol +0 -13
  359. package/contracts/experiment/inheritance/IB.sol +0 -10
  360. package/contracts/experiment/inheritance/IC.sol +0 -12
  361. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  362. package/contracts/experiment/statemachine/ISM.sol +0 -25
  363. package/contracts/experiment/statemachine/SM.sol +0 -57
  364. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  365. package/contracts/experiment/types/TypeA.sol +0 -47
  366. package/contracts/experiment/types/TypeB.sol +0 -29
  367. package/contracts/instance/AccessManagedSimple.sol +0 -115
  368. package/contracts/instance/AccessManagerSimple.sol +0 -692
  369. package/contracts/instance/IAccessManagerSimple.sol +0 -391
  370. package/contracts/instance/base/ComponentServiceBase.sol +0 -41
  371. package/contracts/instance/base/IInstanceBase.sol +0 -23
  372. package/contracts/instance/service/ComponentOwnerService.sol +0 -317
  373. package/contracts/instance/service/IComponentOwnerService.sol +0 -20
  374. package/contracts/shared/RegisterableUpgradable.sol +0 -16
@@ -7,129 +7,188 @@
7
7
  "inputs": [
8
8
  {
9
9
  "internalType": "address",
10
- "name": "registry",
10
+ "name": "authority",
11
11
  "type": "address"
12
- },
13
- {
14
- "internalType": "NftId",
15
- "name": "instanceNftId",
16
- "type": "uint96"
17
- },
12
+ }
13
+ ],
14
+ "name": "AccessManagedInvalidAuthority",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
18
19
  {
19
20
  "internalType": "address",
20
- "name": "token",
21
+ "name": "caller",
21
22
  "type": "address"
22
23
  },
23
24
  {
24
- "internalType": "bool",
25
- "name": "verifying",
26
- "type": "bool"
27
- },
25
+ "internalType": "uint32",
26
+ "name": "delay",
27
+ "type": "uint32"
28
+ }
29
+ ],
30
+ "name": "AccessManagedRequiredDelay",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
28
35
  {
29
- "components": [
30
- {
31
- "internalType": "UFixed",
32
- "name": "fractionalFee",
33
- "type": "uint256"
34
- },
35
- {
36
- "internalType": "uint256",
37
- "name": "fixedFee",
38
- "type": "uint256"
39
- }
40
- ],
41
- "internalType": "struct Fee",
42
- "name": "distributionFee",
43
- "type": "tuple"
44
- },
36
+ "internalType": "address",
37
+ "name": "caller",
38
+ "type": "address"
39
+ }
40
+ ],
41
+ "name": "AccessManagedUnauthorized",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
45
46
  {
46
47
  "internalType": "address",
47
- "name": "initialOwner",
48
+ "name": "target",
48
49
  "type": "address"
49
50
  }
50
51
  ],
51
- "stateMutability": "nonpayable",
52
- "type": "constructor"
52
+ "name": "AddressEmptyCode",
53
+ "type": "error"
53
54
  },
54
55
  {
55
56
  "inputs": [
56
57
  {
57
58
  "internalType": "address",
58
- "name": "registry",
59
+ "name": "account",
59
60
  "type": "address"
60
- },
61
+ }
62
+ ],
63
+ "name": "AddressInsufficientBalance",
64
+ "type": "error"
65
+ },
66
+ {
67
+ "inputs": [
68
+ {
69
+ "internalType": "address",
70
+ "name": "caller",
71
+ "type": "address"
72
+ }
73
+ ],
74
+ "name": "ErrorComponentNotChainNft",
75
+ "type": "error"
76
+ },
77
+ {
78
+ "inputs": [
61
79
  {
62
80
  "internalType": "NftId",
63
- "name": "nftId",
81
+ "name": "instanceNftId",
64
82
  "type": "uint96"
65
83
  }
66
84
  ],
67
- "name": "ErrorAlreadyLinked",
85
+ "name": "ErrorComponentNotInstance",
68
86
  "type": "error"
69
87
  },
70
88
  {
71
89
  "inputs": [
72
90
  {
73
91
  "internalType": "address",
74
- "name": "contractAddress",
92
+ "name": "caller",
75
93
  "type": "address"
76
94
  }
77
95
  ],
78
- "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",
79
112
  "type": "error"
80
113
  },
81
114
  {
82
115
  "inputs": [
83
116
  {
84
117
  "internalType": "address",
85
- "name": "account",
118
+ "name": "oldWallet",
119
+ "type": "address"
120
+ },
121
+ {
122
+ "internalType": "address",
123
+ "name": "newWallet",
86
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"
87
135
  }
88
136
  ],
89
- "name": "ErrorNotOwner",
137
+ "name": "ErrorComponentWalletAllowanceTooSmall",
90
138
  "type": "error"
91
139
  },
92
140
  {
93
141
  "inputs": [
94
142
  {
95
- "internalType": "address",
96
- "name": "registryAddress",
97
- "type": "address"
143
+ "internalType": "NftId",
144
+ "name": "nftId",
145
+ "type": "uint96"
98
146
  }
99
147
  ],
100
- "name": "ErrorNotRegistry",
148
+ "name": "ErrorNftOwnableAlreadyLinked",
101
149
  "type": "error"
102
150
  },
103
151
  {
104
152
  "inputs": [
105
153
  {
106
154
  "internalType": "address",
107
- "name": "registryAddress",
155
+ "name": "contractAddress",
108
156
  "type": "address"
109
157
  }
110
158
  ],
111
- "name": "ErrorRegisterableNotRegistry",
159
+ "name": "ErrorNftOwnableContractNotRegistered",
112
160
  "type": "error"
113
161
  },
114
162
  {
115
163
  "inputs": [],
116
- "name": "ErrorRegistryAddressZero",
164
+ "name": "ErrorNftOwnableInitialOwnerZero",
117
165
  "type": "error"
118
166
  },
119
167
  {
120
168
  "inputs": [
121
169
  {
122
170
  "internalType": "address",
123
- "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",
124
183
  "type": "address"
125
184
  }
126
185
  ],
127
- "name": "ErrorRegistryAlreadyInitialized",
186
+ "name": "ErrorNotRegistry",
128
187
  "type": "error"
129
188
  },
130
189
  {
131
190
  "inputs": [],
132
- "name": "ErrorRegistryNotInitialized",
191
+ "name": "FailedInnerCall",
133
192
  "type": "error"
134
193
  },
135
194
  {
@@ -142,6 +201,30 @@
142
201
  "name": "NotInitializing",
143
202
  "type": "error"
144
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
+ },
145
228
  {
146
229
  "anonymous": false,
147
230
  "inputs": [
@@ -155,9 +238,72 @@
155
238
  "name": "Initialized",
156
239
  "type": "event"
157
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
+ },
158
304
  {
159
305
  "inputs": [],
160
- "name": "REGISTERABLE_LOCATION_V1",
306
+ "name": "COMPONENT_LOCATION_V1",
161
307
  "outputs": [
162
308
  {
163
309
  "internalType": "bytes32",
@@ -169,24 +315,52 @@
169
315
  "type": "function"
170
316
  },
171
317
  {
172
- "inputs": [
318
+ "inputs": [],
319
+ "name": "DISTRIBUTION_STORAGE_LOCATION_V1",
320
+ "outputs": [
173
321
  {
174
- "internalType": "ReferralId",
175
- "name": "referralId",
176
- "type": "bytes8"
177
- },
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": [
178
334
  {
179
- "internalType": "uint256",
180
- "name": "netPremiumAmount",
181
- "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"
182
351
  }
183
352
  ],
184
- "name": "calculateFeeAmount",
353
+ "stateMutability": "view",
354
+ "type": "function"
355
+ },
356
+ {
357
+ "inputs": [],
358
+ "name": "authority",
185
359
  "outputs": [
186
360
  {
187
- "internalType": "uint256",
188
- "name": "feeAmount",
189
- "type": "uint256"
361
+ "internalType": "address",
362
+ "name": "",
363
+ "type": "address"
190
364
  }
191
365
  ],
192
366
  "stateMutability": "view",
@@ -217,20 +391,216 @@
217
391
  "type": "function"
218
392
  },
219
393
  {
220
- "inputs": [],
221
- "name": "getInitialInfo",
222
- "outputs": [
394
+ "inputs": [
223
395
  {
224
- "components": [
225
- {
226
- "internalType": "NftId",
227
- "name": "nftId",
228
- "type": "uint96"
229
- },
230
- {
231
- "internalType": "NftId",
232
- "name": "parentNftId",
233
- "type": "uint96"
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
+ {
601
+ "internalType": "NftId",
602
+ "name": "parentNftId",
603
+ "type": "uint96"
234
604
  },
235
605
  {
236
606
  "internalType": "ObjectType",
@@ -259,13 +629,47 @@
259
629
  }
260
630
  ],
261
631
  "internalType": "struct IRegistry.ObjectInfo",
262
- "name": "",
632
+ "name": "info",
263
633
  "type": "tuple"
264
- },
634
+ }
635
+ ],
636
+ "stateMutability": "view",
637
+ "type": "function"
638
+ },
639
+ {
640
+ "inputs": [],
641
+ "name": "getInstance",
642
+ "outputs": [
265
643
  {
266
- "internalType": "bytes",
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",
267
671
  "name": "",
268
- "type": "bytes"
672
+ "type": "uint96"
269
673
  }
270
674
  ],
271
675
  "stateMutability": "view",
@@ -273,7 +677,78 @@
273
677
  },
274
678
  {
275
679
  "inputs": [],
276
- "name": "getInitialSetupInfo",
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",
742
+ "name": "",
743
+ "type": "address"
744
+ }
745
+ ],
746
+ "stateMutability": "view",
747
+ "type": "function"
748
+ },
749
+ {
750
+ "inputs": [],
751
+ "name": "getSetupInfo",
277
752
  "outputs": [
278
753
  {
279
754
  "components": [
@@ -287,6 +762,23 @@
287
762
  "name": "tokenHandler",
288
763
  "type": "address"
289
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
+ },
290
782
  {
291
783
  "components": [
292
784
  {
@@ -305,162 +797,286 @@
305
797
  "type": "tuple"
306
798
  },
307
799
  {
308
- "internalType": "bool",
309
- "name": "isIntercepting",
310
- "type": "bool"
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"
311
937
  },
312
938
  {
313
- "internalType": "address",
314
- "name": "wallet",
315
- "type": "address"
939
+ "internalType": "uint256",
940
+ "name": "fixedFee",
941
+ "type": "uint256"
316
942
  }
317
943
  ],
318
- "internalType": "struct ISetup.DistributionSetupInfo",
319
- "name": "setupInfo",
944
+ "internalType": "struct Fee",
945
+ "name": "distributionFee",
320
946
  "type": "tuple"
321
- }
322
- ],
323
- "stateMutability": "view",
324
- "type": "function"
325
- },
326
- {
327
- "inputs": [],
328
- "name": "getInstance",
329
- "outputs": [
947
+ },
330
948
  {
331
- "internalType": "contract IInstance",
332
- "name": "instance",
949
+ "internalType": "address",
950
+ "name": "initialOwner",
333
951
  "type": "address"
952
+ },
953
+ {
954
+ "internalType": "bytes",
955
+ "name": "registryData",
956
+ "type": "bytes"
334
957
  }
335
958
  ],
336
- "stateMutability": "view",
959
+ "name": "initializeDistribution",
960
+ "outputs": [],
961
+ "stateMutability": "nonpayable",
337
962
  "type": "function"
338
963
  },
339
964
  {
340
965
  "inputs": [],
341
- "name": "getNftId",
342
- "outputs": [
343
- {
344
- "internalType": "NftId",
345
- "name": "",
346
- "type": "uint96"
347
- }
348
- ],
349
- "stateMutability": "view",
966
+ "name": "initializeERC165",
967
+ "outputs": [],
968
+ "stateMutability": "nonpayable",
350
969
  "type": "function"
351
970
  },
352
971
  {
353
- "inputs": [],
354
- "name": "getOwner",
355
- "outputs": [
972
+ "inputs": [
356
973
  {
357
974
  "internalType": "address",
358
- "name": "",
975
+ "name": "initialOwner",
976
+ "type": "address"
977
+ },
978
+ {
979
+ "internalType": "address",
980
+ "name": "registryAddress",
359
981
  "type": "address"
360
982
  }
361
983
  ],
362
- "stateMutability": "view",
984
+ "name": "initializeNftOwnable",
985
+ "outputs": [],
986
+ "stateMutability": "nonpayable",
363
987
  "type": "function"
364
988
  },
365
989
  {
366
- "inputs": [],
367
- "name": "getProductNftId",
368
- "outputs": [
990
+ "inputs": [
991
+ {
992
+ "internalType": "address",
993
+ "name": "registryAddress",
994
+ "type": "address"
995
+ },
369
996
  {
370
997
  "internalType": "NftId",
371
- "name": "productNftId",
998
+ "name": "parentNftId",
372
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"
373
1020
  }
374
1021
  ],
375
- "stateMutability": "view",
1022
+ "name": "initializeRegisterable",
1023
+ "outputs": [],
1024
+ "stateMutability": "nonpayable",
376
1025
  "type": "function"
377
1026
  },
378
1027
  {
379
- "inputs": [],
380
- "name": "getRegistry",
381
- "outputs": [
1028
+ "inputs": [
382
1029
  {
383
- "internalType": "contract IRegistry",
384
- "name": "",
1030
+ "internalType": "address",
1031
+ "name": "registryAddress",
385
1032
  "type": "address"
386
1033
  }
387
1034
  ],
388
- "stateMutability": "view",
1035
+ "name": "initializeRegistryLinked",
1036
+ "outputs": [],
1037
+ "stateMutability": "nonpayable",
389
1038
  "type": "function"
390
1039
  },
391
1040
  {
392
1041
  "inputs": [],
393
- "name": "getSetupInfo",
1042
+ "name": "isConsumingScheduledOp",
394
1043
  "outputs": [
395
1044
  {
396
- "components": [
397
- {
398
- "internalType": "NftId",
399
- "name": "productNftId",
400
- "type": "uint96"
401
- },
402
- {
403
- "internalType": "contract TokenHandler",
404
- "name": "tokenHandler",
405
- "type": "address"
406
- },
407
- {
408
- "components": [
409
- {
410
- "internalType": "UFixed",
411
- "name": "fractionalFee",
412
- "type": "uint256"
413
- },
414
- {
415
- "internalType": "uint256",
416
- "name": "fixedFee",
417
- "type": "uint256"
418
- }
419
- ],
420
- "internalType": "struct Fee",
421
- "name": "distributionFee",
422
- "type": "tuple"
423
- },
424
- {
425
- "internalType": "bool",
426
- "name": "isIntercepting",
427
- "type": "bool"
428
- },
429
- {
430
- "internalType": "address",
431
- "name": "wallet",
432
- "type": "address"
433
- }
434
- ],
435
- "internalType": "struct ISetup.DistributionSetupInfo",
436
- "name": "setupInfo",
437
- "type": "tuple"
1045
+ "internalType": "bytes4",
1046
+ "name": "",
1047
+ "type": "bytes4"
438
1048
  }
439
1049
  ],
440
1050
  "stateMutability": "view",
441
1051
  "type": "function"
442
1052
  },
443
1053
  {
444
- "inputs": [],
445
- "name": "getToken",
446
- "outputs": [
1054
+ "inputs": [
447
1055
  {
448
- "internalType": "contract IERC20Metadata",
449
- "name": "token",
1056
+ "internalType": "address",
1057
+ "name": "candidate",
450
1058
  "type": "address"
451
1059
  }
452
1060
  ],
1061
+ "name": "isDistributor",
1062
+ "outputs": [
1063
+ {
1064
+ "internalType": "bool",
1065
+ "name": "",
1066
+ "type": "bool"
1067
+ }
1068
+ ],
453
1069
  "stateMutability": "view",
454
1070
  "type": "function"
455
1071
  },
456
1072
  {
457
1073
  "inputs": [],
458
- "name": "getWallet",
1074
+ "name": "isNftInterceptor",
459
1075
  "outputs": [
460
1076
  {
461
- "internalType": "address",
462
- "name": "walletAddress",
463
- "type": "address"
1077
+ "internalType": "bool",
1078
+ "name": "isInterceptor",
1079
+ "type": "bool"
464
1080
  }
465
1081
  ],
466
1082
  "stateMutability": "view",
@@ -496,17 +1112,22 @@
496
1112
  {
497
1113
  "inputs": [
498
1114
  {
499
- "internalType": "ReferralId",
500
- "name": "referralId",
501
- "type": "bytes8"
1115
+ "internalType": "address",
1116
+ "name": "from",
1117
+ "type": "address"
1118
+ },
1119
+ {
1120
+ "internalType": "address",
1121
+ "name": "to",
1122
+ "type": "address"
502
1123
  },
503
1124
  {
504
1125
  "internalType": "uint256",
505
- "name": "feeAmount",
1126
+ "name": "tokenId",
506
1127
  "type": "uint256"
507
1128
  }
508
1129
  ],
509
- "name": "processRenewal",
1130
+ "name": "nftTransferFrom",
510
1131
  "outputs": [],
511
1132
  "stateMutability": "nonpayable",
512
1133
  "type": "function"
@@ -524,7 +1145,7 @@
524
1145
  "type": "uint256"
525
1146
  }
526
1147
  ],
527
- "name": "processSale",
1148
+ "name": "processRenewal",
528
1149
  "outputs": [],
529
1150
  "stateMutability": "nonpayable",
530
1151
  "type": "function"
@@ -532,24 +1153,48 @@
532
1153
  {
533
1154
  "inputs": [
534
1155
  {
535
- "internalType": "ReferralId",
536
- "name": "referralId",
537
- "type": "bytes8"
1156
+ "internalType": "bytes4",
1157
+ "name": "interfaceId",
1158
+ "type": "bytes4"
538
1159
  }
539
1160
  ],
540
- "name": "referralIsValid",
541
- "outputs": [
1161
+ "name": "registerInterface",
1162
+ "outputs": [],
1163
+ "stateMutability": "nonpayable",
1164
+ "type": "function"
1165
+ },
1166
+ {
1167
+ "inputs": [
542
1168
  {
543
- "internalType": "bool",
544
- "name": "isValid",
545
- "type": "bool"
1169
+ "internalType": "address",
1170
+ "name": "newAuthority",
1171
+ "type": "address"
546
1172
  }
547
1173
  ],
548
- "stateMutability": "view",
1174
+ "name": "setAuthority",
1175
+ "outputs": [],
1176
+ "stateMutability": "nonpayable",
549
1177
  "type": "function"
550
1178
  },
551
1179
  {
552
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
+ },
553
1198
  {
554
1199
  "components": [
555
1200
  {
@@ -586,6 +1231,19 @@
586
1231
  "stateMutability": "nonpayable",
587
1232
  "type": "function"
588
1233
  },
1234
+ {
1235
+ "inputs": [
1236
+ {
1237
+ "internalType": "address",
1238
+ "name": "newWallet",
1239
+ "type": "address"
1240
+ }
1241
+ ],
1242
+ "name": "setWallet",
1243
+ "outputs": [],
1244
+ "stateMutability": "nonpayable",
1245
+ "type": "function"
1246
+ },
589
1247
  {
590
1248
  "inputs": [
591
1249
  {
@@ -611,60 +1269,33 @@
611
1269
  "outputs": [],
612
1270
  "stateMutability": "nonpayable",
613
1271
  "type": "function"
614
- }
615
- ],
616
- "bytecode": "0x60806040523480156200001157600080fd5b5060405162001e2338038062001e23833981016040819052620000349162000738565b85858560786001856200006d6301ffc9a760e01b600090815260205260008051602062001e03833981519152805460ff19166001179055565b600280546001600160a01b031916331790556040805160208101909152600081526200009e878786868686620003d7565b6000620000b36001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03891660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa15801562000103573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200012d9190810190620008a1565b6080810151600780546001600160a01b0319166001600160a01b0390921691821790556040516301ffc9a760e01b8152639f07a2f160e01b6004820152919250906301ffc9a790602401602060405180830381865afa15801562000195573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001bb919062000987565b620001e75760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b600760009054906101000a90046001600160a01b03166001600160a01b0316636fa298536040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200023b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002619190620009ac565b600380546001600160a01b03199081166001600160a01b0393841617909155600580543090831617905560068054909116918816919091179055634c0cba3d60e11b60009081526020527f8605f84a1fdbc6ff75d8a06315d161884729b429561b502d19c5a33135142c3a805460ff191660011790555050600a805460ff19168a1515179055505085516008555050506020808401516009556007546040805163329802c760e21b815290516001600160a01b03909216935063ca600b1c9260048083019391928290030181865afa15801562000342573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003689190620009ac565b600a80546001600160a01b039290921661010002610100600160a81b03199092169190911790556346956fbb60e01b60009081526020527fde8a87bec5ec8de928fbf3ef0018bfc89cfb626a8f5b139f23c48d93c5c755f4805460ff1916600117905550505050505062000b27565b620004086301ffc9a760e01b600090815260205260008051602062001e03833981519152805460ff19166001179055565b620004148287620004d9565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166001600160681b0319909116176c0100000000000000000000000060ff8816021760ff60681b19166d01000000000000000000000000008615150217815590506001810162000493838262000a5b565b506303fb044760e21b60009081526020527fb43e4f3791bfcdefa3a0fbe2a5555f8d6490b90e01de0ff40c66f18b49b562c5805460ff1916600117905550505050505050565b600280546001600160a01b0319166001600160a01b038416179055620004ff8162000503565b5050565b6001546001600160a01b0316156200053e5760015460405163fcdbf2d960e01b81526001600160a01b039091166004820152602401620001de565b6001600160a01b038116620005665760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b6000036200059e5760405163fdeac91f60e01b81526001600160a01b0382166004820152602401620001de565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b815263e14a543960e01b60048201526301ffc9a790602401602060405180830381865afa9250505080156200061b575060408051601f3d908101601f19168201909252620006189181019062000987565b60015b620006455760405163fdeac91f60e01b81526001600160a01b0382166004820152602401620001de565b80620004ff5760405163fdeac91f60e01b81526001600160a01b0383166004820152602401620001de565b50565b6001600160a01b03811681146200067057600080fd5b8051620006968162000673565b919050565b80516001600160601b03811681146200069657600080fd5b805180151581146200069657600080fd5b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b0381118282101715620006ff57620006ff620006c4565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620007305762000730620006c4565b604052919050565b60008060008060008086880360e08112156200075357600080fd5b8751620007608162000673565b965062000770602089016200069b565b95506040880151620007828162000673565b94506200079260608901620006b3565b93506040607f1982011215620007a757600080fd5b50604080519081016001600160401b0381118282101715620007cd57620007cd620006c4565b6040526080880151815260a0880151602082015260c0880151909250620007f48162000673565b809150509295509295509295565b805160ff811681146200069657600080fd5b600082601f8301126200082657600080fd5b81516001600160401b03811115620008425762000842620006c4565b602062000858601f8301601f1916820162000705565b82815285828487010111156200086d57600080fd5b60005b838110156200088d57858101830151828201840152820162000870565b506000928101909101919091529392505050565b600060208284031215620008b457600080fd5b81516001600160401b0380821115620008cc57600080fd5b9083019060e08286031215620008e157600080fd5b620008eb620006da565b620008f6836200069b565b815262000906602084016200069b565b6020820152620009196040840162000802565b60408201526200092c60608401620006b3565b60608201526200093f6080840162000689565b60808201526200095260a0840162000689565b60a082015260c0830151828111156200096a57600080fd5b620009788782860162000814565b60c08301525095945050505050565b6000602082840312156200099a57600080fd5b620009a582620006b3565b9392505050565b600060208284031215620009bf57600080fd5b8151620009a58162000673565b600181811c90821680620009e157607f821691505b60208210810362000a0257634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000a5657600081815260208120601f850160051c8101602086101562000a315750805b601f850160051c820191505b8181101562000a525782815560010162000a3d565b5050505b505050565b81516001600160401b0381111562000a775762000a77620006c4565b62000a8f8162000a888454620009cc565b8462000a08565b602080601f83116001811462000ac7576000841562000aae5750858301515b600019600386901b1c1916600185901b17855562000a52565b600085815260208120601f198616915b8281101562000af85788860151825594840194600190910190840162000ad7565b508582101562000b175787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6112cc8062000b376000396000f3fe608060405234801561001057600080fd5b506004361061014c5760003560e01c8063644c45e0116100c3578063d16d0fe81161007c578063d16d0fe814610336578063de7b5d1414610349578063e21475671461035a578063f7d39dea1461036e578063f80e207214610270578063f83d08ba1461038157600080fd5b8063644c45e01461029457806387ef9ba0146102ac578063893d20e8146102b75780638e7ff97e146102bf578063a69df4b514610326578063c200b8091461032e57600080fd5b80631eff4b22116101155780631eff4b221461020457806321df0da7146102395780632a65c6881461024a5780633f52c0f61461025d5780634cf30a84146102705780635ab1bd531461028357600080fd5b806251884a1461015157806301ffc9a7146101825780630fec111c146101bf57806313299604146101d5578063138461e0146101fa575b600080fd5b600754600160a01b90046001600160601b03165b6040516001600160601b0390911681526020015b60405180910390f35b6101af610190366004610e95565b6001600160e01b03191660009081526020819052604090205460ff1690565b6040519015158152602001610179565b6101c7610389565b604051610179929190610f0c565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610179565b610202610410565b005b61022b7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610179565b6006546001600160a01b03166101e2565b610202610258366004610fcb565b610632565b61020261026b36600461101f565b610794565b61020261027e36600461106e565b6107fd565b6001546001600160a01b03166101e2565b600154600160a01b90046001600160601b0316610165565b600a5460ff166101af565b6101e2610865565b6102c7610983565b6040805182516001600160601b031681526020808401516001600160a01b0390811682840152848401518051948401949094529201516060808301919091528301511515608080830191909152909201511660a082015260c001610179565b6102026109f3565b6102c7610a70565b61022b61034436600461106e565b610b7f565b6007546001600160a01b03166101e2565b6101af610368366004611098565b50600090565b61022b61037c36600461106e565b610b94565b610202610c36565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c082018190529091806103cd610cb3565b50600a546040805160085460208201526009548183015260ff90921615156060808401919091528151808403909101815260809092019052909590945092505050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610472573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049691906110c3565b156104dd576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b03166105065760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa15801561054f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057391906110c3565b61059b576040516372657a5160e01b81526001600160a01b03821660048201526024016104d4565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa1580156105e5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060991906110de565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b600061063c610865565b90506001600160a01b0381161580159061065f5750336001600160a01b03821614155b1561067f5760405163700dd81160e01b81523360048201526024016104d4565b60075473__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__9063c4cade9d90600160a01b90046001600160601b031660006040516001600160e01b031960e085901b1681526001600160601b03928316600482015291166024820152604401602060405180830381865af41580156106fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071f91906110c3565b61076b5760405162461bcd60e51b815260206004820152601a60248201527f70726f64756374206e667420696420616c72656164792073657400000000000060448201526064016104d4565b50600780546001600160601b03909216600160a01b026001600160a01b03909216919091179055565b600a54604051631fa9607b60e11b81526101009091046001600160a01b031690633f52c0f6906107c89084906004016110fb565b600060405180830381600087803b1580156107e257600080fd5b505af11580156107f6573d6000803e3d6000fd5b5050505050565b600b546001600160a01b031633146108615760405162461bcd60e51b815260206004820152602160248201527f4552524f523a504f4c2d3030323a4e4f545f50524f445543545f5345525649436044820152604560f81b60648201526084016104d4565b5050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156108ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ee91906110c3565b1561097357600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa15801561094a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061096e9190611132565b905090565b506002546001600160a01b031690565b61098b610e39565b506040805160a081018252600754600160a01b90046001600160601b031681526006546001600160a01b03166020808301919091528251808401845260085481526009549181019190915291810191909152600a5460ff161515606082015230608082015290565b60006109fd610865565b90506001600160a01b03811615801590610a205750336001600160a01b03821614155b15610a405760405163700dd81160e01b81523360048201526024016104d4565b600354604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024016107c8565b610a78610e39565b600754604080516302cd307160e01b815290516000926001600160a01b0316916302cd30719160048083019260209291908290030181865afa158015610ac2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae69190611132565b9050806001600160a01b0316639ad69c67610b116001546001600160601b03600160a01b9091041690565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240160c060405180830381865afa158015610b55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b79919061114f565b91505090565b6000610b8b8282611213565b90505b92915050565b600080610b9f610a70565b604081810151905163012ebd8360e21b81528151600482015260208201516024820152604481018690529192509073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af4158015610c08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2c9190611238565b5095945050505050565b6000610c40610865565b90506001600160a01b03811615801590610c635750336001600160a01b03821614155b15610c835760405163700dd81160e01b81523360048201526024016104d4565b60035460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a7906024016107c8565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c0810191909152606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e00160405280610d3a6001546001600160601b03600160a01b9091041690565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a001610d82610865565b6001600160a01b03168152602001826001018054610d9f9061125c565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcb9061125c565b8015610e185780601f10610ded57610100808354040283529160200191610e18565b820191906000526020600020905b815481529060010190602001808311610dfb57829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6040518060a0016040528060006001600160601b0316815260200160006001600160a01b03168152602001610e81604051806040016040528060008152602001600081525090565b815260006020820181905260409091015290565b600060208284031215610ea757600080fd5b81356001600160e01b031981168114610ebf57600080fd5b9392505050565b6000815180845260005b81811015610eec57602081850181015186830182015201610ed0565b506000602082860101526020601f19601f83011685010191505092915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff60408501511660808301526060840151610f5060a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e0610100840152610f96610120840182610ec6565b90508281036020840152610faa8185610ec6565b95945050505050565b6001600160601b0381168114610fc857600080fd5b50565b600060208284031215610fdd57600080fd5b8135610ebf81610fb3565b6040805190810167ffffffffffffffff8111828210171561101957634e487b7160e01b600052604160045260246000fd5b60405290565b60006040828403121561103157600080fd5b611039610fe8565b82358152602083013560208201528091505092915050565b80356001600160c01b03198116811461106957600080fd5b919050565b6000806040838503121561108157600080fd5b61108a83611051565b946020939093013593505050565b6000602082840312156110aa57600080fd5b610b8b82611051565b8051801515811461106957600080fd5b6000602082840312156110d557600080fd5b610b8b826110b3565b6000602082840312156110f057600080fd5b8151610ebf81610fb3565b815181526020808301519082015260408101610b8e565b6001600160a01b0381168114610fc857600080fd5b805161106981611112565b60006020828403121561114457600080fd5b8151610ebf81611112565b600081830360c081121561116257600080fd5b60405160a0810181811067ffffffffffffffff8211171561119357634e487b7160e01b600052604160045260246000fd5b60405283516111a181610fb3565b815260208401516111b181611112565b60208201526040603f19830112156111c857600080fd5b6111d0610fe8565b915060408401518252606084015160208301528160408201526111f5608085016110b3565b606082015261120660a08501611127565b6080820152949350505050565b8082028115828204841417610b8e57634e487b7160e01b600052601160045260246000fd5b6000806040838503121561124b57600080fd5b505080516020909101519092909150565b600181811c9082168061127057607f821691505b60208210810361129057634e487b7160e01b600052602260045260246000fd5b5091905056fea26469706673582212205c26195d51d542a1602a64b2d07da001709acfecc1e9be22f45be5c34dd83ebe64736f6c6343000814003367be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5",
617
- "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061014c5760003560e01c8063644c45e0116100c3578063d16d0fe81161007c578063d16d0fe814610336578063de7b5d1414610349578063e21475671461035a578063f7d39dea1461036e578063f80e207214610270578063f83d08ba1461038157600080fd5b8063644c45e01461029457806387ef9ba0146102ac578063893d20e8146102b75780638e7ff97e146102bf578063a69df4b514610326578063c200b8091461032e57600080fd5b80631eff4b22116101155780631eff4b221461020457806321df0da7146102395780632a65c6881461024a5780633f52c0f61461025d5780634cf30a84146102705780635ab1bd531461028357600080fd5b806251884a1461015157806301ffc9a7146101825780630fec111c146101bf57806313299604146101d5578063138461e0146101fa575b600080fd5b600754600160a01b90046001600160601b03165b6040516001600160601b0390911681526020015b60405180910390f35b6101af610190366004610e95565b6001600160e01b03191660009081526020819052604090205460ff1690565b6040519015158152602001610179565b6101c7610389565b604051610179929190610f0c565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610179565b610202610410565b005b61022b7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610179565b6006546001600160a01b03166101e2565b610202610258366004610fcb565b610632565b61020261026b36600461101f565b610794565b61020261027e36600461106e565b6107fd565b6001546001600160a01b03166101e2565b600154600160a01b90046001600160601b0316610165565b600a5460ff166101af565b6101e2610865565b6102c7610983565b6040805182516001600160601b031681526020808401516001600160a01b0390811682840152848401518051948401949094529201516060808301919091528301511515608080830191909152909201511660a082015260c001610179565b6102026109f3565b6102c7610a70565b61022b61034436600461106e565b610b7f565b6007546001600160a01b03166101e2565b6101af610368366004611098565b50600090565b61022b61037c36600461106e565b610b94565b610202610c36565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c082018190529091806103cd610cb3565b50600a546040805160085460208201526009548183015260ff90921615156060808401919091528151808403909101815260809092019052909590945092505050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610472573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049691906110c3565b156104dd576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b03166105065760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa15801561054f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057391906110c3565b61059b576040516372657a5160e01b81526001600160a01b03821660048201526024016104d4565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa1580156105e5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060991906110de565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b600061063c610865565b90506001600160a01b0381161580159061065f5750336001600160a01b03821614155b1561067f5760405163700dd81160e01b81523360048201526024016104d4565b60075473__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__9063c4cade9d90600160a01b90046001600160601b031660006040516001600160e01b031960e085901b1681526001600160601b03928316600482015291166024820152604401602060405180830381865af41580156106fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071f91906110c3565b61076b5760405162461bcd60e51b815260206004820152601a60248201527f70726f64756374206e667420696420616c72656164792073657400000000000060448201526064016104d4565b50600780546001600160601b03909216600160a01b026001600160a01b03909216919091179055565b600a54604051631fa9607b60e11b81526101009091046001600160a01b031690633f52c0f6906107c89084906004016110fb565b600060405180830381600087803b1580156107e257600080fd5b505af11580156107f6573d6000803e3d6000fd5b5050505050565b600b546001600160a01b031633146108615760405162461bcd60e51b815260206004820152602160248201527f4552524f523a504f4c2d3030323a4e4f545f50524f445543545f5345525649436044820152604560f81b60648201526084016104d4565b5050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156108ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ee91906110c3565b1561097357600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa15801561094a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061096e9190611132565b905090565b506002546001600160a01b031690565b61098b610e39565b506040805160a081018252600754600160a01b90046001600160601b031681526006546001600160a01b03166020808301919091528251808401845260085481526009549181019190915291810191909152600a5460ff161515606082015230608082015290565b60006109fd610865565b90506001600160a01b03811615801590610a205750336001600160a01b03821614155b15610a405760405163700dd81160e01b81523360048201526024016104d4565b600354604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024016107c8565b610a78610e39565b600754604080516302cd307160e01b815290516000926001600160a01b0316916302cd30719160048083019260209291908290030181865afa158015610ac2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae69190611132565b9050806001600160a01b0316639ad69c67610b116001546001600160601b03600160a01b9091041690565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240160c060405180830381865afa158015610b55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b79919061114f565b91505090565b6000610b8b8282611213565b90505b92915050565b600080610b9f610a70565b604081810151905163012ebd8360e21b81528151600482015260208201516024820152604481018690529192509073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af4158015610c08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2c9190611238565b5095945050505050565b6000610c40610865565b90506001600160a01b03811615801590610c635750336001600160a01b03821614155b15610c835760405163700dd81160e01b81523360048201526024016104d4565b60035460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a7906024016107c8565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c0810191909152606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e00160405280610d3a6001546001600160601b03600160a01b9091041690565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a001610d82610865565b6001600160a01b03168152602001826001018054610d9f9061125c565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcb9061125c565b8015610e185780601f10610ded57610100808354040283529160200191610e18565b820191906000526020600020905b815481529060010190602001808311610dfb57829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6040518060a0016040528060006001600160601b0316815260200160006001600160a01b03168152602001610e81604051806040016040528060008152602001600081525090565b815260006020820181905260409091015290565b600060208284031215610ea757600080fd5b81356001600160e01b031981168114610ebf57600080fd5b9392505050565b6000815180845260005b81811015610eec57602081850181015186830182015201610ed0565b506000602082860101526020601f19601f83011685010191505092915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff60408501511660808301526060840151610f5060a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e0610100840152610f96610120840182610ec6565b90508281036020840152610faa8185610ec6565b95945050505050565b6001600160601b0381168114610fc857600080fd5b50565b600060208284031215610fdd57600080fd5b8135610ebf81610fb3565b6040805190810167ffffffffffffffff8111828210171561101957634e487b7160e01b600052604160045260246000fd5b60405290565b60006040828403121561103157600080fd5b611039610fe8565b82358152602083013560208201528091505092915050565b80356001600160c01b03198116811461106957600080fd5b919050565b6000806040838503121561108157600080fd5b61108a83611051565b946020939093013593505050565b6000602082840312156110aa57600080fd5b610b8b82611051565b8051801515811461106957600080fd5b6000602082840312156110d557600080fd5b610b8b826110b3565b6000602082840312156110f057600080fd5b8151610ebf81610fb3565b815181526020808301519082015260408101610b8e565b6001600160a01b0381168114610fc857600080fd5b805161106981611112565b60006020828403121561114457600080fd5b8151610ebf81611112565b600081830360c081121561116257600080fd5b60405160a0810181811067ffffffffffffffff8211171561119357634e487b7160e01b600052604160045260246000fd5b60405283516111a181610fb3565b815260208401516111b181611112565b60208201526040603f19830112156111c857600080fd5b6111d0610fe8565b915060408401518252606084015160208301528160408201526111f5608085016110b3565b606082015261120660a08501611127565b6080820152949350505050565b8082028115828204841417610b8e57634e487b7160e01b600052601160045260246000fd5b6000806040838503121561124b57600080fd5b505080516020909101519092909150565b600181811c9082168061127057607f821691505b60208210810361129057634e487b7160e01b600052602260045260246000fd5b5091905056fea26469706673582212205c26195d51d542a1602a64b2d07da001709acfecc1e9be22f45be5c34dd83ebe64736f6c63430008140033",
618
- "linkReferences": {
619
- "contracts/types/Fee.sol": {
620
- "FeeLib": [
621
- {
622
- "length": 20,
623
- "start": 5894
624
- }
625
- ]
626
- },
627
- "contracts/types/NftId.sol": {
628
- "NftIdLib": [
629
- {
630
- "length": 20,
631
- "start": 3951
632
- },
633
- {
634
- "length": 20,
635
- "start": 4539
636
- },
637
- {
638
- "length": 20,
639
- "start": 5063
640
- }
641
- ]
642
- }
643
- },
644
- "deployedLinkReferences": {
645
- "contracts/types/Fee.sol": {
646
- "FeeLib": [
647
- {
648
- "length": 20,
649
- "start": 3023
650
- }
651
- ]
652
1272
  },
653
- "contracts/types/NftId.sol": {
654
- "NftIdLib": [
1273
+ {
1274
+ "inputs": [
655
1275
  {
656
- "length": 20,
657
- "start": 1080
1276
+ "internalType": "NftId",
1277
+ "name": "distributorNftId",
1278
+ "type": "uint96"
658
1279
  },
659
1280
  {
660
- "length": 20,
661
- "start": 1668
1281
+ "internalType": "DistributorType",
1282
+ "name": "distributorType",
1283
+ "type": "bytes8"
662
1284
  },
663
1285
  {
664
- "length": 20,
665
- "start": 2192
1286
+ "internalType": "bytes",
1287
+ "name": "data",
1288
+ "type": "bytes"
666
1289
  }
667
- ]
1290
+ ],
1291
+ "name": "updateDistributorType",
1292
+ "outputs": [],
1293
+ "stateMutability": "nonpayable",
1294
+ "type": "function"
668
1295
  }
669
- }
1296
+ ],
1297
+ "bytecode": "0x",
1298
+ "deployedBytecode": "0x",
1299
+ "linkReferences": {},
1300
+ "deployedLinkReferences": {}
670
1301
  }