@etherisc/gif-next 0.0.2-b9e9dc3-713 → 0.0.2-bb7b80e-316

Sign up to get free protection for your applications and to get access to all the features.
Files changed (271) hide show
  1. package/README.md +67 -1
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
  3. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +179 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +166 -90
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  7. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +141 -0
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +28 -2
  11. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +5 -5
  13. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  14. package/artifacts/contracts/components/Pool.sol/Pool.json +198 -119
  15. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  16. package/artifacts/contracts/components/Product.sol/Product.json +178 -146
  17. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +1 -1
  18. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +1 -1
  20. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  22. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  24. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  32. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
  36. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  37. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
  38. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  39. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  40. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  41. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  42. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  43. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +788 -0
  44. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  45. package/artifacts/contracts/instance/{AccessManagedSimple.sol/AccessManagedSimple.json → Cloneable.sol/Cloneable.json} +86 -2
  46. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  47. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1478 -28
  48. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  49. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +448 -0
  50. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  51. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +162 -13
  52. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  53. package/artifacts/contracts/instance/Instance.sol/Instance.json +175 -625
  54. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  55. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +244 -114
  56. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +4 -0
  57. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +763 -0
  58. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  59. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +202 -37
  60. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  61. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +308 -48
  62. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  63. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +57 -21
  64. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  65. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +285 -0
  66. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
  67. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +60 -9
  68. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  69. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -13
  70. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  71. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  72. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  73. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +2 -2
  74. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  75. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +2 -2
  76. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  77. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +59 -16
  78. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  79. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  80. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  81. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  82. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  83. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  84. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  85. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1031 -0
  86. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  87. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +436 -0
  88. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  89. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +693 -0
  90. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  91. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +420 -0
  92. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  93. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +720 -0
  94. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  95. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +13 -13
  96. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  97. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +771 -0
  98. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  99. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +15 -77
  100. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  101. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +25 -240
  102. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  103. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1156 -0
  104. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  105. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +492 -0
  106. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  107. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +727 -0
  108. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  109. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +420 -0
  110. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  111. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +777 -0
  112. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  113. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +420 -0
  114. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  115. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +2 -2
  116. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  117. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +263 -63
  118. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  119. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +187 -83
  120. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  121. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  122. package/artifacts/contracts/registry/Registry.sol/Registry.json +233 -192
  123. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  124. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  125. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  126. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +31 -97
  127. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  128. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +38 -91
  129. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  130. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +530 -0
  131. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  132. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +397 -0
  133. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  134. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  135. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  136. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  137. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  138. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  139. package/artifacts/contracts/{instance/base → shared}/IService.sol/IService.json +14 -14
  140. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  141. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  142. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +2 -2
  143. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  144. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +2 -2
  145. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  146. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +4 -4
  147. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +4 -0
  148. package/artifacts/contracts/{instance/service/IComponentOwnerService.sol/IComponentOwnerService.json → shared/RegisterableUpgradable.sol/RegisterableUpgradable.json} +57 -81
  149. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  150. package/artifacts/contracts/{instance/base/ServiceBase.sol/ServiceBase.json → shared/Service.sol/Service.json} +15 -15
  151. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  152. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  153. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  154. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  155. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  156. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  157. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +4 -4
  158. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  159. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  160. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  161. package/artifacts/contracts/test/TestService.sol/TestService.json +31 -31
  162. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  163. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  164. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  165. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  166. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +2 -2
  167. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  168. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  169. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  170. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  171. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  172. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  173. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  174. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  175. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  176. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  177. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  178. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  179. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  180. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  181. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  182. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  183. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  184. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  185. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  186. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  187. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  188. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  189. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  190. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  191. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  192. package/contracts/components/BaseComponent.sol +99 -17
  193. package/contracts/components/Distribution.sol +15 -27
  194. package/contracts/components/IBaseComponent.sol +12 -1
  195. package/contracts/components/IDistributionComponent.sol +1 -0
  196. package/contracts/components/IPoolComponent.sol +5 -1
  197. package/contracts/components/IProductComponent.sol +2 -2
  198. package/contracts/components/Pool.sol +45 -46
  199. package/contracts/components/Product.sol +56 -58
  200. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +23 -0
  201. package/contracts/instance/BundleManager.sol +129 -0
  202. package/contracts/instance/Cloneable.sol +46 -0
  203. package/contracts/instance/IInstance.sol +41 -9
  204. package/contracts/instance/IInstanceBase.sol +25 -0
  205. package/contracts/instance/IInstanceService.sol +30 -7
  206. package/contracts/instance/Instance.sol +62 -236
  207. package/contracts/instance/InstanceAccessManager.sol +93 -78
  208. package/contracts/instance/InstanceBase.sol +39 -0
  209. package/contracts/instance/InstanceReader.sol +36 -1
  210. package/contracts/instance/InstanceService.sol +295 -52
  211. package/contracts/instance/InstanceServiceManager.sol +10 -12
  212. package/contracts/instance/ObjectManager.sol +101 -0
  213. package/contracts/instance/base/ComponentServiceBase.sol +49 -22
  214. package/contracts/instance/base/IInstanceBase.sol +0 -2
  215. package/contracts/instance/module/IAccess.sol +27 -17
  216. package/contracts/instance/module/IBundle.sol +1 -0
  217. package/contracts/instance/module/ISetup.sol +3 -0
  218. package/contracts/instance/service/BundleService.sol +294 -0
  219. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  220. package/contracts/instance/service/DistributionService.sol +120 -0
  221. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  222. package/contracts/instance/service/IBundleService.sol +44 -0
  223. package/contracts/instance/service/IDistributionService.sol +1 -1
  224. package/contracts/instance/service/IPolicyService.sol +94 -0
  225. package/contracts/instance/service/IPoolService.sol +7 -24
  226. package/contracts/instance/service/IProductService.sol +7 -74
  227. package/contracts/instance/service/PolicyService.sol +539 -0
  228. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  229. package/contracts/instance/service/PoolService.sol +145 -0
  230. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  231. package/contracts/instance/service/ProductService.sol +213 -0
  232. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  233. package/contracts/registry/ChainNft.sol +1 -1
  234. package/contracts/registry/IRegistry.sol +40 -6
  235. package/contracts/registry/IRegistryService.sol +53 -30
  236. package/contracts/registry/Registry.sol +172 -199
  237. package/contracts/registry/RegistryAccessManager.sol +210 -0
  238. package/contracts/registry/RegistryService.sol +88 -208
  239. package/contracts/registry/RegistryServiceManager.sol +20 -22
  240. package/contracts/registry/ReleaseManager.sol +342 -0
  241. package/contracts/registry/TokenRegistry.sol +110 -0
  242. package/contracts/shared/ERC165.sol +6 -2
  243. package/contracts/shared/IService.sol +16 -0
  244. package/contracts/shared/NftOwnable.sol +2 -4
  245. package/contracts/shared/ProxyManager.sol +1 -1
  246. package/contracts/shared/Registerable.sol +1 -0
  247. package/contracts/shared/RegisterableUpgradable.sol +16 -0
  248. package/contracts/shared/Service.sol +58 -0
  249. package/contracts/test/TestService.sol +6 -7
  250. package/contracts/types/NftIdSet.sol +26 -24
  251. package/contracts/types/RoleId.sol +14 -6
  252. package/contracts/types/StateId.sol +4 -0
  253. package/contracts/types/Version.sol +4 -1
  254. package/package.json +1 -1
  255. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
  256. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
  257. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1119
  258. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
  259. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
  260. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  261. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  262. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  263. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -827
  264. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  265. package/contracts/instance/AccessManagedSimple.sol +0 -114
  266. package/contracts/instance/AccessManagerSimple.sol +0 -682
  267. package/contracts/instance/IAccessManagerSimple.sol +0 -391
  268. package/contracts/instance/base/IService.sol +0 -15
  269. package/contracts/instance/base/ServiceBase.sol +0 -44
  270. package/contracts/instance/service/ComponentOwnerService.sol +0 -317
  271. package/contracts/instance/service/IComponentOwnerService.sol +0 -20
@@ -3,6 +3,1241 @@
3
3
  "contractName": "IInstance",
4
4
  "sourceName": "contracts/instance/IInstance.sol",
5
5
  "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "authority",
11
+ "type": "address"
12
+ }
13
+ ],
14
+ "name": "AccessManagedInvalidAuthority",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
19
+ {
20
+ "internalType": "address",
21
+ "name": "caller",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "internalType": "uint32",
26
+ "name": "delay",
27
+ "type": "uint32"
28
+ }
29
+ ],
30
+ "name": "AccessManagedRequiredDelay",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "address",
37
+ "name": "caller",
38
+ "type": "address"
39
+ }
40
+ ],
41
+ "name": "AccessManagedUnauthorized",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "ObjectType",
48
+ "name": "objectType",
49
+ "type": "uint8"
50
+ },
51
+ {
52
+ "internalType": "StateId",
53
+ "name": "fromStateId",
54
+ "type": "uint8"
55
+ },
56
+ {
57
+ "internalType": "StateId",
58
+ "name": "toStateId",
59
+ "type": "uint8"
60
+ }
61
+ ],
62
+ "name": "ErrorInvalidStateTransition",
63
+ "type": "error"
64
+ },
65
+ {
66
+ "inputs": [
67
+ {
68
+ "internalType": "NftId",
69
+ "name": "nftId",
70
+ "type": "uint96"
71
+ },
72
+ {
73
+ "internalType": "ObjectType",
74
+ "name": "objectType",
75
+ "type": "uint8"
76
+ }
77
+ ],
78
+ "name": "ErrorNoLifecycle",
79
+ "type": "error"
80
+ },
81
+ {
82
+ "anonymous": false,
83
+ "inputs": [
84
+ {
85
+ "indexed": false,
86
+ "internalType": "address",
87
+ "name": "authority",
88
+ "type": "address"
89
+ }
90
+ ],
91
+ "name": "AuthorityUpdated",
92
+ "type": "event"
93
+ },
94
+ {
95
+ "anonymous": false,
96
+ "inputs": [
97
+ {
98
+ "indexed": false,
99
+ "internalType": "ObjectType",
100
+ "name": "objectType",
101
+ "type": "uint8"
102
+ },
103
+ {
104
+ "indexed": false,
105
+ "internalType": "KeyId",
106
+ "name": "keyId",
107
+ "type": "bytes31"
108
+ },
109
+ {
110
+ "indexed": false,
111
+ "internalType": "StateId",
112
+ "name": "state",
113
+ "type": "uint8"
114
+ },
115
+ {
116
+ "indexed": false,
117
+ "internalType": "address",
118
+ "name": "createdBy",
119
+ "type": "address"
120
+ },
121
+ {
122
+ "indexed": false,
123
+ "internalType": "address",
124
+ "name": "txOrigin",
125
+ "type": "address"
126
+ }
127
+ ],
128
+ "name": "LogInfoCreated",
129
+ "type": "event"
130
+ },
131
+ {
132
+ "anonymous": false,
133
+ "inputs": [
134
+ {
135
+ "indexed": false,
136
+ "internalType": "ObjectType",
137
+ "name": "objectType",
138
+ "type": "uint8"
139
+ },
140
+ {
141
+ "indexed": false,
142
+ "internalType": "KeyId",
143
+ "name": "keyId",
144
+ "type": "bytes31"
145
+ },
146
+ {
147
+ "indexed": false,
148
+ "internalType": "StateId",
149
+ "name": "state",
150
+ "type": "uint8"
151
+ },
152
+ {
153
+ "indexed": false,
154
+ "internalType": "address",
155
+ "name": "updatedBy",
156
+ "type": "address"
157
+ },
158
+ {
159
+ "indexed": false,
160
+ "internalType": "address",
161
+ "name": "txOrigin",
162
+ "type": "address"
163
+ },
164
+ {
165
+ "indexed": false,
166
+ "internalType": "Blocknumber",
167
+ "name": "lastUpdatedIn",
168
+ "type": "uint32"
169
+ }
170
+ ],
171
+ "name": "LogInfoUpdated",
172
+ "type": "event"
173
+ },
174
+ {
175
+ "anonymous": false,
176
+ "inputs": [
177
+ {
178
+ "indexed": false,
179
+ "internalType": "ObjectType",
180
+ "name": "objectType",
181
+ "type": "uint8"
182
+ },
183
+ {
184
+ "indexed": false,
185
+ "internalType": "KeyId",
186
+ "name": "keyId",
187
+ "type": "bytes31"
188
+ },
189
+ {
190
+ "indexed": false,
191
+ "internalType": "StateId",
192
+ "name": "stateOld",
193
+ "type": "uint8"
194
+ },
195
+ {
196
+ "indexed": false,
197
+ "internalType": "StateId",
198
+ "name": "stateNew",
199
+ "type": "uint8"
200
+ },
201
+ {
202
+ "indexed": false,
203
+ "internalType": "address",
204
+ "name": "updatedBy",
205
+ "type": "address"
206
+ },
207
+ {
208
+ "indexed": false,
209
+ "internalType": "address",
210
+ "name": "txOrigin",
211
+ "type": "address"
212
+ },
213
+ {
214
+ "indexed": false,
215
+ "internalType": "Blocknumber",
216
+ "name": "lastUpdatedIn",
217
+ "type": "uint32"
218
+ }
219
+ ],
220
+ "name": "LogStateUpdated",
221
+ "type": "event"
222
+ },
223
+ {
224
+ "inputs": [],
225
+ "name": "authority",
226
+ "outputs": [
227
+ {
228
+ "internalType": "address",
229
+ "name": "",
230
+ "type": "address"
231
+ }
232
+ ],
233
+ "stateMutability": "view",
234
+ "type": "function"
235
+ },
236
+ {
237
+ "inputs": [
238
+ {
239
+ "internalType": "NftId",
240
+ "name": "bundleNftId",
241
+ "type": "uint96"
242
+ },
243
+ {
244
+ "components": [
245
+ {
246
+ "internalType": "NftId",
247
+ "name": "poolNftId",
248
+ "type": "uint96"
249
+ },
250
+ {
251
+ "components": [
252
+ {
253
+ "internalType": "UFixed",
254
+ "name": "fractionalFee",
255
+ "type": "uint256"
256
+ },
257
+ {
258
+ "internalType": "uint256",
259
+ "name": "fixedFee",
260
+ "type": "uint256"
261
+ }
262
+ ],
263
+ "internalType": "struct Fee",
264
+ "name": "fee",
265
+ "type": "tuple"
266
+ },
267
+ {
268
+ "internalType": "bytes",
269
+ "name": "filter",
270
+ "type": "bytes"
271
+ },
272
+ {
273
+ "internalType": "uint256",
274
+ "name": "capitalAmount",
275
+ "type": "uint256"
276
+ },
277
+ {
278
+ "internalType": "uint256",
279
+ "name": "lockedAmount",
280
+ "type": "uint256"
281
+ },
282
+ {
283
+ "internalType": "uint256",
284
+ "name": "balanceAmount",
285
+ "type": "uint256"
286
+ },
287
+ {
288
+ "internalType": "uint256",
289
+ "name": "lifetime",
290
+ "type": "uint256"
291
+ },
292
+ {
293
+ "internalType": "Timestamp",
294
+ "name": "expiredAt",
295
+ "type": "uint40"
296
+ },
297
+ {
298
+ "internalType": "Timestamp",
299
+ "name": "closedAt",
300
+ "type": "uint40"
301
+ }
302
+ ],
303
+ "internalType": "struct IBundle.BundleInfo",
304
+ "name": "bundle",
305
+ "type": "tuple"
306
+ }
307
+ ],
308
+ "name": "createBundle",
309
+ "outputs": [],
310
+ "stateMutability": "nonpayable",
311
+ "type": "function"
312
+ },
313
+ {
314
+ "inputs": [
315
+ {
316
+ "internalType": "NftId",
317
+ "name": "distributionNftId",
318
+ "type": "uint96"
319
+ },
320
+ {
321
+ "components": [
322
+ {
323
+ "internalType": "NftId",
324
+ "name": "productNftId",
325
+ "type": "uint96"
326
+ },
327
+ {
328
+ "internalType": "contract TokenHandler",
329
+ "name": "tokenHandler",
330
+ "type": "address"
331
+ },
332
+ {
333
+ "components": [
334
+ {
335
+ "internalType": "UFixed",
336
+ "name": "fractionalFee",
337
+ "type": "uint256"
338
+ },
339
+ {
340
+ "internalType": "uint256",
341
+ "name": "fixedFee",
342
+ "type": "uint256"
343
+ }
344
+ ],
345
+ "internalType": "struct Fee",
346
+ "name": "distributionFee",
347
+ "type": "tuple"
348
+ },
349
+ {
350
+ "internalType": "bool",
351
+ "name": "isIntercepting",
352
+ "type": "bool"
353
+ },
354
+ {
355
+ "internalType": "address",
356
+ "name": "wallet",
357
+ "type": "address"
358
+ }
359
+ ],
360
+ "internalType": "struct ISetup.DistributionSetupInfo",
361
+ "name": "setup",
362
+ "type": "tuple"
363
+ }
364
+ ],
365
+ "name": "createDistributionSetup",
366
+ "outputs": [],
367
+ "stateMutability": "nonpayable",
368
+ "type": "function"
369
+ },
370
+ {
371
+ "inputs": [
372
+ {
373
+ "internalType": "NftId",
374
+ "name": "policyNftId",
375
+ "type": "uint96"
376
+ },
377
+ {
378
+ "components": [
379
+ {
380
+ "internalType": "NftId",
381
+ "name": "productNftId",
382
+ "type": "uint96"
383
+ },
384
+ {
385
+ "internalType": "NftId",
386
+ "name": "bundleNftId",
387
+ "type": "uint96"
388
+ },
389
+ {
390
+ "internalType": "ReferralId",
391
+ "name": "referralId",
392
+ "type": "bytes8"
393
+ },
394
+ {
395
+ "internalType": "RiskId",
396
+ "name": "riskId",
397
+ "type": "bytes8"
398
+ },
399
+ {
400
+ "internalType": "uint256",
401
+ "name": "sumInsuredAmount",
402
+ "type": "uint256"
403
+ },
404
+ {
405
+ "internalType": "uint256",
406
+ "name": "premiumAmount",
407
+ "type": "uint256"
408
+ },
409
+ {
410
+ "internalType": "uint256",
411
+ "name": "premiumPaidAmount",
412
+ "type": "uint256"
413
+ },
414
+ {
415
+ "internalType": "uint256",
416
+ "name": "lifetime",
417
+ "type": "uint256"
418
+ },
419
+ {
420
+ "internalType": "bytes",
421
+ "name": "applicationData",
422
+ "type": "bytes"
423
+ },
424
+ {
425
+ "internalType": "bytes",
426
+ "name": "policyData",
427
+ "type": "bytes"
428
+ },
429
+ {
430
+ "internalType": "uint16",
431
+ "name": "claimsCount",
432
+ "type": "uint16"
433
+ },
434
+ {
435
+ "internalType": "uint16",
436
+ "name": "openClaimsCount",
437
+ "type": "uint16"
438
+ },
439
+ {
440
+ "internalType": "uint256",
441
+ "name": "payoutAmount",
442
+ "type": "uint256"
443
+ },
444
+ {
445
+ "internalType": "Timestamp",
446
+ "name": "activatedAt",
447
+ "type": "uint40"
448
+ },
449
+ {
450
+ "internalType": "Timestamp",
451
+ "name": "expiredAt",
452
+ "type": "uint40"
453
+ },
454
+ {
455
+ "internalType": "Timestamp",
456
+ "name": "closedAt",
457
+ "type": "uint40"
458
+ }
459
+ ],
460
+ "internalType": "struct IPolicy.PolicyInfo",
461
+ "name": "policy",
462
+ "type": "tuple"
463
+ }
464
+ ],
465
+ "name": "createPolicy",
466
+ "outputs": [],
467
+ "stateMutability": "nonpayable",
468
+ "type": "function"
469
+ },
470
+ {
471
+ "inputs": [
472
+ {
473
+ "internalType": "NftId",
474
+ "name": "poolNftId",
475
+ "type": "uint96"
476
+ },
477
+ {
478
+ "components": [
479
+ {
480
+ "internalType": "NftId",
481
+ "name": "productNftId",
482
+ "type": "uint96"
483
+ },
484
+ {
485
+ "internalType": "contract TokenHandler",
486
+ "name": "tokenHandler",
487
+ "type": "address"
488
+ },
489
+ {
490
+ "internalType": "UFixed",
491
+ "name": "collateralizationLevel",
492
+ "type": "uint256"
493
+ },
494
+ {
495
+ "components": [
496
+ {
497
+ "internalType": "UFixed",
498
+ "name": "fractionalFee",
499
+ "type": "uint256"
500
+ },
501
+ {
502
+ "internalType": "uint256",
503
+ "name": "fixedFee",
504
+ "type": "uint256"
505
+ }
506
+ ],
507
+ "internalType": "struct Fee",
508
+ "name": "poolFee",
509
+ "type": "tuple"
510
+ },
511
+ {
512
+ "components": [
513
+ {
514
+ "internalType": "UFixed",
515
+ "name": "fractionalFee",
516
+ "type": "uint256"
517
+ },
518
+ {
519
+ "internalType": "uint256",
520
+ "name": "fixedFee",
521
+ "type": "uint256"
522
+ }
523
+ ],
524
+ "internalType": "struct Fee",
525
+ "name": "stakingFee",
526
+ "type": "tuple"
527
+ },
528
+ {
529
+ "components": [
530
+ {
531
+ "internalType": "UFixed",
532
+ "name": "fractionalFee",
533
+ "type": "uint256"
534
+ },
535
+ {
536
+ "internalType": "uint256",
537
+ "name": "fixedFee",
538
+ "type": "uint256"
539
+ }
540
+ ],
541
+ "internalType": "struct Fee",
542
+ "name": "performanceFee",
543
+ "type": "tuple"
544
+ },
545
+ {
546
+ "internalType": "bool",
547
+ "name": "isIntercepting",
548
+ "type": "bool"
549
+ },
550
+ {
551
+ "internalType": "bool",
552
+ "name": "isConfirmingApplication",
553
+ "type": "bool"
554
+ },
555
+ {
556
+ "internalType": "address",
557
+ "name": "wallet",
558
+ "type": "address"
559
+ }
560
+ ],
561
+ "internalType": "struct ISetup.PoolSetupInfo",
562
+ "name": "setup",
563
+ "type": "tuple"
564
+ }
565
+ ],
566
+ "name": "createPoolSetup",
567
+ "outputs": [],
568
+ "stateMutability": "nonpayable",
569
+ "type": "function"
570
+ },
571
+ {
572
+ "inputs": [
573
+ {
574
+ "internalType": "NftId",
575
+ "name": "productNftId",
576
+ "type": "uint96"
577
+ },
578
+ {
579
+ "components": [
580
+ {
581
+ "internalType": "contract IERC20Metadata",
582
+ "name": "token",
583
+ "type": "address"
584
+ },
585
+ {
586
+ "internalType": "contract TokenHandler",
587
+ "name": "tokenHandler",
588
+ "type": "address"
589
+ },
590
+ {
591
+ "internalType": "NftId",
592
+ "name": "distributionNftId",
593
+ "type": "uint96"
594
+ },
595
+ {
596
+ "internalType": "NftId",
597
+ "name": "poolNftId",
598
+ "type": "uint96"
599
+ },
600
+ {
601
+ "components": [
602
+ {
603
+ "internalType": "UFixed",
604
+ "name": "fractionalFee",
605
+ "type": "uint256"
606
+ },
607
+ {
608
+ "internalType": "uint256",
609
+ "name": "fixedFee",
610
+ "type": "uint256"
611
+ }
612
+ ],
613
+ "internalType": "struct Fee",
614
+ "name": "distributionFee",
615
+ "type": "tuple"
616
+ },
617
+ {
618
+ "components": [
619
+ {
620
+ "internalType": "UFixed",
621
+ "name": "fractionalFee",
622
+ "type": "uint256"
623
+ },
624
+ {
625
+ "internalType": "uint256",
626
+ "name": "fixedFee",
627
+ "type": "uint256"
628
+ }
629
+ ],
630
+ "internalType": "struct Fee",
631
+ "name": "productFee",
632
+ "type": "tuple"
633
+ },
634
+ {
635
+ "components": [
636
+ {
637
+ "internalType": "UFixed",
638
+ "name": "fractionalFee",
639
+ "type": "uint256"
640
+ },
641
+ {
642
+ "internalType": "uint256",
643
+ "name": "fixedFee",
644
+ "type": "uint256"
645
+ }
646
+ ],
647
+ "internalType": "struct Fee",
648
+ "name": "processingFee",
649
+ "type": "tuple"
650
+ },
651
+ {
652
+ "components": [
653
+ {
654
+ "internalType": "UFixed",
655
+ "name": "fractionalFee",
656
+ "type": "uint256"
657
+ },
658
+ {
659
+ "internalType": "uint256",
660
+ "name": "fixedFee",
661
+ "type": "uint256"
662
+ }
663
+ ],
664
+ "internalType": "struct Fee",
665
+ "name": "poolFee",
666
+ "type": "tuple"
667
+ },
668
+ {
669
+ "components": [
670
+ {
671
+ "internalType": "UFixed",
672
+ "name": "fractionalFee",
673
+ "type": "uint256"
674
+ },
675
+ {
676
+ "internalType": "uint256",
677
+ "name": "fixedFee",
678
+ "type": "uint256"
679
+ }
680
+ ],
681
+ "internalType": "struct Fee",
682
+ "name": "stakingFee",
683
+ "type": "tuple"
684
+ },
685
+ {
686
+ "components": [
687
+ {
688
+ "internalType": "UFixed",
689
+ "name": "fractionalFee",
690
+ "type": "uint256"
691
+ },
692
+ {
693
+ "internalType": "uint256",
694
+ "name": "fixedFee",
695
+ "type": "uint256"
696
+ }
697
+ ],
698
+ "internalType": "struct Fee",
699
+ "name": "performanceFee",
700
+ "type": "tuple"
701
+ },
702
+ {
703
+ "internalType": "bool",
704
+ "name": "isIntercepting",
705
+ "type": "bool"
706
+ },
707
+ {
708
+ "internalType": "address",
709
+ "name": "wallet",
710
+ "type": "address"
711
+ }
712
+ ],
713
+ "internalType": "struct ISetup.ProductSetupInfo",
714
+ "name": "setup",
715
+ "type": "tuple"
716
+ }
717
+ ],
718
+ "name": "createProductSetup",
719
+ "outputs": [],
720
+ "stateMutability": "nonpayable",
721
+ "type": "function"
722
+ },
723
+ {
724
+ "inputs": [
725
+ {
726
+ "internalType": "RiskId",
727
+ "name": "riskId",
728
+ "type": "bytes8"
729
+ },
730
+ {
731
+ "components": [
732
+ {
733
+ "internalType": "NftId",
734
+ "name": "productNftId",
735
+ "type": "uint96"
736
+ },
737
+ {
738
+ "internalType": "bytes",
739
+ "name": "data",
740
+ "type": "bytes"
741
+ }
742
+ ],
743
+ "internalType": "struct IRisk.RiskInfo",
744
+ "name": "risk",
745
+ "type": "tuple"
746
+ }
747
+ ],
748
+ "name": "createRisk",
749
+ "outputs": [],
750
+ "stateMutability": "nonpayable",
751
+ "type": "function"
752
+ },
753
+ {
754
+ "inputs": [
755
+ {
756
+ "internalType": "Key32",
757
+ "name": "key",
758
+ "type": "bytes32"
759
+ }
760
+ ],
761
+ "name": "exists",
762
+ "outputs": [
763
+ {
764
+ "internalType": "bool",
765
+ "name": "",
766
+ "type": "bool"
767
+ }
768
+ ],
769
+ "stateMutability": "view",
770
+ "type": "function"
771
+ },
772
+ {
773
+ "inputs": [
774
+ {
775
+ "internalType": "Key32",
776
+ "name": "key",
777
+ "type": "bytes32"
778
+ }
779
+ ],
780
+ "name": "get",
781
+ "outputs": [
782
+ {
783
+ "components": [
784
+ {
785
+ "components": [
786
+ {
787
+ "internalType": "ObjectType",
788
+ "name": "objectType",
789
+ "type": "uint8"
790
+ },
791
+ {
792
+ "internalType": "StateId",
793
+ "name": "state",
794
+ "type": "uint8"
795
+ },
796
+ {
797
+ "internalType": "address",
798
+ "name": "updatedBy",
799
+ "type": "address"
800
+ },
801
+ {
802
+ "internalType": "Blocknumber",
803
+ "name": "updatedIn",
804
+ "type": "uint32"
805
+ },
806
+ {
807
+ "internalType": "Blocknumber",
808
+ "name": "createdIn",
809
+ "type": "uint32"
810
+ }
811
+ ],
812
+ "internalType": "struct IKeyValueStore.Metadata",
813
+ "name": "metadata",
814
+ "type": "tuple"
815
+ },
816
+ {
817
+ "internalType": "bytes",
818
+ "name": "data",
819
+ "type": "bytes"
820
+ }
821
+ ],
822
+ "internalType": "struct IKeyValueStore.Value",
823
+ "name": "value",
824
+ "type": "tuple"
825
+ }
826
+ ],
827
+ "stateMutability": "view",
828
+ "type": "function"
829
+ },
830
+ {
831
+ "inputs": [],
832
+ "name": "getBundleManager",
833
+ "outputs": [
834
+ {
835
+ "internalType": "contract BundleManager",
836
+ "name": "",
837
+ "type": "address"
838
+ }
839
+ ],
840
+ "stateMutability": "view",
841
+ "type": "function"
842
+ },
843
+ {
844
+ "inputs": [],
845
+ "name": "getBundleService",
846
+ "outputs": [
847
+ {
848
+ "internalType": "contract IBundleService",
849
+ "name": "",
850
+ "type": "address"
851
+ }
852
+ ],
853
+ "stateMutability": "view",
854
+ "type": "function"
855
+ },
856
+ {
857
+ "inputs": [
858
+ {
859
+ "internalType": "Key32",
860
+ "name": "key",
861
+ "type": "bytes32"
862
+ }
863
+ ],
864
+ "name": "getData",
865
+ "outputs": [
866
+ {
867
+ "internalType": "bytes",
868
+ "name": "data",
869
+ "type": "bytes"
870
+ }
871
+ ],
872
+ "stateMutability": "view",
873
+ "type": "function"
874
+ },
875
+ {
876
+ "inputs": [],
877
+ "name": "getDistributionService",
878
+ "outputs": [
879
+ {
880
+ "internalType": "contract IDistributionService",
881
+ "name": "",
882
+ "type": "address"
883
+ }
884
+ ],
885
+ "stateMutability": "view",
886
+ "type": "function"
887
+ },
888
+ {
889
+ "inputs": [
890
+ {
891
+ "internalType": "ObjectType",
892
+ "name": "objectType",
893
+ "type": "uint8"
894
+ }
895
+ ],
896
+ "name": "getInitialState",
897
+ "outputs": [
898
+ {
899
+ "internalType": "StateId",
900
+ "name": "",
901
+ "type": "uint8"
902
+ }
903
+ ],
904
+ "stateMutability": "view",
905
+ "type": "function"
906
+ },
907
+ {
908
+ "inputs": [],
909
+ "name": "getInstanceReader",
910
+ "outputs": [
911
+ {
912
+ "internalType": "contract InstanceReader",
913
+ "name": "",
914
+ "type": "address"
915
+ }
916
+ ],
917
+ "stateMutability": "view",
918
+ "type": "function"
919
+ },
920
+ {
921
+ "inputs": [
922
+ {
923
+ "internalType": "Key32",
924
+ "name": "key",
925
+ "type": "bytes32"
926
+ }
927
+ ],
928
+ "name": "getMetadata",
929
+ "outputs": [
930
+ {
931
+ "components": [
932
+ {
933
+ "internalType": "ObjectType",
934
+ "name": "objectType",
935
+ "type": "uint8"
936
+ },
937
+ {
938
+ "internalType": "StateId",
939
+ "name": "state",
940
+ "type": "uint8"
941
+ },
942
+ {
943
+ "internalType": "address",
944
+ "name": "updatedBy",
945
+ "type": "address"
946
+ },
947
+ {
948
+ "internalType": "Blocknumber",
949
+ "name": "updatedIn",
950
+ "type": "uint32"
951
+ },
952
+ {
953
+ "internalType": "Blocknumber",
954
+ "name": "createdIn",
955
+ "type": "uint32"
956
+ }
957
+ ],
958
+ "internalType": "struct IKeyValueStore.Metadata",
959
+ "name": "metadata",
960
+ "type": "tuple"
961
+ }
962
+ ],
963
+ "stateMutability": "view",
964
+ "type": "function"
965
+ },
966
+ {
967
+ "inputs": [],
968
+ "name": "getPolicyService",
969
+ "outputs": [
970
+ {
971
+ "internalType": "contract IPolicyService",
972
+ "name": "",
973
+ "type": "address"
974
+ }
975
+ ],
976
+ "stateMutability": "view",
977
+ "type": "function"
978
+ },
979
+ {
980
+ "inputs": [],
981
+ "name": "getPoolService",
982
+ "outputs": [
983
+ {
984
+ "internalType": "contract IPoolService",
985
+ "name": "",
986
+ "type": "address"
987
+ }
988
+ ],
989
+ "stateMutability": "view",
990
+ "type": "function"
991
+ },
992
+ {
993
+ "inputs": [],
994
+ "name": "getProductService",
995
+ "outputs": [
996
+ {
997
+ "internalType": "contract IProductService",
998
+ "name": "",
999
+ "type": "address"
1000
+ }
1001
+ ],
1002
+ "stateMutability": "view",
1003
+ "type": "function"
1004
+ },
1005
+ {
1006
+ "inputs": [
1007
+ {
1008
+ "internalType": "Key32",
1009
+ "name": "key",
1010
+ "type": "bytes32"
1011
+ }
1012
+ ],
1013
+ "name": "getState",
1014
+ "outputs": [
1015
+ {
1016
+ "internalType": "StateId",
1017
+ "name": "state",
1018
+ "type": "uint8"
1019
+ }
1020
+ ],
1021
+ "stateMutability": "view",
1022
+ "type": "function"
1023
+ },
1024
+ {
1025
+ "inputs": [
1026
+ {
1027
+ "internalType": "ObjectType",
1028
+ "name": "objectType",
1029
+ "type": "uint8"
1030
+ }
1031
+ ],
1032
+ "name": "hasLifecycle",
1033
+ "outputs": [
1034
+ {
1035
+ "internalType": "bool",
1036
+ "name": "",
1037
+ "type": "bool"
1038
+ }
1039
+ ],
1040
+ "stateMutability": "view",
1041
+ "type": "function"
1042
+ },
1043
+ {
1044
+ "inputs": [],
1045
+ "name": "isConsumingScheduledOp",
1046
+ "outputs": [
1047
+ {
1048
+ "internalType": "bytes4",
1049
+ "name": "",
1050
+ "type": "bytes4"
1051
+ }
1052
+ ],
1053
+ "stateMutability": "view",
1054
+ "type": "function"
1055
+ },
1056
+ {
1057
+ "inputs": [
1058
+ {
1059
+ "internalType": "ObjectType",
1060
+ "name": "objectType",
1061
+ "type": "uint8"
1062
+ },
1063
+ {
1064
+ "internalType": "StateId",
1065
+ "name": "fromId",
1066
+ "type": "uint8"
1067
+ },
1068
+ {
1069
+ "internalType": "StateId",
1070
+ "name": "toId",
1071
+ "type": "uint8"
1072
+ }
1073
+ ],
1074
+ "name": "isValidTransition",
1075
+ "outputs": [
1076
+ {
1077
+ "internalType": "bool",
1078
+ "name": "",
1079
+ "type": "bool"
1080
+ }
1081
+ ],
1082
+ "stateMutability": "view",
1083
+ "type": "function"
1084
+ },
1085
+ {
1086
+ "inputs": [
1087
+ {
1088
+ "internalType": "address",
1089
+ "name": "",
1090
+ "type": "address"
1091
+ }
1092
+ ],
1093
+ "name": "setAuthority",
1094
+ "outputs": [],
1095
+ "stateMutability": "nonpayable",
1096
+ "type": "function"
1097
+ },
1098
+ {
1099
+ "inputs": [
1100
+ {
1101
+ "internalType": "bytes4",
1102
+ "name": "interfaceId",
1103
+ "type": "bytes4"
1104
+ }
1105
+ ],
1106
+ "name": "supportsInterface",
1107
+ "outputs": [
1108
+ {
1109
+ "internalType": "bool",
1110
+ "name": "",
1111
+ "type": "bool"
1112
+ }
1113
+ ],
1114
+ "stateMutability": "view",
1115
+ "type": "function"
1116
+ },
1117
+ {
1118
+ "inputs": [
1119
+ {
1120
+ "internalType": "ObjectType",
1121
+ "name": "objectType",
1122
+ "type": "uint8"
1123
+ },
1124
+ {
1125
+ "internalType": "KeyId",
1126
+ "name": "id",
1127
+ "type": "bytes31"
1128
+ }
1129
+ ],
1130
+ "name": "toKey32",
1131
+ "outputs": [
1132
+ {
1133
+ "internalType": "Key32",
1134
+ "name": "",
1135
+ "type": "bytes32"
1136
+ }
1137
+ ],
1138
+ "stateMutability": "pure",
1139
+ "type": "function"
1140
+ },
1141
+ {
1142
+ "inputs": [
1143
+ {
1144
+ "internalType": "NftId",
1145
+ "name": "bundleNftId",
1146
+ "type": "uint96"
1147
+ },
1148
+ {
1149
+ "components": [
1150
+ {
1151
+ "internalType": "NftId",
1152
+ "name": "poolNftId",
1153
+ "type": "uint96"
1154
+ },
1155
+ {
1156
+ "components": [
1157
+ {
1158
+ "internalType": "UFixed",
1159
+ "name": "fractionalFee",
1160
+ "type": "uint256"
1161
+ },
1162
+ {
1163
+ "internalType": "uint256",
1164
+ "name": "fixedFee",
1165
+ "type": "uint256"
1166
+ }
1167
+ ],
1168
+ "internalType": "struct Fee",
1169
+ "name": "fee",
1170
+ "type": "tuple"
1171
+ },
1172
+ {
1173
+ "internalType": "bytes",
1174
+ "name": "filter",
1175
+ "type": "bytes"
1176
+ },
1177
+ {
1178
+ "internalType": "uint256",
1179
+ "name": "capitalAmount",
1180
+ "type": "uint256"
1181
+ },
1182
+ {
1183
+ "internalType": "uint256",
1184
+ "name": "lockedAmount",
1185
+ "type": "uint256"
1186
+ },
1187
+ {
1188
+ "internalType": "uint256",
1189
+ "name": "balanceAmount",
1190
+ "type": "uint256"
1191
+ },
1192
+ {
1193
+ "internalType": "uint256",
1194
+ "name": "lifetime",
1195
+ "type": "uint256"
1196
+ },
1197
+ {
1198
+ "internalType": "Timestamp",
1199
+ "name": "expiredAt",
1200
+ "type": "uint40"
1201
+ },
1202
+ {
1203
+ "internalType": "Timestamp",
1204
+ "name": "closedAt",
1205
+ "type": "uint40"
1206
+ }
1207
+ ],
1208
+ "internalType": "struct IBundle.BundleInfo",
1209
+ "name": "bundle",
1210
+ "type": "tuple"
1211
+ },
1212
+ {
1213
+ "internalType": "StateId",
1214
+ "name": "newState",
1215
+ "type": "uint8"
1216
+ }
1217
+ ],
1218
+ "name": "updateBundle",
1219
+ "outputs": [],
1220
+ "stateMutability": "nonpayable",
1221
+ "type": "function"
1222
+ },
1223
+ {
1224
+ "inputs": [
1225
+ {
1226
+ "internalType": "NftId",
1227
+ "name": "bundleNftId",
1228
+ "type": "uint96"
1229
+ },
1230
+ {
1231
+ "internalType": "StateId",
1232
+ "name": "newState",
1233
+ "type": "uint8"
1234
+ }
1235
+ ],
1236
+ "name": "updateBundleState",
1237
+ "outputs": [],
1238
+ "stateMutability": "nonpayable",
1239
+ "type": "function"
1240
+ },
6
1241
  {
7
1242
  "inputs": [
8
1243
  {
@@ -53,9 +1288,14 @@
53
1288
  "internalType": "struct ISetup.DistributionSetupInfo",
54
1289
  "name": "setup",
55
1290
  "type": "tuple"
1291
+ },
1292
+ {
1293
+ "internalType": "StateId",
1294
+ "name": "newState",
1295
+ "type": "uint8"
56
1296
  }
57
1297
  ],
58
- "name": "createDistributionSetup",
1298
+ "name": "updateDistributionSetup",
59
1299
  "outputs": [],
60
1300
  "stateMutability": "nonpayable",
61
1301
  "type": "function"
@@ -67,6 +1307,147 @@
67
1307
  "name": "distributionNftId",
68
1308
  "type": "uint96"
69
1309
  },
1310
+ {
1311
+ "internalType": "StateId",
1312
+ "name": "newState",
1313
+ "type": "uint8"
1314
+ }
1315
+ ],
1316
+ "name": "updateDistributionSetupState",
1317
+ "outputs": [],
1318
+ "stateMutability": "nonpayable",
1319
+ "type": "function"
1320
+ },
1321
+ {
1322
+ "inputs": [
1323
+ {
1324
+ "internalType": "NftId",
1325
+ "name": "policyNftId",
1326
+ "type": "uint96"
1327
+ },
1328
+ {
1329
+ "components": [
1330
+ {
1331
+ "internalType": "NftId",
1332
+ "name": "productNftId",
1333
+ "type": "uint96"
1334
+ },
1335
+ {
1336
+ "internalType": "NftId",
1337
+ "name": "bundleNftId",
1338
+ "type": "uint96"
1339
+ },
1340
+ {
1341
+ "internalType": "ReferralId",
1342
+ "name": "referralId",
1343
+ "type": "bytes8"
1344
+ },
1345
+ {
1346
+ "internalType": "RiskId",
1347
+ "name": "riskId",
1348
+ "type": "bytes8"
1349
+ },
1350
+ {
1351
+ "internalType": "uint256",
1352
+ "name": "sumInsuredAmount",
1353
+ "type": "uint256"
1354
+ },
1355
+ {
1356
+ "internalType": "uint256",
1357
+ "name": "premiumAmount",
1358
+ "type": "uint256"
1359
+ },
1360
+ {
1361
+ "internalType": "uint256",
1362
+ "name": "premiumPaidAmount",
1363
+ "type": "uint256"
1364
+ },
1365
+ {
1366
+ "internalType": "uint256",
1367
+ "name": "lifetime",
1368
+ "type": "uint256"
1369
+ },
1370
+ {
1371
+ "internalType": "bytes",
1372
+ "name": "applicationData",
1373
+ "type": "bytes"
1374
+ },
1375
+ {
1376
+ "internalType": "bytes",
1377
+ "name": "policyData",
1378
+ "type": "bytes"
1379
+ },
1380
+ {
1381
+ "internalType": "uint16",
1382
+ "name": "claimsCount",
1383
+ "type": "uint16"
1384
+ },
1385
+ {
1386
+ "internalType": "uint16",
1387
+ "name": "openClaimsCount",
1388
+ "type": "uint16"
1389
+ },
1390
+ {
1391
+ "internalType": "uint256",
1392
+ "name": "payoutAmount",
1393
+ "type": "uint256"
1394
+ },
1395
+ {
1396
+ "internalType": "Timestamp",
1397
+ "name": "activatedAt",
1398
+ "type": "uint40"
1399
+ },
1400
+ {
1401
+ "internalType": "Timestamp",
1402
+ "name": "expiredAt",
1403
+ "type": "uint40"
1404
+ },
1405
+ {
1406
+ "internalType": "Timestamp",
1407
+ "name": "closedAt",
1408
+ "type": "uint40"
1409
+ }
1410
+ ],
1411
+ "internalType": "struct IPolicy.PolicyInfo",
1412
+ "name": "policy",
1413
+ "type": "tuple"
1414
+ },
1415
+ {
1416
+ "internalType": "StateId",
1417
+ "name": "newState",
1418
+ "type": "uint8"
1419
+ }
1420
+ ],
1421
+ "name": "updatePolicy",
1422
+ "outputs": [],
1423
+ "stateMutability": "nonpayable",
1424
+ "type": "function"
1425
+ },
1426
+ {
1427
+ "inputs": [
1428
+ {
1429
+ "internalType": "NftId",
1430
+ "name": "policyNftId",
1431
+ "type": "uint96"
1432
+ },
1433
+ {
1434
+ "internalType": "StateId",
1435
+ "name": "newState",
1436
+ "type": "uint8"
1437
+ }
1438
+ ],
1439
+ "name": "updatePolicyState",
1440
+ "outputs": [],
1441
+ "stateMutability": "nonpayable",
1442
+ "type": "function"
1443
+ },
1444
+ {
1445
+ "inputs": [
1446
+ {
1447
+ "internalType": "NftId",
1448
+ "name": "poolNftId",
1449
+ "type": "uint96"
1450
+ },
70
1451
  {
71
1452
  "components": [
72
1453
  {
@@ -140,6 +1521,11 @@
140
1521
  "name": "isIntercepting",
141
1522
  "type": "bool"
142
1523
  },
1524
+ {
1525
+ "internalType": "bool",
1526
+ "name": "isConfirmingApplication",
1527
+ "type": "bool"
1528
+ },
143
1529
  {
144
1530
  "internalType": "address",
145
1531
  "name": "wallet",
@@ -149,9 +1535,32 @@
149
1535
  "internalType": "struct ISetup.PoolSetupInfo",
150
1536
  "name": "setup",
151
1537
  "type": "tuple"
1538
+ },
1539
+ {
1540
+ "internalType": "StateId",
1541
+ "name": "newState",
1542
+ "type": "uint8"
152
1543
  }
153
1544
  ],
154
- "name": "createPoolSetup",
1545
+ "name": "updatePoolSetup",
1546
+ "outputs": [],
1547
+ "stateMutability": "nonpayable",
1548
+ "type": "function"
1549
+ },
1550
+ {
1551
+ "inputs": [
1552
+ {
1553
+ "internalType": "NftId",
1554
+ "name": "poolNftId",
1555
+ "type": "uint96"
1556
+ },
1557
+ {
1558
+ "internalType": "StateId",
1559
+ "name": "newState",
1560
+ "type": "uint8"
1561
+ }
1562
+ ],
1563
+ "name": "updatePoolSetupState",
155
1564
  "outputs": [],
156
1565
  "stateMutability": "nonpayable",
157
1566
  "type": "function"
@@ -286,61 +1695,102 @@
286
1695
  "internalType": "struct Fee",
287
1696
  "name": "performanceFee",
288
1697
  "type": "tuple"
1698
+ },
1699
+ {
1700
+ "internalType": "bool",
1701
+ "name": "isIntercepting",
1702
+ "type": "bool"
1703
+ },
1704
+ {
1705
+ "internalType": "address",
1706
+ "name": "wallet",
1707
+ "type": "address"
289
1708
  }
290
1709
  ],
291
1710
  "internalType": "struct ISetup.ProductSetupInfo",
292
1711
  "name": "setup",
293
1712
  "type": "tuple"
1713
+ },
1714
+ {
1715
+ "internalType": "StateId",
1716
+ "name": "newState",
1717
+ "type": "uint8"
294
1718
  }
295
1719
  ],
296
- "name": "createProductSetup",
1720
+ "name": "updateProductSetup",
297
1721
  "outputs": [],
298
1722
  "stateMutability": "nonpayable",
299
1723
  "type": "function"
300
1724
  },
301
1725
  {
302
- "inputs": [],
303
- "name": "getComponentOwnerService",
304
- "outputs": [
1726
+ "inputs": [
305
1727
  {
306
- "internalType": "contract IComponentOwnerService",
307
- "name": "",
308
- "type": "address"
1728
+ "internalType": "NftId",
1729
+ "name": "productNftId",
1730
+ "type": "uint96"
1731
+ },
1732
+ {
1733
+ "internalType": "StateId",
1734
+ "name": "newState",
1735
+ "type": "uint8"
309
1736
  }
310
1737
  ],
311
- "stateMutability": "view",
1738
+ "name": "updateProductSetupState",
1739
+ "outputs": [],
1740
+ "stateMutability": "nonpayable",
312
1741
  "type": "function"
313
1742
  },
314
1743
  {
315
- "inputs": [],
316
- "name": "getInstanceReader",
317
- "outputs": [
1744
+ "inputs": [
318
1745
  {
319
- "internalType": "contract InstanceReader",
320
- "name": "",
321
- "type": "address"
1746
+ "internalType": "RiskId",
1747
+ "name": "riskId",
1748
+ "type": "bytes8"
1749
+ },
1750
+ {
1751
+ "components": [
1752
+ {
1753
+ "internalType": "NftId",
1754
+ "name": "productNftId",
1755
+ "type": "uint96"
1756
+ },
1757
+ {
1758
+ "internalType": "bytes",
1759
+ "name": "data",
1760
+ "type": "bytes"
1761
+ }
1762
+ ],
1763
+ "internalType": "struct IRisk.RiskInfo",
1764
+ "name": "risk",
1765
+ "type": "tuple"
1766
+ },
1767
+ {
1768
+ "internalType": "StateId",
1769
+ "name": "newState",
1770
+ "type": "uint8"
322
1771
  }
323
1772
  ],
324
- "stateMutability": "view",
1773
+ "name": "updateRisk",
1774
+ "outputs": [],
1775
+ "stateMutability": "nonpayable",
325
1776
  "type": "function"
326
1777
  },
327
1778
  {
328
1779
  "inputs": [
329
1780
  {
330
- "internalType": "bytes4",
331
- "name": "interfaceId",
332
- "type": "bytes4"
333
- }
334
- ],
335
- "name": "supportsInterface",
336
- "outputs": [
1781
+ "internalType": "RiskId",
1782
+ "name": "riskId",
1783
+ "type": "bytes8"
1784
+ },
337
1785
  {
338
- "internalType": "bool",
339
- "name": "",
340
- "type": "bool"
1786
+ "internalType": "StateId",
1787
+ "name": "newState",
1788
+ "type": "uint8"
341
1789
  }
342
1790
  ],
343
- "stateMutability": "view",
1791
+ "name": "updateRiskState",
1792
+ "outputs": [],
1793
+ "stateMutability": "nonpayable",
344
1794
  "type": "function"
345
1795
  }
346
1796
  ],