@etherisc/gif-next 0.0.2-da06f3b-803 → 0.0.2-da0f894-204
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 +1 -1
- package/artifacts/contracts/components/Component.sol/Component.json +212 -94
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +552 -122
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IComponent.sol/IComponent.json +64 -72
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +279 -98
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +406 -90
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +68 -144
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +654 -117
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +316 -166
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +2 -2
- 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 +765 -323
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +97 -180
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +841 -574
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +134 -231
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +98 -124
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +265 -269
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +319 -99
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +2 -2
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +118 -169
- 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 +62 -36
- 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 +947 -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 +261 -267
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +305 -93
- 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 +1031 -250
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +441 -85
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +535 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +130 -212
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +409 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +552 -135
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +40 -287
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +22 -169
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +22 -169
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +164 -391
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +311 -127
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +142 -221
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +302 -90
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +142 -221
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +302 -90
- 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 +15 -21
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +83 -174
- 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 +28 -34
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +2 -2
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +193 -216
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +300 -94
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +11 -11
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +141 -37
- 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 -29
- 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 -169
- 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 +113 -33
- 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 -74
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +125 -55
- 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 +113 -164
- 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 +125 -55
- 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 +134 -221
- 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 +82 -77
- package/contracts/components/Distribution.sol +188 -48
- package/contracts/components/IComponent.sol +42 -17
- package/contracts/components/IDistributionComponent.sol +39 -7
- package/contracts/components/IPoolComponent.sol +121 -21
- package/contracts/components/IProductComponent.sol +3 -2
- package/contracts/components/Pool.sol +290 -120
- package/contracts/components/Product.sol +92 -69
- package/contracts/instance/BundleManager.sol +1 -1
- package/contracts/instance/IInstance.sol +21 -1
- package/contracts/instance/IInstanceService.sol +19 -2
- package/contracts/instance/Instance.sol +58 -36
- package/contracts/instance/InstanceAccessManager.sol +136 -253
- package/contracts/instance/InstanceService.sol +154 -137
- package/contracts/instance/InstanceServiceManager.sol +1 -1
- package/contracts/instance/base/ComponentService.sol +1 -1
- package/contracts/instance/module/IAccess.sol +10 -11
- 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 +346 -0
- package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
- package/contracts/instance/service/BundleService.sol +15 -9
- 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 +303 -15
- package/contracts/instance/service/DistributionServiceManager.sol +1 -1
- package/contracts/instance/service/IApplicationService.sol +81 -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 +126 -260
- package/contracts/instance/service/PolicyServiceManager.sol +2 -2
- package/contracts/instance/service/PoolService.sol +2 -3
- package/contracts/instance/service/PoolServiceManager.sol +1 -1
- package/contracts/instance/service/ProductService.sol +9 -9
- package/contracts/instance/service/ProductServiceManager.sol +2 -2
- package/contracts/registry/IRegistry.sol +3 -4
- package/contracts/registry/IRegistryService.sol +10 -8
- package/contracts/registry/Registry.sol +28 -21
- package/contracts/registry/RegistryService.sol +69 -48
- package/contracts/registry/RegistryServiceManager.sol +13 -13
- package/contracts/registry/ReleaseManager.sol +18 -28
- package/contracts/registry/TokenRegistry.sol +16 -12
- 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 +3 -3
- 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 -85
- package/contracts/shared/PolicyHolder.sol +81 -0
- package/contracts/shared/ProxyManager.sol +100 -25
- package/contracts/shared/Registerable.sol +7 -19
- package/contracts/shared/RegistryLinked.sol +48 -0
- package/contracts/shared/Service.sol +15 -17
- 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 +14 -12
- package/contracts/types/Seconds.sol +54 -0
- package/contracts/types/Timestamp.sol +12 -13
- package/package.json +1 -1
- 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/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
@@ -41,33 +41,6 @@
|
|
41
41
|
"name": "AccessManagedUnauthorized",
|
42
42
|
"type": "error"
|
43
43
|
},
|
44
|
-
{
|
45
|
-
"inputs": [
|
46
|
-
{
|
47
|
-
"internalType": "address",
|
48
|
-
"name": "registry",
|
49
|
-
"type": "address"
|
50
|
-
},
|
51
|
-
{
|
52
|
-
"internalType": "NftId",
|
53
|
-
"name": "nftId",
|
54
|
-
"type": "uint96"
|
55
|
-
}
|
56
|
-
],
|
57
|
-
"name": "ErrorAlreadyLinked",
|
58
|
-
"type": "error"
|
59
|
-
},
|
60
|
-
{
|
61
|
-
"inputs": [
|
62
|
-
{
|
63
|
-
"internalType": "address",
|
64
|
-
"name": "contractAddress",
|
65
|
-
"type": "address"
|
66
|
-
}
|
67
|
-
],
|
68
|
-
"name": "ErrorContractNotRegistered",
|
69
|
-
"type": "error"
|
70
|
-
},
|
71
44
|
{
|
72
45
|
"inputs": [
|
73
46
|
{
|
@@ -95,57 +68,63 @@
|
|
95
68
|
"internalType": "NftId",
|
96
69
|
"name": "nftId",
|
97
70
|
"type": "uint96"
|
98
|
-
},
|
99
|
-
{
|
100
|
-
"internalType": "ObjectType",
|
101
|
-
"name": "objectType",
|
102
|
-
"type": "uint8"
|
103
71
|
}
|
104
72
|
],
|
105
|
-
"name": "
|
73
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
106
74
|
"type": "error"
|
107
75
|
},
|
108
76
|
{
|
109
77
|
"inputs": [
|
110
78
|
{
|
111
79
|
"internalType": "address",
|
112
|
-
"name": "
|
80
|
+
"name": "contractAddress",
|
113
81
|
"type": "address"
|
114
82
|
}
|
115
83
|
],
|
116
|
-
"name": "
|
84
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
85
|
+
"type": "error"
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"inputs": [],
|
89
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
117
90
|
"type": "error"
|
118
91
|
},
|
119
92
|
{
|
120
93
|
"inputs": [
|
121
94
|
{
|
122
95
|
"internalType": "address",
|
123
|
-
"name": "
|
96
|
+
"name": "account",
|
124
97
|
"type": "address"
|
125
98
|
}
|
126
99
|
],
|
127
|
-
"name": "
|
100
|
+
"name": "ErrorNftOwnableNotOwner",
|
128
101
|
"type": "error"
|
129
102
|
},
|
130
103
|
{
|
131
|
-
"inputs": [
|
132
|
-
|
104
|
+
"inputs": [
|
105
|
+
{
|
106
|
+
"internalType": "NftId",
|
107
|
+
"name": "nftId",
|
108
|
+
"type": "uint96"
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"internalType": "ObjectType",
|
112
|
+
"name": "objectType",
|
113
|
+
"type": "uint8"
|
114
|
+
}
|
115
|
+
],
|
116
|
+
"name": "ErrorNoLifecycle",
|
133
117
|
"type": "error"
|
134
118
|
},
|
135
119
|
{
|
136
120
|
"inputs": [
|
137
121
|
{
|
138
122
|
"internalType": "address",
|
139
|
-
"name": "
|
123
|
+
"name": "registryAddress",
|
140
124
|
"type": "address"
|
141
125
|
}
|
142
126
|
],
|
143
|
-
"name": "
|
144
|
-
"type": "error"
|
145
|
-
},
|
146
|
-
{
|
147
|
-
"inputs": [],
|
148
|
-
"name": "ErrorRegistryNotInitialized",
|
127
|
+
"name": "ErrorNotRegistry",
|
149
128
|
"type": "error"
|
150
129
|
},
|
151
130
|
{
|
@@ -303,6 +282,106 @@
|
|
303
282
|
"stateMutability": "view",
|
304
283
|
"type": "function"
|
305
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
|
+
},
|
306
385
|
{
|
307
386
|
"inputs": [
|
308
387
|
{
|
@@ -355,9 +434,9 @@
|
|
355
434
|
"type": "uint256"
|
356
435
|
},
|
357
436
|
{
|
358
|
-
"internalType": "
|
437
|
+
"internalType": "Seconds",
|
359
438
|
"name": "lifetime",
|
360
|
-
"type": "
|
439
|
+
"type": "uint40"
|
361
440
|
},
|
362
441
|
{
|
363
442
|
"internalType": "Timestamp",
|
@@ -413,18 +492,35 @@
|
|
413
492
|
}
|
414
493
|
],
|
415
494
|
"internalType": "struct Fee",
|
416
|
-
"name": "
|
495
|
+
"name": "minDistributionOwnerFee",
|
417
496
|
"type": "tuple"
|
418
497
|
},
|
419
498
|
{
|
420
|
-
"
|
421
|
-
|
422
|
-
|
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"
|
423
514
|
},
|
424
515
|
{
|
425
516
|
"internalType": "address",
|
426
517
|
"name": "wallet",
|
427
518
|
"type": "address"
|
519
|
+
},
|
520
|
+
{
|
521
|
+
"internalType": "uint256",
|
522
|
+
"name": "sumDistributionFees",
|
523
|
+
"type": "uint256"
|
428
524
|
}
|
429
525
|
],
|
430
526
|
"internalType": "struct ISetup.DistributionSetupInfo",
|
@@ -441,98 +537,108 @@
|
|
441
537
|
"inputs": [
|
442
538
|
{
|
443
539
|
"internalType": "NftId",
|
444
|
-
"name": "
|
540
|
+
"name": "nftId",
|
445
541
|
"type": "uint96"
|
446
542
|
},
|
447
543
|
{
|
448
544
|
"components": [
|
449
545
|
{
|
450
|
-
"internalType": "
|
451
|
-
"name": "
|
452
|
-
"type": "
|
453
|
-
},
|
454
|
-
{
|
455
|
-
"internalType": "NftId",
|
456
|
-
"name": "bundleNftId",
|
457
|
-
"type": "uint96"
|
546
|
+
"internalType": "DistributorType",
|
547
|
+
"name": "distributorType",
|
548
|
+
"type": "bytes8"
|
458
549
|
},
|
459
550
|
{
|
460
|
-
"internalType": "
|
461
|
-
"name": "
|
462
|
-
"type": "
|
551
|
+
"internalType": "bool",
|
552
|
+
"name": "active",
|
553
|
+
"type": "bool"
|
463
554
|
},
|
464
555
|
{
|
465
|
-
"internalType": "
|
466
|
-
"name": "
|
467
|
-
"type": "
|
556
|
+
"internalType": "bytes",
|
557
|
+
"name": "data",
|
558
|
+
"type": "bytes"
|
468
559
|
},
|
469
560
|
{
|
470
561
|
"internalType": "uint256",
|
471
|
-
"name": "
|
562
|
+
"name": "sumCommisions",
|
472
563
|
"type": "uint256"
|
473
564
|
},
|
474
565
|
{
|
475
566
|
"internalType": "uint256",
|
476
|
-
"name": "
|
567
|
+
"name": "numPoliciesSold",
|
477
568
|
"type": "uint256"
|
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": [
|
590
|
+
{
|
591
|
+
"internalType": "string",
|
592
|
+
"name": "name",
|
593
|
+
"type": "string"
|
478
594
|
},
|
479
595
|
{
|
480
|
-
"internalType": "
|
481
|
-
"name": "
|
596
|
+
"internalType": "UFixed",
|
597
|
+
"name": "minDiscountPercentage",
|
482
598
|
"type": "uint256"
|
483
599
|
},
|
484
600
|
{
|
485
|
-
"internalType": "
|
486
|
-
"name": "
|
601
|
+
"internalType": "UFixed",
|
602
|
+
"name": "maxDiscountPercentage",
|
487
603
|
"type": "uint256"
|
488
604
|
},
|
489
605
|
{
|
490
|
-
"internalType": "
|
491
|
-
"name": "
|
492
|
-
"type": "
|
606
|
+
"internalType": "UFixed",
|
607
|
+
"name": "commissionPercentage",
|
608
|
+
"type": "uint256"
|
493
609
|
},
|
494
610
|
{
|
495
|
-
"internalType": "
|
496
|
-
"name": "
|
497
|
-
"type": "
|
611
|
+
"internalType": "uint32",
|
612
|
+
"name": "maxReferralCount",
|
613
|
+
"type": "uint32"
|
498
614
|
},
|
499
615
|
{
|
500
|
-
"internalType": "
|
501
|
-
"name": "
|
502
|
-
"type": "
|
616
|
+
"internalType": "uint32",
|
617
|
+
"name": "maxReferralLifetime",
|
618
|
+
"type": "uint32"
|
503
619
|
},
|
504
620
|
{
|
505
|
-
"internalType": "
|
506
|
-
"name": "
|
507
|
-
"type": "
|
621
|
+
"internalType": "bool",
|
622
|
+
"name": "allowSelfReferrals",
|
623
|
+
"type": "bool"
|
508
624
|
},
|
509
625
|
{
|
510
|
-
"internalType": "
|
511
|
-
"name": "
|
512
|
-
"type": "
|
626
|
+
"internalType": "bool",
|
627
|
+
"name": "allowRenewals",
|
628
|
+
"type": "bool"
|
513
629
|
},
|
514
630
|
{
|
515
|
-
"internalType": "
|
516
|
-
"name": "
|
517
|
-
"type": "
|
518
|
-
},
|
519
|
-
{
|
520
|
-
"internalType": "Timestamp",
|
521
|
-
"name": "expiredAt",
|
522
|
-
"type": "uint40"
|
523
|
-
},
|
524
|
-
{
|
525
|
-
"internalType": "Timestamp",
|
526
|
-
"name": "closedAt",
|
527
|
-
"type": "uint40"
|
631
|
+
"internalType": "bytes",
|
632
|
+
"name": "data",
|
633
|
+
"type": "bytes"
|
528
634
|
}
|
529
635
|
],
|
530
|
-
"internalType": "struct
|
531
|
-
"name": "
|
636
|
+
"internalType": "struct IDistribution.DistributorTypeInfo",
|
637
|
+
"name": "info",
|
532
638
|
"type": "tuple"
|
533
639
|
}
|
534
640
|
],
|
535
|
-
"name": "
|
641
|
+
"name": "createDistributorType",
|
536
642
|
"outputs": [],
|
537
643
|
"stateMutability": "nonpayable",
|
538
644
|
"type": "function"
|
@@ -556,11 +662,36 @@
|
|
556
662
|
"name": "tokenHandler",
|
557
663
|
"type": "address"
|
558
664
|
},
|
665
|
+
{
|
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
|
+
},
|
559
685
|
{
|
560
686
|
"internalType": "UFixed",
|
561
687
|
"name": "collateralizationLevel",
|
562
688
|
"type": "uint256"
|
563
689
|
},
|
690
|
+
{
|
691
|
+
"internalType": "UFixed",
|
692
|
+
"name": "retentionLevel",
|
693
|
+
"type": "uint256"
|
694
|
+
},
|
564
695
|
{
|
565
696
|
"components": [
|
566
697
|
{
|
@@ -612,16 +743,6 @@
|
|
612
743
|
"name": "performanceFee",
|
613
744
|
"type": "tuple"
|
614
745
|
},
|
615
|
-
{
|
616
|
-
"internalType": "bool",
|
617
|
-
"name": "isIntercepting",
|
618
|
-
"type": "bool"
|
619
|
-
},
|
620
|
-
{
|
621
|
-
"internalType": "bool",
|
622
|
-
"name": "isConfirmingApplication",
|
623
|
-
"type": "bool"
|
624
|
-
},
|
625
746
|
{
|
626
747
|
"internalType": "address",
|
627
748
|
"name": "wallet",
|
@@ -667,23 +788,6 @@
|
|
667
788
|
"name": "poolNftId",
|
668
789
|
"type": "uint96"
|
669
790
|
},
|
670
|
-
{
|
671
|
-
"components": [
|
672
|
-
{
|
673
|
-
"internalType": "UFixed",
|
674
|
-
"name": "fractionalFee",
|
675
|
-
"type": "uint256"
|
676
|
-
},
|
677
|
-
{
|
678
|
-
"internalType": "uint256",
|
679
|
-
"name": "fixedFee",
|
680
|
-
"type": "uint256"
|
681
|
-
}
|
682
|
-
],
|
683
|
-
"internalType": "struct Fee",
|
684
|
-
"name": "distributionFee",
|
685
|
-
"type": "tuple"
|
686
|
-
},
|
687
791
|
{
|
688
792
|
"components": [
|
689
793
|
{
|
@@ -718,57 +822,6 @@
|
|
718
822
|
"name": "processingFee",
|
719
823
|
"type": "tuple"
|
720
824
|
},
|
721
|
-
{
|
722
|
-
"components": [
|
723
|
-
{
|
724
|
-
"internalType": "UFixed",
|
725
|
-
"name": "fractionalFee",
|
726
|
-
"type": "uint256"
|
727
|
-
},
|
728
|
-
{
|
729
|
-
"internalType": "uint256",
|
730
|
-
"name": "fixedFee",
|
731
|
-
"type": "uint256"
|
732
|
-
}
|
733
|
-
],
|
734
|
-
"internalType": "struct Fee",
|
735
|
-
"name": "poolFee",
|
736
|
-
"type": "tuple"
|
737
|
-
},
|
738
|
-
{
|
739
|
-
"components": [
|
740
|
-
{
|
741
|
-
"internalType": "UFixed",
|
742
|
-
"name": "fractionalFee",
|
743
|
-
"type": "uint256"
|
744
|
-
},
|
745
|
-
{
|
746
|
-
"internalType": "uint256",
|
747
|
-
"name": "fixedFee",
|
748
|
-
"type": "uint256"
|
749
|
-
}
|
750
|
-
],
|
751
|
-
"internalType": "struct Fee",
|
752
|
-
"name": "stakingFee",
|
753
|
-
"type": "tuple"
|
754
|
-
},
|
755
|
-
{
|
756
|
-
"components": [
|
757
|
-
{
|
758
|
-
"internalType": "UFixed",
|
759
|
-
"name": "fractionalFee",
|
760
|
-
"type": "uint256"
|
761
|
-
},
|
762
|
-
{
|
763
|
-
"internalType": "uint256",
|
764
|
-
"name": "fixedFee",
|
765
|
-
"type": "uint256"
|
766
|
-
}
|
767
|
-
],
|
768
|
-
"internalType": "struct Fee",
|
769
|
-
"name": "performanceFee",
|
770
|
-
"type": "tuple"
|
771
|
-
},
|
772
825
|
{
|
773
826
|
"internalType": "bool",
|
774
827
|
"name": "isIntercepting",
|
@@ -790,6 +843,61 @@
|
|
790
843
|
"stateMutability": "nonpayable",
|
791
844
|
"type": "function"
|
792
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
|
+
},
|
793
901
|
{
|
794
902
|
"inputs": [
|
795
903
|
{
|
@@ -1174,6 +1282,19 @@
|
|
1174
1282
|
"stateMutability": "view",
|
1175
1283
|
"type": "function"
|
1176
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
|
+
},
|
1177
1298
|
{
|
1178
1299
|
"inputs": [
|
1179
1300
|
{
|
@@ -1317,6 +1438,129 @@
|
|
1317
1438
|
"stateMutability": "pure",
|
1318
1439
|
"type": "function"
|
1319
1440
|
},
|
1441
|
+
{
|
1442
|
+
"inputs": [
|
1443
|
+
{
|
1444
|
+
"internalType": "NftId",
|
1445
|
+
"name": "applicationNftId",
|
1446
|
+
"type": "uint96"
|
1447
|
+
},
|
1448
|
+
{
|
1449
|
+
"components": [
|
1450
|
+
{
|
1451
|
+
"internalType": "NftId",
|
1452
|
+
"name": "productNftId",
|
1453
|
+
"type": "uint96"
|
1454
|
+
},
|
1455
|
+
{
|
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
|
+
},
|
1320
1564
|
{
|
1321
1565
|
"inputs": [
|
1322
1566
|
{
|
@@ -1349,43 +1593,208 @@
|
|
1349
1593
|
"type": "tuple"
|
1350
1594
|
},
|
1351
1595
|
{
|
1352
|
-
"internalType": "bytes",
|
1353
|
-
"name": "filter",
|
1354
|
-
"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"
|
1355
1774
|
},
|
1356
1775
|
{
|
1357
|
-
"internalType": "
|
1358
|
-
"name": "
|
1359
|
-
"type": "
|
1776
|
+
"internalType": "bool",
|
1777
|
+
"name": "active",
|
1778
|
+
"type": "bool"
|
1360
1779
|
},
|
1361
1780
|
{
|
1362
|
-
"internalType": "
|
1363
|
-
"name": "
|
1364
|
-
"type": "
|
1781
|
+
"internalType": "bytes",
|
1782
|
+
"name": "data",
|
1783
|
+
"type": "bytes"
|
1365
1784
|
},
|
1366
1785
|
{
|
1367
1786
|
"internalType": "uint256",
|
1368
|
-
"name": "
|
1787
|
+
"name": "sumCommisions",
|
1369
1788
|
"type": "uint256"
|
1370
1789
|
},
|
1371
1790
|
{
|
1372
1791
|
"internalType": "uint256",
|
1373
|
-
"name": "
|
1792
|
+
"name": "numPoliciesSold",
|
1374
1793
|
"type": "uint256"
|
1375
|
-
},
|
1376
|
-
{
|
1377
|
-
"internalType": "Timestamp",
|
1378
|
-
"name": "expiredAt",
|
1379
|
-
"type": "uint40"
|
1380
|
-
},
|
1381
|
-
{
|
1382
|
-
"internalType": "Timestamp",
|
1383
|
-
"name": "closedAt",
|
1384
|
-
"type": "uint40"
|
1385
1794
|
}
|
1386
1795
|
],
|
1387
|
-
"internalType": "struct
|
1388
|
-
"name": "
|
1796
|
+
"internalType": "struct IDistribution.DistributorInfo",
|
1797
|
+
"name": "info",
|
1389
1798
|
"type": "tuple"
|
1390
1799
|
},
|
1391
1800
|
{
|
@@ -1394,7 +1803,7 @@
|
|
1394
1803
|
"type": "uint8"
|
1395
1804
|
}
|
1396
1805
|
],
|
1397
|
-
"name": "
|
1806
|
+
"name": "updateDistributor",
|
1398
1807
|
"outputs": [],
|
1399
1808
|
"stateMutability": "nonpayable",
|
1400
1809
|
"type": "function"
|
@@ -1403,7 +1812,7 @@
|
|
1403
1812
|
"inputs": [
|
1404
1813
|
{
|
1405
1814
|
"internalType": "NftId",
|
1406
|
-
"name": "
|
1815
|
+
"name": "nftId",
|
1407
1816
|
"type": "uint96"
|
1408
1817
|
},
|
1409
1818
|
{
|
@@ -1412,7 +1821,7 @@
|
|
1412
1821
|
"type": "uint8"
|
1413
1822
|
}
|
1414
1823
|
],
|
1415
|
-
"name": "
|
1824
|
+
"name": "updateDistributorState",
|
1416
1825
|
"outputs": [],
|
1417
1826
|
"stateMutability": "nonpayable",
|
1418
1827
|
"type": "function"
|
@@ -1420,52 +1829,60 @@
|
|
1420
1829
|
{
|
1421
1830
|
"inputs": [
|
1422
1831
|
{
|
1423
|
-
"internalType": "
|
1424
|
-
"name": "
|
1425
|
-
"type": "
|
1832
|
+
"internalType": "Key32",
|
1833
|
+
"name": "distributorKey",
|
1834
|
+
"type": "bytes32"
|
1426
1835
|
},
|
1427
1836
|
{
|
1428
1837
|
"components": [
|
1429
1838
|
{
|
1430
|
-
"internalType": "
|
1431
|
-
"name": "
|
1432
|
-
"type": "
|
1839
|
+
"internalType": "string",
|
1840
|
+
"name": "name",
|
1841
|
+
"type": "string"
|
1433
1842
|
},
|
1434
1843
|
{
|
1435
|
-
"internalType": "
|
1436
|
-
"name": "
|
1437
|
-
"type": "
|
1844
|
+
"internalType": "UFixed",
|
1845
|
+
"name": "minDiscountPercentage",
|
1846
|
+
"type": "uint256"
|
1438
1847
|
},
|
1439
1848
|
{
|
1440
|
-
"
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1448
|
-
|
1449
|
-
|
1450
|
-
|
1451
|
-
|
1452
|
-
"
|
1453
|
-
|
1454
|
-
|
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"
|
1455
1867
|
},
|
1456
1868
|
{
|
1457
1869
|
"internalType": "bool",
|
1458
|
-
"name": "
|
1870
|
+
"name": "allowSelfReferrals",
|
1459
1871
|
"type": "bool"
|
1460
1872
|
},
|
1461
1873
|
{
|
1462
|
-
"internalType": "
|
1463
|
-
"name": "
|
1464
|
-
"type": "
|
1874
|
+
"internalType": "bool",
|
1875
|
+
"name": "allowRenewals",
|
1876
|
+
"type": "bool"
|
1877
|
+
},
|
1878
|
+
{
|
1879
|
+
"internalType": "bytes",
|
1880
|
+
"name": "data",
|
1881
|
+
"type": "bytes"
|
1465
1882
|
}
|
1466
1883
|
],
|
1467
|
-
"internalType": "struct
|
1468
|
-
"name": "
|
1884
|
+
"internalType": "struct IDistribution.DistributorTypeInfo",
|
1885
|
+
"name": "info",
|
1469
1886
|
"type": "tuple"
|
1470
1887
|
},
|
1471
1888
|
{
|
@@ -1474,7 +1891,7 @@
|
|
1474
1891
|
"type": "uint8"
|
1475
1892
|
}
|
1476
1893
|
],
|
1477
|
-
"name": "
|
1894
|
+
"name": "updateDistributorType",
|
1478
1895
|
"outputs": [],
|
1479
1896
|
"stateMutability": "nonpayable",
|
1480
1897
|
"type": "function"
|
@@ -1482,9 +1899,9 @@
|
|
1482
1899
|
{
|
1483
1900
|
"inputs": [
|
1484
1901
|
{
|
1485
|
-
"internalType": "
|
1486
|
-
"name": "
|
1487
|
-
"type": "
|
1902
|
+
"internalType": "Key32",
|
1903
|
+
"name": "distributorKey",
|
1904
|
+
"type": "bytes32"
|
1488
1905
|
},
|
1489
1906
|
{
|
1490
1907
|
"internalType": "StateId",
|
@@ -1492,7 +1909,7 @@
|
|
1492
1909
|
"type": "uint8"
|
1493
1910
|
}
|
1494
1911
|
],
|
1495
|
-
"name": "
|
1912
|
+
"name": "updateDistributorTypeState",
|
1496
1913
|
"outputs": [],
|
1497
1914
|
"stateMutability": "nonpayable",
|
1498
1915
|
"type": "function"
|
@@ -1542,9 +1959,9 @@
|
|
1542
1959
|
"type": "uint256"
|
1543
1960
|
},
|
1544
1961
|
{
|
1545
|
-
"internalType": "
|
1962
|
+
"internalType": "Seconds",
|
1546
1963
|
"name": "lifetime",
|
1547
|
-
"type": "
|
1964
|
+
"type": "uint40"
|
1548
1965
|
},
|
1549
1966
|
{
|
1550
1967
|
"internalType": "bytes",
|
@@ -1639,11 +2056,36 @@
|
|
1639
2056
|
"name": "tokenHandler",
|
1640
2057
|
"type": "address"
|
1641
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
|
+
},
|
1642
2079
|
{
|
1643
2080
|
"internalType": "UFixed",
|
1644
2081
|
"name": "collateralizationLevel",
|
1645
2082
|
"type": "uint256"
|
1646
2083
|
},
|
2084
|
+
{
|
2085
|
+
"internalType": "UFixed",
|
2086
|
+
"name": "retentionLevel",
|
2087
|
+
"type": "uint256"
|
2088
|
+
},
|
1647
2089
|
{
|
1648
2090
|
"components": [
|
1649
2091
|
{
|
@@ -1695,16 +2137,6 @@
|
|
1695
2137
|
"name": "performanceFee",
|
1696
2138
|
"type": "tuple"
|
1697
2139
|
},
|
1698
|
-
{
|
1699
|
-
"internalType": "bool",
|
1700
|
-
"name": "isIntercepting",
|
1701
|
-
"type": "bool"
|
1702
|
-
},
|
1703
|
-
{
|
1704
|
-
"internalType": "bool",
|
1705
|
-
"name": "isConfirmingApplication",
|
1706
|
-
"type": "bool"
|
1707
|
-
},
|
1708
2140
|
{
|
1709
2141
|
"internalType": "address",
|
1710
2142
|
"name": "wallet",
|
@@ -1773,23 +2205,6 @@
|
|
1773
2205
|
"name": "poolNftId",
|
1774
2206
|
"type": "uint96"
|
1775
2207
|
},
|
1776
|
-
{
|
1777
|
-
"components": [
|
1778
|
-
{
|
1779
|
-
"internalType": "UFixed",
|
1780
|
-
"name": "fractionalFee",
|
1781
|
-
"type": "uint256"
|
1782
|
-
},
|
1783
|
-
{
|
1784
|
-
"internalType": "uint256",
|
1785
|
-
"name": "fixedFee",
|
1786
|
-
"type": "uint256"
|
1787
|
-
}
|
1788
|
-
],
|
1789
|
-
"internalType": "struct Fee",
|
1790
|
-
"name": "distributionFee",
|
1791
|
-
"type": "tuple"
|
1792
|
-
},
|
1793
2208
|
{
|
1794
2209
|
"components": [
|
1795
2210
|
{
|
@@ -1824,57 +2239,6 @@
|
|
1824
2239
|
"name": "processingFee",
|
1825
2240
|
"type": "tuple"
|
1826
2241
|
},
|
1827
|
-
{
|
1828
|
-
"components": [
|
1829
|
-
{
|
1830
|
-
"internalType": "UFixed",
|
1831
|
-
"name": "fractionalFee",
|
1832
|
-
"type": "uint256"
|
1833
|
-
},
|
1834
|
-
{
|
1835
|
-
"internalType": "uint256",
|
1836
|
-
"name": "fixedFee",
|
1837
|
-
"type": "uint256"
|
1838
|
-
}
|
1839
|
-
],
|
1840
|
-
"internalType": "struct Fee",
|
1841
|
-
"name": "poolFee",
|
1842
|
-
"type": "tuple"
|
1843
|
-
},
|
1844
|
-
{
|
1845
|
-
"components": [
|
1846
|
-
{
|
1847
|
-
"internalType": "UFixed",
|
1848
|
-
"name": "fractionalFee",
|
1849
|
-
"type": "uint256"
|
1850
|
-
},
|
1851
|
-
{
|
1852
|
-
"internalType": "uint256",
|
1853
|
-
"name": "fixedFee",
|
1854
|
-
"type": "uint256"
|
1855
|
-
}
|
1856
|
-
],
|
1857
|
-
"internalType": "struct Fee",
|
1858
|
-
"name": "stakingFee",
|
1859
|
-
"type": "tuple"
|
1860
|
-
},
|
1861
|
-
{
|
1862
|
-
"components": [
|
1863
|
-
{
|
1864
|
-
"internalType": "UFixed",
|
1865
|
-
"name": "fractionalFee",
|
1866
|
-
"type": "uint256"
|
1867
|
-
},
|
1868
|
-
{
|
1869
|
-
"internalType": "uint256",
|
1870
|
-
"name": "fixedFee",
|
1871
|
-
"type": "uint256"
|
1872
|
-
}
|
1873
|
-
],
|
1874
|
-
"internalType": "struct Fee",
|
1875
|
-
"name": "performanceFee",
|
1876
|
-
"type": "tuple"
|
1877
|
-
},
|
1878
2242
|
{
|
1879
2243
|
"internalType": "bool",
|
1880
2244
|
"name": "isIntercepting",
|
@@ -1919,6 +2283,84 @@
|
|
1919
2283
|
"stateMutability": "nonpayable",
|
1920
2284
|
"type": "function"
|
1921
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
|
+
},
|
1922
2364
|
{
|
1923
2365
|
"inputs": [
|
1924
2366
|
{
|