@etherisc/gif-next 0.0.2-851536d → 0.0.2-86e23a6-752
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +436 -8
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
- package/artifacts/contracts/components/Component.sol/Component.json +759 -41
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +1433 -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} +292 -224
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +950 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +894 -0
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +813 -0
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +1229 -76
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +1161 -102
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +4 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +66 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +4 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +24 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +4 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +42 -0
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Require.sol/Require.json +2 -2
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +2 -2
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/A.json +2 -2
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +2 -2
- package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +59 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +124 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +74 -0
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +124 -0
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +207 -0
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +2 -2
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +2 -2
- package/artifacts/contracts/instance/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 +1967 -472
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +674 -0
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +2702 -446
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +984 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1386 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1260 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +610 -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 +754 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +429 -0
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.json +115 -0
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +502 -0
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +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/module/IDistribution.sol/IDistribution.json +10 -0
- package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
- package/artifacts/contracts/instance/{policy → module}/IPolicy.sol/IPolicy.json +1 -1
- package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
- package/artifacts/contracts/instance/{pool/IPoolModule.sol/IPool.json → module/IRisk.sol/IRisk.json} +2 -2
- package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
- package/artifacts/contracts/instance/{component/IComponent.sol/IComponent.json → module/ISetup.sol/ISetup.json} +2 -2
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.json +10 -0
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +1117 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1318 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +586 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1200 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +614 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +638 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +798 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +656 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +784 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +512 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +549 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1378 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +642 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +957 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +574 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +1007 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +574 -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 +519 -61
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +1055 -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 +567 -75
- 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 +1407 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +601 -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 +531 -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 +73 -0
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
- package/artifacts/contracts/{registry/Registry.sol/Registerable.json → shared/INftOwnable.sol/INftOwnable.json} +68 -70
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/{instance/product/IProductService.sol/IProductService.json → shared/IPolicyHolder.sol/IPolicyHolder.json} +68 -53
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +214 -0
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/{instance/product/ProductService.sol/ProductModule.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +23 -29
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
- package/artifacts/contracts/shared/IService.sol/IService.json +434 -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 +303 -0
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +269 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +499 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +415 -0
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +105 -0
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
- package/artifacts/contracts/shared/Service.sol/Service.json +627 -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 +446 -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 +759 -0
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +376 -0
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +218 -0
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +286 -0
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
- package/artifacts/contracts/test/Usdc.sol/USDC.json +376 -0
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -0
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +2 -2
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +4 -0
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +257 -0
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +125 -0
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +65 -4
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +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 +4 -0
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +92 -0
- package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +156 -0
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/StateId.sol/StateIdLib.json +92 -0
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +77 -2
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
- package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +479 -0
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
- package/artifacts/contracts/types/Version.sol/VersionLib.json +177 -0
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +49 -0
- package/contracts/components/Component.sol +211 -37
- package/contracts/components/Distribution.sol +308 -0
- package/contracts/components/IComponent.sol +50 -0
- package/contracts/components/IDistributionComponent.sol +100 -0
- package/contracts/components/IPoolComponent.sol +87 -0
- package/contracts/components/IProductComponent.sol +39 -0
- package/contracts/components/Pool.sol +242 -17
- package/contracts/components/Product.sol +244 -32
- package/contracts/experiment/cloning/Cloner.sol +47 -0
- package/contracts/experiment/errors/Require.sol +10 -5
- package/contracts/experiment/errors/Revert.sol +13 -8
- package/contracts/experiment/inheritance/A.sol +8 -11
- package/contracts/experiment/inheritance/B.sol +10 -5
- package/contracts/experiment/inheritance/C.sol +11 -5
- package/contracts/experiment/inheritance/IA.sol +2 -7
- package/contracts/experiment/inheritance/IB.sol +3 -2
- package/contracts/experiment/inheritance/IC.sol +4 -3
- package/contracts/experiment/statemachine/Dummy.sol +27 -0
- package/contracts/experiment/statemachine/ISM.sol +25 -0
- package/contracts/experiment/statemachine/SM.sol +57 -0
- package/contracts/experiment/statemachine/SimpleStateMachine.sol +31 -0
- package/contracts/experiment/types/TypeA.sol +14 -9
- package/contracts/experiment/types/TypeB.sol +14 -9
- package/contracts/instance/BundleManager.sol +125 -0
- package/contracts/instance/Cloneable.sol +46 -0
- package/contracts/instance/IInstance.sol +81 -15
- package/contracts/instance/IInstanceService.sol +59 -0
- package/contracts/instance/Instance.sol +260 -43
- package/contracts/instance/InstanceAccessManager.sol +297 -0
- package/contracts/instance/InstanceReader.sol +293 -0
- package/contracts/instance/InstanceService.sol +442 -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 +47 -0
- package/contracts/instance/module/IBundle.sol +20 -0
- package/contracts/instance/module/IDistribution.sol +39 -0
- package/contracts/instance/module/IPolicy.sol +45 -0
- package/contracts/instance/module/IRisk.sol +11 -0
- package/contracts/instance/module/ISetup.sol +47 -0
- package/contracts/instance/module/ITreasury.sol +23 -0
- package/contracts/instance/service/ApplicationService.sol +268 -0
- package/contracts/instance/service/BundleService.sol +298 -0
- package/contracts/instance/service/BundleServiceManager.sol +51 -0
- package/contracts/instance/service/DistributionService.sol +291 -0
- package/contracts/instance/service/DistributionServiceManager.sol +51 -0
- package/contracts/instance/service/IApplicationService.sol +82 -0
- package/contracts/instance/service/IBundleService.sol +54 -0
- package/contracts/instance/service/IDistributionService.sol +65 -0
- package/contracts/instance/service/IPolicyService.sol +88 -0
- package/contracts/instance/service/IPoolService.sol +20 -0
- package/contracts/instance/service/IProductService.sol +40 -0
- package/contracts/instance/service/PolicyService.sol +524 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +109 -0
- package/contracts/instance/service/PoolServiceManager.sol +51 -0
- package/contracts/instance/service/ProductService.sol +233 -0
- package/contracts/instance/service/ProductServiceManager.sol +54 -0
- package/contracts/registry/ChainNft.sol +138 -109
- package/contracts/registry/IRegistry.sol +78 -49
- package/contracts/registry/IRegistryService.sol +67 -0
- package/contracts/registry/ITransferInterceptor.sol +6 -0
- package/contracts/registry/Registry.sol +398 -116
- package/contracts/registry/RegistryAccessManager.sol +216 -0
- package/contracts/registry/RegistryService.sol +277 -0
- package/contracts/registry/RegistryServiceManager.sol +62 -0
- package/contracts/registry/ReleaseManager.sol +331 -0
- package/contracts/registry/TokenRegistry.sol +113 -0
- package/contracts/shared/ContractDeployerLib.sol +72 -0
- package/contracts/shared/ERC165.sol +26 -0
- package/contracts/shared/INftOwnable.sol +28 -0
- package/contracts/shared/IPolicyHolder.sol +26 -0
- package/contracts/shared/IRegisterable.sol +15 -0
- package/contracts/shared/IRegistryLinked.sol +15 -0
- package/contracts/shared/IService.sol +16 -0
- package/contracts/shared/IVersionable.sol +96 -0
- package/contracts/shared/NftOwnable.sol +190 -0
- package/contracts/shared/PolicyHolder.sol +81 -0
- package/contracts/shared/ProxyManager.sol +95 -0
- package/contracts/shared/Registerable.sol +81 -0
- package/contracts/shared/RegistryLinked.sol +64 -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 +148 -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/test/TestToken.sol +26 -0
- package/contracts/test/TestVersion.sol +44 -0
- package/contracts/test/TestVersionable.sol +17 -0
- package/contracts/test/Usdc.sol +26 -0
- package/contracts/types/AddressSet.sol +58 -0
- package/contracts/types/Blocknumber.sol +76 -18
- package/contracts/types/ChainId.sol +18 -10
- package/contracts/types/DistributorType.sol +55 -0
- package/contracts/types/Fee.sol +56 -0
- package/contracts/types/Key32.sol +50 -0
- package/contracts/types/NftId.sol +48 -11
- package/contracts/types/NftIdSet.sol +62 -0
- package/contracts/types/NumberId.sol +52 -0
- package/contracts/types/ObjectType.sol +156 -0
- 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 +105 -0
- package/contracts/types/Timestamp.sol +89 -17
- package/contracts/types/UFixed.sol +193 -75
- package/contracts/types/Version.sol +107 -0
- package/package.json +21 -6
- package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +0 -4
- package/artifacts/contracts/components/Component.sol/InstanceLinked.json +0 -35
- package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IPool.sol/IPoolComponent.json +0 -179
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +0 -192
- package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/access/Access.sol/AccessModule.json +0 -400
- package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +0 -35
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +0 -50
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.json +0 -336
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.json +0 -327
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +0 -147
- package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.json +0 -179
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +0 -245
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +0 -94
- package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.json +0 -24
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.json +0 -231
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.json +0 -231
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +0 -4
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.json +0 -149
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.json +0 -162
- package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +0 -4
- package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +0 -75
- package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +0 -4
- package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +0 -4
- package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +0 -4
- package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +0 -167
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
- package/artifacts/contracts/registry/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/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 -440
- package/contracts/components/IPool.sol +0 -9
- package/contracts/components/IProduct.sol +0 -12
- package/contracts/instance/access/Access.sol +0 -218
- package/contracts/instance/access/IAccess.sol +0 -83
- package/contracts/instance/component/ComponentModule.sol +0 -248
- package/contracts/instance/component/IComponent.sol +0 -95
- package/contracts/instance/policy/IPolicy.sol +0 -66
- package/contracts/instance/policy/PolicyModule.sol +0 -107
- package/contracts/instance/pool/IPoolModule.sol +0 -41
- package/contracts/instance/pool/PoolModule.sol +0 -86
- package/contracts/instance/product/IProductService.sol +0 -46
- package/contracts/instance/product/ProductService.sol +0 -108
- package/contracts/registry/IChainNft.sol +0 -18
@@ -4,165 +4,95 @@
|
|
4
4
|
"sourceName": "contracts/instance/IInstance.sol",
|
5
5
|
"abi": [
|
6
6
|
{
|
7
|
-
"anonymous": false,
|
8
7
|
"inputs": [
|
9
8
|
{
|
10
|
-
"indexed": false,
|
11
|
-
"internalType": "uint256",
|
12
|
-
"name": "idx",
|
13
|
-
"type": "uint256"
|
14
|
-
},
|
15
|
-
{
|
16
|
-
"indexed": false,
|
17
9
|
"internalType": "address",
|
18
|
-
"name": "
|
10
|
+
"name": "authority",
|
19
11
|
"type": "address"
|
20
|
-
},
|
21
|
-
{
|
22
|
-
"indexed": false,
|
23
|
-
"internalType": "string",
|
24
|
-
"name": "comment",
|
25
|
-
"type": "string"
|
26
12
|
}
|
27
13
|
],
|
28
|
-
"name": "
|
29
|
-
"type": "
|
14
|
+
"name": "AccessManagedInvalidAuthority",
|
15
|
+
"type": "error"
|
30
16
|
},
|
31
17
|
{
|
32
|
-
"inputs": [
|
33
|
-
"name": "ORACLE_OWNER_ROLE",
|
34
|
-
"outputs": [
|
18
|
+
"inputs": [
|
35
19
|
{
|
36
|
-
"internalType": "
|
37
|
-
"name": "
|
38
|
-
"type": "
|
39
|
-
}
|
40
|
-
],
|
41
|
-
"stateMutability": "view",
|
42
|
-
"type": "function"
|
43
|
-
},
|
44
|
-
{
|
45
|
-
"inputs": [],
|
46
|
-
"name": "POOL_OWNER_ROLE",
|
47
|
-
"outputs": [
|
20
|
+
"internalType": "address",
|
21
|
+
"name": "caller",
|
22
|
+
"type": "address"
|
23
|
+
},
|
48
24
|
{
|
49
|
-
"internalType": "
|
50
|
-
"name": "
|
51
|
-
"type": "
|
25
|
+
"internalType": "uint32",
|
26
|
+
"name": "delay",
|
27
|
+
"type": "uint32"
|
52
28
|
}
|
53
29
|
],
|
54
|
-
"
|
55
|
-
"type": "
|
30
|
+
"name": "AccessManagedRequiredDelay",
|
31
|
+
"type": "error"
|
56
32
|
},
|
57
33
|
{
|
58
|
-
"inputs": [
|
59
|
-
"name": "PRODUCT_OWNER_ROLE",
|
60
|
-
"outputs": [
|
34
|
+
"inputs": [
|
61
35
|
{
|
62
|
-
"internalType": "
|
63
|
-
"name": "
|
64
|
-
"type": "
|
36
|
+
"internalType": "address",
|
37
|
+
"name": "caller",
|
38
|
+
"type": "address"
|
65
39
|
}
|
66
40
|
],
|
67
|
-
"
|
68
|
-
"type": "
|
41
|
+
"name": "AccessManagedUnauthorized",
|
42
|
+
"type": "error"
|
69
43
|
},
|
70
44
|
{
|
71
45
|
"inputs": [
|
46
|
+
{
|
47
|
+
"internalType": "address",
|
48
|
+
"name": "registry",
|
49
|
+
"type": "address"
|
50
|
+
},
|
72
51
|
{
|
73
52
|
"internalType": "NftId",
|
74
53
|
"name": "nftId",
|
75
54
|
"type": "uint96"
|
76
55
|
}
|
77
56
|
],
|
78
|
-
"name": "
|
79
|
-
"
|
80
|
-
"stateMutability": "nonpayable",
|
81
|
-
"type": "function"
|
57
|
+
"name": "ErrorAlreadyLinked",
|
58
|
+
"type": "error"
|
82
59
|
},
|
83
60
|
{
|
84
|
-
"inputs": [
|
85
|
-
"name": "components",
|
86
|
-
"outputs": [
|
61
|
+
"inputs": [
|
87
62
|
{
|
88
|
-
"internalType": "
|
89
|
-
"name": "
|
90
|
-
"type": "
|
63
|
+
"internalType": "address",
|
64
|
+
"name": "contractAddress",
|
65
|
+
"type": "address"
|
91
66
|
}
|
92
67
|
],
|
93
|
-
"
|
94
|
-
"type": "
|
68
|
+
"name": "ErrorContractNotRegistered",
|
69
|
+
"type": "error"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"inputs": [],
|
73
|
+
"name": "ErrorInitialOwnerZero",
|
74
|
+
"type": "error"
|
95
75
|
},
|
96
76
|
{
|
97
77
|
"inputs": [
|
98
78
|
{
|
99
|
-
"
|
100
|
-
|
101
|
-
|
102
|
-
"name": "nftId",
|
103
|
-
"type": "uint96"
|
104
|
-
},
|
105
|
-
{
|
106
|
-
"internalType": "NftId",
|
107
|
-
"name": "parentNftId",
|
108
|
-
"type": "uint96"
|
109
|
-
},
|
110
|
-
{
|
111
|
-
"internalType": "uint256",
|
112
|
-
"name": "objectType",
|
113
|
-
"type": "uint256"
|
114
|
-
},
|
115
|
-
{
|
116
|
-
"internalType": "address",
|
117
|
-
"name": "objectAddress",
|
118
|
-
"type": "address"
|
119
|
-
},
|
120
|
-
{
|
121
|
-
"internalType": "address",
|
122
|
-
"name": "initialOwner",
|
123
|
-
"type": "address"
|
124
|
-
}
|
125
|
-
],
|
126
|
-
"internalType": "struct IRegistry.RegistryInfo",
|
127
|
-
"name": "productInfo",
|
128
|
-
"type": "tuple"
|
129
|
-
},
|
130
|
-
{
|
131
|
-
"internalType": "address",
|
132
|
-
"name": "applicationOwner",
|
133
|
-
"type": "address"
|
134
|
-
},
|
135
|
-
{
|
136
|
-
"internalType": "uint256",
|
137
|
-
"name": "sumInsuredAmount",
|
138
|
-
"type": "uint256"
|
139
|
-
},
|
140
|
-
{
|
141
|
-
"internalType": "uint256",
|
142
|
-
"name": "premiumAmount",
|
143
|
-
"type": "uint256"
|
79
|
+
"internalType": "ObjectType",
|
80
|
+
"name": "objectType",
|
81
|
+
"type": "uint8"
|
144
82
|
},
|
145
83
|
{
|
146
|
-
"internalType": "
|
147
|
-
"name": "
|
148
|
-
"type": "
|
84
|
+
"internalType": "StateId",
|
85
|
+
"name": "fromStateId",
|
86
|
+
"type": "uint8"
|
149
87
|
},
|
150
88
|
{
|
151
|
-
"internalType": "
|
152
|
-
"name": "
|
153
|
-
"type": "
|
154
|
-
}
|
155
|
-
],
|
156
|
-
"name": "createApplication",
|
157
|
-
"outputs": [
|
158
|
-
{
|
159
|
-
"internalType": "NftId",
|
160
|
-
"name": "nftId",
|
161
|
-
"type": "uint96"
|
89
|
+
"internalType": "StateId",
|
90
|
+
"name": "toStateId",
|
91
|
+
"type": "uint8"
|
162
92
|
}
|
163
93
|
],
|
164
|
-
"
|
165
|
-
"type": "
|
94
|
+
"name": "ErrorInvalidStateTransition",
|
95
|
+
"type": "error"
|
166
96
|
},
|
167
97
|
{
|
168
98
|
"inputs": [
|
@@ -172,118 +102,207 @@
|
|
172
102
|
"type": "uint96"
|
173
103
|
},
|
174
104
|
{
|
175
|
-
"internalType": "
|
176
|
-
"name": "
|
177
|
-
"type": "
|
178
|
-
},
|
179
|
-
{
|
180
|
-
"internalType": "address",
|
181
|
-
"name": "token",
|
182
|
-
"type": "address"
|
105
|
+
"internalType": "ObjectType",
|
106
|
+
"name": "objectType",
|
107
|
+
"type": "uint8"
|
183
108
|
}
|
184
109
|
],
|
185
|
-
"name": "
|
186
|
-
"
|
187
|
-
"stateMutability": "nonpayable",
|
188
|
-
"type": "function"
|
110
|
+
"name": "ErrorNoLifecycle",
|
111
|
+
"type": "error"
|
189
112
|
},
|
190
113
|
{
|
191
114
|
"inputs": [
|
192
115
|
{
|
193
|
-
"internalType": "
|
194
|
-
"name": "
|
195
|
-
"type": "
|
116
|
+
"internalType": "address",
|
117
|
+
"name": "account",
|
118
|
+
"type": "address"
|
196
119
|
}
|
197
120
|
],
|
198
|
-
"name": "
|
199
|
-
"
|
121
|
+
"name": "ErrorNotOwner",
|
122
|
+
"type": "error"
|
123
|
+
},
|
124
|
+
{
|
125
|
+
"inputs": [
|
200
126
|
{
|
201
|
-
"internalType": "
|
202
|
-
"name": "
|
203
|
-
"type": "
|
127
|
+
"internalType": "address",
|
128
|
+
"name": "registryAddress",
|
129
|
+
"type": "address"
|
204
130
|
}
|
205
131
|
],
|
206
|
-
"
|
207
|
-
"type": "
|
132
|
+
"name": "ErrorNotRegistry",
|
133
|
+
"type": "error"
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"inputs": [],
|
137
|
+
"name": "ErrorRegistryAddressZero",
|
138
|
+
"type": "error"
|
208
139
|
},
|
209
140
|
{
|
210
141
|
"inputs": [
|
211
142
|
{
|
212
|
-
"internalType": "
|
213
|
-
"name": "
|
214
|
-
"type": "
|
143
|
+
"internalType": "address",
|
144
|
+
"name": "registry",
|
145
|
+
"type": "address"
|
215
146
|
}
|
216
147
|
],
|
217
|
-
"name": "
|
218
|
-
"
|
219
|
-
|
220
|
-
|
148
|
+
"name": "ErrorRegistryAlreadyInitialized",
|
149
|
+
"type": "error"
|
150
|
+
},
|
151
|
+
{
|
152
|
+
"inputs": [],
|
153
|
+
"name": "ErrorRegistryNotInitialized",
|
154
|
+
"type": "error"
|
221
155
|
},
|
222
156
|
{
|
157
|
+
"anonymous": false,
|
223
158
|
"inputs": [
|
224
159
|
{
|
225
|
-
"
|
226
|
-
"
|
227
|
-
"
|
160
|
+
"indexed": false,
|
161
|
+
"internalType": "address",
|
162
|
+
"name": "authority",
|
163
|
+
"type": "address"
|
228
164
|
}
|
229
165
|
],
|
230
|
-
"name": "
|
231
|
-
"
|
232
|
-
"stateMutability": "nonpayable",
|
233
|
-
"type": "function"
|
166
|
+
"name": "AuthorityUpdated",
|
167
|
+
"type": "event"
|
234
168
|
},
|
235
169
|
{
|
170
|
+
"anonymous": false,
|
236
171
|
"inputs": [
|
237
172
|
{
|
238
|
-
"
|
239
|
-
"
|
240
|
-
"
|
241
|
-
|
242
|
-
|
243
|
-
"name": "getBundleNftForPolicy",
|
244
|
-
"outputs": [
|
173
|
+
"indexed": false,
|
174
|
+
"internalType": "ObjectType",
|
175
|
+
"name": "objectType",
|
176
|
+
"type": "uint8"
|
177
|
+
},
|
245
178
|
{
|
246
|
-
"
|
247
|
-
"
|
248
|
-
"
|
179
|
+
"indexed": false,
|
180
|
+
"internalType": "KeyId",
|
181
|
+
"name": "keyId",
|
182
|
+
"type": "bytes31"
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"indexed": false,
|
186
|
+
"internalType": "StateId",
|
187
|
+
"name": "state",
|
188
|
+
"type": "uint8"
|
189
|
+
},
|
190
|
+
{
|
191
|
+
"indexed": false,
|
192
|
+
"internalType": "address",
|
193
|
+
"name": "createdBy",
|
194
|
+
"type": "address"
|
195
|
+
},
|
196
|
+
{
|
197
|
+
"indexed": false,
|
198
|
+
"internalType": "address",
|
199
|
+
"name": "txOrigin",
|
200
|
+
"type": "address"
|
249
201
|
}
|
250
202
|
],
|
251
|
-
"
|
252
|
-
"type": "
|
203
|
+
"name": "LogInfoCreated",
|
204
|
+
"type": "event"
|
253
205
|
},
|
254
206
|
{
|
207
|
+
"anonymous": false,
|
255
208
|
"inputs": [
|
256
209
|
{
|
210
|
+
"indexed": false,
|
211
|
+
"internalType": "ObjectType",
|
212
|
+
"name": "objectType",
|
213
|
+
"type": "uint8"
|
214
|
+
},
|
215
|
+
{
|
216
|
+
"indexed": false,
|
217
|
+
"internalType": "KeyId",
|
218
|
+
"name": "keyId",
|
219
|
+
"type": "bytes31"
|
220
|
+
},
|
221
|
+
{
|
222
|
+
"indexed": false,
|
223
|
+
"internalType": "StateId",
|
224
|
+
"name": "state",
|
225
|
+
"type": "uint8"
|
226
|
+
},
|
227
|
+
{
|
228
|
+
"indexed": false,
|
257
229
|
"internalType": "address",
|
258
|
-
"name": "
|
230
|
+
"name": "updatedBy",
|
259
231
|
"type": "address"
|
260
|
-
}
|
261
|
-
],
|
262
|
-
"name": "getComponentId",
|
263
|
-
"outputs": [
|
232
|
+
},
|
264
233
|
{
|
265
|
-
"
|
266
|
-
"
|
267
|
-
"
|
234
|
+
"indexed": false,
|
235
|
+
"internalType": "address",
|
236
|
+
"name": "txOrigin",
|
237
|
+
"type": "address"
|
238
|
+
},
|
239
|
+
{
|
240
|
+
"indexed": false,
|
241
|
+
"internalType": "Blocknumber",
|
242
|
+
"name": "lastUpdatedIn",
|
243
|
+
"type": "uint32"
|
268
244
|
}
|
269
245
|
],
|
270
|
-
"
|
271
|
-
"type": "
|
246
|
+
"name": "LogInfoUpdated",
|
247
|
+
"type": "event"
|
272
248
|
},
|
273
249
|
{
|
250
|
+
"anonymous": false,
|
274
251
|
"inputs": [
|
275
252
|
{
|
276
|
-
"
|
277
|
-
"
|
278
|
-
"
|
253
|
+
"indexed": false,
|
254
|
+
"internalType": "ObjectType",
|
255
|
+
"name": "objectType",
|
256
|
+
"type": "uint8"
|
257
|
+
},
|
258
|
+
{
|
259
|
+
"indexed": false,
|
260
|
+
"internalType": "KeyId",
|
261
|
+
"name": "keyId",
|
262
|
+
"type": "bytes31"
|
263
|
+
},
|
264
|
+
{
|
265
|
+
"indexed": false,
|
266
|
+
"internalType": "StateId",
|
267
|
+
"name": "stateOld",
|
268
|
+
"type": "uint8"
|
269
|
+
},
|
270
|
+
{
|
271
|
+
"indexed": false,
|
272
|
+
"internalType": "StateId",
|
273
|
+
"name": "stateNew",
|
274
|
+
"type": "uint8"
|
275
|
+
},
|
276
|
+
{
|
277
|
+
"indexed": false,
|
278
|
+
"internalType": "address",
|
279
|
+
"name": "updatedBy",
|
280
|
+
"type": "address"
|
281
|
+
},
|
282
|
+
{
|
283
|
+
"indexed": false,
|
284
|
+
"internalType": "address",
|
285
|
+
"name": "txOrigin",
|
286
|
+
"type": "address"
|
287
|
+
},
|
288
|
+
{
|
289
|
+
"indexed": false,
|
290
|
+
"internalType": "Blocknumber",
|
291
|
+
"name": "lastUpdatedIn",
|
292
|
+
"type": "uint32"
|
279
293
|
}
|
280
294
|
],
|
281
|
-
"name": "
|
295
|
+
"name": "LogStateUpdated",
|
296
|
+
"type": "event"
|
297
|
+
},
|
298
|
+
{
|
299
|
+
"inputs": [],
|
300
|
+
"name": "authority",
|
282
301
|
"outputs": [
|
283
302
|
{
|
284
|
-
"internalType": "
|
285
|
-
"name": "
|
286
|
-
"type": "
|
303
|
+
"internalType": "address",
|
304
|
+
"name": "",
|
305
|
+
"type": "address"
|
287
306
|
}
|
288
307
|
],
|
289
308
|
"stateMutability": "view",
|
@@ -293,151 +312,259 @@
|
|
293
312
|
"inputs": [
|
294
313
|
{
|
295
314
|
"internalType": "NftId",
|
296
|
-
"name": "
|
315
|
+
"name": "bundleNftId",
|
297
316
|
"type": "uint96"
|
298
|
-
}
|
299
|
-
],
|
300
|
-
"name": "getComponentInfo",
|
301
|
-
"outputs": [
|
317
|
+
},
|
302
318
|
{
|
303
319
|
"components": [
|
304
320
|
{
|
305
321
|
"internalType": "NftId",
|
306
|
-
"name": "
|
322
|
+
"name": "poolNftId",
|
307
323
|
"type": "uint96"
|
308
324
|
},
|
309
325
|
{
|
310
|
-
"
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
326
|
+
"components": [
|
327
|
+
{
|
328
|
+
"internalType": "UFixed",
|
329
|
+
"name": "fractionalFee",
|
330
|
+
"type": "uint256"
|
331
|
+
},
|
332
|
+
{
|
333
|
+
"internalType": "uint256",
|
334
|
+
"name": "fixedFee",
|
335
|
+
"type": "uint256"
|
336
|
+
}
|
337
|
+
],
|
338
|
+
"internalType": "struct Fee",
|
339
|
+
"name": "fee",
|
340
|
+
"type": "tuple"
|
341
|
+
},
|
342
|
+
{
|
343
|
+
"internalType": "bytes",
|
344
|
+
"name": "filter",
|
345
|
+
"type": "bytes"
|
346
|
+
},
|
347
|
+
{
|
348
|
+
"internalType": "uint256",
|
349
|
+
"name": "capitalAmount",
|
350
|
+
"type": "uint256"
|
351
|
+
},
|
352
|
+
{
|
353
|
+
"internalType": "uint256",
|
354
|
+
"name": "lockedAmount",
|
355
|
+
"type": "uint256"
|
356
|
+
},
|
357
|
+
{
|
358
|
+
"internalType": "uint256",
|
359
|
+
"name": "balanceAmount",
|
360
|
+
"type": "uint256"
|
361
|
+
},
|
362
|
+
{
|
363
|
+
"internalType": "uint256",
|
364
|
+
"name": "lifetime",
|
365
|
+
"type": "uint256"
|
366
|
+
},
|
367
|
+
{
|
368
|
+
"internalType": "Timestamp",
|
369
|
+
"name": "expiredAt",
|
370
|
+
"type": "uint40"
|
371
|
+
},
|
372
|
+
{
|
373
|
+
"internalType": "Timestamp",
|
374
|
+
"name": "closedAt",
|
375
|
+
"type": "uint40"
|
376
|
+
}
|
377
|
+
],
|
378
|
+
"internalType": "struct IBundle.BundleInfo",
|
379
|
+
"name": "bundle",
|
380
|
+
"type": "tuple"
|
350
381
|
}
|
351
382
|
],
|
352
|
-
"
|
383
|
+
"name": "createBundle",
|
384
|
+
"outputs": [],
|
385
|
+
"stateMutability": "nonpayable",
|
353
386
|
"type": "function"
|
354
387
|
},
|
355
388
|
{
|
356
|
-
"inputs": [
|
357
|
-
"name": "getData",
|
358
|
-
"outputs": [
|
389
|
+
"inputs": [
|
359
390
|
{
|
360
|
-
"internalType": "
|
361
|
-
"name": "
|
362
|
-
"type": "
|
363
|
-
}
|
364
|
-
],
|
365
|
-
"stateMutability": "view",
|
366
|
-
"type": "function"
|
367
|
-
},
|
368
|
-
{
|
369
|
-
"inputs": [],
|
370
|
-
"name": "getInitialOwner",
|
371
|
-
"outputs": [
|
391
|
+
"internalType": "NftId",
|
392
|
+
"name": "distributionNftId",
|
393
|
+
"type": "uint96"
|
394
|
+
},
|
372
395
|
{
|
373
|
-
"
|
374
|
-
|
375
|
-
|
396
|
+
"components": [
|
397
|
+
{
|
398
|
+
"internalType": "NftId",
|
399
|
+
"name": "productNftId",
|
400
|
+
"type": "uint96"
|
401
|
+
},
|
402
|
+
{
|
403
|
+
"internalType": "contract TokenHandler",
|
404
|
+
"name": "tokenHandler",
|
405
|
+
"type": "address"
|
406
|
+
},
|
407
|
+
{
|
408
|
+
"components": [
|
409
|
+
{
|
410
|
+
"internalType": "UFixed",
|
411
|
+
"name": "fractionalFee",
|
412
|
+
"type": "uint256"
|
413
|
+
},
|
414
|
+
{
|
415
|
+
"internalType": "uint256",
|
416
|
+
"name": "fixedFee",
|
417
|
+
"type": "uint256"
|
418
|
+
}
|
419
|
+
],
|
420
|
+
"internalType": "struct Fee",
|
421
|
+
"name": "distributionFee",
|
422
|
+
"type": "tuple"
|
423
|
+
},
|
424
|
+
{
|
425
|
+
"internalType": "address",
|
426
|
+
"name": "wallet",
|
427
|
+
"type": "address"
|
428
|
+
}
|
429
|
+
],
|
430
|
+
"internalType": "struct ISetup.DistributionSetupInfo",
|
431
|
+
"name": "setup",
|
432
|
+
"type": "tuple"
|
376
433
|
}
|
377
434
|
],
|
378
|
-
"
|
435
|
+
"name": "createDistributionSetup",
|
436
|
+
"outputs": [],
|
437
|
+
"stateMutability": "nonpayable",
|
379
438
|
"type": "function"
|
380
439
|
},
|
381
440
|
{
|
382
|
-
"inputs": [
|
383
|
-
"name": "getNftId",
|
384
|
-
"outputs": [
|
441
|
+
"inputs": [
|
385
442
|
{
|
386
443
|
"internalType": "NftId",
|
387
444
|
"name": "nftId",
|
388
445
|
"type": "uint96"
|
389
|
-
}
|
390
|
-
],
|
391
|
-
"stateMutability": "view",
|
392
|
-
"type": "function"
|
393
|
-
},
|
394
|
-
{
|
395
|
-
"inputs": [],
|
396
|
-
"name": "getOwner",
|
397
|
-
"outputs": [
|
446
|
+
},
|
398
447
|
{
|
399
|
-
"
|
400
|
-
|
401
|
-
|
448
|
+
"components": [
|
449
|
+
{
|
450
|
+
"internalType": "DistributorType",
|
451
|
+
"name": "distributorType",
|
452
|
+
"type": "bytes8"
|
453
|
+
},
|
454
|
+
{
|
455
|
+
"internalType": "bool",
|
456
|
+
"name": "active",
|
457
|
+
"type": "bool"
|
458
|
+
},
|
459
|
+
{
|
460
|
+
"internalType": "bytes",
|
461
|
+
"name": "data",
|
462
|
+
"type": "bytes"
|
463
|
+
}
|
464
|
+
],
|
465
|
+
"internalType": "struct IDistribution.DistributorInfo",
|
466
|
+
"name": "info",
|
467
|
+
"type": "tuple"
|
402
468
|
}
|
403
469
|
],
|
404
|
-
"
|
470
|
+
"name": "createDistributor",
|
471
|
+
"outputs": [],
|
472
|
+
"stateMutability": "nonpayable",
|
405
473
|
"type": "function"
|
406
474
|
},
|
407
475
|
{
|
408
|
-
"inputs": [
|
409
|
-
"name": "getParentNftId",
|
410
|
-
"outputs": [
|
476
|
+
"inputs": [
|
411
477
|
{
|
412
|
-
"internalType": "
|
413
|
-
"name": "
|
414
|
-
"type": "
|
478
|
+
"internalType": "Key32",
|
479
|
+
"name": "distributorKey",
|
480
|
+
"type": "bytes32"
|
481
|
+
},
|
482
|
+
{
|
483
|
+
"components": [
|
484
|
+
{
|
485
|
+
"internalType": "string",
|
486
|
+
"name": "name",
|
487
|
+
"type": "string"
|
488
|
+
},
|
489
|
+
{
|
490
|
+
"internalType": "UFixed",
|
491
|
+
"name": "minDiscountPercentage",
|
492
|
+
"type": "uint256"
|
493
|
+
},
|
494
|
+
{
|
495
|
+
"internalType": "UFixed",
|
496
|
+
"name": "maxDiscountPercentage",
|
497
|
+
"type": "uint256"
|
498
|
+
},
|
499
|
+
{
|
500
|
+
"internalType": "UFixed",
|
501
|
+
"name": "commissionPercentage",
|
502
|
+
"type": "uint256"
|
503
|
+
},
|
504
|
+
{
|
505
|
+
"internalType": "uint32",
|
506
|
+
"name": "maxReferralCount",
|
507
|
+
"type": "uint32"
|
508
|
+
},
|
509
|
+
{
|
510
|
+
"internalType": "uint32",
|
511
|
+
"name": "maxReferralLifetime",
|
512
|
+
"type": "uint32"
|
513
|
+
},
|
514
|
+
{
|
515
|
+
"internalType": "bool",
|
516
|
+
"name": "allowSelfReferrals",
|
517
|
+
"type": "bool"
|
518
|
+
},
|
519
|
+
{
|
520
|
+
"internalType": "bool",
|
521
|
+
"name": "allowRenewals",
|
522
|
+
"type": "bool"
|
523
|
+
},
|
524
|
+
{
|
525
|
+
"internalType": "bytes",
|
526
|
+
"name": "data",
|
527
|
+
"type": "bytes"
|
528
|
+
}
|
529
|
+
],
|
530
|
+
"internalType": "struct IDistribution.DistributorTypeInfo",
|
531
|
+
"name": "info",
|
532
|
+
"type": "tuple"
|
415
533
|
}
|
416
534
|
],
|
417
|
-
"
|
535
|
+
"name": "createDistributorType",
|
536
|
+
"outputs": [],
|
537
|
+
"stateMutability": "nonpayable",
|
418
538
|
"type": "function"
|
419
539
|
},
|
420
540
|
{
|
421
541
|
"inputs": [
|
422
542
|
{
|
423
543
|
"internalType": "NftId",
|
424
|
-
"name": "
|
544
|
+
"name": "policyNftId",
|
425
545
|
"type": "uint96"
|
426
|
-
}
|
427
|
-
],
|
428
|
-
"name": "getPolicyInfo",
|
429
|
-
"outputs": [
|
546
|
+
},
|
430
547
|
{
|
431
548
|
"components": [
|
432
549
|
{
|
433
550
|
"internalType": "NftId",
|
434
|
-
"name": "
|
551
|
+
"name": "productNftId",
|
435
552
|
"type": "uint96"
|
436
553
|
},
|
437
554
|
{
|
438
|
-
"internalType": "
|
439
|
-
"name": "
|
440
|
-
"type": "
|
555
|
+
"internalType": "NftId",
|
556
|
+
"name": "bundleNftId",
|
557
|
+
"type": "uint96"
|
558
|
+
},
|
559
|
+
{
|
560
|
+
"internalType": "ReferralId",
|
561
|
+
"name": "referralId",
|
562
|
+
"type": "bytes8"
|
563
|
+
},
|
564
|
+
{
|
565
|
+
"internalType": "RiskId",
|
566
|
+
"name": "riskId",
|
567
|
+
"type": "bytes8"
|
441
568
|
},
|
442
569
|
{
|
443
570
|
"internalType": "uint256",
|
@@ -451,82 +578,174 @@
|
|
451
578
|
},
|
452
579
|
{
|
453
580
|
"internalType": "uint256",
|
454
|
-
"name": "
|
581
|
+
"name": "premiumPaidAmount",
|
455
582
|
"type": "uint256"
|
456
583
|
},
|
457
584
|
{
|
458
585
|
"internalType": "uint256",
|
459
|
-
"name": "
|
586
|
+
"name": "lifetime",
|
460
587
|
"type": "uint256"
|
461
588
|
},
|
589
|
+
{
|
590
|
+
"internalType": "bytes",
|
591
|
+
"name": "applicationData",
|
592
|
+
"type": "bytes"
|
593
|
+
},
|
594
|
+
{
|
595
|
+
"internalType": "bytes",
|
596
|
+
"name": "policyData",
|
597
|
+
"type": "bytes"
|
598
|
+
},
|
599
|
+
{
|
600
|
+
"internalType": "uint16",
|
601
|
+
"name": "claimsCount",
|
602
|
+
"type": "uint16"
|
603
|
+
},
|
604
|
+
{
|
605
|
+
"internalType": "uint16",
|
606
|
+
"name": "openClaimsCount",
|
607
|
+
"type": "uint16"
|
608
|
+
},
|
462
609
|
{
|
463
610
|
"internalType": "uint256",
|
464
|
-
"name": "
|
611
|
+
"name": "payoutAmount",
|
465
612
|
"type": "uint256"
|
466
613
|
},
|
467
614
|
{
|
468
|
-
"internalType": "
|
615
|
+
"internalType": "Timestamp",
|
616
|
+
"name": "activatedAt",
|
617
|
+
"type": "uint40"
|
618
|
+
},
|
619
|
+
{
|
620
|
+
"internalType": "Timestamp",
|
469
621
|
"name": "expiredAt",
|
470
|
-
"type": "
|
622
|
+
"type": "uint40"
|
471
623
|
},
|
472
624
|
{
|
473
|
-
"internalType": "
|
625
|
+
"internalType": "Timestamp",
|
474
626
|
"name": "closedAt",
|
475
|
-
"type": "
|
627
|
+
"type": "uint40"
|
476
628
|
}
|
477
629
|
],
|
478
630
|
"internalType": "struct IPolicy.PolicyInfo",
|
479
|
-
"name": "
|
631
|
+
"name": "policy",
|
480
632
|
"type": "tuple"
|
481
633
|
}
|
482
634
|
],
|
483
|
-
"
|
635
|
+
"name": "createPolicy",
|
636
|
+
"outputs": [],
|
637
|
+
"stateMutability": "nonpayable",
|
484
638
|
"type": "function"
|
485
639
|
},
|
486
640
|
{
|
487
641
|
"inputs": [
|
488
642
|
{
|
489
643
|
"internalType": "NftId",
|
490
|
-
"name": "
|
644
|
+
"name": "poolNftId",
|
491
645
|
"type": "uint96"
|
492
|
-
}
|
493
|
-
],
|
494
|
-
"name": "getPoolInfo",
|
495
|
-
"outputs": [
|
646
|
+
},
|
496
647
|
{
|
497
648
|
"components": [
|
498
649
|
{
|
499
650
|
"internalType": "NftId",
|
500
|
-
"name": "
|
651
|
+
"name": "productNftId",
|
501
652
|
"type": "uint96"
|
502
653
|
},
|
503
654
|
{
|
504
|
-
"internalType": "
|
505
|
-
"name": "
|
655
|
+
"internalType": "contract TokenHandler",
|
656
|
+
"name": "tokenHandler",
|
506
657
|
"type": "address"
|
507
658
|
},
|
508
659
|
{
|
509
|
-
"internalType": "
|
510
|
-
"name": "
|
511
|
-
"type": "
|
660
|
+
"internalType": "bool",
|
661
|
+
"name": "isInterceptingBundleTransfers",
|
662
|
+
"type": "bool"
|
512
663
|
},
|
513
664
|
{
|
514
|
-
"internalType": "
|
515
|
-
"name": "
|
665
|
+
"internalType": "bool",
|
666
|
+
"name": "isExternallyManaged",
|
667
|
+
"type": "bool"
|
668
|
+
},
|
669
|
+
{
|
670
|
+
"internalType": "bool",
|
671
|
+
"name": "isVerifyingApplications",
|
672
|
+
"type": "bool"
|
673
|
+
},
|
674
|
+
{
|
675
|
+
"internalType": "UFixed",
|
676
|
+
"name": "collateralizationLevel",
|
516
677
|
"type": "uint256"
|
517
678
|
},
|
518
679
|
{
|
519
|
-
"internalType": "
|
520
|
-
"name": "
|
680
|
+
"internalType": "UFixed",
|
681
|
+
"name": "retentionLevel",
|
521
682
|
"type": "uint256"
|
683
|
+
},
|
684
|
+
{
|
685
|
+
"components": [
|
686
|
+
{
|
687
|
+
"internalType": "UFixed",
|
688
|
+
"name": "fractionalFee",
|
689
|
+
"type": "uint256"
|
690
|
+
},
|
691
|
+
{
|
692
|
+
"internalType": "uint256",
|
693
|
+
"name": "fixedFee",
|
694
|
+
"type": "uint256"
|
695
|
+
}
|
696
|
+
],
|
697
|
+
"internalType": "struct Fee",
|
698
|
+
"name": "poolFee",
|
699
|
+
"type": "tuple"
|
700
|
+
},
|
701
|
+
{
|
702
|
+
"components": [
|
703
|
+
{
|
704
|
+
"internalType": "UFixed",
|
705
|
+
"name": "fractionalFee",
|
706
|
+
"type": "uint256"
|
707
|
+
},
|
708
|
+
{
|
709
|
+
"internalType": "uint256",
|
710
|
+
"name": "fixedFee",
|
711
|
+
"type": "uint256"
|
712
|
+
}
|
713
|
+
],
|
714
|
+
"internalType": "struct Fee",
|
715
|
+
"name": "stakingFee",
|
716
|
+
"type": "tuple"
|
717
|
+
},
|
718
|
+
{
|
719
|
+
"components": [
|
720
|
+
{
|
721
|
+
"internalType": "UFixed",
|
722
|
+
"name": "fractionalFee",
|
723
|
+
"type": "uint256"
|
724
|
+
},
|
725
|
+
{
|
726
|
+
"internalType": "uint256",
|
727
|
+
"name": "fixedFee",
|
728
|
+
"type": "uint256"
|
729
|
+
}
|
730
|
+
],
|
731
|
+
"internalType": "struct Fee",
|
732
|
+
"name": "performanceFee",
|
733
|
+
"type": "tuple"
|
734
|
+
},
|
735
|
+
{
|
736
|
+
"internalType": "address",
|
737
|
+
"name": "wallet",
|
738
|
+
"type": "address"
|
522
739
|
}
|
523
740
|
],
|
524
|
-
"internalType": "struct
|
525
|
-
"name": "
|
741
|
+
"internalType": "struct ISetup.PoolSetupInfo",
|
742
|
+
"name": "setup",
|
526
743
|
"type": "tuple"
|
527
744
|
}
|
528
745
|
],
|
529
|
-
"
|
746
|
+
"name": "createPoolSetup",
|
747
|
+
"outputs": [],
|
748
|
+
"stateMutability": "nonpayable",
|
530
749
|
"type": "function"
|
531
750
|
},
|
532
751
|
{
|
@@ -535,126 +754,308 @@
|
|
535
754
|
"internalType": "NftId",
|
536
755
|
"name": "productNftId",
|
537
756
|
"type": "uint96"
|
538
|
-
}
|
539
|
-
],
|
540
|
-
"name": "getPoolNftId",
|
541
|
-
"outputs": [
|
757
|
+
},
|
542
758
|
{
|
543
|
-
"
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
759
|
+
"components": [
|
760
|
+
{
|
761
|
+
"internalType": "contract IERC20Metadata",
|
762
|
+
"name": "token",
|
763
|
+
"type": "address"
|
764
|
+
},
|
765
|
+
{
|
766
|
+
"internalType": "contract TokenHandler",
|
767
|
+
"name": "tokenHandler",
|
768
|
+
"type": "address"
|
769
|
+
},
|
770
|
+
{
|
771
|
+
"internalType": "NftId",
|
772
|
+
"name": "distributionNftId",
|
773
|
+
"type": "uint96"
|
774
|
+
},
|
775
|
+
{
|
776
|
+
"internalType": "NftId",
|
777
|
+
"name": "poolNftId",
|
778
|
+
"type": "uint96"
|
779
|
+
},
|
780
|
+
{
|
781
|
+
"components": [
|
782
|
+
{
|
783
|
+
"internalType": "UFixed",
|
784
|
+
"name": "fractionalFee",
|
785
|
+
"type": "uint256"
|
786
|
+
},
|
787
|
+
{
|
788
|
+
"internalType": "uint256",
|
789
|
+
"name": "fixedFee",
|
790
|
+
"type": "uint256"
|
791
|
+
}
|
792
|
+
],
|
793
|
+
"internalType": "struct Fee",
|
794
|
+
"name": "distributionFee",
|
795
|
+
"type": "tuple"
|
796
|
+
},
|
797
|
+
{
|
798
|
+
"components": [
|
799
|
+
{
|
800
|
+
"internalType": "UFixed",
|
801
|
+
"name": "fractionalFee",
|
802
|
+
"type": "uint256"
|
803
|
+
},
|
804
|
+
{
|
805
|
+
"internalType": "uint256",
|
806
|
+
"name": "fixedFee",
|
807
|
+
"type": "uint256"
|
808
|
+
}
|
809
|
+
],
|
810
|
+
"internalType": "struct Fee",
|
811
|
+
"name": "productFee",
|
812
|
+
"type": "tuple"
|
813
|
+
},
|
814
|
+
{
|
815
|
+
"components": [
|
816
|
+
{
|
817
|
+
"internalType": "UFixed",
|
818
|
+
"name": "fractionalFee",
|
819
|
+
"type": "uint256"
|
820
|
+
},
|
821
|
+
{
|
822
|
+
"internalType": "uint256",
|
823
|
+
"name": "fixedFee",
|
824
|
+
"type": "uint256"
|
825
|
+
}
|
826
|
+
],
|
827
|
+
"internalType": "struct Fee",
|
828
|
+
"name": "processingFee",
|
829
|
+
"type": "tuple"
|
830
|
+
},
|
831
|
+
{
|
832
|
+
"components": [
|
833
|
+
{
|
834
|
+
"internalType": "UFixed",
|
835
|
+
"name": "fractionalFee",
|
836
|
+
"type": "uint256"
|
837
|
+
},
|
838
|
+
{
|
839
|
+
"internalType": "uint256",
|
840
|
+
"name": "fixedFee",
|
841
|
+
"type": "uint256"
|
842
|
+
}
|
843
|
+
],
|
844
|
+
"internalType": "struct Fee",
|
845
|
+
"name": "poolFee",
|
846
|
+
"type": "tuple"
|
847
|
+
},
|
848
|
+
{
|
849
|
+
"components": [
|
850
|
+
{
|
851
|
+
"internalType": "UFixed",
|
852
|
+
"name": "fractionalFee",
|
853
|
+
"type": "uint256"
|
854
|
+
},
|
855
|
+
{
|
856
|
+
"internalType": "uint256",
|
857
|
+
"name": "fixedFee",
|
858
|
+
"type": "uint256"
|
859
|
+
}
|
860
|
+
],
|
861
|
+
"internalType": "struct Fee",
|
862
|
+
"name": "stakingFee",
|
863
|
+
"type": "tuple"
|
864
|
+
},
|
865
|
+
{
|
866
|
+
"components": [
|
867
|
+
{
|
868
|
+
"internalType": "UFixed",
|
869
|
+
"name": "fractionalFee",
|
870
|
+
"type": "uint256"
|
871
|
+
},
|
872
|
+
{
|
873
|
+
"internalType": "uint256",
|
874
|
+
"name": "fixedFee",
|
875
|
+
"type": "uint256"
|
876
|
+
}
|
877
|
+
],
|
878
|
+
"internalType": "struct Fee",
|
879
|
+
"name": "performanceFee",
|
880
|
+
"type": "tuple"
|
881
|
+
},
|
882
|
+
{
|
883
|
+
"internalType": "bool",
|
884
|
+
"name": "isIntercepting",
|
885
|
+
"type": "bool"
|
886
|
+
},
|
887
|
+
{
|
888
|
+
"internalType": "address",
|
889
|
+
"name": "wallet",
|
890
|
+
"type": "address"
|
891
|
+
}
|
892
|
+
],
|
893
|
+
"internalType": "struct ISetup.ProductSetupInfo",
|
894
|
+
"name": "setup",
|
895
|
+
"type": "tuple"
|
572
896
|
}
|
573
897
|
],
|
574
|
-
"
|
898
|
+
"name": "createProductSetup",
|
899
|
+
"outputs": [],
|
900
|
+
"stateMutability": "nonpayable",
|
575
901
|
"type": "function"
|
576
902
|
},
|
577
903
|
{
|
578
904
|
"inputs": [
|
579
905
|
{
|
580
|
-
"internalType": "
|
581
|
-
"name": "
|
582
|
-
"type": "uint256"
|
583
|
-
}
|
584
|
-
],
|
585
|
-
"name": "getRole",
|
586
|
-
"outputs": [
|
587
|
-
{
|
588
|
-
"internalType": "bytes32",
|
589
|
-
"name": "role",
|
906
|
+
"internalType": "Key32",
|
907
|
+
"name": "referralKey",
|
590
908
|
"type": "bytes32"
|
909
|
+
},
|
910
|
+
{
|
911
|
+
"components": [
|
912
|
+
{
|
913
|
+
"internalType": "NftId",
|
914
|
+
"name": "distributorNftId",
|
915
|
+
"type": "uint96"
|
916
|
+
},
|
917
|
+
{
|
918
|
+
"internalType": "string",
|
919
|
+
"name": "referralCode",
|
920
|
+
"type": "string"
|
921
|
+
},
|
922
|
+
{
|
923
|
+
"internalType": "UFixed",
|
924
|
+
"name": "discountPercentage",
|
925
|
+
"type": "uint256"
|
926
|
+
},
|
927
|
+
{
|
928
|
+
"internalType": "uint32",
|
929
|
+
"name": "maxReferrals",
|
930
|
+
"type": "uint32"
|
931
|
+
},
|
932
|
+
{
|
933
|
+
"internalType": "uint32",
|
934
|
+
"name": "usedReferrals",
|
935
|
+
"type": "uint32"
|
936
|
+
},
|
937
|
+
{
|
938
|
+
"internalType": "Timestamp",
|
939
|
+
"name": "expiryAt",
|
940
|
+
"type": "uint40"
|
941
|
+
},
|
942
|
+
{
|
943
|
+
"internalType": "bytes",
|
944
|
+
"name": "data",
|
945
|
+
"type": "bytes"
|
946
|
+
}
|
947
|
+
],
|
948
|
+
"internalType": "struct IDistribution.ReferralInfo",
|
949
|
+
"name": "referralInfo",
|
950
|
+
"type": "tuple"
|
591
951
|
}
|
592
952
|
],
|
593
|
-
"
|
953
|
+
"name": "createReferral",
|
954
|
+
"outputs": [],
|
955
|
+
"stateMutability": "nonpayable",
|
594
956
|
"type": "function"
|
595
957
|
},
|
596
958
|
{
|
597
|
-
"inputs": [
|
598
|
-
"name": "getRoleCount",
|
599
|
-
"outputs": [
|
959
|
+
"inputs": [
|
600
960
|
{
|
601
|
-
"internalType": "
|
602
|
-
"name": "
|
603
|
-
"type": "
|
961
|
+
"internalType": "RiskId",
|
962
|
+
"name": "riskId",
|
963
|
+
"type": "bytes8"
|
964
|
+
},
|
965
|
+
{
|
966
|
+
"components": [
|
967
|
+
{
|
968
|
+
"internalType": "NftId",
|
969
|
+
"name": "productNftId",
|
970
|
+
"type": "uint96"
|
971
|
+
},
|
972
|
+
{
|
973
|
+
"internalType": "bytes",
|
974
|
+
"name": "data",
|
975
|
+
"type": "bytes"
|
976
|
+
}
|
977
|
+
],
|
978
|
+
"internalType": "struct IRisk.RiskInfo",
|
979
|
+
"name": "risk",
|
980
|
+
"type": "tuple"
|
604
981
|
}
|
605
982
|
],
|
606
|
-
"
|
983
|
+
"name": "createRisk",
|
984
|
+
"outputs": [],
|
985
|
+
"stateMutability": "nonpayable",
|
607
986
|
"type": "function"
|
608
987
|
},
|
609
988
|
{
|
610
989
|
"inputs": [
|
611
990
|
{
|
612
|
-
"internalType": "
|
613
|
-
"name": "
|
614
|
-
"type": "
|
991
|
+
"internalType": "Key32",
|
992
|
+
"name": "key",
|
993
|
+
"type": "bytes32"
|
615
994
|
}
|
616
995
|
],
|
617
|
-
"name": "
|
996
|
+
"name": "exists",
|
618
997
|
"outputs": [
|
619
998
|
{
|
620
|
-
"internalType": "
|
621
|
-
"name": "
|
622
|
-
"type": "
|
999
|
+
"internalType": "bool",
|
1000
|
+
"name": "",
|
1001
|
+
"type": "bool"
|
623
1002
|
}
|
624
1003
|
],
|
625
|
-
"stateMutability": "
|
1004
|
+
"stateMutability": "view",
|
626
1005
|
"type": "function"
|
627
1006
|
},
|
628
1007
|
{
|
629
1008
|
"inputs": [
|
630
1009
|
{
|
631
|
-
"internalType": "
|
632
|
-
"name": "
|
1010
|
+
"internalType": "Key32",
|
1011
|
+
"name": "key",
|
633
1012
|
"type": "bytes32"
|
634
1013
|
}
|
635
1014
|
],
|
636
|
-
"name": "
|
1015
|
+
"name": "get",
|
637
1016
|
"outputs": [
|
638
1017
|
{
|
639
1018
|
"components": [
|
640
1019
|
{
|
641
|
-
"
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
1020
|
+
"components": [
|
1021
|
+
{
|
1022
|
+
"internalType": "ObjectType",
|
1023
|
+
"name": "objectType",
|
1024
|
+
"type": "uint8"
|
1025
|
+
},
|
1026
|
+
{
|
1027
|
+
"internalType": "StateId",
|
1028
|
+
"name": "state",
|
1029
|
+
"type": "uint8"
|
1030
|
+
},
|
1031
|
+
{
|
1032
|
+
"internalType": "address",
|
1033
|
+
"name": "updatedBy",
|
1034
|
+
"type": "address"
|
1035
|
+
},
|
1036
|
+
{
|
1037
|
+
"internalType": "Blocknumber",
|
1038
|
+
"name": "updatedIn",
|
1039
|
+
"type": "uint32"
|
1040
|
+
},
|
1041
|
+
{
|
1042
|
+
"internalType": "Blocknumber",
|
1043
|
+
"name": "createdIn",
|
1044
|
+
"type": "uint32"
|
1045
|
+
}
|
1046
|
+
],
|
1047
|
+
"internalType": "struct IKeyValueStore.Metadata",
|
1048
|
+
"name": "metadata",
|
1049
|
+
"type": "tuple"
|
649
1050
|
},
|
650
1051
|
{
|
651
|
-
"internalType": "
|
652
|
-
"name": "
|
653
|
-
"type": "
|
1052
|
+
"internalType": "bytes",
|
1053
|
+
"name": "data",
|
1054
|
+
"type": "bytes"
|
654
1055
|
}
|
655
1056
|
],
|
656
|
-
"internalType": "struct
|
657
|
-
"name": "
|
1057
|
+
"internalType": "struct IKeyValueStore.Value",
|
1058
|
+
"name": "value",
|
658
1059
|
"type": "tuple"
|
659
1060
|
}
|
660
1061
|
],
|
@@ -662,23 +1063,25 @@
|
|
662
1063
|
"type": "function"
|
663
1064
|
},
|
664
1065
|
{
|
665
|
-
"inputs": [
|
666
|
-
|
667
|
-
|
668
|
-
"name": "role",
|
669
|
-
"type": "bytes32"
|
670
|
-
},
|
1066
|
+
"inputs": [],
|
1067
|
+
"name": "getBundleManager",
|
1068
|
+
"outputs": [
|
671
1069
|
{
|
672
|
-
"internalType": "
|
673
|
-
"name": "
|
674
|
-
"type": "
|
1070
|
+
"internalType": "contract BundleManager",
|
1071
|
+
"name": "",
|
1072
|
+
"type": "address"
|
675
1073
|
}
|
676
1074
|
],
|
677
|
-
"
|
1075
|
+
"stateMutability": "view",
|
1076
|
+
"type": "function"
|
1077
|
+
},
|
1078
|
+
{
|
1079
|
+
"inputs": [],
|
1080
|
+
"name": "getBundleService",
|
678
1081
|
"outputs": [
|
679
1082
|
{
|
680
|
-
"internalType": "
|
681
|
-
"name": "
|
1083
|
+
"internalType": "contract IBundleService",
|
1084
|
+
"name": "",
|
682
1085
|
"type": "address"
|
683
1086
|
}
|
684
1087
|
],
|
@@ -688,17 +1091,17 @@
|
|
688
1091
|
{
|
689
1092
|
"inputs": [
|
690
1093
|
{
|
691
|
-
"internalType": "
|
692
|
-
"name": "
|
1094
|
+
"internalType": "Key32",
|
1095
|
+
"name": "key",
|
693
1096
|
"type": "bytes32"
|
694
1097
|
}
|
695
1098
|
],
|
696
|
-
"name": "
|
1099
|
+
"name": "getData",
|
697
1100
|
"outputs": [
|
698
1101
|
{
|
699
|
-
"internalType": "
|
700
|
-
"name": "
|
701
|
-
"type": "
|
1102
|
+
"internalType": "bytes",
|
1103
|
+
"name": "data",
|
1104
|
+
"type": "bytes"
|
702
1105
|
}
|
703
1106
|
],
|
704
1107
|
"stateMutability": "view",
|
@@ -706,54 +1109,81 @@
|
|
706
1109
|
},
|
707
1110
|
{
|
708
1111
|
"inputs": [],
|
709
|
-
"name": "
|
1112
|
+
"name": "getDistributionService",
|
710
1113
|
"outputs": [
|
711
1114
|
{
|
712
|
-
"internalType": "
|
713
|
-
"name": "
|
714
|
-
"type": "
|
1115
|
+
"internalType": "contract IDistributionService",
|
1116
|
+
"name": "",
|
1117
|
+
"type": "address"
|
715
1118
|
}
|
716
1119
|
],
|
717
1120
|
"stateMutability": "view",
|
718
1121
|
"type": "function"
|
719
1122
|
},
|
720
1123
|
{
|
721
|
-
"inputs": [
|
722
|
-
|
723
|
-
|
724
|
-
"name": "role",
|
725
|
-
"type": "bytes32"
|
726
|
-
},
|
1124
|
+
"inputs": [],
|
1125
|
+
"name": "getInitialInfo",
|
1126
|
+
"outputs": [
|
727
1127
|
{
|
728
|
-
"
|
729
|
-
|
730
|
-
|
1128
|
+
"components": [
|
1129
|
+
{
|
1130
|
+
"internalType": "NftId",
|
1131
|
+
"name": "nftId",
|
1132
|
+
"type": "uint96"
|
1133
|
+
},
|
1134
|
+
{
|
1135
|
+
"internalType": "NftId",
|
1136
|
+
"name": "parentNftId",
|
1137
|
+
"type": "uint96"
|
1138
|
+
},
|
1139
|
+
{
|
1140
|
+
"internalType": "ObjectType",
|
1141
|
+
"name": "objectType",
|
1142
|
+
"type": "uint8"
|
1143
|
+
},
|
1144
|
+
{
|
1145
|
+
"internalType": "bool",
|
1146
|
+
"name": "isInterceptor",
|
1147
|
+
"type": "bool"
|
1148
|
+
},
|
1149
|
+
{
|
1150
|
+
"internalType": "address",
|
1151
|
+
"name": "objectAddress",
|
1152
|
+
"type": "address"
|
1153
|
+
},
|
1154
|
+
{
|
1155
|
+
"internalType": "address",
|
1156
|
+
"name": "initialOwner",
|
1157
|
+
"type": "address"
|
1158
|
+
},
|
1159
|
+
{
|
1160
|
+
"internalType": "bytes",
|
1161
|
+
"name": "data",
|
1162
|
+
"type": "bytes"
|
1163
|
+
}
|
1164
|
+
],
|
1165
|
+
"internalType": "struct IRegistry.ObjectInfo",
|
1166
|
+
"name": "",
|
1167
|
+
"type": "tuple"
|
731
1168
|
}
|
732
1169
|
],
|
733
|
-
"
|
734
|
-
"outputs": [],
|
735
|
-
"stateMutability": "nonpayable",
|
1170
|
+
"stateMutability": "view",
|
736
1171
|
"type": "function"
|
737
1172
|
},
|
738
1173
|
{
|
739
1174
|
"inputs": [
|
740
1175
|
{
|
741
|
-
"internalType": "
|
742
|
-
"name": "
|
743
|
-
"type": "
|
744
|
-
},
|
745
|
-
{
|
746
|
-
"internalType": "address",
|
747
|
-
"name": "member",
|
748
|
-
"type": "address"
|
1176
|
+
"internalType": "ObjectType",
|
1177
|
+
"name": "objectType",
|
1178
|
+
"type": "uint8"
|
749
1179
|
}
|
750
1180
|
],
|
751
|
-
"name": "
|
1181
|
+
"name": "getInitialState",
|
752
1182
|
"outputs": [
|
753
1183
|
{
|
754
|
-
"internalType": "
|
1184
|
+
"internalType": "StateId",
|
755
1185
|
"name": "",
|
756
|
-
"type": "
|
1186
|
+
"type": "uint8"
|
757
1187
|
}
|
758
1188
|
],
|
759
1189
|
"stateMutability": "view",
|
@@ -761,108 +1191,407 @@
|
|
761
1191
|
},
|
762
1192
|
{
|
763
1193
|
"inputs": [],
|
764
|
-
"name": "
|
1194
|
+
"name": "getInstanceReader",
|
765
1195
|
"outputs": [
|
766
1196
|
{
|
767
|
-
"internalType": "
|
1197
|
+
"internalType": "contract InstanceReader",
|
768
1198
|
"name": "",
|
769
|
-
"type": "
|
1199
|
+
"type": "address"
|
770
1200
|
}
|
771
1201
|
],
|
772
|
-
"stateMutability": "
|
1202
|
+
"stateMutability": "view",
|
773
1203
|
"type": "function"
|
774
1204
|
},
|
775
1205
|
{
|
776
1206
|
"inputs": [],
|
777
|
-
"name": "
|
1207
|
+
"name": "getMajorVersion",
|
778
1208
|
"outputs": [
|
779
1209
|
{
|
780
|
-
"internalType": "
|
781
|
-
"name": "",
|
782
|
-
"type": "
|
1210
|
+
"internalType": "VersionPart",
|
1211
|
+
"name": "majorVersion",
|
1212
|
+
"type": "uint8"
|
783
1213
|
}
|
784
1214
|
],
|
785
|
-
"stateMutability": "
|
1215
|
+
"stateMutability": "pure",
|
786
1216
|
"type": "function"
|
787
1217
|
},
|
788
1218
|
{
|
789
|
-
"inputs": [
|
790
|
-
|
1219
|
+
"inputs": [
|
1220
|
+
{
|
1221
|
+
"internalType": "Key32",
|
1222
|
+
"name": "key",
|
1223
|
+
"type": "bytes32"
|
1224
|
+
}
|
1225
|
+
],
|
1226
|
+
"name": "getMetadata",
|
791
1227
|
"outputs": [
|
792
1228
|
{
|
793
|
-
"
|
794
|
-
|
795
|
-
|
1229
|
+
"components": [
|
1230
|
+
{
|
1231
|
+
"internalType": "ObjectType",
|
1232
|
+
"name": "objectType",
|
1233
|
+
"type": "uint8"
|
1234
|
+
},
|
1235
|
+
{
|
1236
|
+
"internalType": "StateId",
|
1237
|
+
"name": "state",
|
1238
|
+
"type": "uint8"
|
1239
|
+
},
|
1240
|
+
{
|
1241
|
+
"internalType": "address",
|
1242
|
+
"name": "updatedBy",
|
1243
|
+
"type": "address"
|
1244
|
+
},
|
1245
|
+
{
|
1246
|
+
"internalType": "Blocknumber",
|
1247
|
+
"name": "updatedIn",
|
1248
|
+
"type": "uint32"
|
1249
|
+
},
|
1250
|
+
{
|
1251
|
+
"internalType": "Blocknumber",
|
1252
|
+
"name": "createdIn",
|
1253
|
+
"type": "uint32"
|
1254
|
+
}
|
1255
|
+
],
|
1256
|
+
"internalType": "struct IKeyValueStore.Metadata",
|
1257
|
+
"name": "metadata",
|
1258
|
+
"type": "tuple"
|
796
1259
|
}
|
797
1260
|
],
|
798
|
-
"stateMutability": "
|
1261
|
+
"stateMutability": "view",
|
799
1262
|
"type": "function"
|
800
1263
|
},
|
801
1264
|
{
|
802
|
-
"inputs": [
|
803
|
-
|
804
|
-
"internalType": "contract IComponentContract",
|
805
|
-
"name": "component",
|
806
|
-
"type": "address"
|
807
|
-
}
|
808
|
-
],
|
809
|
-
"name": "registerComponent",
|
1265
|
+
"inputs": [],
|
1266
|
+
"name": "getNftId",
|
810
1267
|
"outputs": [
|
811
1268
|
{
|
812
1269
|
"internalType": "NftId",
|
813
|
-
"name": "
|
1270
|
+
"name": "",
|
814
1271
|
"type": "uint96"
|
815
1272
|
}
|
816
1273
|
],
|
817
|
-
"stateMutability": "
|
1274
|
+
"stateMutability": "view",
|
818
1275
|
"type": "function"
|
819
1276
|
},
|
820
1277
|
{
|
821
|
-
"inputs": [
|
1278
|
+
"inputs": [],
|
1279
|
+
"name": "getOwner",
|
1280
|
+
"outputs": [
|
822
1281
|
{
|
823
|
-
"internalType": "
|
824
|
-
"name": "
|
825
|
-
"type": "
|
1282
|
+
"internalType": "address",
|
1283
|
+
"name": "",
|
1284
|
+
"type": "address"
|
1285
|
+
}
|
1286
|
+
],
|
1287
|
+
"stateMutability": "view",
|
1288
|
+
"type": "function"
|
1289
|
+
},
|
1290
|
+
{
|
1291
|
+
"inputs": [],
|
1292
|
+
"name": "getPolicyService",
|
1293
|
+
"outputs": [
|
1294
|
+
{
|
1295
|
+
"internalType": "contract IPolicyService",
|
1296
|
+
"name": "",
|
1297
|
+
"type": "address"
|
1298
|
+
}
|
1299
|
+
],
|
1300
|
+
"stateMutability": "view",
|
1301
|
+
"type": "function"
|
1302
|
+
},
|
1303
|
+
{
|
1304
|
+
"inputs": [],
|
1305
|
+
"name": "getPoolService",
|
1306
|
+
"outputs": [
|
1307
|
+
{
|
1308
|
+
"internalType": "contract IPoolService",
|
1309
|
+
"name": "",
|
1310
|
+
"type": "address"
|
1311
|
+
}
|
1312
|
+
],
|
1313
|
+
"stateMutability": "view",
|
1314
|
+
"type": "function"
|
1315
|
+
},
|
1316
|
+
{
|
1317
|
+
"inputs": [],
|
1318
|
+
"name": "getProductService",
|
1319
|
+
"outputs": [
|
1320
|
+
{
|
1321
|
+
"internalType": "contract IProductService",
|
1322
|
+
"name": "",
|
1323
|
+
"type": "address"
|
1324
|
+
}
|
1325
|
+
],
|
1326
|
+
"stateMutability": "view",
|
1327
|
+
"type": "function"
|
1328
|
+
},
|
1329
|
+
{
|
1330
|
+
"inputs": [],
|
1331
|
+
"name": "getRegistry",
|
1332
|
+
"outputs": [
|
1333
|
+
{
|
1334
|
+
"internalType": "contract IRegistry",
|
1335
|
+
"name": "",
|
1336
|
+
"type": "address"
|
1337
|
+
}
|
1338
|
+
],
|
1339
|
+
"stateMutability": "view",
|
1340
|
+
"type": "function"
|
1341
|
+
},
|
1342
|
+
{
|
1343
|
+
"inputs": [],
|
1344
|
+
"name": "getRegistryAddress",
|
1345
|
+
"outputs": [
|
1346
|
+
{
|
1347
|
+
"internalType": "address",
|
1348
|
+
"name": "",
|
1349
|
+
"type": "address"
|
1350
|
+
}
|
1351
|
+
],
|
1352
|
+
"stateMutability": "view",
|
1353
|
+
"type": "function"
|
1354
|
+
},
|
1355
|
+
{
|
1356
|
+
"inputs": [
|
1357
|
+
{
|
1358
|
+
"internalType": "Key32",
|
1359
|
+
"name": "key",
|
1360
|
+
"type": "bytes32"
|
1361
|
+
}
|
1362
|
+
],
|
1363
|
+
"name": "getState",
|
1364
|
+
"outputs": [
|
1365
|
+
{
|
1366
|
+
"internalType": "StateId",
|
1367
|
+
"name": "state",
|
1368
|
+
"type": "uint8"
|
1369
|
+
}
|
1370
|
+
],
|
1371
|
+
"stateMutability": "view",
|
1372
|
+
"type": "function"
|
1373
|
+
},
|
1374
|
+
{
|
1375
|
+
"inputs": [
|
1376
|
+
{
|
1377
|
+
"internalType": "ObjectType",
|
1378
|
+
"name": "objectType",
|
1379
|
+
"type": "uint8"
|
1380
|
+
}
|
1381
|
+
],
|
1382
|
+
"name": "hasLifecycle",
|
1383
|
+
"outputs": [
|
1384
|
+
{
|
1385
|
+
"internalType": "bool",
|
1386
|
+
"name": "",
|
1387
|
+
"type": "bool"
|
1388
|
+
}
|
1389
|
+
],
|
1390
|
+
"stateMutability": "view",
|
1391
|
+
"type": "function"
|
1392
|
+
},
|
1393
|
+
{
|
1394
|
+
"inputs": [],
|
1395
|
+
"name": "isConsumingScheduledOp",
|
1396
|
+
"outputs": [
|
1397
|
+
{
|
1398
|
+
"internalType": "bytes4",
|
1399
|
+
"name": "",
|
1400
|
+
"type": "bytes4"
|
1401
|
+
}
|
1402
|
+
],
|
1403
|
+
"stateMutability": "view",
|
1404
|
+
"type": "function"
|
1405
|
+
},
|
1406
|
+
{
|
1407
|
+
"inputs": [
|
1408
|
+
{
|
1409
|
+
"internalType": "ObjectType",
|
1410
|
+
"name": "objectType",
|
1411
|
+
"type": "uint8"
|
1412
|
+
},
|
1413
|
+
{
|
1414
|
+
"internalType": "StateId",
|
1415
|
+
"name": "fromId",
|
1416
|
+
"type": "uint8"
|
826
1417
|
},
|
1418
|
+
{
|
1419
|
+
"internalType": "StateId",
|
1420
|
+
"name": "toId",
|
1421
|
+
"type": "uint8"
|
1422
|
+
}
|
1423
|
+
],
|
1424
|
+
"name": "isValidTransition",
|
1425
|
+
"outputs": [
|
1426
|
+
{
|
1427
|
+
"internalType": "bool",
|
1428
|
+
"name": "",
|
1429
|
+
"type": "bool"
|
1430
|
+
}
|
1431
|
+
],
|
1432
|
+
"stateMutability": "view",
|
1433
|
+
"type": "function"
|
1434
|
+
},
|
1435
|
+
{
|
1436
|
+
"inputs": [],
|
1437
|
+
"name": "linkToRegisteredNftId",
|
1438
|
+
"outputs": [],
|
1439
|
+
"stateMutability": "nonpayable",
|
1440
|
+
"type": "function"
|
1441
|
+
},
|
1442
|
+
{
|
1443
|
+
"inputs": [
|
827
1444
|
{
|
828
1445
|
"internalType": "address",
|
829
|
-
"name": "
|
1446
|
+
"name": "",
|
830
1447
|
"type": "address"
|
831
1448
|
}
|
832
1449
|
],
|
833
|
-
"name": "
|
1450
|
+
"name": "setAuthority",
|
834
1451
|
"outputs": [],
|
835
1452
|
"stateMutability": "nonpayable",
|
836
1453
|
"type": "function"
|
837
1454
|
},
|
838
1455
|
{
|
839
1456
|
"inputs": [
|
1457
|
+
{
|
1458
|
+
"internalType": "bytes4",
|
1459
|
+
"name": "interfaceId",
|
1460
|
+
"type": "bytes4"
|
1461
|
+
}
|
1462
|
+
],
|
1463
|
+
"name": "supportsInterface",
|
1464
|
+
"outputs": [
|
1465
|
+
{
|
1466
|
+
"internalType": "bool",
|
1467
|
+
"name": "",
|
1468
|
+
"type": "bool"
|
1469
|
+
}
|
1470
|
+
],
|
1471
|
+
"stateMutability": "view",
|
1472
|
+
"type": "function"
|
1473
|
+
},
|
1474
|
+
{
|
1475
|
+
"inputs": [
|
1476
|
+
{
|
1477
|
+
"internalType": "ObjectType",
|
1478
|
+
"name": "objectType",
|
1479
|
+
"type": "uint8"
|
1480
|
+
},
|
1481
|
+
{
|
1482
|
+
"internalType": "KeyId",
|
1483
|
+
"name": "id",
|
1484
|
+
"type": "bytes31"
|
1485
|
+
}
|
1486
|
+
],
|
1487
|
+
"name": "toKey32",
|
1488
|
+
"outputs": [
|
1489
|
+
{
|
1490
|
+
"internalType": "Key32",
|
1491
|
+
"name": "",
|
1492
|
+
"type": "bytes32"
|
1493
|
+
}
|
1494
|
+
],
|
1495
|
+
"stateMutability": "pure",
|
1496
|
+
"type": "function"
|
1497
|
+
},
|
1498
|
+
{
|
1499
|
+
"inputs": [
|
1500
|
+
{
|
1501
|
+
"internalType": "NftId",
|
1502
|
+
"name": "bundleNftId",
|
1503
|
+
"type": "uint96"
|
1504
|
+
},
|
840
1505
|
{
|
841
1506
|
"components": [
|
842
1507
|
{
|
843
1508
|
"internalType": "NftId",
|
844
|
-
"name": "
|
1509
|
+
"name": "poolNftId",
|
845
1510
|
"type": "uint96"
|
846
1511
|
},
|
847
1512
|
{
|
848
|
-
"
|
849
|
-
|
850
|
-
|
1513
|
+
"components": [
|
1514
|
+
{
|
1515
|
+
"internalType": "UFixed",
|
1516
|
+
"name": "fractionalFee",
|
1517
|
+
"type": "uint256"
|
1518
|
+
},
|
1519
|
+
{
|
1520
|
+
"internalType": "uint256",
|
1521
|
+
"name": "fixedFee",
|
1522
|
+
"type": "uint256"
|
1523
|
+
}
|
1524
|
+
],
|
1525
|
+
"internalType": "struct Fee",
|
1526
|
+
"name": "fee",
|
1527
|
+
"type": "tuple"
|
1528
|
+
},
|
1529
|
+
{
|
1530
|
+
"internalType": "bytes",
|
1531
|
+
"name": "filter",
|
1532
|
+
"type": "bytes"
|
1533
|
+
},
|
1534
|
+
{
|
1535
|
+
"internalType": "uint256",
|
1536
|
+
"name": "capitalAmount",
|
1537
|
+
"type": "uint256"
|
1538
|
+
},
|
1539
|
+
{
|
1540
|
+
"internalType": "uint256",
|
1541
|
+
"name": "lockedAmount",
|
1542
|
+
"type": "uint256"
|
1543
|
+
},
|
1544
|
+
{
|
1545
|
+
"internalType": "uint256",
|
1546
|
+
"name": "balanceAmount",
|
1547
|
+
"type": "uint256"
|
1548
|
+
},
|
1549
|
+
{
|
1550
|
+
"internalType": "uint256",
|
1551
|
+
"name": "lifetime",
|
1552
|
+
"type": "uint256"
|
1553
|
+
},
|
1554
|
+
{
|
1555
|
+
"internalType": "Timestamp",
|
1556
|
+
"name": "expiredAt",
|
1557
|
+
"type": "uint40"
|
1558
|
+
},
|
1559
|
+
{
|
1560
|
+
"internalType": "Timestamp",
|
1561
|
+
"name": "closedAt",
|
1562
|
+
"type": "uint40"
|
851
1563
|
}
|
852
1564
|
],
|
853
|
-
"internalType": "struct
|
854
|
-
"name": "
|
1565
|
+
"internalType": "struct IBundle.BundleInfo",
|
1566
|
+
"name": "bundle",
|
855
1567
|
"type": "tuple"
|
1568
|
+
},
|
1569
|
+
{
|
1570
|
+
"internalType": "StateId",
|
1571
|
+
"name": "newState",
|
1572
|
+
"type": "uint8"
|
856
1573
|
}
|
857
1574
|
],
|
858
|
-
"name": "
|
859
|
-
"outputs": [
|
1575
|
+
"name": "updateBundle",
|
1576
|
+
"outputs": [],
|
1577
|
+
"stateMutability": "nonpayable",
|
1578
|
+
"type": "function"
|
1579
|
+
},
|
1580
|
+
{
|
1581
|
+
"inputs": [
|
860
1582
|
{
|
861
1583
|
"internalType": "NftId",
|
862
|
-
"name": "
|
1584
|
+
"name": "bundleNftId",
|
863
1585
|
"type": "uint96"
|
1586
|
+
},
|
1587
|
+
{
|
1588
|
+
"internalType": "StateId",
|
1589
|
+
"name": "newState",
|
1590
|
+
"type": "uint8"
|
864
1591
|
}
|
865
1592
|
],
|
1593
|
+
"name": "updateBundleState",
|
1594
|
+
"outputs": [],
|
866
1595
|
"stateMutability": "nonpayable",
|
867
1596
|
"type": "function"
|
868
1597
|
},
|
@@ -870,16 +1599,782 @@
|
|
870
1599
|
"inputs": [
|
871
1600
|
{
|
872
1601
|
"internalType": "NftId",
|
873
|
-
"name": "
|
1602
|
+
"name": "distributionNftId",
|
874
1603
|
"type": "uint96"
|
875
1604
|
},
|
1605
|
+
{
|
1606
|
+
"components": [
|
1607
|
+
{
|
1608
|
+
"internalType": "NftId",
|
1609
|
+
"name": "productNftId",
|
1610
|
+
"type": "uint96"
|
1611
|
+
},
|
1612
|
+
{
|
1613
|
+
"internalType": "contract TokenHandler",
|
1614
|
+
"name": "tokenHandler",
|
1615
|
+
"type": "address"
|
1616
|
+
},
|
1617
|
+
{
|
1618
|
+
"components": [
|
1619
|
+
{
|
1620
|
+
"internalType": "UFixed",
|
1621
|
+
"name": "fractionalFee",
|
1622
|
+
"type": "uint256"
|
1623
|
+
},
|
1624
|
+
{
|
1625
|
+
"internalType": "uint256",
|
1626
|
+
"name": "fixedFee",
|
1627
|
+
"type": "uint256"
|
1628
|
+
}
|
1629
|
+
],
|
1630
|
+
"internalType": "struct Fee",
|
1631
|
+
"name": "distributionFee",
|
1632
|
+
"type": "tuple"
|
1633
|
+
},
|
1634
|
+
{
|
1635
|
+
"internalType": "address",
|
1636
|
+
"name": "wallet",
|
1637
|
+
"type": "address"
|
1638
|
+
}
|
1639
|
+
],
|
1640
|
+
"internalType": "struct ISetup.DistributionSetupInfo",
|
1641
|
+
"name": "setup",
|
1642
|
+
"type": "tuple"
|
1643
|
+
},
|
1644
|
+
{
|
1645
|
+
"internalType": "StateId",
|
1646
|
+
"name": "newState",
|
1647
|
+
"type": "uint8"
|
1648
|
+
}
|
1649
|
+
],
|
1650
|
+
"name": "updateDistributionSetup",
|
1651
|
+
"outputs": [],
|
1652
|
+
"stateMutability": "nonpayable",
|
1653
|
+
"type": "function"
|
1654
|
+
},
|
1655
|
+
{
|
1656
|
+
"inputs": [
|
876
1657
|
{
|
877
1658
|
"internalType": "NftId",
|
878
|
-
"name": "
|
1659
|
+
"name": "distributionNftId",
|
879
1660
|
"type": "uint96"
|
1661
|
+
},
|
1662
|
+
{
|
1663
|
+
"internalType": "StateId",
|
1664
|
+
"name": "newState",
|
1665
|
+
"type": "uint8"
|
1666
|
+
}
|
1667
|
+
],
|
1668
|
+
"name": "updateDistributionSetupState",
|
1669
|
+
"outputs": [],
|
1670
|
+
"stateMutability": "nonpayable",
|
1671
|
+
"type": "function"
|
1672
|
+
},
|
1673
|
+
{
|
1674
|
+
"inputs": [
|
1675
|
+
{
|
1676
|
+
"internalType": "NftId",
|
1677
|
+
"name": "nftId",
|
1678
|
+
"type": "uint96"
|
1679
|
+
},
|
1680
|
+
{
|
1681
|
+
"components": [
|
1682
|
+
{
|
1683
|
+
"internalType": "DistributorType",
|
1684
|
+
"name": "distributorType",
|
1685
|
+
"type": "bytes8"
|
1686
|
+
},
|
1687
|
+
{
|
1688
|
+
"internalType": "bool",
|
1689
|
+
"name": "active",
|
1690
|
+
"type": "bool"
|
1691
|
+
},
|
1692
|
+
{
|
1693
|
+
"internalType": "bytes",
|
1694
|
+
"name": "data",
|
1695
|
+
"type": "bytes"
|
1696
|
+
}
|
1697
|
+
],
|
1698
|
+
"internalType": "struct IDistribution.DistributorInfo",
|
1699
|
+
"name": "info",
|
1700
|
+
"type": "tuple"
|
1701
|
+
},
|
1702
|
+
{
|
1703
|
+
"internalType": "StateId",
|
1704
|
+
"name": "newState",
|
1705
|
+
"type": "uint8"
|
1706
|
+
}
|
1707
|
+
],
|
1708
|
+
"name": "updateDistributor",
|
1709
|
+
"outputs": [],
|
1710
|
+
"stateMutability": "nonpayable",
|
1711
|
+
"type": "function"
|
1712
|
+
},
|
1713
|
+
{
|
1714
|
+
"inputs": [
|
1715
|
+
{
|
1716
|
+
"internalType": "NftId",
|
1717
|
+
"name": "nftId",
|
1718
|
+
"type": "uint96"
|
1719
|
+
},
|
1720
|
+
{
|
1721
|
+
"internalType": "StateId",
|
1722
|
+
"name": "newState",
|
1723
|
+
"type": "uint8"
|
1724
|
+
}
|
1725
|
+
],
|
1726
|
+
"name": "updateDistributorState",
|
1727
|
+
"outputs": [],
|
1728
|
+
"stateMutability": "nonpayable",
|
1729
|
+
"type": "function"
|
1730
|
+
},
|
1731
|
+
{
|
1732
|
+
"inputs": [
|
1733
|
+
{
|
1734
|
+
"internalType": "Key32",
|
1735
|
+
"name": "distributorKey",
|
1736
|
+
"type": "bytes32"
|
1737
|
+
},
|
1738
|
+
{
|
1739
|
+
"components": [
|
1740
|
+
{
|
1741
|
+
"internalType": "string",
|
1742
|
+
"name": "name",
|
1743
|
+
"type": "string"
|
1744
|
+
},
|
1745
|
+
{
|
1746
|
+
"internalType": "UFixed",
|
1747
|
+
"name": "minDiscountPercentage",
|
1748
|
+
"type": "uint256"
|
1749
|
+
},
|
1750
|
+
{
|
1751
|
+
"internalType": "UFixed",
|
1752
|
+
"name": "maxDiscountPercentage",
|
1753
|
+
"type": "uint256"
|
1754
|
+
},
|
1755
|
+
{
|
1756
|
+
"internalType": "UFixed",
|
1757
|
+
"name": "commissionPercentage",
|
1758
|
+
"type": "uint256"
|
1759
|
+
},
|
1760
|
+
{
|
1761
|
+
"internalType": "uint32",
|
1762
|
+
"name": "maxReferralCount",
|
1763
|
+
"type": "uint32"
|
1764
|
+
},
|
1765
|
+
{
|
1766
|
+
"internalType": "uint32",
|
1767
|
+
"name": "maxReferralLifetime",
|
1768
|
+
"type": "uint32"
|
1769
|
+
},
|
1770
|
+
{
|
1771
|
+
"internalType": "bool",
|
1772
|
+
"name": "allowSelfReferrals",
|
1773
|
+
"type": "bool"
|
1774
|
+
},
|
1775
|
+
{
|
1776
|
+
"internalType": "bool",
|
1777
|
+
"name": "allowRenewals",
|
1778
|
+
"type": "bool"
|
1779
|
+
},
|
1780
|
+
{
|
1781
|
+
"internalType": "bytes",
|
1782
|
+
"name": "data",
|
1783
|
+
"type": "bytes"
|
1784
|
+
}
|
1785
|
+
],
|
1786
|
+
"internalType": "struct IDistribution.DistributorTypeInfo",
|
1787
|
+
"name": "info",
|
1788
|
+
"type": "tuple"
|
1789
|
+
},
|
1790
|
+
{
|
1791
|
+
"internalType": "StateId",
|
1792
|
+
"name": "newState",
|
1793
|
+
"type": "uint8"
|
1794
|
+
}
|
1795
|
+
],
|
1796
|
+
"name": "updateDistributorType",
|
1797
|
+
"outputs": [],
|
1798
|
+
"stateMutability": "nonpayable",
|
1799
|
+
"type": "function"
|
1800
|
+
},
|
1801
|
+
{
|
1802
|
+
"inputs": [
|
1803
|
+
{
|
1804
|
+
"internalType": "Key32",
|
1805
|
+
"name": "distributorKey",
|
1806
|
+
"type": "bytes32"
|
1807
|
+
},
|
1808
|
+
{
|
1809
|
+
"internalType": "StateId",
|
1810
|
+
"name": "newState",
|
1811
|
+
"type": "uint8"
|
1812
|
+
}
|
1813
|
+
],
|
1814
|
+
"name": "updateDistributorTypeState",
|
1815
|
+
"outputs": [],
|
1816
|
+
"stateMutability": "nonpayable",
|
1817
|
+
"type": "function"
|
1818
|
+
},
|
1819
|
+
{
|
1820
|
+
"inputs": [
|
1821
|
+
{
|
1822
|
+
"internalType": "NftId",
|
1823
|
+
"name": "policyNftId",
|
1824
|
+
"type": "uint96"
|
1825
|
+
},
|
1826
|
+
{
|
1827
|
+
"components": [
|
1828
|
+
{
|
1829
|
+
"internalType": "NftId",
|
1830
|
+
"name": "productNftId",
|
1831
|
+
"type": "uint96"
|
1832
|
+
},
|
1833
|
+
{
|
1834
|
+
"internalType": "NftId",
|
1835
|
+
"name": "bundleNftId",
|
1836
|
+
"type": "uint96"
|
1837
|
+
},
|
1838
|
+
{
|
1839
|
+
"internalType": "ReferralId",
|
1840
|
+
"name": "referralId",
|
1841
|
+
"type": "bytes8"
|
1842
|
+
},
|
1843
|
+
{
|
1844
|
+
"internalType": "RiskId",
|
1845
|
+
"name": "riskId",
|
1846
|
+
"type": "bytes8"
|
1847
|
+
},
|
1848
|
+
{
|
1849
|
+
"internalType": "uint256",
|
1850
|
+
"name": "sumInsuredAmount",
|
1851
|
+
"type": "uint256"
|
1852
|
+
},
|
1853
|
+
{
|
1854
|
+
"internalType": "uint256",
|
1855
|
+
"name": "premiumAmount",
|
1856
|
+
"type": "uint256"
|
1857
|
+
},
|
1858
|
+
{
|
1859
|
+
"internalType": "uint256",
|
1860
|
+
"name": "premiumPaidAmount",
|
1861
|
+
"type": "uint256"
|
1862
|
+
},
|
1863
|
+
{
|
1864
|
+
"internalType": "uint256",
|
1865
|
+
"name": "lifetime",
|
1866
|
+
"type": "uint256"
|
1867
|
+
},
|
1868
|
+
{
|
1869
|
+
"internalType": "bytes",
|
1870
|
+
"name": "applicationData",
|
1871
|
+
"type": "bytes"
|
1872
|
+
},
|
1873
|
+
{
|
1874
|
+
"internalType": "bytes",
|
1875
|
+
"name": "policyData",
|
1876
|
+
"type": "bytes"
|
1877
|
+
},
|
1878
|
+
{
|
1879
|
+
"internalType": "uint16",
|
1880
|
+
"name": "claimsCount",
|
1881
|
+
"type": "uint16"
|
1882
|
+
},
|
1883
|
+
{
|
1884
|
+
"internalType": "uint16",
|
1885
|
+
"name": "openClaimsCount",
|
1886
|
+
"type": "uint16"
|
1887
|
+
},
|
1888
|
+
{
|
1889
|
+
"internalType": "uint256",
|
1890
|
+
"name": "payoutAmount",
|
1891
|
+
"type": "uint256"
|
1892
|
+
},
|
1893
|
+
{
|
1894
|
+
"internalType": "Timestamp",
|
1895
|
+
"name": "activatedAt",
|
1896
|
+
"type": "uint40"
|
1897
|
+
},
|
1898
|
+
{
|
1899
|
+
"internalType": "Timestamp",
|
1900
|
+
"name": "expiredAt",
|
1901
|
+
"type": "uint40"
|
1902
|
+
},
|
1903
|
+
{
|
1904
|
+
"internalType": "Timestamp",
|
1905
|
+
"name": "closedAt",
|
1906
|
+
"type": "uint40"
|
1907
|
+
}
|
1908
|
+
],
|
1909
|
+
"internalType": "struct IPolicy.PolicyInfo",
|
1910
|
+
"name": "policy",
|
1911
|
+
"type": "tuple"
|
1912
|
+
},
|
1913
|
+
{
|
1914
|
+
"internalType": "StateId",
|
1915
|
+
"name": "newState",
|
1916
|
+
"type": "uint8"
|
1917
|
+
}
|
1918
|
+
],
|
1919
|
+
"name": "updatePolicy",
|
1920
|
+
"outputs": [],
|
1921
|
+
"stateMutability": "nonpayable",
|
1922
|
+
"type": "function"
|
1923
|
+
},
|
1924
|
+
{
|
1925
|
+
"inputs": [
|
1926
|
+
{
|
1927
|
+
"internalType": "NftId",
|
1928
|
+
"name": "policyNftId",
|
1929
|
+
"type": "uint96"
|
1930
|
+
},
|
1931
|
+
{
|
1932
|
+
"internalType": "StateId",
|
1933
|
+
"name": "newState",
|
1934
|
+
"type": "uint8"
|
1935
|
+
}
|
1936
|
+
],
|
1937
|
+
"name": "updatePolicyState",
|
1938
|
+
"outputs": [],
|
1939
|
+
"stateMutability": "nonpayable",
|
1940
|
+
"type": "function"
|
1941
|
+
},
|
1942
|
+
{
|
1943
|
+
"inputs": [
|
1944
|
+
{
|
1945
|
+
"internalType": "NftId",
|
1946
|
+
"name": "poolNftId",
|
1947
|
+
"type": "uint96"
|
1948
|
+
},
|
1949
|
+
{
|
1950
|
+
"components": [
|
1951
|
+
{
|
1952
|
+
"internalType": "NftId",
|
1953
|
+
"name": "productNftId",
|
1954
|
+
"type": "uint96"
|
1955
|
+
},
|
1956
|
+
{
|
1957
|
+
"internalType": "contract TokenHandler",
|
1958
|
+
"name": "tokenHandler",
|
1959
|
+
"type": "address"
|
1960
|
+
},
|
1961
|
+
{
|
1962
|
+
"internalType": "bool",
|
1963
|
+
"name": "isInterceptingBundleTransfers",
|
1964
|
+
"type": "bool"
|
1965
|
+
},
|
1966
|
+
{
|
1967
|
+
"internalType": "bool",
|
1968
|
+
"name": "isExternallyManaged",
|
1969
|
+
"type": "bool"
|
1970
|
+
},
|
1971
|
+
{
|
1972
|
+
"internalType": "bool",
|
1973
|
+
"name": "isVerifyingApplications",
|
1974
|
+
"type": "bool"
|
1975
|
+
},
|
1976
|
+
{
|
1977
|
+
"internalType": "UFixed",
|
1978
|
+
"name": "collateralizationLevel",
|
1979
|
+
"type": "uint256"
|
1980
|
+
},
|
1981
|
+
{
|
1982
|
+
"internalType": "UFixed",
|
1983
|
+
"name": "retentionLevel",
|
1984
|
+
"type": "uint256"
|
1985
|
+
},
|
1986
|
+
{
|
1987
|
+
"components": [
|
1988
|
+
{
|
1989
|
+
"internalType": "UFixed",
|
1990
|
+
"name": "fractionalFee",
|
1991
|
+
"type": "uint256"
|
1992
|
+
},
|
1993
|
+
{
|
1994
|
+
"internalType": "uint256",
|
1995
|
+
"name": "fixedFee",
|
1996
|
+
"type": "uint256"
|
1997
|
+
}
|
1998
|
+
],
|
1999
|
+
"internalType": "struct Fee",
|
2000
|
+
"name": "poolFee",
|
2001
|
+
"type": "tuple"
|
2002
|
+
},
|
2003
|
+
{
|
2004
|
+
"components": [
|
2005
|
+
{
|
2006
|
+
"internalType": "UFixed",
|
2007
|
+
"name": "fractionalFee",
|
2008
|
+
"type": "uint256"
|
2009
|
+
},
|
2010
|
+
{
|
2011
|
+
"internalType": "uint256",
|
2012
|
+
"name": "fixedFee",
|
2013
|
+
"type": "uint256"
|
2014
|
+
}
|
2015
|
+
],
|
2016
|
+
"internalType": "struct Fee",
|
2017
|
+
"name": "stakingFee",
|
2018
|
+
"type": "tuple"
|
2019
|
+
},
|
2020
|
+
{
|
2021
|
+
"components": [
|
2022
|
+
{
|
2023
|
+
"internalType": "UFixed",
|
2024
|
+
"name": "fractionalFee",
|
2025
|
+
"type": "uint256"
|
2026
|
+
},
|
2027
|
+
{
|
2028
|
+
"internalType": "uint256",
|
2029
|
+
"name": "fixedFee",
|
2030
|
+
"type": "uint256"
|
2031
|
+
}
|
2032
|
+
],
|
2033
|
+
"internalType": "struct Fee",
|
2034
|
+
"name": "performanceFee",
|
2035
|
+
"type": "tuple"
|
2036
|
+
},
|
2037
|
+
{
|
2038
|
+
"internalType": "address",
|
2039
|
+
"name": "wallet",
|
2040
|
+
"type": "address"
|
2041
|
+
}
|
2042
|
+
],
|
2043
|
+
"internalType": "struct ISetup.PoolSetupInfo",
|
2044
|
+
"name": "setup",
|
2045
|
+
"type": "tuple"
|
2046
|
+
},
|
2047
|
+
{
|
2048
|
+
"internalType": "StateId",
|
2049
|
+
"name": "newState",
|
2050
|
+
"type": "uint8"
|
2051
|
+
}
|
2052
|
+
],
|
2053
|
+
"name": "updatePoolSetup",
|
2054
|
+
"outputs": [],
|
2055
|
+
"stateMutability": "nonpayable",
|
2056
|
+
"type": "function"
|
2057
|
+
},
|
2058
|
+
{
|
2059
|
+
"inputs": [
|
2060
|
+
{
|
2061
|
+
"internalType": "NftId",
|
2062
|
+
"name": "poolNftId",
|
2063
|
+
"type": "uint96"
|
2064
|
+
},
|
2065
|
+
{
|
2066
|
+
"internalType": "StateId",
|
2067
|
+
"name": "newState",
|
2068
|
+
"type": "uint8"
|
2069
|
+
}
|
2070
|
+
],
|
2071
|
+
"name": "updatePoolSetupState",
|
2072
|
+
"outputs": [],
|
2073
|
+
"stateMutability": "nonpayable",
|
2074
|
+
"type": "function"
|
2075
|
+
},
|
2076
|
+
{
|
2077
|
+
"inputs": [
|
2078
|
+
{
|
2079
|
+
"internalType": "NftId",
|
2080
|
+
"name": "productNftId",
|
2081
|
+
"type": "uint96"
|
2082
|
+
},
|
2083
|
+
{
|
2084
|
+
"components": [
|
2085
|
+
{
|
2086
|
+
"internalType": "contract IERC20Metadata",
|
2087
|
+
"name": "token",
|
2088
|
+
"type": "address"
|
2089
|
+
},
|
2090
|
+
{
|
2091
|
+
"internalType": "contract TokenHandler",
|
2092
|
+
"name": "tokenHandler",
|
2093
|
+
"type": "address"
|
2094
|
+
},
|
2095
|
+
{
|
2096
|
+
"internalType": "NftId",
|
2097
|
+
"name": "distributionNftId",
|
2098
|
+
"type": "uint96"
|
2099
|
+
},
|
2100
|
+
{
|
2101
|
+
"internalType": "NftId",
|
2102
|
+
"name": "poolNftId",
|
2103
|
+
"type": "uint96"
|
2104
|
+
},
|
2105
|
+
{
|
2106
|
+
"components": [
|
2107
|
+
{
|
2108
|
+
"internalType": "UFixed",
|
2109
|
+
"name": "fractionalFee",
|
2110
|
+
"type": "uint256"
|
2111
|
+
},
|
2112
|
+
{
|
2113
|
+
"internalType": "uint256",
|
2114
|
+
"name": "fixedFee",
|
2115
|
+
"type": "uint256"
|
2116
|
+
}
|
2117
|
+
],
|
2118
|
+
"internalType": "struct Fee",
|
2119
|
+
"name": "distributionFee",
|
2120
|
+
"type": "tuple"
|
2121
|
+
},
|
2122
|
+
{
|
2123
|
+
"components": [
|
2124
|
+
{
|
2125
|
+
"internalType": "UFixed",
|
2126
|
+
"name": "fractionalFee",
|
2127
|
+
"type": "uint256"
|
2128
|
+
},
|
2129
|
+
{
|
2130
|
+
"internalType": "uint256",
|
2131
|
+
"name": "fixedFee",
|
2132
|
+
"type": "uint256"
|
2133
|
+
}
|
2134
|
+
],
|
2135
|
+
"internalType": "struct Fee",
|
2136
|
+
"name": "productFee",
|
2137
|
+
"type": "tuple"
|
2138
|
+
},
|
2139
|
+
{
|
2140
|
+
"components": [
|
2141
|
+
{
|
2142
|
+
"internalType": "UFixed",
|
2143
|
+
"name": "fractionalFee",
|
2144
|
+
"type": "uint256"
|
2145
|
+
},
|
2146
|
+
{
|
2147
|
+
"internalType": "uint256",
|
2148
|
+
"name": "fixedFee",
|
2149
|
+
"type": "uint256"
|
2150
|
+
}
|
2151
|
+
],
|
2152
|
+
"internalType": "struct Fee",
|
2153
|
+
"name": "processingFee",
|
2154
|
+
"type": "tuple"
|
2155
|
+
},
|
2156
|
+
{
|
2157
|
+
"components": [
|
2158
|
+
{
|
2159
|
+
"internalType": "UFixed",
|
2160
|
+
"name": "fractionalFee",
|
2161
|
+
"type": "uint256"
|
2162
|
+
},
|
2163
|
+
{
|
2164
|
+
"internalType": "uint256",
|
2165
|
+
"name": "fixedFee",
|
2166
|
+
"type": "uint256"
|
2167
|
+
}
|
2168
|
+
],
|
2169
|
+
"internalType": "struct Fee",
|
2170
|
+
"name": "poolFee",
|
2171
|
+
"type": "tuple"
|
2172
|
+
},
|
2173
|
+
{
|
2174
|
+
"components": [
|
2175
|
+
{
|
2176
|
+
"internalType": "UFixed",
|
2177
|
+
"name": "fractionalFee",
|
2178
|
+
"type": "uint256"
|
2179
|
+
},
|
2180
|
+
{
|
2181
|
+
"internalType": "uint256",
|
2182
|
+
"name": "fixedFee",
|
2183
|
+
"type": "uint256"
|
2184
|
+
}
|
2185
|
+
],
|
2186
|
+
"internalType": "struct Fee",
|
2187
|
+
"name": "stakingFee",
|
2188
|
+
"type": "tuple"
|
2189
|
+
},
|
2190
|
+
{
|
2191
|
+
"components": [
|
2192
|
+
{
|
2193
|
+
"internalType": "UFixed",
|
2194
|
+
"name": "fractionalFee",
|
2195
|
+
"type": "uint256"
|
2196
|
+
},
|
2197
|
+
{
|
2198
|
+
"internalType": "uint256",
|
2199
|
+
"name": "fixedFee",
|
2200
|
+
"type": "uint256"
|
2201
|
+
}
|
2202
|
+
],
|
2203
|
+
"internalType": "struct Fee",
|
2204
|
+
"name": "performanceFee",
|
2205
|
+
"type": "tuple"
|
2206
|
+
},
|
2207
|
+
{
|
2208
|
+
"internalType": "bool",
|
2209
|
+
"name": "isIntercepting",
|
2210
|
+
"type": "bool"
|
2211
|
+
},
|
2212
|
+
{
|
2213
|
+
"internalType": "address",
|
2214
|
+
"name": "wallet",
|
2215
|
+
"type": "address"
|
2216
|
+
}
|
2217
|
+
],
|
2218
|
+
"internalType": "struct ISetup.ProductSetupInfo",
|
2219
|
+
"name": "setup",
|
2220
|
+
"type": "tuple"
|
2221
|
+
},
|
2222
|
+
{
|
2223
|
+
"internalType": "StateId",
|
2224
|
+
"name": "newState",
|
2225
|
+
"type": "uint8"
|
2226
|
+
}
|
2227
|
+
],
|
2228
|
+
"name": "updateProductSetup",
|
2229
|
+
"outputs": [],
|
2230
|
+
"stateMutability": "nonpayable",
|
2231
|
+
"type": "function"
|
2232
|
+
},
|
2233
|
+
{
|
2234
|
+
"inputs": [
|
2235
|
+
{
|
2236
|
+
"internalType": "NftId",
|
2237
|
+
"name": "productNftId",
|
2238
|
+
"type": "uint96"
|
2239
|
+
},
|
2240
|
+
{
|
2241
|
+
"internalType": "StateId",
|
2242
|
+
"name": "newState",
|
2243
|
+
"type": "uint8"
|
2244
|
+
}
|
2245
|
+
],
|
2246
|
+
"name": "updateProductSetupState",
|
2247
|
+
"outputs": [],
|
2248
|
+
"stateMutability": "nonpayable",
|
2249
|
+
"type": "function"
|
2250
|
+
},
|
2251
|
+
{
|
2252
|
+
"inputs": [
|
2253
|
+
{
|
2254
|
+
"internalType": "Key32",
|
2255
|
+
"name": "referralKey",
|
2256
|
+
"type": "bytes32"
|
2257
|
+
},
|
2258
|
+
{
|
2259
|
+
"components": [
|
2260
|
+
{
|
2261
|
+
"internalType": "NftId",
|
2262
|
+
"name": "distributorNftId",
|
2263
|
+
"type": "uint96"
|
2264
|
+
},
|
2265
|
+
{
|
2266
|
+
"internalType": "string",
|
2267
|
+
"name": "referralCode",
|
2268
|
+
"type": "string"
|
2269
|
+
},
|
2270
|
+
{
|
2271
|
+
"internalType": "UFixed",
|
2272
|
+
"name": "discountPercentage",
|
2273
|
+
"type": "uint256"
|
2274
|
+
},
|
2275
|
+
{
|
2276
|
+
"internalType": "uint32",
|
2277
|
+
"name": "maxReferrals",
|
2278
|
+
"type": "uint32"
|
2279
|
+
},
|
2280
|
+
{
|
2281
|
+
"internalType": "uint32",
|
2282
|
+
"name": "usedReferrals",
|
2283
|
+
"type": "uint32"
|
2284
|
+
},
|
2285
|
+
{
|
2286
|
+
"internalType": "Timestamp",
|
2287
|
+
"name": "expiryAt",
|
2288
|
+
"type": "uint40"
|
2289
|
+
},
|
2290
|
+
{
|
2291
|
+
"internalType": "bytes",
|
2292
|
+
"name": "data",
|
2293
|
+
"type": "bytes"
|
2294
|
+
}
|
2295
|
+
],
|
2296
|
+
"internalType": "struct IDistribution.ReferralInfo",
|
2297
|
+
"name": "referralInfo",
|
2298
|
+
"type": "tuple"
|
2299
|
+
},
|
2300
|
+
{
|
2301
|
+
"internalType": "StateId",
|
2302
|
+
"name": "newState",
|
2303
|
+
"type": "uint8"
|
2304
|
+
}
|
2305
|
+
],
|
2306
|
+
"name": "updateReferral",
|
2307
|
+
"outputs": [],
|
2308
|
+
"stateMutability": "nonpayable",
|
2309
|
+
"type": "function"
|
2310
|
+
},
|
2311
|
+
{
|
2312
|
+
"inputs": [
|
2313
|
+
{
|
2314
|
+
"internalType": "Key32",
|
2315
|
+
"name": "referralKey",
|
2316
|
+
"type": "bytes32"
|
2317
|
+
},
|
2318
|
+
{
|
2319
|
+
"internalType": "StateId",
|
2320
|
+
"name": "newState",
|
2321
|
+
"type": "uint8"
|
2322
|
+
}
|
2323
|
+
],
|
2324
|
+
"name": "updateReferralState",
|
2325
|
+
"outputs": [],
|
2326
|
+
"stateMutability": "nonpayable",
|
2327
|
+
"type": "function"
|
2328
|
+
},
|
2329
|
+
{
|
2330
|
+
"inputs": [
|
2331
|
+
{
|
2332
|
+
"internalType": "RiskId",
|
2333
|
+
"name": "riskId",
|
2334
|
+
"type": "bytes8"
|
2335
|
+
},
|
2336
|
+
{
|
2337
|
+
"components": [
|
2338
|
+
{
|
2339
|
+
"internalType": "NftId",
|
2340
|
+
"name": "productNftId",
|
2341
|
+
"type": "uint96"
|
2342
|
+
},
|
2343
|
+
{
|
2344
|
+
"internalType": "bytes",
|
2345
|
+
"name": "data",
|
2346
|
+
"type": "bytes"
|
2347
|
+
}
|
2348
|
+
],
|
2349
|
+
"internalType": "struct IRisk.RiskInfo",
|
2350
|
+
"name": "risk",
|
2351
|
+
"type": "tuple"
|
2352
|
+
},
|
2353
|
+
{
|
2354
|
+
"internalType": "StateId",
|
2355
|
+
"name": "newState",
|
2356
|
+
"type": "uint8"
|
2357
|
+
}
|
2358
|
+
],
|
2359
|
+
"name": "updateRisk",
|
2360
|
+
"outputs": [],
|
2361
|
+
"stateMutability": "nonpayable",
|
2362
|
+
"type": "function"
|
2363
|
+
},
|
2364
|
+
{
|
2365
|
+
"inputs": [
|
2366
|
+
{
|
2367
|
+
"internalType": "RiskId",
|
2368
|
+
"name": "riskId",
|
2369
|
+
"type": "bytes8"
|
2370
|
+
},
|
2371
|
+
{
|
2372
|
+
"internalType": "StateId",
|
2373
|
+
"name": "newState",
|
2374
|
+
"type": "uint8"
|
880
2375
|
}
|
881
2376
|
],
|
882
|
-
"name": "
|
2377
|
+
"name": "updateRiskState",
|
883
2378
|
"outputs": [],
|
884
2379
|
"stateMutability": "nonpayable",
|
885
2380
|
"type": "function"
|