@etherisc/gif-next 0.0.2-e5a2253-213 → 0.0.2-e69072e-892
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +73 -1
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
- package/artifacts/contracts/components/{BaseComponent.sol/BaseComponent.json → Component.sol/Component.json} +340 -59
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +804 -211
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/components/{IBaseComponent.sol/IBaseComponent.json → IComponent.sol/IComponent.json} +95 -56
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +699 -22
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +814 -60
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +519 -4
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +896 -298
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +442 -129
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +38 -62
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +910 -289
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +110 -171
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +874 -557
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +52 -115
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +101 -168
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +346 -263
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +319 -86
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +8 -32
- 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} +119 -189
- 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 +2 -2
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +2 -2
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +13 -13
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
- 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 +968 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +665 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +258 -283
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +305 -80
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +754 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +637 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +983 -221
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +441 -72
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +556 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +130 -217
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
- package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → instance/service/IClaimService.sol/IClaimService.json} +146 -179
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +552 -140
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +40 -292
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +22 -174
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +22 -174
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +161 -407
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +311 -114
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +139 -237
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +302 -77
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +139 -237
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +302 -77
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +98 -5
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +112 -198
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +112 -27
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +18 -18
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +216 -234
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +300 -81
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +70 -53
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +151 -50
- 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 +22 -174
- 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 +114 -157
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- 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/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 +2 -2
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +135 -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/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/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +100 -0
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +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/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 +2 -2
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +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 +100 -0
- package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +2 -2
- 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/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +25 -7
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
- package/contracts/components/Component.sol +221 -0
- package/contracts/components/Distribution.sol +206 -67
- package/contracts/components/IComponent.sol +68 -0
- package/contracts/components/IDistributionComponent.sol +44 -9
- package/contracts/components/IPoolComponent.sol +124 -39
- package/contracts/components/IProductComponent.sol +8 -3
- package/contracts/components/Pool.sol +284 -164
- package/contracts/components/Product.sol +110 -116
- package/contracts/instance/BundleManager.sol +8 -12
- package/contracts/instance/IInstance.sol +41 -9
- package/contracts/instance/IInstanceService.sol +20 -1
- package/contracts/instance/Instance.sol +90 -61
- package/contracts/instance/InstanceAccessManager.sol +18 -24
- package/contracts/instance/InstanceReader.sol +3 -25
- package/contracts/instance/InstanceService.sol +195 -50
- package/contracts/instance/InstanceServiceManager.sol +1 -1
- package/contracts/instance/ObjectManager.sol +7 -24
- package/contracts/instance/base/{ComponentServiceBase.sol → ComponentService.sol} +9 -13
- package/contracts/instance/module/IAccess.sol +3 -4
- package/contracts/instance/module/IBundle.sol +2 -1
- package/contracts/instance/module/IDistribution.sol +2 -0
- package/contracts/instance/module/IPolicy.sol +30 -3
- package/contracts/instance/module/ISetup.sol +10 -10
- package/contracts/instance/service/ApplicationService.sol +350 -0
- package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
- package/contracts/instance/service/BundleService.sol +17 -12
- package/contracts/instance/service/BundleServiceManager.sol +1 -1
- package/contracts/instance/service/ClaimService.sol +151 -0
- package/contracts/instance/service/ClaimServiceManager.sol +35 -0
- package/contracts/instance/service/DistributionService.sol +312 -33
- package/contracts/instance/service/DistributionServiceManager.sol +1 -1
- package/contracts/instance/service/IApplicationService.sol +82 -0
- package/contracts/instance/service/IBundleService.sol +14 -3
- package/contracts/instance/service/IClaimService.sol +61 -0
- package/contracts/instance/service/IDistributionService.sol +74 -0
- package/contracts/instance/service/IPolicyService.sol +26 -50
- package/contracts/instance/service/PolicyService.sol +127 -262
- package/contracts/instance/service/PolicyServiceManager.sol +2 -2
- package/contracts/instance/service/PoolService.sol +12 -45
- package/contracts/instance/service/PoolServiceManager.sol +1 -1
- package/contracts/instance/service/ProductService.sol +50 -26
- package/contracts/instance/service/ProductServiceManager.sol +2 -2
- package/contracts/registry/IRegistry.sol +16 -8
- package/contracts/registry/IRegistryService.sol +19 -10
- package/contracts/registry/Registry.sol +120 -52
- package/contracts/registry/RegistryAccessManager.sol +31 -25
- package/contracts/registry/RegistryService.sol +91 -128
- package/contracts/registry/RegistryServiceManager.sol +13 -13
- package/contracts/registry/ReleaseManager.sol +86 -106
- package/contracts/registry/TokenRegistry.sol +19 -13
- 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 -4
- package/contracts/shared/IRegistryLinked.sol +12 -0
- package/contracts/shared/IService.sol +2 -0
- 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 +19 -19
- package/contracts/shared/Versionable.sol +4 -92
- package/contracts/test/TestRegisterable.sol +1 -1
- package/contracts/test/TestService.sol +1 -1
- package/contracts/types/ClaimId.sol +52 -0
- package/contracts/types/DistributorType.sol +2 -2
- package/contracts/types/ObjectType.sol +9 -5
- package/contracts/types/PayoutId.sol +54 -0
- package/contracts/types/RoleId.sol +12 -7
- package/contracts/types/Seconds.sol +54 -0
- package/contracts/types/Timestamp.sol +12 -13
- package/package.json +3 -3
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- 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/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +0 -1206
- package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +0 -448
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +0 -763
- 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 -100
- package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
- package/contracts/components/BaseComponent.sol +0 -168
- package/contracts/components/IBaseComponent.sol +0 -35
- 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/AccessManagerUpgradeableInitializeable.sol +0 -23
- package/contracts/instance/IInstanceBase.sol +0 -25
- package/contracts/instance/InstanceBase.sol +0 -39
- package/contracts/instance/base/IInstanceBase.sol +0 -21
- package/contracts/shared/RegisterableUpgradable.sol +0 -16
@@ -62,6 +62,44 @@
|
|
62
62
|
"name": "ErrorInvalidStateTransition",
|
63
63
|
"type": "error"
|
64
64
|
},
|
65
|
+
{
|
66
|
+
"inputs": [
|
67
|
+
{
|
68
|
+
"internalType": "NftId",
|
69
|
+
"name": "nftId",
|
70
|
+
"type": "uint96"
|
71
|
+
}
|
72
|
+
],
|
73
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
74
|
+
"type": "error"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"inputs": [
|
78
|
+
{
|
79
|
+
"internalType": "address",
|
80
|
+
"name": "contractAddress",
|
81
|
+
"type": "address"
|
82
|
+
}
|
83
|
+
],
|
84
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
85
|
+
"type": "error"
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"inputs": [],
|
89
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
90
|
+
"type": "error"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"inputs": [
|
94
|
+
{
|
95
|
+
"internalType": "address",
|
96
|
+
"name": "account",
|
97
|
+
"type": "address"
|
98
|
+
}
|
99
|
+
],
|
100
|
+
"name": "ErrorNftOwnableNotOwner",
|
101
|
+
"type": "error"
|
102
|
+
},
|
65
103
|
{
|
66
104
|
"inputs": [
|
67
105
|
{
|
@@ -78,6 +116,17 @@
|
|
78
116
|
"name": "ErrorNoLifecycle",
|
79
117
|
"type": "error"
|
80
118
|
},
|
119
|
+
{
|
120
|
+
"inputs": [
|
121
|
+
{
|
122
|
+
"internalType": "address",
|
123
|
+
"name": "registryAddress",
|
124
|
+
"type": "address"
|
125
|
+
}
|
126
|
+
],
|
127
|
+
"name": "ErrorNotRegistry",
|
128
|
+
"type": "error"
|
129
|
+
},
|
81
130
|
{
|
82
131
|
"anonymous": false,
|
83
132
|
"inputs": [
|
@@ -233,6 +282,106 @@
|
|
233
282
|
"stateMutability": "view",
|
234
283
|
"type": "function"
|
235
284
|
},
|
285
|
+
{
|
286
|
+
"inputs": [
|
287
|
+
{
|
288
|
+
"internalType": "NftId",
|
289
|
+
"name": "applicationNftId",
|
290
|
+
"type": "uint96"
|
291
|
+
},
|
292
|
+
{
|
293
|
+
"components": [
|
294
|
+
{
|
295
|
+
"internalType": "NftId",
|
296
|
+
"name": "productNftId",
|
297
|
+
"type": "uint96"
|
298
|
+
},
|
299
|
+
{
|
300
|
+
"internalType": "NftId",
|
301
|
+
"name": "bundleNftId",
|
302
|
+
"type": "uint96"
|
303
|
+
},
|
304
|
+
{
|
305
|
+
"internalType": "ReferralId",
|
306
|
+
"name": "referralId",
|
307
|
+
"type": "bytes8"
|
308
|
+
},
|
309
|
+
{
|
310
|
+
"internalType": "RiskId",
|
311
|
+
"name": "riskId",
|
312
|
+
"type": "bytes8"
|
313
|
+
},
|
314
|
+
{
|
315
|
+
"internalType": "uint256",
|
316
|
+
"name": "sumInsuredAmount",
|
317
|
+
"type": "uint256"
|
318
|
+
},
|
319
|
+
{
|
320
|
+
"internalType": "uint256",
|
321
|
+
"name": "premiumAmount",
|
322
|
+
"type": "uint256"
|
323
|
+
},
|
324
|
+
{
|
325
|
+
"internalType": "uint256",
|
326
|
+
"name": "premiumPaidAmount",
|
327
|
+
"type": "uint256"
|
328
|
+
},
|
329
|
+
{
|
330
|
+
"internalType": "Seconds",
|
331
|
+
"name": "lifetime",
|
332
|
+
"type": "uint40"
|
333
|
+
},
|
334
|
+
{
|
335
|
+
"internalType": "bytes",
|
336
|
+
"name": "applicationData",
|
337
|
+
"type": "bytes"
|
338
|
+
},
|
339
|
+
{
|
340
|
+
"internalType": "bytes",
|
341
|
+
"name": "policyData",
|
342
|
+
"type": "bytes"
|
343
|
+
},
|
344
|
+
{
|
345
|
+
"internalType": "uint16",
|
346
|
+
"name": "claimsCount",
|
347
|
+
"type": "uint16"
|
348
|
+
},
|
349
|
+
{
|
350
|
+
"internalType": "uint16",
|
351
|
+
"name": "openClaimsCount",
|
352
|
+
"type": "uint16"
|
353
|
+
},
|
354
|
+
{
|
355
|
+
"internalType": "uint256",
|
356
|
+
"name": "payoutAmount",
|
357
|
+
"type": "uint256"
|
358
|
+
},
|
359
|
+
{
|
360
|
+
"internalType": "Timestamp",
|
361
|
+
"name": "activatedAt",
|
362
|
+
"type": "uint40"
|
363
|
+
},
|
364
|
+
{
|
365
|
+
"internalType": "Timestamp",
|
366
|
+
"name": "expiredAt",
|
367
|
+
"type": "uint40"
|
368
|
+
},
|
369
|
+
{
|
370
|
+
"internalType": "Timestamp",
|
371
|
+
"name": "closedAt",
|
372
|
+
"type": "uint40"
|
373
|
+
}
|
374
|
+
],
|
375
|
+
"internalType": "struct IPolicy.PolicyInfo",
|
376
|
+
"name": "policy",
|
377
|
+
"type": "tuple"
|
378
|
+
}
|
379
|
+
],
|
380
|
+
"name": "createApplication",
|
381
|
+
"outputs": [],
|
382
|
+
"stateMutability": "nonpayable",
|
383
|
+
"type": "function"
|
384
|
+
},
|
236
385
|
{
|
237
386
|
"inputs": [
|
238
387
|
{
|
@@ -285,9 +434,9 @@
|
|
285
434
|
"type": "uint256"
|
286
435
|
},
|
287
436
|
{
|
288
|
-
"internalType": "
|
437
|
+
"internalType": "Seconds",
|
289
438
|
"name": "lifetime",
|
290
|
-
"type": "
|
439
|
+
"type": "uint40"
|
291
440
|
},
|
292
441
|
{
|
293
442
|
"internalType": "Timestamp",
|
@@ -343,18 +492,35 @@
|
|
343
492
|
}
|
344
493
|
],
|
345
494
|
"internalType": "struct Fee",
|
346
|
-
"name": "
|
495
|
+
"name": "minDistributionOwnerFee",
|
347
496
|
"type": "tuple"
|
348
497
|
},
|
349
498
|
{
|
350
|
-
"
|
351
|
-
|
352
|
-
|
499
|
+
"components": [
|
500
|
+
{
|
501
|
+
"internalType": "UFixed",
|
502
|
+
"name": "fractionalFee",
|
503
|
+
"type": "uint256"
|
504
|
+
},
|
505
|
+
{
|
506
|
+
"internalType": "uint256",
|
507
|
+
"name": "fixedFee",
|
508
|
+
"type": "uint256"
|
509
|
+
}
|
510
|
+
],
|
511
|
+
"internalType": "struct Fee",
|
512
|
+
"name": "distributionFee",
|
513
|
+
"type": "tuple"
|
353
514
|
},
|
354
515
|
{
|
355
516
|
"internalType": "address",
|
356
517
|
"name": "wallet",
|
357
518
|
"type": "address"
|
519
|
+
},
|
520
|
+
{
|
521
|
+
"internalType": "uint256",
|
522
|
+
"name": "sumDistributionFees",
|
523
|
+
"type": "uint256"
|
358
524
|
}
|
359
525
|
],
|
360
526
|
"internalType": "struct ISetup.DistributionSetupInfo",
|
@@ -371,98 +537,108 @@
|
|
371
537
|
"inputs": [
|
372
538
|
{
|
373
539
|
"internalType": "NftId",
|
374
|
-
"name": "
|
540
|
+
"name": "nftId",
|
375
541
|
"type": "uint96"
|
376
542
|
},
|
377
543
|
{
|
378
544
|
"components": [
|
379
545
|
{
|
380
|
-
"internalType": "
|
381
|
-
"name": "
|
382
|
-
"type": "uint96"
|
383
|
-
},
|
384
|
-
{
|
385
|
-
"internalType": "NftId",
|
386
|
-
"name": "bundleNftId",
|
387
|
-
"type": "uint96"
|
388
|
-
},
|
389
|
-
{
|
390
|
-
"internalType": "ReferralId",
|
391
|
-
"name": "referralId",
|
546
|
+
"internalType": "DistributorType",
|
547
|
+
"name": "distributorType",
|
392
548
|
"type": "bytes8"
|
393
549
|
},
|
394
550
|
{
|
395
|
-
"internalType": "
|
396
|
-
"name": "
|
397
|
-
"type": "
|
551
|
+
"internalType": "bool",
|
552
|
+
"name": "active",
|
553
|
+
"type": "bool"
|
398
554
|
},
|
399
555
|
{
|
400
|
-
"internalType": "
|
401
|
-
"name": "
|
402
|
-
"type": "
|
556
|
+
"internalType": "bytes",
|
557
|
+
"name": "data",
|
558
|
+
"type": "bytes"
|
403
559
|
},
|
404
560
|
{
|
405
561
|
"internalType": "uint256",
|
406
|
-
"name": "
|
562
|
+
"name": "sumCommisions",
|
407
563
|
"type": "uint256"
|
408
564
|
},
|
409
565
|
{
|
410
566
|
"internalType": "uint256",
|
411
|
-
"name": "
|
567
|
+
"name": "numPoliciesSold",
|
412
568
|
"type": "uint256"
|
413
|
-
}
|
569
|
+
}
|
570
|
+
],
|
571
|
+
"internalType": "struct IDistribution.DistributorInfo",
|
572
|
+
"name": "info",
|
573
|
+
"type": "tuple"
|
574
|
+
}
|
575
|
+
],
|
576
|
+
"name": "createDistributor",
|
577
|
+
"outputs": [],
|
578
|
+
"stateMutability": "nonpayable",
|
579
|
+
"type": "function"
|
580
|
+
},
|
581
|
+
{
|
582
|
+
"inputs": [
|
583
|
+
{
|
584
|
+
"internalType": "Key32",
|
585
|
+
"name": "distributorKey",
|
586
|
+
"type": "bytes32"
|
587
|
+
},
|
588
|
+
{
|
589
|
+
"components": [
|
414
590
|
{
|
415
|
-
"internalType": "
|
416
|
-
"name": "
|
417
|
-
"type": "
|
591
|
+
"internalType": "string",
|
592
|
+
"name": "name",
|
593
|
+
"type": "string"
|
418
594
|
},
|
419
595
|
{
|
420
|
-
"internalType": "
|
421
|
-
"name": "
|
422
|
-
"type": "
|
596
|
+
"internalType": "UFixed",
|
597
|
+
"name": "minDiscountPercentage",
|
598
|
+
"type": "uint256"
|
423
599
|
},
|
424
600
|
{
|
425
|
-
"internalType": "
|
426
|
-
"name": "
|
427
|
-
"type": "
|
601
|
+
"internalType": "UFixed",
|
602
|
+
"name": "maxDiscountPercentage",
|
603
|
+
"type": "uint256"
|
428
604
|
},
|
429
605
|
{
|
430
|
-
"internalType": "
|
431
|
-
"name": "
|
432
|
-
"type": "
|
606
|
+
"internalType": "UFixed",
|
607
|
+
"name": "commissionPercentage",
|
608
|
+
"type": "uint256"
|
433
609
|
},
|
434
610
|
{
|
435
|
-
"internalType": "
|
436
|
-
"name": "
|
437
|
-
"type": "
|
611
|
+
"internalType": "uint32",
|
612
|
+
"name": "maxReferralCount",
|
613
|
+
"type": "uint32"
|
438
614
|
},
|
439
615
|
{
|
440
|
-
"internalType": "
|
441
|
-
"name": "
|
442
|
-
"type": "
|
616
|
+
"internalType": "uint32",
|
617
|
+
"name": "maxReferralLifetime",
|
618
|
+
"type": "uint32"
|
443
619
|
},
|
444
620
|
{
|
445
|
-
"internalType": "
|
446
|
-
"name": "
|
447
|
-
"type": "
|
621
|
+
"internalType": "bool",
|
622
|
+
"name": "allowSelfReferrals",
|
623
|
+
"type": "bool"
|
448
624
|
},
|
449
625
|
{
|
450
|
-
"internalType": "
|
451
|
-
"name": "
|
452
|
-
"type": "
|
626
|
+
"internalType": "bool",
|
627
|
+
"name": "allowRenewals",
|
628
|
+
"type": "bool"
|
453
629
|
},
|
454
630
|
{
|
455
|
-
"internalType": "
|
456
|
-
"name": "
|
457
|
-
"type": "
|
631
|
+
"internalType": "bytes",
|
632
|
+
"name": "data",
|
633
|
+
"type": "bytes"
|
458
634
|
}
|
459
635
|
],
|
460
|
-
"internalType": "struct
|
461
|
-
"name": "
|
636
|
+
"internalType": "struct IDistribution.DistributorTypeInfo",
|
637
|
+
"name": "info",
|
462
638
|
"type": "tuple"
|
463
639
|
}
|
464
640
|
],
|
465
|
-
"name": "
|
641
|
+
"name": "createDistributorType",
|
466
642
|
"outputs": [],
|
467
643
|
"stateMutability": "nonpayable",
|
468
644
|
"type": "function"
|
@@ -487,8 +663,33 @@
|
|
487
663
|
"type": "address"
|
488
664
|
},
|
489
665
|
{
|
490
|
-
"internalType": "
|
491
|
-
"name": "
|
666
|
+
"internalType": "uint256",
|
667
|
+
"name": "maxCapitalAmount",
|
668
|
+
"type": "uint256"
|
669
|
+
},
|
670
|
+
{
|
671
|
+
"internalType": "bool",
|
672
|
+
"name": "isInterceptingBundleTransfers",
|
673
|
+
"type": "bool"
|
674
|
+
},
|
675
|
+
{
|
676
|
+
"internalType": "bool",
|
677
|
+
"name": "isExternallyManaged",
|
678
|
+
"type": "bool"
|
679
|
+
},
|
680
|
+
{
|
681
|
+
"internalType": "bool",
|
682
|
+
"name": "isVerifyingApplications",
|
683
|
+
"type": "bool"
|
684
|
+
},
|
685
|
+
{
|
686
|
+
"internalType": "UFixed",
|
687
|
+
"name": "collateralizationLevel",
|
688
|
+
"type": "uint256"
|
689
|
+
},
|
690
|
+
{
|
691
|
+
"internalType": "UFixed",
|
692
|
+
"name": "retentionLevel",
|
492
693
|
"type": "uint256"
|
493
694
|
},
|
494
695
|
{
|
@@ -542,16 +743,6 @@
|
|
542
743
|
"name": "performanceFee",
|
543
744
|
"type": "tuple"
|
544
745
|
},
|
545
|
-
{
|
546
|
-
"internalType": "bool",
|
547
|
-
"name": "isIntercepting",
|
548
|
-
"type": "bool"
|
549
|
-
},
|
550
|
-
{
|
551
|
-
"internalType": "bool",
|
552
|
-
"name": "isConfirmingApplication",
|
553
|
-
"type": "bool"
|
554
|
-
},
|
555
746
|
{
|
556
747
|
"internalType": "address",
|
557
748
|
"name": "wallet",
|
@@ -597,23 +788,6 @@
|
|
597
788
|
"name": "poolNftId",
|
598
789
|
"type": "uint96"
|
599
790
|
},
|
600
|
-
{
|
601
|
-
"components": [
|
602
|
-
{
|
603
|
-
"internalType": "UFixed",
|
604
|
-
"name": "fractionalFee",
|
605
|
-
"type": "uint256"
|
606
|
-
},
|
607
|
-
{
|
608
|
-
"internalType": "uint256",
|
609
|
-
"name": "fixedFee",
|
610
|
-
"type": "uint256"
|
611
|
-
}
|
612
|
-
],
|
613
|
-
"internalType": "struct Fee",
|
614
|
-
"name": "distributionFee",
|
615
|
-
"type": "tuple"
|
616
|
-
},
|
617
791
|
{
|
618
792
|
"components": [
|
619
793
|
{
|
@@ -648,57 +822,6 @@
|
|
648
822
|
"name": "processingFee",
|
649
823
|
"type": "tuple"
|
650
824
|
},
|
651
|
-
{
|
652
|
-
"components": [
|
653
|
-
{
|
654
|
-
"internalType": "UFixed",
|
655
|
-
"name": "fractionalFee",
|
656
|
-
"type": "uint256"
|
657
|
-
},
|
658
|
-
{
|
659
|
-
"internalType": "uint256",
|
660
|
-
"name": "fixedFee",
|
661
|
-
"type": "uint256"
|
662
|
-
}
|
663
|
-
],
|
664
|
-
"internalType": "struct Fee",
|
665
|
-
"name": "poolFee",
|
666
|
-
"type": "tuple"
|
667
|
-
},
|
668
|
-
{
|
669
|
-
"components": [
|
670
|
-
{
|
671
|
-
"internalType": "UFixed",
|
672
|
-
"name": "fractionalFee",
|
673
|
-
"type": "uint256"
|
674
|
-
},
|
675
|
-
{
|
676
|
-
"internalType": "uint256",
|
677
|
-
"name": "fixedFee",
|
678
|
-
"type": "uint256"
|
679
|
-
}
|
680
|
-
],
|
681
|
-
"internalType": "struct Fee",
|
682
|
-
"name": "stakingFee",
|
683
|
-
"type": "tuple"
|
684
|
-
},
|
685
|
-
{
|
686
|
-
"components": [
|
687
|
-
{
|
688
|
-
"internalType": "UFixed",
|
689
|
-
"name": "fractionalFee",
|
690
|
-
"type": "uint256"
|
691
|
-
},
|
692
|
-
{
|
693
|
-
"internalType": "uint256",
|
694
|
-
"name": "fixedFee",
|
695
|
-
"type": "uint256"
|
696
|
-
}
|
697
|
-
],
|
698
|
-
"internalType": "struct Fee",
|
699
|
-
"name": "performanceFee",
|
700
|
-
"type": "tuple"
|
701
|
-
},
|
702
825
|
{
|
703
826
|
"internalType": "bool",
|
704
827
|
"name": "isIntercepting",
|
@@ -720,6 +843,61 @@
|
|
720
843
|
"stateMutability": "nonpayable",
|
721
844
|
"type": "function"
|
722
845
|
},
|
846
|
+
{
|
847
|
+
"inputs": [
|
848
|
+
{
|
849
|
+
"internalType": "Key32",
|
850
|
+
"name": "referralKey",
|
851
|
+
"type": "bytes32"
|
852
|
+
},
|
853
|
+
{
|
854
|
+
"components": [
|
855
|
+
{
|
856
|
+
"internalType": "NftId",
|
857
|
+
"name": "distributorNftId",
|
858
|
+
"type": "uint96"
|
859
|
+
},
|
860
|
+
{
|
861
|
+
"internalType": "string",
|
862
|
+
"name": "referralCode",
|
863
|
+
"type": "string"
|
864
|
+
},
|
865
|
+
{
|
866
|
+
"internalType": "UFixed",
|
867
|
+
"name": "discountPercentage",
|
868
|
+
"type": "uint256"
|
869
|
+
},
|
870
|
+
{
|
871
|
+
"internalType": "uint32",
|
872
|
+
"name": "maxReferrals",
|
873
|
+
"type": "uint32"
|
874
|
+
},
|
875
|
+
{
|
876
|
+
"internalType": "uint32",
|
877
|
+
"name": "usedReferrals",
|
878
|
+
"type": "uint32"
|
879
|
+
},
|
880
|
+
{
|
881
|
+
"internalType": "Timestamp",
|
882
|
+
"name": "expiryAt",
|
883
|
+
"type": "uint40"
|
884
|
+
},
|
885
|
+
{
|
886
|
+
"internalType": "bytes",
|
887
|
+
"name": "data",
|
888
|
+
"type": "bytes"
|
889
|
+
}
|
890
|
+
],
|
891
|
+
"internalType": "struct IDistribution.ReferralInfo",
|
892
|
+
"name": "referralInfo",
|
893
|
+
"type": "tuple"
|
894
|
+
}
|
895
|
+
],
|
896
|
+
"name": "createReferral",
|
897
|
+
"outputs": [],
|
898
|
+
"stateMutability": "nonpayable",
|
899
|
+
"type": "function"
|
900
|
+
},
|
723
901
|
{
|
724
902
|
"inputs": [
|
725
903
|
{
|
@@ -885,6 +1063,56 @@
|
|
885
1063
|
"stateMutability": "view",
|
886
1064
|
"type": "function"
|
887
1065
|
},
|
1066
|
+
{
|
1067
|
+
"inputs": [],
|
1068
|
+
"name": "getInitialInfo",
|
1069
|
+
"outputs": [
|
1070
|
+
{
|
1071
|
+
"components": [
|
1072
|
+
{
|
1073
|
+
"internalType": "NftId",
|
1074
|
+
"name": "nftId",
|
1075
|
+
"type": "uint96"
|
1076
|
+
},
|
1077
|
+
{
|
1078
|
+
"internalType": "NftId",
|
1079
|
+
"name": "parentNftId",
|
1080
|
+
"type": "uint96"
|
1081
|
+
},
|
1082
|
+
{
|
1083
|
+
"internalType": "ObjectType",
|
1084
|
+
"name": "objectType",
|
1085
|
+
"type": "uint8"
|
1086
|
+
},
|
1087
|
+
{
|
1088
|
+
"internalType": "bool",
|
1089
|
+
"name": "isInterceptor",
|
1090
|
+
"type": "bool"
|
1091
|
+
},
|
1092
|
+
{
|
1093
|
+
"internalType": "address",
|
1094
|
+
"name": "objectAddress",
|
1095
|
+
"type": "address"
|
1096
|
+
},
|
1097
|
+
{
|
1098
|
+
"internalType": "address",
|
1099
|
+
"name": "initialOwner",
|
1100
|
+
"type": "address"
|
1101
|
+
},
|
1102
|
+
{
|
1103
|
+
"internalType": "bytes",
|
1104
|
+
"name": "data",
|
1105
|
+
"type": "bytes"
|
1106
|
+
}
|
1107
|
+
],
|
1108
|
+
"internalType": "struct IRegistry.ObjectInfo",
|
1109
|
+
"name": "",
|
1110
|
+
"type": "tuple"
|
1111
|
+
}
|
1112
|
+
],
|
1113
|
+
"stateMutability": "view",
|
1114
|
+
"type": "function"
|
1115
|
+
},
|
888
1116
|
{
|
889
1117
|
"inputs": [
|
890
1118
|
{
|
@@ -917,6 +1145,19 @@
|
|
917
1145
|
"stateMutability": "view",
|
918
1146
|
"type": "function"
|
919
1147
|
},
|
1148
|
+
{
|
1149
|
+
"inputs": [],
|
1150
|
+
"name": "getMajorVersion",
|
1151
|
+
"outputs": [
|
1152
|
+
{
|
1153
|
+
"internalType": "VersionPart",
|
1154
|
+
"name": "majorVersion",
|
1155
|
+
"type": "uint8"
|
1156
|
+
}
|
1157
|
+
],
|
1158
|
+
"stateMutability": "pure",
|
1159
|
+
"type": "function"
|
1160
|
+
},
|
920
1161
|
{
|
921
1162
|
"inputs": [
|
922
1163
|
{
|
@@ -963,6 +1204,32 @@
|
|
963
1204
|
"stateMutability": "view",
|
964
1205
|
"type": "function"
|
965
1206
|
},
|
1207
|
+
{
|
1208
|
+
"inputs": [],
|
1209
|
+
"name": "getNftId",
|
1210
|
+
"outputs": [
|
1211
|
+
{
|
1212
|
+
"internalType": "NftId",
|
1213
|
+
"name": "",
|
1214
|
+
"type": "uint96"
|
1215
|
+
}
|
1216
|
+
],
|
1217
|
+
"stateMutability": "view",
|
1218
|
+
"type": "function"
|
1219
|
+
},
|
1220
|
+
{
|
1221
|
+
"inputs": [],
|
1222
|
+
"name": "getOwner",
|
1223
|
+
"outputs": [
|
1224
|
+
{
|
1225
|
+
"internalType": "address",
|
1226
|
+
"name": "",
|
1227
|
+
"type": "address"
|
1228
|
+
}
|
1229
|
+
],
|
1230
|
+
"stateMutability": "view",
|
1231
|
+
"type": "function"
|
1232
|
+
},
|
966
1233
|
{
|
967
1234
|
"inputs": [],
|
968
1235
|
"name": "getPolicyService",
|
@@ -1002,6 +1269,32 @@
|
|
1002
1269
|
"stateMutability": "view",
|
1003
1270
|
"type": "function"
|
1004
1271
|
},
|
1272
|
+
{
|
1273
|
+
"inputs": [],
|
1274
|
+
"name": "getRegistry",
|
1275
|
+
"outputs": [
|
1276
|
+
{
|
1277
|
+
"internalType": "contract IRegistry",
|
1278
|
+
"name": "",
|
1279
|
+
"type": "address"
|
1280
|
+
}
|
1281
|
+
],
|
1282
|
+
"stateMutability": "view",
|
1283
|
+
"type": "function"
|
1284
|
+
},
|
1285
|
+
{
|
1286
|
+
"inputs": [],
|
1287
|
+
"name": "getRegistryAddress",
|
1288
|
+
"outputs": [
|
1289
|
+
{
|
1290
|
+
"internalType": "address",
|
1291
|
+
"name": "",
|
1292
|
+
"type": "address"
|
1293
|
+
}
|
1294
|
+
],
|
1295
|
+
"stateMutability": "view",
|
1296
|
+
"type": "function"
|
1297
|
+
},
|
1005
1298
|
{
|
1006
1299
|
"inputs": [
|
1007
1300
|
{
|
@@ -1082,6 +1375,13 @@
|
|
1082
1375
|
"stateMutability": "view",
|
1083
1376
|
"type": "function"
|
1084
1377
|
},
|
1378
|
+
{
|
1379
|
+
"inputs": [],
|
1380
|
+
"name": "linkToRegisteredNftId",
|
1381
|
+
"outputs": [],
|
1382
|
+
"stateMutability": "nonpayable",
|
1383
|
+
"type": "function"
|
1384
|
+
},
|
1085
1385
|
{
|
1086
1386
|
"inputs": [
|
1087
1387
|
{
|
@@ -1142,25 +1442,148 @@
|
|
1142
1442
|
"inputs": [
|
1143
1443
|
{
|
1144
1444
|
"internalType": "NftId",
|
1145
|
-
"name": "
|
1445
|
+
"name": "applicationNftId",
|
1146
1446
|
"type": "uint96"
|
1147
1447
|
},
|
1148
1448
|
{
|
1149
1449
|
"components": [
|
1150
1450
|
{
|
1151
1451
|
"internalType": "NftId",
|
1152
|
-
"name": "
|
1452
|
+
"name": "productNftId",
|
1153
1453
|
"type": "uint96"
|
1154
1454
|
},
|
1155
1455
|
{
|
1156
|
-
"
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1456
|
+
"internalType": "NftId",
|
1457
|
+
"name": "bundleNftId",
|
1458
|
+
"type": "uint96"
|
1459
|
+
},
|
1460
|
+
{
|
1461
|
+
"internalType": "ReferralId",
|
1462
|
+
"name": "referralId",
|
1463
|
+
"type": "bytes8"
|
1464
|
+
},
|
1465
|
+
{
|
1466
|
+
"internalType": "RiskId",
|
1467
|
+
"name": "riskId",
|
1468
|
+
"type": "bytes8"
|
1469
|
+
},
|
1470
|
+
{
|
1471
|
+
"internalType": "uint256",
|
1472
|
+
"name": "sumInsuredAmount",
|
1473
|
+
"type": "uint256"
|
1474
|
+
},
|
1475
|
+
{
|
1476
|
+
"internalType": "uint256",
|
1477
|
+
"name": "premiumAmount",
|
1478
|
+
"type": "uint256"
|
1479
|
+
},
|
1480
|
+
{
|
1481
|
+
"internalType": "uint256",
|
1482
|
+
"name": "premiumPaidAmount",
|
1483
|
+
"type": "uint256"
|
1484
|
+
},
|
1485
|
+
{
|
1486
|
+
"internalType": "Seconds",
|
1487
|
+
"name": "lifetime",
|
1488
|
+
"type": "uint40"
|
1489
|
+
},
|
1490
|
+
{
|
1491
|
+
"internalType": "bytes",
|
1492
|
+
"name": "applicationData",
|
1493
|
+
"type": "bytes"
|
1494
|
+
},
|
1495
|
+
{
|
1496
|
+
"internalType": "bytes",
|
1497
|
+
"name": "policyData",
|
1498
|
+
"type": "bytes"
|
1499
|
+
},
|
1500
|
+
{
|
1501
|
+
"internalType": "uint16",
|
1502
|
+
"name": "claimsCount",
|
1503
|
+
"type": "uint16"
|
1504
|
+
},
|
1505
|
+
{
|
1506
|
+
"internalType": "uint16",
|
1507
|
+
"name": "openClaimsCount",
|
1508
|
+
"type": "uint16"
|
1509
|
+
},
|
1510
|
+
{
|
1511
|
+
"internalType": "uint256",
|
1512
|
+
"name": "payoutAmount",
|
1513
|
+
"type": "uint256"
|
1514
|
+
},
|
1515
|
+
{
|
1516
|
+
"internalType": "Timestamp",
|
1517
|
+
"name": "activatedAt",
|
1518
|
+
"type": "uint40"
|
1519
|
+
},
|
1520
|
+
{
|
1521
|
+
"internalType": "Timestamp",
|
1522
|
+
"name": "expiredAt",
|
1523
|
+
"type": "uint40"
|
1524
|
+
},
|
1525
|
+
{
|
1526
|
+
"internalType": "Timestamp",
|
1527
|
+
"name": "closedAt",
|
1528
|
+
"type": "uint40"
|
1529
|
+
}
|
1530
|
+
],
|
1531
|
+
"internalType": "struct IPolicy.PolicyInfo",
|
1532
|
+
"name": "policy",
|
1533
|
+
"type": "tuple"
|
1534
|
+
},
|
1535
|
+
{
|
1536
|
+
"internalType": "StateId",
|
1537
|
+
"name": "newState",
|
1538
|
+
"type": "uint8"
|
1539
|
+
}
|
1540
|
+
],
|
1541
|
+
"name": "updateApplication",
|
1542
|
+
"outputs": [],
|
1543
|
+
"stateMutability": "nonpayable",
|
1544
|
+
"type": "function"
|
1545
|
+
},
|
1546
|
+
{
|
1547
|
+
"inputs": [
|
1548
|
+
{
|
1549
|
+
"internalType": "NftId",
|
1550
|
+
"name": "applicationNftId",
|
1551
|
+
"type": "uint96"
|
1552
|
+
},
|
1553
|
+
{
|
1554
|
+
"internalType": "StateId",
|
1555
|
+
"name": "newState",
|
1556
|
+
"type": "uint8"
|
1557
|
+
}
|
1558
|
+
],
|
1559
|
+
"name": "updateApplicationState",
|
1560
|
+
"outputs": [],
|
1561
|
+
"stateMutability": "nonpayable",
|
1562
|
+
"type": "function"
|
1563
|
+
},
|
1564
|
+
{
|
1565
|
+
"inputs": [
|
1566
|
+
{
|
1567
|
+
"internalType": "NftId",
|
1568
|
+
"name": "bundleNftId",
|
1569
|
+
"type": "uint96"
|
1570
|
+
},
|
1571
|
+
{
|
1572
|
+
"components": [
|
1573
|
+
{
|
1574
|
+
"internalType": "NftId",
|
1575
|
+
"name": "poolNftId",
|
1576
|
+
"type": "uint96"
|
1577
|
+
},
|
1578
|
+
{
|
1579
|
+
"components": [
|
1580
|
+
{
|
1581
|
+
"internalType": "UFixed",
|
1582
|
+
"name": "fractionalFee",
|
1583
|
+
"type": "uint256"
|
1584
|
+
},
|
1585
|
+
{
|
1586
|
+
"internalType": "uint256",
|
1164
1587
|
"name": "fixedFee",
|
1165
1588
|
"type": "uint256"
|
1166
1589
|
}
|
@@ -1170,43 +1593,208 @@
|
|
1170
1593
|
"type": "tuple"
|
1171
1594
|
},
|
1172
1595
|
{
|
1173
|
-
"internalType": "bytes",
|
1174
|
-
"name": "filter",
|
1175
|
-
"type": "bytes"
|
1596
|
+
"internalType": "bytes",
|
1597
|
+
"name": "filter",
|
1598
|
+
"type": "bytes"
|
1599
|
+
},
|
1600
|
+
{
|
1601
|
+
"internalType": "uint256",
|
1602
|
+
"name": "capitalAmount",
|
1603
|
+
"type": "uint256"
|
1604
|
+
},
|
1605
|
+
{
|
1606
|
+
"internalType": "uint256",
|
1607
|
+
"name": "lockedAmount",
|
1608
|
+
"type": "uint256"
|
1609
|
+
},
|
1610
|
+
{
|
1611
|
+
"internalType": "uint256",
|
1612
|
+
"name": "balanceAmount",
|
1613
|
+
"type": "uint256"
|
1614
|
+
},
|
1615
|
+
{
|
1616
|
+
"internalType": "Seconds",
|
1617
|
+
"name": "lifetime",
|
1618
|
+
"type": "uint40"
|
1619
|
+
},
|
1620
|
+
{
|
1621
|
+
"internalType": "Timestamp",
|
1622
|
+
"name": "expiredAt",
|
1623
|
+
"type": "uint40"
|
1624
|
+
},
|
1625
|
+
{
|
1626
|
+
"internalType": "Timestamp",
|
1627
|
+
"name": "closedAt",
|
1628
|
+
"type": "uint40"
|
1629
|
+
}
|
1630
|
+
],
|
1631
|
+
"internalType": "struct IBundle.BundleInfo",
|
1632
|
+
"name": "bundle",
|
1633
|
+
"type": "tuple"
|
1634
|
+
},
|
1635
|
+
{
|
1636
|
+
"internalType": "StateId",
|
1637
|
+
"name": "newState",
|
1638
|
+
"type": "uint8"
|
1639
|
+
}
|
1640
|
+
],
|
1641
|
+
"name": "updateBundle",
|
1642
|
+
"outputs": [],
|
1643
|
+
"stateMutability": "nonpayable",
|
1644
|
+
"type": "function"
|
1645
|
+
},
|
1646
|
+
{
|
1647
|
+
"inputs": [
|
1648
|
+
{
|
1649
|
+
"internalType": "NftId",
|
1650
|
+
"name": "bundleNftId",
|
1651
|
+
"type": "uint96"
|
1652
|
+
},
|
1653
|
+
{
|
1654
|
+
"internalType": "StateId",
|
1655
|
+
"name": "newState",
|
1656
|
+
"type": "uint8"
|
1657
|
+
}
|
1658
|
+
],
|
1659
|
+
"name": "updateBundleState",
|
1660
|
+
"outputs": [],
|
1661
|
+
"stateMutability": "nonpayable",
|
1662
|
+
"type": "function"
|
1663
|
+
},
|
1664
|
+
{
|
1665
|
+
"inputs": [
|
1666
|
+
{
|
1667
|
+
"internalType": "NftId",
|
1668
|
+
"name": "distributionNftId",
|
1669
|
+
"type": "uint96"
|
1670
|
+
},
|
1671
|
+
{
|
1672
|
+
"components": [
|
1673
|
+
{
|
1674
|
+
"internalType": "NftId",
|
1675
|
+
"name": "productNftId",
|
1676
|
+
"type": "uint96"
|
1677
|
+
},
|
1678
|
+
{
|
1679
|
+
"internalType": "contract TokenHandler",
|
1680
|
+
"name": "tokenHandler",
|
1681
|
+
"type": "address"
|
1682
|
+
},
|
1683
|
+
{
|
1684
|
+
"components": [
|
1685
|
+
{
|
1686
|
+
"internalType": "UFixed",
|
1687
|
+
"name": "fractionalFee",
|
1688
|
+
"type": "uint256"
|
1689
|
+
},
|
1690
|
+
{
|
1691
|
+
"internalType": "uint256",
|
1692
|
+
"name": "fixedFee",
|
1693
|
+
"type": "uint256"
|
1694
|
+
}
|
1695
|
+
],
|
1696
|
+
"internalType": "struct Fee",
|
1697
|
+
"name": "minDistributionOwnerFee",
|
1698
|
+
"type": "tuple"
|
1699
|
+
},
|
1700
|
+
{
|
1701
|
+
"components": [
|
1702
|
+
{
|
1703
|
+
"internalType": "UFixed",
|
1704
|
+
"name": "fractionalFee",
|
1705
|
+
"type": "uint256"
|
1706
|
+
},
|
1707
|
+
{
|
1708
|
+
"internalType": "uint256",
|
1709
|
+
"name": "fixedFee",
|
1710
|
+
"type": "uint256"
|
1711
|
+
}
|
1712
|
+
],
|
1713
|
+
"internalType": "struct Fee",
|
1714
|
+
"name": "distributionFee",
|
1715
|
+
"type": "tuple"
|
1716
|
+
},
|
1717
|
+
{
|
1718
|
+
"internalType": "address",
|
1719
|
+
"name": "wallet",
|
1720
|
+
"type": "address"
|
1721
|
+
},
|
1722
|
+
{
|
1723
|
+
"internalType": "uint256",
|
1724
|
+
"name": "sumDistributionFees",
|
1725
|
+
"type": "uint256"
|
1726
|
+
}
|
1727
|
+
],
|
1728
|
+
"internalType": "struct ISetup.DistributionSetupInfo",
|
1729
|
+
"name": "setup",
|
1730
|
+
"type": "tuple"
|
1731
|
+
},
|
1732
|
+
{
|
1733
|
+
"internalType": "StateId",
|
1734
|
+
"name": "newState",
|
1735
|
+
"type": "uint8"
|
1736
|
+
}
|
1737
|
+
],
|
1738
|
+
"name": "updateDistributionSetup",
|
1739
|
+
"outputs": [],
|
1740
|
+
"stateMutability": "nonpayable",
|
1741
|
+
"type": "function"
|
1742
|
+
},
|
1743
|
+
{
|
1744
|
+
"inputs": [
|
1745
|
+
{
|
1746
|
+
"internalType": "NftId",
|
1747
|
+
"name": "distributionNftId",
|
1748
|
+
"type": "uint96"
|
1749
|
+
},
|
1750
|
+
{
|
1751
|
+
"internalType": "StateId",
|
1752
|
+
"name": "newState",
|
1753
|
+
"type": "uint8"
|
1754
|
+
}
|
1755
|
+
],
|
1756
|
+
"name": "updateDistributionSetupState",
|
1757
|
+
"outputs": [],
|
1758
|
+
"stateMutability": "nonpayable",
|
1759
|
+
"type": "function"
|
1760
|
+
},
|
1761
|
+
{
|
1762
|
+
"inputs": [
|
1763
|
+
{
|
1764
|
+
"internalType": "NftId",
|
1765
|
+
"name": "nftId",
|
1766
|
+
"type": "uint96"
|
1767
|
+
},
|
1768
|
+
{
|
1769
|
+
"components": [
|
1770
|
+
{
|
1771
|
+
"internalType": "DistributorType",
|
1772
|
+
"name": "distributorType",
|
1773
|
+
"type": "bytes8"
|
1176
1774
|
},
|
1177
1775
|
{
|
1178
|
-
"internalType": "
|
1179
|
-
"name": "
|
1180
|
-
"type": "
|
1776
|
+
"internalType": "bool",
|
1777
|
+
"name": "active",
|
1778
|
+
"type": "bool"
|
1181
1779
|
},
|
1182
1780
|
{
|
1183
|
-
"internalType": "
|
1184
|
-
"name": "
|
1185
|
-
"type": "
|
1781
|
+
"internalType": "bytes",
|
1782
|
+
"name": "data",
|
1783
|
+
"type": "bytes"
|
1186
1784
|
},
|
1187
1785
|
{
|
1188
1786
|
"internalType": "uint256",
|
1189
|
-
"name": "
|
1787
|
+
"name": "sumCommisions",
|
1190
1788
|
"type": "uint256"
|
1191
1789
|
},
|
1192
1790
|
{
|
1193
1791
|
"internalType": "uint256",
|
1194
|
-
"name": "
|
1792
|
+
"name": "numPoliciesSold",
|
1195
1793
|
"type": "uint256"
|
1196
|
-
},
|
1197
|
-
{
|
1198
|
-
"internalType": "Timestamp",
|
1199
|
-
"name": "expiredAt",
|
1200
|
-
"type": "uint40"
|
1201
|
-
},
|
1202
|
-
{
|
1203
|
-
"internalType": "Timestamp",
|
1204
|
-
"name": "closedAt",
|
1205
|
-
"type": "uint40"
|
1206
1794
|
}
|
1207
1795
|
],
|
1208
|
-
"internalType": "struct
|
1209
|
-
"name": "
|
1796
|
+
"internalType": "struct IDistribution.DistributorInfo",
|
1797
|
+
"name": "info",
|
1210
1798
|
"type": "tuple"
|
1211
1799
|
},
|
1212
1800
|
{
|
@@ -1215,7 +1803,7 @@
|
|
1215
1803
|
"type": "uint8"
|
1216
1804
|
}
|
1217
1805
|
],
|
1218
|
-
"name": "
|
1806
|
+
"name": "updateDistributor",
|
1219
1807
|
"outputs": [],
|
1220
1808
|
"stateMutability": "nonpayable",
|
1221
1809
|
"type": "function"
|
@@ -1224,7 +1812,7 @@
|
|
1224
1812
|
"inputs": [
|
1225
1813
|
{
|
1226
1814
|
"internalType": "NftId",
|
1227
|
-
"name": "
|
1815
|
+
"name": "nftId",
|
1228
1816
|
"type": "uint96"
|
1229
1817
|
},
|
1230
1818
|
{
|
@@ -1233,7 +1821,7 @@
|
|
1233
1821
|
"type": "uint8"
|
1234
1822
|
}
|
1235
1823
|
],
|
1236
|
-
"name": "
|
1824
|
+
"name": "updateDistributorState",
|
1237
1825
|
"outputs": [],
|
1238
1826
|
"stateMutability": "nonpayable",
|
1239
1827
|
"type": "function"
|
@@ -1241,52 +1829,60 @@
|
|
1241
1829
|
{
|
1242
1830
|
"inputs": [
|
1243
1831
|
{
|
1244
|
-
"internalType": "
|
1245
|
-
"name": "
|
1246
|
-
"type": "
|
1832
|
+
"internalType": "Key32",
|
1833
|
+
"name": "distributorKey",
|
1834
|
+
"type": "bytes32"
|
1247
1835
|
},
|
1248
1836
|
{
|
1249
1837
|
"components": [
|
1250
1838
|
{
|
1251
|
-
"internalType": "
|
1252
|
-
"name": "
|
1253
|
-
"type": "
|
1839
|
+
"internalType": "string",
|
1840
|
+
"name": "name",
|
1841
|
+
"type": "string"
|
1254
1842
|
},
|
1255
1843
|
{
|
1256
|
-
"internalType": "
|
1257
|
-
"name": "
|
1258
|
-
"type": "
|
1844
|
+
"internalType": "UFixed",
|
1845
|
+
"name": "minDiscountPercentage",
|
1846
|
+
"type": "uint256"
|
1259
1847
|
},
|
1260
1848
|
{
|
1261
|
-
"
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
|
1273
|
-
"
|
1274
|
-
|
1275
|
-
|
1849
|
+
"internalType": "UFixed",
|
1850
|
+
"name": "maxDiscountPercentage",
|
1851
|
+
"type": "uint256"
|
1852
|
+
},
|
1853
|
+
{
|
1854
|
+
"internalType": "UFixed",
|
1855
|
+
"name": "commissionPercentage",
|
1856
|
+
"type": "uint256"
|
1857
|
+
},
|
1858
|
+
{
|
1859
|
+
"internalType": "uint32",
|
1860
|
+
"name": "maxReferralCount",
|
1861
|
+
"type": "uint32"
|
1862
|
+
},
|
1863
|
+
{
|
1864
|
+
"internalType": "uint32",
|
1865
|
+
"name": "maxReferralLifetime",
|
1866
|
+
"type": "uint32"
|
1276
1867
|
},
|
1277
1868
|
{
|
1278
1869
|
"internalType": "bool",
|
1279
|
-
"name": "
|
1870
|
+
"name": "allowSelfReferrals",
|
1280
1871
|
"type": "bool"
|
1281
1872
|
},
|
1282
1873
|
{
|
1283
|
-
"internalType": "
|
1284
|
-
"name": "
|
1285
|
-
"type": "
|
1874
|
+
"internalType": "bool",
|
1875
|
+
"name": "allowRenewals",
|
1876
|
+
"type": "bool"
|
1877
|
+
},
|
1878
|
+
{
|
1879
|
+
"internalType": "bytes",
|
1880
|
+
"name": "data",
|
1881
|
+
"type": "bytes"
|
1286
1882
|
}
|
1287
1883
|
],
|
1288
|
-
"internalType": "struct
|
1289
|
-
"name": "
|
1884
|
+
"internalType": "struct IDistribution.DistributorTypeInfo",
|
1885
|
+
"name": "info",
|
1290
1886
|
"type": "tuple"
|
1291
1887
|
},
|
1292
1888
|
{
|
@@ -1295,7 +1891,7 @@
|
|
1295
1891
|
"type": "uint8"
|
1296
1892
|
}
|
1297
1893
|
],
|
1298
|
-
"name": "
|
1894
|
+
"name": "updateDistributorType",
|
1299
1895
|
"outputs": [],
|
1300
1896
|
"stateMutability": "nonpayable",
|
1301
1897
|
"type": "function"
|
@@ -1303,9 +1899,9 @@
|
|
1303
1899
|
{
|
1304
1900
|
"inputs": [
|
1305
1901
|
{
|
1306
|
-
"internalType": "
|
1307
|
-
"name": "
|
1308
|
-
"type": "
|
1902
|
+
"internalType": "Key32",
|
1903
|
+
"name": "distributorKey",
|
1904
|
+
"type": "bytes32"
|
1309
1905
|
},
|
1310
1906
|
{
|
1311
1907
|
"internalType": "StateId",
|
@@ -1313,7 +1909,7 @@
|
|
1313
1909
|
"type": "uint8"
|
1314
1910
|
}
|
1315
1911
|
],
|
1316
|
-
"name": "
|
1912
|
+
"name": "updateDistributorTypeState",
|
1317
1913
|
"outputs": [],
|
1318
1914
|
"stateMutability": "nonpayable",
|
1319
1915
|
"type": "function"
|
@@ -1363,9 +1959,9 @@
|
|
1363
1959
|
"type": "uint256"
|
1364
1960
|
},
|
1365
1961
|
{
|
1366
|
-
"internalType": "
|
1962
|
+
"internalType": "Seconds",
|
1367
1963
|
"name": "lifetime",
|
1368
|
-
"type": "
|
1964
|
+
"type": "uint40"
|
1369
1965
|
},
|
1370
1966
|
{
|
1371
1967
|
"internalType": "bytes",
|
@@ -1460,11 +2056,36 @@
|
|
1460
2056
|
"name": "tokenHandler",
|
1461
2057
|
"type": "address"
|
1462
2058
|
},
|
2059
|
+
{
|
2060
|
+
"internalType": "uint256",
|
2061
|
+
"name": "maxCapitalAmount",
|
2062
|
+
"type": "uint256"
|
2063
|
+
},
|
2064
|
+
{
|
2065
|
+
"internalType": "bool",
|
2066
|
+
"name": "isInterceptingBundleTransfers",
|
2067
|
+
"type": "bool"
|
2068
|
+
},
|
2069
|
+
{
|
2070
|
+
"internalType": "bool",
|
2071
|
+
"name": "isExternallyManaged",
|
2072
|
+
"type": "bool"
|
2073
|
+
},
|
2074
|
+
{
|
2075
|
+
"internalType": "bool",
|
2076
|
+
"name": "isVerifyingApplications",
|
2077
|
+
"type": "bool"
|
2078
|
+
},
|
1463
2079
|
{
|
1464
2080
|
"internalType": "UFixed",
|
1465
2081
|
"name": "collateralizationLevel",
|
1466
2082
|
"type": "uint256"
|
1467
2083
|
},
|
2084
|
+
{
|
2085
|
+
"internalType": "UFixed",
|
2086
|
+
"name": "retentionLevel",
|
2087
|
+
"type": "uint256"
|
2088
|
+
},
|
1468
2089
|
{
|
1469
2090
|
"components": [
|
1470
2091
|
{
|
@@ -1516,16 +2137,6 @@
|
|
1516
2137
|
"name": "performanceFee",
|
1517
2138
|
"type": "tuple"
|
1518
2139
|
},
|
1519
|
-
{
|
1520
|
-
"internalType": "bool",
|
1521
|
-
"name": "isIntercepting",
|
1522
|
-
"type": "bool"
|
1523
|
-
},
|
1524
|
-
{
|
1525
|
-
"internalType": "bool",
|
1526
|
-
"name": "isConfirmingApplication",
|
1527
|
-
"type": "bool"
|
1528
|
-
},
|
1529
2140
|
{
|
1530
2141
|
"internalType": "address",
|
1531
2142
|
"name": "wallet",
|
@@ -1594,23 +2205,6 @@
|
|
1594
2205
|
"name": "poolNftId",
|
1595
2206
|
"type": "uint96"
|
1596
2207
|
},
|
1597
|
-
{
|
1598
|
-
"components": [
|
1599
|
-
{
|
1600
|
-
"internalType": "UFixed",
|
1601
|
-
"name": "fractionalFee",
|
1602
|
-
"type": "uint256"
|
1603
|
-
},
|
1604
|
-
{
|
1605
|
-
"internalType": "uint256",
|
1606
|
-
"name": "fixedFee",
|
1607
|
-
"type": "uint256"
|
1608
|
-
}
|
1609
|
-
],
|
1610
|
-
"internalType": "struct Fee",
|
1611
|
-
"name": "distributionFee",
|
1612
|
-
"type": "tuple"
|
1613
|
-
},
|
1614
2208
|
{
|
1615
2209
|
"components": [
|
1616
2210
|
{
|
@@ -1645,57 +2239,6 @@
|
|
1645
2239
|
"name": "processingFee",
|
1646
2240
|
"type": "tuple"
|
1647
2241
|
},
|
1648
|
-
{
|
1649
|
-
"components": [
|
1650
|
-
{
|
1651
|
-
"internalType": "UFixed",
|
1652
|
-
"name": "fractionalFee",
|
1653
|
-
"type": "uint256"
|
1654
|
-
},
|
1655
|
-
{
|
1656
|
-
"internalType": "uint256",
|
1657
|
-
"name": "fixedFee",
|
1658
|
-
"type": "uint256"
|
1659
|
-
}
|
1660
|
-
],
|
1661
|
-
"internalType": "struct Fee",
|
1662
|
-
"name": "poolFee",
|
1663
|
-
"type": "tuple"
|
1664
|
-
},
|
1665
|
-
{
|
1666
|
-
"components": [
|
1667
|
-
{
|
1668
|
-
"internalType": "UFixed",
|
1669
|
-
"name": "fractionalFee",
|
1670
|
-
"type": "uint256"
|
1671
|
-
},
|
1672
|
-
{
|
1673
|
-
"internalType": "uint256",
|
1674
|
-
"name": "fixedFee",
|
1675
|
-
"type": "uint256"
|
1676
|
-
}
|
1677
|
-
],
|
1678
|
-
"internalType": "struct Fee",
|
1679
|
-
"name": "stakingFee",
|
1680
|
-
"type": "tuple"
|
1681
|
-
},
|
1682
|
-
{
|
1683
|
-
"components": [
|
1684
|
-
{
|
1685
|
-
"internalType": "UFixed",
|
1686
|
-
"name": "fractionalFee",
|
1687
|
-
"type": "uint256"
|
1688
|
-
},
|
1689
|
-
{
|
1690
|
-
"internalType": "uint256",
|
1691
|
-
"name": "fixedFee",
|
1692
|
-
"type": "uint256"
|
1693
|
-
}
|
1694
|
-
],
|
1695
|
-
"internalType": "struct Fee",
|
1696
|
-
"name": "performanceFee",
|
1697
|
-
"type": "tuple"
|
1698
|
-
},
|
1699
2242
|
{
|
1700
2243
|
"internalType": "bool",
|
1701
2244
|
"name": "isIntercepting",
|
@@ -1740,6 +2283,84 @@
|
|
1740
2283
|
"stateMutability": "nonpayable",
|
1741
2284
|
"type": "function"
|
1742
2285
|
},
|
2286
|
+
{
|
2287
|
+
"inputs": [
|
2288
|
+
{
|
2289
|
+
"internalType": "Key32",
|
2290
|
+
"name": "referralKey",
|
2291
|
+
"type": "bytes32"
|
2292
|
+
},
|
2293
|
+
{
|
2294
|
+
"components": [
|
2295
|
+
{
|
2296
|
+
"internalType": "NftId",
|
2297
|
+
"name": "distributorNftId",
|
2298
|
+
"type": "uint96"
|
2299
|
+
},
|
2300
|
+
{
|
2301
|
+
"internalType": "string",
|
2302
|
+
"name": "referralCode",
|
2303
|
+
"type": "string"
|
2304
|
+
},
|
2305
|
+
{
|
2306
|
+
"internalType": "UFixed",
|
2307
|
+
"name": "discountPercentage",
|
2308
|
+
"type": "uint256"
|
2309
|
+
},
|
2310
|
+
{
|
2311
|
+
"internalType": "uint32",
|
2312
|
+
"name": "maxReferrals",
|
2313
|
+
"type": "uint32"
|
2314
|
+
},
|
2315
|
+
{
|
2316
|
+
"internalType": "uint32",
|
2317
|
+
"name": "usedReferrals",
|
2318
|
+
"type": "uint32"
|
2319
|
+
},
|
2320
|
+
{
|
2321
|
+
"internalType": "Timestamp",
|
2322
|
+
"name": "expiryAt",
|
2323
|
+
"type": "uint40"
|
2324
|
+
},
|
2325
|
+
{
|
2326
|
+
"internalType": "bytes",
|
2327
|
+
"name": "data",
|
2328
|
+
"type": "bytes"
|
2329
|
+
}
|
2330
|
+
],
|
2331
|
+
"internalType": "struct IDistribution.ReferralInfo",
|
2332
|
+
"name": "referralInfo",
|
2333
|
+
"type": "tuple"
|
2334
|
+
},
|
2335
|
+
{
|
2336
|
+
"internalType": "StateId",
|
2337
|
+
"name": "newState",
|
2338
|
+
"type": "uint8"
|
2339
|
+
}
|
2340
|
+
],
|
2341
|
+
"name": "updateReferral",
|
2342
|
+
"outputs": [],
|
2343
|
+
"stateMutability": "nonpayable",
|
2344
|
+
"type": "function"
|
2345
|
+
},
|
2346
|
+
{
|
2347
|
+
"inputs": [
|
2348
|
+
{
|
2349
|
+
"internalType": "Key32",
|
2350
|
+
"name": "referralKey",
|
2351
|
+
"type": "bytes32"
|
2352
|
+
},
|
2353
|
+
{
|
2354
|
+
"internalType": "StateId",
|
2355
|
+
"name": "newState",
|
2356
|
+
"type": "uint8"
|
2357
|
+
}
|
2358
|
+
],
|
2359
|
+
"name": "updateReferralState",
|
2360
|
+
"outputs": [],
|
2361
|
+
"stateMutability": "nonpayable",
|
2362
|
+
"type": "function"
|
2363
|
+
},
|
1743
2364
|
{
|
1744
2365
|
"inputs": [
|
1745
2366
|
{
|