@etherisc/gif-next 0.0.2-e6ad61d-739 → 0.0.2-e9148e0-933
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +268 -7
- 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} +171 -143
- 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/components/{IPool.sol/IPoolComponent.json → IBaseComponent.sol/IBaseComponent.json} +136 -111
- 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/{instance/policy/IPolicy.sol/IPolicyModule.json → components/IPoolComponent.sol/IPoolComponent.json} +124 -129
- 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 +531 -77
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +470 -97
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +4 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +66 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +4 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +24 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +4 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +42 -0
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
- package/artifacts/contracts/instance/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 +536 -1084
- 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 +2805 -978
- 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 +931 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +508 -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/{lifecycle/ILifecycle.sol/ILifecycleModule.json → base/ILifecycle.sol/ILifecycle.json} +10 -77
- 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/{component/IComponent.sol/IComponent.json → module/IDistribution.sol/IDistribution.json} +2 -2
- 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/module/ISetup.sol/ISetup.json +10 -0
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
- package/artifacts/contracts/instance/{treasury → module}/ITreasury.sol/ITreasury.json +1 -1
- 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 +465 -27
- 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 +596 -43
- 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/{components/Component.sol/Component.json → shared/IRegisterable.sol/IRegisterable.json} +98 -102
- 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/ChainId.sol/ChainIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +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 +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
- package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +156 -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 +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 +215 -25
- package/contracts/components/Product.sol +240 -45
- package/contracts/experiment/cloning/Cloner.sol +47 -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 -24
- package/contracts/instance/IInstanceService.sol +30 -0
- package/contracts/instance/Instance.sol +423 -52
- package/contracts/instance/InstanceAccessManager.sol +288 -0
- package/contracts/instance/InstanceReader.sol +306 -0
- package/contracts/instance/InstanceService.sol +192 -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 +55 -43
- package/contracts/registry/IRegistryService.sol +50 -0
- package/contracts/registry/ITransferInterceptor.sol +6 -0
- package/contracts/registry/Registry.sol +388 -126
- 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 +44 -20
- 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 +60 -15
- package/contracts/types/Referral.sol +85 -0
- package/contracts/types/RiskId.sol +43 -0
- package/contracts/types/RoleId.sol +90 -0
- package/contracts/types/StateId.sol +18 -4
- package/contracts/types/Timestamp.sol +29 -4
- package/contracts/types/UFixed.sol +138 -23
- package/contracts/types/Version.sol +107 -0
- package/package.json +12 -5
- 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/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 -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/IComponentContract.json +0 -205
- 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/component/IComponent.sol/IInstanceLinked.json +0 -24
- 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/policy/PolicyModule.sol/PolicyModule.json +0 -254
- 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 -129
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.json +0 -155
- 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 -127
- 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/ITreasury.sol/ITreasuryModule.json +0 -490
- 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/instance/treasury/TreasuryModule.sol/TreasuryModule.json +0 -490
- 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 -479
- package/contracts/components/Component.sol +0 -77
- package/contracts/components/IPool.sol +0 -15
- package/contracts/components/IProduct.sol +0 -16
- package/contracts/experiment/statemachine/README.md +0 -112
- 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/ILifecycle.sol +0 -47
- 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
- package/contracts/registry/IChainNft.sol +0 -21
@@ -5,599 +5,53 @@
|
|
5
5
|
"abi": [
|
6
6
|
{
|
7
7
|
"inputs": [
|
8
|
-
{
|
9
|
-
"internalType": "NftId",
|
10
|
-
"name": "nftId",
|
11
|
-
"type": "uint96"
|
12
|
-
},
|
13
|
-
{
|
14
|
-
"internalType": "ObjectType",
|
15
|
-
"name": "objectType",
|
16
|
-
"type": "uint8"
|
17
|
-
},
|
18
|
-
{
|
19
|
-
"internalType": "StateId",
|
20
|
-
"name": "fromStateId",
|
21
|
-
"type": "uint8"
|
22
|
-
},
|
23
|
-
{
|
24
|
-
"internalType": "StateId",
|
25
|
-
"name": "toStateId",
|
26
|
-
"type": "uint8"
|
27
|
-
}
|
28
|
-
],
|
29
|
-
"name": "ErrorInvalidStateTransition",
|
30
|
-
"type": "error"
|
31
|
-
},
|
32
|
-
{
|
33
|
-
"inputs": [
|
34
|
-
{
|
35
|
-
"internalType": "NftId",
|
36
|
-
"name": "nftId",
|
37
|
-
"type": "uint96"
|
38
|
-
},
|
39
|
-
{
|
40
|
-
"internalType": "ObjectType",
|
41
|
-
"name": "objectType",
|
42
|
-
"type": "uint8"
|
43
|
-
}
|
44
|
-
],
|
45
|
-
"name": "ErrorNoLifecycle",
|
46
|
-
"type": "error"
|
47
|
-
},
|
48
|
-
{
|
49
|
-
"anonymous": false,
|
50
|
-
"inputs": [
|
51
|
-
{
|
52
|
-
"indexed": false,
|
53
|
-
"internalType": "NftId",
|
54
|
-
"name": "nftId",
|
55
|
-
"type": "uint96"
|
56
|
-
},
|
57
|
-
{
|
58
|
-
"indexed": false,
|
59
|
-
"internalType": "StateId",
|
60
|
-
"name": "fromStateId",
|
61
|
-
"type": "uint8"
|
62
|
-
},
|
63
|
-
{
|
64
|
-
"indexed": false,
|
65
|
-
"internalType": "StateId",
|
66
|
-
"name": "toStateId",
|
67
|
-
"type": "uint8"
|
68
|
-
}
|
69
|
-
],
|
70
|
-
"name": "LogBundleStateChanged",
|
71
|
-
"type": "event"
|
72
|
-
},
|
73
|
-
{
|
74
|
-
"anonymous": false,
|
75
|
-
"inputs": [
|
76
|
-
{
|
77
|
-
"indexed": false,
|
78
|
-
"internalType": "NftId",
|
79
|
-
"name": "nftId",
|
80
|
-
"type": "uint96"
|
81
|
-
},
|
82
|
-
{
|
83
|
-
"indexed": false,
|
84
|
-
"internalType": "ObjectType",
|
85
|
-
"name": "objectType",
|
86
|
-
"type": "uint8"
|
87
|
-
},
|
88
|
-
{
|
89
|
-
"indexed": false,
|
90
|
-
"internalType": "StateId",
|
91
|
-
"name": "fromStateId",
|
92
|
-
"type": "uint8"
|
93
|
-
},
|
94
|
-
{
|
95
|
-
"indexed": false,
|
96
|
-
"internalType": "StateId",
|
97
|
-
"name": "toStateId",
|
98
|
-
"type": "uint8"
|
99
|
-
}
|
100
|
-
],
|
101
|
-
"name": "LogComponentStateChanged",
|
102
|
-
"type": "event"
|
103
|
-
},
|
104
|
-
{
|
105
|
-
"anonymous": false,
|
106
|
-
"inputs": [
|
107
|
-
{
|
108
|
-
"indexed": false,
|
109
|
-
"internalType": "uint256",
|
110
|
-
"name": "idx",
|
111
|
-
"type": "uint256"
|
112
|
-
},
|
113
|
-
{
|
114
|
-
"indexed": false,
|
115
|
-
"internalType": "address",
|
116
|
-
"name": "module",
|
117
|
-
"type": "address"
|
118
|
-
},
|
119
|
-
{
|
120
|
-
"indexed": false,
|
121
|
-
"internalType": "string",
|
122
|
-
"name": "comment",
|
123
|
-
"type": "string"
|
124
|
-
}
|
125
|
-
],
|
126
|
-
"name": "LogDebug",
|
127
|
-
"type": "event"
|
128
|
-
},
|
129
|
-
{
|
130
|
-
"anonymous": false,
|
131
|
-
"inputs": [
|
132
|
-
{
|
133
|
-
"indexed": false,
|
134
|
-
"internalType": "NftId",
|
135
|
-
"name": "nftId",
|
136
|
-
"type": "uint96"
|
137
|
-
},
|
138
|
-
{
|
139
|
-
"indexed": false,
|
140
|
-
"internalType": "StateId",
|
141
|
-
"name": "fromStateId",
|
142
|
-
"type": "uint8"
|
143
|
-
},
|
144
|
-
{
|
145
|
-
"indexed": false,
|
146
|
-
"internalType": "StateId",
|
147
|
-
"name": "toStateId",
|
148
|
-
"type": "uint8"
|
149
|
-
}
|
150
|
-
],
|
151
|
-
"name": "LogPolicyStateChanged",
|
152
|
-
"type": "event"
|
153
|
-
},
|
154
|
-
{
|
155
|
-
"inputs": [],
|
156
|
-
"name": "ORACLE_OWNER_ROLE",
|
157
|
-
"outputs": [
|
158
|
-
{
|
159
|
-
"internalType": "bytes32",
|
160
|
-
"name": "role",
|
161
|
-
"type": "bytes32"
|
162
|
-
}
|
163
|
-
],
|
164
|
-
"stateMutability": "view",
|
165
|
-
"type": "function"
|
166
|
-
},
|
167
|
-
{
|
168
|
-
"inputs": [],
|
169
|
-
"name": "POOL_OWNER_ROLE",
|
170
|
-
"outputs": [
|
171
|
-
{
|
172
|
-
"internalType": "bytes32",
|
173
|
-
"name": "role",
|
174
|
-
"type": "bytes32"
|
175
|
-
}
|
176
|
-
],
|
177
|
-
"stateMutability": "view",
|
178
|
-
"type": "function"
|
179
|
-
},
|
180
|
-
{
|
181
|
-
"inputs": [],
|
182
|
-
"name": "PRODUCT_OWNER_ROLE",
|
183
|
-
"outputs": [
|
184
|
-
{
|
185
|
-
"internalType": "bytes32",
|
186
|
-
"name": "role",
|
187
|
-
"type": "bytes32"
|
188
|
-
}
|
189
|
-
],
|
190
|
-
"stateMutability": "view",
|
191
|
-
"type": "function"
|
192
|
-
},
|
193
|
-
{
|
194
|
-
"inputs": [
|
195
|
-
{
|
196
|
-
"internalType": "NftId",
|
197
|
-
"name": "nftId",
|
198
|
-
"type": "uint96"
|
199
|
-
}
|
200
|
-
],
|
201
|
-
"name": "activate",
|
202
|
-
"outputs": [],
|
203
|
-
"stateMutability": "nonpayable",
|
204
|
-
"type": "function"
|
205
|
-
},
|
206
|
-
{
|
207
|
-
"inputs": [
|
208
|
-
{
|
209
|
-
"internalType": "uint256",
|
210
|
-
"name": "amount",
|
211
|
-
"type": "uint256"
|
212
|
-
},
|
213
|
-
{
|
214
|
-
"components": [
|
215
|
-
{
|
216
|
-
"internalType": "UFixed",
|
217
|
-
"name": "fractionalFee",
|
218
|
-
"type": "uint256"
|
219
|
-
},
|
220
|
-
{
|
221
|
-
"internalType": "uint256",
|
222
|
-
"name": "fixedFee",
|
223
|
-
"type": "uint256"
|
224
|
-
}
|
225
|
-
],
|
226
|
-
"internalType": "struct Fee",
|
227
|
-
"name": "fee",
|
228
|
-
"type": "tuple"
|
229
|
-
}
|
230
|
-
],
|
231
|
-
"name": "calculateFeeAmount",
|
232
|
-
"outputs": [
|
233
|
-
{
|
234
|
-
"internalType": "uint256",
|
235
|
-
"name": "feeAmount",
|
236
|
-
"type": "uint256"
|
237
|
-
},
|
238
|
-
{
|
239
|
-
"internalType": "uint256",
|
240
|
-
"name": "netAmount",
|
241
|
-
"type": "uint256"
|
242
|
-
}
|
243
|
-
],
|
244
|
-
"stateMutability": "pure",
|
245
|
-
"type": "function"
|
246
|
-
},
|
247
|
-
{
|
248
|
-
"inputs": [],
|
249
|
-
"name": "components",
|
250
|
-
"outputs": [
|
251
|
-
{
|
252
|
-
"internalType": "uint256",
|
253
|
-
"name": "numberOfCompnents",
|
254
|
-
"type": "uint256"
|
255
|
-
}
|
256
|
-
],
|
257
|
-
"stateMutability": "view",
|
258
|
-
"type": "function"
|
259
|
-
},
|
260
|
-
{
|
261
|
-
"inputs": [
|
262
|
-
{
|
263
|
-
"components": [
|
264
|
-
{
|
265
|
-
"internalType": "NftId",
|
266
|
-
"name": "nftId",
|
267
|
-
"type": "uint96"
|
268
|
-
},
|
269
|
-
{
|
270
|
-
"internalType": "NftId",
|
271
|
-
"name": "parentNftId",
|
272
|
-
"type": "uint96"
|
273
|
-
},
|
274
|
-
{
|
275
|
-
"internalType": "ObjectType",
|
276
|
-
"name": "objectType",
|
277
|
-
"type": "uint8"
|
278
|
-
},
|
279
|
-
{
|
280
|
-
"internalType": "address",
|
281
|
-
"name": "objectAddress",
|
282
|
-
"type": "address"
|
283
|
-
},
|
284
|
-
{
|
285
|
-
"internalType": "address",
|
286
|
-
"name": "initialOwner",
|
287
|
-
"type": "address"
|
288
|
-
}
|
289
|
-
],
|
290
|
-
"internalType": "struct IRegistry.RegistryInfo",
|
291
|
-
"name": "productInfo",
|
292
|
-
"type": "tuple"
|
293
|
-
},
|
294
|
-
{
|
295
|
-
"internalType": "address",
|
296
|
-
"name": "applicationOwner",
|
297
|
-
"type": "address"
|
298
|
-
},
|
299
|
-
{
|
300
|
-
"internalType": "uint256",
|
301
|
-
"name": "sumInsuredAmount",
|
302
|
-
"type": "uint256"
|
303
|
-
},
|
304
|
-
{
|
305
|
-
"internalType": "uint256",
|
306
|
-
"name": "premiumAmount",
|
307
|
-
"type": "uint256"
|
308
|
-
},
|
309
|
-
{
|
310
|
-
"internalType": "uint256",
|
311
|
-
"name": "lifetime",
|
312
|
-
"type": "uint256"
|
313
|
-
},
|
314
8
|
{
|
315
9
|
"internalType": "NftId",
|
316
10
|
"name": "bundleNftId",
|
317
11
|
"type": "uint96"
|
318
|
-
}
|
319
|
-
],
|
320
|
-
"name": "createApplication",
|
321
|
-
"outputs": [
|
322
|
-
{
|
323
|
-
"internalType": "NftId",
|
324
|
-
"name": "nftId",
|
325
|
-
"type": "uint96"
|
326
|
-
}
|
327
|
-
],
|
328
|
-
"stateMutability": "nonpayable",
|
329
|
-
"type": "function"
|
330
|
-
},
|
331
|
-
{
|
332
|
-
"inputs": [
|
333
|
-
{
|
334
|
-
"internalType": "string",
|
335
|
-
"name": "roleName",
|
336
|
-
"type": "string"
|
337
|
-
}
|
338
|
-
],
|
339
|
-
"name": "createRole",
|
340
|
-
"outputs": [
|
341
|
-
{
|
342
|
-
"internalType": "bytes32",
|
343
|
-
"name": "role",
|
344
|
-
"type": "bytes32"
|
345
|
-
}
|
346
|
-
],
|
347
|
-
"stateMutability": "nonpayable",
|
348
|
-
"type": "function"
|
349
|
-
},
|
350
|
-
{
|
351
|
-
"inputs": [
|
352
|
-
{
|
353
|
-
"internalType": "bytes32",
|
354
|
-
"name": "role",
|
355
|
-
"type": "bytes32"
|
356
|
-
}
|
357
|
-
],
|
358
|
-
"name": "disableRole",
|
359
|
-
"outputs": [],
|
360
|
-
"stateMutability": "nonpayable",
|
361
|
-
"type": "function"
|
362
|
-
},
|
363
|
-
{
|
364
|
-
"inputs": [
|
365
|
-
{
|
366
|
-
"internalType": "bytes32",
|
367
|
-
"name": "role",
|
368
|
-
"type": "bytes32"
|
369
|
-
}
|
370
|
-
],
|
371
|
-
"name": "enableRole",
|
372
|
-
"outputs": [],
|
373
|
-
"stateMutability": "nonpayable",
|
374
|
-
"type": "function"
|
375
|
-
},
|
376
|
-
{
|
377
|
-
"inputs": [
|
378
|
-
{
|
379
|
-
"internalType": "NftId",
|
380
|
-
"name": "nftId",
|
381
|
-
"type": "uint96"
|
382
|
-
}
|
383
|
-
],
|
384
|
-
"name": "getBundleNftForPolicy",
|
385
|
-
"outputs": [
|
386
|
-
{
|
387
|
-
"internalType": "NftId",
|
388
|
-
"name": "bundleNft",
|
389
|
-
"type": "uint96"
|
390
|
-
}
|
391
|
-
],
|
392
|
-
"stateMutability": "view",
|
393
|
-
"type": "function"
|
394
|
-
},
|
395
|
-
{
|
396
|
-
"inputs": [
|
397
|
-
{
|
398
|
-
"internalType": "address",
|
399
|
-
"name": "componentAddress",
|
400
|
-
"type": "address"
|
401
|
-
}
|
402
|
-
],
|
403
|
-
"name": "getComponentId",
|
404
|
-
"outputs": [
|
405
|
-
{
|
406
|
-
"internalType": "NftId",
|
407
|
-
"name": "nftId",
|
408
|
-
"type": "uint96"
|
409
|
-
}
|
410
|
-
],
|
411
|
-
"stateMutability": "view",
|
412
|
-
"type": "function"
|
413
|
-
},
|
414
|
-
{
|
415
|
-
"inputs": [
|
416
|
-
{
|
417
|
-
"internalType": "uint256",
|
418
|
-
"name": "idx",
|
419
|
-
"type": "uint256"
|
420
|
-
}
|
421
|
-
],
|
422
|
-
"name": "getComponentId",
|
423
|
-
"outputs": [
|
424
|
-
{
|
425
|
-
"internalType": "NftId",
|
426
|
-
"name": "nftId",
|
427
|
-
"type": "uint96"
|
428
|
-
}
|
429
|
-
],
|
430
|
-
"stateMutability": "view",
|
431
|
-
"type": "function"
|
432
|
-
},
|
433
|
-
{
|
434
|
-
"inputs": [
|
435
|
-
{
|
436
|
-
"internalType": "NftId",
|
437
|
-
"name": "nftId",
|
438
|
-
"type": "uint96"
|
439
|
-
}
|
440
|
-
],
|
441
|
-
"name": "getComponentInfo",
|
442
|
-
"outputs": [
|
12
|
+
},
|
443
13
|
{
|
444
14
|
"components": [
|
445
15
|
{
|
446
16
|
"internalType": "NftId",
|
447
|
-
"name": "
|
17
|
+
"name": "poolNftId",
|
448
18
|
"type": "uint96"
|
449
19
|
},
|
450
20
|
{
|
451
|
-
"
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
"stateMutability": "view",
|
467
|
-
"type": "function"
|
468
|
-
},
|
469
|
-
{
|
470
|
-
"inputs": [],
|
471
|
-
"name": "getComponentOwnerService",
|
472
|
-
"outputs": [
|
473
|
-
{
|
474
|
-
"internalType": "contract IComponentOwnerService",
|
475
|
-
"name": "",
|
476
|
-
"type": "address"
|
477
|
-
}
|
478
|
-
],
|
479
|
-
"stateMutability": "view",
|
480
|
-
"type": "function"
|
481
|
-
},
|
482
|
-
{
|
483
|
-
"inputs": [],
|
484
|
-
"name": "getData",
|
485
|
-
"outputs": [
|
486
|
-
{
|
487
|
-
"internalType": "bytes",
|
488
|
-
"name": "data",
|
489
|
-
"type": "bytes"
|
490
|
-
}
|
491
|
-
],
|
492
|
-
"stateMutability": "view",
|
493
|
-
"type": "function"
|
494
|
-
},
|
495
|
-
{
|
496
|
-
"inputs": [],
|
497
|
-
"name": "getInitialOwner",
|
498
|
-
"outputs": [
|
499
|
-
{
|
500
|
-
"internalType": "address",
|
501
|
-
"name": "initialOwner",
|
502
|
-
"type": "address"
|
503
|
-
}
|
504
|
-
],
|
505
|
-
"stateMutability": "view",
|
506
|
-
"type": "function"
|
507
|
-
},
|
508
|
-
{
|
509
|
-
"inputs": [
|
510
|
-
{
|
511
|
-
"internalType": "ObjectType",
|
512
|
-
"name": "objectType",
|
513
|
-
"type": "uint8"
|
514
|
-
}
|
515
|
-
],
|
516
|
-
"name": "getInitialState",
|
517
|
-
"outputs": [
|
518
|
-
{
|
519
|
-
"internalType": "StateId",
|
520
|
-
"name": "",
|
521
|
-
"type": "uint8"
|
522
|
-
}
|
523
|
-
],
|
524
|
-
"stateMutability": "view",
|
525
|
-
"type": "function"
|
526
|
-
},
|
527
|
-
{
|
528
|
-
"inputs": [],
|
529
|
-
"name": "getNftId",
|
530
|
-
"outputs": [
|
531
|
-
{
|
532
|
-
"internalType": "NftId",
|
533
|
-
"name": "nftId",
|
534
|
-
"type": "uint96"
|
535
|
-
}
|
536
|
-
],
|
537
|
-
"stateMutability": "view",
|
538
|
-
"type": "function"
|
539
|
-
},
|
540
|
-
{
|
541
|
-
"inputs": [],
|
542
|
-
"name": "getOwner",
|
543
|
-
"outputs": [
|
544
|
-
{
|
545
|
-
"internalType": "address",
|
546
|
-
"name": "owner",
|
547
|
-
"type": "address"
|
548
|
-
}
|
549
|
-
],
|
550
|
-
"stateMutability": "view",
|
551
|
-
"type": "function"
|
552
|
-
},
|
553
|
-
{
|
554
|
-
"inputs": [],
|
555
|
-
"name": "getParentNftId",
|
556
|
-
"outputs": [
|
557
|
-
{
|
558
|
-
"internalType": "NftId",
|
559
|
-
"name": "parentNftId",
|
560
|
-
"type": "uint96"
|
561
|
-
}
|
562
|
-
],
|
563
|
-
"stateMutability": "view",
|
564
|
-
"type": "function"
|
565
|
-
},
|
566
|
-
{
|
567
|
-
"inputs": [
|
568
|
-
{
|
569
|
-
"internalType": "NftId",
|
570
|
-
"name": "nftId",
|
571
|
-
"type": "uint96"
|
572
|
-
}
|
573
|
-
],
|
574
|
-
"name": "getPolicyInfo",
|
575
|
-
"outputs": [
|
576
|
-
{
|
577
|
-
"components": [
|
578
|
-
{
|
579
|
-
"internalType": "NftId",
|
580
|
-
"name": "nftId",
|
581
|
-
"type": "uint96"
|
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"
|
582
36
|
},
|
583
37
|
{
|
584
|
-
"internalType": "
|
585
|
-
"name": "
|
586
|
-
"type": "
|
38
|
+
"internalType": "bytes",
|
39
|
+
"name": "filter",
|
40
|
+
"type": "bytes"
|
587
41
|
},
|
588
42
|
{
|
589
43
|
"internalType": "uint256",
|
590
|
-
"name": "
|
44
|
+
"name": "capitalAmount",
|
591
45
|
"type": "uint256"
|
592
46
|
},
|
593
47
|
{
|
594
48
|
"internalType": "uint256",
|
595
|
-
"name": "
|
49
|
+
"name": "lockedAmount",
|
596
50
|
"type": "uint256"
|
597
51
|
},
|
598
52
|
{
|
599
53
|
"internalType": "uint256",
|
600
|
-
"name": "
|
54
|
+
"name": "balanceAmount",
|
601
55
|
"type": "uint256"
|
602
56
|
},
|
603
57
|
{
|
@@ -606,73 +60,81 @@
|
|
606
60
|
"type": "uint256"
|
607
61
|
},
|
608
62
|
{
|
609
|
-
"internalType": "
|
610
|
-
"name": "createdAt",
|
611
|
-
"type": "uint256"
|
612
|
-
},
|
613
|
-
{
|
614
|
-
"internalType": "uint256",
|
615
|
-
"name": "updatedAt",
|
616
|
-
"type": "uint256"
|
617
|
-
},
|
618
|
-
{
|
619
|
-
"internalType": "uint256",
|
620
|
-
"name": "activatedAt",
|
621
|
-
"type": "uint256"
|
622
|
-
},
|
623
|
-
{
|
624
|
-
"internalType": "uint256",
|
63
|
+
"internalType": "Timestamp",
|
625
64
|
"name": "expiredAt",
|
626
|
-
"type": "
|
65
|
+
"type": "uint40"
|
627
66
|
},
|
628
67
|
{
|
629
|
-
"internalType": "
|
68
|
+
"internalType": "Timestamp",
|
630
69
|
"name": "closedAt",
|
631
|
-
"type": "
|
70
|
+
"type": "uint40"
|
632
71
|
}
|
633
72
|
],
|
634
|
-
"internalType": "struct
|
635
|
-
"name": "
|
73
|
+
"internalType": "struct IBundle.BundleInfo",
|
74
|
+
"name": "bundle",
|
636
75
|
"type": "tuple"
|
637
76
|
}
|
638
77
|
],
|
639
|
-
"
|
78
|
+
"name": "createBundle",
|
79
|
+
"outputs": [],
|
80
|
+
"stateMutability": "nonpayable",
|
640
81
|
"type": "function"
|
641
82
|
},
|
642
83
|
{
|
643
84
|
"inputs": [
|
644
85
|
{
|
645
86
|
"internalType": "NftId",
|
646
|
-
"name": "
|
87
|
+
"name": "distributionNftId",
|
647
88
|
"type": "uint96"
|
648
|
-
}
|
649
|
-
],
|
650
|
-
"name": "getPoolInfo",
|
651
|
-
"outputs": [
|
89
|
+
},
|
652
90
|
{
|
653
91
|
"components": [
|
654
92
|
{
|
655
93
|
"internalType": "NftId",
|
656
|
-
"name": "
|
94
|
+
"name": "productNftId",
|
657
95
|
"type": "uint96"
|
658
96
|
},
|
659
97
|
{
|
660
|
-
"internalType": "
|
661
|
-
"name": "
|
662
|
-
"type": "
|
98
|
+
"internalType": "contract TokenHandler",
|
99
|
+
"name": "tokenHandler",
|
100
|
+
"type": "address"
|
663
101
|
},
|
664
102
|
{
|
665
|
-
"
|
666
|
-
|
667
|
-
|
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"
|
668
128
|
}
|
669
129
|
],
|
670
|
-
"internalType": "struct
|
671
|
-
"name": "
|
130
|
+
"internalType": "struct ISetup.DistributionSetupInfo",
|
131
|
+
"name": "setup",
|
672
132
|
"type": "tuple"
|
673
133
|
}
|
674
134
|
],
|
675
|
-
"
|
135
|
+
"name": "createDistributionSetup",
|
136
|
+
"outputs": [],
|
137
|
+
"stateMutability": "nonpayable",
|
676
138
|
"type": "function"
|
677
139
|
},
|
678
140
|
{
|
@@ -681,22 +143,41 @@
|
|
681
143
|
"internalType": "NftId",
|
682
144
|
"name": "poolNftId",
|
683
145
|
"type": "uint96"
|
684
|
-
}
|
685
|
-
],
|
686
|
-
"name": "getPoolSetup",
|
687
|
-
"outputs": [
|
146
|
+
},
|
688
147
|
{
|
689
148
|
"components": [
|
690
149
|
{
|
691
150
|
"internalType": "NftId",
|
692
|
-
"name": "
|
151
|
+
"name": "productNftId",
|
693
152
|
"type": "uint96"
|
694
153
|
},
|
695
154
|
{
|
696
|
-
"internalType": "
|
697
|
-
"name": "
|
155
|
+
"internalType": "contract TokenHandler",
|
156
|
+
"name": "tokenHandler",
|
698
157
|
"type": "address"
|
699
158
|
},
|
159
|
+
{
|
160
|
+
"internalType": "UFixed",
|
161
|
+
"name": "collateralizationLevel",
|
162
|
+
"type": "uint256"
|
163
|
+
},
|
164
|
+
{
|
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"
|
180
|
+
},
|
700
181
|
{
|
701
182
|
"components": [
|
702
183
|
{
|
@@ -730,27 +211,26 @@
|
|
730
211
|
"internalType": "struct Fee",
|
731
212
|
"name": "performanceFee",
|
732
213
|
"type": "tuple"
|
214
|
+
},
|
215
|
+
{
|
216
|
+
"internalType": "bool",
|
217
|
+
"name": "isIntercepting",
|
218
|
+
"type": "bool"
|
219
|
+
},
|
220
|
+
{
|
221
|
+
"internalType": "address",
|
222
|
+
"name": "wallet",
|
223
|
+
"type": "address"
|
733
224
|
}
|
734
225
|
],
|
735
|
-
"internalType": "struct
|
226
|
+
"internalType": "struct ISetup.PoolSetupInfo",
|
736
227
|
"name": "setup",
|
737
228
|
"type": "tuple"
|
738
229
|
}
|
739
230
|
],
|
740
|
-
"
|
741
|
-
"
|
742
|
-
|
743
|
-
{
|
744
|
-
"inputs": [],
|
745
|
-
"name": "getProductService",
|
746
|
-
"outputs": [
|
747
|
-
{
|
748
|
-
"internalType": "contract IProductService",
|
749
|
-
"name": "",
|
750
|
-
"type": "address"
|
751
|
-
}
|
752
|
-
],
|
753
|
-
"stateMutability": "view",
|
231
|
+
"name": "createPoolSetup",
|
232
|
+
"outputs": [],
|
233
|
+
"stateMutability": "nonpayable",
|
754
234
|
"type": "function"
|
755
235
|
},
|
756
236
|
{
|
@@ -759,20 +239,22 @@
|
|
759
239
|
"internalType": "NftId",
|
760
240
|
"name": "productNftId",
|
761
241
|
"type": "uint96"
|
762
|
-
}
|
763
|
-
],
|
764
|
-
"name": "getProductSetup",
|
765
|
-
"outputs": [
|
242
|
+
},
|
766
243
|
{
|
767
244
|
"components": [
|
768
245
|
{
|
769
|
-
"internalType": "
|
770
|
-
"name": "
|
771
|
-
"type": "
|
246
|
+
"internalType": "contract IERC20Metadata",
|
247
|
+
"name": "token",
|
248
|
+
"type": "address"
|
249
|
+
},
|
250
|
+
{
|
251
|
+
"internalType": "contract TokenHandler",
|
252
|
+
"name": "tokenHandler",
|
253
|
+
"type": "address"
|
772
254
|
},
|
773
255
|
{
|
774
256
|
"internalType": "NftId",
|
775
|
-
"name": "
|
257
|
+
"name": "distributionNftId",
|
776
258
|
"type": "uint96"
|
777
259
|
},
|
778
260
|
{
|
@@ -781,19 +263,21 @@
|
|
781
263
|
"type": "uint96"
|
782
264
|
},
|
783
265
|
{
|
784
|
-
"
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
"
|
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"
|
797
281
|
},
|
798
282
|
{
|
799
283
|
"components": [
|
@@ -809,7 +293,7 @@
|
|
809
293
|
}
|
810
294
|
],
|
811
295
|
"internalType": "struct Fee",
|
812
|
-
"name": "
|
296
|
+
"name": "productFee",
|
813
297
|
"type": "tuple"
|
814
298
|
},
|
815
299
|
{
|
@@ -828,172 +312,76 @@
|
|
828
312
|
"internalType": "struct Fee",
|
829
313
|
"name": "processingFee",
|
830
314
|
"type": "tuple"
|
831
|
-
}
|
832
|
-
],
|
833
|
-
"internalType": "struct ITreasuryModule.ProductSetup",
|
834
|
-
"name": "setup",
|
835
|
-
"type": "tuple"
|
836
|
-
}
|
837
|
-
],
|
838
|
-
"stateMutability": "view",
|
839
|
-
"type": "function"
|
840
|
-
},
|
841
|
-
{
|
842
|
-
"inputs": [],
|
843
|
-
"name": "getRegistry",
|
844
|
-
"outputs": [
|
845
|
-
{
|
846
|
-
"internalType": "contract IRegistry",
|
847
|
-
"name": "registry",
|
848
|
-
"type": "address"
|
849
|
-
}
|
850
|
-
],
|
851
|
-
"stateMutability": "view",
|
852
|
-
"type": "function"
|
853
|
-
},
|
854
|
-
{
|
855
|
-
"inputs": [
|
856
|
-
{
|
857
|
-
"internalType": "uint256",
|
858
|
-
"name": "idx",
|
859
|
-
"type": "uint256"
|
860
|
-
}
|
861
|
-
],
|
862
|
-
"name": "getRole",
|
863
|
-
"outputs": [
|
864
|
-
{
|
865
|
-
"internalType": "bytes32",
|
866
|
-
"name": "role",
|
867
|
-
"type": "bytes32"
|
868
|
-
}
|
869
|
-
],
|
870
|
-
"stateMutability": "view",
|
871
|
-
"type": "function"
|
872
|
-
},
|
873
|
-
{
|
874
|
-
"inputs": [],
|
875
|
-
"name": "getRoleCount",
|
876
|
-
"outputs": [
|
877
|
-
{
|
878
|
-
"internalType": "uint256",
|
879
|
-
"name": "roles",
|
880
|
-
"type": "uint256"
|
881
|
-
}
|
882
|
-
],
|
883
|
-
"stateMutability": "view",
|
884
|
-
"type": "function"
|
885
|
-
},
|
886
|
-
{
|
887
|
-
"inputs": [
|
888
|
-
{
|
889
|
-
"internalType": "string",
|
890
|
-
"name": "roleName",
|
891
|
-
"type": "string"
|
892
|
-
}
|
893
|
-
],
|
894
|
-
"name": "getRoleForName",
|
895
|
-
"outputs": [
|
896
|
-
{
|
897
|
-
"internalType": "bytes32",
|
898
|
-
"name": "role",
|
899
|
-
"type": "bytes32"
|
900
|
-
}
|
901
|
-
],
|
902
|
-
"stateMutability": "pure",
|
903
|
-
"type": "function"
|
904
|
-
},
|
905
|
-
{
|
906
|
-
"inputs": [
|
907
|
-
{
|
908
|
-
"internalType": "bytes32",
|
909
|
-
"name": "role",
|
910
|
-
"type": "bytes32"
|
911
|
-
}
|
912
|
-
],
|
913
|
-
"name": "getRoleInfo",
|
914
|
-
"outputs": [
|
915
|
-
{
|
916
|
-
"components": [
|
917
|
-
{
|
918
|
-
"internalType": "bytes32",
|
919
|
-
"name": "id",
|
920
|
-
"type": "bytes32"
|
921
315
|
},
|
922
316
|
{
|
923
|
-
"
|
924
|
-
|
925
|
-
|
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"
|
926
332
|
},
|
927
333
|
{
|
928
|
-
"
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
{
|
966
|
-
"inputs": [
|
967
|
-
{
|
968
|
-
"internalType": "bytes32",
|
969
|
-
"name": "role",
|
970
|
-
"type": "bytes32"
|
971
|
-
}
|
972
|
-
],
|
973
|
-
"name": "getRoleMemberCount",
|
974
|
-
"outputs": [
|
975
|
-
{
|
976
|
-
"internalType": "uint256",
|
977
|
-
"name": "roleMembers",
|
978
|
-
"type": "uint256"
|
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"
|
349
|
+
},
|
350
|
+
{
|
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"
|
366
|
+
}
|
367
|
+
],
|
368
|
+
"internalType": "struct ISetup.ProductSetupInfo",
|
369
|
+
"name": "setup",
|
370
|
+
"type": "tuple"
|
979
371
|
}
|
980
372
|
],
|
981
|
-
"
|
373
|
+
"name": "createProductSetup",
|
374
|
+
"outputs": [],
|
375
|
+
"stateMutability": "nonpayable",
|
982
376
|
"type": "function"
|
983
377
|
},
|
984
378
|
{
|
985
|
-
"inputs": [
|
986
|
-
|
987
|
-
"internalType": "NftId",
|
988
|
-
"name": "productNftId",
|
989
|
-
"type": "uint96"
|
990
|
-
}
|
991
|
-
],
|
992
|
-
"name": "getTokenHandler",
|
379
|
+
"inputs": [],
|
380
|
+
"name": "getComponentOwnerService",
|
993
381
|
"outputs": [
|
994
382
|
{
|
995
|
-
"internalType": "contract
|
996
|
-
"name": "
|
383
|
+
"internalType": "contract IComponentOwnerService",
|
384
|
+
"name": "",
|
997
385
|
"type": "address"
|
998
386
|
}
|
999
387
|
],
|
@@ -1002,54 +390,25 @@
|
|
1002
390
|
},
|
1003
391
|
{
|
1004
392
|
"inputs": [],
|
1005
|
-
"name": "
|
393
|
+
"name": "getDistributionService",
|
1006
394
|
"outputs": [
|
1007
395
|
{
|
1008
|
-
"internalType": "
|
1009
|
-
"name": "
|
1010
|
-
"type": "uint8"
|
1011
|
-
}
|
1012
|
-
],
|
1013
|
-
"stateMutability": "view",
|
1014
|
-
"type": "function"
|
1015
|
-
},
|
1016
|
-
{
|
1017
|
-
"inputs": [
|
1018
|
-
{
|
1019
|
-
"internalType": "bytes32",
|
1020
|
-
"name": "role",
|
1021
|
-
"type": "bytes32"
|
1022
|
-
},
|
1023
|
-
{
|
1024
|
-
"internalType": "address",
|
1025
|
-
"name": "member",
|
396
|
+
"internalType": "contract IDistributionService",
|
397
|
+
"name": "",
|
1026
398
|
"type": "address"
|
1027
399
|
}
|
1028
400
|
],
|
1029
|
-
"
|
1030
|
-
"outputs": [],
|
1031
|
-
"stateMutability": "nonpayable",
|
401
|
+
"stateMutability": "view",
|
1032
402
|
"type": "function"
|
1033
403
|
},
|
1034
404
|
{
|
1035
|
-
"inputs": [
|
1036
|
-
|
1037
|
-
"internalType": "bytes32",
|
1038
|
-
"name": "role",
|
1039
|
-
"type": "bytes32"
|
1040
|
-
},
|
1041
|
-
{
|
1042
|
-
"internalType": "address",
|
1043
|
-
"name": "member",
|
1044
|
-
"type": "address"
|
1045
|
-
}
|
1046
|
-
],
|
1047
|
-
"name": "hasRole",
|
405
|
+
"inputs": [],
|
406
|
+
"name": "getInstanceReader",
|
1048
407
|
"outputs": [
|
1049
408
|
{
|
1050
|
-
"internalType": "
|
409
|
+
"internalType": "contract InstanceReader",
|
1051
410
|
"name": "",
|
1052
|
-
"type": "
|
411
|
+
"type": "address"
|
1053
412
|
}
|
1054
413
|
],
|
1055
414
|
"stateMutability": "view",
|
@@ -1057,25 +416,25 @@
|
|
1057
416
|
},
|
1058
417
|
{
|
1059
418
|
"inputs": [],
|
1060
|
-
"name": "
|
419
|
+
"name": "getPoolService",
|
1061
420
|
"outputs": [
|
1062
421
|
{
|
1063
|
-
"internalType": "
|
422
|
+
"internalType": "contract IPoolService",
|
1064
423
|
"name": "",
|
1065
|
-
"type": "
|
424
|
+
"type": "address"
|
1066
425
|
}
|
1067
426
|
],
|
1068
|
-
"stateMutability": "
|
427
|
+
"stateMutability": "view",
|
1069
428
|
"type": "function"
|
1070
429
|
},
|
1071
430
|
{
|
1072
431
|
"inputs": [],
|
1073
|
-
"name": "
|
432
|
+
"name": "getProductService",
|
1074
433
|
"outputs": [
|
1075
434
|
{
|
1076
|
-
"internalType": "
|
435
|
+
"internalType": "contract IProductService",
|
1077
436
|
"name": "",
|
1078
|
-
"type": "
|
437
|
+
"type": "address"
|
1079
438
|
}
|
1080
439
|
],
|
1081
440
|
"stateMutability": "view",
|
@@ -1084,22 +443,12 @@
|
|
1084
443
|
{
|
1085
444
|
"inputs": [
|
1086
445
|
{
|
1087
|
-
"internalType": "
|
1088
|
-
"name": "
|
1089
|
-
"type": "
|
1090
|
-
},
|
1091
|
-
{
|
1092
|
-
"internalType": "StateId",
|
1093
|
-
"name": "fromId",
|
1094
|
-
"type": "uint8"
|
1095
|
-
},
|
1096
|
-
{
|
1097
|
-
"internalType": "StateId",
|
1098
|
-
"name": "toId",
|
1099
|
-
"type": "uint8"
|
446
|
+
"internalType": "bytes4",
|
447
|
+
"name": "interfaceId",
|
448
|
+
"type": "bytes4"
|
1100
449
|
}
|
1101
450
|
],
|
1102
|
-
"name": "
|
451
|
+
"name": "supportsInterface",
|
1103
452
|
"outputs": [
|
1104
453
|
{
|
1105
454
|
"internalType": "bool",
|
@@ -1114,126 +463,80 @@
|
|
1114
463
|
"inputs": [
|
1115
464
|
{
|
1116
465
|
"internalType": "NftId",
|
1117
|
-
"name": "
|
1118
|
-
"type": "uint96"
|
1119
|
-
}
|
1120
|
-
],
|
1121
|
-
"name": "processPremium",
|
1122
|
-
"outputs": [],
|
1123
|
-
"stateMutability": "nonpayable",
|
1124
|
-
"type": "function"
|
1125
|
-
},
|
1126
|
-
{
|
1127
|
-
"inputs": [
|
1128
|
-
{
|
1129
|
-
"internalType": "NftId",
|
1130
|
-
"name": "policyNftId",
|
1131
|
-
"type": "uint96"
|
1132
|
-
},
|
1133
|
-
{
|
1134
|
-
"internalType": "NftId",
|
1135
|
-
"name": "productNftId",
|
1136
|
-
"type": "uint96"
|
1137
|
-
}
|
1138
|
-
],
|
1139
|
-
"name": "processPremium",
|
1140
|
-
"outputs": [],
|
1141
|
-
"stateMutability": "nonpayable",
|
1142
|
-
"type": "function"
|
1143
|
-
},
|
1144
|
-
{
|
1145
|
-
"inputs": [],
|
1146
|
-
"name": "register",
|
1147
|
-
"outputs": [
|
1148
|
-
{
|
1149
|
-
"internalType": "NftId",
|
1150
|
-
"name": "nftId",
|
1151
|
-
"type": "uint96"
|
1152
|
-
}
|
1153
|
-
],
|
1154
|
-
"stateMutability": "nonpayable",
|
1155
|
-
"type": "function"
|
1156
|
-
},
|
1157
|
-
{
|
1158
|
-
"inputs": [
|
1159
|
-
{
|
1160
|
-
"internalType": "contract IComponentContract",
|
1161
|
-
"name": "component",
|
1162
|
-
"type": "address"
|
1163
|
-
}
|
1164
|
-
],
|
1165
|
-
"name": "registerComponent",
|
1166
|
-
"outputs": [
|
1167
|
-
{
|
1168
|
-
"internalType": "NftId",
|
1169
|
-
"name": "nftId",
|
1170
|
-
"type": "uint96"
|
1171
|
-
}
|
1172
|
-
],
|
1173
|
-
"stateMutability": "nonpayable",
|
1174
|
-
"type": "function"
|
1175
|
-
},
|
1176
|
-
{
|
1177
|
-
"inputs": [
|
1178
|
-
{
|
1179
|
-
"internalType": "NftId",
|
1180
|
-
"name": "nftId",
|
1181
|
-
"type": "uint96"
|
1182
|
-
}
|
1183
|
-
],
|
1184
|
-
"name": "registerPool",
|
1185
|
-
"outputs": [],
|
1186
|
-
"stateMutability": "nonpayable",
|
1187
|
-
"type": "function"
|
1188
|
-
},
|
1189
|
-
{
|
1190
|
-
"inputs": [
|
1191
|
-
{
|
1192
|
-
"internalType": "NftId",
|
1193
|
-
"name": "poolNftId",
|
466
|
+
"name": "bundleNftId",
|
1194
467
|
"type": "uint96"
|
1195
468
|
},
|
1196
|
-
{
|
1197
|
-
"internalType": "address",
|
1198
|
-
"name": "wallet",
|
1199
|
-
"type": "address"
|
1200
|
-
},
|
1201
469
|
{
|
1202
470
|
"components": [
|
1203
471
|
{
|
1204
|
-
"internalType": "
|
1205
|
-
"name": "
|
472
|
+
"internalType": "NftId",
|
473
|
+
"name": "poolNftId",
|
474
|
+
"type": "uint96"
|
475
|
+
},
|
476
|
+
{
|
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"
|
492
|
+
},
|
493
|
+
{
|
494
|
+
"internalType": "bytes",
|
495
|
+
"name": "filter",
|
496
|
+
"type": "bytes"
|
497
|
+
},
|
498
|
+
{
|
499
|
+
"internalType": "uint256",
|
500
|
+
"name": "capitalAmount",
|
1206
501
|
"type": "uint256"
|
1207
502
|
},
|
1208
503
|
{
|
1209
504
|
"internalType": "uint256",
|
1210
|
-
"name": "
|
505
|
+
"name": "lockedAmount",
|
1211
506
|
"type": "uint256"
|
1212
|
-
}
|
1213
|
-
],
|
1214
|
-
"internalType": "struct Fee",
|
1215
|
-
"name": "stakingFee",
|
1216
|
-
"type": "tuple"
|
1217
|
-
},
|
1218
|
-
{
|
1219
|
-
"components": [
|
507
|
+
},
|
1220
508
|
{
|
1221
|
-
"internalType": "
|
1222
|
-
"name": "
|
509
|
+
"internalType": "uint256",
|
510
|
+
"name": "balanceAmount",
|
1223
511
|
"type": "uint256"
|
1224
512
|
},
|
1225
513
|
{
|
1226
514
|
"internalType": "uint256",
|
1227
|
-
"name": "
|
515
|
+
"name": "lifetime",
|
1228
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"
|
1229
527
|
}
|
1230
528
|
],
|
1231
|
-
"internalType": "struct
|
1232
|
-
"name": "
|
529
|
+
"internalType": "struct IBundle.BundleInfo",
|
530
|
+
"name": "bundle",
|
1233
531
|
"type": "tuple"
|
532
|
+
},
|
533
|
+
{
|
534
|
+
"internalType": "StateId",
|
535
|
+
"name": "newState",
|
536
|
+
"type": "uint8"
|
1234
537
|
}
|
1235
538
|
],
|
1236
|
-
"name": "
|
539
|
+
"name": "updateBundle",
|
1237
540
|
"outputs": [],
|
1238
541
|
"stateMutability": "nonpayable",
|
1239
542
|
"type": "function"
|
@@ -1242,65 +545,78 @@
|
|
1242
545
|
"inputs": [
|
1243
546
|
{
|
1244
547
|
"internalType": "NftId",
|
1245
|
-
"name": "
|
548
|
+
"name": "bundleNftId",
|
1246
549
|
"type": "uint96"
|
1247
550
|
},
|
1248
551
|
{
|
1249
|
-
"internalType": "
|
1250
|
-
"name": "
|
1251
|
-
"type": "
|
1252
|
-
}
|
552
|
+
"internalType": "StateId",
|
553
|
+
"name": "newState",
|
554
|
+
"type": "uint8"
|
555
|
+
}
|
556
|
+
],
|
557
|
+
"name": "updateBundleState",
|
558
|
+
"outputs": [],
|
559
|
+
"stateMutability": "nonpayable",
|
560
|
+
"type": "function"
|
561
|
+
},
|
562
|
+
{
|
563
|
+
"inputs": [
|
1253
564
|
{
|
1254
565
|
"internalType": "NftId",
|
1255
|
-
"name": "
|
566
|
+
"name": "distributionNftId",
|
1256
567
|
"type": "uint96"
|
1257
568
|
},
|
1258
|
-
{
|
1259
|
-
"internalType": "contract IERC20",
|
1260
|
-
"name": "token",
|
1261
|
-
"type": "address"
|
1262
|
-
},
|
1263
|
-
{
|
1264
|
-
"internalType": "address",
|
1265
|
-
"name": "wallet",
|
1266
|
-
"type": "address"
|
1267
|
-
},
|
1268
569
|
{
|
1269
570
|
"components": [
|
1270
571
|
{
|
1271
|
-
"internalType": "
|
1272
|
-
"name": "
|
1273
|
-
"type": "
|
572
|
+
"internalType": "NftId",
|
573
|
+
"name": "productNftId",
|
574
|
+
"type": "uint96"
|
1274
575
|
},
|
1275
576
|
{
|
1276
|
-
"internalType": "
|
1277
|
-
"name": "
|
1278
|
-
"type": "
|
1279
|
-
}
|
1280
|
-
],
|
1281
|
-
"internalType": "struct Fee",
|
1282
|
-
"name": "policyFee",
|
1283
|
-
"type": "tuple"
|
1284
|
-
},
|
1285
|
-
{
|
1286
|
-
"components": [
|
577
|
+
"internalType": "contract TokenHandler",
|
578
|
+
"name": "tokenHandler",
|
579
|
+
"type": "address"
|
580
|
+
},
|
1287
581
|
{
|
1288
|
-
"
|
1289
|
-
|
1290
|
-
|
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"
|
1291
597
|
},
|
1292
598
|
{
|
1293
|
-
"internalType": "
|
1294
|
-
"name": "
|
1295
|
-
"type": "
|
599
|
+
"internalType": "bool",
|
600
|
+
"name": "isIntercepting",
|
601
|
+
"type": "bool"
|
602
|
+
},
|
603
|
+
{
|
604
|
+
"internalType": "address",
|
605
|
+
"name": "wallet",
|
606
|
+
"type": "address"
|
1296
607
|
}
|
1297
608
|
],
|
1298
|
-
"internalType": "struct
|
1299
|
-
"name": "
|
609
|
+
"internalType": "struct ISetup.DistributionSetupInfo",
|
610
|
+
"name": "setup",
|
1300
611
|
"type": "tuple"
|
612
|
+
},
|
613
|
+
{
|
614
|
+
"internalType": "StateId",
|
615
|
+
"name": "newState",
|
616
|
+
"type": "uint8"
|
1301
617
|
}
|
1302
618
|
],
|
1303
|
-
"name": "
|
619
|
+
"name": "updateDistributionSetup",
|
1304
620
|
"outputs": [],
|
1305
621
|
"stateMutability": "nonpayable",
|
1306
622
|
"type": "function"
|
@@ -1308,54 +624,119 @@
|
|
1308
624
|
{
|
1309
625
|
"inputs": [
|
1310
626
|
{
|
1311
|
-
"internalType": "
|
1312
|
-
"name": "
|
1313
|
-
"type": "
|
627
|
+
"internalType": "NftId",
|
628
|
+
"name": "distributionNftId",
|
629
|
+
"type": "uint96"
|
1314
630
|
},
|
1315
631
|
{
|
1316
|
-
"internalType": "
|
1317
|
-
"name": "
|
1318
|
-
"type": "
|
632
|
+
"internalType": "StateId",
|
633
|
+
"name": "newState",
|
634
|
+
"type": "uint8"
|
1319
635
|
}
|
1320
636
|
],
|
1321
|
-
"name": "
|
637
|
+
"name": "updateDistributionSetupState",
|
1322
638
|
"outputs": [],
|
1323
639
|
"stateMutability": "nonpayable",
|
1324
640
|
"type": "function"
|
1325
641
|
},
|
1326
642
|
{
|
1327
643
|
"inputs": [
|
644
|
+
{
|
645
|
+
"internalType": "NftId",
|
646
|
+
"name": "poolNftId",
|
647
|
+
"type": "uint96"
|
648
|
+
},
|
1328
649
|
{
|
1329
650
|
"components": [
|
1330
651
|
{
|
1331
652
|
"internalType": "NftId",
|
1332
|
-
"name": "
|
653
|
+
"name": "productNftId",
|
1333
654
|
"type": "uint96"
|
1334
655
|
},
|
1335
656
|
{
|
1336
|
-
"internalType": "
|
1337
|
-
"name": "
|
1338
|
-
"type": "
|
657
|
+
"internalType": "contract TokenHandler",
|
658
|
+
"name": "tokenHandler",
|
659
|
+
"type": "address"
|
1339
660
|
},
|
1340
661
|
{
|
1341
|
-
"internalType": "
|
1342
|
-
"name": "
|
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",
|
1343
725
|
"type": "address"
|
1344
726
|
}
|
1345
727
|
],
|
1346
|
-
"internalType": "struct
|
1347
|
-
"name": "
|
728
|
+
"internalType": "struct ISetup.PoolSetupInfo",
|
729
|
+
"name": "setup",
|
1348
730
|
"type": "tuple"
|
1349
|
-
}
|
1350
|
-
],
|
1351
|
-
"name": "setComponentInfo",
|
1352
|
-
"outputs": [
|
731
|
+
},
|
1353
732
|
{
|
1354
|
-
"internalType": "
|
1355
|
-
"name": "
|
1356
|
-
"type": "
|
733
|
+
"internalType": "StateId",
|
734
|
+
"name": "newState",
|
735
|
+
"type": "uint8"
|
1357
736
|
}
|
1358
737
|
],
|
738
|
+
"name": "updatePoolSetup",
|
739
|
+
"outputs": [],
|
1359
740
|
"stateMutability": "nonpayable",
|
1360
741
|
"type": "function"
|
1361
742
|
},
|
@@ -1367,41 +748,12 @@
|
|
1367
748
|
"type": "uint96"
|
1368
749
|
},
|
1369
750
|
{
|
1370
|
-
"
|
1371
|
-
|
1372
|
-
|
1373
|
-
"name": "fractionalFee",
|
1374
|
-
"type": "uint256"
|
1375
|
-
},
|
1376
|
-
{
|
1377
|
-
"internalType": "uint256",
|
1378
|
-
"name": "fixedFee",
|
1379
|
-
"type": "uint256"
|
1380
|
-
}
|
1381
|
-
],
|
1382
|
-
"internalType": "struct Fee",
|
1383
|
-
"name": "stakingFee",
|
1384
|
-
"type": "tuple"
|
1385
|
-
},
|
1386
|
-
{
|
1387
|
-
"components": [
|
1388
|
-
{
|
1389
|
-
"internalType": "UFixed",
|
1390
|
-
"name": "fractionalFee",
|
1391
|
-
"type": "uint256"
|
1392
|
-
},
|
1393
|
-
{
|
1394
|
-
"internalType": "uint256",
|
1395
|
-
"name": "fixedFee",
|
1396
|
-
"type": "uint256"
|
1397
|
-
}
|
1398
|
-
],
|
1399
|
-
"internalType": "struct Fee",
|
1400
|
-
"name": "performanceFee",
|
1401
|
-
"type": "tuple"
|
751
|
+
"internalType": "StateId",
|
752
|
+
"name": "newState",
|
753
|
+
"type": "uint8"
|
1402
754
|
}
|
1403
755
|
],
|
1404
|
-
"name": "
|
756
|
+
"name": "updatePoolSetupState",
|
1405
757
|
"outputs": [],
|
1406
758
|
"stateMutability": "nonpayable",
|
1407
759
|
"type": "function"
|
@@ -1416,39 +768,139 @@
|
|
1416
768
|
{
|
1417
769
|
"components": [
|
1418
770
|
{
|
1419
|
-
"internalType": "
|
1420
|
-
"name": "
|
1421
|
-
"type": "
|
771
|
+
"internalType": "contract IERC20Metadata",
|
772
|
+
"name": "token",
|
773
|
+
"type": "address"
|
1422
774
|
},
|
1423
775
|
{
|
1424
|
-
"internalType": "
|
1425
|
-
"name": "
|
1426
|
-
"type": "
|
1427
|
-
}
|
1428
|
-
],
|
1429
|
-
"internalType": "struct Fee",
|
1430
|
-
"name": "policyFee",
|
1431
|
-
"type": "tuple"
|
1432
|
-
},
|
1433
|
-
{
|
1434
|
-
"components": [
|
776
|
+
"internalType": "contract TokenHandler",
|
777
|
+
"name": "tokenHandler",
|
778
|
+
"type": "address"
|
779
|
+
},
|
1435
780
|
{
|
1436
|
-
"internalType": "
|
1437
|
-
"name": "
|
1438
|
-
"type": "
|
781
|
+
"internalType": "NftId",
|
782
|
+
"name": "distributionNftId",
|
783
|
+
"type": "uint96"
|
1439
784
|
},
|
1440
785
|
{
|
1441
|
-
"internalType": "
|
1442
|
-
"name": "
|
1443
|
-
"type": "
|
786
|
+
"internalType": "NftId",
|
787
|
+
"name": "poolNftId",
|
788
|
+
"type": "uint96"
|
789
|
+
},
|
790
|
+
{
|
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"
|
1444
891
|
}
|
1445
892
|
],
|
1446
|
-
"internalType": "struct
|
1447
|
-
"name": "
|
893
|
+
"internalType": "struct ISetup.ProductSetupInfo",
|
894
|
+
"name": "setup",
|
1448
895
|
"type": "tuple"
|
896
|
+
},
|
897
|
+
{
|
898
|
+
"internalType": "StateId",
|
899
|
+
"name": "newState",
|
900
|
+
"type": "uint8"
|
1449
901
|
}
|
1450
902
|
],
|
1451
|
-
"name": "
|
903
|
+
"name": "updateProductSetup",
|
1452
904
|
"outputs": [],
|
1453
905
|
"stateMutability": "nonpayable",
|
1454
906
|
"type": "function"
|
@@ -1457,16 +909,16 @@
|
|
1457
909
|
"inputs": [
|
1458
910
|
{
|
1459
911
|
"internalType": "NftId",
|
1460
|
-
"name": "
|
912
|
+
"name": "productNftId",
|
1461
913
|
"type": "uint96"
|
1462
914
|
},
|
1463
915
|
{
|
1464
|
-
"internalType": "
|
1465
|
-
"name": "
|
1466
|
-
"type": "
|
916
|
+
"internalType": "StateId",
|
917
|
+
"name": "newState",
|
918
|
+
"type": "uint8"
|
1467
919
|
}
|
1468
920
|
],
|
1469
|
-
"name": "
|
921
|
+
"name": "updateProductSetupState",
|
1470
922
|
"outputs": [],
|
1471
923
|
"stateMutability": "nonpayable",
|
1472
924
|
"type": "function"
|