@etherisc/gif-next 0.0.2-d408403-475 → 0.0.2-d48ae55-246
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +303 -27
- 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 +1142 -114
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/{registry/IChainNft.sol/IChainNft.json → components/IComponent.sol/IComponent.json} +292 -224
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +639 -29
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +526 -119
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +512 -69
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +1033 -245
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +975 -129
- 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 +1430 -1050
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +674 -0
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +2060 -1122
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +984 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1386 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1260 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +610 -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 +754 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +27 -158
- 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 +37 -245
- 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 +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/{distribution/IDistribution.sol → IDistribution.sol}/IDistribution.json +1 -1
- 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/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 +896 -116
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +614 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +638 -0
- 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 +372 -41
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +784 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +188 -116
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +185 -266
- 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 +532 -118
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +574 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +490 -341
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +574 -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 +466 -34
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +1055 -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 +470 -103
- 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 +1407 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +601 -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 +531 -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 +41 -3
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
- package/artifacts/contracts/{components/IBaseComponent.sol/IBaseComponent.json → shared/INftOwnable.sol/INftOwnable.json} +62 -72
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/{instance/module/component/IComponent.sol/IComponentModule.json → shared/IPolicyHolder.sol/IPolicyHolder.json} +69 -57
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +125 -32
- 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 +4 -0
- package/artifacts/contracts/{instance/service/IComponentOwnerService.sol/IComponentOwnerService.json → shared/IService.sol/IService.json} +181 -111
- 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 +303 -0
- 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 +4 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +499 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +318 -24
- 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 +4 -0
- package/artifacts/contracts/shared/Service.sol/Service.json +627 -0
- 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 +333 -24
- 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 +436 -56
- 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 +4 -4
- 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 +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 +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 +236 -0
- package/contracts/components/Distribution.sol +230 -46
- package/contracts/components/IComponent.sol +50 -0
- package/contracts/components/IDistributionComponent.sol +58 -6
- package/contracts/components/IPoolComponent.sol +55 -39
- package/contracts/components/IProductComponent.sol +10 -9
- package/contracts/components/Pool.sol +170 -151
- package/contracts/components/Product.sol +118 -67
- 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 +78 -45
- package/contracts/instance/IInstanceService.sol +59 -0
- package/contracts/instance/Instance.sol +266 -59
- package/contracts/instance/InstanceAccessManager.sol +297 -0
- package/contracts/instance/InstanceReader.sol +293 -0
- package/contracts/instance/InstanceService.sol +442 -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 -14
- package/contracts/instance/base/ILifecycle.sol +3 -3
- package/contracts/instance/base/KeyValueStore.sol +49 -38
- package/contracts/instance/base/Lifecycle.sol +1 -1
- package/contracts/instance/module/IAccess.sol +47 -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 +47 -0
- package/contracts/instance/module/ITreasury.sol +23 -0
- 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 +257 -25
- package/contracts/instance/service/DistributionServiceManager.sol +51 -0
- package/contracts/instance/service/IApplicationService.sol +82 -0
- package/contracts/instance/service/IBundleService.sol +54 -0
- package/contracts/instance/service/IDistributionService.sol +54 -1
- package/contracts/instance/service/IPolicyService.sol +88 -0
- package/contracts/instance/service/IPoolService.sol +7 -24
- package/contracts/instance/service/IProductService.sol +9 -76
- package/contracts/instance/service/PolicyService.sol +524 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +76 -116
- package/contracts/instance/service/PoolServiceManager.sol +51 -0
- package/contracts/instance/service/ProductService.sol +158 -434
- package/contracts/instance/service/ProductServiceManager.sol +54 -0
- package/contracts/registry/ChainNft.sol +79 -36
- package/contracts/registry/IRegistry.sol +66 -24
- package/contracts/registry/IRegistryService.sol +67 -0
- package/contracts/registry/ITransferInterceptor.sol +6 -0
- package/contracts/registry/Registry.sol +366 -284
- package/contracts/registry/RegistryAccessManager.sol +216 -0
- package/contracts/registry/RegistryService.sol +277 -0
- package/contracts/registry/RegistryServiceManager.sol +62 -0
- package/contracts/registry/ReleaseManager.sol +331 -0
- package/contracts/registry/TokenRegistry.sol +113 -0
- package/contracts/shared/ContractDeployerLib.sol +72 -0
- package/contracts/shared/ERC165.sol +13 -8
- package/contracts/shared/INftOwnable.sol +28 -0
- package/contracts/shared/IPolicyHolder.sol +26 -0
- package/contracts/shared/IRegisterable.sol +10 -19
- package/contracts/shared/IRegistryLinked.sol +15 -0
- package/contracts/shared/IService.sol +16 -0
- package/contracts/shared/IVersionable.sol +55 -11
- package/contracts/shared/NftOwnable.sol +190 -0
- package/contracts/shared/PolicyHolder.sol +81 -0
- package/contracts/shared/ProxyManager.sol +95 -0
- package/contracts/shared/Registerable.sol +58 -63
- package/contracts/shared/RegistryLinked.sol +64 -0
- 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 -54
- 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 +3 -3
- 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 +40 -15
- package/contracts/types/Referral.sol +85 -0
- package/contracts/types/RoleId.sol +61 -9
- 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 +6 -5
- 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/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 -113
- package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IService.sol/IService.json +0 -300
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +0 -376
- 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/IAccess.json +0 -10
- 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 -297
- 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 -297
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +0 -117
- 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/distribution/DistributionModule.sol/DistributionModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +0 -10
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +0 -4
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.json +0 -10
- 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 -284
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -284
- 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 -144
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -144
- 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 -113
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -131
- 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 -511
- 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 -511
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -531
- 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/TestDistribution.sol/TestDistribution.dbg.json +0 -4
- package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +0 -405
- package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
- package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -578
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -575
- package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +0 -4
- package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +0 -99
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
- package/contracts/components/BaseComponent.sol +0 -94
- 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 -22
- package/contracts/instance/base/IService.sol +0 -15
- package/contracts/instance/base/InstanceBase.sol +0 -91
- package/contracts/instance/base/ModuleBase.sol +0 -57
- 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 -134
- package/contracts/instance/module/bundle/IBundle.sol +0 -53
- package/contracts/instance/module/component/ComponentModule.sol +0 -70
- package/contracts/instance/module/component/IComponent.sol +0 -28
- package/contracts/instance/module/distribution/DistributionModule.sol +0 -17
- package/contracts/instance/module/distribution/IDistribution.sol +0 -10
- package/contracts/instance/module/policy/IPolicy.sol +0 -63
- package/contracts/instance/module/policy/PolicyModule.sol +0 -91
- package/contracts/instance/module/pool/IPoolModule.sol +0 -40
- package/contracts/instance/module/pool/PoolModule.sol +0 -90
- package/contracts/instance/module/risk/IRisk.sol +0 -26
- package/contracts/instance/module/risk/RiskModule.sol +0 -62
- package/contracts/instance/module/treasury/ITreasury.sol +0 -82
- package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
- package/contracts/instance/module/treasury/TreasuryModule.sol +0 -138
- package/contracts/instance/service/ComponentOwnerService.sol +0 -157
- 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/TestDistribution.sol +0 -21
- package/contracts/test/TestPool.sol +0 -25
- package/contracts/test/TestProduct.sol +0 -72
- package/contracts/types/ReferralId.sol +0 -48
@@ -3,6 +3,66 @@
|
|
3
3
|
"contractName": "Product",
|
4
4
|
"sourceName": "contracts/components/Product.sol",
|
5
5
|
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "address",
|
10
|
+
"name": "authority",
|
11
|
+
"type": "address"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"name": "AccessManagedInvalidAuthority",
|
15
|
+
"type": "error"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"inputs": [
|
19
|
+
{
|
20
|
+
"internalType": "address",
|
21
|
+
"name": "caller",
|
22
|
+
"type": "address"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"internalType": "uint32",
|
26
|
+
"name": "delay",
|
27
|
+
"type": "uint32"
|
28
|
+
}
|
29
|
+
],
|
30
|
+
"name": "AccessManagedRequiredDelay",
|
31
|
+
"type": "error"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"inputs": [
|
35
|
+
{
|
36
|
+
"internalType": "address",
|
37
|
+
"name": "caller",
|
38
|
+
"type": "address"
|
39
|
+
}
|
40
|
+
],
|
41
|
+
"name": "AccessManagedUnauthorized",
|
42
|
+
"type": "error"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"inputs": [
|
46
|
+
{
|
47
|
+
"internalType": "address",
|
48
|
+
"name": "target",
|
49
|
+
"type": "address"
|
50
|
+
}
|
51
|
+
],
|
52
|
+
"name": "AddressEmptyCode",
|
53
|
+
"type": "error"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"inputs": [
|
57
|
+
{
|
58
|
+
"internalType": "address",
|
59
|
+
"name": "account",
|
60
|
+
"type": "address"
|
61
|
+
}
|
62
|
+
],
|
63
|
+
"name": "AddressInsufficientBalance",
|
64
|
+
"type": "error"
|
65
|
+
},
|
6
66
|
{
|
7
67
|
"inputs": [
|
8
68
|
{
|
@@ -12,61 +72,338 @@
|
|
12
72
|
},
|
13
73
|
{
|
14
74
|
"internalType": "NftId",
|
15
|
-
"name": "
|
75
|
+
"name": "nftId",
|
76
|
+
"type": "uint96"
|
77
|
+
}
|
78
|
+
],
|
79
|
+
"name": "ErrorAlreadyLinked",
|
80
|
+
"type": "error"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"inputs": [
|
84
|
+
{
|
85
|
+
"internalType": "address",
|
86
|
+
"name": "caller",
|
87
|
+
"type": "address"
|
88
|
+
}
|
89
|
+
],
|
90
|
+
"name": "ErrorComponentNotChainNft",
|
91
|
+
"type": "error"
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"inputs": [
|
95
|
+
{
|
96
|
+
"internalType": "NftId",
|
97
|
+
"name": "instanceNftId",
|
16
98
|
"type": "uint96"
|
17
99
|
},
|
18
100
|
{
|
19
101
|
"internalType": "address",
|
20
|
-
"name": "
|
102
|
+
"name": "instance",
|
103
|
+
"type": "address"
|
104
|
+
}
|
105
|
+
],
|
106
|
+
"name": "ErrorComponentNotInstance",
|
107
|
+
"type": "error"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
"inputs": [
|
111
|
+
{
|
112
|
+
"internalType": "address",
|
113
|
+
"name": "caller",
|
114
|
+
"type": "address"
|
115
|
+
}
|
116
|
+
],
|
117
|
+
"name": "ErrorComponentNotProductService",
|
118
|
+
"type": "error"
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"inputs": [],
|
122
|
+
"name": "ErrorComponentProductNftAlreadySet",
|
123
|
+
"type": "error"
|
124
|
+
},
|
125
|
+
{
|
126
|
+
"inputs": [
|
127
|
+
{
|
128
|
+
"internalType": "address",
|
129
|
+
"name": "caller",
|
21
130
|
"type": "address"
|
22
131
|
},
|
132
|
+
{
|
133
|
+
"internalType": "uint64",
|
134
|
+
"name": "requiredRoleIdNum",
|
135
|
+
"type": "uint64"
|
136
|
+
}
|
137
|
+
],
|
138
|
+
"name": "ErrorComponentUnauthorized",
|
139
|
+
"type": "error"
|
140
|
+
},
|
141
|
+
{
|
142
|
+
"inputs": [
|
23
143
|
{
|
24
144
|
"internalType": "address",
|
25
|
-
"name": "
|
145
|
+
"name": "newWallet",
|
146
|
+
"type": "address"
|
147
|
+
}
|
148
|
+
],
|
149
|
+
"name": "ErrorComponentWalletAddressIsSameAsCurrent",
|
150
|
+
"type": "error"
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"inputs": [],
|
154
|
+
"name": "ErrorComponentWalletAddressZero",
|
155
|
+
"type": "error"
|
156
|
+
},
|
157
|
+
{
|
158
|
+
"inputs": [
|
159
|
+
{
|
160
|
+
"internalType": "address",
|
161
|
+
"name": "oldWallet",
|
26
162
|
"type": "address"
|
27
163
|
},
|
28
164
|
{
|
29
165
|
"internalType": "address",
|
30
|
-
"name": "
|
166
|
+
"name": "newWallet",
|
31
167
|
"type": "address"
|
32
168
|
},
|
33
169
|
{
|
34
|
-
"
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
170
|
+
"internalType": "uint256",
|
171
|
+
"name": "allowance",
|
172
|
+
"type": "uint256"
|
173
|
+
},
|
174
|
+
{
|
175
|
+
"internalType": "uint256",
|
176
|
+
"name": "balance",
|
177
|
+
"type": "uint256"
|
178
|
+
}
|
179
|
+
],
|
180
|
+
"name": "ErrorComponentWalletAllowanceTooSmall",
|
181
|
+
"type": "error"
|
182
|
+
},
|
183
|
+
{
|
184
|
+
"inputs": [
|
185
|
+
{
|
186
|
+
"internalType": "address",
|
187
|
+
"name": "contractAddress",
|
188
|
+
"type": "address"
|
189
|
+
}
|
190
|
+
],
|
191
|
+
"name": "ErrorContractNotRegistered",
|
192
|
+
"type": "error"
|
193
|
+
},
|
194
|
+
{
|
195
|
+
"inputs": [],
|
196
|
+
"name": "ErrorInitialOwnerZero",
|
197
|
+
"type": "error"
|
198
|
+
},
|
199
|
+
{
|
200
|
+
"inputs": [
|
201
|
+
{
|
202
|
+
"internalType": "address",
|
203
|
+
"name": "account",
|
204
|
+
"type": "address"
|
205
|
+
}
|
206
|
+
],
|
207
|
+
"name": "ErrorNotOwner",
|
208
|
+
"type": "error"
|
209
|
+
},
|
210
|
+
{
|
211
|
+
"inputs": [
|
212
|
+
{
|
213
|
+
"internalType": "address",
|
214
|
+
"name": "registryAddress",
|
215
|
+
"type": "address"
|
216
|
+
}
|
217
|
+
],
|
218
|
+
"name": "ErrorNotRegistry",
|
219
|
+
"type": "error"
|
220
|
+
},
|
221
|
+
{
|
222
|
+
"inputs": [
|
223
|
+
{
|
224
|
+
"internalType": "address",
|
225
|
+
"name": "registryAddress",
|
226
|
+
"type": "address"
|
227
|
+
}
|
228
|
+
],
|
229
|
+
"name": "ErrorRegisterableNotRegistry",
|
230
|
+
"type": "error"
|
231
|
+
},
|
232
|
+
{
|
233
|
+
"inputs": [],
|
234
|
+
"name": "ErrorRegistryAddressZero",
|
235
|
+
"type": "error"
|
236
|
+
},
|
237
|
+
{
|
238
|
+
"inputs": [
|
239
|
+
{
|
240
|
+
"internalType": "address",
|
241
|
+
"name": "registry",
|
242
|
+
"type": "address"
|
243
|
+
}
|
244
|
+
],
|
245
|
+
"name": "ErrorRegistryAlreadyInitialized",
|
246
|
+
"type": "error"
|
247
|
+
},
|
248
|
+
{
|
249
|
+
"inputs": [],
|
250
|
+
"name": "ErrorRegistryNotInitialized",
|
251
|
+
"type": "error"
|
252
|
+
},
|
253
|
+
{
|
254
|
+
"inputs": [],
|
255
|
+
"name": "FailedInnerCall",
|
256
|
+
"type": "error"
|
257
|
+
},
|
258
|
+
{
|
259
|
+
"inputs": [],
|
260
|
+
"name": "InvalidInitialization",
|
261
|
+
"type": "error"
|
262
|
+
},
|
263
|
+
{
|
264
|
+
"inputs": [],
|
265
|
+
"name": "NotInitializing",
|
266
|
+
"type": "error"
|
267
|
+
},
|
268
|
+
{
|
269
|
+
"inputs": [
|
270
|
+
{
|
271
|
+
"internalType": "address",
|
272
|
+
"name": "token",
|
273
|
+
"type": "address"
|
274
|
+
}
|
275
|
+
],
|
276
|
+
"name": "SafeERC20FailedOperation",
|
277
|
+
"type": "error"
|
278
|
+
},
|
279
|
+
{
|
280
|
+
"anonymous": false,
|
281
|
+
"inputs": [
|
282
|
+
{
|
283
|
+
"indexed": false,
|
284
|
+
"internalType": "address",
|
285
|
+
"name": "authority",
|
286
|
+
"type": "address"
|
287
|
+
}
|
288
|
+
],
|
289
|
+
"name": "AuthorityUpdated",
|
290
|
+
"type": "event"
|
291
|
+
},
|
292
|
+
{
|
293
|
+
"anonymous": false,
|
294
|
+
"inputs": [
|
295
|
+
{
|
296
|
+
"indexed": false,
|
297
|
+
"internalType": "uint64",
|
298
|
+
"name": "version",
|
299
|
+
"type": "uint64"
|
300
|
+
}
|
301
|
+
],
|
302
|
+
"name": "Initialized",
|
303
|
+
"type": "event"
|
304
|
+
},
|
305
|
+
{
|
306
|
+
"anonymous": false,
|
307
|
+
"inputs": [
|
308
|
+
{
|
309
|
+
"indexed": false,
|
310
|
+
"internalType": "address",
|
311
|
+
"name": "newWallet",
|
312
|
+
"type": "address"
|
313
|
+
}
|
314
|
+
],
|
315
|
+
"name": "LogComponentWalletAddressChanged",
|
316
|
+
"type": "event"
|
317
|
+
},
|
318
|
+
{
|
319
|
+
"anonymous": false,
|
320
|
+
"inputs": [
|
321
|
+
{
|
322
|
+
"indexed": false,
|
323
|
+
"internalType": "address",
|
324
|
+
"name": "from",
|
325
|
+
"type": "address"
|
326
|
+
},
|
327
|
+
{
|
328
|
+
"indexed": false,
|
329
|
+
"internalType": "address",
|
330
|
+
"name": "to",
|
331
|
+
"type": "address"
|
49
332
|
},
|
50
333
|
{
|
51
|
-
"
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
"
|
334
|
+
"indexed": false,
|
335
|
+
"internalType": "uint256",
|
336
|
+
"name": "amount",
|
337
|
+
"type": "uint256"
|
338
|
+
}
|
339
|
+
],
|
340
|
+
"name": "LogComponentWalletTokensTransferred",
|
341
|
+
"type": "event"
|
342
|
+
},
|
343
|
+
{
|
344
|
+
"inputs": [],
|
345
|
+
"name": "CONTRACT_LOCATION_V1",
|
346
|
+
"outputs": [
|
347
|
+
{
|
348
|
+
"internalType": "bytes32",
|
349
|
+
"name": "",
|
350
|
+
"type": "bytes32"
|
351
|
+
}
|
352
|
+
],
|
353
|
+
"stateMutability": "view",
|
354
|
+
"type": "function"
|
355
|
+
},
|
356
|
+
{
|
357
|
+
"inputs": [],
|
358
|
+
"name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
|
359
|
+
"outputs": [
|
360
|
+
{
|
361
|
+
"internalType": "bytes32",
|
362
|
+
"name": "",
|
363
|
+
"type": "bytes32"
|
364
|
+
}
|
365
|
+
],
|
366
|
+
"stateMutability": "view",
|
367
|
+
"type": "function"
|
368
|
+
},
|
369
|
+
{
|
370
|
+
"inputs": [],
|
371
|
+
"name": "PRODUCT_STORAGE_LOCATION_V1",
|
372
|
+
"outputs": [
|
373
|
+
{
|
374
|
+
"internalType": "bytes32",
|
375
|
+
"name": "",
|
376
|
+
"type": "bytes32"
|
377
|
+
}
|
378
|
+
],
|
379
|
+
"stateMutability": "view",
|
380
|
+
"type": "function"
|
381
|
+
},
|
382
|
+
{
|
383
|
+
"inputs": [],
|
384
|
+
"name": "REGISTERABLE_LOCATION_V1",
|
385
|
+
"outputs": [
|
386
|
+
{
|
387
|
+
"internalType": "bytes32",
|
388
|
+
"name": "",
|
389
|
+
"type": "bytes32"
|
66
390
|
}
|
67
391
|
],
|
68
|
-
"stateMutability": "
|
69
|
-
"type": "
|
392
|
+
"stateMutability": "view",
|
393
|
+
"type": "function"
|
394
|
+
},
|
395
|
+
{
|
396
|
+
"inputs": [],
|
397
|
+
"name": "authority",
|
398
|
+
"outputs": [
|
399
|
+
{
|
400
|
+
"internalType": "address",
|
401
|
+
"name": "",
|
402
|
+
"type": "address"
|
403
|
+
}
|
404
|
+
],
|
405
|
+
"stateMutability": "view",
|
406
|
+
"type": "function"
|
70
407
|
},
|
71
408
|
{
|
72
409
|
"inputs": [
|
@@ -124,15 +461,15 @@
|
|
124
461
|
"name": "applicationData",
|
125
462
|
"type": "bytes"
|
126
463
|
},
|
127
|
-
{
|
128
|
-
"internalType": "ReferralId",
|
129
|
-
"name": "referralId",
|
130
|
-
"type": "bytes8"
|
131
|
-
},
|
132
464
|
{
|
133
465
|
"internalType": "NftId",
|
134
466
|
"name": "bundleNftId",
|
135
467
|
"type": "uint96"
|
468
|
+
},
|
469
|
+
{
|
470
|
+
"internalType": "ReferralId",
|
471
|
+
"name": "referralId",
|
472
|
+
"type": "bytes8"
|
136
473
|
}
|
137
474
|
],
|
138
475
|
"name": "calculatePremium",
|
@@ -148,12 +485,12 @@
|
|
148
485
|
},
|
149
486
|
{
|
150
487
|
"inputs": [],
|
151
|
-
"name": "
|
488
|
+
"name": "getDistributionNftId",
|
152
489
|
"outputs": [
|
153
490
|
{
|
154
|
-
"internalType": "
|
155
|
-
"name": "
|
156
|
-
"type": "
|
491
|
+
"internalType": "NftId",
|
492
|
+
"name": "distributionNftId",
|
493
|
+
"type": "uint96"
|
157
494
|
}
|
158
495
|
],
|
159
496
|
"stateMutability": "view",
|
@@ -161,11 +498,152 @@
|
|
161
498
|
},
|
162
499
|
{
|
163
500
|
"inputs": [],
|
164
|
-
"name": "
|
501
|
+
"name": "getInitialInfo",
|
502
|
+
"outputs": [
|
503
|
+
{
|
504
|
+
"components": [
|
505
|
+
{
|
506
|
+
"internalType": "NftId",
|
507
|
+
"name": "nftId",
|
508
|
+
"type": "uint96"
|
509
|
+
},
|
510
|
+
{
|
511
|
+
"internalType": "NftId",
|
512
|
+
"name": "parentNftId",
|
513
|
+
"type": "uint96"
|
514
|
+
},
|
515
|
+
{
|
516
|
+
"internalType": "ObjectType",
|
517
|
+
"name": "objectType",
|
518
|
+
"type": "uint8"
|
519
|
+
},
|
520
|
+
{
|
521
|
+
"internalType": "bool",
|
522
|
+
"name": "isInterceptor",
|
523
|
+
"type": "bool"
|
524
|
+
},
|
525
|
+
{
|
526
|
+
"internalType": "address",
|
527
|
+
"name": "objectAddress",
|
528
|
+
"type": "address"
|
529
|
+
},
|
530
|
+
{
|
531
|
+
"internalType": "address",
|
532
|
+
"name": "initialOwner",
|
533
|
+
"type": "address"
|
534
|
+
},
|
535
|
+
{
|
536
|
+
"internalType": "bytes",
|
537
|
+
"name": "data",
|
538
|
+
"type": "bytes"
|
539
|
+
}
|
540
|
+
],
|
541
|
+
"internalType": "struct IRegistry.ObjectInfo",
|
542
|
+
"name": "info",
|
543
|
+
"type": "tuple"
|
544
|
+
}
|
545
|
+
],
|
546
|
+
"stateMutability": "view",
|
547
|
+
"type": "function"
|
548
|
+
},
|
549
|
+
{
|
550
|
+
"inputs": [],
|
551
|
+
"name": "getInitialOwner",
|
552
|
+
"outputs": [
|
553
|
+
{
|
554
|
+
"internalType": "address",
|
555
|
+
"name": "",
|
556
|
+
"type": "address"
|
557
|
+
}
|
558
|
+
],
|
559
|
+
"stateMutability": "view",
|
560
|
+
"type": "function"
|
561
|
+
},
|
562
|
+
{
|
563
|
+
"inputs": [],
|
564
|
+
"name": "getInstance",
|
565
|
+
"outputs": [
|
566
|
+
{
|
567
|
+
"internalType": "contract IInstance",
|
568
|
+
"name": "instance",
|
569
|
+
"type": "address"
|
570
|
+
}
|
571
|
+
],
|
572
|
+
"stateMutability": "view",
|
573
|
+
"type": "function"
|
574
|
+
},
|
575
|
+
{
|
576
|
+
"inputs": [],
|
577
|
+
"name": "getInstanceReader",
|
578
|
+
"outputs": [
|
579
|
+
{
|
580
|
+
"internalType": "contract InstanceReader",
|
581
|
+
"name": "reader",
|
582
|
+
"type": "address"
|
583
|
+
}
|
584
|
+
],
|
585
|
+
"stateMutability": "view",
|
586
|
+
"type": "function"
|
587
|
+
},
|
588
|
+
{
|
589
|
+
"inputs": [],
|
590
|
+
"name": "getInstanceService",
|
591
|
+
"outputs": [
|
592
|
+
{
|
593
|
+
"internalType": "contract IInstanceService",
|
594
|
+
"name": "",
|
595
|
+
"type": "address"
|
596
|
+
}
|
597
|
+
],
|
598
|
+
"stateMutability": "view",
|
599
|
+
"type": "function"
|
600
|
+
},
|
601
|
+
{
|
602
|
+
"inputs": [],
|
603
|
+
"name": "getName",
|
604
|
+
"outputs": [
|
605
|
+
{
|
606
|
+
"internalType": "string",
|
607
|
+
"name": "name",
|
608
|
+
"type": "string"
|
609
|
+
}
|
610
|
+
],
|
611
|
+
"stateMutability": "view",
|
612
|
+
"type": "function"
|
613
|
+
},
|
614
|
+
{
|
615
|
+
"inputs": [],
|
616
|
+
"name": "getNftId",
|
165
617
|
"outputs": [
|
166
618
|
{
|
167
619
|
"internalType": "NftId",
|
168
|
-
"name": "
|
620
|
+
"name": "",
|
621
|
+
"type": "uint96"
|
622
|
+
}
|
623
|
+
],
|
624
|
+
"stateMutability": "view",
|
625
|
+
"type": "function"
|
626
|
+
},
|
627
|
+
{
|
628
|
+
"inputs": [],
|
629
|
+
"name": "getOwner",
|
630
|
+
"outputs": [
|
631
|
+
{
|
632
|
+
"internalType": "address",
|
633
|
+
"name": "",
|
634
|
+
"type": "address"
|
635
|
+
}
|
636
|
+
],
|
637
|
+
"stateMutability": "view",
|
638
|
+
"type": "function"
|
639
|
+
},
|
640
|
+
{
|
641
|
+
"inputs": [],
|
642
|
+
"name": "getPoolNftId",
|
643
|
+
"outputs": [
|
644
|
+
{
|
645
|
+
"internalType": "NftId",
|
646
|
+
"name": "poolNftId",
|
169
647
|
"type": "uint96"
|
170
648
|
}
|
171
649
|
],
|
@@ -174,11 +652,223 @@
|
|
174
652
|
},
|
175
653
|
{
|
176
654
|
"inputs": [],
|
177
|
-
"name": "
|
655
|
+
"name": "getProductNftId",
|
656
|
+
"outputs": [
|
657
|
+
{
|
658
|
+
"internalType": "NftId",
|
659
|
+
"name": "productNftId",
|
660
|
+
"type": "uint96"
|
661
|
+
}
|
662
|
+
],
|
663
|
+
"stateMutability": "view",
|
664
|
+
"type": "function"
|
665
|
+
},
|
666
|
+
{
|
667
|
+
"inputs": [],
|
668
|
+
"name": "getProductService",
|
669
|
+
"outputs": [
|
670
|
+
{
|
671
|
+
"internalType": "contract IProductService",
|
672
|
+
"name": "",
|
673
|
+
"type": "address"
|
674
|
+
}
|
675
|
+
],
|
676
|
+
"stateMutability": "view",
|
677
|
+
"type": "function"
|
678
|
+
},
|
679
|
+
{
|
680
|
+
"inputs": [],
|
681
|
+
"name": "getRegistry",
|
682
|
+
"outputs": [
|
683
|
+
{
|
684
|
+
"internalType": "contract IRegistry",
|
685
|
+
"name": "",
|
686
|
+
"type": "address"
|
687
|
+
}
|
688
|
+
],
|
689
|
+
"stateMutability": "view",
|
690
|
+
"type": "function"
|
691
|
+
},
|
692
|
+
{
|
693
|
+
"inputs": [],
|
694
|
+
"name": "getRegistryAddress",
|
695
|
+
"outputs": [
|
696
|
+
{
|
697
|
+
"internalType": "address",
|
698
|
+
"name": "",
|
699
|
+
"type": "address"
|
700
|
+
}
|
701
|
+
],
|
702
|
+
"stateMutability": "view",
|
703
|
+
"type": "function"
|
704
|
+
},
|
705
|
+
{
|
706
|
+
"inputs": [],
|
707
|
+
"name": "getSetupInfo",
|
708
|
+
"outputs": [
|
709
|
+
{
|
710
|
+
"components": [
|
711
|
+
{
|
712
|
+
"internalType": "contract IERC20Metadata",
|
713
|
+
"name": "token",
|
714
|
+
"type": "address"
|
715
|
+
},
|
716
|
+
{
|
717
|
+
"internalType": "contract TokenHandler",
|
718
|
+
"name": "tokenHandler",
|
719
|
+
"type": "address"
|
720
|
+
},
|
721
|
+
{
|
722
|
+
"internalType": "NftId",
|
723
|
+
"name": "distributionNftId",
|
724
|
+
"type": "uint96"
|
725
|
+
},
|
726
|
+
{
|
727
|
+
"internalType": "NftId",
|
728
|
+
"name": "poolNftId",
|
729
|
+
"type": "uint96"
|
730
|
+
},
|
731
|
+
{
|
732
|
+
"components": [
|
733
|
+
{
|
734
|
+
"internalType": "UFixed",
|
735
|
+
"name": "fractionalFee",
|
736
|
+
"type": "uint256"
|
737
|
+
},
|
738
|
+
{
|
739
|
+
"internalType": "uint256",
|
740
|
+
"name": "fixedFee",
|
741
|
+
"type": "uint256"
|
742
|
+
}
|
743
|
+
],
|
744
|
+
"internalType": "struct Fee",
|
745
|
+
"name": "distributionFee",
|
746
|
+
"type": "tuple"
|
747
|
+
},
|
748
|
+
{
|
749
|
+
"components": [
|
750
|
+
{
|
751
|
+
"internalType": "UFixed",
|
752
|
+
"name": "fractionalFee",
|
753
|
+
"type": "uint256"
|
754
|
+
},
|
755
|
+
{
|
756
|
+
"internalType": "uint256",
|
757
|
+
"name": "fixedFee",
|
758
|
+
"type": "uint256"
|
759
|
+
}
|
760
|
+
],
|
761
|
+
"internalType": "struct Fee",
|
762
|
+
"name": "productFee",
|
763
|
+
"type": "tuple"
|
764
|
+
},
|
765
|
+
{
|
766
|
+
"components": [
|
767
|
+
{
|
768
|
+
"internalType": "UFixed",
|
769
|
+
"name": "fractionalFee",
|
770
|
+
"type": "uint256"
|
771
|
+
},
|
772
|
+
{
|
773
|
+
"internalType": "uint256",
|
774
|
+
"name": "fixedFee",
|
775
|
+
"type": "uint256"
|
776
|
+
}
|
777
|
+
],
|
778
|
+
"internalType": "struct Fee",
|
779
|
+
"name": "processingFee",
|
780
|
+
"type": "tuple"
|
781
|
+
},
|
782
|
+
{
|
783
|
+
"components": [
|
784
|
+
{
|
785
|
+
"internalType": "UFixed",
|
786
|
+
"name": "fractionalFee",
|
787
|
+
"type": "uint256"
|
788
|
+
},
|
789
|
+
{
|
790
|
+
"internalType": "uint256",
|
791
|
+
"name": "fixedFee",
|
792
|
+
"type": "uint256"
|
793
|
+
}
|
794
|
+
],
|
795
|
+
"internalType": "struct Fee",
|
796
|
+
"name": "poolFee",
|
797
|
+
"type": "tuple"
|
798
|
+
},
|
799
|
+
{
|
800
|
+
"components": [
|
801
|
+
{
|
802
|
+
"internalType": "UFixed",
|
803
|
+
"name": "fractionalFee",
|
804
|
+
"type": "uint256"
|
805
|
+
},
|
806
|
+
{
|
807
|
+
"internalType": "uint256",
|
808
|
+
"name": "fixedFee",
|
809
|
+
"type": "uint256"
|
810
|
+
}
|
811
|
+
],
|
812
|
+
"internalType": "struct Fee",
|
813
|
+
"name": "stakingFee",
|
814
|
+
"type": "tuple"
|
815
|
+
},
|
816
|
+
{
|
817
|
+
"components": [
|
818
|
+
{
|
819
|
+
"internalType": "UFixed",
|
820
|
+
"name": "fractionalFee",
|
821
|
+
"type": "uint256"
|
822
|
+
},
|
823
|
+
{
|
824
|
+
"internalType": "uint256",
|
825
|
+
"name": "fixedFee",
|
826
|
+
"type": "uint256"
|
827
|
+
}
|
828
|
+
],
|
829
|
+
"internalType": "struct Fee",
|
830
|
+
"name": "performanceFee",
|
831
|
+
"type": "tuple"
|
832
|
+
},
|
833
|
+
{
|
834
|
+
"internalType": "bool",
|
835
|
+
"name": "isIntercepting",
|
836
|
+
"type": "bool"
|
837
|
+
},
|
838
|
+
{
|
839
|
+
"internalType": "address",
|
840
|
+
"name": "wallet",
|
841
|
+
"type": "address"
|
842
|
+
}
|
843
|
+
],
|
844
|
+
"internalType": "struct ISetup.ProductSetupInfo",
|
845
|
+
"name": "setupInfo",
|
846
|
+
"type": "tuple"
|
847
|
+
}
|
848
|
+
],
|
849
|
+
"stateMutability": "view",
|
850
|
+
"type": "function"
|
851
|
+
},
|
852
|
+
{
|
853
|
+
"inputs": [],
|
854
|
+
"name": "getToken",
|
855
|
+
"outputs": [
|
856
|
+
{
|
857
|
+
"internalType": "contract IERC20Metadata",
|
858
|
+
"name": "token",
|
859
|
+
"type": "address"
|
860
|
+
}
|
861
|
+
],
|
862
|
+
"stateMutability": "view",
|
863
|
+
"type": "function"
|
864
|
+
},
|
865
|
+
{
|
866
|
+
"inputs": [],
|
867
|
+
"name": "getWallet",
|
178
868
|
"outputs": [
|
179
869
|
{
|
180
|
-
"internalType": "
|
181
|
-
"name": "
|
870
|
+
"internalType": "address",
|
871
|
+
"name": "walletAddress",
|
182
872
|
"type": "address"
|
183
873
|
}
|
184
874
|
],
|
@@ -186,61 +876,128 @@
|
|
186
876
|
"type": "function"
|
187
877
|
},
|
188
878
|
{
|
189
|
-
"inputs": [
|
190
|
-
|
191
|
-
|
879
|
+
"inputs": [
|
880
|
+
{
|
881
|
+
"internalType": "address",
|
882
|
+
"name": "registry",
|
883
|
+
"type": "address"
|
884
|
+
},
|
192
885
|
{
|
193
886
|
"internalType": "NftId",
|
194
|
-
"name": "
|
887
|
+
"name": "instanceNftId",
|
195
888
|
"type": "uint96"
|
889
|
+
},
|
890
|
+
{
|
891
|
+
"internalType": "string",
|
892
|
+
"name": "name",
|
893
|
+
"type": "string"
|
894
|
+
},
|
895
|
+
{
|
896
|
+
"internalType": "address",
|
897
|
+
"name": "token",
|
898
|
+
"type": "address"
|
899
|
+
},
|
900
|
+
{
|
901
|
+
"internalType": "ObjectType",
|
902
|
+
"name": "componentType",
|
903
|
+
"type": "uint8"
|
904
|
+
},
|
905
|
+
{
|
906
|
+
"internalType": "bool",
|
907
|
+
"name": "isInterceptor",
|
908
|
+
"type": "bool"
|
909
|
+
},
|
910
|
+
{
|
911
|
+
"internalType": "address",
|
912
|
+
"name": "initialOwner",
|
913
|
+
"type": "address"
|
914
|
+
},
|
915
|
+
{
|
916
|
+
"internalType": "bytes",
|
917
|
+
"name": "data",
|
918
|
+
"type": "bytes"
|
196
919
|
}
|
197
920
|
],
|
198
|
-
"
|
921
|
+
"name": "initializeComponent",
|
922
|
+
"outputs": [],
|
923
|
+
"stateMutability": "nonpayable",
|
199
924
|
"type": "function"
|
200
925
|
},
|
201
926
|
{
|
202
927
|
"inputs": [],
|
203
|
-
"name": "
|
204
|
-
"outputs": [
|
928
|
+
"name": "initializeERC165",
|
929
|
+
"outputs": [],
|
930
|
+
"stateMutability": "nonpayable",
|
931
|
+
"type": "function"
|
932
|
+
},
|
933
|
+
{
|
934
|
+
"inputs": [
|
935
|
+
{
|
936
|
+
"internalType": "address",
|
937
|
+
"name": "initialOwner",
|
938
|
+
"type": "address"
|
939
|
+
},
|
205
940
|
{
|
206
941
|
"internalType": "address",
|
207
|
-
"name": "
|
942
|
+
"name": "registryAddress",
|
208
943
|
"type": "address"
|
209
944
|
}
|
210
945
|
],
|
211
|
-
"
|
946
|
+
"name": "initializeNftOwnable",
|
947
|
+
"outputs": [],
|
948
|
+
"stateMutability": "nonpayable",
|
212
949
|
"type": "function"
|
213
950
|
},
|
214
951
|
{
|
215
|
-
"inputs": [
|
216
|
-
"name": "getParentNftId",
|
217
|
-
"outputs": [
|
952
|
+
"inputs": [
|
218
953
|
{
|
219
|
-
"internalType": "
|
220
|
-
"name": "
|
221
|
-
"type": "
|
954
|
+
"internalType": "address",
|
955
|
+
"name": "initialOwner",
|
956
|
+
"type": "address"
|
222
957
|
}
|
223
958
|
],
|
224
|
-
"
|
959
|
+
"name": "initializeOwner",
|
960
|
+
"outputs": [],
|
961
|
+
"stateMutability": "nonpayable",
|
225
962
|
"type": "function"
|
226
963
|
},
|
227
964
|
{
|
228
|
-
"inputs": [
|
229
|
-
|
230
|
-
|
965
|
+
"inputs": [
|
966
|
+
{
|
967
|
+
"internalType": "address",
|
968
|
+
"name": "registry",
|
969
|
+
"type": "address"
|
970
|
+
},
|
231
971
|
{
|
232
972
|
"internalType": "NftId",
|
233
|
-
"name": "
|
973
|
+
"name": "instanceNftId",
|
234
974
|
"type": "uint96"
|
235
|
-
}
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
975
|
+
},
|
976
|
+
{
|
977
|
+
"internalType": "string",
|
978
|
+
"name": "name",
|
979
|
+
"type": "string"
|
980
|
+
},
|
981
|
+
{
|
982
|
+
"internalType": "address",
|
983
|
+
"name": "token",
|
984
|
+
"type": "address"
|
985
|
+
},
|
986
|
+
{
|
987
|
+
"internalType": "bool",
|
988
|
+
"name": "isInterceptor",
|
989
|
+
"type": "bool"
|
990
|
+
},
|
991
|
+
{
|
992
|
+
"internalType": "address",
|
993
|
+
"name": "pool",
|
994
|
+
"type": "address"
|
995
|
+
},
|
996
|
+
{
|
997
|
+
"internalType": "address",
|
998
|
+
"name": "distribution",
|
999
|
+
"type": "address"
|
1000
|
+
},
|
244
1001
|
{
|
245
1002
|
"components": [
|
246
1003
|
{
|
@@ -255,17 +1012,9 @@
|
|
255
1012
|
}
|
256
1013
|
],
|
257
1014
|
"internalType": "struct Fee",
|
258
|
-
"name": "
|
1015
|
+
"name": "productFee",
|
259
1016
|
"type": "tuple"
|
260
|
-
}
|
261
|
-
],
|
262
|
-
"stateMutability": "view",
|
263
|
-
"type": "function"
|
264
|
-
},
|
265
|
-
{
|
266
|
-
"inputs": [],
|
267
|
-
"name": "getProductFee",
|
268
|
-
"outputs": [
|
1017
|
+
},
|
269
1018
|
{
|
270
1019
|
"components": [
|
271
1020
|
{
|
@@ -280,60 +1029,97 @@
|
|
280
1029
|
}
|
281
1030
|
],
|
282
1031
|
"internalType": "struct Fee",
|
283
|
-
"name": "
|
1032
|
+
"name": "processingFee",
|
284
1033
|
"type": "tuple"
|
1034
|
+
},
|
1035
|
+
{
|
1036
|
+
"internalType": "address",
|
1037
|
+
"name": "initialOwner",
|
1038
|
+
"type": "address"
|
1039
|
+
},
|
1040
|
+
{
|
1041
|
+
"internalType": "bytes",
|
1042
|
+
"name": "data",
|
1043
|
+
"type": "bytes"
|
285
1044
|
}
|
286
1045
|
],
|
287
|
-
"
|
1046
|
+
"name": "initializeProduct",
|
1047
|
+
"outputs": [],
|
1048
|
+
"stateMutability": "nonpayable",
|
288
1049
|
"type": "function"
|
289
1050
|
},
|
290
1051
|
{
|
291
|
-
"inputs": [
|
292
|
-
"name": "getRegistry",
|
293
|
-
"outputs": [
|
1052
|
+
"inputs": [
|
294
1053
|
{
|
295
|
-
"internalType": "
|
296
|
-
"name": "
|
1054
|
+
"internalType": "address",
|
1055
|
+
"name": "registryAddress",
|
1056
|
+
"type": "address"
|
1057
|
+
},
|
1058
|
+
{
|
1059
|
+
"internalType": "NftId",
|
1060
|
+
"name": "parentNftId",
|
1061
|
+
"type": "uint96"
|
1062
|
+
},
|
1063
|
+
{
|
1064
|
+
"internalType": "ObjectType",
|
1065
|
+
"name": "objectType",
|
1066
|
+
"type": "uint8"
|
1067
|
+
},
|
1068
|
+
{
|
1069
|
+
"internalType": "bool",
|
1070
|
+
"name": "isInterceptor",
|
1071
|
+
"type": "bool"
|
1072
|
+
},
|
1073
|
+
{
|
1074
|
+
"internalType": "address",
|
1075
|
+
"name": "initialOwner",
|
297
1076
|
"type": "address"
|
1077
|
+
},
|
1078
|
+
{
|
1079
|
+
"internalType": "bytes",
|
1080
|
+
"name": "data",
|
1081
|
+
"type": "bytes"
|
298
1082
|
}
|
299
1083
|
],
|
300
|
-
"
|
1084
|
+
"name": "initializeRegisterable",
|
1085
|
+
"outputs": [],
|
1086
|
+
"stateMutability": "nonpayable",
|
301
1087
|
"type": "function"
|
302
1088
|
},
|
303
1089
|
{
|
304
|
-
"inputs": [
|
305
|
-
"name": "getToken",
|
306
|
-
"outputs": [
|
1090
|
+
"inputs": [
|
307
1091
|
{
|
308
|
-
"internalType": "
|
309
|
-
"name": "
|
1092
|
+
"internalType": "address",
|
1093
|
+
"name": "registryAddress",
|
310
1094
|
"type": "address"
|
311
1095
|
}
|
312
1096
|
],
|
313
|
-
"
|
1097
|
+
"name": "initializeRegistryLinked",
|
1098
|
+
"outputs": [],
|
1099
|
+
"stateMutability": "nonpayable",
|
314
1100
|
"type": "function"
|
315
1101
|
},
|
316
1102
|
{
|
317
1103
|
"inputs": [],
|
318
|
-
"name": "
|
1104
|
+
"name": "isConsumingScheduledOp",
|
319
1105
|
"outputs": [
|
320
1106
|
{
|
321
|
-
"internalType": "
|
1107
|
+
"internalType": "bytes4",
|
322
1108
|
"name": "",
|
323
|
-
"type": "
|
1109
|
+
"type": "bytes4"
|
324
1110
|
}
|
325
1111
|
],
|
326
|
-
"stateMutability": "
|
1112
|
+
"stateMutability": "view",
|
327
1113
|
"type": "function"
|
328
1114
|
},
|
329
1115
|
{
|
330
1116
|
"inputs": [],
|
331
|
-
"name": "
|
1117
|
+
"name": "isNftInterceptor",
|
332
1118
|
"outputs": [
|
333
1119
|
{
|
334
|
-
"internalType": "
|
335
|
-
"name": "
|
336
|
-
"type": "
|
1120
|
+
"internalType": "bool",
|
1121
|
+
"name": "isInterceptor",
|
1122
|
+
"type": "bool"
|
337
1123
|
}
|
338
1124
|
],
|
339
1125
|
"stateMutability": "view",
|
@@ -341,21 +1127,64 @@
|
|
341
1127
|
},
|
342
1128
|
{
|
343
1129
|
"inputs": [],
|
344
|
-
"name": "
|
1130
|
+
"name": "linkToRegisteredNftId",
|
345
1131
|
"outputs": [],
|
346
1132
|
"stateMutability": "nonpayable",
|
347
1133
|
"type": "function"
|
348
1134
|
},
|
349
1135
|
{
|
350
1136
|
"inputs": [],
|
351
|
-
"name": "
|
352
|
-
"outputs": [
|
1137
|
+
"name": "lock",
|
1138
|
+
"outputs": [],
|
1139
|
+
"stateMutability": "nonpayable",
|
1140
|
+
"type": "function"
|
1141
|
+
},
|
1142
|
+
{
|
1143
|
+
"inputs": [
|
353
1144
|
{
|
354
|
-
"internalType": "
|
355
|
-
"name": "
|
356
|
-
"type": "
|
1145
|
+
"internalType": "address",
|
1146
|
+
"name": "from",
|
1147
|
+
"type": "address"
|
1148
|
+
},
|
1149
|
+
{
|
1150
|
+
"internalType": "address",
|
1151
|
+
"name": "to",
|
1152
|
+
"type": "address"
|
1153
|
+
},
|
1154
|
+
{
|
1155
|
+
"internalType": "uint256",
|
1156
|
+
"name": "tokenId",
|
1157
|
+
"type": "uint256"
|
1158
|
+
}
|
1159
|
+
],
|
1160
|
+
"name": "nftTransferFrom",
|
1161
|
+
"outputs": [],
|
1162
|
+
"stateMutability": "nonpayable",
|
1163
|
+
"type": "function"
|
1164
|
+
},
|
1165
|
+
{
|
1166
|
+
"inputs": [
|
1167
|
+
{
|
1168
|
+
"internalType": "bytes4",
|
1169
|
+
"name": "interfaceId",
|
1170
|
+
"type": "bytes4"
|
1171
|
+
}
|
1172
|
+
],
|
1173
|
+
"name": "registerInterface",
|
1174
|
+
"outputs": [],
|
1175
|
+
"stateMutability": "nonpayable",
|
1176
|
+
"type": "function"
|
1177
|
+
},
|
1178
|
+
{
|
1179
|
+
"inputs": [
|
1180
|
+
{
|
1181
|
+
"internalType": "address",
|
1182
|
+
"name": "newAuthority",
|
1183
|
+
"type": "address"
|
357
1184
|
}
|
358
1185
|
],
|
1186
|
+
"name": "setAuthority",
|
1187
|
+
"outputs": [],
|
359
1188
|
"stateMutability": "nonpayable",
|
360
1189
|
"type": "function"
|
361
1190
|
},
|
@@ -401,6 +1230,32 @@
|
|
401
1230
|
"stateMutability": "nonpayable",
|
402
1231
|
"type": "function"
|
403
1232
|
},
|
1233
|
+
{
|
1234
|
+
"inputs": [
|
1235
|
+
{
|
1236
|
+
"internalType": "NftId",
|
1237
|
+
"name": "productNftId",
|
1238
|
+
"type": "uint96"
|
1239
|
+
}
|
1240
|
+
],
|
1241
|
+
"name": "setProductNftId",
|
1242
|
+
"outputs": [],
|
1243
|
+
"stateMutability": "nonpayable",
|
1244
|
+
"type": "function"
|
1245
|
+
},
|
1246
|
+
{
|
1247
|
+
"inputs": [
|
1248
|
+
{
|
1249
|
+
"internalType": "address",
|
1250
|
+
"name": "newWallet",
|
1251
|
+
"type": "address"
|
1252
|
+
}
|
1253
|
+
],
|
1254
|
+
"name": "setWallet",
|
1255
|
+
"outputs": [],
|
1256
|
+
"stateMutability": "nonpayable",
|
1257
|
+
"type": "function"
|
1258
|
+
},
|
404
1259
|
{
|
405
1260
|
"inputs": [
|
406
1261
|
{
|
@@ -428,17 +1283,8 @@
|
|
428
1283
|
"type": "function"
|
429
1284
|
}
|
430
1285
|
],
|
431
|
-
"bytecode": "0x60e06040523480156200001157600080fd5b5060405162001bec38038062001bec833981016040819052620000349162000703565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff1916600117905586868682826001600160a01b038216620000d15760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5247422d3031303a52454749535452595f5a45524f000000000060448201526064015b60405180910390fd5b6001600160a01b03821660808190526040516301ffc9a760e01b81526306ecd8ef60e01b60048201526301ffc9a790602401602060405180830381865afa15801562000121573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001479190620007a5565b620001955760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a5247422d3031313a4e4f545f52454749535452590000000000006044820152606401620000c8565b6001600160601b03811660a081905260805160405163e74d052f60e01b815260048101929092526001600160a01b03169063e74d052f90602401602060405180830381865afa158015620001ed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002139190620007a5565b6200026d5760405162461bcd60e51b815260206004820152602360248201527f4552524f523a5247422d3031323a504152454e545f4e4f545f5245474953544560448201526214915160ea1b6064820152608401620000c8565b3360c052631dfba64760e11b60009081526020527f95e5a2564f7af40498dc043c6da135e06324c5edb1f60c2bf4dcdf2da207fa45805460ff1916600117905550506080516040516305247a1760e51b81526001600160601b03841660048201526000916001600160a01b03169063a48f42e090602401600060405180830381865afa15801562000302573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200032c91908101906200085d565b6060810151600580546001600160a01b0319166001600160a01b0390921691821790556040516301ffc9a760e01b8152630de7806f60e41b6004820152919250906301ffc9a790602401602060405180830381865afa15801562000394573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003ba9190620007a5565b620003e25760405162461bcd60e51b81526020600482015260006024820152604401620000c8565b600560009054906101000a90046001600160a01b03166001600160a01b0316636fa298536040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000436573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200045c919062000937565b600180546001600160a01b039283166001600160a01b0319918216179091556003805482163017905560048054928516929091169190911781556005805460ff60a01b1916905560408051632bd182d360e01b8152815173__$a23651848365a6a5ca15f07b4331037f48$__93632bd182d39383820193909291908290030181865af4158015620004f1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000517919062000957565b805160065560209081015160075560055460408051634288121d60e01b815290516001600160a01b039092169650634288121d9550600480820195509293509091908290030181865afa15801562000573573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000599919062000937565b600880546001600160a01b03199081166001600160a01b039384161790915560098054821696831696909617909555600a80549095169316929092179092558151600b55602091820151600c558051600d550151600e555062000976915050565b6001600160a01b03811681146200061057600080fd5b50565b80516200062081620005fa565b919050565b80516001600160601b03811681146200062057600080fd5b634e487b7160e01b600052604160045260246000fd5b60405160c081016001600160401b03811182821017156200067857620006786200063d565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620006a957620006a96200063d565b604052919050565b600060408284031215620006c457600080fd5b604080519081016001600160401b0381118282101715620006e957620006e96200063d565b604052825181526020928301519281019290925250919050565b6000806000806000806000610120888a0312156200072057600080fd5b87516200072d81620005fa565b96506200073d6020890162000625565b955060408801516200074f81620005fa565b60608901519095506200076281620005fa565b60808901519094506200077581620005fa565b9250620007868960a08a01620006b1565b9150620007978960e08a01620006b1565b905092959891949750929550565b600060208284031215620007b857600080fd5b81518015158114620007c957600080fd5b9392505050565b600082601f830112620007e257600080fd5b81516001600160401b03811115620007fe57620007fe6200063d565b602062000814601f8301601f191682016200067e565b82815285828487010111156200082957600080fd5b60005b83811015620008495785810183015182820184015282016200082c565b506000928101909101919091529392505050565b6000602082840312156200087057600080fd5b81516001600160401b03808211156200088857600080fd5b9083019060c082860312156200089d57600080fd5b620008a762000653565b620008b28362000625565b8152620008c26020840162000625565b6020820152604083015160ff81168114620008dc57600080fd5b6040820152620008ef6060840162000613565b6060820152620009026080840162000613565b608082015260a0830151828111156200091a57600080fd5b6200092887828601620007d0565b60a08301525095945050505050565b6000602082840312156200094a57600080fd5b8151620007c981620005fa565b6000604082840312156200096a57600080fd5b620007c98383620006b1565b60805160a05160c051611215620009d7600039600061084301526000610218015260008181610258015281816104f60152818161058c015281816106f50152818161076b015281816107c4015281816108860152610b9101526112156000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c80635ab1bd53116100ad578063b6b412ba11610071578063b6b412ba146102a9578063daafed40146102bc578063db6dcc95146102c4578063de7b5d14146102cc578063f83d08ba146102dd57600080fd5b80635ab1bd53146102565780635e78426b1461027c578063644c45e01461028f578063893d20e814610297578063a69df4b51461029f57600080fd5b80631aa3a008116100f45780631aa3a008146101dd5780631bdd6b76146101fd57806321df0da71461020557806331b62a3b146102165780633bc5de301461023c57600080fd5b806301ffc9a71461013157806312abb9b31461017357806313299604146101945780631380bf23146101b957806315dae03e146101ce575b600080fd5b61015e61013f366004610c3e565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b610186610181366004610d8d565b6102e5565b60405190815260200161016a565b6003546001600160a01b03165b6040516001600160a01b03909116815260200161016a565b6101c1610371565b60405161016a9190610e16565b604051606e815260200161016a565b6101e56104ab565b6040516001600160601b03909116815260200161016a565b6101e56106d0565b6004546001600160a01b03166101a1565b7f00000000000000000000000000000000000000000000000000000000000000006101e5565b6040805160208101825260008152905161016a9190610e73565b7f00000000000000000000000000000000000000000000000000000000000000006101a1565b61018661028a366004610e86565b61073d565b6101e5610753565b6101a16107a2565b6102a76108ff565b005b6102a76102b7366004610f19565b610997565b6101c1610a37565b6101e5610b6c565b6005546001600160a01b03166101a1565b6102a7610bc0565b600854604051639cdaa7f960e01b81526000916001600160a01b031690639cdaa7f9906103209089908b908a908a9089908b90600401610f4e565b60a060405180830381865afa15801561033d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103619190610fa5565b50929a9950505050505050505050565b6040805180820190915260008082526020820152600061038f610753565b60055460405163278b381b60e01b81526001600160601b03831660048201529192506001600160a01b03169063278b381b90602401602060405180830381865afa1580156103e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104059190610fe5565b1561048a5760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101e060405180830381865afa15801561045c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104809190611067565b6060015191505090565b505060408051808201909152600b548152600c54602082015290565b905090565b60006104b56107a2565b6001600160a01b0316336001600160a01b0316146104f45760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661056a5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a434f422d3030313a52454749535452595f5a45524f000000000060448201526064016104eb565b60055460405163c3c5a54760e01b81526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063c3c5a54790602401602060405180830381865afa1580156105d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f99190610fe5565b61064f5760405162461bcd60e51b815260206004820152602160248201527f4552524f523a434f423a494e5354414e43455f4e4f545f5245474953544552456044820152601160fa1b60648201526084016104eb565b6005805460ff60a01b1916600160a01b179055600154604051632210724360e11b81523060048201526001600160a01b0390911690634420e486906024016020604051808303816000875af11580156106ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a69190611126565b600954604051636939560f60e11b81526001600160a01b0391821660048201526000917f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e906024015b602060405180830381865afa1580156106ac573d6000803e3d6000fd5b600061074a600a86611143565b95945050505050565b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401610720565b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa15801561080b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082f9190611126565b905061083c816000610c28565b15610868577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa1580156108d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f99190611165565b91505090565b6109076107a2565b6001600160a01b0316336001600160a01b0316146109375760405162461bcd60e51b81526004016104eb90611182565b600154604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b15801561097d57600080fd5b505af1158015610991573d6000803e3d6000fd5b50505050565b61099f6107a2565b6001600160a01b0316336001600160a01b0316146109cf5760405162461bcd60e51b81526004016104eb90611182565b600854604051635b5a095d60e11b81526001600160a01b039091169063b6b412ba90610a0190859085906004016111b9565b600060405180830381600087803b158015610a1b57600080fd5b505af1158015610a2f573d6000803e3d6000fd5b505050505050565b60408051808201909152600080825260208201526000610a55610753565b60055460405163278b381b60e01b81526001600160601b03831660048201529192506001600160a01b03169063278b381b90602401602060405180830381865afa158015610aa7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acb9190610fe5565b15610b505760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101e060405180830381865afa158015610b22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b469190611067565b6080015191505090565b505060408051808201909152600d548152600e54602082015290565b600a54604051636939560f60e11b81526001600160a01b0391821660048201526000917f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401610720565b610bc86107a2565b6001600160a01b0316336001600160a01b031614610bf85760405162461bcd60e51b81526004016104eb90611182565b60015460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a790602401610963565b6001600160601b03828116908216145b92915050565b600060208284031215610c5057600080fd5b81356001600160e01b031981168114610c6857600080fd5b9392505050565b6001600160c01b031981168114610c8557600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715610cc157610cc1610c88565b60405290565b604051610120810167ffffffffffffffff81118282101715610cc157610cc1610c88565b600082601f830112610cfc57600080fd5b813567ffffffffffffffff80821115610d1757610d17610c88565b604051601f8301601f19908116603f01168101908282118183101715610d3f57610d3f610c88565b81604052838152866020858801011115610d5857600080fd5b836020870160208301376000602085830101528094505050505092915050565b6001600160601b0381168114610c8557600080fd5b60008060008060008060c08789031215610da657600080fd5b863595506020870135610db881610c6f565b945060408701359350606087013567ffffffffffffffff811115610ddb57600080fd5b610de789828a01610ceb565b9350506080870135610df881610c6f565b915060a0870135610e0881610d78565b809150509295509295509295565b815181526020808301519082015260408101610c38565b6000815180845260005b81811015610e5357602081850181015186830182015201610e37565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610c686020830184610e2d565b60008060008060808587031215610e9c57600080fd5b843593506020850135610eae81610c6f565b925060408501359150606085013567ffffffffffffffff811115610ed157600080fd5b610edd87828801610ceb565b91505092959194509250565b600060408284031215610efb57600080fd5b610f03610c9e565b9050813581526020820135602082015292915050565b60008060808385031215610f2c57600080fd5b610f368484610ee9565b9150610f458460408501610ee9565b90509250929050565b600067ffffffffffffffff60c01b808916835287602084015286604084015260c06060840152610f8160c0840187610e2d565b6001600160601b039590951660808401529290921660a09091015250949350505050565b600080600080600060a08688031215610fbd57600080fd5b5050835160208501516040860151606087015160809097015192989197509594509092509050565b600060208284031215610ff757600080fd5b81518015158114610c6857600080fd5b805161101281610d78565b919050565b6001600160a01b0381168114610c8557600080fd5b805161101281611017565b60006040828403121561104957600080fd5b611051610c9e565b9050815181526020820151602082015292915050565b60006101e0828403121561107a57600080fd5b611082610cc7565b61108b83611007565b815261109960208401611007565b60208201526110aa6040840161102c565b60408201526110bc8460608501611037565b60608201526110ce8460a08501611037565b60808201526110e08460e08501611037565b60a08201526110f3846101208501611037565b60c0820152611106846101608501611037565b60e0820152611119846101a08501611037565b6101008201529392505050565b60006020828403121561113857600080fd5b8151610c6881610d78565b60008261116057634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561117757600080fd5b8151610c6881611017565b60208082526017908201527f4552524f523a5247422d3030313a4e4f545f4f574e4552000000000000000000604082015260600190565b825181526020808401518183015282516040830152820151606082015260808101610c6856fea2646970667358221220b49580e7252815f8d72a973fdbd60f8edab21e68b0a37f0fdf6b6f537e75dc0964736f6c63430008140033",
|
432
|
-
"deployedBytecode": "
|
433
|
-
"linkReferences": {
|
434
|
-
"contracts/types/Fee.sol": {
|
435
|
-
"FeeLib": [
|
436
|
-
{
|
437
|
-
"length": 20,
|
438
|
-
"start": 1205
|
439
|
-
}
|
440
|
-
]
|
441
|
-
}
|
442
|
-
},
|
1286
|
+
"bytecode": "0x",
|
1287
|
+
"deployedBytecode": "0x",
|
1288
|
+
"linkReferences": {},
|
443
1289
|
"deployedLinkReferences": {}
|
444
1290
|
}
|