@etherisc/gif-next 0.0.2-ebbe63d → 0.0.2-ecbd488-936

Sign up to get free protection for your applications and to get access to all the features.
Files changed (333) hide show
  1. package/README.md +390 -2
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +4 -0
  3. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +327 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +618 -0
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +4 -0
  7. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +280 -0
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +152 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +249 -0
  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 +4 -0
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +782 -0
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +4 -0
  17. package/artifacts/contracts/components/Product.sol/Product.json +719 -0
  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 +4 -0
  25. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +105 -0
  26. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +4 -0
  27. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +105 -0
  28. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +4 -0
  29. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +128 -0
  30. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +4 -0
  31. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +42 -0
  32. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +4 -0
  33. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +76 -0
  34. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +4 -0
  35. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +89 -0
  36. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +4 -0
  37. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +128 -0
  38. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +4 -0
  39. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +37 -0
  40. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +4 -0
  41. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.json +50 -0
  42. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +4 -0
  43. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +63 -0
  44. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +4 -0
  45. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +59 -0
  46. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +4 -0
  47. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +124 -0
  48. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +4 -0
  49. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +74 -0
  50. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +4 -0
  51. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +124 -0
  52. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +4 -0
  53. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +207 -0
  54. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +4 -0
  55. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +10 -0
  56. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +4 -0
  57. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +10 -0
  58. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +4 -0
  59. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.json +101 -0
  60. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +4 -0
  61. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +1132 -0
  62. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +4 -0
  63. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +1082 -0
  64. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +4 -0
  65. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1014 -0
  66. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  67. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +480 -0
  68. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +4 -0
  69. package/artifacts/contracts/instance/Instance.sol/Instance.json +3552 -0
  70. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  71. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +917 -0
  72. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  73. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1388 -0
  74. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  75. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +931 -0
  76. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  77. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +508 -0
  78. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +4 -0
  79. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +540 -0
  80. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  81. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +113 -0
  82. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  83. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +429 -0
  84. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  85. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.json +115 -0
  86. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  87. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +502 -0
  88. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  89. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
  90. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  91. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +211 -0
  92. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  93. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.json +10 -0
  94. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  95. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.json +10 -0
  96. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  97. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.json +10 -0
  98. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  99. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.json +10 -0
  100. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  101. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.json +10 -0
  102. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  103. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.json +10 -0
  104. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +4 -0
  105. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +827 -0
  106. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  107. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +716 -0
  108. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  109. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +444 -0
  110. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +4 -0
  111. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +466 -0
  112. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  113. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +446 -0
  114. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
  115. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +561 -0
  116. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
  117. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +739 -0
  118. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  119. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +839 -0
  120. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  121. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +448 -0
  122. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  123. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +1046 -0
  124. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  125. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +448 -0
  126. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +4 -0
  127. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +771 -0
  128. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +4 -0
  129. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +626 -0
  130. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  131. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +947 -0
  132. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  133. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  134. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +4 -0
  135. package/artifacts/contracts/registry/Registry.sol/Registry.json +809 -0
  136. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  137. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1293 -0
  138. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  139. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +513 -0
  140. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  141. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +410 -0
  142. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  143. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  144. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +4 -0
  145. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +35 -0
  146. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  147. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +127 -0
  148. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
  149. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +201 -0
  150. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  151. package/artifacts/contracts/shared/IService.sol/IService.json +421 -0
  152. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
  153. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +205 -0
  154. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  155. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +158 -0
  156. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  157. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +349 -0
  158. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
  159. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +274 -0
  160. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +4 -0
  161. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.json +442 -0
  162. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  163. package/artifacts/contracts/shared/Service.sol/Service.json +468 -0
  164. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  165. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  166. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  167. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  168. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
  169. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +228 -0
  170. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
  171. package/artifacts/contracts/test/TestFee.sol/TestFee.json +119 -0
  172. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
  173. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +305 -0
  174. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +4 -0
  175. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +116 -0
  176. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
  177. package/artifacts/contracts/test/TestService.sol/TestService.json +600 -0
  178. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
  179. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +376 -0
  180. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
  181. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +218 -0
  182. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
  183. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +286 -0
  184. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
  185. package/artifacts/contracts/test/Usdc.sol/USDC.json +376 -0
  186. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  187. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -0
  188. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +4 -0
  189. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +174 -0
  190. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +4 -0
  191. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +10 -0
  192. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  193. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  194. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +4 -0
  195. package/artifacts/contracts/types/Fee.sol/FeeLib.json +257 -0
  196. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
  197. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +125 -0
  198. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +4 -0
  199. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +153 -0
  200. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  201. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +10 -0
  202. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  203. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  204. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
  205. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +92 -0
  206. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  207. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  208. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  209. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  210. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
  211. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +156 -0
  212. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +4 -0
  213. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +92 -0
  214. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +4 -0
  215. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +249 -0
  216. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  217. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  218. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  219. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +479 -0
  220. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
  221. package/artifacts/contracts/types/Version.sol/VersionLib.json +177 -0
  222. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
  223. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +49 -0
  224. package/contracts/components/BaseComponent.sol +91 -0
  225. package/contracts/components/Distribution.sol +159 -0
  226. package/contracts/components/IBaseComponent.sol +25 -0
  227. package/contracts/components/IDistributionComponent.sol +44 -0
  228. package/contracts/components/IPoolComponent.sol +62 -0
  229. package/contracts/components/IProductComponent.sol +35 -0
  230. package/contracts/components/Pool.sol +242 -0
  231. package/contracts/components/Product.sol +284 -0
  232. package/contracts/experiment/cloning/Cloner.sol +47 -0
  233. package/contracts/experiment/errors/Require.sol +38 -0
  234. package/contracts/experiment/errors/Revert.sol +44 -0
  235. package/contracts/experiment/inheritance/A.sol +53 -0
  236. package/contracts/experiment/inheritance/B.sol +28 -0
  237. package/contracts/experiment/inheritance/C.sol +34 -0
  238. package/contracts/experiment/inheritance/IA.sol +13 -0
  239. package/contracts/experiment/inheritance/IB.sol +10 -0
  240. package/contracts/experiment/inheritance/IC.sol +12 -0
  241. package/contracts/experiment/statemachine/Dummy.sol +27 -0
  242. package/contracts/experiment/statemachine/ISM.sol +25 -0
  243. package/contracts/experiment/statemachine/SM.sol +57 -0
  244. package/contracts/experiment/statemachine/SimpleStateMachine.sol +31 -0
  245. package/contracts/experiment/types/TypeA.sol +47 -0
  246. package/contracts/experiment/types/TypeB.sol +29 -0
  247. package/contracts/instance/AccessManagedSimple.sol +115 -0
  248. package/contracts/instance/AccessManagerSimple.sol +692 -0
  249. package/contracts/instance/IAccessManagerSimple.sol +391 -0
  250. package/contracts/instance/IInstance.sol +48 -0
  251. package/contracts/instance/IInstanceService.sol +30 -0
  252. package/contracts/instance/Instance.sol +443 -0
  253. package/contracts/instance/InstanceAccessManager.sol +288 -0
  254. package/contracts/instance/InstanceReader.sol +306 -0
  255. package/contracts/instance/InstanceService.sol +195 -0
  256. package/contracts/instance/InstanceServiceManager.sol +57 -0
  257. package/contracts/instance/base/ComponentServiceBase.sol +124 -0
  258. package/contracts/instance/base/IInstanceBase.sol +23 -0
  259. package/contracts/instance/base/IKeyValueStore.sol +49 -0
  260. package/contracts/instance/base/ILifecycle.sol +30 -0
  261. package/contracts/instance/base/KeyValueStore.sol +172 -0
  262. package/contracts/instance/base/Lifecycle.sol +100 -0
  263. package/contracts/instance/module/IAccess.sol +38 -0
  264. package/contracts/instance/module/IBundle.sol +20 -0
  265. package/contracts/instance/module/IDistribution.sol +39 -0
  266. package/contracts/instance/module/IPolicy.sol +45 -0
  267. package/contracts/instance/module/IRisk.sol +11 -0
  268. package/contracts/instance/module/ISetup.sol +44 -0
  269. package/contracts/instance/module/ITreasury.sol +23 -0
  270. package/contracts/instance/service/ComponentOwnerService.sol +317 -0
  271. package/contracts/instance/service/DistributionService.sol +88 -0
  272. package/contracts/instance/service/DistributionServiceManager.sol +54 -0
  273. package/contracts/instance/service/IComponentOwnerService.sol +20 -0
  274. package/contracts/instance/service/IDistributionService.sol +12 -0
  275. package/contracts/instance/service/IPoolService.sol +37 -0
  276. package/contracts/instance/service/IProductService.sol +107 -0
  277. package/contracts/instance/service/PoolService.sol +194 -0
  278. package/contracts/instance/service/PoolServiceManager.sol +54 -0
  279. package/contracts/instance/service/ProductService.sol +543 -0
  280. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  281. package/contracts/registry/ChainNft.sol +202 -0
  282. package/contracts/registry/IRegistry.sol +79 -0
  283. package/contracts/registry/IRegistryService.sol +50 -0
  284. package/contracts/registry/ITransferInterceptor.sol +6 -0
  285. package/contracts/registry/Registry.sol +444 -0
  286. package/contracts/registry/RegistryService.sol +358 -0
  287. package/contracts/registry/RegistryServiceManager.sol +80 -0
  288. package/contracts/registry/TokenRegistry.sol +111 -0
  289. package/contracts/shared/ContractDeployerLib.sol +72 -0
  290. package/contracts/shared/ERC165.sol +25 -0
  291. package/contracts/shared/INftOwnable.sol +22 -0
  292. package/contracts/shared/IRegisterable.sol +17 -0
  293. package/contracts/shared/IService.sol +15 -0
  294. package/contracts/shared/IVersionable.sol +96 -0
  295. package/contracts/shared/NftOwnable.sol +134 -0
  296. package/contracts/shared/ProxyManager.sol +94 -0
  297. package/contracts/shared/Registerable.sol +90 -0
  298. package/contracts/shared/RegisterableUpgradable.sol +16 -0
  299. package/contracts/shared/Service.sol +55 -0
  300. package/contracts/shared/TokenHandler.sol +27 -0
  301. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  302. package/contracts/shared/Versionable.sol +147 -0
  303. package/contracts/test/TestFee.sol +25 -0
  304. package/contracts/test/TestRegisterable.sol +18 -0
  305. package/contracts/test/TestRoleId.sol +14 -0
  306. package/contracts/test/TestService.sol +24 -0
  307. package/contracts/{Dip.sol → test/TestToken.sol} +5 -5
  308. package/contracts/test/TestVersion.sol +44 -0
  309. package/contracts/test/TestVersionable.sol +17 -0
  310. package/contracts/test/Usdc.sol +26 -0
  311. package/contracts/types/AddressSet.sol +58 -0
  312. package/contracts/types/Blocknumber.sol +118 -0
  313. package/contracts/types/ChainId.sol +38 -0
  314. package/contracts/types/DistributorType.sol +55 -0
  315. package/contracts/types/Fee.sol +56 -0
  316. package/contracts/types/Key32.sol +50 -0
  317. package/contracts/types/NftId.sol +72 -0
  318. package/contracts/types/NftIdSet.sol +60 -0
  319. package/contracts/types/NumberId.sol +52 -0
  320. package/contracts/types/ObjectType.sol +152 -0
  321. package/contracts/types/Referral.sol +85 -0
  322. package/contracts/types/RiskId.sol +43 -0
  323. package/contracts/types/RoleId.sol +90 -0
  324. package/contracts/types/StateId.sol +105 -0
  325. package/contracts/types/Timestamp.sol +127 -0
  326. package/contracts/types/UFixed.sol +325 -0
  327. package/contracts/types/Version.sol +107 -0
  328. package/package.json +26 -10
  329. package/artifacts/contracts/Dip.sol/DIP.dbg.json +0 -4
  330. package/artifacts/contracts/Dip.sol/DIP.json +0 -338
  331. package/artifacts/contracts/Lock.sol/Lock.dbg.json +0 -4
  332. package/artifacts/contracts/Lock.sol/Lock.json +0 -74
  333. package/contracts/Lock.sol +0 -34
@@ -0,0 +1,1014 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IInstance",
4
+ "sourceName": "contracts/instance/IInstance.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "NftId",
10
+ "name": "bundleNftId",
11
+ "type": "uint96"
12
+ },
13
+ {
14
+ "components": [
15
+ {
16
+ "internalType": "NftId",
17
+ "name": "poolNftId",
18
+ "type": "uint96"
19
+ },
20
+ {
21
+ "components": [
22
+ {
23
+ "internalType": "UFixed",
24
+ "name": "fractionalFee",
25
+ "type": "uint256"
26
+ },
27
+ {
28
+ "internalType": "uint256",
29
+ "name": "fixedFee",
30
+ "type": "uint256"
31
+ }
32
+ ],
33
+ "internalType": "struct Fee",
34
+ "name": "fee",
35
+ "type": "tuple"
36
+ },
37
+ {
38
+ "internalType": "bytes",
39
+ "name": "filter",
40
+ "type": "bytes"
41
+ },
42
+ {
43
+ "internalType": "uint256",
44
+ "name": "capitalAmount",
45
+ "type": "uint256"
46
+ },
47
+ {
48
+ "internalType": "uint256",
49
+ "name": "lockedAmount",
50
+ "type": "uint256"
51
+ },
52
+ {
53
+ "internalType": "uint256",
54
+ "name": "balanceAmount",
55
+ "type": "uint256"
56
+ },
57
+ {
58
+ "internalType": "uint256",
59
+ "name": "lifetime",
60
+ "type": "uint256"
61
+ },
62
+ {
63
+ "internalType": "Timestamp",
64
+ "name": "expiredAt",
65
+ "type": "uint40"
66
+ },
67
+ {
68
+ "internalType": "Timestamp",
69
+ "name": "closedAt",
70
+ "type": "uint40"
71
+ }
72
+ ],
73
+ "internalType": "struct IBundle.BundleInfo",
74
+ "name": "bundle",
75
+ "type": "tuple"
76
+ }
77
+ ],
78
+ "name": "createBundle",
79
+ "outputs": [],
80
+ "stateMutability": "nonpayable",
81
+ "type": "function"
82
+ },
83
+ {
84
+ "inputs": [
85
+ {
86
+ "internalType": "NftId",
87
+ "name": "distributionNftId",
88
+ "type": "uint96"
89
+ },
90
+ {
91
+ "components": [
92
+ {
93
+ "internalType": "NftId",
94
+ "name": "productNftId",
95
+ "type": "uint96"
96
+ },
97
+ {
98
+ "internalType": "contract TokenHandler",
99
+ "name": "tokenHandler",
100
+ "type": "address"
101
+ },
102
+ {
103
+ "components": [
104
+ {
105
+ "internalType": "UFixed",
106
+ "name": "fractionalFee",
107
+ "type": "uint256"
108
+ },
109
+ {
110
+ "internalType": "uint256",
111
+ "name": "fixedFee",
112
+ "type": "uint256"
113
+ }
114
+ ],
115
+ "internalType": "struct Fee",
116
+ "name": "distributionFee",
117
+ "type": "tuple"
118
+ },
119
+ {
120
+ "internalType": "bool",
121
+ "name": "isIntercepting",
122
+ "type": "bool"
123
+ },
124
+ {
125
+ "internalType": "address",
126
+ "name": "wallet",
127
+ "type": "address"
128
+ }
129
+ ],
130
+ "internalType": "struct ISetup.DistributionSetupInfo",
131
+ "name": "setup",
132
+ "type": "tuple"
133
+ }
134
+ ],
135
+ "name": "createDistributionSetup",
136
+ "outputs": [],
137
+ "stateMutability": "nonpayable",
138
+ "type": "function"
139
+ },
140
+ {
141
+ "inputs": [
142
+ {
143
+ "internalType": "NftId",
144
+ "name": "poolNftId",
145
+ "type": "uint96"
146
+ },
147
+ {
148
+ "components": [
149
+ {
150
+ "internalType": "NftId",
151
+ "name": "productNftId",
152
+ "type": "uint96"
153
+ },
154
+ {
155
+ "internalType": "contract TokenHandler",
156
+ "name": "tokenHandler",
157
+ "type": "address"
158
+ },
159
+ {
160
+ "internalType": "UFixed",
161
+ "name": "collateralizationLevel",
162
+ "type": "uint256"
163
+ },
164
+ {
165
+ "components": [
166
+ {
167
+ "internalType": "UFixed",
168
+ "name": "fractionalFee",
169
+ "type": "uint256"
170
+ },
171
+ {
172
+ "internalType": "uint256",
173
+ "name": "fixedFee",
174
+ "type": "uint256"
175
+ }
176
+ ],
177
+ "internalType": "struct Fee",
178
+ "name": "poolFee",
179
+ "type": "tuple"
180
+ },
181
+ {
182
+ "components": [
183
+ {
184
+ "internalType": "UFixed",
185
+ "name": "fractionalFee",
186
+ "type": "uint256"
187
+ },
188
+ {
189
+ "internalType": "uint256",
190
+ "name": "fixedFee",
191
+ "type": "uint256"
192
+ }
193
+ ],
194
+ "internalType": "struct Fee",
195
+ "name": "stakingFee",
196
+ "type": "tuple"
197
+ },
198
+ {
199
+ "components": [
200
+ {
201
+ "internalType": "UFixed",
202
+ "name": "fractionalFee",
203
+ "type": "uint256"
204
+ },
205
+ {
206
+ "internalType": "uint256",
207
+ "name": "fixedFee",
208
+ "type": "uint256"
209
+ }
210
+ ],
211
+ "internalType": "struct Fee",
212
+ "name": "performanceFee",
213
+ "type": "tuple"
214
+ },
215
+ {
216
+ "internalType": "bool",
217
+ "name": "isIntercepting",
218
+ "type": "bool"
219
+ },
220
+ {
221
+ "internalType": "address",
222
+ "name": "wallet",
223
+ "type": "address"
224
+ }
225
+ ],
226
+ "internalType": "struct ISetup.PoolSetupInfo",
227
+ "name": "setup",
228
+ "type": "tuple"
229
+ }
230
+ ],
231
+ "name": "createPoolSetup",
232
+ "outputs": [],
233
+ "stateMutability": "nonpayable",
234
+ "type": "function"
235
+ },
236
+ {
237
+ "inputs": [
238
+ {
239
+ "internalType": "NftId",
240
+ "name": "productNftId",
241
+ "type": "uint96"
242
+ },
243
+ {
244
+ "components": [
245
+ {
246
+ "internalType": "contract IERC20Metadata",
247
+ "name": "token",
248
+ "type": "address"
249
+ },
250
+ {
251
+ "internalType": "contract TokenHandler",
252
+ "name": "tokenHandler",
253
+ "type": "address"
254
+ },
255
+ {
256
+ "internalType": "NftId",
257
+ "name": "distributionNftId",
258
+ "type": "uint96"
259
+ },
260
+ {
261
+ "internalType": "NftId",
262
+ "name": "poolNftId",
263
+ "type": "uint96"
264
+ },
265
+ {
266
+ "components": [
267
+ {
268
+ "internalType": "UFixed",
269
+ "name": "fractionalFee",
270
+ "type": "uint256"
271
+ },
272
+ {
273
+ "internalType": "uint256",
274
+ "name": "fixedFee",
275
+ "type": "uint256"
276
+ }
277
+ ],
278
+ "internalType": "struct Fee",
279
+ "name": "distributionFee",
280
+ "type": "tuple"
281
+ },
282
+ {
283
+ "components": [
284
+ {
285
+ "internalType": "UFixed",
286
+ "name": "fractionalFee",
287
+ "type": "uint256"
288
+ },
289
+ {
290
+ "internalType": "uint256",
291
+ "name": "fixedFee",
292
+ "type": "uint256"
293
+ }
294
+ ],
295
+ "internalType": "struct Fee",
296
+ "name": "productFee",
297
+ "type": "tuple"
298
+ },
299
+ {
300
+ "components": [
301
+ {
302
+ "internalType": "UFixed",
303
+ "name": "fractionalFee",
304
+ "type": "uint256"
305
+ },
306
+ {
307
+ "internalType": "uint256",
308
+ "name": "fixedFee",
309
+ "type": "uint256"
310
+ }
311
+ ],
312
+ "internalType": "struct Fee",
313
+ "name": "processingFee",
314
+ "type": "tuple"
315
+ },
316
+ {
317
+ "components": [
318
+ {
319
+ "internalType": "UFixed",
320
+ "name": "fractionalFee",
321
+ "type": "uint256"
322
+ },
323
+ {
324
+ "internalType": "uint256",
325
+ "name": "fixedFee",
326
+ "type": "uint256"
327
+ }
328
+ ],
329
+ "internalType": "struct Fee",
330
+ "name": "poolFee",
331
+ "type": "tuple"
332
+ },
333
+ {
334
+ "components": [
335
+ {
336
+ "internalType": "UFixed",
337
+ "name": "fractionalFee",
338
+ "type": "uint256"
339
+ },
340
+ {
341
+ "internalType": "uint256",
342
+ "name": "fixedFee",
343
+ "type": "uint256"
344
+ }
345
+ ],
346
+ "internalType": "struct Fee",
347
+ "name": "stakingFee",
348
+ "type": "tuple"
349
+ },
350
+ {
351
+ "components": [
352
+ {
353
+ "internalType": "UFixed",
354
+ "name": "fractionalFee",
355
+ "type": "uint256"
356
+ },
357
+ {
358
+ "internalType": "uint256",
359
+ "name": "fixedFee",
360
+ "type": "uint256"
361
+ }
362
+ ],
363
+ "internalType": "struct Fee",
364
+ "name": "performanceFee",
365
+ "type": "tuple"
366
+ }
367
+ ],
368
+ "internalType": "struct ISetup.ProductSetupInfo",
369
+ "name": "setup",
370
+ "type": "tuple"
371
+ }
372
+ ],
373
+ "name": "createProductSetup",
374
+ "outputs": [],
375
+ "stateMutability": "nonpayable",
376
+ "type": "function"
377
+ },
378
+ {
379
+ "inputs": [
380
+ {
381
+ "internalType": "RiskId",
382
+ "name": "riskId",
383
+ "type": "bytes8"
384
+ },
385
+ {
386
+ "components": [
387
+ {
388
+ "internalType": "NftId",
389
+ "name": "productNftId",
390
+ "type": "uint96"
391
+ },
392
+ {
393
+ "internalType": "bytes",
394
+ "name": "data",
395
+ "type": "bytes"
396
+ }
397
+ ],
398
+ "internalType": "struct IRisk.RiskInfo",
399
+ "name": "risk",
400
+ "type": "tuple"
401
+ }
402
+ ],
403
+ "name": "createRisk",
404
+ "outputs": [],
405
+ "stateMutability": "nonpayable",
406
+ "type": "function"
407
+ },
408
+ {
409
+ "inputs": [],
410
+ "name": "getComponentOwnerService",
411
+ "outputs": [
412
+ {
413
+ "internalType": "contract IComponentOwnerService",
414
+ "name": "",
415
+ "type": "address"
416
+ }
417
+ ],
418
+ "stateMutability": "view",
419
+ "type": "function"
420
+ },
421
+ {
422
+ "inputs": [],
423
+ "name": "getDistributionService",
424
+ "outputs": [
425
+ {
426
+ "internalType": "contract IDistributionService",
427
+ "name": "",
428
+ "type": "address"
429
+ }
430
+ ],
431
+ "stateMutability": "view",
432
+ "type": "function"
433
+ },
434
+ {
435
+ "inputs": [],
436
+ "name": "getInstanceReader",
437
+ "outputs": [
438
+ {
439
+ "internalType": "contract InstanceReader",
440
+ "name": "",
441
+ "type": "address"
442
+ }
443
+ ],
444
+ "stateMutability": "view",
445
+ "type": "function"
446
+ },
447
+ {
448
+ "inputs": [],
449
+ "name": "getPoolService",
450
+ "outputs": [
451
+ {
452
+ "internalType": "contract IPoolService",
453
+ "name": "",
454
+ "type": "address"
455
+ }
456
+ ],
457
+ "stateMutability": "view",
458
+ "type": "function"
459
+ },
460
+ {
461
+ "inputs": [],
462
+ "name": "getProductService",
463
+ "outputs": [
464
+ {
465
+ "internalType": "contract IProductService",
466
+ "name": "",
467
+ "type": "address"
468
+ }
469
+ ],
470
+ "stateMutability": "view",
471
+ "type": "function"
472
+ },
473
+ {
474
+ "inputs": [
475
+ {
476
+ "internalType": "bytes4",
477
+ "name": "interfaceId",
478
+ "type": "bytes4"
479
+ }
480
+ ],
481
+ "name": "supportsInterface",
482
+ "outputs": [
483
+ {
484
+ "internalType": "bool",
485
+ "name": "",
486
+ "type": "bool"
487
+ }
488
+ ],
489
+ "stateMutability": "view",
490
+ "type": "function"
491
+ },
492
+ {
493
+ "inputs": [
494
+ {
495
+ "internalType": "NftId",
496
+ "name": "bundleNftId",
497
+ "type": "uint96"
498
+ },
499
+ {
500
+ "components": [
501
+ {
502
+ "internalType": "NftId",
503
+ "name": "poolNftId",
504
+ "type": "uint96"
505
+ },
506
+ {
507
+ "components": [
508
+ {
509
+ "internalType": "UFixed",
510
+ "name": "fractionalFee",
511
+ "type": "uint256"
512
+ },
513
+ {
514
+ "internalType": "uint256",
515
+ "name": "fixedFee",
516
+ "type": "uint256"
517
+ }
518
+ ],
519
+ "internalType": "struct Fee",
520
+ "name": "fee",
521
+ "type": "tuple"
522
+ },
523
+ {
524
+ "internalType": "bytes",
525
+ "name": "filter",
526
+ "type": "bytes"
527
+ },
528
+ {
529
+ "internalType": "uint256",
530
+ "name": "capitalAmount",
531
+ "type": "uint256"
532
+ },
533
+ {
534
+ "internalType": "uint256",
535
+ "name": "lockedAmount",
536
+ "type": "uint256"
537
+ },
538
+ {
539
+ "internalType": "uint256",
540
+ "name": "balanceAmount",
541
+ "type": "uint256"
542
+ },
543
+ {
544
+ "internalType": "uint256",
545
+ "name": "lifetime",
546
+ "type": "uint256"
547
+ },
548
+ {
549
+ "internalType": "Timestamp",
550
+ "name": "expiredAt",
551
+ "type": "uint40"
552
+ },
553
+ {
554
+ "internalType": "Timestamp",
555
+ "name": "closedAt",
556
+ "type": "uint40"
557
+ }
558
+ ],
559
+ "internalType": "struct IBundle.BundleInfo",
560
+ "name": "bundle",
561
+ "type": "tuple"
562
+ },
563
+ {
564
+ "internalType": "StateId",
565
+ "name": "newState",
566
+ "type": "uint8"
567
+ }
568
+ ],
569
+ "name": "updateBundle",
570
+ "outputs": [],
571
+ "stateMutability": "nonpayable",
572
+ "type": "function"
573
+ },
574
+ {
575
+ "inputs": [
576
+ {
577
+ "internalType": "NftId",
578
+ "name": "bundleNftId",
579
+ "type": "uint96"
580
+ },
581
+ {
582
+ "internalType": "StateId",
583
+ "name": "newState",
584
+ "type": "uint8"
585
+ }
586
+ ],
587
+ "name": "updateBundleState",
588
+ "outputs": [],
589
+ "stateMutability": "nonpayable",
590
+ "type": "function"
591
+ },
592
+ {
593
+ "inputs": [
594
+ {
595
+ "internalType": "NftId",
596
+ "name": "distributionNftId",
597
+ "type": "uint96"
598
+ },
599
+ {
600
+ "components": [
601
+ {
602
+ "internalType": "NftId",
603
+ "name": "productNftId",
604
+ "type": "uint96"
605
+ },
606
+ {
607
+ "internalType": "contract TokenHandler",
608
+ "name": "tokenHandler",
609
+ "type": "address"
610
+ },
611
+ {
612
+ "components": [
613
+ {
614
+ "internalType": "UFixed",
615
+ "name": "fractionalFee",
616
+ "type": "uint256"
617
+ },
618
+ {
619
+ "internalType": "uint256",
620
+ "name": "fixedFee",
621
+ "type": "uint256"
622
+ }
623
+ ],
624
+ "internalType": "struct Fee",
625
+ "name": "distributionFee",
626
+ "type": "tuple"
627
+ },
628
+ {
629
+ "internalType": "bool",
630
+ "name": "isIntercepting",
631
+ "type": "bool"
632
+ },
633
+ {
634
+ "internalType": "address",
635
+ "name": "wallet",
636
+ "type": "address"
637
+ }
638
+ ],
639
+ "internalType": "struct ISetup.DistributionSetupInfo",
640
+ "name": "setup",
641
+ "type": "tuple"
642
+ },
643
+ {
644
+ "internalType": "StateId",
645
+ "name": "newState",
646
+ "type": "uint8"
647
+ }
648
+ ],
649
+ "name": "updateDistributionSetup",
650
+ "outputs": [],
651
+ "stateMutability": "nonpayable",
652
+ "type": "function"
653
+ },
654
+ {
655
+ "inputs": [
656
+ {
657
+ "internalType": "NftId",
658
+ "name": "distributionNftId",
659
+ "type": "uint96"
660
+ },
661
+ {
662
+ "internalType": "StateId",
663
+ "name": "newState",
664
+ "type": "uint8"
665
+ }
666
+ ],
667
+ "name": "updateDistributionSetupState",
668
+ "outputs": [],
669
+ "stateMutability": "nonpayable",
670
+ "type": "function"
671
+ },
672
+ {
673
+ "inputs": [
674
+ {
675
+ "internalType": "NftId",
676
+ "name": "poolNftId",
677
+ "type": "uint96"
678
+ },
679
+ {
680
+ "components": [
681
+ {
682
+ "internalType": "NftId",
683
+ "name": "productNftId",
684
+ "type": "uint96"
685
+ },
686
+ {
687
+ "internalType": "contract TokenHandler",
688
+ "name": "tokenHandler",
689
+ "type": "address"
690
+ },
691
+ {
692
+ "internalType": "UFixed",
693
+ "name": "collateralizationLevel",
694
+ "type": "uint256"
695
+ },
696
+ {
697
+ "components": [
698
+ {
699
+ "internalType": "UFixed",
700
+ "name": "fractionalFee",
701
+ "type": "uint256"
702
+ },
703
+ {
704
+ "internalType": "uint256",
705
+ "name": "fixedFee",
706
+ "type": "uint256"
707
+ }
708
+ ],
709
+ "internalType": "struct Fee",
710
+ "name": "poolFee",
711
+ "type": "tuple"
712
+ },
713
+ {
714
+ "components": [
715
+ {
716
+ "internalType": "UFixed",
717
+ "name": "fractionalFee",
718
+ "type": "uint256"
719
+ },
720
+ {
721
+ "internalType": "uint256",
722
+ "name": "fixedFee",
723
+ "type": "uint256"
724
+ }
725
+ ],
726
+ "internalType": "struct Fee",
727
+ "name": "stakingFee",
728
+ "type": "tuple"
729
+ },
730
+ {
731
+ "components": [
732
+ {
733
+ "internalType": "UFixed",
734
+ "name": "fractionalFee",
735
+ "type": "uint256"
736
+ },
737
+ {
738
+ "internalType": "uint256",
739
+ "name": "fixedFee",
740
+ "type": "uint256"
741
+ }
742
+ ],
743
+ "internalType": "struct Fee",
744
+ "name": "performanceFee",
745
+ "type": "tuple"
746
+ },
747
+ {
748
+ "internalType": "bool",
749
+ "name": "isIntercepting",
750
+ "type": "bool"
751
+ },
752
+ {
753
+ "internalType": "address",
754
+ "name": "wallet",
755
+ "type": "address"
756
+ }
757
+ ],
758
+ "internalType": "struct ISetup.PoolSetupInfo",
759
+ "name": "setup",
760
+ "type": "tuple"
761
+ },
762
+ {
763
+ "internalType": "StateId",
764
+ "name": "newState",
765
+ "type": "uint8"
766
+ }
767
+ ],
768
+ "name": "updatePoolSetup",
769
+ "outputs": [],
770
+ "stateMutability": "nonpayable",
771
+ "type": "function"
772
+ },
773
+ {
774
+ "inputs": [
775
+ {
776
+ "internalType": "NftId",
777
+ "name": "poolNftId",
778
+ "type": "uint96"
779
+ },
780
+ {
781
+ "internalType": "StateId",
782
+ "name": "newState",
783
+ "type": "uint8"
784
+ }
785
+ ],
786
+ "name": "updatePoolSetupState",
787
+ "outputs": [],
788
+ "stateMutability": "nonpayable",
789
+ "type": "function"
790
+ },
791
+ {
792
+ "inputs": [
793
+ {
794
+ "internalType": "NftId",
795
+ "name": "productNftId",
796
+ "type": "uint96"
797
+ },
798
+ {
799
+ "components": [
800
+ {
801
+ "internalType": "contract IERC20Metadata",
802
+ "name": "token",
803
+ "type": "address"
804
+ },
805
+ {
806
+ "internalType": "contract TokenHandler",
807
+ "name": "tokenHandler",
808
+ "type": "address"
809
+ },
810
+ {
811
+ "internalType": "NftId",
812
+ "name": "distributionNftId",
813
+ "type": "uint96"
814
+ },
815
+ {
816
+ "internalType": "NftId",
817
+ "name": "poolNftId",
818
+ "type": "uint96"
819
+ },
820
+ {
821
+ "components": [
822
+ {
823
+ "internalType": "UFixed",
824
+ "name": "fractionalFee",
825
+ "type": "uint256"
826
+ },
827
+ {
828
+ "internalType": "uint256",
829
+ "name": "fixedFee",
830
+ "type": "uint256"
831
+ }
832
+ ],
833
+ "internalType": "struct Fee",
834
+ "name": "distributionFee",
835
+ "type": "tuple"
836
+ },
837
+ {
838
+ "components": [
839
+ {
840
+ "internalType": "UFixed",
841
+ "name": "fractionalFee",
842
+ "type": "uint256"
843
+ },
844
+ {
845
+ "internalType": "uint256",
846
+ "name": "fixedFee",
847
+ "type": "uint256"
848
+ }
849
+ ],
850
+ "internalType": "struct Fee",
851
+ "name": "productFee",
852
+ "type": "tuple"
853
+ },
854
+ {
855
+ "components": [
856
+ {
857
+ "internalType": "UFixed",
858
+ "name": "fractionalFee",
859
+ "type": "uint256"
860
+ },
861
+ {
862
+ "internalType": "uint256",
863
+ "name": "fixedFee",
864
+ "type": "uint256"
865
+ }
866
+ ],
867
+ "internalType": "struct Fee",
868
+ "name": "processingFee",
869
+ "type": "tuple"
870
+ },
871
+ {
872
+ "components": [
873
+ {
874
+ "internalType": "UFixed",
875
+ "name": "fractionalFee",
876
+ "type": "uint256"
877
+ },
878
+ {
879
+ "internalType": "uint256",
880
+ "name": "fixedFee",
881
+ "type": "uint256"
882
+ }
883
+ ],
884
+ "internalType": "struct Fee",
885
+ "name": "poolFee",
886
+ "type": "tuple"
887
+ },
888
+ {
889
+ "components": [
890
+ {
891
+ "internalType": "UFixed",
892
+ "name": "fractionalFee",
893
+ "type": "uint256"
894
+ },
895
+ {
896
+ "internalType": "uint256",
897
+ "name": "fixedFee",
898
+ "type": "uint256"
899
+ }
900
+ ],
901
+ "internalType": "struct Fee",
902
+ "name": "stakingFee",
903
+ "type": "tuple"
904
+ },
905
+ {
906
+ "components": [
907
+ {
908
+ "internalType": "UFixed",
909
+ "name": "fractionalFee",
910
+ "type": "uint256"
911
+ },
912
+ {
913
+ "internalType": "uint256",
914
+ "name": "fixedFee",
915
+ "type": "uint256"
916
+ }
917
+ ],
918
+ "internalType": "struct Fee",
919
+ "name": "performanceFee",
920
+ "type": "tuple"
921
+ }
922
+ ],
923
+ "internalType": "struct ISetup.ProductSetupInfo",
924
+ "name": "setup",
925
+ "type": "tuple"
926
+ },
927
+ {
928
+ "internalType": "StateId",
929
+ "name": "newState",
930
+ "type": "uint8"
931
+ }
932
+ ],
933
+ "name": "updateProductSetup",
934
+ "outputs": [],
935
+ "stateMutability": "nonpayable",
936
+ "type": "function"
937
+ },
938
+ {
939
+ "inputs": [
940
+ {
941
+ "internalType": "NftId",
942
+ "name": "productNftId",
943
+ "type": "uint96"
944
+ },
945
+ {
946
+ "internalType": "StateId",
947
+ "name": "newState",
948
+ "type": "uint8"
949
+ }
950
+ ],
951
+ "name": "updateProductSetupState",
952
+ "outputs": [],
953
+ "stateMutability": "nonpayable",
954
+ "type": "function"
955
+ },
956
+ {
957
+ "inputs": [
958
+ {
959
+ "internalType": "RiskId",
960
+ "name": "riskId",
961
+ "type": "bytes8"
962
+ },
963
+ {
964
+ "components": [
965
+ {
966
+ "internalType": "NftId",
967
+ "name": "productNftId",
968
+ "type": "uint96"
969
+ },
970
+ {
971
+ "internalType": "bytes",
972
+ "name": "data",
973
+ "type": "bytes"
974
+ }
975
+ ],
976
+ "internalType": "struct IRisk.RiskInfo",
977
+ "name": "risk",
978
+ "type": "tuple"
979
+ },
980
+ {
981
+ "internalType": "StateId",
982
+ "name": "newState",
983
+ "type": "uint8"
984
+ }
985
+ ],
986
+ "name": "updateRisk",
987
+ "outputs": [],
988
+ "stateMutability": "nonpayable",
989
+ "type": "function"
990
+ },
991
+ {
992
+ "inputs": [
993
+ {
994
+ "internalType": "RiskId",
995
+ "name": "riskId",
996
+ "type": "bytes8"
997
+ },
998
+ {
999
+ "internalType": "StateId",
1000
+ "name": "newState",
1001
+ "type": "uint8"
1002
+ }
1003
+ ],
1004
+ "name": "updateRiskState",
1005
+ "outputs": [],
1006
+ "stateMutability": "nonpayable",
1007
+ "type": "function"
1008
+ }
1009
+ ],
1010
+ "bytecode": "0x",
1011
+ "deployedBytecode": "0x",
1012
+ "linkReferences": {},
1013
+ "deployedLinkReferences": {}
1014
+ }