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