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