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