@etherisc/gif-next 0.0.2-f0d86c2-077 → 0.0.2-f4f92b3-338
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +242 -11
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
- package/artifacts/contracts/components/Component.sol/Component.json +656 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +849 -0
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/{registry/IChainNft.sol/IChainNft.json → components/IComponent.sol/IComponent.json} +244 -241
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +648 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +510 -51
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +533 -64
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +687 -58
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +711 -67
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +4 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +66 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +4 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +24 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +4 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +42 -0
- 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/SM.sol/SM.json +2 -2
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
- 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 +4 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +764 -0
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +185 -0
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1137 -1023
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +565 -0
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +1987 -1124
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +1034 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1381 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +964 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +473 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +603 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +45 -127
- 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 +55 -245
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +4 -4
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +254 -0
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{access/IAccess.sol/IAccess.json → IDistribution.sol/IDistribution.json} +2 -2
- package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
- package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
- package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
- package/artifacts/contracts/instance/{base/ModuleBase.sol/ModuleBase.json → module/ISetup.sol/ISetup.json} +2 -2
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1102 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +449 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +772 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +437 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +715 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/{base/IService.sol/IService.json → service/IDistributionService.sol/IDistributionService.json} +202 -61
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +766 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +198 -80
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +204 -150
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1227 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +505 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +423 -88
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +437 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +398 -215
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +437 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +186 -12
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +455 -36
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +981 -0
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +465 -111
- 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 +4 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1200 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +464 -0
- 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 +4 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +394 -0
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
- package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +127 -0
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +112 -37
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
- package/artifacts/contracts/{instance/service/IComponentOwnerService.sol/IComponentOwnerService.json → shared/IService.sol/IService.json} +169 -117
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +55 -14
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +171 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +362 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +193 -32
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
- package/artifacts/contracts/{instance/base/InstanceBase.sol/InstanceBase.json → shared/Service.sol/Service.json} +221 -71
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
- package/artifacts/contracts/shared/Versionable.sol/Versionable.json +78 -14
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
- package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +207 -31
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +14 -14
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +292 -63
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +103 -23
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
- package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
- 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 +4 -0
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +52 -13
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +31 -17
- 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 +26 -3
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
- 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 +4 -0
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +134 -8
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +15 -2
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
- package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
- package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.json +40 -2
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
- package/contracts/components/Component.sol +222 -0
- package/contracts/components/Distribution.sol +144 -0
- package/contracts/components/IComponent.sol +43 -0
- package/contracts/components/IDistributionComponent.sol +47 -0
- package/contracts/components/IPoolComponent.sol +24 -11
- package/contracts/components/IProductComponent.sol +29 -9
- package/contracts/components/Pool.sol +121 -54
- package/contracts/components/Product.sol +182 -41
- package/contracts/experiment/cloning/Cloner.sol +47 -0
- package/contracts/instance/BundleManager.sol +125 -0
- package/contracts/instance/Cloneable.sol +46 -0
- package/contracts/instance/IInstance.sol +65 -45
- package/contracts/instance/IInstanceService.sol +40 -0
- package/contracts/instance/Instance.sol +254 -53
- package/contracts/instance/InstanceAccessManager.sol +298 -0
- package/contracts/instance/InstanceReader.sol +293 -0
- package/contracts/instance/InstanceService.sol +362 -0
- package/contracts/instance/InstanceServiceManager.sol +54 -0
- package/contracts/instance/ObjectManager.sol +84 -0
- package/contracts/instance/base/ComponentService.sol +134 -0
- package/contracts/instance/base/IKeyValueStore.sol +13 -13
- package/contracts/instance/base/ILifecycle.sol +3 -3
- package/contracts/instance/base/KeyValueStore.sol +53 -37
- package/contracts/instance/base/Lifecycle.sol +16 -11
- package/contracts/instance/module/IAccess.sol +48 -0
- package/contracts/instance/module/IBundle.sol +20 -0
- package/contracts/instance/module/IDistribution.sol +39 -0
- package/contracts/instance/module/IPolicy.sol +45 -0
- package/contracts/instance/module/IRisk.sol +11 -0
- package/contracts/instance/module/ISetup.sol +46 -0
- package/contracts/instance/module/ITreasury.sol +23 -0
- package/contracts/instance/service/BundleService.sol +293 -0
- package/contracts/instance/service/BundleServiceManager.sol +51 -0
- package/contracts/instance/service/DistributionService.sol +106 -0
- package/contracts/instance/service/DistributionServiceManager.sol +51 -0
- package/contracts/instance/service/IBundleService.sol +44 -0
- package/contracts/instance/service/IDistributionService.sol +12 -0
- package/contracts/instance/service/IPolicyService.sol +94 -0
- package/contracts/instance/service/IPoolService.sol +8 -18
- package/contracts/instance/service/IProductService.sol +21 -39
- package/contracts/instance/service/PolicyService.sol +538 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +77 -91
- package/contracts/instance/service/PoolServiceManager.sol +51 -0
- package/contracts/instance/service/ProductService.sol +167 -289
- package/contracts/instance/service/ProductServiceManager.sol +54 -0
- package/contracts/registry/ChainNft.sol +79 -36
- package/contracts/registry/IRegistry.sol +65 -24
- package/contracts/registry/IRegistryService.sol +65 -0
- package/contracts/registry/ITransferInterceptor.sol +6 -0
- package/contracts/registry/Registry.sol +358 -287
- package/contracts/registry/RegistryAccessManager.sol +216 -0
- package/contracts/registry/RegistryService.sol +262 -0
- package/contracts/registry/RegistryServiceManager.sol +62 -0
- package/contracts/registry/ReleaseManager.sol +332 -0
- package/contracts/registry/TokenRegistry.sol +112 -0
- package/contracts/shared/ContractDeployerLib.sol +72 -0
- package/contracts/shared/ERC165.sol +6 -2
- package/contracts/shared/INftOwnable.sol +22 -0
- package/contracts/shared/IRegisterable.sol +8 -17
- package/contracts/shared/IService.sol +16 -0
- package/contracts/shared/IVersionable.sol +55 -11
- package/contracts/shared/NftOwnable.sol +139 -0
- package/contracts/shared/ProxyManager.sol +94 -0
- package/contracts/shared/Registerable.sol +59 -59
- package/contracts/shared/Service.sol +60 -0
- package/contracts/shared/TokenHandler.sol +27 -0
- package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
- package/contracts/shared/Versionable.sol +113 -55
- package/contracts/test/TestFee.sol +2 -2
- package/contracts/test/TestRegisterable.sol +5 -6
- package/contracts/test/TestRoleId.sol +1 -1
- package/contracts/test/TestService.sol +7 -14
- package/contracts/types/DistributorType.sol +55 -0
- package/contracts/types/Fee.sol +10 -5
- package/contracts/types/Key32.sol +8 -3
- package/contracts/types/NftIdSet.sol +26 -24
- package/contracts/types/NumberId.sol +52 -0
- package/contracts/types/ObjectType.sol +51 -14
- package/contracts/types/Referral.sol +85 -0
- package/contracts/types/RiskId.sol +43 -0
- package/contracts/types/RoleId.sol +62 -10
- package/contracts/types/StateId.sol +5 -1
- package/contracts/types/Timestamp.sol +7 -3
- package/contracts/types/UFixed.sol +128 -12
- package/contracts/types/Version.sol +13 -1
- package/package.json +4 -3
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -174
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -174
- package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
- package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +0 -300
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -63
- package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +0 -300
- package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -296
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -296
- package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +0 -10
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +0 -4
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.json +0 -10
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.json +0 -10
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +0 -188
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +0 -188
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -261
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -261
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.json +0 -10
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -149
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -149
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -10
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -10
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -533
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -533
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -523
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
- package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
- package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
- package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
- package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -387
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -393
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
- package/contracts/components/BaseComponent.sol +0 -88
- package/contracts/components/IBaseComponent.sol +0 -19
- package/contracts/experiment/statemachine/README.md +0 -112
- package/contracts/instance/IInstanceLinked.sol +0 -8
- package/contracts/instance/base/ComponentServiceBase.sol +0 -42
- package/contracts/instance/base/IInstanceBase.sol +0 -14
- package/contracts/instance/base/IService.sol +0 -15
- package/contracts/instance/base/InstanceBase.sol +0 -80
- package/contracts/instance/base/ModuleBase.sol +0 -52
- package/contracts/instance/base/ServiceBase.sol +0 -37
- package/contracts/instance/module/access/Access.sol +0 -149
- package/contracts/instance/module/access/IAccess.sol +0 -53
- package/contracts/instance/module/bundle/BundleModule.sol +0 -136
- package/contracts/instance/module/bundle/IBundle.sol +0 -58
- package/contracts/instance/module/compensation/CompensationModule.sol +0 -8
- package/contracts/instance/module/compensation/ICompensation.sol +0 -10
- package/contracts/instance/module/component/ComponentModule.sol +0 -95
- package/contracts/instance/module/component/IComponent.sol +0 -53
- package/contracts/instance/module/policy/IPolicy.sol +0 -60
- package/contracts/instance/module/policy/PolicyModule.sol +0 -76
- package/contracts/instance/module/pool/IPoolModule.sol +0 -41
- package/contracts/instance/module/pool/PoolModule.sol +0 -87
- package/contracts/instance/module/risk/IRisk.sol +0 -10
- package/contracts/instance/module/risk/RiskModule.sol +0 -8
- package/contracts/instance/module/treasury/ITreasury.sol +0 -103
- package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
- package/contracts/instance/module/treasury/TreasuryModule.sol +0 -152
- package/contracts/instance/service/ComponentOwnerService.sol +0 -170
- package/contracts/instance/service/IComponentOwnerService.sol +0 -22
- package/contracts/registry/IChainNft.sol +0 -21
- package/contracts/registry/IRegistryLinked.sol +0 -8
- package/contracts/shared/IOwnable.sol +0 -6
- package/contracts/test/TestPool.sol +0 -22
- package/contracts/test/TestProduct.sol +0 -44
@@ -0,0 +1,715 @@
|
|
1
|
+
{
|
2
|
+
"_format": "hh-sol-artifact-1",
|
3
|
+
"contractName": "IBundleService",
|
4
|
+
"sourceName": "contracts/instance/service/IBundleService.sol",
|
5
|
+
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "address",
|
10
|
+
"name": "registry",
|
11
|
+
"type": "address"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"internalType": "NftId",
|
15
|
+
"name": "nftId",
|
16
|
+
"type": "uint96"
|
17
|
+
}
|
18
|
+
],
|
19
|
+
"name": "ErrorAlreadyLinked",
|
20
|
+
"type": "error"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"inputs": [
|
24
|
+
{
|
25
|
+
"internalType": "address",
|
26
|
+
"name": "contractAddress",
|
27
|
+
"type": "address"
|
28
|
+
}
|
29
|
+
],
|
30
|
+
"name": "ErrorContractNotRegistered",
|
31
|
+
"type": "error"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"inputs": [
|
35
|
+
{
|
36
|
+
"internalType": "address",
|
37
|
+
"name": "bundleOwner",
|
38
|
+
"type": "address"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"internalType": "address",
|
42
|
+
"name": "tokenHandlerAddress",
|
43
|
+
"type": "address"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"internalType": "uint256",
|
47
|
+
"name": "amount",
|
48
|
+
"type": "uint256"
|
49
|
+
}
|
50
|
+
],
|
51
|
+
"name": "ErrorIBundleServiceInsufficientAllowance",
|
52
|
+
"type": "error"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"inputs": [
|
56
|
+
{
|
57
|
+
"internalType": "address",
|
58
|
+
"name": "account",
|
59
|
+
"type": "address"
|
60
|
+
}
|
61
|
+
],
|
62
|
+
"name": "ErrorNotOwner",
|
63
|
+
"type": "error"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"inputs": [
|
67
|
+
{
|
68
|
+
"internalType": "address",
|
69
|
+
"name": "registryAddress",
|
70
|
+
"type": "address"
|
71
|
+
}
|
72
|
+
],
|
73
|
+
"name": "ErrorNotRegistry",
|
74
|
+
"type": "error"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"inputs": [],
|
78
|
+
"name": "ErrorRegistryAddressZero",
|
79
|
+
"type": "error"
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"inputs": [
|
83
|
+
{
|
84
|
+
"internalType": "address",
|
85
|
+
"name": "registry",
|
86
|
+
"type": "address"
|
87
|
+
}
|
88
|
+
],
|
89
|
+
"name": "ErrorRegistryAlreadyInitialized",
|
90
|
+
"type": "error"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"inputs": [],
|
94
|
+
"name": "ErrorRegistryNotInitialized",
|
95
|
+
"type": "error"
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"anonymous": false,
|
99
|
+
"inputs": [
|
100
|
+
{
|
101
|
+
"indexed": false,
|
102
|
+
"internalType": "Version",
|
103
|
+
"name": "version",
|
104
|
+
"type": "uint24"
|
105
|
+
},
|
106
|
+
{
|
107
|
+
"indexed": false,
|
108
|
+
"internalType": "address",
|
109
|
+
"name": "implementation",
|
110
|
+
"type": "address"
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"indexed": false,
|
114
|
+
"internalType": "address",
|
115
|
+
"name": "activatedBy",
|
116
|
+
"type": "address"
|
117
|
+
}
|
118
|
+
],
|
119
|
+
"name": "LogVersionableInitialized",
|
120
|
+
"type": "event"
|
121
|
+
},
|
122
|
+
{
|
123
|
+
"inputs": [
|
124
|
+
{
|
125
|
+
"internalType": "contract IInstance",
|
126
|
+
"name": "instance",
|
127
|
+
"type": "address"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"internalType": "NftId",
|
131
|
+
"name": "policyNftId",
|
132
|
+
"type": "uint96"
|
133
|
+
},
|
134
|
+
{
|
135
|
+
"internalType": "NftId",
|
136
|
+
"name": "bundleNftId",
|
137
|
+
"type": "uint96"
|
138
|
+
},
|
139
|
+
{
|
140
|
+
"internalType": "uint256",
|
141
|
+
"name": "collateralAmount",
|
142
|
+
"type": "uint256"
|
143
|
+
}
|
144
|
+
],
|
145
|
+
"name": "closePolicy",
|
146
|
+
"outputs": [],
|
147
|
+
"stateMutability": "nonpayable",
|
148
|
+
"type": "function"
|
149
|
+
},
|
150
|
+
{
|
151
|
+
"inputs": [
|
152
|
+
{
|
153
|
+
"internalType": "address",
|
154
|
+
"name": "owner",
|
155
|
+
"type": "address"
|
156
|
+
},
|
157
|
+
{
|
158
|
+
"components": [
|
159
|
+
{
|
160
|
+
"internalType": "UFixed",
|
161
|
+
"name": "fractionalFee",
|
162
|
+
"type": "uint256"
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"internalType": "uint256",
|
166
|
+
"name": "fixedFee",
|
167
|
+
"type": "uint256"
|
168
|
+
}
|
169
|
+
],
|
170
|
+
"internalType": "struct Fee",
|
171
|
+
"name": "fee",
|
172
|
+
"type": "tuple"
|
173
|
+
},
|
174
|
+
{
|
175
|
+
"internalType": "uint256",
|
176
|
+
"name": "amount",
|
177
|
+
"type": "uint256"
|
178
|
+
},
|
179
|
+
{
|
180
|
+
"internalType": "uint256",
|
181
|
+
"name": "lifetime",
|
182
|
+
"type": "uint256"
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"internalType": "bytes",
|
186
|
+
"name": "filter",
|
187
|
+
"type": "bytes"
|
188
|
+
}
|
189
|
+
],
|
190
|
+
"name": "createBundle",
|
191
|
+
"outputs": [
|
192
|
+
{
|
193
|
+
"internalType": "NftId",
|
194
|
+
"name": "bundleNftId",
|
195
|
+
"type": "uint96"
|
196
|
+
}
|
197
|
+
],
|
198
|
+
"stateMutability": "nonpayable",
|
199
|
+
"type": "function"
|
200
|
+
},
|
201
|
+
{
|
202
|
+
"inputs": [],
|
203
|
+
"name": "getDomain",
|
204
|
+
"outputs": [
|
205
|
+
{
|
206
|
+
"internalType": "ObjectType",
|
207
|
+
"name": "serviceDomain",
|
208
|
+
"type": "uint8"
|
209
|
+
}
|
210
|
+
],
|
211
|
+
"stateMutability": "pure",
|
212
|
+
"type": "function"
|
213
|
+
},
|
214
|
+
{
|
215
|
+
"inputs": [],
|
216
|
+
"name": "getInitialInfo",
|
217
|
+
"outputs": [
|
218
|
+
{
|
219
|
+
"components": [
|
220
|
+
{
|
221
|
+
"internalType": "NftId",
|
222
|
+
"name": "nftId",
|
223
|
+
"type": "uint96"
|
224
|
+
},
|
225
|
+
{
|
226
|
+
"internalType": "NftId",
|
227
|
+
"name": "parentNftId",
|
228
|
+
"type": "uint96"
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"internalType": "ObjectType",
|
232
|
+
"name": "objectType",
|
233
|
+
"type": "uint8"
|
234
|
+
},
|
235
|
+
{
|
236
|
+
"internalType": "bool",
|
237
|
+
"name": "isInterceptor",
|
238
|
+
"type": "bool"
|
239
|
+
},
|
240
|
+
{
|
241
|
+
"internalType": "address",
|
242
|
+
"name": "objectAddress",
|
243
|
+
"type": "address"
|
244
|
+
},
|
245
|
+
{
|
246
|
+
"internalType": "address",
|
247
|
+
"name": "initialOwner",
|
248
|
+
"type": "address"
|
249
|
+
},
|
250
|
+
{
|
251
|
+
"internalType": "bytes",
|
252
|
+
"name": "data",
|
253
|
+
"type": "bytes"
|
254
|
+
}
|
255
|
+
],
|
256
|
+
"internalType": "struct IRegistry.ObjectInfo",
|
257
|
+
"name": "",
|
258
|
+
"type": "tuple"
|
259
|
+
}
|
260
|
+
],
|
261
|
+
"stateMutability": "view",
|
262
|
+
"type": "function"
|
263
|
+
},
|
264
|
+
{
|
265
|
+
"inputs": [],
|
266
|
+
"name": "getInitializedVersion",
|
267
|
+
"outputs": [
|
268
|
+
{
|
269
|
+
"internalType": "uint64",
|
270
|
+
"name": "",
|
271
|
+
"type": "uint64"
|
272
|
+
}
|
273
|
+
],
|
274
|
+
"stateMutability": "view",
|
275
|
+
"type": "function"
|
276
|
+
},
|
277
|
+
{
|
278
|
+
"inputs": [],
|
279
|
+
"name": "getMajorVersion",
|
280
|
+
"outputs": [
|
281
|
+
{
|
282
|
+
"internalType": "VersionPart",
|
283
|
+
"name": "majorVersion",
|
284
|
+
"type": "uint8"
|
285
|
+
}
|
286
|
+
],
|
287
|
+
"stateMutability": "view",
|
288
|
+
"type": "function"
|
289
|
+
},
|
290
|
+
{
|
291
|
+
"inputs": [],
|
292
|
+
"name": "getNftId",
|
293
|
+
"outputs": [
|
294
|
+
{
|
295
|
+
"internalType": "NftId",
|
296
|
+
"name": "",
|
297
|
+
"type": "uint96"
|
298
|
+
}
|
299
|
+
],
|
300
|
+
"stateMutability": "view",
|
301
|
+
"type": "function"
|
302
|
+
},
|
303
|
+
{
|
304
|
+
"inputs": [],
|
305
|
+
"name": "getOwner",
|
306
|
+
"outputs": [
|
307
|
+
{
|
308
|
+
"internalType": "address",
|
309
|
+
"name": "",
|
310
|
+
"type": "address"
|
311
|
+
}
|
312
|
+
],
|
313
|
+
"stateMutability": "view",
|
314
|
+
"type": "function"
|
315
|
+
},
|
316
|
+
{
|
317
|
+
"inputs": [],
|
318
|
+
"name": "getRegistry",
|
319
|
+
"outputs": [
|
320
|
+
{
|
321
|
+
"internalType": "contract IRegistry",
|
322
|
+
"name": "",
|
323
|
+
"type": "address"
|
324
|
+
}
|
325
|
+
],
|
326
|
+
"stateMutability": "view",
|
327
|
+
"type": "function"
|
328
|
+
},
|
329
|
+
{
|
330
|
+
"inputs": [],
|
331
|
+
"name": "getVersion",
|
332
|
+
"outputs": [
|
333
|
+
{
|
334
|
+
"internalType": "Version",
|
335
|
+
"name": "",
|
336
|
+
"type": "uint24"
|
337
|
+
}
|
338
|
+
],
|
339
|
+
"stateMutability": "pure",
|
340
|
+
"type": "function"
|
341
|
+
},
|
342
|
+
{
|
343
|
+
"inputs": [
|
344
|
+
{
|
345
|
+
"internalType": "uint256",
|
346
|
+
"name": "index",
|
347
|
+
"type": "uint256"
|
348
|
+
}
|
349
|
+
],
|
350
|
+
"name": "getVersion",
|
351
|
+
"outputs": [
|
352
|
+
{
|
353
|
+
"internalType": "Version",
|
354
|
+
"name": "version",
|
355
|
+
"type": "uint24"
|
356
|
+
}
|
357
|
+
],
|
358
|
+
"stateMutability": "view",
|
359
|
+
"type": "function"
|
360
|
+
},
|
361
|
+
{
|
362
|
+
"inputs": [],
|
363
|
+
"name": "getVersionCount",
|
364
|
+
"outputs": [
|
365
|
+
{
|
366
|
+
"internalType": "uint256",
|
367
|
+
"name": "numberOfVersions",
|
368
|
+
"type": "uint256"
|
369
|
+
}
|
370
|
+
],
|
371
|
+
"stateMutability": "view",
|
372
|
+
"type": "function"
|
373
|
+
},
|
374
|
+
{
|
375
|
+
"inputs": [
|
376
|
+
{
|
377
|
+
"internalType": "Version",
|
378
|
+
"name": "version",
|
379
|
+
"type": "uint24"
|
380
|
+
}
|
381
|
+
],
|
382
|
+
"name": "getVersionInfo",
|
383
|
+
"outputs": [
|
384
|
+
{
|
385
|
+
"components": [
|
386
|
+
{
|
387
|
+
"internalType": "Version",
|
388
|
+
"name": "version",
|
389
|
+
"type": "uint24"
|
390
|
+
},
|
391
|
+
{
|
392
|
+
"internalType": "address",
|
393
|
+
"name": "implementation",
|
394
|
+
"type": "address"
|
395
|
+
},
|
396
|
+
{
|
397
|
+
"internalType": "address",
|
398
|
+
"name": "activatedBy",
|
399
|
+
"type": "address"
|
400
|
+
},
|
401
|
+
{
|
402
|
+
"internalType": "Timestamp",
|
403
|
+
"name": "activatedAt",
|
404
|
+
"type": "uint40"
|
405
|
+
},
|
406
|
+
{
|
407
|
+
"internalType": "Blocknumber",
|
408
|
+
"name": "activatedIn",
|
409
|
+
"type": "uint32"
|
410
|
+
}
|
411
|
+
],
|
412
|
+
"internalType": "struct IVersionable.VersionInfo",
|
413
|
+
"name": "versionInfo",
|
414
|
+
"type": "tuple"
|
415
|
+
}
|
416
|
+
],
|
417
|
+
"stateMutability": "view",
|
418
|
+
"type": "function"
|
419
|
+
},
|
420
|
+
{
|
421
|
+
"inputs": [
|
422
|
+
{
|
423
|
+
"internalType": "contract IInstance",
|
424
|
+
"name": "instance",
|
425
|
+
"type": "address"
|
426
|
+
},
|
427
|
+
{
|
428
|
+
"internalType": "NftId",
|
429
|
+
"name": "bundleNftId",
|
430
|
+
"type": "uint96"
|
431
|
+
},
|
432
|
+
{
|
433
|
+
"internalType": "uint256",
|
434
|
+
"name": "amount",
|
435
|
+
"type": "uint256"
|
436
|
+
}
|
437
|
+
],
|
438
|
+
"name": "increaseBalance",
|
439
|
+
"outputs": [],
|
440
|
+
"stateMutability": "nonpayable",
|
441
|
+
"type": "function"
|
442
|
+
},
|
443
|
+
{
|
444
|
+
"inputs": [
|
445
|
+
{
|
446
|
+
"internalType": "address",
|
447
|
+
"name": "implementation",
|
448
|
+
"type": "address"
|
449
|
+
},
|
450
|
+
{
|
451
|
+
"internalType": "address",
|
452
|
+
"name": "activatedBy",
|
453
|
+
"type": "address"
|
454
|
+
},
|
455
|
+
{
|
456
|
+
"internalType": "bytes",
|
457
|
+
"name": "activationData",
|
458
|
+
"type": "bytes"
|
459
|
+
}
|
460
|
+
],
|
461
|
+
"name": "initialize",
|
462
|
+
"outputs": [],
|
463
|
+
"stateMutability": "nonpayable",
|
464
|
+
"type": "function"
|
465
|
+
},
|
466
|
+
{
|
467
|
+
"inputs": [
|
468
|
+
{
|
469
|
+
"internalType": "Version",
|
470
|
+
"name": "version",
|
471
|
+
"type": "uint24"
|
472
|
+
}
|
473
|
+
],
|
474
|
+
"name": "isInitialized",
|
475
|
+
"outputs": [
|
476
|
+
{
|
477
|
+
"internalType": "bool",
|
478
|
+
"name": "",
|
479
|
+
"type": "bool"
|
480
|
+
}
|
481
|
+
],
|
482
|
+
"stateMutability": "view",
|
483
|
+
"type": "function"
|
484
|
+
},
|
485
|
+
{
|
486
|
+
"inputs": [],
|
487
|
+
"name": "linkToRegisteredNftId",
|
488
|
+
"outputs": [],
|
489
|
+
"stateMutability": "nonpayable",
|
490
|
+
"type": "function"
|
491
|
+
},
|
492
|
+
{
|
493
|
+
"inputs": [
|
494
|
+
{
|
495
|
+
"internalType": "NftId",
|
496
|
+
"name": "bundleNftId",
|
497
|
+
"type": "uint96"
|
498
|
+
}
|
499
|
+
],
|
500
|
+
"name": "lockBundle",
|
501
|
+
"outputs": [],
|
502
|
+
"stateMutability": "nonpayable",
|
503
|
+
"type": "function"
|
504
|
+
},
|
505
|
+
{
|
506
|
+
"inputs": [
|
507
|
+
{
|
508
|
+
"internalType": "NftId",
|
509
|
+
"name": "bundleNftId",
|
510
|
+
"type": "uint96"
|
511
|
+
},
|
512
|
+
{
|
513
|
+
"components": [
|
514
|
+
{
|
515
|
+
"internalType": "UFixed",
|
516
|
+
"name": "fractionalFee",
|
517
|
+
"type": "uint256"
|
518
|
+
},
|
519
|
+
{
|
520
|
+
"internalType": "uint256",
|
521
|
+
"name": "fixedFee",
|
522
|
+
"type": "uint256"
|
523
|
+
}
|
524
|
+
],
|
525
|
+
"internalType": "struct Fee",
|
526
|
+
"name": "fee",
|
527
|
+
"type": "tuple"
|
528
|
+
}
|
529
|
+
],
|
530
|
+
"name": "setBundleFee",
|
531
|
+
"outputs": [],
|
532
|
+
"stateMutability": "nonpayable",
|
533
|
+
"type": "function"
|
534
|
+
},
|
535
|
+
{
|
536
|
+
"inputs": [
|
537
|
+
{
|
538
|
+
"internalType": "bytes4",
|
539
|
+
"name": "interfaceId",
|
540
|
+
"type": "bytes4"
|
541
|
+
}
|
542
|
+
],
|
543
|
+
"name": "supportsInterface",
|
544
|
+
"outputs": [
|
545
|
+
{
|
546
|
+
"internalType": "bool",
|
547
|
+
"name": "",
|
548
|
+
"type": "bool"
|
549
|
+
}
|
550
|
+
],
|
551
|
+
"stateMutability": "view",
|
552
|
+
"type": "function"
|
553
|
+
},
|
554
|
+
{
|
555
|
+
"inputs": [
|
556
|
+
{
|
557
|
+
"internalType": "contract IInstance",
|
558
|
+
"name": "instanceNftId",
|
559
|
+
"type": "address"
|
560
|
+
},
|
561
|
+
{
|
562
|
+
"internalType": "NftId",
|
563
|
+
"name": "policyNftId",
|
564
|
+
"type": "uint96"
|
565
|
+
},
|
566
|
+
{
|
567
|
+
"internalType": "NftId",
|
568
|
+
"name": "bundleNftId",
|
569
|
+
"type": "uint96"
|
570
|
+
},
|
571
|
+
{
|
572
|
+
"internalType": "uint256",
|
573
|
+
"name": "collateralAmount",
|
574
|
+
"type": "uint256"
|
575
|
+
},
|
576
|
+
{
|
577
|
+
"internalType": "uint256",
|
578
|
+
"name": "netPremium",
|
579
|
+
"type": "uint256"
|
580
|
+
}
|
581
|
+
],
|
582
|
+
"name": "underwritePolicy",
|
583
|
+
"outputs": [],
|
584
|
+
"stateMutability": "nonpayable",
|
585
|
+
"type": "function"
|
586
|
+
},
|
587
|
+
{
|
588
|
+
"inputs": [
|
589
|
+
{
|
590
|
+
"internalType": "NftId",
|
591
|
+
"name": "bundleNftId",
|
592
|
+
"type": "uint96"
|
593
|
+
}
|
594
|
+
],
|
595
|
+
"name": "unlockBundle",
|
596
|
+
"outputs": [],
|
597
|
+
"stateMutability": "nonpayable",
|
598
|
+
"type": "function"
|
599
|
+
},
|
600
|
+
{
|
601
|
+
"inputs": [
|
602
|
+
{
|
603
|
+
"internalType": "NftId",
|
604
|
+
"name": "instanceNftId",
|
605
|
+
"type": "uint96"
|
606
|
+
},
|
607
|
+
{
|
608
|
+
"internalType": "NftId",
|
609
|
+
"name": "bundleNftId",
|
610
|
+
"type": "uint96"
|
611
|
+
},
|
612
|
+
{
|
613
|
+
"components": [
|
614
|
+
{
|
615
|
+
"internalType": "NftId",
|
616
|
+
"name": "poolNftId",
|
617
|
+
"type": "uint96"
|
618
|
+
},
|
619
|
+
{
|
620
|
+
"components": [
|
621
|
+
{
|
622
|
+
"internalType": "UFixed",
|
623
|
+
"name": "fractionalFee",
|
624
|
+
"type": "uint256"
|
625
|
+
},
|
626
|
+
{
|
627
|
+
"internalType": "uint256",
|
628
|
+
"name": "fixedFee",
|
629
|
+
"type": "uint256"
|
630
|
+
}
|
631
|
+
],
|
632
|
+
"internalType": "struct Fee",
|
633
|
+
"name": "fee",
|
634
|
+
"type": "tuple"
|
635
|
+
},
|
636
|
+
{
|
637
|
+
"internalType": "bytes",
|
638
|
+
"name": "filter",
|
639
|
+
"type": "bytes"
|
640
|
+
},
|
641
|
+
{
|
642
|
+
"internalType": "uint256",
|
643
|
+
"name": "capitalAmount",
|
644
|
+
"type": "uint256"
|
645
|
+
},
|
646
|
+
{
|
647
|
+
"internalType": "uint256",
|
648
|
+
"name": "lockedAmount",
|
649
|
+
"type": "uint256"
|
650
|
+
},
|
651
|
+
{
|
652
|
+
"internalType": "uint256",
|
653
|
+
"name": "balanceAmount",
|
654
|
+
"type": "uint256"
|
655
|
+
},
|
656
|
+
{
|
657
|
+
"internalType": "uint256",
|
658
|
+
"name": "lifetime",
|
659
|
+
"type": "uint256"
|
660
|
+
},
|
661
|
+
{
|
662
|
+
"internalType": "Timestamp",
|
663
|
+
"name": "expiredAt",
|
664
|
+
"type": "uint40"
|
665
|
+
},
|
666
|
+
{
|
667
|
+
"internalType": "Timestamp",
|
668
|
+
"name": "closedAt",
|
669
|
+
"type": "uint40"
|
670
|
+
}
|
671
|
+
],
|
672
|
+
"internalType": "struct IBundle.BundleInfo",
|
673
|
+
"name": "bundleInfo",
|
674
|
+
"type": "tuple"
|
675
|
+
},
|
676
|
+
{
|
677
|
+
"internalType": "StateId",
|
678
|
+
"name": "state",
|
679
|
+
"type": "uint8"
|
680
|
+
}
|
681
|
+
],
|
682
|
+
"name": "updateBundle",
|
683
|
+
"outputs": [],
|
684
|
+
"stateMutability": "nonpayable",
|
685
|
+
"type": "function"
|
686
|
+
},
|
687
|
+
{
|
688
|
+
"inputs": [
|
689
|
+
{
|
690
|
+
"internalType": "address",
|
691
|
+
"name": "implementation",
|
692
|
+
"type": "address"
|
693
|
+
},
|
694
|
+
{
|
695
|
+
"internalType": "address",
|
696
|
+
"name": "activatedBy",
|
697
|
+
"type": "address"
|
698
|
+
},
|
699
|
+
{
|
700
|
+
"internalType": "bytes",
|
701
|
+
"name": "upgradeData",
|
702
|
+
"type": "bytes"
|
703
|
+
}
|
704
|
+
],
|
705
|
+
"name": "upgrade",
|
706
|
+
"outputs": [],
|
707
|
+
"stateMutability": "nonpayable",
|
708
|
+
"type": "function"
|
709
|
+
}
|
710
|
+
],
|
711
|
+
"bytecode": "0x",
|
712
|
+
"deployedBytecode": "0x",
|
713
|
+
"linkReferences": {},
|
714
|
+
"deployedLinkReferences": {}
|
715
|
+
}
|