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