@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
@@ -115,6 +115,11 @@
115
115
  "name": "ErrorComponentWalletAllowanceTooSmall",
116
116
  "type": "error"
117
117
  },
118
+ {
119
+ "inputs": [],
120
+ "name": "ErrorComponentWalletNotComponent",
121
+ "type": "error"
122
+ },
118
123
  {
119
124
  "inputs": [
120
125
  {
@@ -215,6 +220,19 @@
215
220
  "name": "AuthorityUpdated",
216
221
  "type": "event"
217
222
  },
223
+ {
224
+ "anonymous": false,
225
+ "inputs": [
226
+ {
227
+ "indexed": false,
228
+ "internalType": "uint256",
229
+ "name": "limit",
230
+ "type": "uint256"
231
+ }
232
+ ],
233
+ "name": "LogComponentTokenHandlerApproved",
234
+ "type": "event"
235
+ },
218
236
  {
219
237
  "anonymous": false,
220
238
  "inputs": [
@@ -276,9 +294,9 @@
276
294
  },
277
295
  {
278
296
  "indexed": false,
279
- "internalType": "uint256",
297
+ "internalType": "Amount",
280
298
  "name": "collateralizationAmount",
281
- "type": "uint256"
299
+ "type": "uint96"
282
300
  }
283
301
  ],
284
302
  "name": "LogPoolVerifiedByPool",
@@ -307,9 +325,9 @@
307
325
  "type": "bytes"
308
326
  },
309
327
  {
310
- "internalType": "uint256",
328
+ "internalType": "Amount",
311
329
  "name": "collateralizationAmount",
312
- "type": "uint256"
330
+ "type": "uint96"
313
331
  }
314
332
  ],
315
333
  "name": "applicationMatchesBundle",
@@ -323,6 +341,19 @@
323
341
  "stateMutability": "view",
324
342
  "type": "function"
325
343
  },
344
+ {
345
+ "inputs": [
346
+ {
347
+ "internalType": "uint256",
348
+ "name": "spendingLimitAmount",
349
+ "type": "uint256"
350
+ }
351
+ ],
352
+ "name": "approveTokenHandler",
353
+ "outputs": [],
354
+ "stateMutability": "nonpayable",
355
+ "type": "function"
356
+ },
326
357
  {
327
358
  "inputs": [],
328
359
  "name": "authority",
@@ -536,19 +567,19 @@
536
567
  "type": "uint64"
537
568
  },
538
569
  {
539
- "internalType": "uint256",
570
+ "internalType": "Amount",
540
571
  "name": "maxCapitalAmount",
541
- "type": "uint256"
572
+ "type": "uint96"
542
573
  },
543
574
  {
544
- "internalType": "uint256",
575
+ "internalType": "Amount",
545
576
  "name": "balanceAmount",
546
- "type": "uint256"
577
+ "type": "uint96"
547
578
  },
548
579
  {
549
- "internalType": "uint256",
580
+ "internalType": "Amount",
550
581
  "name": "feeAmount",
551
- "type": "uint256"
582
+ "type": "uint96"
552
583
  },
553
584
  {
554
585
  "internalType": "bool",
@@ -663,11 +694,11 @@
663
694
  },
664
695
  {
665
696
  "inputs": [],
666
- "name": "getRegistryAddress",
697
+ "name": "getToken",
667
698
  "outputs": [
668
699
  {
669
- "internalType": "address",
670
- "name": "",
700
+ "internalType": "contract IERC20Metadata",
701
+ "name": "token",
671
702
  "type": "address"
672
703
  }
673
704
  ],
@@ -676,11 +707,11 @@
676
707
  },
677
708
  {
678
709
  "inputs": [],
679
- "name": "getToken",
710
+ "name": "getTokenHandler",
680
711
  "outputs": [
681
712
  {
682
- "internalType": "contract IERC20Metadata",
683
- "name": "token",
713
+ "internalType": "contract TokenHandler",
714
+ "name": "tokenHandler",
684
715
  "type": "address"
685
716
  }
686
717
  ],
@@ -912,9 +943,9 @@
912
943
  {
913
944
  "inputs": [
914
945
  {
915
- "internalType": "uint256",
946
+ "internalType": "Amount",
916
947
  "name": "maxCapitalAmount",
917
- "type": "uint256"
948
+ "type": "uint96"
918
949
  }
919
950
  ],
920
951
  "name": "setMaxCapitalAmount",
@@ -956,9 +987,9 @@
956
987
  "type": "uint96"
957
988
  },
958
989
  {
959
- "internalType": "uint256",
990
+ "internalType": "Amount",
960
991
  "name": "amount",
961
- "type": "uint256"
992
+ "type": "uint96"
962
993
  }
963
994
  ],
964
995
  "name": "stake",
@@ -1013,9 +1044,9 @@
1013
1044
  "type": "uint96"
1014
1045
  },
1015
1046
  {
1016
- "internalType": "uint256",
1047
+ "internalType": "Amount",
1017
1048
  "name": "amount",
1018
- "type": "uint256"
1049
+ "type": "uint96"
1019
1050
  }
1020
1051
  ],
1021
1052
  "name": "unstake",
@@ -1046,9 +1077,9 @@
1046
1077
  "type": "bytes"
1047
1078
  },
1048
1079
  {
1049
- "internalType": "uint256",
1080
+ "internalType": "Amount",
1050
1081
  "name": "collateralizationAmount",
1051
- "type": "uint256"
1082
+ "type": "uint96"
1052
1083
  }
1053
1084
  ],
1054
1085
  "name": "verifyApplication",
@@ -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
  }
@@ -115,6 +115,11 @@
115
115
  "name": "ErrorComponentWalletAllowanceTooSmall",
116
116
  "type": "error"
117
117
  },
118
+ {
119
+ "inputs": [],
120
+ "name": "ErrorComponentWalletNotComponent",
121
+ "type": "error"
122
+ },
118
123
  {
119
124
  "inputs": [
120
125
  {
@@ -177,6 +182,19 @@
177
182
  "name": "AuthorityUpdated",
178
183
  "type": "event"
179
184
  },
185
+ {
186
+ "anonymous": false,
187
+ "inputs": [
188
+ {
189
+ "indexed": false,
190
+ "internalType": "uint256",
191
+ "name": "limit",
192
+ "type": "uint256"
193
+ }
194
+ ],
195
+ "name": "LogComponentTokenHandlerApproved",
196
+ "type": "event"
197
+ },
180
198
  {
181
199
  "anonymous": false,
182
200
  "inputs": [
@@ -221,6 +239,19 @@
221
239
  "name": "LogComponentWalletTokensTransferred",
222
240
  "type": "event"
223
241
  },
242
+ {
243
+ "inputs": [
244
+ {
245
+ "internalType": "uint256",
246
+ "name": "spendingLimitAmount",
247
+ "type": "uint256"
248
+ }
249
+ ],
250
+ "name": "approveTokenHandler",
251
+ "outputs": [],
252
+ "stateMutability": "nonpayable",
253
+ "type": "function"
254
+ },
224
255
  {
225
256
  "inputs": [],
226
257
  "name": "authority",
@@ -237,9 +268,9 @@
237
268
  {
238
269
  "inputs": [
239
270
  {
240
- "internalType": "uint256",
271
+ "internalType": "Amount",
241
272
  "name": "sumInsuredAmount",
242
- "type": "uint256"
273
+ "type": "uint96"
243
274
  },
244
275
  {
245
276
  "internalType": "RiskId",
@@ -260,9 +291,9 @@
260
291
  "name": "calculateNetPremium",
261
292
  "outputs": [
262
293
  {
263
- "internalType": "uint256",
294
+ "internalType": "Amount",
264
295
  "name": "netPremiumAmount",
265
- "type": "uint256"
296
+ "type": "uint96"
266
297
  }
267
298
  ],
268
299
  "stateMutability": "view",
@@ -271,9 +302,9 @@
271
302
  {
272
303
  "inputs": [
273
304
  {
274
- "internalType": "uint256",
305
+ "internalType": "Amount",
275
306
  "name": "sumInsuredAmount",
276
- "type": "uint256"
307
+ "type": "uint96"
277
308
  },
278
309
  {
279
310
  "internalType": "RiskId",
@@ -304,9 +335,9 @@
304
335
  "name": "calculatePremium",
305
336
  "outputs": [
306
337
  {
307
- "internalType": "uint256",
338
+ "internalType": "Amount",
308
339
  "name": "premiumAmount",
309
- "type": "uint256"
340
+ "type": "uint96"
310
341
  }
311
342
  ],
312
343
  "stateMutability": "view",
@@ -516,19 +547,6 @@
516
547
  "stateMutability": "view",
517
548
  "type": "function"
518
549
  },
519
- {
520
- "inputs": [],
521
- "name": "getRegistryAddress",
522
- "outputs": [
523
- {
524
- "internalType": "address",
525
- "name": "",
526
- "type": "address"
527
- }
528
- ],
529
- "stateMutability": "view",
530
- "type": "function"
531
- },
532
550
  {
533
551
  "inputs": [],
534
552
  "name": "getSetupInfo",
@@ -621,6 +639,19 @@
621
639
  "stateMutability": "view",
622
640
  "type": "function"
623
641
  },
642
+ {
643
+ "inputs": [],
644
+ "name": "getTokenHandler",
645
+ "outputs": [
646
+ {
647
+ "internalType": "contract TokenHandler",
648
+ "name": "tokenHandler",
649
+ "type": "address"
650
+ }
651
+ ],
652
+ "stateMutability": "view",
653
+ "type": "function"
654
+ },
624
655
  {
625
656
  "inputs": [],
626
657
  "name": "getWallet",
@@ -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
  }
@@ -137,6 +137,11 @@
137
137
  "name": "ErrorComponentWalletAllowanceTooSmall",
138
138
  "type": "error"
139
139
  },
140
+ {
141
+ "inputs": [],
142
+ "name": "ErrorComponentWalletNotComponent",
143
+ "type": "error"
144
+ },
140
145
  {
141
146
  "inputs": [
142
147
  {
@@ -276,6 +281,19 @@
276
281
  "name": "Initialized",
277
282
  "type": "event"
278
283
  },
284
+ {
285
+ "anonymous": false,
286
+ "inputs": [
287
+ {
288
+ "indexed": false,
289
+ "internalType": "uint256",
290
+ "name": "limit",
291
+ "type": "uint256"
292
+ }
293
+ ],
294
+ "name": "LogComponentTokenHandlerApproved",
295
+ "type": "event"
296
+ },
279
297
  {
280
298
  "anonymous": false,
281
299
  "inputs": [
@@ -337,9 +355,9 @@
337
355
  },
338
356
  {
339
357
  "indexed": false,
340
- "internalType": "uint256",
358
+ "internalType": "Amount",
341
359
  "name": "collateralizationAmount",
342
- "type": "uint256"
360
+ "type": "uint96"
343
361
  }
344
362
  ],
345
363
  "name": "LogPoolVerifiedByPool",
@@ -420,9 +438,9 @@
420
438
  "type": "bytes"
421
439
  },
422
440
  {
423
- "internalType": "uint256",
441
+ "internalType": "Amount",
424
442
  "name": "collateralizationAmount",
425
- "type": "uint256"
443
+ "type": "uint96"
426
444
  }
427
445
  ],
428
446
  "name": "applicationMatchesBundle",
@@ -436,6 +454,19 @@
436
454
  "stateMutability": "view",
437
455
  "type": "function"
438
456
  },
457
+ {
458
+ "inputs": [
459
+ {
460
+ "internalType": "uint256",
461
+ "name": "spendingLimitAmount",
462
+ "type": "uint256"
463
+ }
464
+ ],
465
+ "name": "approveTokenHandler",
466
+ "outputs": [],
467
+ "stateMutability": "nonpayable",
468
+ "type": "function"
469
+ },
439
470
  {
440
471
  "inputs": [],
441
472
  "name": "authority",
@@ -668,19 +699,19 @@
668
699
  "type": "uint64"
669
700
  },
670
701
  {
671
- "internalType": "uint256",
702
+ "internalType": "Amount",
672
703
  "name": "maxCapitalAmount",
673
- "type": "uint256"
704
+ "type": "uint96"
674
705
  },
675
706
  {
676
- "internalType": "uint256",
707
+ "internalType": "Amount",
677
708
  "name": "balanceAmount",
678
- "type": "uint256"
709
+ "type": "uint96"
679
710
  },
680
711
  {
681
- "internalType": "uint256",
712
+ "internalType": "Amount",
682
713
  "name": "feeAmount",
683
- "type": "uint256"
714
+ "type": "uint96"
684
715
  },
685
716
  {
686
717
  "internalType": "bool",
@@ -795,11 +826,11 @@
795
826
  },
796
827
  {
797
828
  "inputs": [],
798
- "name": "getRegistryAddress",
829
+ "name": "getToken",
799
830
  "outputs": [
800
831
  {
801
- "internalType": "address",
802
- "name": "",
832
+ "internalType": "contract IERC20Metadata",
833
+ "name": "token",
803
834
  "type": "address"
804
835
  }
805
836
  ],
@@ -808,11 +839,11 @@
808
839
  },
809
840
  {
810
841
  "inputs": [],
811
- "name": "getToken",
842
+ "name": "getTokenHandler",
812
843
  "outputs": [
813
844
  {
814
- "internalType": "contract IERC20Metadata",
815
- "name": "token",
845
+ "internalType": "contract TokenHandler",
846
+ "name": "tokenHandler",
816
847
  "type": "address"
817
848
  }
818
849
  ],
@@ -1224,9 +1255,9 @@
1224
1255
  {
1225
1256
  "inputs": [
1226
1257
  {
1227
- "internalType": "uint256",
1258
+ "internalType": "Amount",
1228
1259
  "name": "maxCapitalAmount",
1229
- "type": "uint256"
1260
+ "type": "uint96"
1230
1261
  }
1231
1262
  ],
1232
1263
  "name": "setMaxCapitalAmount",
@@ -1268,9 +1299,9 @@
1268
1299
  "type": "uint96"
1269
1300
  },
1270
1301
  {
1271
- "internalType": "uint256",
1302
+ "internalType": "Amount",
1272
1303
  "name": "amount",
1273
- "type": "uint256"
1304
+ "type": "uint96"
1274
1305
  }
1275
1306
  ],
1276
1307
  "name": "stake",
@@ -1325,9 +1356,9 @@
1325
1356
  "type": "uint96"
1326
1357
  },
1327
1358
  {
1328
- "internalType": "uint256",
1359
+ "internalType": "Amount",
1329
1360
  "name": "amount",
1330
- "type": "uint256"
1361
+ "type": "uint96"
1331
1362
  }
1332
1363
  ],
1333
1364
  "name": "unstake",
@@ -1358,9 +1389,9 @@
1358
1389
  "type": "bytes"
1359
1390
  },
1360
1391
  {
1361
- "internalType": "uint256",
1392
+ "internalType": "Amount",
1362
1393
  "name": "collateralizationAmount",
1363
- "type": "uint256"
1394
+ "type": "uint96"
1364
1395
  }
1365
1396
  ],
1366
1397
  "name": "verifyApplication",
@@ -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
  }
@@ -137,6 +137,11 @@
137
137
  "name": "ErrorComponentWalletAllowanceTooSmall",
138
138
  "type": "error"
139
139
  },
140
+ {
141
+ "inputs": [],
142
+ "name": "ErrorComponentWalletNotComponent",
143
+ "type": "error"
144
+ },
140
145
  {
141
146
  "inputs": [
142
147
  {
@@ -238,6 +243,19 @@
238
243
  "name": "Initialized",
239
244
  "type": "event"
240
245
  },
246
+ {
247
+ "anonymous": false,
248
+ "inputs": [
249
+ {
250
+ "indexed": false,
251
+ "internalType": "uint256",
252
+ "name": "limit",
253
+ "type": "uint256"
254
+ }
255
+ ],
256
+ "name": "LogComponentTokenHandlerApproved",
257
+ "type": "event"
258
+ },
241
259
  {
242
260
  "anonymous": false,
243
261
  "inputs": [
@@ -334,6 +352,19 @@
334
352
  "stateMutability": "view",
335
353
  "type": "function"
336
354
  },
355
+ {
356
+ "inputs": [
357
+ {
358
+ "internalType": "uint256",
359
+ "name": "spendingLimitAmount",
360
+ "type": "uint256"
361
+ }
362
+ ],
363
+ "name": "approveTokenHandler",
364
+ "outputs": [],
365
+ "stateMutability": "nonpayable",
366
+ "type": "function"
367
+ },
337
368
  {
338
369
  "inputs": [],
339
370
  "name": "authority",
@@ -350,9 +381,9 @@
350
381
  {
351
382
  "inputs": [
352
383
  {
353
- "internalType": "uint256",
384
+ "internalType": "Amount",
354
385
  "name": "sumInsuredAmount",
355
- "type": "uint256"
386
+ "type": "uint96"
356
387
  },
357
388
  {
358
389
  "internalType": "RiskId",
@@ -373,9 +404,9 @@
373
404
  "name": "calculateNetPremium",
374
405
  "outputs": [
375
406
  {
376
- "internalType": "uint256",
407
+ "internalType": "Amount",
377
408
  "name": "netPremiumAmount",
378
- "type": "uint256"
409
+ "type": "uint96"
379
410
  }
380
411
  ],
381
412
  "stateMutability": "view",
@@ -384,9 +415,9 @@
384
415
  {
385
416
  "inputs": [
386
417
  {
387
- "internalType": "uint256",
418
+ "internalType": "Amount",
388
419
  "name": "sumInsuredAmount",
389
- "type": "uint256"
420
+ "type": "uint96"
390
421
  },
391
422
  {
392
423
  "internalType": "RiskId",
@@ -417,9 +448,9 @@
417
448
  "name": "calculatePremium",
418
449
  "outputs": [
419
450
  {
420
- "internalType": "uint256",
451
+ "internalType": "Amount",
421
452
  "name": "premiumAmount",
422
- "type": "uint256"
453
+ "type": "uint96"
423
454
  }
424
455
  ],
425
456
  "stateMutability": "view",
@@ -629,19 +660,6 @@
629
660
  "stateMutability": "view",
630
661
  "type": "function"
631
662
  },
632
- {
633
- "inputs": [],
634
- "name": "getRegistryAddress",
635
- "outputs": [
636
- {
637
- "internalType": "address",
638
- "name": "",
639
- "type": "address"
640
- }
641
- ],
642
- "stateMutability": "view",
643
- "type": "function"
644
- },
645
663
  {
646
664
  "inputs": [],
647
665
  "name": "getSetupInfo",
@@ -734,6 +752,19 @@
734
752
  "stateMutability": "view",
735
753
  "type": "function"
736
754
  },
755
+ {
756
+ "inputs": [],
757
+ "name": "getTokenHandler",
758
+ "outputs": [
759
+ {
760
+ "internalType": "contract TokenHandler",
761
+ "name": "tokenHandler",
762
+ "type": "address"
763
+ }
764
+ ],
765
+ "stateMutability": "view",
766
+ "type": "function"
767
+ },
737
768
  {
738
769
  "inputs": [],
739
770
  "name": "getWallet",
@@ -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
  }