@etherisc/gif-next 0.0.2-d3543ee-217 → 0.0.2-d408403-475
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +125 -6
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +4 -0
- package/artifacts/contracts/components/{Component.sol/Component.json → BaseComponent.sol/BaseComponent.json} +26 -57
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +405 -0
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +4 -0
- package/artifacts/contracts/{instance/component/IComponent.sol/IComponentContract.json → components/IBaseComponent.sol/IBaseComponent.json} +26 -57
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
- package/artifacts/contracts/components/{IPool.sol/IPoolComponent.json → IDistributionComponent.sol/IDistributionComponent.json} +162 -77
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +487 -0
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +370 -0
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +290 -40
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +167 -69
- 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 +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/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/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1148 -620
- package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +4 -0
- package/artifacts/contracts/instance/{component/IComponent.sol → IInstanceLinked.sol}/IInstanceLinked.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +1457 -797
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/{component/ComponentModule.sol/ComponentModule.json → base/ComponentServiceBase.sol/ComponentServiceBase.json} +133 -132
- 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 +560 -0
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
- package/artifacts/contracts/instance/{lifecycle/ILifecycle.sol/ILifecycleModule.json → base/ILifecycle.sol/ILifecycle.json} +10 -77
- package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +4 -0
- package/artifacts/contracts/instance/base/IService.sol/IService.json +300 -0
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +376 -0
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +710 -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/base/ModuleBase.sol/ModuleBase.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.json +10 -0
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +300 -0
- package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +4 -0
- package/artifacts/contracts/instance/{access → module/access}/Access.sol/AccessModule.json +85 -152
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +4 -0
- package/artifacts/contracts/instance/{access → module/access}/IAccess.sol/IAccess.json +1 -1
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +4 -0
- package/artifacts/contracts/instance/{access → module/access}/IAccess.sol/IAccessModule.json +96 -99
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +297 -0
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +4 -0
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.json +10 -0
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +297 -0
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +117 -0
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/instance/{component → module/component}/IComponent.sol/IComponent.json +1 -1
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +4 -0
- package/artifacts/contracts/instance/{product/IProductService.sol/IProductService.json → module/component/IComponent.sol/IComponentModule.json} +51 -61
- package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +10 -0
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +4 -0
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.json +10 -0
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.json +10 -0
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +4 -0
- package/artifacts/contracts/instance/{policy → module/policy}/IPolicy.sol/IPolicy.json +1 -1
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +4 -0
- package/artifacts/contracts/instance/{policy → module/policy}/IPolicy.sol/IPolicyModule.json +147 -117
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +4 -0
- package/artifacts/contracts/instance/{policy → module/policy}/PolicyModule.sol/PolicyModule.json +148 -118
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +4 -0
- package/artifacts/contracts/instance/{pool → module/pool}/IPoolModule.sol/IPool.json +1 -1
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +4 -0
- package/artifacts/contracts/instance/{pool → module/pool}/IPoolModule.sol/IPoolModule.json +67 -52
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +4 -0
- package/artifacts/contracts/instance/{pool → module/pool}/PoolModule.sol/PoolModule.json +51 -62
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +4 -0
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.json +10 -0
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +113 -0
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +131 -0
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +4 -0
- package/artifacts/contracts/instance/{treasury → module/treasury}/ITreasury.sol/ITreasury.json +1 -1
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +4 -0
- package/artifacts/contracts/instance/{treasury → module/treasury}/ITreasury.sol/ITreasuryModule.json +278 -257
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +4 -0
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +76 -0
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +4 -0
- package/artifacts/contracts/instance/{treasury → module/treasury}/TreasuryModule.sol/TreasuryModule.json +278 -257
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +531 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +420 -0
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +364 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +325 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +440 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +630 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +543 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +858 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +65 -2
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +147 -30
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +24 -0
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +241 -25
- 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/IOwnable.sol/IOwnable.dbg.json +4 -0
- package/artifacts/contracts/{registry/IRegistry.sol → shared/IOwnable.sol}/IOwnable.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
- package/artifacts/contracts/{registry/IRegistry.sol → shared/IRegisterable.sol}/IRegisterable.json +16 -61
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +164 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
- package/artifacts/contracts/{registry/Registry.sol → shared/Registerable.sol}/Registerable.json +16 -61
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
- package/artifacts/contracts/shared/Versionable.sol/Versionable.json +164 -0
- package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +4 -0
- package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +405 -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/TestPool.sol/TestPool.dbg.json +4 -0
- package/artifacts/contracts/test/TestPool.sol/TestPool.json +578 -0
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +4 -0
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +575 -0
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +137 -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 +379 -0
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +338 -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 +206 -0
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
- package/artifacts/contracts/test/Usdc.sol/USDC.json +338 -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/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 +111 -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/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
- package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +99 -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 +30 -0
- 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 +64 -2
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +88 -62
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
- package/artifacts/contracts/types/Version.sol/VersionLib.json +139 -0
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +30 -0
- package/contracts/components/BaseComponent.sol +94 -0
- package/contracts/components/Distribution.sol +132 -0
- package/contracts/components/IBaseComponent.sol +19 -0
- package/contracts/components/IDistributionComponent.sol +48 -0
- package/contracts/components/IPoolComponent.sol +71 -0
- package/contracts/components/IProductComponent.sol +38 -0
- package/contracts/components/Pool.sol +199 -16
- package/contracts/components/Product.sol +169 -31
- package/contracts/instance/IInstance.sol +39 -11
- package/contracts/instance/IInstanceLinked.sol +8 -0
- package/contracts/instance/Instance.sol +51 -49
- package/contracts/instance/base/ComponentServiceBase.sol +42 -0
- package/contracts/instance/base/IInstanceBase.sol +22 -0
- package/contracts/instance/base/IKeyValueStore.sol +50 -0
- package/contracts/instance/{lifecycle → base}/ILifecycle.sol +4 -21
- package/contracts/instance/base/IService.sol +15 -0
- package/contracts/instance/base/InstanceBase.sol +91 -0
- package/contracts/instance/base/KeyValueStore.sol +161 -0
- package/contracts/instance/base/Lifecycle.sol +100 -0
- package/contracts/instance/base/ModuleBase.sol +57 -0
- package/contracts/instance/base/ServiceBase.sol +37 -0
- package/contracts/instance/module/access/Access.sol +149 -0
- package/contracts/instance/module/access/IAccess.sol +53 -0
- package/contracts/instance/module/bundle/BundleModule.sol +134 -0
- package/contracts/instance/module/bundle/IBundle.sol +53 -0
- package/contracts/instance/module/component/ComponentModule.sol +70 -0
- package/contracts/instance/module/component/IComponent.sol +28 -0
- package/contracts/instance/module/distribution/DistributionModule.sol +17 -0
- package/contracts/instance/module/distribution/IDistribution.sol +10 -0
- package/contracts/instance/module/policy/IPolicy.sol +63 -0
- package/contracts/instance/module/policy/PolicyModule.sol +91 -0
- package/contracts/instance/module/pool/IPoolModule.sol +40 -0
- package/contracts/instance/module/pool/PoolModule.sol +90 -0
- package/contracts/instance/module/risk/IRisk.sol +26 -0
- package/contracts/instance/module/risk/RiskModule.sol +62 -0
- package/contracts/instance/module/treasury/ITreasury.sol +82 -0
- package/contracts/instance/module/treasury/TokenHandler.sol +48 -0
- package/contracts/instance/module/treasury/TreasuryModule.sol +138 -0
- package/contracts/instance/service/ComponentOwnerService.sol +157 -0
- package/contracts/instance/service/DistributionService.sol +59 -0
- package/contracts/instance/service/IComponentOwnerService.sol +22 -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 +149 -0
- package/contracts/instance/service/ProductService.sol +509 -0
- package/contracts/registry/ChainNft.sol +61 -37
- package/contracts/registry/IRegistry.sol +24 -34
- package/contracts/registry/IRegistryLinked.sol +8 -0
- package/contracts/registry/Registry.sol +285 -85
- package/contracts/shared/ERC165.sol +21 -0
- package/contracts/shared/IOwnable.sol +6 -0
- package/contracts/shared/IRegisterable.sol +24 -0
- package/contracts/shared/IVersionable.sol +52 -0
- package/contracts/shared/Registerable.sol +86 -0
- package/contracts/shared/Versionable.sol +89 -0
- package/contracts/test/TestDistribution.sol +21 -0
- package/contracts/test/TestFee.sol +25 -0
- package/contracts/test/TestPool.sol +25 -0
- package/contracts/test/TestProduct.sol +72 -0
- package/contracts/test/TestRegisterable.sol +19 -0
- package/contracts/test/TestRoleId.sol +14 -0
- package/contracts/test/TestService.sol +32 -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/Fee.sol +44 -20
- package/contracts/types/Key32.sol +45 -0
- package/contracts/types/NftId.sol +22 -1
- package/contracts/types/NftIdSet.sol +60 -0
- package/contracts/types/ObjectType.sol +37 -13
- package/contracts/types/ReferralId.sol +48 -0
- package/contracts/types/RiskId.sol +43 -0
- package/contracts/types/RoleId.sol +38 -0
- package/contracts/types/StateId.sol +13 -3
- package/contracts/types/Timestamp.sol +22 -1
- package/contracts/types/UFixed.sol +26 -23
- package/contracts/types/Version.sol +95 -0
- package/package.json +12 -4
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +0 -4
- 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/IProduct.sol/IProductComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +0 -74
- package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +0 -4
- 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/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 -202
- 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/IComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +0 -217
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +0 -141
- package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
- package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.dbg.json +0 -4
- package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.json +0 -134
- package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycleModule.dbg.json +0 -4
- package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.dbg.json +0 -4
- package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.json +0 -221
- 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/PolicyModule.sol/PolicyModule.dbg.json +0 -4
- 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/PoolModule.sol/PoolModule.dbg.json +0 -4
- 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/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 -196
- package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
- package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
- package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
- package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.json +0 -45
- package/artifacts/contracts/instance/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
- 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/RegistryLinked.dbg.json +0 -4
- package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +0 -60
- package/contracts/components/Component.sol +0 -77
- package/contracts/components/IPool.sol +0 -15
- package/contracts/components/IProduct.sol +0 -16
- package/contracts/instance/access/Access.sol +0 -165
- package/contracts/instance/access/IAccess.sol +0 -63
- package/contracts/instance/component/ComponentModule.sol +0 -274
- package/contracts/instance/component/IComponent.sol +0 -74
- package/contracts/instance/lifecycle/LifecycleModule.sol +0 -88
- package/contracts/instance/policy/IPolicy.sol +0 -50
- package/contracts/instance/policy/PolicyModule.sol +0 -114
- package/contracts/instance/pool/IPoolModule.sol +0 -23
- package/contracts/instance/pool/PoolModule.sol +0 -81
- package/contracts/instance/product/IProductService.sol +0 -36
- package/contracts/instance/product/ProductService.sol +0 -136
- package/contracts/instance/treasury/ITreasury.sol +0 -91
- package/contracts/instance/treasury/TokenHandler.sol +0 -24
- package/contracts/instance/treasury/TreasuryModule.sol +0 -168
@@ -1,40 +1,64 @@
|
|
1
1
|
{
|
2
2
|
"_format": "hh-sol-artifact-1",
|
3
3
|
"contractName": "TreasuryModule",
|
4
|
-
"sourceName": "contracts/instance/treasury/TreasuryModule.sol",
|
4
|
+
"sourceName": "contracts/instance/module/treasury/TreasuryModule.sol",
|
5
5
|
"abi": [
|
6
6
|
{
|
7
|
-
"anonymous": false,
|
8
7
|
"inputs": [
|
9
8
|
{
|
10
|
-
"indexed": false,
|
11
9
|
"internalType": "uint256",
|
12
|
-
"name": "
|
10
|
+
"name": "amount",
|
13
11
|
"type": "uint256"
|
14
12
|
},
|
15
13
|
{
|
16
|
-
"
|
17
|
-
|
18
|
-
|
19
|
-
|
14
|
+
"components": [
|
15
|
+
{
|
16
|
+
"internalType": "UFixed",
|
17
|
+
"name": "fractionalFee",
|
18
|
+
"type": "uint256"
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"internalType": "uint256",
|
22
|
+
"name": "fixedFee",
|
23
|
+
"type": "uint256"
|
24
|
+
}
|
25
|
+
],
|
26
|
+
"internalType": "struct Fee",
|
27
|
+
"name": "fee",
|
28
|
+
"type": "tuple"
|
29
|
+
}
|
30
|
+
],
|
31
|
+
"name": "calculateFeeAmount",
|
32
|
+
"outputs": [
|
33
|
+
{
|
34
|
+
"internalType": "uint256",
|
35
|
+
"name": "feeAmount",
|
36
|
+
"type": "uint256"
|
20
37
|
},
|
21
38
|
{
|
22
|
-
"
|
23
|
-
"
|
24
|
-
"
|
25
|
-
"type": "string"
|
39
|
+
"internalType": "uint256",
|
40
|
+
"name": "netAmount",
|
41
|
+
"type": "uint256"
|
26
42
|
}
|
27
43
|
],
|
28
|
-
"
|
29
|
-
"type": "
|
44
|
+
"stateMutability": "pure",
|
45
|
+
"type": "function"
|
30
46
|
},
|
31
47
|
{
|
32
48
|
"inputs": [
|
33
49
|
{
|
34
|
-
"internalType": "
|
35
|
-
"name": "
|
50
|
+
"internalType": "UFixed",
|
51
|
+
"name": "fractionalFee",
|
36
52
|
"type": "uint256"
|
37
53
|
},
|
54
|
+
{
|
55
|
+
"internalType": "uint256",
|
56
|
+
"name": "fixedFee",
|
57
|
+
"type": "uint256"
|
58
|
+
}
|
59
|
+
],
|
60
|
+
"name": "getFee",
|
61
|
+
"outputs": [
|
38
62
|
{
|
39
63
|
"components": [
|
40
64
|
{
|
@@ -53,31 +77,56 @@
|
|
53
77
|
"type": "tuple"
|
54
78
|
}
|
55
79
|
],
|
56
|
-
"
|
80
|
+
"stateMutability": "pure",
|
81
|
+
"type": "function"
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"inputs": [
|
85
|
+
{
|
86
|
+
"internalType": "NftId",
|
87
|
+
"name": "componentNftId",
|
88
|
+
"type": "uint96"
|
89
|
+
}
|
90
|
+
],
|
91
|
+
"name": "getProductNftId",
|
57
92
|
"outputs": [
|
58
93
|
{
|
59
|
-
"internalType": "
|
60
|
-
"name": "
|
61
|
-
"type": "
|
62
|
-
}
|
94
|
+
"internalType": "NftId",
|
95
|
+
"name": "productNftId",
|
96
|
+
"type": "uint96"
|
97
|
+
}
|
98
|
+
],
|
99
|
+
"stateMutability": "view",
|
100
|
+
"type": "function"
|
101
|
+
},
|
102
|
+
{
|
103
|
+
"inputs": [
|
63
104
|
{
|
64
|
-
"internalType": "
|
65
|
-
"name": "
|
66
|
-
"type": "
|
105
|
+
"internalType": "NftId",
|
106
|
+
"name": "componentNftId",
|
107
|
+
"type": "uint96"
|
67
108
|
}
|
68
109
|
],
|
69
|
-
"
|
110
|
+
"name": "getTokenHandler",
|
111
|
+
"outputs": [
|
112
|
+
{
|
113
|
+
"internalType": "contract TokenHandler",
|
114
|
+
"name": "tokenHandler",
|
115
|
+
"type": "address"
|
116
|
+
}
|
117
|
+
],
|
118
|
+
"stateMutability": "view",
|
70
119
|
"type": "function"
|
71
120
|
},
|
72
121
|
{
|
73
122
|
"inputs": [
|
74
123
|
{
|
75
124
|
"internalType": "NftId",
|
76
|
-
"name": "
|
125
|
+
"name": "productNftId",
|
77
126
|
"type": "uint96"
|
78
127
|
}
|
79
128
|
],
|
80
|
-
"name": "
|
129
|
+
"name": "getTreasuryInfo",
|
81
130
|
"outputs": [
|
82
131
|
{
|
83
132
|
"components": [
|
@@ -87,8 +136,13 @@
|
|
87
136
|
"type": "uint96"
|
88
137
|
},
|
89
138
|
{
|
90
|
-
"internalType": "
|
91
|
-
"name": "
|
139
|
+
"internalType": "NftId",
|
140
|
+
"name": "distributionNftId",
|
141
|
+
"type": "uint96"
|
142
|
+
},
|
143
|
+
{
|
144
|
+
"internalType": "contract IERC20Metadata",
|
145
|
+
"name": "token",
|
92
146
|
"type": "address"
|
93
147
|
},
|
94
148
|
{
|
@@ -105,7 +159,7 @@
|
|
105
159
|
}
|
106
160
|
],
|
107
161
|
"internalType": "struct Fee",
|
108
|
-
"name": "
|
162
|
+
"name": "productFee",
|
109
163
|
"type": "tuple"
|
110
164
|
},
|
111
165
|
{
|
@@ -122,59 +176,42 @@
|
|
122
176
|
}
|
123
177
|
],
|
124
178
|
"internalType": "struct Fee",
|
125
|
-
"name": "
|
179
|
+
"name": "processingFee",
|
126
180
|
"type": "tuple"
|
127
|
-
}
|
128
|
-
],
|
129
|
-
"internalType": "struct ITreasuryModule.PoolSetup",
|
130
|
-
"name": "setup",
|
131
|
-
"type": "tuple"
|
132
|
-
}
|
133
|
-
],
|
134
|
-
"stateMutability": "view",
|
135
|
-
"type": "function"
|
136
|
-
},
|
137
|
-
{
|
138
|
-
"inputs": [
|
139
|
-
{
|
140
|
-
"internalType": "NftId",
|
141
|
-
"name": "productNftId",
|
142
|
-
"type": "uint96"
|
143
|
-
}
|
144
|
-
],
|
145
|
-
"name": "getProductSetup",
|
146
|
-
"outputs": [
|
147
|
-
{
|
148
|
-
"components": [
|
149
|
-
{
|
150
|
-
"internalType": "NftId",
|
151
|
-
"name": "productNftId",
|
152
|
-
"type": "uint96"
|
153
|
-
},
|
154
|
-
{
|
155
|
-
"internalType": "NftId",
|
156
|
-
"name": "distributorNftId",
|
157
|
-
"type": "uint96"
|
158
|
-
},
|
159
|
-
{
|
160
|
-
"internalType": "NftId",
|
161
|
-
"name": "poolNftId",
|
162
|
-
"type": "uint96"
|
163
|
-
},
|
164
|
-
{
|
165
|
-
"internalType": "contract IERC20",
|
166
|
-
"name": "token",
|
167
|
-
"type": "address"
|
168
181
|
},
|
169
182
|
{
|
170
|
-
"
|
171
|
-
|
172
|
-
|
183
|
+
"components": [
|
184
|
+
{
|
185
|
+
"internalType": "UFixed",
|
186
|
+
"name": "fractionalFee",
|
187
|
+
"type": "uint256"
|
188
|
+
},
|
189
|
+
{
|
190
|
+
"internalType": "uint256",
|
191
|
+
"name": "fixedFee",
|
192
|
+
"type": "uint256"
|
193
|
+
}
|
194
|
+
],
|
195
|
+
"internalType": "struct Fee",
|
196
|
+
"name": "poolFee",
|
197
|
+
"type": "tuple"
|
173
198
|
},
|
174
199
|
{
|
175
|
-
"
|
176
|
-
|
177
|
-
|
200
|
+
"components": [
|
201
|
+
{
|
202
|
+
"internalType": "UFixed",
|
203
|
+
"name": "fractionalFee",
|
204
|
+
"type": "uint256"
|
205
|
+
},
|
206
|
+
{
|
207
|
+
"internalType": "uint256",
|
208
|
+
"name": "fixedFee",
|
209
|
+
"type": "uint256"
|
210
|
+
}
|
211
|
+
],
|
212
|
+
"internalType": "struct Fee",
|
213
|
+
"name": "stakingFee",
|
214
|
+
"type": "tuple"
|
178
215
|
},
|
179
216
|
{
|
180
217
|
"components": [
|
@@ -190,7 +227,7 @@
|
|
190
227
|
}
|
191
228
|
],
|
192
229
|
"internalType": "struct Fee",
|
193
|
-
"name": "
|
230
|
+
"name": "performanceFee",
|
194
231
|
"type": "tuple"
|
195
232
|
},
|
196
233
|
{
|
@@ -207,97 +244,65 @@
|
|
207
244
|
}
|
208
245
|
],
|
209
246
|
"internalType": "struct Fee",
|
210
|
-
"name": "
|
247
|
+
"name": "distributionFee",
|
211
248
|
"type": "tuple"
|
212
249
|
}
|
213
250
|
],
|
214
|
-
"internalType": "struct
|
215
|
-
"name": "
|
251
|
+
"internalType": "struct ITreasury.TreasuryInfo",
|
252
|
+
"name": "info",
|
216
253
|
"type": "tuple"
|
217
254
|
}
|
218
255
|
],
|
219
256
|
"stateMutability": "view",
|
220
257
|
"type": "function"
|
221
258
|
},
|
222
|
-
{
|
223
|
-
"inputs": [],
|
224
|
-
"name": "getRegistry",
|
225
|
-
"outputs": [
|
226
|
-
{
|
227
|
-
"internalType": "contract IRegistry",
|
228
|
-
"name": "registry",
|
229
|
-
"type": "address"
|
230
|
-
}
|
231
|
-
],
|
232
|
-
"stateMutability": "view",
|
233
|
-
"type": "function"
|
234
|
-
},
|
235
259
|
{
|
236
260
|
"inputs": [
|
237
261
|
{
|
238
|
-
"internalType": "
|
239
|
-
"name": "
|
240
|
-
"type": "
|
262
|
+
"internalType": "uint256",
|
263
|
+
"name": "a",
|
264
|
+
"type": "uint256"
|
265
|
+
},
|
266
|
+
{
|
267
|
+
"internalType": "int8",
|
268
|
+
"name": "exp",
|
269
|
+
"type": "int8"
|
241
270
|
}
|
242
271
|
],
|
243
|
-
"name": "
|
272
|
+
"name": "getUFixed",
|
244
273
|
"outputs": [
|
245
274
|
{
|
246
|
-
"internalType": "
|
247
|
-
"name": "
|
248
|
-
"type": "
|
275
|
+
"internalType": "UFixed",
|
276
|
+
"name": "",
|
277
|
+
"type": "uint256"
|
249
278
|
}
|
250
279
|
],
|
251
|
-
"stateMutability": "
|
280
|
+
"stateMutability": "pure",
|
252
281
|
"type": "function"
|
253
282
|
},
|
254
283
|
{
|
255
284
|
"inputs": [
|
256
285
|
{
|
257
|
-
"internalType": "
|
258
|
-
"name": "
|
259
|
-
"type": "
|
260
|
-
}
|
286
|
+
"internalType": "uint256",
|
287
|
+
"name": "a",
|
288
|
+
"type": "uint256"
|
289
|
+
}
|
290
|
+
],
|
291
|
+
"name": "getUFixed",
|
292
|
+
"outputs": [
|
261
293
|
{
|
262
|
-
"internalType": "
|
263
|
-
"name": "
|
264
|
-
"type": "
|
294
|
+
"internalType": "UFixed",
|
295
|
+
"name": "",
|
296
|
+
"type": "uint256"
|
265
297
|
}
|
266
298
|
],
|
267
|
-
"
|
268
|
-
"outputs": [],
|
269
|
-
"stateMutability": "nonpayable",
|
299
|
+
"stateMutability": "pure",
|
270
300
|
"type": "function"
|
271
301
|
},
|
272
302
|
{
|
273
|
-
"inputs": [
|
274
|
-
|
275
|
-
|
276
|
-
"name": "poolNftId",
|
277
|
-
"type": "uint96"
|
278
|
-
},
|
279
|
-
{
|
280
|
-
"internalType": "address",
|
281
|
-
"name": "wallet",
|
282
|
-
"type": "address"
|
283
|
-
},
|
284
|
-
{
|
285
|
-
"components": [
|
286
|
-
{
|
287
|
-
"internalType": "UFixed",
|
288
|
-
"name": "fractionalFee",
|
289
|
-
"type": "uint256"
|
290
|
-
},
|
291
|
-
{
|
292
|
-
"internalType": "uint256",
|
293
|
-
"name": "fixedFee",
|
294
|
-
"type": "uint256"
|
295
|
-
}
|
296
|
-
],
|
297
|
-
"internalType": "struct Fee",
|
298
|
-
"name": "stakingFee",
|
299
|
-
"type": "tuple"
|
300
|
-
},
|
303
|
+
"inputs": [],
|
304
|
+
"name": "getZeroFee",
|
305
|
+
"outputs": [
|
301
306
|
{
|
302
307
|
"components": [
|
303
308
|
{
|
@@ -312,13 +317,11 @@
|
|
312
317
|
}
|
313
318
|
],
|
314
319
|
"internalType": "struct Fee",
|
315
|
-
"name": "
|
320
|
+
"name": "fee",
|
316
321
|
"type": "tuple"
|
317
322
|
}
|
318
323
|
],
|
319
|
-
"
|
320
|
-
"outputs": [],
|
321
|
-
"stateMutability": "nonpayable",
|
324
|
+
"stateMutability": "view",
|
322
325
|
"type": "function"
|
323
326
|
},
|
324
327
|
{
|
@@ -327,63 +330,38 @@
|
|
327
330
|
"internalType": "NftId",
|
328
331
|
"name": "productNftId",
|
329
332
|
"type": "uint96"
|
330
|
-
}
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
"type": "uint96"
|
335
|
-
},
|
333
|
+
}
|
334
|
+
],
|
335
|
+
"name": "hasTreasuryInfo",
|
336
|
+
"outputs": [
|
336
337
|
{
|
337
|
-
"internalType": "
|
338
|
-
"name": "
|
339
|
-
"type": "
|
340
|
-
}
|
338
|
+
"internalType": "bool",
|
339
|
+
"name": "hasInfo",
|
340
|
+
"type": "bool"
|
341
|
+
}
|
342
|
+
],
|
343
|
+
"stateMutability": "view",
|
344
|
+
"type": "function"
|
345
|
+
},
|
346
|
+
{
|
347
|
+
"inputs": [
|
341
348
|
{
|
342
|
-
"internalType": "contract
|
343
|
-
"name": "
|
349
|
+
"internalType": "contract IProductComponent",
|
350
|
+
"name": "product",
|
344
351
|
"type": "address"
|
345
352
|
},
|
346
353
|
{
|
347
|
-
"internalType": "
|
348
|
-
"name": "
|
354
|
+
"internalType": "contract IPoolComponent",
|
355
|
+
"name": "pool",
|
349
356
|
"type": "address"
|
350
357
|
},
|
351
358
|
{
|
352
|
-
"
|
353
|
-
|
354
|
-
|
355
|
-
"name": "fractionalFee",
|
356
|
-
"type": "uint256"
|
357
|
-
},
|
358
|
-
{
|
359
|
-
"internalType": "uint256",
|
360
|
-
"name": "fixedFee",
|
361
|
-
"type": "uint256"
|
362
|
-
}
|
363
|
-
],
|
364
|
-
"internalType": "struct Fee",
|
365
|
-
"name": "policyFee",
|
366
|
-
"type": "tuple"
|
367
|
-
},
|
368
|
-
{
|
369
|
-
"components": [
|
370
|
-
{
|
371
|
-
"internalType": "UFixed",
|
372
|
-
"name": "fractionalFee",
|
373
|
-
"type": "uint256"
|
374
|
-
},
|
375
|
-
{
|
376
|
-
"internalType": "uint256",
|
377
|
-
"name": "fixedFee",
|
378
|
-
"type": "uint256"
|
379
|
-
}
|
380
|
-
],
|
381
|
-
"internalType": "struct Fee",
|
382
|
-
"name": "processingFee",
|
383
|
-
"type": "tuple"
|
359
|
+
"internalType": "contract IDistributionComponent",
|
360
|
+
"name": "distribution",
|
361
|
+
"type": "address"
|
384
362
|
}
|
385
363
|
],
|
386
|
-
"name": "
|
364
|
+
"name": "registerProductSetup",
|
387
365
|
"outputs": [],
|
388
366
|
"stateMutability": "nonpayable",
|
389
367
|
"type": "function"
|
@@ -392,92 +370,135 @@
|
|
392
370
|
"inputs": [
|
393
371
|
{
|
394
372
|
"internalType": "NftId",
|
395
|
-
"name": "
|
373
|
+
"name": "productNftId",
|
396
374
|
"type": "uint96"
|
397
375
|
},
|
398
376
|
{
|
399
377
|
"components": [
|
400
378
|
{
|
401
|
-
"internalType": "
|
402
|
-
"name": "
|
403
|
-
"type": "
|
379
|
+
"internalType": "NftId",
|
380
|
+
"name": "poolNftId",
|
381
|
+
"type": "uint96"
|
404
382
|
},
|
405
383
|
{
|
406
|
-
"internalType": "
|
407
|
-
"name": "
|
408
|
-
"type": "
|
409
|
-
}
|
410
|
-
],
|
411
|
-
"internalType": "struct Fee",
|
412
|
-
"name": "stakingFee",
|
413
|
-
"type": "tuple"
|
414
|
-
},
|
415
|
-
{
|
416
|
-
"components": [
|
384
|
+
"internalType": "NftId",
|
385
|
+
"name": "distributionNftId",
|
386
|
+
"type": "uint96"
|
387
|
+
},
|
417
388
|
{
|
418
|
-
"internalType": "
|
419
|
-
"name": "
|
420
|
-
"type": "
|
389
|
+
"internalType": "contract IERC20Metadata",
|
390
|
+
"name": "token",
|
391
|
+
"type": "address"
|
421
392
|
},
|
422
393
|
{
|
423
|
-
"
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
"inputs": [
|
440
|
-
{
|
441
|
-
"internalType": "NftId",
|
442
|
-
"name": "productNftId",
|
443
|
-
"type": "uint96"
|
444
|
-
},
|
445
|
-
{
|
446
|
-
"components": [
|
394
|
+
"components": [
|
395
|
+
{
|
396
|
+
"internalType": "UFixed",
|
397
|
+
"name": "fractionalFee",
|
398
|
+
"type": "uint256"
|
399
|
+
},
|
400
|
+
{
|
401
|
+
"internalType": "uint256",
|
402
|
+
"name": "fixedFee",
|
403
|
+
"type": "uint256"
|
404
|
+
}
|
405
|
+
],
|
406
|
+
"internalType": "struct Fee",
|
407
|
+
"name": "productFee",
|
408
|
+
"type": "tuple"
|
409
|
+
},
|
447
410
|
{
|
448
|
-
"
|
449
|
-
|
450
|
-
|
411
|
+
"components": [
|
412
|
+
{
|
413
|
+
"internalType": "UFixed",
|
414
|
+
"name": "fractionalFee",
|
415
|
+
"type": "uint256"
|
416
|
+
},
|
417
|
+
{
|
418
|
+
"internalType": "uint256",
|
419
|
+
"name": "fixedFee",
|
420
|
+
"type": "uint256"
|
421
|
+
}
|
422
|
+
],
|
423
|
+
"internalType": "struct Fee",
|
424
|
+
"name": "processingFee",
|
425
|
+
"type": "tuple"
|
451
426
|
},
|
452
427
|
{
|
453
|
-
"
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
428
|
+
"components": [
|
429
|
+
{
|
430
|
+
"internalType": "UFixed",
|
431
|
+
"name": "fractionalFee",
|
432
|
+
"type": "uint256"
|
433
|
+
},
|
434
|
+
{
|
435
|
+
"internalType": "uint256",
|
436
|
+
"name": "fixedFee",
|
437
|
+
"type": "uint256"
|
438
|
+
}
|
439
|
+
],
|
440
|
+
"internalType": "struct Fee",
|
441
|
+
"name": "poolFee",
|
442
|
+
"type": "tuple"
|
443
|
+
},
|
464
444
|
{
|
465
|
-
"
|
466
|
-
|
467
|
-
|
445
|
+
"components": [
|
446
|
+
{
|
447
|
+
"internalType": "UFixed",
|
448
|
+
"name": "fractionalFee",
|
449
|
+
"type": "uint256"
|
450
|
+
},
|
451
|
+
{
|
452
|
+
"internalType": "uint256",
|
453
|
+
"name": "fixedFee",
|
454
|
+
"type": "uint256"
|
455
|
+
}
|
456
|
+
],
|
457
|
+
"internalType": "struct Fee",
|
458
|
+
"name": "stakingFee",
|
459
|
+
"type": "tuple"
|
468
460
|
},
|
469
461
|
{
|
470
|
-
"
|
471
|
-
|
472
|
-
|
462
|
+
"components": [
|
463
|
+
{
|
464
|
+
"internalType": "UFixed",
|
465
|
+
"name": "fractionalFee",
|
466
|
+
"type": "uint256"
|
467
|
+
},
|
468
|
+
{
|
469
|
+
"internalType": "uint256",
|
470
|
+
"name": "fixedFee",
|
471
|
+
"type": "uint256"
|
472
|
+
}
|
473
|
+
],
|
474
|
+
"internalType": "struct Fee",
|
475
|
+
"name": "performanceFee",
|
476
|
+
"type": "tuple"
|
477
|
+
},
|
478
|
+
{
|
479
|
+
"components": [
|
480
|
+
{
|
481
|
+
"internalType": "UFixed",
|
482
|
+
"name": "fractionalFee",
|
483
|
+
"type": "uint256"
|
484
|
+
},
|
485
|
+
{
|
486
|
+
"internalType": "uint256",
|
487
|
+
"name": "fixedFee",
|
488
|
+
"type": "uint256"
|
489
|
+
}
|
490
|
+
],
|
491
|
+
"internalType": "struct Fee",
|
492
|
+
"name": "distributionFee",
|
493
|
+
"type": "tuple"
|
473
494
|
}
|
474
495
|
],
|
475
|
-
"internalType": "struct
|
476
|
-
"name": "
|
496
|
+
"internalType": "struct ITreasury.TreasuryInfo",
|
497
|
+
"name": "info",
|
477
498
|
"type": "tuple"
|
478
499
|
}
|
479
500
|
],
|
480
|
-
"name": "
|
501
|
+
"name": "setTreasuryInfo",
|
481
502
|
"outputs": [],
|
482
503
|
"stateMutability": "nonpayable",
|
483
504
|
"type": "function"
|