@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
@@ -67,16 +67,11 @@
|
|
67
67
|
"inputs": [
|
68
68
|
{
|
69
69
|
"internalType": "address",
|
70
|
-
"name": "
|
70
|
+
"name": "caller",
|
71
71
|
"type": "address"
|
72
|
-
},
|
73
|
-
{
|
74
|
-
"internalType": "NftId",
|
75
|
-
"name": "nftId",
|
76
|
-
"type": "uint96"
|
77
72
|
}
|
78
73
|
],
|
79
|
-
"name": "
|
74
|
+
"name": "ErrorComponentNotChainNft",
|
80
75
|
"type": "error"
|
81
76
|
},
|
82
77
|
{
|
@@ -85,11 +80,6 @@
|
|
85
80
|
"internalType": "NftId",
|
86
81
|
"name": "instanceNftId",
|
87
82
|
"type": "uint96"
|
88
|
-
},
|
89
|
-
{
|
90
|
-
"internalType": "address",
|
91
|
-
"name": "instance",
|
92
|
-
"type": "address"
|
93
83
|
}
|
94
84
|
],
|
95
85
|
"name": "ErrorComponentNotInstance",
|
@@ -112,29 +102,7 @@
|
|
112
102
|
"type": "error"
|
113
103
|
},
|
114
104
|
{
|
115
|
-
"inputs": [
|
116
|
-
{
|
117
|
-
"internalType": "address",
|
118
|
-
"name": "caller",
|
119
|
-
"type": "address"
|
120
|
-
},
|
121
|
-
{
|
122
|
-
"internalType": "uint64",
|
123
|
-
"name": "requiredRoleIdNum",
|
124
|
-
"type": "uint64"
|
125
|
-
}
|
126
|
-
],
|
127
|
-
"name": "ErrorComponentUnauthorized",
|
128
|
-
"type": "error"
|
129
|
-
},
|
130
|
-
{
|
131
|
-
"inputs": [
|
132
|
-
{
|
133
|
-
"internalType": "address",
|
134
|
-
"name": "newWallet",
|
135
|
-
"type": "address"
|
136
|
-
}
|
137
|
-
],
|
105
|
+
"inputs": [],
|
138
106
|
"name": "ErrorComponentWalletAddressIsSameAsCurrent",
|
139
107
|
"type": "error"
|
140
108
|
},
|
@@ -169,37 +137,47 @@
|
|
169
137
|
"name": "ErrorComponentWalletAllowanceTooSmall",
|
170
138
|
"type": "error"
|
171
139
|
},
|
140
|
+
{
|
141
|
+
"inputs": [],
|
142
|
+
"name": "ErrorComponentWalletNotComponent",
|
143
|
+
"type": "error"
|
144
|
+
},
|
172
145
|
{
|
173
146
|
"inputs": [
|
174
147
|
{
|
175
|
-
"internalType": "
|
176
|
-
"name": "
|
177
|
-
"type": "
|
148
|
+
"internalType": "NftId",
|
149
|
+
"name": "nftId",
|
150
|
+
"type": "uint96"
|
178
151
|
}
|
179
152
|
],
|
180
|
-
"name": "
|
153
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
181
154
|
"type": "error"
|
182
155
|
},
|
183
156
|
{
|
184
157
|
"inputs": [
|
185
158
|
{
|
186
159
|
"internalType": "address",
|
187
|
-
"name": "
|
160
|
+
"name": "contractAddress",
|
188
161
|
"type": "address"
|
189
162
|
}
|
190
163
|
],
|
191
|
-
"name": "
|
164
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
165
|
+
"type": "error"
|
166
|
+
},
|
167
|
+
{
|
168
|
+
"inputs": [],
|
169
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
192
170
|
"type": "error"
|
193
171
|
},
|
194
172
|
{
|
195
173
|
"inputs": [
|
196
174
|
{
|
197
175
|
"internalType": "address",
|
198
|
-
"name": "
|
176
|
+
"name": "account",
|
199
177
|
"type": "address"
|
200
178
|
}
|
201
179
|
],
|
202
|
-
"name": "
|
180
|
+
"name": "ErrorNftOwnableNotOwner",
|
203
181
|
"type": "error"
|
204
182
|
},
|
205
183
|
{
|
@@ -210,28 +188,45 @@
|
|
210
188
|
"type": "address"
|
211
189
|
}
|
212
190
|
],
|
213
|
-
"name": "
|
191
|
+
"name": "ErrorNotRegistry",
|
214
192
|
"type": "error"
|
215
193
|
},
|
216
194
|
{
|
217
|
-
"inputs": [
|
218
|
-
|
195
|
+
"inputs": [
|
196
|
+
{
|
197
|
+
"internalType": "NftId",
|
198
|
+
"name": "applicationNftId",
|
199
|
+
"type": "uint96"
|
200
|
+
}
|
201
|
+
],
|
202
|
+
"name": "ErrorPoolApplicationBundleMismatch",
|
219
203
|
"type": "error"
|
220
204
|
},
|
221
205
|
{
|
222
206
|
"inputs": [
|
207
|
+
{
|
208
|
+
"internalType": "NftId",
|
209
|
+
"name": "bundleNftId",
|
210
|
+
"type": "uint96"
|
211
|
+
},
|
223
212
|
{
|
224
213
|
"internalType": "address",
|
225
|
-
"name": "
|
214
|
+
"name": "caller",
|
226
215
|
"type": "address"
|
227
216
|
}
|
228
217
|
],
|
229
|
-
"name": "
|
218
|
+
"name": "ErrorPoolNotBundleOwner",
|
230
219
|
"type": "error"
|
231
220
|
},
|
232
221
|
{
|
233
|
-
"inputs": [
|
234
|
-
|
222
|
+
"inputs": [
|
223
|
+
{
|
224
|
+
"internalType": "address",
|
225
|
+
"name": "caller",
|
226
|
+
"type": "address"
|
227
|
+
}
|
228
|
+
],
|
229
|
+
"name": "ErrorPoolNotPoolService",
|
235
230
|
"type": "error"
|
236
231
|
},
|
237
232
|
{
|
@@ -289,6 +284,25 @@
|
|
289
284
|
{
|
290
285
|
"anonymous": false,
|
291
286
|
"inputs": [
|
287
|
+
{
|
288
|
+
"indexed": false,
|
289
|
+
"internalType": "uint256",
|
290
|
+
"name": "limit",
|
291
|
+
"type": "uint256"
|
292
|
+
}
|
293
|
+
],
|
294
|
+
"name": "LogComponentTokenHandlerApproved",
|
295
|
+
"type": "event"
|
296
|
+
},
|
297
|
+
{
|
298
|
+
"anonymous": false,
|
299
|
+
"inputs": [
|
300
|
+
{
|
301
|
+
"indexed": false,
|
302
|
+
"internalType": "address",
|
303
|
+
"name": "oldWallet",
|
304
|
+
"type": "address"
|
305
|
+
},
|
292
306
|
{
|
293
307
|
"indexed": false,
|
294
308
|
"internalType": "address",
|
@@ -329,29 +343,55 @@
|
|
329
343
|
"inputs": [
|
330
344
|
{
|
331
345
|
"indexed": false,
|
332
|
-
"internalType": "
|
333
|
-
"name": "
|
334
|
-
"type": "
|
346
|
+
"internalType": "address",
|
347
|
+
"name": "pool",
|
348
|
+
"type": "address"
|
335
349
|
},
|
336
350
|
{
|
337
351
|
"indexed": false,
|
338
|
-
"internalType": "
|
339
|
-
"name": "
|
340
|
-
"type": "
|
352
|
+
"internalType": "NftId",
|
353
|
+
"name": "applicationNftId",
|
354
|
+
"type": "uint96"
|
341
355
|
},
|
342
356
|
{
|
343
357
|
"indexed": false,
|
344
|
-
"internalType": "
|
345
|
-
"name": "
|
346
|
-
"type": "
|
358
|
+
"internalType": "Amount",
|
359
|
+
"name": "collateralizationAmount",
|
360
|
+
"type": "uint96"
|
347
361
|
}
|
348
362
|
],
|
349
|
-
"name": "
|
363
|
+
"name": "LogPoolVerifiedByPool",
|
350
364
|
"type": "event"
|
351
365
|
},
|
352
366
|
{
|
353
367
|
"inputs": [],
|
354
|
-
"name": "
|
368
|
+
"name": "COMPONENT_LOCATION_V1",
|
369
|
+
"outputs": [
|
370
|
+
{
|
371
|
+
"internalType": "bytes32",
|
372
|
+
"name": "",
|
373
|
+
"type": "bytes32"
|
374
|
+
}
|
375
|
+
],
|
376
|
+
"stateMutability": "view",
|
377
|
+
"type": "function"
|
378
|
+
},
|
379
|
+
{
|
380
|
+
"inputs": [],
|
381
|
+
"name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
|
382
|
+
"outputs": [
|
383
|
+
{
|
384
|
+
"internalType": "bytes32",
|
385
|
+
"name": "",
|
386
|
+
"type": "bytes32"
|
387
|
+
}
|
388
|
+
],
|
389
|
+
"stateMutability": "view",
|
390
|
+
"type": "function"
|
391
|
+
},
|
392
|
+
{
|
393
|
+
"inputs": [],
|
394
|
+
"name": "POOL_STORAGE_LOCATION_V1",
|
355
395
|
"outputs": [
|
356
396
|
{
|
357
397
|
"internalType": "bytes32",
|
@@ -375,6 +415,58 @@
|
|
375
415
|
"stateMutability": "view",
|
376
416
|
"type": "function"
|
377
417
|
},
|
418
|
+
{
|
419
|
+
"inputs": [
|
420
|
+
{
|
421
|
+
"internalType": "NftId",
|
422
|
+
"name": "applicationNftId",
|
423
|
+
"type": "uint96"
|
424
|
+
},
|
425
|
+
{
|
426
|
+
"internalType": "bytes",
|
427
|
+
"name": "applicationData",
|
428
|
+
"type": "bytes"
|
429
|
+
},
|
430
|
+
{
|
431
|
+
"internalType": "NftId",
|
432
|
+
"name": "bundleNftId",
|
433
|
+
"type": "uint96"
|
434
|
+
},
|
435
|
+
{
|
436
|
+
"internalType": "bytes",
|
437
|
+
"name": "bundleFilter",
|
438
|
+
"type": "bytes"
|
439
|
+
},
|
440
|
+
{
|
441
|
+
"internalType": "Amount",
|
442
|
+
"name": "collateralizationAmount",
|
443
|
+
"type": "uint96"
|
444
|
+
}
|
445
|
+
],
|
446
|
+
"name": "applicationMatchesBundle",
|
447
|
+
"outputs": [
|
448
|
+
{
|
449
|
+
"internalType": "bool",
|
450
|
+
"name": "isMatching",
|
451
|
+
"type": "bool"
|
452
|
+
}
|
453
|
+
],
|
454
|
+
"stateMutability": "view",
|
455
|
+
"type": "function"
|
456
|
+
},
|
457
|
+
{
|
458
|
+
"inputs": [
|
459
|
+
{
|
460
|
+
"internalType": "uint256",
|
461
|
+
"name": "spendingLimitAmount",
|
462
|
+
"type": "uint256"
|
463
|
+
}
|
464
|
+
],
|
465
|
+
"name": "approveTokenHandler",
|
466
|
+
"outputs": [],
|
467
|
+
"stateMutability": "nonpayable",
|
468
|
+
"type": "function"
|
469
|
+
},
|
378
470
|
{
|
379
471
|
"inputs": [],
|
380
472
|
"name": "authority",
|
@@ -388,19 +480,106 @@
|
|
388
480
|
"stateMutability": "view",
|
389
481
|
"type": "function"
|
390
482
|
},
|
483
|
+
{
|
484
|
+
"inputs": [
|
485
|
+
{
|
486
|
+
"internalType": "NftId",
|
487
|
+
"name": "bundleNftId",
|
488
|
+
"type": "uint96"
|
489
|
+
}
|
490
|
+
],
|
491
|
+
"name": "close",
|
492
|
+
"outputs": [],
|
493
|
+
"stateMutability": "nonpayable",
|
494
|
+
"type": "function"
|
495
|
+
},
|
496
|
+
{
|
497
|
+
"inputs": [
|
498
|
+
{
|
499
|
+
"internalType": "NftId",
|
500
|
+
"name": "bundleNftId",
|
501
|
+
"type": "uint96"
|
502
|
+
},
|
503
|
+
{
|
504
|
+
"internalType": "Seconds",
|
505
|
+
"name": "lifetimeExtension",
|
506
|
+
"type": "uint40"
|
507
|
+
}
|
508
|
+
],
|
509
|
+
"name": "extend",
|
510
|
+
"outputs": [],
|
511
|
+
"stateMutability": "nonpayable",
|
512
|
+
"type": "function"
|
513
|
+
},
|
391
514
|
{
|
392
515
|
"inputs": [],
|
393
|
-
"name": "
|
516
|
+
"name": "getComponentInfo",
|
394
517
|
"outputs": [
|
395
518
|
{
|
396
|
-
"
|
397
|
-
|
398
|
-
|
519
|
+
"components": [
|
520
|
+
{
|
521
|
+
"internalType": "string",
|
522
|
+
"name": "name",
|
523
|
+
"type": "string"
|
524
|
+
},
|
525
|
+
{
|
526
|
+
"internalType": "contract IERC20Metadata",
|
527
|
+
"name": "token",
|
528
|
+
"type": "address"
|
529
|
+
},
|
530
|
+
{
|
531
|
+
"internalType": "contract TokenHandler",
|
532
|
+
"name": "tokenHandler",
|
533
|
+
"type": "address"
|
534
|
+
},
|
535
|
+
{
|
536
|
+
"internalType": "address",
|
537
|
+
"name": "wallet",
|
538
|
+
"type": "address"
|
539
|
+
},
|
540
|
+
{
|
541
|
+
"internalType": "Amount",
|
542
|
+
"name": "balanceAmount",
|
543
|
+
"type": "uint96"
|
544
|
+
},
|
545
|
+
{
|
546
|
+
"internalType": "Amount",
|
547
|
+
"name": "feeAmount",
|
548
|
+
"type": "uint96"
|
549
|
+
},
|
550
|
+
{
|
551
|
+
"internalType": "bytes",
|
552
|
+
"name": "data",
|
553
|
+
"type": "bytes"
|
554
|
+
}
|
555
|
+
],
|
556
|
+
"internalType": "struct IComponents.ComponentInfo",
|
557
|
+
"name": "info",
|
558
|
+
"type": "tuple"
|
399
559
|
}
|
400
560
|
],
|
401
561
|
"stateMutability": "view",
|
402
562
|
"type": "function"
|
403
563
|
},
|
564
|
+
{
|
565
|
+
"inputs": [
|
566
|
+
{
|
567
|
+
"internalType": "bytes",
|
568
|
+
"name": "name",
|
569
|
+
"type": "bytes"
|
570
|
+
}
|
571
|
+
],
|
572
|
+
"name": "getContractLocation",
|
573
|
+
"outputs": [
|
574
|
+
{
|
575
|
+
"internalType": "bytes32",
|
576
|
+
"name": "hash",
|
577
|
+
"type": "bytes32"
|
578
|
+
}
|
579
|
+
],
|
580
|
+
"stateMutability": "pure",
|
581
|
+
"type": "function"
|
582
|
+
},
|
404
583
|
{
|
405
584
|
"inputs": [],
|
406
585
|
"name": "getInitialInfo",
|
@@ -453,11 +632,11 @@
|
|
453
632
|
},
|
454
633
|
{
|
455
634
|
"inputs": [],
|
456
|
-
"name": "
|
635
|
+
"name": "getInstance",
|
457
636
|
"outputs": [
|
458
637
|
{
|
459
|
-
"internalType": "
|
460
|
-
"name": "",
|
638
|
+
"internalType": "contract IInstance",
|
639
|
+
"name": "instance",
|
461
640
|
"type": "address"
|
462
641
|
}
|
463
642
|
],
|
@@ -466,33 +645,7 @@
|
|
466
645
|
},
|
467
646
|
{
|
468
647
|
"inputs": [],
|
469
|
-
"name": "
|
470
|
-
"outputs": [
|
471
|
-
{
|
472
|
-
"internalType": "contract IInstance",
|
473
|
-
"name": "instance",
|
474
|
-
"type": "address"
|
475
|
-
}
|
476
|
-
],
|
477
|
-
"stateMutability": "view",
|
478
|
-
"type": "function"
|
479
|
-
},
|
480
|
-
{
|
481
|
-
"inputs": [],
|
482
|
-
"name": "getInstanceService",
|
483
|
-
"outputs": [
|
484
|
-
{
|
485
|
-
"internalType": "contract IInstanceService",
|
486
|
-
"name": "",
|
487
|
-
"type": "address"
|
488
|
-
}
|
489
|
-
],
|
490
|
-
"stateMutability": "view",
|
491
|
-
"type": "function"
|
492
|
-
},
|
493
|
-
{
|
494
|
-
"inputs": [],
|
495
|
-
"name": "getName",
|
648
|
+
"name": "getName",
|
496
649
|
"outputs": [
|
497
650
|
{
|
498
651
|
"internalType": "string",
|
@@ -531,46 +684,7 @@
|
|
531
684
|
},
|
532
685
|
{
|
533
686
|
"inputs": [],
|
534
|
-
"name": "
|
535
|
-
"outputs": [
|
536
|
-
{
|
537
|
-
"internalType": "NftId",
|
538
|
-
"name": "productNftId",
|
539
|
-
"type": "uint96"
|
540
|
-
}
|
541
|
-
],
|
542
|
-
"stateMutability": "view",
|
543
|
-
"type": "function"
|
544
|
-
},
|
545
|
-
{
|
546
|
-
"inputs": [],
|
547
|
-
"name": "getProductService",
|
548
|
-
"outputs": [
|
549
|
-
{
|
550
|
-
"internalType": "contract IProductService",
|
551
|
-
"name": "",
|
552
|
-
"type": "address"
|
553
|
-
}
|
554
|
-
],
|
555
|
-
"stateMutability": "view",
|
556
|
-
"type": "function"
|
557
|
-
},
|
558
|
-
{
|
559
|
-
"inputs": [],
|
560
|
-
"name": "getRegistry",
|
561
|
-
"outputs": [
|
562
|
-
{
|
563
|
-
"internalType": "contract IRegistry",
|
564
|
-
"name": "",
|
565
|
-
"type": "address"
|
566
|
-
}
|
567
|
-
],
|
568
|
-
"stateMutability": "view",
|
569
|
-
"type": "function"
|
570
|
-
},
|
571
|
-
{
|
572
|
-
"inputs": [],
|
573
|
-
"name": "getSetupInfo",
|
687
|
+
"name": "getPoolInfo",
|
574
688
|
"outputs": [
|
575
689
|
{
|
576
690
|
"components": [
|
@@ -580,15 +694,50 @@
|
|
580
694
|
"type": "uint96"
|
581
695
|
},
|
582
696
|
{
|
583
|
-
"internalType": "
|
584
|
-
"name": "
|
585
|
-
"type": "
|
697
|
+
"internalType": "RoleId",
|
698
|
+
"name": "bundleOwnerRole",
|
699
|
+
"type": "uint64"
|
700
|
+
},
|
701
|
+
{
|
702
|
+
"internalType": "Amount",
|
703
|
+
"name": "maxCapitalAmount",
|
704
|
+
"type": "uint96"
|
705
|
+
},
|
706
|
+
{
|
707
|
+
"internalType": "Amount",
|
708
|
+
"name": "balanceAmount",
|
709
|
+
"type": "uint96"
|
710
|
+
},
|
711
|
+
{
|
712
|
+
"internalType": "Amount",
|
713
|
+
"name": "feeAmount",
|
714
|
+
"type": "uint96"
|
715
|
+
},
|
716
|
+
{
|
717
|
+
"internalType": "bool",
|
718
|
+
"name": "isInterceptingBundleTransfers",
|
719
|
+
"type": "bool"
|
720
|
+
},
|
721
|
+
{
|
722
|
+
"internalType": "bool",
|
723
|
+
"name": "isExternallyManaged",
|
724
|
+
"type": "bool"
|
725
|
+
},
|
726
|
+
{
|
727
|
+
"internalType": "bool",
|
728
|
+
"name": "isVerifyingApplications",
|
729
|
+
"type": "bool"
|
586
730
|
},
|
587
731
|
{
|
588
732
|
"internalType": "UFixed",
|
589
733
|
"name": "collateralizationLevel",
|
590
734
|
"type": "uint256"
|
591
735
|
},
|
736
|
+
{
|
737
|
+
"internalType": "UFixed",
|
738
|
+
"name": "retentionLevel",
|
739
|
+
"type": "uint256"
|
740
|
+
},
|
592
741
|
{
|
593
742
|
"components": [
|
594
743
|
{
|
@@ -639,31 +788,42 @@
|
|
639
788
|
"internalType": "struct Fee",
|
640
789
|
"name": "performanceFee",
|
641
790
|
"type": "tuple"
|
642
|
-
},
|
643
|
-
{
|
644
|
-
"internalType": "bool",
|
645
|
-
"name": "isIntercepting",
|
646
|
-
"type": "bool"
|
647
|
-
},
|
648
|
-
{
|
649
|
-
"internalType": "bool",
|
650
|
-
"name": "isConfirmingApplication",
|
651
|
-
"type": "bool"
|
652
|
-
},
|
653
|
-
{
|
654
|
-
"internalType": "address",
|
655
|
-
"name": "wallet",
|
656
|
-
"type": "address"
|
657
791
|
}
|
658
792
|
],
|
659
|
-
"internalType": "struct
|
660
|
-
"name": "
|
793
|
+
"internalType": "struct IComponents.PoolInfo",
|
794
|
+
"name": "poolInfo",
|
661
795
|
"type": "tuple"
|
662
796
|
}
|
663
797
|
],
|
664
798
|
"stateMutability": "view",
|
665
799
|
"type": "function"
|
666
800
|
},
|
801
|
+
{
|
802
|
+
"inputs": [],
|
803
|
+
"name": "getProductNftId",
|
804
|
+
"outputs": [
|
805
|
+
{
|
806
|
+
"internalType": "NftId",
|
807
|
+
"name": "productNftId",
|
808
|
+
"type": "uint96"
|
809
|
+
}
|
810
|
+
],
|
811
|
+
"stateMutability": "view",
|
812
|
+
"type": "function"
|
813
|
+
},
|
814
|
+
{
|
815
|
+
"inputs": [],
|
816
|
+
"name": "getRegistry",
|
817
|
+
"outputs": [
|
818
|
+
{
|
819
|
+
"internalType": "contract IRegistry",
|
820
|
+
"name": "",
|
821
|
+
"type": "address"
|
822
|
+
}
|
823
|
+
],
|
824
|
+
"stateMutability": "view",
|
825
|
+
"type": "function"
|
826
|
+
},
|
667
827
|
{
|
668
828
|
"inputs": [],
|
669
829
|
"name": "getToken",
|
@@ -677,6 +837,19 @@
|
|
677
837
|
"stateMutability": "view",
|
678
838
|
"type": "function"
|
679
839
|
},
|
840
|
+
{
|
841
|
+
"inputs": [],
|
842
|
+
"name": "getTokenHandler",
|
843
|
+
"outputs": [
|
844
|
+
{
|
845
|
+
"internalType": "contract TokenHandler",
|
846
|
+
"name": "tokenHandler",
|
847
|
+
"type": "address"
|
848
|
+
}
|
849
|
+
],
|
850
|
+
"stateMutability": "view",
|
851
|
+
"type": "function"
|
852
|
+
},
|
680
853
|
{
|
681
854
|
"inputs": [],
|
682
855
|
"name": "getWallet",
|
@@ -690,17 +863,171 @@
|
|
690
863
|
"stateMutability": "view",
|
691
864
|
"type": "function"
|
692
865
|
},
|
866
|
+
{
|
867
|
+
"inputs": [
|
868
|
+
{
|
869
|
+
"internalType": "address",
|
870
|
+
"name": "registry",
|
871
|
+
"type": "address"
|
872
|
+
},
|
873
|
+
{
|
874
|
+
"internalType": "NftId",
|
875
|
+
"name": "instanceNftId",
|
876
|
+
"type": "uint96"
|
877
|
+
},
|
878
|
+
{
|
879
|
+
"internalType": "string",
|
880
|
+
"name": "name",
|
881
|
+
"type": "string"
|
882
|
+
},
|
883
|
+
{
|
884
|
+
"internalType": "address",
|
885
|
+
"name": "token",
|
886
|
+
"type": "address"
|
887
|
+
},
|
888
|
+
{
|
889
|
+
"internalType": "ObjectType",
|
890
|
+
"name": "componentType",
|
891
|
+
"type": "uint8"
|
892
|
+
},
|
893
|
+
{
|
894
|
+
"internalType": "bool",
|
895
|
+
"name": "isInterceptor",
|
896
|
+
"type": "bool"
|
897
|
+
},
|
898
|
+
{
|
899
|
+
"internalType": "address",
|
900
|
+
"name": "initialOwner",
|
901
|
+
"type": "address"
|
902
|
+
},
|
903
|
+
{
|
904
|
+
"internalType": "bytes",
|
905
|
+
"name": "registryData",
|
906
|
+
"type": "bytes"
|
907
|
+
}
|
908
|
+
],
|
909
|
+
"name": "initializeComponent",
|
910
|
+
"outputs": [],
|
911
|
+
"stateMutability": "nonpayable",
|
912
|
+
"type": "function"
|
913
|
+
},
|
693
914
|
{
|
694
915
|
"inputs": [],
|
695
|
-
"name": "
|
696
|
-
"outputs": [
|
916
|
+
"name": "initializeERC165",
|
917
|
+
"outputs": [],
|
918
|
+
"stateMutability": "nonpayable",
|
919
|
+
"type": "function"
|
920
|
+
},
|
921
|
+
{
|
922
|
+
"inputs": [
|
923
|
+
{
|
924
|
+
"internalType": "address",
|
925
|
+
"name": "initialOwner",
|
926
|
+
"type": "address"
|
927
|
+
},
|
928
|
+
{
|
929
|
+
"internalType": "address",
|
930
|
+
"name": "registryAddress",
|
931
|
+
"type": "address"
|
932
|
+
}
|
933
|
+
],
|
934
|
+
"name": "initializeNftOwnable",
|
935
|
+
"outputs": [],
|
936
|
+
"stateMutability": "nonpayable",
|
937
|
+
"type": "function"
|
938
|
+
},
|
939
|
+
{
|
940
|
+
"inputs": [
|
941
|
+
{
|
942
|
+
"internalType": "address",
|
943
|
+
"name": "registry",
|
944
|
+
"type": "address"
|
945
|
+
},
|
946
|
+
{
|
947
|
+
"internalType": "NftId",
|
948
|
+
"name": "instanceNftId",
|
949
|
+
"type": "uint96"
|
950
|
+
},
|
951
|
+
{
|
952
|
+
"internalType": "string",
|
953
|
+
"name": "name",
|
954
|
+
"type": "string"
|
955
|
+
},
|
956
|
+
{
|
957
|
+
"internalType": "address",
|
958
|
+
"name": "token",
|
959
|
+
"type": "address"
|
960
|
+
},
|
961
|
+
{
|
962
|
+
"internalType": "bool",
|
963
|
+
"name": "isInterceptingNftTransfers",
|
964
|
+
"type": "bool"
|
965
|
+
},
|
966
|
+
{
|
967
|
+
"internalType": "address",
|
968
|
+
"name": "initialOwner",
|
969
|
+
"type": "address"
|
970
|
+
},
|
971
|
+
{
|
972
|
+
"internalType": "bytes",
|
973
|
+
"name": "registryData",
|
974
|
+
"type": "bytes"
|
975
|
+
}
|
976
|
+
],
|
977
|
+
"name": "initializePool",
|
978
|
+
"outputs": [],
|
979
|
+
"stateMutability": "nonpayable",
|
980
|
+
"type": "function"
|
981
|
+
},
|
982
|
+
{
|
983
|
+
"inputs": [
|
984
|
+
{
|
985
|
+
"internalType": "address",
|
986
|
+
"name": "registryAddress",
|
987
|
+
"type": "address"
|
988
|
+
},
|
989
|
+
{
|
990
|
+
"internalType": "NftId",
|
991
|
+
"name": "parentNftId",
|
992
|
+
"type": "uint96"
|
993
|
+
},
|
994
|
+
{
|
995
|
+
"internalType": "ObjectType",
|
996
|
+
"name": "objectType",
|
997
|
+
"type": "uint8"
|
998
|
+
},
|
697
999
|
{
|
698
1000
|
"internalType": "bool",
|
699
|
-
"name": "
|
1001
|
+
"name": "isInterceptor",
|
700
1002
|
"type": "bool"
|
1003
|
+
},
|
1004
|
+
{
|
1005
|
+
"internalType": "address",
|
1006
|
+
"name": "initialOwner",
|
1007
|
+
"type": "address"
|
1008
|
+
},
|
1009
|
+
{
|
1010
|
+
"internalType": "bytes",
|
1011
|
+
"name": "registryData",
|
1012
|
+
"type": "bytes"
|
701
1013
|
}
|
702
1014
|
],
|
703
|
-
"
|
1015
|
+
"name": "initializeRegisterable",
|
1016
|
+
"outputs": [],
|
1017
|
+
"stateMutability": "nonpayable",
|
1018
|
+
"type": "function"
|
1019
|
+
},
|
1020
|
+
{
|
1021
|
+
"inputs": [
|
1022
|
+
{
|
1023
|
+
"internalType": "address",
|
1024
|
+
"name": "registryAddress",
|
1025
|
+
"type": "address"
|
1026
|
+
}
|
1027
|
+
],
|
1028
|
+
"name": "initializeRegistryLinked",
|
1029
|
+
"outputs": [],
|
1030
|
+
"stateMutability": "nonpayable",
|
704
1031
|
"type": "function"
|
705
1032
|
},
|
706
1033
|
{
|
@@ -716,6 +1043,19 @@
|
|
716
1043
|
"stateMutability": "view",
|
717
1044
|
"type": "function"
|
718
1045
|
},
|
1046
|
+
{
|
1047
|
+
"inputs": [],
|
1048
|
+
"name": "isNftInterceptor",
|
1049
|
+
"outputs": [
|
1050
|
+
{
|
1051
|
+
"internalType": "bool",
|
1052
|
+
"name": "isInterceptor",
|
1053
|
+
"type": "bool"
|
1054
|
+
}
|
1055
|
+
],
|
1056
|
+
"stateMutability": "view",
|
1057
|
+
"type": "function"
|
1058
|
+
},
|
719
1059
|
{
|
720
1060
|
"inputs": [],
|
721
1061
|
"name": "linkToRegisteredNftId",
|
@@ -733,25 +1073,68 @@
|
|
733
1073
|
{
|
734
1074
|
"inputs": [
|
735
1075
|
{
|
736
|
-
"internalType": "
|
737
|
-
"name": "",
|
738
|
-
"type": "
|
1076
|
+
"internalType": "NftId",
|
1077
|
+
"name": "bundleNftId",
|
1078
|
+
"type": "uint96"
|
1079
|
+
}
|
1080
|
+
],
|
1081
|
+
"name": "lockBundle",
|
1082
|
+
"outputs": [],
|
1083
|
+
"stateMutability": "nonpayable",
|
1084
|
+
"type": "function"
|
1085
|
+
},
|
1086
|
+
{
|
1087
|
+
"inputs": [
|
1088
|
+
{
|
1089
|
+
"internalType": "address",
|
1090
|
+
"name": "to",
|
1091
|
+
"type": "address"
|
739
1092
|
},
|
740
1093
|
{
|
741
|
-
"internalType": "
|
742
|
-
"name": "",
|
743
|
-
"type": "
|
1094
|
+
"internalType": "uint256",
|
1095
|
+
"name": "tokenId",
|
1096
|
+
"type": "uint256"
|
744
1097
|
}
|
745
1098
|
],
|
746
|
-
"name": "
|
747
|
-
"outputs": [
|
1099
|
+
"name": "nftMint",
|
1100
|
+
"outputs": [],
|
1101
|
+
"stateMutability": "nonpayable",
|
1102
|
+
"type": "function"
|
1103
|
+
},
|
1104
|
+
{
|
1105
|
+
"inputs": [
|
748
1106
|
{
|
749
|
-
"internalType": "
|
750
|
-
"name": "
|
751
|
-
"type": "
|
1107
|
+
"internalType": "address",
|
1108
|
+
"name": "from",
|
1109
|
+
"type": "address"
|
1110
|
+
},
|
1111
|
+
{
|
1112
|
+
"internalType": "address",
|
1113
|
+
"name": "to",
|
1114
|
+
"type": "address"
|
1115
|
+
},
|
1116
|
+
{
|
1117
|
+
"internalType": "uint256",
|
1118
|
+
"name": "tokenId",
|
1119
|
+
"type": "uint256"
|
752
1120
|
}
|
753
1121
|
],
|
754
|
-
"
|
1122
|
+
"name": "nftTransferFrom",
|
1123
|
+
"outputs": [],
|
1124
|
+
"stateMutability": "nonpayable",
|
1125
|
+
"type": "function"
|
1126
|
+
},
|
1127
|
+
{
|
1128
|
+
"inputs": [
|
1129
|
+
{
|
1130
|
+
"internalType": "bytes4",
|
1131
|
+
"name": "interfaceId",
|
1132
|
+
"type": "bytes4"
|
1133
|
+
}
|
1134
|
+
],
|
1135
|
+
"name": "registerInterface",
|
1136
|
+
"outputs": [],
|
1137
|
+
"stateMutability": "nonpayable",
|
755
1138
|
"type": "function"
|
756
1139
|
},
|
757
1140
|
{
|
@@ -767,6 +1150,49 @@
|
|
767
1150
|
"stateMutability": "nonpayable",
|
768
1151
|
"type": "function"
|
769
1152
|
},
|
1153
|
+
{
|
1154
|
+
"inputs": [
|
1155
|
+
{
|
1156
|
+
"internalType": "NftId",
|
1157
|
+
"name": "bundleNftId",
|
1158
|
+
"type": "uint96"
|
1159
|
+
},
|
1160
|
+
{
|
1161
|
+
"components": [
|
1162
|
+
{
|
1163
|
+
"internalType": "UFixed",
|
1164
|
+
"name": "fractionalFee",
|
1165
|
+
"type": "uint256"
|
1166
|
+
},
|
1167
|
+
{
|
1168
|
+
"internalType": "uint256",
|
1169
|
+
"name": "fixedFee",
|
1170
|
+
"type": "uint256"
|
1171
|
+
}
|
1172
|
+
],
|
1173
|
+
"internalType": "struct Fee",
|
1174
|
+
"name": "fee",
|
1175
|
+
"type": "tuple"
|
1176
|
+
}
|
1177
|
+
],
|
1178
|
+
"name": "setBundleFee",
|
1179
|
+
"outputs": [],
|
1180
|
+
"stateMutability": "nonpayable",
|
1181
|
+
"type": "function"
|
1182
|
+
},
|
1183
|
+
{
|
1184
|
+
"inputs": [
|
1185
|
+
{
|
1186
|
+
"internalType": "RoleId",
|
1187
|
+
"name": "bundleOwnerRole",
|
1188
|
+
"type": "uint64"
|
1189
|
+
}
|
1190
|
+
],
|
1191
|
+
"name": "setBundleOwnerRole",
|
1192
|
+
"outputs": [],
|
1193
|
+
"stateMutability": "nonpayable",
|
1194
|
+
"type": "function"
|
1195
|
+
},
|
770
1196
|
{
|
771
1197
|
"inputs": [
|
772
1198
|
{
|
@@ -826,6 +1252,19 @@
|
|
826
1252
|
"stateMutability": "nonpayable",
|
827
1253
|
"type": "function"
|
828
1254
|
},
|
1255
|
+
{
|
1256
|
+
"inputs": [
|
1257
|
+
{
|
1258
|
+
"internalType": "Amount",
|
1259
|
+
"name": "maxCapitalAmount",
|
1260
|
+
"type": "uint96"
|
1261
|
+
}
|
1262
|
+
],
|
1263
|
+
"name": "setMaxCapitalAmount",
|
1264
|
+
"outputs": [],
|
1265
|
+
"stateMutability": "nonpayable",
|
1266
|
+
"type": "function"
|
1267
|
+
},
|
829
1268
|
{
|
830
1269
|
"inputs": [
|
831
1270
|
{
|
@@ -852,6 +1291,24 @@
|
|
852
1291
|
"stateMutability": "nonpayable",
|
853
1292
|
"type": "function"
|
854
1293
|
},
|
1294
|
+
{
|
1295
|
+
"inputs": [
|
1296
|
+
{
|
1297
|
+
"internalType": "NftId",
|
1298
|
+
"name": "bundleNftId",
|
1299
|
+
"type": "uint96"
|
1300
|
+
},
|
1301
|
+
{
|
1302
|
+
"internalType": "Amount",
|
1303
|
+
"name": "amount",
|
1304
|
+
"type": "uint96"
|
1305
|
+
}
|
1306
|
+
],
|
1307
|
+
"name": "stake",
|
1308
|
+
"outputs": [],
|
1309
|
+
"stateMutability": "nonpayable",
|
1310
|
+
"type": "function"
|
1311
|
+
},
|
855
1312
|
{
|
856
1313
|
"inputs": [
|
857
1314
|
{
|
@@ -871,37 +1328,73 @@
|
|
871
1328
|
"stateMutability": "view",
|
872
1329
|
"type": "function"
|
873
1330
|
},
|
1331
|
+
{
|
1332
|
+
"inputs": [],
|
1333
|
+
"name": "unlock",
|
1334
|
+
"outputs": [],
|
1335
|
+
"stateMutability": "nonpayable",
|
1336
|
+
"type": "function"
|
1337
|
+
},
|
1338
|
+
{
|
1339
|
+
"inputs": [
|
1340
|
+
{
|
1341
|
+
"internalType": "NftId",
|
1342
|
+
"name": "bundleNftId",
|
1343
|
+
"type": "uint96"
|
1344
|
+
}
|
1345
|
+
],
|
1346
|
+
"name": "unlockBundle",
|
1347
|
+
"outputs": [],
|
1348
|
+
"stateMutability": "nonpayable",
|
1349
|
+
"type": "function"
|
1350
|
+
},
|
1351
|
+
{
|
1352
|
+
"inputs": [
|
1353
|
+
{
|
1354
|
+
"internalType": "NftId",
|
1355
|
+
"name": "bundleNftId",
|
1356
|
+
"type": "uint96"
|
1357
|
+
},
|
1358
|
+
{
|
1359
|
+
"internalType": "Amount",
|
1360
|
+
"name": "amount",
|
1361
|
+
"type": "uint96"
|
1362
|
+
}
|
1363
|
+
],
|
1364
|
+
"name": "unstake",
|
1365
|
+
"outputs": [],
|
1366
|
+
"stateMutability": "nonpayable",
|
1367
|
+
"type": "function"
|
1368
|
+
},
|
874
1369
|
{
|
875
1370
|
"inputs": [
|
876
1371
|
{
|
877
1372
|
"internalType": "NftId",
|
878
|
-
"name": "
|
1373
|
+
"name": "applicationNftId",
|
879
1374
|
"type": "uint96"
|
880
1375
|
},
|
881
1376
|
{
|
882
1377
|
"internalType": "bytes",
|
883
|
-
"name": "
|
1378
|
+
"name": "applicationData",
|
884
1379
|
"type": "bytes"
|
885
1380
|
},
|
1381
|
+
{
|
1382
|
+
"internalType": "NftId",
|
1383
|
+
"name": "bundleNftId",
|
1384
|
+
"type": "uint96"
|
1385
|
+
},
|
886
1386
|
{
|
887
1387
|
"internalType": "bytes",
|
888
1388
|
"name": "bundleFilter",
|
889
1389
|
"type": "bytes"
|
890
1390
|
},
|
891
1391
|
{
|
892
|
-
"internalType": "
|
1392
|
+
"internalType": "Amount",
|
893
1393
|
"name": "collateralizationAmount",
|
894
|
-
"type": "
|
1394
|
+
"type": "uint96"
|
895
1395
|
}
|
896
1396
|
],
|
897
|
-
"name": "
|
898
|
-
"outputs": [],
|
899
|
-
"stateMutability": "nonpayable",
|
900
|
-
"type": "function"
|
901
|
-
},
|
902
|
-
{
|
903
|
-
"inputs": [],
|
904
|
-
"name": "unlock",
|
1397
|
+
"name": "verifyApplication",
|
905
1398
|
"outputs": [],
|
906
1399
|
"stateMutability": "nonpayable",
|
907
1400
|
"type": "function"
|