@etherisc/gif-next 0.0.2-f9bc4c7-556 → 0.0.2-fbe22f0-239
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +314 -2
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
- package/artifacts/contracts/components/Component.sol/Component.json +858 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +1114 -0
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/{registry/IChainNft.sol/IChainNft.json → components/IComponent.sol/IComponent.json} +281 -226
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +695 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +601 -76
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +582 -61
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +1099 -159
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +1030 -84
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +4 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +66 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +4 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +24 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +4 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +42 -0
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +764 -0
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +185 -0
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1150 -1021
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +591 -0
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +2047 -1067
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +984 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1386 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1164 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +584 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +728 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +45 -127
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +55 -245
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +4 -4
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +254 -0
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{access/IAccess.sol/IAccess.json → IDistribution.sol/IDistribution.json} +2 -2
- package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
- package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
- package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
- package/artifacts/contracts/instance/{base/ModuleBase.sol/ModuleBase.json → module/ISetup.sol/ISetup.json} +2 -2
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +1091 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1292 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +560 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +897 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +548 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +625 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +785 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/{base/InstanceBase.sol/InstanceBase.json → service/IDistributionService.sol/IDistributionService.json} +205 -85
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +771 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +203 -80
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +209 -150
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1352 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +616 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +546 -86
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +548 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +521 -213
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +548 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +186 -12
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +466 -34
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +986 -0
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +470 -103
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1325 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +575 -0
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +505 -0
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
- package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
- package/artifacts/contracts/{components/IBaseComponent.sol/IBaseComponent.json → shared/INftOwnable.sol/INftOwnable.json} +56 -79
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +129 -0
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +116 -36
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
- package/artifacts/contracts/{instance/service/IComponentOwnerService.sol/IComponentOwnerService.json → shared/IService.sol/IService.json} +174 -117
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +55 -14
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +277 -0
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +172 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +473 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +293 -25
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
- package/artifacts/contracts/shared/Service.sol/Service.json +601 -0
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
- package/artifacts/contracts/shared/Versionable.sol/Versionable.json +78 -14
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
- package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +309 -26
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +14 -14
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +412 -58
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +103 -23
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
- package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +52 -13
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +31 -17
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
- package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +134 -8
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +15 -2
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
- package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
- package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.json +40 -2
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
- package/contracts/components/Component.sol +230 -0
- package/contracts/components/Distribution.sol +156 -0
- package/contracts/components/IComponent.sol +50 -0
- package/contracts/components/IDistributionComponent.sol +47 -0
- package/contracts/components/IPoolComponent.sol +65 -35
- package/contracts/components/IProductComponent.sol +29 -9
- package/contracts/components/Pool.sol +180 -100
- package/contracts/components/Product.sol +203 -42
- package/contracts/experiment/cloning/Cloner.sol +47 -0
- package/contracts/instance/BundleManager.sol +125 -0
- package/contracts/instance/Cloneable.sol +46 -0
- package/contracts/instance/IInstance.sol +65 -45
- package/contracts/instance/IInstanceService.sol +41 -0
- package/contracts/instance/Instance.sol +253 -53
- package/contracts/instance/InstanceAccessManager.sol +297 -0
- package/contracts/instance/InstanceReader.sol +293 -0
- package/contracts/instance/InstanceService.sol +434 -0
- package/contracts/instance/InstanceServiceManager.sol +54 -0
- package/contracts/instance/ObjectManager.sol +84 -0
- package/contracts/instance/base/ComponentService.sol +134 -0
- package/contracts/instance/base/IKeyValueStore.sol +13 -13
- package/contracts/instance/base/ILifecycle.sol +3 -3
- package/contracts/instance/base/KeyValueStore.sol +53 -37
- package/contracts/instance/base/Lifecycle.sol +16 -11
- package/contracts/instance/module/IAccess.sol +47 -0
- package/contracts/instance/module/IBundle.sol +20 -0
- package/contracts/instance/module/IDistribution.sol +39 -0
- package/contracts/instance/module/IPolicy.sol +45 -0
- package/contracts/instance/module/IRisk.sol +11 -0
- package/contracts/instance/module/ISetup.sol +47 -0
- package/contracts/instance/module/ITreasury.sol +23 -0
- package/contracts/instance/service/ApplicationService.sol +268 -0
- package/contracts/instance/service/BundleService.sol +298 -0
- package/contracts/instance/service/BundleServiceManager.sol +51 -0
- package/contracts/instance/service/DistributionService.sol +105 -0
- package/contracts/instance/service/DistributionServiceManager.sol +51 -0
- package/contracts/instance/service/IApplicationService.sol +82 -0
- package/contracts/instance/service/IBundleService.sol +54 -0
- package/contracts/instance/service/IDistributionService.sol +12 -0
- package/contracts/instance/service/IPolicyService.sol +88 -0
- package/contracts/instance/service/IPoolService.sol +8 -18
- package/contracts/instance/service/IProductService.sol +21 -39
- package/contracts/instance/service/PolicyService.sol +524 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +78 -92
- package/contracts/instance/service/PoolServiceManager.sol +51 -0
- package/contracts/instance/service/ProductService.sol +168 -289
- package/contracts/instance/service/ProductServiceManager.sol +54 -0
- package/contracts/registry/ChainNft.sol +79 -36
- package/contracts/registry/IRegistry.sol +66 -24
- package/contracts/registry/IRegistryService.sol +65 -0
- package/contracts/registry/ITransferInterceptor.sol +6 -0
- package/contracts/registry/Registry.sol +364 -283
- package/contracts/registry/RegistryAccessManager.sol +216 -0
- package/contracts/registry/RegistryService.sol +261 -0
- package/contracts/registry/RegistryServiceManager.sol +62 -0
- package/contracts/registry/ReleaseManager.sol +332 -0
- package/contracts/registry/TokenRegistry.sol +113 -0
- package/contracts/shared/ContractDeployerLib.sol +72 -0
- package/contracts/shared/ERC165.sol +13 -8
- package/contracts/shared/INftOwnable.sol +27 -0
- package/contracts/shared/IPolicyHolder.sol +26 -0
- package/contracts/shared/IRegisterable.sol +10 -19
- package/contracts/shared/IService.sol +16 -0
- package/contracts/shared/IVersionable.sol +55 -11
- package/contracts/shared/NftOwnable.sol +187 -0
- package/contracts/shared/PolicyHolder.sol +52 -0
- package/contracts/shared/ProxyManager.sol +95 -0
- package/contracts/shared/Registerable.sol +58 -63
- package/contracts/shared/Service.sol +60 -0
- package/contracts/shared/TokenHandler.sol +27 -0
- package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
- package/contracts/shared/Versionable.sol +113 -54
- package/contracts/test/TestFee.sol +2 -2
- package/contracts/test/TestRegisterable.sol +5 -6
- package/contracts/test/TestRoleId.sol +1 -1
- package/contracts/test/TestService.sol +7 -14
- package/contracts/types/DistributorType.sol +55 -0
- package/contracts/types/Fee.sol +10 -5
- package/contracts/types/Key32.sol +8 -3
- package/contracts/types/NftIdSet.sol +26 -24
- package/contracts/types/NumberId.sol +52 -0
- package/contracts/types/ObjectType.sol +55 -14
- package/contracts/types/Referral.sol +85 -0
- package/contracts/types/RiskId.sol +43 -0
- package/contracts/types/RoleId.sol +62 -10
- package/contracts/types/StateId.sol +5 -1
- package/contracts/types/Timestamp.sol +7 -3
- package/contracts/types/UFixed.sol +128 -12
- package/contracts/types/Version.sol +13 -1
- package/package.json +6 -5
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -174
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
- package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +0 -300
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -63
- package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IService.sol/IService.json +0 -300
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +0 -300
- package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -296
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -296
- package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +0 -10
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +0 -4
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.json +0 -10
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.json +0 -10
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +0 -188
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +0 -188
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -261
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -261
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.json +0 -10
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -149
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -149
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -10
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -10
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -533
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -533
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -523
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
- package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
- package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
- package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
- package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -387
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -393
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
- package/contracts/components/BaseComponent.sol +0 -88
- package/contracts/components/IBaseComponent.sol +0 -19
- package/contracts/experiment/statemachine/README.md +0 -112
- package/contracts/instance/IInstanceLinked.sol +0 -8
- package/contracts/instance/base/ComponentServiceBase.sol +0 -42
- package/contracts/instance/base/IInstanceBase.sol +0 -14
- package/contracts/instance/base/IService.sol +0 -15
- package/contracts/instance/base/InstanceBase.sol +0 -80
- package/contracts/instance/base/ModuleBase.sol +0 -52
- package/contracts/instance/base/ServiceBase.sol +0 -37
- package/contracts/instance/module/access/Access.sol +0 -149
- package/contracts/instance/module/access/IAccess.sol +0 -53
- package/contracts/instance/module/bundle/BundleModule.sol +0 -136
- package/contracts/instance/module/bundle/IBundle.sol +0 -58
- package/contracts/instance/module/compensation/CompensationModule.sol +0 -8
- package/contracts/instance/module/compensation/ICompensation.sol +0 -10
- package/contracts/instance/module/component/ComponentModule.sol +0 -95
- package/contracts/instance/module/component/IComponent.sol +0 -53
- package/contracts/instance/module/policy/IPolicy.sol +0 -60
- package/contracts/instance/module/policy/PolicyModule.sol +0 -76
- package/contracts/instance/module/pool/IPoolModule.sol +0 -41
- package/contracts/instance/module/pool/PoolModule.sol +0 -87
- package/contracts/instance/module/risk/IRisk.sol +0 -10
- package/contracts/instance/module/risk/RiskModule.sol +0 -8
- package/contracts/instance/module/treasury/ITreasury.sol +0 -103
- package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
- package/contracts/instance/module/treasury/TreasuryModule.sol +0 -152
- package/contracts/instance/service/ComponentOwnerService.sol +0 -170
- package/contracts/instance/service/IComponentOwnerService.sol +0 -22
- package/contracts/registry/IChainNft.sol +0 -21
- package/contracts/registry/IRegistryLinked.sol +0 -8
- package/contracts/shared/IOwnable.sol +0 -6
- package/contracts/test/TestPool.sol +0 -22
- package/contracts/test/TestProduct.sol +0 -44
@@ -4,302 +4,305 @@
|
|
4
4
|
"sourceName": "contracts/instance/IInstance.sol",
|
5
5
|
"abi": [
|
6
6
|
{
|
7
|
-
"anonymous": false,
|
8
7
|
"inputs": [
|
9
8
|
{
|
10
|
-
"
|
11
|
-
"
|
12
|
-
"
|
13
|
-
"type": "bytes8"
|
14
|
-
},
|
15
|
-
{
|
16
|
-
"indexed": false,
|
17
|
-
"internalType": "string",
|
18
|
-
"name": "roleName",
|
19
|
-
"type": "string"
|
9
|
+
"internalType": "address",
|
10
|
+
"name": "authority",
|
11
|
+
"type": "address"
|
20
12
|
}
|
21
13
|
],
|
22
|
-
"name": "
|
23
|
-
"type": "
|
14
|
+
"name": "AccessManagedInvalidAuthority",
|
15
|
+
"type": "error"
|
24
16
|
},
|
25
17
|
{
|
26
|
-
"anonymous": false,
|
27
18
|
"inputs": [
|
28
19
|
{
|
29
|
-
"indexed": false,
|
30
|
-
"internalType": "RoleId",
|
31
|
-
"name": "role",
|
32
|
-
"type": "bytes8"
|
33
|
-
},
|
34
|
-
{
|
35
|
-
"indexed": false,
|
36
20
|
"internalType": "address",
|
37
|
-
"name": "
|
21
|
+
"name": "caller",
|
38
22
|
"type": "address"
|
39
23
|
},
|
40
24
|
{
|
41
|
-
"
|
42
|
-
"
|
43
|
-
"
|
44
|
-
"type": "bool"
|
25
|
+
"internalType": "uint32",
|
26
|
+
"name": "delay",
|
27
|
+
"type": "uint32"
|
45
28
|
}
|
46
29
|
],
|
47
|
-
"name": "
|
48
|
-
"type": "
|
30
|
+
"name": "AccessManagedRequiredDelay",
|
31
|
+
"type": "error"
|
49
32
|
},
|
50
33
|
{
|
51
|
-
"anonymous": false,
|
52
34
|
"inputs": [
|
53
35
|
{
|
54
|
-
"
|
55
|
-
"
|
56
|
-
"
|
57
|
-
"type": "bytes8"
|
58
|
-
},
|
59
|
-
{
|
60
|
-
"indexed": false,
|
61
|
-
"internalType": "bool",
|
62
|
-
"name": "active",
|
63
|
-
"type": "bool"
|
36
|
+
"internalType": "address",
|
37
|
+
"name": "caller",
|
38
|
+
"type": "address"
|
64
39
|
}
|
65
40
|
],
|
66
|
-
"name": "
|
67
|
-
"type": "
|
41
|
+
"name": "AccessManagedUnauthorized",
|
42
|
+
"type": "error"
|
68
43
|
},
|
69
44
|
{
|
70
|
-
"anonymous": false,
|
71
45
|
"inputs": [
|
72
46
|
{
|
73
|
-
"indexed": false,
|
74
|
-
"internalType": "Version",
|
75
|
-
"name": "version",
|
76
|
-
"type": "uint24"
|
77
|
-
},
|
78
|
-
{
|
79
|
-
"indexed": false,
|
80
47
|
"internalType": "address",
|
81
|
-
"name": "
|
48
|
+
"name": "registry",
|
82
49
|
"type": "address"
|
83
50
|
},
|
84
51
|
{
|
85
|
-
"
|
86
|
-
"
|
87
|
-
"
|
88
|
-
"type": "address"
|
52
|
+
"internalType": "NftId",
|
53
|
+
"name": "nftId",
|
54
|
+
"type": "uint96"
|
89
55
|
}
|
90
56
|
],
|
91
|
-
"name": "
|
92
|
-
"type": "
|
57
|
+
"name": "ErrorAlreadyLinked",
|
58
|
+
"type": "error"
|
93
59
|
},
|
94
60
|
{
|
95
61
|
"inputs": [
|
96
62
|
{
|
97
63
|
"internalType": "address",
|
98
|
-
"name": "
|
99
|
-
"type": "address"
|
100
|
-
},
|
101
|
-
{
|
102
|
-
"internalType": "address",
|
103
|
-
"name": "activatedBy",
|
64
|
+
"name": "contractAddress",
|
104
65
|
"type": "address"
|
105
66
|
}
|
106
67
|
],
|
107
|
-
"name": "
|
108
|
-
"
|
109
|
-
|
110
|
-
|
68
|
+
"name": "ErrorContractNotRegistered",
|
69
|
+
"type": "error"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"inputs": [],
|
73
|
+
"name": "ErrorInitialOwnerZero",
|
74
|
+
"type": "error"
|
111
75
|
},
|
112
76
|
{
|
113
77
|
"inputs": [
|
114
78
|
{
|
115
|
-
"internalType": "
|
116
|
-
"name": "
|
117
|
-
"type": "
|
79
|
+
"internalType": "ObjectType",
|
80
|
+
"name": "objectType",
|
81
|
+
"type": "uint8"
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"internalType": "StateId",
|
85
|
+
"name": "fromStateId",
|
86
|
+
"type": "uint8"
|
118
87
|
},
|
88
|
+
{
|
89
|
+
"internalType": "StateId",
|
90
|
+
"name": "toStateId",
|
91
|
+
"type": "uint8"
|
92
|
+
}
|
93
|
+
],
|
94
|
+
"name": "ErrorInvalidStateTransition",
|
95
|
+
"type": "error"
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"inputs": [
|
119
99
|
{
|
120
100
|
"internalType": "NftId",
|
121
|
-
"name": "
|
101
|
+
"name": "nftId",
|
122
102
|
"type": "uint96"
|
123
103
|
},
|
124
104
|
{
|
125
|
-
"internalType": "
|
126
|
-
"name": "
|
127
|
-
"type": "
|
105
|
+
"internalType": "ObjectType",
|
106
|
+
"name": "objectType",
|
107
|
+
"type": "uint8"
|
128
108
|
}
|
129
109
|
],
|
130
|
-
"name": "
|
131
|
-
"
|
132
|
-
"stateMutability": "nonpayable",
|
133
|
-
"type": "function"
|
110
|
+
"name": "ErrorNoLifecycle",
|
111
|
+
"type": "error"
|
134
112
|
},
|
135
113
|
{
|
136
114
|
"inputs": [
|
137
115
|
{
|
138
|
-
"internalType": "
|
139
|
-
"name": "
|
140
|
-
"type": "
|
141
|
-
}
|
116
|
+
"internalType": "address",
|
117
|
+
"name": "account",
|
118
|
+
"type": "address"
|
119
|
+
}
|
120
|
+
],
|
121
|
+
"name": "ErrorNotOwner",
|
122
|
+
"type": "error"
|
123
|
+
},
|
124
|
+
{
|
125
|
+
"inputs": [
|
142
126
|
{
|
143
|
-
"
|
144
|
-
|
145
|
-
|
146
|
-
"name": "fractionalFee",
|
147
|
-
"type": "uint256"
|
148
|
-
},
|
149
|
-
{
|
150
|
-
"internalType": "uint256",
|
151
|
-
"name": "fixedFee",
|
152
|
-
"type": "uint256"
|
153
|
-
}
|
154
|
-
],
|
155
|
-
"internalType": "struct Fee",
|
156
|
-
"name": "fee",
|
157
|
-
"type": "tuple"
|
127
|
+
"internalType": "address",
|
128
|
+
"name": "registryAddress",
|
129
|
+
"type": "address"
|
158
130
|
}
|
159
131
|
],
|
160
|
-
"name": "
|
161
|
-
"
|
132
|
+
"name": "ErrorNotRegistry",
|
133
|
+
"type": "error"
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"inputs": [],
|
137
|
+
"name": "ErrorRegistryAddressZero",
|
138
|
+
"type": "error"
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"inputs": [
|
162
142
|
{
|
163
|
-
"internalType": "
|
164
|
-
"name": "
|
165
|
-
"type": "
|
166
|
-
}
|
143
|
+
"internalType": "address",
|
144
|
+
"name": "registry",
|
145
|
+
"type": "address"
|
146
|
+
}
|
147
|
+
],
|
148
|
+
"name": "ErrorRegistryAlreadyInitialized",
|
149
|
+
"type": "error"
|
150
|
+
},
|
151
|
+
{
|
152
|
+
"inputs": [],
|
153
|
+
"name": "ErrorRegistryNotInitialized",
|
154
|
+
"type": "error"
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"anonymous": false,
|
158
|
+
"inputs": [
|
167
159
|
{
|
168
|
-
"
|
169
|
-
"
|
170
|
-
"
|
160
|
+
"indexed": false,
|
161
|
+
"internalType": "address",
|
162
|
+
"name": "authority",
|
163
|
+
"type": "address"
|
171
164
|
}
|
172
165
|
],
|
173
|
-
"
|
174
|
-
"type": "
|
166
|
+
"name": "AuthorityUpdated",
|
167
|
+
"type": "event"
|
175
168
|
},
|
176
169
|
{
|
170
|
+
"anonymous": false,
|
177
171
|
"inputs": [
|
178
172
|
{
|
179
|
-
"
|
180
|
-
"
|
181
|
-
"
|
173
|
+
"indexed": false,
|
174
|
+
"internalType": "ObjectType",
|
175
|
+
"name": "objectType",
|
176
|
+
"type": "uint8"
|
182
177
|
},
|
183
178
|
{
|
184
|
-
"
|
185
|
-
"
|
186
|
-
"
|
179
|
+
"indexed": false,
|
180
|
+
"internalType": "KeyId",
|
181
|
+
"name": "keyId",
|
182
|
+
"type": "bytes31"
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"indexed": false,
|
186
|
+
"internalType": "StateId",
|
187
|
+
"name": "state",
|
188
|
+
"type": "uint8"
|
187
189
|
},
|
188
190
|
{
|
189
|
-
"
|
190
|
-
"
|
191
|
-
"
|
191
|
+
"indexed": false,
|
192
|
+
"internalType": "address",
|
193
|
+
"name": "createdBy",
|
194
|
+
"type": "address"
|
195
|
+
},
|
196
|
+
{
|
197
|
+
"indexed": false,
|
198
|
+
"internalType": "address",
|
199
|
+
"name": "txOrigin",
|
200
|
+
"type": "address"
|
192
201
|
}
|
193
202
|
],
|
194
|
-
"name": "
|
195
|
-
"
|
196
|
-
"stateMutability": "nonpayable",
|
197
|
-
"type": "function"
|
203
|
+
"name": "LogInfoCreated",
|
204
|
+
"type": "event"
|
198
205
|
},
|
199
206
|
{
|
207
|
+
"anonymous": false,
|
200
208
|
"inputs": [
|
201
209
|
{
|
202
|
-
"
|
203
|
-
"
|
204
|
-
"
|
210
|
+
"indexed": false,
|
211
|
+
"internalType": "ObjectType",
|
212
|
+
"name": "objectType",
|
213
|
+
"type": "uint8"
|
205
214
|
},
|
206
215
|
{
|
207
|
-
"
|
208
|
-
"
|
209
|
-
"
|
216
|
+
"indexed": false,
|
217
|
+
"internalType": "KeyId",
|
218
|
+
"name": "keyId",
|
219
|
+
"type": "bytes31"
|
210
220
|
},
|
211
221
|
{
|
212
|
-
"
|
213
|
-
"
|
214
|
-
"
|
222
|
+
"indexed": false,
|
223
|
+
"internalType": "StateId",
|
224
|
+
"name": "state",
|
225
|
+
"type": "uint8"
|
215
226
|
},
|
216
227
|
{
|
217
|
-
"
|
218
|
-
"
|
219
|
-
"
|
228
|
+
"indexed": false,
|
229
|
+
"internalType": "address",
|
230
|
+
"name": "updatedBy",
|
231
|
+
"type": "address"
|
220
232
|
},
|
221
233
|
{
|
222
|
-
"
|
223
|
-
"
|
224
|
-
"
|
234
|
+
"indexed": false,
|
235
|
+
"internalType": "address",
|
236
|
+
"name": "txOrigin",
|
237
|
+
"type": "address"
|
225
238
|
},
|
226
239
|
{
|
227
|
-
"
|
228
|
-
"
|
229
|
-
"
|
240
|
+
"indexed": false,
|
241
|
+
"internalType": "Blocknumber",
|
242
|
+
"name": "lastUpdatedIn",
|
243
|
+
"type": "uint32"
|
230
244
|
}
|
231
245
|
],
|
232
|
-
"name": "
|
233
|
-
"
|
234
|
-
"stateMutability": "nonpayable",
|
235
|
-
"type": "function"
|
246
|
+
"name": "LogInfoUpdated",
|
247
|
+
"type": "event"
|
236
248
|
},
|
237
249
|
{
|
250
|
+
"anonymous": false,
|
238
251
|
"inputs": [
|
239
252
|
{
|
240
|
-
"
|
241
|
-
"
|
242
|
-
"
|
253
|
+
"indexed": false,
|
254
|
+
"internalType": "ObjectType",
|
255
|
+
"name": "objectType",
|
256
|
+
"type": "uint8"
|
243
257
|
},
|
244
258
|
{
|
245
|
-
"
|
246
|
-
"
|
247
|
-
"
|
259
|
+
"indexed": false,
|
260
|
+
"internalType": "KeyId",
|
261
|
+
"name": "keyId",
|
262
|
+
"type": "bytes31"
|
248
263
|
},
|
249
264
|
{
|
250
|
-
"
|
251
|
-
"
|
252
|
-
"
|
265
|
+
"indexed": false,
|
266
|
+
"internalType": "StateId",
|
267
|
+
"name": "stateOld",
|
268
|
+
"type": "uint8"
|
253
269
|
},
|
254
270
|
{
|
255
|
-
"
|
256
|
-
"
|
257
|
-
"
|
271
|
+
"indexed": false,
|
272
|
+
"internalType": "StateId",
|
273
|
+
"name": "stateNew",
|
274
|
+
"type": "uint8"
|
258
275
|
},
|
259
276
|
{
|
260
|
-
"
|
261
|
-
"
|
262
|
-
"
|
263
|
-
|
264
|
-
|
265
|
-
"name": "createBundleInfo",
|
266
|
-
"outputs": [],
|
267
|
-
"stateMutability": "nonpayable",
|
268
|
-
"type": "function"
|
269
|
-
},
|
270
|
-
{
|
271
|
-
"inputs": [
|
277
|
+
"indexed": false,
|
278
|
+
"internalType": "address",
|
279
|
+
"name": "updatedBy",
|
280
|
+
"type": "address"
|
281
|
+
},
|
272
282
|
{
|
273
|
-
"
|
274
|
-
"
|
275
|
-
"
|
276
|
-
|
277
|
-
|
278
|
-
"name": "createRole",
|
279
|
-
"outputs": [
|
283
|
+
"indexed": false,
|
284
|
+
"internalType": "address",
|
285
|
+
"name": "txOrigin",
|
286
|
+
"type": "address"
|
287
|
+
},
|
280
288
|
{
|
281
|
-
"
|
282
|
-
"
|
283
|
-
"
|
289
|
+
"indexed": false,
|
290
|
+
"internalType": "Blocknumber",
|
291
|
+
"name": "lastUpdatedIn",
|
292
|
+
"type": "uint32"
|
284
293
|
}
|
285
294
|
],
|
286
|
-
"
|
287
|
-
"type": "
|
295
|
+
"name": "LogStateUpdated",
|
296
|
+
"type": "event"
|
288
297
|
},
|
289
298
|
{
|
290
|
-
"inputs": [
|
291
|
-
|
292
|
-
"internalType": "NftId",
|
293
|
-
"name": "poolNftId",
|
294
|
-
"type": "uint96"
|
295
|
-
}
|
296
|
-
],
|
297
|
-
"name": "getBundleCount",
|
299
|
+
"inputs": [],
|
300
|
+
"name": "authority",
|
298
301
|
"outputs": [
|
299
302
|
{
|
300
|
-
"internalType": "
|
301
|
-
"name": "
|
302
|
-
"type": "
|
303
|
+
"internalType": "address",
|
304
|
+
"name": "",
|
305
|
+
"type": "address"
|
303
306
|
}
|
304
307
|
],
|
305
308
|
"stateMutability": "view",
|
@@ -311,29 +314,38 @@
|
|
311
314
|
"internalType": "NftId",
|
312
315
|
"name": "bundleNftId",
|
313
316
|
"type": "uint96"
|
314
|
-
}
|
315
|
-
],
|
316
|
-
"name": "getBundleInfo",
|
317
|
-
"outputs": [
|
317
|
+
},
|
318
318
|
{
|
319
319
|
"components": [
|
320
|
-
{
|
321
|
-
"internalType": "NftId",
|
322
|
-
"name": "nftId",
|
323
|
-
"type": "uint96"
|
324
|
-
},
|
325
320
|
{
|
326
321
|
"internalType": "NftId",
|
327
322
|
"name": "poolNftId",
|
328
323
|
"type": "uint96"
|
329
324
|
},
|
330
325
|
{
|
331
|
-
"
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
326
|
+
"components": [
|
327
|
+
{
|
328
|
+
"internalType": "UFixed",
|
329
|
+
"name": "fractionalFee",
|
330
|
+
"type": "uint256"
|
331
|
+
},
|
332
|
+
{
|
333
|
+
"internalType": "uint256",
|
334
|
+
"name": "fixedFee",
|
335
|
+
"type": "uint256"
|
336
|
+
}
|
337
|
+
],
|
338
|
+
"internalType": "struct Fee",
|
339
|
+
"name": "fee",
|
340
|
+
"type": "tuple"
|
341
|
+
},
|
342
|
+
{
|
343
|
+
"internalType": "bytes",
|
344
|
+
"name": "filter",
|
345
|
+
"type": "bytes"
|
346
|
+
},
|
347
|
+
{
|
348
|
+
"internalType": "uint256",
|
337
349
|
"name": "capitalAmount",
|
338
350
|
"type": "uint256"
|
339
351
|
},
|
@@ -347,6 +359,11 @@
|
|
347
359
|
"name": "balanceAmount",
|
348
360
|
"type": "uint256"
|
349
361
|
},
|
362
|
+
{
|
363
|
+
"internalType": "uint256",
|
364
|
+
"name": "lifetime",
|
365
|
+
"type": "uint256"
|
366
|
+
},
|
350
367
|
{
|
351
368
|
"internalType": "Timestamp",
|
352
369
|
"name": "expiredAt",
|
@@ -359,236 +376,76 @@
|
|
359
376
|
}
|
360
377
|
],
|
361
378
|
"internalType": "struct IBundle.BundleInfo",
|
362
|
-
"name": "
|
379
|
+
"name": "bundle",
|
363
380
|
"type": "tuple"
|
364
381
|
}
|
365
382
|
],
|
366
|
-
"
|
383
|
+
"name": "createBundle",
|
384
|
+
"outputs": [],
|
385
|
+
"stateMutability": "nonpayable",
|
367
386
|
"type": "function"
|
368
387
|
},
|
369
388
|
{
|
370
389
|
"inputs": [
|
371
390
|
{
|
372
391
|
"internalType": "NftId",
|
373
|
-
"name": "
|
392
|
+
"name": "distributionNftId",
|
374
393
|
"type": "uint96"
|
375
394
|
},
|
376
|
-
{
|
377
|
-
"internalType": "uint256",
|
378
|
-
"name": "index",
|
379
|
-
"type": "uint256"
|
380
|
-
}
|
381
|
-
],
|
382
|
-
"name": "getBundleNftId",
|
383
|
-
"outputs": [
|
384
|
-
{
|
385
|
-
"internalType": "NftId",
|
386
|
-
"name": "bundleNftId",
|
387
|
-
"type": "uint96"
|
388
|
-
}
|
389
|
-
],
|
390
|
-
"stateMutability": "view",
|
391
|
-
"type": "function"
|
392
|
-
},
|
393
|
-
{
|
394
|
-
"inputs": [],
|
395
|
-
"name": "getComponentCount",
|
396
|
-
"outputs": [
|
397
|
-
{
|
398
|
-
"internalType": "uint256",
|
399
|
-
"name": "numberOfCompnents",
|
400
|
-
"type": "uint256"
|
401
|
-
}
|
402
|
-
],
|
403
|
-
"stateMutability": "view",
|
404
|
-
"type": "function"
|
405
|
-
},
|
406
|
-
{
|
407
|
-
"inputs": [
|
408
|
-
{
|
409
|
-
"internalType": "uint256",
|
410
|
-
"name": "idx",
|
411
|
-
"type": "uint256"
|
412
|
-
}
|
413
|
-
],
|
414
|
-
"name": "getComponentId",
|
415
|
-
"outputs": [
|
416
|
-
{
|
417
|
-
"internalType": "NftId",
|
418
|
-
"name": "nftId",
|
419
|
-
"type": "uint96"
|
420
|
-
}
|
421
|
-
],
|
422
|
-
"stateMutability": "view",
|
423
|
-
"type": "function"
|
424
|
-
},
|
425
|
-
{
|
426
|
-
"inputs": [
|
427
|
-
{
|
428
|
-
"internalType": "NftId",
|
429
|
-
"name": "nftId",
|
430
|
-
"type": "uint96"
|
431
|
-
}
|
432
|
-
],
|
433
|
-
"name": "getComponentInfo",
|
434
|
-
"outputs": [
|
435
395
|
{
|
436
396
|
"components": [
|
437
397
|
{
|
438
398
|
"internalType": "NftId",
|
439
|
-
"name": "
|
399
|
+
"name": "productNftId",
|
440
400
|
"type": "uint96"
|
441
401
|
},
|
442
402
|
{
|
443
|
-
"internalType": "
|
444
|
-
"name": "
|
445
|
-
"type": "uint8"
|
446
|
-
},
|
447
|
-
{
|
448
|
-
"internalType": "contract IERC20Metadata",
|
449
|
-
"name": "token",
|
403
|
+
"internalType": "contract TokenHandler",
|
404
|
+
"name": "tokenHandler",
|
450
405
|
"type": "address"
|
451
|
-
}
|
452
|
-
],
|
453
|
-
"internalType": "struct IComponent.ComponentInfo",
|
454
|
-
"name": "info",
|
455
|
-
"type": "tuple"
|
456
|
-
}
|
457
|
-
],
|
458
|
-
"stateMutability": "view",
|
459
|
-
"type": "function"
|
460
|
-
},
|
461
|
-
{
|
462
|
-
"inputs": [],
|
463
|
-
"name": "getComponentOwnerService",
|
464
|
-
"outputs": [
|
465
|
-
{
|
466
|
-
"internalType": "contract IComponentOwnerService",
|
467
|
-
"name": "",
|
468
|
-
"type": "address"
|
469
|
-
}
|
470
|
-
],
|
471
|
-
"stateMutability": "view",
|
472
|
-
"type": "function"
|
473
|
-
},
|
474
|
-
{
|
475
|
-
"inputs": [],
|
476
|
-
"name": "getData",
|
477
|
-
"outputs": [
|
478
|
-
{
|
479
|
-
"internalType": "bytes",
|
480
|
-
"name": "data",
|
481
|
-
"type": "bytes"
|
482
|
-
}
|
483
|
-
],
|
484
|
-
"stateMutability": "view",
|
485
|
-
"type": "function"
|
486
|
-
},
|
487
|
-
{
|
488
|
-
"inputs": [
|
489
|
-
{
|
490
|
-
"internalType": "UFixed",
|
491
|
-
"name": "fractionalFee",
|
492
|
-
"type": "uint256"
|
493
|
-
},
|
494
|
-
{
|
495
|
-
"internalType": "uint256",
|
496
|
-
"name": "fixedFee",
|
497
|
-
"type": "uint256"
|
498
|
-
}
|
499
|
-
],
|
500
|
-
"name": "getFee",
|
501
|
-
"outputs": [
|
502
|
-
{
|
503
|
-
"components": [
|
406
|
+
},
|
504
407
|
{
|
505
|
-
"
|
506
|
-
|
507
|
-
|
408
|
+
"components": [
|
409
|
+
{
|
410
|
+
"internalType": "UFixed",
|
411
|
+
"name": "fractionalFee",
|
412
|
+
"type": "uint256"
|
413
|
+
},
|
414
|
+
{
|
415
|
+
"internalType": "uint256",
|
416
|
+
"name": "fixedFee",
|
417
|
+
"type": "uint256"
|
418
|
+
}
|
419
|
+
],
|
420
|
+
"internalType": "struct Fee",
|
421
|
+
"name": "distributionFee",
|
422
|
+
"type": "tuple"
|
508
423
|
},
|
509
424
|
{
|
510
|
-
"internalType": "
|
511
|
-
"name": "
|
512
|
-
"type": "
|
425
|
+
"internalType": "address",
|
426
|
+
"name": "wallet",
|
427
|
+
"type": "address"
|
513
428
|
}
|
514
429
|
],
|
515
|
-
"internalType": "struct
|
516
|
-
"name": "
|
430
|
+
"internalType": "struct ISetup.DistributionSetupInfo",
|
431
|
+
"name": "setup",
|
517
432
|
"type": "tuple"
|
518
433
|
}
|
519
434
|
],
|
520
|
-
"
|
521
|
-
"
|
522
|
-
|
523
|
-
{
|
524
|
-
"inputs": [],
|
525
|
-
"name": "getKeyValueStore",
|
526
|
-
"outputs": [
|
527
|
-
{
|
528
|
-
"internalType": "contract IKeyValueStore",
|
529
|
-
"name": "keyValueStore",
|
530
|
-
"type": "address"
|
531
|
-
}
|
532
|
-
],
|
533
|
-
"stateMutability": "view",
|
534
|
-
"type": "function"
|
535
|
-
},
|
536
|
-
{
|
537
|
-
"inputs": [],
|
538
|
-
"name": "getNftId",
|
539
|
-
"outputs": [
|
540
|
-
{
|
541
|
-
"internalType": "NftId",
|
542
|
-
"name": "nftId",
|
543
|
-
"type": "uint96"
|
544
|
-
}
|
545
|
-
],
|
546
|
-
"stateMutability": "view",
|
547
|
-
"type": "function"
|
548
|
-
},
|
549
|
-
{
|
550
|
-
"inputs": [],
|
551
|
-
"name": "getOwner",
|
552
|
-
"outputs": [
|
553
|
-
{
|
554
|
-
"internalType": "address",
|
555
|
-
"name": "owner",
|
556
|
-
"type": "address"
|
557
|
-
}
|
558
|
-
],
|
559
|
-
"stateMutability": "view",
|
560
|
-
"type": "function"
|
561
|
-
},
|
562
|
-
{
|
563
|
-
"inputs": [],
|
564
|
-
"name": "getParentNftId",
|
565
|
-
"outputs": [
|
566
|
-
{
|
567
|
-
"internalType": "NftId",
|
568
|
-
"name": "nftId",
|
569
|
-
"type": "uint96"
|
570
|
-
}
|
571
|
-
],
|
572
|
-
"stateMutability": "view",
|
435
|
+
"name": "createDistributionSetup",
|
436
|
+
"outputs": [],
|
437
|
+
"stateMutability": "nonpayable",
|
573
438
|
"type": "function"
|
574
439
|
},
|
575
440
|
{
|
576
441
|
"inputs": [
|
577
442
|
{
|
578
443
|
"internalType": "NftId",
|
579
|
-
"name": "
|
444
|
+
"name": "policyNftId",
|
580
445
|
"type": "uint96"
|
581
|
-
}
|
582
|
-
],
|
583
|
-
"name": "getPolicyInfo",
|
584
|
-
"outputs": [
|
446
|
+
},
|
585
447
|
{
|
586
448
|
"components": [
|
587
|
-
{
|
588
|
-
"internalType": "NftId",
|
589
|
-
"name": "nftId",
|
590
|
-
"type": "uint96"
|
591
|
-
},
|
592
449
|
{
|
593
450
|
"internalType": "NftId",
|
594
451
|
"name": "productNftId",
|
@@ -600,14 +457,14 @@
|
|
600
457
|
"type": "uint96"
|
601
458
|
},
|
602
459
|
{
|
603
|
-
"internalType": "
|
604
|
-
"name": "
|
605
|
-
"type": "
|
460
|
+
"internalType": "ReferralId",
|
461
|
+
"name": "referralId",
|
462
|
+
"type": "bytes8"
|
606
463
|
},
|
607
464
|
{
|
608
|
-
"internalType": "
|
609
|
-
"name": "
|
610
|
-
"type": "
|
465
|
+
"internalType": "RiskId",
|
466
|
+
"name": "riskId",
|
467
|
+
"type": "bytes8"
|
611
468
|
},
|
612
469
|
{
|
613
470
|
"internalType": "uint256",
|
@@ -631,13 +488,28 @@
|
|
631
488
|
},
|
632
489
|
{
|
633
490
|
"internalType": "bytes",
|
634
|
-
"name": "
|
491
|
+
"name": "applicationData",
|
635
492
|
"type": "bytes"
|
636
493
|
},
|
637
494
|
{
|
638
|
-
"internalType": "
|
639
|
-
"name": "
|
640
|
-
"type": "
|
495
|
+
"internalType": "bytes",
|
496
|
+
"name": "policyData",
|
497
|
+
"type": "bytes"
|
498
|
+
},
|
499
|
+
{
|
500
|
+
"internalType": "uint16",
|
501
|
+
"name": "claimsCount",
|
502
|
+
"type": "uint16"
|
503
|
+
},
|
504
|
+
{
|
505
|
+
"internalType": "uint16",
|
506
|
+
"name": "openClaimsCount",
|
507
|
+
"type": "uint16"
|
508
|
+
},
|
509
|
+
{
|
510
|
+
"internalType": "uint256",
|
511
|
+
"name": "payoutAmount",
|
512
|
+
"type": "uint256"
|
641
513
|
},
|
642
514
|
{
|
643
515
|
"internalType": "Timestamp",
|
@@ -653,91 +525,78 @@
|
|
653
525
|
"internalType": "Timestamp",
|
654
526
|
"name": "closedAt",
|
655
527
|
"type": "uint40"
|
656
|
-
},
|
657
|
-
{
|
658
|
-
"internalType": "Blocknumber",
|
659
|
-
"name": "updatedIn",
|
660
|
-
"type": "uint32"
|
661
528
|
}
|
662
529
|
],
|
663
530
|
"internalType": "struct IPolicy.PolicyInfo",
|
664
|
-
"name": "
|
531
|
+
"name": "policy",
|
665
532
|
"type": "tuple"
|
666
533
|
}
|
667
534
|
],
|
668
|
-
"
|
535
|
+
"name": "createPolicy",
|
536
|
+
"outputs": [],
|
537
|
+
"stateMutability": "nonpayable",
|
669
538
|
"type": "function"
|
670
539
|
},
|
671
540
|
{
|
672
541
|
"inputs": [
|
673
542
|
{
|
674
543
|
"internalType": "NftId",
|
675
|
-
"name": "
|
544
|
+
"name": "poolNftId",
|
676
545
|
"type": "uint96"
|
677
|
-
}
|
678
|
-
],
|
679
|
-
"name": "getPoolInfo",
|
680
|
-
"outputs": [
|
546
|
+
},
|
681
547
|
{
|
682
548
|
"components": [
|
683
549
|
{
|
684
550
|
"internalType": "NftId",
|
685
|
-
"name": "
|
551
|
+
"name": "productNftId",
|
686
552
|
"type": "uint96"
|
687
553
|
},
|
554
|
+
{
|
555
|
+
"internalType": "contract TokenHandler",
|
556
|
+
"name": "tokenHandler",
|
557
|
+
"type": "address"
|
558
|
+
},
|
688
559
|
{
|
689
560
|
"internalType": "bool",
|
690
|
-
"name": "
|
561
|
+
"name": "isInterceptingBundleTransfers",
|
691
562
|
"type": "bool"
|
692
563
|
},
|
693
564
|
{
|
694
|
-
"internalType": "
|
695
|
-
"name": "
|
696
|
-
"type": "
|
697
|
-
}
|
698
|
-
],
|
699
|
-
"internalType": "struct IPool.PoolInfo",
|
700
|
-
"name": "info",
|
701
|
-
"type": "tuple"
|
702
|
-
}
|
703
|
-
],
|
704
|
-
"stateMutability": "view",
|
705
|
-
"type": "function"
|
706
|
-
},
|
707
|
-
{
|
708
|
-
"inputs": [],
|
709
|
-
"name": "getPoolService",
|
710
|
-
"outputs": [
|
711
|
-
{
|
712
|
-
"internalType": "contract IPoolService",
|
713
|
-
"name": "",
|
714
|
-
"type": "address"
|
715
|
-
}
|
716
|
-
],
|
717
|
-
"stateMutability": "view",
|
718
|
-
"type": "function"
|
719
|
-
},
|
720
|
-
{
|
721
|
-
"inputs": [
|
722
|
-
{
|
723
|
-
"internalType": "NftId",
|
724
|
-
"name": "poolNftId",
|
725
|
-
"type": "uint96"
|
726
|
-
}
|
727
|
-
],
|
728
|
-
"name": "getPoolSetup",
|
729
|
-
"outputs": [
|
730
|
-
{
|
731
|
-
"components": [
|
565
|
+
"internalType": "bool",
|
566
|
+
"name": "isExternallyManaged",
|
567
|
+
"type": "bool"
|
568
|
+
},
|
732
569
|
{
|
733
|
-
"internalType": "
|
734
|
-
"name": "
|
735
|
-
"type": "
|
570
|
+
"internalType": "bool",
|
571
|
+
"name": "isVerifyingApplications",
|
572
|
+
"type": "bool"
|
736
573
|
},
|
737
574
|
{
|
738
|
-
"internalType": "
|
739
|
-
"name": "
|
740
|
-
"type": "
|
575
|
+
"internalType": "UFixed",
|
576
|
+
"name": "collateralizationLevel",
|
577
|
+
"type": "uint256"
|
578
|
+
},
|
579
|
+
{
|
580
|
+
"internalType": "UFixed",
|
581
|
+
"name": "retentionLevel",
|
582
|
+
"type": "uint256"
|
583
|
+
},
|
584
|
+
{
|
585
|
+
"components": [
|
586
|
+
{
|
587
|
+
"internalType": "UFixed",
|
588
|
+
"name": "fractionalFee",
|
589
|
+
"type": "uint256"
|
590
|
+
},
|
591
|
+
{
|
592
|
+
"internalType": "uint256",
|
593
|
+
"name": "fixedFee",
|
594
|
+
"type": "uint256"
|
595
|
+
}
|
596
|
+
],
|
597
|
+
"internalType": "struct Fee",
|
598
|
+
"name": "poolFee",
|
599
|
+
"type": "tuple"
|
741
600
|
},
|
742
601
|
{
|
743
602
|
"components": [
|
@@ -772,27 +631,21 @@
|
|
772
631
|
"internalType": "struct Fee",
|
773
632
|
"name": "performanceFee",
|
774
633
|
"type": "tuple"
|
634
|
+
},
|
635
|
+
{
|
636
|
+
"internalType": "address",
|
637
|
+
"name": "wallet",
|
638
|
+
"type": "address"
|
775
639
|
}
|
776
640
|
],
|
777
|
-
"internalType": "struct
|
641
|
+
"internalType": "struct ISetup.PoolSetupInfo",
|
778
642
|
"name": "setup",
|
779
643
|
"type": "tuple"
|
780
644
|
}
|
781
645
|
],
|
782
|
-
"
|
783
|
-
"
|
784
|
-
|
785
|
-
{
|
786
|
-
"inputs": [],
|
787
|
-
"name": "getProductService",
|
788
|
-
"outputs": [
|
789
|
-
{
|
790
|
-
"internalType": "contract IProductService",
|
791
|
-
"name": "",
|
792
|
-
"type": "address"
|
793
|
-
}
|
794
|
-
],
|
795
|
-
"stateMutability": "view",
|
646
|
+
"name": "createPoolSetup",
|
647
|
+
"outputs": [],
|
648
|
+
"stateMutability": "nonpayable",
|
796
649
|
"type": "function"
|
797
650
|
},
|
798
651
|
{
|
@@ -801,20 +654,22 @@
|
|
801
654
|
"internalType": "NftId",
|
802
655
|
"name": "productNftId",
|
803
656
|
"type": "uint96"
|
804
|
-
}
|
805
|
-
],
|
806
|
-
"name": "getProductSetup",
|
807
|
-
"outputs": [
|
657
|
+
},
|
808
658
|
{
|
809
659
|
"components": [
|
810
660
|
{
|
811
|
-
"internalType": "
|
812
|
-
"name": "
|
813
|
-
"type": "
|
661
|
+
"internalType": "contract IERC20Metadata",
|
662
|
+
"name": "token",
|
663
|
+
"type": "address"
|
664
|
+
},
|
665
|
+
{
|
666
|
+
"internalType": "contract TokenHandler",
|
667
|
+
"name": "tokenHandler",
|
668
|
+
"type": "address"
|
814
669
|
},
|
815
670
|
{
|
816
671
|
"internalType": "NftId",
|
817
|
-
"name": "
|
672
|
+
"name": "distributionNftId",
|
818
673
|
"type": "uint96"
|
819
674
|
},
|
820
675
|
{
|
@@ -823,14 +678,38 @@
|
|
823
678
|
"type": "uint96"
|
824
679
|
},
|
825
680
|
{
|
826
|
-
"
|
827
|
-
|
828
|
-
|
681
|
+
"components": [
|
682
|
+
{
|
683
|
+
"internalType": "UFixed",
|
684
|
+
"name": "fractionalFee",
|
685
|
+
"type": "uint256"
|
686
|
+
},
|
687
|
+
{
|
688
|
+
"internalType": "uint256",
|
689
|
+
"name": "fixedFee",
|
690
|
+
"type": "uint256"
|
691
|
+
}
|
692
|
+
],
|
693
|
+
"internalType": "struct Fee",
|
694
|
+
"name": "distributionFee",
|
695
|
+
"type": "tuple"
|
829
696
|
},
|
830
697
|
{
|
831
|
-
"
|
832
|
-
|
833
|
-
|
698
|
+
"components": [
|
699
|
+
{
|
700
|
+
"internalType": "UFixed",
|
701
|
+
"name": "fractionalFee",
|
702
|
+
"type": "uint256"
|
703
|
+
},
|
704
|
+
{
|
705
|
+
"internalType": "uint256",
|
706
|
+
"name": "fixedFee",
|
707
|
+
"type": "uint256"
|
708
|
+
}
|
709
|
+
],
|
710
|
+
"internalType": "struct Fee",
|
711
|
+
"name": "productFee",
|
712
|
+
"type": "tuple"
|
834
713
|
},
|
835
714
|
{
|
836
715
|
"components": [
|
@@ -846,7 +725,7 @@
|
|
846
725
|
}
|
847
726
|
],
|
848
727
|
"internalType": "struct Fee",
|
849
|
-
"name": "
|
728
|
+
"name": "processingFee",
|
850
729
|
"type": "tuple"
|
851
730
|
},
|
852
731
|
{
|
@@ -863,112 +742,165 @@
|
|
863
742
|
}
|
864
743
|
],
|
865
744
|
"internalType": "struct Fee",
|
866
|
-
"name": "
|
745
|
+
"name": "poolFee",
|
746
|
+
"type": "tuple"
|
747
|
+
},
|
748
|
+
{
|
749
|
+
"components": [
|
750
|
+
{
|
751
|
+
"internalType": "UFixed",
|
752
|
+
"name": "fractionalFee",
|
753
|
+
"type": "uint256"
|
754
|
+
},
|
755
|
+
{
|
756
|
+
"internalType": "uint256",
|
757
|
+
"name": "fixedFee",
|
758
|
+
"type": "uint256"
|
759
|
+
}
|
760
|
+
],
|
761
|
+
"internalType": "struct Fee",
|
762
|
+
"name": "stakingFee",
|
763
|
+
"type": "tuple"
|
764
|
+
},
|
765
|
+
{
|
766
|
+
"components": [
|
767
|
+
{
|
768
|
+
"internalType": "UFixed",
|
769
|
+
"name": "fractionalFee",
|
770
|
+
"type": "uint256"
|
771
|
+
},
|
772
|
+
{
|
773
|
+
"internalType": "uint256",
|
774
|
+
"name": "fixedFee",
|
775
|
+
"type": "uint256"
|
776
|
+
}
|
777
|
+
],
|
778
|
+
"internalType": "struct Fee",
|
779
|
+
"name": "performanceFee",
|
867
780
|
"type": "tuple"
|
781
|
+
},
|
782
|
+
{
|
783
|
+
"internalType": "bool",
|
784
|
+
"name": "isIntercepting",
|
785
|
+
"type": "bool"
|
786
|
+
},
|
787
|
+
{
|
788
|
+
"internalType": "address",
|
789
|
+
"name": "wallet",
|
790
|
+
"type": "address"
|
868
791
|
}
|
869
792
|
],
|
870
|
-
"internalType": "struct
|
793
|
+
"internalType": "struct ISetup.ProductSetupInfo",
|
871
794
|
"name": "setup",
|
872
795
|
"type": "tuple"
|
873
796
|
}
|
874
797
|
],
|
875
|
-
"
|
876
|
-
"
|
877
|
-
|
878
|
-
{
|
879
|
-
"inputs": [],
|
880
|
-
"name": "getRegistry",
|
881
|
-
"outputs": [
|
882
|
-
{
|
883
|
-
"internalType": "contract IRegistry",
|
884
|
-
"name": "registry",
|
885
|
-
"type": "address"
|
886
|
-
}
|
887
|
-
],
|
888
|
-
"stateMutability": "view",
|
798
|
+
"name": "createProductSetup",
|
799
|
+
"outputs": [],
|
800
|
+
"stateMutability": "nonpayable",
|
889
801
|
"type": "function"
|
890
802
|
},
|
891
803
|
{
|
892
804
|
"inputs": [
|
893
805
|
{
|
894
|
-
"internalType": "
|
895
|
-
"name": "
|
896
|
-
"type": "uint256"
|
897
|
-
}
|
898
|
-
],
|
899
|
-
"name": "getRole",
|
900
|
-
"outputs": [
|
901
|
-
{
|
902
|
-
"internalType": "RoleId",
|
903
|
-
"name": "role",
|
806
|
+
"internalType": "RiskId",
|
807
|
+
"name": "riskId",
|
904
808
|
"type": "bytes8"
|
905
|
-
}
|
906
|
-
],
|
907
|
-
"stateMutability": "view",
|
908
|
-
"type": "function"
|
909
|
-
},
|
910
|
-
{
|
911
|
-
"inputs": [],
|
912
|
-
"name": "getRoleCount",
|
913
|
-
"outputs": [
|
809
|
+
},
|
914
810
|
{
|
915
|
-
"
|
916
|
-
|
917
|
-
|
811
|
+
"components": [
|
812
|
+
{
|
813
|
+
"internalType": "NftId",
|
814
|
+
"name": "productNftId",
|
815
|
+
"type": "uint96"
|
816
|
+
},
|
817
|
+
{
|
818
|
+
"internalType": "bytes",
|
819
|
+
"name": "data",
|
820
|
+
"type": "bytes"
|
821
|
+
}
|
822
|
+
],
|
823
|
+
"internalType": "struct IRisk.RiskInfo",
|
824
|
+
"name": "risk",
|
825
|
+
"type": "tuple"
|
918
826
|
}
|
919
827
|
],
|
920
|
-
"
|
828
|
+
"name": "createRisk",
|
829
|
+
"outputs": [],
|
830
|
+
"stateMutability": "nonpayable",
|
921
831
|
"type": "function"
|
922
832
|
},
|
923
833
|
{
|
924
834
|
"inputs": [
|
925
835
|
{
|
926
|
-
"internalType": "
|
927
|
-
"name": "
|
928
|
-
"type": "
|
836
|
+
"internalType": "Key32",
|
837
|
+
"name": "key",
|
838
|
+
"type": "bytes32"
|
929
839
|
}
|
930
840
|
],
|
931
|
-
"name": "
|
841
|
+
"name": "exists",
|
932
842
|
"outputs": [
|
933
843
|
{
|
934
|
-
"internalType": "
|
935
|
-
"name": "
|
936
|
-
"type": "
|
844
|
+
"internalType": "bool",
|
845
|
+
"name": "",
|
846
|
+
"type": "bool"
|
937
847
|
}
|
938
848
|
],
|
939
|
-
"stateMutability": "
|
849
|
+
"stateMutability": "view",
|
940
850
|
"type": "function"
|
941
851
|
},
|
942
852
|
{
|
943
853
|
"inputs": [
|
944
854
|
{
|
945
|
-
"internalType": "
|
946
|
-
"name": "
|
947
|
-
"type": "
|
855
|
+
"internalType": "Key32",
|
856
|
+
"name": "key",
|
857
|
+
"type": "bytes32"
|
948
858
|
}
|
949
859
|
],
|
950
|
-
"name": "
|
860
|
+
"name": "get",
|
951
861
|
"outputs": [
|
952
862
|
{
|
953
863
|
"components": [
|
954
864
|
{
|
955
|
-
"
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
865
|
+
"components": [
|
866
|
+
{
|
867
|
+
"internalType": "ObjectType",
|
868
|
+
"name": "objectType",
|
869
|
+
"type": "uint8"
|
870
|
+
},
|
871
|
+
{
|
872
|
+
"internalType": "StateId",
|
873
|
+
"name": "state",
|
874
|
+
"type": "uint8"
|
875
|
+
},
|
876
|
+
{
|
877
|
+
"internalType": "address",
|
878
|
+
"name": "updatedBy",
|
879
|
+
"type": "address"
|
880
|
+
},
|
881
|
+
{
|
882
|
+
"internalType": "Blocknumber",
|
883
|
+
"name": "updatedIn",
|
884
|
+
"type": "uint32"
|
885
|
+
},
|
886
|
+
{
|
887
|
+
"internalType": "Blocknumber",
|
888
|
+
"name": "createdIn",
|
889
|
+
"type": "uint32"
|
890
|
+
}
|
891
|
+
],
|
892
|
+
"internalType": "struct IKeyValueStore.Metadata",
|
893
|
+
"name": "metadata",
|
894
|
+
"type": "tuple"
|
963
895
|
},
|
964
896
|
{
|
965
|
-
"internalType": "
|
966
|
-
"name": "
|
967
|
-
"type": "
|
897
|
+
"internalType": "bytes",
|
898
|
+
"name": "data",
|
899
|
+
"type": "bytes"
|
968
900
|
}
|
969
901
|
],
|
970
|
-
"internalType": "struct
|
971
|
-
"name": "
|
902
|
+
"internalType": "struct IKeyValueStore.Value",
|
903
|
+
"name": "value",
|
972
904
|
"type": "tuple"
|
973
905
|
}
|
974
906
|
],
|
@@ -976,23 +908,12 @@
|
|
976
908
|
"type": "function"
|
977
909
|
},
|
978
910
|
{
|
979
|
-
"inputs": [
|
980
|
-
|
981
|
-
"internalType": "RoleId",
|
982
|
-
"name": "role",
|
983
|
-
"type": "bytes8"
|
984
|
-
},
|
985
|
-
{
|
986
|
-
"internalType": "uint256",
|
987
|
-
"name": "idx",
|
988
|
-
"type": "uint256"
|
989
|
-
}
|
990
|
-
],
|
991
|
-
"name": "getRoleMember",
|
911
|
+
"inputs": [],
|
912
|
+
"name": "getBundleManager",
|
992
913
|
"outputs": [
|
993
914
|
{
|
994
|
-
"internalType": "
|
995
|
-
"name": "
|
915
|
+
"internalType": "contract BundleManager",
|
916
|
+
"name": "",
|
996
917
|
"type": "address"
|
997
918
|
}
|
998
919
|
],
|
@@ -1000,19 +921,13 @@
|
|
1000
921
|
"type": "function"
|
1001
922
|
},
|
1002
923
|
{
|
1003
|
-
"inputs": [
|
1004
|
-
|
1005
|
-
"internalType": "RoleId",
|
1006
|
-
"name": "role",
|
1007
|
-
"type": "bytes8"
|
1008
|
-
}
|
1009
|
-
],
|
1010
|
-
"name": "getRoleMemberCount",
|
924
|
+
"inputs": [],
|
925
|
+
"name": "getBundleService",
|
1011
926
|
"outputs": [
|
1012
927
|
{
|
1013
|
-
"internalType": "
|
1014
|
-
"name": "
|
1015
|
-
"type": "
|
928
|
+
"internalType": "contract IBundleService",
|
929
|
+
"name": "",
|
930
|
+
"type": "address"
|
1016
931
|
}
|
1017
932
|
],
|
1018
933
|
"stateMutability": "view",
|
@@ -1021,17 +936,17 @@
|
|
1021
936
|
{
|
1022
937
|
"inputs": [
|
1023
938
|
{
|
1024
|
-
"internalType": "
|
1025
|
-
"name": "
|
1026
|
-
"type": "
|
939
|
+
"internalType": "Key32",
|
940
|
+
"name": "key",
|
941
|
+
"type": "bytes32"
|
1027
942
|
}
|
1028
943
|
],
|
1029
|
-
"name": "
|
944
|
+
"name": "getData",
|
1030
945
|
"outputs": [
|
1031
946
|
{
|
1032
|
-
"internalType": "
|
1033
|
-
"name": "
|
1034
|
-
"type": "
|
947
|
+
"internalType": "bytes",
|
948
|
+
"name": "data",
|
949
|
+
"type": "bytes"
|
1035
950
|
}
|
1036
951
|
],
|
1037
952
|
"stateMutability": "view",
|
@@ -1039,87 +954,94 @@
|
|
1039
954
|
},
|
1040
955
|
{
|
1041
956
|
"inputs": [],
|
1042
|
-
"name": "
|
957
|
+
"name": "getDistributionService",
|
1043
958
|
"outputs": [
|
1044
959
|
{
|
1045
|
-
"internalType": "
|
1046
|
-
"name": "
|
1047
|
-
"type": "
|
960
|
+
"internalType": "contract IDistributionService",
|
961
|
+
"name": "",
|
962
|
+
"type": "address"
|
1048
963
|
}
|
1049
964
|
],
|
1050
|
-
"stateMutability": "
|
965
|
+
"stateMutability": "view",
|
1051
966
|
"type": "function"
|
1052
967
|
},
|
1053
968
|
{
|
1054
|
-
"inputs": [
|
1055
|
-
|
1056
|
-
"internalType": "uint256",
|
1057
|
-
"name": "a",
|
1058
|
-
"type": "uint256"
|
1059
|
-
},
|
1060
|
-
{
|
1061
|
-
"internalType": "int8",
|
1062
|
-
"name": "exp",
|
1063
|
-
"type": "int8"
|
1064
|
-
}
|
1065
|
-
],
|
1066
|
-
"name": "getUFixed",
|
969
|
+
"inputs": [],
|
970
|
+
"name": "getInitialInfo",
|
1067
971
|
"outputs": [
|
1068
972
|
{
|
1069
|
-
"
|
973
|
+
"components": [
|
974
|
+
{
|
975
|
+
"internalType": "NftId",
|
976
|
+
"name": "nftId",
|
977
|
+
"type": "uint96"
|
978
|
+
},
|
979
|
+
{
|
980
|
+
"internalType": "NftId",
|
981
|
+
"name": "parentNftId",
|
982
|
+
"type": "uint96"
|
983
|
+
},
|
984
|
+
{
|
985
|
+
"internalType": "ObjectType",
|
986
|
+
"name": "objectType",
|
987
|
+
"type": "uint8"
|
988
|
+
},
|
989
|
+
{
|
990
|
+
"internalType": "bool",
|
991
|
+
"name": "isInterceptor",
|
992
|
+
"type": "bool"
|
993
|
+
},
|
994
|
+
{
|
995
|
+
"internalType": "address",
|
996
|
+
"name": "objectAddress",
|
997
|
+
"type": "address"
|
998
|
+
},
|
999
|
+
{
|
1000
|
+
"internalType": "address",
|
1001
|
+
"name": "initialOwner",
|
1002
|
+
"type": "address"
|
1003
|
+
},
|
1004
|
+
{
|
1005
|
+
"internalType": "bytes",
|
1006
|
+
"name": "data",
|
1007
|
+
"type": "bytes"
|
1008
|
+
}
|
1009
|
+
],
|
1010
|
+
"internalType": "struct IRegistry.ObjectInfo",
|
1070
1011
|
"name": "",
|
1071
|
-
"type": "
|
1012
|
+
"type": "tuple"
|
1072
1013
|
}
|
1073
1014
|
],
|
1074
|
-
"stateMutability": "
|
1015
|
+
"stateMutability": "view",
|
1075
1016
|
"type": "function"
|
1076
1017
|
},
|
1077
1018
|
{
|
1078
1019
|
"inputs": [
|
1079
1020
|
{
|
1080
|
-
"internalType": "
|
1081
|
-
"name": "
|
1082
|
-
"type": "
|
1021
|
+
"internalType": "ObjectType",
|
1022
|
+
"name": "objectType",
|
1023
|
+
"type": "uint8"
|
1083
1024
|
}
|
1084
1025
|
],
|
1085
|
-
"name": "
|
1026
|
+
"name": "getInitialState",
|
1086
1027
|
"outputs": [
|
1087
1028
|
{
|
1088
|
-
"internalType": "
|
1029
|
+
"internalType": "StateId",
|
1089
1030
|
"name": "",
|
1090
|
-
"type": "
|
1031
|
+
"type": "uint8"
|
1091
1032
|
}
|
1092
1033
|
],
|
1093
|
-
"stateMutability": "
|
1034
|
+
"stateMutability": "view",
|
1094
1035
|
"type": "function"
|
1095
1036
|
},
|
1096
1037
|
{
|
1097
1038
|
"inputs": [],
|
1098
|
-
"name": "
|
1039
|
+
"name": "getInstanceReader",
|
1099
1040
|
"outputs": [
|
1100
1041
|
{
|
1101
|
-
"internalType": "
|
1042
|
+
"internalType": "contract InstanceReader",
|
1102
1043
|
"name": "",
|
1103
|
-
"type": "
|
1104
|
-
}
|
1105
|
-
],
|
1106
|
-
"stateMutability": "pure",
|
1107
|
-
"type": "function"
|
1108
|
-
},
|
1109
|
-
{
|
1110
|
-
"inputs": [
|
1111
|
-
{
|
1112
|
-
"internalType": "uint256",
|
1113
|
-
"name": "index",
|
1114
|
-
"type": "uint256"
|
1115
|
-
}
|
1116
|
-
],
|
1117
|
-
"name": "getVersion",
|
1118
|
-
"outputs": [
|
1119
|
-
{
|
1120
|
-
"internalType": "Version",
|
1121
|
-
"name": "version",
|
1122
|
-
"type": "uint24"
|
1044
|
+
"type": "address"
|
1123
1045
|
}
|
1124
1046
|
],
|
1125
1047
|
"stateMutability": "view",
|
@@ -1127,57 +1049,57 @@
|
|
1127
1049
|
},
|
1128
1050
|
{
|
1129
1051
|
"inputs": [],
|
1130
|
-
"name": "
|
1052
|
+
"name": "getMajorVersion",
|
1131
1053
|
"outputs": [
|
1132
1054
|
{
|
1133
|
-
"internalType": "
|
1134
|
-
"name": "
|
1135
|
-
"type": "
|
1055
|
+
"internalType": "VersionPart",
|
1056
|
+
"name": "majorVersion",
|
1057
|
+
"type": "uint8"
|
1136
1058
|
}
|
1137
1059
|
],
|
1138
|
-
"stateMutability": "
|
1060
|
+
"stateMutability": "pure",
|
1139
1061
|
"type": "function"
|
1140
1062
|
},
|
1141
1063
|
{
|
1142
1064
|
"inputs": [
|
1143
1065
|
{
|
1144
|
-
"internalType": "
|
1145
|
-
"name": "
|
1146
|
-
"type": "
|
1066
|
+
"internalType": "Key32",
|
1067
|
+
"name": "key",
|
1068
|
+
"type": "bytes32"
|
1147
1069
|
}
|
1148
1070
|
],
|
1149
|
-
"name": "
|
1071
|
+
"name": "getMetadata",
|
1150
1072
|
"outputs": [
|
1151
1073
|
{
|
1152
1074
|
"components": [
|
1153
1075
|
{
|
1154
|
-
"internalType": "
|
1155
|
-
"name": "
|
1156
|
-
"type": "
|
1076
|
+
"internalType": "ObjectType",
|
1077
|
+
"name": "objectType",
|
1078
|
+
"type": "uint8"
|
1157
1079
|
},
|
1158
1080
|
{
|
1159
|
-
"internalType": "
|
1160
|
-
"name": "
|
1161
|
-
"type": "
|
1081
|
+
"internalType": "StateId",
|
1082
|
+
"name": "state",
|
1083
|
+
"type": "uint8"
|
1162
1084
|
},
|
1163
1085
|
{
|
1164
1086
|
"internalType": "address",
|
1165
|
-
"name": "
|
1087
|
+
"name": "updatedBy",
|
1166
1088
|
"type": "address"
|
1167
1089
|
},
|
1168
1090
|
{
|
1169
|
-
"internalType": "
|
1170
|
-
"name": "
|
1171
|
-
"type": "
|
1091
|
+
"internalType": "Blocknumber",
|
1092
|
+
"name": "updatedIn",
|
1093
|
+
"type": "uint32"
|
1172
1094
|
},
|
1173
1095
|
{
|
1174
1096
|
"internalType": "Blocknumber",
|
1175
|
-
"name": "
|
1097
|
+
"name": "createdIn",
|
1176
1098
|
"type": "uint32"
|
1177
1099
|
}
|
1178
1100
|
],
|
1179
|
-
"internalType": "struct
|
1180
|
-
"name": "
|
1101
|
+
"internalType": "struct IKeyValueStore.Metadata",
|
1102
|
+
"name": "metadata",
|
1181
1103
|
"type": "tuple"
|
1182
1104
|
}
|
1183
1105
|
],
|
@@ -1186,66 +1108,96 @@
|
|
1186
1108
|
},
|
1187
1109
|
{
|
1188
1110
|
"inputs": [],
|
1189
|
-
"name": "
|
1111
|
+
"name": "getNftId",
|
1190
1112
|
"outputs": [
|
1191
1113
|
{
|
1192
|
-
"
|
1193
|
-
|
1194
|
-
|
1195
|
-
"name": "fractionalFee",
|
1196
|
-
"type": "uint256"
|
1197
|
-
},
|
1198
|
-
{
|
1199
|
-
"internalType": "uint256",
|
1200
|
-
"name": "fixedFee",
|
1201
|
-
"type": "uint256"
|
1202
|
-
}
|
1203
|
-
],
|
1204
|
-
"internalType": "struct Fee",
|
1205
|
-
"name": "fee",
|
1206
|
-
"type": "tuple"
|
1114
|
+
"internalType": "NftId",
|
1115
|
+
"name": "",
|
1116
|
+
"type": "uint96"
|
1207
1117
|
}
|
1208
1118
|
],
|
1209
|
-
"stateMutability": "
|
1119
|
+
"stateMutability": "view",
|
1210
1120
|
"type": "function"
|
1211
1121
|
},
|
1212
1122
|
{
|
1213
|
-
"inputs": [
|
1214
|
-
|
1215
|
-
|
1216
|
-
"name": "role",
|
1217
|
-
"type": "bytes8"
|
1218
|
-
},
|
1123
|
+
"inputs": [],
|
1124
|
+
"name": "getOwner",
|
1125
|
+
"outputs": [
|
1219
1126
|
{
|
1220
1127
|
"internalType": "address",
|
1221
|
-
"name": "
|
1128
|
+
"name": "",
|
1222
1129
|
"type": "address"
|
1223
1130
|
}
|
1224
1131
|
],
|
1225
|
-
"
|
1226
|
-
"outputs": [],
|
1227
|
-
"stateMutability": "nonpayable",
|
1132
|
+
"stateMutability": "view",
|
1228
1133
|
"type": "function"
|
1229
1134
|
},
|
1230
1135
|
{
|
1231
|
-
"inputs": [
|
1136
|
+
"inputs": [],
|
1137
|
+
"name": "getPolicyService",
|
1138
|
+
"outputs": [
|
1232
1139
|
{
|
1233
|
-
"internalType": "
|
1234
|
-
"name": "
|
1235
|
-
"type": "
|
1236
|
-
}
|
1140
|
+
"internalType": "contract IPolicyService",
|
1141
|
+
"name": "",
|
1142
|
+
"type": "address"
|
1143
|
+
}
|
1144
|
+
],
|
1145
|
+
"stateMutability": "view",
|
1146
|
+
"type": "function"
|
1147
|
+
},
|
1148
|
+
{
|
1149
|
+
"inputs": [],
|
1150
|
+
"name": "getPoolService",
|
1151
|
+
"outputs": [
|
1237
1152
|
{
|
1238
|
-
"internalType": "
|
1239
|
-
"name": "
|
1153
|
+
"internalType": "contract IPoolService",
|
1154
|
+
"name": "",
|
1155
|
+
"type": "address"
|
1156
|
+
}
|
1157
|
+
],
|
1158
|
+
"stateMutability": "view",
|
1159
|
+
"type": "function"
|
1160
|
+
},
|
1161
|
+
{
|
1162
|
+
"inputs": [],
|
1163
|
+
"name": "getProductService",
|
1164
|
+
"outputs": [
|
1165
|
+
{
|
1166
|
+
"internalType": "contract IProductService",
|
1167
|
+
"name": "",
|
1240
1168
|
"type": "address"
|
1241
1169
|
}
|
1242
1170
|
],
|
1243
|
-
"
|
1171
|
+
"stateMutability": "view",
|
1172
|
+
"type": "function"
|
1173
|
+
},
|
1174
|
+
{
|
1175
|
+
"inputs": [],
|
1176
|
+
"name": "getRegistry",
|
1244
1177
|
"outputs": [
|
1245
1178
|
{
|
1246
|
-
"internalType": "
|
1247
|
-
"name": "
|
1248
|
-
"type": "
|
1179
|
+
"internalType": "contract IRegistry",
|
1180
|
+
"name": "",
|
1181
|
+
"type": "address"
|
1182
|
+
}
|
1183
|
+
],
|
1184
|
+
"stateMutability": "view",
|
1185
|
+
"type": "function"
|
1186
|
+
},
|
1187
|
+
{
|
1188
|
+
"inputs": [
|
1189
|
+
{
|
1190
|
+
"internalType": "Key32",
|
1191
|
+
"name": "key",
|
1192
|
+
"type": "bytes32"
|
1193
|
+
}
|
1194
|
+
],
|
1195
|
+
"name": "getState",
|
1196
|
+
"outputs": [
|
1197
|
+
{
|
1198
|
+
"internalType": "StateId",
|
1199
|
+
"name": "state",
|
1200
|
+
"type": "uint8"
|
1249
1201
|
}
|
1250
1202
|
],
|
1251
1203
|
"stateMutability": "view",
|
@@ -1254,12 +1206,12 @@
|
|
1254
1206
|
{
|
1255
1207
|
"inputs": [
|
1256
1208
|
{
|
1257
|
-
"internalType": "
|
1258
|
-
"name": "
|
1259
|
-
"type": "
|
1209
|
+
"internalType": "ObjectType",
|
1210
|
+
"name": "objectType",
|
1211
|
+
"type": "uint8"
|
1260
1212
|
}
|
1261
1213
|
],
|
1262
|
-
"name": "
|
1214
|
+
"name": "hasLifecycle",
|
1263
1215
|
"outputs": [
|
1264
1216
|
{
|
1265
1217
|
"internalType": "bool",
|
@@ -1272,256 +1224,139 @@
|
|
1272
1224
|
},
|
1273
1225
|
{
|
1274
1226
|
"inputs": [],
|
1275
|
-
"name": "
|
1227
|
+
"name": "isConsumingScheduledOp",
|
1276
1228
|
"outputs": [
|
1277
1229
|
{
|
1278
|
-
"internalType": "
|
1279
|
-
"name": "
|
1280
|
-
"type": "
|
1230
|
+
"internalType": "bytes4",
|
1231
|
+
"name": "",
|
1232
|
+
"type": "bytes4"
|
1281
1233
|
}
|
1282
1234
|
],
|
1283
|
-
"stateMutability": "
|
1235
|
+
"stateMutability": "view",
|
1284
1236
|
"type": "function"
|
1285
1237
|
},
|
1286
1238
|
{
|
1287
1239
|
"inputs": [
|
1288
|
-
{
|
1289
|
-
"internalType": "NftId",
|
1290
|
-
"name": "nftId",
|
1291
|
-
"type": "uint96"
|
1292
|
-
},
|
1293
1240
|
{
|
1294
1241
|
"internalType": "ObjectType",
|
1295
1242
|
"name": "objectType",
|
1296
1243
|
"type": "uint8"
|
1297
1244
|
},
|
1298
1245
|
{
|
1299
|
-
"internalType": "
|
1300
|
-
"name": "
|
1301
|
-
"type": "
|
1246
|
+
"internalType": "StateId",
|
1247
|
+
"name": "fromId",
|
1248
|
+
"type": "uint8"
|
1249
|
+
},
|
1250
|
+
{
|
1251
|
+
"internalType": "StateId",
|
1252
|
+
"name": "toId",
|
1253
|
+
"type": "uint8"
|
1254
|
+
}
|
1255
|
+
],
|
1256
|
+
"name": "isValidTransition",
|
1257
|
+
"outputs": [
|
1258
|
+
{
|
1259
|
+
"internalType": "bool",
|
1260
|
+
"name": "",
|
1261
|
+
"type": "bool"
|
1302
1262
|
}
|
1303
1263
|
],
|
1304
|
-
"
|
1264
|
+
"stateMutability": "view",
|
1265
|
+
"type": "function"
|
1266
|
+
},
|
1267
|
+
{
|
1268
|
+
"inputs": [],
|
1269
|
+
"name": "linkToRegisteredNftId",
|
1305
1270
|
"outputs": [],
|
1306
1271
|
"stateMutability": "nonpayable",
|
1307
1272
|
"type": "function"
|
1308
1273
|
},
|
1309
1274
|
{
|
1310
1275
|
"inputs": [
|
1311
|
-
{
|
1312
|
-
"internalType": "NftId",
|
1313
|
-
"name": "poolNftId",
|
1314
|
-
"type": "uint96"
|
1315
|
-
},
|
1316
1276
|
{
|
1317
1277
|
"internalType": "address",
|
1318
|
-
"name": "
|
1278
|
+
"name": "",
|
1319
1279
|
"type": "address"
|
1320
|
-
}
|
1280
|
+
}
|
1281
|
+
],
|
1282
|
+
"name": "setAuthority",
|
1283
|
+
"outputs": [],
|
1284
|
+
"stateMutability": "nonpayable",
|
1285
|
+
"type": "function"
|
1286
|
+
},
|
1287
|
+
{
|
1288
|
+
"inputs": [
|
1321
1289
|
{
|
1322
|
-
"
|
1323
|
-
|
1324
|
-
|
1325
|
-
"name": "fractionalFee",
|
1326
|
-
"type": "uint256"
|
1327
|
-
},
|
1328
|
-
{
|
1329
|
-
"internalType": "uint256",
|
1330
|
-
"name": "fixedFee",
|
1331
|
-
"type": "uint256"
|
1332
|
-
}
|
1333
|
-
],
|
1334
|
-
"internalType": "struct Fee",
|
1335
|
-
"name": "stakingFee",
|
1336
|
-
"type": "tuple"
|
1337
|
-
},
|
1338
|
-
{
|
1339
|
-
"components": [
|
1340
|
-
{
|
1341
|
-
"internalType": "UFixed",
|
1342
|
-
"name": "fractionalFee",
|
1343
|
-
"type": "uint256"
|
1344
|
-
},
|
1345
|
-
{
|
1346
|
-
"internalType": "uint256",
|
1347
|
-
"name": "fixedFee",
|
1348
|
-
"type": "uint256"
|
1349
|
-
}
|
1350
|
-
],
|
1351
|
-
"internalType": "struct Fee",
|
1352
|
-
"name": "performanceFee",
|
1353
|
-
"type": "tuple"
|
1290
|
+
"internalType": "bytes4",
|
1291
|
+
"name": "interfaceId",
|
1292
|
+
"type": "bytes4"
|
1354
1293
|
}
|
1355
1294
|
],
|
1356
|
-
"name": "
|
1357
|
-
"outputs": [
|
1358
|
-
"stateMutability": "nonpayable",
|
1359
|
-
"type": "function"
|
1360
|
-
},
|
1361
|
-
{
|
1362
|
-
"inputs": [
|
1363
|
-
{
|
1364
|
-
"internalType": "NftId",
|
1365
|
-
"name": "poolNftId",
|
1366
|
-
"type": "uint96"
|
1367
|
-
},
|
1295
|
+
"name": "supportsInterface",
|
1296
|
+
"outputs": [
|
1368
1297
|
{
|
1369
1298
|
"internalType": "bool",
|
1370
|
-
"name": "
|
1299
|
+
"name": "",
|
1371
1300
|
"type": "bool"
|
1372
|
-
},
|
1373
|
-
{
|
1374
|
-
"internalType": "UFixed",
|
1375
|
-
"name": "collateralizationLevel",
|
1376
|
-
"type": "uint256"
|
1377
|
-
}
|
1378
|
-
],
|
1379
|
-
"name": "registerPool",
|
1380
|
-
"outputs": [],
|
1381
|
-
"stateMutability": "nonpayable",
|
1382
|
-
"type": "function"
|
1383
|
-
},
|
1384
|
-
{
|
1385
|
-
"inputs": [
|
1386
|
-
{
|
1387
|
-
"internalType": "NftId",
|
1388
|
-
"name": "productNftId",
|
1389
|
-
"type": "uint96"
|
1390
|
-
},
|
1391
|
-
{
|
1392
|
-
"internalType": "NftId",
|
1393
|
-
"name": "distributorNftId",
|
1394
|
-
"type": "uint96"
|
1395
|
-
},
|
1396
|
-
{
|
1397
|
-
"internalType": "NftId",
|
1398
|
-
"name": "poolNftId",
|
1399
|
-
"type": "uint96"
|
1400
|
-
},
|
1401
|
-
{
|
1402
|
-
"internalType": "contract IERC20Metadata",
|
1403
|
-
"name": "token",
|
1404
|
-
"type": "address"
|
1405
|
-
},
|
1406
|
-
{
|
1407
|
-
"internalType": "address",
|
1408
|
-
"name": "wallet",
|
1409
|
-
"type": "address"
|
1410
|
-
},
|
1411
|
-
{
|
1412
|
-
"components": [
|
1413
|
-
{
|
1414
|
-
"internalType": "UFixed",
|
1415
|
-
"name": "fractionalFee",
|
1416
|
-
"type": "uint256"
|
1417
|
-
},
|
1418
|
-
{
|
1419
|
-
"internalType": "uint256",
|
1420
|
-
"name": "fixedFee",
|
1421
|
-
"type": "uint256"
|
1422
|
-
}
|
1423
|
-
],
|
1424
|
-
"internalType": "struct Fee",
|
1425
|
-
"name": "policyFee",
|
1426
|
-
"type": "tuple"
|
1427
|
-
},
|
1428
|
-
{
|
1429
|
-
"components": [
|
1430
|
-
{
|
1431
|
-
"internalType": "UFixed",
|
1432
|
-
"name": "fractionalFee",
|
1433
|
-
"type": "uint256"
|
1434
|
-
},
|
1435
|
-
{
|
1436
|
-
"internalType": "uint256",
|
1437
|
-
"name": "fixedFee",
|
1438
|
-
"type": "uint256"
|
1439
|
-
}
|
1440
|
-
],
|
1441
|
-
"internalType": "struct Fee",
|
1442
|
-
"name": "processingFee",
|
1443
|
-
"type": "tuple"
|
1444
1301
|
}
|
1445
1302
|
],
|
1446
|
-
"
|
1447
|
-
"outputs": [],
|
1448
|
-
"stateMutability": "nonpayable",
|
1303
|
+
"stateMutability": "view",
|
1449
1304
|
"type": "function"
|
1450
1305
|
},
|
1451
1306
|
{
|
1452
1307
|
"inputs": [
|
1453
1308
|
{
|
1454
|
-
"internalType": "
|
1455
|
-
"name": "
|
1456
|
-
"type": "
|
1309
|
+
"internalType": "ObjectType",
|
1310
|
+
"name": "objectType",
|
1311
|
+
"type": "uint8"
|
1457
1312
|
},
|
1458
1313
|
{
|
1459
|
-
"internalType": "
|
1460
|
-
"name": "
|
1461
|
-
"type": "
|
1314
|
+
"internalType": "KeyId",
|
1315
|
+
"name": "id",
|
1316
|
+
"type": "bytes31"
|
1462
1317
|
}
|
1463
1318
|
],
|
1464
|
-
"name": "
|
1319
|
+
"name": "toKey32",
|
1465
1320
|
"outputs": [
|
1466
1321
|
{
|
1467
|
-
"internalType": "
|
1468
|
-
"name": "
|
1469
|
-
"type": "
|
1322
|
+
"internalType": "Key32",
|
1323
|
+
"name": "",
|
1324
|
+
"type": "bytes32"
|
1470
1325
|
}
|
1471
1326
|
],
|
1472
|
-
"stateMutability": "
|
1327
|
+
"stateMutability": "pure",
|
1473
1328
|
"type": "function"
|
1474
1329
|
},
|
1475
1330
|
{
|
1476
1331
|
"inputs": [
|
1477
1332
|
{
|
1478
|
-
"internalType": "
|
1479
|
-
"name": "
|
1480
|
-
"type": "
|
1333
|
+
"internalType": "NftId",
|
1334
|
+
"name": "bundleNftId",
|
1335
|
+
"type": "uint96"
|
1481
1336
|
},
|
1482
|
-
{
|
1483
|
-
"internalType": "address",
|
1484
|
-
"name": "member",
|
1485
|
-
"type": "address"
|
1486
|
-
}
|
1487
|
-
],
|
1488
|
-
"name": "revokeRole",
|
1489
|
-
"outputs": [],
|
1490
|
-
"stateMutability": "nonpayable",
|
1491
|
-
"type": "function"
|
1492
|
-
},
|
1493
|
-
{
|
1494
|
-
"inputs": [
|
1495
|
-
{
|
1496
|
-
"internalType": "RoleId",
|
1497
|
-
"name": "role",
|
1498
|
-
"type": "bytes8"
|
1499
|
-
}
|
1500
|
-
],
|
1501
|
-
"name": "roleExists",
|
1502
|
-
"outputs": [
|
1503
|
-
{
|
1504
|
-
"internalType": "bool",
|
1505
|
-
"name": "",
|
1506
|
-
"type": "bool"
|
1507
|
-
}
|
1508
|
-
],
|
1509
|
-
"stateMutability": "view",
|
1510
|
-
"type": "function"
|
1511
|
-
},
|
1512
|
-
{
|
1513
|
-
"inputs": [
|
1514
1337
|
{
|
1515
1338
|
"components": [
|
1516
1339
|
{
|
1517
1340
|
"internalType": "NftId",
|
1518
|
-
"name": "
|
1341
|
+
"name": "poolNftId",
|
1519
1342
|
"type": "uint96"
|
1520
1343
|
},
|
1521
1344
|
{
|
1522
|
-
"
|
1523
|
-
|
1524
|
-
|
1345
|
+
"components": [
|
1346
|
+
{
|
1347
|
+
"internalType": "UFixed",
|
1348
|
+
"name": "fractionalFee",
|
1349
|
+
"type": "uint256"
|
1350
|
+
},
|
1351
|
+
{
|
1352
|
+
"internalType": "uint256",
|
1353
|
+
"name": "fixedFee",
|
1354
|
+
"type": "uint256"
|
1355
|
+
}
|
1356
|
+
],
|
1357
|
+
"internalType": "struct Fee",
|
1358
|
+
"name": "fee",
|
1359
|
+
"type": "tuple"
|
1525
1360
|
},
|
1526
1361
|
{
|
1527
1362
|
"internalType": "bytes",
|
@@ -1543,6 +1378,11 @@
|
|
1543
1378
|
"name": "balanceAmount",
|
1544
1379
|
"type": "uint256"
|
1545
1380
|
},
|
1381
|
+
{
|
1382
|
+
"internalType": "uint256",
|
1383
|
+
"name": "lifetime",
|
1384
|
+
"type": "uint256"
|
1385
|
+
},
|
1546
1386
|
{
|
1547
1387
|
"internalType": "Timestamp",
|
1548
1388
|
"name": "expiredAt",
|
@@ -1555,60 +1395,122 @@
|
|
1555
1395
|
}
|
1556
1396
|
],
|
1557
1397
|
"internalType": "struct IBundle.BundleInfo",
|
1558
|
-
"name": "
|
1398
|
+
"name": "bundle",
|
1559
1399
|
"type": "tuple"
|
1400
|
+
},
|
1401
|
+
{
|
1402
|
+
"internalType": "StateId",
|
1403
|
+
"name": "newState",
|
1404
|
+
"type": "uint8"
|
1405
|
+
}
|
1406
|
+
],
|
1407
|
+
"name": "updateBundle",
|
1408
|
+
"outputs": [],
|
1409
|
+
"stateMutability": "nonpayable",
|
1410
|
+
"type": "function"
|
1411
|
+
},
|
1412
|
+
{
|
1413
|
+
"inputs": [
|
1414
|
+
{
|
1415
|
+
"internalType": "NftId",
|
1416
|
+
"name": "bundleNftId",
|
1417
|
+
"type": "uint96"
|
1418
|
+
},
|
1419
|
+
{
|
1420
|
+
"internalType": "StateId",
|
1421
|
+
"name": "newState",
|
1422
|
+
"type": "uint8"
|
1560
1423
|
}
|
1561
1424
|
],
|
1562
|
-
"name": "
|
1425
|
+
"name": "updateBundleState",
|
1563
1426
|
"outputs": [],
|
1564
1427
|
"stateMutability": "nonpayable",
|
1565
1428
|
"type": "function"
|
1566
1429
|
},
|
1567
1430
|
{
|
1568
1431
|
"inputs": [
|
1432
|
+
{
|
1433
|
+
"internalType": "NftId",
|
1434
|
+
"name": "distributionNftId",
|
1435
|
+
"type": "uint96"
|
1436
|
+
},
|
1569
1437
|
{
|
1570
1438
|
"components": [
|
1571
1439
|
{
|
1572
1440
|
"internalType": "NftId",
|
1573
|
-
"name": "
|
1441
|
+
"name": "productNftId",
|
1574
1442
|
"type": "uint96"
|
1575
1443
|
},
|
1576
1444
|
{
|
1577
|
-
"internalType": "
|
1578
|
-
"name": "
|
1579
|
-
"type": "
|
1445
|
+
"internalType": "contract TokenHandler",
|
1446
|
+
"name": "tokenHandler",
|
1447
|
+
"type": "address"
|
1580
1448
|
},
|
1581
1449
|
{
|
1582
|
-
"
|
1583
|
-
|
1450
|
+
"components": [
|
1451
|
+
{
|
1452
|
+
"internalType": "UFixed",
|
1453
|
+
"name": "fractionalFee",
|
1454
|
+
"type": "uint256"
|
1455
|
+
},
|
1456
|
+
{
|
1457
|
+
"internalType": "uint256",
|
1458
|
+
"name": "fixedFee",
|
1459
|
+
"type": "uint256"
|
1460
|
+
}
|
1461
|
+
],
|
1462
|
+
"internalType": "struct Fee",
|
1463
|
+
"name": "distributionFee",
|
1464
|
+
"type": "tuple"
|
1465
|
+
},
|
1466
|
+
{
|
1467
|
+
"internalType": "address",
|
1468
|
+
"name": "wallet",
|
1584
1469
|
"type": "address"
|
1585
1470
|
}
|
1586
1471
|
],
|
1587
|
-
"internalType": "struct
|
1588
|
-
"name": "
|
1472
|
+
"internalType": "struct ISetup.DistributionSetupInfo",
|
1473
|
+
"name": "setup",
|
1589
1474
|
"type": "tuple"
|
1475
|
+
},
|
1476
|
+
{
|
1477
|
+
"internalType": "StateId",
|
1478
|
+
"name": "newState",
|
1479
|
+
"type": "uint8"
|
1590
1480
|
}
|
1591
1481
|
],
|
1592
|
-
"name": "
|
1593
|
-
"outputs": [
|
1482
|
+
"name": "updateDistributionSetup",
|
1483
|
+
"outputs": [],
|
1484
|
+
"stateMutability": "nonpayable",
|
1485
|
+
"type": "function"
|
1486
|
+
},
|
1487
|
+
{
|
1488
|
+
"inputs": [
|
1594
1489
|
{
|
1595
1490
|
"internalType": "NftId",
|
1596
|
-
"name": "
|
1491
|
+
"name": "distributionNftId",
|
1597
1492
|
"type": "uint96"
|
1493
|
+
},
|
1494
|
+
{
|
1495
|
+
"internalType": "StateId",
|
1496
|
+
"name": "newState",
|
1497
|
+
"type": "uint8"
|
1598
1498
|
}
|
1599
1499
|
],
|
1500
|
+
"name": "updateDistributionSetupState",
|
1501
|
+
"outputs": [],
|
1600
1502
|
"stateMutability": "nonpayable",
|
1601
1503
|
"type": "function"
|
1602
1504
|
},
|
1603
1505
|
{
|
1604
1506
|
"inputs": [
|
1507
|
+
{
|
1508
|
+
"internalType": "NftId",
|
1509
|
+
"name": "policyNftId",
|
1510
|
+
"type": "uint96"
|
1511
|
+
},
|
1605
1512
|
{
|
1606
1513
|
"components": [
|
1607
|
-
{
|
1608
|
-
"internalType": "NftId",
|
1609
|
-
"name": "nftId",
|
1610
|
-
"type": "uint96"
|
1611
|
-
},
|
1612
1514
|
{
|
1613
1515
|
"internalType": "NftId",
|
1614
1516
|
"name": "productNftId",
|
@@ -1620,14 +1522,14 @@
|
|
1620
1522
|
"type": "uint96"
|
1621
1523
|
},
|
1622
1524
|
{
|
1623
|
-
"internalType": "
|
1624
|
-
"name": "
|
1625
|
-
"type": "
|
1525
|
+
"internalType": "ReferralId",
|
1526
|
+
"name": "referralId",
|
1527
|
+
"type": "bytes8"
|
1626
1528
|
},
|
1627
1529
|
{
|
1628
|
-
"internalType": "
|
1629
|
-
"name": "
|
1630
|
-
"type": "
|
1530
|
+
"internalType": "RiskId",
|
1531
|
+
"name": "riskId",
|
1532
|
+
"type": "bytes8"
|
1631
1533
|
},
|
1632
1534
|
{
|
1633
1535
|
"internalType": "uint256",
|
@@ -1651,41 +1553,74 @@
|
|
1651
1553
|
},
|
1652
1554
|
{
|
1653
1555
|
"internalType": "bytes",
|
1654
|
-
"name": "
|
1556
|
+
"name": "applicationData",
|
1655
1557
|
"type": "bytes"
|
1656
1558
|
},
|
1657
1559
|
{
|
1658
|
-
"internalType": "
|
1659
|
-
"name": "
|
1660
|
-
"type": "
|
1560
|
+
"internalType": "bytes",
|
1561
|
+
"name": "policyData",
|
1562
|
+
"type": "bytes"
|
1661
1563
|
},
|
1662
1564
|
{
|
1663
|
-
"internalType": "
|
1664
|
-
"name": "
|
1665
|
-
"type": "
|
1565
|
+
"internalType": "uint16",
|
1566
|
+
"name": "claimsCount",
|
1567
|
+
"type": "uint16"
|
1666
1568
|
},
|
1667
1569
|
{
|
1668
|
-
"internalType": "
|
1669
|
-
"name": "
|
1570
|
+
"internalType": "uint16",
|
1571
|
+
"name": "openClaimsCount",
|
1572
|
+
"type": "uint16"
|
1573
|
+
},
|
1574
|
+
{
|
1575
|
+
"internalType": "uint256",
|
1576
|
+
"name": "payoutAmount",
|
1577
|
+
"type": "uint256"
|
1578
|
+
},
|
1579
|
+
{
|
1580
|
+
"internalType": "Timestamp",
|
1581
|
+
"name": "activatedAt",
|
1670
1582
|
"type": "uint40"
|
1671
1583
|
},
|
1672
1584
|
{
|
1673
1585
|
"internalType": "Timestamp",
|
1674
|
-
"name": "
|
1586
|
+
"name": "expiredAt",
|
1675
1587
|
"type": "uint40"
|
1676
1588
|
},
|
1677
1589
|
{
|
1678
|
-
"internalType": "
|
1679
|
-
"name": "
|
1680
|
-
"type": "
|
1590
|
+
"internalType": "Timestamp",
|
1591
|
+
"name": "closedAt",
|
1592
|
+
"type": "uint40"
|
1681
1593
|
}
|
1682
1594
|
],
|
1683
1595
|
"internalType": "struct IPolicy.PolicyInfo",
|
1684
|
-
"name": "
|
1596
|
+
"name": "policy",
|
1685
1597
|
"type": "tuple"
|
1598
|
+
},
|
1599
|
+
{
|
1600
|
+
"internalType": "StateId",
|
1601
|
+
"name": "newState",
|
1602
|
+
"type": "uint8"
|
1686
1603
|
}
|
1687
1604
|
],
|
1688
|
-
"name": "
|
1605
|
+
"name": "updatePolicy",
|
1606
|
+
"outputs": [],
|
1607
|
+
"stateMutability": "nonpayable",
|
1608
|
+
"type": "function"
|
1609
|
+
},
|
1610
|
+
{
|
1611
|
+
"inputs": [
|
1612
|
+
{
|
1613
|
+
"internalType": "NftId",
|
1614
|
+
"name": "policyNftId",
|
1615
|
+
"type": "uint96"
|
1616
|
+
},
|
1617
|
+
{
|
1618
|
+
"internalType": "StateId",
|
1619
|
+
"name": "newState",
|
1620
|
+
"type": "uint8"
|
1621
|
+
}
|
1622
|
+
],
|
1623
|
+
"name": "updatePolicyState",
|
1689
1624
|
"outputs": [],
|
1690
1625
|
"stateMutability": "nonpayable",
|
1691
1626
|
"type": "function"
|
@@ -1700,39 +1635,126 @@
|
|
1700
1635
|
{
|
1701
1636
|
"components": [
|
1702
1637
|
{
|
1703
|
-
"internalType": "
|
1704
|
-
"name": "
|
1705
|
-
"type": "
|
1638
|
+
"internalType": "NftId",
|
1639
|
+
"name": "productNftId",
|
1640
|
+
"type": "uint96"
|
1706
1641
|
},
|
1707
1642
|
{
|
1708
|
-
"internalType": "
|
1709
|
-
"name": "
|
1710
|
-
"type": "
|
1711
|
-
}
|
1712
|
-
|
1713
|
-
|
1714
|
-
|
1715
|
-
|
1716
|
-
|
1717
|
-
|
1718
|
-
|
1643
|
+
"internalType": "contract TokenHandler",
|
1644
|
+
"name": "tokenHandler",
|
1645
|
+
"type": "address"
|
1646
|
+
},
|
1647
|
+
{
|
1648
|
+
"internalType": "bool",
|
1649
|
+
"name": "isInterceptingBundleTransfers",
|
1650
|
+
"type": "bool"
|
1651
|
+
},
|
1652
|
+
{
|
1653
|
+
"internalType": "bool",
|
1654
|
+
"name": "isExternallyManaged",
|
1655
|
+
"type": "bool"
|
1656
|
+
},
|
1657
|
+
{
|
1658
|
+
"internalType": "bool",
|
1659
|
+
"name": "isVerifyingApplications",
|
1660
|
+
"type": "bool"
|
1661
|
+
},
|
1719
1662
|
{
|
1720
1663
|
"internalType": "UFixed",
|
1721
|
-
"name": "
|
1664
|
+
"name": "collateralizationLevel",
|
1722
1665
|
"type": "uint256"
|
1723
1666
|
},
|
1724
1667
|
{
|
1725
|
-
"internalType": "
|
1726
|
-
"name": "
|
1668
|
+
"internalType": "UFixed",
|
1669
|
+
"name": "retentionLevel",
|
1727
1670
|
"type": "uint256"
|
1671
|
+
},
|
1672
|
+
{
|
1673
|
+
"components": [
|
1674
|
+
{
|
1675
|
+
"internalType": "UFixed",
|
1676
|
+
"name": "fractionalFee",
|
1677
|
+
"type": "uint256"
|
1678
|
+
},
|
1679
|
+
{
|
1680
|
+
"internalType": "uint256",
|
1681
|
+
"name": "fixedFee",
|
1682
|
+
"type": "uint256"
|
1683
|
+
}
|
1684
|
+
],
|
1685
|
+
"internalType": "struct Fee",
|
1686
|
+
"name": "poolFee",
|
1687
|
+
"type": "tuple"
|
1688
|
+
},
|
1689
|
+
{
|
1690
|
+
"components": [
|
1691
|
+
{
|
1692
|
+
"internalType": "UFixed",
|
1693
|
+
"name": "fractionalFee",
|
1694
|
+
"type": "uint256"
|
1695
|
+
},
|
1696
|
+
{
|
1697
|
+
"internalType": "uint256",
|
1698
|
+
"name": "fixedFee",
|
1699
|
+
"type": "uint256"
|
1700
|
+
}
|
1701
|
+
],
|
1702
|
+
"internalType": "struct Fee",
|
1703
|
+
"name": "stakingFee",
|
1704
|
+
"type": "tuple"
|
1705
|
+
},
|
1706
|
+
{
|
1707
|
+
"components": [
|
1708
|
+
{
|
1709
|
+
"internalType": "UFixed",
|
1710
|
+
"name": "fractionalFee",
|
1711
|
+
"type": "uint256"
|
1712
|
+
},
|
1713
|
+
{
|
1714
|
+
"internalType": "uint256",
|
1715
|
+
"name": "fixedFee",
|
1716
|
+
"type": "uint256"
|
1717
|
+
}
|
1718
|
+
],
|
1719
|
+
"internalType": "struct Fee",
|
1720
|
+
"name": "performanceFee",
|
1721
|
+
"type": "tuple"
|
1722
|
+
},
|
1723
|
+
{
|
1724
|
+
"internalType": "address",
|
1725
|
+
"name": "wallet",
|
1726
|
+
"type": "address"
|
1728
1727
|
}
|
1729
1728
|
],
|
1730
|
-
"internalType": "struct
|
1731
|
-
"name": "
|
1729
|
+
"internalType": "struct ISetup.PoolSetupInfo",
|
1730
|
+
"name": "setup",
|
1732
1731
|
"type": "tuple"
|
1732
|
+
},
|
1733
|
+
{
|
1734
|
+
"internalType": "StateId",
|
1735
|
+
"name": "newState",
|
1736
|
+
"type": "uint8"
|
1733
1737
|
}
|
1734
1738
|
],
|
1735
|
-
"name": "
|
1739
|
+
"name": "updatePoolSetup",
|
1740
|
+
"outputs": [],
|
1741
|
+
"stateMutability": "nonpayable",
|
1742
|
+
"type": "function"
|
1743
|
+
},
|
1744
|
+
{
|
1745
|
+
"inputs": [
|
1746
|
+
{
|
1747
|
+
"internalType": "NftId",
|
1748
|
+
"name": "poolNftId",
|
1749
|
+
"type": "uint96"
|
1750
|
+
},
|
1751
|
+
{
|
1752
|
+
"internalType": "StateId",
|
1753
|
+
"name": "newState",
|
1754
|
+
"type": "uint8"
|
1755
|
+
}
|
1756
|
+
],
|
1757
|
+
"name": "updatePoolSetupState",
|
1736
1758
|
"outputs": [],
|
1737
1759
|
"stateMutability": "nonpayable",
|
1738
1760
|
"type": "function"
|
@@ -1747,39 +1769,149 @@
|
|
1747
1769
|
{
|
1748
1770
|
"components": [
|
1749
1771
|
{
|
1750
|
-
"internalType": "
|
1751
|
-
"name": "
|
1752
|
-
"type": "
|
1772
|
+
"internalType": "contract IERC20Metadata",
|
1773
|
+
"name": "token",
|
1774
|
+
"type": "address"
|
1753
1775
|
},
|
1754
1776
|
{
|
1755
|
-
"internalType": "
|
1756
|
-
"name": "
|
1757
|
-
"type": "
|
1758
|
-
}
|
1759
|
-
],
|
1760
|
-
"internalType": "struct Fee",
|
1761
|
-
"name": "policyFee",
|
1762
|
-
"type": "tuple"
|
1763
|
-
},
|
1764
|
-
{
|
1765
|
-
"components": [
|
1777
|
+
"internalType": "contract TokenHandler",
|
1778
|
+
"name": "tokenHandler",
|
1779
|
+
"type": "address"
|
1780
|
+
},
|
1766
1781
|
{
|
1767
|
-
"internalType": "
|
1768
|
-
"name": "
|
1769
|
-
"type": "
|
1782
|
+
"internalType": "NftId",
|
1783
|
+
"name": "distributionNftId",
|
1784
|
+
"type": "uint96"
|
1770
1785
|
},
|
1771
1786
|
{
|
1772
|
-
"internalType": "
|
1773
|
-
"name": "
|
1774
|
-
"type": "
|
1787
|
+
"internalType": "NftId",
|
1788
|
+
"name": "poolNftId",
|
1789
|
+
"type": "uint96"
|
1790
|
+
},
|
1791
|
+
{
|
1792
|
+
"components": [
|
1793
|
+
{
|
1794
|
+
"internalType": "UFixed",
|
1795
|
+
"name": "fractionalFee",
|
1796
|
+
"type": "uint256"
|
1797
|
+
},
|
1798
|
+
{
|
1799
|
+
"internalType": "uint256",
|
1800
|
+
"name": "fixedFee",
|
1801
|
+
"type": "uint256"
|
1802
|
+
}
|
1803
|
+
],
|
1804
|
+
"internalType": "struct Fee",
|
1805
|
+
"name": "distributionFee",
|
1806
|
+
"type": "tuple"
|
1807
|
+
},
|
1808
|
+
{
|
1809
|
+
"components": [
|
1810
|
+
{
|
1811
|
+
"internalType": "UFixed",
|
1812
|
+
"name": "fractionalFee",
|
1813
|
+
"type": "uint256"
|
1814
|
+
},
|
1815
|
+
{
|
1816
|
+
"internalType": "uint256",
|
1817
|
+
"name": "fixedFee",
|
1818
|
+
"type": "uint256"
|
1819
|
+
}
|
1820
|
+
],
|
1821
|
+
"internalType": "struct Fee",
|
1822
|
+
"name": "productFee",
|
1823
|
+
"type": "tuple"
|
1824
|
+
},
|
1825
|
+
{
|
1826
|
+
"components": [
|
1827
|
+
{
|
1828
|
+
"internalType": "UFixed",
|
1829
|
+
"name": "fractionalFee",
|
1830
|
+
"type": "uint256"
|
1831
|
+
},
|
1832
|
+
{
|
1833
|
+
"internalType": "uint256",
|
1834
|
+
"name": "fixedFee",
|
1835
|
+
"type": "uint256"
|
1836
|
+
}
|
1837
|
+
],
|
1838
|
+
"internalType": "struct Fee",
|
1839
|
+
"name": "processingFee",
|
1840
|
+
"type": "tuple"
|
1841
|
+
},
|
1842
|
+
{
|
1843
|
+
"components": [
|
1844
|
+
{
|
1845
|
+
"internalType": "UFixed",
|
1846
|
+
"name": "fractionalFee",
|
1847
|
+
"type": "uint256"
|
1848
|
+
},
|
1849
|
+
{
|
1850
|
+
"internalType": "uint256",
|
1851
|
+
"name": "fixedFee",
|
1852
|
+
"type": "uint256"
|
1853
|
+
}
|
1854
|
+
],
|
1855
|
+
"internalType": "struct Fee",
|
1856
|
+
"name": "poolFee",
|
1857
|
+
"type": "tuple"
|
1858
|
+
},
|
1859
|
+
{
|
1860
|
+
"components": [
|
1861
|
+
{
|
1862
|
+
"internalType": "UFixed",
|
1863
|
+
"name": "fractionalFee",
|
1864
|
+
"type": "uint256"
|
1865
|
+
},
|
1866
|
+
{
|
1867
|
+
"internalType": "uint256",
|
1868
|
+
"name": "fixedFee",
|
1869
|
+
"type": "uint256"
|
1870
|
+
}
|
1871
|
+
],
|
1872
|
+
"internalType": "struct Fee",
|
1873
|
+
"name": "stakingFee",
|
1874
|
+
"type": "tuple"
|
1875
|
+
},
|
1876
|
+
{
|
1877
|
+
"components": [
|
1878
|
+
{
|
1879
|
+
"internalType": "UFixed",
|
1880
|
+
"name": "fractionalFee",
|
1881
|
+
"type": "uint256"
|
1882
|
+
},
|
1883
|
+
{
|
1884
|
+
"internalType": "uint256",
|
1885
|
+
"name": "fixedFee",
|
1886
|
+
"type": "uint256"
|
1887
|
+
}
|
1888
|
+
],
|
1889
|
+
"internalType": "struct Fee",
|
1890
|
+
"name": "performanceFee",
|
1891
|
+
"type": "tuple"
|
1892
|
+
},
|
1893
|
+
{
|
1894
|
+
"internalType": "bool",
|
1895
|
+
"name": "isIntercepting",
|
1896
|
+
"type": "bool"
|
1897
|
+
},
|
1898
|
+
{
|
1899
|
+
"internalType": "address",
|
1900
|
+
"name": "wallet",
|
1901
|
+
"type": "address"
|
1775
1902
|
}
|
1776
1903
|
],
|
1777
|
-
"internalType": "struct
|
1778
|
-
"name": "
|
1904
|
+
"internalType": "struct ISetup.ProductSetupInfo",
|
1905
|
+
"name": "setup",
|
1779
1906
|
"type": "tuple"
|
1907
|
+
},
|
1908
|
+
{
|
1909
|
+
"internalType": "StateId",
|
1910
|
+
"name": "newState",
|
1911
|
+
"type": "uint8"
|
1780
1912
|
}
|
1781
1913
|
],
|
1782
|
-
"name": "
|
1914
|
+
"name": "updateProductSetup",
|
1783
1915
|
"outputs": [],
|
1784
1916
|
"stateMutability": "nonpayable",
|
1785
1917
|
"type": "function"
|
@@ -1787,17 +1919,17 @@
|
|
1787
1919
|
{
|
1788
1920
|
"inputs": [
|
1789
1921
|
{
|
1790
|
-
"internalType": "
|
1791
|
-
"name": "
|
1792
|
-
"type": "
|
1922
|
+
"internalType": "NftId",
|
1923
|
+
"name": "productNftId",
|
1924
|
+
"type": "uint96"
|
1793
1925
|
},
|
1794
1926
|
{
|
1795
|
-
"internalType": "
|
1796
|
-
"name": "
|
1797
|
-
"type": "
|
1927
|
+
"internalType": "StateId",
|
1928
|
+
"name": "newState",
|
1929
|
+
"type": "uint8"
|
1798
1930
|
}
|
1799
1931
|
],
|
1800
|
-
"name": "
|
1932
|
+
"name": "updateProductSetupState",
|
1801
1933
|
"outputs": [],
|
1802
1934
|
"stateMutability": "nonpayable",
|
1803
1935
|
"type": "function"
|
@@ -1805,55 +1937,52 @@
|
|
1805
1937
|
{
|
1806
1938
|
"inputs": [
|
1807
1939
|
{
|
1808
|
-
"internalType": "
|
1809
|
-
"name": "
|
1810
|
-
"type": "
|
1811
|
-
}
|
1812
|
-
],
|
1813
|
-
"name": "supportsInterface",
|
1814
|
-
"outputs": [
|
1815
|
-
{
|
1816
|
-
"internalType": "bool",
|
1817
|
-
"name": "",
|
1818
|
-
"type": "bool"
|
1819
|
-
}
|
1820
|
-
],
|
1821
|
-
"stateMutability": "view",
|
1822
|
-
"type": "function"
|
1823
|
-
},
|
1824
|
-
{
|
1825
|
-
"inputs": [
|
1940
|
+
"internalType": "RiskId",
|
1941
|
+
"name": "riskId",
|
1942
|
+
"type": "bytes8"
|
1943
|
+
},
|
1826
1944
|
{
|
1827
|
-
"
|
1828
|
-
|
1829
|
-
|
1830
|
-
|
1831
|
-
|
1832
|
-
|
1833
|
-
|
1945
|
+
"components": [
|
1946
|
+
{
|
1947
|
+
"internalType": "NftId",
|
1948
|
+
"name": "productNftId",
|
1949
|
+
"type": "uint96"
|
1950
|
+
},
|
1951
|
+
{
|
1952
|
+
"internalType": "bytes",
|
1953
|
+
"name": "data",
|
1954
|
+
"type": "bytes"
|
1955
|
+
}
|
1956
|
+
],
|
1957
|
+
"internalType": "struct IRisk.RiskInfo",
|
1958
|
+
"name": "risk",
|
1959
|
+
"type": "tuple"
|
1960
|
+
},
|
1834
1961
|
{
|
1835
|
-
"internalType": "
|
1836
|
-
"name": "
|
1837
|
-
"type": "
|
1962
|
+
"internalType": "StateId",
|
1963
|
+
"name": "newState",
|
1964
|
+
"type": "uint8"
|
1838
1965
|
}
|
1839
1966
|
],
|
1840
|
-
"
|
1967
|
+
"name": "updateRisk",
|
1968
|
+
"outputs": [],
|
1969
|
+
"stateMutability": "nonpayable",
|
1841
1970
|
"type": "function"
|
1842
1971
|
},
|
1843
1972
|
{
|
1844
1973
|
"inputs": [
|
1845
1974
|
{
|
1846
|
-
"internalType": "
|
1847
|
-
"name": "
|
1848
|
-
"type": "
|
1975
|
+
"internalType": "RiskId",
|
1976
|
+
"name": "riskId",
|
1977
|
+
"type": "bytes8"
|
1849
1978
|
},
|
1850
1979
|
{
|
1851
1980
|
"internalType": "StateId",
|
1852
|
-
"name": "
|
1981
|
+
"name": "newState",
|
1853
1982
|
"type": "uint8"
|
1854
1983
|
}
|
1855
1984
|
],
|
1856
|
-
"name": "
|
1985
|
+
"name": "updateRiskState",
|
1857
1986
|
"outputs": [],
|
1858
1987
|
"stateMutability": "nonpayable",
|
1859
1988
|
"type": "function"
|