@etherisc/gif-next 0.0.2-c96f882-016 → 0.0.2-ca84135-795

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 +63 -1
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  3. package/artifacts/contracts/{instance/service/IComponentOwnerService.sol/IComponentOwnerService.json → components/Component.sol/Component.json} +210 -178
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +171 -90
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → components/IComponent.sol/IComponent.json} +133 -162
  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 +203 -119
  15. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  16. package/artifacts/contracts/components/Product.sol/Product.json +183 -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 +764 -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} +74 -3
  46. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  47. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1649 -28
  48. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  49. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +619 -0
  50. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  51. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +104 -14
  52. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  53. package/artifacts/contracts/instance/Instance.sol/Instance.json +155 -662
  54. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  55. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +243 -126
  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 +164 -66
  60. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  61. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +275 -74
  62. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  63. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +52 -24
  64. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  65. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
  66. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  67. package/artifacts/contracts/instance/base/{ComponentServiceBase.sol/ComponentServiceBase.json → ComponentService.sol/ComponentService.json} +125 -11
  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 +1094 -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 +764 -0
  90. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  91. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +424 -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 +1219 -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 +798 -0
  108. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  109. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +424 -0
  110. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  111. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +848 -0
  112. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  113. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +424 -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 +146 -229
  118. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  119. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +195 -86
  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 +159 -316
  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 +38 -112
  127. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  128. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +38 -95
  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 +1 -1
  139. package/artifacts/contracts/shared/IService.sol/IService.json +13 -13
  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/Service.sol/Service.dbg.json +1 -1
  148. package/artifacts/contracts/shared/Service.sol/Service.json +13 -13
  149. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  150. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  151. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  152. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  153. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  154. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +4 -4
  155. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  156. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  157. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  158. package/artifacts/contracts/test/TestService.sol/TestService.json +31 -31
  159. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  160. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  161. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  162. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  163. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  164. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  165. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  166. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  167. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  168. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  169. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  170. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  171. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  172. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  173. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  174. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  175. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  176. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  177. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  178. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  179. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  180. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  181. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  182. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  183. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  184. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  185. package/contracts/components/Component.sol +177 -0
  186. package/contracts/components/Distribution.sol +17 -29
  187. package/contracts/components/IComponent.sol +37 -0
  188. package/contracts/components/IDistributionComponent.sol +1 -0
  189. package/contracts/components/IPoolComponent.sol +5 -1
  190. package/contracts/components/IProductComponent.sol +2 -2
  191. package/contracts/components/Pool.sol +46 -47
  192. package/contracts/components/Product.sol +57 -59
  193. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +23 -0
  194. package/contracts/instance/BundleManager.sol +125 -0
  195. package/contracts/instance/Cloneable.sol +46 -0
  196. package/contracts/instance/IInstance.sol +43 -9
  197. package/contracts/instance/IInstanceBase.sol +27 -0
  198. package/contracts/instance/IInstanceService.sol +14 -4
  199. package/contracts/instance/Instance.sol +54 -237
  200. package/contracts/instance/InstanceAccessManager.sol +93 -78
  201. package/contracts/instance/InstanceBase.sol +38 -0
  202. package/contracts/instance/InstanceReader.sol +29 -26
  203. package/contracts/instance/InstanceService.sol +301 -77
  204. package/contracts/instance/InstanceServiceManager.sol +10 -12
  205. package/contracts/instance/ObjectManager.sol +84 -0
  206. package/contracts/instance/base/ComponentService.sol +133 -0
  207. package/contracts/instance/base/IInstanceBase.sol +0 -2
  208. package/contracts/instance/module/IAccess.sol +27 -17
  209. package/contracts/instance/module/IBundle.sol +1 -0
  210. package/contracts/instance/module/ISetup.sol +3 -0
  211. package/contracts/instance/service/BundleService.sol +293 -0
  212. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  213. package/contracts/instance/service/DistributionService.sol +115 -0
  214. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  215. package/contracts/instance/service/IBundleService.sol +44 -0
  216. package/contracts/instance/service/IPolicyService.sol +94 -0
  217. package/contracts/instance/service/IPoolService.sol +6 -23
  218. package/contracts/instance/service/IProductService.sol +6 -73
  219. package/contracts/instance/service/PolicyService.sol +538 -0
  220. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  221. package/contracts/instance/service/PoolService.sol +142 -0
  222. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  223. package/contracts/instance/service/ProductService.sol +241 -0
  224. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  225. package/contracts/registry/ChainNft.sol +1 -1
  226. package/contracts/registry/IRegistry.sol +30 -29
  227. package/contracts/registry/IRegistryService.sol +36 -14
  228. package/contracts/registry/Registry.sol +163 -239
  229. package/contracts/registry/RegistryAccessManager.sol +210 -0
  230. package/contracts/registry/RegistryService.sol +86 -218
  231. package/contracts/registry/RegistryServiceManager.sol +20 -22
  232. package/contracts/registry/ReleaseManager.sol +342 -0
  233. package/contracts/registry/TokenRegistry.sol +110 -0
  234. package/contracts/shared/ERC165.sol +6 -2
  235. package/contracts/shared/IRegisterable.sol +0 -2
  236. package/contracts/shared/IService.sol +2 -1
  237. package/contracts/shared/NftOwnable.sol +4 -4
  238. package/contracts/shared/ProxyManager.sol +1 -1
  239. package/contracts/shared/Registerable.sol +1 -0
  240. package/contracts/shared/Service.sol +14 -8
  241. package/contracts/test/TestService.sol +3 -2
  242. package/contracts/types/NftIdSet.sol +26 -24
  243. package/contracts/types/RoleId.sol +14 -6
  244. package/contracts/types/StateId.sol +4 -0
  245. package/package.json +1 -1
  246. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  247. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -314
  248. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  249. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -267
  250. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
  251. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
  252. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1132
  253. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
  254. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
  255. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  256. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  257. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -827
  258. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  259. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
  260. package/contracts/components/BaseComponent.sol +0 -86
  261. package/contracts/components/IBaseComponent.sol +0 -24
  262. package/contracts/instance/AccessManagedSimple.sol +0 -122
  263. package/contracts/instance/AccessManagerSimple.sol +0 -692
  264. package/contracts/instance/IAccessManagerSimple.sol +0 -391
  265. package/contracts/instance/base/ComponentServiceBase.sol +0 -49
  266. package/contracts/instance/service/ComponentOwnerService.sol +0 -317
  267. package/contracts/instance/service/IComponentOwnerService.sol +0 -20
  268. package/contracts/shared/RegisterableUpgradable.sol +0 -16
@@ -3,6 +3,1412 @@
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": "address",
48
+ "name": "registry",
49
+ "type": "address"
50
+ },
51
+ {
52
+ "internalType": "NftId",
53
+ "name": "nftId",
54
+ "type": "uint96"
55
+ }
56
+ ],
57
+ "name": "ErrorAlreadyLinked",
58
+ "type": "error"
59
+ },
60
+ {
61
+ "inputs": [
62
+ {
63
+ "internalType": "address",
64
+ "name": "contractAddress",
65
+ "type": "address"
66
+ }
67
+ ],
68
+ "name": "ErrorContractNotRegistered",
69
+ "type": "error"
70
+ },
71
+ {
72
+ "inputs": [
73
+ {
74
+ "internalType": "ObjectType",
75
+ "name": "objectType",
76
+ "type": "uint8"
77
+ },
78
+ {
79
+ "internalType": "StateId",
80
+ "name": "fromStateId",
81
+ "type": "uint8"
82
+ },
83
+ {
84
+ "internalType": "StateId",
85
+ "name": "toStateId",
86
+ "type": "uint8"
87
+ }
88
+ ],
89
+ "name": "ErrorInvalidStateTransition",
90
+ "type": "error"
91
+ },
92
+ {
93
+ "inputs": [
94
+ {
95
+ "internalType": "NftId",
96
+ "name": "nftId",
97
+ "type": "uint96"
98
+ },
99
+ {
100
+ "internalType": "ObjectType",
101
+ "name": "objectType",
102
+ "type": "uint8"
103
+ }
104
+ ],
105
+ "name": "ErrorNoLifecycle",
106
+ "type": "error"
107
+ },
108
+ {
109
+ "inputs": [
110
+ {
111
+ "internalType": "address",
112
+ "name": "account",
113
+ "type": "address"
114
+ }
115
+ ],
116
+ "name": "ErrorNotOwner",
117
+ "type": "error"
118
+ },
119
+ {
120
+ "inputs": [
121
+ {
122
+ "internalType": "address",
123
+ "name": "registryAddress",
124
+ "type": "address"
125
+ }
126
+ ],
127
+ "name": "ErrorNotRegistry",
128
+ "type": "error"
129
+ },
130
+ {
131
+ "inputs": [],
132
+ "name": "ErrorRegistryAddressZero",
133
+ "type": "error"
134
+ },
135
+ {
136
+ "inputs": [
137
+ {
138
+ "internalType": "address",
139
+ "name": "registry",
140
+ "type": "address"
141
+ }
142
+ ],
143
+ "name": "ErrorRegistryAlreadyInitialized",
144
+ "type": "error"
145
+ },
146
+ {
147
+ "inputs": [],
148
+ "name": "ErrorRegistryNotInitialized",
149
+ "type": "error"
150
+ },
151
+ {
152
+ "anonymous": false,
153
+ "inputs": [
154
+ {
155
+ "indexed": false,
156
+ "internalType": "address",
157
+ "name": "authority",
158
+ "type": "address"
159
+ }
160
+ ],
161
+ "name": "AuthorityUpdated",
162
+ "type": "event"
163
+ },
164
+ {
165
+ "anonymous": false,
166
+ "inputs": [
167
+ {
168
+ "indexed": false,
169
+ "internalType": "ObjectType",
170
+ "name": "objectType",
171
+ "type": "uint8"
172
+ },
173
+ {
174
+ "indexed": false,
175
+ "internalType": "KeyId",
176
+ "name": "keyId",
177
+ "type": "bytes31"
178
+ },
179
+ {
180
+ "indexed": false,
181
+ "internalType": "StateId",
182
+ "name": "state",
183
+ "type": "uint8"
184
+ },
185
+ {
186
+ "indexed": false,
187
+ "internalType": "address",
188
+ "name": "createdBy",
189
+ "type": "address"
190
+ },
191
+ {
192
+ "indexed": false,
193
+ "internalType": "address",
194
+ "name": "txOrigin",
195
+ "type": "address"
196
+ }
197
+ ],
198
+ "name": "LogInfoCreated",
199
+ "type": "event"
200
+ },
201
+ {
202
+ "anonymous": false,
203
+ "inputs": [
204
+ {
205
+ "indexed": false,
206
+ "internalType": "ObjectType",
207
+ "name": "objectType",
208
+ "type": "uint8"
209
+ },
210
+ {
211
+ "indexed": false,
212
+ "internalType": "KeyId",
213
+ "name": "keyId",
214
+ "type": "bytes31"
215
+ },
216
+ {
217
+ "indexed": false,
218
+ "internalType": "StateId",
219
+ "name": "state",
220
+ "type": "uint8"
221
+ },
222
+ {
223
+ "indexed": false,
224
+ "internalType": "address",
225
+ "name": "updatedBy",
226
+ "type": "address"
227
+ },
228
+ {
229
+ "indexed": false,
230
+ "internalType": "address",
231
+ "name": "txOrigin",
232
+ "type": "address"
233
+ },
234
+ {
235
+ "indexed": false,
236
+ "internalType": "Blocknumber",
237
+ "name": "lastUpdatedIn",
238
+ "type": "uint32"
239
+ }
240
+ ],
241
+ "name": "LogInfoUpdated",
242
+ "type": "event"
243
+ },
244
+ {
245
+ "anonymous": false,
246
+ "inputs": [
247
+ {
248
+ "indexed": false,
249
+ "internalType": "ObjectType",
250
+ "name": "objectType",
251
+ "type": "uint8"
252
+ },
253
+ {
254
+ "indexed": false,
255
+ "internalType": "KeyId",
256
+ "name": "keyId",
257
+ "type": "bytes31"
258
+ },
259
+ {
260
+ "indexed": false,
261
+ "internalType": "StateId",
262
+ "name": "stateOld",
263
+ "type": "uint8"
264
+ },
265
+ {
266
+ "indexed": false,
267
+ "internalType": "StateId",
268
+ "name": "stateNew",
269
+ "type": "uint8"
270
+ },
271
+ {
272
+ "indexed": false,
273
+ "internalType": "address",
274
+ "name": "updatedBy",
275
+ "type": "address"
276
+ },
277
+ {
278
+ "indexed": false,
279
+ "internalType": "address",
280
+ "name": "txOrigin",
281
+ "type": "address"
282
+ },
283
+ {
284
+ "indexed": false,
285
+ "internalType": "Blocknumber",
286
+ "name": "lastUpdatedIn",
287
+ "type": "uint32"
288
+ }
289
+ ],
290
+ "name": "LogStateUpdated",
291
+ "type": "event"
292
+ },
293
+ {
294
+ "inputs": [],
295
+ "name": "authority",
296
+ "outputs": [
297
+ {
298
+ "internalType": "address",
299
+ "name": "",
300
+ "type": "address"
301
+ }
302
+ ],
303
+ "stateMutability": "view",
304
+ "type": "function"
305
+ },
306
+ {
307
+ "inputs": [
308
+ {
309
+ "internalType": "NftId",
310
+ "name": "bundleNftId",
311
+ "type": "uint96"
312
+ },
313
+ {
314
+ "components": [
315
+ {
316
+ "internalType": "NftId",
317
+ "name": "poolNftId",
318
+ "type": "uint96"
319
+ },
320
+ {
321
+ "components": [
322
+ {
323
+ "internalType": "UFixed",
324
+ "name": "fractionalFee",
325
+ "type": "uint256"
326
+ },
327
+ {
328
+ "internalType": "uint256",
329
+ "name": "fixedFee",
330
+ "type": "uint256"
331
+ }
332
+ ],
333
+ "internalType": "struct Fee",
334
+ "name": "fee",
335
+ "type": "tuple"
336
+ },
337
+ {
338
+ "internalType": "bytes",
339
+ "name": "filter",
340
+ "type": "bytes"
341
+ },
342
+ {
343
+ "internalType": "uint256",
344
+ "name": "capitalAmount",
345
+ "type": "uint256"
346
+ },
347
+ {
348
+ "internalType": "uint256",
349
+ "name": "lockedAmount",
350
+ "type": "uint256"
351
+ },
352
+ {
353
+ "internalType": "uint256",
354
+ "name": "balanceAmount",
355
+ "type": "uint256"
356
+ },
357
+ {
358
+ "internalType": "uint256",
359
+ "name": "lifetime",
360
+ "type": "uint256"
361
+ },
362
+ {
363
+ "internalType": "Timestamp",
364
+ "name": "expiredAt",
365
+ "type": "uint40"
366
+ },
367
+ {
368
+ "internalType": "Timestamp",
369
+ "name": "closedAt",
370
+ "type": "uint40"
371
+ }
372
+ ],
373
+ "internalType": "struct IBundle.BundleInfo",
374
+ "name": "bundle",
375
+ "type": "tuple"
376
+ }
377
+ ],
378
+ "name": "createBundle",
379
+ "outputs": [],
380
+ "stateMutability": "nonpayable",
381
+ "type": "function"
382
+ },
383
+ {
384
+ "inputs": [
385
+ {
386
+ "internalType": "NftId",
387
+ "name": "distributionNftId",
388
+ "type": "uint96"
389
+ },
390
+ {
391
+ "components": [
392
+ {
393
+ "internalType": "NftId",
394
+ "name": "productNftId",
395
+ "type": "uint96"
396
+ },
397
+ {
398
+ "internalType": "contract TokenHandler",
399
+ "name": "tokenHandler",
400
+ "type": "address"
401
+ },
402
+ {
403
+ "components": [
404
+ {
405
+ "internalType": "UFixed",
406
+ "name": "fractionalFee",
407
+ "type": "uint256"
408
+ },
409
+ {
410
+ "internalType": "uint256",
411
+ "name": "fixedFee",
412
+ "type": "uint256"
413
+ }
414
+ ],
415
+ "internalType": "struct Fee",
416
+ "name": "distributionFee",
417
+ "type": "tuple"
418
+ },
419
+ {
420
+ "internalType": "bool",
421
+ "name": "isIntercepting",
422
+ "type": "bool"
423
+ },
424
+ {
425
+ "internalType": "address",
426
+ "name": "wallet",
427
+ "type": "address"
428
+ }
429
+ ],
430
+ "internalType": "struct ISetup.DistributionSetupInfo",
431
+ "name": "setup",
432
+ "type": "tuple"
433
+ }
434
+ ],
435
+ "name": "createDistributionSetup",
436
+ "outputs": [],
437
+ "stateMutability": "nonpayable",
438
+ "type": "function"
439
+ },
440
+ {
441
+ "inputs": [
442
+ {
443
+ "internalType": "NftId",
444
+ "name": "policyNftId",
445
+ "type": "uint96"
446
+ },
447
+ {
448
+ "components": [
449
+ {
450
+ "internalType": "NftId",
451
+ "name": "productNftId",
452
+ "type": "uint96"
453
+ },
454
+ {
455
+ "internalType": "NftId",
456
+ "name": "bundleNftId",
457
+ "type": "uint96"
458
+ },
459
+ {
460
+ "internalType": "ReferralId",
461
+ "name": "referralId",
462
+ "type": "bytes8"
463
+ },
464
+ {
465
+ "internalType": "RiskId",
466
+ "name": "riskId",
467
+ "type": "bytes8"
468
+ },
469
+ {
470
+ "internalType": "uint256",
471
+ "name": "sumInsuredAmount",
472
+ "type": "uint256"
473
+ },
474
+ {
475
+ "internalType": "uint256",
476
+ "name": "premiumAmount",
477
+ "type": "uint256"
478
+ },
479
+ {
480
+ "internalType": "uint256",
481
+ "name": "premiumPaidAmount",
482
+ "type": "uint256"
483
+ },
484
+ {
485
+ "internalType": "uint256",
486
+ "name": "lifetime",
487
+ "type": "uint256"
488
+ },
489
+ {
490
+ "internalType": "bytes",
491
+ "name": "applicationData",
492
+ "type": "bytes"
493
+ },
494
+ {
495
+ "internalType": "bytes",
496
+ "name": "policyData",
497
+ "type": "bytes"
498
+ },
499
+ {
500
+ "internalType": "uint16",
501
+ "name": "claimsCount",
502
+ "type": "uint16"
503
+ },
504
+ {
505
+ "internalType": "uint16",
506
+ "name": "openClaimsCount",
507
+ "type": "uint16"
508
+ },
509
+ {
510
+ "internalType": "uint256",
511
+ "name": "payoutAmount",
512
+ "type": "uint256"
513
+ },
514
+ {
515
+ "internalType": "Timestamp",
516
+ "name": "activatedAt",
517
+ "type": "uint40"
518
+ },
519
+ {
520
+ "internalType": "Timestamp",
521
+ "name": "expiredAt",
522
+ "type": "uint40"
523
+ },
524
+ {
525
+ "internalType": "Timestamp",
526
+ "name": "closedAt",
527
+ "type": "uint40"
528
+ }
529
+ ],
530
+ "internalType": "struct IPolicy.PolicyInfo",
531
+ "name": "policy",
532
+ "type": "tuple"
533
+ }
534
+ ],
535
+ "name": "createPolicy",
536
+ "outputs": [],
537
+ "stateMutability": "nonpayable",
538
+ "type": "function"
539
+ },
540
+ {
541
+ "inputs": [
542
+ {
543
+ "internalType": "NftId",
544
+ "name": "poolNftId",
545
+ "type": "uint96"
546
+ },
547
+ {
548
+ "components": [
549
+ {
550
+ "internalType": "NftId",
551
+ "name": "productNftId",
552
+ "type": "uint96"
553
+ },
554
+ {
555
+ "internalType": "contract TokenHandler",
556
+ "name": "tokenHandler",
557
+ "type": "address"
558
+ },
559
+ {
560
+ "internalType": "UFixed",
561
+ "name": "collateralizationLevel",
562
+ "type": "uint256"
563
+ },
564
+ {
565
+ "components": [
566
+ {
567
+ "internalType": "UFixed",
568
+ "name": "fractionalFee",
569
+ "type": "uint256"
570
+ },
571
+ {
572
+ "internalType": "uint256",
573
+ "name": "fixedFee",
574
+ "type": "uint256"
575
+ }
576
+ ],
577
+ "internalType": "struct Fee",
578
+ "name": "poolFee",
579
+ "type": "tuple"
580
+ },
581
+ {
582
+ "components": [
583
+ {
584
+ "internalType": "UFixed",
585
+ "name": "fractionalFee",
586
+ "type": "uint256"
587
+ },
588
+ {
589
+ "internalType": "uint256",
590
+ "name": "fixedFee",
591
+ "type": "uint256"
592
+ }
593
+ ],
594
+ "internalType": "struct Fee",
595
+ "name": "stakingFee",
596
+ "type": "tuple"
597
+ },
598
+ {
599
+ "components": [
600
+ {
601
+ "internalType": "UFixed",
602
+ "name": "fractionalFee",
603
+ "type": "uint256"
604
+ },
605
+ {
606
+ "internalType": "uint256",
607
+ "name": "fixedFee",
608
+ "type": "uint256"
609
+ }
610
+ ],
611
+ "internalType": "struct Fee",
612
+ "name": "performanceFee",
613
+ "type": "tuple"
614
+ },
615
+ {
616
+ "internalType": "bool",
617
+ "name": "isIntercepting",
618
+ "type": "bool"
619
+ },
620
+ {
621
+ "internalType": "bool",
622
+ "name": "isConfirmingApplication",
623
+ "type": "bool"
624
+ },
625
+ {
626
+ "internalType": "address",
627
+ "name": "wallet",
628
+ "type": "address"
629
+ }
630
+ ],
631
+ "internalType": "struct ISetup.PoolSetupInfo",
632
+ "name": "setup",
633
+ "type": "tuple"
634
+ }
635
+ ],
636
+ "name": "createPoolSetup",
637
+ "outputs": [],
638
+ "stateMutability": "nonpayable",
639
+ "type": "function"
640
+ },
641
+ {
642
+ "inputs": [
643
+ {
644
+ "internalType": "NftId",
645
+ "name": "productNftId",
646
+ "type": "uint96"
647
+ },
648
+ {
649
+ "components": [
650
+ {
651
+ "internalType": "contract IERC20Metadata",
652
+ "name": "token",
653
+ "type": "address"
654
+ },
655
+ {
656
+ "internalType": "contract TokenHandler",
657
+ "name": "tokenHandler",
658
+ "type": "address"
659
+ },
660
+ {
661
+ "internalType": "NftId",
662
+ "name": "distributionNftId",
663
+ "type": "uint96"
664
+ },
665
+ {
666
+ "internalType": "NftId",
667
+ "name": "poolNftId",
668
+ "type": "uint96"
669
+ },
670
+ {
671
+ "components": [
672
+ {
673
+ "internalType": "UFixed",
674
+ "name": "fractionalFee",
675
+ "type": "uint256"
676
+ },
677
+ {
678
+ "internalType": "uint256",
679
+ "name": "fixedFee",
680
+ "type": "uint256"
681
+ }
682
+ ],
683
+ "internalType": "struct Fee",
684
+ "name": "distributionFee",
685
+ "type": "tuple"
686
+ },
687
+ {
688
+ "components": [
689
+ {
690
+ "internalType": "UFixed",
691
+ "name": "fractionalFee",
692
+ "type": "uint256"
693
+ },
694
+ {
695
+ "internalType": "uint256",
696
+ "name": "fixedFee",
697
+ "type": "uint256"
698
+ }
699
+ ],
700
+ "internalType": "struct Fee",
701
+ "name": "productFee",
702
+ "type": "tuple"
703
+ },
704
+ {
705
+ "components": [
706
+ {
707
+ "internalType": "UFixed",
708
+ "name": "fractionalFee",
709
+ "type": "uint256"
710
+ },
711
+ {
712
+ "internalType": "uint256",
713
+ "name": "fixedFee",
714
+ "type": "uint256"
715
+ }
716
+ ],
717
+ "internalType": "struct Fee",
718
+ "name": "processingFee",
719
+ "type": "tuple"
720
+ },
721
+ {
722
+ "components": [
723
+ {
724
+ "internalType": "UFixed",
725
+ "name": "fractionalFee",
726
+ "type": "uint256"
727
+ },
728
+ {
729
+ "internalType": "uint256",
730
+ "name": "fixedFee",
731
+ "type": "uint256"
732
+ }
733
+ ],
734
+ "internalType": "struct Fee",
735
+ "name": "poolFee",
736
+ "type": "tuple"
737
+ },
738
+ {
739
+ "components": [
740
+ {
741
+ "internalType": "UFixed",
742
+ "name": "fractionalFee",
743
+ "type": "uint256"
744
+ },
745
+ {
746
+ "internalType": "uint256",
747
+ "name": "fixedFee",
748
+ "type": "uint256"
749
+ }
750
+ ],
751
+ "internalType": "struct Fee",
752
+ "name": "stakingFee",
753
+ "type": "tuple"
754
+ },
755
+ {
756
+ "components": [
757
+ {
758
+ "internalType": "UFixed",
759
+ "name": "fractionalFee",
760
+ "type": "uint256"
761
+ },
762
+ {
763
+ "internalType": "uint256",
764
+ "name": "fixedFee",
765
+ "type": "uint256"
766
+ }
767
+ ],
768
+ "internalType": "struct Fee",
769
+ "name": "performanceFee",
770
+ "type": "tuple"
771
+ },
772
+ {
773
+ "internalType": "bool",
774
+ "name": "isIntercepting",
775
+ "type": "bool"
776
+ },
777
+ {
778
+ "internalType": "address",
779
+ "name": "wallet",
780
+ "type": "address"
781
+ }
782
+ ],
783
+ "internalType": "struct ISetup.ProductSetupInfo",
784
+ "name": "setup",
785
+ "type": "tuple"
786
+ }
787
+ ],
788
+ "name": "createProductSetup",
789
+ "outputs": [],
790
+ "stateMutability": "nonpayable",
791
+ "type": "function"
792
+ },
793
+ {
794
+ "inputs": [
795
+ {
796
+ "internalType": "RiskId",
797
+ "name": "riskId",
798
+ "type": "bytes8"
799
+ },
800
+ {
801
+ "components": [
802
+ {
803
+ "internalType": "NftId",
804
+ "name": "productNftId",
805
+ "type": "uint96"
806
+ },
807
+ {
808
+ "internalType": "bytes",
809
+ "name": "data",
810
+ "type": "bytes"
811
+ }
812
+ ],
813
+ "internalType": "struct IRisk.RiskInfo",
814
+ "name": "risk",
815
+ "type": "tuple"
816
+ }
817
+ ],
818
+ "name": "createRisk",
819
+ "outputs": [],
820
+ "stateMutability": "nonpayable",
821
+ "type": "function"
822
+ },
823
+ {
824
+ "inputs": [
825
+ {
826
+ "internalType": "Key32",
827
+ "name": "key",
828
+ "type": "bytes32"
829
+ }
830
+ ],
831
+ "name": "exists",
832
+ "outputs": [
833
+ {
834
+ "internalType": "bool",
835
+ "name": "",
836
+ "type": "bool"
837
+ }
838
+ ],
839
+ "stateMutability": "view",
840
+ "type": "function"
841
+ },
842
+ {
843
+ "inputs": [
844
+ {
845
+ "internalType": "Key32",
846
+ "name": "key",
847
+ "type": "bytes32"
848
+ }
849
+ ],
850
+ "name": "get",
851
+ "outputs": [
852
+ {
853
+ "components": [
854
+ {
855
+ "components": [
856
+ {
857
+ "internalType": "ObjectType",
858
+ "name": "objectType",
859
+ "type": "uint8"
860
+ },
861
+ {
862
+ "internalType": "StateId",
863
+ "name": "state",
864
+ "type": "uint8"
865
+ },
866
+ {
867
+ "internalType": "address",
868
+ "name": "updatedBy",
869
+ "type": "address"
870
+ },
871
+ {
872
+ "internalType": "Blocknumber",
873
+ "name": "updatedIn",
874
+ "type": "uint32"
875
+ },
876
+ {
877
+ "internalType": "Blocknumber",
878
+ "name": "createdIn",
879
+ "type": "uint32"
880
+ }
881
+ ],
882
+ "internalType": "struct IKeyValueStore.Metadata",
883
+ "name": "metadata",
884
+ "type": "tuple"
885
+ },
886
+ {
887
+ "internalType": "bytes",
888
+ "name": "data",
889
+ "type": "bytes"
890
+ }
891
+ ],
892
+ "internalType": "struct IKeyValueStore.Value",
893
+ "name": "value",
894
+ "type": "tuple"
895
+ }
896
+ ],
897
+ "stateMutability": "view",
898
+ "type": "function"
899
+ },
900
+ {
901
+ "inputs": [],
902
+ "name": "getBundleManager",
903
+ "outputs": [
904
+ {
905
+ "internalType": "contract BundleManager",
906
+ "name": "",
907
+ "type": "address"
908
+ }
909
+ ],
910
+ "stateMutability": "view",
911
+ "type": "function"
912
+ },
913
+ {
914
+ "inputs": [],
915
+ "name": "getBundleService",
916
+ "outputs": [
917
+ {
918
+ "internalType": "contract IBundleService",
919
+ "name": "",
920
+ "type": "address"
921
+ }
922
+ ],
923
+ "stateMutability": "view",
924
+ "type": "function"
925
+ },
926
+ {
927
+ "inputs": [
928
+ {
929
+ "internalType": "Key32",
930
+ "name": "key",
931
+ "type": "bytes32"
932
+ }
933
+ ],
934
+ "name": "getData",
935
+ "outputs": [
936
+ {
937
+ "internalType": "bytes",
938
+ "name": "data",
939
+ "type": "bytes"
940
+ }
941
+ ],
942
+ "stateMutability": "view",
943
+ "type": "function"
944
+ },
945
+ {
946
+ "inputs": [],
947
+ "name": "getDistributionService",
948
+ "outputs": [
949
+ {
950
+ "internalType": "contract IDistributionService",
951
+ "name": "",
952
+ "type": "address"
953
+ }
954
+ ],
955
+ "stateMutability": "view",
956
+ "type": "function"
957
+ },
958
+ {
959
+ "inputs": [],
960
+ "name": "getInitialInfo",
961
+ "outputs": [
962
+ {
963
+ "components": [
964
+ {
965
+ "internalType": "NftId",
966
+ "name": "nftId",
967
+ "type": "uint96"
968
+ },
969
+ {
970
+ "internalType": "NftId",
971
+ "name": "parentNftId",
972
+ "type": "uint96"
973
+ },
974
+ {
975
+ "internalType": "ObjectType",
976
+ "name": "objectType",
977
+ "type": "uint8"
978
+ },
979
+ {
980
+ "internalType": "bool",
981
+ "name": "isInterceptor",
982
+ "type": "bool"
983
+ },
984
+ {
985
+ "internalType": "address",
986
+ "name": "objectAddress",
987
+ "type": "address"
988
+ },
989
+ {
990
+ "internalType": "address",
991
+ "name": "initialOwner",
992
+ "type": "address"
993
+ },
994
+ {
995
+ "internalType": "bytes",
996
+ "name": "data",
997
+ "type": "bytes"
998
+ }
999
+ ],
1000
+ "internalType": "struct IRegistry.ObjectInfo",
1001
+ "name": "",
1002
+ "type": "tuple"
1003
+ },
1004
+ {
1005
+ "internalType": "bytes",
1006
+ "name": "data",
1007
+ "type": "bytes"
1008
+ }
1009
+ ],
1010
+ "stateMutability": "view",
1011
+ "type": "function"
1012
+ },
1013
+ {
1014
+ "inputs": [
1015
+ {
1016
+ "internalType": "ObjectType",
1017
+ "name": "objectType",
1018
+ "type": "uint8"
1019
+ }
1020
+ ],
1021
+ "name": "getInitialState",
1022
+ "outputs": [
1023
+ {
1024
+ "internalType": "StateId",
1025
+ "name": "",
1026
+ "type": "uint8"
1027
+ }
1028
+ ],
1029
+ "stateMutability": "view",
1030
+ "type": "function"
1031
+ },
1032
+ {
1033
+ "inputs": [],
1034
+ "name": "getInstanceReader",
1035
+ "outputs": [
1036
+ {
1037
+ "internalType": "contract InstanceReader",
1038
+ "name": "",
1039
+ "type": "address"
1040
+ }
1041
+ ],
1042
+ "stateMutability": "view",
1043
+ "type": "function"
1044
+ },
1045
+ {
1046
+ "inputs": [
1047
+ {
1048
+ "internalType": "Key32",
1049
+ "name": "key",
1050
+ "type": "bytes32"
1051
+ }
1052
+ ],
1053
+ "name": "getMetadata",
1054
+ "outputs": [
1055
+ {
1056
+ "components": [
1057
+ {
1058
+ "internalType": "ObjectType",
1059
+ "name": "objectType",
1060
+ "type": "uint8"
1061
+ },
1062
+ {
1063
+ "internalType": "StateId",
1064
+ "name": "state",
1065
+ "type": "uint8"
1066
+ },
1067
+ {
1068
+ "internalType": "address",
1069
+ "name": "updatedBy",
1070
+ "type": "address"
1071
+ },
1072
+ {
1073
+ "internalType": "Blocknumber",
1074
+ "name": "updatedIn",
1075
+ "type": "uint32"
1076
+ },
1077
+ {
1078
+ "internalType": "Blocknumber",
1079
+ "name": "createdIn",
1080
+ "type": "uint32"
1081
+ }
1082
+ ],
1083
+ "internalType": "struct IKeyValueStore.Metadata",
1084
+ "name": "metadata",
1085
+ "type": "tuple"
1086
+ }
1087
+ ],
1088
+ "stateMutability": "view",
1089
+ "type": "function"
1090
+ },
1091
+ {
1092
+ "inputs": [],
1093
+ "name": "getNftId",
1094
+ "outputs": [
1095
+ {
1096
+ "internalType": "NftId",
1097
+ "name": "",
1098
+ "type": "uint96"
1099
+ }
1100
+ ],
1101
+ "stateMutability": "view",
1102
+ "type": "function"
1103
+ },
1104
+ {
1105
+ "inputs": [],
1106
+ "name": "getOwner",
1107
+ "outputs": [
1108
+ {
1109
+ "internalType": "address",
1110
+ "name": "",
1111
+ "type": "address"
1112
+ }
1113
+ ],
1114
+ "stateMutability": "view",
1115
+ "type": "function"
1116
+ },
1117
+ {
1118
+ "inputs": [],
1119
+ "name": "getPolicyService",
1120
+ "outputs": [
1121
+ {
1122
+ "internalType": "contract IPolicyService",
1123
+ "name": "",
1124
+ "type": "address"
1125
+ }
1126
+ ],
1127
+ "stateMutability": "view",
1128
+ "type": "function"
1129
+ },
1130
+ {
1131
+ "inputs": [],
1132
+ "name": "getPoolService",
1133
+ "outputs": [
1134
+ {
1135
+ "internalType": "contract IPoolService",
1136
+ "name": "",
1137
+ "type": "address"
1138
+ }
1139
+ ],
1140
+ "stateMutability": "view",
1141
+ "type": "function"
1142
+ },
1143
+ {
1144
+ "inputs": [],
1145
+ "name": "getProductService",
1146
+ "outputs": [
1147
+ {
1148
+ "internalType": "contract IProductService",
1149
+ "name": "",
1150
+ "type": "address"
1151
+ }
1152
+ ],
1153
+ "stateMutability": "view",
1154
+ "type": "function"
1155
+ },
1156
+ {
1157
+ "inputs": [],
1158
+ "name": "getRegistry",
1159
+ "outputs": [
1160
+ {
1161
+ "internalType": "contract IRegistry",
1162
+ "name": "",
1163
+ "type": "address"
1164
+ }
1165
+ ],
1166
+ "stateMutability": "view",
1167
+ "type": "function"
1168
+ },
1169
+ {
1170
+ "inputs": [
1171
+ {
1172
+ "internalType": "Key32",
1173
+ "name": "key",
1174
+ "type": "bytes32"
1175
+ }
1176
+ ],
1177
+ "name": "getState",
1178
+ "outputs": [
1179
+ {
1180
+ "internalType": "StateId",
1181
+ "name": "state",
1182
+ "type": "uint8"
1183
+ }
1184
+ ],
1185
+ "stateMutability": "view",
1186
+ "type": "function"
1187
+ },
1188
+ {
1189
+ "inputs": [
1190
+ {
1191
+ "internalType": "ObjectType",
1192
+ "name": "objectType",
1193
+ "type": "uint8"
1194
+ }
1195
+ ],
1196
+ "name": "hasLifecycle",
1197
+ "outputs": [
1198
+ {
1199
+ "internalType": "bool",
1200
+ "name": "",
1201
+ "type": "bool"
1202
+ }
1203
+ ],
1204
+ "stateMutability": "view",
1205
+ "type": "function"
1206
+ },
1207
+ {
1208
+ "inputs": [],
1209
+ "name": "isConsumingScheduledOp",
1210
+ "outputs": [
1211
+ {
1212
+ "internalType": "bytes4",
1213
+ "name": "",
1214
+ "type": "bytes4"
1215
+ }
1216
+ ],
1217
+ "stateMutability": "view",
1218
+ "type": "function"
1219
+ },
1220
+ {
1221
+ "inputs": [
1222
+ {
1223
+ "internalType": "ObjectType",
1224
+ "name": "objectType",
1225
+ "type": "uint8"
1226
+ },
1227
+ {
1228
+ "internalType": "StateId",
1229
+ "name": "fromId",
1230
+ "type": "uint8"
1231
+ },
1232
+ {
1233
+ "internalType": "StateId",
1234
+ "name": "toId",
1235
+ "type": "uint8"
1236
+ }
1237
+ ],
1238
+ "name": "isValidTransition",
1239
+ "outputs": [
1240
+ {
1241
+ "internalType": "bool",
1242
+ "name": "",
1243
+ "type": "bool"
1244
+ }
1245
+ ],
1246
+ "stateMutability": "view",
1247
+ "type": "function"
1248
+ },
1249
+ {
1250
+ "inputs": [],
1251
+ "name": "linkToRegisteredNftId",
1252
+ "outputs": [],
1253
+ "stateMutability": "nonpayable",
1254
+ "type": "function"
1255
+ },
1256
+ {
1257
+ "inputs": [
1258
+ {
1259
+ "internalType": "address",
1260
+ "name": "",
1261
+ "type": "address"
1262
+ }
1263
+ ],
1264
+ "name": "setAuthority",
1265
+ "outputs": [],
1266
+ "stateMutability": "nonpayable",
1267
+ "type": "function"
1268
+ },
1269
+ {
1270
+ "inputs": [
1271
+ {
1272
+ "internalType": "bytes4",
1273
+ "name": "interfaceId",
1274
+ "type": "bytes4"
1275
+ }
1276
+ ],
1277
+ "name": "supportsInterface",
1278
+ "outputs": [
1279
+ {
1280
+ "internalType": "bool",
1281
+ "name": "",
1282
+ "type": "bool"
1283
+ }
1284
+ ],
1285
+ "stateMutability": "view",
1286
+ "type": "function"
1287
+ },
1288
+ {
1289
+ "inputs": [
1290
+ {
1291
+ "internalType": "ObjectType",
1292
+ "name": "objectType",
1293
+ "type": "uint8"
1294
+ },
1295
+ {
1296
+ "internalType": "KeyId",
1297
+ "name": "id",
1298
+ "type": "bytes31"
1299
+ }
1300
+ ],
1301
+ "name": "toKey32",
1302
+ "outputs": [
1303
+ {
1304
+ "internalType": "Key32",
1305
+ "name": "",
1306
+ "type": "bytes32"
1307
+ }
1308
+ ],
1309
+ "stateMutability": "pure",
1310
+ "type": "function"
1311
+ },
1312
+ {
1313
+ "inputs": [
1314
+ {
1315
+ "internalType": "NftId",
1316
+ "name": "bundleNftId",
1317
+ "type": "uint96"
1318
+ },
1319
+ {
1320
+ "components": [
1321
+ {
1322
+ "internalType": "NftId",
1323
+ "name": "poolNftId",
1324
+ "type": "uint96"
1325
+ },
1326
+ {
1327
+ "components": [
1328
+ {
1329
+ "internalType": "UFixed",
1330
+ "name": "fractionalFee",
1331
+ "type": "uint256"
1332
+ },
1333
+ {
1334
+ "internalType": "uint256",
1335
+ "name": "fixedFee",
1336
+ "type": "uint256"
1337
+ }
1338
+ ],
1339
+ "internalType": "struct Fee",
1340
+ "name": "fee",
1341
+ "type": "tuple"
1342
+ },
1343
+ {
1344
+ "internalType": "bytes",
1345
+ "name": "filter",
1346
+ "type": "bytes"
1347
+ },
1348
+ {
1349
+ "internalType": "uint256",
1350
+ "name": "capitalAmount",
1351
+ "type": "uint256"
1352
+ },
1353
+ {
1354
+ "internalType": "uint256",
1355
+ "name": "lockedAmount",
1356
+ "type": "uint256"
1357
+ },
1358
+ {
1359
+ "internalType": "uint256",
1360
+ "name": "balanceAmount",
1361
+ "type": "uint256"
1362
+ },
1363
+ {
1364
+ "internalType": "uint256",
1365
+ "name": "lifetime",
1366
+ "type": "uint256"
1367
+ },
1368
+ {
1369
+ "internalType": "Timestamp",
1370
+ "name": "expiredAt",
1371
+ "type": "uint40"
1372
+ },
1373
+ {
1374
+ "internalType": "Timestamp",
1375
+ "name": "closedAt",
1376
+ "type": "uint40"
1377
+ }
1378
+ ],
1379
+ "internalType": "struct IBundle.BundleInfo",
1380
+ "name": "bundle",
1381
+ "type": "tuple"
1382
+ },
1383
+ {
1384
+ "internalType": "StateId",
1385
+ "name": "newState",
1386
+ "type": "uint8"
1387
+ }
1388
+ ],
1389
+ "name": "updateBundle",
1390
+ "outputs": [],
1391
+ "stateMutability": "nonpayable",
1392
+ "type": "function"
1393
+ },
1394
+ {
1395
+ "inputs": [
1396
+ {
1397
+ "internalType": "NftId",
1398
+ "name": "bundleNftId",
1399
+ "type": "uint96"
1400
+ },
1401
+ {
1402
+ "internalType": "StateId",
1403
+ "name": "newState",
1404
+ "type": "uint8"
1405
+ }
1406
+ ],
1407
+ "name": "updateBundleState",
1408
+ "outputs": [],
1409
+ "stateMutability": "nonpayable",
1410
+ "type": "function"
1411
+ },
6
1412
  {
7
1413
  "inputs": [
8
1414
  {
@@ -53,9 +1459,14 @@
53
1459
  "internalType": "struct ISetup.DistributionSetupInfo",
54
1460
  "name": "setup",
55
1461
  "type": "tuple"
1462
+ },
1463
+ {
1464
+ "internalType": "StateId",
1465
+ "name": "newState",
1466
+ "type": "uint8"
56
1467
  }
57
1468
  ],
58
- "name": "createDistributionSetup",
1469
+ "name": "updateDistributionSetup",
59
1470
  "outputs": [],
60
1471
  "stateMutability": "nonpayable",
61
1472
  "type": "function"
@@ -67,6 +1478,147 @@
67
1478
  "name": "distributionNftId",
68
1479
  "type": "uint96"
69
1480
  },
1481
+ {
1482
+ "internalType": "StateId",
1483
+ "name": "newState",
1484
+ "type": "uint8"
1485
+ }
1486
+ ],
1487
+ "name": "updateDistributionSetupState",
1488
+ "outputs": [],
1489
+ "stateMutability": "nonpayable",
1490
+ "type": "function"
1491
+ },
1492
+ {
1493
+ "inputs": [
1494
+ {
1495
+ "internalType": "NftId",
1496
+ "name": "policyNftId",
1497
+ "type": "uint96"
1498
+ },
1499
+ {
1500
+ "components": [
1501
+ {
1502
+ "internalType": "NftId",
1503
+ "name": "productNftId",
1504
+ "type": "uint96"
1505
+ },
1506
+ {
1507
+ "internalType": "NftId",
1508
+ "name": "bundleNftId",
1509
+ "type": "uint96"
1510
+ },
1511
+ {
1512
+ "internalType": "ReferralId",
1513
+ "name": "referralId",
1514
+ "type": "bytes8"
1515
+ },
1516
+ {
1517
+ "internalType": "RiskId",
1518
+ "name": "riskId",
1519
+ "type": "bytes8"
1520
+ },
1521
+ {
1522
+ "internalType": "uint256",
1523
+ "name": "sumInsuredAmount",
1524
+ "type": "uint256"
1525
+ },
1526
+ {
1527
+ "internalType": "uint256",
1528
+ "name": "premiumAmount",
1529
+ "type": "uint256"
1530
+ },
1531
+ {
1532
+ "internalType": "uint256",
1533
+ "name": "premiumPaidAmount",
1534
+ "type": "uint256"
1535
+ },
1536
+ {
1537
+ "internalType": "uint256",
1538
+ "name": "lifetime",
1539
+ "type": "uint256"
1540
+ },
1541
+ {
1542
+ "internalType": "bytes",
1543
+ "name": "applicationData",
1544
+ "type": "bytes"
1545
+ },
1546
+ {
1547
+ "internalType": "bytes",
1548
+ "name": "policyData",
1549
+ "type": "bytes"
1550
+ },
1551
+ {
1552
+ "internalType": "uint16",
1553
+ "name": "claimsCount",
1554
+ "type": "uint16"
1555
+ },
1556
+ {
1557
+ "internalType": "uint16",
1558
+ "name": "openClaimsCount",
1559
+ "type": "uint16"
1560
+ },
1561
+ {
1562
+ "internalType": "uint256",
1563
+ "name": "payoutAmount",
1564
+ "type": "uint256"
1565
+ },
1566
+ {
1567
+ "internalType": "Timestamp",
1568
+ "name": "activatedAt",
1569
+ "type": "uint40"
1570
+ },
1571
+ {
1572
+ "internalType": "Timestamp",
1573
+ "name": "expiredAt",
1574
+ "type": "uint40"
1575
+ },
1576
+ {
1577
+ "internalType": "Timestamp",
1578
+ "name": "closedAt",
1579
+ "type": "uint40"
1580
+ }
1581
+ ],
1582
+ "internalType": "struct IPolicy.PolicyInfo",
1583
+ "name": "policy",
1584
+ "type": "tuple"
1585
+ },
1586
+ {
1587
+ "internalType": "StateId",
1588
+ "name": "newState",
1589
+ "type": "uint8"
1590
+ }
1591
+ ],
1592
+ "name": "updatePolicy",
1593
+ "outputs": [],
1594
+ "stateMutability": "nonpayable",
1595
+ "type": "function"
1596
+ },
1597
+ {
1598
+ "inputs": [
1599
+ {
1600
+ "internalType": "NftId",
1601
+ "name": "policyNftId",
1602
+ "type": "uint96"
1603
+ },
1604
+ {
1605
+ "internalType": "StateId",
1606
+ "name": "newState",
1607
+ "type": "uint8"
1608
+ }
1609
+ ],
1610
+ "name": "updatePolicyState",
1611
+ "outputs": [],
1612
+ "stateMutability": "nonpayable",
1613
+ "type": "function"
1614
+ },
1615
+ {
1616
+ "inputs": [
1617
+ {
1618
+ "internalType": "NftId",
1619
+ "name": "poolNftId",
1620
+ "type": "uint96"
1621
+ },
70
1622
  {
71
1623
  "components": [
72
1624
  {
@@ -140,6 +1692,11 @@
140
1692
  "name": "isIntercepting",
141
1693
  "type": "bool"
142
1694
  },
1695
+ {
1696
+ "internalType": "bool",
1697
+ "name": "isConfirmingApplication",
1698
+ "type": "bool"
1699
+ },
143
1700
  {
144
1701
  "internalType": "address",
145
1702
  "name": "wallet",
@@ -149,9 +1706,32 @@
149
1706
  "internalType": "struct ISetup.PoolSetupInfo",
150
1707
  "name": "setup",
151
1708
  "type": "tuple"
1709
+ },
1710
+ {
1711
+ "internalType": "StateId",
1712
+ "name": "newState",
1713
+ "type": "uint8"
152
1714
  }
153
1715
  ],
154
- "name": "createPoolSetup",
1716
+ "name": "updatePoolSetup",
1717
+ "outputs": [],
1718
+ "stateMutability": "nonpayable",
1719
+ "type": "function"
1720
+ },
1721
+ {
1722
+ "inputs": [
1723
+ {
1724
+ "internalType": "NftId",
1725
+ "name": "poolNftId",
1726
+ "type": "uint96"
1727
+ },
1728
+ {
1729
+ "internalType": "StateId",
1730
+ "name": "newState",
1731
+ "type": "uint8"
1732
+ }
1733
+ ],
1734
+ "name": "updatePoolSetupState",
155
1735
  "outputs": [],
156
1736
  "stateMutability": "nonpayable",
157
1737
  "type": "function"
@@ -286,61 +1866,102 @@
286
1866
  "internalType": "struct Fee",
287
1867
  "name": "performanceFee",
288
1868
  "type": "tuple"
1869
+ },
1870
+ {
1871
+ "internalType": "bool",
1872
+ "name": "isIntercepting",
1873
+ "type": "bool"
1874
+ },
1875
+ {
1876
+ "internalType": "address",
1877
+ "name": "wallet",
1878
+ "type": "address"
289
1879
  }
290
1880
  ],
291
1881
  "internalType": "struct ISetup.ProductSetupInfo",
292
1882
  "name": "setup",
293
1883
  "type": "tuple"
1884
+ },
1885
+ {
1886
+ "internalType": "StateId",
1887
+ "name": "newState",
1888
+ "type": "uint8"
294
1889
  }
295
1890
  ],
296
- "name": "createProductSetup",
1891
+ "name": "updateProductSetup",
297
1892
  "outputs": [],
298
1893
  "stateMutability": "nonpayable",
299
1894
  "type": "function"
300
1895
  },
301
1896
  {
302
- "inputs": [],
303
- "name": "getComponentOwnerService",
304
- "outputs": [
1897
+ "inputs": [
305
1898
  {
306
- "internalType": "contract IComponentOwnerService",
307
- "name": "",
308
- "type": "address"
1899
+ "internalType": "NftId",
1900
+ "name": "productNftId",
1901
+ "type": "uint96"
1902
+ },
1903
+ {
1904
+ "internalType": "StateId",
1905
+ "name": "newState",
1906
+ "type": "uint8"
309
1907
  }
310
1908
  ],
311
- "stateMutability": "view",
1909
+ "name": "updateProductSetupState",
1910
+ "outputs": [],
1911
+ "stateMutability": "nonpayable",
312
1912
  "type": "function"
313
1913
  },
314
1914
  {
315
- "inputs": [],
316
- "name": "getInstanceReader",
317
- "outputs": [
1915
+ "inputs": [
318
1916
  {
319
- "internalType": "contract InstanceReader",
320
- "name": "",
321
- "type": "address"
1917
+ "internalType": "RiskId",
1918
+ "name": "riskId",
1919
+ "type": "bytes8"
1920
+ },
1921
+ {
1922
+ "components": [
1923
+ {
1924
+ "internalType": "NftId",
1925
+ "name": "productNftId",
1926
+ "type": "uint96"
1927
+ },
1928
+ {
1929
+ "internalType": "bytes",
1930
+ "name": "data",
1931
+ "type": "bytes"
1932
+ }
1933
+ ],
1934
+ "internalType": "struct IRisk.RiskInfo",
1935
+ "name": "risk",
1936
+ "type": "tuple"
1937
+ },
1938
+ {
1939
+ "internalType": "StateId",
1940
+ "name": "newState",
1941
+ "type": "uint8"
322
1942
  }
323
1943
  ],
324
- "stateMutability": "view",
1944
+ "name": "updateRisk",
1945
+ "outputs": [],
1946
+ "stateMutability": "nonpayable",
325
1947
  "type": "function"
326
1948
  },
327
1949
  {
328
1950
  "inputs": [
329
1951
  {
330
- "internalType": "bytes4",
331
- "name": "interfaceId",
332
- "type": "bytes4"
333
- }
334
- ],
335
- "name": "supportsInterface",
336
- "outputs": [
1952
+ "internalType": "RiskId",
1953
+ "name": "riskId",
1954
+ "type": "bytes8"
1955
+ },
337
1956
  {
338
- "internalType": "bool",
339
- "name": "",
340
- "type": "bool"
1957
+ "internalType": "StateId",
1958
+ "name": "newState",
1959
+ "type": "uint8"
341
1960
  }
342
1961
  ],
343
- "stateMutability": "view",
1962
+ "name": "updateRiskState",
1963
+ "outputs": [],
1964
+ "stateMutability": "nonpayable",
344
1965
  "type": "function"
345
1966
  }
346
1967
  ],