@etherisc/gif-next 0.0.2-ad36a6a-080 → 0.0.2-ad3cf8f-433

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 (298) hide show
  1. package/artifacts/contracts/authorization/AccessAdmin.sol/AccessAdmin.dbg.json +1 -1
  2. package/artifacts/contracts/authorization/AccessAdmin.sol/AccessAdmin.json +50 -13
  3. package/artifacts/contracts/authorization/AccessManagerCloneable.sol/AccessManagerCloneable.dbg.json +1 -1
  4. package/artifacts/contracts/authorization/Authorization.sol/Authorization.dbg.json +1 -1
  5. package/artifacts/contracts/authorization/Authorization.sol/Authorization.json +2 -2
  6. package/artifacts/contracts/authorization/IAccess.sol/IAccess.dbg.json +1 -1
  7. package/artifacts/contracts/authorization/IAccessAdmin.sol/IAccessAdmin.dbg.json +1 -1
  8. package/artifacts/contracts/authorization/IAccessAdmin.sol/IAccessAdmin.json +48 -11
  9. package/artifacts/contracts/authorization/IAuthorization.sol/IAuthorization.dbg.json +1 -1
  10. package/artifacts/contracts/authorization/IModuleAuthorization.sol/IModuleAuthorization.dbg.json +1 -1
  11. package/artifacts/contracts/authorization/IServiceAuthorization.sol/IServiceAuthorization.dbg.json +1 -1
  12. package/artifacts/contracts/authorization/IServiceAuthorization.sol/IServiceAuthorization.json +19 -0
  13. package/artifacts/contracts/authorization/ModuleAuthorization.sol/ModuleAuthorization.dbg.json +1 -1
  14. package/artifacts/contracts/authorization/ModuleAuthorization.sol/ModuleAuthorization.json +2 -2
  15. package/artifacts/contracts/authorization/ServiceAuthorization.sol/ServiceAuthorization.dbg.json +1 -1
  16. package/artifacts/contracts/authorization/ServiceAuthorization.sol/ServiceAuthorization.json +68 -5
  17. package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.dbg.json +1 -1
  18. package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.json +23 -2
  19. package/artifacts/contracts/distribution/BasicDistributionAuthorization.sol/BasicDistributionAuthorization.dbg.json +1 -1
  20. package/artifacts/contracts/distribution/BasicDistributionAuthorization.sol/BasicDistributionAuthorization.json +2 -2
  21. package/artifacts/contracts/distribution/Distribution.sol/Distribution.dbg.json +1 -1
  22. package/artifacts/contracts/distribution/Distribution.sol/Distribution.json +21 -0
  23. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.dbg.json +1 -1
  24. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.json +2 -2
  25. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  26. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.json +2 -2
  27. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  28. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.json +21 -0
  29. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  30. package/artifacts/contracts/examples/fire/DamageLevel.sol/DamageLevelLib.dbg.json +1 -1
  31. package/artifacts/contracts/examples/fire/FirePool.sol/FirePool.dbg.json +1 -1
  32. package/artifacts/contracts/examples/fire/FirePool.sol/FirePool.json +23 -2
  33. package/artifacts/contracts/examples/fire/FirePoolAuthorization.sol/FirePoolAuthorization.dbg.json +1 -1
  34. package/artifacts/contracts/examples/fire/FirePoolAuthorization.sol/FirePoolAuthorization.json +2 -2
  35. package/artifacts/contracts/examples/fire/FireProduct.sol/FireProduct.dbg.json +1 -1
  36. package/artifacts/contracts/examples/fire/FireProduct.sol/FireProduct.json +92 -39
  37. package/artifacts/contracts/examples/fire/FireProductAuthorization.sol/FireProductAuthorization.dbg.json +1 -1
  38. package/artifacts/contracts/examples/fire/FireProductAuthorization.sol/FireProductAuthorization.json +2 -2
  39. package/artifacts/contracts/examples/fire/FireUSD.sol/FireUSD.dbg.json +1 -1
  40. package/artifacts/contracts/examples/unpermissioned/SimpleDistribution.sol/SimpleDistribution.dbg.json +1 -1
  41. package/artifacts/contracts/examples/unpermissioned/SimpleDistribution.sol/SimpleDistribution.json +23 -2
  42. package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.dbg.json +1 -1
  43. package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.json +23 -2
  44. package/artifacts/contracts/examples/unpermissioned/SimplePool.sol/SimplePool.dbg.json +1 -1
  45. package/artifacts/contracts/examples/unpermissioned/SimplePool.sol/SimplePool.json +23 -2
  46. package/artifacts/contracts/examples/unpermissioned/SimpleProduct.sol/SimpleProduct.dbg.json +1 -1
  47. package/artifacts/contracts/examples/unpermissioned/SimpleProduct.sol/SimpleProduct.json +23 -2
  48. package/artifacts/contracts/instance/BundleSet.sol/BundleSet.dbg.json +1 -1
  49. package/artifacts/contracts/instance/BundleSet.sol/BundleSet.json +2 -2
  50. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  51. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  52. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  53. package/artifacts/contracts/instance/Instance.sol/Instance.json +2 -2
  54. package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.dbg.json +1 -1
  55. package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.json +84 -47
  56. package/artifacts/contracts/instance/InstanceAuthorizationV3.sol/InstanceAuthorizationV3.dbg.json +1 -1
  57. package/artifacts/contracts/instance/InstanceAuthorizationV3.sol/InstanceAuthorizationV3.json +2 -2
  58. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  59. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +2 -2
  60. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  61. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +2 -2
  62. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  63. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +2 -2
  64. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +1 -1
  65. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +103 -62
  66. package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.dbg.json +1 -1
  67. package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.json +2 -2
  68. package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.dbg.json +1 -1
  69. package/artifacts/contracts/instance/base/ObjectCounter.sol/ObjectCounter.dbg.json +1 -1
  70. package/artifacts/contracts/instance/base/ObjectCounter.sol/ObjectCounter.json +2 -2
  71. package/artifacts/contracts/instance/base/ObjectLifecycle.sol/ObjectLifecycle.dbg.json +1 -1
  72. package/artifacts/contracts/instance/base/ObjectLifecycle.sol/ObjectLifecycle.json +45 -4
  73. package/artifacts/contracts/instance/base/ObjectSet.sol/ObjectSet.dbg.json +1 -1
  74. package/artifacts/contracts/instance/base/ObjectSet.sol/ObjectSet.json +2 -2
  75. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  76. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  77. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +1 -1
  78. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  79. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  80. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  81. package/artifacts/contracts/mock/Dip.sol/Dip.dbg.json +1 -1
  82. package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.dbg.json +1 -1
  83. package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.json +23 -2
  84. package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.dbg.json +1 -1
  85. package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.json +2 -2
  86. package/artifacts/contracts/oracle/IOracle.sol/IOracle.dbg.json +1 -1
  87. package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.dbg.json +1 -1
  88. package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.json +21 -0
  89. package/artifacts/contracts/oracle/IOracleService.sol/IOracleService.dbg.json +1 -1
  90. package/artifacts/contracts/oracle/Oracle.sol/Oracle.dbg.json +1 -1
  91. package/artifacts/contracts/oracle/Oracle.sol/Oracle.json +21 -0
  92. package/artifacts/contracts/oracle/OracleService.sol/OracleService.dbg.json +1 -1
  93. package/artifacts/contracts/oracle/OracleService.sol/OracleService.json +2 -2
  94. package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.dbg.json +1 -1
  95. package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.json +2 -2
  96. package/artifacts/contracts/pool/BasicPool.sol/BasicPool.dbg.json +1 -1
  97. package/artifacts/contracts/pool/BasicPool.sol/BasicPool.json +21 -0
  98. package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.dbg.json +1 -1
  99. package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.json +2 -2
  100. package/artifacts/contracts/pool/BundleService.sol/BundleService.dbg.json +1 -1
  101. package/artifacts/contracts/pool/BundleService.sol/BundleService.json +2 -2
  102. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
  103. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.json +2 -2
  104. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.dbg.json +1 -1
  105. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  106. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.json +21 -0
  107. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.dbg.json +1 -1
  108. package/artifacts/contracts/pool/Pool.sol/Pool.dbg.json +1 -1
  109. package/artifacts/contracts/pool/Pool.sol/Pool.json +21 -0
  110. package/artifacts/contracts/pool/PoolService.sol/PoolService.dbg.json +1 -1
  111. package/artifacts/contracts/pool/PoolService.sol/PoolService.json +2 -2
  112. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  113. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.json +2 -2
  114. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.dbg.json +1 -1
  115. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.json +2 -2
  116. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +1 -1
  117. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.json +2 -2
  118. package/artifacts/contracts/product/BasicProduct.sol/BasicProduct.dbg.json +1 -1
  119. package/artifacts/contracts/product/BasicProduct.sol/BasicProduct.json +21 -0
  120. package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.dbg.json +1 -1
  121. package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.json +2 -2
  122. package/artifacts/contracts/product/ClaimService.sol/ClaimService.dbg.json +1 -1
  123. package/artifacts/contracts/product/ClaimService.sol/ClaimService.json +55 -28
  124. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +1 -1
  125. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.json +15 -15
  126. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.dbg.json +1 -1
  127. package/artifacts/contracts/product/IClaimService.sol/IClaimService.dbg.json +1 -1
  128. package/artifacts/contracts/product/IClaimService.sol/IClaimService.json +27 -0
  129. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.dbg.json +1 -1
  130. package/artifacts/contracts/product/IPricingService.sol/IPricingService.dbg.json +1 -1
  131. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  132. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.json +21 -0
  133. package/artifacts/contracts/product/IRiskService.sol/IRiskService.dbg.json +1 -1
  134. package/artifacts/contracts/product/PolicyService.sol/PolicyService.dbg.json +1 -1
  135. package/artifacts/contracts/product/PolicyService.sol/PolicyService.json +2 -2
  136. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
  137. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.json +2 -2
  138. package/artifacts/contracts/product/PricingService.sol/PricingService.dbg.json +1 -1
  139. package/artifacts/contracts/product/PricingService.sol/PricingService.json +2 -2
  140. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.dbg.json +1 -1
  141. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.json +2 -2
  142. package/artifacts/contracts/product/Product.sol/Product.dbg.json +1 -1
  143. package/artifacts/contracts/product/Product.sol/Product.json +21 -0
  144. package/artifacts/contracts/product/RiskService.sol/RiskService.dbg.json +1 -1
  145. package/artifacts/contracts/product/RiskService.sol/RiskService.json +2 -2
  146. package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.dbg.json +1 -1
  147. package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.json +2 -2
  148. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  149. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  150. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +0 -15
  151. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  152. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  153. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  154. package/artifacts/contracts/registry/Registry.sol/Registry.json +36 -51
  155. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.dbg.json +1 -1
  156. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.json +164 -158
  157. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  158. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +2 -2
  159. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  160. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +2 -2
  161. package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.dbg.json +1 -1
  162. package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.json +46 -5
  163. package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.dbg.json +1 -1
  164. package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.json +109 -217
  165. package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.dbg.json +1 -1
  166. package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.json +66 -8
  167. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  168. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +2 -2
  169. package/artifacts/contracts/shared/Component.sol/Component.dbg.json +1 -1
  170. package/artifacts/contracts/shared/Component.sol/Component.json +21 -0
  171. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.dbg.json +1 -1
  172. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.json +2 -2
  173. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.dbg.json +1 -1
  174. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.json +2 -2
  175. package/artifacts/contracts/shared/ComponentVerifyingService.sol/ComponentVerifyingService.dbg.json +1 -1
  176. package/artifacts/contracts/shared/ContractLib.sol/ContractLib.dbg.json +1 -1
  177. package/artifacts/contracts/shared/ContractLib.sol/ContractLib.json +2 -2
  178. package/artifacts/contracts/shared/IComponent.sol/IComponent.dbg.json +1 -1
  179. package/artifacts/contracts/shared/IComponent.sol/IComponent.json +21 -0
  180. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.dbg.json +1 -1
  181. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.dbg.json +1 -1
  182. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.json +21 -0
  183. package/artifacts/contracts/shared/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  184. package/artifacts/contracts/shared/IKeyValueStore.sol/IKeyValueStore.json +36 -0
  185. package/artifacts/contracts/shared/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  186. package/artifacts/contracts/shared/ILifecycle.sol/ILifecycle.json +36 -0
  187. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  188. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +1 -1
  189. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  190. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
  191. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  192. package/artifacts/contracts/shared/InitializableERC165.sol/InitializableERC165.dbg.json +1 -1
  193. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.dbg.json +1 -1
  194. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.json +21 -0
  195. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  196. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.json +41 -0
  197. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  198. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.json +41 -0
  199. package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.dbg.json +1 -1
  200. package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.json +2 -2
  201. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  202. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +2 -2
  203. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +1 -1
  204. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +2 -2
  205. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  206. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +2 -2
  207. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +1 -1
  208. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +2 -2
  209. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  210. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  211. package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.dbg.json +1 -1
  212. package/artifacts/contracts/staking/IStaking.sol/IStaking.dbg.json +1 -1
  213. package/artifacts/contracts/staking/IStaking.sol/IStaking.json +21 -0
  214. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.dbg.json +1 -1
  215. package/artifacts/contracts/staking/StakeManagerLib.sol/StakeManagerLib.dbg.json +1 -1
  216. package/artifacts/contracts/staking/StakeManagerLib.sol/StakeManagerLib.json +2 -2
  217. package/artifacts/contracts/staking/Staking.sol/Staking.dbg.json +1 -1
  218. package/artifacts/contracts/staking/Staking.sol/Staking.json +23 -2
  219. package/artifacts/contracts/staking/StakingLifecycle.sol/StakingLifecycle.dbg.json +1 -1
  220. package/artifacts/contracts/staking/StakingLifecycle.sol/StakingLifecycle.json +45 -4
  221. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.dbg.json +1 -1
  222. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.json +2 -2
  223. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.dbg.json +1 -1
  224. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.json +7 -12
  225. package/artifacts/contracts/staking/StakingService.sol/StakingService.dbg.json +1 -1
  226. package/artifacts/contracts/staking/StakingService.sol/StakingService.json +2 -2
  227. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.dbg.json +1 -1
  228. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.json +2 -2
  229. package/artifacts/contracts/staking/StakingStore.sol/StakingStore.dbg.json +1 -1
  230. package/artifacts/contracts/staking/StakingStore.sol/StakingStore.json +143 -102
  231. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.dbg.json +1 -1
  232. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.json +2 -2
  233. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  234. package/artifacts/contracts/type/Amount.sol/AmountLib.dbg.json +1 -1
  235. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  236. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.dbg.json +1 -1
  237. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.json +2 -2
  238. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  239. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.json +2 -2
  240. package/artifacts/contracts/type/Fee.sol/FeeLib.dbg.json +1 -1
  241. package/artifacts/contracts/type/Key32.sol/Key32Lib.dbg.json +1 -1
  242. package/artifacts/contracts/type/Key32.sol/Key32Lib.json +2 -2
  243. package/artifacts/contracts/type/NftId.sol/NftIdLib.dbg.json +1 -1
  244. package/artifacts/contracts/type/NftId.sol/NftIdLib.json +2 -2
  245. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  246. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.json +2 -2
  247. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  248. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.json +2 -2
  249. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.dbg.json +1 -1
  250. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.json +2 -2
  251. package/artifacts/contracts/type/Referral.sol/ReferralLib.dbg.json +1 -1
  252. package/artifacts/contracts/type/Referral.sol/ReferralLib.json +2 -2
  253. package/artifacts/contracts/type/RequestId.sol/RequestIdLib.dbg.json +1 -1
  254. package/artifacts/contracts/type/RequestId.sol/RequestIdLib.json +2 -2
  255. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.dbg.json +1 -1
  256. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.json +2 -2
  257. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.dbg.json +1 -1
  258. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.json +2 -2
  259. package/artifacts/contracts/type/Seconds.sol/SecondsLib.dbg.json +1 -1
  260. package/artifacts/contracts/type/Selector.sol/SelectorLib.dbg.json +1 -1
  261. package/artifacts/contracts/type/Selector.sol/SelectorSetLib.dbg.json +1 -1
  262. package/artifacts/contracts/type/StateId.sol/StateIdLib.dbg.json +1 -1
  263. package/artifacts/contracts/type/StateId.sol/StateIdLib.json +15 -2
  264. package/artifacts/contracts/type/String.sol/StrLib.dbg.json +1 -1
  265. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.dbg.json +1 -1
  266. package/artifacts/contracts/type/UFixed.sol/MathLib.dbg.json +1 -1
  267. package/artifacts/contracts/type/UFixed.sol/UFixedLib.dbg.json +1 -1
  268. package/artifacts/contracts/type/Version.sol/VersionLib.dbg.json +1 -1
  269. package/artifacts/contracts/type/Version.sol/VersionPartLib.dbg.json +1 -1
  270. package/artifacts/contracts/upgradeability/IVersionable.sol/IVersionable.dbg.json +1 -1
  271. package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  272. package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.json +2 -2
  273. package/artifacts/contracts/upgradeability/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  274. package/artifacts/contracts/upgradeability/Versionable.sol/Versionable.dbg.json +1 -1
  275. package/contracts/authorization/AccessAdmin.sol +22 -16
  276. package/contracts/authorization/IAccessAdmin.sol +3 -1
  277. package/contracts/authorization/IServiceAuthorization.sol +3 -1
  278. package/contracts/authorization/ServiceAuthorization.sol +26 -10
  279. package/contracts/examples/fire/FireProduct.sol +37 -36
  280. package/contracts/product/ClaimService.sol +1 -1
  281. package/contracts/product/IClaimService.sol +2 -1
  282. package/contracts/registry/IRegistry.sol +0 -3
  283. package/contracts/registry/RegistryAdmin.sol +7 -23
  284. package/contracts/registry/ReleaseLifecycle.sol +6 -3
  285. package/contracts/registry/ReleaseRegistry.sol +191 -186
  286. package/contracts/registry/ServiceAuthorizationV3.sol +1 -1
  287. package/contracts/shared/Component.sol +8 -0
  288. package/contracts/shared/IComponent.sol +3 -0
  289. package/contracts/shared/ILifecycle.sol +3 -1
  290. package/contracts/shared/KeyValueStore.sol +1 -1
  291. package/contracts/shared/Lifecycle.sol +13 -2
  292. package/contracts/staking/StakingReader.sol +12 -5
  293. package/contracts/type/ObjectType.sol +1 -0
  294. package/contracts/type/StateId.sol +14 -1
  295. package/package.json +2 -1
  296. package/artifacts/contracts/shared/InitializableCustom.sol/InitializableCustom.dbg.json +0 -4
  297. package/artifacts/contracts/shared/InitializableCustom.sol/InitializableCustom.json +0 -39
  298. package/contracts/shared/InitializableCustom.sol +0 -177
@@ -49,6 +49,7 @@ abstract contract Lifecycle is
49
49
  }
50
50
 
51
51
  function checkTransition(
52
+ StateId stateId,
52
53
  ObjectType objectType,
53
54
  StateId fromId,
54
55
  StateId toId
@@ -58,12 +59,22 @@ abstract contract Lifecycle is
58
59
  {
59
60
  // revert if no life cycle support
60
61
  if (_initialState[objectType].eqz()) {
61
- revert ErrorNoLifecycle(objectType);
62
+ revert ErrorNoLifecycle(address(this), objectType);
62
63
  }
63
64
 
65
+ // revert if current state is not `from` state
66
+ if(stateId != fromId) {
67
+ revert ErrorFromStateMissmatch(address(this), objectType, stateId, fromId);
68
+ }
69
+ // TODO consider assert instead of error -> each child must check only for valid transitions
64
70
  // enforce valid state transition
65
71
  if (!_isValidTransition[objectType][fromId][toId]) {
66
- revert ErrorInvalidStateTransition(objectType, fromId, toId);
72
+ revert ErrorInvalidStateTransition(
73
+ address(this),
74
+ objectType,
75
+ fromId,
76
+ toId
77
+ );
67
78
  }
68
79
  }
69
80
 
@@ -1,13 +1,14 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  pragma solidity ^0.8.20;
3
3
 
4
+ import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
5
+
4
6
  import {IRegistry} from "../registry/IRegistry.sol";
5
7
  import {IRegistryLinked} from "../shared/IRegistryLinked.sol";
6
8
  import {IStaking} from "../staking/IStaking.sol";
7
9
 
8
10
  import {Amount} from "../type/Amount.sol";
9
11
  import {Blocknumber} from "../type/Blocknumber.sol";
10
- import {InitializableCustom} from "../shared/InitializableCustom.sol";
11
12
  import {NftId} from "../type/NftId.sol";
12
13
  import {STAKE, TARGET} from "../type/ObjectType.sol";
13
14
  import {StakingStore} from "./StakingStore.sol";
@@ -16,16 +17,18 @@ import {UFixed} from "../type/UFixed.sol";
16
17
 
17
18
  contract StakingReader is
18
19
  IRegistryLinked,
19
- InitializableCustom
20
+ Initializable
20
21
  {
21
22
 
22
- error ErrorStakingReaderDependenciesAlreadySet();
23
+ error ErrorStakingReaderUnauthorizedCaler();
23
24
 
25
+ address private _initializeOwner;
24
26
  IRegistry private _registry;
25
27
  IStaking private _staking;
26
28
  StakingStore private _store;
27
29
 
28
- constructor(IRegistry registry) InitializableCustom() {
30
+ constructor(IRegistry registry) {
31
+ _initializeOwner = msg.sender;
29
32
  _registry = registry;
30
33
  }
31
34
 
@@ -34,8 +37,12 @@ contract StakingReader is
34
37
  address stakingStoreAddress
35
38
  )
36
39
  external
37
- initializer
40
+ initializer()
38
41
  {
42
+ if (msg.sender != _initializeOwner) {
43
+ revert ErrorStakingReaderUnauthorizedCaler();
44
+ }
45
+
39
46
  _staking = IStaking(stakingAddress);
40
47
  _store = StakingStore(stakingStoreAddress);
41
48
  }
@@ -9,6 +9,7 @@ using {
9
9
  neObjectType as !=,
10
10
  ObjectTypeLib.toInt,
11
11
  ObjectTypeLib.eqz,
12
+ ObjectTypeLib.eq,
12
13
  ObjectTypeLib.gtz
13
14
  } for ObjectType global;
14
15
 
@@ -28,10 +28,18 @@ function DEPLOYING() pure returns (StateId) {
28
28
  return toStateId(3);
29
29
  }
30
30
 
31
- function ACTIVE() pure returns (StateId) {
31
+ function DEPLOYED() pure returns (StateId) {
32
32
  return toStateId(4);
33
33
  }
34
34
 
35
+ function ACTIVE() pure returns (StateId) {
36
+ return toStateId(5);
37
+ }
38
+
39
+ function SKIPPED() pure returns (StateId) {
40
+ return toStateId(6);
41
+ }
42
+
35
43
  function APPLIED() pure returns (StateId) {
36
44
  return toStateId(10);
37
45
  }
@@ -114,6 +122,11 @@ function neStateId(StateId a, StateId b) pure returns (bool isDifferent) {
114
122
 
115
123
  // library functions that operate on user defined type
116
124
  library StateIdLib {
125
+
126
+ function zero() public pure returns (StateId) {
127
+ return StateId.wrap(0);
128
+ }
129
+
117
130
  /// @dev Converts the NftId to a uint256.
118
131
  function toInt(StateId stateId) public pure returns (uint96) {
119
132
  return uint96(StateId.unwrap(stateId));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etherisc/gif-next",
3
- "version": "0.0.2-ad36a6a-080",
3
+ "version": "0.0.2-ad3cf8f-433",
4
4
  "description": "This is the repository for the next version of the Generic Insurance Framework (GIF) smart contracts. ",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -49,6 +49,7 @@
49
49
  "abi-coder": "^5.0.0",
50
50
  "antlr4ng": "^3.0.4",
51
51
  "ethers": "^6.7.1",
52
+ "ethers-decode-error": "^2.1.3",
52
53
  "solidity-docgen": "^0.6.0-beta.36",
53
54
  "winston": "^3.10.0"
54
55
  }
@@ -1,4 +0,0 @@
1
- {
2
- "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/5d14ae9d928a9f07ae6f8a606d8c91c1.json"
4
- }
@@ -1,39 +0,0 @@
1
- {
2
- "_format": "hh-sol-artifact-1",
3
- "contractName": "InitializableCustom",
4
- "sourceName": "contracts/shared/InitializableCustom.sol",
5
- "abi": [
6
- {
7
- "inputs": [],
8
- "name": "InvalidInitialization",
9
- "type": "error"
10
- },
11
- {
12
- "inputs": [],
13
- "name": "InvalidInitializationCaller",
14
- "type": "error"
15
- },
16
- {
17
- "inputs": [],
18
- "name": "NotInitializing",
19
- "type": "error"
20
- },
21
- {
22
- "anonymous": false,
23
- "inputs": [
24
- {
25
- "indexed": false,
26
- "internalType": "uint64",
27
- "name": "version",
28
- "type": "uint64"
29
- }
30
- ],
31
- "name": "Initialized",
32
- "type": "event"
33
- }
34
- ],
35
- "bytecode": "0x",
36
- "deployedBytecode": "0x",
37
- "linkReferences": {},
38
- "deployedLinkReferences": {}
39
- }
@@ -1,177 +0,0 @@
1
- // SPDX-License-Identifier: MIT
2
-
3
- pragma solidity ^0.8.20;
4
-
5
- /**
6
- * @dev This is copy of OpenZeppelin's Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)
7
- * Changes:
8
- * 1. name is InitializableCustom
9
- * 2. no longer abstract
10
- * 3. have $._initializeOwner
11
- * 4. have constructor where sets _initializeOwner
12
- * 5. initializer() in addition checks for _initializeOwner
13
- * 6. reinitializer() is deleted
14
- */
15
- abstract contract InitializableCustom {
16
- /**
17
- * @dev Storage of the initializable contract.
18
- *
19
- * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions
20
- * when using with upgradeable contracts.
21
- *
22
- * @custom:storage-location erc7201:openzeppelin.storage.Initializable
23
- */
24
- struct InitializableCustomStorage {
25
- /**
26
- * @dev Indicates that the contract has been initialized.
27
- */
28
- uint64 _initialized;
29
- /**
30
- * @dev Indicates that the contract is in the process of being initialized.
31
- */
32
- bool _initializing;
33
- /**
34
- * @dev Indicates address that can call function with initializer() modifier.
35
- */
36
- address _initializeOwner;
37
- }
38
-
39
- // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.InitializableCustom")) - 1)) & ~bytes32(uint256(0xff))
40
- bytes32 private constant INITIALIZABLE_CUSTOM_STORAGE = 0x46cd1d813423aaf613c34c7f348d15b2b5e71215e9145b09467e257ea2805a00;
41
-
42
- /**
43
- * @dev The contract is already initialized.
44
- */
45
- error InvalidInitialization();
46
-
47
- /**
48
- * @dev The contract initialization function caller is not authorized.
49
- */
50
- error InvalidInitializationCaller();
51
-
52
- /**
53
- * @dev The contract is not initializing.
54
- */
55
- error NotInitializing();
56
-
57
- /**
58
- * @dev Triggered when the contract has been initialized or reinitialized.
59
- */
60
- event Initialized(uint64 version);
61
-
62
- /**
63
- * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
64
- * `onlyInitializing` functions can be used to initialize parent contracts.
65
- *
66
- * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any
67
- * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in
68
- * production.
69
- *
70
- * Emits an {Initialized} event.
71
- */
72
- modifier initializer() virtual {
73
- // solhint-disable-next-line var-name-mixedcase
74
- InitializableCustomStorage storage $ = _getInitializableCustomStorage();
75
-
76
- if($._initializeOwner != msg.sender) {
77
- revert InvalidInitializationCaller();
78
- }
79
-
80
- // Cache values to avoid duplicated sloads
81
- bool isTopLevelCall = !$._initializing;
82
- uint64 initialized = $._initialized;
83
-
84
- // Allowed calls:
85
- // - initialSetup: the contract is not in the initializing state and no previous version was
86
- // initialized
87
- // - construction: the contract is initialized at version 1 (no reininitialization) and the
88
- // current contract is just being deployed
89
- bool initialSetup = initialized == 0 && isTopLevelCall;
90
- bool construction = initialized == 1 && address(this).code.length == 0;
91
-
92
- if (!initialSetup && !construction) {
93
- revert InvalidInitialization();
94
- }
95
- $._initialized = 1;
96
- if (isTopLevelCall) {
97
- $._initializing = true;
98
- }
99
- _;
100
- if (isTopLevelCall) {
101
- $._initializing = false;
102
- emit Initialized(1);
103
- }
104
- }
105
-
106
- /**
107
- * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
108
- * {initializer} and {reinitializer} modifiers, directly or indirectly.
109
- */
110
- modifier onlyInitializing() {
111
- _checkInitializing();
112
- _;
113
- }
114
-
115
- /**
116
- * @dev Constructor sets the caller of protected initializer function.
117
- */
118
- constructor() {
119
- // solhint-disable-previous-line var-name-mixedcase
120
- InitializableCustomStorage storage $ = _getInitializableCustomStorage();
121
- $._initializeOwner = msg.sender;
122
- }
123
-
124
- /**
125
- * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.
126
- */
127
- function _checkInitializing() internal view virtual {
128
- if (!_isInitializing()) {
129
- revert NotInitializing();
130
- }
131
- }
132
-
133
- /**
134
- * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
135
- * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
136
- * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
137
- * through proxies.
138
- *
139
- * Emits an {Initialized} event the first time it is successfully executed.
140
- */
141
- function _disableInitializers() internal virtual {
142
- // solhint-disable-next-line var-name-mixedcase
143
- InitializableCustomStorage storage $ = _getInitializableCustomStorage();
144
-
145
- if ($._initializing) {
146
- revert InvalidInitialization();
147
- }
148
- if ($._initialized != type(uint64).max) {
149
- $._initialized = type(uint64).max;
150
- emit Initialized(type(uint64).max);
151
- }
152
- }
153
-
154
- /**
155
- * @dev Returns the highest version that has been initialized. See {reinitializer}.
156
- */
157
- function _getInitializedVersion() internal view returns (uint64) {
158
- return _getInitializableCustomStorage()._initialized;
159
- }
160
-
161
- /**
162
- * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
163
- */
164
- function _isInitializing() internal view returns (bool) {
165
- return _getInitializableCustomStorage()._initializing;
166
- }
167
-
168
- /**
169
- * @dev Returns a pointer to the storage namespace.
170
- */
171
- // solhint-disable-next-line var-name-mixedcase
172
- function _getInitializableCustomStorage() private pure returns (InitializableCustomStorage storage $) {
173
- assembly {
174
- $.slot := INITIALIZABLE_CUSTOM_STORAGE
175
- }
176
- }
177
- }