@etherisc/gif-next 0.0.2-b9366f5-670 → 0.0.2-b98b2b0-875

Sign up to get free protection for your applications and to get access to all the features.
Files changed (382) hide show
  1. package/README.md +1 -1
  2. package/artifacts/contracts/authorization/AccessAdmin.sol/AccessAdmin.dbg.json +1 -1
  3. package/artifacts/contracts/authorization/AccessAdmin.sol/AccessAdmin.json +33 -52
  4. package/artifacts/contracts/authorization/AccessManagerCloneable.sol/AccessManagerCloneable.dbg.json +1 -1
  5. package/artifacts/contracts/authorization/Authorization.sol/Authorization.dbg.json +1 -1
  6. package/artifacts/contracts/authorization/Authorization.sol/Authorization.json +2 -2
  7. package/artifacts/contracts/authorization/IAccess.sol/IAccess.dbg.json +1 -1
  8. package/artifacts/contracts/authorization/IAccessAdmin.sol/IAccessAdmin.dbg.json +1 -1
  9. package/artifacts/contracts/authorization/IAccessAdmin.sol/IAccessAdmin.json +0 -19
  10. package/artifacts/contracts/authorization/IAuthorization.sol/IAuthorization.dbg.json +1 -1
  11. package/artifacts/contracts/authorization/IModuleAuthorization.sol/IModuleAuthorization.dbg.json +1 -1
  12. package/artifacts/contracts/authorization/IServiceAuthorization.sol/IServiceAuthorization.dbg.json +1 -1
  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 +2 -2
  17. package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.dbg.json +1 -1
  18. package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.json +51 -177
  19. package/artifacts/contracts/distribution/BasicDistributionAuthorization.sol/BasicDistributionAuthorization.dbg.json +1 -1
  20. package/artifacts/contracts/distribution/BasicDistributionAuthorization.sol/BasicDistributionAuthorization.json +16 -16
  21. package/artifacts/contracts/distribution/Distribution.sol/Distribution.dbg.json +1 -1
  22. package/artifacts/contracts/distribution/Distribution.sol/Distribution.json +21 -147
  23. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.dbg.json +1 -1
  24. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.json +85 -192
  25. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  26. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.json +84 -104
  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 +4 -0
  31. package/artifacts/contracts/examples/fire/DamageLevel.sol/DamageLevelLib.json +22 -0
  32. package/artifacts/contracts/examples/fire/FirePool.sol/FirePool.dbg.json +4 -0
  33. package/artifacts/contracts/examples/fire/FirePool.sol/FirePool.json +1512 -0
  34. package/artifacts/contracts/examples/fire/FirePoolAuthorization.sol/FirePoolAuthorization.dbg.json +4 -0
  35. package/artifacts/contracts/examples/fire/FirePoolAuthorization.sol/FirePoolAuthorization.json +410 -0
  36. package/artifacts/contracts/examples/fire/FireProduct.sol/FireProduct.dbg.json +4 -0
  37. package/artifacts/contracts/examples/fire/FireProduct.sol/FireProduct.json +1999 -0
  38. package/artifacts/contracts/examples/fire/FireProductAuthorization.sol/FireProductAuthorization.dbg.json +4 -0
  39. package/artifacts/contracts/examples/fire/FireProductAuthorization.sol/FireProductAuthorization.json +414 -0
  40. package/artifacts/contracts/examples/fire/FireUSD.sol/FireUSD.dbg.json +4 -0
  41. package/artifacts/contracts/examples/fire/FireUSD.sol/FireUSD.json +376 -0
  42. package/artifacts/contracts/examples/unpermissioned/SimpleDistribution.sol/SimpleDistribution.dbg.json +4 -0
  43. package/artifacts/contracts/examples/unpermissioned/SimpleDistribution.sol/SimpleDistribution.json +1432 -0
  44. package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.dbg.json +4 -0
  45. package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.json +1192 -0
  46. package/artifacts/contracts/examples/unpermissioned/SimplePool.sol/SimplePool.dbg.json +4 -0
  47. package/artifacts/contracts/examples/unpermissioned/SimplePool.sol/SimplePool.json +1566 -0
  48. package/artifacts/contracts/examples/unpermissioned/SimpleProduct.sol/SimpleProduct.dbg.json +4 -0
  49. package/artifacts/contracts/examples/unpermissioned/SimpleProduct.sol/SimpleProduct.json +2001 -0
  50. package/artifacts/contracts/instance/BundleSet.sol/BundleSet.dbg.json +1 -1
  51. package/artifacts/contracts/instance/BundleSet.sol/BundleSet.json +2 -2
  52. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  53. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  54. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  55. package/artifacts/contracts/instance/Instance.sol/Instance.json +10 -99
  56. package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.dbg.json +1 -1
  57. package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.json +95 -98
  58. package/artifacts/contracts/instance/InstanceAuthorizationV3.sol/InstanceAuthorizationV3.dbg.json +1 -1
  59. package/artifacts/contracts/instance/InstanceAuthorizationV3.sol/InstanceAuthorizationV3.json +2 -2
  60. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  61. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +260 -67
  62. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  63. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +39 -146
  64. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  65. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +61 -81
  66. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +1 -1
  67. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +71 -51
  68. package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.dbg.json +1 -1
  69. package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.json +2 -2
  70. package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.dbg.json +1 -1
  71. package/artifacts/contracts/instance/base/ObjectCounter.sol/ObjectCounter.dbg.json +1 -1
  72. package/artifacts/contracts/instance/base/ObjectCounter.sol/ObjectCounter.json +2 -2
  73. package/artifacts/contracts/instance/base/ObjectLifecycle.sol/ObjectLifecycle.dbg.json +1 -1
  74. package/artifacts/contracts/instance/base/ObjectLifecycle.sol/ObjectLifecycle.json +2 -2
  75. package/artifacts/contracts/instance/base/ObjectSet.sol/ObjectSet.dbg.json +1 -1
  76. package/artifacts/contracts/instance/base/ObjectSet.sol/ObjectSet.json +2 -2
  77. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  78. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  79. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +1 -1
  80. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  81. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  82. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  83. package/artifacts/contracts/mock/Dip.sol/Dip.dbg.json +1 -1
  84. package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.dbg.json +1 -1
  85. package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.json +41 -167
  86. package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.dbg.json +1 -1
  87. package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.json +18 -18
  88. package/artifacts/contracts/oracle/IOracle.sol/IOracle.dbg.json +1 -1
  89. package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.dbg.json +1 -1
  90. package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.json +21 -0
  91. package/artifacts/contracts/oracle/IOracleService.sol/IOracleService.dbg.json +1 -1
  92. package/artifacts/contracts/oracle/Oracle.sol/Oracle.dbg.json +1 -1
  93. package/artifacts/contracts/oracle/Oracle.sol/Oracle.json +21 -147
  94. package/artifacts/contracts/oracle/OracleService.sol/OracleService.dbg.json +1 -1
  95. package/artifacts/contracts/oracle/OracleService.sol/OracleService.json +37 -144
  96. package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.dbg.json +1 -1
  97. package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.json +60 -80
  98. package/artifacts/contracts/pool/BasicPool.sol/BasicPool.dbg.json +1 -1
  99. package/artifacts/contracts/pool/BasicPool.sol/BasicPool.json +46 -144
  100. package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.dbg.json +1 -1
  101. package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.json +16 -16
  102. package/artifacts/contracts/pool/BundleService.sol/BundleService.dbg.json +1 -1
  103. package/artifacts/contracts/pool/BundleService.sol/BundleService.json +138 -181
  104. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
  105. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.json +102 -102
  106. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.dbg.json +1 -1
  107. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.json +24 -0
  108. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  109. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.json +49 -0
  110. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.dbg.json +1 -1
  111. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.json +171 -102
  112. package/artifacts/contracts/pool/Pool.sol/Pool.dbg.json +1 -1
  113. package/artifacts/contracts/pool/Pool.sol/Pool.json +46 -144
  114. package/artifacts/contracts/pool/PoolService.sol/PoolService.dbg.json +1 -1
  115. package/artifacts/contracts/pool/PoolService.sol/PoolService.json +276 -245
  116. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  117. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.json +95 -83
  118. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.dbg.json +1 -1
  119. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.json +31 -138
  120. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +1 -1
  121. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.json +57 -77
  122. package/artifacts/contracts/product/BasicProduct.sol/BasicProduct.dbg.json +1 -1
  123. package/artifacts/contracts/product/BasicProduct.sol/BasicProduct.json +46 -170
  124. package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.dbg.json +1 -1
  125. package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.json +16 -16
  126. package/artifacts/contracts/product/ClaimService.sol/ClaimService.dbg.json +1 -1
  127. package/artifacts/contracts/product/ClaimService.sol/ClaimService.json +154 -194
  128. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +1 -1
  129. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.json +101 -101
  130. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.dbg.json +1 -1
  131. package/artifacts/contracts/product/IClaimService.sol/IClaimService.dbg.json +1 -1
  132. package/artifacts/contracts/product/IClaimService.sol/IClaimService.json +35 -8
  133. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.dbg.json +1 -1
  134. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.json +111 -0
  135. package/artifacts/contracts/product/IPricingService.sol/IPricingService.dbg.json +1 -1
  136. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  137. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.json +49 -26
  138. package/artifacts/contracts/product/IRiskService.sol/IRiskService.dbg.json +1 -1
  139. package/artifacts/contracts/product/PolicyService.sol/PolicyService.dbg.json +1 -1
  140. package/artifacts/contracts/product/PolicyService.sol/PolicyService.json +212 -160
  141. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
  142. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.json +92 -88
  143. package/artifacts/contracts/product/PricingService.sol/PricingService.dbg.json +1 -1
  144. package/artifacts/contracts/product/PricingService.sol/PricingService.json +55 -162
  145. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.dbg.json +1 -1
  146. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.json +68 -88
  147. package/artifacts/contracts/product/Product.sol/Product.dbg.json +1 -1
  148. package/artifacts/contracts/product/Product.sol/Product.json +46 -170
  149. package/artifacts/contracts/product/RiskService.sol/RiskService.dbg.json +1 -1
  150. package/artifacts/contracts/product/RiskService.sol/RiskService.json +25 -132
  151. package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.dbg.json +1 -1
  152. package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.json +54 -74
  153. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  154. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +59 -16
  155. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  156. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +239 -20
  157. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  158. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  159. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  160. package/artifacts/contracts/registry/Registry.sol/Registry.json +437 -81
  161. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.dbg.json +1 -1
  162. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.json +244 -132
  163. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  164. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +23 -313
  165. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  166. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +52 -72
  167. package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.dbg.json +1 -1
  168. package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.json +2 -2
  169. package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.dbg.json +1 -1
  170. package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.json +24 -14
  171. package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.dbg.json +1 -1
  172. package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.json +6 -6
  173. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  174. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +2 -2
  175. package/artifacts/contracts/shared/Component.sol/Component.dbg.json +1 -1
  176. package/artifacts/contracts/shared/Component.sol/Component.json +21 -147
  177. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.dbg.json +1 -1
  178. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.json +75 -182
  179. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.dbg.json +1 -1
  180. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.json +89 -99
  181. package/artifacts/contracts/shared/ComponentVerifyingService.sol/ComponentVerifyingService.dbg.json +1 -1
  182. package/artifacts/contracts/shared/ComponentVerifyingService.sol/ComponentVerifyingService.json +5 -112
  183. package/artifacts/contracts/shared/ContractLib.sol/ContractLib.dbg.json +4 -0
  184. package/artifacts/contracts/shared/ContractLib.sol/ContractLib.json +92 -0
  185. package/artifacts/contracts/shared/IComponent.sol/IComponent.dbg.json +1 -1
  186. package/artifacts/contracts/shared/IComponent.sol/IComponent.json +21 -0
  187. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.dbg.json +1 -1
  188. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.dbg.json +1 -1
  189. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.json +21 -0
  190. package/artifacts/contracts/shared/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  191. package/artifacts/contracts/shared/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  192. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  193. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +1 -1
  194. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +15 -47
  195. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  196. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
  197. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  198. package/artifacts/contracts/shared/InitializableERC165.sol/InitializableERC165.dbg.json +1 -1
  199. package/artifacts/contracts/shared/InitializableERC165.sol/InitializableERC165.json +2 -22
  200. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.dbg.json +1 -1
  201. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.json +21 -147
  202. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  203. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  204. package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.dbg.json +1 -1
  205. package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.json +2 -2
  206. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  207. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +6 -57
  208. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +1 -1
  209. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +19 -141
  210. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  211. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +8 -97
  212. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +1 -1
  213. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +2 -15
  214. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  215. package/artifacts/contracts/shared/Service.sol/Service.json +5 -112
  216. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  217. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +2 -2
  218. package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.dbg.json +1 -1
  219. package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.json +2 -2
  220. package/artifacts/contracts/staking/IStaking.sol/IStaking.dbg.json +1 -1
  221. package/artifacts/contracts/staking/IStaking.sol/IStaking.json +21 -0
  222. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.dbg.json +1 -1
  223. package/artifacts/contracts/staking/StakeManagerLib.sol/StakeManagerLib.dbg.json +1 -1
  224. package/artifacts/contracts/staking/StakeManagerLib.sol/StakeManagerLib.json +2 -2
  225. package/artifacts/contracts/staking/Staking.sol/Staking.dbg.json +1 -1
  226. package/artifacts/contracts/staking/Staking.sol/Staking.json +65 -191
  227. package/artifacts/contracts/staking/StakingLifecycle.sol/StakingLifecycle.dbg.json +1 -1
  228. package/artifacts/contracts/staking/StakingLifecycle.sol/StakingLifecycle.json +2 -2
  229. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.dbg.json +1 -1
  230. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.json +70 -85
  231. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.dbg.json +1 -1
  232. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.json +7 -12
  233. package/artifacts/contracts/staking/StakingService.sol/StakingService.dbg.json +1 -1
  234. package/artifacts/contracts/staking/StakingService.sol/StakingService.json +31 -138
  235. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.dbg.json +1 -1
  236. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.json +56 -76
  237. package/artifacts/contracts/staking/StakingStore.sol/StakingStore.dbg.json +1 -1
  238. package/artifacts/contracts/staking/StakingStore.sol/StakingStore.json +2 -2
  239. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.dbg.json +1 -1
  240. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.json +2 -2
  241. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  242. package/artifacts/contracts/type/Amount.sol/AmountLib.dbg.json +1 -1
  243. package/artifacts/contracts/type/Amount.sol/AmountLib.json +32 -8
  244. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  245. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.dbg.json +1 -1
  246. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.json +28 -4
  247. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  248. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.json +2 -2
  249. package/artifacts/contracts/type/Fee.sol/FeeLib.dbg.json +1 -1
  250. package/artifacts/contracts/type/Fee.sol/FeeLib.json +2 -2
  251. package/artifacts/contracts/type/Key32.sol/Key32Lib.dbg.json +1 -1
  252. package/artifacts/contracts/type/Key32.sol/Key32Lib.json +2 -2
  253. package/artifacts/contracts/type/NftId.sol/NftIdLib.dbg.json +1 -1
  254. package/artifacts/contracts/type/NftId.sol/NftIdLib.json +2 -2
  255. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  256. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.json +2 -2
  257. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  258. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.json +2 -2
  259. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.dbg.json +1 -1
  260. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.json +19 -19
  261. package/artifacts/contracts/type/Referral.sol/ReferralLib.dbg.json +1 -1
  262. package/artifacts/contracts/type/Referral.sol/ReferralLib.json +2 -2
  263. package/artifacts/contracts/type/RequestId.sol/RequestIdLib.dbg.json +1 -1
  264. package/artifacts/contracts/type/RequestId.sol/RequestIdLib.json +2 -2
  265. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.dbg.json +1 -1
  266. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.json +60 -4
  267. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.dbg.json +1 -1
  268. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.json +2 -2
  269. package/artifacts/contracts/type/Seconds.sol/SecondsLib.dbg.json +1 -1
  270. package/artifacts/contracts/type/Selector.sol/SelectorLib.dbg.json +1 -1
  271. package/artifacts/contracts/type/Selector.sol/SelectorSetLib.dbg.json +1 -1
  272. package/artifacts/contracts/type/StateId.sol/StateIdLib.dbg.json +1 -1
  273. package/artifacts/contracts/type/String.sol/StrLib.dbg.json +1 -1
  274. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.dbg.json +1 -1
  275. package/artifacts/contracts/type/UFixed.sol/MathLib.dbg.json +1 -1
  276. package/artifacts/contracts/type/UFixed.sol/MathLib.json +2 -2
  277. package/artifacts/contracts/type/UFixed.sol/UFixedLib.dbg.json +1 -1
  278. package/artifacts/contracts/type/UFixed.sol/UFixedLib.json +15 -2
  279. package/artifacts/contracts/type/Version.sol/VersionLib.dbg.json +1 -1
  280. package/artifacts/contracts/type/Version.sol/VersionPartLib.dbg.json +1 -1
  281. package/artifacts/contracts/upgradeability/IVersionable.sol/IVersionable.dbg.json +1 -1
  282. package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  283. package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.json +39 -70
  284. package/artifacts/contracts/upgradeability/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  285. package/artifacts/contracts/upgradeability/Versionable.sol/Versionable.dbg.json +1 -1
  286. package/contracts/authorization/AccessAdmin.sol +25 -24
  287. package/contracts/authorization/Authorization.sol +5 -1
  288. package/contracts/authorization/IAccessAdmin.sol +0 -1
  289. package/contracts/distribution/Distribution.sol +1 -1
  290. package/contracts/distribution/DistributionService.sol +9 -9
  291. package/contracts/distribution/DistributionServiceManager.sol +6 -6
  292. package/contracts/examples/fire/DamageLevel.sol +59 -0
  293. package/contracts/examples/fire/FirePool.sol +75 -0
  294. package/contracts/examples/fire/FirePoolAuthorization.sol +34 -0
  295. package/contracts/examples/fire/FireProduct.sol +413 -0
  296. package/contracts/examples/fire/FireProductAuthorization.sol +45 -0
  297. package/contracts/examples/fire/FireUSD.sol +26 -0
  298. package/contracts/instance/Instance.sol +2 -2
  299. package/contracts/instance/InstanceAdmin.sol +6 -3
  300. package/contracts/instance/InstanceReader.sol +83 -18
  301. package/contracts/instance/InstanceService.sol +6 -8
  302. package/contracts/instance/InstanceServiceManager.sol +6 -7
  303. package/contracts/instance/module/IComponents.sol +3 -1
  304. package/contracts/instance/module/IPolicy.sol +2 -2
  305. package/contracts/oracle/Oracle.sol +1 -1
  306. package/contracts/oracle/OracleService.sol +10 -8
  307. package/contracts/oracle/OracleServiceManager.sol +6 -6
  308. package/contracts/pool/BundleService.sol +32 -9
  309. package/contracts/pool/BundleServiceManager.sol +6 -6
  310. package/contracts/pool/IBundleService.sol +9 -0
  311. package/contracts/pool/IPoolComponent.sol +18 -8
  312. package/contracts/pool/IPoolService.sol +21 -10
  313. package/contracts/pool/Pool.sol +38 -11
  314. package/contracts/pool/PoolService.sol +81 -27
  315. package/contracts/pool/PoolServiceManager.sol +4 -4
  316. package/contracts/product/ApplicationService.sol +11 -8
  317. package/contracts/product/ApplicationServiceManager.sol +4 -4
  318. package/contracts/product/ClaimService.sol +164 -70
  319. package/contracts/product/ClaimServiceManager.sol +4 -4
  320. package/contracts/product/IClaimService.sol +3 -2
  321. package/contracts/product/IPolicyService.sol +10 -3
  322. package/contracts/product/IProductComponent.sol +17 -3
  323. package/contracts/product/PolicyService.sol +145 -32
  324. package/contracts/product/PolicyServiceManager.sol +4 -4
  325. package/contracts/product/PricingService.sol +4 -5
  326. package/contracts/product/PricingServiceManager.sol +3 -3
  327. package/contracts/product/Product.sol +26 -19
  328. package/contracts/product/RiskService.sol +4 -5
  329. package/contracts/product/RiskServiceManager.sol +4 -4
  330. package/contracts/registry/ChainNft.sol +65 -32
  331. package/contracts/registry/IRegistry.sol +50 -14
  332. package/contracts/registry/IRegistryService.sol +0 -9
  333. package/contracts/registry/Registry.sol +327 -196
  334. package/contracts/registry/RegistryAdmin.sol +140 -50
  335. package/contracts/registry/RegistryService.sol +55 -48
  336. package/contracts/registry/RegistryServiceManager.sol +2 -2
  337. package/contracts/registry/ReleaseRegistry.sol +11 -5
  338. package/contracts/registry/ServiceAuthorizationV3.sol +4 -5
  339. package/contracts/shared/Component.sol +13 -5
  340. package/contracts/shared/ComponentService.sol +6 -6
  341. package/contracts/shared/ComponentServiceManager.sol +8 -5
  342. package/contracts/shared/ComponentVerifyingService.sol +1 -2
  343. package/contracts/shared/ContractLib.sol +38 -0
  344. package/contracts/shared/IComponent.sol +3 -0
  345. package/contracts/shared/IPolicyHolder.sol +12 -22
  346. package/contracts/shared/InitializableERC165.sol +2 -2
  347. package/contracts/shared/InstanceLinkedComponent.sol +4 -5
  348. package/contracts/shared/NftOwnable.sol +4 -4
  349. package/contracts/shared/PolicyHolder.sol +15 -52
  350. package/contracts/shared/Registerable.sol +4 -4
  351. package/contracts/shared/RegistryLinked.sol +3 -2
  352. package/contracts/shared/Service.sol +16 -11
  353. package/contracts/staking/Staking.sol +3 -3
  354. package/contracts/staking/StakingManager.sol +8 -6
  355. package/contracts/staking/StakingReader.sol +12 -5
  356. package/contracts/staking/StakingService.sol +2 -2
  357. package/contracts/staking/StakingServiceManager.sol +2 -2
  358. package/contracts/type/Amount.sol +15 -0
  359. package/contracts/type/ClaimId.sol +6 -1
  360. package/contracts/type/NftId.sol +1 -0
  361. package/contracts/type/ObjectType.sol +1 -0
  362. package/contracts/type/PayoutId.sol +10 -10
  363. package/contracts/type/RiskId.sol +15 -1
  364. package/contracts/type/UFixed.sol +4 -0
  365. package/contracts/upgradeability/ProxyManager.sol +67 -34
  366. package/contracts/upgradeability/Versionable.sol +2 -2
  367. package/package.json +1 -1
  368. package/artifacts/contracts/example_components/unpermissioned/SimpleDistribution.sol/SimpleDistribution.dbg.json +0 -4
  369. package/artifacts/contracts/example_components/unpermissioned/SimpleDistribution.sol/SimpleDistribution.json +0 -1558
  370. package/artifacts/contracts/example_components/unpermissioned/SimpleOracle.sol/SimpleOracle.dbg.json +0 -4
  371. package/artifacts/contracts/example_components/unpermissioned/SimpleOracle.sol/SimpleOracle.json +0 -1318
  372. package/artifacts/contracts/example_components/unpermissioned/SimplePool.sol/SimplePool.dbg.json +0 -4
  373. package/artifacts/contracts/example_components/unpermissioned/SimplePool.sol/SimplePool.json +0 -1664
  374. package/artifacts/contracts/example_components/unpermissioned/SimpleProduct.sol/SimpleProduct.dbg.json +0 -4
  375. package/artifacts/contracts/example_components/unpermissioned/SimpleProduct.sol/SimpleProduct.json +0 -2125
  376. package/artifacts/contracts/shared/InitializableCustom.sol/InitializableCustom.dbg.json +0 -4
  377. package/artifacts/contracts/shared/InitializableCustom.sol/InitializableCustom.json +0 -39
  378. package/contracts/shared/InitializableCustom.sol +0 -177
  379. /package/contracts/{example_components → examples}/unpermissioned/SimpleDistribution.sol +0 -0
  380. /package/contracts/{example_components → examples}/unpermissioned/SimpleOracle.sol +0 -0
  381. /package/contracts/{example_components → examples}/unpermissioned/SimplePool.sol +0 -0
  382. /package/contracts/{example_components → examples}/unpermissioned/SimpleProduct.sol +0 -0
@@ -7,35 +7,48 @@ import {NftId} from "../type/NftId.sol";
7
7
  import {ObjectType} from "../type/ObjectType.sol";
8
8
  import {VersionPart} from "../type/Version.sol";
9
9
  import {Timestamp} from "../type/Timestamp.sol";
10
+ import {StateId} from "../type/StateId.sol";
11
+
12
+ import {IServiceAuthorization} from "../authorization/IServiceAuthorization.sol";
10
13
 
11
14
  /// @title Chain Registry interface.
12
15
  /// A chain registry holds all protocol relevant objects with basic metadata.
13
16
  /// Registered objects include services, instances, products, pools, policies, bundles, stakes and more.
14
17
  /// Registered objects are represented by NFTs.
18
+ /// When on mainnet registry is global and keeps arbitrary number of chain registries residing on different chain ids.
19
+ /// When not on mainnet registry keeps the only object residing on different chain id (on mainnet) - global registry.
15
20
  interface IRegistry is IERC165 {
16
21
 
17
22
  event LogRegistration(NftId nftId, NftId parentNftId, ObjectType objectType, bool isInterceptor, address objectAddress, address initialOwner);
18
23
  event LogServiceRegistration(VersionPart majorVersion, ObjectType domain);
24
+ event LogChainRegistryRegistration(NftId nftId, uint256 chainId, address chainRegistryAddress);
25
+
26
+ // initialize
27
+ error ErrorRegistryCallerNotDeployer();
19
28
 
20
- // register()
21
- error ErrorRegistryCallerNotRegistryService();
22
- error ErrorRegistryService(address service);
29
+ // registerRegistry()
30
+ error ErrorRegistryNotOnMainnet(uint256 chainId);
31
+ error ErrorRegistryChainRegistryChainIdZero(NftId nftId);
32
+ error ErrorRegistryChainRegistryAddressZero(NftId nftId, uint256 chainId);
33
+ error ErrorRegistryChainRegistryNftIdInvalid(NftId nftId, uint256 chainId);
34
+ error ErrorRegistryChainRegistryAlreadyRegistered(NftId nftId, uint256 chainId);
23
35
 
24
36
  // registerService()
25
- error ErrorRegistryCallerNotReleaseRegistry();
26
37
  error ErrorRegistryServiceAddressZero();
27
- error ErrorRegistryServiceVersionZero();
38
+ error ErrorRegistryServiceVersionZero(address service);
39
+ //error ErrorRegistryServiceVersionMismatch(address service, VersionPart serviceVersion, VersionPart releaseVersion);
40
+ //error ErrorRegistryServiceVersionNotDeploying(address service, VersionPart version);
41
+ error ErrorRegistryServiceDomainZero(address service, VersionPart version);
28
42
  error ErrorRegistryNotService(address service, ObjectType objectType);
29
- error ErrorRegistryServiceParentNotRegistry(NftId parentNftId);
30
- error ErrorRegistryDomainZero(address service);
31
- error ErrorRegistryDomainAlreadyRegistered(address service, VersionPart version, ObjectType domain);
43
+ error ErrorRegistryServiceParentNotRegistry(address service, VersionPart version, NftId parentNftId);
44
+ error ErrorRegistryServiceDomainAlreadyRegistered(address service, VersionPart version, ObjectType domain);
32
45
 
33
46
  // registerWithCustomTypes()
34
47
  error ErrorRegistryCoreTypeRegistration();
35
48
 
36
49
  // _register()
37
- error ErrorRegistryParentAddressZero();
38
- error ErrorRegistryTypesCombinationInvalid(ObjectType objectType, ObjectType parentType);
50
+ error ErrorRegistryGlobalRegistryAsParent(address objectAddress, ObjectType objectType);
51
+ error ErrorRegistryTypesCombinationInvalid(address objectAddress, ObjectType objectType, ObjectType parentType);
39
52
  error ErrorRegistryContractAlreadyRegistered(address objectAddress);
40
53
 
41
54
  struct ObjectInfo {
@@ -49,19 +62,24 @@ interface IRegistry is IERC165 {
49
62
  }
50
63
 
51
64
  struct ReleaseInfo {
65
+ StateId state;
52
66
  VersionPart version;
53
67
  bytes32 salt;
54
68
  address[] addresses;
55
69
  string[] names;
56
70
  ObjectType[] domains;
71
+ IServiceAuthorization auth;
57
72
  Timestamp activatedAt;
58
73
  Timestamp disabledAt;
59
74
  }
60
75
 
61
- /// @dev Register an object with a known core type.
62
- /// The function returns a newly minted object NFT ID.
63
- /// May not be used to register services.
64
- function register(ObjectInfo memory info) external returns (NftId nftId);
76
+ /// @dev Registers a registry contract for a specified chain.
77
+ /// Only one chain registry may be registered per chain
78
+ function registerRegistry(
79
+ NftId nftId,
80
+ uint256 chainId,
81
+ address chainRegistryAddress
82
+ ) external;
65
83
 
66
84
  /// @dev Register a service with using the provided domain and version.
67
85
  /// The function returns a newly minted service NFT ID.
@@ -72,6 +90,11 @@ interface IRegistry is IERC165 {
72
90
  ObjectType serviceDomain
73
91
  ) external returns(NftId nftId);
74
92
 
93
+ /// @dev Register an object with a known core type.
94
+ /// The function returns a newly minted object NFT ID.
95
+ /// May not be used to register services.
96
+ function register(ObjectInfo memory info) external returns (NftId nftId);
97
+
75
98
  /// @dev Register an object with a custom type.
76
99
  /// The function returns a newly minted object NFT ID.
77
100
  /// This function is reserved for GIF releases > 3.
@@ -86,6 +109,15 @@ interface IRegistry is IERC165 {
86
109
 
87
110
  function getReleaseInfo(VersionPart version) external view returns (ReleaseInfo memory);
88
111
 
112
+ /// @dev Returns the number of supported chains.
113
+ function chainIds() external view returns (uint256);
114
+
115
+ /// @dev Returns the chain id at the specified index.
116
+ function getChainId(uint256 idx) external view returns (uint256);
117
+
118
+ /// @dev Returns the NFT ID of the registry for the specified chain.
119
+ function getRegistryNftId(uint256 chainId) external returns (NftId nftId);
120
+
89
121
  function getObjectCount() external view returns (uint256);
90
122
 
91
123
  function getNftIdForAddress(address objectAddress) external view returns (NftId nftId);
@@ -96,6 +128,10 @@ interface IRegistry is IERC165 {
96
128
 
97
129
  function getObjectInfo(NftId nftId) external view returns (ObjectInfo memory info);
98
130
 
131
+ function getObjectAddress(NftId nftId) external view returns (address objectAddress);
132
+
133
+ /// @dev Returns the object info for the specified object address.
134
+ // MUST not be used with chain registry address (resides on different chan id)
99
135
  function getObjectInfo(address object) external view returns (ObjectInfo memory info);
100
136
 
101
137
  function isRegistered(NftId nftId) external view returns (bool);
@@ -50,15 +50,6 @@ interface IRegistryService is
50
50
  function registerComponent(IComponent component, ObjectType objectType, address owner)
51
51
  external returns(IRegistry.ObjectInfo memory info);
52
52
 
53
- // function registerProduct(IComponent product, address owner)
54
- // external returns(IRegistry.ObjectInfo memory info);
55
-
56
- // function registerPool(IComponent pool, address owner)
57
- // external returns(IRegistry.ObjectInfo memory info);
58
-
59
- // function registerDistribution(IComponent distribution, address owner)
60
- // external returns(IRegistry.ObjectInfo memory info);
61
-
62
53
  function registerDistributor(IRegistry.ObjectInfo memory info) external returns(NftId nftId);
63
54
 
64
55
  function registerPolicy(IRegistry.ObjectInfo memory info) external returns(NftId nftId);