@etherisc/gif-next 0.0.2-d5522f6-712 → 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 +747 -103
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/components/{BaseComponent.sol/BaseComponent.json → IComponent.sol/IComponent.json} +137 -114
- 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 +692 -178
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +517 -135
- 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 +1003 -393
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +194 -197
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +1015 -781
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +440 -176
- 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 +369 -299
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +330 -89
- 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} +178 -158
- 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 +61 -78
- 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 +1 -1
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +363 -301
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +305 -80
- 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 +1211 -172
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +456 -71
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IApplicationService.sol/IApplicationService.json} +275 -185
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +155 -245
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
- package/artifacts/contracts/{components/IBaseComponent.sol/IBaseComponent.json → instance/service/IClaimService.sol/IClaimService.json} +159 -147
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +728 -161
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +60 -291
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +81 -152
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +22 -174
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +244 -379
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +311 -114
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +289 -192
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +313 -76
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +206 -206
- 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 +117 -5
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +112 -198
- 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 +131 -27
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +18 -18
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +216 -234
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +300 -81
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +70 -69
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +151 -50
- 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 +22 -174
- 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 +114 -157
- 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 +135 -214
- 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 +199 -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 +209 -182
- package/contracts/components/Product.sol +118 -126
- 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 +52 -16
- package/contracts/instance/IInstanceService.sol +37 -5
- package/contracts/instance/Instance.sol +126 -75
- package/contracts/instance/InstanceAccessManager.sol +383 -164
- package/contracts/instance/InstanceReader.sol +9 -34
- package/contracts/instance/InstanceService.sol +277 -127
- package/contracts/instance/InstanceServiceManager.sol +1 -1
- 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 +22 -16
- 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 +84 -42
- package/contracts/instance/service/BundleServiceManager.sol +1 -1
- package/contracts/instance/service/ClaimService.sol +151 -0
- package/contracts/instance/service/ClaimServiceManager.sol +35 -0
- package/contracts/instance/service/DistributionService.sol +393 -46
- package/contracts/instance/service/DistributionServiceManager.sol +1 -1
- package/contracts/instance/service/IApplicationService.sol +82 -0
- package/contracts/instance/service/IBundleService.sol +30 -12
- package/contracts/instance/service/IClaimService.sol +61 -0
- package/contracts/instance/service/IDistributionService.sol +86 -0
- package/contracts/instance/service/IPolicyService.sol +27 -49
- package/contracts/instance/service/IPoolService.sol +17 -2
- package/contracts/instance/service/PolicyService.sol +149 -285
- package/contracts/instance/service/PolicyServiceManager.sol +2 -2
- package/contracts/instance/service/PoolService.sol +136 -61
- package/contracts/instance/service/PoolServiceManager.sol +1 -1
- package/contracts/instance/service/ProductService.sol +62 -34
- package/contracts/instance/service/ProductServiceManager.sol +2 -2
- package/contracts/registry/ChainNft.sol +8 -0
- package/contracts/registry/IRegistry.sol +18 -8
- package/contracts/registry/IRegistryService.sol +19 -10
- package/contracts/registry/ITransferInterceptor.sol +1 -0
- package/contracts/registry/Registry.sol +142 -71
- package/contracts/registry/RegistryAccessManager.sol +31 -25
- package/contracts/registry/RegistryService.sol +94 -130
- package/contracts/registry/RegistryServiceManager.sol +13 -13
- package/contracts/registry/ReleaseManager.sol +94 -120
- package/contracts/registry/TokenRegistry.sol +19 -13
- 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 +2 -0
- 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 +19 -19
- 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 +1 -1
- 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 +18 -11
- 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/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/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 -814
- 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 -159
- package/contracts/components/IBaseComponent.sol +0 -34
- 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/IInstanceBase.sol +0 -26
- package/contracts/instance/InstanceBase.sol +0 -41
- package/contracts/instance/base/ComponentServiceBase.sol +0 -76
- package/contracts/instance/base/IInstanceBase.sol +0 -23
- package/contracts/instance/service/ComponentOwnerService.sol +0 -315
- package/contracts/instance/service/IComponentOwnerService.sol +0 -20
- package/contracts/shared/RegisterableUpgradable.sol +0 -16
@@ -5,29 +5,34 @@
|
|
5
5
|
"abi": [
|
6
6
|
{
|
7
7
|
"inputs": [
|
8
|
-
{
|
9
|
-
"internalType": "address",
|
10
|
-
"name": "registry",
|
11
|
-
"type": "address"
|
12
|
-
},
|
13
8
|
{
|
14
9
|
"internalType": "NftId",
|
15
|
-
"name": "
|
10
|
+
"name": "bundleNftId",
|
16
11
|
"type": "uint96"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"internalType": "StateId",
|
15
|
+
"name": "state",
|
16
|
+
"type": "uint8"
|
17
17
|
}
|
18
18
|
],
|
19
|
-
"name": "
|
19
|
+
"name": "ErrorBundleServiceBundleNotOpen",
|
20
20
|
"type": "error"
|
21
21
|
},
|
22
22
|
{
|
23
23
|
"inputs": [
|
24
24
|
{
|
25
|
-
"internalType": "
|
26
|
-
"name": "
|
27
|
-
"type": "
|
25
|
+
"internalType": "NftId",
|
26
|
+
"name": "bundleNftId",
|
27
|
+
"type": "uint96"
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"internalType": "uint256",
|
31
|
+
"name": "openPoliciesCount",
|
32
|
+
"type": "uint256"
|
28
33
|
}
|
29
34
|
],
|
30
|
-
"name": "
|
35
|
+
"name": "ErrorBundleServiceBundleWithOpenPolicies",
|
31
36
|
"type": "error"
|
32
37
|
},
|
33
38
|
{
|
@@ -48,50 +53,67 @@
|
|
48
53
|
"type": "uint256"
|
49
54
|
}
|
50
55
|
],
|
51
|
-
"name": "
|
56
|
+
"name": "ErrorBundleServiceInsufficientAllowance",
|
52
57
|
"type": "error"
|
53
58
|
},
|
54
59
|
{
|
55
60
|
"inputs": [
|
56
61
|
{
|
57
62
|
"internalType": "address",
|
58
|
-
"name": "
|
63
|
+
"name": "caller",
|
59
64
|
"type": "address"
|
60
65
|
}
|
61
66
|
],
|
62
|
-
"name": "
|
67
|
+
"name": "ErrorIServiceCallerUnknown",
|
68
|
+
"type": "error"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"inputs": [
|
72
|
+
{
|
73
|
+
"internalType": "NftId",
|
74
|
+
"name": "nftId",
|
75
|
+
"type": "uint96"
|
76
|
+
}
|
77
|
+
],
|
78
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
63
79
|
"type": "error"
|
64
80
|
},
|
65
81
|
{
|
66
82
|
"inputs": [
|
67
83
|
{
|
68
84
|
"internalType": "address",
|
69
|
-
"name": "
|
85
|
+
"name": "contractAddress",
|
70
86
|
"type": "address"
|
71
87
|
}
|
72
88
|
],
|
73
|
-
"name": "
|
89
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
74
90
|
"type": "error"
|
75
91
|
},
|
76
92
|
{
|
77
93
|
"inputs": [],
|
78
|
-
"name": "
|
94
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
79
95
|
"type": "error"
|
80
96
|
},
|
81
97
|
{
|
82
98
|
"inputs": [
|
83
99
|
{
|
84
100
|
"internalType": "address",
|
85
|
-
"name": "
|
101
|
+
"name": "account",
|
86
102
|
"type": "address"
|
87
103
|
}
|
88
104
|
],
|
89
|
-
"name": "
|
105
|
+
"name": "ErrorNftOwnableNotOwner",
|
90
106
|
"type": "error"
|
91
107
|
},
|
92
108
|
{
|
93
|
-
"inputs": [
|
94
|
-
|
109
|
+
"inputs": [
|
110
|
+
{
|
111
|
+
"internalType": "address",
|
112
|
+
"name": "registryAddress",
|
113
|
+
"type": "address"
|
114
|
+
}
|
115
|
+
],
|
116
|
+
"name": "ErrorNotRegistry",
|
95
117
|
"type": "error"
|
96
118
|
},
|
97
119
|
{
|
@@ -99,26 +121,53 @@
|
|
99
121
|
"inputs": [
|
100
122
|
{
|
101
123
|
"indexed": false,
|
102
|
-
"internalType": "
|
103
|
-
"name": "
|
104
|
-
"type": "
|
105
|
-
}
|
124
|
+
"internalType": "NftId",
|
125
|
+
"name": "bundleNftId",
|
126
|
+
"type": "uint96"
|
127
|
+
}
|
128
|
+
],
|
129
|
+
"name": "LogBundleServiceBundleActivated",
|
130
|
+
"type": "event"
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"anonymous": false,
|
134
|
+
"inputs": [
|
106
135
|
{
|
107
136
|
"indexed": false,
|
108
|
-
"internalType": "
|
109
|
-
"name": "
|
110
|
-
"type": "
|
111
|
-
}
|
137
|
+
"internalType": "NftId",
|
138
|
+
"name": "bundleNftId",
|
139
|
+
"type": "uint96"
|
140
|
+
}
|
141
|
+
],
|
142
|
+
"name": "LogBundleServiceBundleClosed",
|
143
|
+
"type": "event"
|
144
|
+
},
|
145
|
+
{
|
146
|
+
"anonymous": false,
|
147
|
+
"inputs": [
|
112
148
|
{
|
113
149
|
"indexed": false,
|
114
|
-
"internalType": "
|
115
|
-
"name": "
|
116
|
-
"type": "
|
150
|
+
"internalType": "NftId",
|
151
|
+
"name": "bundleNftId",
|
152
|
+
"type": "uint96"
|
117
153
|
}
|
118
154
|
],
|
119
|
-
"name": "
|
155
|
+
"name": "LogBundleServiceBundleLocked",
|
120
156
|
"type": "event"
|
121
157
|
},
|
158
|
+
{
|
159
|
+
"inputs": [
|
160
|
+
{
|
161
|
+
"internalType": "NftId",
|
162
|
+
"name": "bundleNftId",
|
163
|
+
"type": "uint96"
|
164
|
+
}
|
165
|
+
],
|
166
|
+
"name": "close",
|
167
|
+
"outputs": [],
|
168
|
+
"stateMutability": "nonpayable",
|
169
|
+
"type": "function"
|
170
|
+
},
|
122
171
|
{
|
123
172
|
"inputs": [
|
124
173
|
{
|
@@ -177,9 +226,9 @@
|
|
177
226
|
"type": "uint256"
|
178
227
|
},
|
179
228
|
{
|
180
|
-
"internalType": "
|
229
|
+
"internalType": "Seconds",
|
181
230
|
"name": "lifetime",
|
182
|
-
"type": "
|
231
|
+
"type": "uint40"
|
183
232
|
},
|
184
233
|
{
|
185
234
|
"internalType": "bytes",
|
@@ -187,7 +236,7 @@
|
|
187
236
|
"type": "bytes"
|
188
237
|
}
|
189
238
|
],
|
190
|
-
"name": "
|
239
|
+
"name": "create",
|
191
240
|
"outputs": [
|
192
241
|
{
|
193
242
|
"internalType": "NftId",
|
@@ -256,24 +305,6 @@
|
|
256
305
|
"internalType": "struct IRegistry.ObjectInfo",
|
257
306
|
"name": "",
|
258
307
|
"type": "tuple"
|
259
|
-
},
|
260
|
-
{
|
261
|
-
"internalType": "bytes",
|
262
|
-
"name": "data",
|
263
|
-
"type": "bytes"
|
264
|
-
}
|
265
|
-
],
|
266
|
-
"stateMutability": "view",
|
267
|
-
"type": "function"
|
268
|
-
},
|
269
|
-
{
|
270
|
-
"inputs": [],
|
271
|
-
"name": "getInitializedVersion",
|
272
|
-
"outputs": [
|
273
|
-
{
|
274
|
-
"internalType": "uint64",
|
275
|
-
"name": "",
|
276
|
-
"type": "uint64"
|
277
308
|
}
|
278
309
|
],
|
279
310
|
"stateMutability": "view",
|
@@ -333,31 +364,12 @@
|
|
333
364
|
},
|
334
365
|
{
|
335
366
|
"inputs": [],
|
336
|
-
"name": "
|
367
|
+
"name": "getRegistryAddress",
|
337
368
|
"outputs": [
|
338
369
|
{
|
339
|
-
"internalType": "
|
370
|
+
"internalType": "address",
|
340
371
|
"name": "",
|
341
|
-
"type": "
|
342
|
-
}
|
343
|
-
],
|
344
|
-
"stateMutability": "pure",
|
345
|
-
"type": "function"
|
346
|
-
},
|
347
|
-
{
|
348
|
-
"inputs": [
|
349
|
-
{
|
350
|
-
"internalType": "uint256",
|
351
|
-
"name": "index",
|
352
|
-
"type": "uint256"
|
353
|
-
}
|
354
|
-
],
|
355
|
-
"name": "getVersion",
|
356
|
-
"outputs": [
|
357
|
-
{
|
358
|
-
"internalType": "Version",
|
359
|
-
"name": "version",
|
360
|
-
"type": "uint24"
|
372
|
+
"type": "address"
|
361
373
|
}
|
362
374
|
],
|
363
375
|
"stateMutability": "view",
|
@@ -365,61 +377,15 @@
|
|
365
377
|
},
|
366
378
|
{
|
367
379
|
"inputs": [],
|
368
|
-
"name": "
|
380
|
+
"name": "getVersion",
|
369
381
|
"outputs": [
|
370
|
-
{
|
371
|
-
"internalType": "uint256",
|
372
|
-
"name": "numberOfVersions",
|
373
|
-
"type": "uint256"
|
374
|
-
}
|
375
|
-
],
|
376
|
-
"stateMutability": "view",
|
377
|
-
"type": "function"
|
378
|
-
},
|
379
|
-
{
|
380
|
-
"inputs": [
|
381
382
|
{
|
382
383
|
"internalType": "Version",
|
383
|
-
"name": "
|
384
|
+
"name": "",
|
384
385
|
"type": "uint24"
|
385
386
|
}
|
386
387
|
],
|
387
|
-
"
|
388
|
-
"outputs": [
|
389
|
-
{
|
390
|
-
"components": [
|
391
|
-
{
|
392
|
-
"internalType": "Version",
|
393
|
-
"name": "version",
|
394
|
-
"type": "uint24"
|
395
|
-
},
|
396
|
-
{
|
397
|
-
"internalType": "address",
|
398
|
-
"name": "implementation",
|
399
|
-
"type": "address"
|
400
|
-
},
|
401
|
-
{
|
402
|
-
"internalType": "address",
|
403
|
-
"name": "activatedBy",
|
404
|
-
"type": "address"
|
405
|
-
},
|
406
|
-
{
|
407
|
-
"internalType": "Timestamp",
|
408
|
-
"name": "activatedAt",
|
409
|
-
"type": "uint40"
|
410
|
-
},
|
411
|
-
{
|
412
|
-
"internalType": "Blocknumber",
|
413
|
-
"name": "activatedIn",
|
414
|
-
"type": "uint32"
|
415
|
-
}
|
416
|
-
],
|
417
|
-
"internalType": "struct IVersionable.VersionInfo",
|
418
|
-
"name": "versionInfo",
|
419
|
-
"type": "tuple"
|
420
|
-
}
|
421
|
-
],
|
422
|
-
"stateMutability": "view",
|
388
|
+
"stateMutability": "pure",
|
423
389
|
"type": "function"
|
424
390
|
},
|
425
391
|
{
|
@@ -447,11 +413,6 @@
|
|
447
413
|
},
|
448
414
|
{
|
449
415
|
"inputs": [
|
450
|
-
{
|
451
|
-
"internalType": "address",
|
452
|
-
"name": "implementation",
|
453
|
-
"type": "address"
|
454
|
-
},
|
455
416
|
{
|
456
417
|
"internalType": "address",
|
457
418
|
"name": "activatedBy",
|
@@ -463,30 +424,11 @@
|
|
463
424
|
"type": "bytes"
|
464
425
|
}
|
465
426
|
],
|
466
|
-
"name": "
|
427
|
+
"name": "initializeVersionable",
|
467
428
|
"outputs": [],
|
468
429
|
"stateMutability": "nonpayable",
|
469
430
|
"type": "function"
|
470
431
|
},
|
471
|
-
{
|
472
|
-
"inputs": [
|
473
|
-
{
|
474
|
-
"internalType": "Version",
|
475
|
-
"name": "version",
|
476
|
-
"type": "uint24"
|
477
|
-
}
|
478
|
-
],
|
479
|
-
"name": "isInitialized",
|
480
|
-
"outputs": [
|
481
|
-
{
|
482
|
-
"internalType": "bool",
|
483
|
-
"name": "",
|
484
|
-
"type": "bool"
|
485
|
-
}
|
486
|
-
],
|
487
|
-
"stateMutability": "view",
|
488
|
-
"type": "function"
|
489
|
-
},
|
490
432
|
{
|
491
433
|
"inputs": [],
|
492
434
|
"name": "linkToRegisteredNftId",
|
@@ -502,60 +444,11 @@
|
|
502
444
|
"type": "uint96"
|
503
445
|
}
|
504
446
|
],
|
505
|
-
"name": "
|
447
|
+
"name": "lock",
|
506
448
|
"outputs": [],
|
507
449
|
"stateMutability": "nonpayable",
|
508
450
|
"type": "function"
|
509
451
|
},
|
510
|
-
{
|
511
|
-
"inputs": [
|
512
|
-
{
|
513
|
-
"internalType": "NftId",
|
514
|
-
"name": "bundleNftId",
|
515
|
-
"type": "uint96"
|
516
|
-
},
|
517
|
-
{
|
518
|
-
"components": [
|
519
|
-
{
|
520
|
-
"internalType": "UFixed",
|
521
|
-
"name": "fractionalFee",
|
522
|
-
"type": "uint256"
|
523
|
-
},
|
524
|
-
{
|
525
|
-
"internalType": "uint256",
|
526
|
-
"name": "fixedFee",
|
527
|
-
"type": "uint256"
|
528
|
-
}
|
529
|
-
],
|
530
|
-
"internalType": "struct Fee",
|
531
|
-
"name": "fee",
|
532
|
-
"type": "tuple"
|
533
|
-
}
|
534
|
-
],
|
535
|
-
"name": "setBundleFee",
|
536
|
-
"outputs": [],
|
537
|
-
"stateMutability": "nonpayable",
|
538
|
-
"type": "function"
|
539
|
-
},
|
540
|
-
{
|
541
|
-
"inputs": [
|
542
|
-
{
|
543
|
-
"internalType": "bytes4",
|
544
|
-
"name": "interfaceId",
|
545
|
-
"type": "bytes4"
|
546
|
-
}
|
547
|
-
],
|
548
|
-
"name": "supportsInterface",
|
549
|
-
"outputs": [
|
550
|
-
{
|
551
|
-
"internalType": "bool",
|
552
|
-
"name": "",
|
553
|
-
"type": "bool"
|
554
|
-
}
|
555
|
-
],
|
556
|
-
"stateMutability": "view",
|
557
|
-
"type": "function"
|
558
|
-
},
|
559
452
|
{
|
560
453
|
"inputs": [
|
561
454
|
{
|
@@ -584,36 +477,8 @@
|
|
584
477
|
"type": "uint256"
|
585
478
|
}
|
586
479
|
],
|
587
|
-
"name": "
|
588
|
-
"outputs": [
|
589
|
-
"stateMutability": "nonpayable",
|
590
|
-
"type": "function"
|
591
|
-
},
|
592
|
-
{
|
593
|
-
"inputs": [
|
594
|
-
{
|
595
|
-
"internalType": "NftId",
|
596
|
-
"name": "bundleNftId",
|
597
|
-
"type": "uint96"
|
598
|
-
}
|
599
|
-
],
|
600
|
-
"name": "unlockBundle",
|
601
|
-
"outputs": [],
|
602
|
-
"stateMutability": "nonpayable",
|
603
|
-
"type": "function"
|
604
|
-
},
|
605
|
-
{
|
606
|
-
"inputs": [
|
607
|
-
{
|
608
|
-
"internalType": "NftId",
|
609
|
-
"name": "instanceNftId",
|
610
|
-
"type": "uint96"
|
611
|
-
},
|
612
|
-
{
|
613
|
-
"internalType": "NftId",
|
614
|
-
"name": "bundleNftId",
|
615
|
-
"type": "uint96"
|
616
|
-
},
|
480
|
+
"name": "lockCollateral",
|
481
|
+
"outputs": [
|
617
482
|
{
|
618
483
|
"components": [
|
619
484
|
{
|
@@ -659,9 +524,9 @@
|
|
659
524
|
"type": "uint256"
|
660
525
|
},
|
661
526
|
{
|
662
|
-
"internalType": "
|
527
|
+
"internalType": "Seconds",
|
663
528
|
"name": "lifetime",
|
664
|
-
"type": "
|
529
|
+
"type": "uint40"
|
665
530
|
},
|
666
531
|
{
|
667
532
|
"internalType": "Timestamp",
|
@@ -677,14 +542,37 @@
|
|
677
542
|
"internalType": "struct IBundle.BundleInfo",
|
678
543
|
"name": "bundleInfo",
|
679
544
|
"type": "tuple"
|
545
|
+
}
|
546
|
+
],
|
547
|
+
"stateMutability": "nonpayable",
|
548
|
+
"type": "function"
|
549
|
+
},
|
550
|
+
{
|
551
|
+
"inputs": [
|
552
|
+
{
|
553
|
+
"internalType": "NftId",
|
554
|
+
"name": "bundleNftId",
|
555
|
+
"type": "uint96"
|
680
556
|
},
|
681
557
|
{
|
682
|
-
"
|
683
|
-
|
684
|
-
|
558
|
+
"components": [
|
559
|
+
{
|
560
|
+
"internalType": "UFixed",
|
561
|
+
"name": "fractionalFee",
|
562
|
+
"type": "uint256"
|
563
|
+
},
|
564
|
+
{
|
565
|
+
"internalType": "uint256",
|
566
|
+
"name": "fixedFee",
|
567
|
+
"type": "uint256"
|
568
|
+
}
|
569
|
+
],
|
570
|
+
"internalType": "struct Fee",
|
571
|
+
"name": "fee",
|
572
|
+
"type": "tuple"
|
685
573
|
}
|
686
574
|
],
|
687
|
-
"name": "
|
575
|
+
"name": "setFee",
|
688
576
|
"outputs": [],
|
689
577
|
"stateMutability": "nonpayable",
|
690
578
|
"type": "function"
|
@@ -692,22 +580,44 @@
|
|
692
580
|
{
|
693
581
|
"inputs": [
|
694
582
|
{
|
695
|
-
"internalType": "
|
696
|
-
"name": "
|
697
|
-
"type": "
|
698
|
-
}
|
583
|
+
"internalType": "bytes4",
|
584
|
+
"name": "interfaceId",
|
585
|
+
"type": "bytes4"
|
586
|
+
}
|
587
|
+
],
|
588
|
+
"name": "supportsInterface",
|
589
|
+
"outputs": [
|
699
590
|
{
|
700
|
-
"internalType": "
|
701
|
-
"name": "
|
702
|
-
"type": "
|
703
|
-
}
|
591
|
+
"internalType": "bool",
|
592
|
+
"name": "",
|
593
|
+
"type": "bool"
|
594
|
+
}
|
595
|
+
],
|
596
|
+
"stateMutability": "view",
|
597
|
+
"type": "function"
|
598
|
+
},
|
599
|
+
{
|
600
|
+
"inputs": [
|
601
|
+
{
|
602
|
+
"internalType": "NftId",
|
603
|
+
"name": "bundleNftId",
|
604
|
+
"type": "uint96"
|
605
|
+
}
|
606
|
+
],
|
607
|
+
"name": "unlock",
|
608
|
+
"outputs": [],
|
609
|
+
"stateMutability": "nonpayable",
|
610
|
+
"type": "function"
|
611
|
+
},
|
612
|
+
{
|
613
|
+
"inputs": [
|
704
614
|
{
|
705
615
|
"internalType": "bytes",
|
706
616
|
"name": "upgradeData",
|
707
617
|
"type": "bytes"
|
708
618
|
}
|
709
619
|
],
|
710
|
-
"name": "
|
620
|
+
"name": "upgradeVersionable",
|
711
621
|
"outputs": [],
|
712
622
|
"stateMutability": "nonpayable",
|
713
623
|
"type": "function"
|