@etherisc/gif-next 0.0.2-bf75dbb-287 → 0.0.2-c2a8d66-341

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  2. package/artifacts/contracts/components/{IBaseComponent.sol/IBaseComponent.json → Component.sol/Component.json} +300 -12
  3. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.json +199 -94
  5. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  6. package/artifacts/contracts/components/{BaseComponent.sol/BaseComponent.json → IComponent.sol/IComponent.json} +86 -84
  7. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +496 -0
  9. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +512 -74
  11. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +596 -5
  13. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  14. package/artifacts/contracts/components/Pool.sol/Pool.json +180 -205
  15. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  16. package/artifacts/contracts/components/Product.sol/Product.json +204 -110
  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/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/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  36. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  37. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
  38. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +38 -62
  39. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
  40. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  41. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +284 -2
  42. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  43. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +115 -19
  44. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  45. package/artifacts/contracts/instance/Instance.sol/Instance.json +117 -601
  46. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  47. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +416 -186
  48. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  49. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +41 -82
  50. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  51. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +253 -226
  52. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  53. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +38 -97
  54. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
  55. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +8 -32
  56. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  57. package/artifacts/contracts/instance/base/{ComponentServiceBase.sol/ComponentServiceBase.json → ComponentService.sol/ComponentService.json} +124 -61
  58. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  59. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  60. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  61. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  62. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  63. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +65 -44
  64. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  65. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  66. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  67. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  68. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  69. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  70. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  71. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1102 -0
  72. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  73. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +449 -0
  74. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  75. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +149 -93
  76. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  77. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +29 -36
  78. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  79. package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IBundleService.sol/IBundleService.json} +295 -46
  80. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  81. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +13 -18
  82. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  83. package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → instance/service/IPolicyService.sol/IPolicyService.json} +372 -48
  84. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  85. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +12 -246
  86. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  87. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +17 -246
  88. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  89. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1227 -0
  90. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  91. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +505 -0
  92. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  93. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +126 -369
  94. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  95. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +29 -56
  96. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  97. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +137 -428
  98. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
  99. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +29 -80
  100. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  101. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +2 -2
  102. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  103. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +231 -133
  104. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  105. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +127 -93
  106. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  107. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  108. package/artifacts/contracts/registry/Registry.sol/Registry.json +243 -234
  109. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  110. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  111. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  112. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +68 -161
  113. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  114. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +51 -104
  115. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  116. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
  117. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  118. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +13 -29
  119. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  120. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  121. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  122. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  123. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +0 -5
  124. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  125. package/artifacts/contracts/shared/IService.sol/IService.json +13 -18
  126. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  127. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  128. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +19 -6
  129. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  130. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +19 -6
  131. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  132. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +19 -11
  133. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  134. package/artifacts/contracts/shared/Service.sol/Service.json +26 -18
  135. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  136. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  137. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  138. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  139. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  140. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +19 -11
  141. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  142. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +6 -6
  143. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  144. package/artifacts/contracts/test/TestService.sol/TestService.json +44 -36
  145. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  146. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  147. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  148. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  149. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  150. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  151. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  152. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  153. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  154. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  155. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  156. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  157. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  158. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  159. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  160. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  161. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  162. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  163. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  164. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  165. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  166. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  167. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  168. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  169. package/contracts/components/Component.sol +216 -0
  170. package/contracts/components/Distribution.sol +41 -51
  171. package/contracts/components/IComponent.sol +43 -0
  172. package/contracts/components/IDistributionComponent.sol +5 -2
  173. package/contracts/components/IPoolComponent.sol +6 -21
  174. package/contracts/components/IProductComponent.sol +7 -3
  175. package/contracts/components/Pool.sol +50 -109
  176. package/contracts/components/Product.sol +66 -89
  177. package/contracts/instance/BundleManager.sol +7 -11
  178. package/contracts/instance/IInstance.sol +25 -9
  179. package/contracts/instance/IInstanceService.sol +12 -4
  180. package/contracts/instance/Instance.sol +45 -230
  181. package/contracts/instance/InstanceAccessManager.sol +333 -166
  182. package/contracts/instance/InstanceReader.sol +3 -25
  183. package/contracts/instance/InstanceService.sol +352 -143
  184. package/contracts/instance/InstanceServiceManager.sol +5 -8
  185. package/contracts/instance/ObjectManager.sol +7 -24
  186. package/contracts/instance/base/ComponentService.sol +134 -0
  187. package/contracts/instance/module/IAccess.sol +36 -20
  188. package/contracts/instance/service/BundleService.sol +293 -0
  189. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  190. package/contracts/instance/service/DistributionService.sol +43 -25
  191. package/contracts/instance/service/DistributionServiceManager.sol +6 -9
  192. package/contracts/instance/service/IBundleService.sol +44 -0
  193. package/contracts/instance/service/IPolicyService.sol +94 -0
  194. package/contracts/instance/service/IPoolService.sol +2 -33
  195. package/contracts/instance/service/IProductService.sol +2 -72
  196. package/contracts/instance/service/PolicyService.sol +538 -0
  197. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  198. package/contracts/instance/service/PoolService.sol +33 -210
  199. package/contracts/instance/service/PoolServiceManager.sol +5 -8
  200. package/contracts/instance/service/ProductService.sol +122 -459
  201. package/contracts/registry/ChainNft.sol +1 -1
  202. package/contracts/registry/IRegistry.sol +36 -17
  203. package/contracts/registry/IRegistryService.sol +28 -13
  204. package/contracts/registry/Registry.sol +227 -218
  205. package/contracts/registry/RegistryAccessManager.sol +216 -0
  206. package/contracts/registry/RegistryService.sol +61 -157
  207. package/contracts/registry/RegistryServiceManager.sol +18 -36
  208. package/contracts/registry/ReleaseManager.sol +332 -0
  209. package/contracts/registry/TokenRegistry.sol +8 -7
  210. package/contracts/shared/IRegisterable.sol +1 -3
  211. package/contracts/shared/IService.sol +2 -1
  212. package/contracts/shared/NftOwnable.sol +5 -0
  213. package/contracts/shared/ProxyManager.sol +1 -1
  214. package/contracts/shared/Registerable.sol +10 -14
  215. package/contracts/shared/Service.sol +13 -8
  216. package/contracts/test/TestService.sol +3 -2
  217. package/contracts/types/RoleId.sol +18 -15
  218. package/package.json +3 -3
  219. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  220. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  221. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +0 -4
  222. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +0 -1206
  223. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
  224. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
  225. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  226. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +0 -448
  227. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  228. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +0 -763
  229. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  230. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  231. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
  232. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  233. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -827
  234. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  235. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
  236. package/contracts/components/BaseComponent.sol +0 -132
  237. package/contracts/components/IBaseComponent.sol +0 -31
  238. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +0 -23
  239. package/contracts/instance/IAccessManagerSimple.sol +0 -391
  240. package/contracts/instance/IInstanceBase.sol +0 -26
  241. package/contracts/instance/InstanceBase.sol +0 -41
  242. package/contracts/instance/base/ComponentServiceBase.sol +0 -134
  243. package/contracts/instance/base/IInstanceBase.sol +0 -23
  244. package/contracts/instance/service/ComponentOwnerService.sol +0 -317
  245. package/contracts/instance/service/IComponentOwnerService.sol +0 -20
  246. package/contracts/shared/RegisterableUpgradable.sol +0 -16
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_format": "hh-sol-artifact-1",
3
- "contractName": "RegisterableUpgradable",
4
- "sourceName": "contracts/shared/RegisterableUpgradable.sol",
3
+ "contractName": "IPolicyService",
4
+ "sourceName": "contracts/instance/service/IPolicyService.sol",
5
5
  "abi": [
6
6
  {
7
7
  "inputs": [
@@ -34,78 +34,172 @@
34
34
  "inputs": [
35
35
  {
36
36
  "internalType": "address",
37
- "name": "account",
37
+ "name": "customer",
38
+ "type": "address"
39
+ },
40
+ {
41
+ "internalType": "address",
42
+ "name": "tokenHandlerAddress",
38
43
  "type": "address"
44
+ },
45
+ {
46
+ "internalType": "uint256",
47
+ "name": "amount",
48
+ "type": "uint256"
39
49
  }
40
50
  ],
41
- "name": "ErrorNotOwner",
51
+ "name": "ErrorIPolicyServiceInsufficientAllowance",
42
52
  "type": "error"
43
53
  },
44
54
  {
45
55
  "inputs": [
46
56
  {
47
- "internalType": "address",
48
- "name": "registryAddress",
49
- "type": "address"
57
+ "internalType": "NftId",
58
+ "name": "policyNftId",
59
+ "type": "uint96"
60
+ },
61
+ {
62
+ "internalType": "uint16",
63
+ "name": "openClaimsCount",
64
+ "type": "uint16"
50
65
  }
51
66
  ],
52
- "name": "ErrorNotRegistry",
67
+ "name": "ErrorIPolicyServiceOpenClaims",
53
68
  "type": "error"
54
69
  },
55
70
  {
56
71
  "inputs": [
57
72
  {
58
- "internalType": "address",
59
- "name": "registryAddress",
60
- "type": "address"
73
+ "internalType": "NftId",
74
+ "name": "policyNftId",
75
+ "type": "uint96"
61
76
  }
62
77
  ],
63
- "name": "ErrorRegisterableNotRegistry",
78
+ "name": "ErrorIPolicyServicePolicyAlreadyClosed",
64
79
  "type": "error"
65
80
  },
66
81
  {
67
- "inputs": [],
68
- "name": "ErrorRegistryAddressZero",
82
+ "inputs": [
83
+ {
84
+ "internalType": "NftId",
85
+ "name": "policyNftId",
86
+ "type": "uint96"
87
+ },
88
+ {
89
+ "internalType": "Timestamp",
90
+ "name": "expiredAt",
91
+ "type": "uint40"
92
+ }
93
+ ],
94
+ "name": "ErrorIPolicyServicePolicyHasNotExpired",
69
95
  "type": "error"
70
96
  },
71
97
  {
72
98
  "inputs": [
73
99
  {
74
- "internalType": "address",
75
- "name": "registry",
76
- "type": "address"
100
+ "internalType": "NftId",
101
+ "name": "policyNftId",
102
+ "type": "uint96"
77
103
  }
78
104
  ],
79
- "name": "ErrorRegistryAlreadyInitialized",
105
+ "name": "ErrorIPolicyServicePolicyNotActivated",
80
106
  "type": "error"
81
107
  },
82
108
  {
83
- "inputs": [],
84
- "name": "ErrorRegistryNotInitialized",
109
+ "inputs": [
110
+ {
111
+ "internalType": "NftId",
112
+ "name": "policyNftId",
113
+ "type": "uint96"
114
+ },
115
+ {
116
+ "internalType": "StateId",
117
+ "name": "state",
118
+ "type": "uint8"
119
+ }
120
+ ],
121
+ "name": "ErrorIPolicyServicePolicyNotActive",
85
122
  "type": "error"
86
123
  },
87
124
  {
88
- "inputs": [],
89
- "name": "InvalidInitialization",
125
+ "inputs": [
126
+ {
127
+ "internalType": "NftId",
128
+ "name": "policyNftId",
129
+ "type": "uint96"
130
+ },
131
+ {
132
+ "internalType": "uint256",
133
+ "name": "premiumPaidAmount",
134
+ "type": "uint256"
135
+ }
136
+ ],
137
+ "name": "ErrorIPolicyServicePremiumAlreadyPaid",
138
+ "type": "error"
139
+ },
140
+ {
141
+ "inputs": [
142
+ {
143
+ "internalType": "NftId",
144
+ "name": "policyNftId",
145
+ "type": "uint96"
146
+ },
147
+ {
148
+ "internalType": "uint256",
149
+ "name": "premiumAmount",
150
+ "type": "uint256"
151
+ },
152
+ {
153
+ "internalType": "uint256",
154
+ "name": "premiumPaidAmount",
155
+ "type": "uint256"
156
+ }
157
+ ],
158
+ "name": "ErrorIPolicyServicePremiumNotFullyPaid",
159
+ "type": "error"
160
+ },
161
+ {
162
+ "inputs": [
163
+ {
164
+ "internalType": "address",
165
+ "name": "account",
166
+ "type": "address"
167
+ }
168
+ ],
169
+ "name": "ErrorNotOwner",
170
+ "type": "error"
171
+ },
172
+ {
173
+ "inputs": [
174
+ {
175
+ "internalType": "address",
176
+ "name": "registryAddress",
177
+ "type": "address"
178
+ }
179
+ ],
180
+ "name": "ErrorNotRegistry",
90
181
  "type": "error"
91
182
  },
92
183
  {
93
184
  "inputs": [],
94
- "name": "NotInitializing",
185
+ "name": "ErrorRegistryAddressZero",
95
186
  "type": "error"
96
187
  },
97
188
  {
98
- "anonymous": false,
99
189
  "inputs": [
100
190
  {
101
- "indexed": false,
102
- "internalType": "uint64",
103
- "name": "version",
104
- "type": "uint64"
191
+ "internalType": "address",
192
+ "name": "registry",
193
+ "type": "address"
105
194
  }
106
195
  ],
107
- "name": "Initialized",
108
- "type": "event"
196
+ "name": "ErrorRegistryAlreadyInitialized",
197
+ "type": "error"
198
+ },
199
+ {
200
+ "inputs": [],
201
+ "name": "ErrorRegistryNotInitialized",
202
+ "type": "error"
109
203
  },
110
204
  {
111
205
  "anonymous": false,
@@ -133,18 +227,204 @@
133
227
  "type": "event"
134
228
  },
135
229
  {
136
- "inputs": [],
137
- "name": "REGISTERABLE_LOCATION_V1",
230
+ "inputs": [
231
+ {
232
+ "internalType": "NftId",
233
+ "name": "policyNftId",
234
+ "type": "uint96"
235
+ },
236
+ {
237
+ "internalType": "Timestamp",
238
+ "name": "activateAt",
239
+ "type": "uint40"
240
+ }
241
+ ],
242
+ "name": "activate",
243
+ "outputs": [],
244
+ "stateMutability": "nonpayable",
245
+ "type": "function"
246
+ },
247
+ {
248
+ "inputs": [
249
+ {
250
+ "internalType": "RiskId",
251
+ "name": "riskId",
252
+ "type": "bytes8"
253
+ },
254
+ {
255
+ "internalType": "uint256",
256
+ "name": "sumInsuredAmount",
257
+ "type": "uint256"
258
+ },
259
+ {
260
+ "internalType": "uint256",
261
+ "name": "lifetime",
262
+ "type": "uint256"
263
+ },
264
+ {
265
+ "internalType": "bytes",
266
+ "name": "applicationData",
267
+ "type": "bytes"
268
+ },
269
+ {
270
+ "internalType": "NftId",
271
+ "name": "bundleNftId",
272
+ "type": "uint96"
273
+ },
274
+ {
275
+ "internalType": "ReferralId",
276
+ "name": "referralId",
277
+ "type": "bytes8"
278
+ }
279
+ ],
280
+ "name": "calculatePremium",
138
281
  "outputs": [
139
282
  {
140
- "internalType": "bytes32",
141
- "name": "",
142
- "type": "bytes32"
283
+ "internalType": "uint256",
284
+ "name": "premiumAmount",
285
+ "type": "uint256"
286
+ },
287
+ {
288
+ "internalType": "uint256",
289
+ "name": "productFeeAmount",
290
+ "type": "uint256"
291
+ },
292
+ {
293
+ "internalType": "uint256",
294
+ "name": "poolFeeAmount",
295
+ "type": "uint256"
296
+ },
297
+ {
298
+ "internalType": "uint256",
299
+ "name": "bundleFeeAmount",
300
+ "type": "uint256"
301
+ },
302
+ {
303
+ "internalType": "uint256",
304
+ "name": "distributionFeeAmount",
305
+ "type": "uint256"
143
306
  }
144
307
  ],
145
308
  "stateMutability": "view",
146
309
  "type": "function"
147
310
  },
311
+ {
312
+ "inputs": [
313
+ {
314
+ "internalType": "UFixed",
315
+ "name": "collateralizationLevel",
316
+ "type": "uint256"
317
+ },
318
+ {
319
+ "internalType": "uint256",
320
+ "name": "sumInsuredAmount",
321
+ "type": "uint256"
322
+ }
323
+ ],
324
+ "name": "calculateRequiredCollateral",
325
+ "outputs": [
326
+ {
327
+ "internalType": "uint256",
328
+ "name": "collateralAmount",
329
+ "type": "uint256"
330
+ }
331
+ ],
332
+ "stateMutability": "pure",
333
+ "type": "function"
334
+ },
335
+ {
336
+ "inputs": [
337
+ {
338
+ "internalType": "NftId",
339
+ "name": "nftId",
340
+ "type": "uint96"
341
+ }
342
+ ],
343
+ "name": "close",
344
+ "outputs": [],
345
+ "stateMutability": "nonpayable",
346
+ "type": "function"
347
+ },
348
+ {
349
+ "inputs": [
350
+ {
351
+ "internalType": "NftId",
352
+ "name": "policyNftId",
353
+ "type": "uint96"
354
+ },
355
+ {
356
+ "internalType": "Timestamp",
357
+ "name": "activateAt",
358
+ "type": "uint40"
359
+ }
360
+ ],
361
+ "name": "collectPremium",
362
+ "outputs": [],
363
+ "stateMutability": "nonpayable",
364
+ "type": "function"
365
+ },
366
+ {
367
+ "inputs": [
368
+ {
369
+ "internalType": "address",
370
+ "name": "applicationOwner",
371
+ "type": "address"
372
+ },
373
+ {
374
+ "internalType": "RiskId",
375
+ "name": "riskId",
376
+ "type": "bytes8"
377
+ },
378
+ {
379
+ "internalType": "uint256",
380
+ "name": "sumInsuredAmount",
381
+ "type": "uint256"
382
+ },
383
+ {
384
+ "internalType": "uint256",
385
+ "name": "lifetime",
386
+ "type": "uint256"
387
+ },
388
+ {
389
+ "internalType": "bytes",
390
+ "name": "applicationData",
391
+ "type": "bytes"
392
+ },
393
+ {
394
+ "internalType": "NftId",
395
+ "name": "bundleNftId",
396
+ "type": "uint96"
397
+ },
398
+ {
399
+ "internalType": "ReferralId",
400
+ "name": "referralId",
401
+ "type": "bytes8"
402
+ }
403
+ ],
404
+ "name": "createApplication",
405
+ "outputs": [
406
+ {
407
+ "internalType": "NftId",
408
+ "name": "nftId",
409
+ "type": "uint96"
410
+ }
411
+ ],
412
+ "stateMutability": "nonpayable",
413
+ "type": "function"
414
+ },
415
+ {
416
+ "inputs": [],
417
+ "name": "getDomain",
418
+ "outputs": [
419
+ {
420
+ "internalType": "ObjectType",
421
+ "name": "serviceDomain",
422
+ "type": "uint8"
423
+ }
424
+ ],
425
+ "stateMutability": "pure",
426
+ "type": "function"
427
+ },
148
428
  {
149
429
  "inputs": [],
150
430
  "name": "getInitialInfo",
@@ -190,11 +470,6 @@
190
470
  "internalType": "struct IRegistry.ObjectInfo",
191
471
  "name": "",
192
472
  "type": "tuple"
193
- },
194
- {
195
- "internalType": "bytes",
196
- "name": "data",
197
- "type": "bytes"
198
473
  }
199
474
  ],
200
475
  "stateMutability": "view",
@@ -213,6 +488,19 @@
213
488
  "stateMutability": "view",
214
489
  "type": "function"
215
490
  },
491
+ {
492
+ "inputs": [],
493
+ "name": "getMajorVersion",
494
+ "outputs": [
495
+ {
496
+ "internalType": "VersionPart",
497
+ "name": "majorVersion",
498
+ "type": "uint8"
499
+ }
500
+ ],
501
+ "stateMutability": "view",
502
+ "type": "function"
503
+ },
216
504
  {
217
505
  "inputs": [],
218
506
  "name": "getNftId",
@@ -269,7 +557,7 @@
269
557
  "inputs": [
270
558
  {
271
559
  "internalType": "uint256",
272
- "name": "idx",
560
+ "name": "index",
273
561
  "type": "uint256"
274
562
  }
275
563
  ],
@@ -277,7 +565,7 @@
277
565
  "outputs": [
278
566
  {
279
567
  "internalType": "Version",
280
- "name": "",
568
+ "name": "version",
281
569
  "type": "uint24"
282
570
  }
283
571
  ],
@@ -290,7 +578,7 @@
290
578
  "outputs": [
291
579
  {
292
580
  "internalType": "uint256",
293
- "name": "",
581
+ "name": "numberOfVersions",
294
582
  "type": "uint256"
295
583
  }
296
584
  ],
@@ -301,7 +589,7 @@
301
589
  "inputs": [
302
590
  {
303
591
  "internalType": "Version",
304
- "name": "_version",
592
+ "name": "version",
305
593
  "type": "uint24"
306
594
  }
307
595
  ],
@@ -336,7 +624,7 @@
336
624
  }
337
625
  ],
338
626
  "internalType": "struct IVersionable.VersionInfo",
339
- "name": "",
627
+ "name": "versionInfo",
340
628
  "type": "tuple"
341
629
  }
342
630
  ],
@@ -357,7 +645,7 @@
357
645
  },
358
646
  {
359
647
  "internalType": "bytes",
360
- "name": "data",
648
+ "name": "activationData",
361
649
  "type": "bytes"
362
650
  }
363
651
  ],
@@ -370,7 +658,7 @@
370
658
  "inputs": [
371
659
  {
372
660
  "internalType": "Version",
373
- "name": "_version",
661
+ "name": "version",
374
662
  "type": "uint24"
375
663
  }
376
664
  ],
@@ -392,6 +680,19 @@
392
680
  "stateMutability": "nonpayable",
393
681
  "type": "function"
394
682
  },
683
+ {
684
+ "inputs": [
685
+ {
686
+ "internalType": "NftId",
687
+ "name": "policyNftId",
688
+ "type": "uint96"
689
+ }
690
+ ],
691
+ "name": "revoke",
692
+ "outputs": [],
693
+ "stateMutability": "nonpayable",
694
+ "type": "function"
695
+ },
395
696
  {
396
697
  "inputs": [
397
698
  {
@@ -411,6 +712,29 @@
411
712
  "stateMutability": "view",
412
713
  "type": "function"
413
714
  },
715
+ {
716
+ "inputs": [
717
+ {
718
+ "internalType": "NftId",
719
+ "name": "policyNftId",
720
+ "type": "uint96"
721
+ },
722
+ {
723
+ "internalType": "bool",
724
+ "name": "requirePremiumPayment",
725
+ "type": "bool"
726
+ },
727
+ {
728
+ "internalType": "Timestamp",
729
+ "name": "activateAt",
730
+ "type": "uint40"
731
+ }
732
+ ],
733
+ "name": "underwrite",
734
+ "outputs": [],
735
+ "stateMutability": "nonpayable",
736
+ "type": "function"
737
+ },
414
738
  {
415
739
  "inputs": [
416
740
  {
@@ -425,7 +749,7 @@
425
749
  },
426
750
  {
427
751
  "internalType": "bytes",
428
- "name": "data",
752
+ "name": "upgradeData",
429
753
  "type": "bytes"
430
754
  }
431
755
  ],
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/f00f69cdd22d879f9076240427cb7d49.json"
3
+ "buildInfo": "../../../../build-info/a96fea54329ba311cf18327c086e128a.json"
4
4
  }