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