@etherisc/gif-next 0.0.2-a7954cc-097 → 0.0.2-a81f316-187
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -13
- 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 +879 -209
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/components/{BaseComponent.sol/BaseComponent.json → IComponent.sol/IComponent.json} +213 -90
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +848 -31
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +846 -57
- 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 +712 -178
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +524 -132
- 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 +1334 -460
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +261 -198
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +1049 -808
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +462 -179
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +251 -270
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +511 -334
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +370 -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} +237 -162
- 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 +58 -75
- 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 +1060 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +681 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +614 -293
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +370 -77
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +1040 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +685 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1276 -195
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +444 -71
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +627 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +283 -266
- 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} +314 -178
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +787 -143
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +511 -238
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +476 -131
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +73 -159
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +828 -310
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +364 -87
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +821 -311
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +317 -76
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +271 -208
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +309 -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 +104 -214
- 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 +214 -251
- 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 +81 -68
- 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 +73 -159
- 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 +179 -151
- 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 +197 -201
- 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 +185 -0
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +179 -0
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +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 +2 -2
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
- package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +209 -0
- package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +23 -4
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
- package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
- package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +38 -7
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/MathLib.json +2 -2
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +2 -2
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
- package/contracts/components/Component.sol +253 -0
- package/contracts/components/Distribution.sol +203 -82
- package/contracts/components/IComponent.sol +76 -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 +216 -185
- package/contracts/components/Product.sol +244 -165
- package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +2 -12
- package/contracts/instance/BundleManager.sol +17 -20
- package/contracts/instance/Cloneable.sol +7 -2
- package/contracts/instance/IInstance.sol +65 -25
- package/contracts/instance/IInstanceService.sol +36 -8
- package/contracts/instance/Instance.sol +151 -117
- package/contracts/instance/InstanceAccessManager.sol +389 -165
- package/contracts/instance/InstanceReader.sol +38 -36
- package/contracts/instance/InstanceService.sol +281 -153
- package/contracts/instance/InstanceServiceManager.sol +1 -1
- package/contracts/instance/ObjectManager.sol +10 -29
- package/contracts/instance/base/ComponentService.sol +121 -0
- package/contracts/instance/base/KeyValueStore.sol +13 -5
- package/contracts/instance/base/Lifecycle.sol +23 -6
- package/contracts/instance/module/IAccess.sol +22 -16
- package/contracts/instance/module/IBundle.sol +8 -5
- package/contracts/instance/module/IComponents.sol +41 -0
- package/contracts/instance/module/IDistribution.sol +2 -0
- package/contracts/instance/module/IPolicy.sol +41 -9
- package/contracts/instance/module/ISetup.sol +7 -20
- package/contracts/instance/service/ApplicationService.sol +355 -0
- package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
- package/contracts/instance/service/BundleService.sol +245 -69
- package/contracts/instance/service/BundleServiceManager.sol +1 -1
- package/contracts/instance/service/ClaimService.sol +239 -0
- package/contracts/instance/service/ClaimServiceManager.sol +35 -0
- package/contracts/instance/service/DistributionService.sol +359 -41
- package/contracts/instance/service/DistributionServiceManager.sol +1 -1
- package/contracts/instance/service/IApplicationService.sol +78 -0
- package/contracts/instance/service/IBundleService.sol +70 -19
- package/contracts/instance/service/IClaimService.sol +92 -0
- package/contracts/instance/service/IDistributionService.sol +87 -0
- package/contracts/instance/service/IPolicyService.sol +103 -53
- package/contracts/instance/service/IPoolService.sol +82 -3
- package/contracts/instance/service/PolicyService.sol +383 -345
- package/contracts/instance/service/PolicyServiceManager.sol +2 -2
- package/contracts/instance/service/PoolService.sol +221 -42
- package/contracts/instance/service/PoolServiceManager.sol +1 -1
- package/contracts/instance/service/ProductService.sol +90 -50
- 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 +23 -13
- 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 +93 -134
- package/contracts/registry/RegistryServiceManager.sol +13 -13
- package/contracts/registry/ReleaseManager.sol +103 -127
- 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 +4 -4
- 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 +36 -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 +1 -1
- package/contracts/types/Amount.sol +65 -0
- package/contracts/types/Blocknumber.sol +1 -0
- package/contracts/types/ClaimId.sol +75 -0
- package/contracts/types/DistributorType.sol +2 -2
- package/contracts/types/Fee.sol +13 -5
- package/contracts/types/NftId.sol +8 -0
- package/contracts/types/ObjectType.sol +11 -6
- package/contracts/types/PayoutId.sol +82 -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 +7 -2
- package/contracts/types/Timestamp.sol +18 -13
- package/contracts/types/UFixed.sol +1 -0
- package/contracts/types/Version.sol +1 -0
- package/package.json +3 -3
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -397
- 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 -82
- 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
@@ -7,27 +7,123 @@
|
|
7
7
|
"inputs": [
|
8
8
|
{
|
9
9
|
"internalType": "address",
|
10
|
-
"name": "
|
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",
|
11
22
|
"type": "address"
|
12
23
|
},
|
13
24
|
{
|
14
|
-
"internalType": "
|
15
|
-
"name": "
|
16
|
-
"type": "
|
25
|
+
"internalType": "uint32",
|
26
|
+
"name": "delay",
|
27
|
+
"type": "uint32"
|
17
28
|
}
|
18
29
|
],
|
19
|
-
"name": "
|
30
|
+
"name": "AccessManagedRequiredDelay",
|
20
31
|
"type": "error"
|
21
32
|
},
|
22
33
|
{
|
23
34
|
"inputs": [
|
24
35
|
{
|
25
36
|
"internalType": "address",
|
26
|
-
"name": "
|
37
|
+
"name": "caller",
|
27
38
|
"type": "address"
|
28
39
|
}
|
29
40
|
],
|
30
|
-
"name": "
|
41
|
+
"name": "AccessManagedUnauthorized",
|
42
|
+
"type": "error"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"inputs": [
|
46
|
+
{
|
47
|
+
"internalType": "NftId",
|
48
|
+
"name": "bundleNftId",
|
49
|
+
"type": "uint96"
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"internalType": "StateId",
|
53
|
+
"name": "state",
|
54
|
+
"type": "uint8"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"internalType": "Timestamp",
|
58
|
+
"name": "expiredAt",
|
59
|
+
"type": "uint40"
|
60
|
+
}
|
61
|
+
],
|
62
|
+
"name": "ErrorBundleServiceBundleNotOpen",
|
63
|
+
"type": "error"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"inputs": [
|
67
|
+
{
|
68
|
+
"internalType": "NftId",
|
69
|
+
"name": "expectedPoolNftId",
|
70
|
+
"type": "uint96"
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"internalType": "NftId",
|
74
|
+
"name": "bundlePoolNftId",
|
75
|
+
"type": "uint96"
|
76
|
+
}
|
77
|
+
],
|
78
|
+
"name": "ErrorBundleServiceBundlePoolMismatch",
|
79
|
+
"type": "error"
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"inputs": [
|
83
|
+
{
|
84
|
+
"internalType": "NftId",
|
85
|
+
"name": "bundleNftId",
|
86
|
+
"type": "uint96"
|
87
|
+
}
|
88
|
+
],
|
89
|
+
"name": "ErrorBundleServiceBundleUnknown",
|
90
|
+
"type": "error"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"inputs": [
|
94
|
+
{
|
95
|
+
"internalType": "NftId",
|
96
|
+
"name": "bundleNftId",
|
97
|
+
"type": "uint96"
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"internalType": "uint256",
|
101
|
+
"name": "openPoliciesCount",
|
102
|
+
"type": "uint256"
|
103
|
+
}
|
104
|
+
],
|
105
|
+
"name": "ErrorBundleServiceBundleWithOpenPolicies",
|
106
|
+
"type": "error"
|
107
|
+
},
|
108
|
+
{
|
109
|
+
"inputs": [
|
110
|
+
{
|
111
|
+
"internalType": "NftId",
|
112
|
+
"name": "bundleNftId",
|
113
|
+
"type": "uint96"
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"internalType": "uint256",
|
117
|
+
"name": "capacityAmount",
|
118
|
+
"type": "uint256"
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"internalType": "uint256",
|
122
|
+
"name": "collateralAmount",
|
123
|
+
"type": "uint256"
|
124
|
+
}
|
125
|
+
],
|
126
|
+
"name": "ErrorBundleServiceCapacityInsufficient",
|
31
127
|
"type": "error"
|
32
128
|
},
|
33
129
|
{
|
@@ -48,79 +144,140 @@
|
|
48
144
|
"type": "uint256"
|
49
145
|
}
|
50
146
|
],
|
51
|
-
"name": "
|
147
|
+
"name": "ErrorBundleServiceInsufficientAllowance",
|
52
148
|
"type": "error"
|
53
149
|
},
|
54
150
|
{
|
55
151
|
"inputs": [
|
56
152
|
{
|
57
|
-
"internalType": "
|
58
|
-
"name": "
|
59
|
-
"type": "
|
153
|
+
"internalType": "NftId",
|
154
|
+
"name": "nftId",
|
155
|
+
"type": "uint96"
|
60
156
|
}
|
61
157
|
],
|
62
|
-
"name": "
|
158
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
63
159
|
"type": "error"
|
64
160
|
},
|
65
161
|
{
|
66
162
|
"inputs": [
|
67
163
|
{
|
68
164
|
"internalType": "address",
|
69
|
-
"name": "
|
165
|
+
"name": "contractAddress",
|
70
166
|
"type": "address"
|
71
167
|
}
|
72
168
|
],
|
73
|
-
"name": "
|
169
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
74
170
|
"type": "error"
|
75
171
|
},
|
76
172
|
{
|
77
173
|
"inputs": [],
|
78
|
-
"name": "
|
174
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
79
175
|
"type": "error"
|
80
176
|
},
|
81
177
|
{
|
82
178
|
"inputs": [
|
83
179
|
{
|
84
180
|
"internalType": "address",
|
85
|
-
"name": "
|
181
|
+
"name": "account",
|
86
182
|
"type": "address"
|
87
183
|
}
|
88
184
|
],
|
89
|
-
"name": "
|
185
|
+
"name": "ErrorNftOwnableNotOwner",
|
90
186
|
"type": "error"
|
91
187
|
},
|
92
188
|
{
|
93
|
-
"inputs": [
|
94
|
-
|
189
|
+
"inputs": [
|
190
|
+
{
|
191
|
+
"internalType": "address",
|
192
|
+
"name": "registryAddress",
|
193
|
+
"type": "address"
|
194
|
+
}
|
195
|
+
],
|
196
|
+
"name": "ErrorNotRegistry",
|
95
197
|
"type": "error"
|
96
198
|
},
|
97
199
|
{
|
98
200
|
"anonymous": false,
|
99
201
|
"inputs": [
|
100
|
-
{
|
101
|
-
"indexed": false,
|
102
|
-
"internalType": "Version",
|
103
|
-
"name": "version",
|
104
|
-
"type": "uint24"
|
105
|
-
},
|
106
202
|
{
|
107
203
|
"indexed": false,
|
108
204
|
"internalType": "address",
|
109
|
-
"name": "
|
205
|
+
"name": "authority",
|
110
206
|
"type": "address"
|
111
|
-
}
|
207
|
+
}
|
208
|
+
],
|
209
|
+
"name": "AuthorityUpdated",
|
210
|
+
"type": "event"
|
211
|
+
},
|
212
|
+
{
|
213
|
+
"anonymous": false,
|
214
|
+
"inputs": [
|
215
|
+
{
|
216
|
+
"indexed": false,
|
217
|
+
"internalType": "NftId",
|
218
|
+
"name": "bundleNftId",
|
219
|
+
"type": "uint96"
|
220
|
+
}
|
221
|
+
],
|
222
|
+
"name": "LogBundleServiceBundleActivated",
|
223
|
+
"type": "event"
|
224
|
+
},
|
225
|
+
{
|
226
|
+
"anonymous": false,
|
227
|
+
"inputs": [
|
112
228
|
{
|
113
229
|
"indexed": false,
|
230
|
+
"internalType": "NftId",
|
231
|
+
"name": "bundleNftId",
|
232
|
+
"type": "uint96"
|
233
|
+
}
|
234
|
+
],
|
235
|
+
"name": "LogBundleServiceBundleLocked",
|
236
|
+
"type": "event"
|
237
|
+
},
|
238
|
+
{
|
239
|
+
"inputs": [],
|
240
|
+
"name": "authority",
|
241
|
+
"outputs": [
|
242
|
+
{
|
114
243
|
"internalType": "address",
|
115
|
-
"name": "
|
244
|
+
"name": "",
|
116
245
|
"type": "address"
|
117
246
|
}
|
118
247
|
],
|
119
|
-
"
|
120
|
-
"type": "
|
248
|
+
"stateMutability": "view",
|
249
|
+
"type": "function"
|
250
|
+
},
|
251
|
+
{
|
252
|
+
"inputs": [
|
253
|
+
{
|
254
|
+
"internalType": "contract IInstance",
|
255
|
+
"name": "instance",
|
256
|
+
"type": "address"
|
257
|
+
},
|
258
|
+
{
|
259
|
+
"internalType": "NftId",
|
260
|
+
"name": "bundleNftId",
|
261
|
+
"type": "uint96"
|
262
|
+
}
|
263
|
+
],
|
264
|
+
"name": "close",
|
265
|
+
"outputs": [],
|
266
|
+
"stateMutability": "nonpayable",
|
267
|
+
"type": "function"
|
121
268
|
},
|
122
269
|
{
|
123
270
|
"inputs": [
|
271
|
+
{
|
272
|
+
"internalType": "contract IInstance",
|
273
|
+
"name": "instance",
|
274
|
+
"type": "address"
|
275
|
+
},
|
276
|
+
{
|
277
|
+
"internalType": "NftId",
|
278
|
+
"name": "poolNftId",
|
279
|
+
"type": "uint96"
|
280
|
+
},
|
124
281
|
{
|
125
282
|
"internalType": "address",
|
126
283
|
"name": "owner",
|
@@ -144,14 +301,14 @@
|
|
144
301
|
"type": "tuple"
|
145
302
|
},
|
146
303
|
{
|
147
|
-
"internalType": "
|
148
|
-
"name": "
|
149
|
-
"type": "
|
304
|
+
"internalType": "Amount",
|
305
|
+
"name": "stakingAmount",
|
306
|
+
"type": "uint96"
|
150
307
|
},
|
151
308
|
{
|
152
|
-
"internalType": "
|
309
|
+
"internalType": "Seconds",
|
153
310
|
"name": "lifetime",
|
154
|
-
"type": "
|
311
|
+
"type": "uint40"
|
155
312
|
},
|
156
313
|
{
|
157
314
|
"internalType": "bytes",
|
@@ -159,7 +316,7 @@
|
|
159
316
|
"type": "bytes"
|
160
317
|
}
|
161
318
|
],
|
162
|
-
"name": "
|
319
|
+
"name": "create",
|
163
320
|
"outputs": [
|
164
321
|
{
|
165
322
|
"internalType": "NftId",
|
@@ -228,37 +385,6 @@
|
|
228
385
|
"internalType": "struct IRegistry.ObjectInfo",
|
229
386
|
"name": "",
|
230
387
|
"type": "tuple"
|
231
|
-
},
|
232
|
-
{
|
233
|
-
"internalType": "bytes",
|
234
|
-
"name": "data",
|
235
|
-
"type": "bytes"
|
236
|
-
}
|
237
|
-
],
|
238
|
-
"stateMutability": "view",
|
239
|
-
"type": "function"
|
240
|
-
},
|
241
|
-
{
|
242
|
-
"inputs": [],
|
243
|
-
"name": "getInitializedVersion",
|
244
|
-
"outputs": [
|
245
|
-
{
|
246
|
-
"internalType": "uint64",
|
247
|
-
"name": "",
|
248
|
-
"type": "uint64"
|
249
|
-
}
|
250
|
-
],
|
251
|
-
"stateMutability": "view",
|
252
|
-
"type": "function"
|
253
|
-
},
|
254
|
-
{
|
255
|
-
"inputs": [],
|
256
|
-
"name": "getMajorVersion",
|
257
|
-
"outputs": [
|
258
|
-
{
|
259
|
-
"internalType": "VersionPart",
|
260
|
-
"name": "majorVersion",
|
261
|
-
"type": "uint8"
|
262
388
|
}
|
263
389
|
],
|
264
390
|
"stateMutability": "view",
|
@@ -305,102 +431,55 @@
|
|
305
431
|
},
|
306
432
|
{
|
307
433
|
"inputs": [],
|
308
|
-
"name": "
|
434
|
+
"name": "getRegistryAddress",
|
309
435
|
"outputs": [
|
310
436
|
{
|
311
|
-
"internalType": "
|
437
|
+
"internalType": "address",
|
312
438
|
"name": "",
|
313
|
-
"type": "
|
439
|
+
"type": "address"
|
314
440
|
}
|
315
441
|
],
|
316
|
-
"stateMutability": "
|
442
|
+
"stateMutability": "view",
|
317
443
|
"type": "function"
|
318
444
|
},
|
319
445
|
{
|
320
|
-
"inputs": [
|
321
|
-
{
|
322
|
-
"internalType": "uint256",
|
323
|
-
"name": "index",
|
324
|
-
"type": "uint256"
|
325
|
-
}
|
326
|
-
],
|
446
|
+
"inputs": [],
|
327
447
|
"name": "getVersion",
|
328
448
|
"outputs": [
|
329
449
|
{
|
330
450
|
"internalType": "Version",
|
331
|
-
"name": "
|
451
|
+
"name": "",
|
332
452
|
"type": "uint24"
|
333
453
|
}
|
334
454
|
],
|
335
|
-
"stateMutability": "
|
336
|
-
"type": "function"
|
337
|
-
},
|
338
|
-
{
|
339
|
-
"inputs": [],
|
340
|
-
"name": "getVersionCount",
|
341
|
-
"outputs": [
|
342
|
-
{
|
343
|
-
"internalType": "uint256",
|
344
|
-
"name": "numberOfVersions",
|
345
|
-
"type": "uint256"
|
346
|
-
}
|
347
|
-
],
|
348
|
-
"stateMutability": "view",
|
455
|
+
"stateMutability": "pure",
|
349
456
|
"type": "function"
|
350
457
|
},
|
351
458
|
{
|
352
459
|
"inputs": [
|
353
460
|
{
|
354
|
-
"internalType": "
|
355
|
-
"name": "
|
356
|
-
"type": "
|
357
|
-
}
|
358
|
-
],
|
359
|
-
"name": "getVersionInfo",
|
360
|
-
"outputs": [
|
461
|
+
"internalType": "contract IInstance",
|
462
|
+
"name": "instance",
|
463
|
+
"type": "address"
|
464
|
+
},
|
361
465
|
{
|
362
|
-
"
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
"name": "implementation",
|
371
|
-
"type": "address"
|
372
|
-
},
|
373
|
-
{
|
374
|
-
"internalType": "address",
|
375
|
-
"name": "activatedBy",
|
376
|
-
"type": "address"
|
377
|
-
},
|
378
|
-
{
|
379
|
-
"internalType": "Timestamp",
|
380
|
-
"name": "activatedAt",
|
381
|
-
"type": "uint40"
|
382
|
-
},
|
383
|
-
{
|
384
|
-
"internalType": "Blocknumber",
|
385
|
-
"name": "activatedIn",
|
386
|
-
"type": "uint32"
|
387
|
-
}
|
388
|
-
],
|
389
|
-
"internalType": "struct IVersionable.VersionInfo",
|
390
|
-
"name": "versionInfo",
|
391
|
-
"type": "tuple"
|
466
|
+
"internalType": "NftId",
|
467
|
+
"name": "bundleNftId",
|
468
|
+
"type": "uint96"
|
469
|
+
},
|
470
|
+
{
|
471
|
+
"internalType": "uint256",
|
472
|
+
"name": "amount",
|
473
|
+
"type": "uint256"
|
392
474
|
}
|
393
475
|
],
|
394
|
-
"
|
476
|
+
"name": "increaseBalance",
|
477
|
+
"outputs": [],
|
478
|
+
"stateMutability": "nonpayable",
|
395
479
|
"type": "function"
|
396
480
|
},
|
397
481
|
{
|
398
482
|
"inputs": [
|
399
|
-
{
|
400
|
-
"internalType": "address",
|
401
|
-
"name": "implementation",
|
402
|
-
"type": "address"
|
403
|
-
},
|
404
483
|
{
|
405
484
|
"internalType": "address",
|
406
485
|
"name": "activatedBy",
|
@@ -412,25 +491,19 @@
|
|
412
491
|
"type": "bytes"
|
413
492
|
}
|
414
493
|
],
|
415
|
-
"name": "
|
494
|
+
"name": "initializeVersionable",
|
416
495
|
"outputs": [],
|
417
496
|
"stateMutability": "nonpayable",
|
418
497
|
"type": "function"
|
419
498
|
},
|
420
499
|
{
|
421
|
-
"inputs": [
|
422
|
-
|
423
|
-
"internalType": "Version",
|
424
|
-
"name": "version",
|
425
|
-
"type": "uint24"
|
426
|
-
}
|
427
|
-
],
|
428
|
-
"name": "isInitialized",
|
500
|
+
"inputs": [],
|
501
|
+
"name": "isConsumingScheduledOp",
|
429
502
|
"outputs": [
|
430
503
|
{
|
431
|
-
"internalType": "
|
504
|
+
"internalType": "bytes4",
|
432
505
|
"name": "",
|
433
|
-
"type": "
|
506
|
+
"type": "bytes4"
|
434
507
|
}
|
435
508
|
],
|
436
509
|
"stateMutability": "view",
|
@@ -451,65 +524,49 @@
|
|
451
524
|
"type": "uint96"
|
452
525
|
}
|
453
526
|
],
|
454
|
-
"name": "
|
527
|
+
"name": "lock",
|
455
528
|
"outputs": [],
|
456
529
|
"stateMutability": "nonpayable",
|
457
530
|
"type": "function"
|
458
531
|
},
|
459
532
|
{
|
460
533
|
"inputs": [
|
534
|
+
{
|
535
|
+
"internalType": "contract IInstance",
|
536
|
+
"name": "instanceNftId",
|
537
|
+
"type": "address"
|
538
|
+
},
|
539
|
+
{
|
540
|
+
"internalType": "NftId",
|
541
|
+
"name": "policyNftId",
|
542
|
+
"type": "uint96"
|
543
|
+
},
|
461
544
|
{
|
462
545
|
"internalType": "NftId",
|
463
546
|
"name": "bundleNftId",
|
464
547
|
"type": "uint96"
|
465
548
|
},
|
466
549
|
{
|
467
|
-
"
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
"name": "fixedFee",
|
476
|
-
"type": "uint256"
|
477
|
-
}
|
478
|
-
],
|
479
|
-
"internalType": "struct Fee",
|
480
|
-
"name": "fee",
|
481
|
-
"type": "tuple"
|
550
|
+
"internalType": "uint256",
|
551
|
+
"name": "collateralAmount",
|
552
|
+
"type": "uint256"
|
553
|
+
},
|
554
|
+
{
|
555
|
+
"internalType": "uint256",
|
556
|
+
"name": "premium",
|
557
|
+
"type": "uint256"
|
482
558
|
}
|
483
559
|
],
|
484
|
-
"name": "
|
560
|
+
"name": "lockCollateral",
|
485
561
|
"outputs": [],
|
486
562
|
"stateMutability": "nonpayable",
|
487
563
|
"type": "function"
|
488
564
|
},
|
489
|
-
{
|
490
|
-
"inputs": [
|
491
|
-
{
|
492
|
-
"internalType": "bytes4",
|
493
|
-
"name": "interfaceId",
|
494
|
-
"type": "bytes4"
|
495
|
-
}
|
496
|
-
],
|
497
|
-
"name": "supportsInterface",
|
498
|
-
"outputs": [
|
499
|
-
{
|
500
|
-
"internalType": "bool",
|
501
|
-
"name": "",
|
502
|
-
"type": "bool"
|
503
|
-
}
|
504
|
-
],
|
505
|
-
"stateMutability": "view",
|
506
|
-
"type": "function"
|
507
|
-
},
|
508
565
|
{
|
509
566
|
"inputs": [
|
510
567
|
{
|
511
568
|
"internalType": "contract IInstance",
|
512
|
-
"name": "
|
569
|
+
"name": "instance",
|
513
570
|
"type": "address"
|
514
571
|
},
|
515
572
|
{
|
@@ -526,14 +583,9 @@
|
|
526
583
|
"internalType": "uint256",
|
527
584
|
"name": "collateralAmount",
|
528
585
|
"type": "uint256"
|
529
|
-
},
|
530
|
-
{
|
531
|
-
"internalType": "uint256",
|
532
|
-
"name": "netPremium",
|
533
|
-
"type": "uint256"
|
534
586
|
}
|
535
587
|
],
|
536
|
-
"name": "
|
588
|
+
"name": "releaseCollateral",
|
537
589
|
"outputs": [],
|
538
590
|
"stateMutability": "nonpayable",
|
539
591
|
"type": "function"
|
@@ -541,23 +593,18 @@
|
|
541
593
|
{
|
542
594
|
"inputs": [
|
543
595
|
{
|
544
|
-
"internalType": "
|
545
|
-
"name": "
|
546
|
-
"type": "
|
596
|
+
"internalType": "address",
|
597
|
+
"name": "",
|
598
|
+
"type": "address"
|
547
599
|
}
|
548
600
|
],
|
549
|
-
"name": "
|
601
|
+
"name": "setAuthority",
|
550
602
|
"outputs": [],
|
551
603
|
"stateMutability": "nonpayable",
|
552
604
|
"type": "function"
|
553
605
|
},
|
554
606
|
{
|
555
607
|
"inputs": [
|
556
|
-
{
|
557
|
-
"internalType": "NftId",
|
558
|
-
"name": "instanceNftId",
|
559
|
-
"type": "uint96"
|
560
|
-
},
|
561
608
|
{
|
562
609
|
"internalType": "NftId",
|
563
610
|
"name": "bundleNftId",
|
@@ -566,74 +613,22 @@
|
|
566
613
|
{
|
567
614
|
"components": [
|
568
615
|
{
|
569
|
-
"internalType": "
|
570
|
-
"name": "
|
571
|
-
"type": "uint96"
|
572
|
-
},
|
573
|
-
{
|
574
|
-
"components": [
|
575
|
-
{
|
576
|
-
"internalType": "UFixed",
|
577
|
-
"name": "fractionalFee",
|
578
|
-
"type": "uint256"
|
579
|
-
},
|
580
|
-
{
|
581
|
-
"internalType": "uint256",
|
582
|
-
"name": "fixedFee",
|
583
|
-
"type": "uint256"
|
584
|
-
}
|
585
|
-
],
|
586
|
-
"internalType": "struct Fee",
|
587
|
-
"name": "fee",
|
588
|
-
"type": "tuple"
|
589
|
-
},
|
590
|
-
{
|
591
|
-
"internalType": "bytes",
|
592
|
-
"name": "filter",
|
593
|
-
"type": "bytes"
|
594
|
-
},
|
595
|
-
{
|
596
|
-
"internalType": "uint256",
|
597
|
-
"name": "capitalAmount",
|
598
|
-
"type": "uint256"
|
599
|
-
},
|
600
|
-
{
|
601
|
-
"internalType": "uint256",
|
602
|
-
"name": "lockedAmount",
|
603
|
-
"type": "uint256"
|
604
|
-
},
|
605
|
-
{
|
606
|
-
"internalType": "uint256",
|
607
|
-
"name": "balanceAmount",
|
616
|
+
"internalType": "UFixed",
|
617
|
+
"name": "fractionalFee",
|
608
618
|
"type": "uint256"
|
609
619
|
},
|
610
620
|
{
|
611
621
|
"internalType": "uint256",
|
612
|
-
"name": "
|
622
|
+
"name": "fixedFee",
|
613
623
|
"type": "uint256"
|
614
|
-
},
|
615
|
-
{
|
616
|
-
"internalType": "Timestamp",
|
617
|
-
"name": "expiredAt",
|
618
|
-
"type": "uint40"
|
619
|
-
},
|
620
|
-
{
|
621
|
-
"internalType": "Timestamp",
|
622
|
-
"name": "closedAt",
|
623
|
-
"type": "uint40"
|
624
624
|
}
|
625
625
|
],
|
626
|
-
"internalType": "struct
|
627
|
-
"name": "
|
626
|
+
"internalType": "struct Fee",
|
627
|
+
"name": "fee",
|
628
628
|
"type": "tuple"
|
629
|
-
},
|
630
|
-
{
|
631
|
-
"internalType": "StateId",
|
632
|
-
"name": "state",
|
633
|
-
"type": "uint8"
|
634
629
|
}
|
635
630
|
],
|
636
|
-
"name": "
|
631
|
+
"name": "setFee",
|
637
632
|
"outputs": [],
|
638
633
|
"stateMutability": "nonpayable",
|
639
634
|
"type": "function"
|
@@ -641,22 +636,44 @@
|
|
641
636
|
{
|
642
637
|
"inputs": [
|
643
638
|
{
|
644
|
-
"internalType": "
|
645
|
-
"name": "
|
646
|
-
"type": "
|
647
|
-
}
|
639
|
+
"internalType": "bytes4",
|
640
|
+
"name": "interfaceId",
|
641
|
+
"type": "bytes4"
|
642
|
+
}
|
643
|
+
],
|
644
|
+
"name": "supportsInterface",
|
645
|
+
"outputs": [
|
648
646
|
{
|
649
|
-
"internalType": "
|
650
|
-
"name": "
|
651
|
-
"type": "
|
652
|
-
}
|
647
|
+
"internalType": "bool",
|
648
|
+
"name": "",
|
649
|
+
"type": "bool"
|
650
|
+
}
|
651
|
+
],
|
652
|
+
"stateMutability": "view",
|
653
|
+
"type": "function"
|
654
|
+
},
|
655
|
+
{
|
656
|
+
"inputs": [
|
657
|
+
{
|
658
|
+
"internalType": "NftId",
|
659
|
+
"name": "bundleNftId",
|
660
|
+
"type": "uint96"
|
661
|
+
}
|
662
|
+
],
|
663
|
+
"name": "unlock",
|
664
|
+
"outputs": [],
|
665
|
+
"stateMutability": "nonpayable",
|
666
|
+
"type": "function"
|
667
|
+
},
|
668
|
+
{
|
669
|
+
"inputs": [
|
653
670
|
{
|
654
671
|
"internalType": "bytes",
|
655
672
|
"name": "upgradeData",
|
656
673
|
"type": "bytes"
|
657
674
|
}
|
658
675
|
],
|
659
|
-
"name": "
|
676
|
+
"name": "upgradeVersionable",
|
660
677
|
"outputs": [],
|
661
678
|
"stateMutability": "nonpayable",
|
662
679
|
"type": "function"
|