@etherisc/gif-next 0.0.2-d551b5e-892 → 0.0.2-d5b7b78-706
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +73 -1
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
- package/artifacts/contracts/components/Component.sol/Component.json +832 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +743 -168
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/components/{BaseComponent.sol/BaseComponent.json → IComponent.sol/IComponent.json} +152 -100
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +743 -26
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +737 -58
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +582 -9
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +675 -258
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +525 -223
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +1 -1
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +15 -15
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +69 -79
- 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 +1030 -394
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +246 -164
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +919 -1206
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +569 -198
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +120 -263
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +403 -369
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +295 -126
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +11 -40
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
- package/artifacts/contracts/instance/base/{ComponentServiceBase.sol/ComponentServiceBase.json → ComponentService.sol/ComponentService.json} +197 -166
- 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 +69 -43
- 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 +968 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +665 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1093 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +661 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +754 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +637 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1250 -202
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +450 -73
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +556 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +630 -0
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IClaimService.sol/IClaimService.json} +150 -207
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +727 -160
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +166 -290
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +75 -375
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +47 -201
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +393 -356
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +321 -96
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +253 -446
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +301 -92
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +218 -230
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +305 -76
- 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 +244 -133
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +158 -215
- 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 +257 -235
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +202 -318
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +298 -145
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +141 -53
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
- package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +40 -29
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +129 -0
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +21 -34
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/{experiment/inheritance/IB.sol/IB.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +18 -20
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/shared/IService.sol/IService.json +31 -183
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -152
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +120 -27
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +248 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +294 -61
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +129 -51
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +84 -0
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
- package/artifacts/contracts/shared/Service.sol/Service.json +127 -170
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +2 -2
- 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 +129 -51
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +6 -6
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +148 -227
- 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/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 +100 -0
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +2 -2
- 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 +100 -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 +25 -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 +251 -0
- package/contracts/components/Distribution.sol +200 -83
- package/contracts/components/IComponent.sol +74 -0
- package/contracts/components/IDistributionComponent.sol +44 -17
- package/contracts/components/IPoolComponent.sol +88 -41
- package/contracts/components/IProductComponent.sol +10 -5
- package/contracts/components/Pool.sol +210 -178
- package/contracts/components/Product.sol +125 -124
- package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +2 -12
- package/contracts/instance/BundleManager.sol +14 -16
- package/contracts/instance/Cloneable.sol +7 -2
- package/contracts/instance/IInstance.sol +54 -14
- package/contracts/instance/IInstanceService.sol +43 -3
- package/contracts/instance/Instance.sol +129 -262
- package/contracts/instance/InstanceAccessManager.sol +410 -176
- package/contracts/instance/InstanceReader.sol +9 -34
- package/contracts/instance/InstanceService.sol +404 -161
- package/contracts/instance/InstanceServiceManager.sol +6 -9
- package/contracts/instance/ObjectManager.sol +10 -29
- package/contracts/instance/base/ComponentService.sol +134 -0
- package/contracts/instance/base/KeyValueStore.sol +5 -2
- package/contracts/instance/base/Lifecycle.sol +11 -2
- package/contracts/instance/module/IAccess.sol +36 -20
- package/contracts/instance/module/IBundle.sol +2 -1
- package/contracts/instance/module/IComponents.sol +35 -0
- package/contracts/instance/module/IDistribution.sol +2 -0
- package/contracts/instance/module/IPolicy.sol +30 -3
- package/contracts/instance/module/ISetup.sol +7 -20
- package/contracts/instance/service/ApplicationService.sol +350 -0
- package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
- package/contracts/instance/service/BundleService.sol +336 -0
- package/contracts/instance/service/BundleServiceManager.sol +51 -0
- package/contracts/instance/service/ClaimService.sol +151 -0
- package/contracts/instance/service/ClaimServiceManager.sol +35 -0
- package/contracts/instance/service/DistributionService.sol +397 -48
- package/contracts/instance/service/DistributionServiceManager.sol +7 -10
- package/contracts/instance/service/IApplicationService.sol +82 -0
- package/contracts/instance/service/IBundleService.sol +62 -0
- package/contracts/instance/service/IClaimService.sol +61 -0
- package/contracts/instance/service/IDistributionService.sol +86 -0
- package/contracts/instance/service/IPolicyService.sol +38 -53
- package/contracts/instance/service/IPoolService.sol +19 -35
- package/contracts/instance/service/IProductService.sol +2 -2
- package/contracts/instance/service/PolicyService.sol +207 -317
- package/contracts/instance/service/PolicyServiceManager.sol +2 -2
- package/contracts/instance/service/PoolService.sol +133 -230
- package/contracts/instance/service/PoolServiceManager.sol +6 -9
- package/contracts/instance/service/ProductService.sol +108 -40
- package/contracts/instance/service/ProductServiceManager.sol +2 -2
- package/contracts/registry/ChainNft.sol +9 -1
- package/contracts/registry/IRegistry.sol +39 -19
- package/contracts/registry/IRegistryService.sol +30 -13
- package/contracts/registry/ITransferInterceptor.sol +1 -0
- package/contracts/registry/Registry.sol +243 -224
- package/contracts/registry/RegistryAccessManager.sol +216 -0
- package/contracts/registry/RegistryService.sol +96 -171
- package/contracts/registry/RegistryServiceManager.sol +21 -39
- package/contracts/registry/ReleaseManager.sol +322 -0
- package/contracts/registry/TokenRegistry.sol +22 -17
- package/contracts/shared/ERC165.sol +14 -12
- package/contracts/shared/INftOwnable.sol +11 -10
- package/contracts/shared/IPolicyHolder.sol +26 -0
- package/contracts/shared/IRegisterable.sol +4 -6
- package/contracts/shared/IRegistryLinked.sol +12 -0
- package/contracts/shared/IService.sol +4 -1
- package/contracts/shared/IVersionable.sol +4 -47
- package/contracts/shared/NftOwnable.sol +66 -80
- package/contracts/shared/PolicyHolder.sol +81 -0
- package/contracts/shared/ProxyManager.sol +100 -25
- package/contracts/shared/Registerable.sol +16 -32
- package/contracts/shared/RegistryLinked.sol +48 -0
- package/contracts/shared/Service.sol +25 -22
- package/contracts/shared/TokenHandler.sol +11 -5
- package/contracts/shared/Versionable.sol +4 -92
- package/contracts/test/TestRegisterable.sol +1 -1
- package/contracts/test/TestService.sol +4 -3
- package/contracts/types/Blocknumber.sol +1 -0
- package/contracts/types/ClaimId.sol +52 -0
- package/contracts/types/DistributorType.sol +2 -2
- package/contracts/types/Fee.sol +1 -0
- package/contracts/types/NftId.sol +8 -0
- package/contracts/types/ObjectType.sol +10 -5
- package/contracts/types/PayoutId.sol +54 -0
- package/contracts/types/Referral.sol +4 -0
- package/contracts/types/RoleId.sol +26 -20
- package/contracts/types/Seconds.sol +54 -0
- package/contracts/types/StateId.sol +1 -0
- package/contracts/types/Timestamp.sol +13 -13
- package/contracts/types/UFixed.sol +1 -0
- package/contracts/types/Version.sol +1 -0
- package/package.json +3 -3
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -368
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +0 -4
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +0 -66
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +0 -4
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +0 -24
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +0 -4
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +0 -42
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
- package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
- package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
- package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +0 -37
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +0 -10
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
- package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +0 -448
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +0 -763
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -827
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
- package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.json +0 -442
- package/contracts/components/BaseComponent.sol +0 -132
- package/contracts/components/IBaseComponent.sol +0 -31
- package/contracts/experiment/cloning/Cloner.sol +0 -47
- package/contracts/experiment/errors/Require.sol +0 -38
- package/contracts/experiment/errors/Revert.sol +0 -44
- package/contracts/experiment/inheritance/A.sol +0 -53
- package/contracts/experiment/inheritance/B.sol +0 -28
- package/contracts/experiment/inheritance/C.sol +0 -34
- package/contracts/experiment/inheritance/IA.sol +0 -13
- package/contracts/experiment/inheritance/IB.sol +0 -10
- package/contracts/experiment/inheritance/IC.sol +0 -12
- package/contracts/experiment/statemachine/Dummy.sol +0 -27
- package/contracts/experiment/statemachine/ISM.sol +0 -25
- package/contracts/experiment/statemachine/SM.sol +0 -57
- package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
- package/contracts/experiment/types/TypeA.sol +0 -47
- package/contracts/experiment/types/TypeB.sol +0 -29
- package/contracts/instance/IAccessManagerSimple.sol +0 -391
- package/contracts/instance/IInstanceBase.sol +0 -26
- package/contracts/instance/InstanceBase.sol +0 -41
- package/contracts/instance/base/ComponentServiceBase.sol +0 -72
- package/contracts/instance/base/IInstanceBase.sol +0 -23
- package/contracts/instance/service/ComponentOwnerService.sol +0 -317
- package/contracts/instance/service/IComponentOwnerService.sol +0 -20
- package/contracts/shared/RegisterableUpgradable.sol +0 -16
@@ -7,16 +7,22 @@
|
|
7
7
|
"inputs": [
|
8
8
|
{
|
9
9
|
"internalType": "address",
|
10
|
-
"name": "
|
10
|
+
"name": "caller",
|
11
11
|
"type": "address"
|
12
|
-
}
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"name": "ErrorIServiceCallerUnknown",
|
15
|
+
"type": "error"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"inputs": [
|
13
19
|
{
|
14
20
|
"internalType": "NftId",
|
15
21
|
"name": "nftId",
|
16
22
|
"type": "uint96"
|
17
23
|
}
|
18
24
|
],
|
19
|
-
"name": "
|
25
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
20
26
|
"type": "error"
|
21
27
|
},
|
22
28
|
{
|
@@ -27,28 +33,12 @@
|
|
27
33
|
"type": "address"
|
28
34
|
}
|
29
35
|
],
|
30
|
-
"name": "
|
36
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
31
37
|
"type": "error"
|
32
38
|
},
|
33
39
|
{
|
34
|
-
"inputs": [
|
35
|
-
|
36
|
-
"internalType": "address",
|
37
|
-
"name": "bundleOwner",
|
38
|
-
"type": "address"
|
39
|
-
},
|
40
|
-
{
|
41
|
-
"internalType": "address",
|
42
|
-
"name": "tokenHandlerAddress",
|
43
|
-
"type": "address"
|
44
|
-
},
|
45
|
-
{
|
46
|
-
"internalType": "uint256",
|
47
|
-
"name": "amount",
|
48
|
-
"type": "uint256"
|
49
|
-
}
|
50
|
-
],
|
51
|
-
"name": "ErrorIPoolServiceInsufficientAllowance",
|
40
|
+
"inputs": [],
|
41
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
52
42
|
"type": "error"
|
53
43
|
},
|
54
44
|
{
|
@@ -59,7 +49,7 @@
|
|
59
49
|
"type": "address"
|
60
50
|
}
|
61
51
|
],
|
62
|
-
"name": "
|
52
|
+
"name": "ErrorNftOwnableNotOwner",
|
63
53
|
"type": "error"
|
64
54
|
},
|
65
55
|
{
|
@@ -73,25 +63,15 @@
|
|
73
63
|
"name": "ErrorNotRegistry",
|
74
64
|
"type": "error"
|
75
65
|
},
|
76
|
-
{
|
77
|
-
"inputs": [],
|
78
|
-
"name": "ErrorRegistryAddressZero",
|
79
|
-
"type": "error"
|
80
|
-
},
|
81
66
|
{
|
82
67
|
"inputs": [
|
83
68
|
{
|
84
|
-
"internalType": "
|
85
|
-
"name": "
|
86
|
-
"type": "
|
69
|
+
"internalType": "NftId",
|
70
|
+
"name": "poolNftId",
|
71
|
+
"type": "uint96"
|
87
72
|
}
|
88
73
|
],
|
89
|
-
"name": "
|
90
|
-
"type": "error"
|
91
|
-
},
|
92
|
-
{
|
93
|
-
"inputs": [],
|
94
|
-
"name": "ErrorRegistryNotInitialized",
|
74
|
+
"name": "ErrorPoolServiceBundleOwnerRoleAlreadySet",
|
95
75
|
"type": "error"
|
96
76
|
},
|
97
77
|
{
|
@@ -99,75 +79,56 @@
|
|
99
79
|
"inputs": [
|
100
80
|
{
|
101
81
|
"indexed": false,
|
102
|
-
"internalType": "
|
103
|
-
"name": "
|
104
|
-
"type": "
|
105
|
-
},
|
106
|
-
{
|
107
|
-
"indexed": false,
|
108
|
-
"internalType": "address",
|
109
|
-
"name": "implementation",
|
110
|
-
"type": "address"
|
82
|
+
"internalType": "NftId",
|
83
|
+
"name": "poolNftId",
|
84
|
+
"type": "uint96"
|
111
85
|
},
|
112
86
|
{
|
113
87
|
"indexed": false,
|
114
|
-
"internalType": "
|
115
|
-
"name": "
|
116
|
-
"type": "
|
88
|
+
"internalType": "RoleId",
|
89
|
+
"name": "bundleOwnerRole",
|
90
|
+
"type": "uint64"
|
117
91
|
}
|
118
92
|
],
|
119
|
-
"name": "
|
93
|
+
"name": "LogPoolServiceBundleOwnerRoleSet",
|
120
94
|
"type": "event"
|
121
95
|
},
|
122
96
|
{
|
97
|
+
"anonymous": false,
|
123
98
|
"inputs": [
|
124
99
|
{
|
125
|
-
"
|
126
|
-
"
|
127
|
-
"
|
128
|
-
|
129
|
-
{
|
130
|
-
"components": [
|
131
|
-
{
|
132
|
-
"internalType": "UFixed",
|
133
|
-
"name": "fractionalFee",
|
134
|
-
"type": "uint256"
|
135
|
-
},
|
136
|
-
{
|
137
|
-
"internalType": "uint256",
|
138
|
-
"name": "fixedFee",
|
139
|
-
"type": "uint256"
|
140
|
-
}
|
141
|
-
],
|
142
|
-
"internalType": "struct Fee",
|
143
|
-
"name": "fee",
|
144
|
-
"type": "tuple"
|
100
|
+
"indexed": false,
|
101
|
+
"internalType": "NftId",
|
102
|
+
"name": "poolNftId",
|
103
|
+
"type": "uint96"
|
145
104
|
},
|
146
105
|
{
|
106
|
+
"indexed": false,
|
147
107
|
"internalType": "uint256",
|
148
|
-
"name": "
|
108
|
+
"name": "previousMaxCapitalAmount",
|
149
109
|
"type": "uint256"
|
150
110
|
},
|
151
111
|
{
|
112
|
+
"indexed": false,
|
152
113
|
"internalType": "uint256",
|
153
|
-
"name": "
|
114
|
+
"name": "currentMaxCapitalAmount",
|
154
115
|
"type": "uint256"
|
155
|
-
},
|
156
|
-
{
|
157
|
-
"internalType": "bytes",
|
158
|
-
"name": "filter",
|
159
|
-
"type": "bytes"
|
160
116
|
}
|
161
117
|
],
|
162
|
-
"name": "
|
118
|
+
"name": "LogPoolServiceMaxCapitalAmountUpdated",
|
119
|
+
"type": "event"
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"inputs": [],
|
123
|
+
"name": "getDomain",
|
163
124
|
"outputs": [
|
164
125
|
{
|
165
|
-
"internalType": "
|
166
|
-
"name": "
|
167
|
-
"type": "
|
126
|
+
"internalType": "ObjectType",
|
127
|
+
"name": "serviceDomain",
|
128
|
+
"type": "uint8"
|
168
129
|
}
|
169
130
|
],
|
170
|
-
"stateMutability": "
|
131
|
+
"stateMutability": "pure",
|
171
132
|
"type": "function"
|
172
133
|
},
|
173
134
|
{
|
@@ -215,24 +176,6 @@
|
|
215
176
|
"internalType": "struct IRegistry.ObjectInfo",
|
216
177
|
"name": "",
|
217
178
|
"type": "tuple"
|
218
|
-
},
|
219
|
-
{
|
220
|
-
"internalType": "bytes",
|
221
|
-
"name": "data",
|
222
|
-
"type": "bytes"
|
223
|
-
}
|
224
|
-
],
|
225
|
-
"stateMutability": "view",
|
226
|
-
"type": "function"
|
227
|
-
},
|
228
|
-
{
|
229
|
-
"inputs": [],
|
230
|
-
"name": "getInitializedVersion",
|
231
|
-
"outputs": [
|
232
|
-
{
|
233
|
-
"internalType": "uint64",
|
234
|
-
"name": "",
|
235
|
-
"type": "uint64"
|
236
179
|
}
|
237
180
|
],
|
238
181
|
"stateMutability": "view",
|
@@ -251,19 +194,6 @@
|
|
251
194
|
"stateMutability": "view",
|
252
195
|
"type": "function"
|
253
196
|
},
|
254
|
-
{
|
255
|
-
"inputs": [],
|
256
|
-
"name": "getName",
|
257
|
-
"outputs": [
|
258
|
-
{
|
259
|
-
"internalType": "string",
|
260
|
-
"name": "name",
|
261
|
-
"type": "string"
|
262
|
-
}
|
263
|
-
],
|
264
|
-
"stateMutability": "pure",
|
265
|
-
"type": "function"
|
266
|
-
},
|
267
197
|
{
|
268
198
|
"inputs": [],
|
269
199
|
"name": "getNftId",
|
@@ -305,31 +235,12 @@
|
|
305
235
|
},
|
306
236
|
{
|
307
237
|
"inputs": [],
|
308
|
-
"name": "
|
238
|
+
"name": "getRegistryAddress",
|
309
239
|
"outputs": [
|
310
240
|
{
|
311
|
-
"internalType": "
|
241
|
+
"internalType": "address",
|
312
242
|
"name": "",
|
313
|
-
"type": "
|
314
|
-
}
|
315
|
-
],
|
316
|
-
"stateMutability": "pure",
|
317
|
-
"type": "function"
|
318
|
-
},
|
319
|
-
{
|
320
|
-
"inputs": [
|
321
|
-
{
|
322
|
-
"internalType": "uint256",
|
323
|
-
"name": "index",
|
324
|
-
"type": "uint256"
|
325
|
-
}
|
326
|
-
],
|
327
|
-
"name": "getVersion",
|
328
|
-
"outputs": [
|
329
|
-
{
|
330
|
-
"internalType": "Version",
|
331
|
-
"name": "version",
|
332
|
-
"type": "uint24"
|
243
|
+
"type": "address"
|
333
244
|
}
|
334
245
|
],
|
335
246
|
"stateMutability": "view",
|
@@ -337,70 +248,19 @@
|
|
337
248
|
},
|
338
249
|
{
|
339
250
|
"inputs": [],
|
340
|
-
"name": "
|
251
|
+
"name": "getVersion",
|
341
252
|
"outputs": [
|
342
|
-
{
|
343
|
-
"internalType": "uint256",
|
344
|
-
"name": "numberOfVersions",
|
345
|
-
"type": "uint256"
|
346
|
-
}
|
347
|
-
],
|
348
|
-
"stateMutability": "view",
|
349
|
-
"type": "function"
|
350
|
-
},
|
351
|
-
{
|
352
|
-
"inputs": [
|
353
253
|
{
|
354
254
|
"internalType": "Version",
|
355
|
-
"name": "
|
255
|
+
"name": "",
|
356
256
|
"type": "uint24"
|
357
257
|
}
|
358
258
|
],
|
359
|
-
"
|
360
|
-
"outputs": [
|
361
|
-
{
|
362
|
-
"components": [
|
363
|
-
{
|
364
|
-
"internalType": "Version",
|
365
|
-
"name": "version",
|
366
|
-
"type": "uint24"
|
367
|
-
},
|
368
|
-
{
|
369
|
-
"internalType": "address",
|
370
|
-
"name": "implementation",
|
371
|
-
"type": "address"
|
372
|
-
},
|
373
|
-
{
|
374
|
-
"internalType": "address",
|
375
|
-
"name": "activatedBy",
|
376
|
-
"type": "address"
|
377
|
-
},
|
378
|
-
{
|
379
|
-
"internalType": "Timestamp",
|
380
|
-
"name": "activatedAt",
|
381
|
-
"type": "uint40"
|
382
|
-
},
|
383
|
-
{
|
384
|
-
"internalType": "Blocknumber",
|
385
|
-
"name": "activatedIn",
|
386
|
-
"type": "uint32"
|
387
|
-
}
|
388
|
-
],
|
389
|
-
"internalType": "struct IVersionable.VersionInfo",
|
390
|
-
"name": "versionInfo",
|
391
|
-
"type": "tuple"
|
392
|
-
}
|
393
|
-
],
|
394
|
-
"stateMutability": "view",
|
259
|
+
"stateMutability": "pure",
|
395
260
|
"type": "function"
|
396
261
|
},
|
397
262
|
{
|
398
263
|
"inputs": [
|
399
|
-
{
|
400
|
-
"internalType": "address",
|
401
|
-
"name": "implementation",
|
402
|
-
"type": "address"
|
403
|
-
},
|
404
264
|
{
|
405
265
|
"internalType": "address",
|
406
266
|
"name": "activatedBy",
|
@@ -412,30 +272,11 @@
|
|
412
272
|
"type": "bytes"
|
413
273
|
}
|
414
274
|
],
|
415
|
-
"name": "
|
275
|
+
"name": "initializeVersionable",
|
416
276
|
"outputs": [],
|
417
277
|
"stateMutability": "nonpayable",
|
418
278
|
"type": "function"
|
419
279
|
},
|
420
|
-
{
|
421
|
-
"inputs": [
|
422
|
-
{
|
423
|
-
"internalType": "Version",
|
424
|
-
"name": "version",
|
425
|
-
"type": "uint24"
|
426
|
-
}
|
427
|
-
],
|
428
|
-
"name": "isInitialized",
|
429
|
-
"outputs": [
|
430
|
-
{
|
431
|
-
"internalType": "bool",
|
432
|
-
"name": "",
|
433
|
-
"type": "bool"
|
434
|
-
}
|
435
|
-
],
|
436
|
-
"stateMutability": "view",
|
437
|
-
"type": "function"
|
438
|
-
},
|
439
280
|
{
|
440
281
|
"inputs": [],
|
441
282
|
"name": "linkToRegisteredNftId",
|
@@ -445,43 +286,32 @@
|
|
445
286
|
},
|
446
287
|
{
|
447
288
|
"inputs": [
|
289
|
+
{
|
290
|
+
"internalType": "address",
|
291
|
+
"name": "poolAddress",
|
292
|
+
"type": "address"
|
293
|
+
}
|
294
|
+
],
|
295
|
+
"name": "register",
|
296
|
+
"outputs": [
|
448
297
|
{
|
449
298
|
"internalType": "NftId",
|
450
|
-
"name": "
|
299
|
+
"name": "",
|
451
300
|
"type": "uint96"
|
452
301
|
}
|
453
302
|
],
|
454
|
-
"name": "lockBundle",
|
455
|
-
"outputs": [],
|
456
303
|
"stateMutability": "nonpayable",
|
457
304
|
"type": "function"
|
458
305
|
},
|
459
306
|
{
|
460
307
|
"inputs": [
|
461
308
|
{
|
462
|
-
"internalType": "
|
463
|
-
"name": "
|
464
|
-
"type": "
|
465
|
-
},
|
466
|
-
{
|
467
|
-
"components": [
|
468
|
-
{
|
469
|
-
"internalType": "UFixed",
|
470
|
-
"name": "fractionalFee",
|
471
|
-
"type": "uint256"
|
472
|
-
},
|
473
|
-
{
|
474
|
-
"internalType": "uint256",
|
475
|
-
"name": "fixedFee",
|
476
|
-
"type": "uint256"
|
477
|
-
}
|
478
|
-
],
|
479
|
-
"internalType": "struct Fee",
|
480
|
-
"name": "fee",
|
481
|
-
"type": "tuple"
|
309
|
+
"internalType": "RoleId",
|
310
|
+
"name": "bundleOwnerRole",
|
311
|
+
"type": "uint64"
|
482
312
|
}
|
483
313
|
],
|
484
|
-
"name": "
|
314
|
+
"name": "setBundleOwnerRole",
|
485
315
|
"outputs": [],
|
486
316
|
"stateMutability": "nonpayable",
|
487
317
|
"type": "function"
|
@@ -547,52 +377,13 @@
|
|
547
377
|
},
|
548
378
|
{
|
549
379
|
"inputs": [
|
550
|
-
{
|
551
|
-
"internalType": "bytes4",
|
552
|
-
"name": "interfaceId",
|
553
|
-
"type": "bytes4"
|
554
|
-
}
|
555
|
-
],
|
556
|
-
"name": "supportsInterface",
|
557
|
-
"outputs": [
|
558
|
-
{
|
559
|
-
"internalType": "bool",
|
560
|
-
"name": "",
|
561
|
-
"type": "bool"
|
562
|
-
}
|
563
|
-
],
|
564
|
-
"stateMutability": "view",
|
565
|
-
"type": "function"
|
566
|
-
},
|
567
|
-
{
|
568
|
-
"inputs": [
|
569
|
-
{
|
570
|
-
"internalType": "contract IInstance",
|
571
|
-
"name": "instanceNftId",
|
572
|
-
"type": "address"
|
573
|
-
},
|
574
|
-
{
|
575
|
-
"internalType": "NftId",
|
576
|
-
"name": "policyNftId",
|
577
|
-
"type": "uint96"
|
578
|
-
},
|
579
|
-
{
|
580
|
-
"internalType": "NftId",
|
581
|
-
"name": "bundleNftId",
|
582
|
-
"type": "uint96"
|
583
|
-
},
|
584
|
-
{
|
585
|
-
"internalType": "uint256",
|
586
|
-
"name": "collateralAmount",
|
587
|
-
"type": "uint256"
|
588
|
-
},
|
589
380
|
{
|
590
381
|
"internalType": "uint256",
|
591
|
-
"name": "
|
382
|
+
"name": "maxCapitalAmount",
|
592
383
|
"type": "uint256"
|
593
384
|
}
|
594
385
|
],
|
595
|
-
"name": "
|
386
|
+
"name": "setMaxCapitalAmount",
|
596
387
|
"outputs": [],
|
597
388
|
"stateMutability": "nonpayable",
|
598
389
|
"type": "function"
|
@@ -600,122 +391,31 @@
|
|
600
391
|
{
|
601
392
|
"inputs": [
|
602
393
|
{
|
603
|
-
"internalType": "
|
604
|
-
"name": "
|
605
|
-
"type": "
|
394
|
+
"internalType": "bytes4",
|
395
|
+
"name": "interfaceId",
|
396
|
+
"type": "bytes4"
|
606
397
|
}
|
607
398
|
],
|
608
|
-
"name": "
|
609
|
-
"outputs": [
|
610
|
-
"stateMutability": "nonpayable",
|
611
|
-
"type": "function"
|
612
|
-
},
|
613
|
-
{
|
614
|
-
"inputs": [
|
615
|
-
{
|
616
|
-
"internalType": "NftId",
|
617
|
-
"name": "instanceNftId",
|
618
|
-
"type": "uint96"
|
619
|
-
},
|
620
|
-
{
|
621
|
-
"internalType": "NftId",
|
622
|
-
"name": "bundleNftId",
|
623
|
-
"type": "uint96"
|
624
|
-
},
|
625
|
-
{
|
626
|
-
"components": [
|
627
|
-
{
|
628
|
-
"internalType": "NftId",
|
629
|
-
"name": "poolNftId",
|
630
|
-
"type": "uint96"
|
631
|
-
},
|
632
|
-
{
|
633
|
-
"components": [
|
634
|
-
{
|
635
|
-
"internalType": "UFixed",
|
636
|
-
"name": "fractionalFee",
|
637
|
-
"type": "uint256"
|
638
|
-
},
|
639
|
-
{
|
640
|
-
"internalType": "uint256",
|
641
|
-
"name": "fixedFee",
|
642
|
-
"type": "uint256"
|
643
|
-
}
|
644
|
-
],
|
645
|
-
"internalType": "struct Fee",
|
646
|
-
"name": "fee",
|
647
|
-
"type": "tuple"
|
648
|
-
},
|
649
|
-
{
|
650
|
-
"internalType": "bytes",
|
651
|
-
"name": "filter",
|
652
|
-
"type": "bytes"
|
653
|
-
},
|
654
|
-
{
|
655
|
-
"internalType": "uint256",
|
656
|
-
"name": "capitalAmount",
|
657
|
-
"type": "uint256"
|
658
|
-
},
|
659
|
-
{
|
660
|
-
"internalType": "uint256",
|
661
|
-
"name": "lockedAmount",
|
662
|
-
"type": "uint256"
|
663
|
-
},
|
664
|
-
{
|
665
|
-
"internalType": "uint256",
|
666
|
-
"name": "balanceAmount",
|
667
|
-
"type": "uint256"
|
668
|
-
},
|
669
|
-
{
|
670
|
-
"internalType": "uint256",
|
671
|
-
"name": "lifetime",
|
672
|
-
"type": "uint256"
|
673
|
-
},
|
674
|
-
{
|
675
|
-
"internalType": "Timestamp",
|
676
|
-
"name": "expiredAt",
|
677
|
-
"type": "uint40"
|
678
|
-
},
|
679
|
-
{
|
680
|
-
"internalType": "Timestamp",
|
681
|
-
"name": "closedAt",
|
682
|
-
"type": "uint40"
|
683
|
-
}
|
684
|
-
],
|
685
|
-
"internalType": "struct IBundle.BundleInfo",
|
686
|
-
"name": "bundleInfo",
|
687
|
-
"type": "tuple"
|
688
|
-
},
|
399
|
+
"name": "supportsInterface",
|
400
|
+
"outputs": [
|
689
401
|
{
|
690
|
-
"internalType": "
|
691
|
-
"name": "
|
692
|
-
"type": "
|
402
|
+
"internalType": "bool",
|
403
|
+
"name": "",
|
404
|
+
"type": "bool"
|
693
405
|
}
|
694
406
|
],
|
695
|
-
"
|
696
|
-
"outputs": [],
|
697
|
-
"stateMutability": "nonpayable",
|
407
|
+
"stateMutability": "view",
|
698
408
|
"type": "function"
|
699
409
|
},
|
700
410
|
{
|
701
411
|
"inputs": [
|
702
|
-
{
|
703
|
-
"internalType": "address",
|
704
|
-
"name": "implementation",
|
705
|
-
"type": "address"
|
706
|
-
},
|
707
|
-
{
|
708
|
-
"internalType": "address",
|
709
|
-
"name": "activatedBy",
|
710
|
-
"type": "address"
|
711
|
-
},
|
712
412
|
{
|
713
413
|
"internalType": "bytes",
|
714
414
|
"name": "upgradeData",
|
715
415
|
"type": "bytes"
|
716
416
|
}
|
717
417
|
],
|
718
|
-
"name": "
|
418
|
+
"name": "upgradeVersionable",
|
719
419
|
"outputs": [],
|
720
420
|
"stateMutability": "nonpayable",
|
721
421
|
"type": "function"
|