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