@etherisc/gif-next 0.0.2-cff6256-424 → 0.0.2-d086e6d-456
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +141 -2
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
- package/artifacts/contracts/components/Component.sol/Component.json +842 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +897 -238
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → components/IComponent.sol/IComponent.json} +295 -132
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +801 -36
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +864 -49
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +682 -9
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +844 -258
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +626 -234
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +778 -0
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
- package/artifacts/contracts/instance/{AccessManagedSimple.sol/AccessManagedSimple.json → Cloneable.sol/Cloneable.json} +91 -2
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +2107 -184
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +334 -157
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +979 -1206
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +571 -177
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +227 -221
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +529 -233
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +324 -91
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +256 -0
- 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} +298 -137
- 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 +1058 -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 +1258 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +717 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +844 -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 +1405 -224
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +451 -74
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +646 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +683 -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} +227 -194
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +791 -134
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +630 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +450 -143
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +96 -373
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1111 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +689 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +1264 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +657 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +867 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +649 -0
- 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 +227 -224
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +243 -206
- 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 +241 -330
- 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 +235 -295
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +295 -150
- 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 +95 -157
- 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 +195 -148
- 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 +213 -202
- 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 +161 -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 +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 +40 -9
- 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 +26 -3
- 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 +253 -0
- package/contracts/components/Distribution.sol +197 -83
- package/contracts/components/IComponent.sol +76 -0
- package/contracts/components/IDistributionComponent.sol +43 -18
- package/contracts/components/IPoolComponent.sol +88 -37
- package/contracts/components/IProductComponent.sol +10 -5
- package/contracts/components/Pool.sol +225 -180
- package/contracts/components/Product.sol +130 -134
- package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +13 -0
- package/contracts/instance/BundleManager.sol +127 -0
- package/contracts/instance/Cloneable.sol +51 -0
- package/contracts/instance/IInstance.sol +77 -12
- package/contracts/instance/IInstanceService.sol +47 -5
- package/contracts/instance/Instance.sol +152 -268
- package/contracts/instance/InstanceAccessManager.sol +410 -176
- package/contracts/instance/InstanceReader.sol +36 -35
- package/contracts/instance/InstanceService.sol +429 -92
- package/contracts/instance/InstanceServiceManager.sol +11 -13
- package/contracts/instance/ObjectManager.sol +82 -0
- package/contracts/instance/base/ComponentService.sol +136 -0
- package/contracts/instance/base/KeyValueStore.sol +13 -5
- package/contracts/instance/base/Lifecycle.sol +11 -2
- package/contracts/instance/module/IAccess.sol +36 -20
- package/contracts/instance/module/IBundle.sol +8 -4
- package/contracts/instance/module/IComponents.sol +41 -0
- package/contracts/instance/module/IDistribution.sol +2 -0
- package/contracts/instance/module/IPolicy.sol +30 -3
- package/contracts/instance/module/ISetup.sol +9 -19
- package/contracts/instance/service/ApplicationService.sol +350 -0
- package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
- package/contracts/instance/service/BundleService.sol +431 -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 +378 -39
- package/contracts/instance/service/DistributionServiceManager.sol +11 -13
- package/contracts/instance/service/IApplicationService.sol +82 -0
- package/contracts/instance/service/IBundleService.sol +93 -0
- package/contracts/instance/service/IClaimService.sol +61 -0
- package/contracts/instance/service/IDistributionService.sol +86 -0
- package/contracts/instance/service/IPolicyService.sol +72 -0
- package/contracts/instance/service/IPoolService.sol +79 -17
- package/contracts/instance/service/IProductService.sol +6 -73
- package/contracts/instance/service/PolicyService.sol +360 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +343 -0
- package/contracts/instance/service/PoolServiceManager.sol +51 -0
- package/contracts/instance/service/ProductService.sol +210 -0
- package/contracts/instance/service/ProductServiceManager.sol +54 -0
- package/contracts/registry/ChainNft.sol +9 -1
- package/contracts/registry/IRegistry.sol +40 -33
- package/contracts/registry/IRegistryService.sol +48 -13
- package/contracts/registry/ITransferInterceptor.sol +1 -0
- package/contracts/registry/Registry.sol +234 -256
- package/contracts/registry/RegistryAccessManager.sol +216 -0
- package/contracts/registry/RegistryService.sol +117 -231
- 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 +8 -2
- package/contracts/shared/IVersionable.sol +4 -47
- package/contracts/shared/NftOwnable.sol +67 -83
- 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 +31 -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/Amount.sol +60 -0
- 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 +13 -5
- package/contracts/types/NftId.sol +8 -0
- package/contracts/types/NftIdSet.sol +26 -24
- 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 -17
- 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/BaseComponent.sol/BaseComponent.json +0 -327
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -280
- 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/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1132
- 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/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/contracts/components/BaseComponent.sol +0 -91
- package/contracts/components/IBaseComponent.sol +0 -25
- 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/AccessManagedSimple.sol +0 -115
- package/contracts/instance/AccessManagerSimple.sol +0 -692
- package/contracts/instance/IAccessManagerSimple.sol +0 -391
- package/contracts/instance/base/ComponentServiceBase.sol +0 -39
- 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
@@ -3,13 +3,275 @@
|
|
3
3
|
"contractName": "IPoolComponent",
|
4
4
|
"sourceName": "contracts/components/IPoolComponent.sol",
|
5
5
|
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "address",
|
10
|
+
"name": "authority",
|
11
|
+
"type": "address"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"name": "AccessManagedInvalidAuthority",
|
15
|
+
"type": "error"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"inputs": [
|
19
|
+
{
|
20
|
+
"internalType": "address",
|
21
|
+
"name": "caller",
|
22
|
+
"type": "address"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"internalType": "uint32",
|
26
|
+
"name": "delay",
|
27
|
+
"type": "uint32"
|
28
|
+
}
|
29
|
+
],
|
30
|
+
"name": "AccessManagedRequiredDelay",
|
31
|
+
"type": "error"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"inputs": [
|
35
|
+
{
|
36
|
+
"internalType": "address",
|
37
|
+
"name": "caller",
|
38
|
+
"type": "address"
|
39
|
+
}
|
40
|
+
],
|
41
|
+
"name": "AccessManagedUnauthorized",
|
42
|
+
"type": "error"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"inputs": [
|
46
|
+
{
|
47
|
+
"internalType": "address",
|
48
|
+
"name": "caller",
|
49
|
+
"type": "address"
|
50
|
+
}
|
51
|
+
],
|
52
|
+
"name": "ErrorComponentNotChainNft",
|
53
|
+
"type": "error"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"inputs": [
|
57
|
+
{
|
58
|
+
"internalType": "NftId",
|
59
|
+
"name": "instanceNftId",
|
60
|
+
"type": "uint96"
|
61
|
+
}
|
62
|
+
],
|
63
|
+
"name": "ErrorComponentNotInstance",
|
64
|
+
"type": "error"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"inputs": [
|
68
|
+
{
|
69
|
+
"internalType": "address",
|
70
|
+
"name": "caller",
|
71
|
+
"type": "address"
|
72
|
+
}
|
73
|
+
],
|
74
|
+
"name": "ErrorComponentNotProductService",
|
75
|
+
"type": "error"
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"inputs": [],
|
79
|
+
"name": "ErrorComponentProductNftAlreadySet",
|
80
|
+
"type": "error"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"inputs": [],
|
84
|
+
"name": "ErrorComponentWalletAddressIsSameAsCurrent",
|
85
|
+
"type": "error"
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"inputs": [],
|
89
|
+
"name": "ErrorComponentWalletAddressZero",
|
90
|
+
"type": "error"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"inputs": [
|
94
|
+
{
|
95
|
+
"internalType": "address",
|
96
|
+
"name": "oldWallet",
|
97
|
+
"type": "address"
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"internalType": "address",
|
101
|
+
"name": "newWallet",
|
102
|
+
"type": "address"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"internalType": "uint256",
|
106
|
+
"name": "allowance",
|
107
|
+
"type": "uint256"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
"internalType": "uint256",
|
111
|
+
"name": "balance",
|
112
|
+
"type": "uint256"
|
113
|
+
}
|
114
|
+
],
|
115
|
+
"name": "ErrorComponentWalletAllowanceTooSmall",
|
116
|
+
"type": "error"
|
117
|
+
},
|
118
|
+
{
|
119
|
+
"inputs": [
|
120
|
+
{
|
121
|
+
"internalType": "NftId",
|
122
|
+
"name": "nftId",
|
123
|
+
"type": "uint96"
|
124
|
+
}
|
125
|
+
],
|
126
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
127
|
+
"type": "error"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"inputs": [
|
131
|
+
{
|
132
|
+
"internalType": "address",
|
133
|
+
"name": "contractAddress",
|
134
|
+
"type": "address"
|
135
|
+
}
|
136
|
+
],
|
137
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
138
|
+
"type": "error"
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"inputs": [],
|
142
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
143
|
+
"type": "error"
|
144
|
+
},
|
145
|
+
{
|
146
|
+
"inputs": [
|
147
|
+
{
|
148
|
+
"internalType": "address",
|
149
|
+
"name": "account",
|
150
|
+
"type": "address"
|
151
|
+
}
|
152
|
+
],
|
153
|
+
"name": "ErrorNftOwnableNotOwner",
|
154
|
+
"type": "error"
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"inputs": [
|
158
|
+
{
|
159
|
+
"internalType": "address",
|
160
|
+
"name": "registryAddress",
|
161
|
+
"type": "address"
|
162
|
+
}
|
163
|
+
],
|
164
|
+
"name": "ErrorNotRegistry",
|
165
|
+
"type": "error"
|
166
|
+
},
|
167
|
+
{
|
168
|
+
"inputs": [
|
169
|
+
{
|
170
|
+
"internalType": "NftId",
|
171
|
+
"name": "applicationNftId",
|
172
|
+
"type": "uint96"
|
173
|
+
}
|
174
|
+
],
|
175
|
+
"name": "ErrorPoolApplicationBundleMismatch",
|
176
|
+
"type": "error"
|
177
|
+
},
|
178
|
+
{
|
179
|
+
"inputs": [
|
180
|
+
{
|
181
|
+
"internalType": "NftId",
|
182
|
+
"name": "bundleNftId",
|
183
|
+
"type": "uint96"
|
184
|
+
},
|
185
|
+
{
|
186
|
+
"internalType": "address",
|
187
|
+
"name": "caller",
|
188
|
+
"type": "address"
|
189
|
+
}
|
190
|
+
],
|
191
|
+
"name": "ErrorPoolNotBundleOwner",
|
192
|
+
"type": "error"
|
193
|
+
},
|
194
|
+
{
|
195
|
+
"inputs": [
|
196
|
+
{
|
197
|
+
"internalType": "address",
|
198
|
+
"name": "caller",
|
199
|
+
"type": "address"
|
200
|
+
}
|
201
|
+
],
|
202
|
+
"name": "ErrorPoolNotPoolService",
|
203
|
+
"type": "error"
|
204
|
+
},
|
205
|
+
{
|
206
|
+
"anonymous": false,
|
207
|
+
"inputs": [
|
208
|
+
{
|
209
|
+
"indexed": false,
|
210
|
+
"internalType": "address",
|
211
|
+
"name": "authority",
|
212
|
+
"type": "address"
|
213
|
+
}
|
214
|
+
],
|
215
|
+
"name": "AuthorityUpdated",
|
216
|
+
"type": "event"
|
217
|
+
},
|
218
|
+
{
|
219
|
+
"anonymous": false,
|
220
|
+
"inputs": [
|
221
|
+
{
|
222
|
+
"indexed": false,
|
223
|
+
"internalType": "address",
|
224
|
+
"name": "oldWallet",
|
225
|
+
"type": "address"
|
226
|
+
},
|
227
|
+
{
|
228
|
+
"indexed": false,
|
229
|
+
"internalType": "address",
|
230
|
+
"name": "newWallet",
|
231
|
+
"type": "address"
|
232
|
+
}
|
233
|
+
],
|
234
|
+
"name": "LogComponentWalletAddressChanged",
|
235
|
+
"type": "event"
|
236
|
+
},
|
237
|
+
{
|
238
|
+
"anonymous": false,
|
239
|
+
"inputs": [
|
240
|
+
{
|
241
|
+
"indexed": false,
|
242
|
+
"internalType": "address",
|
243
|
+
"name": "from",
|
244
|
+
"type": "address"
|
245
|
+
},
|
246
|
+
{
|
247
|
+
"indexed": false,
|
248
|
+
"internalType": "address",
|
249
|
+
"name": "to",
|
250
|
+
"type": "address"
|
251
|
+
},
|
252
|
+
{
|
253
|
+
"indexed": false,
|
254
|
+
"internalType": "uint256",
|
255
|
+
"name": "amount",
|
256
|
+
"type": "uint256"
|
257
|
+
}
|
258
|
+
],
|
259
|
+
"name": "LogComponentWalletTokensTransferred",
|
260
|
+
"type": "event"
|
261
|
+
},
|
6
262
|
{
|
7
263
|
"anonymous": false,
|
8
264
|
"inputs": [
|
265
|
+
{
|
266
|
+
"indexed": false,
|
267
|
+
"internalType": "address",
|
268
|
+
"name": "pool",
|
269
|
+
"type": "address"
|
270
|
+
},
|
9
271
|
{
|
10
272
|
"indexed": false,
|
11
273
|
"internalType": "NftId",
|
12
|
-
"name": "
|
274
|
+
"name": "applicationNftId",
|
13
275
|
"type": "uint96"
|
14
276
|
},
|
15
277
|
{
|
@@ -17,71 +279,435 @@
|
|
17
279
|
"internalType": "uint256",
|
18
280
|
"name": "collateralizationAmount",
|
19
281
|
"type": "uint256"
|
282
|
+
}
|
283
|
+
],
|
284
|
+
"name": "LogPoolVerifiedByPool",
|
285
|
+
"type": "event"
|
286
|
+
},
|
287
|
+
{
|
288
|
+
"inputs": [
|
289
|
+
{
|
290
|
+
"internalType": "NftId",
|
291
|
+
"name": "applicationNftId",
|
292
|
+
"type": "uint96"
|
20
293
|
},
|
21
294
|
{
|
22
|
-
"
|
295
|
+
"internalType": "bytes",
|
296
|
+
"name": "applicationData",
|
297
|
+
"type": "bytes"
|
298
|
+
},
|
299
|
+
{
|
300
|
+
"internalType": "NftId",
|
301
|
+
"name": "bundleNftId",
|
302
|
+
"type": "uint96"
|
303
|
+
},
|
304
|
+
{
|
305
|
+
"internalType": "bytes",
|
306
|
+
"name": "bundleFilter",
|
307
|
+
"type": "bytes"
|
308
|
+
},
|
309
|
+
{
|
310
|
+
"internalType": "uint256",
|
311
|
+
"name": "collateralizationAmount",
|
312
|
+
"type": "uint256"
|
313
|
+
}
|
314
|
+
],
|
315
|
+
"name": "applicationMatchesBundle",
|
316
|
+
"outputs": [
|
317
|
+
{
|
318
|
+
"internalType": "bool",
|
319
|
+
"name": "isMatching",
|
320
|
+
"type": "bool"
|
321
|
+
}
|
322
|
+
],
|
323
|
+
"stateMutability": "view",
|
324
|
+
"type": "function"
|
325
|
+
},
|
326
|
+
{
|
327
|
+
"inputs": [],
|
328
|
+
"name": "authority",
|
329
|
+
"outputs": [
|
330
|
+
{
|
23
331
|
"internalType": "address",
|
24
|
-
"name": "
|
332
|
+
"name": "",
|
25
333
|
"type": "address"
|
26
334
|
}
|
27
335
|
],
|
28
|
-
"
|
29
|
-
"type": "
|
336
|
+
"stateMutability": "view",
|
337
|
+
"type": "function"
|
338
|
+
},
|
339
|
+
{
|
340
|
+
"inputs": [
|
341
|
+
{
|
342
|
+
"internalType": "NftId",
|
343
|
+
"name": "bundleNftId",
|
344
|
+
"type": "uint96"
|
345
|
+
}
|
346
|
+
],
|
347
|
+
"name": "close",
|
348
|
+
"outputs": [],
|
349
|
+
"stateMutability": "nonpayable",
|
350
|
+
"type": "function"
|
30
351
|
},
|
31
352
|
{
|
32
353
|
"inputs": [
|
354
|
+
{
|
355
|
+
"internalType": "NftId",
|
356
|
+
"name": "bundleNftId",
|
357
|
+
"type": "uint96"
|
358
|
+
},
|
359
|
+
{
|
360
|
+
"internalType": "Seconds",
|
361
|
+
"name": "lifetimeExtension",
|
362
|
+
"type": "uint40"
|
363
|
+
}
|
364
|
+
],
|
365
|
+
"name": "extend",
|
366
|
+
"outputs": [],
|
367
|
+
"stateMutability": "nonpayable",
|
368
|
+
"type": "function"
|
369
|
+
},
|
370
|
+
{
|
371
|
+
"inputs": [],
|
372
|
+
"name": "getComponentInfo",
|
373
|
+
"outputs": [
|
33
374
|
{
|
34
375
|
"components": [
|
376
|
+
{
|
377
|
+
"internalType": "string",
|
378
|
+
"name": "name",
|
379
|
+
"type": "string"
|
380
|
+
},
|
381
|
+
{
|
382
|
+
"internalType": "contract IERC20Metadata",
|
383
|
+
"name": "token",
|
384
|
+
"type": "address"
|
385
|
+
},
|
386
|
+
{
|
387
|
+
"internalType": "contract TokenHandler",
|
388
|
+
"name": "tokenHandler",
|
389
|
+
"type": "address"
|
390
|
+
},
|
391
|
+
{
|
392
|
+
"internalType": "address",
|
393
|
+
"name": "wallet",
|
394
|
+
"type": "address"
|
395
|
+
},
|
396
|
+
{
|
397
|
+
"internalType": "Amount",
|
398
|
+
"name": "balanceAmount",
|
399
|
+
"type": "uint96"
|
400
|
+
},
|
401
|
+
{
|
402
|
+
"internalType": "Amount",
|
403
|
+
"name": "feeAmount",
|
404
|
+
"type": "uint96"
|
405
|
+
},
|
406
|
+
{
|
407
|
+
"internalType": "bytes",
|
408
|
+
"name": "data",
|
409
|
+
"type": "bytes"
|
410
|
+
}
|
411
|
+
],
|
412
|
+
"internalType": "struct IComponents.ComponentInfo",
|
413
|
+
"name": "info",
|
414
|
+
"type": "tuple"
|
415
|
+
}
|
416
|
+
],
|
417
|
+
"stateMutability": "view",
|
418
|
+
"type": "function"
|
419
|
+
},
|
420
|
+
{
|
421
|
+
"inputs": [],
|
422
|
+
"name": "getInitialInfo",
|
423
|
+
"outputs": [
|
424
|
+
{
|
425
|
+
"components": [
|
426
|
+
{
|
427
|
+
"internalType": "NftId",
|
428
|
+
"name": "nftId",
|
429
|
+
"type": "uint96"
|
430
|
+
},
|
431
|
+
{
|
432
|
+
"internalType": "NftId",
|
433
|
+
"name": "parentNftId",
|
434
|
+
"type": "uint96"
|
435
|
+
},
|
436
|
+
{
|
437
|
+
"internalType": "ObjectType",
|
438
|
+
"name": "objectType",
|
439
|
+
"type": "uint8"
|
440
|
+
},
|
441
|
+
{
|
442
|
+
"internalType": "bool",
|
443
|
+
"name": "isInterceptor",
|
444
|
+
"type": "bool"
|
445
|
+
},
|
446
|
+
{
|
447
|
+
"internalType": "address",
|
448
|
+
"name": "objectAddress",
|
449
|
+
"type": "address"
|
450
|
+
},
|
451
|
+
{
|
452
|
+
"internalType": "address",
|
453
|
+
"name": "initialOwner",
|
454
|
+
"type": "address"
|
455
|
+
},
|
456
|
+
{
|
457
|
+
"internalType": "bytes",
|
458
|
+
"name": "data",
|
459
|
+
"type": "bytes"
|
460
|
+
}
|
461
|
+
],
|
462
|
+
"internalType": "struct IRegistry.ObjectInfo",
|
463
|
+
"name": "",
|
464
|
+
"type": "tuple"
|
465
|
+
}
|
466
|
+
],
|
467
|
+
"stateMutability": "view",
|
468
|
+
"type": "function"
|
469
|
+
},
|
470
|
+
{
|
471
|
+
"inputs": [],
|
472
|
+
"name": "getInstance",
|
473
|
+
"outputs": [
|
474
|
+
{
|
475
|
+
"internalType": "contract IInstance",
|
476
|
+
"name": "instance",
|
477
|
+
"type": "address"
|
478
|
+
}
|
479
|
+
],
|
480
|
+
"stateMutability": "view",
|
481
|
+
"type": "function"
|
482
|
+
},
|
483
|
+
{
|
484
|
+
"inputs": [],
|
485
|
+
"name": "getName",
|
486
|
+
"outputs": [
|
487
|
+
{
|
488
|
+
"internalType": "string",
|
489
|
+
"name": "name",
|
490
|
+
"type": "string"
|
491
|
+
}
|
492
|
+
],
|
493
|
+
"stateMutability": "view",
|
494
|
+
"type": "function"
|
495
|
+
},
|
496
|
+
{
|
497
|
+
"inputs": [],
|
498
|
+
"name": "getNftId",
|
499
|
+
"outputs": [
|
500
|
+
{
|
501
|
+
"internalType": "NftId",
|
502
|
+
"name": "",
|
503
|
+
"type": "uint96"
|
504
|
+
}
|
505
|
+
],
|
506
|
+
"stateMutability": "view",
|
507
|
+
"type": "function"
|
508
|
+
},
|
509
|
+
{
|
510
|
+
"inputs": [],
|
511
|
+
"name": "getOwner",
|
512
|
+
"outputs": [
|
513
|
+
{
|
514
|
+
"internalType": "address",
|
515
|
+
"name": "",
|
516
|
+
"type": "address"
|
517
|
+
}
|
518
|
+
],
|
519
|
+
"stateMutability": "view",
|
520
|
+
"type": "function"
|
521
|
+
},
|
522
|
+
{
|
523
|
+
"inputs": [],
|
524
|
+
"name": "getPoolInfo",
|
525
|
+
"outputs": [
|
526
|
+
{
|
527
|
+
"components": [
|
528
|
+
{
|
529
|
+
"internalType": "NftId",
|
530
|
+
"name": "productNftId",
|
531
|
+
"type": "uint96"
|
532
|
+
},
|
533
|
+
{
|
534
|
+
"internalType": "RoleId",
|
535
|
+
"name": "bundleOwnerRole",
|
536
|
+
"type": "uint64"
|
537
|
+
},
|
538
|
+
{
|
539
|
+
"internalType": "uint256",
|
540
|
+
"name": "maxCapitalAmount",
|
541
|
+
"type": "uint256"
|
542
|
+
},
|
543
|
+
{
|
544
|
+
"internalType": "uint256",
|
545
|
+
"name": "balanceAmount",
|
546
|
+
"type": "uint256"
|
547
|
+
},
|
548
|
+
{
|
549
|
+
"internalType": "uint256",
|
550
|
+
"name": "feeAmount",
|
551
|
+
"type": "uint256"
|
552
|
+
},
|
553
|
+
{
|
554
|
+
"internalType": "bool",
|
555
|
+
"name": "isInterceptingBundleTransfers",
|
556
|
+
"type": "bool"
|
557
|
+
},
|
558
|
+
{
|
559
|
+
"internalType": "bool",
|
560
|
+
"name": "isExternallyManaged",
|
561
|
+
"type": "bool"
|
562
|
+
},
|
563
|
+
{
|
564
|
+
"internalType": "bool",
|
565
|
+
"name": "isVerifyingApplications",
|
566
|
+
"type": "bool"
|
567
|
+
},
|
35
568
|
{
|
36
569
|
"internalType": "UFixed",
|
37
|
-
"name": "
|
570
|
+
"name": "collateralizationLevel",
|
38
571
|
"type": "uint256"
|
39
572
|
},
|
40
573
|
{
|
41
|
-
"internalType": "
|
42
|
-
"name": "
|
574
|
+
"internalType": "UFixed",
|
575
|
+
"name": "retentionLevel",
|
43
576
|
"type": "uint256"
|
577
|
+
},
|
578
|
+
{
|
579
|
+
"components": [
|
580
|
+
{
|
581
|
+
"internalType": "UFixed",
|
582
|
+
"name": "fractionalFee",
|
583
|
+
"type": "uint256"
|
584
|
+
},
|
585
|
+
{
|
586
|
+
"internalType": "uint256",
|
587
|
+
"name": "fixedFee",
|
588
|
+
"type": "uint256"
|
589
|
+
}
|
590
|
+
],
|
591
|
+
"internalType": "struct Fee",
|
592
|
+
"name": "poolFee",
|
593
|
+
"type": "tuple"
|
594
|
+
},
|
595
|
+
{
|
596
|
+
"components": [
|
597
|
+
{
|
598
|
+
"internalType": "UFixed",
|
599
|
+
"name": "fractionalFee",
|
600
|
+
"type": "uint256"
|
601
|
+
},
|
602
|
+
{
|
603
|
+
"internalType": "uint256",
|
604
|
+
"name": "fixedFee",
|
605
|
+
"type": "uint256"
|
606
|
+
}
|
607
|
+
],
|
608
|
+
"internalType": "struct Fee",
|
609
|
+
"name": "stakingFee",
|
610
|
+
"type": "tuple"
|
611
|
+
},
|
612
|
+
{
|
613
|
+
"components": [
|
614
|
+
{
|
615
|
+
"internalType": "UFixed",
|
616
|
+
"name": "fractionalFee",
|
617
|
+
"type": "uint256"
|
618
|
+
},
|
619
|
+
{
|
620
|
+
"internalType": "uint256",
|
621
|
+
"name": "fixedFee",
|
622
|
+
"type": "uint256"
|
623
|
+
}
|
624
|
+
],
|
625
|
+
"internalType": "struct Fee",
|
626
|
+
"name": "performanceFee",
|
627
|
+
"type": "tuple"
|
44
628
|
}
|
45
629
|
],
|
46
|
-
"internalType": "struct
|
47
|
-
"name": "
|
630
|
+
"internalType": "struct IComponents.PoolInfo",
|
631
|
+
"name": "info",
|
48
632
|
"type": "tuple"
|
49
|
-
}
|
633
|
+
}
|
634
|
+
],
|
635
|
+
"stateMutability": "view",
|
636
|
+
"type": "function"
|
637
|
+
},
|
638
|
+
{
|
639
|
+
"inputs": [],
|
640
|
+
"name": "getProductNftId",
|
641
|
+
"outputs": [
|
50
642
|
{
|
51
|
-
"internalType": "
|
52
|
-
"name": "
|
53
|
-
"type": "
|
54
|
-
}
|
643
|
+
"internalType": "NftId",
|
644
|
+
"name": "productNftId",
|
645
|
+
"type": "uint96"
|
646
|
+
}
|
647
|
+
],
|
648
|
+
"stateMutability": "view",
|
649
|
+
"type": "function"
|
650
|
+
},
|
651
|
+
{
|
652
|
+
"inputs": [],
|
653
|
+
"name": "getRegistry",
|
654
|
+
"outputs": [
|
55
655
|
{
|
56
|
-
"internalType": "
|
57
|
-
"name": "
|
58
|
-
"type": "
|
59
|
-
}
|
656
|
+
"internalType": "contract IRegistry",
|
657
|
+
"name": "",
|
658
|
+
"type": "address"
|
659
|
+
}
|
660
|
+
],
|
661
|
+
"stateMutability": "view",
|
662
|
+
"type": "function"
|
663
|
+
},
|
664
|
+
{
|
665
|
+
"inputs": [],
|
666
|
+
"name": "getRegistryAddress",
|
667
|
+
"outputs": [
|
60
668
|
{
|
61
|
-
"internalType": "
|
62
|
-
"name": "
|
63
|
-
"type": "
|
669
|
+
"internalType": "address",
|
670
|
+
"name": "",
|
671
|
+
"type": "address"
|
64
672
|
}
|
65
673
|
],
|
66
|
-
"
|
674
|
+
"stateMutability": "view",
|
675
|
+
"type": "function"
|
676
|
+
},
|
677
|
+
{
|
678
|
+
"inputs": [],
|
679
|
+
"name": "getToken",
|
67
680
|
"outputs": [
|
68
681
|
{
|
69
|
-
"internalType": "
|
70
|
-
"name": "
|
71
|
-
"type": "
|
682
|
+
"internalType": "contract IERC20Metadata",
|
683
|
+
"name": "token",
|
684
|
+
"type": "address"
|
72
685
|
}
|
73
686
|
],
|
74
|
-
"stateMutability": "
|
687
|
+
"stateMutability": "view",
|
75
688
|
"type": "function"
|
76
689
|
},
|
77
690
|
{
|
78
691
|
"inputs": [],
|
79
|
-
"name": "
|
692
|
+
"name": "getWallet",
|
80
693
|
"outputs": [
|
81
694
|
{
|
82
|
-
"internalType": "
|
83
|
-
"name": "
|
84
|
-
"type": "
|
695
|
+
"internalType": "address",
|
696
|
+
"name": "walletAddress",
|
697
|
+
"type": "address"
|
698
|
+
}
|
699
|
+
],
|
700
|
+
"stateMutability": "view",
|
701
|
+
"type": "function"
|
702
|
+
},
|
703
|
+
{
|
704
|
+
"inputs": [],
|
705
|
+
"name": "isConsumingScheduledOp",
|
706
|
+
"outputs": [
|
707
|
+
{
|
708
|
+
"internalType": "bytes4",
|
709
|
+
"name": "",
|
710
|
+
"type": "bytes4"
|
85
711
|
}
|
86
712
|
],
|
87
713
|
"stateMutability": "view",
|
@@ -89,46 +715,103 @@
|
|
89
715
|
},
|
90
716
|
{
|
91
717
|
"inputs": [],
|
92
|
-
"name": "
|
718
|
+
"name": "isNftInterceptor",
|
93
719
|
"outputs": [
|
94
720
|
{
|
95
721
|
"internalType": "bool",
|
96
|
-
"name": "
|
722
|
+
"name": "isInterceptor",
|
97
723
|
"type": "bool"
|
98
724
|
}
|
99
725
|
],
|
100
726
|
"stateMutability": "view",
|
101
727
|
"type": "function"
|
102
728
|
},
|
729
|
+
{
|
730
|
+
"inputs": [],
|
731
|
+
"name": "linkToRegisteredNftId",
|
732
|
+
"outputs": [],
|
733
|
+
"stateMutability": "nonpayable",
|
734
|
+
"type": "function"
|
735
|
+
},
|
736
|
+
{
|
737
|
+
"inputs": [],
|
738
|
+
"name": "lock",
|
739
|
+
"outputs": [],
|
740
|
+
"stateMutability": "nonpayable",
|
741
|
+
"type": "function"
|
742
|
+
},
|
103
743
|
{
|
104
744
|
"inputs": [
|
105
745
|
{
|
106
|
-
"internalType": "
|
107
|
-
"name": "
|
108
|
-
"type": "
|
746
|
+
"internalType": "NftId",
|
747
|
+
"name": "bundleNftId",
|
748
|
+
"type": "uint96"
|
749
|
+
}
|
750
|
+
],
|
751
|
+
"name": "lockBundle",
|
752
|
+
"outputs": [],
|
753
|
+
"stateMutability": "nonpayable",
|
754
|
+
"type": "function"
|
755
|
+
},
|
756
|
+
{
|
757
|
+
"inputs": [
|
758
|
+
{
|
759
|
+
"internalType": "address",
|
760
|
+
"name": "to",
|
761
|
+
"type": "address"
|
109
762
|
},
|
110
763
|
{
|
111
|
-
"internalType": "
|
112
|
-
"name": "
|
113
|
-
"type": "
|
764
|
+
"internalType": "uint256",
|
765
|
+
"name": "tokenId",
|
766
|
+
"type": "uint256"
|
114
767
|
}
|
115
768
|
],
|
116
|
-
"name": "
|
117
|
-
"outputs": [
|
769
|
+
"name": "nftMint",
|
770
|
+
"outputs": [],
|
771
|
+
"stateMutability": "nonpayable",
|
772
|
+
"type": "function"
|
773
|
+
},
|
774
|
+
{
|
775
|
+
"inputs": [
|
118
776
|
{
|
119
|
-
"internalType": "
|
120
|
-
"name": "
|
121
|
-
"type": "
|
777
|
+
"internalType": "address",
|
778
|
+
"name": "from",
|
779
|
+
"type": "address"
|
780
|
+
},
|
781
|
+
{
|
782
|
+
"internalType": "address",
|
783
|
+
"name": "to",
|
784
|
+
"type": "address"
|
785
|
+
},
|
786
|
+
{
|
787
|
+
"internalType": "uint256",
|
788
|
+
"name": "tokenId",
|
789
|
+
"type": "uint256"
|
122
790
|
}
|
123
791
|
],
|
124
|
-
"
|
792
|
+
"name": "nftTransferFrom",
|
793
|
+
"outputs": [],
|
794
|
+
"stateMutability": "nonpayable",
|
795
|
+
"type": "function"
|
796
|
+
},
|
797
|
+
{
|
798
|
+
"inputs": [
|
799
|
+
{
|
800
|
+
"internalType": "address",
|
801
|
+
"name": "",
|
802
|
+
"type": "address"
|
803
|
+
}
|
804
|
+
],
|
805
|
+
"name": "setAuthority",
|
806
|
+
"outputs": [],
|
807
|
+
"stateMutability": "nonpayable",
|
125
808
|
"type": "function"
|
126
809
|
},
|
127
810
|
{
|
128
811
|
"inputs": [
|
129
812
|
{
|
130
813
|
"internalType": "NftId",
|
131
|
-
"name": "
|
814
|
+
"name": "bundleNftId",
|
132
815
|
"type": "uint96"
|
133
816
|
},
|
134
817
|
{
|
@@ -154,6 +837,19 @@
|
|
154
837
|
"stateMutability": "nonpayable",
|
155
838
|
"type": "function"
|
156
839
|
},
|
840
|
+
{
|
841
|
+
"inputs": [
|
842
|
+
{
|
843
|
+
"internalType": "RoleId",
|
844
|
+
"name": "bundleOwnerRole",
|
845
|
+
"type": "uint64"
|
846
|
+
}
|
847
|
+
],
|
848
|
+
"name": "setBundleOwnerRole",
|
849
|
+
"outputs": [],
|
850
|
+
"stateMutability": "nonpayable",
|
851
|
+
"type": "function"
|
852
|
+
},
|
157
853
|
{
|
158
854
|
"inputs": [
|
159
855
|
{
|
@@ -213,18 +909,137 @@
|
|
213
909
|
"stateMutability": "nonpayable",
|
214
910
|
"type": "function"
|
215
911
|
},
|
912
|
+
{
|
913
|
+
"inputs": [
|
914
|
+
{
|
915
|
+
"internalType": "uint256",
|
916
|
+
"name": "maxCapitalAmount",
|
917
|
+
"type": "uint256"
|
918
|
+
}
|
919
|
+
],
|
920
|
+
"name": "setMaxCapitalAmount",
|
921
|
+
"outputs": [],
|
922
|
+
"stateMutability": "nonpayable",
|
923
|
+
"type": "function"
|
924
|
+
},
|
925
|
+
{
|
926
|
+
"inputs": [
|
927
|
+
{
|
928
|
+
"internalType": "NftId",
|
929
|
+
"name": "productNftId",
|
930
|
+
"type": "uint96"
|
931
|
+
}
|
932
|
+
],
|
933
|
+
"name": "setProductNftId",
|
934
|
+
"outputs": [],
|
935
|
+
"stateMutability": "nonpayable",
|
936
|
+
"type": "function"
|
937
|
+
},
|
938
|
+
{
|
939
|
+
"inputs": [
|
940
|
+
{
|
941
|
+
"internalType": "address",
|
942
|
+
"name": "walletAddress",
|
943
|
+
"type": "address"
|
944
|
+
}
|
945
|
+
],
|
946
|
+
"name": "setWallet",
|
947
|
+
"outputs": [],
|
948
|
+
"stateMutability": "nonpayable",
|
949
|
+
"type": "function"
|
950
|
+
},
|
951
|
+
{
|
952
|
+
"inputs": [
|
953
|
+
{
|
954
|
+
"internalType": "NftId",
|
955
|
+
"name": "bundleNftId",
|
956
|
+
"type": "uint96"
|
957
|
+
},
|
958
|
+
{
|
959
|
+
"internalType": "uint256",
|
960
|
+
"name": "amount",
|
961
|
+
"type": "uint256"
|
962
|
+
}
|
963
|
+
],
|
964
|
+
"name": "stake",
|
965
|
+
"outputs": [],
|
966
|
+
"stateMutability": "nonpayable",
|
967
|
+
"type": "function"
|
968
|
+
},
|
969
|
+
{
|
970
|
+
"inputs": [
|
971
|
+
{
|
972
|
+
"internalType": "bytes4",
|
973
|
+
"name": "interfaceId",
|
974
|
+
"type": "bytes4"
|
975
|
+
}
|
976
|
+
],
|
977
|
+
"name": "supportsInterface",
|
978
|
+
"outputs": [
|
979
|
+
{
|
980
|
+
"internalType": "bool",
|
981
|
+
"name": "",
|
982
|
+
"type": "bool"
|
983
|
+
}
|
984
|
+
],
|
985
|
+
"stateMutability": "view",
|
986
|
+
"type": "function"
|
987
|
+
},
|
988
|
+
{
|
989
|
+
"inputs": [],
|
990
|
+
"name": "unlock",
|
991
|
+
"outputs": [],
|
992
|
+
"stateMutability": "nonpayable",
|
993
|
+
"type": "function"
|
994
|
+
},
|
995
|
+
{
|
996
|
+
"inputs": [
|
997
|
+
{
|
998
|
+
"internalType": "NftId",
|
999
|
+
"name": "bundleNftId",
|
1000
|
+
"type": "uint96"
|
1001
|
+
}
|
1002
|
+
],
|
1003
|
+
"name": "unlockBundle",
|
1004
|
+
"outputs": [],
|
1005
|
+
"stateMutability": "nonpayable",
|
1006
|
+
"type": "function"
|
1007
|
+
},
|
1008
|
+
{
|
1009
|
+
"inputs": [
|
1010
|
+
{
|
1011
|
+
"internalType": "NftId",
|
1012
|
+
"name": "bundleNftId",
|
1013
|
+
"type": "uint96"
|
1014
|
+
},
|
1015
|
+
{
|
1016
|
+
"internalType": "uint256",
|
1017
|
+
"name": "amount",
|
1018
|
+
"type": "uint256"
|
1019
|
+
}
|
1020
|
+
],
|
1021
|
+
"name": "unstake",
|
1022
|
+
"outputs": [],
|
1023
|
+
"stateMutability": "nonpayable",
|
1024
|
+
"type": "function"
|
1025
|
+
},
|
216
1026
|
{
|
217
1027
|
"inputs": [
|
218
1028
|
{
|
219
1029
|
"internalType": "NftId",
|
220
|
-
"name": "
|
1030
|
+
"name": "applicationNftId",
|
221
1031
|
"type": "uint96"
|
222
1032
|
},
|
223
1033
|
{
|
224
1034
|
"internalType": "bytes",
|
225
|
-
"name": "
|
1035
|
+
"name": "applicationData",
|
226
1036
|
"type": "bytes"
|
227
1037
|
},
|
1038
|
+
{
|
1039
|
+
"internalType": "NftId",
|
1040
|
+
"name": "bundleNftId",
|
1041
|
+
"type": "uint96"
|
1042
|
+
},
|
228
1043
|
{
|
229
1044
|
"internalType": "bytes",
|
230
1045
|
"name": "bundleFilter",
|
@@ -236,7 +1051,7 @@
|
|
236
1051
|
"type": "uint256"
|
237
1052
|
}
|
238
1053
|
],
|
239
|
-
"name": "
|
1054
|
+
"name": "verifyApplication",
|
240
1055
|
"outputs": [],
|
241
1056
|
"stateMutability": "nonpayable",
|
242
1057
|
"type": "function"
|