@etherisc/gif-next 0.0.2-d086e6d-456 → 0.0.2-d1f0662-893

Sign up to get free protection for your applications and to get access to all the features.
Files changed (265) hide show
  1. package/README.md +6 -88
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
  3. package/artifacts/contracts/components/Component.sol/Component.json +37 -6
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +60 -13
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +1 -1
  7. package/artifacts/contracts/components/IComponent.sol/IComponent.json +37 -6
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +44 -13
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +55 -24
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +52 -21
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +55 -24
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +52 -21
  18. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
  19. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +2 -2
  20. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
  21. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  22. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +309 -2023
  23. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  24. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +21 -62
  25. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  26. package/artifacts/contracts/instance/Instance.sol/Instance.json +424 -2776
  27. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  28. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +95 -58
  29. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.dbg.json +4 -0
  30. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.json +124 -0
  31. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  32. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +331 -51
  33. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  34. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +71 -215
  35. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  36. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +38 -83
  37. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
  38. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +2788 -0
  39. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
  40. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +2 -2
  41. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +1 -1
  42. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +25 -36
  43. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  44. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  45. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  46. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +8 -8
  47. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  48. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +6 -6
  49. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  50. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +6 -6
  51. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  52. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +1 -1
  53. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  54. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  55. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  56. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  57. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  58. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +1 -1
  59. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +106 -246
  60. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +1 -1
  61. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +38 -55
  62. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +1 -1
  63. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +166 -136
  64. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
  65. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +38 -59
  66. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +1 -1
  67. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +623 -91
  68. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +1 -1
  69. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +143 -32
  70. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  71. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +185 -451
  72. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  73. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +82 -107
  74. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +1 -1
  75. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +38 -191
  76. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
  77. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +97 -45
  78. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +1 -1
  79. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +306 -62
  80. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  81. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +34 -297
  82. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
  83. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +124 -103
  84. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  85. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +269 -60
  86. package/artifacts/contracts/instance/service/IPricingService.sol/IPricingService.dbg.json +4 -0
  87. package/artifacts/contracts/instance/service/IPricingService.sol/IPricingService.json +510 -0
  88. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  89. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +5 -37
  90. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
  91. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +332 -162
  92. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
  93. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +104 -53
  94. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  95. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +442 -84
  96. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  97. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +90 -39
  98. package/artifacts/contracts/instance/service/PricingService.sol/PricingService.dbg.json +4 -0
  99. package/artifacts/contracts/instance/service/PricingService.sol/PricingService.json +1004 -0
  100. package/artifacts/contracts/instance/service/PricingServiceManager.sol/PricingServiceManager.dbg.json +4 -0
  101. package/artifacts/contracts/instance/service/PricingServiceManager.sol/PricingServiceManager.json +688 -0
  102. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  103. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +56 -59
  104. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
  105. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +28 -37
  106. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  107. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  108. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  109. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +5 -37
  110. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  111. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  112. package/artifacts/contracts/registry/Registry.sol/Registry.json +2 -2
  113. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +1 -1
  114. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +2 -2
  115. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  116. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +22 -49
  117. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  118. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +21 -34
  119. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
  120. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +23 -11
  121. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  122. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +10 -23
  123. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  124. package/artifacts/contracts/{instance → shared}/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +3 -3
  125. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  126. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  127. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  128. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +0 -13
  129. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +1 -1
  130. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +69 -9
  131. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  132. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +0 -13
  133. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
  134. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.json +0 -13
  135. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  136. package/artifacts/contracts/shared/IService.sol/IService.json +5 -37
  137. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  138. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  139. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +6 -19
  140. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +1 -1
  141. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +80 -26
  142. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  143. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +14 -27
  144. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  145. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +6 -19
  146. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +1 -1
  147. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +2 -15
  148. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  149. package/artifacts/contracts/shared/Service.sol/Service.json +11 -38
  150. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  151. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +24 -6
  152. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  153. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  154. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  155. package/artifacts/contracts/test/TestFee.sol/TestFee.json +2 -2
  156. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  157. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +6 -19
  158. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  159. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  160. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  161. package/artifacts/contracts/test/TestService.sol/TestService.json +26 -49
  162. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  163. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  164. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  165. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  166. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  167. package/artifacts/contracts/types/Amount.sol/AmountLib.dbg.json +1 -1
  168. package/artifacts/contracts/types/Amount.sol/AmountLib.json +124 -4
  169. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  170. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  171. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +1 -1
  172. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +83 -4
  173. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  174. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
  175. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  176. package/artifacts/contracts/types/Fee.sol/FeeLib.json +42 -18
  177. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  178. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
  179. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  180. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  181. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  182. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
  183. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  184. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  185. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  186. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +1 -1
  187. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +116 -7
  188. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  189. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +2 -2
  190. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  191. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  192. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  193. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  194. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +1 -1
  195. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  196. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  197. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  198. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +17 -4
  199. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  200. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  201. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  202. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  203. package/contracts/components/Component.sol +21 -2
  204. package/contracts/components/Distribution.sol +11 -6
  205. package/contracts/components/IComponent.sol +16 -2
  206. package/contracts/components/IPoolComponent.sol +8 -7
  207. package/contracts/components/IProductComponent.sol +5 -4
  208. package/contracts/components/Pool.sol +11 -12
  209. package/contracts/components/Product.sol +144 -62
  210. package/contracts/instance/BundleManager.sol +3 -4
  211. package/contracts/instance/IInstance.sol +32 -53
  212. package/contracts/instance/IInstanceService.sol +15 -14
  213. package/contracts/instance/Instance.sol +107 -205
  214. package/contracts/instance/InstanceAccessManager.sol +44 -25
  215. package/contracts/instance/InstanceAuthorizationsLib.sol +308 -0
  216. package/contracts/instance/InstanceReader.sol +84 -7
  217. package/contracts/instance/InstanceService.sol +102 -289
  218. package/contracts/instance/InstanceStore.sol +212 -0
  219. package/contracts/instance/ObjectManager.sol +1 -1
  220. package/contracts/instance/base/ComponentService.sol +53 -41
  221. package/contracts/instance/base/KeyValueStore.sol +0 -31
  222. package/contracts/instance/base/Lifecycle.sol +15 -4
  223. package/contracts/instance/module/IAccess.sol +2 -2
  224. package/contracts/instance/module/IComponents.sol +3 -3
  225. package/contracts/instance/module/IDistribution.sol +3 -2
  226. package/contracts/instance/module/IPolicy.sol +13 -8
  227. package/contracts/instance/service/ApplicationService.sol +60 -224
  228. package/contracts/instance/service/BundleService.sol +73 -122
  229. package/contracts/instance/service/ClaimService.sol +318 -32
  230. package/contracts/instance/service/DistributionService.sol +64 -151
  231. package/contracts/instance/service/IApplicationService.sol +8 -28
  232. package/contracts/instance/service/IBundleService.sol +34 -9
  233. package/contracts/instance/service/IClaimService.sol +52 -23
  234. package/contracts/instance/service/IDistributionService.sol +11 -22
  235. package/contracts/instance/service/IPolicyService.sol +24 -16
  236. package/contracts/instance/service/IPoolService.sol +18 -3
  237. package/contracts/instance/service/IPricingService.sol +37 -0
  238. package/contracts/instance/service/PolicyService.sol +134 -118
  239. package/contracts/instance/service/PoolService.sol +124 -64
  240. package/contracts/instance/service/PricingService.sol +275 -0
  241. package/contracts/instance/service/PricingServiceManager.sol +51 -0
  242. package/contracts/instance/service/ProductService.sol +14 -14
  243. package/contracts/registry/IRegistryService.sol +0 -2
  244. package/contracts/registry/RegistryService.sol +16 -15
  245. package/contracts/registry/ReleaseManager.sol +20 -18
  246. package/contracts/shared/IPolicyHolder.sol +23 -9
  247. package/contracts/shared/IRegistryLinked.sol +0 -1
  248. package/contracts/shared/IService.sol +3 -6
  249. package/contracts/shared/NftOwnable.sol +0 -2
  250. package/contracts/shared/PolicyHolder.sol +30 -17
  251. package/contracts/shared/Registerable.sol +10 -9
  252. package/contracts/shared/RegistryLinked.sol +0 -5
  253. package/contracts/shared/Service.sol +16 -7
  254. package/contracts/shared/TokenHandler.sol +4 -2
  255. package/contracts/test/TestService.sol +1 -1
  256. package/contracts/types/Amount.sol +49 -0
  257. package/contracts/types/ClaimId.sol +25 -2
  258. package/contracts/types/Fee.sol +7 -6
  259. package/contracts/types/ObjectType.sol +9 -5
  260. package/contracts/types/PayoutId.sol +33 -5
  261. package/contracts/types/StateId.sol +6 -2
  262. package/contracts/types/Timestamp.sol +5 -0
  263. package/package.json +1 -1
  264. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +0 -4
  265. /package/contracts/{instance → shared}/AccessManagerUpgradeableInitializeable.sol +0 -0
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6d337e35e1a2e4e40425b57181471e9c.json"
3
+ "buildInfo": "../../../../build-info/85066c6f3c5dc0f34dc544d5ab504181.json"
4
4
  }
@@ -44,12 +44,38 @@
44
44
  {
45
45
  "inputs": [
46
46
  {
47
- "internalType": "address",
48
- "name": "caller",
49
- "type": "address"
47
+ "internalType": "NftId",
48
+ "name": "bundleNftId",
49
+ "type": "uint96"
50
+ },
51
+ {
52
+ "internalType": "NftId",
53
+ "name": "bundlePoolNftId",
54
+ "type": "uint96"
55
+ },
56
+ {
57
+ "internalType": "NftId",
58
+ "name": "poolNftId",
59
+ "type": "uint96"
60
+ }
61
+ ],
62
+ "name": "ErrorApplicationServiceBundlePoolMismatch",
63
+ "type": "error"
64
+ },
65
+ {
66
+ "inputs": [
67
+ {
68
+ "internalType": "NftId",
69
+ "name": "callerNftId",
70
+ "type": "uint96"
71
+ },
72
+ {
73
+ "internalType": "ObjectType",
74
+ "name": "callerType",
75
+ "type": "uint8"
50
76
  }
51
77
  ],
52
- "name": "ErrorIServiceCallerUnknown",
78
+ "name": "ErrorApplicationServiceNotProduct",
53
79
  "type": "error"
54
80
  },
55
81
  {
@@ -102,35 +128,8 @@
102
128
  "type": "error"
103
129
  },
104
130
  {
105
- "inputs": [
106
- {
107
- "internalType": "NftId",
108
- "name": "bundleNftId",
109
- "type": "uint96"
110
- },
111
- {
112
- "internalType": "NftId",
113
- "name": "bundlePoolNftId",
114
- "type": "uint96"
115
- },
116
- {
117
- "internalType": "NftId",
118
- "name": "poolNftId",
119
- "type": "uint96"
120
- }
121
- ],
122
- "name": "IApplicationServiceBundlePoolMismatch",
123
- "type": "error"
124
- },
125
- {
126
- "inputs": [
127
- {
128
- "internalType": "NftId",
129
- "name": "applicationNftId",
130
- "type": "uint96"
131
- }
132
- ],
133
- "name": "IApplicationServicePolicyNotApplied",
131
+ "inputs": [],
132
+ "name": "ErrorServiceNotImplemented",
134
133
  "type": "error"
135
134
  },
136
135
  {
@@ -169,14 +168,14 @@
169
168
  "type": "bytes8"
170
169
  },
171
170
  {
172
- "internalType": "uint256",
171
+ "internalType": "Amount",
173
172
  "name": "sumInsuredAmount",
174
- "type": "uint256"
173
+ "type": "uint96"
175
174
  },
176
175
  {
177
- "internalType": "uint256",
176
+ "internalType": "Seconds",
178
177
  "name": "lifetime",
179
- "type": "uint256"
178
+ "type": "uint40"
180
179
  },
181
180
  {
182
181
  "internalType": "bytes",
@@ -202,132 +201,6 @@
202
201
  "stateMutability": "view",
203
202
  "type": "function"
204
203
  },
205
- {
206
- "inputs": [
207
- {
208
- "internalType": "NftId",
209
- "name": "productNftId",
210
- "type": "uint96"
211
- },
212
- {
213
- "internalType": "RiskId",
214
- "name": "riskId",
215
- "type": "bytes8"
216
- },
217
- {
218
- "internalType": "uint256",
219
- "name": "sumInsuredAmount",
220
- "type": "uint256"
221
- },
222
- {
223
- "internalType": "Seconds",
224
- "name": "lifetime",
225
- "type": "uint40"
226
- },
227
- {
228
- "internalType": "bytes",
229
- "name": "applicationData",
230
- "type": "bytes"
231
- },
232
- {
233
- "internalType": "NftId",
234
- "name": "bundleNftId",
235
- "type": "uint96"
236
- },
237
- {
238
- "internalType": "ReferralId",
239
- "name": "referralId",
240
- "type": "bytes8"
241
- }
242
- ],
243
- "name": "calculatePremium",
244
- "outputs": [
245
- {
246
- "components": [
247
- {
248
- "internalType": "uint256",
249
- "name": "netPremiumAmount",
250
- "type": "uint256"
251
- },
252
- {
253
- "internalType": "uint256",
254
- "name": "fullPremiumAmount",
255
- "type": "uint256"
256
- },
257
- {
258
- "internalType": "uint256",
259
- "name": "premiumAmount",
260
- "type": "uint256"
261
- },
262
- {
263
- "internalType": "uint256",
264
- "name": "productFeeFixAmount",
265
- "type": "uint256"
266
- },
267
- {
268
- "internalType": "uint256",
269
- "name": "poolFeeFixAmount",
270
- "type": "uint256"
271
- },
272
- {
273
- "internalType": "uint256",
274
- "name": "bundleFeeFixAmount",
275
- "type": "uint256"
276
- },
277
- {
278
- "internalType": "uint256",
279
- "name": "distributionFeeFixAmount",
280
- "type": "uint256"
281
- },
282
- {
283
- "internalType": "uint256",
284
- "name": "productFeeVarAmount",
285
- "type": "uint256"
286
- },
287
- {
288
- "internalType": "uint256",
289
- "name": "poolFeeVarAmount",
290
- "type": "uint256"
291
- },
292
- {
293
- "internalType": "uint256",
294
- "name": "bundleFeeVarAmount",
295
- "type": "uint256"
296
- },
297
- {
298
- "internalType": "uint256",
299
- "name": "distributionFeeVarAmount",
300
- "type": "uint256"
301
- },
302
- {
303
- "internalType": "uint256",
304
- "name": "distributionOwnerFeeFixAmount",
305
- "type": "uint256"
306
- },
307
- {
308
- "internalType": "uint256",
309
- "name": "distributionOwnerFeeVarAmount",
310
- "type": "uint256"
311
- },
312
- {
313
- "internalType": "uint256",
314
- "name": "commissionAmount",
315
- "type": "uint256"
316
- },
317
- {
318
- "internalType": "uint256",
319
- "name": "discountAmount",
320
- "type": "uint256"
321
- }
322
- ],
323
- "internalType": "struct IPolicy.Premium",
324
- "name": "premium",
325
- "type": "tuple"
326
- }
327
- ],
328
- "stateMutability": "view",
329
- "type": "function"
330
- },
331
204
  {
332
205
  "inputs": [
333
206
  {
@@ -341,9 +214,9 @@
341
214
  "type": "bytes8"
342
215
  },
343
216
  {
344
- "internalType": "uint256",
217
+ "internalType": "Amount",
345
218
  "name": "sumInsuredAmount",
346
- "type": "uint256"
219
+ "type": "uint96"
347
220
  },
348
221
  {
349
222
  "internalType": "Seconds",
@@ -440,19 +313,6 @@
440
313
  "stateMutability": "view",
441
314
  "type": "function"
442
315
  },
443
- {
444
- "inputs": [],
445
- "name": "getMajorVersion",
446
- "outputs": [
447
- {
448
- "internalType": "VersionPart",
449
- "name": "majorVersion",
450
- "type": "uint8"
451
- }
452
- ],
453
- "stateMutability": "view",
454
- "type": "function"
455
- },
456
316
  {
457
317
  "inputs": [],
458
318
  "name": "getNftId",
@@ -492,19 +352,6 @@
492
352
  "stateMutability": "view",
493
353
  "type": "function"
494
354
  },
495
- {
496
- "inputs": [],
497
- "name": "getRegistryAddress",
498
- "outputs": [
499
- {
500
- "internalType": "address",
501
- "name": "",
502
- "type": "address"
503
- }
504
- ],
505
- "stateMutability": "view",
506
- "type": "function"
507
- },
508
355
  {
509
356
  "inputs": [],
510
357
  "name": "getVersion",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6d337e35e1a2e4e40425b57181471e9c.json"
3
+ "buildInfo": "../../../../build-info/85066c6f3c5dc0f34dc544d5ab504181.json"
4
4
  }
@@ -62,6 +62,38 @@
62
62
  "name": "ErrorBundleServiceBundleNotOpen",
63
63
  "type": "error"
64
64
  },
65
+ {
66
+ "inputs": [
67
+ {
68
+ "internalType": "NftId",
69
+ "name": "bundleNftId",
70
+ "type": "uint96"
71
+ },
72
+ {
73
+ "internalType": "NftId",
74
+ "name": "expectedPool",
75
+ "type": "uint96"
76
+ },
77
+ {
78
+ "internalType": "NftId",
79
+ "name": "actualPool",
80
+ "type": "uint96"
81
+ }
82
+ ],
83
+ "name": "ErrorBundleServiceBundlePoolMismatch",
84
+ "type": "error"
85
+ },
86
+ {
87
+ "inputs": [
88
+ {
89
+ "internalType": "NftId",
90
+ "name": "bundleNftId",
91
+ "type": "uint96"
92
+ }
93
+ ],
94
+ "name": "ErrorBundleServiceBundleUnknown",
95
+ "type": "error"
96
+ },
65
97
  {
66
98
  "inputs": [
67
99
  {
@@ -86,14 +118,14 @@
86
118
  "type": "uint96"
87
119
  },
88
120
  {
89
- "internalType": "uint256",
121
+ "internalType": "Amount",
90
122
  "name": "capacityAmount",
91
- "type": "uint256"
123
+ "type": "uint96"
92
124
  },
93
125
  {
94
- "internalType": "uint256",
126
+ "internalType": "Amount",
95
127
  "name": "collateralAmount",
96
- "type": "uint256"
128
+ "type": "uint96"
97
129
  }
98
130
  ],
99
131
  "name": "ErrorBundleServiceCapacityInsufficient",
@@ -112,9 +144,9 @@
112
144
  "type": "address"
113
145
  },
114
146
  {
115
- "internalType": "uint256",
147
+ "internalType": "Amount",
116
148
  "name": "amount",
117
- "type": "uint256"
149
+ "type": "uint96"
118
150
  }
119
151
  ],
120
152
  "name": "ErrorBundleServiceInsufficientAllowance",
@@ -123,12 +155,12 @@
123
155
  {
124
156
  "inputs": [
125
157
  {
126
- "internalType": "address",
127
- "name": "caller",
128
- "type": "address"
158
+ "internalType": "NftId",
159
+ "name": "policyNftId",
160
+ "type": "uint96"
129
161
  }
130
162
  ],
131
- "name": "ErrorIServiceCallerUnknown",
163
+ "name": "ErrorBundleServicePolicyNotCloseable",
132
164
  "type": "error"
133
165
  },
134
166
  {
@@ -180,6 +212,11 @@
180
212
  "name": "ErrorNotRegistry",
181
213
  "type": "error"
182
214
  },
215
+ {
216
+ "inputs": [],
217
+ "name": "ErrorServiceNotImplemented",
218
+ "type": "error"
219
+ },
183
220
  {
184
221
  "anonymous": false,
185
222
  "inputs": [
@@ -374,19 +411,6 @@
374
411
  "stateMutability": "view",
375
412
  "type": "function"
376
413
  },
377
- {
378
- "inputs": [],
379
- "name": "getMajorVersion",
380
- "outputs": [
381
- {
382
- "internalType": "VersionPart",
383
- "name": "majorVersion",
384
- "type": "uint8"
385
- }
386
- ],
387
- "stateMutability": "view",
388
- "type": "function"
389
- },
390
414
  {
391
415
  "inputs": [],
392
416
  "name": "getNftId",
@@ -426,19 +450,6 @@
426
450
  "stateMutability": "view",
427
451
  "type": "function"
428
452
  },
429
- {
430
- "inputs": [],
431
- "name": "getRegistryAddress",
432
- "outputs": [
433
- {
434
- "internalType": "address",
435
- "name": "",
436
- "type": "address"
437
- }
438
- ],
439
- "stateMutability": "view",
440
- "type": "function"
441
- },
442
453
  {
443
454
  "inputs": [],
444
455
  "name": "getVersion",
@@ -465,9 +476,9 @@
465
476
  "type": "uint96"
466
477
  },
467
478
  {
468
- "internalType": "uint256",
479
+ "internalType": "Amount",
469
480
  "name": "amount",
470
- "type": "uint256"
481
+ "type": "uint96"
471
482
  }
472
483
  ],
473
484
  "name": "increaseBalance",
@@ -544,14 +555,14 @@
544
555
  "type": "uint96"
545
556
  },
546
557
  {
547
- "internalType": "uint256",
558
+ "internalType": "Amount",
548
559
  "name": "collateralAmount",
549
- "type": "uint256"
560
+ "type": "uint96"
550
561
  },
551
562
  {
552
- "internalType": "uint256",
553
- "name": "premium",
554
- "type": "uint256"
563
+ "internalType": "Amount",
564
+ "name": "premiumAmount",
565
+ "type": "uint96"
555
566
  }
556
567
  ],
557
568
  "name": "lockCollateral",
@@ -577,9 +588,9 @@
577
588
  "type": "uint96"
578
589
  },
579
590
  {
580
- "internalType": "uint256",
591
+ "internalType": "Amount",
581
592
  "name": "collateralAmount",
582
- "type": "uint256"
593
+ "type": "uint96"
583
594
  }
584
595
  ],
585
596
  "name": "releaseCollateral",
@@ -649,6 +660,24 @@
649
660
  "stateMutability": "view",
650
661
  "type": "function"
651
662
  },
663
+ {
664
+ "inputs": [
665
+ {
666
+ "internalType": "contract IInstance",
667
+ "name": "instance",
668
+ "type": "address"
669
+ },
670
+ {
671
+ "internalType": "NftId",
672
+ "name": "policyNftId",
673
+ "type": "uint96"
674
+ }
675
+ ],
676
+ "name": "unlinkPolicy",
677
+ "outputs": [],
678
+ "stateMutability": "nonpayable",
679
+ "type": "function"
680
+ },
652
681
  {
653
682
  "inputs": [
654
683
  {
@@ -662,6 +691,29 @@
662
691
  "stateMutability": "nonpayable",
663
692
  "type": "function"
664
693
  },
694
+ {
695
+ "inputs": [
696
+ {
697
+ "internalType": "contract IInstance",
698
+ "name": "instance",
699
+ "type": "address"
700
+ },
701
+ {
702
+ "internalType": "NftId",
703
+ "name": "bundleNftId",
704
+ "type": "uint96"
705
+ },
706
+ {
707
+ "internalType": "Amount",
708
+ "name": "feeAmount",
709
+ "type": "uint96"
710
+ }
711
+ ],
712
+ "name": "updateBundleFees",
713
+ "outputs": [],
714
+ "stateMutability": "nonpayable",
715
+ "type": "function"
716
+ },
665
717
  {
666
718
  "inputs": [
667
719
  {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6d337e35e1a2e4e40425b57181471e9c.json"
3
+ "buildInfo": "../../../../build-info/85066c6f3c5dc0f34dc544d5ab504181.json"
4
4
  }