@etherisc/gif-next 0.0.2-af31235-079 → 0.0.2-af31cce-307

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (382) hide show
  1. package/README.md +268 -7
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +4 -0
  3. package/artifacts/contracts/{instance/component/ComponentModule.sol/ComponentModule.json → components/BaseComponent.sol/BaseComponent.json} +171 -143
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +670 -0
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +4 -0
  7. package/artifacts/contracts/components/{IPool.sol/IPoolComponent.json → IBaseComponent.sol/IBaseComponent.json} +136 -111
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +204 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  11. package/artifacts/contracts/{instance/policy/IPolicy.sol/IPolicyModule.json → components/IPoolComponent.sol/IPoolComponent.json} +124 -129
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +157 -0
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +539 -77
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +526 -97
  18. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +4 -0
  19. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +66 -0
  20. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +4 -0
  21. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +24 -0
  22. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +4 -0
  23. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +42 -0
  24. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +2 -2
  26. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +2 -2
  28. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +2 -2
  30. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +2 -2
  32. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  36. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  37. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  38. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  39. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  40. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  41. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  42. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  43. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
  44. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  45. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
  46. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  47. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +2 -2
  48. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  49. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +2 -2
  50. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +4 -0
  51. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.json +101 -0
  52. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +4 -0
  53. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +1132 -0
  54. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +4 -0
  55. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +1082 -0
  56. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  57. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +274 -1309
  58. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  59. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +480 -0
  60. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  61. package/artifacts/contracts/instance/Instance.sol/Instance.json +2754 -963
  62. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  63. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +917 -0
  64. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  65. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1283 -0
  66. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  67. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +827 -0
  68. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  69. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +468 -0
  70. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +4 -0
  71. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +481 -0
  72. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  73. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +113 -0
  74. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  75. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +429 -0
  76. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  77. package/artifacts/contracts/instance/{lifecycle/ILifecycle.sol/ILifecycleModule.json → base/ILifecycle.sol/ILifecycle.json} +10 -77
  78. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  79. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +502 -0
  80. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  81. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
  82. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  83. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +211 -0
  84. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  85. package/artifacts/contracts/instance/{access/IAccess.sol/IAccess.json → module/IBundle.sol/IBundle.json} +2 -2
  86. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  87. package/artifacts/contracts/instance/{component/IComponent.sol/IComponent.json → module/IDistribution.sol/IDistribution.json} +2 -2
  88. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  89. package/artifacts/contracts/instance/{policy → module}/IPolicy.sol/IPolicy.json +1 -1
  90. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  91. package/artifacts/contracts/instance/{pool/IPoolModule.sol/IPool.json → module/IRisk.sol/IRisk.json} +2 -2
  92. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  93. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.json +10 -0
  94. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  95. package/artifacts/contracts/instance/{treasury → module}/ITreasury.sol/ITreasury.json +1 -1
  96. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +4 -0
  97. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +827 -0
  98. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  99. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +641 -0
  100. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  101. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +428 -0
  102. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +4 -0
  103. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +466 -0
  104. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  105. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +446 -0
  106. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
  107. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +561 -0
  108. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
  109. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +751 -0
  110. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  111. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +239 -2
  112. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  113. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +589 -24
  114. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  115. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +853 -0
  116. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  117. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  118. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  119. package/artifacts/contracts/registry/Registry.sol/Registry.json +741 -50
  120. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  121. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1237 -0
  122. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  123. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +525 -0
  124. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  125. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +410 -0
  126. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  127. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  128. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +4 -0
  129. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +35 -0
  130. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  131. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +127 -0
  132. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
  133. package/artifacts/contracts/{components/Component.sol/Component.json → shared/IRegisterable.sol/IRegisterable.json} +98 -102
  134. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  135. package/artifacts/contracts/shared/IService.sol/IService.json +421 -0
  136. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
  137. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +205 -0
  138. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  139. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +158 -0
  140. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  141. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +349 -0
  142. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
  143. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +274 -0
  144. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +4 -0
  145. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.json +442 -0
  146. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  147. package/artifacts/contracts/shared/Service.sol/Service.json +468 -0
  148. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  149. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  150. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  151. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  152. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
  153. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +228 -0
  154. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
  155. package/artifacts/contracts/test/TestFee.sol/TestFee.json +119 -0
  156. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
  157. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +305 -0
  158. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +4 -0
  159. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +116 -0
  160. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
  161. package/artifacts/contracts/test/TestService.sol/TestService.json +600 -0
  162. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
  163. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +376 -0
  164. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
  165. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +218 -0
  166. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
  167. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +286 -0
  168. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
  169. package/artifacts/contracts/test/Usdc.sol/USDC.json +376 -0
  170. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  171. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -0
  172. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  173. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
  174. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  175. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +2 -2
  176. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  177. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  178. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +4 -0
  179. package/artifacts/contracts/types/Fee.sol/FeeLib.json +257 -0
  180. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
  181. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +125 -0
  182. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  183. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +65 -4
  184. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  185. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +10 -0
  186. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  187. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  188. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  189. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  190. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  191. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  192. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  193. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  194. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
  195. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +156 -0
  196. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  197. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  198. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  199. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +77 -2
  200. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  201. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  202. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  203. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +479 -0
  204. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
  205. package/artifacts/contracts/types/Version.sol/VersionLib.json +177 -0
  206. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
  207. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +49 -0
  208. package/contracts/components/BaseComponent.sol +91 -0
  209. package/contracts/components/Distribution.sol +166 -0
  210. package/contracts/components/IBaseComponent.sol +25 -0
  211. package/contracts/components/IDistributionComponent.sol +46 -0
  212. package/contracts/components/IPoolComponent.sol +62 -0
  213. package/contracts/components/IProductComponent.sol +35 -0
  214. package/contracts/components/Pool.sol +231 -25
  215. package/contracts/components/Product.sol +254 -46
  216. package/contracts/experiment/cloning/Cloner.sol +47 -0
  217. package/contracts/instance/AccessManagedSimple.sol +115 -0
  218. package/contracts/instance/AccessManagerSimple.sol +692 -0
  219. package/contracts/instance/IAccessManagerSimple.sol +391 -0
  220. package/contracts/instance/IInstance.sol +32 -24
  221. package/contracts/instance/IInstanceService.sol +30 -0
  222. package/contracts/instance/Instance.sol +423 -52
  223. package/contracts/instance/InstanceAccessManager.sol +288 -0
  224. package/contracts/instance/InstanceReader.sol +290 -0
  225. package/contracts/instance/InstanceService.sol +158 -0
  226. package/contracts/instance/InstanceServiceManager.sol +56 -0
  227. package/contracts/instance/base/ComponentServiceBase.sol +39 -0
  228. package/contracts/instance/base/IInstanceBase.sol +23 -0
  229. package/contracts/instance/base/IKeyValueStore.sol +49 -0
  230. package/contracts/instance/base/ILifecycle.sol +30 -0
  231. package/contracts/instance/base/KeyValueStore.sol +172 -0
  232. package/contracts/instance/base/Lifecycle.sol +100 -0
  233. package/contracts/instance/module/IAccess.sol +38 -0
  234. package/contracts/instance/module/IBundle.sol +19 -0
  235. package/contracts/instance/module/IDistribution.sol +39 -0
  236. package/contracts/instance/module/IPolicy.sol +45 -0
  237. package/contracts/instance/module/IRisk.sol +11 -0
  238. package/contracts/instance/module/ISetup.sol +43 -0
  239. package/contracts/instance/module/ITreasury.sol +23 -0
  240. package/contracts/instance/service/ComponentOwnerService.sol +317 -0
  241. package/contracts/instance/service/DistributionService.sol +96 -0
  242. package/contracts/instance/service/DistributionServiceManager.sol +53 -0
  243. package/contracts/instance/service/IComponentOwnerService.sol +20 -0
  244. package/contracts/instance/service/IDistributionService.sol +12 -0
  245. package/contracts/instance/service/IPoolService.sol +37 -0
  246. package/contracts/instance/service/IProductService.sol +107 -0
  247. package/contracts/registry/ChainNft.sol +129 -62
  248. package/contracts/registry/IRegistry.sol +70 -43
  249. package/contracts/registry/IRegistryService.sol +33 -0
  250. package/contracts/registry/ITransferInterceptor.sol +6 -0
  251. package/contracts/registry/Registry.sol +432 -125
  252. package/contracts/registry/RegistryService.sol +399 -0
  253. package/contracts/registry/RegistryServiceManager.sol +80 -0
  254. package/contracts/registry/TokenRegistry.sol +111 -0
  255. package/contracts/shared/ContractDeployerLib.sol +72 -0
  256. package/contracts/shared/ERC165.sol +25 -0
  257. package/contracts/shared/INftOwnable.sol +22 -0
  258. package/contracts/shared/IRegisterable.sol +17 -0
  259. package/contracts/shared/IService.sol +15 -0
  260. package/contracts/shared/IVersionable.sol +96 -0
  261. package/contracts/shared/NftOwnable.sol +136 -0
  262. package/contracts/shared/ProxyManager.sol +94 -0
  263. package/contracts/shared/Registerable.sol +90 -0
  264. package/contracts/shared/RegisterableUpgradable.sol +16 -0
  265. package/contracts/shared/Service.sol +54 -0
  266. package/contracts/shared/TokenHandler.sol +27 -0
  267. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  268. package/contracts/shared/Versionable.sol +147 -0
  269. package/contracts/test/TestFee.sol +25 -0
  270. package/contracts/test/TestRegisterable.sol +18 -0
  271. package/contracts/test/TestRoleId.sol +14 -0
  272. package/contracts/test/TestService.sol +24 -0
  273. package/contracts/test/TestToken.sol +26 -0
  274. package/contracts/test/TestVersion.sol +44 -0
  275. package/contracts/test/TestVersionable.sol +17 -0
  276. package/contracts/test/Usdc.sol +26 -0
  277. package/contracts/types/AddressSet.sol +58 -0
  278. package/contracts/types/DistributorType.sol +55 -0
  279. package/contracts/types/Fee.sol +44 -20
  280. package/contracts/types/Key32.sol +50 -0
  281. package/contracts/types/NftId.sol +22 -1
  282. package/contracts/types/NftIdSet.sol +60 -0
  283. package/contracts/types/NumberId.sol +52 -0
  284. package/contracts/types/ObjectType.sol +60 -15
  285. package/contracts/types/Referral.sol +85 -0
  286. package/contracts/types/RiskId.sol +43 -0
  287. package/contracts/types/RoleId.sol +88 -0
  288. package/contracts/types/StateId.sol +18 -4
  289. package/contracts/types/Timestamp.sol +29 -4
  290. package/contracts/types/UFixed.sol +150 -31
  291. package/contracts/types/Version.sol +107 -0
  292. package/package.json +7 -3
  293. package/artifacts/contracts/components/Component.sol/Component.dbg.json +0 -4
  294. package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +0 -4
  295. package/artifacts/contracts/components/Component.sol/InstanceLinked.json +0 -35
  296. package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +0 -4
  297. package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +0 -4
  298. package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +0 -74
  299. package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +0 -4
  300. package/artifacts/contracts/instance/access/Access.sol/AccessModule.json +0 -400
  301. package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +0 -4
  302. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +0 -4
  303. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +0 -35
  304. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +0 -4
  305. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +0 -50
  306. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  307. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.json +0 -336
  308. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  309. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +0 -4
  310. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +0 -202
  311. package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +0 -4
  312. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +0 -4
  313. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.json +0 -205
  314. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  315. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +0 -217
  316. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +0 -4
  317. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +0 -141
  318. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
  319. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.json +0 -24
  320. package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.dbg.json +0 -4
  321. package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.json +0 -134
  322. package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycleModule.dbg.json +0 -4
  323. package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.dbg.json +0 -4
  324. package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.json +0 -221
  325. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  326. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  327. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  328. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.json +0 -254
  329. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  330. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  331. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.json +0 -129
  332. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  333. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.json +0 -155
  334. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +0 -4
  335. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +0 -75
  336. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +0 -4
  337. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.json +0 -127
  338. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +0 -4
  339. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.json +0 -75
  340. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +0 -4
  341. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +0 -196
  342. package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  343. package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  344. package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasuryModule.json +0 -490
  345. package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  346. package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.json +0 -45
  347. package/artifacts/contracts/instance/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  348. package/artifacts/contracts/instance/treasury/TreasuryModule.sol/TreasuryModule.json +0 -490
  349. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  350. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -452
  351. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
  352. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.json +0 -24
  353. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
  354. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.json +0 -166
  355. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +0 -4
  356. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.json +0 -49
  357. package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +0 -4
  358. package/artifacts/contracts/registry/Registry.sol/Registerable.json +0 -166
  359. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +0 -4
  360. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +0 -60
  361. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  362. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +0 -453
  363. package/contracts/components/Component.sol +0 -77
  364. package/contracts/components/IPool.sol +0 -15
  365. package/contracts/components/IProduct.sol +0 -16
  366. package/contracts/experiment/statemachine/README.md +0 -112
  367. package/contracts/instance/access/Access.sol +0 -165
  368. package/contracts/instance/access/IAccess.sol +0 -63
  369. package/contracts/instance/component/ComponentModule.sol +0 -274
  370. package/contracts/instance/component/IComponent.sol +0 -74
  371. package/contracts/instance/lifecycle/ILifecycle.sol +0 -47
  372. package/contracts/instance/lifecycle/LifecycleModule.sol +0 -88
  373. package/contracts/instance/policy/IPolicy.sol +0 -50
  374. package/contracts/instance/policy/PolicyModule.sol +0 -114
  375. package/contracts/instance/pool/IPoolModule.sol +0 -23
  376. package/contracts/instance/pool/PoolModule.sol +0 -81
  377. package/contracts/instance/product/IProductService.sol +0 -36
  378. package/contracts/instance/product/ProductService.sol +0 -136
  379. package/contracts/instance/treasury/ITreasury.sol +0 -91
  380. package/contracts/instance/treasury/TokenHandler.sol +0 -24
  381. package/contracts/instance/treasury/TreasuryModule.sol +0 -168
  382. package/contracts/registry/IChainNft.sol +0 -21
@@ -7,368 +7,151 @@
7
7
  "inputs": [
8
8
  {
9
9
  "internalType": "NftId",
10
- "name": "nftId",
10
+ "name": "distributionNftId",
11
11
  "type": "uint96"
12
12
  },
13
- {
14
- "internalType": "ObjectType",
15
- "name": "objectType",
16
- "type": "uint8"
17
- },
18
- {
19
- "internalType": "StateId",
20
- "name": "fromStateId",
21
- "type": "uint8"
22
- },
23
- {
24
- "internalType": "StateId",
25
- "name": "toStateId",
26
- "type": "uint8"
27
- }
28
- ],
29
- "name": "ErrorInvalidStateTransition",
30
- "type": "error"
31
- },
32
- {
33
- "inputs": [
34
- {
35
- "internalType": "NftId",
36
- "name": "nftId",
37
- "type": "uint96"
38
- },
39
- {
40
- "internalType": "ObjectType",
41
- "name": "objectType",
42
- "type": "uint8"
43
- }
44
- ],
45
- "name": "ErrorNoLifecycle",
46
- "type": "error"
47
- },
48
- {
49
- "anonymous": false,
50
- "inputs": [
51
- {
52
- "indexed": false,
53
- "internalType": "NftId",
54
- "name": "nftId",
55
- "type": "uint96"
56
- },
57
- {
58
- "indexed": false,
59
- "internalType": "StateId",
60
- "name": "fromStateId",
61
- "type": "uint8"
62
- },
63
- {
64
- "indexed": false,
65
- "internalType": "StateId",
66
- "name": "toStateId",
67
- "type": "uint8"
68
- }
69
- ],
70
- "name": "LogBundleStateChanged",
71
- "type": "event"
72
- },
73
- {
74
- "anonymous": false,
75
- "inputs": [
76
- {
77
- "indexed": false,
78
- "internalType": "NftId",
79
- "name": "nftId",
80
- "type": "uint96"
81
- },
82
- {
83
- "indexed": false,
84
- "internalType": "ObjectType",
85
- "name": "objectType",
86
- "type": "uint8"
87
- },
88
- {
89
- "indexed": false,
90
- "internalType": "StateId",
91
- "name": "fromStateId",
92
- "type": "uint8"
93
- },
94
- {
95
- "indexed": false,
96
- "internalType": "StateId",
97
- "name": "toStateId",
98
- "type": "uint8"
99
- }
100
- ],
101
- "name": "LogComponentStateChanged",
102
- "type": "event"
103
- },
104
- {
105
- "anonymous": false,
106
- "inputs": [
107
- {
108
- "indexed": false,
109
- "internalType": "uint256",
110
- "name": "idx",
111
- "type": "uint256"
112
- },
113
- {
114
- "indexed": false,
115
- "internalType": "address",
116
- "name": "module",
117
- "type": "address"
118
- },
119
- {
120
- "indexed": false,
121
- "internalType": "string",
122
- "name": "comment",
123
- "type": "string"
124
- }
125
- ],
126
- "name": "LogDebug",
127
- "type": "event"
128
- },
129
- {
130
- "anonymous": false,
131
- "inputs": [
132
- {
133
- "indexed": false,
134
- "internalType": "NftId",
135
- "name": "nftId",
136
- "type": "uint96"
137
- },
138
- {
139
- "indexed": false,
140
- "internalType": "StateId",
141
- "name": "fromStateId",
142
- "type": "uint8"
143
- },
144
- {
145
- "indexed": false,
146
- "internalType": "StateId",
147
- "name": "toStateId",
148
- "type": "uint8"
149
- }
150
- ],
151
- "name": "LogPolicyStateChanged",
152
- "type": "event"
153
- },
154
- {
155
- "inputs": [],
156
- "name": "ORACLE_OWNER_ROLE",
157
- "outputs": [
158
- {
159
- "internalType": "bytes32",
160
- "name": "role",
161
- "type": "bytes32"
162
- }
163
- ],
164
- "stateMutability": "view",
165
- "type": "function"
166
- },
167
- {
168
- "inputs": [],
169
- "name": "POOL_OWNER_ROLE",
170
- "outputs": [
171
- {
172
- "internalType": "bytes32",
173
- "name": "role",
174
- "type": "bytes32"
175
- }
176
- ],
177
- "stateMutability": "view",
178
- "type": "function"
179
- },
180
- {
181
- "inputs": [],
182
- "name": "PRODUCT_OWNER_ROLE",
183
- "outputs": [
184
- {
185
- "internalType": "bytes32",
186
- "name": "role",
187
- "type": "bytes32"
188
- }
189
- ],
190
- "stateMutability": "view",
191
- "type": "function"
192
- },
193
- {
194
- "inputs": [
195
- {
196
- "internalType": "NftId",
197
- "name": "nftId",
198
- "type": "uint96"
199
- }
200
- ],
201
- "name": "activate",
202
- "outputs": [],
203
- "stateMutability": "nonpayable",
204
- "type": "function"
205
- },
206
- {
207
- "inputs": [
208
- {
209
- "internalType": "uint256",
210
- "name": "amount",
211
- "type": "uint256"
212
- },
213
13
  {
214
14
  "components": [
215
15
  {
216
- "internalType": "UFixed",
217
- "name": "fractionalFee",
218
- "type": "uint256"
16
+ "internalType": "NftId",
17
+ "name": "productNftId",
18
+ "type": "uint96"
219
19
  },
220
20
  {
221
- "internalType": "uint256",
222
- "name": "fixedFee",
223
- "type": "uint256"
21
+ "internalType": "contract TokenHandler",
22
+ "name": "tokenHandler",
23
+ "type": "address"
24
+ },
25
+ {
26
+ "components": [
27
+ {
28
+ "internalType": "UFixed",
29
+ "name": "fractionalFee",
30
+ "type": "uint256"
31
+ },
32
+ {
33
+ "internalType": "uint256",
34
+ "name": "fixedFee",
35
+ "type": "uint256"
36
+ }
37
+ ],
38
+ "internalType": "struct Fee",
39
+ "name": "distributionFee",
40
+ "type": "tuple"
41
+ },
42
+ {
43
+ "internalType": "bool",
44
+ "name": "isIntercepting",
45
+ "type": "bool"
46
+ },
47
+ {
48
+ "internalType": "address",
49
+ "name": "wallet",
50
+ "type": "address"
224
51
  }
225
52
  ],
226
- "internalType": "struct Fee",
227
- "name": "fee",
53
+ "internalType": "struct ISetup.DistributionSetupInfo",
54
+ "name": "setup",
228
55
  "type": "tuple"
229
56
  }
230
57
  ],
231
- "name": "calculateFeeAmount",
232
- "outputs": [
233
- {
234
- "internalType": "uint256",
235
- "name": "feeAmount",
236
- "type": "uint256"
237
- },
238
- {
239
- "internalType": "uint256",
240
- "name": "netAmount",
241
- "type": "uint256"
242
- }
243
- ],
244
- "stateMutability": "pure",
245
- "type": "function"
246
- },
247
- {
248
- "inputs": [],
249
- "name": "components",
250
- "outputs": [
251
- {
252
- "internalType": "uint256",
253
- "name": "numberOfCompnents",
254
- "type": "uint256"
255
- }
256
- ],
257
- "stateMutability": "view",
58
+ "name": "createDistributionSetup",
59
+ "outputs": [],
60
+ "stateMutability": "nonpayable",
258
61
  "type": "function"
259
62
  },
260
63
  {
261
64
  "inputs": [
65
+ {
66
+ "internalType": "NftId",
67
+ "name": "distributionNftId",
68
+ "type": "uint96"
69
+ },
262
70
  {
263
71
  "components": [
264
72
  {
265
73
  "internalType": "NftId",
266
- "name": "nftId",
74
+ "name": "productNftId",
267
75
  "type": "uint96"
268
76
  },
269
77
  {
270
- "internalType": "NftId",
271
- "name": "parentNftId",
272
- "type": "uint96"
78
+ "internalType": "contract TokenHandler",
79
+ "name": "tokenHandler",
80
+ "type": "address"
81
+ },
82
+ {
83
+ "internalType": "UFixed",
84
+ "name": "collateralizationLevel",
85
+ "type": "uint256"
273
86
  },
274
87
  {
275
- "internalType": "ObjectType",
276
- "name": "objectType",
277
- "type": "uint8"
88
+ "components": [
89
+ {
90
+ "internalType": "UFixed",
91
+ "name": "fractionalFee",
92
+ "type": "uint256"
93
+ },
94
+ {
95
+ "internalType": "uint256",
96
+ "name": "fixedFee",
97
+ "type": "uint256"
98
+ }
99
+ ],
100
+ "internalType": "struct Fee",
101
+ "name": "poolFee",
102
+ "type": "tuple"
278
103
  },
279
104
  {
280
- "internalType": "address",
281
- "name": "objectAddress",
282
- "type": "address"
105
+ "components": [
106
+ {
107
+ "internalType": "UFixed",
108
+ "name": "fractionalFee",
109
+ "type": "uint256"
110
+ },
111
+ {
112
+ "internalType": "uint256",
113
+ "name": "fixedFee",
114
+ "type": "uint256"
115
+ }
116
+ ],
117
+ "internalType": "struct Fee",
118
+ "name": "stakingFee",
119
+ "type": "tuple"
120
+ },
121
+ {
122
+ "components": [
123
+ {
124
+ "internalType": "UFixed",
125
+ "name": "fractionalFee",
126
+ "type": "uint256"
127
+ },
128
+ {
129
+ "internalType": "uint256",
130
+ "name": "fixedFee",
131
+ "type": "uint256"
132
+ }
133
+ ],
134
+ "internalType": "struct Fee",
135
+ "name": "performanceFee",
136
+ "type": "tuple"
137
+ },
138
+ {
139
+ "internalType": "bool",
140
+ "name": "isIntercepting",
141
+ "type": "bool"
283
142
  },
284
143
  {
285
144
  "internalType": "address",
286
- "name": "initialOwner",
145
+ "name": "wallet",
287
146
  "type": "address"
288
147
  }
289
148
  ],
290
- "internalType": "struct IRegistry.RegistryInfo",
291
- "name": "productInfo",
149
+ "internalType": "struct ISetup.PoolSetupInfo",
150
+ "name": "setup",
292
151
  "type": "tuple"
293
- },
294
- {
295
- "internalType": "address",
296
- "name": "applicationOwner",
297
- "type": "address"
298
- },
299
- {
300
- "internalType": "uint256",
301
- "name": "sumInsuredAmount",
302
- "type": "uint256"
303
- },
304
- {
305
- "internalType": "uint256",
306
- "name": "premiumAmount",
307
- "type": "uint256"
308
- },
309
- {
310
- "internalType": "uint256",
311
- "name": "lifetime",
312
- "type": "uint256"
313
- },
314
- {
315
- "internalType": "NftId",
316
- "name": "bundleNftId",
317
- "type": "uint96"
318
- }
319
- ],
320
- "name": "createApplication",
321
- "outputs": [
322
- {
323
- "internalType": "NftId",
324
- "name": "nftId",
325
- "type": "uint96"
326
- }
327
- ],
328
- "stateMutability": "nonpayable",
329
- "type": "function"
330
- },
331
- {
332
- "inputs": [
333
- {
334
- "internalType": "string",
335
- "name": "roleName",
336
- "type": "string"
337
- }
338
- ],
339
- "name": "createRole",
340
- "outputs": [
341
- {
342
- "internalType": "bytes32",
343
- "name": "role",
344
- "type": "bytes32"
345
- }
346
- ],
347
- "stateMutability": "nonpayable",
348
- "type": "function"
349
- },
350
- {
351
- "inputs": [
352
- {
353
- "internalType": "bytes32",
354
- "name": "role",
355
- "type": "bytes32"
356
- }
357
- ],
358
- "name": "disableRole",
359
- "outputs": [],
360
- "stateMutability": "nonpayable",
361
- "type": "function"
362
- },
363
- {
364
- "inputs": [
365
- {
366
- "internalType": "bytes32",
367
- "name": "role",
368
- "type": "bytes32"
369
152
  }
370
153
  ],
371
- "name": "enableRole",
154
+ "name": "createPoolSetup",
372
155
  "outputs": [],
373
156
  "stateMutability": "nonpayable",
374
157
  "type": "function"
@@ -377,440 +160,30 @@
377
160
  "inputs": [
378
161
  {
379
162
  "internalType": "NftId",
380
- "name": "nftId",
381
- "type": "uint96"
382
- }
383
- ],
384
- "name": "getBundleNftForPolicy",
385
- "outputs": [
386
- {
387
- "internalType": "NftId",
388
- "name": "bundleNft",
389
- "type": "uint96"
390
- }
391
- ],
392
- "stateMutability": "view",
393
- "type": "function"
394
- },
395
- {
396
- "inputs": [
397
- {
398
- "internalType": "address",
399
- "name": "componentAddress",
400
- "type": "address"
401
- }
402
- ],
403
- "name": "getComponentId",
404
- "outputs": [
405
- {
406
- "internalType": "NftId",
407
- "name": "nftId",
408
- "type": "uint96"
409
- }
410
- ],
411
- "stateMutability": "view",
412
- "type": "function"
413
- },
414
- {
415
- "inputs": [
416
- {
417
- "internalType": "uint256",
418
- "name": "idx",
419
- "type": "uint256"
420
- }
421
- ],
422
- "name": "getComponentId",
423
- "outputs": [
424
- {
425
- "internalType": "NftId",
426
- "name": "nftId",
427
- "type": "uint96"
428
- }
429
- ],
430
- "stateMutability": "view",
431
- "type": "function"
432
- },
433
- {
434
- "inputs": [
435
- {
436
- "internalType": "NftId",
437
- "name": "nftId",
163
+ "name": "productNftId",
438
164
  "type": "uint96"
439
- }
440
- ],
441
- "name": "getComponentInfo",
442
- "outputs": [
165
+ },
443
166
  {
444
167
  "components": [
445
- {
446
- "internalType": "NftId",
447
- "name": "nftId",
448
- "type": "uint96"
449
- },
450
- {
451
- "internalType": "StateId",
452
- "name": "state",
453
- "type": "uint8"
454
- },
455
168
  {
456
169
  "internalType": "contract IERC20Metadata",
457
170
  "name": "token",
458
171
  "type": "address"
459
- }
460
- ],
461
- "internalType": "struct IComponent.ComponentInfo",
462
- "name": "info",
463
- "type": "tuple"
464
- }
465
- ],
466
- "stateMutability": "view",
467
- "type": "function"
468
- },
469
- {
470
- "inputs": [],
471
- "name": "getComponentOwnerService",
472
- "outputs": [
473
- {
474
- "internalType": "contract IComponentOwnerService",
475
- "name": "",
476
- "type": "address"
477
- }
478
- ],
479
- "stateMutability": "view",
480
- "type": "function"
481
- },
482
- {
483
- "inputs": [],
484
- "name": "getData",
485
- "outputs": [
486
- {
487
- "internalType": "bytes",
488
- "name": "data",
489
- "type": "bytes"
490
- }
491
- ],
492
- "stateMutability": "view",
493
- "type": "function"
494
- },
495
- {
496
- "inputs": [],
497
- "name": "getInitialOwner",
498
- "outputs": [
499
- {
500
- "internalType": "address",
501
- "name": "initialOwner",
502
- "type": "address"
503
- }
504
- ],
505
- "stateMutability": "view",
506
- "type": "function"
507
- },
508
- {
509
- "inputs": [
510
- {
511
- "internalType": "ObjectType",
512
- "name": "objectType",
513
- "type": "uint8"
514
- }
515
- ],
516
- "name": "getInitialState",
517
- "outputs": [
518
- {
519
- "internalType": "StateId",
520
- "name": "",
521
- "type": "uint8"
522
- }
523
- ],
524
- "stateMutability": "view",
525
- "type": "function"
526
- },
527
- {
528
- "inputs": [],
529
- "name": "getNftId",
530
- "outputs": [
531
- {
532
- "internalType": "NftId",
533
- "name": "nftId",
534
- "type": "uint96"
535
- }
536
- ],
537
- "stateMutability": "view",
538
- "type": "function"
539
- },
540
- {
541
- "inputs": [],
542
- "name": "getOwner",
543
- "outputs": [
544
- {
545
- "internalType": "address",
546
- "name": "owner",
547
- "type": "address"
548
- }
549
- ],
550
- "stateMutability": "view",
551
- "type": "function"
552
- },
553
- {
554
- "inputs": [],
555
- "name": "getParentNftId",
556
- "outputs": [
557
- {
558
- "internalType": "NftId",
559
- "name": "parentNftId",
560
- "type": "uint96"
561
- }
562
- ],
563
- "stateMutability": "view",
564
- "type": "function"
565
- },
566
- {
567
- "inputs": [
568
- {
569
- "internalType": "NftId",
570
- "name": "nftId",
571
- "type": "uint96"
572
- }
573
- ],
574
- "name": "getPolicyInfo",
575
- "outputs": [
576
- {
577
- "components": [
578
- {
579
- "internalType": "NftId",
580
- "name": "nftId",
581
- "type": "uint96"
582
- },
583
- {
584
- "internalType": "StateId",
585
- "name": "state",
586
- "type": "uint8"
587
- },
588
- {
589
- "internalType": "uint256",
590
- "name": "sumInsuredAmount",
591
- "type": "uint256"
592
- },
593
- {
594
- "internalType": "uint256",
595
- "name": "premiumAmount",
596
- "type": "uint256"
597
- },
598
- {
599
- "internalType": "uint256",
600
- "name": "premiumPaidAmount",
601
- "type": "uint256"
602
172
  },
603
173
  {
604
- "internalType": "uint256",
605
- "name": "lifetime",
606
- "type": "uint256"
607
- },
608
- {
609
- "internalType": "uint256",
610
- "name": "createdAt",
611
- "type": "uint256"
612
- },
613
- {
614
- "internalType": "uint256",
615
- "name": "updatedAt",
616
- "type": "uint256"
617
- },
618
- {
619
- "internalType": "uint256",
620
- "name": "activatedAt",
621
- "type": "uint256"
622
- },
623
- {
624
- "internalType": "uint256",
625
- "name": "expiredAt",
626
- "type": "uint256"
174
+ "internalType": "contract TokenHandler",
175
+ "name": "tokenHandler",
176
+ "type": "address"
627
177
  },
628
- {
629
- "internalType": "uint256",
630
- "name": "closedAt",
631
- "type": "uint256"
632
- }
633
- ],
634
- "internalType": "struct IPolicy.PolicyInfo",
635
- "name": "info",
636
- "type": "tuple"
637
- }
638
- ],
639
- "stateMutability": "view",
640
- "type": "function"
641
- },
642
- {
643
- "inputs": [
644
- {
645
- "internalType": "NftId",
646
- "name": "nftId",
647
- "type": "uint96"
648
- }
649
- ],
650
- "name": "getPoolInfo",
651
- "outputs": [
652
- {
653
- "components": [
654
178
  {
655
179
  "internalType": "NftId",
656
- "name": "nftId",
180
+ "name": "distributionNftId",
657
181
  "type": "uint96"
658
182
  },
659
183
  {
660
- "internalType": "uint256",
661
- "name": "capital",
662
- "type": "uint256"
663
- },
664
- {
665
- "internalType": "uint256",
666
- "name": "lockedCapital",
667
- "type": "uint256"
668
- }
669
- ],
670
- "internalType": "struct IPool.PoolInfo",
671
- "name": "info",
672
- "type": "tuple"
673
- }
674
- ],
675
- "stateMutability": "view",
676
- "type": "function"
677
- },
678
- {
679
- "inputs": [
680
- {
681
- "internalType": "NftId",
682
- "name": "poolNftId",
683
- "type": "uint96"
684
- }
685
- ],
686
- "name": "getPoolSetup",
687
- "outputs": [
688
- {
689
- "components": [
690
- {
691
- "internalType": "NftId",
692
- "name": "poolNftId",
693
- "type": "uint96"
694
- },
695
- {
696
- "internalType": "address",
697
- "name": "wallet",
698
- "type": "address"
699
- },
700
- {
701
- "components": [
702
- {
703
- "internalType": "UFixed",
704
- "name": "fractionalFee",
705
- "type": "uint256"
706
- },
707
- {
708
- "internalType": "uint256",
709
- "name": "fixedFee",
710
- "type": "uint256"
711
- }
712
- ],
713
- "internalType": "struct Fee",
714
- "name": "stakingFee",
715
- "type": "tuple"
716
- },
717
- {
718
- "components": [
719
- {
720
- "internalType": "UFixed",
721
- "name": "fractionalFee",
722
- "type": "uint256"
723
- },
724
- {
725
- "internalType": "uint256",
726
- "name": "fixedFee",
727
- "type": "uint256"
728
- }
729
- ],
730
- "internalType": "struct Fee",
731
- "name": "performanceFee",
732
- "type": "tuple"
733
- }
734
- ],
735
- "internalType": "struct ITreasuryModule.PoolSetup",
736
- "name": "setup",
737
- "type": "tuple"
738
- }
739
- ],
740
- "stateMutability": "view",
741
- "type": "function"
742
- },
743
- {
744
- "inputs": [],
745
- "name": "getProductService",
746
- "outputs": [
747
- {
748
- "internalType": "contract IProductService",
749
- "name": "",
750
- "type": "address"
751
- }
752
- ],
753
- "stateMutability": "view",
754
- "type": "function"
755
- },
756
- {
757
- "inputs": [
758
- {
759
- "internalType": "NftId",
760
- "name": "productNftId",
761
- "type": "uint96"
762
- }
763
- ],
764
- "name": "getProductSetup",
765
- "outputs": [
766
- {
767
- "components": [
768
- {
769
- "internalType": "NftId",
770
- "name": "productNftId",
771
- "type": "uint96"
772
- },
773
- {
774
- "internalType": "NftId",
775
- "name": "distributorNftId",
776
- "type": "uint96"
777
- },
778
- {
779
- "internalType": "NftId",
780
- "name": "poolNftId",
781
- "type": "uint96"
782
- },
783
- {
784
- "internalType": "contract IERC20",
785
- "name": "token",
786
- "type": "address"
787
- },
788
- {
789
- "internalType": "contract TokenHandler",
790
- "name": "tokenHandler",
791
- "type": "address"
792
- },
793
- {
794
- "internalType": "address",
795
- "name": "wallet",
796
- "type": "address"
797
- },
798
- {
799
- "components": [
800
- {
801
- "internalType": "UFixed",
802
- "name": "fractionalFee",
803
- "type": "uint256"
804
- },
805
- {
806
- "internalType": "uint256",
807
- "name": "fixedFee",
808
- "type": "uint256"
809
- }
810
- ],
811
- "internalType": "struct Fee",
812
- "name": "policyFee",
813
- "type": "tuple"
184
+ "internalType": "NftId",
185
+ "name": "poolNftId",
186
+ "type": "uint96"
814
187
  },
815
188
  {
816
189
  "components": [
@@ -825,630 +198,222 @@
825
198
  "type": "uint256"
826
199
  }
827
200
  ],
828
- "internalType": "struct Fee",
829
- "name": "processingFee",
830
- "type": "tuple"
831
- }
832
- ],
833
- "internalType": "struct ITreasuryModule.ProductSetup",
834
- "name": "setup",
835
- "type": "tuple"
836
- }
837
- ],
838
- "stateMutability": "view",
839
- "type": "function"
840
- },
841
- {
842
- "inputs": [],
843
- "name": "getRegistry",
844
- "outputs": [
845
- {
846
- "internalType": "contract IRegistry",
847
- "name": "registry",
848
- "type": "address"
849
- }
850
- ],
851
- "stateMutability": "view",
852
- "type": "function"
853
- },
854
- {
855
- "inputs": [
856
- {
857
- "internalType": "uint256",
858
- "name": "idx",
859
- "type": "uint256"
860
- }
861
- ],
862
- "name": "getRole",
863
- "outputs": [
864
- {
865
- "internalType": "bytes32",
866
- "name": "role",
867
- "type": "bytes32"
868
- }
869
- ],
870
- "stateMutability": "view",
871
- "type": "function"
872
- },
873
- {
874
- "inputs": [],
875
- "name": "getRoleCount",
876
- "outputs": [
877
- {
878
- "internalType": "uint256",
879
- "name": "roles",
880
- "type": "uint256"
881
- }
882
- ],
883
- "stateMutability": "view",
884
- "type": "function"
885
- },
886
- {
887
- "inputs": [
888
- {
889
- "internalType": "string",
890
- "name": "roleName",
891
- "type": "string"
892
- }
893
- ],
894
- "name": "getRoleForName",
895
- "outputs": [
896
- {
897
- "internalType": "bytes32",
898
- "name": "role",
899
- "type": "bytes32"
900
- }
901
- ],
902
- "stateMutability": "pure",
903
- "type": "function"
904
- },
905
- {
906
- "inputs": [
907
- {
908
- "internalType": "bytes32",
909
- "name": "role",
910
- "type": "bytes32"
911
- }
912
- ],
913
- "name": "getRoleInfo",
914
- "outputs": [
915
- {
916
- "components": [
917
- {
918
- "internalType": "bytes32",
919
- "name": "id",
920
- "type": "bytes32"
921
- },
922
- {
923
- "internalType": "string",
924
- "name": "name",
925
- "type": "string"
926
- },
927
- {
928
- "internalType": "bool",
929
- "name": "isActive",
930
- "type": "bool"
931
- }
932
- ],
933
- "internalType": "struct IAccess.RoleInfo",
934
- "name": "info",
935
- "type": "tuple"
936
- }
937
- ],
938
- "stateMutability": "view",
939
- "type": "function"
940
- },
941
- {
942
- "inputs": [
943
- {
944
- "internalType": "bytes32",
945
- "name": "role",
946
- "type": "bytes32"
947
- },
948
- {
949
- "internalType": "uint256",
950
- "name": "idx",
951
- "type": "uint256"
952
- }
953
- ],
954
- "name": "getRoleMember",
955
- "outputs": [
956
- {
957
- "internalType": "address",
958
- "name": "roleMembers",
959
- "type": "address"
960
- }
961
- ],
962
- "stateMutability": "view",
963
- "type": "function"
964
- },
965
- {
966
- "inputs": [
967
- {
968
- "internalType": "bytes32",
969
- "name": "role",
970
- "type": "bytes32"
971
- }
972
- ],
973
- "name": "getRoleMemberCount",
974
- "outputs": [
975
- {
976
- "internalType": "uint256",
977
- "name": "roleMembers",
978
- "type": "uint256"
979
- }
980
- ],
981
- "stateMutability": "view",
982
- "type": "function"
983
- },
984
- {
985
- "inputs": [
986
- {
987
- "internalType": "NftId",
988
- "name": "productNftId",
989
- "type": "uint96"
990
- }
991
- ],
992
- "name": "getTokenHandler",
993
- "outputs": [
994
- {
995
- "internalType": "contract TokenHandler",
996
- "name": "tokenHandler",
997
- "type": "address"
998
- }
999
- ],
1000
- "stateMutability": "view",
1001
- "type": "function"
1002
- },
1003
- {
1004
- "inputs": [],
1005
- "name": "getType",
1006
- "outputs": [
1007
- {
1008
- "internalType": "ObjectType",
1009
- "name": "objectType",
1010
- "type": "uint8"
1011
- }
1012
- ],
1013
- "stateMutability": "view",
1014
- "type": "function"
1015
- },
1016
- {
1017
- "inputs": [
1018
- {
1019
- "internalType": "bytes32",
1020
- "name": "role",
1021
- "type": "bytes32"
1022
- },
1023
- {
1024
- "internalType": "address",
1025
- "name": "member",
1026
- "type": "address"
1027
- }
1028
- ],
1029
- "name": "grantRole",
1030
- "outputs": [],
1031
- "stateMutability": "nonpayable",
1032
- "type": "function"
1033
- },
1034
- {
1035
- "inputs": [
1036
- {
1037
- "internalType": "bytes32",
1038
- "name": "role",
1039
- "type": "bytes32"
1040
- },
1041
- {
1042
- "internalType": "address",
1043
- "name": "member",
1044
- "type": "address"
1045
- }
1046
- ],
1047
- "name": "hasRole",
1048
- "outputs": [
1049
- {
1050
- "internalType": "bool",
1051
- "name": "",
1052
- "type": "bool"
1053
- }
1054
- ],
1055
- "stateMutability": "view",
1056
- "type": "function"
1057
- },
1058
- {
1059
- "inputs": [],
1060
- "name": "isRegisterable",
1061
- "outputs": [
1062
- {
1063
- "internalType": "bool",
1064
- "name": "",
1065
- "type": "bool"
1066
- }
1067
- ],
1068
- "stateMutability": "pure",
1069
- "type": "function"
1070
- },
1071
- {
1072
- "inputs": [],
1073
- "name": "isRegistered",
1074
- "outputs": [
1075
- {
1076
- "internalType": "bool",
1077
- "name": "",
1078
- "type": "bool"
1079
- }
1080
- ],
1081
- "stateMutability": "view",
1082
- "type": "function"
1083
- },
1084
- {
1085
- "inputs": [
1086
- {
1087
- "internalType": "ObjectType",
1088
- "name": "objectType",
1089
- "type": "uint8"
1090
- },
1091
- {
1092
- "internalType": "StateId",
1093
- "name": "fromId",
1094
- "type": "uint8"
1095
- },
1096
- {
1097
- "internalType": "StateId",
1098
- "name": "toId",
1099
- "type": "uint8"
1100
- }
1101
- ],
1102
- "name": "isValidTransition",
1103
- "outputs": [
1104
- {
1105
- "internalType": "bool",
1106
- "name": "",
1107
- "type": "bool"
1108
- }
1109
- ],
1110
- "stateMutability": "view",
1111
- "type": "function"
1112
- },
1113
- {
1114
- "inputs": [
1115
- {
1116
- "internalType": "NftId",
1117
- "name": "nftId",
1118
- "type": "uint96"
1119
- }
1120
- ],
1121
- "name": "processPremium",
1122
- "outputs": [],
1123
- "stateMutability": "nonpayable",
1124
- "type": "function"
1125
- },
1126
- {
1127
- "inputs": [
1128
- {
1129
- "internalType": "NftId",
1130
- "name": "policyNftId",
1131
- "type": "uint96"
1132
- },
1133
- {
1134
- "internalType": "NftId",
1135
- "name": "productNftId",
1136
- "type": "uint96"
1137
- }
1138
- ],
1139
- "name": "processPremium",
1140
- "outputs": [],
1141
- "stateMutability": "nonpayable",
1142
- "type": "function"
1143
- },
1144
- {
1145
- "inputs": [],
1146
- "name": "register",
1147
- "outputs": [
1148
- {
1149
- "internalType": "NftId",
1150
- "name": "nftId",
1151
- "type": "uint96"
1152
- }
1153
- ],
1154
- "stateMutability": "nonpayable",
1155
- "type": "function"
1156
- },
1157
- {
1158
- "inputs": [
1159
- {
1160
- "internalType": "contract IComponentContract",
1161
- "name": "component",
1162
- "type": "address"
1163
- }
1164
- ],
1165
- "name": "registerComponent",
1166
- "outputs": [
1167
- {
1168
- "internalType": "NftId",
1169
- "name": "nftId",
1170
- "type": "uint96"
1171
- }
1172
- ],
1173
- "stateMutability": "nonpayable",
1174
- "type": "function"
1175
- },
1176
- {
1177
- "inputs": [
1178
- {
1179
- "internalType": "NftId",
1180
- "name": "nftId",
1181
- "type": "uint96"
1182
- }
1183
- ],
1184
- "name": "registerPool",
1185
- "outputs": [],
1186
- "stateMutability": "nonpayable",
1187
- "type": "function"
1188
- },
1189
- {
1190
- "inputs": [
1191
- {
1192
- "internalType": "NftId",
1193
- "name": "poolNftId",
1194
- "type": "uint96"
1195
- },
1196
- {
1197
- "internalType": "address",
1198
- "name": "wallet",
1199
- "type": "address"
1200
- },
1201
- {
1202
- "components": [
201
+ "internalType": "struct Fee",
202
+ "name": "distributionFee",
203
+ "type": "tuple"
204
+ },
1203
205
  {
1204
- "internalType": "UFixed",
1205
- "name": "fractionalFee",
1206
- "type": "uint256"
206
+ "components": [
207
+ {
208
+ "internalType": "UFixed",
209
+ "name": "fractionalFee",
210
+ "type": "uint256"
211
+ },
212
+ {
213
+ "internalType": "uint256",
214
+ "name": "fixedFee",
215
+ "type": "uint256"
216
+ }
217
+ ],
218
+ "internalType": "struct Fee",
219
+ "name": "productFee",
220
+ "type": "tuple"
1207
221
  },
1208
222
  {
1209
- "internalType": "uint256",
1210
- "name": "fixedFee",
1211
- "type": "uint256"
1212
- }
1213
- ],
1214
- "internalType": "struct Fee",
1215
- "name": "stakingFee",
1216
- "type": "tuple"
1217
- },
1218
- {
1219
- "components": [
223
+ "components": [
224
+ {
225
+ "internalType": "UFixed",
226
+ "name": "fractionalFee",
227
+ "type": "uint256"
228
+ },
229
+ {
230
+ "internalType": "uint256",
231
+ "name": "fixedFee",
232
+ "type": "uint256"
233
+ }
234
+ ],
235
+ "internalType": "struct Fee",
236
+ "name": "processingFee",
237
+ "type": "tuple"
238
+ },
1220
239
  {
1221
- "internalType": "UFixed",
1222
- "name": "fractionalFee",
1223
- "type": "uint256"
240
+ "components": [
241
+ {
242
+ "internalType": "UFixed",
243
+ "name": "fractionalFee",
244
+ "type": "uint256"
245
+ },
246
+ {
247
+ "internalType": "uint256",
248
+ "name": "fixedFee",
249
+ "type": "uint256"
250
+ }
251
+ ],
252
+ "internalType": "struct Fee",
253
+ "name": "poolFee",
254
+ "type": "tuple"
1224
255
  },
1225
256
  {
1226
- "internalType": "uint256",
1227
- "name": "fixedFee",
1228
- "type": "uint256"
257
+ "components": [
258
+ {
259
+ "internalType": "UFixed",
260
+ "name": "fractionalFee",
261
+ "type": "uint256"
262
+ },
263
+ {
264
+ "internalType": "uint256",
265
+ "name": "fixedFee",
266
+ "type": "uint256"
267
+ }
268
+ ],
269
+ "internalType": "struct Fee",
270
+ "name": "stakingFee",
271
+ "type": "tuple"
272
+ },
273
+ {
274
+ "components": [
275
+ {
276
+ "internalType": "UFixed",
277
+ "name": "fractionalFee",
278
+ "type": "uint256"
279
+ },
280
+ {
281
+ "internalType": "uint256",
282
+ "name": "fixedFee",
283
+ "type": "uint256"
284
+ }
285
+ ],
286
+ "internalType": "struct Fee",
287
+ "name": "performanceFee",
288
+ "type": "tuple"
1229
289
  }
1230
290
  ],
1231
- "internalType": "struct Fee",
1232
- "name": "performanceFee",
291
+ "internalType": "struct ISetup.ProductSetupInfo",
292
+ "name": "setup",
1233
293
  "type": "tuple"
1234
294
  }
1235
295
  ],
1236
- "name": "registerPool",
296
+ "name": "createProductSetup",
1237
297
  "outputs": [],
1238
298
  "stateMutability": "nonpayable",
1239
299
  "type": "function"
1240
300
  },
1241
301
  {
1242
- "inputs": [
1243
- {
1244
- "internalType": "NftId",
1245
- "name": "productNftId",
1246
- "type": "uint96"
1247
- },
1248
- {
1249
- "internalType": "NftId",
1250
- "name": "distributorNftId",
1251
- "type": "uint96"
1252
- },
1253
- {
1254
- "internalType": "NftId",
1255
- "name": "poolNftId",
1256
- "type": "uint96"
1257
- },
302
+ "inputs": [],
303
+ "name": "getComponentOwnerService",
304
+ "outputs": [
1258
305
  {
1259
- "internalType": "contract IERC20",
1260
- "name": "token",
306
+ "internalType": "contract IComponentOwnerService",
307
+ "name": "",
1261
308
  "type": "address"
1262
- },
309
+ }
310
+ ],
311
+ "stateMutability": "view",
312
+ "type": "function"
313
+ },
314
+ {
315
+ "inputs": [],
316
+ "name": "getDistributionService",
317
+ "outputs": [
1263
318
  {
1264
- "internalType": "address",
1265
- "name": "wallet",
319
+ "internalType": "contract IDistributionService",
320
+ "name": "",
1266
321
  "type": "address"
1267
- },
1268
- {
1269
- "components": [
1270
- {
1271
- "internalType": "UFixed",
1272
- "name": "fractionalFee",
1273
- "type": "uint256"
1274
- },
1275
- {
1276
- "internalType": "uint256",
1277
- "name": "fixedFee",
1278
- "type": "uint256"
1279
- }
1280
- ],
1281
- "internalType": "struct Fee",
1282
- "name": "policyFee",
1283
- "type": "tuple"
1284
- },
1285
- {
1286
- "components": [
1287
- {
1288
- "internalType": "UFixed",
1289
- "name": "fractionalFee",
1290
- "type": "uint256"
1291
- },
1292
- {
1293
- "internalType": "uint256",
1294
- "name": "fixedFee",
1295
- "type": "uint256"
1296
- }
1297
- ],
1298
- "internalType": "struct Fee",
1299
- "name": "processingFee",
1300
- "type": "tuple"
1301
322
  }
1302
323
  ],
1303
- "name": "registerProduct",
1304
- "outputs": [],
1305
- "stateMutability": "nonpayable",
324
+ "stateMutability": "view",
1306
325
  "type": "function"
1307
326
  },
1308
327
  {
1309
- "inputs": [
1310
- {
1311
- "internalType": "bytes32",
1312
- "name": "role",
1313
- "type": "bytes32"
1314
- },
328
+ "inputs": [],
329
+ "name": "getInstanceReader",
330
+ "outputs": [
1315
331
  {
1316
- "internalType": "address",
1317
- "name": "member",
332
+ "internalType": "contract InstanceReader",
333
+ "name": "",
1318
334
  "type": "address"
1319
335
  }
1320
336
  ],
1321
- "name": "revokeRole",
1322
- "outputs": [],
1323
- "stateMutability": "nonpayable",
337
+ "stateMutability": "view",
1324
338
  "type": "function"
1325
339
  },
1326
340
  {
1327
341
  "inputs": [
1328
342
  {
1329
- "components": [
1330
- {
1331
- "internalType": "NftId",
1332
- "name": "nftId",
1333
- "type": "uint96"
1334
- },
1335
- {
1336
- "internalType": "StateId",
1337
- "name": "state",
1338
- "type": "uint8"
1339
- },
1340
- {
1341
- "internalType": "contract IERC20Metadata",
1342
- "name": "token",
1343
- "type": "address"
1344
- }
1345
- ],
1346
- "internalType": "struct IComponent.ComponentInfo",
1347
- "name": "info",
1348
- "type": "tuple"
343
+ "internalType": "bytes4",
344
+ "name": "interfaceId",
345
+ "type": "bytes4"
1349
346
  }
1350
347
  ],
1351
- "name": "setComponentInfo",
348
+ "name": "supportsInterface",
1352
349
  "outputs": [
1353
350
  {
1354
- "internalType": "NftId",
1355
- "name": "componentNftId",
1356
- "type": "uint96"
351
+ "internalType": "bool",
352
+ "name": "",
353
+ "type": "bool"
1357
354
  }
1358
355
  ],
1359
- "stateMutability": "nonpayable",
356
+ "stateMutability": "view",
1360
357
  "type": "function"
1361
358
  },
1362
359
  {
1363
360
  "inputs": [
1364
361
  {
1365
362
  "internalType": "NftId",
1366
- "name": "poolNftId",
363
+ "name": "distributionNftId",
1367
364
  "type": "uint96"
1368
365
  },
1369
366
  {
1370
367
  "components": [
1371
368
  {
1372
- "internalType": "UFixed",
1373
- "name": "fractionalFee",
1374
- "type": "uint256"
369
+ "internalType": "NftId",
370
+ "name": "productNftId",
371
+ "type": "uint96"
1375
372
  },
1376
373
  {
1377
- "internalType": "uint256",
1378
- "name": "fixedFee",
1379
- "type": "uint256"
1380
- }
1381
- ],
1382
- "internalType": "struct Fee",
1383
- "name": "stakingFee",
1384
- "type": "tuple"
1385
- },
1386
- {
1387
- "components": [
1388
- {
1389
- "internalType": "UFixed",
1390
- "name": "fractionalFee",
1391
- "type": "uint256"
374
+ "internalType": "contract TokenHandler",
375
+ "name": "tokenHandler",
376
+ "type": "address"
1392
377
  },
1393
378
  {
1394
- "internalType": "uint256",
1395
- "name": "fixedFee",
1396
- "type": "uint256"
1397
- }
1398
- ],
1399
- "internalType": "struct Fee",
1400
- "name": "performanceFee",
1401
- "type": "tuple"
1402
- }
1403
- ],
1404
- "name": "setPoolFees",
1405
- "outputs": [],
1406
- "stateMutability": "nonpayable",
1407
- "type": "function"
1408
- },
1409
- {
1410
- "inputs": [
1411
- {
1412
- "internalType": "NftId",
1413
- "name": "productNftId",
1414
- "type": "uint96"
1415
- },
1416
- {
1417
- "components": [
379
+ "components": [
380
+ {
381
+ "internalType": "UFixed",
382
+ "name": "fractionalFee",
383
+ "type": "uint256"
384
+ },
385
+ {
386
+ "internalType": "uint256",
387
+ "name": "fixedFee",
388
+ "type": "uint256"
389
+ }
390
+ ],
391
+ "internalType": "struct Fee",
392
+ "name": "distributionFee",
393
+ "type": "tuple"
394
+ },
1418
395
  {
1419
- "internalType": "UFixed",
1420
- "name": "fractionalFee",
1421
- "type": "uint256"
396
+ "internalType": "bool",
397
+ "name": "isIntercepting",
398
+ "type": "bool"
1422
399
  },
1423
400
  {
1424
- "internalType": "uint256",
1425
- "name": "fixedFee",
1426
- "type": "uint256"
401
+ "internalType": "address",
402
+ "name": "wallet",
403
+ "type": "address"
1427
404
  }
1428
405
  ],
1429
- "internalType": "struct Fee",
1430
- "name": "policyFee",
406
+ "internalType": "struct ISetup.DistributionSetupInfo",
407
+ "name": "setup",
1431
408
  "type": "tuple"
1432
409
  },
1433
410
  {
1434
- "components": [
1435
- {
1436
- "internalType": "UFixed",
1437
- "name": "fractionalFee",
1438
- "type": "uint256"
1439
- },
1440
- {
1441
- "internalType": "uint256",
1442
- "name": "fixedFee",
1443
- "type": "uint256"
1444
- }
1445
- ],
1446
- "internalType": "struct Fee",
1447
- "name": "processingFee",
1448
- "type": "tuple"
411
+ "internalType": "StateId",
412
+ "name": "newState",
413
+ "type": "uint8"
1449
414
  }
1450
415
  ],
1451
- "name": "setProductFees",
416
+ "name": "updateDistributionSetup",
1452
417
  "outputs": [],
1453
418
  "stateMutability": "nonpayable",
1454
419
  "type": "function"
@@ -1457,16 +422,16 @@
1457
422
  "inputs": [
1458
423
  {
1459
424
  "internalType": "NftId",
1460
- "name": "policyNftId",
425
+ "name": "distributionNftId",
1461
426
  "type": "uint96"
1462
427
  },
1463
428
  {
1464
- "internalType": "NftId",
1465
- "name": "productNftId",
1466
- "type": "uint96"
429
+ "internalType": "StateId",
430
+ "name": "newState",
431
+ "type": "uint8"
1467
432
  }
1468
433
  ],
1469
- "name": "underwrite",
434
+ "name": "updateDistributionSetupState",
1470
435
  "outputs": [],
1471
436
  "stateMutability": "nonpayable",
1472
437
  "type": "function"