@etherisc/gif-next 0.0.2-bf75dbb-287 → 0.0.2-bfb44e0-483
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -1
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
- package/artifacts/contracts/components/Component.sol/Component.json +897 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +907 -218
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/components/{BaseComponent.sol/BaseComponent.json → IComponent.sol/IComponent.json} +151 -84
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +798 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +662 -43
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +661 -5
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +620 -193
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +550 -115
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +1 -1
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +1 -1
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +38 -62
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +725 -36
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +198 -20
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +490 -710
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +188 -144
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +61 -97
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +501 -264
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +178 -100
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +8 -32
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
- package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → instance/base/ComponentService.sol/ComponentService.json} +321 -9
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +2 -2
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +2 -2
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +59 -16
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.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/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +1117 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1318 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +586 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +544 -84
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +191 -33
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/{base/ComponentServiceBase.sol/ComponentServiceBase.json → service/IApplicationService.sol/IApplicationService.json} +207 -109
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +798 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +229 -19
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IPolicyService.sol/IPolicyService.json} +369 -51
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +28 -244
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +33 -244
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1378 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +642 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +259 -351
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +166 -56
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +270 -410
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +166 -80
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +2 -2
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +225 -133
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +146 -94
- 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 +238 -235
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +214 -156
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +181 -97
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +150 -29
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
- package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +37 -0
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +129 -0
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +18 -5
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.json +69 -0
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/shared/IService.sol/IService.json +32 -19
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -2
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +156 -11
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +269 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +156 -6
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +152 -11
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +105 -0
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
- package/artifacts/contracts/shared/Service.sol/Service.json +178 -19
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
- package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -2
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +152 -11
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +196 -37
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +8 -8
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
- package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +2 -2
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
- package/contracts/components/Component.sol +236 -0
- package/contracts/components/Distribution.sol +199 -64
- package/contracts/components/IComponent.sol +50 -0
- package/contracts/components/IDistributionComponent.sol +59 -3
- package/contracts/components/IPoolComponent.sol +50 -29
- package/contracts/components/IProductComponent.sol +7 -3
- package/contracts/components/Pool.sol +136 -149
- package/contracts/components/Product.sol +104 -115
- package/contracts/instance/BundleManager.sol +7 -11
- package/contracts/instance/IInstance.sol +39 -9
- package/contracts/instance/IInstanceService.sol +29 -4
- package/contracts/instance/Instance.sol +78 -251
- package/contracts/instance/InstanceAccessManager.sol +87 -78
- package/contracts/instance/InstanceReader.sol +3 -25
- package/contracts/instance/InstanceService.sol +306 -137
- package/contracts/instance/InstanceServiceManager.sol +5 -8
- package/contracts/instance/ObjectManager.sol +7 -24
- package/contracts/instance/base/ComponentService.sol +134 -0
- package/contracts/instance/module/IAccess.sol +27 -18
- package/contracts/instance/module/ISetup.sol +5 -4
- package/contracts/instance/service/ApplicationService.sol +268 -0
- package/contracts/instance/service/BundleService.sol +298 -0
- package/contracts/instance/service/BundleServiceManager.sol +51 -0
- package/contracts/instance/service/DistributionService.sol +212 -26
- package/contracts/instance/service/DistributionServiceManager.sol +6 -9
- package/contracts/instance/service/IApplicationService.sol +82 -0
- package/contracts/instance/service/IBundleService.sol +54 -0
- package/contracts/instance/service/IDistributionService.sol +53 -0
- package/contracts/instance/service/IPolicyService.sol +88 -0
- package/contracts/instance/service/IPoolService.sol +2 -33
- package/contracts/instance/service/IProductService.sol +2 -72
- package/contracts/instance/service/PolicyService.sol +524 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +34 -212
- package/contracts/instance/service/PoolServiceManager.sol +5 -8
- package/contracts/instance/service/ProductService.sol +123 -460
- package/contracts/registry/ChainNft.sol +1 -1
- package/contracts/registry/IRegistry.sol +37 -19
- package/contracts/registry/IRegistryService.sol +28 -13
- package/contracts/registry/Registry.sol +231 -217
- package/contracts/registry/RegistryAccessManager.sol +216 -0
- package/contracts/registry/RegistryService.sol +65 -162
- package/contracts/registry/RegistryServiceManager.sol +18 -36
- package/contracts/registry/ReleaseManager.sol +332 -0
- package/contracts/registry/TokenRegistry.sol +11 -9
- package/contracts/shared/ERC165.sol +12 -11
- package/contracts/shared/INftOwnable.sol +12 -6
- package/contracts/shared/IPolicyHolder.sol +26 -0
- package/contracts/shared/IRegisterable.sol +4 -6
- package/contracts/shared/IRegistryLinked.sol +15 -0
- package/contracts/shared/IService.sol +2 -1
- package/contracts/shared/IVersionable.sol +2 -2
- package/contracts/shared/NftOwnable.sol +113 -57
- package/contracts/shared/PolicyHolder.sol +81 -0
- package/contracts/shared/ProxyManager.sol +6 -5
- package/contracts/shared/Registerable.sol +15 -24
- package/contracts/shared/RegistryLinked.sol +64 -0
- package/contracts/shared/Service.sol +18 -13
- package/contracts/shared/Versionable.sol +3 -2
- package/contracts/test/TestRegisterable.sol +1 -1
- package/contracts/test/TestService.sol +4 -3
- package/contracts/types/DistributorType.sol +2 -2
- package/contracts/types/ObjectType.sol +6 -2
- package/contracts/types/RoleId.sol +10 -10
- package/package.json +3 -3
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -368
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +0 -1206
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
- package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +0 -448
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +0 -763
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -827
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
- package/contracts/components/BaseComponent.sol +0 -132
- package/contracts/components/IBaseComponent.sol +0 -31
- package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +0 -23
- package/contracts/instance/IAccessManagerSimple.sol +0 -391
- package/contracts/instance/IInstanceBase.sol +0 -26
- package/contracts/instance/InstanceBase.sol +0 -41
- package/contracts/instance/base/ComponentServiceBase.sol +0 -134
- package/contracts/instance/base/IInstanceBase.sol +0 -23
- package/contracts/instance/service/ComponentOwnerService.sol +0 -317
- package/contracts/instance/service/IComponentOwnerService.sol +0 -20
- package/contracts/shared/RegisterableUpgradable.sol +0 -16
@@ -1,45 +1,51 @@
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
2
2
|
pragma solidity ^0.8.20;
|
3
3
|
|
4
|
-
import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
|
5
|
-
import {ShortString, ShortStrings} from "@openzeppelin/contracts/utils/ShortStrings.sol";
|
6
|
-
import {Initializable} from "@openzeppelin/contracts/proxy/utils/Initializable.sol";
|
7
4
|
import {AccessManagedUpgradeable} from "@openzeppelin/contracts-upgradeable/access/manager/AccessManagedUpgradeable.sol";
|
8
|
-
import {AccessManagerUpgradeable} from "@openzeppelin/contracts-upgradeable/access/manager/AccessManagerUpgradeable.sol";
|
9
5
|
|
10
|
-
import {IAccess} from "./module/IAccess.sol";
|
11
|
-
import {IBundle} from "./module/IBundle.sol";
|
12
|
-
import {IPolicy} from "./module/IPolicy.sol";
|
13
|
-
import {IRisk} from "./module/IRisk.sol";
|
14
|
-
import {ISetup} from "./module/ISetup.sol";
|
15
6
|
import {Key32, KeyId, Key32Lib} from "../types/Key32.sol";
|
16
|
-
import {KeyValueStore} from "./base/KeyValueStore.sol";
|
17
|
-
import {IInstance} from "./IInstance.sol";
|
18
|
-
import {InstanceReader} from "./InstanceReader.sol";
|
19
|
-
import {BundleManager} from "./BundleManager.sol";
|
20
7
|
import {NftId} from "../types/NftId.sol";
|
21
8
|
import {NumberId} from "../types/NumberId.sol";
|
22
|
-
import {ObjectType, BUNDLE, DISTRIBUTION, INSTANCE, POLICY, POOL, ROLE, PRODUCT, TARGET} from "../types/ObjectType.sol";
|
9
|
+
import {ObjectType, BUNDLE, DISTRIBUTION, INSTANCE, POLICY, POOL, ROLE, PRODUCT, TARGET, COMPONENT, DISTRIBUTOR, DISTRIBUTOR_TYPE} from "../types/ObjectType.sol";
|
23
10
|
import {RiskId, RiskIdLib} from "../types/RiskId.sol";
|
24
11
|
import {RoleId, RoleIdLib} from "../types/RoleId.sol";
|
25
12
|
import {StateId, ACTIVE} from "../types/StateId.sol";
|
13
|
+
import {TimestampLib} from "../types/Timestamp.sol";
|
14
|
+
import {VersionPart} from "../types/Version.sol";
|
15
|
+
|
26
16
|
import {ERC165} from "../shared/ERC165.sol";
|
27
17
|
import {Registerable} from "../shared/Registerable.sol";
|
28
|
-
|
29
|
-
import {
|
18
|
+
|
19
|
+
import {IInstance} from "./IInstance.sol";
|
20
|
+
import {InstanceReader} from "./InstanceReader.sol";
|
21
|
+
import {InstanceAccessManager} from "./InstanceAccessManager.sol";
|
22
|
+
import {BundleManager} from "./BundleManager.sol";
|
23
|
+
|
24
|
+
import {KeyValueStore} from "./base/KeyValueStore.sol";
|
25
|
+
|
26
|
+
import {IAccess} from "./module/IAccess.sol";
|
27
|
+
import {IBundle} from "./module/IBundle.sol";
|
28
|
+
import {IDistribution} from "./module/IDistribution.sol";
|
29
|
+
import {IPolicy} from "./module/IPolicy.sol";
|
30
|
+
import {IRisk} from "./module/IRisk.sol";
|
31
|
+
import {ISetup} from "./module/ISetup.sol";
|
32
|
+
|
30
33
|
import {IDistributionService} from "./service/IDistributionService.sol";
|
31
34
|
import {IPoolService} from "./service/IPoolService.sol";
|
32
35
|
import {IProductService} from "./service/IProductService.sol";
|
33
|
-
import {
|
34
|
-
import {
|
36
|
+
import {IPolicyService} from "./service/IPolicyService.sol";
|
37
|
+
import {IBundleService} from "./service/IBundleService.sol";
|
38
|
+
import {VersionPart, VersionPartLib} from "../types/Version.sol";
|
35
39
|
|
36
40
|
contract Instance is
|
37
|
-
AccessManagedUpgradeable,
|
38
41
|
IInstance,
|
39
|
-
|
40
|
-
|
42
|
+
AccessManagedUpgradeable,
|
43
|
+
Registerable,
|
44
|
+
KeyValueStore
|
41
45
|
{
|
42
46
|
|
47
|
+
uint256 public constant GIF_MAJOR_VERSION = 3;
|
48
|
+
|
43
49
|
uint64 public constant ADMIN_ROLE = type(uint64).min;
|
44
50
|
uint64 public constant PUBLIC_ROLE = type(uint64).max;
|
45
51
|
uint64 public constant CUSTOM_ROLE_ID_MIN = 10000;
|
@@ -48,152 +54,18 @@ contract Instance is
|
|
48
54
|
|
49
55
|
bool private _initialized;
|
50
56
|
|
51
|
-
|
52
|
-
mapping(RoleId roleId => EnumerableSet.AddressSet roleMembers) internal _roleMembers;
|
53
|
-
RoleId [] internal _roles;
|
54
|
-
|
55
|
-
mapping(ShortString name => address target) internal _target;
|
56
|
-
|
57
|
-
AccessManagerUpgradeable internal _accessManager;
|
57
|
+
InstanceAccessManager internal _accessManager;
|
58
58
|
InstanceReader internal _instanceReader;
|
59
59
|
BundleManager internal _bundleManager;
|
60
60
|
|
61
61
|
function initialize(address accessManagerAddress, address registryAddress, NftId registryNftId, address initialOwner)
|
62
62
|
public
|
63
|
-
initializer
|
63
|
+
initializer()
|
64
64
|
{
|
65
|
-
require(!_initialized, "Contract instance has already been initialized");
|
66
|
-
|
67
65
|
__AccessManaged_init(accessManagerAddress);
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
_createRole(RoleIdLib.toRoleId(PUBLIC_ROLE), "PublicRole", false, false);
|
72
|
-
|
73
|
-
_initializeRegisterable(registryAddress, registryNftId, INSTANCE(), false, initialOwner, "");
|
74
|
-
|
75
|
-
_registerInterface(type(IInstance).interfaceId);
|
76
|
-
_initialized = true;
|
77
|
-
}
|
78
|
-
|
79
|
-
//--- Role ------------------------------------------------------//
|
80
|
-
function createStandardRole(RoleId roleId, string memory name) external restricted() {
|
81
|
-
_createRole(roleId, name, false, true);
|
82
|
-
}
|
83
|
-
|
84
|
-
function createCustomRole(RoleId roleId, string memory name) external restricted() {
|
85
|
-
_createRole(roleId, name, true, true);
|
86
|
-
}
|
87
|
-
|
88
|
-
function updateRole(RoleId roleId, string memory name, StateId newState) external restricted() {
|
89
|
-
(bool isCustom,) = _validateRoleParameters(roleId, name, false);
|
90
|
-
IAccess.RoleInfo memory role = _toRole(roleId, name, isCustom);
|
91
|
-
update(toRoleKey32(roleId), abi.encode(role), newState);
|
92
|
-
}
|
93
|
-
|
94
|
-
function updateRoleState(RoleId roleId, StateId newState) external restricted() {
|
95
|
-
updateState(toRoleKey32(roleId), newState);
|
96
|
-
}
|
97
|
-
|
98
|
-
function grantRole(RoleId roleId, address member) external restricted() returns (bool granted) {
|
99
|
-
Key32 roleKey = toRoleKey32(roleId);
|
100
|
-
|
101
|
-
if (!exists(roleKey)) {
|
102
|
-
revert IAccess.ErrorGrantNonexstentRole(roleId);
|
103
|
-
}
|
104
|
-
|
105
|
-
if (getState(roleKey) != ACTIVE()) {
|
106
|
-
revert IAccess.ErrorRoleIdNotActive(roleId);
|
107
|
-
}
|
108
|
-
|
109
|
-
if (!EnumerableSet.contains(_roleMembers[roleId], member)) {
|
110
|
-
_accessManager.grantRole(roleId.toInt(), member, EXECUTION_DELAY);
|
111
|
-
EnumerableSet.add(_roleMembers[roleId], member);
|
112
|
-
return true;
|
113
|
-
}
|
114
|
-
|
115
|
-
return false;
|
116
|
-
}
|
117
|
-
|
118
|
-
function revokeRole(RoleId roleId, address member) external restricted() returns (bool revoked) {
|
119
|
-
Key32 roleKey = toRoleKey32(roleId);
|
120
|
-
|
121
|
-
if (!exists(roleKey)) {
|
122
|
-
revert IAccess.ErrorRevokeNonexstentRole(roleId);
|
123
|
-
}
|
124
|
-
|
125
|
-
if (EnumerableSet.contains(_roleMembers[roleId], member)) {
|
126
|
-
_accessManager.revokeRole(roleId.toInt(), member);
|
127
|
-
EnumerableSet.remove(_roleMembers[roleId], member);
|
128
|
-
return true;
|
129
|
-
}
|
130
|
-
|
131
|
-
return false;
|
132
|
-
}
|
133
|
-
|
134
|
-
/// @dev not restricted function by intention
|
135
|
-
/// the restriction to role members is already enforced by the call to the access manger
|
136
|
-
function renounceRole(RoleId roleId) external returns (bool revoked) {
|
137
|
-
address member = msg.sender;
|
138
|
-
Key32 roleKey = toRoleKey32(roleId);
|
139
|
-
|
140
|
-
if (!exists(roleKey)) {
|
141
|
-
revert IAccess.ErrorRenounceNonexstentRole(roleId);
|
142
|
-
}
|
143
|
-
|
144
|
-
if (EnumerableSet.contains(_roleMembers[roleId], member)) {
|
145
|
-
_accessManager.renounceRole(roleId.toInt(), member);
|
146
|
-
EnumerableSet.remove(_roleMembers[roleId], member);
|
147
|
-
return true;
|
148
|
-
}
|
149
|
-
|
150
|
-
return false;
|
151
|
-
}
|
152
|
-
|
153
|
-
function roles() external view returns (uint256 numberOfRoles) {
|
154
|
-
return _roles.length;
|
155
|
-
}
|
156
|
-
|
157
|
-
function getRoleId(uint256 idx) external view returns (RoleId roleId) {
|
158
|
-
return _roles[idx];
|
159
|
-
}
|
160
|
-
|
161
|
-
function getRole(RoleId roleId) external view returns (IAccess.RoleInfo memory role) {
|
162
|
-
return abi.decode(getData(roleId.toKey32()), (IAccess.RoleInfo));
|
163
|
-
}
|
164
|
-
|
165
|
-
function roleMembers(RoleId roleId) external view returns (uint256 numberOfMembers) {
|
166
|
-
return EnumerableSet.length(_roleMembers[roleId]);
|
167
|
-
}
|
168
|
-
|
169
|
-
function getRoleMember(RoleId roleId, uint256 idx) external view returns (address roleMember) {
|
170
|
-
return EnumerableSet.at(_roleMembers[roleId], idx);
|
171
|
-
}
|
172
|
-
|
173
|
-
function _createRole(RoleId roleId, string memory name, bool isCustom, bool validateParameters) internal {
|
174
|
-
if (validateParameters) {
|
175
|
-
_validateRoleParameters(roleId, name, isCustom);
|
176
|
-
}
|
177
|
-
|
178
|
-
IAccess.RoleInfo memory role = _toRole(roleId, name, isCustom);
|
179
|
-
_role[role.name] = roleId;
|
180
|
-
_roles.push(roleId);
|
181
|
-
|
182
|
-
create(toRoleKey32(roleId), abi.encode(role));
|
183
|
-
}
|
184
|
-
|
185
|
-
//--- Target ------------------------------------------------------//
|
186
|
-
function createTarget(address target, IAccess.TargetInfo memory targetInfo) external restricted() {
|
187
|
-
_validateTargetParameters(target, targetInfo);
|
188
|
-
create(toTargetKey32(target), abi.encode(targetInfo));
|
189
|
-
}
|
190
|
-
|
191
|
-
function setTargetClosed(address target, bool closed) external restricted() {
|
192
|
-
if (!exists(toTargetKey32(target))) {
|
193
|
-
revert IAccess.ErrorTargetDoesNotExist(target);
|
194
|
-
}
|
195
|
-
|
196
|
-
_accessManager.setTargetClosed(target, closed);
|
66
|
+
|
67
|
+
initializeRegisterable(registryAddress, registryNftId, INSTANCE(), false, initialOwner, "");
|
68
|
+
registerInterface(type(IInstance).interfaceId);
|
197
69
|
}
|
198
70
|
|
199
71
|
//--- ProductSetup ------------------------------------------------------//
|
@@ -235,43 +107,43 @@ contract Instance is
|
|
235
107
|
updateState(_toNftKey32(poolNftId, POOL()), newState);
|
236
108
|
}
|
237
109
|
|
238
|
-
//--- DistributorType
|
239
|
-
function createDistributorType(
|
240
|
-
create(
|
110
|
+
//--- DistributorType -------------------------------------------------------//
|
111
|
+
function createDistributorType(Key32 distributorKey, IDistribution.DistributorTypeInfo memory info) external restricted() {
|
112
|
+
create(distributorKey, abi.encode(info));
|
241
113
|
}
|
242
114
|
|
243
|
-
function updateDistributorType(
|
244
|
-
update(
|
115
|
+
function updateDistributorType(Key32 distributorKey, IDistribution.DistributorTypeInfo memory info, StateId newState) external restricted() {
|
116
|
+
update(distributorKey, abi.encode(info), newState);
|
245
117
|
}
|
246
118
|
|
247
|
-
function updateDistributorTypeState(
|
248
|
-
updateState(
|
119
|
+
function updateDistributorTypeState(Key32 distributorKey, StateId newState) external restricted() {
|
120
|
+
updateState(distributorKey, newState);
|
249
121
|
}
|
250
122
|
|
251
123
|
//--- Distributor -------------------------------------------------------//
|
252
|
-
function createDistributor(NftId
|
253
|
-
create(
|
124
|
+
function createDistributor(NftId nftId, IDistribution.DistributorInfo memory info) external restricted() {
|
125
|
+
create(toDistributorKey32(nftId), abi.encode(info));
|
254
126
|
}
|
255
127
|
|
256
|
-
function updateDistributor(NftId
|
257
|
-
update(
|
128
|
+
function updateDistributor(NftId nftId, IDistribution.DistributorInfo memory info, StateId newState) external restricted() {
|
129
|
+
update(toDistributorKey32(nftId), abi.encode(info), newState);
|
258
130
|
}
|
259
131
|
|
260
|
-
function updateDistributorState(NftId
|
261
|
-
updateState(
|
132
|
+
function updateDistributorState(NftId nftId, StateId newState) external restricted() {
|
133
|
+
updateState(toDistributorKey32(nftId), newState);
|
262
134
|
}
|
263
135
|
|
264
136
|
//--- Referral ----------------------------------------------------------//
|
265
|
-
function createReferral(
|
266
|
-
create(
|
137
|
+
function createReferral(Key32 referralKey, IDistribution.ReferralInfo memory referralInfo) external restricted() {
|
138
|
+
create(referralKey, abi.encode(referralInfo));
|
267
139
|
}
|
268
140
|
|
269
|
-
function updateReferral(
|
270
|
-
update(
|
141
|
+
function updateReferral(Key32 referralKey, IDistribution.ReferralInfo memory referralInfo, StateId newState) external restricted() {
|
142
|
+
update(referralKey, abi.encode(referralInfo), newState);
|
271
143
|
}
|
272
144
|
|
273
|
-
function updateReferralState(
|
274
|
-
updateState(
|
145
|
+
function updateReferralState(Key32 referralKey, StateId newState) external restricted() {
|
146
|
+
updateState(referralKey, newState);
|
275
147
|
}
|
276
148
|
|
277
149
|
//--- Bundle ------------------------------------------------------------//
|
@@ -340,71 +212,6 @@ contract Instance is
|
|
340
212
|
}
|
341
213
|
|
342
214
|
//--- internal view/pure functions --------------------------------------//
|
343
|
-
function _toRole(RoleId roleId, string memory name, bool isCustom)
|
344
|
-
internal
|
345
|
-
pure
|
346
|
-
returns (IAccess.RoleInfo memory role)
|
347
|
-
{
|
348
|
-
return IAccess.RoleInfo(
|
349
|
-
ShortStrings.toShortString(name),
|
350
|
-
isCustom);
|
351
|
-
}
|
352
|
-
|
353
|
-
function _validateRoleParameters(
|
354
|
-
RoleId roleId,
|
355
|
-
string memory name,
|
356
|
-
bool isCustom
|
357
|
-
)
|
358
|
-
internal
|
359
|
-
view
|
360
|
-
returns (
|
361
|
-
bool roleExists,
|
362
|
-
bool roleIsCustom
|
363
|
-
)
|
364
|
-
{
|
365
|
-
Key32 roleKey = toRoleKey32(roleId);
|
366
|
-
roleExists = exists(roleKey);
|
367
|
-
if (roleExists) {
|
368
|
-
roleIsCustom = abi.decode(getData(roleKey), (IAccess.RoleInfo)).isCustom;
|
369
|
-
} else {
|
370
|
-
roleIsCustom = isCustom;
|
371
|
-
}
|
372
|
-
|
373
|
-
// check role id
|
374
|
-
uint64 roleIdInt = RoleId.unwrap(roleId);
|
375
|
-
if(roleIdInt == ADMIN_ROLE || roleIdInt == PUBLIC_ROLE) {
|
376
|
-
revert IAccess.ErrorRoleIdInvalid(roleId);
|
377
|
-
}
|
378
|
-
|
379
|
-
if (roleIsCustom && roleIdInt < CUSTOM_ROLE_ID_MIN) {
|
380
|
-
revert IAccess.ErrorRoleIdTooSmall(roleId);
|
381
|
-
} else if (roleIsCustom && roleIdInt >= CUSTOM_ROLE_ID_MIN) {
|
382
|
-
revert IAccess.ErrorRoleIdTooBig(roleId);
|
383
|
-
}
|
384
|
-
|
385
|
-
// role name checks
|
386
|
-
ShortString nameShort = ShortStrings.toShortString(name);
|
387
|
-
if (ShortStrings.byteLength(nameShort) == 0) {
|
388
|
-
revert IAccess.ErrorRoleNameEmpty(roleId);
|
389
|
-
}
|
390
|
-
|
391
|
-
if (_role[nameShort] != RoleIdLib.zero() && _role[nameShort] != roleId) {
|
392
|
-
revert IAccess.ErrorRoleNameNotUnique(_role[nameShort], nameShort);
|
393
|
-
}
|
394
|
-
}
|
395
|
-
|
396
|
-
function _validateTargetParameters(address target, IAccess.TargetInfo memory targetInfo) internal view {
|
397
|
-
|
398
|
-
}
|
399
|
-
|
400
|
-
function toRoleKey32(RoleId roleId) public pure returns (Key32) {
|
401
|
-
return roleId.toKey32();
|
402
|
-
}
|
403
|
-
|
404
|
-
function toTargetKey32(address target) public pure returns (Key32) {
|
405
|
-
return Key32Lib.toKey32(TARGET(), KeyId.wrap(bytes20(target)));
|
406
|
-
}
|
407
|
-
|
408
215
|
function _toNftKey32(NftId nftId, ObjectType objectType) internal pure returns (Key32) {
|
409
216
|
return nftId.toKey32(objectType);
|
410
217
|
}
|
@@ -417,34 +224,54 @@ contract Instance is
|
|
417
224
|
return policyNftId.toKey32(POLICY());
|
418
225
|
}
|
419
226
|
|
420
|
-
function
|
421
|
-
return
|
227
|
+
function toDistributionKey32(NftId distNftId) public pure returns (Key32) {
|
228
|
+
return distNftId.toKey32(DISTRIBUTION());
|
422
229
|
}
|
423
230
|
|
231
|
+
function toDistributorTypeKey32(NftId distNftId) public pure returns (Key32) {
|
232
|
+
return distNftId.toKey32(DISTRIBUTOR_TYPE());
|
233
|
+
}
|
234
|
+
|
235
|
+
function toDistributorKey32(NftId distNftId) public pure returns (Key32) {
|
236
|
+
return distNftId.toKey32(DISTRIBUTOR());
|
237
|
+
}
|
238
|
+
|
424
239
|
function getDistributionService() external view returns (IDistributionService) {
|
425
|
-
return IDistributionService(
|
240
|
+
return IDistributionService(getRegistry().getServiceAddress(DISTRIBUTION(), VersionPart.wrap(3)));
|
426
241
|
}
|
427
242
|
|
428
243
|
function getProductService() external view returns (IProductService) {
|
429
|
-
return IProductService(
|
244
|
+
return IProductService(getRegistry().getServiceAddress(PRODUCT(), VersionPart.wrap(3)));
|
430
245
|
}
|
431
246
|
|
432
247
|
function getPoolService() external view returns (IPoolService) {
|
433
|
-
return IPoolService(
|
248
|
+
return IPoolService(getRegistry().getServiceAddress(POOL(), VersionPart.wrap(3)));
|
249
|
+
}
|
250
|
+
|
251
|
+
function getPolicyService() external view returns (IPolicyService) {
|
252
|
+
return IPolicyService(getRegistry().getServiceAddress(POLICY(), VersionPart.wrap(3)));
|
253
|
+
}
|
254
|
+
|
255
|
+
function getBundleService() external view returns (IBundleService) {
|
256
|
+
return IBundleService(getRegistry().getServiceAddress(BUNDLE(), VersionPart.wrap(3)));
|
434
257
|
}
|
435
258
|
|
436
259
|
function setInstanceReader(InstanceReader instanceReader) external restricted() {
|
437
|
-
require(instanceReader.
|
260
|
+
require(instanceReader.getInstance() == Instance(this), "InstanceReader instance mismatch");
|
438
261
|
_instanceReader = instanceReader;
|
439
262
|
}
|
440
263
|
|
264
|
+
function getMajorVersion() external pure returns (VersionPart majorVersion) {
|
265
|
+
return VersionPartLib.toVersionPart(GIF_MAJOR_VERSION);
|
266
|
+
}
|
267
|
+
|
441
268
|
function getInstanceReader() external view returns (InstanceReader) {
|
442
269
|
return _instanceReader;
|
443
270
|
}
|
444
271
|
|
445
272
|
function setBundleManager(BundleManager bundleManager) external restricted() {
|
446
273
|
require(address(_bundleManager) == address(0), "BundleManager is set");
|
447
|
-
require(bundleManager.
|
274
|
+
require(bundleManager.getInstance() == Instance(this), "BundleManager instance mismatch");
|
448
275
|
_bundleManager = bundleManager;
|
449
276
|
}
|
450
277
|
|