@etherisc/gif-next 0.0.2-dc7e4cb-141 → 0.0.2-de0a1d3-009

Sign up to get free protection for your applications and to get access to all the features.
Files changed (268) hide show
  1. package/README.md +58 -11
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
  3. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.json +405 -0
  5. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  6. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  7. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +340 -0
  8. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +131 -0
  10. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +109 -18
  12. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  13. package/artifacts/contracts/components/Pool.sol/Pool.json +194 -3
  14. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  15. package/artifacts/contracts/components/Product.sol/Product.json +160 -21
  16. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  17. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  18. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  20. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  22. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  24. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  28. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
  32. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
  34. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  36. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  37. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +709 -678
  38. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +1 -1
  39. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  40. package/artifacts/contracts/instance/Instance.sol/Instance.json +916 -717
  41. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +4 -0
  42. package/artifacts/contracts/instance/{InstanceBase.sol/InstanceBase.json → base/ComponentServiceBase.sol/ComponentServiceBase.json} +102 -28
  43. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  44. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +113 -0
  45. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  46. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +560 -0
  47. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  48. package/artifacts/contracts/instance/{module/lifecycle/ILifecycle.sol/ILifecycleModule.json → base/ILifecycle.sol/ILifecycle.json} +10 -77
  49. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +4 -0
  50. package/artifacts/contracts/instance/{service → base}/IService.sol/IService.json +58 -17
  51. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +4 -0
  52. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +463 -0
  53. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  54. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +710 -0
  55. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  56. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
  57. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +4 -0
  58. package/artifacts/contracts/instance/{module/compensation/ICompensation.sol/ICompensation.json → base/ModuleBase.sol/ModuleBase.json} +2 -2
  59. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +4 -0
  60. package/artifacts/contracts/instance/{service → base}/ServiceBase.sol/ServiceBase.json +88 -1
  61. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +1 -1
  62. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +1 -1
  63. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +1 -1
  64. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +1 -1
  65. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +71 -50
  66. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +1 -1
  67. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +1 -1
  68. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +71 -50
  69. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +1 -1
  70. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +22 -93
  71. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +1 -1
  72. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +1 -1
  73. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +22 -93
  74. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +4 -0
  75. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +10 -0
  76. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +4 -0
  77. package/artifacts/contracts/instance/module/{compensation/ICompensation.sol/ICompensationModule.json → distribution/IDistribution.sol/IDistribution.json} +2 -2
  78. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +4 -0
  79. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.json +10 -0
  80. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +1 -1
  81. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +1 -1
  82. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +61 -38
  83. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
  84. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +61 -38
  85. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +1 -1
  86. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +1 -1
  87. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -5
  88. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +1 -1
  89. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -5
  90. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +1 -1
  91. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +1 -1
  92. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +104 -1
  93. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +1 -1
  94. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +126 -5
  95. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +1 -1
  96. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +1 -1
  97. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +209 -231
  98. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  99. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +2 -2
  100. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +1 -1
  101. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +209 -231
  102. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  103. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +145 -18
  104. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  105. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +507 -0
  106. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  107. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +57 -16
  108. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  109. package/artifacts/contracts/instance/service/{ComponentServiceBase.sol/ComponentServiceBase.json → IDistributionService.sol/IDistributionService.json} +91 -25
  110. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  111. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +122 -17
  112. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  113. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +210 -16
  114. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  115. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +171 -12
  116. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  117. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +303 -31
  118. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  119. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
  120. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  121. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
  122. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  123. package/artifacts/contracts/registry/Registry.sol/Registry.json +2 -2
  124. package/artifacts/contracts/registry/RegistryUpgradeable.sol/RegistryUpgradeable.dbg.json +4 -0
  125. package/artifacts/contracts/registry/RegistryUpgradeable.sol/RegistryUpgradeable.json +724 -0
  126. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  127. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +1 -1
  128. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  129. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  130. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +53 -12
  131. package/artifacts/contracts/shared/Proxy.sol/ProxyDeployer.dbg.json +4 -0
  132. package/artifacts/contracts/shared/Proxy.sol/ProxyDeployer.json +248 -0
  133. package/artifacts/contracts/shared/Proxy.sol/ProxyWithProxyAdminGetter.dbg.json +4 -0
  134. package/artifacts/contracts/shared/Proxy.sol/ProxyWithProxyAdminGetter.json +129 -0
  135. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  136. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  137. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +87 -0
  138. package/artifacts/contracts/shared/VersionableUpgradeable.sol/VersionableUpgradeable.dbg.json +4 -0
  139. package/artifacts/contracts/shared/VersionableUpgradeable.sol/VersionableUpgradeable.json +228 -0
  140. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +4 -0
  141. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +405 -0
  142. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  143. package/artifacts/contracts/test/TestFee.sol/TestFee.json +2 -2
  144. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +1 -1
  145. package/artifacts/contracts/test/TestPool.sol/TestPool.json +194 -3
  146. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +1 -1
  147. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +209 -27
  148. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  149. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +2 -2
  150. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  151. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +38 -4
  152. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  153. package/artifacts/contracts/test/TestService.sol/TestService.json +95 -8
  154. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  155. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  156. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  157. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  158. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +95 -8
  159. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  160. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  161. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  162. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  163. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  164. package/artifacts/contracts/types/Fee.sol/FeeLib.json +50 -11
  165. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
  166. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +111 -0
  167. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  168. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +65 -4
  169. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  170. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
  171. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  172. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  173. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +4 -0
  174. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +99 -0
  175. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  176. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  177. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
  178. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +30 -0
  179. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  180. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  181. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  182. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +1 -1
  183. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  184. package/artifacts/contracts/types/Version.sol/VersionLib.json +40 -2
  185. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  186. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
  187. package/contracts/components/BaseComponent.sol +7 -2
  188. package/contracts/components/Distribution.sol +132 -0
  189. package/contracts/components/IDistributionComponent.sol +47 -0
  190. package/contracts/components/IPoolComponent.sol +14 -0
  191. package/contracts/components/IProductComponent.sol +24 -5
  192. package/contracts/components/Pool.sol +64 -3
  193. package/contracts/components/Product.sol +123 -13
  194. package/contracts/instance/IInstance.sol +14 -14
  195. package/contracts/instance/Instance.sol +20 -12
  196. package/contracts/instance/{service → base}/ComponentServiceBase.sol +1 -0
  197. package/contracts/instance/base/IInstanceBase.sol +22 -0
  198. package/contracts/instance/base/IKeyValueStore.sol +50 -0
  199. package/contracts/instance/base/ILifecycle.sol +30 -0
  200. package/contracts/instance/{InstanceBase.sol → base/InstanceBase.sol} +33 -13
  201. package/contracts/instance/base/KeyValueStore.sol +161 -0
  202. package/contracts/instance/{module/lifecycle/LifecycleModule.sol → base/Lifecycle.sol} +50 -39
  203. package/contracts/instance/base/ModuleBase.sol +57 -0
  204. package/contracts/instance/{service → base}/ServiceBase.sol +0 -2
  205. package/contracts/instance/module/access/Access.sol +6 -6
  206. package/contracts/instance/module/bundle/BundleModule.sol +24 -118
  207. package/contracts/instance/module/bundle/IBundle.sol +9 -9
  208. package/contracts/instance/module/component/ComponentModule.sol +27 -60
  209. package/contracts/instance/module/component/IComponent.sol +5 -30
  210. package/contracts/instance/module/distribution/DistributionModule.sol +17 -0
  211. package/contracts/instance/module/distribution/IDistribution.sol +10 -0
  212. package/contracts/instance/module/policy/IPolicy.sol +12 -9
  213. package/contracts/instance/module/policy/PolicyModule.sol +33 -26
  214. package/contracts/instance/module/pool/IPoolModule.sol +0 -1
  215. package/contracts/instance/module/pool/PoolModule.sol +12 -9
  216. package/contracts/instance/module/risk/IRisk.sol +18 -2
  217. package/contracts/instance/module/risk/RiskModule.sol +56 -2
  218. package/contracts/instance/module/treasury/ITreasury.sol +29 -50
  219. package/contracts/instance/module/treasury/TreasuryModule.sol +71 -85
  220. package/contracts/instance/service/ComponentOwnerService.sol +30 -44
  221. package/contracts/instance/service/DistributionService.sol +59 -0
  222. package/contracts/instance/service/IComponentOwnerService.sol +1 -1
  223. package/contracts/instance/service/IDistributionService.sol +12 -0
  224. package/contracts/instance/service/IPoolService.sol +8 -1
  225. package/contracts/instance/service/IProductService.sol +56 -7
  226. package/contracts/instance/service/PoolService.sol +31 -5
  227. package/contracts/instance/service/ProductService.sol +231 -77
  228. package/contracts/registry/Registry.sol +4 -4
  229. package/contracts/registry/RegistryUpgradeable.sol +473 -0
  230. package/contracts/shared/IVersionable.sol +17 -4
  231. package/contracts/shared/Proxy.sol +94 -0
  232. package/contracts/shared/Versionable.sol +13 -3
  233. package/contracts/shared/VersionableUpgradeable.sol +133 -0
  234. package/contracts/test/TestDistribution.sol +21 -0
  235. package/contracts/test/TestPool.sol +5 -2
  236. package/contracts/test/TestProduct.sol +35 -7
  237. package/contracts/test/TestRoleId.sol +2 -2
  238. package/contracts/test/TestService.sol +1 -1
  239. package/contracts/types/Fee.sol +8 -3
  240. package/contracts/types/Key32.sol +45 -0
  241. package/contracts/types/NftId.sol +16 -1
  242. package/contracts/types/ObjectType.sol +24 -8
  243. package/contracts/types/ReferralId.sol +48 -0
  244. package/contracts/types/RiskId.sol +43 -0
  245. package/contracts/types/RoleId.sol +12 -10
  246. package/contracts/types/StateId.sol +7 -1
  247. package/contracts/types/Version.sol +8 -0
  248. package/package.json +1 -1
  249. package/artifacts/contracts/instance/IServiceLinked.sol/IServiceLinked.dbg.json +0 -4
  250. package/artifacts/contracts/instance/IServiceLinked.sol/IServiceLinked.json +0 -50
  251. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  252. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +0 -4
  253. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +0 -10
  254. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +0 -4
  255. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +0 -4
  256. package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycle.dbg.json +0 -4
  257. package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycle.json +0 -134
  258. package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycleModule.dbg.json +0 -4
  259. package/artifacts/contracts/instance/module/lifecycle/LifecycleModule.sol/LifecycleModule.dbg.json +0 -4
  260. package/artifacts/contracts/instance/module/lifecycle/LifecycleModule.sol/LifecycleModule.json +0 -221
  261. package/artifacts/contracts/instance/service/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  262. package/artifacts/contracts/instance/service/IService.sol/IService.dbg.json +0 -4
  263. package/artifacts/contracts/instance/service/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  264. package/contracts/instance/IServiceLinked.sol +0 -12
  265. package/contracts/instance/module/compensation/CompensationModule.sol +0 -8
  266. package/contracts/instance/module/compensation/ICompensation.sol +0 -10
  267. package/contracts/instance/module/lifecycle/ILifecycle.sol +0 -47
  268. /package/contracts/instance/{service → base}/IService.sol +0 -0
@@ -3,48 +3,6 @@
3
3
  "contractName": "IInstance",
4
4
  "sourceName": "contracts/instance/IInstance.sol",
5
5
  "abi": [
6
- {
7
- "inputs": [
8
- {
9
- "internalType": "NftId",
10
- "name": "nftId",
11
- "type": "uint96"
12
- },
13
- {
14
- "internalType": "ObjectType",
15
- "name": "objectType",
16
- "type": "uint8"
17
- },
18
- {
19
- "internalType": "StateId",
20
- "name": "fromStateId",
21
- "type": "uint8"
22
- },
23
- {
24
- "internalType": "StateId",
25
- "name": "toStateId",
26
- "type": "uint8"
27
- }
28
- ],
29
- "name": "ErrorInvalidStateTransition",
30
- "type": "error"
31
- },
32
- {
33
- "inputs": [
34
- {
35
- "internalType": "NftId",
36
- "name": "nftId",
37
- "type": "uint96"
38
- },
39
- {
40
- "internalType": "ObjectType",
41
- "name": "objectType",
42
- "type": "uint8"
43
- }
44
- ],
45
- "name": "ErrorNoLifecycle",
46
- "type": "error"
47
- },
48
6
  {
49
7
  "anonymous": false,
50
8
  "inputs": [
@@ -108,87 +66,6 @@
108
66
  "name": "LogAccessRoleStateSet",
109
67
  "type": "event"
110
68
  },
111
- {
112
- "anonymous": false,
113
- "inputs": [
114
- {
115
- "indexed": false,
116
- "internalType": "NftId",
117
- "name": "nftId",
118
- "type": "uint96"
119
- },
120
- {
121
- "indexed": false,
122
- "internalType": "StateId",
123
- "name": "fromStateId",
124
- "type": "uint8"
125
- },
126
- {
127
- "indexed": false,
128
- "internalType": "StateId",
129
- "name": "toStateId",
130
- "type": "uint8"
131
- }
132
- ],
133
- "name": "LogBundleStateChanged",
134
- "type": "event"
135
- },
136
- {
137
- "anonymous": false,
138
- "inputs": [
139
- {
140
- "indexed": false,
141
- "internalType": "NftId",
142
- "name": "nftId",
143
- "type": "uint96"
144
- },
145
- {
146
- "indexed": false,
147
- "internalType": "ObjectType",
148
- "name": "objectType",
149
- "type": "uint8"
150
- },
151
- {
152
- "indexed": false,
153
- "internalType": "StateId",
154
- "name": "fromStateId",
155
- "type": "uint8"
156
- },
157
- {
158
- "indexed": false,
159
- "internalType": "StateId",
160
- "name": "toStateId",
161
- "type": "uint8"
162
- }
163
- ],
164
- "name": "LogComponentStateChanged",
165
- "type": "event"
166
- },
167
- {
168
- "anonymous": false,
169
- "inputs": [
170
- {
171
- "indexed": false,
172
- "internalType": "NftId",
173
- "name": "nftId",
174
- "type": "uint96"
175
- },
176
- {
177
- "indexed": false,
178
- "internalType": "StateId",
179
- "name": "fromStateId",
180
- "type": "uint8"
181
- },
182
- {
183
- "indexed": false,
184
- "internalType": "StateId",
185
- "name": "toStateId",
186
- "type": "uint8"
187
- }
188
- ],
189
- "name": "LogPolicyStateChanged",
190
- "type": "event"
191
- },
192
69
  {
193
70
  "anonymous": false,
194
71
  "inputs": [
@@ -214,24 +91,6 @@
214
91
  "name": "LogVersionableActivated",
215
92
  "type": "event"
216
93
  },
217
- {
218
- "inputs": [
219
- {
220
- "internalType": "address",
221
- "name": "implementation",
222
- "type": "address"
223
- },
224
- {
225
- "internalType": "address",
226
- "name": "activatedBy",
227
- "type": "address"
228
- }
229
- ],
230
- "name": "activate",
231
- "outputs": [],
232
- "stateMutability": "nonpayable",
233
- "type": "function"
234
- },
235
94
  {
236
95
  "inputs": [
237
96
  {
@@ -323,22 +182,34 @@
323
182
  "inputs": [
324
183
  {
325
184
  "internalType": "NftId",
326
- "name": "productNftId",
185
+ "name": "bundleNftId",
327
186
  "type": "uint96"
328
187
  },
329
188
  {
330
189
  "internalType": "NftId",
331
- "name": "policyNftId",
190
+ "name": "poolNftId",
332
191
  "type": "uint96"
333
192
  },
334
193
  {
335
- "internalType": "uint256",
336
- "name": "sumInsuredAmount",
337
- "type": "uint256"
194
+ "components": [
195
+ {
196
+ "internalType": "UFixed",
197
+ "name": "fractionalFee",
198
+ "type": "uint256"
199
+ },
200
+ {
201
+ "internalType": "uint256",
202
+ "name": "fixedFee",
203
+ "type": "uint256"
204
+ }
205
+ ],
206
+ "internalType": "struct Fee",
207
+ "name": "fee",
208
+ "type": "tuple"
338
209
  },
339
210
  {
340
211
  "internalType": "uint256",
341
- "name": "premiumAmount",
212
+ "name": "amount",
342
213
  "type": "uint256"
343
214
  },
344
215
  {
@@ -347,12 +218,12 @@
347
218
  "type": "uint256"
348
219
  },
349
220
  {
350
- "internalType": "NftId",
351
- "name": "bundleNftId",
352
- "type": "uint96"
221
+ "internalType": "bytes",
222
+ "name": "filter",
223
+ "type": "bytes"
353
224
  }
354
225
  ],
355
- "name": "createApplication",
226
+ "name": "createBundleInfo",
356
227
  "outputs": [],
357
228
  "stateMutability": "nonpayable",
358
229
  "type": "function"
@@ -361,17 +232,32 @@
361
232
  "inputs": [
362
233
  {
363
234
  "internalType": "NftId",
364
- "name": "bundleNftId",
235
+ "name": "policyNftId",
365
236
  "type": "uint96"
366
237
  },
367
238
  {
368
239
  "internalType": "NftId",
369
- "name": "poolNftId",
240
+ "name": "productNftId",
370
241
  "type": "uint96"
371
242
  },
243
+ {
244
+ "internalType": "ReferralId",
245
+ "name": "referralId",
246
+ "type": "bytes8"
247
+ },
248
+ {
249
+ "internalType": "RiskId",
250
+ "name": "riskId",
251
+ "type": "bytes8"
252
+ },
372
253
  {
373
254
  "internalType": "uint256",
374
- "name": "amount",
255
+ "name": "sumInsuredAmount",
256
+ "type": "uint256"
257
+ },
258
+ {
259
+ "internalType": "uint256",
260
+ "name": "premiumAmount",
375
261
  "type": "uint256"
376
262
  },
377
263
  {
@@ -379,13 +265,36 @@
379
265
  "name": "lifetime",
380
266
  "type": "uint256"
381
267
  },
268
+ {
269
+ "internalType": "NftId",
270
+ "name": "bundleNftId",
271
+ "type": "uint96"
272
+ }
273
+ ],
274
+ "name": "createPolicyInfo",
275
+ "outputs": [],
276
+ "stateMutability": "nonpayable",
277
+ "type": "function"
278
+ },
279
+ {
280
+ "inputs": [
281
+ {
282
+ "internalType": "RiskId",
283
+ "name": "riskId",
284
+ "type": "bytes8"
285
+ },
286
+ {
287
+ "internalType": "NftId",
288
+ "name": "productNftId",
289
+ "type": "uint96"
290
+ },
382
291
  {
383
292
  "internalType": "bytes",
384
- "name": "filter",
293
+ "name": "data",
385
294
  "type": "bytes"
386
295
  }
387
296
  ],
388
- "name": "createBundleInfo",
297
+ "name": "createRisk",
389
298
  "outputs": [],
390
299
  "stateMutability": "nonpayable",
391
300
  "type": "function"
@@ -432,7 +341,7 @@
432
341
  "inputs": [
433
342
  {
434
343
  "internalType": "NftId",
435
- "name": "bundleNftId",
344
+ "name": "nftId",
436
345
  "type": "uint96"
437
346
  }
438
347
  ],
@@ -440,20 +349,27 @@
440
349
  "outputs": [
441
350
  {
442
351
  "components": [
443
- {
444
- "internalType": "NftId",
445
- "name": "nftId",
446
- "type": "uint96"
447
- },
448
352
  {
449
353
  "internalType": "NftId",
450
354
  "name": "poolNftId",
451
355
  "type": "uint96"
452
356
  },
453
357
  {
454
- "internalType": "StateId",
455
- "name": "state",
456
- "type": "uint8"
358
+ "components": [
359
+ {
360
+ "internalType": "UFixed",
361
+ "name": "fractionalFee",
362
+ "type": "uint256"
363
+ },
364
+ {
365
+ "internalType": "uint256",
366
+ "name": "fixedFee",
367
+ "type": "uint256"
368
+ }
369
+ ],
370
+ "internalType": "struct Fee",
371
+ "name": "fee",
372
+ "type": "tuple"
457
373
  },
458
374
  {
459
375
  "internalType": "bytes",
@@ -475,11 +391,6 @@
475
391
  "name": "balanceAmount",
476
392
  "type": "uint256"
477
393
  },
478
- {
479
- "internalType": "Timestamp",
480
- "name": "createdAt",
481
- "type": "uint40"
482
- },
483
394
  {
484
395
  "internalType": "Timestamp",
485
396
  "name": "expiredAt",
@@ -489,11 +400,6 @@
489
400
  "internalType": "Timestamp",
490
401
  "name": "closedAt",
491
402
  "type": "uint40"
492
- },
493
- {
494
- "internalType": "Blocknumber",
495
- "name": "updatedIn",
496
- "type": "uint32"
497
403
  }
498
404
  ],
499
405
  "internalType": "struct IBundle.BundleInfo",
@@ -560,6 +466,19 @@
560
466
  "stateMutability": "view",
561
467
  "type": "function"
562
468
  },
469
+ {
470
+ "inputs": [],
471
+ "name": "getComponentOwnerService",
472
+ "outputs": [
473
+ {
474
+ "internalType": "contract IComponentOwnerService",
475
+ "name": "",
476
+ "type": "address"
477
+ }
478
+ ],
479
+ "stateMutability": "view",
480
+ "type": "function"
481
+ },
563
482
  {
564
483
  "inputs": [
565
484
  {
@@ -568,41 +487,30 @@
568
487
  "type": "uint96"
569
488
  }
570
489
  ],
571
- "name": "getComponentInfo",
490
+ "name": "getComponentToken",
572
491
  "outputs": [
573
492
  {
574
- "components": [
575
- {
576
- "internalType": "NftId",
577
- "name": "nftId",
578
- "type": "uint96"
579
- },
580
- {
581
- "internalType": "StateId",
582
- "name": "state",
583
- "type": "uint8"
584
- },
585
- {
586
- "internalType": "contract IERC20Metadata",
587
- "name": "token",
588
- "type": "address"
589
- }
590
- ],
591
- "internalType": "struct IComponent.ComponentInfo",
592
- "name": "info",
593
- "type": "tuple"
493
+ "internalType": "contract IERC20Metadata",
494
+ "name": "token",
495
+ "type": "address"
594
496
  }
595
497
  ],
596
498
  "stateMutability": "view",
597
499
  "type": "function"
598
500
  },
599
501
  {
600
- "inputs": [],
601
- "name": "getComponentOwnerService",
502
+ "inputs": [
503
+ {
504
+ "internalType": "NftId",
505
+ "name": "nftId",
506
+ "type": "uint96"
507
+ }
508
+ ],
509
+ "name": "getComponentWallet",
602
510
  "outputs": [
603
511
  {
604
- "internalType": "contract IComponentOwnerService",
605
- "name": "",
512
+ "internalType": "address",
513
+ "name": "wallet",
606
514
  "type": "address"
607
515
  }
608
516
  ],
@@ -622,6 +530,19 @@
622
530
  "stateMutability": "view",
623
531
  "type": "function"
624
532
  },
533
+ {
534
+ "inputs": [],
535
+ "name": "getDistributionService",
536
+ "outputs": [
537
+ {
538
+ "internalType": "contract IDistributionService",
539
+ "name": "",
540
+ "type": "address"
541
+ }
542
+ ],
543
+ "stateMutability": "view",
544
+ "type": "function"
545
+ },
625
546
  {
626
547
  "inputs": [
627
548
  {
@@ -659,19 +580,26 @@
659
580
  "type": "function"
660
581
  },
661
582
  {
662
- "inputs": [
583
+ "inputs": [],
584
+ "name": "getInitializedVersion",
585
+ "outputs": [
663
586
  {
664
- "internalType": "ObjectType",
665
- "name": "objectType",
666
- "type": "uint8"
587
+ "internalType": "uint64",
588
+ "name": "",
589
+ "type": "uint64"
667
590
  }
668
591
  ],
669
- "name": "getInitialState",
592
+ "stateMutability": "view",
593
+ "type": "function"
594
+ },
595
+ {
596
+ "inputs": [],
597
+ "name": "getKeyValueStore",
670
598
  "outputs": [
671
599
  {
672
- "internalType": "StateId",
673
- "name": "",
674
- "type": "uint8"
600
+ "internalType": "contract IKeyValueStore",
601
+ "name": "keyValueStore",
602
+ "type": "address"
675
603
  }
676
604
  ],
677
605
  "stateMutability": "view",
@@ -728,11 +656,6 @@
728
656
  "outputs": [
729
657
  {
730
658
  "components": [
731
- {
732
- "internalType": "NftId",
733
- "name": "nftId",
734
- "type": "uint96"
735
- },
736
659
  {
737
660
  "internalType": "NftId",
738
661
  "name": "productNftId",
@@ -743,15 +666,20 @@
743
666
  "name": "bundleNftId",
744
667
  "type": "uint96"
745
668
  },
669
+ {
670
+ "internalType": "ReferralId",
671
+ "name": "referralId",
672
+ "type": "bytes8"
673
+ },
746
674
  {
747
675
  "internalType": "address",
748
676
  "name": "beneficiary",
749
677
  "type": "address"
750
678
  },
751
679
  {
752
- "internalType": "StateId",
753
- "name": "state",
754
- "type": "uint8"
680
+ "internalType": "RiskId",
681
+ "name": "riskId",
682
+ "type": "bytes8"
755
683
  },
756
684
  {
757
685
  "internalType": "uint256",
@@ -775,13 +703,13 @@
775
703
  },
776
704
  {
777
705
  "internalType": "bytes",
778
- "name": "data",
706
+ "name": "applicationData",
779
707
  "type": "bytes"
780
708
  },
781
709
  {
782
- "internalType": "Timestamp",
783
- "name": "createdAt",
784
- "type": "uint40"
710
+ "internalType": "bytes",
711
+ "name": "policyData",
712
+ "type": "bytes"
785
713
  },
786
714
  {
787
715
  "internalType": "Timestamp",
@@ -797,11 +725,6 @@
797
725
  "internalType": "Timestamp",
798
726
  "name": "closedAt",
799
727
  "type": "uint40"
800
- },
801
- {
802
- "internalType": "Blocknumber",
803
- "name": "updatedIn",
804
- "type": "uint32"
805
728
  }
806
729
  ],
807
730
  "internalType": "struct IPolicy.PolicyInfo",
@@ -824,11 +747,6 @@
824
747
  "outputs": [
825
748
  {
826
749
  "components": [
827
- {
828
- "internalType": "NftId",
829
- "name": "nftId",
830
- "type": "uint96"
831
- },
832
750
  {
833
751
  "internalType": "bool",
834
752
  "name": "isVerifying",
@@ -865,62 +783,16 @@
865
783
  "inputs": [
866
784
  {
867
785
  "internalType": "NftId",
868
- "name": "poolNftId",
786
+ "name": "componentNftId",
869
787
  "type": "uint96"
870
788
  }
871
789
  ],
872
- "name": "getPoolSetup",
790
+ "name": "getProductNftId",
873
791
  "outputs": [
874
792
  {
875
- "components": [
876
- {
877
- "internalType": "NftId",
878
- "name": "poolNftId",
879
- "type": "uint96"
880
- },
881
- {
882
- "internalType": "address",
883
- "name": "wallet",
884
- "type": "address"
885
- },
886
- {
887
- "components": [
888
- {
889
- "internalType": "UFixed",
890
- "name": "fractionalFee",
891
- "type": "uint256"
892
- },
893
- {
894
- "internalType": "uint256",
895
- "name": "fixedFee",
896
- "type": "uint256"
897
- }
898
- ],
899
- "internalType": "struct Fee",
900
- "name": "stakingFee",
901
- "type": "tuple"
902
- },
903
- {
904
- "components": [
905
- {
906
- "internalType": "UFixed",
907
- "name": "fractionalFee",
908
- "type": "uint256"
909
- },
910
- {
911
- "internalType": "uint256",
912
- "name": "fixedFee",
913
- "type": "uint256"
914
- }
915
- ],
916
- "internalType": "struct Fee",
917
- "name": "performanceFee",
918
- "type": "tuple"
919
- }
920
- ],
921
- "internalType": "struct ITreasury.PoolSetup",
922
- "name": "setup",
923
- "type": "tuple"
793
+ "internalType": "NftId",
794
+ "name": "productNftId",
795
+ "type": "uint96"
924
796
  }
925
797
  ],
926
798
  "stateMutability": "view",
@@ -939,15 +811,28 @@
939
811
  "stateMutability": "view",
940
812
  "type": "function"
941
813
  },
814
+ {
815
+ "inputs": [],
816
+ "name": "getRegistry",
817
+ "outputs": [
818
+ {
819
+ "internalType": "contract IRegistry",
820
+ "name": "registry",
821
+ "type": "address"
822
+ }
823
+ ],
824
+ "stateMutability": "view",
825
+ "type": "function"
826
+ },
942
827
  {
943
828
  "inputs": [
944
829
  {
945
- "internalType": "NftId",
946
- "name": "productNftId",
947
- "type": "uint96"
830
+ "internalType": "RiskId",
831
+ "name": "riskId",
832
+ "type": "bytes8"
948
833
  }
949
834
  ],
950
- "name": "getProductSetup",
835
+ "name": "getRiskInfo",
951
836
  "outputs": [
952
837
  {
953
838
  "components": [
@@ -957,81 +842,19 @@
957
842
  "type": "uint96"
958
843
  },
959
844
  {
960
- "internalType": "NftId",
961
- "name": "distributorNftId",
962
- "type": "uint96"
963
- },
964
- {
965
- "internalType": "NftId",
966
- "name": "poolNftId",
967
- "type": "uint96"
968
- },
969
- {
970
- "internalType": "contract IERC20Metadata",
971
- "name": "token",
972
- "type": "address"
973
- },
974
- {
975
- "internalType": "address",
976
- "name": "wallet",
977
- "type": "address"
978
- },
979
- {
980
- "components": [
981
- {
982
- "internalType": "UFixed",
983
- "name": "fractionalFee",
984
- "type": "uint256"
985
- },
986
- {
987
- "internalType": "uint256",
988
- "name": "fixedFee",
989
- "type": "uint256"
990
- }
991
- ],
992
- "internalType": "struct Fee",
993
- "name": "policyFee",
994
- "type": "tuple"
995
- },
996
- {
997
- "components": [
998
- {
999
- "internalType": "UFixed",
1000
- "name": "fractionalFee",
1001
- "type": "uint256"
1002
- },
1003
- {
1004
- "internalType": "uint256",
1005
- "name": "fixedFee",
1006
- "type": "uint256"
1007
- }
1008
- ],
1009
- "internalType": "struct Fee",
1010
- "name": "processingFee",
1011
- "type": "tuple"
845
+ "internalType": "bytes",
846
+ "name": "data",
847
+ "type": "bytes"
1012
848
  }
1013
849
  ],
1014
- "internalType": "struct ITreasury.ProductSetup",
1015
- "name": "setup",
850
+ "internalType": "struct IRisk.RiskInfo",
851
+ "name": "info",
1016
852
  "type": "tuple"
1017
853
  }
1018
854
  ],
1019
855
  "stateMutability": "view",
1020
856
  "type": "function"
1021
857
  },
1022
- {
1023
- "inputs": [],
1024
- "name": "getRegistry",
1025
- "outputs": [
1026
- {
1027
- "internalType": "contract IRegistry",
1028
- "name": "registry",
1029
- "type": "address"
1030
- }
1031
- ],
1032
- "stateMutability": "view",
1033
- "type": "function"
1034
- },
1035
858
  {
1036
859
  "inputs": [
1037
860
  {
@@ -1165,82 +988,239 @@
1165
988
  {
1166
989
  "inputs": [
1167
990
  {
1168
- "internalType": "NftId",
1169
- "name": "componentNftId",
1170
- "type": "uint96"
1171
- }
1172
- ],
1173
- "name": "getTokenHandler",
1174
- "outputs": [
1175
- {
1176
- "internalType": "contract TokenHandler",
1177
- "name": "tokenHandler",
1178
- "type": "address"
991
+ "internalType": "Key32",
992
+ "name": "key",
993
+ "type": "bytes32"
1179
994
  }
1180
995
  ],
1181
- "stateMutability": "view",
1182
- "type": "function"
1183
- },
1184
- {
1185
- "inputs": [],
1186
- "name": "getType",
996
+ "name": "getState",
1187
997
  "outputs": [
1188
998
  {
1189
- "internalType": "ObjectType",
1190
- "name": "objectType",
999
+ "internalType": "StateId",
1000
+ "name": "state",
1191
1001
  "type": "uint8"
1192
1002
  }
1193
1003
  ],
1194
- "stateMutability": "pure",
1004
+ "stateMutability": "view",
1195
1005
  "type": "function"
1196
1006
  },
1197
1007
  {
1198
1008
  "inputs": [
1199
1009
  {
1200
- "internalType": "uint256",
1201
- "name": "a",
1202
- "type": "uint256"
1203
- },
1204
- {
1205
- "internalType": "int8",
1206
- "name": "exp",
1207
- "type": "int8"
1010
+ "internalType": "NftId",
1011
+ "name": "componentNftId",
1012
+ "type": "uint96"
1208
1013
  }
1209
1014
  ],
1210
- "name": "getUFixed",
1015
+ "name": "getTokenHandler",
1211
1016
  "outputs": [
1212
1017
  {
1213
- "internalType": "UFixed",
1214
- "name": "",
1215
- "type": "uint256"
1018
+ "internalType": "contract TokenHandler",
1019
+ "name": "tokenHandler",
1020
+ "type": "address"
1216
1021
  }
1217
1022
  ],
1218
- "stateMutability": "pure",
1023
+ "stateMutability": "view",
1219
1024
  "type": "function"
1220
1025
  },
1221
1026
  {
1222
1027
  "inputs": [
1223
1028
  {
1224
- "internalType": "uint256",
1225
- "name": "a",
1226
- "type": "uint256"
1029
+ "internalType": "NftId",
1030
+ "name": "productNftId",
1031
+ "type": "uint96"
1227
1032
  }
1228
1033
  ],
1229
- "name": "getUFixed",
1034
+ "name": "getTreasuryInfo",
1230
1035
  "outputs": [
1231
1036
  {
1232
- "internalType": "UFixed",
1233
- "name": "",
1234
- "type": "uint256"
1235
- }
1236
- ],
1237
- "stateMutability": "pure",
1238
- "type": "function"
1239
- },
1240
- {
1241
- "inputs": [],
1242
- "name": "getVersion",
1243
- "outputs": [
1037
+ "components": [
1038
+ {
1039
+ "internalType": "NftId",
1040
+ "name": "poolNftId",
1041
+ "type": "uint96"
1042
+ },
1043
+ {
1044
+ "internalType": "NftId",
1045
+ "name": "distributionNftId",
1046
+ "type": "uint96"
1047
+ },
1048
+ {
1049
+ "internalType": "contract IERC20Metadata",
1050
+ "name": "token",
1051
+ "type": "address"
1052
+ },
1053
+ {
1054
+ "components": [
1055
+ {
1056
+ "internalType": "UFixed",
1057
+ "name": "fractionalFee",
1058
+ "type": "uint256"
1059
+ },
1060
+ {
1061
+ "internalType": "uint256",
1062
+ "name": "fixedFee",
1063
+ "type": "uint256"
1064
+ }
1065
+ ],
1066
+ "internalType": "struct Fee",
1067
+ "name": "productFee",
1068
+ "type": "tuple"
1069
+ },
1070
+ {
1071
+ "components": [
1072
+ {
1073
+ "internalType": "UFixed",
1074
+ "name": "fractionalFee",
1075
+ "type": "uint256"
1076
+ },
1077
+ {
1078
+ "internalType": "uint256",
1079
+ "name": "fixedFee",
1080
+ "type": "uint256"
1081
+ }
1082
+ ],
1083
+ "internalType": "struct Fee",
1084
+ "name": "processingFee",
1085
+ "type": "tuple"
1086
+ },
1087
+ {
1088
+ "components": [
1089
+ {
1090
+ "internalType": "UFixed",
1091
+ "name": "fractionalFee",
1092
+ "type": "uint256"
1093
+ },
1094
+ {
1095
+ "internalType": "uint256",
1096
+ "name": "fixedFee",
1097
+ "type": "uint256"
1098
+ }
1099
+ ],
1100
+ "internalType": "struct Fee",
1101
+ "name": "poolFee",
1102
+ "type": "tuple"
1103
+ },
1104
+ {
1105
+ "components": [
1106
+ {
1107
+ "internalType": "UFixed",
1108
+ "name": "fractionalFee",
1109
+ "type": "uint256"
1110
+ },
1111
+ {
1112
+ "internalType": "uint256",
1113
+ "name": "fixedFee",
1114
+ "type": "uint256"
1115
+ }
1116
+ ],
1117
+ "internalType": "struct Fee",
1118
+ "name": "stakingFee",
1119
+ "type": "tuple"
1120
+ },
1121
+ {
1122
+ "components": [
1123
+ {
1124
+ "internalType": "UFixed",
1125
+ "name": "fractionalFee",
1126
+ "type": "uint256"
1127
+ },
1128
+ {
1129
+ "internalType": "uint256",
1130
+ "name": "fixedFee",
1131
+ "type": "uint256"
1132
+ }
1133
+ ],
1134
+ "internalType": "struct Fee",
1135
+ "name": "performanceFee",
1136
+ "type": "tuple"
1137
+ },
1138
+ {
1139
+ "components": [
1140
+ {
1141
+ "internalType": "UFixed",
1142
+ "name": "fractionalFee",
1143
+ "type": "uint256"
1144
+ },
1145
+ {
1146
+ "internalType": "uint256",
1147
+ "name": "fixedFee",
1148
+ "type": "uint256"
1149
+ }
1150
+ ],
1151
+ "internalType": "struct Fee",
1152
+ "name": "distributionFee",
1153
+ "type": "tuple"
1154
+ }
1155
+ ],
1156
+ "internalType": "struct ITreasury.TreasuryInfo",
1157
+ "name": "info",
1158
+ "type": "tuple"
1159
+ }
1160
+ ],
1161
+ "stateMutability": "view",
1162
+ "type": "function"
1163
+ },
1164
+ {
1165
+ "inputs": [],
1166
+ "name": "getType",
1167
+ "outputs": [
1168
+ {
1169
+ "internalType": "ObjectType",
1170
+ "name": "objectType",
1171
+ "type": "uint8"
1172
+ }
1173
+ ],
1174
+ "stateMutability": "pure",
1175
+ "type": "function"
1176
+ },
1177
+ {
1178
+ "inputs": [
1179
+ {
1180
+ "internalType": "uint256",
1181
+ "name": "a",
1182
+ "type": "uint256"
1183
+ },
1184
+ {
1185
+ "internalType": "int8",
1186
+ "name": "exp",
1187
+ "type": "int8"
1188
+ }
1189
+ ],
1190
+ "name": "getUFixed",
1191
+ "outputs": [
1192
+ {
1193
+ "internalType": "UFixed",
1194
+ "name": "",
1195
+ "type": "uint256"
1196
+ }
1197
+ ],
1198
+ "stateMutability": "pure",
1199
+ "type": "function"
1200
+ },
1201
+ {
1202
+ "inputs": [
1203
+ {
1204
+ "internalType": "uint256",
1205
+ "name": "a",
1206
+ "type": "uint256"
1207
+ }
1208
+ ],
1209
+ "name": "getUFixed",
1210
+ "outputs": [
1211
+ {
1212
+ "internalType": "UFixed",
1213
+ "name": "",
1214
+ "type": "uint256"
1215
+ }
1216
+ ],
1217
+ "stateMutability": "pure",
1218
+ "type": "function"
1219
+ },
1220
+ {
1221
+ "inputs": [],
1222
+ "name": "getVersion",
1223
+ "outputs": [
1244
1224
  {
1245
1225
  "internalType": "Version",
1246
1226
  "name": "",
@@ -1350,7 +1330,7 @@
1350
1330
  "type": "tuple"
1351
1331
  }
1352
1332
  ],
1353
- "stateMutability": "pure",
1333
+ "stateMutability": "view",
1354
1334
  "type": "function"
1355
1335
  },
1356
1336
  {
@@ -1388,7 +1368,7 @@
1388
1368
  "outputs": [
1389
1369
  {
1390
1370
  "internalType": "bool",
1391
- "name": "hasRole",
1371
+ "name": "",
1392
1372
  "type": "bool"
1393
1373
  }
1394
1374
  ],
@@ -1398,16 +1378,16 @@
1398
1378
  {
1399
1379
  "inputs": [
1400
1380
  {
1401
- "internalType": "Version",
1402
- "name": "version",
1403
- "type": "uint24"
1381
+ "internalType": "NftId",
1382
+ "name": "productNftId",
1383
+ "type": "uint96"
1404
1384
  }
1405
1385
  ],
1406
- "name": "isActivated",
1386
+ "name": "hasTreasuryInfo",
1407
1387
  "outputs": [
1408
1388
  {
1409
1389
  "internalType": "bool",
1410
- "name": "",
1390
+ "name": "hasInfo",
1411
1391
  "type": "bool"
1412
1392
  }
1413
1393
  ],
@@ -1417,22 +1397,35 @@
1417
1397
  {
1418
1398
  "inputs": [
1419
1399
  {
1420
- "internalType": "ObjectType",
1421
- "name": "objectType",
1422
- "type": "uint8"
1400
+ "internalType": "address",
1401
+ "name": "implementation",
1402
+ "type": "address"
1423
1403
  },
1424
1404
  {
1425
- "internalType": "StateId",
1426
- "name": "fromId",
1427
- "type": "uint8"
1405
+ "internalType": "address",
1406
+ "name": "activatedBy",
1407
+ "type": "address"
1428
1408
  },
1429
1409
  {
1430
- "internalType": "StateId",
1431
- "name": "toId",
1432
- "type": "uint8"
1410
+ "internalType": "bytes",
1411
+ "name": "activationData",
1412
+ "type": "bytes"
1433
1413
  }
1434
1414
  ],
1435
- "name": "isValidTransition",
1415
+ "name": "initialize",
1416
+ "outputs": [],
1417
+ "stateMutability": "nonpayable",
1418
+ "type": "function"
1419
+ },
1420
+ {
1421
+ "inputs": [
1422
+ {
1423
+ "internalType": "Version",
1424
+ "name": "version",
1425
+ "type": "uint24"
1426
+ }
1427
+ ],
1428
+ "name": "isActivated",
1436
1429
  "outputs": [
1437
1430
  {
1438
1431
  "internalType": "bool",
@@ -1463,15 +1456,15 @@
1463
1456
  "name": "nftId",
1464
1457
  "type": "uint96"
1465
1458
  },
1466
- {
1467
- "internalType": "ObjectType",
1468
- "name": "objectType",
1469
- "type": "uint8"
1470
- },
1471
1459
  {
1472
1460
  "internalType": "contract IERC20Metadata",
1473
1461
  "name": "token",
1474
1462
  "type": "address"
1463
+ },
1464
+ {
1465
+ "internalType": "address",
1466
+ "name": "wallet",
1467
+ "type": "address"
1475
1468
  }
1476
1469
  ],
1477
1470
  "name": "registerComponent",
@@ -1487,136 +1480,40 @@
1487
1480
  "type": "uint96"
1488
1481
  },
1489
1482
  {
1490
- "internalType": "address",
1491
- "name": "wallet",
1483
+ "internalType": "bool",
1484
+ "name": "isVerifying",
1485
+ "type": "bool"
1486
+ },
1487
+ {
1488
+ "internalType": "UFixed",
1489
+ "name": "collateralizationLevel",
1490
+ "type": "uint256"
1491
+ }
1492
+ ],
1493
+ "name": "registerPool",
1494
+ "outputs": [],
1495
+ "stateMutability": "nonpayable",
1496
+ "type": "function"
1497
+ },
1498
+ {
1499
+ "inputs": [
1500
+ {
1501
+ "internalType": "contract IProductComponent",
1502
+ "name": "product",
1492
1503
  "type": "address"
1493
1504
  },
1494
1505
  {
1495
- "components": [
1496
- {
1497
- "internalType": "UFixed",
1498
- "name": "fractionalFee",
1499
- "type": "uint256"
1500
- },
1501
- {
1502
- "internalType": "uint256",
1503
- "name": "fixedFee",
1504
- "type": "uint256"
1505
- }
1506
- ],
1507
- "internalType": "struct Fee",
1508
- "name": "stakingFee",
1509
- "type": "tuple"
1510
- },
1511
- {
1512
- "components": [
1513
- {
1514
- "internalType": "UFixed",
1515
- "name": "fractionalFee",
1516
- "type": "uint256"
1517
- },
1518
- {
1519
- "internalType": "uint256",
1520
- "name": "fixedFee",
1521
- "type": "uint256"
1522
- }
1523
- ],
1524
- "internalType": "struct Fee",
1525
- "name": "performanceFee",
1526
- "type": "tuple"
1527
- }
1528
- ],
1529
- "name": "registerPool",
1530
- "outputs": [],
1531
- "stateMutability": "nonpayable",
1532
- "type": "function"
1533
- },
1534
- {
1535
- "inputs": [
1536
- {
1537
- "internalType": "NftId",
1538
- "name": "poolNftId",
1539
- "type": "uint96"
1540
- },
1541
- {
1542
- "internalType": "bool",
1543
- "name": "isVerifying",
1544
- "type": "bool"
1545
- },
1546
- {
1547
- "internalType": "UFixed",
1548
- "name": "collateralizationLevel",
1549
- "type": "uint256"
1550
- }
1551
- ],
1552
- "name": "registerPool",
1553
- "outputs": [],
1554
- "stateMutability": "nonpayable",
1555
- "type": "function"
1556
- },
1557
- {
1558
- "inputs": [
1559
- {
1560
- "internalType": "NftId",
1561
- "name": "productNftId",
1562
- "type": "uint96"
1563
- },
1564
- {
1565
- "internalType": "NftId",
1566
- "name": "distributorNftId",
1567
- "type": "uint96"
1568
- },
1569
- {
1570
- "internalType": "NftId",
1571
- "name": "poolNftId",
1572
- "type": "uint96"
1573
- },
1574
- {
1575
- "internalType": "contract IERC20Metadata",
1576
- "name": "token",
1506
+ "internalType": "contract IPoolComponent",
1507
+ "name": "pool",
1577
1508
  "type": "address"
1578
1509
  },
1579
1510
  {
1580
- "internalType": "address",
1581
- "name": "wallet",
1511
+ "internalType": "contract IDistributionComponent",
1512
+ "name": "distribution",
1582
1513
  "type": "address"
1583
- },
1584
- {
1585
- "components": [
1586
- {
1587
- "internalType": "UFixed",
1588
- "name": "fractionalFee",
1589
- "type": "uint256"
1590
- },
1591
- {
1592
- "internalType": "uint256",
1593
- "name": "fixedFee",
1594
- "type": "uint256"
1595
- }
1596
- ],
1597
- "internalType": "struct Fee",
1598
- "name": "policyFee",
1599
- "type": "tuple"
1600
- },
1601
- {
1602
- "components": [
1603
- {
1604
- "internalType": "UFixed",
1605
- "name": "fractionalFee",
1606
- "type": "uint256"
1607
- },
1608
- {
1609
- "internalType": "uint256",
1610
- "name": "fixedFee",
1611
- "type": "uint256"
1612
- }
1613
- ],
1614
- "internalType": "struct Fee",
1615
- "name": "processingFee",
1616
- "type": "tuple"
1617
1514
  }
1618
1515
  ],
1619
- "name": "registerProduct",
1516
+ "name": "registerProductSetup",
1620
1517
  "outputs": [],
1621
1518
  "stateMutability": "nonpayable",
1622
1519
  "type": "function"
@@ -1684,22 +1581,34 @@
1684
1581
  },
1685
1582
  {
1686
1583
  "inputs": [
1584
+ {
1585
+ "internalType": "NftId",
1586
+ "name": "nftId",
1587
+ "type": "uint96"
1588
+ },
1687
1589
  {
1688
1590
  "components": [
1689
- {
1690
- "internalType": "NftId",
1691
- "name": "nftId",
1692
- "type": "uint96"
1693
- },
1694
1591
  {
1695
1592
  "internalType": "NftId",
1696
1593
  "name": "poolNftId",
1697
1594
  "type": "uint96"
1698
1595
  },
1699
1596
  {
1700
- "internalType": "StateId",
1701
- "name": "state",
1702
- "type": "uint8"
1597
+ "components": [
1598
+ {
1599
+ "internalType": "UFixed",
1600
+ "name": "fractionalFee",
1601
+ "type": "uint256"
1602
+ },
1603
+ {
1604
+ "internalType": "uint256",
1605
+ "name": "fixedFee",
1606
+ "type": "uint256"
1607
+ }
1608
+ ],
1609
+ "internalType": "struct Fee",
1610
+ "name": "fee",
1611
+ "type": "tuple"
1703
1612
  },
1704
1613
  {
1705
1614
  "internalType": "bytes",
@@ -1721,11 +1630,6 @@
1721
1630
  "name": "balanceAmount",
1722
1631
  "type": "uint256"
1723
1632
  },
1724
- {
1725
- "internalType": "Timestamp",
1726
- "name": "createdAt",
1727
- "type": "uint40"
1728
- },
1729
1633
  {
1730
1634
  "internalType": "Timestamp",
1731
1635
  "name": "expiredAt",
@@ -1735,11 +1639,6 @@
1735
1639
  "internalType": "Timestamp",
1736
1640
  "name": "closedAt",
1737
1641
  "type": "uint40"
1738
- },
1739
- {
1740
- "internalType": "Blocknumber",
1741
- "name": "updatedIn",
1742
- "type": "uint32"
1743
1642
  }
1744
1643
  ],
1745
1644
  "internalType": "struct IBundle.BundleInfo",
@@ -1754,49 +1653,13 @@
1754
1653
  },
1755
1654
  {
1756
1655
  "inputs": [
1757
- {
1758
- "components": [
1759
- {
1760
- "internalType": "NftId",
1761
- "name": "nftId",
1762
- "type": "uint96"
1763
- },
1764
- {
1765
- "internalType": "StateId",
1766
- "name": "state",
1767
- "type": "uint8"
1768
- },
1769
- {
1770
- "internalType": "contract IERC20Metadata",
1771
- "name": "token",
1772
- "type": "address"
1773
- }
1774
- ],
1775
- "internalType": "struct IComponent.ComponentInfo",
1776
- "name": "info",
1777
- "type": "tuple"
1778
- }
1779
- ],
1780
- "name": "setComponentInfo",
1781
- "outputs": [
1782
1656
  {
1783
1657
  "internalType": "NftId",
1784
- "name": "componentNftId",
1658
+ "name": "policyNftId",
1785
1659
  "type": "uint96"
1786
- }
1787
- ],
1788
- "stateMutability": "nonpayable",
1789
- "type": "function"
1790
- },
1791
- {
1792
- "inputs": [
1660
+ },
1793
1661
  {
1794
1662
  "components": [
1795
- {
1796
- "internalType": "NftId",
1797
- "name": "nftId",
1798
- "type": "uint96"
1799
- },
1800
1663
  {
1801
1664
  "internalType": "NftId",
1802
1665
  "name": "productNftId",
@@ -1807,15 +1670,20 @@
1807
1670
  "name": "bundleNftId",
1808
1671
  "type": "uint96"
1809
1672
  },
1673
+ {
1674
+ "internalType": "ReferralId",
1675
+ "name": "referralId",
1676
+ "type": "bytes8"
1677
+ },
1810
1678
  {
1811
1679
  "internalType": "address",
1812
1680
  "name": "beneficiary",
1813
1681
  "type": "address"
1814
1682
  },
1815
1683
  {
1816
- "internalType": "StateId",
1817
- "name": "state",
1818
- "type": "uint8"
1684
+ "internalType": "RiskId",
1685
+ "name": "riskId",
1686
+ "type": "bytes8"
1819
1687
  },
1820
1688
  {
1821
1689
  "internalType": "uint256",
@@ -1839,13 +1707,13 @@
1839
1707
  },
1840
1708
  {
1841
1709
  "internalType": "bytes",
1842
- "name": "data",
1710
+ "name": "applicationData",
1843
1711
  "type": "bytes"
1844
1712
  },
1845
1713
  {
1846
- "internalType": "Timestamp",
1847
- "name": "createdAt",
1848
- "type": "uint40"
1714
+ "internalType": "bytes",
1715
+ "name": "policyData",
1716
+ "type": "bytes"
1849
1717
  },
1850
1718
  {
1851
1719
  "internalType": "Timestamp",
@@ -1861,15 +1729,10 @@
1861
1729
  "internalType": "Timestamp",
1862
1730
  "name": "closedAt",
1863
1731
  "type": "uint40"
1864
- },
1865
- {
1866
- "internalType": "Blocknumber",
1867
- "name": "updatedIn",
1868
- "type": "uint32"
1869
1732
  }
1870
1733
  ],
1871
1734
  "internalType": "struct IPolicy.PolicyInfo",
1872
- "name": "policyInfo",
1735
+ "name": "info",
1873
1736
  "type": "tuple"
1874
1737
  }
1875
1738
  ],
@@ -1881,46 +1744,47 @@
1881
1744
  {
1882
1745
  "inputs": [
1883
1746
  {
1884
- "internalType": "NftId",
1885
- "name": "poolNftId",
1886
- "type": "uint96"
1747
+ "internalType": "RiskId",
1748
+ "name": "riskId",
1749
+ "type": "bytes8"
1887
1750
  },
1888
1751
  {
1889
1752
  "components": [
1890
1753
  {
1891
- "internalType": "UFixed",
1892
- "name": "fractionalFee",
1893
- "type": "uint256"
1754
+ "internalType": "NftId",
1755
+ "name": "productNftId",
1756
+ "type": "uint96"
1894
1757
  },
1895
1758
  {
1896
- "internalType": "uint256",
1897
- "name": "fixedFee",
1898
- "type": "uint256"
1759
+ "internalType": "bytes",
1760
+ "name": "data",
1761
+ "type": "bytes"
1899
1762
  }
1900
1763
  ],
1901
- "internalType": "struct Fee",
1902
- "name": "stakingFee",
1764
+ "internalType": "struct IRisk.RiskInfo",
1765
+ "name": "info",
1903
1766
  "type": "tuple"
1767
+ }
1768
+ ],
1769
+ "name": "setRiskInfo",
1770
+ "outputs": [],
1771
+ "stateMutability": "nonpayable",
1772
+ "type": "function"
1773
+ },
1774
+ {
1775
+ "inputs": [
1776
+ {
1777
+ "internalType": "RoleId",
1778
+ "name": "role",
1779
+ "type": "bytes8"
1904
1780
  },
1905
1781
  {
1906
- "components": [
1907
- {
1908
- "internalType": "UFixed",
1909
- "name": "fractionalFee",
1910
- "type": "uint256"
1911
- },
1912
- {
1913
- "internalType": "uint256",
1914
- "name": "fixedFee",
1915
- "type": "uint256"
1916
- }
1917
- ],
1918
- "internalType": "struct Fee",
1919
- "name": "performanceFee",
1920
- "type": "tuple"
1782
+ "internalType": "bool",
1783
+ "name": "active",
1784
+ "type": "bool"
1921
1785
  }
1922
1786
  ],
1923
- "name": "setPoolFees",
1787
+ "name": "setRoleState",
1924
1788
  "outputs": [],
1925
1789
  "stateMutability": "nonpayable",
1926
1790
  "type": "function"
@@ -1935,39 +1799,129 @@
1935
1799
  {
1936
1800
  "components": [
1937
1801
  {
1938
- "internalType": "UFixed",
1939
- "name": "fractionalFee",
1940
- "type": "uint256"
1802
+ "internalType": "NftId",
1803
+ "name": "poolNftId",
1804
+ "type": "uint96"
1941
1805
  },
1942
1806
  {
1943
- "internalType": "uint256",
1944
- "name": "fixedFee",
1945
- "type": "uint256"
1946
- }
1947
- ],
1948
- "internalType": "struct Fee",
1949
- "name": "policyFee",
1950
- "type": "tuple"
1951
- },
1952
- {
1953
- "components": [
1807
+ "internalType": "NftId",
1808
+ "name": "distributionNftId",
1809
+ "type": "uint96"
1810
+ },
1954
1811
  {
1955
- "internalType": "UFixed",
1956
- "name": "fractionalFee",
1957
- "type": "uint256"
1812
+ "internalType": "contract IERC20Metadata",
1813
+ "name": "token",
1814
+ "type": "address"
1958
1815
  },
1959
1816
  {
1960
- "internalType": "uint256",
1961
- "name": "fixedFee",
1962
- "type": "uint256"
1817
+ "components": [
1818
+ {
1819
+ "internalType": "UFixed",
1820
+ "name": "fractionalFee",
1821
+ "type": "uint256"
1822
+ },
1823
+ {
1824
+ "internalType": "uint256",
1825
+ "name": "fixedFee",
1826
+ "type": "uint256"
1827
+ }
1828
+ ],
1829
+ "internalType": "struct Fee",
1830
+ "name": "productFee",
1831
+ "type": "tuple"
1832
+ },
1833
+ {
1834
+ "components": [
1835
+ {
1836
+ "internalType": "UFixed",
1837
+ "name": "fractionalFee",
1838
+ "type": "uint256"
1839
+ },
1840
+ {
1841
+ "internalType": "uint256",
1842
+ "name": "fixedFee",
1843
+ "type": "uint256"
1844
+ }
1845
+ ],
1846
+ "internalType": "struct Fee",
1847
+ "name": "processingFee",
1848
+ "type": "tuple"
1849
+ },
1850
+ {
1851
+ "components": [
1852
+ {
1853
+ "internalType": "UFixed",
1854
+ "name": "fractionalFee",
1855
+ "type": "uint256"
1856
+ },
1857
+ {
1858
+ "internalType": "uint256",
1859
+ "name": "fixedFee",
1860
+ "type": "uint256"
1861
+ }
1862
+ ],
1863
+ "internalType": "struct Fee",
1864
+ "name": "poolFee",
1865
+ "type": "tuple"
1866
+ },
1867
+ {
1868
+ "components": [
1869
+ {
1870
+ "internalType": "UFixed",
1871
+ "name": "fractionalFee",
1872
+ "type": "uint256"
1873
+ },
1874
+ {
1875
+ "internalType": "uint256",
1876
+ "name": "fixedFee",
1877
+ "type": "uint256"
1878
+ }
1879
+ ],
1880
+ "internalType": "struct Fee",
1881
+ "name": "stakingFee",
1882
+ "type": "tuple"
1883
+ },
1884
+ {
1885
+ "components": [
1886
+ {
1887
+ "internalType": "UFixed",
1888
+ "name": "fractionalFee",
1889
+ "type": "uint256"
1890
+ },
1891
+ {
1892
+ "internalType": "uint256",
1893
+ "name": "fixedFee",
1894
+ "type": "uint256"
1895
+ }
1896
+ ],
1897
+ "internalType": "struct Fee",
1898
+ "name": "performanceFee",
1899
+ "type": "tuple"
1900
+ },
1901
+ {
1902
+ "components": [
1903
+ {
1904
+ "internalType": "UFixed",
1905
+ "name": "fractionalFee",
1906
+ "type": "uint256"
1907
+ },
1908
+ {
1909
+ "internalType": "uint256",
1910
+ "name": "fixedFee",
1911
+ "type": "uint256"
1912
+ }
1913
+ ],
1914
+ "internalType": "struct Fee",
1915
+ "name": "distributionFee",
1916
+ "type": "tuple"
1963
1917
  }
1964
1918
  ],
1965
- "internalType": "struct Fee",
1966
- "name": "processingFee",
1919
+ "internalType": "struct ITreasury.TreasuryInfo",
1920
+ "name": "info",
1967
1921
  "type": "tuple"
1968
1922
  }
1969
1923
  ],
1970
- "name": "setProductFees",
1924
+ "name": "setTreasuryInfo",
1971
1925
  "outputs": [],
1972
1926
  "stateMutability": "nonpayable",
1973
1927
  "type": "function"
@@ -1975,17 +1929,36 @@
1975
1929
  {
1976
1930
  "inputs": [
1977
1931
  {
1978
- "internalType": "RoleId",
1979
- "name": "role",
1980
- "type": "bytes8"
1981
- },
1932
+ "internalType": "bytes4",
1933
+ "name": "interfaceId",
1934
+ "type": "bytes4"
1935
+ }
1936
+ ],
1937
+ "name": "supportsInterface",
1938
+ "outputs": [
1982
1939
  {
1983
1940
  "internalType": "bool",
1984
- "name": "active",
1941
+ "name": "",
1985
1942
  "type": "bool"
1986
1943
  }
1987
1944
  ],
1988
- "name": "setRoleState",
1945
+ "stateMutability": "view",
1946
+ "type": "function"
1947
+ },
1948
+ {
1949
+ "inputs": [
1950
+ {
1951
+ "internalType": "NftId",
1952
+ "name": "nftId",
1953
+ "type": "uint96"
1954
+ },
1955
+ {
1956
+ "internalType": "StateId",
1957
+ "name": "state",
1958
+ "type": "uint8"
1959
+ }
1960
+ ],
1961
+ "name": "updateBundleState",
1989
1962
  "outputs": [],
1990
1963
  "stateMutability": "nonpayable",
1991
1964
  "type": "function"
@@ -1993,20 +1966,78 @@
1993
1966
  {
1994
1967
  "inputs": [
1995
1968
  {
1996
- "internalType": "bytes4",
1997
- "name": "interfaceId",
1998
- "type": "bytes4"
1969
+ "internalType": "NftId",
1970
+ "name": "nftId",
1971
+ "type": "uint96"
1972
+ },
1973
+ {
1974
+ "internalType": "StateId",
1975
+ "name": "state",
1976
+ "type": "uint8"
1999
1977
  }
2000
1978
  ],
2001
- "name": "supportsInterface",
2002
- "outputs": [
1979
+ "name": "updatePolicyState",
1980
+ "outputs": [],
1981
+ "stateMutability": "nonpayable",
1982
+ "type": "function"
1983
+ },
1984
+ {
1985
+ "inputs": [
2003
1986
  {
2004
- "internalType": "bool",
2005
- "name": "",
2006
- "type": "bool"
1987
+ "internalType": "RiskId",
1988
+ "name": "riskId",
1989
+ "type": "bytes8"
1990
+ },
1991
+ {
1992
+ "internalType": "StateId",
1993
+ "name": "state",
1994
+ "type": "uint8"
2007
1995
  }
2008
1996
  ],
2009
- "stateMutability": "view",
1997
+ "name": "updateRiskState",
1998
+ "outputs": [],
1999
+ "stateMutability": "nonpayable",
2000
+ "type": "function"
2001
+ },
2002
+ {
2003
+ "inputs": [
2004
+ {
2005
+ "internalType": "Key32",
2006
+ "name": "key",
2007
+ "type": "bytes32"
2008
+ },
2009
+ {
2010
+ "internalType": "StateId",
2011
+ "name": "state",
2012
+ "type": "uint8"
2013
+ }
2014
+ ],
2015
+ "name": "updateState",
2016
+ "outputs": [],
2017
+ "stateMutability": "nonpayable",
2018
+ "type": "function"
2019
+ },
2020
+ {
2021
+ "inputs": [
2022
+ {
2023
+ "internalType": "address",
2024
+ "name": "implementation",
2025
+ "type": "address"
2026
+ },
2027
+ {
2028
+ "internalType": "address",
2029
+ "name": "activatedBy",
2030
+ "type": "address"
2031
+ },
2032
+ {
2033
+ "internalType": "bytes",
2034
+ "name": "upgradeData",
2035
+ "type": "bytes"
2036
+ }
2037
+ ],
2038
+ "name": "upgrade",
2039
+ "outputs": [],
2040
+ "stateMutability": "nonpayable",
2010
2041
  "type": "function"
2011
2042
  }
2012
2043
  ],