@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/components/IDistributionComponent.sol/IDistributionComponent.json
CHANGED
@@ -7,32 +7,27 @@
|
|
7
7
|
"inputs": [
|
8
8
|
{
|
9
9
|
"internalType": "address",
|
10
|
-
"name": "
|
10
|
+
"name": "authority",
|
11
11
|
"type": "address"
|
12
|
-
},
|
13
|
-
{
|
14
|
-
"internalType": "NftId",
|
15
|
-
"name": "nftId",
|
16
|
-
"type": "uint96"
|
17
12
|
}
|
18
13
|
],
|
19
|
-
"name": "
|
14
|
+
"name": "AccessManagedInvalidAuthority",
|
20
15
|
"type": "error"
|
21
16
|
},
|
22
17
|
{
|
23
18
|
"inputs": [
|
24
|
-
{
|
25
|
-
"internalType": "NftId",
|
26
|
-
"name": "instanceNftId",
|
27
|
-
"type": "uint96"
|
28
|
-
},
|
29
19
|
{
|
30
20
|
"internalType": "address",
|
31
|
-
"name": "
|
21
|
+
"name": "caller",
|
32
22
|
"type": "address"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"internalType": "uint32",
|
26
|
+
"name": "delay",
|
27
|
+
"type": "uint32"
|
33
28
|
}
|
34
29
|
],
|
35
|
-
"name": "
|
30
|
+
"name": "AccessManagedRequiredDelay",
|
36
31
|
"type": "error"
|
37
32
|
},
|
38
33
|
{
|
@@ -43,12 +38,7 @@
|
|
43
38
|
"type": "address"
|
44
39
|
}
|
45
40
|
],
|
46
|
-
"name": "
|
47
|
-
"type": "error"
|
48
|
-
},
|
49
|
-
{
|
50
|
-
"inputs": [],
|
51
|
-
"name": "ErrorComponentProductNftAlreadySet",
|
41
|
+
"name": "AccessManagedUnauthorized",
|
52
42
|
"type": "error"
|
53
43
|
},
|
54
44
|
{
|
@@ -57,24 +47,40 @@
|
|
57
47
|
"internalType": "address",
|
58
48
|
"name": "caller",
|
59
49
|
"type": "address"
|
60
|
-
}
|
50
|
+
}
|
51
|
+
],
|
52
|
+
"name": "ErrorComponentNotChainNft",
|
53
|
+
"type": "error"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"inputs": [
|
61
57
|
{
|
62
|
-
"internalType": "
|
63
|
-
"name": "
|
64
|
-
"type": "
|
58
|
+
"internalType": "NftId",
|
59
|
+
"name": "instanceNftId",
|
60
|
+
"type": "uint96"
|
65
61
|
}
|
66
62
|
],
|
67
|
-
"name": "
|
63
|
+
"name": "ErrorComponentNotInstance",
|
68
64
|
"type": "error"
|
69
65
|
},
|
70
66
|
{
|
71
67
|
"inputs": [
|
72
68
|
{
|
73
69
|
"internalType": "address",
|
74
|
-
"name": "
|
70
|
+
"name": "caller",
|
75
71
|
"type": "address"
|
76
72
|
}
|
77
73
|
],
|
74
|
+
"name": "ErrorComponentNotProductService",
|
75
|
+
"type": "error"
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"inputs": [],
|
79
|
+
"name": "ErrorComponentProductNftAlreadySet",
|
80
|
+
"type": "error"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"inputs": [],
|
78
84
|
"name": "ErrorComponentWalletAddressIsSameAsCurrent",
|
79
85
|
"type": "error"
|
80
86
|
},
|
@@ -109,6 +115,22 @@
|
|
109
115
|
"name": "ErrorComponentWalletAllowanceTooSmall",
|
110
116
|
"type": "error"
|
111
117
|
},
|
118
|
+
{
|
119
|
+
"inputs": [],
|
120
|
+
"name": "ErrorComponentWalletNotComponent",
|
121
|
+
"type": "error"
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"inputs": [
|
125
|
+
{
|
126
|
+
"internalType": "NftId",
|
127
|
+
"name": "nftId",
|
128
|
+
"type": "uint96"
|
129
|
+
}
|
130
|
+
],
|
131
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
132
|
+
"type": "error"
|
133
|
+
},
|
112
134
|
{
|
113
135
|
"inputs": [
|
114
136
|
{
|
@@ -117,7 +139,12 @@
|
|
117
139
|
"type": "address"
|
118
140
|
}
|
119
141
|
],
|
120
|
-
"name": "
|
142
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
143
|
+
"type": "error"
|
144
|
+
},
|
145
|
+
{
|
146
|
+
"inputs": [],
|
147
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
121
148
|
"type": "error"
|
122
149
|
},
|
123
150
|
{
|
@@ -128,7 +155,7 @@
|
|
128
155
|
"type": "address"
|
129
156
|
}
|
130
157
|
],
|
131
|
-
"name": "
|
158
|
+
"name": "ErrorNftOwnableNotOwner",
|
132
159
|
"type": "error"
|
133
160
|
},
|
134
161
|
{
|
@@ -143,29 +170,40 @@
|
|
143
170
|
"type": "error"
|
144
171
|
},
|
145
172
|
{
|
146
|
-
"
|
147
|
-
"name": "ErrorRegistryAddressZero",
|
148
|
-
"type": "error"
|
149
|
-
},
|
150
|
-
{
|
173
|
+
"anonymous": false,
|
151
174
|
"inputs": [
|
152
175
|
{
|
176
|
+
"indexed": false,
|
153
177
|
"internalType": "address",
|
154
|
-
"name": "
|
178
|
+
"name": "authority",
|
155
179
|
"type": "address"
|
156
180
|
}
|
157
181
|
],
|
158
|
-
"name": "
|
159
|
-
"type": "
|
182
|
+
"name": "AuthorityUpdated",
|
183
|
+
"type": "event"
|
160
184
|
},
|
161
185
|
{
|
162
|
-
"
|
163
|
-
"
|
164
|
-
|
186
|
+
"anonymous": false,
|
187
|
+
"inputs": [
|
188
|
+
{
|
189
|
+
"indexed": false,
|
190
|
+
"internalType": "uint256",
|
191
|
+
"name": "limit",
|
192
|
+
"type": "uint256"
|
193
|
+
}
|
194
|
+
],
|
195
|
+
"name": "LogComponentTokenHandlerApproved",
|
196
|
+
"type": "event"
|
165
197
|
},
|
166
198
|
{
|
167
199
|
"anonymous": false,
|
168
200
|
"inputs": [
|
201
|
+
{
|
202
|
+
"indexed": false,
|
203
|
+
"internalType": "address",
|
204
|
+
"name": "oldWallet",
|
205
|
+
"type": "address"
|
206
|
+
},
|
169
207
|
{
|
170
208
|
"indexed": false,
|
171
209
|
"internalType": "address",
|
@@ -202,24 +240,45 @@
|
|
202
240
|
"type": "event"
|
203
241
|
},
|
204
242
|
{
|
243
|
+
"anonymous": false,
|
205
244
|
"inputs": [
|
206
245
|
{
|
207
|
-
"
|
208
|
-
"
|
209
|
-
"
|
246
|
+
"indexed": false,
|
247
|
+
"internalType": "address",
|
248
|
+
"name": "to",
|
249
|
+
"type": "address"
|
210
250
|
},
|
251
|
+
{
|
252
|
+
"indexed": false,
|
253
|
+
"internalType": "address",
|
254
|
+
"name": "caller",
|
255
|
+
"type": "address"
|
256
|
+
}
|
257
|
+
],
|
258
|
+
"name": "LogDistributorUpdated",
|
259
|
+
"type": "event"
|
260
|
+
},
|
261
|
+
{
|
262
|
+
"inputs": [
|
211
263
|
{
|
212
264
|
"internalType": "uint256",
|
213
|
-
"name": "
|
265
|
+
"name": "spendingLimitAmount",
|
214
266
|
"type": "uint256"
|
215
267
|
}
|
216
268
|
],
|
217
|
-
"name": "
|
269
|
+
"name": "approveTokenHandler",
|
270
|
+
"outputs": [],
|
271
|
+
"stateMutability": "nonpayable",
|
272
|
+
"type": "function"
|
273
|
+
},
|
274
|
+
{
|
275
|
+
"inputs": [],
|
276
|
+
"name": "authority",
|
218
277
|
"outputs": [
|
219
278
|
{
|
220
|
-
"internalType": "
|
221
|
-
"name": "
|
222
|
-
"type": "
|
279
|
+
"internalType": "address",
|
280
|
+
"name": "",
|
281
|
+
"type": "address"
|
223
282
|
}
|
224
283
|
],
|
225
284
|
"stateMutability": "view",
|
@@ -249,6 +308,193 @@
|
|
249
308
|
"stateMutability": "view",
|
250
309
|
"type": "function"
|
251
310
|
},
|
311
|
+
{
|
312
|
+
"inputs": [
|
313
|
+
{
|
314
|
+
"internalType": "address",
|
315
|
+
"name": "distributor",
|
316
|
+
"type": "address"
|
317
|
+
},
|
318
|
+
{
|
319
|
+
"internalType": "DistributorType",
|
320
|
+
"name": "distributorType",
|
321
|
+
"type": "bytes8"
|
322
|
+
},
|
323
|
+
{
|
324
|
+
"internalType": "bytes",
|
325
|
+
"name": "data",
|
326
|
+
"type": "bytes"
|
327
|
+
}
|
328
|
+
],
|
329
|
+
"name": "createDistributor",
|
330
|
+
"outputs": [
|
331
|
+
{
|
332
|
+
"internalType": "NftId",
|
333
|
+
"name": "distributorNftId",
|
334
|
+
"type": "uint96"
|
335
|
+
}
|
336
|
+
],
|
337
|
+
"stateMutability": "nonpayable",
|
338
|
+
"type": "function"
|
339
|
+
},
|
340
|
+
{
|
341
|
+
"inputs": [
|
342
|
+
{
|
343
|
+
"internalType": "string",
|
344
|
+
"name": "name",
|
345
|
+
"type": "string"
|
346
|
+
},
|
347
|
+
{
|
348
|
+
"internalType": "UFixed",
|
349
|
+
"name": "minDiscountPercentage",
|
350
|
+
"type": "uint256"
|
351
|
+
},
|
352
|
+
{
|
353
|
+
"internalType": "UFixed",
|
354
|
+
"name": "maxDiscountPercentage",
|
355
|
+
"type": "uint256"
|
356
|
+
},
|
357
|
+
{
|
358
|
+
"internalType": "UFixed",
|
359
|
+
"name": "commissionPercentage",
|
360
|
+
"type": "uint256"
|
361
|
+
},
|
362
|
+
{
|
363
|
+
"internalType": "uint32",
|
364
|
+
"name": "maxReferralCount",
|
365
|
+
"type": "uint32"
|
366
|
+
},
|
367
|
+
{
|
368
|
+
"internalType": "uint32",
|
369
|
+
"name": "maxReferralLifetime",
|
370
|
+
"type": "uint32"
|
371
|
+
},
|
372
|
+
{
|
373
|
+
"internalType": "bool",
|
374
|
+
"name": "allowSelfReferrals",
|
375
|
+
"type": "bool"
|
376
|
+
},
|
377
|
+
{
|
378
|
+
"internalType": "bool",
|
379
|
+
"name": "allowRenewals",
|
380
|
+
"type": "bool"
|
381
|
+
},
|
382
|
+
{
|
383
|
+
"internalType": "bytes",
|
384
|
+
"name": "data",
|
385
|
+
"type": "bytes"
|
386
|
+
}
|
387
|
+
],
|
388
|
+
"name": "createDistributorType",
|
389
|
+
"outputs": [
|
390
|
+
{
|
391
|
+
"internalType": "DistributorType",
|
392
|
+
"name": "distributorType",
|
393
|
+
"type": "bytes8"
|
394
|
+
}
|
395
|
+
],
|
396
|
+
"stateMutability": "nonpayable",
|
397
|
+
"type": "function"
|
398
|
+
},
|
399
|
+
{
|
400
|
+
"inputs": [],
|
401
|
+
"name": "getComponentInfo",
|
402
|
+
"outputs": [
|
403
|
+
{
|
404
|
+
"components": [
|
405
|
+
{
|
406
|
+
"internalType": "string",
|
407
|
+
"name": "name",
|
408
|
+
"type": "string"
|
409
|
+
},
|
410
|
+
{
|
411
|
+
"internalType": "contract IERC20Metadata",
|
412
|
+
"name": "token",
|
413
|
+
"type": "address"
|
414
|
+
},
|
415
|
+
{
|
416
|
+
"internalType": "contract TokenHandler",
|
417
|
+
"name": "tokenHandler",
|
418
|
+
"type": "address"
|
419
|
+
},
|
420
|
+
{
|
421
|
+
"internalType": "address",
|
422
|
+
"name": "wallet",
|
423
|
+
"type": "address"
|
424
|
+
},
|
425
|
+
{
|
426
|
+
"internalType": "Amount",
|
427
|
+
"name": "balanceAmount",
|
428
|
+
"type": "uint96"
|
429
|
+
},
|
430
|
+
{
|
431
|
+
"internalType": "Amount",
|
432
|
+
"name": "feeAmount",
|
433
|
+
"type": "uint96"
|
434
|
+
},
|
435
|
+
{
|
436
|
+
"internalType": "bytes",
|
437
|
+
"name": "data",
|
438
|
+
"type": "bytes"
|
439
|
+
}
|
440
|
+
],
|
441
|
+
"internalType": "struct IComponents.ComponentInfo",
|
442
|
+
"name": "info",
|
443
|
+
"type": "tuple"
|
444
|
+
}
|
445
|
+
],
|
446
|
+
"stateMutability": "view",
|
447
|
+
"type": "function"
|
448
|
+
},
|
449
|
+
{
|
450
|
+
"inputs": [
|
451
|
+
{
|
452
|
+
"internalType": "string",
|
453
|
+
"name": "referralCode",
|
454
|
+
"type": "string"
|
455
|
+
}
|
456
|
+
],
|
457
|
+
"name": "getDiscountPercentage",
|
458
|
+
"outputs": [
|
459
|
+
{
|
460
|
+
"internalType": "UFixed",
|
461
|
+
"name": "discountPercentage",
|
462
|
+
"type": "uint256"
|
463
|
+
},
|
464
|
+
{
|
465
|
+
"internalType": "ReferralStatus",
|
466
|
+
"name": "status",
|
467
|
+
"type": "uint8"
|
468
|
+
}
|
469
|
+
],
|
470
|
+
"stateMutability": "view",
|
471
|
+
"type": "function"
|
472
|
+
},
|
473
|
+
{
|
474
|
+
"inputs": [],
|
475
|
+
"name": "getDistributionFee",
|
476
|
+
"outputs": [
|
477
|
+
{
|
478
|
+
"components": [
|
479
|
+
{
|
480
|
+
"internalType": "UFixed",
|
481
|
+
"name": "fractionalFee",
|
482
|
+
"type": "uint256"
|
483
|
+
},
|
484
|
+
{
|
485
|
+
"internalType": "uint256",
|
486
|
+
"name": "fixedFee",
|
487
|
+
"type": "uint256"
|
488
|
+
}
|
489
|
+
],
|
490
|
+
"internalType": "struct Fee",
|
491
|
+
"name": "distibutionFee",
|
492
|
+
"type": "tuple"
|
493
|
+
}
|
494
|
+
],
|
495
|
+
"stateMutability": "view",
|
496
|
+
"type": "function"
|
497
|
+
},
|
252
498
|
{
|
253
499
|
"inputs": [],
|
254
500
|
"name": "getInitialInfo",
|
@@ -312,19 +558,6 @@
|
|
312
558
|
"stateMutability": "view",
|
313
559
|
"type": "function"
|
314
560
|
},
|
315
|
-
{
|
316
|
-
"inputs": [],
|
317
|
-
"name": "getInstanceService",
|
318
|
-
"outputs": [
|
319
|
-
{
|
320
|
-
"internalType": "contract IInstanceService",
|
321
|
-
"name": "",
|
322
|
-
"type": "address"
|
323
|
-
}
|
324
|
-
],
|
325
|
-
"stateMutability": "view",
|
326
|
-
"type": "function"
|
327
|
-
},
|
328
561
|
{
|
329
562
|
"inputs": [],
|
330
563
|
"name": "getName",
|
@@ -378,16 +611,22 @@
|
|
378
611
|
"type": "function"
|
379
612
|
},
|
380
613
|
{
|
381
|
-
"inputs": [
|
382
|
-
|
614
|
+
"inputs": [
|
615
|
+
{
|
616
|
+
"internalType": "string",
|
617
|
+
"name": "referralCode",
|
618
|
+
"type": "string"
|
619
|
+
}
|
620
|
+
],
|
621
|
+
"name": "getReferralId",
|
383
622
|
"outputs": [
|
384
623
|
{
|
385
|
-
"internalType": "
|
386
|
-
"name": "",
|
387
|
-
"type": "
|
624
|
+
"internalType": "ReferralId",
|
625
|
+
"name": "referralId",
|
626
|
+
"type": "bytes8"
|
388
627
|
}
|
389
628
|
],
|
390
|
-
"stateMutability": "
|
629
|
+
"stateMutability": "nonpayable",
|
391
630
|
"type": "function"
|
392
631
|
},
|
393
632
|
{
|
@@ -433,18 +672,35 @@
|
|
433
672
|
}
|
434
673
|
],
|
435
674
|
"internalType": "struct Fee",
|
436
|
-
"name": "
|
675
|
+
"name": "minDistributionOwnerFee",
|
437
676
|
"type": "tuple"
|
438
677
|
},
|
439
678
|
{
|
440
|
-
"
|
441
|
-
|
442
|
-
|
679
|
+
"components": [
|
680
|
+
{
|
681
|
+
"internalType": "UFixed",
|
682
|
+
"name": "fractionalFee",
|
683
|
+
"type": "uint256"
|
684
|
+
},
|
685
|
+
{
|
686
|
+
"internalType": "uint256",
|
687
|
+
"name": "fixedFee",
|
688
|
+
"type": "uint256"
|
689
|
+
}
|
690
|
+
],
|
691
|
+
"internalType": "struct Fee",
|
692
|
+
"name": "distributionFee",
|
693
|
+
"type": "tuple"
|
443
694
|
},
|
444
695
|
{
|
445
696
|
"internalType": "address",
|
446
697
|
"name": "wallet",
|
447
698
|
"type": "address"
|
699
|
+
},
|
700
|
+
{
|
701
|
+
"internalType": "uint256",
|
702
|
+
"name": "sumDistributionOwnerFees",
|
703
|
+
"type": "uint256"
|
448
704
|
}
|
449
705
|
],
|
450
706
|
"internalType": "struct ISetup.DistributionSetupInfo",
|
@@ -468,6 +724,19 @@
|
|
468
724
|
"stateMutability": "view",
|
469
725
|
"type": "function"
|
470
726
|
},
|
727
|
+
{
|
728
|
+
"inputs": [],
|
729
|
+
"name": "getTokenHandler",
|
730
|
+
"outputs": [
|
731
|
+
{
|
732
|
+
"internalType": "contract TokenHandler",
|
733
|
+
"name": "tokenHandler",
|
734
|
+
"type": "address"
|
735
|
+
}
|
736
|
+
],
|
737
|
+
"stateMutability": "view",
|
738
|
+
"type": "function"
|
739
|
+
},
|
471
740
|
{
|
472
741
|
"inputs": [],
|
473
742
|
"name": "getWallet",
|
@@ -481,6 +750,32 @@
|
|
481
750
|
"stateMutability": "view",
|
482
751
|
"type": "function"
|
483
752
|
},
|
753
|
+
{
|
754
|
+
"inputs": [],
|
755
|
+
"name": "isConsumingScheduledOp",
|
756
|
+
"outputs": [
|
757
|
+
{
|
758
|
+
"internalType": "bytes4",
|
759
|
+
"name": "",
|
760
|
+
"type": "bytes4"
|
761
|
+
}
|
762
|
+
],
|
763
|
+
"stateMutability": "view",
|
764
|
+
"type": "function"
|
765
|
+
},
|
766
|
+
{
|
767
|
+
"inputs": [],
|
768
|
+
"name": "isNftInterceptor",
|
769
|
+
"outputs": [
|
770
|
+
{
|
771
|
+
"internalType": "bool",
|
772
|
+
"name": "isInterceptor",
|
773
|
+
"type": "bool"
|
774
|
+
}
|
775
|
+
],
|
776
|
+
"stateMutability": "view",
|
777
|
+
"type": "function"
|
778
|
+
},
|
484
779
|
{
|
485
780
|
"inputs": [],
|
486
781
|
"name": "isVerifying",
|
@@ -511,17 +806,17 @@
|
|
511
806
|
{
|
512
807
|
"inputs": [
|
513
808
|
{
|
514
|
-
"internalType": "
|
515
|
-
"name": "
|
516
|
-
"type": "
|
809
|
+
"internalType": "address",
|
810
|
+
"name": "to",
|
811
|
+
"type": "address"
|
517
812
|
},
|
518
813
|
{
|
519
814
|
"internalType": "uint256",
|
520
|
-
"name": "
|
815
|
+
"name": "tokenId",
|
521
816
|
"type": "uint256"
|
522
817
|
}
|
523
818
|
],
|
524
|
-
"name": "
|
819
|
+
"name": "nftMint",
|
525
820
|
"outputs": [],
|
526
821
|
"stateMutability": "nonpayable",
|
527
822
|
"type": "function"
|
@@ -529,17 +824,22 @@
|
|
529
824
|
{
|
530
825
|
"inputs": [
|
531
826
|
{
|
532
|
-
"internalType": "
|
533
|
-
"name": "
|
534
|
-
"type": "
|
827
|
+
"internalType": "address",
|
828
|
+
"name": "from",
|
829
|
+
"type": "address"
|
830
|
+
},
|
831
|
+
{
|
832
|
+
"internalType": "address",
|
833
|
+
"name": "to",
|
834
|
+
"type": "address"
|
535
835
|
},
|
536
836
|
{
|
537
837
|
"internalType": "uint256",
|
538
|
-
"name": "
|
838
|
+
"name": "tokenId",
|
539
839
|
"type": "uint256"
|
540
840
|
}
|
541
841
|
],
|
542
|
-
"name": "
|
842
|
+
"name": "nftTransferFrom",
|
543
843
|
"outputs": [],
|
544
844
|
"stateMutability": "nonpayable",
|
545
845
|
"type": "function"
|
@@ -550,21 +850,50 @@
|
|
550
850
|
"internalType": "ReferralId",
|
551
851
|
"name": "referralId",
|
552
852
|
"type": "bytes8"
|
853
|
+
},
|
854
|
+
{
|
855
|
+
"internalType": "uint256",
|
856
|
+
"name": "feeAmount",
|
857
|
+
"type": "uint256"
|
553
858
|
}
|
554
859
|
],
|
555
|
-
"name": "
|
556
|
-
"outputs": [
|
860
|
+
"name": "processRenewal",
|
861
|
+
"outputs": [],
|
862
|
+
"stateMutability": "nonpayable",
|
863
|
+
"type": "function"
|
864
|
+
},
|
865
|
+
{
|
866
|
+
"inputs": [
|
557
867
|
{
|
558
|
-
"internalType": "
|
559
|
-
"name": "
|
560
|
-
"type": "
|
868
|
+
"internalType": "address",
|
869
|
+
"name": "",
|
870
|
+
"type": "address"
|
561
871
|
}
|
562
872
|
],
|
563
|
-
"
|
873
|
+
"name": "setAuthority",
|
874
|
+
"outputs": [],
|
875
|
+
"stateMutability": "nonpayable",
|
564
876
|
"type": "function"
|
565
877
|
},
|
566
878
|
{
|
567
879
|
"inputs": [
|
880
|
+
{
|
881
|
+
"components": [
|
882
|
+
{
|
883
|
+
"internalType": "UFixed",
|
884
|
+
"name": "fractionalFee",
|
885
|
+
"type": "uint256"
|
886
|
+
},
|
887
|
+
{
|
888
|
+
"internalType": "uint256",
|
889
|
+
"name": "fixedFee",
|
890
|
+
"type": "uint256"
|
891
|
+
}
|
892
|
+
],
|
893
|
+
"internalType": "struct Fee",
|
894
|
+
"name": "minDistributionOwnerFee",
|
895
|
+
"type": "tuple"
|
896
|
+
},
|
568
897
|
{
|
569
898
|
"components": [
|
570
899
|
{
|
@@ -639,6 +968,29 @@
|
|
639
968
|
"outputs": [],
|
640
969
|
"stateMutability": "nonpayable",
|
641
970
|
"type": "function"
|
971
|
+
},
|
972
|
+
{
|
973
|
+
"inputs": [
|
974
|
+
{
|
975
|
+
"internalType": "NftId",
|
976
|
+
"name": "distributorNftId",
|
977
|
+
"type": "uint96"
|
978
|
+
},
|
979
|
+
{
|
980
|
+
"internalType": "DistributorType",
|
981
|
+
"name": "distributorType",
|
982
|
+
"type": "bytes8"
|
983
|
+
},
|
984
|
+
{
|
985
|
+
"internalType": "bytes",
|
986
|
+
"name": "data",
|
987
|
+
"type": "bytes"
|
988
|
+
}
|
989
|
+
],
|
990
|
+
"name": "updateDistributorType",
|
991
|
+
"outputs": [],
|
992
|
+
"stateMutability": "nonpayable",
|
993
|
+
"type": "function"
|
642
994
|
}
|
643
995
|
],
|
644
996
|
"bytecode": "0x",
|