@etherisc/gif-next 0.0.2-e9148e0-933 → 0.0.2-e922e07-736

Sign up to get free protection for your applications and to get access to all the features.
Files changed (352) 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 +774 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +879 -236
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → components/IComponent.sol/IComponent.json} +164 -159
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +689 -30
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +838 -58
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +524 -9
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +950 -281
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +568 -188
  18. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  19. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +764 -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 +1912 -421
  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 +901 -1127
  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 +126 -159
  32. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  33. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +420 -305
  34. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  35. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +297 -112
  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/instance/base/{ComponentServiceBase.sol/ComponentServiceBase.json → ComponentService.sol/ComponentService.json} +189 -177
  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 +2 -2
  44. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  45. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +2 -2
  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/IDistribution.sol/IDistribution.dbg.json +1 -1
  50. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  51. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  52. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  53. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  54. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  55. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +968 -0
  56. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  57. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +665 -0
  58. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  59. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1096 -0
  60. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  61. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +661 -0
  62. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
  63. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +754 -0
  64. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  65. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +637 -0
  66. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  67. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1221 -213
  68. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  69. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +436 -79
  70. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  71. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +556 -0
  72. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  73. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +633 -0
  74. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
  75. package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IClaimService.sol/IClaimService.json} +150 -207
  76. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  77. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +727 -160
  78. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  79. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +540 -0
  80. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  81. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +37 -251
  82. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  83. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +47 -414
  84. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  85. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1021 -0
  86. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  87. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +689 -0
  88. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  89. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +209 -321
  90. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  91. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +296 -95
  92. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  93. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +218 -499
  94. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
  95. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +299 -98
  96. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  97. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +2 -2
  98. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  99. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +242 -131
  100. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  101. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +158 -215
  102. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  103. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  104. package/artifacts/contracts/registry/Registry.sol/Registry.json +256 -226
  105. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  106. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  107. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  108. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +202 -318
  109. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  110. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +298 -141
  111. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  112. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
  113. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  114. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +141 -53
  115. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  116. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  117. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
  118. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  119. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +40 -29
  120. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  121. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +129 -0
  122. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  123. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +21 -34
  124. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  125. package/artifacts/contracts/{experiment/inheritance/IB.sol/IB.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +18 -20
  126. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  127. package/artifacts/contracts/shared/IService.sol/IService.json +31 -183
  128. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  129. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -152
  130. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  131. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +120 -27
  132. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  133. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +248 -0
  134. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  135. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +294 -61
  136. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  137. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +129 -51
  138. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  139. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +84 -0
  140. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  141. package/artifacts/contracts/shared/Service.sol/Service.json +127 -170
  142. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  143. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  144. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  145. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  146. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -152
  147. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  148. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  149. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +129 -51
  150. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  151. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  152. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  153. package/artifacts/contracts/test/TestService.sol/TestService.json +148 -227
  154. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  155. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  156. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  157. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +8 -190
  158. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  159. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  160. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  161. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  162. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  163. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +100 -0
  164. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  165. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
  166. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  167. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  168. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
  169. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  170. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  171. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  172. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  173. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  174. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  175. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  176. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  177. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +100 -0
  178. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  179. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +23 -4
  180. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  181. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  182. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  183. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  184. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
  185. package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
  186. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  187. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  188. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +25 -7
  189. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  190. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  191. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  192. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  193. package/contracts/components/Component.sol +221 -0
  194. package/contracts/components/Distribution.sol +200 -79
  195. package/contracts/components/IComponent.sol +68 -0
  196. package/contracts/components/IDistributionComponent.sol +44 -17
  197. package/contracts/components/IPoolComponent.sol +126 -37
  198. package/contracts/components/IProductComponent.sol +10 -5
  199. package/contracts/components/Pool.sol +288 -152
  200. package/contracts/components/Product.sol +124 -119
  201. package/contracts/instance/BundleManager.sol +125 -0
  202. package/contracts/instance/Cloneable.sol +46 -0
  203. package/contracts/instance/IInstance.sol +56 -5
  204. package/contracts/instance/IInstanceService.sol +33 -4
  205. package/contracts/instance/Instance.sol +109 -261
  206. package/contracts/instance/InstanceAccessManager.sol +87 -78
  207. package/contracts/instance/InstanceReader.sol +12 -25
  208. package/contracts/instance/InstanceService.sol +401 -104
  209. package/contracts/instance/InstanceServiceManager.sol +6 -9
  210. package/contracts/instance/ObjectManager.sol +84 -0
  211. package/contracts/instance/base/ComponentService.sol +134 -0
  212. package/contracts/instance/module/IAccess.sol +27 -18
  213. package/contracts/instance/module/IBundle.sol +2 -1
  214. package/contracts/instance/module/IDistribution.sol +2 -0
  215. package/contracts/instance/module/IPolicy.sol +30 -3
  216. package/contracts/instance/module/ISetup.sol +12 -10
  217. package/contracts/instance/service/ApplicationService.sol +349 -0
  218. package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
  219. package/contracts/instance/service/BundleService.sol +299 -0
  220. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  221. package/contracts/instance/service/ClaimService.sol +151 -0
  222. package/contracts/instance/service/ClaimServiceManager.sol +35 -0
  223. package/contracts/instance/service/DistributionService.sol +390 -28
  224. package/contracts/instance/service/DistributionServiceManager.sol +7 -10
  225. package/contracts/instance/service/IApplicationService.sol +82 -0
  226. package/contracts/instance/service/IBundleService.sol +55 -0
  227. package/contracts/instance/service/IClaimService.sol +61 -0
  228. package/contracts/instance/service/IDistributionService.sol +86 -0
  229. package/contracts/instance/service/IPolicyService.sol +72 -0
  230. package/contracts/instance/service/IPoolService.sol +6 -23
  231. package/contracts/instance/service/IProductService.sol +6 -73
  232. package/contracts/instance/service/PolicyService.sol +394 -0
  233. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  234. package/contracts/instance/service/PoolService.sol +38 -123
  235. package/contracts/instance/service/PoolServiceManager.sol +6 -9
  236. package/contracts/instance/service/ProductService.sol +133 -448
  237. package/contracts/instance/service/ProductServiceManager.sol +2 -2
  238. package/contracts/registry/ChainNft.sol +1 -1
  239. package/contracts/registry/IRegistry.sol +39 -19
  240. package/contracts/registry/IRegistryService.sol +30 -13
  241. package/contracts/registry/Registry.sol +236 -216
  242. package/contracts/registry/RegistryAccessManager.sol +216 -0
  243. package/contracts/registry/RegistryService.sol +96 -171
  244. package/contracts/registry/RegistryServiceManager.sol +21 -39
  245. package/contracts/registry/ReleaseManager.sol +322 -0
  246. package/contracts/registry/TokenRegistry.sol +22 -17
  247. package/contracts/shared/ERC165.sol +14 -12
  248. package/contracts/shared/INftOwnable.sol +11 -10
  249. package/contracts/shared/IPolicyHolder.sol +26 -0
  250. package/contracts/shared/IRegisterable.sol +4 -6
  251. package/contracts/shared/IRegistryLinked.sol +12 -0
  252. package/contracts/shared/IService.sol +4 -1
  253. package/contracts/shared/IVersionable.sol +4 -47
  254. package/contracts/shared/NftOwnable.sol +66 -80
  255. package/contracts/shared/PolicyHolder.sol +81 -0
  256. package/contracts/shared/ProxyManager.sol +100 -25
  257. package/contracts/shared/Registerable.sol +16 -32
  258. package/contracts/shared/RegistryLinked.sol +48 -0
  259. package/contracts/shared/Service.sol +25 -22
  260. package/contracts/shared/Versionable.sol +4 -92
  261. package/contracts/test/TestRegisterable.sol +1 -1
  262. package/contracts/test/TestService.sol +4 -3
  263. package/contracts/types/ClaimId.sol +52 -0
  264. package/contracts/types/DistributorType.sol +2 -2
  265. package/contracts/types/NftIdSet.sol +26 -24
  266. package/contracts/types/ObjectType.sol +9 -5
  267. package/contracts/types/PayoutId.sol +54 -0
  268. package/contracts/types/Referral.sol +4 -0
  269. package/contracts/types/RoleId.sol +19 -14
  270. package/contracts/types/Seconds.sol +54 -0
  271. package/contracts/types/Timestamp.sol +12 -13
  272. package/package.json +3 -3
  273. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  274. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -327
  275. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  276. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -280
  277. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +0 -4
  278. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +0 -66
  279. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +0 -4
  280. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +0 -24
  281. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +0 -4
  282. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +0 -42
  283. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  284. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  285. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  286. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  287. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  288. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  289. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  290. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  291. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  292. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  293. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  294. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  295. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  296. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  297. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  298. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +0 -37
  299. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  300. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  301. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  302. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  303. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  304. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  305. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  306. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  307. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  308. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  309. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  310. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  311. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  312. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  313. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  314. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  315. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +0 -10
  316. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
  317. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
  318. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1132
  319. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
  320. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
  321. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  322. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  323. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
  324. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  325. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -827
  326. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  327. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
  328. package/contracts/components/BaseComponent.sol +0 -91
  329. package/contracts/components/IBaseComponent.sol +0 -25
  330. package/contracts/experiment/cloning/Cloner.sol +0 -47
  331. package/contracts/experiment/errors/Require.sol +0 -38
  332. package/contracts/experiment/errors/Revert.sol +0 -44
  333. package/contracts/experiment/inheritance/A.sol +0 -53
  334. package/contracts/experiment/inheritance/B.sol +0 -28
  335. package/contracts/experiment/inheritance/C.sol +0 -34
  336. package/contracts/experiment/inheritance/IA.sol +0 -13
  337. package/contracts/experiment/inheritance/IB.sol +0 -10
  338. package/contracts/experiment/inheritance/IC.sol +0 -12
  339. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  340. package/contracts/experiment/statemachine/ISM.sol +0 -25
  341. package/contracts/experiment/statemachine/SM.sol +0 -57
  342. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  343. package/contracts/experiment/types/TypeA.sol +0 -47
  344. package/contracts/experiment/types/TypeB.sol +0 -29
  345. package/contracts/instance/AccessManagedSimple.sol +0 -115
  346. package/contracts/instance/AccessManagerSimple.sol +0 -692
  347. package/contracts/instance/IAccessManagerSimple.sol +0 -391
  348. package/contracts/instance/base/ComponentServiceBase.sol +0 -124
  349. package/contracts/instance/base/IInstanceBase.sol +0 -23
  350. package/contracts/instance/service/ComponentOwnerService.sol +0 -317
  351. package/contracts/instance/service/IComponentOwnerService.sol +0 -20
  352. 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,176 @@
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
+ {
484
+ "internalType": "string",
485
+ "name": "referralCode",
486
+ "type": "string"
487
+ }
488
+ ],
489
+ "name": "getDiscountPercentage",
490
+ "outputs": [
491
+ {
492
+ "internalType": "UFixed",
493
+ "name": "discountPercentage",
494
+ "type": "uint256"
495
+ },
496
+ {
497
+ "internalType": "ReferralStatus",
498
+ "name": "status",
499
+ "type": "uint8"
500
+ }
501
+ ],
502
+ "stateMutability": "view",
503
+ "type": "function"
504
+ },
505
+ {
506
+ "inputs": [],
507
+ "name": "getDistributionFee",
508
+ "outputs": [
509
+ {
510
+ "components": [
511
+ {
512
+ "internalType": "UFixed",
513
+ "name": "fractionalFee",
514
+ "type": "uint256"
515
+ },
516
+ {
517
+ "internalType": "uint256",
518
+ "name": "fixedFee",
519
+ "type": "uint256"
520
+ }
521
+ ],
522
+ "internalType": "struct Fee",
523
+ "name": "distributionFee",
524
+ "type": "tuple"
525
+ }
526
+ ],
527
+ "stateMutability": "view",
528
+ "type": "function"
529
+ },
530
+ {
531
+ "inputs": [
532
+ {
533
+ "internalType": "address",
534
+ "name": "distributor",
535
+ "type": "address"
536
+ }
537
+ ],
538
+ "name": "getDistributorNftId",
539
+ "outputs": [
540
+ {
541
+ "internalType": "NftId",
542
+ "name": "distributorNftId",
543
+ "type": "uint96"
544
+ }
545
+ ],
546
+ "stateMutability": "view",
547
+ "type": "function"
548
+ },
549
+ {
550
+ "inputs": [],
551
+ "name": "getInitialInfo",
552
+ "outputs": [
553
+ {
554
+ "components": [
555
+ {
556
+ "internalType": "NftId",
557
+ "name": "nftId",
558
+ "type": "uint96"
559
+ },
560
+ {
561
+ "internalType": "NftId",
562
+ "name": "parentNftId",
563
+ "type": "uint96"
234
564
  },
235
565
  {
236
566
  "internalType": "ObjectType",
@@ -248,154 +578,452 @@
248
578
  "type": "address"
249
579
  },
250
580
  {
251
- "internalType": "address",
252
- "name": "initialOwner",
253
- "type": "address"
581
+ "internalType": "address",
582
+ "name": "initialOwner",
583
+ "type": "address"
584
+ },
585
+ {
586
+ "internalType": "bytes",
587
+ "name": "data",
588
+ "type": "bytes"
589
+ }
590
+ ],
591
+ "internalType": "struct IRegistry.ObjectInfo",
592
+ "name": "info",
593
+ "type": "tuple"
594
+ }
595
+ ],
596
+ "stateMutability": "view",
597
+ "type": "function"
598
+ },
599
+ {
600
+ "inputs": [],
601
+ "name": "getInstance",
602
+ "outputs": [
603
+ {
604
+ "internalType": "contract IInstance",
605
+ "name": "instance",
606
+ "type": "address"
607
+ }
608
+ ],
609
+ "stateMutability": "view",
610
+ "type": "function"
611
+ },
612
+ {
613
+ "inputs": [],
614
+ "name": "getName",
615
+ "outputs": [
616
+ {
617
+ "internalType": "string",
618
+ "name": "name",
619
+ "type": "string"
620
+ }
621
+ ],
622
+ "stateMutability": "view",
623
+ "type": "function"
624
+ },
625
+ {
626
+ "inputs": [],
627
+ "name": "getNftId",
628
+ "outputs": [
629
+ {
630
+ "internalType": "NftId",
631
+ "name": "",
632
+ "type": "uint96"
633
+ }
634
+ ],
635
+ "stateMutability": "view",
636
+ "type": "function"
637
+ },
638
+ {
639
+ "inputs": [],
640
+ "name": "getOwner",
641
+ "outputs": [
642
+ {
643
+ "internalType": "address",
644
+ "name": "",
645
+ "type": "address"
646
+ }
647
+ ],
648
+ "stateMutability": "view",
649
+ "type": "function"
650
+ },
651
+ {
652
+ "inputs": [],
653
+ "name": "getProductNftId",
654
+ "outputs": [
655
+ {
656
+ "internalType": "NftId",
657
+ "name": "productNftId",
658
+ "type": "uint96"
659
+ }
660
+ ],
661
+ "stateMutability": "view",
662
+ "type": "function"
663
+ },
664
+ {
665
+ "inputs": [
666
+ {
667
+ "internalType": "string",
668
+ "name": "referralCode",
669
+ "type": "string"
670
+ }
671
+ ],
672
+ "name": "getReferralId",
673
+ "outputs": [
674
+ {
675
+ "internalType": "ReferralId",
676
+ "name": "referralId",
677
+ "type": "bytes8"
678
+ }
679
+ ],
680
+ "stateMutability": "view",
681
+ "type": "function"
682
+ },
683
+ {
684
+ "inputs": [],
685
+ "name": "getRegistry",
686
+ "outputs": [
687
+ {
688
+ "internalType": "contract IRegistry",
689
+ "name": "",
690
+ "type": "address"
691
+ }
692
+ ],
693
+ "stateMutability": "view",
694
+ "type": "function"
695
+ },
696
+ {
697
+ "inputs": [],
698
+ "name": "getRegistryAddress",
699
+ "outputs": [
700
+ {
701
+ "internalType": "address",
702
+ "name": "",
703
+ "type": "address"
704
+ }
705
+ ],
706
+ "stateMutability": "view",
707
+ "type": "function"
708
+ },
709
+ {
710
+ "inputs": [],
711
+ "name": "getSetupInfo",
712
+ "outputs": [
713
+ {
714
+ "components": [
715
+ {
716
+ "internalType": "NftId",
717
+ "name": "productNftId",
718
+ "type": "uint96"
719
+ },
720
+ {
721
+ "internalType": "contract TokenHandler",
722
+ "name": "tokenHandler",
723
+ "type": "address"
724
+ },
725
+ {
726
+ "components": [
727
+ {
728
+ "internalType": "UFixed",
729
+ "name": "fractionalFee",
730
+ "type": "uint256"
731
+ },
732
+ {
733
+ "internalType": "uint256",
734
+ "name": "fixedFee",
735
+ "type": "uint256"
736
+ }
737
+ ],
738
+ "internalType": "struct Fee",
739
+ "name": "minDistributionOwnerFee",
740
+ "type": "tuple"
741
+ },
742
+ {
743
+ "components": [
744
+ {
745
+ "internalType": "UFixed",
746
+ "name": "fractionalFee",
747
+ "type": "uint256"
748
+ },
749
+ {
750
+ "internalType": "uint256",
751
+ "name": "fixedFee",
752
+ "type": "uint256"
753
+ }
754
+ ],
755
+ "internalType": "struct Fee",
756
+ "name": "distributionFee",
757
+ "type": "tuple"
758
+ },
759
+ {
760
+ "internalType": "address",
761
+ "name": "wallet",
762
+ "type": "address"
763
+ },
764
+ {
765
+ "internalType": "uint256",
766
+ "name": "sumDistributionOwnerFees",
767
+ "type": "uint256"
768
+ }
769
+ ],
770
+ "internalType": "struct ISetup.DistributionSetupInfo",
771
+ "name": "setupInfo",
772
+ "type": "tuple"
773
+ }
774
+ ],
775
+ "stateMutability": "view",
776
+ "type": "function"
777
+ },
778
+ {
779
+ "inputs": [],
780
+ "name": "getToken",
781
+ "outputs": [
782
+ {
783
+ "internalType": "contract IERC20Metadata",
784
+ "name": "token",
785
+ "type": "address"
786
+ }
787
+ ],
788
+ "stateMutability": "view",
789
+ "type": "function"
790
+ },
791
+ {
792
+ "inputs": [],
793
+ "name": "getWallet",
794
+ "outputs": [
795
+ {
796
+ "internalType": "address",
797
+ "name": "walletAddress",
798
+ "type": "address"
799
+ }
800
+ ],
801
+ "stateMutability": "view",
802
+ "type": "function"
803
+ },
804
+ {
805
+ "inputs": [
806
+ {
807
+ "internalType": "address",
808
+ "name": "registry",
809
+ "type": "address"
810
+ },
811
+ {
812
+ "internalType": "NftId",
813
+ "name": "instanceNftId",
814
+ "type": "uint96"
815
+ },
816
+ {
817
+ "internalType": "string",
818
+ "name": "name",
819
+ "type": "string"
820
+ },
821
+ {
822
+ "internalType": "address",
823
+ "name": "token",
824
+ "type": "address"
825
+ },
826
+ {
827
+ "internalType": "ObjectType",
828
+ "name": "componentType",
829
+ "type": "uint8"
830
+ },
831
+ {
832
+ "internalType": "bool",
833
+ "name": "isInterceptor",
834
+ "type": "bool"
835
+ },
836
+ {
837
+ "internalType": "address",
838
+ "name": "initialOwner",
839
+ "type": "address"
840
+ },
841
+ {
842
+ "internalType": "bytes",
843
+ "name": "registryData",
844
+ "type": "bytes"
845
+ }
846
+ ],
847
+ "name": "initializeComponent",
848
+ "outputs": [],
849
+ "stateMutability": "nonpayable",
850
+ "type": "function"
851
+ },
852
+ {
853
+ "inputs": [
854
+ {
855
+ "internalType": "address",
856
+ "name": "registry",
857
+ "type": "address"
858
+ },
859
+ {
860
+ "internalType": "NftId",
861
+ "name": "instanceNftId",
862
+ "type": "uint96"
863
+ },
864
+ {
865
+ "internalType": "string",
866
+ "name": "name",
867
+ "type": "string"
868
+ },
869
+ {
870
+ "internalType": "address",
871
+ "name": "token",
872
+ "type": "address"
873
+ },
874
+ {
875
+ "components": [
876
+ {
877
+ "internalType": "UFixed",
878
+ "name": "fractionalFee",
879
+ "type": "uint256"
880
+ },
881
+ {
882
+ "internalType": "uint256",
883
+ "name": "fixedFee",
884
+ "type": "uint256"
885
+ }
886
+ ],
887
+ "internalType": "struct Fee",
888
+ "name": "minDistributionOwnerFee",
889
+ "type": "tuple"
890
+ },
891
+ {
892
+ "components": [
893
+ {
894
+ "internalType": "UFixed",
895
+ "name": "fractionalFee",
896
+ "type": "uint256"
254
897
  },
255
898
  {
256
- "internalType": "bytes",
257
- "name": "data",
258
- "type": "bytes"
899
+ "internalType": "uint256",
900
+ "name": "fixedFee",
901
+ "type": "uint256"
259
902
  }
260
903
  ],
261
- "internalType": "struct IRegistry.ObjectInfo",
262
- "name": "",
904
+ "internalType": "struct Fee",
905
+ "name": "distributionFee",
263
906
  "type": "tuple"
264
907
  },
908
+ {
909
+ "internalType": "address",
910
+ "name": "initialOwner",
911
+ "type": "address"
912
+ },
265
913
  {
266
914
  "internalType": "bytes",
267
- "name": "",
915
+ "name": "registryData",
268
916
  "type": "bytes"
269
917
  }
270
918
  ],
271
- "stateMutability": "view",
919
+ "name": "initializeDistribution",
920
+ "outputs": [],
921
+ "stateMutability": "nonpayable",
272
922
  "type": "function"
273
923
  },
274
924
  {
275
925
  "inputs": [],
276
- "name": "getInstance",
277
- "outputs": [
926
+ "name": "initializeERC165",
927
+ "outputs": [],
928
+ "stateMutability": "nonpayable",
929
+ "type": "function"
930
+ },
931
+ {
932
+ "inputs": [
278
933
  {
279
- "internalType": "contract IInstance",
280
- "name": "instance",
934
+ "internalType": "address",
935
+ "name": "initialOwner",
936
+ "type": "address"
937
+ },
938
+ {
939
+ "internalType": "address",
940
+ "name": "registryAddress",
281
941
  "type": "address"
282
942
  }
283
943
  ],
284
- "stateMutability": "view",
944
+ "name": "initializeNftOwnable",
945
+ "outputs": [],
946
+ "stateMutability": "nonpayable",
285
947
  "type": "function"
286
948
  },
287
949
  {
288
- "inputs": [],
289
- "name": "getNftId",
290
- "outputs": [
950
+ "inputs": [
951
+ {
952
+ "internalType": "address",
953
+ "name": "registryAddress",
954
+ "type": "address"
955
+ },
291
956
  {
292
957
  "internalType": "NftId",
293
- "name": "",
958
+ "name": "parentNftId",
294
959
  "type": "uint96"
295
- }
296
- ],
297
- "stateMutability": "view",
298
- "type": "function"
299
- },
300
- {
301
- "inputs": [],
302
- "name": "getOwner",
303
- "outputs": [
960
+ },
961
+ {
962
+ "internalType": "ObjectType",
963
+ "name": "objectType",
964
+ "type": "uint8"
965
+ },
966
+ {
967
+ "internalType": "bool",
968
+ "name": "isInterceptor",
969
+ "type": "bool"
970
+ },
304
971
  {
305
972
  "internalType": "address",
306
- "name": "",
973
+ "name": "initialOwner",
307
974
  "type": "address"
975
+ },
976
+ {
977
+ "internalType": "bytes",
978
+ "name": "registryData",
979
+ "type": "bytes"
308
980
  }
309
981
  ],
310
- "stateMutability": "view",
982
+ "name": "initializeRegisterable",
983
+ "outputs": [],
984
+ "stateMutability": "nonpayable",
311
985
  "type": "function"
312
986
  },
313
987
  {
314
- "inputs": [],
315
- "name": "getProductNftId",
316
- "outputs": [
988
+ "inputs": [
317
989
  {
318
- "internalType": "NftId",
319
- "name": "productNftId",
320
- "type": "uint96"
990
+ "internalType": "address",
991
+ "name": "registryAddress",
992
+ "type": "address"
321
993
  }
322
994
  ],
323
- "stateMutability": "view",
995
+ "name": "initializeRegistryLinked",
996
+ "outputs": [],
997
+ "stateMutability": "nonpayable",
324
998
  "type": "function"
325
999
  },
326
1000
  {
327
1001
  "inputs": [],
328
- "name": "getRegistry",
1002
+ "name": "isConsumingScheduledOp",
329
1003
  "outputs": [
330
1004
  {
331
- "internalType": "contract IRegistry",
1005
+ "internalType": "bytes4",
332
1006
  "name": "",
333
- "type": "address"
1007
+ "type": "bytes4"
334
1008
  }
335
1009
  ],
336
1010
  "stateMutability": "view",
337
1011
  "type": "function"
338
1012
  },
339
1013
  {
340
- "inputs": [],
341
- "name": "getSetupInfo",
342
- "outputs": [
1014
+ "inputs": [
343
1015
  {
344
- "components": [
345
- {
346
- "internalType": "NftId",
347
- "name": "productNftId",
348
- "type": "uint96"
349
- },
350
- {
351
- "internalType": "contract TokenHandler",
352
- "name": "tokenHandler",
353
- "type": "address"
354
- },
355
- {
356
- "components": [
357
- {
358
- "internalType": "UFixed",
359
- "name": "fractionalFee",
360
- "type": "uint256"
361
- },
362
- {
363
- "internalType": "uint256",
364
- "name": "fixedFee",
365
- "type": "uint256"
366
- }
367
- ],
368
- "internalType": "struct Fee",
369
- "name": "distributionFee",
370
- "type": "tuple"
371
- },
372
- {
373
- "internalType": "bool",
374
- "name": "isIntercepting",
375
- "type": "bool"
376
- },
377
- {
378
- "internalType": "address",
379
- "name": "wallet",
380
- "type": "address"
381
- }
382
- ],
383
- "internalType": "struct ISetup.DistributionSetupInfo",
384
- "name": "setupInfo",
385
- "type": "tuple"
1016
+ "internalType": "address",
1017
+ "name": "candidate",
1018
+ "type": "address"
386
1019
  }
387
1020
  ],
388
- "stateMutability": "view",
389
- "type": "function"
390
- },
391
- {
392
- "inputs": [],
393
- "name": "getToken",
1021
+ "name": "isDistributor",
394
1022
  "outputs": [
395
1023
  {
396
- "internalType": "contract IERC20Metadata",
397
- "name": "token",
398
- "type": "address"
1024
+ "internalType": "bool",
1025
+ "name": "",
1026
+ "type": "bool"
399
1027
  }
400
1028
  ],
401
1029
  "stateMutability": "view",
@@ -403,12 +1031,12 @@
403
1031
  },
404
1032
  {
405
1033
  "inputs": [],
406
- "name": "getWallet",
1034
+ "name": "isNftInterceptor",
407
1035
  "outputs": [
408
1036
  {
409
- "internalType": "address",
410
- "name": "walletAddress",
411
- "type": "address"
1037
+ "internalType": "bool",
1038
+ "name": "isInterceptor",
1039
+ "type": "bool"
412
1040
  }
413
1041
  ],
414
1042
  "stateMutability": "view",
@@ -444,17 +1072,22 @@
444
1072
  {
445
1073
  "inputs": [
446
1074
  {
447
- "internalType": "ReferralId",
448
- "name": "referralId",
449
- "type": "bytes8"
1075
+ "internalType": "address",
1076
+ "name": "from",
1077
+ "type": "address"
1078
+ },
1079
+ {
1080
+ "internalType": "address",
1081
+ "name": "to",
1082
+ "type": "address"
450
1083
  },
451
1084
  {
452
1085
  "internalType": "uint256",
453
- "name": "feeAmount",
1086
+ "name": "tokenId",
454
1087
  "type": "uint256"
455
1088
  }
456
1089
  ],
457
- "name": "processRenewal",
1090
+ "name": "nftTransferFrom",
458
1091
  "outputs": [],
459
1092
  "stateMutability": "nonpayable",
460
1093
  "type": "function"
@@ -472,7 +1105,7 @@
472
1105
  "type": "uint256"
473
1106
  }
474
1107
  ],
475
- "name": "processSale",
1108
+ "name": "processRenewal",
476
1109
  "outputs": [],
477
1110
  "stateMutability": "nonpayable",
478
1111
  "type": "function"
@@ -480,24 +1113,48 @@
480
1113
  {
481
1114
  "inputs": [
482
1115
  {
483
- "internalType": "ReferralId",
484
- "name": "referralId",
485
- "type": "bytes8"
1116
+ "internalType": "bytes4",
1117
+ "name": "interfaceId",
1118
+ "type": "bytes4"
486
1119
  }
487
1120
  ],
488
- "name": "referralIsValid",
489
- "outputs": [
1121
+ "name": "registerInterface",
1122
+ "outputs": [],
1123
+ "stateMutability": "nonpayable",
1124
+ "type": "function"
1125
+ },
1126
+ {
1127
+ "inputs": [
490
1128
  {
491
- "internalType": "bool",
492
- "name": "isValid",
493
- "type": "bool"
1129
+ "internalType": "address",
1130
+ "name": "newAuthority",
1131
+ "type": "address"
494
1132
  }
495
1133
  ],
496
- "stateMutability": "view",
1134
+ "name": "setAuthority",
1135
+ "outputs": [],
1136
+ "stateMutability": "nonpayable",
497
1137
  "type": "function"
498
1138
  },
499
1139
  {
500
1140
  "inputs": [
1141
+ {
1142
+ "components": [
1143
+ {
1144
+ "internalType": "UFixed",
1145
+ "name": "fractionalFee",
1146
+ "type": "uint256"
1147
+ },
1148
+ {
1149
+ "internalType": "uint256",
1150
+ "name": "fixedFee",
1151
+ "type": "uint256"
1152
+ }
1153
+ ],
1154
+ "internalType": "struct Fee",
1155
+ "name": "minDistributionOwnerFee",
1156
+ "type": "tuple"
1157
+ },
501
1158
  {
502
1159
  "components": [
503
1160
  {
@@ -534,6 +1191,19 @@
534
1191
  "stateMutability": "nonpayable",
535
1192
  "type": "function"
536
1193
  },
1194
+ {
1195
+ "inputs": [
1196
+ {
1197
+ "internalType": "address",
1198
+ "name": "newWallet",
1199
+ "type": "address"
1200
+ }
1201
+ ],
1202
+ "name": "setWallet",
1203
+ "outputs": [],
1204
+ "stateMutability": "nonpayable",
1205
+ "type": "function"
1206
+ },
537
1207
  {
538
1208
  "inputs": [
539
1209
  {
@@ -559,60 +1229,33 @@
559
1229
  "outputs": [],
560
1230
  "stateMutability": "nonpayable",
561
1231
  "type": "function"
562
- }
563
- ],
564
- "bytecode": "0x60806040523480156200001157600080fd5b5060405162001ec638038062001ec6833981016040819052620000349162000813565b85858560786001856200006d6301ffc9a760e01b600090815260205260008051602062001ea6833981519152805460ff19166001179055565b600280546001600160a01b031916331790556040805160208101909152600081526200009e8787868686866200045a565b6000620000b36001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03891660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa15801562000103573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200012d91908101906200097c565b6080810151600780546001600160a01b0319166001600160a01b0390921691821790556040516301ffc9a760e01b81526367a9cb5360e01b6004820152919250906301ffc9a790602401602060405180830381865afa15801562000195573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001bb919062000a62565b620001e75760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b600760009054906101000a90046001600160a01b03166001600160a01b0316636fa298536040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200023b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000261919062000a87565b600380546001600160a01b03199081166001600160a01b0393841617909155600580543090831617905560068054909116918816919091179055634c0cba3d60e11b60009081526020527f8605f84a1fdbc6ff75d8a06315d161884729b429561b502d19c5a33135142c3a805460ff191660011790555050600a805460ff19168a1515179055505085516008555050506020808401516009556007546040805163329802c760e21b815290516001600160a01b03909216935063ca600b1c9260048083019391928290030181865afa15801562000342573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000368919062000a87565b600a8054610100600160a81b0319166101006001600160a01b039384160217905560075460408051634288121d60e01b815290519190921691634288121d9160048083019260209291908290030181865afa158015620003cc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003f2919062000a87565b600b80546001600160a01b0319166001600160a01b039290921691909117905563c8ea96c560e01b60009081526020527f358bf83baf6613c2def0011c88aae44093f6c2a350167255c9453fdf96405794805460ff1916600117905550505050505062000c02565b6200048b6301ffc9a760e01b600090815260205260008051602062001ea6833981519152805460ff19166001179055565b6200049782876200055c565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166001600160681b0319909116176c0100000000000000000000000060ff8816021760ff60681b19166d01000000000000000000000000008615150217815590506001810162000516838262000b36565b506303fb044760e21b60009081526020527fb43e4f3791bfcdefa3a0fbe2a5555f8d6490b90e01de0ff40c66f18b49b562c5805460ff1916600117905550505050505050565b6001600160a01b038216620005b45760405162461bcd60e51b815260206004820152601e60248201527f4e66744f776e61626c653a20696e697469616c206f776e6572206973203000006044820152606401620001de565b600280546001600160a01b0319166001600160a01b038416179055620005da81620005de565b5050565b6001546001600160a01b031615620006195760015460405163fcdbf2d960e01b81526001600160a01b039091166004820152602401620001de565b6001600160a01b038116620006415760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b600003620006795760405163fdeac91f60e01b81526001600160a01b0382166004820152602401620001de565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b81526376ceea7360e01b60048201526301ffc9a790602401602060405180830381865afa925050508015620006f6575060408051601f3d908101601f19168201909252620006f39181019062000a62565b60015b620007205760405163fdeac91f60e01b81526001600160a01b0382166004820152602401620001de565b80620005da5760405163fdeac91f60e01b81526001600160a01b0383166004820152602401620001de565b50565b6001600160a01b03811681146200074b57600080fd5b805162000771816200074e565b919050565b80516001600160601b03811681146200077157600080fd5b805180151581146200077157600080fd5b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b0381118282101715620007da57620007da6200079f565b60405290565b604051601f8201601f191681016001600160401b03811182821017156200080b576200080b6200079f565b604052919050565b60008060008060008086880360e08112156200082e57600080fd5b87516200083b816200074e565b96506200084b6020890162000776565b955060408801516200085d816200074e565b94506200086d606089016200078e565b93506040607f19820112156200088257600080fd5b50604080519081016001600160401b0381118282101715620008a857620008a86200079f565b6040526080880151815260a0880151602082015260c0880151909250620008cf816200074e565b809150509295509295509295565b805160ff811681146200077157600080fd5b600082601f8301126200090157600080fd5b81516001600160401b038111156200091d576200091d6200079f565b602062000933601f8301601f19168201620007e0565b82815285828487010111156200094857600080fd5b60005b83811015620009685785810183015182820184015282016200094b565b506000928101909101919091529392505050565b6000602082840312156200098f57600080fd5b81516001600160401b0380821115620009a757600080fd5b9083019060e08286031215620009bc57600080fd5b620009c6620007b5565b620009d18362000776565b8152620009e16020840162000776565b6020820152620009f460408401620008dd565b604082015262000a07606084016200078e565b606082015262000a1a6080840162000764565b608082015262000a2d60a0840162000764565b60a082015260c08301518281111562000a4557600080fd5b62000a5387828601620008ef565b60c08301525095945050505050565b60006020828403121562000a7557600080fd5b62000a80826200078e565b9392505050565b60006020828403121562000a9a57600080fd5b815162000a80816200074e565b600181811c9082168062000abc57607f821691505b60208210810362000add57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000b3157600081815260208120601f850160051c8101602086101562000b0c5750805b601f850160051c820191505b8181101562000b2d5782815560010162000b18565b5050505b505050565b81516001600160401b0381111562000b525762000b526200079f565b62000b6a8162000b63845462000aa7565b8462000ae3565b602080601f83116001811462000ba2576000841562000b895750858301515b600019600386901b1c1916600185901b17855562000b2d565b600085815260208120601f198616915b8281101562000bd35788860151825594840194600190910190840162000bb2565b508582101562000bf25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6112948062000c126000396000f3fe608060405234801561001057600080fd5b50600436106101415760003560e01c8063644c45e0116100b8578063d16d0fe81161007c578063d16d0fe8146102d1578063de7b5d14146102e4578063e2147567146102f5578063f7d39dea14610309578063f80e207214610265578063f83d08ba1461031c57600080fd5b8063644c45e01461028957806387ef9ba0146102a1578063893d20e8146102ac578063a69df4b5146102b4578063c200b809146102bc57600080fd5b80631eff4b221161010a5780631eff4b22146101f957806321df0da71461022e5780632a65c6881461023f5780633f52c0f6146102525780634cf30a84146102655780635ab1bd531461027857600080fd5b806251884a1461014657806301ffc9a7146101775780630fec111c146101b457806313299604146101ca578063138461e0146101ef575b600080fd5b600754600160a01b90046001600160601b03165b6040516001600160601b0390911681526020015b60405180910390f35b6101a4610185366004610dfd565b6001600160e01b03191660009081526020819052604090205460ff1690565b604051901515815260200161016e565b6101bc610324565b60405161016e929190610e74565b6005546001600160a01b03165b6040516001600160a01b03909116815260200161016e565b6101f76103ef565b005b6102207f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b60405190815260200161016e565b6006546001600160a01b03166101d7565b6101f761024d366004610f33565b610611565b6101f7610260366004610f87565b610760565b6101f7610273366004610fd6565b6107c9565b6001546001600160a01b03166101d7565b600154600160a01b90046001600160601b031661015a565b600a5460ff166101a4565b6101d7610831565b6101f761094f565b6102c46109ea565b60405161016e9190611000565b6102206102df366004610fd6565b610af9565b6007546001600160a01b03166101d7565b6101a4610303366004611060565b50600090565b610220610317366004610fd6565b610b0e565b6101f7610bb0565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c082018190529091610367610c1b565b506040805160a081018252600754600160a01b90046001600160601b031681526006546001600160a01b03166020808301919091528251808401845260085481526009548183015282840152600a5460ff1615156060830152306080830152915192935083926103d79201611000565b60405160208183030381529060405292509250509091565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610451573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610475919061108b565b156104bc576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b03166104e55760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa15801561052e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610552919061108b565b61057a576040516372657a5160e01b81526001600160a01b03821660048201526024016104b3565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa1580156105c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e891906110a6565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b610619610831565b6001600160a01b0316336001600160a01b03161461064c5760405163700dd81160e01b81523360048201526024016104b3565b60075473__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__9063c4cade9d90600160a01b90046001600160601b031660006040516001600160e01b031960e085901b1681526001600160601b03928316600482015291166024820152604401602060405180830381865af41580156106c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ec919061108b565b6107385760405162461bcd60e51b815260206004820152601a60248201527f70726f64756374206e667420696420616c72656164792073657400000000000060448201526064016104b3565b600780546001600160601b03909216600160a01b026001600160a01b03909216919091179055565b600a54604051631fa9607b60e11b81526101009091046001600160a01b031690633f52c0f6906107949084906004016110c3565b600060405180830381600087803b1580156107ae57600080fd5b505af11580156107c2573d6000803e3d6000fd5b5050505050565b600b546001600160a01b0316331461082d5760405162461bcd60e51b815260206004820152602160248201527f4552524f523a504f4c2d3030323a4e4f545f50524f445543545f5345525649436044820152604560f81b60648201526084016104b3565b5050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610896573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ba919061108b565b1561093f57600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa158015610916573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093a91906110fa565b905090565b506002546001600160a01b031690565b610957610831565b6001600160a01b0316336001600160a01b03161461098a5760405163700dd81160e01b81523360048201526024016104b3565b600354604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b1580156109d057600080fd5b505af11580156109e4573d6000803e3d6000fd5b50505050565b6109f2610da1565b600754604080516302cd307160e01b815290516000926001600160a01b0316916302cd30719160048083019260209291908290030181865afa158015610a3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6091906110fa565b9050806001600160a01b0316639ad69c67610a8b6001546001600160601b03600160a01b9091041690565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240160c060405180830381865afa158015610acf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af39190611117565b91505090565b6000610b0582826111db565b90505b92915050565b600080610b196109ea565b604081810151905163012ebd8360e21b81528151600482015260208201516024820152604481018690529192509073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af4158015610b82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba69190611200565b5095945050505050565b610bb8610831565b6001600160a01b0316336001600160a01b031614610beb5760405163700dd81160e01b81523360048201526024016104b3565b60035460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a7906024016109b6565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c0810191909152606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e00160405280610ca26001546001600160601b03600160a01b9091041690565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a001610cea610831565b6001600160a01b03168152602001826001018054610d0790611224565b80601f0160208091040260200160405190810160405280929190818152602001828054610d3390611224565b8015610d805780601f10610d5557610100808354040283529160200191610d80565b820191906000526020600020905b815481529060010190602001808311610d6357829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6040518060a0016040528060006001600160601b0316815260200160006001600160a01b03168152602001610de9604051806040016040528060008152602001600081525090565b815260006020820181905260409091015290565b600060208284031215610e0f57600080fd5b81356001600160e01b031981168114610e2757600080fd5b9392505050565b6000815180845260005b81811015610e5457602081850181015186830182015201610e38565b506000602082860101526020601f19601f83011685010191505092915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff60408501511660808301526060840151610eb860a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e0610100840152610efe610120840182610e2e565b90508281036020840152610f128185610e2e565b95945050505050565b6001600160601b0381168114610f3057600080fd5b50565b600060208284031215610f4557600080fd5b8135610e2781610f1b565b6040805190810167ffffffffffffffff81118282101715610f8157634e487b7160e01b600052604160045260246000fd5b60405290565b600060408284031215610f9957600080fd5b610fa1610f50565b82358152602083013560208201528091505092915050565b80356001600160c01b031981168114610fd157600080fd5b919050565b60008060408385031215610fe957600080fd5b610ff283610fb9565b946020939093013593505050565b81516001600160601b031681526020808301516001600160a01b039081168284015260408085015180519185019190915291820151606084015260c0830191906060850151151560808501528060808601511660a0850152505092915050565b60006020828403121561107257600080fd5b610b0582610fb9565b80518015158114610fd157600080fd5b60006020828403121561109d57600080fd5b610b058261107b565b6000602082840312156110b857600080fd5b8151610e2781610f1b565b815181526020808301519082015260408101610b08565b6001600160a01b0381168114610f3057600080fd5b8051610fd1816110da565b60006020828403121561110c57600080fd5b8151610e27816110da565b600081830360c081121561112a57600080fd5b60405160a0810181811067ffffffffffffffff8211171561115b57634e487b7160e01b600052604160045260246000fd5b604052835161116981610f1b565b81526020840151611179816110da565b60208201526040603f198301121561119057600080fd5b611198610f50565b915060408401518252606084015160208301528160408201526111bd6080850161107b565b60608201526111ce60a085016110ef565b6080820152949350505050565b8082028115828204841417610b0857634e487b7160e01b600052601160045260246000fd5b6000806040838503121561121357600080fd5b505080516020909101519092909150565b600181811c9082168061123857607f821691505b60208210810361125857634e487b7160e01b600052602260045260246000fd5b5091905056fea2646970667358221220070e8c022d67d6e6172e88ce3e65c514b5607f609fcddfe1ff12aef179bbd3db64736f6c6343000814003367be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5",
565
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101415760003560e01c8063644c45e0116100b8578063d16d0fe81161007c578063d16d0fe8146102d1578063de7b5d14146102e4578063e2147567146102f5578063f7d39dea14610309578063f80e207214610265578063f83d08ba1461031c57600080fd5b8063644c45e01461028957806387ef9ba0146102a1578063893d20e8146102ac578063a69df4b5146102b4578063c200b809146102bc57600080fd5b80631eff4b221161010a5780631eff4b22146101f957806321df0da71461022e5780632a65c6881461023f5780633f52c0f6146102525780634cf30a84146102655780635ab1bd531461027857600080fd5b806251884a1461014657806301ffc9a7146101775780630fec111c146101b457806313299604146101ca578063138461e0146101ef575b600080fd5b600754600160a01b90046001600160601b03165b6040516001600160601b0390911681526020015b60405180910390f35b6101a4610185366004610dfd565b6001600160e01b03191660009081526020819052604090205460ff1690565b604051901515815260200161016e565b6101bc610324565b60405161016e929190610e74565b6005546001600160a01b03165b6040516001600160a01b03909116815260200161016e565b6101f76103ef565b005b6102207f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b60405190815260200161016e565b6006546001600160a01b03166101d7565b6101f761024d366004610f33565b610611565b6101f7610260366004610f87565b610760565b6101f7610273366004610fd6565b6107c9565b6001546001600160a01b03166101d7565b600154600160a01b90046001600160601b031661015a565b600a5460ff166101a4565b6101d7610831565b6101f761094f565b6102c46109ea565b60405161016e9190611000565b6102206102df366004610fd6565b610af9565b6007546001600160a01b03166101d7565b6101a4610303366004611060565b50600090565b610220610317366004610fd6565b610b0e565b6101f7610bb0565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c082018190529091610367610c1b565b506040805160a081018252600754600160a01b90046001600160601b031681526006546001600160a01b03166020808301919091528251808401845260085481526009548183015282840152600a5460ff1615156060830152306080830152915192935083926103d79201611000565b60405160208183030381529060405292509250509091565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610451573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610475919061108b565b156104bc576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b03166104e55760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa15801561052e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610552919061108b565b61057a576040516372657a5160e01b81526001600160a01b03821660048201526024016104b3565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa1580156105c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e891906110a6565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b610619610831565b6001600160a01b0316336001600160a01b03161461064c5760405163700dd81160e01b81523360048201526024016104b3565b60075473__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__9063c4cade9d90600160a01b90046001600160601b031660006040516001600160e01b031960e085901b1681526001600160601b03928316600482015291166024820152604401602060405180830381865af41580156106c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ec919061108b565b6107385760405162461bcd60e51b815260206004820152601a60248201527f70726f64756374206e667420696420616c72656164792073657400000000000060448201526064016104b3565b600780546001600160601b03909216600160a01b026001600160a01b03909216919091179055565b600a54604051631fa9607b60e11b81526101009091046001600160a01b031690633f52c0f6906107949084906004016110c3565b600060405180830381600087803b1580156107ae57600080fd5b505af11580156107c2573d6000803e3d6000fd5b5050505050565b600b546001600160a01b0316331461082d5760405162461bcd60e51b815260206004820152602160248201527f4552524f523a504f4c2d3030323a4e4f545f50524f445543545f5345525649436044820152604560f81b60648201526084016104b3565b5050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610896573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ba919061108b565b1561093f57600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa158015610916573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093a91906110fa565b905090565b506002546001600160a01b031690565b610957610831565b6001600160a01b0316336001600160a01b03161461098a5760405163700dd81160e01b81523360048201526024016104b3565b600354604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b1580156109d057600080fd5b505af11580156109e4573d6000803e3d6000fd5b50505050565b6109f2610da1565b600754604080516302cd307160e01b815290516000926001600160a01b0316916302cd30719160048083019260209291908290030181865afa158015610a3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6091906110fa565b9050806001600160a01b0316639ad69c67610a8b6001546001600160601b03600160a01b9091041690565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240160c060405180830381865afa158015610acf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af39190611117565b91505090565b6000610b0582826111db565b90505b92915050565b600080610b196109ea565b604081810151905163012ebd8360e21b81528151600482015260208201516024820152604481018690529192509073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af4158015610b82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba69190611200565b5095945050505050565b610bb8610831565b6001600160a01b0316336001600160a01b031614610beb5760405163700dd81160e01b81523360048201526024016104b3565b60035460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a7906024016109b6565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c0810191909152606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e00160405280610ca26001546001600160601b03600160a01b9091041690565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a001610cea610831565b6001600160a01b03168152602001826001018054610d0790611224565b80601f0160208091040260200160405190810160405280929190818152602001828054610d3390611224565b8015610d805780601f10610d5557610100808354040283529160200191610d80565b820191906000526020600020905b815481529060010190602001808311610d6357829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6040518060a0016040528060006001600160601b0316815260200160006001600160a01b03168152602001610de9604051806040016040528060008152602001600081525090565b815260006020820181905260409091015290565b600060208284031215610e0f57600080fd5b81356001600160e01b031981168114610e2757600080fd5b9392505050565b6000815180845260005b81811015610e5457602081850181015186830182015201610e38565b506000602082860101526020601f19601f83011685010191505092915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff60408501511660808301526060840151610eb860a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e0610100840152610efe610120840182610e2e565b90508281036020840152610f128185610e2e565b95945050505050565b6001600160601b0381168114610f3057600080fd5b50565b600060208284031215610f4557600080fd5b8135610e2781610f1b565b6040805190810167ffffffffffffffff81118282101715610f8157634e487b7160e01b600052604160045260246000fd5b60405290565b600060408284031215610f9957600080fd5b610fa1610f50565b82358152602083013560208201528091505092915050565b80356001600160c01b031981168114610fd157600080fd5b919050565b60008060408385031215610fe957600080fd5b610ff283610fb9565b946020939093013593505050565b81516001600160601b031681526020808301516001600160a01b039081168284015260408085015180519185019190915291820151606084015260c0830191906060850151151560808501528060808601511660a0850152505092915050565b60006020828403121561107257600080fd5b610b0582610fb9565b80518015158114610fd157600080fd5b60006020828403121561109d57600080fd5b610b058261107b565b6000602082840312156110b857600080fd5b8151610e2781610f1b565b815181526020808301519082015260408101610b08565b6001600160a01b0381168114610f3057600080fd5b8051610fd1816110da565b60006020828403121561110c57600080fd5b8151610e27816110da565b600081830360c081121561112a57600080fd5b60405160a0810181811067ffffffffffffffff8211171561115b57634e487b7160e01b600052604160045260246000fd5b604052835161116981610f1b565b81526020840151611179816110da565b60208201526040603f198301121561119057600080fd5b611198610f50565b915060408401518252606084015160208301528160408201526111bd6080850161107b565b60608201526111ce60a085016110ef565b6080820152949350505050565b8082028115828204841417610b0857634e487b7160e01b600052601160045260246000fd5b6000806040838503121561121357600080fd5b505080516020909101519092909150565b600181811c9082168061123857607f821691505b60208210810361125857634e487b7160e01b600052602260045260246000fd5b5091905056fea2646970667358221220070e8c022d67d6e6172e88ce3e65c514b5607f609fcddfe1ff12aef179bbd3db64736f6c63430008140033",
566
- "linkReferences": {
567
- "contracts/types/Fee.sol": {
568
- "FeeLib": [
569
- {
570
- "length": 20,
571
- "start": 5979
572
- }
573
- ]
574
- },
575
- "contracts/types/NftId.sol": {
576
- "NftIdLib": [
577
- {
578
- "length": 20,
579
- "start": 4137
580
- },
581
- {
582
- "length": 20,
583
- "start": 4707
584
- },
585
- {
586
- "length": 20,
587
- "start": 5230
588
- }
589
- ]
590
- }
591
- },
592
- "deployedLinkReferences": {
593
- "contracts/types/Fee.sol": {
594
- "FeeLib": [
595
- {
596
- "length": 20,
597
- "start": 2889
598
- }
599
- ]
600
1232
  },
601
- "contracts/types/NftId.sol": {
602
- "NftIdLib": [
1233
+ {
1234
+ "inputs": [
603
1235
  {
604
- "length": 20,
605
- "start": 1047
1236
+ "internalType": "NftId",
1237
+ "name": "distributorNftId",
1238
+ "type": "uint96"
606
1239
  },
607
1240
  {
608
- "length": 20,
609
- "start": 1617
1241
+ "internalType": "DistributorType",
1242
+ "name": "distributorType",
1243
+ "type": "bytes8"
610
1244
  },
611
1245
  {
612
- "length": 20,
613
- "start": 2140
1246
+ "internalType": "bytes",
1247
+ "name": "data",
1248
+ "type": "bytes"
614
1249
  }
615
- ]
1250
+ ],
1251
+ "name": "updateDistributorType",
1252
+ "outputs": [],
1253
+ "stateMutability": "nonpayable",
1254
+ "type": "function"
616
1255
  }
617
- }
1256
+ ],
1257
+ "bytecode": "0x",
1258
+ "deployedBytecode": "0x",
1259
+ "linkReferences": {},
1260
+ "deployedLinkReferences": {}
618
1261
  }