@etherisc/gif-next 0.0.2-ebbe63d → 0.0.2-ebf1a6b-485

Sign up to get free protection for your applications and to get access to all the features.
Files changed (329) hide show
  1. package/README.md +524 -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 +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +1279 -0
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/components/IComponent.sol/IComponent.json +447 -0
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +829 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +1029 -0
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +672 -0
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +4 -0
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +1451 -0
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +4 -0
  17. package/artifacts/contracts/components/Product.sol/Product.json +1099 -0
  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/Cloneable.sol/Cloneable.json +185 -0
  22. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +4 -0
  23. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +2422 -0
  24. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  25. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +509 -0
  26. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +4 -0
  27. package/artifacts/contracts/instance/Instance.sol/Instance.json +3326 -0
  28. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  29. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +984 -0
  30. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  31. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1355 -0
  32. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  33. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1046 -0
  34. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  35. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +693 -0
  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/ComponentService.sol/ComponentService.json +552 -0
  40. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  41. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +429 -0
  42. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  43. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.json +115 -0
  44. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  45. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +502 -0
  46. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  47. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
  48. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  49. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +254 -0
  50. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  51. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.json +10 -0
  52. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  53. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.json +10 -0
  54. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  55. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.json +10 -0
  56. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  57. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.json +10 -0
  58. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  59. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.json +10 -0
  60. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  61. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.json +10 -0
  62. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  63. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +968 -0
  64. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  65. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +665 -0
  66. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  67. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1096 -0
  68. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  69. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +661 -0
  70. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
  71. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +754 -0
  72. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  73. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +637 -0
  74. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  75. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1553 -0
  76. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  77. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +793 -0
  78. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  79. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +556 -0
  80. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  81. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +633 -0
  82. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
  83. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +409 -0
  84. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  85. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +858 -0
  86. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  87. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +519 -0
  88. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
  89. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +347 -0
  90. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
  91. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +384 -0
  92. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  93. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1000 -0
  94. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  95. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +689 -0
  96. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  97. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +727 -0
  98. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  99. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +649 -0
  100. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  101. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +777 -0
  102. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  103. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +649 -0
  104. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +4 -0
  105. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +771 -0
  106. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +4 -0
  107. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +737 -0
  108. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  109. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +890 -0
  110. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  111. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  112. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +4 -0
  113. package/artifacts/contracts/registry/Registry.sol/Registry.json +839 -0
  114. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  115. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  116. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  117. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1177 -0
  118. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  119. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +670 -0
  120. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  121. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
  122. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  123. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +498 -0
  124. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  125. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  126. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +4 -0
  127. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +73 -0
  128. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  129. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +138 -0
  130. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  131. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +129 -0
  132. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
  133. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +188 -0
  134. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  135. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.json +48 -0
  136. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  137. package/artifacts/contracts/shared/IService.sol/IService.json +269 -0
  138. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
  139. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +55 -0
  140. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  141. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +251 -0
  142. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  143. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +248 -0
  144. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  145. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +582 -0
  146. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
  147. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +352 -0
  148. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  149. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +84 -0
  150. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  151. package/artifacts/contracts/shared/Service.sol/Service.json +425 -0
  152. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  153. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  154. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  155. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  156. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
  157. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +78 -0
  158. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
  159. package/artifacts/contracts/test/TestFee.sol/TestFee.json +119 -0
  160. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
  161. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +383 -0
  162. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +4 -0
  163. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +116 -0
  164. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
  165. package/artifacts/contracts/test/TestService.sol/TestService.json +521 -0
  166. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
  167. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +376 -0
  168. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
  169. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +218 -0
  170. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
  171. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +104 -0
  172. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
  173. package/artifacts/contracts/test/Usdc.sol/USDC.json +376 -0
  174. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  175. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -0
  176. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +4 -0
  177. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +174 -0
  178. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +4 -0
  179. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +10 -0
  180. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  181. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +100 -0
  182. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  183. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  184. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +4 -0
  185. package/artifacts/contracts/types/Fee.sol/FeeLib.json +257 -0
  186. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
  187. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +125 -0
  188. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +4 -0
  189. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +153 -0
  190. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  191. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +33 -0
  192. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  193. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  194. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
  195. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +92 -0
  196. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  197. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +100 -0
  198. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  199. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  200. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  201. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  202. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
  203. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +156 -0
  204. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
  205. package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
  206. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +4 -0
  207. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +92 -0
  208. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +4 -0
  209. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +267 -0
  210. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  211. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  212. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  213. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +479 -0
  214. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
  215. package/artifacts/contracts/types/Version.sol/VersionLib.json +177 -0
  216. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
  217. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +49 -0
  218. package/contracts/components/Component.sol +221 -0
  219. package/contracts/components/Distribution.sol +293 -0
  220. package/contracts/components/IComponent.sol +68 -0
  221. package/contracts/components/IDistributionComponent.sol +79 -0
  222. package/contracts/components/IPoolComponent.sol +151 -0
  223. package/contracts/components/IProductComponent.sol +40 -0
  224. package/contracts/components/Pool.sol +378 -0
  225. package/contracts/components/Product.sol +289 -0
  226. package/contracts/instance/BundleManager.sol +125 -0
  227. package/contracts/instance/Cloneable.sol +46 -0
  228. package/contracts/instance/IInstance.sol +92 -0
  229. package/contracts/instance/IInstanceService.sol +59 -0
  230. package/contracts/instance/Instance.sol +291 -0
  231. package/contracts/instance/InstanceAccessManager.sol +297 -0
  232. package/contracts/instance/InstanceReader.sol +293 -0
  233. package/contracts/instance/InstanceService.sol +490 -0
  234. package/contracts/instance/InstanceServiceManager.sol +54 -0
  235. package/contracts/instance/ObjectManager.sol +84 -0
  236. package/contracts/instance/base/ComponentService.sol +134 -0
  237. package/contracts/instance/base/IKeyValueStore.sol +49 -0
  238. package/contracts/instance/base/ILifecycle.sol +30 -0
  239. package/contracts/instance/base/KeyValueStore.sol +172 -0
  240. package/contracts/instance/base/Lifecycle.sol +100 -0
  241. package/contracts/instance/module/IAccess.sol +47 -0
  242. package/contracts/instance/module/IBundle.sol +21 -0
  243. package/contracts/instance/module/IDistribution.sol +41 -0
  244. package/contracts/instance/module/IPolicy.sol +72 -0
  245. package/contracts/instance/module/IRisk.sol +11 -0
  246. package/contracts/instance/module/ISetup.sol +46 -0
  247. package/contracts/instance/module/ITreasury.sol +23 -0
  248. package/contracts/instance/service/ApplicationService.sol +349 -0
  249. package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
  250. package/contracts/instance/service/BundleService.sol +299 -0
  251. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  252. package/contracts/instance/service/ClaimService.sol +151 -0
  253. package/contracts/instance/service/ClaimServiceManager.sol +35 -0
  254. package/contracts/instance/service/DistributionService.sol +394 -0
  255. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  256. package/contracts/instance/service/IApplicationService.sol +82 -0
  257. package/contracts/instance/service/IBundleService.sol +55 -0
  258. package/contracts/instance/service/IClaimService.sol +61 -0
  259. package/contracts/instance/service/IDistributionService.sol +86 -0
  260. package/contracts/instance/service/IPolicyService.sol +70 -0
  261. package/contracts/instance/service/IPoolService.sol +20 -0
  262. package/contracts/instance/service/IProductService.sol +40 -0
  263. package/contracts/instance/service/PolicyService.sol +402 -0
  264. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  265. package/contracts/instance/service/PoolService.sol +109 -0
  266. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  267. package/contracts/instance/service/ProductService.sol +233 -0
  268. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  269. package/contracts/registry/ChainNft.sol +202 -0
  270. package/contracts/registry/IRegistry.sol +99 -0
  271. package/contracts/registry/IRegistryService.sol +67 -0
  272. package/contracts/registry/ITransferInterceptor.sol +6 -0
  273. package/contracts/registry/Registry.sol +464 -0
  274. package/contracts/registry/RegistryAccessManager.sol +216 -0
  275. package/contracts/registry/RegistryService.sol +283 -0
  276. package/contracts/registry/RegistryServiceManager.sol +62 -0
  277. package/contracts/registry/ReleaseManager.sol +322 -0
  278. package/contracts/registry/TokenRegistry.sol +116 -0
  279. package/contracts/shared/ContractDeployerLib.sol +72 -0
  280. package/contracts/shared/ERC165.sol +27 -0
  281. package/contracts/shared/INftOwnable.sol +23 -0
  282. package/contracts/shared/IPolicyHolder.sol +26 -0
  283. package/contracts/shared/IRegisterable.sol +15 -0
  284. package/contracts/shared/IRegistryLinked.sol +12 -0
  285. package/contracts/shared/IService.sol +18 -0
  286. package/contracts/shared/IVersionable.sol +53 -0
  287. package/contracts/shared/NftOwnable.sol +120 -0
  288. package/contracts/shared/PolicyHolder.sol +81 -0
  289. package/contracts/shared/ProxyManager.sol +169 -0
  290. package/contracts/shared/Registerable.sol +74 -0
  291. package/contracts/shared/RegistryLinked.sol +48 -0
  292. package/contracts/shared/Service.sol +58 -0
  293. package/contracts/shared/TokenHandler.sol +27 -0
  294. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  295. package/contracts/shared/Versionable.sol +59 -0
  296. package/contracts/test/TestFee.sol +25 -0
  297. package/contracts/test/TestRegisterable.sol +18 -0
  298. package/contracts/test/TestRoleId.sol +14 -0
  299. package/contracts/test/TestService.sol +25 -0
  300. package/contracts/{Dip.sol → test/TestToken.sol} +5 -5
  301. package/contracts/test/TestVersion.sol +44 -0
  302. package/contracts/test/TestVersionable.sol +17 -0
  303. package/contracts/test/Usdc.sol +26 -0
  304. package/contracts/types/AddressSet.sol +58 -0
  305. package/contracts/types/Blocknumber.sol +118 -0
  306. package/contracts/types/ChainId.sol +38 -0
  307. package/contracts/types/ClaimId.sol +52 -0
  308. package/contracts/types/DistributorType.sol +55 -0
  309. package/contracts/types/Fee.sol +56 -0
  310. package/contracts/types/Key32.sol +50 -0
  311. package/contracts/types/NftId.sol +72 -0
  312. package/contracts/types/NftIdSet.sol +62 -0
  313. package/contracts/types/NumberId.sol +52 -0
  314. package/contracts/types/ObjectType.sol +156 -0
  315. package/contracts/types/PayoutId.sol +54 -0
  316. package/contracts/types/Referral.sol +85 -0
  317. package/contracts/types/RiskId.sol +43 -0
  318. package/contracts/types/RoleId.sol +95 -0
  319. package/contracts/types/Seconds.sol +54 -0
  320. package/contracts/types/StateId.sol +105 -0
  321. package/contracts/types/Timestamp.sol +126 -0
  322. package/contracts/types/UFixed.sol +325 -0
  323. package/contracts/types/Version.sol +107 -0
  324. package/package.json +26 -10
  325. package/artifacts/contracts/Dip.sol/DIP.dbg.json +0 -4
  326. package/artifacts/contracts/Dip.sol/DIP.json +0 -338
  327. package/artifacts/contracts/Lock.sol/Lock.dbg.json +0 -4
  328. package/artifacts/contracts/Lock.sol/Lock.json +0 -74
  329. package/contracts/Lock.sol +0 -34
@@ -0,0 +1,1279 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "Distribution",
4
+ "sourceName": "contracts/components/Distribution.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "authority",
11
+ "type": "address"
12
+ }
13
+ ],
14
+ "name": "AccessManagedInvalidAuthority",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
19
+ {
20
+ "internalType": "address",
21
+ "name": "caller",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "internalType": "uint32",
26
+ "name": "delay",
27
+ "type": "uint32"
28
+ }
29
+ ],
30
+ "name": "AccessManagedRequiredDelay",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "address",
37
+ "name": "caller",
38
+ "type": "address"
39
+ }
40
+ ],
41
+ "name": "AccessManagedUnauthorized",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "address",
48
+ "name": "target",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "name": "AddressEmptyCode",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "internalType": "address",
59
+ "name": "account",
60
+ "type": "address"
61
+ }
62
+ ],
63
+ "name": "AddressInsufficientBalance",
64
+ "type": "error"
65
+ },
66
+ {
67
+ "inputs": [
68
+ {
69
+ "internalType": "address",
70
+ "name": "caller",
71
+ "type": "address"
72
+ }
73
+ ],
74
+ "name": "ErrorComponentNotChainNft",
75
+ "type": "error"
76
+ },
77
+ {
78
+ "inputs": [
79
+ {
80
+ "internalType": "NftId",
81
+ "name": "instanceNftId",
82
+ "type": "uint96"
83
+ }
84
+ ],
85
+ "name": "ErrorComponentNotInstance",
86
+ "type": "error"
87
+ },
88
+ {
89
+ "inputs": [
90
+ {
91
+ "internalType": "address",
92
+ "name": "caller",
93
+ "type": "address"
94
+ }
95
+ ],
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",
112
+ "type": "error"
113
+ },
114
+ {
115
+ "inputs": [
116
+ {
117
+ "internalType": "address",
118
+ "name": "oldWallet",
119
+ "type": "address"
120
+ },
121
+ {
122
+ "internalType": "address",
123
+ "name": "newWallet",
124
+ "type": "address"
125
+ },
126
+ {
127
+ "internalType": "uint256",
128
+ "name": "allowance",
129
+ "type": "uint256"
130
+ },
131
+ {
132
+ "internalType": "uint256",
133
+ "name": "balance",
134
+ "type": "uint256"
135
+ }
136
+ ],
137
+ "name": "ErrorComponentWalletAllowanceTooSmall",
138
+ "type": "error"
139
+ },
140
+ {
141
+ "inputs": [
142
+ {
143
+ "internalType": "NftId",
144
+ "name": "nftId",
145
+ "type": "uint96"
146
+ }
147
+ ],
148
+ "name": "ErrorNftOwnableAlreadyLinked",
149
+ "type": "error"
150
+ },
151
+ {
152
+ "inputs": [
153
+ {
154
+ "internalType": "address",
155
+ "name": "contractAddress",
156
+ "type": "address"
157
+ }
158
+ ],
159
+ "name": "ErrorNftOwnableContractNotRegistered",
160
+ "type": "error"
161
+ },
162
+ {
163
+ "inputs": [],
164
+ "name": "ErrorNftOwnableInitialOwnerZero",
165
+ "type": "error"
166
+ },
167
+ {
168
+ "inputs": [
169
+ {
170
+ "internalType": "address",
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",
183
+ "type": "address"
184
+ }
185
+ ],
186
+ "name": "ErrorNotRegistry",
187
+ "type": "error"
188
+ },
189
+ {
190
+ "inputs": [],
191
+ "name": "FailedInnerCall",
192
+ "type": "error"
193
+ },
194
+ {
195
+ "inputs": [],
196
+ "name": "InvalidInitialization",
197
+ "type": "error"
198
+ },
199
+ {
200
+ "inputs": [],
201
+ "name": "NotInitializing",
202
+ "type": "error"
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
+ },
228
+ {
229
+ "anonymous": false,
230
+ "inputs": [
231
+ {
232
+ "indexed": false,
233
+ "internalType": "uint64",
234
+ "name": "version",
235
+ "type": "uint64"
236
+ }
237
+ ],
238
+ "name": "Initialized",
239
+ "type": "event"
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
+ },
304
+ {
305
+ "inputs": [],
306
+ "name": "COMPONENT_LOCATION_V1",
307
+ "outputs": [
308
+ {
309
+ "internalType": "bytes32",
310
+ "name": "",
311
+ "type": "bytes32"
312
+ }
313
+ ],
314
+ "stateMutability": "view",
315
+ "type": "function"
316
+ },
317
+ {
318
+ "inputs": [],
319
+ "name": "DISTRIBUTION_STORAGE_LOCATION_V1",
320
+ "outputs": [
321
+ {
322
+ "internalType": "bytes32",
323
+ "name": "",
324
+ "type": "bytes32"
325
+ }
326
+ ],
327
+ "stateMutability": "view",
328
+ "type": "function"
329
+ },
330
+ {
331
+ "inputs": [],
332
+ "name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
333
+ "outputs": [
334
+ {
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"
351
+ }
352
+ ],
353
+ "stateMutability": "view",
354
+ "type": "function"
355
+ },
356
+ {
357
+ "inputs": [],
358
+ "name": "authority",
359
+ "outputs": [
360
+ {
361
+ "internalType": "address",
362
+ "name": "",
363
+ "type": "address"
364
+ }
365
+ ],
366
+ "stateMutability": "view",
367
+ "type": "function"
368
+ },
369
+ {
370
+ "inputs": [
371
+ {
372
+ "internalType": "ReferralId",
373
+ "name": "referralId",
374
+ "type": "bytes8"
375
+ },
376
+ {
377
+ "internalType": "uint256",
378
+ "name": "netPremiumAmount",
379
+ "type": "uint256"
380
+ }
381
+ ],
382
+ "name": "calculateRenewalFeeAmount",
383
+ "outputs": [
384
+ {
385
+ "internalType": "uint256",
386
+ "name": "feeAmount",
387
+ "type": "uint256"
388
+ }
389
+ ],
390
+ "stateMutability": "view",
391
+ "type": "function"
392
+ },
393
+ {
394
+ "inputs": [
395
+ {
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"
564
+ },
565
+ {
566
+ "internalType": "ObjectType",
567
+ "name": "objectType",
568
+ "type": "uint8"
569
+ },
570
+ {
571
+ "internalType": "bool",
572
+ "name": "isInterceptor",
573
+ "type": "bool"
574
+ },
575
+ {
576
+ "internalType": "address",
577
+ "name": "objectAddress",
578
+ "type": "address"
579
+ },
580
+ {
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": "sumDistributionFees",
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"
897
+ },
898
+ {
899
+ "internalType": "uint256",
900
+ "name": "fixedFee",
901
+ "type": "uint256"
902
+ }
903
+ ],
904
+ "internalType": "struct Fee",
905
+ "name": "distributionFee",
906
+ "type": "tuple"
907
+ },
908
+ {
909
+ "internalType": "address",
910
+ "name": "initialOwner",
911
+ "type": "address"
912
+ },
913
+ {
914
+ "internalType": "bytes",
915
+ "name": "registryData",
916
+ "type": "bytes"
917
+ }
918
+ ],
919
+ "name": "initializeDistribution",
920
+ "outputs": [],
921
+ "stateMutability": "nonpayable",
922
+ "type": "function"
923
+ },
924
+ {
925
+ "inputs": [],
926
+ "name": "initializeERC165",
927
+ "outputs": [],
928
+ "stateMutability": "nonpayable",
929
+ "type": "function"
930
+ },
931
+ {
932
+ "inputs": [
933
+ {
934
+ "internalType": "address",
935
+ "name": "initialOwner",
936
+ "type": "address"
937
+ },
938
+ {
939
+ "internalType": "address",
940
+ "name": "registryAddress",
941
+ "type": "address"
942
+ }
943
+ ],
944
+ "name": "initializeNftOwnable",
945
+ "outputs": [],
946
+ "stateMutability": "nonpayable",
947
+ "type": "function"
948
+ },
949
+ {
950
+ "inputs": [
951
+ {
952
+ "internalType": "address",
953
+ "name": "registryAddress",
954
+ "type": "address"
955
+ },
956
+ {
957
+ "internalType": "NftId",
958
+ "name": "parentNftId",
959
+ "type": "uint96"
960
+ },
961
+ {
962
+ "internalType": "ObjectType",
963
+ "name": "objectType",
964
+ "type": "uint8"
965
+ },
966
+ {
967
+ "internalType": "bool",
968
+ "name": "isInterceptor",
969
+ "type": "bool"
970
+ },
971
+ {
972
+ "internalType": "address",
973
+ "name": "initialOwner",
974
+ "type": "address"
975
+ },
976
+ {
977
+ "internalType": "bytes",
978
+ "name": "registryData",
979
+ "type": "bytes"
980
+ }
981
+ ],
982
+ "name": "initializeRegisterable",
983
+ "outputs": [],
984
+ "stateMutability": "nonpayable",
985
+ "type": "function"
986
+ },
987
+ {
988
+ "inputs": [
989
+ {
990
+ "internalType": "address",
991
+ "name": "registryAddress",
992
+ "type": "address"
993
+ }
994
+ ],
995
+ "name": "initializeRegistryLinked",
996
+ "outputs": [],
997
+ "stateMutability": "nonpayable",
998
+ "type": "function"
999
+ },
1000
+ {
1001
+ "inputs": [],
1002
+ "name": "isConsumingScheduledOp",
1003
+ "outputs": [
1004
+ {
1005
+ "internalType": "bytes4",
1006
+ "name": "",
1007
+ "type": "bytes4"
1008
+ }
1009
+ ],
1010
+ "stateMutability": "view",
1011
+ "type": "function"
1012
+ },
1013
+ {
1014
+ "inputs": [
1015
+ {
1016
+ "internalType": "address",
1017
+ "name": "candidate",
1018
+ "type": "address"
1019
+ }
1020
+ ],
1021
+ "name": "isDistributor",
1022
+ "outputs": [
1023
+ {
1024
+ "internalType": "bool",
1025
+ "name": "",
1026
+ "type": "bool"
1027
+ }
1028
+ ],
1029
+ "stateMutability": "view",
1030
+ "type": "function"
1031
+ },
1032
+ {
1033
+ "inputs": [],
1034
+ "name": "isNftInterceptor",
1035
+ "outputs": [
1036
+ {
1037
+ "internalType": "bool",
1038
+ "name": "isInterceptor",
1039
+ "type": "bool"
1040
+ }
1041
+ ],
1042
+ "stateMutability": "view",
1043
+ "type": "function"
1044
+ },
1045
+ {
1046
+ "inputs": [],
1047
+ "name": "isVerifying",
1048
+ "outputs": [
1049
+ {
1050
+ "internalType": "bool",
1051
+ "name": "verifying",
1052
+ "type": "bool"
1053
+ }
1054
+ ],
1055
+ "stateMutability": "view",
1056
+ "type": "function"
1057
+ },
1058
+ {
1059
+ "inputs": [],
1060
+ "name": "linkToRegisteredNftId",
1061
+ "outputs": [],
1062
+ "stateMutability": "nonpayable",
1063
+ "type": "function"
1064
+ },
1065
+ {
1066
+ "inputs": [],
1067
+ "name": "lock",
1068
+ "outputs": [],
1069
+ "stateMutability": "nonpayable",
1070
+ "type": "function"
1071
+ },
1072
+ {
1073
+ "inputs": [
1074
+ {
1075
+ "internalType": "address",
1076
+ "name": "from",
1077
+ "type": "address"
1078
+ },
1079
+ {
1080
+ "internalType": "address",
1081
+ "name": "to",
1082
+ "type": "address"
1083
+ },
1084
+ {
1085
+ "internalType": "uint256",
1086
+ "name": "tokenId",
1087
+ "type": "uint256"
1088
+ }
1089
+ ],
1090
+ "name": "nftTransferFrom",
1091
+ "outputs": [],
1092
+ "stateMutability": "nonpayable",
1093
+ "type": "function"
1094
+ },
1095
+ {
1096
+ "inputs": [
1097
+ {
1098
+ "internalType": "ReferralId",
1099
+ "name": "referralId",
1100
+ "type": "bytes8"
1101
+ },
1102
+ {
1103
+ "internalType": "uint256",
1104
+ "name": "feeAmount",
1105
+ "type": "uint256"
1106
+ }
1107
+ ],
1108
+ "name": "processRenewal",
1109
+ "outputs": [],
1110
+ "stateMutability": "nonpayable",
1111
+ "type": "function"
1112
+ },
1113
+ {
1114
+ "inputs": [
1115
+ {
1116
+ "internalType": "ReferralId",
1117
+ "name": "referralId",
1118
+ "type": "bytes8"
1119
+ },
1120
+ {
1121
+ "internalType": "uint256",
1122
+ "name": "premiumAmount",
1123
+ "type": "uint256"
1124
+ }
1125
+ ],
1126
+ "name": "processSale",
1127
+ "outputs": [],
1128
+ "stateMutability": "nonpayable",
1129
+ "type": "function"
1130
+ },
1131
+ {
1132
+ "inputs": [
1133
+ {
1134
+ "internalType": "bytes4",
1135
+ "name": "interfaceId",
1136
+ "type": "bytes4"
1137
+ }
1138
+ ],
1139
+ "name": "registerInterface",
1140
+ "outputs": [],
1141
+ "stateMutability": "nonpayable",
1142
+ "type": "function"
1143
+ },
1144
+ {
1145
+ "inputs": [
1146
+ {
1147
+ "internalType": "address",
1148
+ "name": "newAuthority",
1149
+ "type": "address"
1150
+ }
1151
+ ],
1152
+ "name": "setAuthority",
1153
+ "outputs": [],
1154
+ "stateMutability": "nonpayable",
1155
+ "type": "function"
1156
+ },
1157
+ {
1158
+ "inputs": [
1159
+ {
1160
+ "components": [
1161
+ {
1162
+ "internalType": "UFixed",
1163
+ "name": "fractionalFee",
1164
+ "type": "uint256"
1165
+ },
1166
+ {
1167
+ "internalType": "uint256",
1168
+ "name": "fixedFee",
1169
+ "type": "uint256"
1170
+ }
1171
+ ],
1172
+ "internalType": "struct Fee",
1173
+ "name": "minDistributionOwnerFee",
1174
+ "type": "tuple"
1175
+ },
1176
+ {
1177
+ "components": [
1178
+ {
1179
+ "internalType": "UFixed",
1180
+ "name": "fractionalFee",
1181
+ "type": "uint256"
1182
+ },
1183
+ {
1184
+ "internalType": "uint256",
1185
+ "name": "fixedFee",
1186
+ "type": "uint256"
1187
+ }
1188
+ ],
1189
+ "internalType": "struct Fee",
1190
+ "name": "distributionFee",
1191
+ "type": "tuple"
1192
+ }
1193
+ ],
1194
+ "name": "setFees",
1195
+ "outputs": [],
1196
+ "stateMutability": "nonpayable",
1197
+ "type": "function"
1198
+ },
1199
+ {
1200
+ "inputs": [
1201
+ {
1202
+ "internalType": "NftId",
1203
+ "name": "productNftId",
1204
+ "type": "uint96"
1205
+ }
1206
+ ],
1207
+ "name": "setProductNftId",
1208
+ "outputs": [],
1209
+ "stateMutability": "nonpayable",
1210
+ "type": "function"
1211
+ },
1212
+ {
1213
+ "inputs": [
1214
+ {
1215
+ "internalType": "address",
1216
+ "name": "newWallet",
1217
+ "type": "address"
1218
+ }
1219
+ ],
1220
+ "name": "setWallet",
1221
+ "outputs": [],
1222
+ "stateMutability": "nonpayable",
1223
+ "type": "function"
1224
+ },
1225
+ {
1226
+ "inputs": [
1227
+ {
1228
+ "internalType": "bytes4",
1229
+ "name": "interfaceId",
1230
+ "type": "bytes4"
1231
+ }
1232
+ ],
1233
+ "name": "supportsInterface",
1234
+ "outputs": [
1235
+ {
1236
+ "internalType": "bool",
1237
+ "name": "",
1238
+ "type": "bool"
1239
+ }
1240
+ ],
1241
+ "stateMutability": "view",
1242
+ "type": "function"
1243
+ },
1244
+ {
1245
+ "inputs": [],
1246
+ "name": "unlock",
1247
+ "outputs": [],
1248
+ "stateMutability": "nonpayable",
1249
+ "type": "function"
1250
+ },
1251
+ {
1252
+ "inputs": [
1253
+ {
1254
+ "internalType": "NftId",
1255
+ "name": "distributorNftId",
1256
+ "type": "uint96"
1257
+ },
1258
+ {
1259
+ "internalType": "DistributorType",
1260
+ "name": "distributorType",
1261
+ "type": "bytes8"
1262
+ },
1263
+ {
1264
+ "internalType": "bytes",
1265
+ "name": "data",
1266
+ "type": "bytes"
1267
+ }
1268
+ ],
1269
+ "name": "updateDistributorType",
1270
+ "outputs": [],
1271
+ "stateMutability": "nonpayable",
1272
+ "type": "function"
1273
+ }
1274
+ ],
1275
+ "bytecode": "0x",
1276
+ "deployedBytecode": "0x",
1277
+ "linkReferences": {},
1278
+ "deployedLinkReferences": {}
1279
+ }