@etherisc/gif-next 3.0.0-1a7e54a-113 → 3.0.0-1b49bd6-565
Sign up to get free protection for your applications and to get access to all the features.
- package/artifacts/contracts/accounting/AccountingService.sol/AccountingService.dbg.json +1 -1
- package/artifacts/contracts/accounting/AccountingService.sol/AccountingService.json +139 -72
- package/artifacts/contracts/accounting/AccountingServiceManager.sol/AccountingServiceManager.dbg.json +1 -1
- package/artifacts/contracts/accounting/AccountingServiceManager.sol/AccountingServiceManager.json +110 -116
- package/artifacts/contracts/accounting/IAccountingService.sol/IAccountingService.dbg.json +1 -1
- package/artifacts/contracts/accounting/IAccountingService.sol/IAccountingService.json +72 -33
- package/artifacts/contracts/authorization/AccessAdmin.sol/AccessAdmin.dbg.json +1 -1
- package/artifacts/contracts/authorization/AccessAdmin.sol/AccessAdmin.json +89 -66
- package/artifacts/contracts/authorization/AccessAdminLib.sol/AccessAdminLib.dbg.json +1 -1
- package/artifacts/contracts/authorization/AccessAdminLib.sol/AccessAdminLib.json +122 -101
- package/artifacts/contracts/authorization/AccessManagerCloneable.sol/AccessManagerCloneable.dbg.json +1 -1
- package/artifacts/contracts/authorization/AccessManagerCloneable.sol/AccessManagerCloneable.json +20 -65
- package/artifacts/contracts/authorization/Authorization.sol/Authorization.dbg.json +1 -1
- package/artifacts/contracts/authorization/Authorization.sol/Authorization.json +31 -55
- package/artifacts/contracts/authorization/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/authorization/IAccessAdmin.sol/IAccessAdmin.dbg.json +1 -1
- package/artifacts/contracts/authorization/IAccessAdmin.sol/IAccessAdmin.json +20 -10
- package/artifacts/contracts/authorization/IAuthorization.sol/IAuthorization.dbg.json +1 -1
- package/artifacts/contracts/authorization/IAuthorization.sol/IAuthorization.json +1 -1
- package/artifacts/contracts/authorization/IServiceAuthorization.sol/IServiceAuthorization.dbg.json +1 -1
- package/artifacts/contracts/authorization/IServiceAuthorization.sol/IServiceAuthorization.json +1 -1
- package/artifacts/contracts/authorization/ServiceAuthorization.sol/ServiceAuthorization.dbg.json +1 -1
- package/artifacts/contracts/authorization/ServiceAuthorization.sol/ServiceAuthorization.json +18 -42
- package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.dbg.json +1 -1
- package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.json +126 -75
- package/artifacts/contracts/distribution/BasicDistributionAuthorization.sol/BasicDistributionAuthorization.dbg.json +1 -1
- package/artifacts/contracts/distribution/BasicDistributionAuthorization.sol/BasicDistributionAuthorization.json +41 -65
- package/artifacts/contracts/distribution/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/distribution/Distribution.sol/Distribution.json +72 -57
- package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.json +198 -139
- package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.json +140 -150
- package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.json +84 -56
- package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.json +71 -32
- package/artifacts/contracts/examples/fire/DamageLevel.sol/DamageLevelLib.dbg.json +1 -1
- package/artifacts/contracts/examples/fire/FirePool.sol/FirePool.dbg.json +1 -1
- package/artifacts/contracts/examples/fire/FirePool.sol/FirePool.json +166 -104
- package/artifacts/contracts/examples/fire/FirePoolAuthorization.sol/FirePoolAuthorization.dbg.json +1 -1
- package/artifacts/contracts/examples/fire/FirePoolAuthorization.sol/FirePoolAuthorization.json +41 -65
- package/artifacts/contracts/examples/fire/FireProduct.sol/FireProduct.dbg.json +1 -1
- package/artifacts/contracts/examples/fire/FireProduct.sol/FireProduct.json +200 -138
- package/artifacts/contracts/examples/fire/FireProductAuthorization.sol/FireProductAuthorization.dbg.json +1 -1
- package/artifacts/contracts/examples/fire/FireProductAuthorization.sol/FireProductAuthorization.json +41 -65
- package/artifacts/contracts/examples/fire/FireUSD.sol/FireUSD.dbg.json +1 -1
- package/artifacts/contracts/examples/flight/FlightLib.sol/FlightLib.dbg.json +1 -1
- package/artifacts/contracts/examples/flight/FlightLib.sol/FlightLib.json +160 -56
- package/artifacts/contracts/examples/flight/FlightMessageVerifier.sol/FlightMessageVerifier.dbg.json +1 -1
- package/artifacts/contracts/examples/flight/FlightOracle.sol/FlightOracle.dbg.json +1 -1
- package/artifacts/contracts/examples/flight/FlightOracle.sol/FlightOracle.json +173 -116
- package/artifacts/contracts/examples/flight/FlightOracleAuthorization.sol/FlightOracleAuthorization.dbg.json +1 -1
- package/artifacts/contracts/examples/flight/FlightOracleAuthorization.sol/FlightOracleAuthorization.json +41 -65
- package/artifacts/contracts/examples/flight/FlightPool.sol/FlightPool.dbg.json +1 -1
- package/artifacts/contracts/examples/flight/FlightPool.sol/FlightPool.json +170 -108
- package/artifacts/contracts/examples/flight/FlightPoolAuthorization.sol/FlightPoolAuthorization.dbg.json +1 -1
- package/artifacts/contracts/examples/flight/FlightPoolAuthorization.sol/FlightPoolAuthorization.json +41 -65
- package/artifacts/contracts/examples/flight/FlightProduct.sol/FlightProduct.dbg.json +1 -1
- package/artifacts/contracts/examples/flight/FlightProduct.sol/FlightProduct.json +580 -134
- package/artifacts/contracts/examples/flight/FlightProductAuthorization.sol/FlightProductAuthorization.dbg.json +1 -1
- package/artifacts/contracts/examples/flight/FlightProductAuthorization.sol/FlightProductAuthorization.json +41 -65
- package/artifacts/contracts/examples/flight/FlightUSD.sol/FlightUSD.dbg.json +1 -1
- package/artifacts/contracts/examples/flight/FlightUSD.sol/FlightUSD.json +212 -2
- package/artifacts/contracts/examples/flight/originalV1.sol/FlightDelayChainlink.dbg.json +1 -1
- package/artifacts/contracts/examples/unpermissioned/SimpleDistribution.sol/SimpleDistribution.dbg.json +1 -1
- package/artifacts/contracts/examples/unpermissioned/SimpleDistribution.sol/SimpleDistribution.json +159 -102
- package/artifacts/contracts/examples/unpermissioned/SimpleDistributionAuthorization.sol/SimpleDistributionAuthorization.dbg.json +1 -1
- package/artifacts/contracts/examples/unpermissioned/SimpleDistributionAuthorization.sol/SimpleDistributionAuthorization.json +41 -65
- package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.dbg.json +1 -1
- package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.json +163 -106
- package/artifacts/contracts/examples/unpermissioned/SimplePool.sol/SimplePool.dbg.json +1 -1
- package/artifacts/contracts/examples/unpermissioned/SimplePool.sol/SimplePool.json +177 -120
- package/artifacts/contracts/examples/unpermissioned/SimplePoolAuthorization.sol/SimplePoolAuthorization.dbg.json +1 -1
- package/artifacts/contracts/examples/unpermissioned/SimplePoolAuthorization.sol/SimplePoolAuthorization.json +41 -65
- package/artifacts/contracts/examples/unpermissioned/SimpleProduct.sol/SimpleProduct.dbg.json +1 -1
- package/artifacts/contracts/examples/unpermissioned/SimpleProduct.sol/SimpleProduct.json +171 -114
- package/artifacts/contracts/examples/unpermissioned/SimpleProductAuthorization.sol/SimpleProductAuthorization.dbg.json +1 -1
- package/artifacts/contracts/examples/unpermissioned/SimpleProductAuthorization.sol/SimpleProductAuthorization.json +41 -65
- package/artifacts/contracts/instance/BaseStore.sol/BaseStore.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleSet.sol/BundleSet.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleSet.sol/BundleSet.json +49 -54
- package/artifacts/contracts/instance/IBaseStore.sol/IBaseStore.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +77 -25
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +83 -44
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +144 -50
- package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.json +169 -147
- package/artifacts/contracts/instance/InstanceAuthorizationV3.sol/InstanceAuthorizationV3.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAuthorizationV3.sol/InstanceAuthorizationV3.json +43 -67
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +36 -36
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +138 -75
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +104 -112
- package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +2 -2
- package/artifacts/contracts/instance/ProductStore.sol/ProductStore.dbg.json +1 -1
- package/artifacts/contracts/instance/ProductStore.sol/ProductStore.json +2 -2
- package/artifacts/contracts/instance/RiskSet.sol/RiskSet.dbg.json +1 -1
- package/artifacts/contracts/instance/RiskSet.sol/RiskSet.json +53 -58
- package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.json +2 -2
- package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.json +1 -1
- package/artifacts/contracts/instance/base/ObjectCounter.sol/ObjectCounter.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ObjectCounter.sol/ObjectCounter.json +2 -2
- package/artifacts/contracts/instance/base/ObjectLifecycle.sol/ObjectLifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ObjectLifecycle.sol/ObjectLifecycle.json +2 -2
- package/artifacts/contracts/instance/base/ObjectSet.sol/ObjectSet.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ObjectSet.sol/ObjectSet.json +3 -8
- package/artifacts/contracts/instance/base/ObjectSetHelperLib.sol/ObjectSetHelperLib.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ObjectSetHelperLib.sol/ObjectSetHelperLib.json +2 -2
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
- package/artifacts/contracts/mock/Dip.sol/Dip.dbg.json +1 -1
- package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.dbg.json +1 -1
- package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.json +132 -81
- package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.dbg.json +1 -1
- package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.json +41 -65
- package/artifacts/contracts/oracle/IOracle.sol/IOracle.dbg.json +1 -1
- package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.dbg.json +1 -1
- package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.json +94 -66
- package/artifacts/contracts/oracle/IOracleService.sol/IOracleService.dbg.json +1 -1
- package/artifacts/contracts/oracle/IOracleService.sol/IOracleService.json +80 -83
- package/artifacts/contracts/oracle/Oracle.sol/Oracle.dbg.json +1 -1
- package/artifacts/contracts/oracle/Oracle.sol/Oracle.json +82 -67
- package/artifacts/contracts/oracle/OracleService.sol/OracleService.dbg.json +1 -1
- package/artifacts/contracts/oracle/OracleService.sol/OracleService.json +149 -148
- package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.dbg.json +1 -1
- package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.json +111 -129
- package/artifacts/contracts/pool/BasicPool.sol/BasicPool.dbg.json +1 -1
- package/artifacts/contracts/pool/BasicPool.sol/BasicPool.json +88 -73
- package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.dbg.json +1 -1
- package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.json +41 -65
- package/artifacts/contracts/pool/BundleService.sol/BundleService.dbg.json +1 -1
- package/artifacts/contracts/pool/BundleService.sol/BundleService.json +176 -117
- package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
- package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.json +129 -139
- package/artifacts/contracts/pool/IBundleService.sol/IBundleService.dbg.json +1 -1
- package/artifacts/contracts/pool/IBundleService.sol/IBundleService.json +71 -32
- package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.json +100 -72
- package/artifacts/contracts/pool/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/pool/IPoolService.sol/IPoolService.json +94 -86
- package/artifacts/contracts/pool/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/pool/Pool.sol/Pool.json +88 -73
- package/artifacts/contracts/pool/PoolLib.sol/PoolLib.dbg.json +1 -1
- package/artifacts/contracts/pool/PoolLib.sol/PoolLib.json +24 -247
- package/artifacts/contracts/pool/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/pool/PoolService.sol/PoolService.json +233 -165
- package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.json +140 -130
- package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.dbg.json +1 -1
- package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.json +138 -63
- package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +1 -1
- package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.json +110 -112
- package/artifacts/contracts/product/BasicProduct.sol/BasicProduct.dbg.json +1 -1
- package/artifacts/contracts/product/BasicProduct.sol/BasicProduct.json +72 -57
- package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.dbg.json +1 -1
- package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.json +41 -65
- package/artifacts/contracts/product/ClaimService.sol/ClaimService.dbg.json +1 -1
- package/artifacts/contracts/product/ClaimService.sol/ClaimService.json +182 -115
- package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +1 -1
- package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.json +132 -138
- package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.dbg.json +1 -1
- package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.json +71 -32
- package/artifacts/contracts/product/IClaimService.sol/IClaimService.dbg.json +1 -1
- package/artifacts/contracts/product/IClaimService.sol/IClaimService.json +71 -32
- package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.dbg.json +1 -1
- package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.json +82 -64
- package/artifacts/contracts/product/IPricingService.sol/IPricingService.dbg.json +1 -1
- package/artifacts/contracts/product/IPricingService.sol/IPricingService.json +82 -43
- package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.json +84 -56
- package/artifacts/contracts/product/IRiskService.sol/IRiskService.dbg.json +1 -1
- package/artifacts/contracts/product/IRiskService.sol/IRiskService.json +75 -36
- package/artifacts/contracts/product/PolicyService.sol/PolicyService.dbg.json +1 -1
- package/artifacts/contracts/product/PolicyService.sol/PolicyService.json +173 -127
- package/artifacts/contracts/product/PolicyServiceLib.sol/PolicyServiceLib.dbg.json +1 -1
- package/artifacts/contracts/product/PolicyServiceLib.sol/PolicyServiceLib.json +2 -2
- package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
- package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.json +122 -128
- package/artifacts/contracts/product/PricingService.sol/PricingService.dbg.json +1 -1
- package/artifacts/contracts/product/PricingService.sol/PricingService.json +161 -94
- package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.dbg.json +1 -1
- package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.json +116 -122
- package/artifacts/contracts/product/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/product/Product.sol/Product.json +72 -57
- package/artifacts/contracts/product/RiskService.sol/RiskService.dbg.json +1 -1
- package/artifacts/contracts/product/RiskService.sol/RiskService.json +146 -63
- package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.dbg.json +1 -1
- package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.json +109 -107
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +155 -56
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +202 -216
- package/artifacts/contracts/registry/IRelease.sol/IRelease.dbg.json +1 -1
- package/artifacts/contracts/registry/IRelease.sol/IRelease.json +1 -15
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +314 -96
- package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.json +163 -142
- package/artifacts/contracts/registry/RegistryAuthorization.sol/RegistryAuthorization.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryAuthorization.sol/RegistryAuthorization.json +57 -77
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +285 -244
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +115 -110
- package/artifacts/contracts/registry/ReleaseAdmin.sol/ReleaseAdmin.dbg.json +1 -1
- package/artifacts/contracts/registry/ReleaseAdmin.sol/ReleaseAdmin.json +159 -150
- package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.dbg.json +1 -1
- package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.json +2 -2
- package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.json +127 -185
- package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.dbg.json +1 -1
- package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.json +32 -56
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +13 -29
- package/artifacts/contracts/shared/Component.sol/Component.dbg.json +1 -1
- package/artifacts/contracts/shared/Component.sol/Component.json +84 -39
- package/artifacts/contracts/shared/ComponentService.sol/ComponentService.dbg.json +1 -1
- package/artifacts/contracts/shared/ComponentService.sol/ComponentService.json +164 -320
- package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.dbg.json +1 -1
- package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.json +115 -141
- package/artifacts/contracts/shared/ContractLib.sol/ContractLib.dbg.json +1 -1
- package/artifacts/contracts/shared/ContractLib.sol/ContractLib.json +421 -169
- package/artifacts/contracts/shared/ContractLib.sol/ITargetHelper.dbg.json +1 -1
- package/artifacts/contracts/shared/IAuthorizedComponent.sol/IAuthorizedComponent.dbg.json +4 -0
- package/artifacts/contracts/shared/IAuthorizedComponent.sol/IAuthorizedComponent.json +691 -0
- package/artifacts/contracts/shared/IComponent.sol/IComponent.dbg.json +1 -1
- package/artifacts/contracts/shared/IComponent.sol/IComponent.json +96 -38
- package/artifacts/contracts/shared/IComponentService.sol/IComponentService.dbg.json +1 -1
- package/artifacts/contracts/shared/IComponentService.sol/IComponentService.json +82 -226
- package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.dbg.json +1 -1
- package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.json +84 -56
- package/artifacts/contracts/shared/ILifecycle.sol/ILifecycle.dbg.json +1 -1
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +1 -28
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +1 -1
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +1 -12
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +77 -25
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.json +1 -12
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/shared/IService.sol/IService.json +71 -32
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +74 -0
- package/artifacts/contracts/shared/InitializableERC165.sol/InitializableERC165.dbg.json +1 -1
- package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.dbg.json +1 -1
- package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.json +72 -57
- package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.dbg.json +1 -1
- package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.json +2 -2
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +15 -34
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +1 -1
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +3 -14
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +76 -24
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +1 -1
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +3 -37
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
- package/artifacts/contracts/shared/Service.sol/Service.json +70 -31
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +42 -29
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandlerBase.dbg.json +1 -1
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandlerBase.json +30 -17
- package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.dbg.json +1 -1
- package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.json +34 -34
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
- package/artifacts/contracts/shared/Versionable.sol/Versionable.json +74 -0
- package/artifacts/contracts/staking/IStaking.sol/IStaking.dbg.json +1 -1
- package/artifacts/contracts/staking/IStaking.sol/IStaking.json +101 -56
- package/artifacts/contracts/staking/IStakingService.sol/IStakingService.dbg.json +1 -1
- package/artifacts/contracts/staking/IStakingService.sol/IStakingService.json +75 -36
- package/artifacts/contracts/staking/ITargetLimitHandler.sol/ITargetLimitHandler.dbg.json +1 -1
- package/artifacts/contracts/staking/Staking.sol/Staking.dbg.json +1 -1
- package/artifacts/contracts/staking/Staking.sol/Staking.json +170 -109
- package/artifacts/contracts/staking/StakingLib.sol/StakingLib.dbg.json +1 -1
- package/artifacts/contracts/staking/StakingLib.sol/StakingLib.json +26 -31
- package/artifacts/contracts/staking/StakingManager.sol/StakingManager.dbg.json +1 -1
- package/artifacts/contracts/staking/StakingManager.sol/StakingManager.json +112 -124
- package/artifacts/contracts/staking/StakingReader.sol/StakingReader.dbg.json +1 -1
- package/artifacts/contracts/staking/StakingReader.sol/StakingReader.json +5 -22
- package/artifacts/contracts/staking/StakingService.sol/StakingService.dbg.json +1 -1
- package/artifacts/contracts/staking/StakingService.sol/StakingService.json +132 -65
- package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.dbg.json +1 -1
- package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.json +105 -111
- package/artifacts/contracts/staking/StakingStore.sol/StakingStore.dbg.json +1 -1
- package/artifacts/contracts/staking/StakingStore.sol/StakingStore.json +212 -204
- package/artifacts/contracts/staking/TargetHandler.sol/TargetHandler.dbg.json +1 -1
- package/artifacts/contracts/staking/TargetHandler.sol/TargetHandler.json +27 -19
- package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.dbg.json +1 -1
- package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.json +16 -16
- package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.dbg.json +1 -1
- package/artifacts/contracts/type/Amount.sol/AmountLib.dbg.json +1 -1
- package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
- package/artifacts/contracts/type/ChainId.sol/ChainIdLib.dbg.json +1 -1
- package/artifacts/contracts/type/ChainId.sol/ChainIdLib.json +2 -2
- package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.dbg.json +1 -1
- package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.json +2 -2
- package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
- package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.json +2 -2
- package/artifacts/contracts/type/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/type/Key32.sol/Key32Lib.dbg.json +1 -1
- package/artifacts/contracts/type/Key32.sol/Key32Lib.json +2 -2
- package/artifacts/contracts/type/Key32Set.sol/LibKey32Set.dbg.json +1 -1
- package/artifacts/contracts/type/Key32Set.sol/LibKey32Set.json +2 -2
- package/artifacts/contracts/type/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/type/NftId.sol/NftIdLib.json +2 -2
- package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
- package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.json +2 -2
- package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
- package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.json +6 -6
- package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.dbg.json +1 -1
- package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.json +2 -2
- package/artifacts/contracts/type/Referral.sol/ReferralLib.dbg.json +1 -1
- package/artifacts/contracts/type/Referral.sol/ReferralLib.json +2 -2
- package/artifacts/contracts/type/RequestId.sol/RequestIdLib.dbg.json +1 -1
- package/artifacts/contracts/type/RequestId.sol/RequestIdLib.json +2 -2
- package/artifacts/contracts/type/RequestIdSet.sol/LibRequestIdSet.dbg.json +1 -1
- package/artifacts/contracts/type/RequestIdSet.sol/LibRequestIdSet.json +2 -2
- package/artifacts/contracts/type/RiskId.sol/RiskIdLib.dbg.json +1 -1
- package/artifacts/contracts/type/RiskId.sol/RiskIdLib.json +2 -2
- package/artifacts/contracts/type/RoleId.sol/RoleIdLib.dbg.json +1 -1
- package/artifacts/contracts/type/RoleId.sol/RoleIdLib.json +4 -4
- package/artifacts/contracts/type/Seconds.sol/SecondsLib.dbg.json +1 -1
- package/artifacts/contracts/type/Selector.sol/SelectorLib.dbg.json +1 -1
- package/artifacts/contracts/type/Selector.sol/SelectorSetLib.dbg.json +1 -1
- package/artifacts/contracts/type/StateId.sol/StateIdLib.dbg.json +1 -1
- package/artifacts/contracts/type/String.sol/StrLib.dbg.json +1 -1
- package/artifacts/contracts/type/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/type/UFixed.sol/UFixedLib.dbg.json +1 -1
- package/artifacts/contracts/type/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/type/Version.sol/VersionLib.json +10 -10
- package/artifacts/contracts/type/Version.sol/VersionPartLib.dbg.json +1 -1
- package/artifacts/contracts/type/Version.sol/VersionPartLib.json +19 -6
- package/artifacts/contracts/upgradeability/IUpgradeable.sol/IUpgradeable.dbg.json +4 -0
- package/artifacts/contracts/upgradeability/{IVersionable.sol/IVersionable.json → IUpgradeable.sol/IUpgradeable.json} +54 -4
- package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.dbg.json +1 -1
- package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.json +63 -86
- package/artifacts/contracts/upgradeability/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
- package/artifacts/contracts/upgradeability/Upgradeable.sol/Upgradeable.dbg.json +4 -0
- package/artifacts/contracts/upgradeability/{Versionable.sol/Versionable.json → Upgradeable.sol/Upgradeable.json} +54 -4
- package/contracts/accounting/AccountingService.sol +5 -6
- package/contracts/accounting/AccountingServiceManager.sol +4 -6
- package/contracts/accounting/IAccountingService.sol +1 -1
- package/contracts/authorization/AccessAdmin.sol +22 -19
- package/contracts/authorization/AccessAdminLib.sol +14 -11
- package/contracts/authorization/AccessManagerCloneable.sol +24 -48
- package/contracts/authorization/Authorization.sol +2 -2
- package/contracts/authorization/IAccessAdmin.sol +3 -3
- package/contracts/authorization/IServiceAuthorization.sol +1 -1
- package/contracts/authorization/ServiceAuthorization.sol +4 -4
- package/contracts/distribution/BasicDistribution.sol +0 -2
- package/contracts/distribution/BasicDistributionAuthorization.sol +5 -4
- package/contracts/distribution/Distribution.sol +0 -2
- package/contracts/distribution/DistributionService.sol +24 -20
- package/contracts/distribution/DistributionServiceManager.sol +4 -6
- package/contracts/examples/fire/FirePool.sol +0 -4
- package/contracts/examples/fire/FireProduct.sol +0 -4
- package/contracts/examples/flight/FlightLib.sol +48 -37
- package/contracts/examples/flight/FlightOracle.sol +0 -4
- package/contracts/examples/flight/FlightPool.sol +0 -4
- package/contracts/examples/flight/FlightProduct.sol +120 -15
- package/contracts/examples/flight/FlightProductAuthorization.sol +2 -1
- package/contracts/examples/flight/FlightUSD.sol +3 -1
- package/contracts/examples/unpermissioned/SimpleDistribution.sol +0 -4
- package/contracts/examples/unpermissioned/SimpleOracle.sol +0 -4
- package/contracts/examples/unpermissioned/SimplePool.sol +0 -4
- package/contracts/examples/unpermissioned/SimpleProduct.sol +0 -4
- package/contracts/instance/Instance.sol +7 -11
- package/contracts/instance/InstanceAdmin.sol +10 -17
- package/contracts/instance/InstanceAuthorizationV3.sol +4 -2
- package/contracts/instance/InstanceReader.sol +15 -15
- package/contracts/instance/InstanceService.sol +18 -20
- package/contracts/instance/InstanceServiceManager.sol +4 -6
- package/contracts/instance/base/Cloneable.sol +4 -10
- package/contracts/instance/base/ObjectSet.sol +2 -2
- package/contracts/oracle/BasicOracle.sol +0 -2
- package/contracts/oracle/BasicOracleAuthorization.sol +3 -1
- package/contracts/oracle/IOracleService.sol +0 -4
- package/contracts/oracle/Oracle.sol +3 -4
- package/contracts/oracle/OracleService.sol +37 -67
- package/contracts/oracle/OracleServiceManager.sol +4 -6
- package/contracts/pool/BasicPool.sol +2 -4
- package/contracts/pool/BasicPoolAuthorization.sol +5 -4
- package/contracts/pool/BundleService.sol +25 -19
- package/contracts/pool/BundleServiceManager.sol +5 -7
- package/contracts/pool/IPoolService.sol +5 -6
- package/contracts/pool/Pool.sol +1 -3
- package/contracts/pool/PoolLib.sol +5 -102
- package/contracts/pool/PoolService.sol +67 -101
- package/contracts/pool/PoolServiceManager.sol +4 -6
- package/contracts/product/ApplicationService.sol +13 -34
- package/contracts/product/ApplicationServiceManager.sol +4 -6
- package/contracts/product/BasicProduct.sol +0 -2
- package/contracts/product/BasicProductAuthorization.sol +5 -4
- package/contracts/product/ClaimService.sol +10 -34
- package/contracts/product/ClaimServiceManager.sol +5 -7
- package/contracts/product/IPolicyService.sol +0 -1
- package/contracts/product/PolicyService.sol +44 -57
- package/contracts/product/PolicyServiceManager.sol +4 -6
- package/contracts/product/PricingService.sol +7 -8
- package/contracts/product/PricingServiceManager.sol +4 -6
- package/contracts/product/Product.sol +0 -2
- package/contracts/product/RiskService.sol +8 -40
- package/contracts/product/RiskServiceManager.sol +4 -6
- package/contracts/registry/IRegistry.sol +20 -14
- package/contracts/registry/IRegistryService.sol +10 -14
- package/contracts/registry/IRelease.sol +0 -3
- package/contracts/registry/Registry.sol +124 -78
- package/contracts/registry/RegistryAdmin.sol +11 -22
- package/contracts/registry/RegistryAuthorization.sol +4 -3
- package/contracts/registry/RegistryService.sol +99 -82
- package/contracts/registry/RegistryServiceManager.sol +4 -11
- package/contracts/registry/ReleaseAdmin.sol +9 -16
- package/contracts/registry/ReleaseRegistry.sol +64 -74
- package/contracts/registry/ServiceAuthorizationV3.sol +4 -3
- package/contracts/registry/TokenRegistry.sol +6 -15
- package/contracts/shared/Component.sol +27 -22
- package/contracts/shared/ComponentService.sol +45 -130
- package/contracts/shared/ComponentServiceManager.sol +5 -7
- package/contracts/shared/ContractLib.sol +359 -93
- package/contracts/shared/IAuthorizedComponent.sol +15 -0
- package/contracts/shared/IComponent.sol +5 -3
- package/contracts/shared/IComponentService.sol +0 -14
- package/contracts/shared/IInstanceLinkedComponent.sol +5 -12
- package/contracts/shared/INftOwnable.sol +0 -2
- package/contracts/shared/IRegisterable.sol +14 -3
- package/contracts/shared/IRegistryLinked.sol +1 -3
- package/contracts/shared/IService.sol +2 -2
- package/contracts/shared/IVersionable.sol +19 -0
- package/contracts/shared/InstanceLinkedComponent.sol +31 -65
- package/contracts/shared/NftOwnable.sol +9 -22
- package/contracts/shared/PolicyHolder.sol +2 -4
- package/contracts/shared/Registerable.sol +37 -20
- package/contracts/shared/RegistryLinked.sol +4 -23
- package/contracts/shared/Service.sol +8 -9
- package/contracts/shared/TokenHandler.sol +4 -1
- package/contracts/shared/Versionable.sol +47 -0
- package/contracts/staking/IStaking.sol +2 -2
- package/contracts/staking/Staking.sol +28 -33
- package/contracts/staking/StakingLib.sol +3 -1
- package/contracts/staking/StakingManager.sol +3 -6
- package/contracts/staking/StakingReader.sol +9 -17
- package/contracts/staking/StakingService.sol +16 -13
- package/contracts/staking/StakingServiceManager.sol +4 -8
- package/contracts/staking/StakingStore.sol +8 -8
- package/contracts/staking/TargetHandler.sol +4 -5
- package/contracts/type/Version.sol +15 -16
- package/contracts/upgradeability/{IVersionable.sol → IUpgradeable.sol} +13 -19
- package/contracts/upgradeability/ProxyManager.sol +46 -54
- package/contracts/upgradeability/{Versionable.sol → Upgradeable.sol} +25 -14
- package/package.json +1 -1
- package/artifacts/contracts/shared/ContractLib.sol/IInstanceAdminHelper.dbg.json +0 -4
- package/artifacts/contracts/shared/ContractLib.sol/IInstanceAdminHelper.json +0 -24
- package/artifacts/contracts/shared/ContractLib.sol/ITokenRegistryHelper.dbg.json +0 -4
- package/artifacts/contracts/shared/ContractLib.sol/ITokenRegistryHelper.json +0 -40
- package/artifacts/contracts/upgradeability/IVersionable.sol/IVersionable.dbg.json +0 -4
- package/artifacts/contracts/upgradeability/Versionable.sol/Versionable.dbg.json +0 -4
@@ -16,7 +16,6 @@ contract FirePool is
|
|
16
16
|
BasicPool
|
17
17
|
{
|
18
18
|
constructor(
|
19
|
-
address registry,
|
20
19
|
NftId fireProductNftId,
|
21
20
|
string memory componentName,
|
22
21
|
IAuthorization authorization
|
@@ -24,7 +23,6 @@ contract FirePool is
|
|
24
23
|
{
|
25
24
|
address initialOwner = msg.sender;
|
26
25
|
_intialize(
|
27
|
-
registry,
|
28
26
|
fireProductNftId,
|
29
27
|
componentName,
|
30
28
|
IComponents.PoolInfo({
|
@@ -41,7 +39,6 @@ contract FirePool is
|
|
41
39
|
}
|
42
40
|
|
43
41
|
function _intialize(
|
44
|
-
address registry,
|
45
42
|
NftId fireProductNftId,
|
46
43
|
string memory componentName,
|
47
44
|
IComponents.PoolInfo memory poolInfo,
|
@@ -52,7 +49,6 @@ contract FirePool is
|
|
52
49
|
initializer
|
53
50
|
{
|
54
51
|
_initializeBasicPool(
|
55
|
-
registry,
|
56
52
|
fireProductNftId,
|
57
53
|
componentName,
|
58
54
|
poolInfo,
|
@@ -65,7 +65,6 @@ contract FireProduct is
|
|
65
65
|
mapping(uint256 fireId => mapping (NftId policyId => bool claimed)) private _claimed;
|
66
66
|
|
67
67
|
constructor(
|
68
|
-
address registry,
|
69
68
|
NftId instanceNftid,
|
70
69
|
string memory componentName,
|
71
70
|
IAuthorization authorization
|
@@ -74,7 +73,6 @@ contract FireProduct is
|
|
74
73
|
address initialOwner = msg.sender;
|
75
74
|
|
76
75
|
_initialize(
|
77
|
-
registry,
|
78
76
|
instanceNftid,
|
79
77
|
componentName,
|
80
78
|
authorization,
|
@@ -82,7 +80,6 @@ contract FireProduct is
|
|
82
80
|
}
|
83
81
|
|
84
82
|
function _initialize(
|
85
|
-
address registry,
|
86
83
|
NftId instanceNftId,
|
87
84
|
string memory componentName,
|
88
85
|
IAuthorization authorization,
|
@@ -92,7 +89,6 @@ contract FireProduct is
|
|
92
89
|
initializer
|
93
90
|
{
|
94
91
|
_initializeBasicProduct(
|
95
|
-
registry,
|
96
92
|
instanceNftId,
|
97
93
|
componentName,
|
98
94
|
IComponents.ProductInfo({
|
@@ -24,33 +24,33 @@ library FlightLib {
|
|
24
24
|
Timestamp departureTime,
|
25
25
|
Timestamp arrivalTime,
|
26
26
|
Amount premiumAmount,
|
27
|
-
uint256[6] memory statistics
|
27
|
+
uint256[6] memory statistics
|
28
28
|
// signature fields
|
29
|
-
uint8 v,
|
30
|
-
bytes32 r,
|
31
|
-
bytes32 s
|
29
|
+
// uint8 v,
|
30
|
+
// bytes32 r,
|
31
|
+
// bytes32 s
|
32
32
|
)
|
33
33
|
public
|
34
34
|
view
|
35
35
|
{
|
36
36
|
_checkApplicationData(flightProduct, premiumAmount, arrivalTime, departureTime);
|
37
37
|
|
38
|
-
(
|
39
|
-
|
40
|
-
|
41
|
-
) = flightProduct.getFlightMessageVerifier().verifyRatingsHash(
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
if (!success) {
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
}
|
38
|
+
// (
|
39
|
+
// address actualSigner,,
|
40
|
+
// bool success
|
41
|
+
// ) = flightProduct.getFlightMessageVerifier().verifyRatingsHash(
|
42
|
+
// flightData,
|
43
|
+
// departureTime,
|
44
|
+
// arrivalTime,
|
45
|
+
// premiumAmount,
|
46
|
+
// statistics,
|
47
|
+
// v, r, s);
|
48
|
+
|
49
|
+
// if (!success) {
|
50
|
+
// revert FlightProduct.ErrorApplicationDataSignatureMismatch(
|
51
|
+
// flightProduct.getFlightMessageVerifier().getExpectedSigner(),
|
52
|
+
// actualSigner);
|
53
|
+
// }
|
54
54
|
}
|
55
55
|
|
56
56
|
|
@@ -64,20 +64,25 @@ library FlightLib {
|
|
64
64
|
view
|
65
65
|
{
|
66
66
|
// solhint-disable
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
67
|
+
if (premiumAmount < flightProduct.MIN_PREMIUM()) {
|
68
|
+
revert FlightProduct.ErrorFlightProductPremiumAmountTooSmall(premiumAmount, flightProduct.MIN_PREMIUM());
|
69
|
+
}
|
70
|
+
if (premiumAmount > flightProduct.MAX_PREMIUM()) {
|
71
|
+
revert FlightProduct.ErrorFlightProductPremiumAmountTooLarge(premiumAmount, flightProduct.MAX_PREMIUM());
|
72
|
+
}
|
73
|
+
if (arrivalTime <= departureTime) {
|
74
|
+
revert FlightProduct.ErrorFlightProductArrivalBeforeDepartureTime(departureTime, arrivalTime);
|
75
|
+
}
|
76
|
+
|
77
|
+
if (arrivalTime > departureTime.addSeconds(flightProduct.MAX_FLIGHT_DURATION())) {
|
78
|
+
revert FlightProduct.ErrorFlightProductArrivalAfterMaxFlightDuration(arrivalTime, departureTime, flightProduct.MAX_FLIGHT_DURATION());
|
79
|
+
}
|
80
|
+
if (departureTime < TimestampLib.current().addSeconds(flightProduct.MIN_TIME_BEFORE_DEPARTURE())) {
|
81
|
+
revert FlightProduct.ErrorFlightProductDepartureBeforeMinTimeBeforeDeparture(departureTime, TimestampLib.current(), flightProduct.MIN_TIME_BEFORE_DEPARTURE());
|
82
|
+
}
|
83
|
+
if (departureTime > TimestampLib.current().addSeconds(flightProduct.MAX_TIME_BEFORE_DEPARTURE())) {
|
84
|
+
revert FlightProduct.ErrorFlightProductDepartureAfterMaxTimeBeforeDeparture(departureTime, TimestampLib.current(), flightProduct.MAX_TIME_BEFORE_DEPARTURE());
|
85
|
+
}
|
81
86
|
// solhint-enable
|
82
87
|
}
|
83
88
|
|
@@ -161,7 +166,9 @@ library FlightLib {
|
|
161
166
|
returns (uint256 weight)
|
162
167
|
{
|
163
168
|
// check we have enough observations
|
164
|
-
|
169
|
+
if (statistics[0] < flightProduct.MIN_OBSERVATIONS()) {
|
170
|
+
revert FlightProduct.ErrorFlightProductNotEnoughObservations(statistics[0], flightProduct.MIN_OBSERVATIONS());
|
171
|
+
}
|
165
172
|
|
166
173
|
weight = 0;
|
167
174
|
for (uint256 i = 1; i < 6; i++) {
|
@@ -192,8 +199,12 @@ library FlightLib {
|
|
192
199
|
Amount sumInsuredAmount // simply the max of payoutAmounts
|
193
200
|
)
|
194
201
|
{
|
195
|
-
|
196
|
-
|
202
|
+
if (premium < flightProduct.MIN_PREMIUM()) {
|
203
|
+
revert FlightProduct.ErrorFlightProductPremiumAmountTooSmall(premium, flightProduct.MIN_PREMIUM());
|
204
|
+
}
|
205
|
+
if (premium > flightProduct.MAX_PREMIUM()) {
|
206
|
+
revert FlightProduct.ErrorFlightProductPremiumAmountTooLarge(premium, flightProduct.MAX_PREMIUM());
|
207
|
+
}
|
197
208
|
|
198
209
|
sumInsuredAmount = AmountLib.zero();
|
199
210
|
weight = calculateWeight(flightProduct, statistics);
|
@@ -38,7 +38,6 @@ contract FlightOracle is
|
|
38
38
|
|
39
39
|
|
40
40
|
constructor(
|
41
|
-
address registry,
|
42
41
|
NftId productNftId,
|
43
42
|
string memory componentName,
|
44
43
|
IAuthorization authorization
|
@@ -46,7 +45,6 @@ contract FlightOracle is
|
|
46
45
|
{
|
47
46
|
address initialOwner = msg.sender;
|
48
47
|
initialize(
|
49
|
-
registry,
|
50
48
|
productNftId,
|
51
49
|
authorization,
|
52
50
|
initialOwner,
|
@@ -56,7 +54,6 @@ contract FlightOracle is
|
|
56
54
|
|
57
55
|
|
58
56
|
function initialize(
|
59
|
-
address registry,
|
60
57
|
NftId productNftId,
|
61
58
|
IAuthorization authorization,
|
62
59
|
address initialOwner,
|
@@ -67,7 +64,6 @@ contract FlightOracle is
|
|
67
64
|
initializer()
|
68
65
|
{
|
69
66
|
_initializeBasicOracle(
|
70
|
-
registry,
|
71
67
|
productNftId,
|
72
68
|
authorization,
|
73
69
|
initialOwner,
|
@@ -20,7 +20,6 @@ contract FlightPool is
|
|
20
20
|
BasicPool
|
21
21
|
{
|
22
22
|
constructor(
|
23
|
-
address registry,
|
24
23
|
NftId productNftId,
|
25
24
|
string memory componentName,
|
26
25
|
IAuthorization authorization
|
@@ -28,7 +27,6 @@ contract FlightPool is
|
|
28
27
|
{
|
29
28
|
address initialOwner = msg.sender;
|
30
29
|
_intialize(
|
31
|
-
registry,
|
32
30
|
productNftId,
|
33
31
|
componentName,
|
34
32
|
IComponents.PoolInfo({
|
@@ -45,7 +43,6 @@ contract FlightPool is
|
|
45
43
|
}
|
46
44
|
|
47
45
|
function _intialize(
|
48
|
-
address registry,
|
49
46
|
NftId productNftId,
|
50
47
|
string memory componentName,
|
51
48
|
IComponents.PoolInfo memory poolInfo,
|
@@ -56,7 +53,6 @@ contract FlightPool is
|
|
56
53
|
initializer
|
57
54
|
{
|
58
55
|
_initializeBasicPool(
|
59
|
-
registry,
|
60
56
|
productNftId,
|
61
57
|
componentName,
|
62
58
|
poolInfo,
|
@@ -1,6 +1,7 @@
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
2
2
|
pragma solidity ^0.8.20;
|
3
3
|
|
4
|
+
import {ERC20Permit} from "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol";
|
4
5
|
import {IERC20Metadata} from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
|
5
6
|
|
6
7
|
import {IAuthorization} from "../../authorization/IAuthorization.sol";
|
@@ -43,6 +44,14 @@ contract FlightProduct is
|
|
43
44
|
event LogErrorUnexpectedStatus(RequestId requestId, RiskId riskId, bytes1 status, int256 delayMinutes);
|
44
45
|
|
45
46
|
error ErrorApplicationDataSignatureMismatch(address expectedSigner, address actualSigner);
|
47
|
+
error ErrorFlightProductClusterRisk(Amount totalSumInsured, Amount maxTotalPayout);
|
48
|
+
error ErrorFlightProductPremiumAmountTooSmall(Amount premiumAmount, Amount minPremium);
|
49
|
+
error ErrorFlightProductPremiumAmountTooLarge(Amount premiumAmount, Amount maxPremium);
|
50
|
+
error ErrorFlightProductArrivalBeforeDepartureTime(Timestamp departureTime, Timestamp arrivalTime);
|
51
|
+
error ErrorFlightProductArrivalAfterMaxFlightDuration(Timestamp arrivalTime, Timestamp maxArrivalTime, Seconds maxDuration);
|
52
|
+
error ErrorFlightProductDepartureBeforeMinTimeBeforeDeparture(Timestamp departureTime, Timestamp now, Seconds minTimeBeforeDeparture);
|
53
|
+
error ErrorFlightProductDepartureAfterMaxTimeBeforeDeparture(Timestamp departureTime, Timestamp now, Seconds maxTimeBeforeDeparture);
|
54
|
+
error ErrorFlightProductNotEnoughObservations(uint256 observations, uint256 minObservations);
|
46
55
|
|
47
56
|
// solhint-disable
|
48
57
|
// Minimum observations for valid prediction
|
@@ -100,9 +109,29 @@ contract FlightProduct is
|
|
100
109
|
int256 delayMinutes;
|
101
110
|
}
|
102
111
|
|
112
|
+
struct ApplicationData {
|
113
|
+
Str flightData;
|
114
|
+
Timestamp departureTime;
|
115
|
+
Timestamp arrivalTime;
|
116
|
+
Amount premiumAmount;
|
117
|
+
uint256[6] statistics;
|
118
|
+
uint8 v;
|
119
|
+
bytes32 r;
|
120
|
+
bytes32 s;
|
121
|
+
}
|
122
|
+
|
123
|
+
struct PermitData {
|
124
|
+
address owner;
|
125
|
+
address spender;
|
126
|
+
uint256 value;
|
127
|
+
uint256 deadline;
|
128
|
+
uint8 v;
|
129
|
+
bytes32 r;
|
130
|
+
bytes32 s;
|
131
|
+
}
|
132
|
+
|
103
133
|
|
104
134
|
constructor(
|
105
|
-
address registry,
|
106
135
|
NftId instanceNftid,
|
107
136
|
string memory componentName,
|
108
137
|
IAuthorization authorization,
|
@@ -112,7 +141,6 @@ contract FlightProduct is
|
|
112
141
|
address initialOwner = msg.sender;
|
113
142
|
|
114
143
|
_initialize(
|
115
|
-
registry,
|
116
144
|
instanceNftid,
|
117
145
|
componentName,
|
118
146
|
authorization,
|
@@ -131,6 +159,82 @@ contract FlightProduct is
|
|
131
159
|
getNftId()).oracleNftId[0];
|
132
160
|
}
|
133
161
|
|
162
|
+
function calculatePayoutAmounts(
|
163
|
+
FlightProduct flightProduct,
|
164
|
+
Amount premium,
|
165
|
+
uint256[6] memory statistics
|
166
|
+
)
|
167
|
+
external
|
168
|
+
view
|
169
|
+
returns (
|
170
|
+
uint256 weight,
|
171
|
+
Amount[5] memory payoutAmounts,
|
172
|
+
Amount sumInsuredAmount // simply the max of payoutAmounts
|
173
|
+
)
|
174
|
+
{
|
175
|
+
return FlightLib.calculatePayoutAmounts(
|
176
|
+
flightProduct,
|
177
|
+
premium,
|
178
|
+
statistics);
|
179
|
+
}
|
180
|
+
|
181
|
+
/// @dev Creates a policy using a permit for the policy holder.
|
182
|
+
/// The policy holder is defined as the owner parameter of the permit data.
|
183
|
+
/// NOTE: This function makes the assumption that the product token
|
184
|
+
/// supports permits. This assumption is not verfied.
|
185
|
+
function createPolicyWithPermit(
|
186
|
+
PermitData memory permit,
|
187
|
+
ApplicationData memory application
|
188
|
+
)
|
189
|
+
external
|
190
|
+
virtual
|
191
|
+
restricted()
|
192
|
+
returns (
|
193
|
+
RiskId riskId,
|
194
|
+
NftId policyNftId
|
195
|
+
)
|
196
|
+
{
|
197
|
+
// process permit data
|
198
|
+
processPermit(permit);
|
199
|
+
|
200
|
+
// create policy
|
201
|
+
address policyHolder = permit.owner;
|
202
|
+
(
|
203
|
+
riskId,
|
204
|
+
policyNftId
|
205
|
+
) = createPolicy(
|
206
|
+
policyHolder,
|
207
|
+
application.flightData,
|
208
|
+
application.departureTime,
|
209
|
+
application.arrivalTime,
|
210
|
+
application.premiumAmount,
|
211
|
+
application.statistics);
|
212
|
+
// application.v,
|
213
|
+
// application.r,
|
214
|
+
// application.s);
|
215
|
+
}
|
216
|
+
|
217
|
+
|
218
|
+
function processPermit(
|
219
|
+
PermitData memory permit
|
220
|
+
)
|
221
|
+
public
|
222
|
+
virtual
|
223
|
+
restricted()
|
224
|
+
{
|
225
|
+
address tokenAddress = address(getToken());
|
226
|
+
|
227
|
+
// process permit data
|
228
|
+
ERC20Permit(tokenAddress).permit(
|
229
|
+
permit.owner,
|
230
|
+
permit.spender,
|
231
|
+
permit.value,
|
232
|
+
permit.deadline,
|
233
|
+
permit.v,
|
234
|
+
permit.r,
|
235
|
+
permit.s);
|
236
|
+
}
|
237
|
+
|
134
238
|
|
135
239
|
function createPolicy(
|
136
240
|
address policyHolder,
|
@@ -138,13 +242,13 @@ contract FlightProduct is
|
|
138
242
|
Timestamp departureTime,
|
139
243
|
Timestamp arrivalTime,
|
140
244
|
Amount premiumAmount,
|
141
|
-
uint256[6] memory statistics
|
245
|
+
uint256[6] memory statistics
|
142
246
|
// signature fields
|
143
|
-
uint8 v,
|
144
|
-
bytes32 r,
|
145
|
-
bytes32 s
|
247
|
+
// uint8 v,
|
248
|
+
// bytes32 r,
|
249
|
+
// bytes32 s
|
146
250
|
)
|
147
|
-
|
251
|
+
public
|
148
252
|
virtual
|
149
253
|
restricted()
|
150
254
|
returns (
|
@@ -153,14 +257,15 @@ contract FlightProduct is
|
|
153
257
|
)
|
154
258
|
{
|
155
259
|
// checks
|
260
|
+
// disabled for now - using rbac for security
|
156
261
|
FlightLib.checkApplicationDataAndSignature(
|
157
262
|
this,
|
158
263
|
flightData,
|
159
264
|
departureTime,
|
160
265
|
arrivalTime,
|
161
266
|
premiumAmount,
|
162
|
-
statistics
|
163
|
-
v, r, s);
|
267
|
+
statistics);
|
268
|
+
// v, r, s);
|
164
269
|
|
165
270
|
(riskId, policyNftId) = _prepareApplication(
|
166
271
|
policyHolder,
|
@@ -340,6 +445,9 @@ contract FlightProduct is
|
|
340
445
|
return _oracleNftId;
|
341
446
|
}
|
342
447
|
|
448
|
+
function decodeFlightRiskData(bytes memory data) external pure returns (FlightRisk memory) {
|
449
|
+
return abi.decode(data, (FlightRisk));
|
450
|
+
}
|
343
451
|
|
344
452
|
//--- internal functions ------------------------------------------------//
|
345
453
|
|
@@ -406,10 +514,9 @@ contract FlightProduct is
|
|
406
514
|
}
|
407
515
|
|
408
516
|
// check for cluster risk: additional sum insured amount must not exceed MAX_TOTAL_PAYOUT
|
409
|
-
|
410
|
-
flightRisk.sumOfSumInsuredAmounts + sumInsuredAmount
|
411
|
-
|
412
|
-
);
|
517
|
+
if (flightRisk.sumOfSumInsuredAmounts + sumInsuredAmount > MAX_TOTAL_PAYOUT) {
|
518
|
+
revert ErrorFlightProductClusterRisk(flightRisk.sumOfSumInsuredAmounts + sumInsuredAmount, MAX_TOTAL_PAYOUT);
|
519
|
+
}
|
413
520
|
|
414
521
|
// update existing risk with additional sum insured amount
|
415
522
|
flightRisk.sumOfSumInsuredAmounts = flightRisk.sumOfSumInsuredAmounts + sumInsuredAmount;
|
@@ -507,7 +614,6 @@ contract FlightProduct is
|
|
507
614
|
|
508
615
|
|
509
616
|
function _initialize(
|
510
|
-
address registry,
|
511
617
|
NftId instanceNftId,
|
512
618
|
string memory componentName,
|
513
619
|
IAuthorization authorization,
|
@@ -517,7 +623,6 @@ contract FlightProduct is
|
|
517
623
|
initializer
|
518
624
|
{
|
519
625
|
_initializeBasicProduct(
|
520
|
-
registry,
|
521
626
|
instanceNftId,
|
522
627
|
componentName,
|
523
628
|
IComponents.ProductInfo({
|
@@ -31,8 +31,9 @@ contract FlightProductAuthorization
|
|
31
31
|
// authorize public role (open access to any account, only allows to lock target)
|
32
32
|
functions = _authorizeForTarget(getMainTargetName(), PUBLIC_ROLE());
|
33
33
|
_authorize(functions, FlightProduct.createPolicy.selector, "createPolicy");
|
34
|
+
_authorize(functions, FlightProduct.createPolicyWithPermit.selector, "createPolicyWithPermit");
|
34
35
|
|
35
|
-
// only owner
|
36
|
+
// TODO: only owner
|
36
37
|
_authorize(functions, FlightProduct.processFlightStatus.selector, "processFlightStatus");
|
37
38
|
_authorize(functions, FlightProduct.completeSetup.selector, "completeSetup");
|
38
39
|
_authorize(functions, FlightProduct.setDefaultBundle.selector, "setDefaultBundle");
|
@@ -2,9 +2,10 @@
|
|
2
2
|
pragma solidity ^0.8.20;
|
3
3
|
|
4
4
|
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
|
5
|
+
import {ERC20Permit} from "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol";
|
5
6
|
|
6
7
|
/// @dev FireUSD is a stablecoin with 6 decimals and an initial supply of 1 Billion tokens.
|
7
|
-
contract FlightUSD is
|
8
|
+
contract FlightUSD is ERC20Permit {
|
8
9
|
|
9
10
|
string public constant NAME = "FlightUSD";
|
10
11
|
string public constant SYMBOL = "FLTD";
|
@@ -12,6 +13,7 @@ contract FlightUSD is ERC20 {
|
|
12
13
|
uint256 public constant INITIAL_SUPPLY = 10**12 * 10**DECIMALS; // 1'000'000'000'000
|
13
14
|
|
14
15
|
constructor()
|
16
|
+
ERC20Permit(NAME)
|
15
17
|
ERC20(NAME, SYMBOL)
|
16
18
|
{
|
17
19
|
_mint(
|
@@ -17,14 +17,12 @@ contract SimpleDistribution is
|
|
17
17
|
{
|
18
18
|
|
19
19
|
constructor(
|
20
|
-
address registry,
|
21
20
|
NftId productNftId,
|
22
21
|
IAuthorization authorization,
|
23
22
|
address initialOwner
|
24
23
|
)
|
25
24
|
{
|
26
25
|
initialize(
|
27
|
-
registry,
|
28
26
|
productNftId,
|
29
27
|
authorization,
|
30
28
|
initialOwner,
|
@@ -32,7 +30,6 @@ contract SimpleDistribution is
|
|
32
30
|
}
|
33
31
|
|
34
32
|
function initialize(
|
35
|
-
address registry,
|
36
33
|
NftId productNftId,
|
37
34
|
IAuthorization authorization,
|
38
35
|
address initialOwner,
|
@@ -43,7 +40,6 @@ contract SimpleDistribution is
|
|
43
40
|
initializer()
|
44
41
|
{
|
45
42
|
_initializeBasicDistribution(
|
46
|
-
registry,
|
47
43
|
productNftId,
|
48
44
|
authorization,
|
49
45
|
initialOwner,
|
@@ -31,14 +31,12 @@ contract SimpleOracle is
|
|
31
31
|
event LogSimpleOracleSyncResponseSent(RequestId requestId, string responseText);
|
32
32
|
|
33
33
|
constructor(
|
34
|
-
address registry,
|
35
34
|
NftId productNftId,
|
36
35
|
IAuthorization authorization,
|
37
36
|
address initialOwner
|
38
37
|
)
|
39
38
|
{
|
40
39
|
initialize(
|
41
|
-
registry,
|
42
40
|
productNftId,
|
43
41
|
authorization,
|
44
42
|
initialOwner,
|
@@ -47,7 +45,6 @@ contract SimpleOracle is
|
|
47
45
|
}
|
48
46
|
|
49
47
|
function initialize(
|
50
|
-
address registry,
|
51
48
|
NftId productNftId,
|
52
49
|
IAuthorization authorization,
|
53
50
|
address initialOwner,
|
@@ -58,7 +55,6 @@ contract SimpleOracle is
|
|
58
55
|
initializer()
|
59
56
|
{
|
60
57
|
_initializeBasicOracle(
|
61
|
-
registry,
|
62
58
|
productNftId,
|
63
59
|
authorization,
|
64
60
|
initialOwner,
|
@@ -17,7 +17,6 @@ contract SimplePool is
|
|
17
17
|
{
|
18
18
|
|
19
19
|
constructor(
|
20
|
-
address registry,
|
21
20
|
NftId productNftId,
|
22
21
|
IComponents.PoolInfo memory poolInfo,
|
23
22
|
IAuthorization authorization,
|
@@ -25,7 +24,6 @@ contract SimplePool is
|
|
25
24
|
)
|
26
25
|
{
|
27
26
|
initialize(
|
28
|
-
registry,
|
29
27
|
productNftId,
|
30
28
|
poolInfo,
|
31
29
|
authorization,
|
@@ -35,7 +33,6 @@ contract SimplePool is
|
|
35
33
|
|
36
34
|
|
37
35
|
function initialize(
|
38
|
-
address registry,
|
39
36
|
NftId productNftId,
|
40
37
|
IComponents.PoolInfo memory poolInfo,
|
41
38
|
IAuthorization authorization,
|
@@ -46,7 +43,6 @@ contract SimplePool is
|
|
46
43
|
initializer()
|
47
44
|
{
|
48
45
|
_initializeBasicPool(
|
49
|
-
registry,
|
50
46
|
productNftId,
|
51
47
|
"SimplePool",
|
52
48
|
poolInfo,
|
@@ -34,7 +34,6 @@ contract SimpleProduct is
|
|
34
34
|
IOracleService private _oracleService;
|
35
35
|
|
36
36
|
constructor(
|
37
|
-
address registry,
|
38
37
|
NftId instanceNftId,
|
39
38
|
string memory name,
|
40
39
|
IComponents.ProductInfo memory productInfo,
|
@@ -44,7 +43,6 @@ contract SimpleProduct is
|
|
44
43
|
)
|
45
44
|
{
|
46
45
|
initialize(
|
47
|
-
registry,
|
48
46
|
instanceNftId,
|
49
47
|
name,
|
50
48
|
productInfo,
|
@@ -55,7 +53,6 @@ contract SimpleProduct is
|
|
55
53
|
|
56
54
|
|
57
55
|
function initialize(
|
58
|
-
address registry,
|
59
56
|
NftId instanceNftid,
|
60
57
|
string memory name,
|
61
58
|
IComponents.ProductInfo memory productInfo,
|
@@ -68,7 +65,6 @@ contract SimpleProduct is
|
|
68
65
|
initializer()
|
69
66
|
{
|
70
67
|
_initializeBasicProduct(
|
71
|
-
registry,
|
72
68
|
instanceNftid,
|
73
69
|
name,
|
74
70
|
productInfo,
|
@@ -26,8 +26,6 @@ contract Instance is
|
|
26
26
|
IInstance,
|
27
27
|
Registerable
|
28
28
|
{
|
29
|
-
bool private _initialized;
|
30
|
-
|
31
29
|
IComponentService internal _componentService;
|
32
30
|
IInstanceService internal _instanceService;
|
33
31
|
|
@@ -59,8 +57,6 @@ contract Instance is
|
|
59
57
|
|
60
58
|
function initialize(
|
61
59
|
InstanceContracts memory instanceContracts,
|
62
|
-
IRegistry registry,
|
63
|
-
VersionPart release,
|
64
60
|
address initialOwner,
|
65
61
|
bool tokenRegistryDisabled // only disable for testing
|
66
62
|
)
|
@@ -74,9 +70,9 @@ contract Instance is
|
|
74
70
|
_instanceAdmin = instanceContracts.instanceAdmin;
|
75
71
|
|
76
72
|
// setup instance object info
|
73
|
+
IRegistry registry = _getRegistry();
|
77
74
|
__Registerable_init({
|
78
75
|
authority: instanceContracts.instanceAdmin.authority(),
|
79
|
-
registry: address(registry),
|
80
76
|
parentNftId: registry.getNftId(),
|
81
77
|
objectType: INSTANCE(),
|
82
78
|
isInterceptor: false,
|
@@ -93,19 +89,19 @@ contract Instance is
|
|
93
89
|
// initialize instance supporting contracts
|
94
90
|
_instanceStore.initialize();
|
95
91
|
_productStore.initialize();
|
96
|
-
_bundleSet.initialize(instanceContracts.instanceAdmin.authority()
|
97
|
-
_riskSet.initialize(instanceContracts.instanceAdmin.authority()
|
92
|
+
_bundleSet.initialize(instanceContracts.instanceAdmin.authority());
|
93
|
+
_riskSet.initialize(instanceContracts.instanceAdmin.authority());
|
98
94
|
_instanceReader.initialize();
|
99
95
|
|
100
96
|
_componentService = IComponentService(
|
101
|
-
|
97
|
+
registry.getServiceAddress(
|
102
98
|
COMPONENT(),
|
103
|
-
|
99
|
+
getRelease()));
|
104
100
|
|
105
101
|
_instanceService = IInstanceService(
|
106
|
-
|
102
|
+
registry.getServiceAddress(
|
107
103
|
INSTANCE(),
|
108
|
-
|
104
|
+
getRelease()));
|
109
105
|
|
110
106
|
_tokenRegistryDisabled = tokenRegistryDisabled;
|
111
107
|
|