@etherisc/gif-next 0.0.2-ce2fc91-485 → 0.0.2-ce8407f-016

Sign up to get free protection for your applications and to get access to all the features.
Files changed (325) hide show
  1. package/README.md +71 -25
  2. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  3. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +115 -48
  4. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  5. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  6. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  7. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  8. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  9. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  10. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  11. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  12. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  13. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  14. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  15. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  16. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  17. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  18. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
  20. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
  22. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  24. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +4 -0
  25. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.json +101 -0
  26. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +4 -0
  27. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +1119 -0
  28. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +4 -0
  29. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +1082 -0
  30. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  31. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1 -1907
  32. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  33. package/artifacts/contracts/instance/Instance.sol/Instance.json +2428 -1138
  34. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  35. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +917 -0
  36. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  37. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +878 -0
  38. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  39. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +117 -0
  40. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  41. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +50 -55
  42. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  43. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +1 -1
  44. package/artifacts/contracts/instance/base/IService.sol/IService.json +174 -53
  45. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  46. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +156 -112
  47. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  48. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +4 -4
  49. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +1 -1
  50. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +220 -52
  51. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  52. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +211 -0
  53. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  54. package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
  55. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  56. package/artifacts/contracts/instance/module/{access/IAccess.sol/IAccess.json → IDistribution.sol/IDistribution.json} +2 -2
  57. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  58. package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
  59. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  60. package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
  61. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  62. package/artifacts/contracts/instance/{base/ModuleBase.sol/ModuleBase.json → module/ISetup.sol/ISetup.json} +2 -2
  63. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  64. package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
  65. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  66. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +141 -12
  67. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
  68. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +5 -0
  69. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  70. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +298 -39
  71. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  72. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +745 -0
  73. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  74. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  75. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  76. package/artifacts/contracts/registry/Registry.sol/Registry.json +489 -120
  77. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  78. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1013 -0
  79. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  80. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +476 -0
  81. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  82. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  83. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  84. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  85. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  86. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +127 -0
  87. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  88. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +117 -37
  89. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  90. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +55 -14
  91. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  92. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +158 -0
  93. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  94. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +349 -0
  95. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  96. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +190 -37
  97. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  98. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  99. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  100. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  101. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  102. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +78 -14
  103. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  104. package/artifacts/contracts/test/TestFee.sol/TestFee.json +2 -2
  105. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  106. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +204 -36
  107. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  108. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +5 -111
  109. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  110. package/artifacts/contracts/test/TestService.sol/TestService.json +283 -62
  111. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  112. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  113. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  114. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  115. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +103 -23
  116. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  117. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  118. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  119. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  120. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  121. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  122. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  123. package/artifacts/contracts/types/Fee.sol/FeeLib.json +50 -11
  124. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  125. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +31 -17
  126. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  127. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  128. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  129. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
  130. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  131. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  132. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  133. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  134. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  135. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  136. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  137. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  138. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  139. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +134 -8
  140. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  141. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  142. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  143. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +15 -2
  144. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +1 -1
  145. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  146. package/artifacts/contracts/types/Version.sol/VersionLib.json +40 -2
  147. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  148. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
  149. package/contracts/components/IBaseComponent.sol +4 -4
  150. package/contracts/instance/AccessManagedSimple.sol +114 -0
  151. package/contracts/instance/AccessManagerSimple.sol +682 -0
  152. package/contracts/instance/IAccessManagerSimple.sol +391 -0
  153. package/contracts/instance/IInstance.sol +3 -49
  154. package/contracts/instance/Instance.sol +378 -54
  155. package/contracts/instance/InstanceAccessManager.sol +288 -0
  156. package/contracts/instance/InstanceReader.sol +235 -0
  157. package/contracts/instance/InstanceService.sol +45 -0
  158. package/contracts/instance/base/IKeyValueStore.sol +10 -11
  159. package/contracts/instance/base/ILifecycle.sol +3 -3
  160. package/contracts/instance/base/KeyValueStore.sol +50 -18
  161. package/contracts/instance/base/Lifecycle.sol +16 -11
  162. package/contracts/instance/base/ServiceBase.sol +20 -13
  163. package/contracts/instance/module/IAccess.sol +38 -0
  164. package/contracts/instance/module/IBundle.sol +19 -0
  165. package/contracts/instance/module/IDistribution.sol +39 -0
  166. package/contracts/instance/module/IPolicy.sol +45 -0
  167. package/contracts/instance/module/IRisk.sol +11 -0
  168. package/contracts/instance/module/ISetup.sol +41 -0
  169. package/contracts/instance/module/ITreasury.sol +23 -0
  170. package/contracts/registry/ChainNft.sol +43 -15
  171. package/contracts/registry/IChainNft.sol +3 -2
  172. package/contracts/registry/IRegistry.sol +42 -26
  173. package/contracts/registry/IRegistryService.sol +29 -0
  174. package/contracts/registry/ITransferInterceptor.sol +6 -0
  175. package/contracts/registry/Registry.sol +384 -274
  176. package/contracts/registry/RegistryService.sol +369 -0
  177. package/contracts/registry/RegistryServiceManager.sol +43 -0
  178. package/contracts/shared/ContractDeployerLib.sol +72 -0
  179. package/contracts/shared/ERC165.sol +1 -1
  180. package/contracts/shared/INftOwnable.sol +22 -0
  181. package/contracts/shared/IRegisterable.sol +9 -16
  182. package/contracts/shared/IVersionable.sol +55 -11
  183. package/contracts/shared/NftOwnable.sol +136 -0
  184. package/contracts/shared/ProxyManager.sol +94 -0
  185. package/contracts/shared/Registerable.sol +62 -59
  186. package/contracts/shared/TokenHandler.sol +27 -0
  187. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  188. package/contracts/shared/Versionable.sol +113 -55
  189. package/contracts/test/TestRegisterable.sol +5 -6
  190. package/contracts/test/TestRoleId.sol +6 -6
  191. package/contracts/test/TestService.sol +5 -11
  192. package/contracts/types/DistributorType.sol +55 -0
  193. package/contracts/types/Fee.sol +8 -3
  194. package/contracts/types/Key32.sol +8 -3
  195. package/contracts/types/NumberId.sol +52 -0
  196. package/contracts/types/ObjectType.sol +44 -11
  197. package/contracts/types/Referral.sol +85 -0
  198. package/contracts/types/RiskId.sol +43 -0
  199. package/contracts/types/RoleId.sol +47 -10
  200. package/contracts/types/StateId.sol +1 -1
  201. package/contracts/types/Timestamp.sol +7 -3
  202. package/contracts/types/Version.sol +9 -0
  203. package/package.json +1 -1
  204. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  205. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -174
  206. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +0 -4
  207. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +0 -356
  208. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +0 -4
  209. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +0 -279
  210. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +0 -4
  211. package/artifacts/contracts/components/Pool.sol/Pool.json +0 -387
  212. package/artifacts/contracts/components/Product.sol/Product.dbg.json +0 -4
  213. package/artifacts/contracts/components/Product.sol/Product.json +0 -305
  214. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
  215. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
  216. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  217. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +0 -300
  218. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  219. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -63
  220. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  221. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +0 -326
  222. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
  223. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  224. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  225. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  226. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  227. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  228. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
  229. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -296
  230. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
  231. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
  232. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -296
  233. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +0 -4
  234. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +0 -10
  235. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +0 -4
  236. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.json +0 -10
  237. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +0 -4
  238. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.json +0 -10
  239. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  240. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +0 -241
  241. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
  242. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
  243. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  244. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +0 -241
  245. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  246. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  247. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -271
  248. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  249. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -271
  250. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  251. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.json +0 -10
  252. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  253. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -149
  254. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  255. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -149
  256. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
  257. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
  258. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -10
  259. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
  260. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -10
  261. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  262. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  263. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -533
  264. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  265. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
  266. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  267. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -533
  268. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  269. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -507
  270. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  271. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +0 -364
  272. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +0 -4
  273. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +0 -376
  274. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +0 -4
  275. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +0 -477
  276. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +0 -4
  277. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +0 -471
  278. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +0 -4
  279. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +0 -673
  280. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
  281. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
  282. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
  283. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
  284. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
  285. package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -387
  286. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
  287. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -393
  288. package/contracts/components/BaseComponent.sol +0 -88
  289. package/contracts/components/IPoolComponent.sol +0 -57
  290. package/contracts/components/IProductComponent.sol +0 -19
  291. package/contracts/components/Pool.sol +0 -174
  292. package/contracts/components/Product.sol +0 -117
  293. package/contracts/experiment/statemachine/README.md +0 -112
  294. package/contracts/instance/IInstanceLinked.sol +0 -8
  295. package/contracts/instance/base/ComponentServiceBase.sol +0 -42
  296. package/contracts/instance/base/IInstanceBase.sol +0 -14
  297. package/contracts/instance/base/InstanceBase.sol +0 -80
  298. package/contracts/instance/base/ModuleBase.sol +0 -52
  299. package/contracts/instance/module/access/Access.sol +0 -149
  300. package/contracts/instance/module/access/IAccess.sol +0 -53
  301. package/contracts/instance/module/bundle/BundleModule.sol +0 -136
  302. package/contracts/instance/module/bundle/IBundle.sol +0 -58
  303. package/contracts/instance/module/compensation/CompensationModule.sol +0 -8
  304. package/contracts/instance/module/compensation/ICompensation.sol +0 -10
  305. package/contracts/instance/module/component/ComponentModule.sol +0 -104
  306. package/contracts/instance/module/component/IComponent.sol +0 -63
  307. package/contracts/instance/module/policy/IPolicy.sol +0 -61
  308. package/contracts/instance/module/policy/PolicyModule.sol +0 -77
  309. package/contracts/instance/module/pool/IPoolModule.sol +0 -41
  310. package/contracts/instance/module/pool/PoolModule.sol +0 -87
  311. package/contracts/instance/module/risk/IRisk.sol +0 -10
  312. package/contracts/instance/module/risk/RiskModule.sol +0 -8
  313. package/contracts/instance/module/treasury/ITreasury.sol +0 -103
  314. package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
  315. package/contracts/instance/module/treasury/TreasuryModule.sol +0 -152
  316. package/contracts/instance/service/ComponentOwnerService.sol +0 -176
  317. package/contracts/instance/service/IComponentOwnerService.sol +0 -22
  318. package/contracts/instance/service/IPoolService.sol +0 -30
  319. package/contracts/instance/service/IProductService.sol +0 -58
  320. package/contracts/instance/service/PoolService.sol +0 -123
  321. package/contracts/instance/service/ProductService.sol +0 -354
  322. package/contracts/registry/IRegistryLinked.sol +0 -8
  323. package/contracts/shared/IOwnable.sol +0 -6
  324. package/contracts/test/TestPool.sol +0 -22
  325. package/contracts/test/TestProduct.sol +0 -44
@@ -2,1913 +2,7 @@
2
2
  "_format": "hh-sol-artifact-1",
3
3
  "contractName": "IInstance",
4
4
  "sourceName": "contracts/instance/IInstance.sol",
5
- "abi": [
6
- {
7
- "anonymous": false,
8
- "inputs": [
9
- {
10
- "indexed": false,
11
- "internalType": "RoleId",
12
- "name": "role",
13
- "type": "bytes8"
14
- },
15
- {
16
- "indexed": false,
17
- "internalType": "string",
18
- "name": "roleName",
19
- "type": "string"
20
- }
21
- ],
22
- "name": "LogAccessRoleCreated",
23
- "type": "event"
24
- },
25
- {
26
- "anonymous": false,
27
- "inputs": [
28
- {
29
- "indexed": false,
30
- "internalType": "RoleId",
31
- "name": "role",
32
- "type": "bytes8"
33
- },
34
- {
35
- "indexed": false,
36
- "internalType": "address",
37
- "name": "member",
38
- "type": "address"
39
- },
40
- {
41
- "indexed": false,
42
- "internalType": "bool",
43
- "name": "isMember",
44
- "type": "bool"
45
- }
46
- ],
47
- "name": "LogAccessRoleGranted",
48
- "type": "event"
49
- },
50
- {
51
- "anonymous": false,
52
- "inputs": [
53
- {
54
- "indexed": false,
55
- "internalType": "RoleId",
56
- "name": "role",
57
- "type": "bytes8"
58
- },
59
- {
60
- "indexed": false,
61
- "internalType": "bool",
62
- "name": "active",
63
- "type": "bool"
64
- }
65
- ],
66
- "name": "LogAccessRoleStateSet",
67
- "type": "event"
68
- },
69
- {
70
- "anonymous": false,
71
- "inputs": [
72
- {
73
- "indexed": false,
74
- "internalType": "Version",
75
- "name": "version",
76
- "type": "uint24"
77
- },
78
- {
79
- "indexed": false,
80
- "internalType": "address",
81
- "name": "implementation",
82
- "type": "address"
83
- },
84
- {
85
- "indexed": false,
86
- "internalType": "address",
87
- "name": "activatedBy",
88
- "type": "address"
89
- }
90
- ],
91
- "name": "LogVersionableActivated",
92
- "type": "event"
93
- },
94
- {
95
- "inputs": [
96
- {
97
- "internalType": "address",
98
- "name": "implementation",
99
- "type": "address"
100
- },
101
- {
102
- "internalType": "address",
103
- "name": "activatedBy",
104
- "type": "address"
105
- }
106
- ],
107
- "name": "activate",
108
- "outputs": [],
109
- "stateMutability": "nonpayable",
110
- "type": "function"
111
- },
112
- {
113
- "inputs": [
114
- {
115
- "internalType": "NftId",
116
- "name": "bundleNftId",
117
- "type": "uint96"
118
- },
119
- {
120
- "internalType": "NftId",
121
- "name": "poolNftId",
122
- "type": "uint96"
123
- },
124
- {
125
- "internalType": "uint256",
126
- "name": "amount",
127
- "type": "uint256"
128
- }
129
- ],
130
- "name": "addBundleToPool",
131
- "outputs": [],
132
- "stateMutability": "nonpayable",
133
- "type": "function"
134
- },
135
- {
136
- "inputs": [
137
- {
138
- "internalType": "uint256",
139
- "name": "amount",
140
- "type": "uint256"
141
- },
142
- {
143
- "components": [
144
- {
145
- "internalType": "UFixed",
146
- "name": "fractionalFee",
147
- "type": "uint256"
148
- },
149
- {
150
- "internalType": "uint256",
151
- "name": "fixedFee",
152
- "type": "uint256"
153
- }
154
- ],
155
- "internalType": "struct Fee",
156
- "name": "fee",
157
- "type": "tuple"
158
- }
159
- ],
160
- "name": "calculateFeeAmount",
161
- "outputs": [
162
- {
163
- "internalType": "uint256",
164
- "name": "feeAmount",
165
- "type": "uint256"
166
- },
167
- {
168
- "internalType": "uint256",
169
- "name": "netAmount",
170
- "type": "uint256"
171
- }
172
- ],
173
- "stateMutability": "pure",
174
- "type": "function"
175
- },
176
- {
177
- "inputs": [
178
- {
179
- "internalType": "NftId",
180
- "name": "bundleNftId",
181
- "type": "uint96"
182
- },
183
- {
184
- "internalType": "NftId",
185
- "name": "policyNftId",
186
- "type": "uint96"
187
- },
188
- {
189
- "internalType": "uint256",
190
- "name": "amount",
191
- "type": "uint256"
192
- }
193
- ],
194
- "name": "collateralizePolicy",
195
- "outputs": [],
196
- "stateMutability": "nonpayable",
197
- "type": "function"
198
- },
199
- {
200
- "inputs": [
201
- {
202
- "internalType": "NftId",
203
- "name": "productNftId",
204
- "type": "uint96"
205
- },
206
- {
207
- "internalType": "NftId",
208
- "name": "policyNftId",
209
- "type": "uint96"
210
- },
211
- {
212
- "internalType": "uint256",
213
- "name": "sumInsuredAmount",
214
- "type": "uint256"
215
- },
216
- {
217
- "internalType": "uint256",
218
- "name": "premiumAmount",
219
- "type": "uint256"
220
- },
221
- {
222
- "internalType": "uint256",
223
- "name": "lifetime",
224
- "type": "uint256"
225
- },
226
- {
227
- "internalType": "NftId",
228
- "name": "bundleNftId",
229
- "type": "uint96"
230
- }
231
- ],
232
- "name": "createApplication",
233
- "outputs": [],
234
- "stateMutability": "nonpayable",
235
- "type": "function"
236
- },
237
- {
238
- "inputs": [
239
- {
240
- "internalType": "NftId",
241
- "name": "bundleNftId",
242
- "type": "uint96"
243
- },
244
- {
245
- "internalType": "NftId",
246
- "name": "poolNftId",
247
- "type": "uint96"
248
- },
249
- {
250
- "internalType": "uint256",
251
- "name": "amount",
252
- "type": "uint256"
253
- },
254
- {
255
- "internalType": "uint256",
256
- "name": "lifetime",
257
- "type": "uint256"
258
- },
259
- {
260
- "internalType": "bytes",
261
- "name": "filter",
262
- "type": "bytes"
263
- }
264
- ],
265
- "name": "createBundleInfo",
266
- "outputs": [],
267
- "stateMutability": "nonpayable",
268
- "type": "function"
269
- },
270
- {
271
- "inputs": [
272
- {
273
- "internalType": "string",
274
- "name": "roleName",
275
- "type": "string"
276
- }
277
- ],
278
- "name": "createRole",
279
- "outputs": [
280
- {
281
- "internalType": "RoleId",
282
- "name": "role",
283
- "type": "bytes8"
284
- }
285
- ],
286
- "stateMutability": "nonpayable",
287
- "type": "function"
288
- },
289
- {
290
- "inputs": [
291
- {
292
- "internalType": "NftId",
293
- "name": "poolNftId",
294
- "type": "uint96"
295
- }
296
- ],
297
- "name": "getBundleCount",
298
- "outputs": [
299
- {
300
- "internalType": "uint256",
301
- "name": "bundleCount",
302
- "type": "uint256"
303
- }
304
- ],
305
- "stateMutability": "view",
306
- "type": "function"
307
- },
308
- {
309
- "inputs": [
310
- {
311
- "internalType": "NftId",
312
- "name": "bundleNftId",
313
- "type": "uint96"
314
- }
315
- ],
316
- "name": "getBundleInfo",
317
- "outputs": [
318
- {
319
- "components": [
320
- {
321
- "internalType": "NftId",
322
- "name": "nftId",
323
- "type": "uint96"
324
- },
325
- {
326
- "internalType": "NftId",
327
- "name": "poolNftId",
328
- "type": "uint96"
329
- },
330
- {
331
- "internalType": "bytes",
332
- "name": "filter",
333
- "type": "bytes"
334
- },
335
- {
336
- "internalType": "uint256",
337
- "name": "capitalAmount",
338
- "type": "uint256"
339
- },
340
- {
341
- "internalType": "uint256",
342
- "name": "lockedAmount",
343
- "type": "uint256"
344
- },
345
- {
346
- "internalType": "uint256",
347
- "name": "balanceAmount",
348
- "type": "uint256"
349
- },
350
- {
351
- "internalType": "Timestamp",
352
- "name": "expiredAt",
353
- "type": "uint40"
354
- },
355
- {
356
- "internalType": "Timestamp",
357
- "name": "closedAt",
358
- "type": "uint40"
359
- }
360
- ],
361
- "internalType": "struct IBundle.BundleInfo",
362
- "name": "bundleInfo",
363
- "type": "tuple"
364
- }
365
- ],
366
- "stateMutability": "view",
367
- "type": "function"
368
- },
369
- {
370
- "inputs": [
371
- {
372
- "internalType": "NftId",
373
- "name": "poolNftId",
374
- "type": "uint96"
375
- },
376
- {
377
- "internalType": "uint256",
378
- "name": "index",
379
- "type": "uint256"
380
- }
381
- ],
382
- "name": "getBundleNftId",
383
- "outputs": [
384
- {
385
- "internalType": "NftId",
386
- "name": "bundleNftId",
387
- "type": "uint96"
388
- }
389
- ],
390
- "stateMutability": "view",
391
- "type": "function"
392
- },
393
- {
394
- "inputs": [],
395
- "name": "getComponentCount",
396
- "outputs": [
397
- {
398
- "internalType": "uint256",
399
- "name": "numberOfCompnents",
400
- "type": "uint256"
401
- }
402
- ],
403
- "stateMutability": "view",
404
- "type": "function"
405
- },
406
- {
407
- "inputs": [
408
- {
409
- "internalType": "uint256",
410
- "name": "idx",
411
- "type": "uint256"
412
- }
413
- ],
414
- "name": "getComponentId",
415
- "outputs": [
416
- {
417
- "internalType": "NftId",
418
- "name": "nftId",
419
- "type": "uint96"
420
- }
421
- ],
422
- "stateMutability": "view",
423
- "type": "function"
424
- },
425
- {
426
- "inputs": [
427
- {
428
- "internalType": "NftId",
429
- "name": "nftId",
430
- "type": "uint96"
431
- }
432
- ],
433
- "name": "getComponentInfo",
434
- "outputs": [
435
- {
436
- "components": [
437
- {
438
- "internalType": "NftId",
439
- "name": "nftId",
440
- "type": "uint96"
441
- },
442
- {
443
- "internalType": "contract IERC20Metadata",
444
- "name": "token",
445
- "type": "address"
446
- }
447
- ],
448
- "internalType": "struct IComponent.ComponentInfo",
449
- "name": "info",
450
- "type": "tuple"
451
- }
452
- ],
453
- "stateMutability": "view",
454
- "type": "function"
455
- },
456
- {
457
- "inputs": [],
458
- "name": "getComponentOwnerService",
459
- "outputs": [
460
- {
461
- "internalType": "contract IComponentOwnerService",
462
- "name": "",
463
- "type": "address"
464
- }
465
- ],
466
- "stateMutability": "view",
467
- "type": "function"
468
- },
469
- {
470
- "inputs": [
471
- {
472
- "internalType": "NftId",
473
- "name": "nftId",
474
- "type": "uint96"
475
- }
476
- ],
477
- "name": "getComponentState",
478
- "outputs": [
479
- {
480
- "internalType": "StateId",
481
- "name": "state",
482
- "type": "uint8"
483
- }
484
- ],
485
- "stateMutability": "view",
486
- "type": "function"
487
- },
488
- {
489
- "inputs": [],
490
- "name": "getData",
491
- "outputs": [
492
- {
493
- "internalType": "bytes",
494
- "name": "data",
495
- "type": "bytes"
496
- }
497
- ],
498
- "stateMutability": "view",
499
- "type": "function"
500
- },
501
- {
502
- "inputs": [
503
- {
504
- "internalType": "UFixed",
505
- "name": "fractionalFee",
506
- "type": "uint256"
507
- },
508
- {
509
- "internalType": "uint256",
510
- "name": "fixedFee",
511
- "type": "uint256"
512
- }
513
- ],
514
- "name": "getFee",
515
- "outputs": [
516
- {
517
- "components": [
518
- {
519
- "internalType": "UFixed",
520
- "name": "fractionalFee",
521
- "type": "uint256"
522
- },
523
- {
524
- "internalType": "uint256",
525
- "name": "fixedFee",
526
- "type": "uint256"
527
- }
528
- ],
529
- "internalType": "struct Fee",
530
- "name": "fee",
531
- "type": "tuple"
532
- }
533
- ],
534
- "stateMutability": "pure",
535
- "type": "function"
536
- },
537
- {
538
- "inputs": [],
539
- "name": "getKeyValueStore",
540
- "outputs": [
541
- {
542
- "internalType": "contract IKeyValueStore",
543
- "name": "keyValueStore",
544
- "type": "address"
545
- }
546
- ],
547
- "stateMutability": "view",
548
- "type": "function"
549
- },
550
- {
551
- "inputs": [],
552
- "name": "getNftId",
553
- "outputs": [
554
- {
555
- "internalType": "NftId",
556
- "name": "nftId",
557
- "type": "uint96"
558
- }
559
- ],
560
- "stateMutability": "view",
561
- "type": "function"
562
- },
563
- {
564
- "inputs": [],
565
- "name": "getOwner",
566
- "outputs": [
567
- {
568
- "internalType": "address",
569
- "name": "owner",
570
- "type": "address"
571
- }
572
- ],
573
- "stateMutability": "view",
574
- "type": "function"
575
- },
576
- {
577
- "inputs": [],
578
- "name": "getParentNftId",
579
- "outputs": [
580
- {
581
- "internalType": "NftId",
582
- "name": "nftId",
583
- "type": "uint96"
584
- }
585
- ],
586
- "stateMutability": "view",
587
- "type": "function"
588
- },
589
- {
590
- "inputs": [
591
- {
592
- "internalType": "NftId",
593
- "name": "nftId",
594
- "type": "uint96"
595
- }
596
- ],
597
- "name": "getPolicyInfo",
598
- "outputs": [
599
- {
600
- "components": [
601
- {
602
- "internalType": "NftId",
603
- "name": "nftId",
604
- "type": "uint96"
605
- },
606
- {
607
- "internalType": "NftId",
608
- "name": "productNftId",
609
- "type": "uint96"
610
- },
611
- {
612
- "internalType": "NftId",
613
- "name": "bundleNftId",
614
- "type": "uint96"
615
- },
616
- {
617
- "internalType": "address",
618
- "name": "beneficiary",
619
- "type": "address"
620
- },
621
- {
622
- "internalType": "StateId",
623
- "name": "state",
624
- "type": "uint8"
625
- },
626
- {
627
- "internalType": "uint256",
628
- "name": "sumInsuredAmount",
629
- "type": "uint256"
630
- },
631
- {
632
- "internalType": "uint256",
633
- "name": "premiumAmount",
634
- "type": "uint256"
635
- },
636
- {
637
- "internalType": "uint256",
638
- "name": "premiumPaidAmount",
639
- "type": "uint256"
640
- },
641
- {
642
- "internalType": "uint256",
643
- "name": "lifetime",
644
- "type": "uint256"
645
- },
646
- {
647
- "internalType": "bytes",
648
- "name": "applicationData",
649
- "type": "bytes"
650
- },
651
- {
652
- "internalType": "bytes",
653
- "name": "policyData",
654
- "type": "bytes"
655
- },
656
- {
657
- "internalType": "Timestamp",
658
- "name": "createdAt",
659
- "type": "uint40"
660
- },
661
- {
662
- "internalType": "Timestamp",
663
- "name": "activatedAt",
664
- "type": "uint40"
665
- },
666
- {
667
- "internalType": "Timestamp",
668
- "name": "expiredAt",
669
- "type": "uint40"
670
- },
671
- {
672
- "internalType": "Timestamp",
673
- "name": "closedAt",
674
- "type": "uint40"
675
- },
676
- {
677
- "internalType": "Blocknumber",
678
- "name": "updatedIn",
679
- "type": "uint32"
680
- }
681
- ],
682
- "internalType": "struct IPolicy.PolicyInfo",
683
- "name": "info",
684
- "type": "tuple"
685
- }
686
- ],
687
- "stateMutability": "view",
688
- "type": "function"
689
- },
690
- {
691
- "inputs": [
692
- {
693
- "internalType": "NftId",
694
- "name": "nftId",
695
- "type": "uint96"
696
- }
697
- ],
698
- "name": "getPoolInfo",
699
- "outputs": [
700
- {
701
- "components": [
702
- {
703
- "internalType": "NftId",
704
- "name": "nftId",
705
- "type": "uint96"
706
- },
707
- {
708
- "internalType": "bool",
709
- "name": "isVerifying",
710
- "type": "bool"
711
- },
712
- {
713
- "internalType": "UFixed",
714
- "name": "collateralizationLevel",
715
- "type": "uint256"
716
- }
717
- ],
718
- "internalType": "struct IPool.PoolInfo",
719
- "name": "info",
720
- "type": "tuple"
721
- }
722
- ],
723
- "stateMutability": "view",
724
- "type": "function"
725
- },
726
- {
727
- "inputs": [],
728
- "name": "getPoolService",
729
- "outputs": [
730
- {
731
- "internalType": "contract IPoolService",
732
- "name": "",
733
- "type": "address"
734
- }
735
- ],
736
- "stateMutability": "view",
737
- "type": "function"
738
- },
739
- {
740
- "inputs": [
741
- {
742
- "internalType": "NftId",
743
- "name": "poolNftId",
744
- "type": "uint96"
745
- }
746
- ],
747
- "name": "getPoolSetup",
748
- "outputs": [
749
- {
750
- "components": [
751
- {
752
- "internalType": "NftId",
753
- "name": "poolNftId",
754
- "type": "uint96"
755
- },
756
- {
757
- "internalType": "address",
758
- "name": "wallet",
759
- "type": "address"
760
- },
761
- {
762
- "components": [
763
- {
764
- "internalType": "UFixed",
765
- "name": "fractionalFee",
766
- "type": "uint256"
767
- },
768
- {
769
- "internalType": "uint256",
770
- "name": "fixedFee",
771
- "type": "uint256"
772
- }
773
- ],
774
- "internalType": "struct Fee",
775
- "name": "stakingFee",
776
- "type": "tuple"
777
- },
778
- {
779
- "components": [
780
- {
781
- "internalType": "UFixed",
782
- "name": "fractionalFee",
783
- "type": "uint256"
784
- },
785
- {
786
- "internalType": "uint256",
787
- "name": "fixedFee",
788
- "type": "uint256"
789
- }
790
- ],
791
- "internalType": "struct Fee",
792
- "name": "performanceFee",
793
- "type": "tuple"
794
- }
795
- ],
796
- "internalType": "struct ITreasury.PoolSetup",
797
- "name": "setup",
798
- "type": "tuple"
799
- }
800
- ],
801
- "stateMutability": "view",
802
- "type": "function"
803
- },
804
- {
805
- "inputs": [],
806
- "name": "getProductService",
807
- "outputs": [
808
- {
809
- "internalType": "contract IProductService",
810
- "name": "",
811
- "type": "address"
812
- }
813
- ],
814
- "stateMutability": "view",
815
- "type": "function"
816
- },
817
- {
818
- "inputs": [
819
- {
820
- "internalType": "NftId",
821
- "name": "productNftId",
822
- "type": "uint96"
823
- }
824
- ],
825
- "name": "getProductSetup",
826
- "outputs": [
827
- {
828
- "components": [
829
- {
830
- "internalType": "NftId",
831
- "name": "productNftId",
832
- "type": "uint96"
833
- },
834
- {
835
- "internalType": "NftId",
836
- "name": "distributorNftId",
837
- "type": "uint96"
838
- },
839
- {
840
- "internalType": "NftId",
841
- "name": "poolNftId",
842
- "type": "uint96"
843
- },
844
- {
845
- "internalType": "contract IERC20Metadata",
846
- "name": "token",
847
- "type": "address"
848
- },
849
- {
850
- "internalType": "address",
851
- "name": "wallet",
852
- "type": "address"
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": "policyFee",
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": "processingFee",
886
- "type": "tuple"
887
- }
888
- ],
889
- "internalType": "struct ITreasury.ProductSetup",
890
- "name": "setup",
891
- "type": "tuple"
892
- }
893
- ],
894
- "stateMutability": "view",
895
- "type": "function"
896
- },
897
- {
898
- "inputs": [],
899
- "name": "getRegistry",
900
- "outputs": [
901
- {
902
- "internalType": "contract IRegistry",
903
- "name": "registry",
904
- "type": "address"
905
- }
906
- ],
907
- "stateMutability": "view",
908
- "type": "function"
909
- },
910
- {
911
- "inputs": [
912
- {
913
- "internalType": "uint256",
914
- "name": "idx",
915
- "type": "uint256"
916
- }
917
- ],
918
- "name": "getRole",
919
- "outputs": [
920
- {
921
- "internalType": "RoleId",
922
- "name": "role",
923
- "type": "bytes8"
924
- }
925
- ],
926
- "stateMutability": "view",
927
- "type": "function"
928
- },
929
- {
930
- "inputs": [],
931
- "name": "getRoleCount",
932
- "outputs": [
933
- {
934
- "internalType": "uint256",
935
- "name": "roles",
936
- "type": "uint256"
937
- }
938
- ],
939
- "stateMutability": "view",
940
- "type": "function"
941
- },
942
- {
943
- "inputs": [
944
- {
945
- "internalType": "string",
946
- "name": "roleName",
947
- "type": "string"
948
- }
949
- ],
950
- "name": "getRoleId",
951
- "outputs": [
952
- {
953
- "internalType": "RoleId",
954
- "name": "role",
955
- "type": "bytes8"
956
- }
957
- ],
958
- "stateMutability": "pure",
959
- "type": "function"
960
- },
961
- {
962
- "inputs": [
963
- {
964
- "internalType": "RoleId",
965
- "name": "role",
966
- "type": "bytes8"
967
- }
968
- ],
969
- "name": "getRoleInfo",
970
- "outputs": [
971
- {
972
- "components": [
973
- {
974
- "internalType": "RoleId",
975
- "name": "id",
976
- "type": "bytes8"
977
- },
978
- {
979
- "internalType": "string",
980
- "name": "name",
981
- "type": "string"
982
- },
983
- {
984
- "internalType": "bool",
985
- "name": "isActive",
986
- "type": "bool"
987
- }
988
- ],
989
- "internalType": "struct IAccess.RoleInfo",
990
- "name": "info",
991
- "type": "tuple"
992
- }
993
- ],
994
- "stateMutability": "view",
995
- "type": "function"
996
- },
997
- {
998
- "inputs": [
999
- {
1000
- "internalType": "RoleId",
1001
- "name": "role",
1002
- "type": "bytes8"
1003
- },
1004
- {
1005
- "internalType": "uint256",
1006
- "name": "idx",
1007
- "type": "uint256"
1008
- }
1009
- ],
1010
- "name": "getRoleMember",
1011
- "outputs": [
1012
- {
1013
- "internalType": "address",
1014
- "name": "roleMember",
1015
- "type": "address"
1016
- }
1017
- ],
1018
- "stateMutability": "view",
1019
- "type": "function"
1020
- },
1021
- {
1022
- "inputs": [
1023
- {
1024
- "internalType": "RoleId",
1025
- "name": "role",
1026
- "type": "bytes8"
1027
- }
1028
- ],
1029
- "name": "getRoleMemberCount",
1030
- "outputs": [
1031
- {
1032
- "internalType": "uint256",
1033
- "name": "roleMembers",
1034
- "type": "uint256"
1035
- }
1036
- ],
1037
- "stateMutability": "view",
1038
- "type": "function"
1039
- },
1040
- {
1041
- "inputs": [
1042
- {
1043
- "internalType": "NftId",
1044
- "name": "componentNftId",
1045
- "type": "uint96"
1046
- }
1047
- ],
1048
- "name": "getTokenHandler",
1049
- "outputs": [
1050
- {
1051
- "internalType": "contract TokenHandler",
1052
- "name": "tokenHandler",
1053
- "type": "address"
1054
- }
1055
- ],
1056
- "stateMutability": "view",
1057
- "type": "function"
1058
- },
1059
- {
1060
- "inputs": [],
1061
- "name": "getType",
1062
- "outputs": [
1063
- {
1064
- "internalType": "ObjectType",
1065
- "name": "objectType",
1066
- "type": "uint8"
1067
- }
1068
- ],
1069
- "stateMutability": "pure",
1070
- "type": "function"
1071
- },
1072
- {
1073
- "inputs": [
1074
- {
1075
- "internalType": "uint256",
1076
- "name": "a",
1077
- "type": "uint256"
1078
- },
1079
- {
1080
- "internalType": "int8",
1081
- "name": "exp",
1082
- "type": "int8"
1083
- }
1084
- ],
1085
- "name": "getUFixed",
1086
- "outputs": [
1087
- {
1088
- "internalType": "UFixed",
1089
- "name": "",
1090
- "type": "uint256"
1091
- }
1092
- ],
1093
- "stateMutability": "pure",
1094
- "type": "function"
1095
- },
1096
- {
1097
- "inputs": [
1098
- {
1099
- "internalType": "uint256",
1100
- "name": "a",
1101
- "type": "uint256"
1102
- }
1103
- ],
1104
- "name": "getUFixed",
1105
- "outputs": [
1106
- {
1107
- "internalType": "UFixed",
1108
- "name": "",
1109
- "type": "uint256"
1110
- }
1111
- ],
1112
- "stateMutability": "pure",
1113
- "type": "function"
1114
- },
1115
- {
1116
- "inputs": [],
1117
- "name": "getVersion",
1118
- "outputs": [
1119
- {
1120
- "internalType": "Version",
1121
- "name": "",
1122
- "type": "uint24"
1123
- }
1124
- ],
1125
- "stateMutability": "pure",
1126
- "type": "function"
1127
- },
1128
- {
1129
- "inputs": [
1130
- {
1131
- "internalType": "uint256",
1132
- "name": "index",
1133
- "type": "uint256"
1134
- }
1135
- ],
1136
- "name": "getVersion",
1137
- "outputs": [
1138
- {
1139
- "internalType": "Version",
1140
- "name": "version",
1141
- "type": "uint24"
1142
- }
1143
- ],
1144
- "stateMutability": "view",
1145
- "type": "function"
1146
- },
1147
- {
1148
- "inputs": [],
1149
- "name": "getVersionCount",
1150
- "outputs": [
1151
- {
1152
- "internalType": "uint256",
1153
- "name": "numberOfVersions",
1154
- "type": "uint256"
1155
- }
1156
- ],
1157
- "stateMutability": "view",
1158
- "type": "function"
1159
- },
1160
- {
1161
- "inputs": [
1162
- {
1163
- "internalType": "Version",
1164
- "name": "version",
1165
- "type": "uint24"
1166
- }
1167
- ],
1168
- "name": "getVersionInfo",
1169
- "outputs": [
1170
- {
1171
- "components": [
1172
- {
1173
- "internalType": "Version",
1174
- "name": "version",
1175
- "type": "uint24"
1176
- },
1177
- {
1178
- "internalType": "address",
1179
- "name": "implementation",
1180
- "type": "address"
1181
- },
1182
- {
1183
- "internalType": "address",
1184
- "name": "activatedBy",
1185
- "type": "address"
1186
- },
1187
- {
1188
- "internalType": "Timestamp",
1189
- "name": "activatedAt",
1190
- "type": "uint40"
1191
- },
1192
- {
1193
- "internalType": "Blocknumber",
1194
- "name": "activatedIn",
1195
- "type": "uint32"
1196
- }
1197
- ],
1198
- "internalType": "struct IVersionable.VersionInfo",
1199
- "name": "versionInfo",
1200
- "type": "tuple"
1201
- }
1202
- ],
1203
- "stateMutability": "view",
1204
- "type": "function"
1205
- },
1206
- {
1207
- "inputs": [],
1208
- "name": "getZeroFee",
1209
- "outputs": [
1210
- {
1211
- "components": [
1212
- {
1213
- "internalType": "UFixed",
1214
- "name": "fractionalFee",
1215
- "type": "uint256"
1216
- },
1217
- {
1218
- "internalType": "uint256",
1219
- "name": "fixedFee",
1220
- "type": "uint256"
1221
- }
1222
- ],
1223
- "internalType": "struct Fee",
1224
- "name": "fee",
1225
- "type": "tuple"
1226
- }
1227
- ],
1228
- "stateMutability": "pure",
1229
- "type": "function"
1230
- },
1231
- {
1232
- "inputs": [
1233
- {
1234
- "internalType": "RoleId",
1235
- "name": "role",
1236
- "type": "bytes8"
1237
- },
1238
- {
1239
- "internalType": "address",
1240
- "name": "member",
1241
- "type": "address"
1242
- }
1243
- ],
1244
- "name": "grantRole",
1245
- "outputs": [],
1246
- "stateMutability": "nonpayable",
1247
- "type": "function"
1248
- },
1249
- {
1250
- "inputs": [
1251
- {
1252
- "internalType": "RoleId",
1253
- "name": "role",
1254
- "type": "bytes8"
1255
- },
1256
- {
1257
- "internalType": "address",
1258
- "name": "member",
1259
- "type": "address"
1260
- }
1261
- ],
1262
- "name": "hasRole",
1263
- "outputs": [
1264
- {
1265
- "internalType": "bool",
1266
- "name": "hasRole",
1267
- "type": "bool"
1268
- }
1269
- ],
1270
- "stateMutability": "view",
1271
- "type": "function"
1272
- },
1273
- {
1274
- "inputs": [
1275
- {
1276
- "internalType": "Version",
1277
- "name": "version",
1278
- "type": "uint24"
1279
- }
1280
- ],
1281
- "name": "isActivated",
1282
- "outputs": [
1283
- {
1284
- "internalType": "bool",
1285
- "name": "",
1286
- "type": "bool"
1287
- }
1288
- ],
1289
- "stateMutability": "view",
1290
- "type": "function"
1291
- },
1292
- {
1293
- "inputs": [],
1294
- "name": "register",
1295
- "outputs": [
1296
- {
1297
- "internalType": "NftId",
1298
- "name": "nftId",
1299
- "type": "uint96"
1300
- }
1301
- ],
1302
- "stateMutability": "nonpayable",
1303
- "type": "function"
1304
- },
1305
- {
1306
- "inputs": [
1307
- {
1308
- "internalType": "NftId",
1309
- "name": "nftId",
1310
- "type": "uint96"
1311
- },
1312
- {
1313
- "internalType": "ObjectType",
1314
- "name": "objectType",
1315
- "type": "uint8"
1316
- },
1317
- {
1318
- "internalType": "contract IERC20Metadata",
1319
- "name": "token",
1320
- "type": "address"
1321
- }
1322
- ],
1323
- "name": "registerComponent",
1324
- "outputs": [],
1325
- "stateMutability": "nonpayable",
1326
- "type": "function"
1327
- },
1328
- {
1329
- "inputs": [
1330
- {
1331
- "internalType": "NftId",
1332
- "name": "poolNftId",
1333
- "type": "uint96"
1334
- },
1335
- {
1336
- "internalType": "address",
1337
- "name": "wallet",
1338
- "type": "address"
1339
- },
1340
- {
1341
- "components": [
1342
- {
1343
- "internalType": "UFixed",
1344
- "name": "fractionalFee",
1345
- "type": "uint256"
1346
- },
1347
- {
1348
- "internalType": "uint256",
1349
- "name": "fixedFee",
1350
- "type": "uint256"
1351
- }
1352
- ],
1353
- "internalType": "struct Fee",
1354
- "name": "stakingFee",
1355
- "type": "tuple"
1356
- },
1357
- {
1358
- "components": [
1359
- {
1360
- "internalType": "UFixed",
1361
- "name": "fractionalFee",
1362
- "type": "uint256"
1363
- },
1364
- {
1365
- "internalType": "uint256",
1366
- "name": "fixedFee",
1367
- "type": "uint256"
1368
- }
1369
- ],
1370
- "internalType": "struct Fee",
1371
- "name": "performanceFee",
1372
- "type": "tuple"
1373
- }
1374
- ],
1375
- "name": "registerPool",
1376
- "outputs": [],
1377
- "stateMutability": "nonpayable",
1378
- "type": "function"
1379
- },
1380
- {
1381
- "inputs": [
1382
- {
1383
- "internalType": "NftId",
1384
- "name": "poolNftId",
1385
- "type": "uint96"
1386
- },
1387
- {
1388
- "internalType": "bool",
1389
- "name": "isVerifying",
1390
- "type": "bool"
1391
- },
1392
- {
1393
- "internalType": "UFixed",
1394
- "name": "collateralizationLevel",
1395
- "type": "uint256"
1396
- }
1397
- ],
1398
- "name": "registerPool",
1399
- "outputs": [],
1400
- "stateMutability": "nonpayable",
1401
- "type": "function"
1402
- },
1403
- {
1404
- "inputs": [
1405
- {
1406
- "internalType": "NftId",
1407
- "name": "productNftId",
1408
- "type": "uint96"
1409
- },
1410
- {
1411
- "internalType": "NftId",
1412
- "name": "distributorNftId",
1413
- "type": "uint96"
1414
- },
1415
- {
1416
- "internalType": "NftId",
1417
- "name": "poolNftId",
1418
- "type": "uint96"
1419
- },
1420
- {
1421
- "internalType": "contract IERC20Metadata",
1422
- "name": "token",
1423
- "type": "address"
1424
- },
1425
- {
1426
- "internalType": "address",
1427
- "name": "wallet",
1428
- "type": "address"
1429
- },
1430
- {
1431
- "components": [
1432
- {
1433
- "internalType": "UFixed",
1434
- "name": "fractionalFee",
1435
- "type": "uint256"
1436
- },
1437
- {
1438
- "internalType": "uint256",
1439
- "name": "fixedFee",
1440
- "type": "uint256"
1441
- }
1442
- ],
1443
- "internalType": "struct Fee",
1444
- "name": "policyFee",
1445
- "type": "tuple"
1446
- },
1447
- {
1448
- "components": [
1449
- {
1450
- "internalType": "UFixed",
1451
- "name": "fractionalFee",
1452
- "type": "uint256"
1453
- },
1454
- {
1455
- "internalType": "uint256",
1456
- "name": "fixedFee",
1457
- "type": "uint256"
1458
- }
1459
- ],
1460
- "internalType": "struct Fee",
1461
- "name": "processingFee",
1462
- "type": "tuple"
1463
- }
1464
- ],
1465
- "name": "registerProduct",
1466
- "outputs": [],
1467
- "stateMutability": "nonpayable",
1468
- "type": "function"
1469
- },
1470
- {
1471
- "inputs": [
1472
- {
1473
- "internalType": "NftId",
1474
- "name": "bundleNftId",
1475
- "type": "uint96"
1476
- },
1477
- {
1478
- "internalType": "NftId",
1479
- "name": "policyNftId",
1480
- "type": "uint96"
1481
- }
1482
- ],
1483
- "name": "releasePolicy",
1484
- "outputs": [
1485
- {
1486
- "internalType": "uint256",
1487
- "name": "collateralAmount",
1488
- "type": "uint256"
1489
- }
1490
- ],
1491
- "stateMutability": "nonpayable",
1492
- "type": "function"
1493
- },
1494
- {
1495
- "inputs": [
1496
- {
1497
- "internalType": "RoleId",
1498
- "name": "role",
1499
- "type": "bytes8"
1500
- },
1501
- {
1502
- "internalType": "address",
1503
- "name": "member",
1504
- "type": "address"
1505
- }
1506
- ],
1507
- "name": "revokeRole",
1508
- "outputs": [],
1509
- "stateMutability": "nonpayable",
1510
- "type": "function"
1511
- },
1512
- {
1513
- "inputs": [
1514
- {
1515
- "internalType": "RoleId",
1516
- "name": "role",
1517
- "type": "bytes8"
1518
- }
1519
- ],
1520
- "name": "roleExists",
1521
- "outputs": [
1522
- {
1523
- "internalType": "bool",
1524
- "name": "",
1525
- "type": "bool"
1526
- }
1527
- ],
1528
- "stateMutability": "view",
1529
- "type": "function"
1530
- },
1531
- {
1532
- "inputs": [
1533
- {
1534
- "components": [
1535
- {
1536
- "internalType": "NftId",
1537
- "name": "nftId",
1538
- "type": "uint96"
1539
- },
1540
- {
1541
- "internalType": "NftId",
1542
- "name": "poolNftId",
1543
- "type": "uint96"
1544
- },
1545
- {
1546
- "internalType": "bytes",
1547
- "name": "filter",
1548
- "type": "bytes"
1549
- },
1550
- {
1551
- "internalType": "uint256",
1552
- "name": "capitalAmount",
1553
- "type": "uint256"
1554
- },
1555
- {
1556
- "internalType": "uint256",
1557
- "name": "lockedAmount",
1558
- "type": "uint256"
1559
- },
1560
- {
1561
- "internalType": "uint256",
1562
- "name": "balanceAmount",
1563
- "type": "uint256"
1564
- },
1565
- {
1566
- "internalType": "Timestamp",
1567
- "name": "expiredAt",
1568
- "type": "uint40"
1569
- },
1570
- {
1571
- "internalType": "Timestamp",
1572
- "name": "closedAt",
1573
- "type": "uint40"
1574
- }
1575
- ],
1576
- "internalType": "struct IBundle.BundleInfo",
1577
- "name": "bundleInfo",
1578
- "type": "tuple"
1579
- }
1580
- ],
1581
- "name": "setBundleInfo",
1582
- "outputs": [],
1583
- "stateMutability": "nonpayable",
1584
- "type": "function"
1585
- },
1586
- {
1587
- "inputs": [
1588
- {
1589
- "components": [
1590
- {
1591
- "internalType": "NftId",
1592
- "name": "nftId",
1593
- "type": "uint96"
1594
- },
1595
- {
1596
- "internalType": "contract IERC20Metadata",
1597
- "name": "token",
1598
- "type": "address"
1599
- }
1600
- ],
1601
- "internalType": "struct IComponent.ComponentInfo",
1602
- "name": "info",
1603
- "type": "tuple"
1604
- }
1605
- ],
1606
- "name": "setComponentInfo",
1607
- "outputs": [],
1608
- "stateMutability": "nonpayable",
1609
- "type": "function"
1610
- },
1611
- {
1612
- "inputs": [
1613
- {
1614
- "components": [
1615
- {
1616
- "internalType": "NftId",
1617
- "name": "nftId",
1618
- "type": "uint96"
1619
- },
1620
- {
1621
- "internalType": "NftId",
1622
- "name": "productNftId",
1623
- "type": "uint96"
1624
- },
1625
- {
1626
- "internalType": "NftId",
1627
- "name": "bundleNftId",
1628
- "type": "uint96"
1629
- },
1630
- {
1631
- "internalType": "address",
1632
- "name": "beneficiary",
1633
- "type": "address"
1634
- },
1635
- {
1636
- "internalType": "StateId",
1637
- "name": "state",
1638
- "type": "uint8"
1639
- },
1640
- {
1641
- "internalType": "uint256",
1642
- "name": "sumInsuredAmount",
1643
- "type": "uint256"
1644
- },
1645
- {
1646
- "internalType": "uint256",
1647
- "name": "premiumAmount",
1648
- "type": "uint256"
1649
- },
1650
- {
1651
- "internalType": "uint256",
1652
- "name": "premiumPaidAmount",
1653
- "type": "uint256"
1654
- },
1655
- {
1656
- "internalType": "uint256",
1657
- "name": "lifetime",
1658
- "type": "uint256"
1659
- },
1660
- {
1661
- "internalType": "bytes",
1662
- "name": "applicationData",
1663
- "type": "bytes"
1664
- },
1665
- {
1666
- "internalType": "bytes",
1667
- "name": "policyData",
1668
- "type": "bytes"
1669
- },
1670
- {
1671
- "internalType": "Timestamp",
1672
- "name": "createdAt",
1673
- "type": "uint40"
1674
- },
1675
- {
1676
- "internalType": "Timestamp",
1677
- "name": "activatedAt",
1678
- "type": "uint40"
1679
- },
1680
- {
1681
- "internalType": "Timestamp",
1682
- "name": "expiredAt",
1683
- "type": "uint40"
1684
- },
1685
- {
1686
- "internalType": "Timestamp",
1687
- "name": "closedAt",
1688
- "type": "uint40"
1689
- },
1690
- {
1691
- "internalType": "Blocknumber",
1692
- "name": "updatedIn",
1693
- "type": "uint32"
1694
- }
1695
- ],
1696
- "internalType": "struct IPolicy.PolicyInfo",
1697
- "name": "policyInfo",
1698
- "type": "tuple"
1699
- }
1700
- ],
1701
- "name": "setPolicyInfo",
1702
- "outputs": [],
1703
- "stateMutability": "nonpayable",
1704
- "type": "function"
1705
- },
1706
- {
1707
- "inputs": [
1708
- {
1709
- "internalType": "NftId",
1710
- "name": "poolNftId",
1711
- "type": "uint96"
1712
- },
1713
- {
1714
- "components": [
1715
- {
1716
- "internalType": "UFixed",
1717
- "name": "fractionalFee",
1718
- "type": "uint256"
1719
- },
1720
- {
1721
- "internalType": "uint256",
1722
- "name": "fixedFee",
1723
- "type": "uint256"
1724
- }
1725
- ],
1726
- "internalType": "struct Fee",
1727
- "name": "stakingFee",
1728
- "type": "tuple"
1729
- },
1730
- {
1731
- "components": [
1732
- {
1733
- "internalType": "UFixed",
1734
- "name": "fractionalFee",
1735
- "type": "uint256"
1736
- },
1737
- {
1738
- "internalType": "uint256",
1739
- "name": "fixedFee",
1740
- "type": "uint256"
1741
- }
1742
- ],
1743
- "internalType": "struct Fee",
1744
- "name": "performanceFee",
1745
- "type": "tuple"
1746
- }
1747
- ],
1748
- "name": "setPoolFees",
1749
- "outputs": [],
1750
- "stateMutability": "nonpayable",
1751
- "type": "function"
1752
- },
1753
- {
1754
- "inputs": [
1755
- {
1756
- "internalType": "NftId",
1757
- "name": "productNftId",
1758
- "type": "uint96"
1759
- },
1760
- {
1761
- "components": [
1762
- {
1763
- "internalType": "UFixed",
1764
- "name": "fractionalFee",
1765
- "type": "uint256"
1766
- },
1767
- {
1768
- "internalType": "uint256",
1769
- "name": "fixedFee",
1770
- "type": "uint256"
1771
- }
1772
- ],
1773
- "internalType": "struct Fee",
1774
- "name": "policyFee",
1775
- "type": "tuple"
1776
- },
1777
- {
1778
- "components": [
1779
- {
1780
- "internalType": "UFixed",
1781
- "name": "fractionalFee",
1782
- "type": "uint256"
1783
- },
1784
- {
1785
- "internalType": "uint256",
1786
- "name": "fixedFee",
1787
- "type": "uint256"
1788
- }
1789
- ],
1790
- "internalType": "struct Fee",
1791
- "name": "processingFee",
1792
- "type": "tuple"
1793
- }
1794
- ],
1795
- "name": "setProductFees",
1796
- "outputs": [],
1797
- "stateMutability": "nonpayable",
1798
- "type": "function"
1799
- },
1800
- {
1801
- "inputs": [
1802
- {
1803
- "internalType": "RoleId",
1804
- "name": "role",
1805
- "type": "bytes8"
1806
- },
1807
- {
1808
- "internalType": "bool",
1809
- "name": "active",
1810
- "type": "bool"
1811
- }
1812
- ],
1813
- "name": "setRoleState",
1814
- "outputs": [],
1815
- "stateMutability": "nonpayable",
1816
- "type": "function"
1817
- },
1818
- {
1819
- "inputs": [
1820
- {
1821
- "internalType": "bytes4",
1822
- "name": "interfaceId",
1823
- "type": "bytes4"
1824
- }
1825
- ],
1826
- "name": "supportsInterface",
1827
- "outputs": [
1828
- {
1829
- "internalType": "bool",
1830
- "name": "",
1831
- "type": "bool"
1832
- }
1833
- ],
1834
- "stateMutability": "view",
1835
- "type": "function"
1836
- },
1837
- {
1838
- "inputs": [
1839
- {
1840
- "internalType": "NftId",
1841
- "name": "bundleNftId",
1842
- "type": "uint96"
1843
- }
1844
- ],
1845
- "name": "toBundleKey32",
1846
- "outputs": [
1847
- {
1848
- "internalType": "Key32",
1849
- "name": "key32",
1850
- "type": "bytes32"
1851
- }
1852
- ],
1853
- "stateMutability": "view",
1854
- "type": "function"
1855
- },
1856
- {
1857
- "inputs": [
1858
- {
1859
- "internalType": "NftId",
1860
- "name": "nftId",
1861
- "type": "uint96"
1862
- }
1863
- ],
1864
- "name": "toComponentKey32",
1865
- "outputs": [
1866
- {
1867
- "internalType": "Key32",
1868
- "name": "key32",
1869
- "type": "bytes32"
1870
- }
1871
- ],
1872
- "stateMutability": "view",
1873
- "type": "function"
1874
- },
1875
- {
1876
- "inputs": [
1877
- {
1878
- "internalType": "NftId",
1879
- "name": "bundleNftId",
1880
- "type": "uint96"
1881
- },
1882
- {
1883
- "internalType": "StateId",
1884
- "name": "state",
1885
- "type": "uint8"
1886
- }
1887
- ],
1888
- "name": "updateBundleState",
1889
- "outputs": [],
1890
- "stateMutability": "nonpayable",
1891
- "type": "function"
1892
- },
1893
- {
1894
- "inputs": [
1895
- {
1896
- "internalType": "NftId",
1897
- "name": "nftId",
1898
- "type": "uint96"
1899
- },
1900
- {
1901
- "internalType": "StateId",
1902
- "name": "state",
1903
- "type": "uint8"
1904
- }
1905
- ],
1906
- "name": "updateComponentState",
1907
- "outputs": [],
1908
- "stateMutability": "nonpayable",
1909
- "type": "function"
1910
- }
1911
- ],
5
+ "abi": [],
1912
6
  "bytecode": "0x",
1913
7
  "deployedBytecode": "0x",
1914
8
  "linkReferences": {},