@etherisc/gif-next 0.0.2-b9e9dc3-713 → 0.0.2-bc11089-132

Sign up to get free protection for your applications and to get access to all the features.
Files changed (256) 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 +155 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +177 -15
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  7. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +117 -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/Pool.sol/Pool.dbg.json +1 -1
  13. package/artifacts/contracts/components/Pool.sol/Pool.json +209 -16
  14. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  15. package/artifacts/contracts/components/Product.sol/Product.json +179 -50
  16. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +1 -1
  17. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +1 -1
  18. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  20. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  22. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  24. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  31. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
  35. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  36. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
  37. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  38. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  39. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  40. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  41. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  42. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +788 -0
  43. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  44. package/artifacts/contracts/instance/{AccessManagedSimple.sol/AccessManagedSimple.json → Cloneable.sol/Cloneable.json} +86 -2
  45. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  46. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1408 -22
  47. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  48. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +448 -0
  49. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  50. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +120 -0
  51. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  52. package/artifacts/contracts/instance/Instance.sol/Instance.json +200 -624
  53. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  54. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +283 -143
  55. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +4 -0
  56. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +763 -0
  57. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  58. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +202 -37
  59. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  60. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +344 -56
  61. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  62. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +97 -13
  63. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  64. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +285 -0
  65. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
  66. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +40 -0
  67. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  68. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  69. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  70. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  71. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +2 -2
  72. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  73. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +2 -2
  74. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  75. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +54 -22
  76. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  77. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  78. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  79. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  80. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  81. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  82. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  83. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +923 -0
  84. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  85. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +440 -0
  86. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  87. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +18 -18
  88. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  89. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +684 -0
  90. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  91. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +428 -0
  92. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  93. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +669 -0
  94. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  95. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  96. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  97. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +664 -0
  98. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  99. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +9 -71
  100. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  101. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +17 -232
  102. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  103. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +984 -0
  104. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  105. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +464 -0
  106. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  107. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +718 -0
  108. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  109. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +428 -0
  110. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  111. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +768 -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/IRegistry.sol/IRegistry.dbg.json +1 -1
  116. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +201 -0
  117. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  118. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +94 -19
  119. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  120. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  121. package/artifacts/contracts/registry/Registry.sol/Registry.json +172 -49
  122. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  123. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +61 -29
  124. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  125. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +47 -34
  126. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  127. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +410 -0
  128. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  129. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  130. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  131. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  132. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  133. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  134. package/artifacts/contracts/{instance/base → shared}/IService.sol/IService.json +1 -1
  135. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  136. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  137. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +2 -2
  138. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  139. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +2 -2
  140. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  141. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +4 -4
  142. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +4 -0
  143. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.json +442 -0
  144. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  145. package/artifacts/contracts/{instance/base/ServiceBase.sol/ServiceBase.json → shared/Service.sol/Service.json} +2 -2
  146. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  147. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  148. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  149. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  150. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  151. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  152. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +4 -4
  153. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  154. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  155. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  156. package/artifacts/contracts/test/TestService.sol/TestService.json +11 -11
  157. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  158. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  159. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  160. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  161. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +2 -2
  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/VersionLib.json +2 -2
  185. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  186. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  187. package/contracts/components/BaseComponent.sol +73 -11
  188. package/contracts/components/Distribution.sol +15 -18
  189. package/contracts/components/IBaseComponent.sol +8 -0
  190. package/contracts/components/IDistributionComponent.sol +1 -0
  191. package/contracts/components/IPoolComponent.sol +5 -1
  192. package/contracts/components/Pool.sol +43 -31
  193. package/contracts/components/Product.sol +42 -47
  194. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +23 -0
  195. package/contracts/instance/BundleManager.sol +129 -0
  196. package/contracts/instance/Cloneable.sol +46 -0
  197. package/contracts/instance/IInstance.sol +41 -7
  198. package/contracts/instance/IInstanceBase.sol +26 -0
  199. package/contracts/instance/IInstanceService.sol +29 -8
  200. package/contracts/instance/Instance.sol +66 -226
  201. package/contracts/instance/InstanceAccessManager.sol +94 -78
  202. package/contracts/instance/InstanceBase.sol +41 -0
  203. package/contracts/instance/InstanceReader.sol +36 -1
  204. package/contracts/instance/InstanceService.sol +245 -47
  205. package/contracts/instance/InstanceServiceManager.sol +6 -5
  206. package/contracts/instance/ObjectManager.sol +101 -0
  207. package/contracts/instance/base/ComponentServiceBase.sol +44 -21
  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 +260 -0
  212. package/contracts/instance/service/BundleServiceManager.sol +54 -0
  213. package/contracts/instance/service/ComponentOwnerService.sol +5 -5
  214. package/contracts/instance/service/DistributionService.sol +118 -0
  215. package/contracts/instance/service/DistributionServiceManager.sol +54 -0
  216. package/contracts/instance/service/IBundleService.sol +45 -0
  217. package/contracts/instance/service/IComponentOwnerService.sol +1 -1
  218. package/contracts/instance/service/IDistributionService.sol +1 -1
  219. package/contracts/instance/service/IPolicyService.sol +87 -0
  220. package/contracts/instance/service/IPoolService.sol +7 -24
  221. package/contracts/instance/service/IProductService.sol +7 -74
  222. package/contracts/instance/service/PolicyService.sol +508 -0
  223. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  224. package/contracts/instance/service/PoolService.sol +124 -0
  225. package/contracts/instance/service/PoolServiceManager.sol +54 -0
  226. package/contracts/instance/service/ProductService.sol +173 -0
  227. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  228. package/contracts/registry/IRegistry.sol +26 -2
  229. package/contracts/registry/IRegistryService.sol +34 -19
  230. package/contracts/registry/Registry.sol +61 -36
  231. package/contracts/registry/RegistryService.sol +42 -124
  232. package/contracts/registry/RegistryServiceManager.sol +21 -5
  233. package/contracts/registry/TokenRegistry.sol +111 -0
  234. package/contracts/shared/ERC165.sol +6 -2
  235. package/contracts/{instance/base → shared}/IService.sol +3 -3
  236. package/contracts/shared/NftOwnable.sol +2 -4
  237. package/contracts/shared/Registerable.sol +1 -0
  238. package/contracts/shared/RegisterableUpgradable.sol +16 -0
  239. package/contracts/shared/Service.sol +55 -0
  240. package/contracts/test/TestService.sol +3 -5
  241. package/contracts/types/NftIdSet.sol +26 -24
  242. package/contracts/types/RoleId.sol +10 -1
  243. package/contracts/types/StateId.sol +4 -0
  244. package/contracts/types/Version.sol +4 -1
  245. package/package.json +1 -1
  246. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
  247. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
  248. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1119
  249. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
  250. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
  251. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  252. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  253. package/contracts/instance/AccessManagedSimple.sol +0 -114
  254. package/contracts/instance/AccessManagerSimple.sol +0 -682
  255. package/contracts/instance/IAccessManagerSimple.sol +0 -391
  256. package/contracts/instance/base/ServiceBase.sol +0 -44
@@ -3,6 +3,249 @@
3
3
  "contractName": "IInstance",
4
4
  "sourceName": "contracts/instance/IInstance.sol",
5
5
  "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "ObjectType",
10
+ "name": "objectType",
11
+ "type": "uint8"
12
+ },
13
+ {
14
+ "internalType": "StateId",
15
+ "name": "fromStateId",
16
+ "type": "uint8"
17
+ },
18
+ {
19
+ "internalType": "StateId",
20
+ "name": "toStateId",
21
+ "type": "uint8"
22
+ }
23
+ ],
24
+ "name": "ErrorInvalidStateTransition",
25
+ "type": "error"
26
+ },
27
+ {
28
+ "inputs": [
29
+ {
30
+ "internalType": "NftId",
31
+ "name": "nftId",
32
+ "type": "uint96"
33
+ },
34
+ {
35
+ "internalType": "ObjectType",
36
+ "name": "objectType",
37
+ "type": "uint8"
38
+ }
39
+ ],
40
+ "name": "ErrorNoLifecycle",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "anonymous": false,
45
+ "inputs": [
46
+ {
47
+ "indexed": false,
48
+ "internalType": "ObjectType",
49
+ "name": "objectType",
50
+ "type": "uint8"
51
+ },
52
+ {
53
+ "indexed": false,
54
+ "internalType": "KeyId",
55
+ "name": "keyId",
56
+ "type": "bytes31"
57
+ },
58
+ {
59
+ "indexed": false,
60
+ "internalType": "StateId",
61
+ "name": "state",
62
+ "type": "uint8"
63
+ },
64
+ {
65
+ "indexed": false,
66
+ "internalType": "address",
67
+ "name": "createdBy",
68
+ "type": "address"
69
+ },
70
+ {
71
+ "indexed": false,
72
+ "internalType": "address",
73
+ "name": "txOrigin",
74
+ "type": "address"
75
+ }
76
+ ],
77
+ "name": "LogInfoCreated",
78
+ "type": "event"
79
+ },
80
+ {
81
+ "anonymous": false,
82
+ "inputs": [
83
+ {
84
+ "indexed": false,
85
+ "internalType": "ObjectType",
86
+ "name": "objectType",
87
+ "type": "uint8"
88
+ },
89
+ {
90
+ "indexed": false,
91
+ "internalType": "KeyId",
92
+ "name": "keyId",
93
+ "type": "bytes31"
94
+ },
95
+ {
96
+ "indexed": false,
97
+ "internalType": "StateId",
98
+ "name": "state",
99
+ "type": "uint8"
100
+ },
101
+ {
102
+ "indexed": false,
103
+ "internalType": "address",
104
+ "name": "updatedBy",
105
+ "type": "address"
106
+ },
107
+ {
108
+ "indexed": false,
109
+ "internalType": "address",
110
+ "name": "txOrigin",
111
+ "type": "address"
112
+ },
113
+ {
114
+ "indexed": false,
115
+ "internalType": "Blocknumber",
116
+ "name": "lastUpdatedIn",
117
+ "type": "uint32"
118
+ }
119
+ ],
120
+ "name": "LogInfoUpdated",
121
+ "type": "event"
122
+ },
123
+ {
124
+ "anonymous": false,
125
+ "inputs": [
126
+ {
127
+ "indexed": false,
128
+ "internalType": "ObjectType",
129
+ "name": "objectType",
130
+ "type": "uint8"
131
+ },
132
+ {
133
+ "indexed": false,
134
+ "internalType": "KeyId",
135
+ "name": "keyId",
136
+ "type": "bytes31"
137
+ },
138
+ {
139
+ "indexed": false,
140
+ "internalType": "StateId",
141
+ "name": "stateOld",
142
+ "type": "uint8"
143
+ },
144
+ {
145
+ "indexed": false,
146
+ "internalType": "StateId",
147
+ "name": "stateNew",
148
+ "type": "uint8"
149
+ },
150
+ {
151
+ "indexed": false,
152
+ "internalType": "address",
153
+ "name": "updatedBy",
154
+ "type": "address"
155
+ },
156
+ {
157
+ "indexed": false,
158
+ "internalType": "address",
159
+ "name": "txOrigin",
160
+ "type": "address"
161
+ },
162
+ {
163
+ "indexed": false,
164
+ "internalType": "Blocknumber",
165
+ "name": "lastUpdatedIn",
166
+ "type": "uint32"
167
+ }
168
+ ],
169
+ "name": "LogStateUpdated",
170
+ "type": "event"
171
+ },
172
+ {
173
+ "inputs": [
174
+ {
175
+ "internalType": "NftId",
176
+ "name": "bundleNftId",
177
+ "type": "uint96"
178
+ },
179
+ {
180
+ "components": [
181
+ {
182
+ "internalType": "NftId",
183
+ "name": "poolNftId",
184
+ "type": "uint96"
185
+ },
186
+ {
187
+ "components": [
188
+ {
189
+ "internalType": "UFixed",
190
+ "name": "fractionalFee",
191
+ "type": "uint256"
192
+ },
193
+ {
194
+ "internalType": "uint256",
195
+ "name": "fixedFee",
196
+ "type": "uint256"
197
+ }
198
+ ],
199
+ "internalType": "struct Fee",
200
+ "name": "fee",
201
+ "type": "tuple"
202
+ },
203
+ {
204
+ "internalType": "bytes",
205
+ "name": "filter",
206
+ "type": "bytes"
207
+ },
208
+ {
209
+ "internalType": "uint256",
210
+ "name": "capitalAmount",
211
+ "type": "uint256"
212
+ },
213
+ {
214
+ "internalType": "uint256",
215
+ "name": "lockedAmount",
216
+ "type": "uint256"
217
+ },
218
+ {
219
+ "internalType": "uint256",
220
+ "name": "balanceAmount",
221
+ "type": "uint256"
222
+ },
223
+ {
224
+ "internalType": "uint256",
225
+ "name": "lifetime",
226
+ "type": "uint256"
227
+ },
228
+ {
229
+ "internalType": "Timestamp",
230
+ "name": "expiredAt",
231
+ "type": "uint40"
232
+ },
233
+ {
234
+ "internalType": "Timestamp",
235
+ "name": "closedAt",
236
+ "type": "uint40"
237
+ }
238
+ ],
239
+ "internalType": "struct IBundle.BundleInfo",
240
+ "name": "bundle",
241
+ "type": "tuple"
242
+ }
243
+ ],
244
+ "name": "createBundle",
245
+ "outputs": [],
246
+ "stateMutability": "nonpayable",
247
+ "type": "function"
248
+ },
6
249
  {
7
250
  "inputs": [
8
251
  {
@@ -64,7 +307,107 @@
64
307
  "inputs": [
65
308
  {
66
309
  "internalType": "NftId",
67
- "name": "distributionNftId",
310
+ "name": "policyNftId",
311
+ "type": "uint96"
312
+ },
313
+ {
314
+ "components": [
315
+ {
316
+ "internalType": "NftId",
317
+ "name": "productNftId",
318
+ "type": "uint96"
319
+ },
320
+ {
321
+ "internalType": "NftId",
322
+ "name": "bundleNftId",
323
+ "type": "uint96"
324
+ },
325
+ {
326
+ "internalType": "ReferralId",
327
+ "name": "referralId",
328
+ "type": "bytes8"
329
+ },
330
+ {
331
+ "internalType": "RiskId",
332
+ "name": "riskId",
333
+ "type": "bytes8"
334
+ },
335
+ {
336
+ "internalType": "uint256",
337
+ "name": "sumInsuredAmount",
338
+ "type": "uint256"
339
+ },
340
+ {
341
+ "internalType": "uint256",
342
+ "name": "premiumAmount",
343
+ "type": "uint256"
344
+ },
345
+ {
346
+ "internalType": "uint256",
347
+ "name": "premiumPaidAmount",
348
+ "type": "uint256"
349
+ },
350
+ {
351
+ "internalType": "uint256",
352
+ "name": "lifetime",
353
+ "type": "uint256"
354
+ },
355
+ {
356
+ "internalType": "bytes",
357
+ "name": "applicationData",
358
+ "type": "bytes"
359
+ },
360
+ {
361
+ "internalType": "bytes",
362
+ "name": "policyData",
363
+ "type": "bytes"
364
+ },
365
+ {
366
+ "internalType": "uint16",
367
+ "name": "claimsCount",
368
+ "type": "uint16"
369
+ },
370
+ {
371
+ "internalType": "uint16",
372
+ "name": "openClaimsCount",
373
+ "type": "uint16"
374
+ },
375
+ {
376
+ "internalType": "uint256",
377
+ "name": "payoutAmount",
378
+ "type": "uint256"
379
+ },
380
+ {
381
+ "internalType": "Timestamp",
382
+ "name": "activatedAt",
383
+ "type": "uint40"
384
+ },
385
+ {
386
+ "internalType": "Timestamp",
387
+ "name": "expiredAt",
388
+ "type": "uint40"
389
+ },
390
+ {
391
+ "internalType": "Timestamp",
392
+ "name": "closedAt",
393
+ "type": "uint40"
394
+ }
395
+ ],
396
+ "internalType": "struct IPolicy.PolicyInfo",
397
+ "name": "policy",
398
+ "type": "tuple"
399
+ }
400
+ ],
401
+ "name": "createPolicy",
402
+ "outputs": [],
403
+ "stateMutability": "nonpayable",
404
+ "type": "function"
405
+ },
406
+ {
407
+ "inputs": [
408
+ {
409
+ "internalType": "NftId",
410
+ "name": "poolNftId",
68
411
  "type": "uint96"
69
412
  },
70
413
  {
@@ -140,6 +483,11 @@
140
483
  "name": "isIntercepting",
141
484
  "type": "bool"
142
485
  },
486
+ {
487
+ "internalType": "bool",
488
+ "name": "isConfirmingApplication",
489
+ "type": "bool"
490
+ },
143
491
  {
144
492
  "internalType": "address",
145
493
  "name": "wallet",
@@ -286,6 +634,16 @@
286
634
  "internalType": "struct Fee",
287
635
  "name": "performanceFee",
288
636
  "type": "tuple"
637
+ },
638
+ {
639
+ "internalType": "bool",
640
+ "name": "isIntercepting",
641
+ "type": "bool"
642
+ },
643
+ {
644
+ "internalType": "address",
645
+ "name": "wallet",
646
+ "type": "address"
289
647
  }
290
648
  ],
291
649
  "internalType": "struct ISetup.ProductSetupInfo",
@@ -299,26 +657,49 @@
299
657
  "type": "function"
300
658
  },
301
659
  {
302
- "inputs": [],
303
- "name": "getComponentOwnerService",
304
- "outputs": [
660
+ "inputs": [
305
661
  {
306
- "internalType": "contract IComponentOwnerService",
307
- "name": "",
308
- "type": "address"
662
+ "internalType": "RiskId",
663
+ "name": "riskId",
664
+ "type": "bytes8"
665
+ },
666
+ {
667
+ "components": [
668
+ {
669
+ "internalType": "NftId",
670
+ "name": "productNftId",
671
+ "type": "uint96"
672
+ },
673
+ {
674
+ "internalType": "bytes",
675
+ "name": "data",
676
+ "type": "bytes"
677
+ }
678
+ ],
679
+ "internalType": "struct IRisk.RiskInfo",
680
+ "name": "risk",
681
+ "type": "tuple"
309
682
  }
310
683
  ],
311
- "stateMutability": "view",
684
+ "name": "createRisk",
685
+ "outputs": [],
686
+ "stateMutability": "nonpayable",
312
687
  "type": "function"
313
688
  },
314
689
  {
315
- "inputs": [],
316
- "name": "getInstanceReader",
690
+ "inputs": [
691
+ {
692
+ "internalType": "Key32",
693
+ "name": "key",
694
+ "type": "bytes32"
695
+ }
696
+ ],
697
+ "name": "exists",
317
698
  "outputs": [
318
699
  {
319
- "internalType": "contract InstanceReader",
700
+ "internalType": "bool",
320
701
  "name": "",
321
- "type": "address"
702
+ "type": "bool"
322
703
  }
323
704
  ],
324
705
  "stateMutability": "view",
@@ -327,20 +708,1025 @@
327
708
  {
328
709
  "inputs": [
329
710
  {
330
- "internalType": "bytes4",
331
- "name": "interfaceId",
332
- "type": "bytes4"
711
+ "internalType": "Key32",
712
+ "name": "key",
713
+ "type": "bytes32"
333
714
  }
334
715
  ],
335
- "name": "supportsInterface",
716
+ "name": "get",
336
717
  "outputs": [
337
718
  {
338
- "internalType": "bool",
339
- "name": "",
340
- "type": "bool"
341
- }
342
- ],
343
- "stateMutability": "view",
719
+ "components": [
720
+ {
721
+ "components": [
722
+ {
723
+ "internalType": "ObjectType",
724
+ "name": "objectType",
725
+ "type": "uint8"
726
+ },
727
+ {
728
+ "internalType": "StateId",
729
+ "name": "state",
730
+ "type": "uint8"
731
+ },
732
+ {
733
+ "internalType": "address",
734
+ "name": "updatedBy",
735
+ "type": "address"
736
+ },
737
+ {
738
+ "internalType": "Blocknumber",
739
+ "name": "updatedIn",
740
+ "type": "uint32"
741
+ },
742
+ {
743
+ "internalType": "Blocknumber",
744
+ "name": "createdIn",
745
+ "type": "uint32"
746
+ }
747
+ ],
748
+ "internalType": "struct IKeyValueStore.Metadata",
749
+ "name": "metadata",
750
+ "type": "tuple"
751
+ },
752
+ {
753
+ "internalType": "bytes",
754
+ "name": "data",
755
+ "type": "bytes"
756
+ }
757
+ ],
758
+ "internalType": "struct IKeyValueStore.Value",
759
+ "name": "value",
760
+ "type": "tuple"
761
+ }
762
+ ],
763
+ "stateMutability": "view",
764
+ "type": "function"
765
+ },
766
+ {
767
+ "inputs": [],
768
+ "name": "getBundleManager",
769
+ "outputs": [
770
+ {
771
+ "internalType": "contract BundleManager",
772
+ "name": "",
773
+ "type": "address"
774
+ }
775
+ ],
776
+ "stateMutability": "view",
777
+ "type": "function"
778
+ },
779
+ {
780
+ "inputs": [],
781
+ "name": "getBundleService",
782
+ "outputs": [
783
+ {
784
+ "internalType": "contract IBundleService",
785
+ "name": "",
786
+ "type": "address"
787
+ }
788
+ ],
789
+ "stateMutability": "view",
790
+ "type": "function"
791
+ },
792
+ {
793
+ "inputs": [],
794
+ "name": "getComponentOwnerService",
795
+ "outputs": [
796
+ {
797
+ "internalType": "contract IComponentOwnerService",
798
+ "name": "",
799
+ "type": "address"
800
+ }
801
+ ],
802
+ "stateMutability": "view",
803
+ "type": "function"
804
+ },
805
+ {
806
+ "inputs": [
807
+ {
808
+ "internalType": "Key32",
809
+ "name": "key",
810
+ "type": "bytes32"
811
+ }
812
+ ],
813
+ "name": "getData",
814
+ "outputs": [
815
+ {
816
+ "internalType": "bytes",
817
+ "name": "data",
818
+ "type": "bytes"
819
+ }
820
+ ],
821
+ "stateMutability": "view",
822
+ "type": "function"
823
+ },
824
+ {
825
+ "inputs": [],
826
+ "name": "getDistributionService",
827
+ "outputs": [
828
+ {
829
+ "internalType": "contract IDistributionService",
830
+ "name": "",
831
+ "type": "address"
832
+ }
833
+ ],
834
+ "stateMutability": "view",
835
+ "type": "function"
836
+ },
837
+ {
838
+ "inputs": [
839
+ {
840
+ "internalType": "ObjectType",
841
+ "name": "objectType",
842
+ "type": "uint8"
843
+ }
844
+ ],
845
+ "name": "getInitialState",
846
+ "outputs": [
847
+ {
848
+ "internalType": "StateId",
849
+ "name": "",
850
+ "type": "uint8"
851
+ }
852
+ ],
853
+ "stateMutability": "view",
854
+ "type": "function"
855
+ },
856
+ {
857
+ "inputs": [],
858
+ "name": "getInstanceAccessManager",
859
+ "outputs": [
860
+ {
861
+ "internalType": "contract InstanceAccessManager",
862
+ "name": "",
863
+ "type": "address"
864
+ }
865
+ ],
866
+ "stateMutability": "view",
867
+ "type": "function"
868
+ },
869
+ {
870
+ "inputs": [],
871
+ "name": "getInstanceReader",
872
+ "outputs": [
873
+ {
874
+ "internalType": "contract InstanceReader",
875
+ "name": "",
876
+ "type": "address"
877
+ }
878
+ ],
879
+ "stateMutability": "view",
880
+ "type": "function"
881
+ },
882
+ {
883
+ "inputs": [
884
+ {
885
+ "internalType": "Key32",
886
+ "name": "key",
887
+ "type": "bytes32"
888
+ }
889
+ ],
890
+ "name": "getMetadata",
891
+ "outputs": [
892
+ {
893
+ "components": [
894
+ {
895
+ "internalType": "ObjectType",
896
+ "name": "objectType",
897
+ "type": "uint8"
898
+ },
899
+ {
900
+ "internalType": "StateId",
901
+ "name": "state",
902
+ "type": "uint8"
903
+ },
904
+ {
905
+ "internalType": "address",
906
+ "name": "updatedBy",
907
+ "type": "address"
908
+ },
909
+ {
910
+ "internalType": "Blocknumber",
911
+ "name": "updatedIn",
912
+ "type": "uint32"
913
+ },
914
+ {
915
+ "internalType": "Blocknumber",
916
+ "name": "createdIn",
917
+ "type": "uint32"
918
+ }
919
+ ],
920
+ "internalType": "struct IKeyValueStore.Metadata",
921
+ "name": "metadata",
922
+ "type": "tuple"
923
+ }
924
+ ],
925
+ "stateMutability": "view",
926
+ "type": "function"
927
+ },
928
+ {
929
+ "inputs": [],
930
+ "name": "getPolicyService",
931
+ "outputs": [
932
+ {
933
+ "internalType": "contract IPolicyService",
934
+ "name": "",
935
+ "type": "address"
936
+ }
937
+ ],
938
+ "stateMutability": "view",
939
+ "type": "function"
940
+ },
941
+ {
942
+ "inputs": [],
943
+ "name": "getPoolService",
944
+ "outputs": [
945
+ {
946
+ "internalType": "contract IPoolService",
947
+ "name": "",
948
+ "type": "address"
949
+ }
950
+ ],
951
+ "stateMutability": "view",
952
+ "type": "function"
953
+ },
954
+ {
955
+ "inputs": [],
956
+ "name": "getProductService",
957
+ "outputs": [
958
+ {
959
+ "internalType": "contract IProductService",
960
+ "name": "",
961
+ "type": "address"
962
+ }
963
+ ],
964
+ "stateMutability": "view",
965
+ "type": "function"
966
+ },
967
+ {
968
+ "inputs": [
969
+ {
970
+ "internalType": "Key32",
971
+ "name": "key",
972
+ "type": "bytes32"
973
+ }
974
+ ],
975
+ "name": "getState",
976
+ "outputs": [
977
+ {
978
+ "internalType": "StateId",
979
+ "name": "state",
980
+ "type": "uint8"
981
+ }
982
+ ],
983
+ "stateMutability": "view",
984
+ "type": "function"
985
+ },
986
+ {
987
+ "inputs": [
988
+ {
989
+ "internalType": "ObjectType",
990
+ "name": "objectType",
991
+ "type": "uint8"
992
+ }
993
+ ],
994
+ "name": "hasLifecycle",
995
+ "outputs": [
996
+ {
997
+ "internalType": "bool",
998
+ "name": "",
999
+ "type": "bool"
1000
+ }
1001
+ ],
1002
+ "stateMutability": "view",
1003
+ "type": "function"
1004
+ },
1005
+ {
1006
+ "inputs": [
1007
+ {
1008
+ "internalType": "ObjectType",
1009
+ "name": "objectType",
1010
+ "type": "uint8"
1011
+ },
1012
+ {
1013
+ "internalType": "StateId",
1014
+ "name": "fromId",
1015
+ "type": "uint8"
1016
+ },
1017
+ {
1018
+ "internalType": "StateId",
1019
+ "name": "toId",
1020
+ "type": "uint8"
1021
+ }
1022
+ ],
1023
+ "name": "isValidTransition",
1024
+ "outputs": [
1025
+ {
1026
+ "internalType": "bool",
1027
+ "name": "",
1028
+ "type": "bool"
1029
+ }
1030
+ ],
1031
+ "stateMutability": "view",
1032
+ "type": "function"
1033
+ },
1034
+ {
1035
+ "inputs": [
1036
+ {
1037
+ "internalType": "bytes4",
1038
+ "name": "interfaceId",
1039
+ "type": "bytes4"
1040
+ }
1041
+ ],
1042
+ "name": "supportsInterface",
1043
+ "outputs": [
1044
+ {
1045
+ "internalType": "bool",
1046
+ "name": "",
1047
+ "type": "bool"
1048
+ }
1049
+ ],
1050
+ "stateMutability": "view",
1051
+ "type": "function"
1052
+ },
1053
+ {
1054
+ "inputs": [
1055
+ {
1056
+ "internalType": "ObjectType",
1057
+ "name": "objectType",
1058
+ "type": "uint8"
1059
+ },
1060
+ {
1061
+ "internalType": "KeyId",
1062
+ "name": "id",
1063
+ "type": "bytes31"
1064
+ }
1065
+ ],
1066
+ "name": "toKey32",
1067
+ "outputs": [
1068
+ {
1069
+ "internalType": "Key32",
1070
+ "name": "",
1071
+ "type": "bytes32"
1072
+ }
1073
+ ],
1074
+ "stateMutability": "pure",
1075
+ "type": "function"
1076
+ },
1077
+ {
1078
+ "inputs": [
1079
+ {
1080
+ "internalType": "NftId",
1081
+ "name": "bundleNftId",
1082
+ "type": "uint96"
1083
+ },
1084
+ {
1085
+ "components": [
1086
+ {
1087
+ "internalType": "NftId",
1088
+ "name": "poolNftId",
1089
+ "type": "uint96"
1090
+ },
1091
+ {
1092
+ "components": [
1093
+ {
1094
+ "internalType": "UFixed",
1095
+ "name": "fractionalFee",
1096
+ "type": "uint256"
1097
+ },
1098
+ {
1099
+ "internalType": "uint256",
1100
+ "name": "fixedFee",
1101
+ "type": "uint256"
1102
+ }
1103
+ ],
1104
+ "internalType": "struct Fee",
1105
+ "name": "fee",
1106
+ "type": "tuple"
1107
+ },
1108
+ {
1109
+ "internalType": "bytes",
1110
+ "name": "filter",
1111
+ "type": "bytes"
1112
+ },
1113
+ {
1114
+ "internalType": "uint256",
1115
+ "name": "capitalAmount",
1116
+ "type": "uint256"
1117
+ },
1118
+ {
1119
+ "internalType": "uint256",
1120
+ "name": "lockedAmount",
1121
+ "type": "uint256"
1122
+ },
1123
+ {
1124
+ "internalType": "uint256",
1125
+ "name": "balanceAmount",
1126
+ "type": "uint256"
1127
+ },
1128
+ {
1129
+ "internalType": "uint256",
1130
+ "name": "lifetime",
1131
+ "type": "uint256"
1132
+ },
1133
+ {
1134
+ "internalType": "Timestamp",
1135
+ "name": "expiredAt",
1136
+ "type": "uint40"
1137
+ },
1138
+ {
1139
+ "internalType": "Timestamp",
1140
+ "name": "closedAt",
1141
+ "type": "uint40"
1142
+ }
1143
+ ],
1144
+ "internalType": "struct IBundle.BundleInfo",
1145
+ "name": "bundle",
1146
+ "type": "tuple"
1147
+ },
1148
+ {
1149
+ "internalType": "StateId",
1150
+ "name": "newState",
1151
+ "type": "uint8"
1152
+ }
1153
+ ],
1154
+ "name": "updateBundle",
1155
+ "outputs": [],
1156
+ "stateMutability": "nonpayable",
1157
+ "type": "function"
1158
+ },
1159
+ {
1160
+ "inputs": [
1161
+ {
1162
+ "internalType": "NftId",
1163
+ "name": "bundleNftId",
1164
+ "type": "uint96"
1165
+ },
1166
+ {
1167
+ "internalType": "StateId",
1168
+ "name": "newState",
1169
+ "type": "uint8"
1170
+ }
1171
+ ],
1172
+ "name": "updateBundleState",
1173
+ "outputs": [],
1174
+ "stateMutability": "nonpayable",
1175
+ "type": "function"
1176
+ },
1177
+ {
1178
+ "inputs": [
1179
+ {
1180
+ "internalType": "NftId",
1181
+ "name": "distributionNftId",
1182
+ "type": "uint96"
1183
+ },
1184
+ {
1185
+ "components": [
1186
+ {
1187
+ "internalType": "NftId",
1188
+ "name": "productNftId",
1189
+ "type": "uint96"
1190
+ },
1191
+ {
1192
+ "internalType": "contract TokenHandler",
1193
+ "name": "tokenHandler",
1194
+ "type": "address"
1195
+ },
1196
+ {
1197
+ "components": [
1198
+ {
1199
+ "internalType": "UFixed",
1200
+ "name": "fractionalFee",
1201
+ "type": "uint256"
1202
+ },
1203
+ {
1204
+ "internalType": "uint256",
1205
+ "name": "fixedFee",
1206
+ "type": "uint256"
1207
+ }
1208
+ ],
1209
+ "internalType": "struct Fee",
1210
+ "name": "distributionFee",
1211
+ "type": "tuple"
1212
+ },
1213
+ {
1214
+ "internalType": "bool",
1215
+ "name": "isIntercepting",
1216
+ "type": "bool"
1217
+ },
1218
+ {
1219
+ "internalType": "address",
1220
+ "name": "wallet",
1221
+ "type": "address"
1222
+ }
1223
+ ],
1224
+ "internalType": "struct ISetup.DistributionSetupInfo",
1225
+ "name": "setup",
1226
+ "type": "tuple"
1227
+ },
1228
+ {
1229
+ "internalType": "StateId",
1230
+ "name": "newState",
1231
+ "type": "uint8"
1232
+ }
1233
+ ],
1234
+ "name": "updateDistributionSetup",
1235
+ "outputs": [],
1236
+ "stateMutability": "nonpayable",
1237
+ "type": "function"
1238
+ },
1239
+ {
1240
+ "inputs": [
1241
+ {
1242
+ "internalType": "NftId",
1243
+ "name": "distributionNftId",
1244
+ "type": "uint96"
1245
+ },
1246
+ {
1247
+ "internalType": "StateId",
1248
+ "name": "newState",
1249
+ "type": "uint8"
1250
+ }
1251
+ ],
1252
+ "name": "updateDistributionSetupState",
1253
+ "outputs": [],
1254
+ "stateMutability": "nonpayable",
1255
+ "type": "function"
1256
+ },
1257
+ {
1258
+ "inputs": [
1259
+ {
1260
+ "internalType": "NftId",
1261
+ "name": "policyNftId",
1262
+ "type": "uint96"
1263
+ },
1264
+ {
1265
+ "components": [
1266
+ {
1267
+ "internalType": "NftId",
1268
+ "name": "productNftId",
1269
+ "type": "uint96"
1270
+ },
1271
+ {
1272
+ "internalType": "NftId",
1273
+ "name": "bundleNftId",
1274
+ "type": "uint96"
1275
+ },
1276
+ {
1277
+ "internalType": "ReferralId",
1278
+ "name": "referralId",
1279
+ "type": "bytes8"
1280
+ },
1281
+ {
1282
+ "internalType": "RiskId",
1283
+ "name": "riskId",
1284
+ "type": "bytes8"
1285
+ },
1286
+ {
1287
+ "internalType": "uint256",
1288
+ "name": "sumInsuredAmount",
1289
+ "type": "uint256"
1290
+ },
1291
+ {
1292
+ "internalType": "uint256",
1293
+ "name": "premiumAmount",
1294
+ "type": "uint256"
1295
+ },
1296
+ {
1297
+ "internalType": "uint256",
1298
+ "name": "premiumPaidAmount",
1299
+ "type": "uint256"
1300
+ },
1301
+ {
1302
+ "internalType": "uint256",
1303
+ "name": "lifetime",
1304
+ "type": "uint256"
1305
+ },
1306
+ {
1307
+ "internalType": "bytes",
1308
+ "name": "applicationData",
1309
+ "type": "bytes"
1310
+ },
1311
+ {
1312
+ "internalType": "bytes",
1313
+ "name": "policyData",
1314
+ "type": "bytes"
1315
+ },
1316
+ {
1317
+ "internalType": "uint16",
1318
+ "name": "claimsCount",
1319
+ "type": "uint16"
1320
+ },
1321
+ {
1322
+ "internalType": "uint16",
1323
+ "name": "openClaimsCount",
1324
+ "type": "uint16"
1325
+ },
1326
+ {
1327
+ "internalType": "uint256",
1328
+ "name": "payoutAmount",
1329
+ "type": "uint256"
1330
+ },
1331
+ {
1332
+ "internalType": "Timestamp",
1333
+ "name": "activatedAt",
1334
+ "type": "uint40"
1335
+ },
1336
+ {
1337
+ "internalType": "Timestamp",
1338
+ "name": "expiredAt",
1339
+ "type": "uint40"
1340
+ },
1341
+ {
1342
+ "internalType": "Timestamp",
1343
+ "name": "closedAt",
1344
+ "type": "uint40"
1345
+ }
1346
+ ],
1347
+ "internalType": "struct IPolicy.PolicyInfo",
1348
+ "name": "policy",
1349
+ "type": "tuple"
1350
+ },
1351
+ {
1352
+ "internalType": "StateId",
1353
+ "name": "newState",
1354
+ "type": "uint8"
1355
+ }
1356
+ ],
1357
+ "name": "updatePolicy",
1358
+ "outputs": [],
1359
+ "stateMutability": "nonpayable",
1360
+ "type": "function"
1361
+ },
1362
+ {
1363
+ "inputs": [
1364
+ {
1365
+ "internalType": "NftId",
1366
+ "name": "policyNftId",
1367
+ "type": "uint96"
1368
+ },
1369
+ {
1370
+ "internalType": "StateId",
1371
+ "name": "newState",
1372
+ "type": "uint8"
1373
+ }
1374
+ ],
1375
+ "name": "updatePolicyState",
1376
+ "outputs": [],
1377
+ "stateMutability": "nonpayable",
1378
+ "type": "function"
1379
+ },
1380
+ {
1381
+ "inputs": [
1382
+ {
1383
+ "internalType": "NftId",
1384
+ "name": "poolNftId",
1385
+ "type": "uint96"
1386
+ },
1387
+ {
1388
+ "components": [
1389
+ {
1390
+ "internalType": "NftId",
1391
+ "name": "productNftId",
1392
+ "type": "uint96"
1393
+ },
1394
+ {
1395
+ "internalType": "contract TokenHandler",
1396
+ "name": "tokenHandler",
1397
+ "type": "address"
1398
+ },
1399
+ {
1400
+ "internalType": "UFixed",
1401
+ "name": "collateralizationLevel",
1402
+ "type": "uint256"
1403
+ },
1404
+ {
1405
+ "components": [
1406
+ {
1407
+ "internalType": "UFixed",
1408
+ "name": "fractionalFee",
1409
+ "type": "uint256"
1410
+ },
1411
+ {
1412
+ "internalType": "uint256",
1413
+ "name": "fixedFee",
1414
+ "type": "uint256"
1415
+ }
1416
+ ],
1417
+ "internalType": "struct Fee",
1418
+ "name": "poolFee",
1419
+ "type": "tuple"
1420
+ },
1421
+ {
1422
+ "components": [
1423
+ {
1424
+ "internalType": "UFixed",
1425
+ "name": "fractionalFee",
1426
+ "type": "uint256"
1427
+ },
1428
+ {
1429
+ "internalType": "uint256",
1430
+ "name": "fixedFee",
1431
+ "type": "uint256"
1432
+ }
1433
+ ],
1434
+ "internalType": "struct Fee",
1435
+ "name": "stakingFee",
1436
+ "type": "tuple"
1437
+ },
1438
+ {
1439
+ "components": [
1440
+ {
1441
+ "internalType": "UFixed",
1442
+ "name": "fractionalFee",
1443
+ "type": "uint256"
1444
+ },
1445
+ {
1446
+ "internalType": "uint256",
1447
+ "name": "fixedFee",
1448
+ "type": "uint256"
1449
+ }
1450
+ ],
1451
+ "internalType": "struct Fee",
1452
+ "name": "performanceFee",
1453
+ "type": "tuple"
1454
+ },
1455
+ {
1456
+ "internalType": "bool",
1457
+ "name": "isIntercepting",
1458
+ "type": "bool"
1459
+ },
1460
+ {
1461
+ "internalType": "bool",
1462
+ "name": "isConfirmingApplication",
1463
+ "type": "bool"
1464
+ },
1465
+ {
1466
+ "internalType": "address",
1467
+ "name": "wallet",
1468
+ "type": "address"
1469
+ }
1470
+ ],
1471
+ "internalType": "struct ISetup.PoolSetupInfo",
1472
+ "name": "setup",
1473
+ "type": "tuple"
1474
+ },
1475
+ {
1476
+ "internalType": "StateId",
1477
+ "name": "newState",
1478
+ "type": "uint8"
1479
+ }
1480
+ ],
1481
+ "name": "updatePoolSetup",
1482
+ "outputs": [],
1483
+ "stateMutability": "nonpayable",
1484
+ "type": "function"
1485
+ },
1486
+ {
1487
+ "inputs": [
1488
+ {
1489
+ "internalType": "NftId",
1490
+ "name": "poolNftId",
1491
+ "type": "uint96"
1492
+ },
1493
+ {
1494
+ "internalType": "StateId",
1495
+ "name": "newState",
1496
+ "type": "uint8"
1497
+ }
1498
+ ],
1499
+ "name": "updatePoolSetupState",
1500
+ "outputs": [],
1501
+ "stateMutability": "nonpayable",
1502
+ "type": "function"
1503
+ },
1504
+ {
1505
+ "inputs": [
1506
+ {
1507
+ "internalType": "NftId",
1508
+ "name": "productNftId",
1509
+ "type": "uint96"
1510
+ },
1511
+ {
1512
+ "components": [
1513
+ {
1514
+ "internalType": "contract IERC20Metadata",
1515
+ "name": "token",
1516
+ "type": "address"
1517
+ },
1518
+ {
1519
+ "internalType": "contract TokenHandler",
1520
+ "name": "tokenHandler",
1521
+ "type": "address"
1522
+ },
1523
+ {
1524
+ "internalType": "NftId",
1525
+ "name": "distributionNftId",
1526
+ "type": "uint96"
1527
+ },
1528
+ {
1529
+ "internalType": "NftId",
1530
+ "name": "poolNftId",
1531
+ "type": "uint96"
1532
+ },
1533
+ {
1534
+ "components": [
1535
+ {
1536
+ "internalType": "UFixed",
1537
+ "name": "fractionalFee",
1538
+ "type": "uint256"
1539
+ },
1540
+ {
1541
+ "internalType": "uint256",
1542
+ "name": "fixedFee",
1543
+ "type": "uint256"
1544
+ }
1545
+ ],
1546
+ "internalType": "struct Fee",
1547
+ "name": "distributionFee",
1548
+ "type": "tuple"
1549
+ },
1550
+ {
1551
+ "components": [
1552
+ {
1553
+ "internalType": "UFixed",
1554
+ "name": "fractionalFee",
1555
+ "type": "uint256"
1556
+ },
1557
+ {
1558
+ "internalType": "uint256",
1559
+ "name": "fixedFee",
1560
+ "type": "uint256"
1561
+ }
1562
+ ],
1563
+ "internalType": "struct Fee",
1564
+ "name": "productFee",
1565
+ "type": "tuple"
1566
+ },
1567
+ {
1568
+ "components": [
1569
+ {
1570
+ "internalType": "UFixed",
1571
+ "name": "fractionalFee",
1572
+ "type": "uint256"
1573
+ },
1574
+ {
1575
+ "internalType": "uint256",
1576
+ "name": "fixedFee",
1577
+ "type": "uint256"
1578
+ }
1579
+ ],
1580
+ "internalType": "struct Fee",
1581
+ "name": "processingFee",
1582
+ "type": "tuple"
1583
+ },
1584
+ {
1585
+ "components": [
1586
+ {
1587
+ "internalType": "UFixed",
1588
+ "name": "fractionalFee",
1589
+ "type": "uint256"
1590
+ },
1591
+ {
1592
+ "internalType": "uint256",
1593
+ "name": "fixedFee",
1594
+ "type": "uint256"
1595
+ }
1596
+ ],
1597
+ "internalType": "struct Fee",
1598
+ "name": "poolFee",
1599
+ "type": "tuple"
1600
+ },
1601
+ {
1602
+ "components": [
1603
+ {
1604
+ "internalType": "UFixed",
1605
+ "name": "fractionalFee",
1606
+ "type": "uint256"
1607
+ },
1608
+ {
1609
+ "internalType": "uint256",
1610
+ "name": "fixedFee",
1611
+ "type": "uint256"
1612
+ }
1613
+ ],
1614
+ "internalType": "struct Fee",
1615
+ "name": "stakingFee",
1616
+ "type": "tuple"
1617
+ },
1618
+ {
1619
+ "components": [
1620
+ {
1621
+ "internalType": "UFixed",
1622
+ "name": "fractionalFee",
1623
+ "type": "uint256"
1624
+ },
1625
+ {
1626
+ "internalType": "uint256",
1627
+ "name": "fixedFee",
1628
+ "type": "uint256"
1629
+ }
1630
+ ],
1631
+ "internalType": "struct Fee",
1632
+ "name": "performanceFee",
1633
+ "type": "tuple"
1634
+ },
1635
+ {
1636
+ "internalType": "bool",
1637
+ "name": "isIntercepting",
1638
+ "type": "bool"
1639
+ },
1640
+ {
1641
+ "internalType": "address",
1642
+ "name": "wallet",
1643
+ "type": "address"
1644
+ }
1645
+ ],
1646
+ "internalType": "struct ISetup.ProductSetupInfo",
1647
+ "name": "setup",
1648
+ "type": "tuple"
1649
+ },
1650
+ {
1651
+ "internalType": "StateId",
1652
+ "name": "newState",
1653
+ "type": "uint8"
1654
+ }
1655
+ ],
1656
+ "name": "updateProductSetup",
1657
+ "outputs": [],
1658
+ "stateMutability": "nonpayable",
1659
+ "type": "function"
1660
+ },
1661
+ {
1662
+ "inputs": [
1663
+ {
1664
+ "internalType": "NftId",
1665
+ "name": "productNftId",
1666
+ "type": "uint96"
1667
+ },
1668
+ {
1669
+ "internalType": "StateId",
1670
+ "name": "newState",
1671
+ "type": "uint8"
1672
+ }
1673
+ ],
1674
+ "name": "updateProductSetupState",
1675
+ "outputs": [],
1676
+ "stateMutability": "nonpayable",
1677
+ "type": "function"
1678
+ },
1679
+ {
1680
+ "inputs": [
1681
+ {
1682
+ "internalType": "RiskId",
1683
+ "name": "riskId",
1684
+ "type": "bytes8"
1685
+ },
1686
+ {
1687
+ "components": [
1688
+ {
1689
+ "internalType": "NftId",
1690
+ "name": "productNftId",
1691
+ "type": "uint96"
1692
+ },
1693
+ {
1694
+ "internalType": "bytes",
1695
+ "name": "data",
1696
+ "type": "bytes"
1697
+ }
1698
+ ],
1699
+ "internalType": "struct IRisk.RiskInfo",
1700
+ "name": "risk",
1701
+ "type": "tuple"
1702
+ },
1703
+ {
1704
+ "internalType": "StateId",
1705
+ "name": "newState",
1706
+ "type": "uint8"
1707
+ }
1708
+ ],
1709
+ "name": "updateRisk",
1710
+ "outputs": [],
1711
+ "stateMutability": "nonpayable",
1712
+ "type": "function"
1713
+ },
1714
+ {
1715
+ "inputs": [
1716
+ {
1717
+ "internalType": "RiskId",
1718
+ "name": "riskId",
1719
+ "type": "bytes8"
1720
+ },
1721
+ {
1722
+ "internalType": "StateId",
1723
+ "name": "newState",
1724
+ "type": "uint8"
1725
+ }
1726
+ ],
1727
+ "name": "updateRiskState",
1728
+ "outputs": [],
1729
+ "stateMutability": "nonpayable",
344
1730
  "type": "function"
345
1731
  }
346
1732
  ],