@etherisc/gif-next 0.0.2-da06f3b-803 → 0.0.2-da09ec0-359
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +8 -13
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
- package/artifacts/contracts/components/Component.sol/Component.json +315 -98
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +668 -141
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IComponent.sol/IComponent.json +241 -60
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +438 -86
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +526 -144
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +257 -144
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +676 -183
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +435 -186
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +64 -50
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +5 -0
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +267 -1594
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +232 -208
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +393 -2515
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +359 -92
- package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.json +124 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +424 -236
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +338 -409
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +291 -108
- package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +2788 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +8 -13
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +197 -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 +40 -10
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +36 -11
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +51 -42
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
- package/artifacts/contracts/instance/module/IComponents.sol/IComponents.json +10 -0
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
- package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +918 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +648 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +526 -340
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +340 -93
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +1376 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +748 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +982 -198
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +430 -87
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +493 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +290 -270
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +743 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +527 -128
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +181 -296
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +705 -122
- package/artifacts/contracts/instance/service/IPricingService.sol/IPricingService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPricingService.sol/IPricingService.json +510 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +71 -160
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +449 -395
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +349 -114
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +1018 -202
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +360 -89
- package/artifacts/contracts/instance/service/PricingService.sol/PricingService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PricingService.sol/PricingService.json +1004 -0
- package/artifacts/contracts/instance/service/PricingServiceManager.sol/PricingServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PricingServiceManager.sol/PricingServiceManager.json +688 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +231 -223
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +298 -95
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +15 -2
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +15 -2
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +70 -193
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +18 -0
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +28 -15
- 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 +182 -232
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +287 -94
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +23 -11
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +128 -37
- package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
- package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
- 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 +27 -29
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +189 -0
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +8 -29
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/{experiment/inheritance/IA.sol/ISharedA.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +15 -17
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/shared/IService.sol/IService.json +71 -160
- 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 +100 -33
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +302 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +283 -76
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +115 -58
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +71 -0
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
- package/artifacts/contracts/shared/Service.sol/Service.json +172 -160
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +24 -6
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
- package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -152
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
- package/artifacts/contracts/test/TestFee.sol/TestFee.json +2 -2
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +115 -58
- 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 +190 -210
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +8 -190
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
- package/artifacts/contracts/types/Amount.sol/AmountLib.dbg.json +4 -0
- package/artifacts/contracts/types/Amount.sol/AmountLib.json +281 -0
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +179 -0
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +74 -19
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +17 -4
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +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 +209 -0
- package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +23 -4
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
- package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
- package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +38 -7
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/MathLib.json +2 -2
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +2 -2
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
- package/contracts/components/Component.sol +134 -78
- package/contracts/components/Distribution.sol +189 -57
- package/contracts/components/IComponent.sol +62 -15
- package/contracts/components/IDistributionComponent.sol +39 -15
- package/contracts/components/IPoolComponent.sol +86 -23
- package/contracts/components/IProductComponent.sol +8 -6
- package/contracts/components/Pool.sol +230 -136
- package/contracts/components/Product.sol +227 -118
- package/contracts/instance/BundleManager.sol +10 -9
- package/contracts/instance/Cloneable.sol +7 -2
- package/contracts/instance/IInstance.sol +40 -35
- package/contracts/instance/IInstanceService.sol +44 -13
- package/contracts/instance/Instance.sol +131 -171
- package/contracts/instance/InstanceAccessManager.sol +281 -154
- package/contracts/instance/InstanceAuthorizationsLib.sol +308 -0
- package/contracts/instance/InstanceReader.sol +90 -15
- package/contracts/instance/InstanceService.sol +173 -338
- package/contracts/instance/InstanceServiceManager.sol +1 -1
- package/contracts/instance/InstanceStore.sol +212 -0
- package/contracts/instance/ObjectManager.sol +6 -8
- package/contracts/instance/base/ComponentService.sol +53 -39
- package/contracts/instance/base/KeyValueStore.sol +13 -36
- package/contracts/instance/base/Lifecycle.sol +26 -6
- package/contracts/instance/module/IAccess.sol +18 -12
- package/contracts/instance/module/IBundle.sol +8 -5
- package/contracts/instance/module/IComponents.sol +41 -0
- package/contracts/instance/module/IDistribution.sol +3 -0
- package/contracts/instance/module/IPolicy.sol +43 -11
- package/contracts/instance/module/ISetup.sol +7 -20
- package/contracts/instance/service/ApplicationService.sol +186 -0
- package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
- package/contracts/instance/service/BundleService.sol +225 -136
- package/contracts/instance/service/BundleServiceManager.sol +1 -1
- package/contracts/instance/service/ClaimService.sol +437 -0
- package/contracts/instance/service/ClaimServiceManager.sol +35 -0
- package/contracts/instance/service/DistributionService.sol +264 -22
- package/contracts/instance/service/DistributionServiceManager.sol +1 -1
- package/contracts/instance/service/IApplicationService.sol +62 -0
- package/contracts/instance/service/IBundleService.sol +96 -22
- package/contracts/instance/service/IClaimService.sol +90 -0
- package/contracts/instance/service/IDistributionService.sol +76 -1
- package/contracts/instance/service/IPolicyService.sol +40 -54
- package/contracts/instance/service/IPoolService.sol +97 -3
- package/contracts/instance/service/IPricingService.sol +37 -0
- package/contracts/instance/service/PolicyService.sol +200 -362
- package/contracts/instance/service/PolicyServiceManager.sol +2 -2
- package/contracts/instance/service/PoolService.sol +313 -20
- package/contracts/instance/service/PoolServiceManager.sol +1 -1
- package/contracts/instance/service/PricingService.sol +275 -0
- package/contracts/instance/service/PricingServiceManager.sol +51 -0
- package/contracts/instance/service/ProductService.sol +41 -64
- package/contracts/instance/service/ProductServiceManager.sol +2 -2
- package/contracts/registry/ChainNft.sol +8 -0
- package/contracts/registry/IRegistry.sol +3 -2
- package/contracts/registry/IRegistryService.sol +12 -11
- package/contracts/registry/ITransferInterceptor.sol +1 -0
- package/contracts/registry/Registry.sol +30 -20
- package/contracts/registry/RegistryService.sol +75 -51
- package/contracts/registry/RegistryServiceManager.sol +13 -13
- package/contracts/registry/ReleaseManager.sol +32 -40
- package/contracts/registry/TokenRegistry.sol +16 -12
- package/contracts/shared/AccessManagerUpgradeableInitializeable.sol +13 -0
- package/contracts/shared/ERC165.sol +14 -12
- package/contracts/shared/INftOwnable.sol +11 -10
- package/contracts/shared/IPolicyHolder.sol +40 -0
- package/contracts/shared/IRegisterable.sol +3 -3
- package/contracts/shared/IRegistryLinked.sol +11 -0
- package/contracts/shared/IService.sol +6 -4
- package/contracts/shared/IVersionable.sol +4 -47
- package/contracts/shared/NftOwnable.sol +64 -85
- package/contracts/shared/PolicyHolder.sol +94 -0
- package/contracts/shared/ProxyManager.sol +100 -25
- package/contracts/shared/Registerable.sol +16 -27
- package/contracts/shared/RegistryLinked.sol +43 -0
- package/contracts/shared/Service.sol +32 -20
- package/contracts/shared/TokenHandler.sol +14 -6
- package/contracts/shared/Versionable.sol +4 -92
- package/contracts/test/TestRegisterable.sol +1 -1
- package/contracts/test/TestService.sol +1 -1
- package/contracts/types/Amount.sol +109 -0
- package/contracts/types/Blocknumber.sol +1 -0
- package/contracts/types/ClaimId.sol +75 -0
- package/contracts/types/DistributorType.sol +2 -2
- package/contracts/types/Fee.sol +17 -8
- package/contracts/types/NftId.sol +8 -0
- package/contracts/types/ObjectType.sol +16 -7
- package/contracts/types/PayoutId.sol +82 -0
- package/contracts/types/Referral.sol +4 -0
- package/contracts/types/RoleId.sol +12 -8
- package/contracts/types/Seconds.sol +54 -0
- package/contracts/types/StateId.sol +7 -2
- package/contracts/types/Timestamp.sol +18 -13
- package/contracts/types/UFixed.sol +1 -0
- package/contracts/types/Version.sol +1 -0
- package/package.json +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/IB.sol/IB.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.json +0 -50
- 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
package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json
CHANGED
@@ -7,16 +7,259 @@
|
|
7
7
|
"inputs": [
|
8
8
|
{
|
9
9
|
"internalType": "address",
|
10
|
-
"name": "
|
10
|
+
"name": "authority",
|
11
11
|
"type": "address"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"name": "AccessManagedInvalidAuthority",
|
15
|
+
"type": "error"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"inputs": [
|
19
|
+
{
|
20
|
+
"internalType": "address",
|
21
|
+
"name": "caller",
|
22
|
+
"type": "address"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"internalType": "uint32",
|
26
|
+
"name": "delay",
|
27
|
+
"type": "uint32"
|
28
|
+
}
|
29
|
+
],
|
30
|
+
"name": "AccessManagedRequiredDelay",
|
31
|
+
"type": "error"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"inputs": [
|
35
|
+
{
|
36
|
+
"internalType": "address",
|
37
|
+
"name": "caller",
|
38
|
+
"type": "address"
|
39
|
+
}
|
40
|
+
],
|
41
|
+
"name": "AccessManagedUnauthorized",
|
42
|
+
"type": "error"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"inputs": [
|
46
|
+
{
|
47
|
+
"internalType": "address",
|
48
|
+
"name": "caller",
|
49
|
+
"type": "address"
|
50
|
+
}
|
51
|
+
],
|
52
|
+
"name": "ErrorDistributionServiceCallerNotRegistered",
|
53
|
+
"type": "error"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"inputs": [
|
57
|
+
{
|
58
|
+
"internalType": "Amount",
|
59
|
+
"name": "transferredDistributionFeeAmount",
|
60
|
+
"type": "uint96"
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"internalType": "Amount",
|
64
|
+
"name": "expectedDistributionFeeAmount",
|
65
|
+
"type": "uint96"
|
66
|
+
}
|
67
|
+
],
|
68
|
+
"name": "ErrorDistributionServiceInvalidFeeTransferred",
|
69
|
+
"type": "error"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"inputs": [
|
73
|
+
{
|
74
|
+
"internalType": "address",
|
75
|
+
"name": "caller",
|
76
|
+
"type": "address"
|
77
|
+
}
|
78
|
+
],
|
79
|
+
"name": "ErrorIDistributionServiceCallerNotDistributor",
|
80
|
+
"type": "error"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"inputs": [
|
84
|
+
{
|
85
|
+
"internalType": "uint256",
|
86
|
+
"name": "commissionPercentage",
|
87
|
+
"type": "uint256"
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"internalType": "uint256",
|
91
|
+
"name": "maxCommissionPercentage",
|
92
|
+
"type": "uint256"
|
93
|
+
}
|
94
|
+
],
|
95
|
+
"name": "ErrorIDistributionServiceCommissionTooHigh",
|
96
|
+
"type": "error"
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"inputs": [
|
100
|
+
{
|
101
|
+
"internalType": "uint256",
|
102
|
+
"name": "maxDiscountPercentage",
|
103
|
+
"type": "uint256"
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"internalType": "uint256",
|
107
|
+
"name": "discountPercentage",
|
108
|
+
"type": "uint256"
|
109
|
+
}
|
110
|
+
],
|
111
|
+
"name": "ErrorIDistributionServiceDiscountTooHigh",
|
112
|
+
"type": "error"
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"inputs": [
|
116
|
+
{
|
117
|
+
"internalType": "uint256",
|
118
|
+
"name": "minDiscountPercentage",
|
119
|
+
"type": "uint256"
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"internalType": "uint256",
|
123
|
+
"name": "discountPercentage",
|
124
|
+
"type": "uint256"
|
125
|
+
}
|
126
|
+
],
|
127
|
+
"name": "ErrorIDistributionServiceDiscountTooLow",
|
128
|
+
"type": "error"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"inputs": [
|
132
|
+
{
|
133
|
+
"internalType": "Timestamp",
|
134
|
+
"name": "expiryAt",
|
135
|
+
"type": "uint40"
|
136
|
+
}
|
137
|
+
],
|
138
|
+
"name": "ErrorIDistributionServiceExpirationInvalid",
|
139
|
+
"type": "error"
|
140
|
+
},
|
141
|
+
{
|
142
|
+
"inputs": [
|
143
|
+
{
|
144
|
+
"internalType": "uint256",
|
145
|
+
"name": "maxReferralLifetime",
|
146
|
+
"type": "uint256"
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"internalType": "uint256",
|
150
|
+
"name": "expiryAt",
|
151
|
+
"type": "uint256"
|
152
|
+
}
|
153
|
+
],
|
154
|
+
"name": "ErrorIDistributionServiceExpiryTooLong",
|
155
|
+
"type": "error"
|
156
|
+
},
|
157
|
+
{
|
158
|
+
"inputs": [
|
159
|
+
{
|
160
|
+
"internalType": "string",
|
161
|
+
"name": "code",
|
162
|
+
"type": "string"
|
163
|
+
}
|
164
|
+
],
|
165
|
+
"name": "ErrorIDistributionServiceInvalidReferral",
|
166
|
+
"type": "error"
|
167
|
+
},
|
168
|
+
{
|
169
|
+
"inputs": [
|
170
|
+
{
|
171
|
+
"internalType": "ReferralId",
|
172
|
+
"name": "referralId",
|
173
|
+
"type": "bytes8"
|
174
|
+
}
|
175
|
+
],
|
176
|
+
"name": "ErrorIDistributionServiceInvalidReferralId",
|
177
|
+
"type": "error"
|
178
|
+
},
|
179
|
+
{
|
180
|
+
"inputs": [
|
181
|
+
{
|
182
|
+
"internalType": "uint256",
|
183
|
+
"name": "maxDiscountPercentage",
|
184
|
+
"type": "uint256"
|
12
185
|
},
|
186
|
+
{
|
187
|
+
"internalType": "uint256",
|
188
|
+
"name": "limit",
|
189
|
+
"type": "uint256"
|
190
|
+
}
|
191
|
+
],
|
192
|
+
"name": "ErrorIDistributionServiceMaxDiscountTooHigh",
|
193
|
+
"type": "error"
|
194
|
+
},
|
195
|
+
{
|
196
|
+
"inputs": [
|
197
|
+
{
|
198
|
+
"internalType": "uint256",
|
199
|
+
"name": "maxReferrals",
|
200
|
+
"type": "uint256"
|
201
|
+
}
|
202
|
+
],
|
203
|
+
"name": "ErrorIDistributionServiceMaxReferralsExceeded",
|
204
|
+
"type": "error"
|
205
|
+
},
|
206
|
+
{
|
207
|
+
"inputs": [
|
208
|
+
{
|
209
|
+
"internalType": "uint256",
|
210
|
+
"name": "minFee",
|
211
|
+
"type": "uint256"
|
212
|
+
},
|
213
|
+
{
|
214
|
+
"internalType": "uint256",
|
215
|
+
"name": "limit",
|
216
|
+
"type": "uint256"
|
217
|
+
}
|
218
|
+
],
|
219
|
+
"name": "ErrorIDistributionServiceMinFeeTooHigh",
|
220
|
+
"type": "error"
|
221
|
+
},
|
222
|
+
{
|
223
|
+
"inputs": [
|
13
224
|
{
|
14
225
|
"internalType": "NftId",
|
15
226
|
"name": "nftId",
|
16
227
|
"type": "uint96"
|
228
|
+
},
|
229
|
+
{
|
230
|
+
"internalType": "NftId",
|
231
|
+
"name": "parentNftId",
|
232
|
+
"type": "uint96"
|
17
233
|
}
|
18
234
|
],
|
19
|
-
"name": "
|
235
|
+
"name": "ErrorIDistributionServiceParentNftIdNotInstance",
|
236
|
+
"type": "error"
|
237
|
+
},
|
238
|
+
{
|
239
|
+
"inputs": [
|
240
|
+
{
|
241
|
+
"internalType": "NftId",
|
242
|
+
"name": "distributionNftId",
|
243
|
+
"type": "uint96"
|
244
|
+
},
|
245
|
+
{
|
246
|
+
"internalType": "ReferralId",
|
247
|
+
"name": "referralId",
|
248
|
+
"type": "bytes8"
|
249
|
+
}
|
250
|
+
],
|
251
|
+
"name": "ErrorIDistributionServiceReferralInvalid",
|
252
|
+
"type": "error"
|
253
|
+
},
|
254
|
+
{
|
255
|
+
"inputs": [
|
256
|
+
{
|
257
|
+
"internalType": "NftId",
|
258
|
+
"name": "nftId",
|
259
|
+
"type": "uint96"
|
260
|
+
}
|
261
|
+
],
|
262
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
20
263
|
"type": "error"
|
21
264
|
},
|
22
265
|
{
|
@@ -27,7 +270,12 @@
|
|
27
270
|
"type": "address"
|
28
271
|
}
|
29
272
|
],
|
30
|
-
"name": "
|
273
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
274
|
+
"type": "error"
|
275
|
+
},
|
276
|
+
{
|
277
|
+
"inputs": [],
|
278
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
31
279
|
"type": "error"
|
32
280
|
},
|
33
281
|
{
|
@@ -38,7 +286,7 @@
|
|
38
286
|
"type": "address"
|
39
287
|
}
|
40
288
|
],
|
41
|
-
"name": "
|
289
|
+
"name": "ErrorNftOwnableNotOwner",
|
42
290
|
"type": "error"
|
43
291
|
},
|
44
292
|
{
|
@@ -54,49 +302,166 @@
|
|
54
302
|
},
|
55
303
|
{
|
56
304
|
"inputs": [],
|
57
|
-
"name": "
|
305
|
+
"name": "ErrorServiceNotImplemented",
|
58
306
|
"type": "error"
|
59
307
|
},
|
60
308
|
{
|
309
|
+
"anonymous": false,
|
61
310
|
"inputs": [
|
62
311
|
{
|
312
|
+
"indexed": false,
|
63
313
|
"internalType": "address",
|
64
|
-
"name": "
|
314
|
+
"name": "authority",
|
65
315
|
"type": "address"
|
66
316
|
}
|
67
317
|
],
|
68
|
-
"name": "
|
69
|
-
"type": "
|
318
|
+
"name": "AuthorityUpdated",
|
319
|
+
"type": "event"
|
70
320
|
},
|
71
321
|
{
|
72
322
|
"inputs": [],
|
73
|
-
"name": "
|
74
|
-
"
|
323
|
+
"name": "authority",
|
324
|
+
"outputs": [
|
325
|
+
{
|
326
|
+
"internalType": "address",
|
327
|
+
"name": "",
|
328
|
+
"type": "address"
|
329
|
+
}
|
330
|
+
],
|
331
|
+
"stateMutability": "view",
|
332
|
+
"type": "function"
|
75
333
|
},
|
76
334
|
{
|
77
|
-
"anonymous": false,
|
78
335
|
"inputs": [
|
79
336
|
{
|
80
|
-
"indexed": false,
|
81
|
-
"internalType": "Version",
|
82
|
-
"name": "version",
|
83
|
-
"type": "uint24"
|
84
|
-
},
|
85
|
-
{
|
86
|
-
"indexed": false,
|
87
337
|
"internalType": "address",
|
88
|
-
"name": "
|
338
|
+
"name": "distributor",
|
89
339
|
"type": "address"
|
90
340
|
},
|
91
341
|
{
|
92
|
-
"
|
93
|
-
"
|
94
|
-
"
|
95
|
-
|
342
|
+
"internalType": "DistributorType",
|
343
|
+
"name": "distributorType",
|
344
|
+
"type": "bytes8"
|
345
|
+
},
|
346
|
+
{
|
347
|
+
"internalType": "bytes",
|
348
|
+
"name": "data",
|
349
|
+
"type": "bytes"
|
96
350
|
}
|
97
351
|
],
|
98
|
-
"name": "
|
99
|
-
"
|
352
|
+
"name": "createDistributor",
|
353
|
+
"outputs": [
|
354
|
+
{
|
355
|
+
"internalType": "NftId",
|
356
|
+
"name": "distributorNftId",
|
357
|
+
"type": "uint96"
|
358
|
+
}
|
359
|
+
],
|
360
|
+
"stateMutability": "nonpayable",
|
361
|
+
"type": "function"
|
362
|
+
},
|
363
|
+
{
|
364
|
+
"inputs": [
|
365
|
+
{
|
366
|
+
"internalType": "string",
|
367
|
+
"name": "name",
|
368
|
+
"type": "string"
|
369
|
+
},
|
370
|
+
{
|
371
|
+
"internalType": "UFixed",
|
372
|
+
"name": "minDiscountPercentage",
|
373
|
+
"type": "uint256"
|
374
|
+
},
|
375
|
+
{
|
376
|
+
"internalType": "UFixed",
|
377
|
+
"name": "maxDiscountPercentage",
|
378
|
+
"type": "uint256"
|
379
|
+
},
|
380
|
+
{
|
381
|
+
"internalType": "UFixed",
|
382
|
+
"name": "commissionPercentage",
|
383
|
+
"type": "uint256"
|
384
|
+
},
|
385
|
+
{
|
386
|
+
"internalType": "uint32",
|
387
|
+
"name": "maxReferralCount",
|
388
|
+
"type": "uint32"
|
389
|
+
},
|
390
|
+
{
|
391
|
+
"internalType": "uint32",
|
392
|
+
"name": "maxReferralLifetime",
|
393
|
+
"type": "uint32"
|
394
|
+
},
|
395
|
+
{
|
396
|
+
"internalType": "bool",
|
397
|
+
"name": "allowSelfReferrals",
|
398
|
+
"type": "bool"
|
399
|
+
},
|
400
|
+
{
|
401
|
+
"internalType": "bool",
|
402
|
+
"name": "allowRenewals",
|
403
|
+
"type": "bool"
|
404
|
+
},
|
405
|
+
{
|
406
|
+
"internalType": "bytes",
|
407
|
+
"name": "data",
|
408
|
+
"type": "bytes"
|
409
|
+
}
|
410
|
+
],
|
411
|
+
"name": "createDistributorType",
|
412
|
+
"outputs": [
|
413
|
+
{
|
414
|
+
"internalType": "DistributorType",
|
415
|
+
"name": "distributorType",
|
416
|
+
"type": "bytes8"
|
417
|
+
}
|
418
|
+
],
|
419
|
+
"stateMutability": "nonpayable",
|
420
|
+
"type": "function"
|
421
|
+
},
|
422
|
+
{
|
423
|
+
"inputs": [
|
424
|
+
{
|
425
|
+
"internalType": "NftId",
|
426
|
+
"name": "distributorNftId",
|
427
|
+
"type": "uint96"
|
428
|
+
},
|
429
|
+
{
|
430
|
+
"internalType": "string",
|
431
|
+
"name": "code",
|
432
|
+
"type": "string"
|
433
|
+
},
|
434
|
+
{
|
435
|
+
"internalType": "UFixed",
|
436
|
+
"name": "discountPercentage",
|
437
|
+
"type": "uint256"
|
438
|
+
},
|
439
|
+
{
|
440
|
+
"internalType": "uint32",
|
441
|
+
"name": "maxReferrals",
|
442
|
+
"type": "uint32"
|
443
|
+
},
|
444
|
+
{
|
445
|
+
"internalType": "Timestamp",
|
446
|
+
"name": "expiryAt",
|
447
|
+
"type": "uint40"
|
448
|
+
},
|
449
|
+
{
|
450
|
+
"internalType": "bytes",
|
451
|
+
"name": "data",
|
452
|
+
"type": "bytes"
|
453
|
+
}
|
454
|
+
],
|
455
|
+
"name": "createReferral",
|
456
|
+
"outputs": [
|
457
|
+
{
|
458
|
+
"internalType": "ReferralId",
|
459
|
+
"name": "referralId",
|
460
|
+
"type": "bytes8"
|
461
|
+
}
|
462
|
+
],
|
463
|
+
"stateMutability": "nonpayable",
|
464
|
+
"type": "function"
|
100
465
|
},
|
101
466
|
{
|
102
467
|
"inputs": [],
|
@@ -161,32 +526,6 @@
|
|
161
526
|
"stateMutability": "view",
|
162
527
|
"type": "function"
|
163
528
|
},
|
164
|
-
{
|
165
|
-
"inputs": [],
|
166
|
-
"name": "getInitializedVersion",
|
167
|
-
"outputs": [
|
168
|
-
{
|
169
|
-
"internalType": "uint64",
|
170
|
-
"name": "",
|
171
|
-
"type": "uint64"
|
172
|
-
}
|
173
|
-
],
|
174
|
-
"stateMutability": "view",
|
175
|
-
"type": "function"
|
176
|
-
},
|
177
|
-
{
|
178
|
-
"inputs": [],
|
179
|
-
"name": "getMajorVersion",
|
180
|
-
"outputs": [
|
181
|
-
{
|
182
|
-
"internalType": "VersionPart",
|
183
|
-
"name": "majorVersion",
|
184
|
-
"type": "uint8"
|
185
|
-
}
|
186
|
-
],
|
187
|
-
"stateMutability": "view",
|
188
|
-
"type": "function"
|
189
|
-
},
|
190
529
|
{
|
191
530
|
"inputs": [],
|
192
531
|
"name": "getNftId",
|
@@ -242,100 +581,142 @@
|
|
242
581
|
{
|
243
582
|
"inputs": [
|
244
583
|
{
|
245
|
-
"internalType": "
|
246
|
-
"name": "
|
247
|
-
"type": "
|
248
|
-
}
|
249
|
-
],
|
250
|
-
"name": "getVersion",
|
251
|
-
"outputs": [
|
584
|
+
"internalType": "address",
|
585
|
+
"name": "activatedBy",
|
586
|
+
"type": "address"
|
587
|
+
},
|
252
588
|
{
|
253
|
-
"internalType": "
|
254
|
-
"name": "
|
255
|
-
"type": "
|
589
|
+
"internalType": "bytes",
|
590
|
+
"name": "activationData",
|
591
|
+
"type": "bytes"
|
256
592
|
}
|
257
593
|
],
|
258
|
-
"
|
594
|
+
"name": "initializeVersionable",
|
595
|
+
"outputs": [],
|
596
|
+
"stateMutability": "nonpayable",
|
259
597
|
"type": "function"
|
260
598
|
},
|
261
599
|
{
|
262
600
|
"inputs": [],
|
263
|
-
"name": "
|
601
|
+
"name": "isConsumingScheduledOp",
|
264
602
|
"outputs": [
|
265
603
|
{
|
266
|
-
"internalType": "
|
267
|
-
"name": "
|
268
|
-
"type": "
|
604
|
+
"internalType": "bytes4",
|
605
|
+
"name": "",
|
606
|
+
"type": "bytes4"
|
269
607
|
}
|
270
608
|
],
|
271
609
|
"stateMutability": "view",
|
272
610
|
"type": "function"
|
273
611
|
},
|
612
|
+
{
|
613
|
+
"inputs": [],
|
614
|
+
"name": "linkToRegisteredNftId",
|
615
|
+
"outputs": [],
|
616
|
+
"stateMutability": "nonpayable",
|
617
|
+
"type": "function"
|
618
|
+
},
|
274
619
|
{
|
275
620
|
"inputs": [
|
276
621
|
{
|
277
|
-
"internalType": "
|
278
|
-
"name": "
|
279
|
-
"type": "
|
280
|
-
}
|
281
|
-
|
282
|
-
|
283
|
-
|
622
|
+
"internalType": "NftId",
|
623
|
+
"name": "distributionNftId",
|
624
|
+
"type": "uint96"
|
625
|
+
},
|
626
|
+
{
|
627
|
+
"internalType": "ReferralId",
|
628
|
+
"name": "referralId",
|
629
|
+
"type": "bytes8"
|
630
|
+
},
|
284
631
|
{
|
285
632
|
"components": [
|
286
633
|
{
|
287
|
-
"internalType": "
|
288
|
-
"name": "
|
289
|
-
"type": "
|
634
|
+
"internalType": "uint256",
|
635
|
+
"name": "netPremiumAmount",
|
636
|
+
"type": "uint256"
|
290
637
|
},
|
291
638
|
{
|
292
|
-
"internalType": "
|
293
|
-
"name": "
|
294
|
-
"type": "
|
639
|
+
"internalType": "uint256",
|
640
|
+
"name": "fullPremiumAmount",
|
641
|
+
"type": "uint256"
|
295
642
|
},
|
296
643
|
{
|
297
|
-
"internalType": "
|
298
|
-
"name": "
|
299
|
-
"type": "
|
644
|
+
"internalType": "uint256",
|
645
|
+
"name": "premiumAmount",
|
646
|
+
"type": "uint256"
|
647
|
+
},
|
648
|
+
{
|
649
|
+
"internalType": "uint256",
|
650
|
+
"name": "productFeeFixAmount",
|
651
|
+
"type": "uint256"
|
652
|
+
},
|
653
|
+
{
|
654
|
+
"internalType": "uint256",
|
655
|
+
"name": "poolFeeFixAmount",
|
656
|
+
"type": "uint256"
|
657
|
+
},
|
658
|
+
{
|
659
|
+
"internalType": "uint256",
|
660
|
+
"name": "bundleFeeFixAmount",
|
661
|
+
"type": "uint256"
|
662
|
+
},
|
663
|
+
{
|
664
|
+
"internalType": "uint256",
|
665
|
+
"name": "distributionFeeFixAmount",
|
666
|
+
"type": "uint256"
|
667
|
+
},
|
668
|
+
{
|
669
|
+
"internalType": "uint256",
|
670
|
+
"name": "productFeeVarAmount",
|
671
|
+
"type": "uint256"
|
300
672
|
},
|
301
673
|
{
|
302
|
-
"internalType": "
|
303
|
-
"name": "
|
304
|
-
"type": "
|
674
|
+
"internalType": "uint256",
|
675
|
+
"name": "poolFeeVarAmount",
|
676
|
+
"type": "uint256"
|
305
677
|
},
|
306
678
|
{
|
307
|
-
"internalType": "
|
308
|
-
"name": "
|
309
|
-
"type": "
|
679
|
+
"internalType": "uint256",
|
680
|
+
"name": "bundleFeeVarAmount",
|
681
|
+
"type": "uint256"
|
682
|
+
},
|
683
|
+
{
|
684
|
+
"internalType": "uint256",
|
685
|
+
"name": "distributionFeeVarAmount",
|
686
|
+
"type": "uint256"
|
687
|
+
},
|
688
|
+
{
|
689
|
+
"internalType": "uint256",
|
690
|
+
"name": "distributionOwnerFeeFixAmount",
|
691
|
+
"type": "uint256"
|
692
|
+
},
|
693
|
+
{
|
694
|
+
"internalType": "uint256",
|
695
|
+
"name": "distributionOwnerFeeVarAmount",
|
696
|
+
"type": "uint256"
|
697
|
+
},
|
698
|
+
{
|
699
|
+
"internalType": "uint256",
|
700
|
+
"name": "commissionAmount",
|
701
|
+
"type": "uint256"
|
702
|
+
},
|
703
|
+
{
|
704
|
+
"internalType": "uint256",
|
705
|
+
"name": "discountAmount",
|
706
|
+
"type": "uint256"
|
310
707
|
}
|
311
708
|
],
|
312
|
-
"internalType": "struct
|
313
|
-
"name": "
|
709
|
+
"internalType": "struct IPolicy.Premium",
|
710
|
+
"name": "premium",
|
314
711
|
"type": "tuple"
|
315
|
-
}
|
316
|
-
],
|
317
|
-
"stateMutability": "view",
|
318
|
-
"type": "function"
|
319
|
-
},
|
320
|
-
{
|
321
|
-
"inputs": [
|
322
|
-
{
|
323
|
-
"internalType": "address",
|
324
|
-
"name": "implementation",
|
325
|
-
"type": "address"
|
326
712
|
},
|
327
713
|
{
|
328
|
-
"internalType": "
|
329
|
-
"name": "
|
330
|
-
"type": "
|
331
|
-
},
|
332
|
-
{
|
333
|
-
"internalType": "bytes",
|
334
|
-
"name": "activationData",
|
335
|
-
"type": "bytes"
|
714
|
+
"internalType": "Amount",
|
715
|
+
"name": "transferredDistributionFeeAmount",
|
716
|
+
"type": "uint96"
|
336
717
|
}
|
337
718
|
],
|
338
|
-
"name": "
|
719
|
+
"name": "processSale",
|
339
720
|
"outputs": [],
|
340
721
|
"stateMutability": "nonpayable",
|
341
722
|
"type": "function"
|
@@ -343,16 +724,21 @@
|
|
343
724
|
{
|
344
725
|
"inputs": [
|
345
726
|
{
|
346
|
-
"internalType": "
|
347
|
-
"name": "
|
348
|
-
"type": "
|
727
|
+
"internalType": "NftId",
|
728
|
+
"name": "distributorNftId",
|
729
|
+
"type": "uint96"
|
730
|
+
},
|
731
|
+
{
|
732
|
+
"internalType": "ReferralId",
|
733
|
+
"name": "referralId",
|
734
|
+
"type": "bytes8"
|
349
735
|
}
|
350
736
|
],
|
351
|
-
"name": "
|
737
|
+
"name": "referralIsValid",
|
352
738
|
"outputs": [
|
353
739
|
{
|
354
740
|
"internalType": "bool",
|
355
|
-
"name": "",
|
741
|
+
"name": "isValid",
|
356
742
|
"type": "bool"
|
357
743
|
}
|
358
744
|
],
|
@@ -360,14 +746,37 @@
|
|
360
746
|
"type": "function"
|
361
747
|
},
|
362
748
|
{
|
363
|
-
"inputs": [
|
364
|
-
|
749
|
+
"inputs": [
|
750
|
+
{
|
751
|
+
"internalType": "address",
|
752
|
+
"name": "",
|
753
|
+
"type": "address"
|
754
|
+
}
|
755
|
+
],
|
756
|
+
"name": "setAuthority",
|
365
757
|
"outputs": [],
|
366
758
|
"stateMutability": "nonpayable",
|
367
759
|
"type": "function"
|
368
760
|
},
|
369
761
|
{
|
370
762
|
"inputs": [
|
763
|
+
{
|
764
|
+
"components": [
|
765
|
+
{
|
766
|
+
"internalType": "UFixed",
|
767
|
+
"name": "fractionalFee",
|
768
|
+
"type": "uint256"
|
769
|
+
},
|
770
|
+
{
|
771
|
+
"internalType": "uint256",
|
772
|
+
"name": "fixedFee",
|
773
|
+
"type": "uint256"
|
774
|
+
}
|
775
|
+
],
|
776
|
+
"internalType": "struct Fee",
|
777
|
+
"name": "minDistributionOwnerFee",
|
778
|
+
"type": "tuple"
|
779
|
+
},
|
371
780
|
{
|
372
781
|
"components": [
|
373
782
|
{
|
@@ -412,23 +821,13 @@
|
|
412
821
|
},
|
413
822
|
{
|
414
823
|
"inputs": [
|
415
|
-
{
|
416
|
-
"internalType": "address",
|
417
|
-
"name": "implementation",
|
418
|
-
"type": "address"
|
419
|
-
},
|
420
|
-
{
|
421
|
-
"internalType": "address",
|
422
|
-
"name": "activatedBy",
|
423
|
-
"type": "address"
|
424
|
-
},
|
425
824
|
{
|
426
825
|
"internalType": "bytes",
|
427
826
|
"name": "upgradeData",
|
428
827
|
"type": "bytes"
|
429
828
|
}
|
430
829
|
],
|
431
|
-
"name": "
|
830
|
+
"name": "upgradeVersionable",
|
432
831
|
"outputs": [],
|
433
832
|
"stateMutability": "nonpayable",
|
434
833
|
"type": "function"
|