@etherisc/gif-next 0.0.2-b28f7c7-340 → 0.0.2-b44ae3c-205

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
  2. package/artifacts/contracts/components/Component.sol/Component.json +37 -6
  3. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.json +60 -13
  5. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +1 -1
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.json +37 -6
  7. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +44 -13
  9. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +55 -24
  11. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +52 -21
  13. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  14. package/artifacts/contracts/components/Pool.sol/Pool.json +55 -24
  15. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  16. package/artifacts/contracts/components/Product.sol/Product.json +52 -21
  17. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
  18. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +2 -2
  19. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
  20. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  21. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +309 -2023
  22. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  23. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +21 -38
  24. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  25. package/artifacts/contracts/instance/Instance.sol/Instance.json +424 -2776
  26. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  27. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +67 -49
  28. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.dbg.json +4 -0
  29. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.json +124 -0
  30. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  31. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +331 -51
  32. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  33. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +59 -259
  34. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  35. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +32 -117
  36. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
  37. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +2788 -0
  38. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
  39. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +2 -2
  40. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +1 -1
  41. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +37 -13
  42. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  43. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  44. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  45. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +8 -8
  46. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  47. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +6 -6
  48. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  49. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  50. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +1 -1
  51. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  52. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  53. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  54. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  55. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  56. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +1 -1
  57. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +113 -234
  58. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +1 -1
  59. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +35 -60
  60. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +1 -1
  61. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +171 -114
  62. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
  63. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +35 -60
  64. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +1 -1
  65. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +638 -71
  66. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +1 -1
  67. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +144 -33
  68. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  69. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +178 -420
  70. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  71. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +80 -105
  72. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +1 -1
  73. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +45 -174
  74. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
  75. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +104 -28
  76. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +1 -1
  77. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +313 -45
  78. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  79. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +23 -273
  80. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
  81. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +128 -83
  82. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  83. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +269 -36
  84. package/artifacts/contracts/instance/service/IPricingService.sol/IPricingService.dbg.json +4 -0
  85. package/artifacts/contracts/instance/service/IPricingService.sol/IPricingService.json +510 -0
  86. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  87. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +5 -13
  88. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
  89. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +328 -139
  90. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
  91. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +98 -55
  92. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  93. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +443 -58
  94. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  95. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +84 -37
  96. package/artifacts/contracts/instance/service/PricingService.sol/PricingService.dbg.json +4 -0
  97. package/artifacts/contracts/instance/service/PricingService.sol/PricingService.json +1004 -0
  98. package/artifacts/contracts/instance/service/PricingServiceManager.sol/PricingServiceManager.dbg.json +4 -0
  99. package/artifacts/contracts/instance/service/PricingServiceManager.sol/PricingServiceManager.json +688 -0
  100. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  101. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +55 -31
  102. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
  103. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +22 -35
  104. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  105. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  106. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  107. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +5 -13
  108. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  109. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  110. package/artifacts/contracts/registry/Registry.sol/Registry.json +2 -2
  111. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +1 -1
  112. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +2 -2
  113. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  114. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +17 -25
  115. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  116. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +21 -34
  117. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
  118. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +2 -2
  119. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  120. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +10 -23
  121. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  122. package/artifacts/contracts/{instance → shared}/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +3 -3
  123. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  124. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  125. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  126. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +0 -13
  127. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +1 -1
  128. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +69 -9
  129. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  130. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +0 -13
  131. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
  132. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.json +0 -13
  133. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  134. package/artifacts/contracts/shared/IService.sol/IService.json +5 -13
  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 +6 -19
  138. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +1 -1
  139. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +80 -26
  140. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  141. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +14 -27
  142. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  143. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +6 -19
  144. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +1 -1
  145. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +2 -15
  146. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  147. package/artifacts/contracts/shared/Service.sol/Service.json +5 -13
  148. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  149. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +24 -6
  150. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  151. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  152. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  153. package/artifacts/contracts/test/TestFee.sol/TestFee.json +2 -2
  154. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  155. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +6 -19
  156. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  157. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  158. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  159. package/artifacts/contracts/test/TestService.sol/TestService.json +17 -25
  160. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  161. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  162. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  163. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  164. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  165. package/artifacts/contracts/types/Amount.sol/AmountLib.dbg.json +1 -1
  166. package/artifacts/contracts/types/Amount.sol/AmountLib.json +124 -4
  167. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  168. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  169. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +1 -1
  170. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +83 -4
  171. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  172. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
  173. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  174. package/artifacts/contracts/types/Fee.sol/FeeLib.json +42 -18
  175. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  176. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
  177. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  178. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  179. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  180. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
  181. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  182. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  183. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  184. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +1 -1
  185. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +116 -7
  186. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  187. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +2 -2
  188. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  189. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  190. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  191. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  192. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +1 -1
  193. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  194. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  195. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  196. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +17 -4
  197. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  198. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  199. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  200. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  201. package/contracts/components/Component.sol +21 -2
  202. package/contracts/components/Distribution.sol +11 -6
  203. package/contracts/components/IComponent.sol +16 -2
  204. package/contracts/components/IPoolComponent.sol +8 -7
  205. package/contracts/components/IProductComponent.sol +5 -4
  206. package/contracts/components/Pool.sol +11 -12
  207. package/contracts/components/Product.sol +144 -62
  208. package/contracts/instance/BundleManager.sol +3 -4
  209. package/contracts/instance/IInstance.sol +32 -53
  210. package/contracts/instance/IInstanceService.sol +15 -14
  211. package/contracts/instance/Instance.sol +107 -205
  212. package/contracts/instance/InstanceAccessManager.sol +35 -21
  213. package/contracts/instance/InstanceAuthorizationsLib.sol +308 -0
  214. package/contracts/instance/InstanceReader.sol +84 -7
  215. package/contracts/instance/InstanceService.sol +96 -283
  216. package/contracts/instance/InstanceStore.sol +212 -0
  217. package/contracts/instance/ObjectManager.sol +1 -1
  218. package/contracts/instance/base/ComponentService.sol +47 -20
  219. package/contracts/instance/base/KeyValueStore.sol +0 -31
  220. package/contracts/instance/base/Lifecycle.sol +15 -4
  221. package/contracts/instance/module/IComponents.sol +3 -3
  222. package/contracts/instance/module/IDistribution.sol +3 -2
  223. package/contracts/instance/module/IPolicy.sol +13 -8
  224. package/contracts/instance/service/ApplicationService.sol +58 -222
  225. package/contracts/instance/service/BundleService.sol +71 -120
  226. package/contracts/instance/service/ClaimService.sol +316 -30
  227. package/contracts/instance/service/DistributionService.sol +62 -149
  228. package/contracts/instance/service/IApplicationService.sol +8 -28
  229. package/contracts/instance/service/IBundleService.sol +34 -9
  230. package/contracts/instance/service/IClaimService.sol +52 -23
  231. package/contracts/instance/service/IDistributionService.sol +10 -22
  232. package/contracts/instance/service/IPolicyService.sol +24 -16
  233. package/contracts/instance/service/IPoolService.sol +18 -3
  234. package/contracts/instance/service/IPricingService.sol +37 -0
  235. package/contracts/instance/service/PolicyService.sol +126 -112
  236. package/contracts/instance/service/PoolService.sol +121 -21
  237. package/contracts/instance/service/PricingService.sol +275 -0
  238. package/contracts/instance/service/PricingServiceManager.sol +51 -0
  239. package/contracts/instance/service/ProductService.sol +11 -11
  240. package/contracts/registry/IRegistryService.sol +0 -2
  241. package/contracts/registry/RegistryService.sol +14 -10
  242. package/contracts/shared/IPolicyHolder.sol +23 -9
  243. package/contracts/shared/IRegistryLinked.sol +0 -1
  244. package/contracts/shared/IService.sol +2 -0
  245. package/contracts/shared/NftOwnable.sol +0 -2
  246. package/contracts/shared/PolicyHolder.sol +30 -17
  247. package/contracts/shared/Registerable.sol +10 -9
  248. package/contracts/shared/RegistryLinked.sol +0 -5
  249. package/contracts/shared/TokenHandler.sol +4 -2
  250. package/contracts/types/Amount.sol +49 -0
  251. package/contracts/types/ClaimId.sol +25 -2
  252. package/contracts/types/Fee.sol +7 -6
  253. package/contracts/types/ObjectType.sol +9 -5
  254. package/contracts/types/PayoutId.sol +33 -5
  255. package/contracts/types/StateId.sol +6 -2
  256. package/contracts/types/Timestamp.sol +5 -0
  257. package/package.json +1 -1
  258. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +0 -4
  259. /package/contracts/{instance → shared}/AccessManagerUpgradeableInitializeable.sol +0 -0
@@ -52,6 +52,22 @@
52
52
  "name": "ErrorDistributionServiceCallerNotRegistered",
53
53
  "type": "error"
54
54
  },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "internalType": "Amount",
59
+ "name": "transferredDistributionFeeAmount",
60
+ "type": "uint96"
61
+ },
62
+ {
63
+ "internalType": "Amount",
64
+ "name": "expectedDistributionFeeAmount",
65
+ "type": "uint96"
66
+ }
67
+ ],
68
+ "name": "ErrorDistributionServiceInvalidFeeTransferred",
69
+ "type": "error"
70
+ },
55
71
  {
56
72
  "inputs": [
57
73
  {
@@ -138,58 +154,6 @@
138
154
  "name": "ErrorIDistributionServiceExpiryTooLong",
139
155
  "type": "error"
140
156
  },
141
- {
142
- "inputs": [
143
- {
144
- "internalType": "uint256",
145
- "name": "distributionFeeFixAmount",
146
- "type": "uint256"
147
- },
148
- {
149
- "internalType": "uint256",
150
- "name": "distributionFeeVarAmount",
151
- "type": "uint256"
152
- },
153
- {
154
- "internalType": "uint256",
155
- "name": "distributionOwnerFeeFixAmount",
156
- "type": "uint256"
157
- },
158
- {
159
- "internalType": "uint256",
160
- "name": "distributionOwnerFeeVarAmount",
161
- "type": "uint256"
162
- },
163
- {
164
- "internalType": "uint256",
165
- "name": "commissionAmount",
166
- "type": "uint256"
167
- },
168
- {
169
- "internalType": "uint256",
170
- "name": "discountAmount",
171
- "type": "uint256"
172
- }
173
- ],
174
- "name": "ErrorIDistributionServiceFeeCalculationMismatch",
175
- "type": "error"
176
- },
177
- {
178
- "inputs": [
179
- {
180
- "internalType": "uint256",
181
- "name": "transferredDistributionFeeAmount",
182
- "type": "uint256"
183
- },
184
- {
185
- "internalType": "uint256",
186
- "name": "expectedDistributionFeeAmount",
187
- "type": "uint256"
188
- }
189
- ],
190
- "name": "ErrorIDistributionServiceInvalidFeeTransferred",
191
- "type": "error"
192
- },
193
157
  {
194
158
  "inputs": [
195
159
  {
@@ -336,6 +300,11 @@
336
300
  "name": "ErrorNotRegistry",
337
301
  "type": "error"
338
302
  },
303
+ {
304
+ "inputs": [],
305
+ "name": "ErrorServiceNotImplemented",
306
+ "type": "error"
307
+ },
339
308
  {
340
309
  "anonymous": false,
341
310
  "inputs": [
@@ -362,189 +331,6 @@
362
331
  "stateMutability": "view",
363
332
  "type": "function"
364
333
  },
365
- {
366
- "inputs": [
367
- {
368
- "internalType": "NftId",
369
- "name": "distributionNftId",
370
- "type": "uint96"
371
- },
372
- {
373
- "internalType": "ReferralId",
374
- "name": "referralId",
375
- "type": "bytes8"
376
- },
377
- {
378
- "components": [
379
- {
380
- "internalType": "uint256",
381
- "name": "netPremiumAmount",
382
- "type": "uint256"
383
- },
384
- {
385
- "internalType": "uint256",
386
- "name": "fullPremiumAmount",
387
- "type": "uint256"
388
- },
389
- {
390
- "internalType": "uint256",
391
- "name": "premiumAmount",
392
- "type": "uint256"
393
- },
394
- {
395
- "internalType": "uint256",
396
- "name": "productFeeFixAmount",
397
- "type": "uint256"
398
- },
399
- {
400
- "internalType": "uint256",
401
- "name": "poolFeeFixAmount",
402
- "type": "uint256"
403
- },
404
- {
405
- "internalType": "uint256",
406
- "name": "bundleFeeFixAmount",
407
- "type": "uint256"
408
- },
409
- {
410
- "internalType": "uint256",
411
- "name": "distributionFeeFixAmount",
412
- "type": "uint256"
413
- },
414
- {
415
- "internalType": "uint256",
416
- "name": "productFeeVarAmount",
417
- "type": "uint256"
418
- },
419
- {
420
- "internalType": "uint256",
421
- "name": "poolFeeVarAmount",
422
- "type": "uint256"
423
- },
424
- {
425
- "internalType": "uint256",
426
- "name": "bundleFeeVarAmount",
427
- "type": "uint256"
428
- },
429
- {
430
- "internalType": "uint256",
431
- "name": "distributionFeeVarAmount",
432
- "type": "uint256"
433
- },
434
- {
435
- "internalType": "uint256",
436
- "name": "distributionOwnerFeeFixAmount",
437
- "type": "uint256"
438
- },
439
- {
440
- "internalType": "uint256",
441
- "name": "distributionOwnerFeeVarAmount",
442
- "type": "uint256"
443
- },
444
- {
445
- "internalType": "uint256",
446
- "name": "commissionAmount",
447
- "type": "uint256"
448
- },
449
- {
450
- "internalType": "uint256",
451
- "name": "discountAmount",
452
- "type": "uint256"
453
- }
454
- ],
455
- "internalType": "struct IPolicy.Premium",
456
- "name": "premium",
457
- "type": "tuple"
458
- }
459
- ],
460
- "name": "calculateFeeAmount",
461
- "outputs": [
462
- {
463
- "components": [
464
- {
465
- "internalType": "uint256",
466
- "name": "netPremiumAmount",
467
- "type": "uint256"
468
- },
469
- {
470
- "internalType": "uint256",
471
- "name": "fullPremiumAmount",
472
- "type": "uint256"
473
- },
474
- {
475
- "internalType": "uint256",
476
- "name": "premiumAmount",
477
- "type": "uint256"
478
- },
479
- {
480
- "internalType": "uint256",
481
- "name": "productFeeFixAmount",
482
- "type": "uint256"
483
- },
484
- {
485
- "internalType": "uint256",
486
- "name": "poolFeeFixAmount",
487
- "type": "uint256"
488
- },
489
- {
490
- "internalType": "uint256",
491
- "name": "bundleFeeFixAmount",
492
- "type": "uint256"
493
- },
494
- {
495
- "internalType": "uint256",
496
- "name": "distributionFeeFixAmount",
497
- "type": "uint256"
498
- },
499
- {
500
- "internalType": "uint256",
501
- "name": "productFeeVarAmount",
502
- "type": "uint256"
503
- },
504
- {
505
- "internalType": "uint256",
506
- "name": "poolFeeVarAmount",
507
- "type": "uint256"
508
- },
509
- {
510
- "internalType": "uint256",
511
- "name": "bundleFeeVarAmount",
512
- "type": "uint256"
513
- },
514
- {
515
- "internalType": "uint256",
516
- "name": "distributionFeeVarAmount",
517
- "type": "uint256"
518
- },
519
- {
520
- "internalType": "uint256",
521
- "name": "distributionOwnerFeeFixAmount",
522
- "type": "uint256"
523
- },
524
- {
525
- "internalType": "uint256",
526
- "name": "distributionOwnerFeeVarAmount",
527
- "type": "uint256"
528
- },
529
- {
530
- "internalType": "uint256",
531
- "name": "commissionAmount",
532
- "type": "uint256"
533
- },
534
- {
535
- "internalType": "uint256",
536
- "name": "discountAmount",
537
- "type": "uint256"
538
- }
539
- ],
540
- "internalType": "struct IPolicy.Premium",
541
- "name": "finalPremium",
542
- "type": "tuple"
543
- }
544
- ],
545
- "stateMutability": "view",
546
- "type": "function"
547
- },
548
334
  {
549
335
  "inputs": [
550
336
  {
@@ -779,19 +565,6 @@
779
565
  "stateMutability": "view",
780
566
  "type": "function"
781
567
  },
782
- {
783
- "inputs": [],
784
- "name": "getRegistryAddress",
785
- "outputs": [
786
- {
787
- "internalType": "address",
788
- "name": "",
789
- "type": "address"
790
- }
791
- ],
792
- "stateMutability": "view",
793
- "type": "function"
794
- },
795
568
  {
796
569
  "inputs": [],
797
570
  "name": "getVersion",
@@ -938,9 +711,9 @@
938
711
  "type": "tuple"
939
712
  },
940
713
  {
941
- "internalType": "uint256",
714
+ "internalType": "Amount",
942
715
  "name": "transferredDistributionFeeAmount",
943
- "type": "uint256"
716
+ "type": "uint96"
944
717
  }
945
718
  ],
946
719
  "name": "processSale",
@@ -1046,29 +819,6 @@
1046
819
  "stateMutability": "view",
1047
820
  "type": "function"
1048
821
  },
1049
- {
1050
- "inputs": [
1051
- {
1052
- "internalType": "NftId",
1053
- "name": "distributorNftId",
1054
- "type": "uint96"
1055
- },
1056
- {
1057
- "internalType": "DistributorType",
1058
- "name": "distributorType",
1059
- "type": "bytes8"
1060
- },
1061
- {
1062
- "internalType": "bytes",
1063
- "name": "data",
1064
- "type": "bytes"
1065
- }
1066
- ],
1067
- "name": "updateDistributorType",
1068
- "outputs": [],
1069
- "stateMutability": "nonpayable",
1070
- "type": "function"
1071
- },
1072
822
  {
1073
823
  "inputs": [
1074
824
  {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/a217c5bb40d255ef67cb8b4d687de7f1.json"
3
+ "buildInfo": "../../../../build-info/9ad7e5cd40fc44ac9661107a4e6da944.json"
4
4
  }
@@ -136,107 +136,165 @@
136
136
  "inputs": [
137
137
  {
138
138
  "internalType": "NftId",
139
- "name": "policyNftId",
139
+ "name": "nftId",
140
140
  "type": "uint96"
141
- },
142
- {
143
- "internalType": "uint256",
144
- "name": "premiumPaidAmount",
145
- "type": "uint256"
146
141
  }
147
142
  ],
148
- "name": "ErrorIPolicyServicePremiumAlreadyPaid",
143
+ "name": "ErrorNftOwnableAlreadyLinked",
149
144
  "type": "error"
150
145
  },
151
146
  {
152
147
  "inputs": [
153
148
  {
154
- "internalType": "NftId",
155
- "name": "policyNftId",
156
- "type": "uint96"
157
- },
149
+ "internalType": "address",
150
+ "name": "contractAddress",
151
+ "type": "address"
152
+ }
153
+ ],
154
+ "name": "ErrorNftOwnableContractNotRegistered",
155
+ "type": "error"
156
+ },
157
+ {
158
+ "inputs": [],
159
+ "name": "ErrorNftOwnableInitialOwnerZero",
160
+ "type": "error"
161
+ },
162
+ {
163
+ "inputs": [
158
164
  {
159
- "internalType": "uint256",
160
- "name": "premiumAmount",
161
- "type": "uint256"
162
- },
165
+ "internalType": "address",
166
+ "name": "account",
167
+ "type": "address"
168
+ }
169
+ ],
170
+ "name": "ErrorNftOwnableNotOwner",
171
+ "type": "error"
172
+ },
173
+ {
174
+ "inputs": [
163
175
  {
164
- "internalType": "uint256",
165
- "name": "recalculatedPremiumAmount",
166
- "type": "uint256"
176
+ "internalType": "address",
177
+ "name": "registryAddress",
178
+ "type": "address"
167
179
  }
168
180
  ],
169
- "name": "ErrorIPolicyServicePremiumMismatch",
181
+ "name": "ErrorNotRegistry",
170
182
  "type": "error"
171
183
  },
172
184
  {
173
185
  "inputs": [
174
186
  {
175
187
  "internalType": "NftId",
176
- "name": "policyNftId",
188
+ "name": "applicationNftId",
177
189
  "type": "uint96"
178
190
  },
179
191
  {
180
- "internalType": "uint256",
181
- "name": "premiumAmount",
182
- "type": "uint256"
192
+ "internalType": "NftId",
193
+ "name": "expectedProductNftId",
194
+ "type": "uint96"
183
195
  },
184
196
  {
185
- "internalType": "uint256",
186
- "name": "premiumPaidAmount",
187
- "type": "uint256"
197
+ "internalType": "NftId",
198
+ "name": "actualProductNftId",
199
+ "type": "uint96"
188
200
  }
189
201
  ],
190
- "name": "ErrorIPolicyServicePremiumNotFullyPaid",
202
+ "name": "ErrorPolicyServicePolicyProductMismatch",
191
203
  "type": "error"
192
204
  },
193
205
  {
194
206
  "inputs": [
195
207
  {
196
208
  "internalType": "NftId",
197
- "name": "nftId",
209
+ "name": "applicationNftId",
198
210
  "type": "uint96"
199
211
  }
200
212
  ],
201
- "name": "ErrorNftOwnableAlreadyLinked",
213
+ "name": "ErrorPolicyServicePolicyStateNotApplied",
202
214
  "type": "error"
203
215
  },
204
216
  {
205
217
  "inputs": [
206
218
  {
207
- "internalType": "address",
208
- "name": "contractAddress",
209
- "type": "address"
219
+ "internalType": "NftId",
220
+ "name": "policyNftId",
221
+ "type": "uint96"
222
+ },
223
+ {
224
+ "internalType": "Amount",
225
+ "name": "premiumPaidAmount",
226
+ "type": "uint96"
210
227
  }
211
228
  ],
212
- "name": "ErrorNftOwnableContractNotRegistered",
229
+ "name": "ErrorPolicyServicePremiumAlreadyPaid",
213
230
  "type": "error"
214
231
  },
215
232
  {
216
- "inputs": [],
217
- "name": "ErrorNftOwnableInitialOwnerZero",
233
+ "inputs": [
234
+ {
235
+ "internalType": "NftId",
236
+ "name": "policyNftId",
237
+ "type": "uint96"
238
+ },
239
+ {
240
+ "internalType": "Amount",
241
+ "name": "expectedPremiumAmount",
242
+ "type": "uint96"
243
+ },
244
+ {
245
+ "internalType": "Amount",
246
+ "name": "recalculatedPremiumAmount",
247
+ "type": "uint96"
248
+ }
249
+ ],
250
+ "name": "ErrorPolicyServicePremiumMismatch",
218
251
  "type": "error"
219
252
  },
220
253
  {
221
254
  "inputs": [
222
255
  {
223
- "internalType": "address",
224
- "name": "account",
225
- "type": "address"
256
+ "internalType": "NftId",
257
+ "name": "policyNftId",
258
+ "type": "uint96"
259
+ },
260
+ {
261
+ "internalType": "Amount",
262
+ "name": "premiumAmount",
263
+ "type": "uint96"
264
+ },
265
+ {
266
+ "internalType": "Amount",
267
+ "name": "premiumPaidAmount",
268
+ "type": "uint96"
226
269
  }
227
270
  ],
228
- "name": "ErrorNftOwnableNotOwner",
271
+ "name": "ErrorPolicyServicePremiumNotFullyPaid",
229
272
  "type": "error"
230
273
  },
231
274
  {
232
275
  "inputs": [
233
276
  {
234
- "internalType": "address",
235
- "name": "registryAddress",
236
- "type": "address"
277
+ "internalType": "NftId",
278
+ "name": "policyNftId",
279
+ "type": "uint96"
280
+ },
281
+ {
282
+ "internalType": "Amount",
283
+ "name": "expectedPremiumAmount",
284
+ "type": "uint96"
285
+ },
286
+ {
287
+ "internalType": "Amount",
288
+ "name": "transferredPremiumAmount",
289
+ "type": "uint96"
237
290
  }
238
291
  ],
239
- "name": "ErrorNotRegistry",
292
+ "name": "ErrorPolicyServiceTransferredPremiumMismatch",
293
+ "type": "error"
294
+ },
295
+ {
296
+ "inputs": [],
297
+ "name": "ErrorServiceNotImplemented",
240
298
  "type": "error"
241
299
  },
242
300
  {
@@ -291,17 +349,17 @@
291
349
  "type": "uint256"
292
350
  },
293
351
  {
294
- "internalType": "uint256",
352
+ "internalType": "Amount",
295
353
  "name": "sumInsuredAmount",
296
- "type": "uint256"
354
+ "type": "uint96"
297
355
  }
298
356
  ],
299
357
  "name": "calculateRequiredCollateral",
300
358
  "outputs": [
301
359
  {
302
- "internalType": "uint256",
360
+ "internalType": "Amount",
303
361
  "name": "collateralAmount",
304
- "type": "uint256"
362
+ "type": "uint96"
305
363
  }
306
364
  ],
307
365
  "stateMutability": "pure",
@@ -320,6 +378,29 @@
320
378
  "stateMutability": "nonpayable",
321
379
  "type": "function"
322
380
  },
381
+ {
382
+ "inputs": [
383
+ {
384
+ "internalType": "NftId",
385
+ "name": "policyNftId",
386
+ "type": "uint96"
387
+ },
388
+ {
389
+ "internalType": "bool",
390
+ "name": "requirePremiumPayment",
391
+ "type": "bool"
392
+ },
393
+ {
394
+ "internalType": "Timestamp",
395
+ "name": "activateAt",
396
+ "type": "uint40"
397
+ }
398
+ ],
399
+ "name": "collateralize",
400
+ "outputs": [],
401
+ "stateMutability": "nonpayable",
402
+ "type": "function"
403
+ },
323
404
  {
324
405
  "inputs": [
325
406
  {
@@ -466,19 +547,6 @@
466
547
  "stateMutability": "view",
467
548
  "type": "function"
468
549
  },
469
- {
470
- "inputs": [],
471
- "name": "getRegistryAddress",
472
- "outputs": [
473
- {
474
- "internalType": "address",
475
- "name": "",
476
- "type": "address"
477
- }
478
- ],
479
- "stateMutability": "view",
480
- "type": "function"
481
- },
482
550
  {
483
551
  "inputs": [],
484
552
  "name": "getVersion",
@@ -562,29 +630,6 @@
562
630
  "stateMutability": "view",
563
631
  "type": "function"
564
632
  },
565
- {
566
- "inputs": [
567
- {
568
- "internalType": "NftId",
569
- "name": "policyNftId",
570
- "type": "uint96"
571
- },
572
- {
573
- "internalType": "bool",
574
- "name": "requirePremiumPayment",
575
- "type": "bool"
576
- },
577
- {
578
- "internalType": "Timestamp",
579
- "name": "activateAt",
580
- "type": "uint40"
581
- }
582
- ],
583
- "name": "underwrite",
584
- "outputs": [],
585
- "stateMutability": "nonpayable",
586
- "type": "function"
587
- },
588
633
  {
589
634
  "inputs": [
590
635
  {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/a217c5bb40d255ef67cb8b4d687de7f1.json"
3
+ "buildInfo": "../../../../build-info/9ad7e5cd40fc44ac9661107a4e6da944.json"
4
4
  }