@etherisc/gif-next 0.0.2-71f849b → 0.0.2-72dc555-736
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +289 -8
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +4 -0
- package/artifacts/contracts/{instance/component/ComponentModule.sol/ComponentModule.json → components/BaseComponent.sol/BaseComponent.json} +156 -156
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +618 -0
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +4 -0
- package/artifacts/contracts/{instance/component/IComponent.sol/IComponentModule.json → components/IBaseComponent.sol/IBaseComponent.json} +139 -104
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +152 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +249 -0
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +157 -0
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +606 -37
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +534 -46
- 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/Require.sol/Require.json +2 -2
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +2 -2
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/A.json +2 -2
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +2 -2
- 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 +4 -0
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +59 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +124 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +74 -0
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +124 -0
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +207 -0
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +2 -2
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +2 -2
- package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +4 -0
- package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.json +101 -0
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +4 -0
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +1132 -0
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +4 -0
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +1082 -0
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +657 -618
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +480 -0
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +3055 -570
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +917 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1388 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +891 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +488 -0
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +540 -0
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +113 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +429 -0
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.json +115 -0
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +502 -0
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +211 -0
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
- package/artifacts/contracts/instance/{access/IAccess.sol/IAccess.json → module/IBundle.sol/IBundle.json} +2 -2
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.json +10 -0
- package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
- package/artifacts/contracts/instance/{policy → module}/IPolicy.sol/IPolicy.json +1 -1
- package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
- package/artifacts/contracts/instance/{pool/IPoolModule.sol/IPool.json → module/IRisk.sol/IRisk.json} +2 -2
- package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
- package/artifacts/contracts/instance/{component/IComponent.sol/IComponent.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/ITreasury.sol/ITreasury.json +10 -0
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +827 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +716 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +444 -0
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +466 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +446 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +561 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +751 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +839 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +448 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +1058 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +448 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +239 -2
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +415 -68
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +947 -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 +543 -81
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1293 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +513 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +410 -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 +4 -0
- package/artifacts/contracts/shared/ERC165.sol/ERC165.json +35 -0
- 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 +4 -0
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +201 -0
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
- package/artifacts/contracts/shared/IService.sol/IService.json +421 -0
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +205 -0
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +158 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +349 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +274 -0
- package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +4 -0
- package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.json +442 -0
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
- package/artifacts/contracts/shared/Service.sol/Service.json +468 -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 +4 -0
- package/artifacts/contracts/shared/Versionable.sol/Versionable.json +228 -0
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
- package/artifacts/contracts/test/TestFee.sol/TestFee.json +119 -0
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +305 -0
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +4 -0
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +116 -0
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
- package/artifacts/contracts/test/TestService.sol/TestService.json +600 -0
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +376 -0
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +218 -0
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +286 -0
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
- package/artifacts/contracts/test/Usdc.sol/USDC.json +376 -0
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -0
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +2 -2
- 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 +4 -0
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +257 -0
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +125 -0
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +65 -4
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +10 -0
- 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 +4 -0
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +92 -0
- 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 +4 -0
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +156 -0
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/StateId.sol/StateIdLib.json +92 -0
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +77 -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/UFixedLib.json +479 -0
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
- package/artifacts/contracts/types/Version.sol/VersionLib.json +177 -0
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +49 -0
- package/contracts/components/BaseComponent.sol +91 -0
- package/contracts/components/Distribution.sol +159 -0
- package/contracts/components/IBaseComponent.sol +25 -0
- package/contracts/components/IDistributionComponent.sol +44 -0
- package/contracts/components/IPoolComponent.sol +62 -0
- package/contracts/components/IProductComponent.sol +35 -0
- package/contracts/components/Pool.sol +232 -12
- package/contracts/components/Product.sol +255 -25
- package/contracts/experiment/cloning/Cloner.sol +47 -0
- package/contracts/experiment/statemachine/Dummy.sol +27 -0
- package/contracts/experiment/statemachine/ISM.sol +25 -0
- package/contracts/experiment/statemachine/SM.sol +57 -0
- package/contracts/experiment/statemachine/SimpleStateMachine.sol +31 -0
- package/contracts/instance/AccessManagedSimple.sol +115 -0
- package/contracts/instance/AccessManagerSimple.sol +692 -0
- package/contracts/instance/IAccessManagerSimple.sol +391 -0
- package/contracts/instance/IInstance.sol +40 -17
- package/contracts/instance/IInstanceService.sol +30 -0
- package/contracts/instance/Instance.sol +433 -54
- package/contracts/instance/InstanceAccessManager.sol +288 -0
- package/contracts/instance/InstanceReader.sol +306 -0
- package/contracts/instance/InstanceService.sol +183 -0
- package/contracts/instance/InstanceServiceManager.sol +57 -0
- package/contracts/instance/base/ComponentServiceBase.sol +124 -0
- package/contracts/instance/base/IInstanceBase.sol +23 -0
- package/contracts/instance/base/IKeyValueStore.sol +49 -0
- package/contracts/instance/base/ILifecycle.sol +30 -0
- package/contracts/instance/base/KeyValueStore.sol +172 -0
- package/contracts/instance/base/Lifecycle.sol +100 -0
- package/contracts/instance/module/IAccess.sol +38 -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 +44 -0
- package/contracts/instance/module/ITreasury.sol +23 -0
- package/contracts/instance/service/ComponentOwnerService.sol +317 -0
- package/contracts/instance/service/DistributionService.sol +88 -0
- package/contracts/instance/service/DistributionServiceManager.sol +54 -0
- package/contracts/instance/service/IComponentOwnerService.sol +20 -0
- package/contracts/instance/service/IDistributionService.sol +12 -0
- package/contracts/instance/service/IPoolService.sol +37 -0
- package/contracts/instance/service/IProductService.sol +107 -0
- package/contracts/instance/service/PoolService.sol +194 -0
- package/contracts/instance/service/PoolServiceManager.sol +54 -0
- package/contracts/instance/service/ProductService.sol +548 -0
- package/contracts/instance/service/ProductServiceManager.sol +54 -0
- package/contracts/registry/ChainNft.sol +129 -62
- package/contracts/registry/IRegistry.sol +52 -53
- package/contracts/registry/IRegistryService.sol +50 -0
- package/contracts/registry/ITransferInterceptor.sol +6 -0
- package/contracts/registry/Registry.sol +375 -140
- package/contracts/registry/RegistryService.sol +358 -0
- package/contracts/registry/RegistryServiceManager.sol +80 -0
- package/contracts/registry/TokenRegistry.sol +111 -0
- package/contracts/shared/ContractDeployerLib.sol +72 -0
- package/contracts/shared/ERC165.sol +25 -0
- package/contracts/shared/INftOwnable.sol +22 -0
- package/contracts/shared/IRegisterable.sol +17 -0
- package/contracts/shared/IService.sol +15 -0
- package/contracts/shared/IVersionable.sol +96 -0
- package/contracts/shared/NftOwnable.sol +134 -0
- package/contracts/shared/ProxyManager.sol +94 -0
- package/contracts/shared/Registerable.sol +90 -0
- package/contracts/shared/RegisterableUpgradable.sol +16 -0
- package/contracts/shared/Service.sol +55 -0
- package/contracts/shared/TokenHandler.sol +27 -0
- package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
- package/contracts/shared/Versionable.sol +147 -0
- package/contracts/test/TestFee.sol +25 -0
- package/contracts/test/TestRegisterable.sol +18 -0
- package/contracts/test/TestRoleId.sol +14 -0
- package/contracts/test/TestService.sol +24 -0
- package/contracts/test/TestToken.sol +26 -0
- package/contracts/test/TestVersion.sol +44 -0
- package/contracts/test/TestVersionable.sol +17 -0
- package/contracts/test/Usdc.sol +26 -0
- package/contracts/types/AddressSet.sol +58 -0
- package/contracts/types/DistributorType.sol +55 -0
- package/contracts/types/Fee.sol +56 -0
- package/contracts/types/Key32.sol +50 -0
- package/contracts/types/NftId.sol +22 -1
- package/contracts/types/NftIdSet.sol +60 -0
- package/contracts/types/NumberId.sol +52 -0
- package/contracts/types/ObjectType.sol +152 -0
- package/contracts/types/Referral.sol +85 -0
- package/contracts/types/RiskId.sol +43 -0
- package/contracts/types/RoleId.sol +89 -0
- package/contracts/types/StateId.sol +105 -0
- package/contracts/types/Timestamp.sol +29 -4
- package/contracts/types/UFixed.sol +150 -30
- package/contracts/types/Version.sol +107 -0
- package/package.json +19 -8
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +0 -4
- package/artifacts/contracts/components/Component.sol/Component.json +0 -179
- package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +0 -4
- package/artifacts/contracts/components/Component.sol/InstanceLinked.json +0 -35
- package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IPool.sol/IPoolComponent.json +0 -179
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +0 -192
- package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/access/Access.sol/AccessModule.json +0 -400
- package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +0 -35
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +0 -50
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.json +0 -336
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +0 -147
- package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.json +0 -179
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +0 -94
- package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.json +0 -24
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.json +0 -231
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.json +0 -231
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +0 -4
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.json +0 -149
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.json +0 -162
- package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +0 -4
- package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +0 -75
- package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +0 -4
- package/artifacts/contracts/instance/product/IProductService.sol/IProductService.json +0 -114
- package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +0 -4
- package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.json +0 -75
- package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +0 -4
- package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +0 -167
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -452
- package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IOwnable.json +0 -24
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.json +0 -166
- package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.json +0 -49
- package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +0 -4
- package/artifacts/contracts/registry/Registry.sol/Registerable.json +0 -166
- package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +0 -4
- package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +0 -60
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +0 -453
- package/contracts/components/Component.sol +0 -60
- package/contracts/components/IPool.sol +0 -9
- package/contracts/components/IProduct.sol +0 -9
- package/contracts/instance/access/Access.sol +0 -165
- package/contracts/instance/access/IAccess.sol +0 -63
- package/contracts/instance/component/ComponentModule.sol +0 -213
- package/contracts/instance/component/IComponent.sol +0 -73
- package/contracts/instance/policy/IPolicy.sol +0 -51
- package/contracts/instance/policy/PolicyModule.sol +0 -91
- package/contracts/instance/pool/IPoolModule.sol +0 -29
- package/contracts/instance/pool/PoolModule.sol +0 -73
- package/contracts/instance/product/IProductService.sol +0 -36
- package/contracts/instance/product/ProductService.sol +0 -112
- package/contracts/registry/IChainNft.sol +0 -21
@@ -3,231 +3,79 @@
|
|
3
3
|
"contractName": "IInstance",
|
4
4
|
"sourceName": "contracts/instance/IInstance.sol",
|
5
5
|
"abi": [
|
6
|
-
{
|
7
|
-
"anonymous": false,
|
8
|
-
"inputs": [
|
9
|
-
{
|
10
|
-
"indexed": false,
|
11
|
-
"internalType": "uint256",
|
12
|
-
"name": "idx",
|
13
|
-
"type": "uint256"
|
14
|
-
},
|
15
|
-
{
|
16
|
-
"indexed": false,
|
17
|
-
"internalType": "address",
|
18
|
-
"name": "module",
|
19
|
-
"type": "address"
|
20
|
-
},
|
21
|
-
{
|
22
|
-
"indexed": false,
|
23
|
-
"internalType": "string",
|
24
|
-
"name": "comment",
|
25
|
-
"type": "string"
|
26
|
-
}
|
27
|
-
],
|
28
|
-
"name": "LogDebug",
|
29
|
-
"type": "event"
|
30
|
-
},
|
31
|
-
{
|
32
|
-
"inputs": [],
|
33
|
-
"name": "ORACLE_OWNER_ROLE",
|
34
|
-
"outputs": [
|
35
|
-
{
|
36
|
-
"internalType": "bytes32",
|
37
|
-
"name": "role",
|
38
|
-
"type": "bytes32"
|
39
|
-
}
|
40
|
-
],
|
41
|
-
"stateMutability": "view",
|
42
|
-
"type": "function"
|
43
|
-
},
|
44
|
-
{
|
45
|
-
"inputs": [],
|
46
|
-
"name": "POOL_OWNER_ROLE",
|
47
|
-
"outputs": [
|
48
|
-
{
|
49
|
-
"internalType": "bytes32",
|
50
|
-
"name": "role",
|
51
|
-
"type": "bytes32"
|
52
|
-
}
|
53
|
-
],
|
54
|
-
"stateMutability": "view",
|
55
|
-
"type": "function"
|
56
|
-
},
|
57
|
-
{
|
58
|
-
"inputs": [],
|
59
|
-
"name": "PRODUCT_OWNER_ROLE",
|
60
|
-
"outputs": [
|
61
|
-
{
|
62
|
-
"internalType": "bytes32",
|
63
|
-
"name": "role",
|
64
|
-
"type": "bytes32"
|
65
|
-
}
|
66
|
-
],
|
67
|
-
"stateMutability": "view",
|
68
|
-
"type": "function"
|
69
|
-
},
|
70
6
|
{
|
71
7
|
"inputs": [
|
72
8
|
{
|
73
9
|
"internalType": "NftId",
|
74
|
-
"name": "
|
10
|
+
"name": "bundleNftId",
|
75
11
|
"type": "uint96"
|
76
|
-
}
|
77
|
-
],
|
78
|
-
"name": "activate",
|
79
|
-
"outputs": [],
|
80
|
-
"stateMutability": "nonpayable",
|
81
|
-
"type": "function"
|
82
|
-
},
|
83
|
-
{
|
84
|
-
"inputs": [],
|
85
|
-
"name": "components",
|
86
|
-
"outputs": [
|
87
|
-
{
|
88
|
-
"internalType": "uint256",
|
89
|
-
"name": "numberOfCompnents",
|
90
|
-
"type": "uint256"
|
91
|
-
}
|
92
|
-
],
|
93
|
-
"stateMutability": "view",
|
94
|
-
"type": "function"
|
95
|
-
},
|
96
|
-
{
|
97
|
-
"inputs": [
|
12
|
+
},
|
98
13
|
{
|
99
14
|
"components": [
|
100
15
|
{
|
101
16
|
"internalType": "NftId",
|
102
|
-
"name": "
|
17
|
+
"name": "poolNftId",
|
103
18
|
"type": "uint96"
|
104
19
|
},
|
105
20
|
{
|
106
|
-
"
|
107
|
-
|
108
|
-
|
21
|
+
"components": [
|
22
|
+
{
|
23
|
+
"internalType": "UFixed",
|
24
|
+
"name": "fractionalFee",
|
25
|
+
"type": "uint256"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"internalType": "uint256",
|
29
|
+
"name": "fixedFee",
|
30
|
+
"type": "uint256"
|
31
|
+
}
|
32
|
+
],
|
33
|
+
"internalType": "struct Fee",
|
34
|
+
"name": "fee",
|
35
|
+
"type": "tuple"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"internalType": "bytes",
|
39
|
+
"name": "filter",
|
40
|
+
"type": "bytes"
|
109
41
|
},
|
110
42
|
{
|
111
43
|
"internalType": "uint256",
|
112
|
-
"name": "
|
44
|
+
"name": "capitalAmount",
|
113
45
|
"type": "uint256"
|
114
46
|
},
|
115
47
|
{
|
116
|
-
"internalType": "
|
117
|
-
"name": "
|
118
|
-
"type": "
|
48
|
+
"internalType": "uint256",
|
49
|
+
"name": "lockedAmount",
|
50
|
+
"type": "uint256"
|
119
51
|
},
|
120
52
|
{
|
121
|
-
"internalType": "
|
122
|
-
"name": "
|
123
|
-
"type": "
|
53
|
+
"internalType": "uint256",
|
54
|
+
"name": "balanceAmount",
|
55
|
+
"type": "uint256"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"internalType": "uint256",
|
59
|
+
"name": "lifetime",
|
60
|
+
"type": "uint256"
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"internalType": "Timestamp",
|
64
|
+
"name": "expiredAt",
|
65
|
+
"type": "uint40"
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"internalType": "Timestamp",
|
69
|
+
"name": "closedAt",
|
70
|
+
"type": "uint40"
|
124
71
|
}
|
125
72
|
],
|
126
|
-
"internalType": "struct
|
127
|
-
"name": "
|
73
|
+
"internalType": "struct IBundle.BundleInfo",
|
74
|
+
"name": "bundle",
|
128
75
|
"type": "tuple"
|
129
|
-
},
|
130
|
-
{
|
131
|
-
"internalType": "address",
|
132
|
-
"name": "applicationOwner",
|
133
|
-
"type": "address"
|
134
|
-
},
|
135
|
-
{
|
136
|
-
"internalType": "uint256",
|
137
|
-
"name": "sumInsuredAmount",
|
138
|
-
"type": "uint256"
|
139
|
-
},
|
140
|
-
{
|
141
|
-
"internalType": "uint256",
|
142
|
-
"name": "premiumAmount",
|
143
|
-
"type": "uint256"
|
144
|
-
},
|
145
|
-
{
|
146
|
-
"internalType": "uint256",
|
147
|
-
"name": "lifetime",
|
148
|
-
"type": "uint256"
|
149
|
-
},
|
150
|
-
{
|
151
|
-
"internalType": "NftId",
|
152
|
-
"name": "bundleNftId",
|
153
|
-
"type": "uint96"
|
154
|
-
}
|
155
|
-
],
|
156
|
-
"name": "createApplication",
|
157
|
-
"outputs": [
|
158
|
-
{
|
159
|
-
"internalType": "NftId",
|
160
|
-
"name": "nftId",
|
161
|
-
"type": "uint96"
|
162
|
-
}
|
163
|
-
],
|
164
|
-
"stateMutability": "nonpayable",
|
165
|
-
"type": "function"
|
166
|
-
},
|
167
|
-
{
|
168
|
-
"inputs": [
|
169
|
-
{
|
170
|
-
"internalType": "NftId",
|
171
|
-
"name": "nftId",
|
172
|
-
"type": "uint96"
|
173
|
-
},
|
174
|
-
{
|
175
|
-
"internalType": "address",
|
176
|
-
"name": "wallet",
|
177
|
-
"type": "address"
|
178
|
-
},
|
179
|
-
{
|
180
|
-
"internalType": "address",
|
181
|
-
"name": "token",
|
182
|
-
"type": "address"
|
183
76
|
}
|
184
77
|
],
|
185
|
-
"name": "
|
186
|
-
"outputs": [],
|
187
|
-
"stateMutability": "nonpayable",
|
188
|
-
"type": "function"
|
189
|
-
},
|
190
|
-
{
|
191
|
-
"inputs": [
|
192
|
-
{
|
193
|
-
"internalType": "string",
|
194
|
-
"name": "roleName",
|
195
|
-
"type": "string"
|
196
|
-
}
|
197
|
-
],
|
198
|
-
"name": "createRole",
|
199
|
-
"outputs": [
|
200
|
-
{
|
201
|
-
"internalType": "bytes32",
|
202
|
-
"name": "role",
|
203
|
-
"type": "bytes32"
|
204
|
-
}
|
205
|
-
],
|
206
|
-
"stateMutability": "nonpayable",
|
207
|
-
"type": "function"
|
208
|
-
},
|
209
|
-
{
|
210
|
-
"inputs": [
|
211
|
-
{
|
212
|
-
"internalType": "bytes32",
|
213
|
-
"name": "role",
|
214
|
-
"type": "bytes32"
|
215
|
-
}
|
216
|
-
],
|
217
|
-
"name": "disableRole",
|
218
|
-
"outputs": [],
|
219
|
-
"stateMutability": "nonpayable",
|
220
|
-
"type": "function"
|
221
|
-
},
|
222
|
-
{
|
223
|
-
"inputs": [
|
224
|
-
{
|
225
|
-
"internalType": "bytes32",
|
226
|
-
"name": "role",
|
227
|
-
"type": "bytes32"
|
228
|
-
}
|
229
|
-
],
|
230
|
-
"name": "enableRole",
|
78
|
+
"name": "createBundle",
|
231
79
|
"outputs": [],
|
232
80
|
"stateMutability": "nonpayable",
|
233
81
|
"type": "function"
|
@@ -236,313 +84,305 @@
|
|
236
84
|
"inputs": [
|
237
85
|
{
|
238
86
|
"internalType": "NftId",
|
239
|
-
"name": "
|
87
|
+
"name": "distributionNftId",
|
240
88
|
"type": "uint96"
|
241
|
-
}
|
242
|
-
],
|
243
|
-
"name": "getBundleNftForPolicy",
|
244
|
-
"outputs": [
|
245
|
-
{
|
246
|
-
"internalType": "NftId",
|
247
|
-
"name": "bundleNft",
|
248
|
-
"type": "uint96"
|
249
|
-
}
|
250
|
-
],
|
251
|
-
"stateMutability": "view",
|
252
|
-
"type": "function"
|
253
|
-
},
|
254
|
-
{
|
255
|
-
"inputs": [
|
256
|
-
{
|
257
|
-
"internalType": "address",
|
258
|
-
"name": "componentAddress",
|
259
|
-
"type": "address"
|
260
|
-
}
|
261
|
-
],
|
262
|
-
"name": "getComponentId",
|
263
|
-
"outputs": [
|
264
|
-
{
|
265
|
-
"internalType": "NftId",
|
266
|
-
"name": "nftId",
|
267
|
-
"type": "uint96"
|
268
|
-
}
|
269
|
-
],
|
270
|
-
"stateMutability": "view",
|
271
|
-
"type": "function"
|
272
|
-
},
|
273
|
-
{
|
274
|
-
"inputs": [
|
275
|
-
{
|
276
|
-
"internalType": "uint256",
|
277
|
-
"name": "idx",
|
278
|
-
"type": "uint256"
|
279
|
-
}
|
280
|
-
],
|
281
|
-
"name": "getComponentId",
|
282
|
-
"outputs": [
|
283
|
-
{
|
284
|
-
"internalType": "NftId",
|
285
|
-
"name": "nftId",
|
286
|
-
"type": "uint96"
|
287
|
-
}
|
288
|
-
],
|
289
|
-
"stateMutability": "view",
|
290
|
-
"type": "function"
|
291
|
-
},
|
292
|
-
{
|
293
|
-
"inputs": [
|
294
|
-
{
|
295
|
-
"internalType": "NftId",
|
296
|
-
"name": "nftId",
|
297
|
-
"type": "uint96"
|
298
|
-
}
|
299
|
-
],
|
300
|
-
"name": "getComponentInfo",
|
301
|
-
"outputs": [
|
89
|
+
},
|
302
90
|
{
|
303
91
|
"components": [
|
304
92
|
{
|
305
93
|
"internalType": "NftId",
|
306
|
-
"name": "
|
94
|
+
"name": "productNftId",
|
307
95
|
"type": "uint96"
|
308
96
|
},
|
309
97
|
{
|
310
|
-
"internalType": "
|
311
|
-
"name": "
|
312
|
-
"type": "
|
98
|
+
"internalType": "contract TokenHandler",
|
99
|
+
"name": "tokenHandler",
|
100
|
+
"type": "address"
|
101
|
+
},
|
102
|
+
{
|
103
|
+
"components": [
|
104
|
+
{
|
105
|
+
"internalType": "UFixed",
|
106
|
+
"name": "fractionalFee",
|
107
|
+
"type": "uint256"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
"internalType": "uint256",
|
111
|
+
"name": "fixedFee",
|
112
|
+
"type": "uint256"
|
113
|
+
}
|
114
|
+
],
|
115
|
+
"internalType": "struct Fee",
|
116
|
+
"name": "distributionFee",
|
117
|
+
"type": "tuple"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"internalType": "bool",
|
121
|
+
"name": "isIntercepting",
|
122
|
+
"type": "bool"
|
123
|
+
},
|
124
|
+
{
|
125
|
+
"internalType": "address",
|
126
|
+
"name": "wallet",
|
127
|
+
"type": "address"
|
313
128
|
}
|
314
129
|
],
|
315
|
-
"internalType": "struct
|
316
|
-
"name": "
|
130
|
+
"internalType": "struct ISetup.DistributionSetupInfo",
|
131
|
+
"name": "setup",
|
317
132
|
"type": "tuple"
|
318
133
|
}
|
319
134
|
],
|
320
|
-
"
|
321
|
-
"
|
322
|
-
|
323
|
-
{
|
324
|
-
"inputs": [
|
325
|
-
{
|
326
|
-
"internalType": "NftId",
|
327
|
-
"name": "nftId",
|
328
|
-
"type": "uint96"
|
329
|
-
}
|
330
|
-
],
|
331
|
-
"name": "getComponentOwner",
|
332
|
-
"outputs": [
|
333
|
-
{
|
334
|
-
"internalType": "address",
|
335
|
-
"name": "owner",
|
336
|
-
"type": "address"
|
337
|
-
}
|
338
|
-
],
|
339
|
-
"stateMutability": "view",
|
340
|
-
"type": "function"
|
341
|
-
},
|
342
|
-
{
|
343
|
-
"inputs": [],
|
344
|
-
"name": "getComponentOwnerService",
|
345
|
-
"outputs": [
|
346
|
-
{
|
347
|
-
"internalType": "contract IComponentOwnerService",
|
348
|
-
"name": "",
|
349
|
-
"type": "address"
|
350
|
-
}
|
351
|
-
],
|
352
|
-
"stateMutability": "view",
|
353
|
-
"type": "function"
|
354
|
-
},
|
355
|
-
{
|
356
|
-
"inputs": [],
|
357
|
-
"name": "getData",
|
358
|
-
"outputs": [
|
359
|
-
{
|
360
|
-
"internalType": "bytes",
|
361
|
-
"name": "data",
|
362
|
-
"type": "bytes"
|
363
|
-
}
|
364
|
-
],
|
365
|
-
"stateMutability": "view",
|
366
|
-
"type": "function"
|
367
|
-
},
|
368
|
-
{
|
369
|
-
"inputs": [],
|
370
|
-
"name": "getInitialOwner",
|
371
|
-
"outputs": [
|
372
|
-
{
|
373
|
-
"internalType": "address",
|
374
|
-
"name": "initialOwner",
|
375
|
-
"type": "address"
|
376
|
-
}
|
377
|
-
],
|
378
|
-
"stateMutability": "view",
|
379
|
-
"type": "function"
|
380
|
-
},
|
381
|
-
{
|
382
|
-
"inputs": [],
|
383
|
-
"name": "getNftId",
|
384
|
-
"outputs": [
|
385
|
-
{
|
386
|
-
"internalType": "NftId",
|
387
|
-
"name": "nftId",
|
388
|
-
"type": "uint96"
|
389
|
-
}
|
390
|
-
],
|
391
|
-
"stateMutability": "view",
|
392
|
-
"type": "function"
|
393
|
-
},
|
394
|
-
{
|
395
|
-
"inputs": [],
|
396
|
-
"name": "getOwner",
|
397
|
-
"outputs": [
|
398
|
-
{
|
399
|
-
"internalType": "address",
|
400
|
-
"name": "owner",
|
401
|
-
"type": "address"
|
402
|
-
}
|
403
|
-
],
|
404
|
-
"stateMutability": "view",
|
405
|
-
"type": "function"
|
406
|
-
},
|
407
|
-
{
|
408
|
-
"inputs": [],
|
409
|
-
"name": "getParentNftId",
|
410
|
-
"outputs": [
|
411
|
-
{
|
412
|
-
"internalType": "NftId",
|
413
|
-
"name": "parentNftId",
|
414
|
-
"type": "uint96"
|
415
|
-
}
|
416
|
-
],
|
417
|
-
"stateMutability": "view",
|
135
|
+
"name": "createDistributionSetup",
|
136
|
+
"outputs": [],
|
137
|
+
"stateMutability": "nonpayable",
|
418
138
|
"type": "function"
|
419
139
|
},
|
420
140
|
{
|
421
141
|
"inputs": [
|
422
142
|
{
|
423
143
|
"internalType": "NftId",
|
424
|
-
"name": "
|
144
|
+
"name": "poolNftId",
|
425
145
|
"type": "uint96"
|
426
|
-
}
|
427
|
-
],
|
428
|
-
"name": "getPolicyInfo",
|
429
|
-
"outputs": [
|
146
|
+
},
|
430
147
|
{
|
431
148
|
"components": [
|
432
149
|
{
|
433
150
|
"internalType": "NftId",
|
434
|
-
"name": "
|
151
|
+
"name": "productNftId",
|
435
152
|
"type": "uint96"
|
436
153
|
},
|
437
154
|
{
|
438
|
-
"internalType": "
|
439
|
-
"name": "
|
440
|
-
"type": "
|
155
|
+
"internalType": "contract TokenHandler",
|
156
|
+
"name": "tokenHandler",
|
157
|
+
"type": "address"
|
441
158
|
},
|
442
159
|
{
|
443
|
-
"internalType": "
|
444
|
-
"name": "
|
160
|
+
"internalType": "UFixed",
|
161
|
+
"name": "collateralizationLevel",
|
445
162
|
"type": "uint256"
|
446
163
|
},
|
447
164
|
{
|
448
|
-
"
|
449
|
-
|
450
|
-
|
165
|
+
"components": [
|
166
|
+
{
|
167
|
+
"internalType": "UFixed",
|
168
|
+
"name": "fractionalFee",
|
169
|
+
"type": "uint256"
|
170
|
+
},
|
171
|
+
{
|
172
|
+
"internalType": "uint256",
|
173
|
+
"name": "fixedFee",
|
174
|
+
"type": "uint256"
|
175
|
+
}
|
176
|
+
],
|
177
|
+
"internalType": "struct Fee",
|
178
|
+
"name": "poolFee",
|
179
|
+
"type": "tuple"
|
451
180
|
},
|
452
181
|
{
|
453
|
-
"
|
454
|
-
|
455
|
-
|
182
|
+
"components": [
|
183
|
+
{
|
184
|
+
"internalType": "UFixed",
|
185
|
+
"name": "fractionalFee",
|
186
|
+
"type": "uint256"
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"internalType": "uint256",
|
190
|
+
"name": "fixedFee",
|
191
|
+
"type": "uint256"
|
192
|
+
}
|
193
|
+
],
|
194
|
+
"internalType": "struct Fee",
|
195
|
+
"name": "stakingFee",
|
196
|
+
"type": "tuple"
|
456
197
|
},
|
457
198
|
{
|
458
|
-
"
|
459
|
-
|
460
|
-
|
199
|
+
"components": [
|
200
|
+
{
|
201
|
+
"internalType": "UFixed",
|
202
|
+
"name": "fractionalFee",
|
203
|
+
"type": "uint256"
|
204
|
+
},
|
205
|
+
{
|
206
|
+
"internalType": "uint256",
|
207
|
+
"name": "fixedFee",
|
208
|
+
"type": "uint256"
|
209
|
+
}
|
210
|
+
],
|
211
|
+
"internalType": "struct Fee",
|
212
|
+
"name": "performanceFee",
|
213
|
+
"type": "tuple"
|
461
214
|
},
|
462
215
|
{
|
463
|
-
"internalType": "
|
464
|
-
"name": "
|
465
|
-
"type": "
|
466
|
-
},
|
467
|
-
{
|
468
|
-
"internalType": "uint256",
|
469
|
-
"name": "expiredAt",
|
470
|
-
"type": "uint256"
|
216
|
+
"internalType": "bool",
|
217
|
+
"name": "isIntercepting",
|
218
|
+
"type": "bool"
|
471
219
|
},
|
472
220
|
{
|
473
|
-
"internalType": "
|
474
|
-
"name": "
|
475
|
-
"type": "
|
221
|
+
"internalType": "address",
|
222
|
+
"name": "wallet",
|
223
|
+
"type": "address"
|
476
224
|
}
|
477
225
|
],
|
478
|
-
"internalType": "struct
|
479
|
-
"name": "
|
226
|
+
"internalType": "struct ISetup.PoolSetupInfo",
|
227
|
+
"name": "setup",
|
480
228
|
"type": "tuple"
|
481
229
|
}
|
482
230
|
],
|
483
|
-
"
|
231
|
+
"name": "createPoolSetup",
|
232
|
+
"outputs": [],
|
233
|
+
"stateMutability": "nonpayable",
|
484
234
|
"type": "function"
|
485
235
|
},
|
486
236
|
{
|
487
237
|
"inputs": [
|
488
238
|
{
|
489
239
|
"internalType": "NftId",
|
490
|
-
"name": "
|
240
|
+
"name": "productNftId",
|
491
241
|
"type": "uint96"
|
492
|
-
}
|
493
|
-
],
|
494
|
-
"name": "getPoolInfo",
|
495
|
-
"outputs": [
|
242
|
+
},
|
496
243
|
{
|
497
244
|
"components": [
|
245
|
+
{
|
246
|
+
"internalType": "contract IERC20Metadata",
|
247
|
+
"name": "token",
|
248
|
+
"type": "address"
|
249
|
+
},
|
250
|
+
{
|
251
|
+
"internalType": "contract TokenHandler",
|
252
|
+
"name": "tokenHandler",
|
253
|
+
"type": "address"
|
254
|
+
},
|
498
255
|
{
|
499
256
|
"internalType": "NftId",
|
500
|
-
"name": "
|
257
|
+
"name": "distributionNftId",
|
501
258
|
"type": "uint96"
|
502
259
|
},
|
503
260
|
{
|
504
|
-
"internalType": "
|
505
|
-
"name": "
|
506
|
-
"type": "
|
261
|
+
"internalType": "NftId",
|
262
|
+
"name": "poolNftId",
|
263
|
+
"type": "uint96"
|
507
264
|
},
|
508
265
|
{
|
509
|
-
"
|
510
|
-
|
511
|
-
|
266
|
+
"components": [
|
267
|
+
{
|
268
|
+
"internalType": "UFixed",
|
269
|
+
"name": "fractionalFee",
|
270
|
+
"type": "uint256"
|
271
|
+
},
|
272
|
+
{
|
273
|
+
"internalType": "uint256",
|
274
|
+
"name": "fixedFee",
|
275
|
+
"type": "uint256"
|
276
|
+
}
|
277
|
+
],
|
278
|
+
"internalType": "struct Fee",
|
279
|
+
"name": "distributionFee",
|
280
|
+
"type": "tuple"
|
512
281
|
},
|
513
282
|
{
|
514
|
-
"
|
515
|
-
|
516
|
-
|
283
|
+
"components": [
|
284
|
+
{
|
285
|
+
"internalType": "UFixed",
|
286
|
+
"name": "fractionalFee",
|
287
|
+
"type": "uint256"
|
288
|
+
},
|
289
|
+
{
|
290
|
+
"internalType": "uint256",
|
291
|
+
"name": "fixedFee",
|
292
|
+
"type": "uint256"
|
293
|
+
}
|
294
|
+
],
|
295
|
+
"internalType": "struct Fee",
|
296
|
+
"name": "productFee",
|
297
|
+
"type": "tuple"
|
298
|
+
},
|
299
|
+
{
|
300
|
+
"components": [
|
301
|
+
{
|
302
|
+
"internalType": "UFixed",
|
303
|
+
"name": "fractionalFee",
|
304
|
+
"type": "uint256"
|
305
|
+
},
|
306
|
+
{
|
307
|
+
"internalType": "uint256",
|
308
|
+
"name": "fixedFee",
|
309
|
+
"type": "uint256"
|
310
|
+
}
|
311
|
+
],
|
312
|
+
"internalType": "struct Fee",
|
313
|
+
"name": "processingFee",
|
314
|
+
"type": "tuple"
|
315
|
+
},
|
316
|
+
{
|
317
|
+
"components": [
|
318
|
+
{
|
319
|
+
"internalType": "UFixed",
|
320
|
+
"name": "fractionalFee",
|
321
|
+
"type": "uint256"
|
322
|
+
},
|
323
|
+
{
|
324
|
+
"internalType": "uint256",
|
325
|
+
"name": "fixedFee",
|
326
|
+
"type": "uint256"
|
327
|
+
}
|
328
|
+
],
|
329
|
+
"internalType": "struct Fee",
|
330
|
+
"name": "poolFee",
|
331
|
+
"type": "tuple"
|
332
|
+
},
|
333
|
+
{
|
334
|
+
"components": [
|
335
|
+
{
|
336
|
+
"internalType": "UFixed",
|
337
|
+
"name": "fractionalFee",
|
338
|
+
"type": "uint256"
|
339
|
+
},
|
340
|
+
{
|
341
|
+
"internalType": "uint256",
|
342
|
+
"name": "fixedFee",
|
343
|
+
"type": "uint256"
|
344
|
+
}
|
345
|
+
],
|
346
|
+
"internalType": "struct Fee",
|
347
|
+
"name": "stakingFee",
|
348
|
+
"type": "tuple"
|
517
349
|
},
|
518
350
|
{
|
519
|
-
"
|
520
|
-
|
521
|
-
|
351
|
+
"components": [
|
352
|
+
{
|
353
|
+
"internalType": "UFixed",
|
354
|
+
"name": "fractionalFee",
|
355
|
+
"type": "uint256"
|
356
|
+
},
|
357
|
+
{
|
358
|
+
"internalType": "uint256",
|
359
|
+
"name": "fixedFee",
|
360
|
+
"type": "uint256"
|
361
|
+
}
|
362
|
+
],
|
363
|
+
"internalType": "struct Fee",
|
364
|
+
"name": "performanceFee",
|
365
|
+
"type": "tuple"
|
522
366
|
}
|
523
367
|
],
|
524
|
-
"internalType": "struct
|
525
|
-
"name": "
|
368
|
+
"internalType": "struct ISetup.ProductSetupInfo",
|
369
|
+
"name": "setup",
|
526
370
|
"type": "tuple"
|
527
371
|
}
|
528
372
|
],
|
529
|
-
"
|
373
|
+
"name": "createProductSetup",
|
374
|
+
"outputs": [],
|
375
|
+
"stateMutability": "nonpayable",
|
530
376
|
"type": "function"
|
531
377
|
},
|
532
378
|
{
|
533
|
-
"inputs": [
|
534
|
-
|
535
|
-
"internalType": "NftId",
|
536
|
-
"name": "productNftId",
|
537
|
-
"type": "uint96"
|
538
|
-
}
|
539
|
-
],
|
540
|
-
"name": "getPoolNftId",
|
379
|
+
"inputs": [],
|
380
|
+
"name": "getComponentOwnerService",
|
541
381
|
"outputs": [
|
542
382
|
{
|
543
|
-
"internalType": "
|
544
|
-
"name": "
|
545
|
-
"type": "
|
383
|
+
"internalType": "contract IComponentOwnerService",
|
384
|
+
"name": "",
|
385
|
+
"type": "address"
|
546
386
|
}
|
547
387
|
],
|
548
388
|
"stateMutability": "view",
|
@@ -550,10 +390,10 @@
|
|
550
390
|
},
|
551
391
|
{
|
552
392
|
"inputs": [],
|
553
|
-
"name": "
|
393
|
+
"name": "getDistributionService",
|
554
394
|
"outputs": [
|
555
395
|
{
|
556
|
-
"internalType": "contract
|
396
|
+
"internalType": "contract IDistributionService",
|
557
397
|
"name": "",
|
558
398
|
"type": "address"
|
559
399
|
}
|
@@ -563,11 +403,11 @@
|
|
563
403
|
},
|
564
404
|
{
|
565
405
|
"inputs": [],
|
566
|
-
"name": "
|
406
|
+
"name": "getInstanceReader",
|
567
407
|
"outputs": [
|
568
408
|
{
|
569
|
-
"internalType": "contract
|
570
|
-
"name": "
|
409
|
+
"internalType": "contract InstanceReader",
|
410
|
+
"name": "",
|
571
411
|
"type": "address"
|
572
412
|
}
|
573
413
|
],
|
@@ -575,19 +415,13 @@
|
|
575
415
|
"type": "function"
|
576
416
|
},
|
577
417
|
{
|
578
|
-
"inputs": [
|
579
|
-
|
580
|
-
"internalType": "uint256",
|
581
|
-
"name": "idx",
|
582
|
-
"type": "uint256"
|
583
|
-
}
|
584
|
-
],
|
585
|
-
"name": "getRole",
|
418
|
+
"inputs": [],
|
419
|
+
"name": "getPoolService",
|
586
420
|
"outputs": [
|
587
421
|
{
|
588
|
-
"internalType": "
|
589
|
-
"name": "
|
590
|
-
"type": "
|
422
|
+
"internalType": "contract IPoolService",
|
423
|
+
"name": "",
|
424
|
+
"type": "address"
|
591
425
|
}
|
592
426
|
],
|
593
427
|
"stateMutability": "view",
|
@@ -595,12 +429,12 @@
|
|
595
429
|
},
|
596
430
|
{
|
597
431
|
"inputs": [],
|
598
|
-
"name": "
|
432
|
+
"name": "getProductService",
|
599
433
|
"outputs": [
|
600
434
|
{
|
601
|
-
"internalType": "
|
602
|
-
"name": "
|
603
|
-
"type": "
|
435
|
+
"internalType": "contract IProductService",
|
436
|
+
"name": "",
|
437
|
+
"type": "address"
|
604
438
|
}
|
605
439
|
],
|
606
440
|
"stateMutability": "view",
|
@@ -609,128 +443,118 @@
|
|
609
443
|
{
|
610
444
|
"inputs": [
|
611
445
|
{
|
612
|
-
"internalType": "
|
613
|
-
"name": "
|
614
|
-
"type": "
|
446
|
+
"internalType": "bytes4",
|
447
|
+
"name": "interfaceId",
|
448
|
+
"type": "bytes4"
|
615
449
|
}
|
616
450
|
],
|
617
|
-
"name": "
|
451
|
+
"name": "supportsInterface",
|
618
452
|
"outputs": [
|
619
453
|
{
|
620
|
-
"internalType": "
|
621
|
-
"name": "
|
622
|
-
"type": "
|
454
|
+
"internalType": "bool",
|
455
|
+
"name": "",
|
456
|
+
"type": "bool"
|
623
457
|
}
|
624
458
|
],
|
625
|
-
"stateMutability": "
|
459
|
+
"stateMutability": "view",
|
626
460
|
"type": "function"
|
627
461
|
},
|
628
462
|
{
|
629
463
|
"inputs": [
|
630
464
|
{
|
631
|
-
"internalType": "
|
632
|
-
"name": "
|
633
|
-
"type": "
|
634
|
-
}
|
635
|
-
],
|
636
|
-
"name": "getRoleInfo",
|
637
|
-
"outputs": [
|
465
|
+
"internalType": "NftId",
|
466
|
+
"name": "bundleNftId",
|
467
|
+
"type": "uint96"
|
468
|
+
},
|
638
469
|
{
|
639
470
|
"components": [
|
640
471
|
{
|
641
|
-
"internalType": "
|
642
|
-
"name": "
|
643
|
-
"type": "
|
472
|
+
"internalType": "NftId",
|
473
|
+
"name": "poolNftId",
|
474
|
+
"type": "uint96"
|
644
475
|
},
|
645
476
|
{
|
646
|
-
"
|
647
|
-
|
648
|
-
|
477
|
+
"components": [
|
478
|
+
{
|
479
|
+
"internalType": "UFixed",
|
480
|
+
"name": "fractionalFee",
|
481
|
+
"type": "uint256"
|
482
|
+
},
|
483
|
+
{
|
484
|
+
"internalType": "uint256",
|
485
|
+
"name": "fixedFee",
|
486
|
+
"type": "uint256"
|
487
|
+
}
|
488
|
+
],
|
489
|
+
"internalType": "struct Fee",
|
490
|
+
"name": "fee",
|
491
|
+
"type": "tuple"
|
649
492
|
},
|
650
493
|
{
|
651
|
-
"internalType": "
|
652
|
-
"name": "
|
653
|
-
"type": "
|
494
|
+
"internalType": "bytes",
|
495
|
+
"name": "filter",
|
496
|
+
"type": "bytes"
|
497
|
+
},
|
498
|
+
{
|
499
|
+
"internalType": "uint256",
|
500
|
+
"name": "capitalAmount",
|
501
|
+
"type": "uint256"
|
502
|
+
},
|
503
|
+
{
|
504
|
+
"internalType": "uint256",
|
505
|
+
"name": "lockedAmount",
|
506
|
+
"type": "uint256"
|
507
|
+
},
|
508
|
+
{
|
509
|
+
"internalType": "uint256",
|
510
|
+
"name": "balanceAmount",
|
511
|
+
"type": "uint256"
|
512
|
+
},
|
513
|
+
{
|
514
|
+
"internalType": "uint256",
|
515
|
+
"name": "lifetime",
|
516
|
+
"type": "uint256"
|
517
|
+
},
|
518
|
+
{
|
519
|
+
"internalType": "Timestamp",
|
520
|
+
"name": "expiredAt",
|
521
|
+
"type": "uint40"
|
522
|
+
},
|
523
|
+
{
|
524
|
+
"internalType": "Timestamp",
|
525
|
+
"name": "closedAt",
|
526
|
+
"type": "uint40"
|
654
527
|
}
|
655
528
|
],
|
656
|
-
"internalType": "struct
|
657
|
-
"name": "
|
529
|
+
"internalType": "struct IBundle.BundleInfo",
|
530
|
+
"name": "bundle",
|
658
531
|
"type": "tuple"
|
659
|
-
}
|
660
|
-
],
|
661
|
-
"stateMutability": "view",
|
662
|
-
"type": "function"
|
663
|
-
},
|
664
|
-
{
|
665
|
-
"inputs": [
|
666
|
-
{
|
667
|
-
"internalType": "bytes32",
|
668
|
-
"name": "role",
|
669
|
-
"type": "bytes32"
|
670
532
|
},
|
671
533
|
{
|
672
|
-
"internalType": "
|
673
|
-
"name": "
|
674
|
-
"type": "
|
675
|
-
}
|
676
|
-
],
|
677
|
-
"name": "getRoleMember",
|
678
|
-
"outputs": [
|
679
|
-
{
|
680
|
-
"internalType": "address",
|
681
|
-
"name": "roleMembers",
|
682
|
-
"type": "address"
|
683
|
-
}
|
684
|
-
],
|
685
|
-
"stateMutability": "view",
|
686
|
-
"type": "function"
|
687
|
-
},
|
688
|
-
{
|
689
|
-
"inputs": [
|
690
|
-
{
|
691
|
-
"internalType": "bytes32",
|
692
|
-
"name": "role",
|
693
|
-
"type": "bytes32"
|
694
|
-
}
|
695
|
-
],
|
696
|
-
"name": "getRoleMemberCount",
|
697
|
-
"outputs": [
|
698
|
-
{
|
699
|
-
"internalType": "uint256",
|
700
|
-
"name": "roleMembers",
|
701
|
-
"type": "uint256"
|
702
|
-
}
|
703
|
-
],
|
704
|
-
"stateMutability": "view",
|
705
|
-
"type": "function"
|
706
|
-
},
|
707
|
-
{
|
708
|
-
"inputs": [],
|
709
|
-
"name": "getType",
|
710
|
-
"outputs": [
|
711
|
-
{
|
712
|
-
"internalType": "uint256",
|
713
|
-
"name": "objectType",
|
714
|
-
"type": "uint256"
|
534
|
+
"internalType": "StateId",
|
535
|
+
"name": "newState",
|
536
|
+
"type": "uint8"
|
715
537
|
}
|
716
538
|
],
|
717
|
-
"
|
539
|
+
"name": "updateBundle",
|
540
|
+
"outputs": [],
|
541
|
+
"stateMutability": "nonpayable",
|
718
542
|
"type": "function"
|
719
543
|
},
|
720
544
|
{
|
721
545
|
"inputs": [
|
722
546
|
{
|
723
|
-
"internalType": "
|
724
|
-
"name": "
|
725
|
-
"type": "
|
547
|
+
"internalType": "NftId",
|
548
|
+
"name": "bundleNftId",
|
549
|
+
"type": "uint96"
|
726
550
|
},
|
727
551
|
{
|
728
|
-
"internalType": "
|
729
|
-
"name": "
|
730
|
-
"type": "
|
552
|
+
"internalType": "StateId",
|
553
|
+
"name": "newState",
|
554
|
+
"type": "uint8"
|
731
555
|
}
|
732
556
|
],
|
733
|
-
"name": "
|
557
|
+
"name": "updateBundleState",
|
734
558
|
"outputs": [],
|
735
559
|
"stateMutability": "nonpayable",
|
736
560
|
"type": "function"
|
@@ -738,131 +562,346 @@
|
|
738
562
|
{
|
739
563
|
"inputs": [
|
740
564
|
{
|
741
|
-
"internalType": "
|
742
|
-
"name": "
|
743
|
-
"type": "
|
565
|
+
"internalType": "NftId",
|
566
|
+
"name": "distributionNftId",
|
567
|
+
"type": "uint96"
|
744
568
|
},
|
745
569
|
{
|
746
|
-
"
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
570
|
+
"components": [
|
571
|
+
{
|
572
|
+
"internalType": "NftId",
|
573
|
+
"name": "productNftId",
|
574
|
+
"type": "uint96"
|
575
|
+
},
|
576
|
+
{
|
577
|
+
"internalType": "contract TokenHandler",
|
578
|
+
"name": "tokenHandler",
|
579
|
+
"type": "address"
|
580
|
+
},
|
581
|
+
{
|
582
|
+
"components": [
|
583
|
+
{
|
584
|
+
"internalType": "UFixed",
|
585
|
+
"name": "fractionalFee",
|
586
|
+
"type": "uint256"
|
587
|
+
},
|
588
|
+
{
|
589
|
+
"internalType": "uint256",
|
590
|
+
"name": "fixedFee",
|
591
|
+
"type": "uint256"
|
592
|
+
}
|
593
|
+
],
|
594
|
+
"internalType": "struct Fee",
|
595
|
+
"name": "distributionFee",
|
596
|
+
"type": "tuple"
|
597
|
+
},
|
598
|
+
{
|
599
|
+
"internalType": "bool",
|
600
|
+
"name": "isIntercepting",
|
601
|
+
"type": "bool"
|
602
|
+
},
|
603
|
+
{
|
604
|
+
"internalType": "address",
|
605
|
+
"name": "wallet",
|
606
|
+
"type": "address"
|
607
|
+
}
|
608
|
+
],
|
609
|
+
"internalType": "struct ISetup.DistributionSetupInfo",
|
610
|
+
"name": "setup",
|
611
|
+
"type": "tuple"
|
612
|
+
},
|
779
613
|
{
|
780
|
-
"internalType": "
|
781
|
-
"name": "",
|
782
|
-
"type": "
|
614
|
+
"internalType": "StateId",
|
615
|
+
"name": "newState",
|
616
|
+
"type": "uint8"
|
783
617
|
}
|
784
618
|
],
|
785
|
-
"
|
619
|
+
"name": "updateDistributionSetup",
|
620
|
+
"outputs": [],
|
621
|
+
"stateMutability": "nonpayable",
|
786
622
|
"type": "function"
|
787
623
|
},
|
788
624
|
{
|
789
|
-
"inputs": [
|
790
|
-
"name": "register",
|
791
|
-
"outputs": [
|
625
|
+
"inputs": [
|
792
626
|
{
|
793
627
|
"internalType": "NftId",
|
794
|
-
"name": "
|
628
|
+
"name": "distributionNftId",
|
795
629
|
"type": "uint96"
|
630
|
+
},
|
631
|
+
{
|
632
|
+
"internalType": "StateId",
|
633
|
+
"name": "newState",
|
634
|
+
"type": "uint8"
|
796
635
|
}
|
797
636
|
],
|
637
|
+
"name": "updateDistributionSetupState",
|
638
|
+
"outputs": [],
|
798
639
|
"stateMutability": "nonpayable",
|
799
640
|
"type": "function"
|
800
641
|
},
|
801
642
|
{
|
802
643
|
"inputs": [
|
803
|
-
{
|
804
|
-
"internalType": "contract IComponentContract",
|
805
|
-
"name": "component",
|
806
|
-
"type": "address"
|
807
|
-
}
|
808
|
-
],
|
809
|
-
"name": "registerComponent",
|
810
|
-
"outputs": [
|
811
644
|
{
|
812
645
|
"internalType": "NftId",
|
813
|
-
"name": "
|
646
|
+
"name": "poolNftId",
|
814
647
|
"type": "uint96"
|
648
|
+
},
|
649
|
+
{
|
650
|
+
"components": [
|
651
|
+
{
|
652
|
+
"internalType": "NftId",
|
653
|
+
"name": "productNftId",
|
654
|
+
"type": "uint96"
|
655
|
+
},
|
656
|
+
{
|
657
|
+
"internalType": "contract TokenHandler",
|
658
|
+
"name": "tokenHandler",
|
659
|
+
"type": "address"
|
660
|
+
},
|
661
|
+
{
|
662
|
+
"internalType": "UFixed",
|
663
|
+
"name": "collateralizationLevel",
|
664
|
+
"type": "uint256"
|
665
|
+
},
|
666
|
+
{
|
667
|
+
"components": [
|
668
|
+
{
|
669
|
+
"internalType": "UFixed",
|
670
|
+
"name": "fractionalFee",
|
671
|
+
"type": "uint256"
|
672
|
+
},
|
673
|
+
{
|
674
|
+
"internalType": "uint256",
|
675
|
+
"name": "fixedFee",
|
676
|
+
"type": "uint256"
|
677
|
+
}
|
678
|
+
],
|
679
|
+
"internalType": "struct Fee",
|
680
|
+
"name": "poolFee",
|
681
|
+
"type": "tuple"
|
682
|
+
},
|
683
|
+
{
|
684
|
+
"components": [
|
685
|
+
{
|
686
|
+
"internalType": "UFixed",
|
687
|
+
"name": "fractionalFee",
|
688
|
+
"type": "uint256"
|
689
|
+
},
|
690
|
+
{
|
691
|
+
"internalType": "uint256",
|
692
|
+
"name": "fixedFee",
|
693
|
+
"type": "uint256"
|
694
|
+
}
|
695
|
+
],
|
696
|
+
"internalType": "struct Fee",
|
697
|
+
"name": "stakingFee",
|
698
|
+
"type": "tuple"
|
699
|
+
},
|
700
|
+
{
|
701
|
+
"components": [
|
702
|
+
{
|
703
|
+
"internalType": "UFixed",
|
704
|
+
"name": "fractionalFee",
|
705
|
+
"type": "uint256"
|
706
|
+
},
|
707
|
+
{
|
708
|
+
"internalType": "uint256",
|
709
|
+
"name": "fixedFee",
|
710
|
+
"type": "uint256"
|
711
|
+
}
|
712
|
+
],
|
713
|
+
"internalType": "struct Fee",
|
714
|
+
"name": "performanceFee",
|
715
|
+
"type": "tuple"
|
716
|
+
},
|
717
|
+
{
|
718
|
+
"internalType": "bool",
|
719
|
+
"name": "isIntercepting",
|
720
|
+
"type": "bool"
|
721
|
+
},
|
722
|
+
{
|
723
|
+
"internalType": "address",
|
724
|
+
"name": "wallet",
|
725
|
+
"type": "address"
|
726
|
+
}
|
727
|
+
],
|
728
|
+
"internalType": "struct ISetup.PoolSetupInfo",
|
729
|
+
"name": "setup",
|
730
|
+
"type": "tuple"
|
731
|
+
},
|
732
|
+
{
|
733
|
+
"internalType": "StateId",
|
734
|
+
"name": "newState",
|
735
|
+
"type": "uint8"
|
815
736
|
}
|
816
737
|
],
|
738
|
+
"name": "updatePoolSetup",
|
739
|
+
"outputs": [],
|
817
740
|
"stateMutability": "nonpayable",
|
818
741
|
"type": "function"
|
819
742
|
},
|
820
743
|
{
|
821
744
|
"inputs": [
|
822
745
|
{
|
823
|
-
"internalType": "
|
824
|
-
"name": "
|
825
|
-
"type": "
|
746
|
+
"internalType": "NftId",
|
747
|
+
"name": "poolNftId",
|
748
|
+
"type": "uint96"
|
826
749
|
},
|
827
750
|
{
|
828
|
-
"internalType": "
|
829
|
-
"name": "
|
830
|
-
"type": "
|
751
|
+
"internalType": "StateId",
|
752
|
+
"name": "newState",
|
753
|
+
"type": "uint8"
|
831
754
|
}
|
832
755
|
],
|
833
|
-
"name": "
|
756
|
+
"name": "updatePoolSetupState",
|
834
757
|
"outputs": [],
|
835
758
|
"stateMutability": "nonpayable",
|
836
759
|
"type": "function"
|
837
760
|
},
|
838
761
|
{
|
839
762
|
"inputs": [
|
763
|
+
{
|
764
|
+
"internalType": "NftId",
|
765
|
+
"name": "productNftId",
|
766
|
+
"type": "uint96"
|
767
|
+
},
|
840
768
|
{
|
841
769
|
"components": [
|
770
|
+
{
|
771
|
+
"internalType": "contract IERC20Metadata",
|
772
|
+
"name": "token",
|
773
|
+
"type": "address"
|
774
|
+
},
|
775
|
+
{
|
776
|
+
"internalType": "contract TokenHandler",
|
777
|
+
"name": "tokenHandler",
|
778
|
+
"type": "address"
|
779
|
+
},
|
780
|
+
{
|
781
|
+
"internalType": "NftId",
|
782
|
+
"name": "distributionNftId",
|
783
|
+
"type": "uint96"
|
784
|
+
},
|
842
785
|
{
|
843
786
|
"internalType": "NftId",
|
844
|
-
"name": "
|
787
|
+
"name": "poolNftId",
|
845
788
|
"type": "uint96"
|
846
789
|
},
|
847
790
|
{
|
848
|
-
"
|
849
|
-
|
850
|
-
|
791
|
+
"components": [
|
792
|
+
{
|
793
|
+
"internalType": "UFixed",
|
794
|
+
"name": "fractionalFee",
|
795
|
+
"type": "uint256"
|
796
|
+
},
|
797
|
+
{
|
798
|
+
"internalType": "uint256",
|
799
|
+
"name": "fixedFee",
|
800
|
+
"type": "uint256"
|
801
|
+
}
|
802
|
+
],
|
803
|
+
"internalType": "struct Fee",
|
804
|
+
"name": "distributionFee",
|
805
|
+
"type": "tuple"
|
806
|
+
},
|
807
|
+
{
|
808
|
+
"components": [
|
809
|
+
{
|
810
|
+
"internalType": "UFixed",
|
811
|
+
"name": "fractionalFee",
|
812
|
+
"type": "uint256"
|
813
|
+
},
|
814
|
+
{
|
815
|
+
"internalType": "uint256",
|
816
|
+
"name": "fixedFee",
|
817
|
+
"type": "uint256"
|
818
|
+
}
|
819
|
+
],
|
820
|
+
"internalType": "struct Fee",
|
821
|
+
"name": "productFee",
|
822
|
+
"type": "tuple"
|
823
|
+
},
|
824
|
+
{
|
825
|
+
"components": [
|
826
|
+
{
|
827
|
+
"internalType": "UFixed",
|
828
|
+
"name": "fractionalFee",
|
829
|
+
"type": "uint256"
|
830
|
+
},
|
831
|
+
{
|
832
|
+
"internalType": "uint256",
|
833
|
+
"name": "fixedFee",
|
834
|
+
"type": "uint256"
|
835
|
+
}
|
836
|
+
],
|
837
|
+
"internalType": "struct Fee",
|
838
|
+
"name": "processingFee",
|
839
|
+
"type": "tuple"
|
840
|
+
},
|
841
|
+
{
|
842
|
+
"components": [
|
843
|
+
{
|
844
|
+
"internalType": "UFixed",
|
845
|
+
"name": "fractionalFee",
|
846
|
+
"type": "uint256"
|
847
|
+
},
|
848
|
+
{
|
849
|
+
"internalType": "uint256",
|
850
|
+
"name": "fixedFee",
|
851
|
+
"type": "uint256"
|
852
|
+
}
|
853
|
+
],
|
854
|
+
"internalType": "struct Fee",
|
855
|
+
"name": "poolFee",
|
856
|
+
"type": "tuple"
|
857
|
+
},
|
858
|
+
{
|
859
|
+
"components": [
|
860
|
+
{
|
861
|
+
"internalType": "UFixed",
|
862
|
+
"name": "fractionalFee",
|
863
|
+
"type": "uint256"
|
864
|
+
},
|
865
|
+
{
|
866
|
+
"internalType": "uint256",
|
867
|
+
"name": "fixedFee",
|
868
|
+
"type": "uint256"
|
869
|
+
}
|
870
|
+
],
|
871
|
+
"internalType": "struct Fee",
|
872
|
+
"name": "stakingFee",
|
873
|
+
"type": "tuple"
|
874
|
+
},
|
875
|
+
{
|
876
|
+
"components": [
|
877
|
+
{
|
878
|
+
"internalType": "UFixed",
|
879
|
+
"name": "fractionalFee",
|
880
|
+
"type": "uint256"
|
881
|
+
},
|
882
|
+
{
|
883
|
+
"internalType": "uint256",
|
884
|
+
"name": "fixedFee",
|
885
|
+
"type": "uint256"
|
886
|
+
}
|
887
|
+
],
|
888
|
+
"internalType": "struct Fee",
|
889
|
+
"name": "performanceFee",
|
890
|
+
"type": "tuple"
|
851
891
|
}
|
852
892
|
],
|
853
|
-
"internalType": "struct
|
854
|
-
"name": "
|
893
|
+
"internalType": "struct ISetup.ProductSetupInfo",
|
894
|
+
"name": "setup",
|
855
895
|
"type": "tuple"
|
856
|
-
}
|
857
|
-
],
|
858
|
-
"name": "setComponentInfo",
|
859
|
-
"outputs": [
|
896
|
+
},
|
860
897
|
{
|
861
|
-
"internalType": "
|
862
|
-
"name": "
|
863
|
-
"type": "
|
898
|
+
"internalType": "StateId",
|
899
|
+
"name": "newState",
|
900
|
+
"type": "uint8"
|
864
901
|
}
|
865
902
|
],
|
903
|
+
"name": "updateProductSetup",
|
904
|
+
"outputs": [],
|
866
905
|
"stateMutability": "nonpayable",
|
867
906
|
"type": "function"
|
868
907
|
},
|
@@ -870,16 +909,16 @@
|
|
870
909
|
"inputs": [
|
871
910
|
{
|
872
911
|
"internalType": "NftId",
|
873
|
-
"name": "
|
912
|
+
"name": "productNftId",
|
874
913
|
"type": "uint96"
|
875
914
|
},
|
876
915
|
{
|
877
|
-
"internalType": "
|
878
|
-
"name": "
|
879
|
-
"type": "
|
916
|
+
"internalType": "StateId",
|
917
|
+
"name": "newState",
|
918
|
+
"type": "uint8"
|
880
919
|
}
|
881
920
|
],
|
882
|
-
"name": "
|
921
|
+
"name": "updateProductSetupState",
|
883
922
|
"outputs": [],
|
884
923
|
"stateMutability": "nonpayable",
|
885
924
|
"type": "function"
|