@etherisc/gif-next 0.0.2-299fe4a-464 → 0.0.2-2a0a7d0-893
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 +255 -8
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
- package/artifacts/contracts/{registry/IChainNft.sol/IChainNft.json → components/Component.sol/Component.json} +275 -229
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +691 -0
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IComponent.sol/IComponent.json +413 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +152 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +90 -171
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +55 -177
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +539 -68
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +558 -72
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +4 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +66 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +4 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +24 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +4 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +42 -0
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Require.sol/Require.json +2 -2
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +2 -2
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/A.json +2 -2
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +2 -2
- package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +2 -2
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +2 -2
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +764 -0
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +185 -0
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1132 -1182
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +570 -0
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +1895 -1226
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +1034 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1381 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +956 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +460 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +595 -0
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +100 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +429 -0
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
- package/artifacts/contracts/instance/{module/lifecycle/ILifecycle.sol/ILifecycleModule.json → base/ILifecycle.sol/ILifecycle.json} +10 -77
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +502 -0
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +254 -0
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.json +10 -0
- package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
- package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{access/IAccess.sol/IAccess.json → IRisk.sol/IRisk.json} +2 -2
- package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{pool/IPoolModule.sol/IPool.json → ISetup.sol/ISetup.json} +2 -2
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1094 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +436 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +764 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +424 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +720 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/{IService.sol/IService.json → IDistributionService.sol/IDistributionService.json} +211 -65
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +771 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +205 -82
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +214 -155
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1219 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +492 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +413 -114
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +424 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +391 -228
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +424 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +186 -12
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +455 -36
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +981 -0
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +465 -111
- 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 +4 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1187 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +451 -0
- 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 +4 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +381 -0
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
- package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +127 -0
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +117 -37
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
- package/artifacts/contracts/{instance/service/IComponentOwnerService.sol/IComponentOwnerService.json → shared/IService.sol/IService.json} +179 -122
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +60 -19
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +158 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +349 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +190 -37
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
- package/artifacts/contracts/{instance/InstanceBase.sol/InstanceBase.json → shared/Service.sol/Service.json} +228 -73
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
- package/artifacts/contracts/shared/Versionable.sol/Versionable.json +83 -19
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
- package/artifacts/contracts/test/TestFee.sol/TestFee.json +30 -6
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +204 -36
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +44 -10
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +283 -90
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +14 -18
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +106 -50
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
- package/artifacts/contracts/test/Usdc.sol/USDC.json +376 -0
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +2 -2
- 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/ChainId.sol/ChainIdLib.json +2 -2
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +4 -0
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +257 -0
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +125 -0
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +65 -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 +4 -0
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
- 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/Referral.sol/ReferralLib.dbg.json +4 -0
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +156 -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 +15 -2
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
- package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +479 -0
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.json +101 -2
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
- package/contracts/components/Component.sol +177 -0
- package/contracts/components/Distribution.sol +154 -0
- package/contracts/components/IComponent.sol +37 -0
- package/contracts/components/IDistributionComponent.sol +44 -0
- package/contracts/components/IPoolComponent.sol +19 -10
- package/contracts/components/IProductComponent.sol +25 -9
- package/contracts/components/Pool.sol +134 -50
- package/contracts/components/Product.sol +218 -40
- package/contracts/experiment/cloning/Cloner.sol +47 -0
- package/contracts/instance/BundleManager.sol +125 -0
- package/contracts/instance/Cloneable.sol +46 -0
- package/contracts/instance/IInstance.sol +55 -39
- package/contracts/instance/IInstanceService.sol +40 -0
- package/contracts/instance/Instance.sol +238 -47
- package/contracts/instance/InstanceAccessManager.sol +298 -0
- package/contracts/instance/InstanceReader.sol +293 -0
- package/contracts/instance/InstanceService.sol +362 -0
- package/contracts/instance/InstanceServiceManager.sol +54 -0
- package/contracts/instance/ObjectManager.sol +84 -0
- package/contracts/instance/base/ComponentService.sol +133 -0
- package/contracts/instance/base/IInstanceBase.sol +21 -0
- package/contracts/instance/base/IKeyValueStore.sol +49 -0
- package/contracts/instance/base/ILifecycle.sol +30 -0
- package/contracts/instance/base/KeyValueStore.sol +172 -0
- package/contracts/instance/{module/lifecycle/LifecycleModule.sol → base/Lifecycle.sol} +51 -40
- package/contracts/instance/module/IAccess.sol +48 -0
- package/contracts/instance/module/IBundle.sol +20 -0
- package/contracts/instance/module/IDistribution.sol +39 -0
- package/contracts/instance/module/IPolicy.sol +45 -0
- package/contracts/instance/module/IRisk.sol +11 -0
- package/contracts/instance/module/ISetup.sol +46 -0
- package/contracts/instance/module/ITreasury.sol +23 -0
- package/contracts/instance/service/BundleService.sol +293 -0
- package/contracts/instance/service/BundleServiceManager.sol +51 -0
- package/contracts/instance/service/DistributionService.sol +115 -0
- package/contracts/instance/service/DistributionServiceManager.sol +51 -0
- package/contracts/instance/service/IBundleService.sol +44 -0
- package/contracts/instance/service/IDistributionService.sol +12 -0
- package/contracts/instance/service/IPolicyService.sol +94 -0
- package/contracts/instance/service/IPoolService.sol +8 -18
- package/contracts/instance/service/IProductService.sol +21 -39
- package/contracts/instance/service/PolicyService.sol +538 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +110 -66
- package/contracts/instance/service/PoolServiceManager.sol +51 -0
- package/contracts/instance/service/ProductService.sol +178 -295
- package/contracts/instance/service/ProductServiceManager.sol +54 -0
- package/contracts/registry/ChainNft.sol +79 -36
- package/contracts/registry/IRegistry.sol +65 -24
- package/contracts/registry/IRegistryService.sol +57 -0
- package/contracts/registry/ITransferInterceptor.sol +6 -0
- package/contracts/registry/Registry.sol +358 -287
- package/contracts/registry/RegistryAccessManager.sol +216 -0
- package/contracts/registry/RegistryService.sol +312 -0
- package/contracts/registry/RegistryServiceManager.sol +62 -0
- package/contracts/registry/ReleaseManager.sol +352 -0
- package/contracts/registry/TokenRegistry.sol +112 -0
- package/contracts/shared/ContractDeployerLib.sol +72 -0
- package/contracts/shared/ERC165.sol +6 -2
- package/contracts/shared/INftOwnable.sol +22 -0
- package/contracts/shared/IRegisterable.sol +8 -17
- package/contracts/shared/IService.sol +16 -0
- package/contracts/shared/IVersionable.sol +56 -12
- package/contracts/shared/NftOwnable.sol +136 -0
- package/contracts/shared/ProxyManager.sol +94 -0
- package/contracts/shared/Registerable.sol +63 -59
- package/contracts/shared/Service.sol +60 -0
- package/contracts/shared/TokenHandler.sol +27 -0
- package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
- package/contracts/shared/Versionable.sol +112 -57
- package/contracts/test/TestFee.sol +4 -4
- package/contracts/test/TestRegisterable.sol +5 -6
- package/contracts/test/TestRoleId.sol +2 -2
- package/contracts/test/TestService.sol +8 -18
- package/contracts/test/TestVersion.sol +4 -7
- package/contracts/test/TestVersionable.sol +2 -5
- package/contracts/test/Usdc.sol +26 -0
- package/contracts/types/DistributorType.sol +55 -0
- package/contracts/types/Fee.sol +44 -20
- package/contracts/types/Key32.sol +50 -0
- package/contracts/types/NftId.sol +16 -1
- package/contracts/types/NftIdSet.sol +26 -24
- package/contracts/types/NumberId.sol +52 -0
- package/contracts/types/ObjectType.sol +51 -14
- package/contracts/types/Referral.sol +85 -0
- package/contracts/types/RiskId.sol +43 -0
- package/contracts/types/RoleId.sol +65 -11
- package/contracts/types/StateId.sol +12 -2
- package/contracts/types/Timestamp.sol +7 -3
- package/contracts/types/UFixed.sol +144 -25
- package/contracts/types/Version.sol +42 -26
- package/package.json +7 -3
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -174
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -174
- package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
- package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
- package/artifacts/contracts/instance/IServiceLinked.sol/IServiceLinked.dbg.json +0 -4
- package/artifacts/contracts/instance/IServiceLinked.sol/IServiceLinked.json +0 -50
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -276
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -276
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +0 -188
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +0 -188
- package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycle.dbg.json +0 -4
- package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycle.json +0 -134
- package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycleModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/lifecycle/LifecycleModule.sol/LifecycleModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/lifecycle/LifecycleModule.sol/LifecycleModule.json +0 -221
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -261
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -261
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -149
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -149
- package/artifacts/contracts/instance/module/product/IProductModule.sol/IProductModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/product/IProductModule.sol/IProductModule.json +0 -10
- package/artifacts/contracts/instance/module/product/ProductModule.sol/ProductModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/product/ProductModule.sol/ProductModule.json +0 -10
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -538
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -538
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -519
- package/artifacts/contracts/instance/service/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ComponentServiceBase.sol/ComponentServiceBase.json +0 -300
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/IService.sol/IService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ServiceBase.sol/ServiceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ServiceBase.sol/ServiceBase.json +0 -300
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
- package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
- package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
- package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
- package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -387
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -393
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +0 -453
- package/contracts/components/BaseComponent.sol +0 -89
- package/contracts/components/IBaseComponent.sol +0 -19
- package/contracts/experiment/statemachine/README.md +0 -112
- package/contracts/instance/IInstanceLinked.sol +0 -8
- package/contracts/instance/IServiceLinked.sol +0 -12
- package/contracts/instance/InstanceBase.sol +0 -74
- package/contracts/instance/module/access/Access.sol +0 -149
- package/contracts/instance/module/access/IAccess.sol +0 -53
- package/contracts/instance/module/bundle/BundleModule.sol +0 -228
- package/contracts/instance/module/bundle/IBundle.sol +0 -53
- package/contracts/instance/module/component/ComponentModule.sol +0 -104
- package/contracts/instance/module/component/IComponent.sol +0 -53
- package/contracts/instance/module/lifecycle/ILifecycle.sol +0 -47
- package/contracts/instance/module/policy/IPolicy.sol +0 -60
- package/contracts/instance/module/policy/PolicyModule.sol +0 -84
- package/contracts/instance/module/pool/IPoolModule.sol +0 -41
- package/contracts/instance/module/pool/PoolModule.sol +0 -87
- package/contracts/instance/module/product/IProductModule.sol +0 -6
- package/contracts/instance/module/product/ProductModule.sol +0 -8
- package/contracts/instance/module/treasury/ITreasury.sol +0 -104
- package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
- package/contracts/instance/module/treasury/TreasuryModule.sol +0 -148
- package/contracts/instance/service/ComponentOwnerService.sol +0 -174
- package/contracts/instance/service/ComponentServiceBase.sol +0 -41
- package/contracts/instance/service/IComponentOwnerService.sol +0 -22
- package/contracts/instance/service/IService.sol +0 -15
- package/contracts/instance/service/ServiceBase.sol +0 -39
- package/contracts/registry/IChainNft.sol +0 -21
- package/contracts/registry/IRegistryLinked.sol +0 -8
- package/contracts/shared/IOwnable.sol +0 -6
- package/contracts/test/TestPool.sol +0 -22
- package/contracts/test/TestProduct.sol +0 -44
|
@@ -5,11 +5,71 @@
|
|
|
5
5
|
"abi": [
|
|
6
6
|
{
|
|
7
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": "registry",
|
|
49
|
+
"type": "address"
|
|
50
|
+
},
|
|
8
51
|
{
|
|
9
52
|
"internalType": "NftId",
|
|
10
53
|
"name": "nftId",
|
|
11
54
|
"type": "uint96"
|
|
12
|
-
}
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"name": "ErrorAlreadyLinked",
|
|
58
|
+
"type": "error"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"inputs": [
|
|
62
|
+
{
|
|
63
|
+
"internalType": "address",
|
|
64
|
+
"name": "contractAddress",
|
|
65
|
+
"type": "address"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"name": "ErrorContractNotRegistered",
|
|
69
|
+
"type": "error"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"inputs": [
|
|
13
73
|
{
|
|
14
74
|
"internalType": "ObjectType",
|
|
15
75
|
"name": "objectType",
|
|
@@ -46,66 +106,59 @@
|
|
|
46
106
|
"type": "error"
|
|
47
107
|
},
|
|
48
108
|
{
|
|
49
|
-
"anonymous": false,
|
|
50
109
|
"inputs": [
|
|
51
110
|
{
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"type": "bytes8"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"indexed": false,
|
|
59
|
-
"internalType": "string",
|
|
60
|
-
"name": "roleName",
|
|
61
|
-
"type": "string"
|
|
111
|
+
"internalType": "address",
|
|
112
|
+
"name": "account",
|
|
113
|
+
"type": "address"
|
|
62
114
|
}
|
|
63
115
|
],
|
|
64
|
-
"name": "
|
|
65
|
-
"type": "
|
|
116
|
+
"name": "ErrorNotOwner",
|
|
117
|
+
"type": "error"
|
|
66
118
|
},
|
|
67
119
|
{
|
|
68
|
-
"anonymous": false,
|
|
69
120
|
"inputs": [
|
|
70
121
|
{
|
|
71
|
-
"indexed": false,
|
|
72
|
-
"internalType": "RoleId",
|
|
73
|
-
"name": "role",
|
|
74
|
-
"type": "bytes8"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"indexed": false,
|
|
78
122
|
"internalType": "address",
|
|
79
|
-
"name": "
|
|
123
|
+
"name": "registryAddress",
|
|
80
124
|
"type": "address"
|
|
81
|
-
}
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"name": "ErrorNotRegistry",
|
|
128
|
+
"type": "error"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"inputs": [],
|
|
132
|
+
"name": "ErrorRegistryAddressZero",
|
|
133
|
+
"type": "error"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"inputs": [
|
|
82
137
|
{
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"type": "bool"
|
|
138
|
+
"internalType": "address",
|
|
139
|
+
"name": "registry",
|
|
140
|
+
"type": "address"
|
|
87
141
|
}
|
|
88
142
|
],
|
|
89
|
-
"name": "
|
|
90
|
-
"type": "
|
|
143
|
+
"name": "ErrorRegistryAlreadyInitialized",
|
|
144
|
+
"type": "error"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"inputs": [],
|
|
148
|
+
"name": "ErrorRegistryNotInitialized",
|
|
149
|
+
"type": "error"
|
|
91
150
|
},
|
|
92
151
|
{
|
|
93
152
|
"anonymous": false,
|
|
94
153
|
"inputs": [
|
|
95
154
|
{
|
|
96
155
|
"indexed": false,
|
|
97
|
-
"internalType": "
|
|
98
|
-
"name": "
|
|
99
|
-
"type": "
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"indexed": false,
|
|
103
|
-
"internalType": "bool",
|
|
104
|
-
"name": "active",
|
|
105
|
-
"type": "bool"
|
|
156
|
+
"internalType": "address",
|
|
157
|
+
"name": "authority",
|
|
158
|
+
"type": "address"
|
|
106
159
|
}
|
|
107
160
|
],
|
|
108
|
-
"name": "
|
|
161
|
+
"name": "AuthorityUpdated",
|
|
109
162
|
"type": "event"
|
|
110
163
|
},
|
|
111
164
|
{
|
|
@@ -113,35 +166,41 @@
|
|
|
113
166
|
"inputs": [
|
|
114
167
|
{
|
|
115
168
|
"indexed": false,
|
|
116
|
-
"internalType": "
|
|
117
|
-
"name": "
|
|
118
|
-
"type": "
|
|
169
|
+
"internalType": "ObjectType",
|
|
170
|
+
"name": "objectType",
|
|
171
|
+
"type": "uint8"
|
|
119
172
|
},
|
|
120
173
|
{
|
|
121
174
|
"indexed": false,
|
|
122
|
-
"internalType": "
|
|
123
|
-
"name": "
|
|
124
|
-
"type": "
|
|
175
|
+
"internalType": "KeyId",
|
|
176
|
+
"name": "keyId",
|
|
177
|
+
"type": "bytes31"
|
|
125
178
|
},
|
|
126
179
|
{
|
|
127
180
|
"indexed": false,
|
|
128
181
|
"internalType": "StateId",
|
|
129
|
-
"name": "
|
|
182
|
+
"name": "state",
|
|
130
183
|
"type": "uint8"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"indexed": false,
|
|
187
|
+
"internalType": "address",
|
|
188
|
+
"name": "createdBy",
|
|
189
|
+
"type": "address"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"indexed": false,
|
|
193
|
+
"internalType": "address",
|
|
194
|
+
"name": "txOrigin",
|
|
195
|
+
"type": "address"
|
|
131
196
|
}
|
|
132
197
|
],
|
|
133
|
-
"name": "
|
|
198
|
+
"name": "LogInfoCreated",
|
|
134
199
|
"type": "event"
|
|
135
200
|
},
|
|
136
201
|
{
|
|
137
202
|
"anonymous": false,
|
|
138
203
|
"inputs": [
|
|
139
|
-
{
|
|
140
|
-
"indexed": false,
|
|
141
|
-
"internalType": "NftId",
|
|
142
|
-
"name": "nftId",
|
|
143
|
-
"type": "uint96"
|
|
144
|
-
},
|
|
145
204
|
{
|
|
146
205
|
"indexed": false,
|
|
147
206
|
"internalType": "ObjectType",
|
|
@@ -150,18 +209,36 @@
|
|
|
150
209
|
},
|
|
151
210
|
{
|
|
152
211
|
"indexed": false,
|
|
153
|
-
"internalType": "
|
|
154
|
-
"name": "
|
|
155
|
-
"type": "
|
|
212
|
+
"internalType": "KeyId",
|
|
213
|
+
"name": "keyId",
|
|
214
|
+
"type": "bytes31"
|
|
156
215
|
},
|
|
157
216
|
{
|
|
158
217
|
"indexed": false,
|
|
159
218
|
"internalType": "StateId",
|
|
160
|
-
"name": "
|
|
219
|
+
"name": "state",
|
|
161
220
|
"type": "uint8"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"indexed": false,
|
|
224
|
+
"internalType": "address",
|
|
225
|
+
"name": "updatedBy",
|
|
226
|
+
"type": "address"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"indexed": false,
|
|
230
|
+
"internalType": "address",
|
|
231
|
+
"name": "txOrigin",
|
|
232
|
+
"type": "address"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"indexed": false,
|
|
236
|
+
"internalType": "Blocknumber",
|
|
237
|
+
"name": "lastUpdatedIn",
|
|
238
|
+
"type": "uint32"
|
|
162
239
|
}
|
|
163
240
|
],
|
|
164
|
-
"name": "
|
|
241
|
+
"name": "LogInfoUpdated",
|
|
165
242
|
"type": "event"
|
|
166
243
|
},
|
|
167
244
|
{
|
|
@@ -169,67 +246,61 @@
|
|
|
169
246
|
"inputs": [
|
|
170
247
|
{
|
|
171
248
|
"indexed": false,
|
|
172
|
-
"internalType": "
|
|
173
|
-
"name": "
|
|
174
|
-
"type": "
|
|
249
|
+
"internalType": "ObjectType",
|
|
250
|
+
"name": "objectType",
|
|
251
|
+
"type": "uint8"
|
|
175
252
|
},
|
|
176
253
|
{
|
|
177
254
|
"indexed": false,
|
|
178
|
-
"internalType": "
|
|
179
|
-
"name": "
|
|
180
|
-
"type": "
|
|
255
|
+
"internalType": "KeyId",
|
|
256
|
+
"name": "keyId",
|
|
257
|
+
"type": "bytes31"
|
|
181
258
|
},
|
|
182
259
|
{
|
|
183
260
|
"indexed": false,
|
|
184
261
|
"internalType": "StateId",
|
|
185
|
-
"name": "
|
|
262
|
+
"name": "stateOld",
|
|
186
263
|
"type": "uint8"
|
|
187
|
-
}
|
|
188
|
-
],
|
|
189
|
-
"name": "LogPolicyStateChanged",
|
|
190
|
-
"type": "event"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"anonymous": false,
|
|
194
|
-
"inputs": [
|
|
264
|
+
},
|
|
195
265
|
{
|
|
196
266
|
"indexed": false,
|
|
197
|
-
"internalType": "
|
|
198
|
-
"name": "
|
|
199
|
-
"type": "
|
|
267
|
+
"internalType": "StateId",
|
|
268
|
+
"name": "stateNew",
|
|
269
|
+
"type": "uint8"
|
|
200
270
|
},
|
|
201
271
|
{
|
|
202
272
|
"indexed": false,
|
|
203
273
|
"internalType": "address",
|
|
204
|
-
"name": "
|
|
274
|
+
"name": "updatedBy",
|
|
205
275
|
"type": "address"
|
|
206
276
|
},
|
|
207
277
|
{
|
|
208
278
|
"indexed": false,
|
|
209
279
|
"internalType": "address",
|
|
210
|
-
"name": "
|
|
280
|
+
"name": "txOrigin",
|
|
211
281
|
"type": "address"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"indexed": false,
|
|
285
|
+
"internalType": "Blocknumber",
|
|
286
|
+
"name": "lastUpdatedIn",
|
|
287
|
+
"type": "uint32"
|
|
212
288
|
}
|
|
213
289
|
],
|
|
214
|
-
"name": "
|
|
290
|
+
"name": "LogStateUpdated",
|
|
215
291
|
"type": "event"
|
|
216
292
|
},
|
|
217
293
|
{
|
|
218
|
-
"inputs": [
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
"name": "implementation",
|
|
222
|
-
"type": "address"
|
|
223
|
-
},
|
|
294
|
+
"inputs": [],
|
|
295
|
+
"name": "authority",
|
|
296
|
+
"outputs": [
|
|
224
297
|
{
|
|
225
298
|
"internalType": "address",
|
|
226
|
-
"name": "
|
|
299
|
+
"name": "",
|
|
227
300
|
"type": "address"
|
|
228
301
|
}
|
|
229
302
|
],
|
|
230
|
-
"
|
|
231
|
-
"outputs": [],
|
|
232
|
-
"stateMutability": "nonpayable",
|
|
303
|
+
"stateMutability": "view",
|
|
233
304
|
"type": "function"
|
|
234
305
|
},
|
|
235
306
|
{
|
|
@@ -239,500 +310,142 @@
|
|
|
239
310
|
"name": "bundleNftId",
|
|
240
311
|
"type": "uint96"
|
|
241
312
|
},
|
|
242
|
-
{
|
|
243
|
-
"internalType": "NftId",
|
|
244
|
-
"name": "poolNftId",
|
|
245
|
-
"type": "uint96"
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
"internalType": "uint256",
|
|
249
|
-
"name": "amount",
|
|
250
|
-
"type": "uint256"
|
|
251
|
-
}
|
|
252
|
-
],
|
|
253
|
-
"name": "addBundleToPool",
|
|
254
|
-
"outputs": [],
|
|
255
|
-
"stateMutability": "nonpayable",
|
|
256
|
-
"type": "function"
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
"inputs": [
|
|
260
|
-
{
|
|
261
|
-
"internalType": "uint256",
|
|
262
|
-
"name": "amount",
|
|
263
|
-
"type": "uint256"
|
|
264
|
-
},
|
|
265
313
|
{
|
|
266
314
|
"components": [
|
|
267
315
|
{
|
|
268
|
-
"internalType": "
|
|
269
|
-
"name": "
|
|
316
|
+
"internalType": "NftId",
|
|
317
|
+
"name": "poolNftId",
|
|
318
|
+
"type": "uint96"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"components": [
|
|
322
|
+
{
|
|
323
|
+
"internalType": "UFixed",
|
|
324
|
+
"name": "fractionalFee",
|
|
325
|
+
"type": "uint256"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"internalType": "uint256",
|
|
329
|
+
"name": "fixedFee",
|
|
330
|
+
"type": "uint256"
|
|
331
|
+
}
|
|
332
|
+
],
|
|
333
|
+
"internalType": "struct Fee",
|
|
334
|
+
"name": "fee",
|
|
335
|
+
"type": "tuple"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"internalType": "bytes",
|
|
339
|
+
"name": "filter",
|
|
340
|
+
"type": "bytes"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"internalType": "uint256",
|
|
344
|
+
"name": "capitalAmount",
|
|
345
|
+
"type": "uint256"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"internalType": "uint256",
|
|
349
|
+
"name": "lockedAmount",
|
|
270
350
|
"type": "uint256"
|
|
271
351
|
},
|
|
272
352
|
{
|
|
273
353
|
"internalType": "uint256",
|
|
274
|
-
"name": "
|
|
354
|
+
"name": "balanceAmount",
|
|
355
|
+
"type": "uint256"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"internalType": "uint256",
|
|
359
|
+
"name": "lifetime",
|
|
275
360
|
"type": "uint256"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"internalType": "Timestamp",
|
|
364
|
+
"name": "expiredAt",
|
|
365
|
+
"type": "uint40"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"internalType": "Timestamp",
|
|
369
|
+
"name": "closedAt",
|
|
370
|
+
"type": "uint40"
|
|
276
371
|
}
|
|
277
372
|
],
|
|
278
|
-
"internalType": "struct
|
|
279
|
-
"name": "
|
|
373
|
+
"internalType": "struct IBundle.BundleInfo",
|
|
374
|
+
"name": "bundle",
|
|
280
375
|
"type": "tuple"
|
|
281
376
|
}
|
|
282
377
|
],
|
|
283
|
-
"name": "
|
|
284
|
-
"outputs": [
|
|
285
|
-
|
|
286
|
-
"internalType": "uint256",
|
|
287
|
-
"name": "feeAmount",
|
|
288
|
-
"type": "uint256"
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
"internalType": "uint256",
|
|
292
|
-
"name": "netAmount",
|
|
293
|
-
"type": "uint256"
|
|
294
|
-
}
|
|
295
|
-
],
|
|
296
|
-
"stateMutability": "pure",
|
|
378
|
+
"name": "createBundle",
|
|
379
|
+
"outputs": [],
|
|
380
|
+
"stateMutability": "nonpayable",
|
|
297
381
|
"type": "function"
|
|
298
382
|
},
|
|
299
383
|
{
|
|
300
384
|
"inputs": [
|
|
301
385
|
{
|
|
302
386
|
"internalType": "NftId",
|
|
303
|
-
"name": "
|
|
304
|
-
"type": "uint96"
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
"internalType": "NftId",
|
|
308
|
-
"name": "policyNftId",
|
|
387
|
+
"name": "distributionNftId",
|
|
309
388
|
"type": "uint96"
|
|
310
389
|
},
|
|
311
|
-
{
|
|
312
|
-
"internalType": "uint256",
|
|
313
|
-
"name": "amount",
|
|
314
|
-
"type": "uint256"
|
|
315
|
-
}
|
|
316
|
-
],
|
|
317
|
-
"name": "collateralizePolicy",
|
|
318
|
-
"outputs": [],
|
|
319
|
-
"stateMutability": "nonpayable",
|
|
320
|
-
"type": "function"
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
"inputs": [
|
|
324
|
-
{
|
|
325
|
-
"internalType": "NftId",
|
|
326
|
-
"name": "productNftId",
|
|
327
|
-
"type": "uint96"
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
"internalType": "NftId",
|
|
331
|
-
"name": "policyNftId",
|
|
332
|
-
"type": "uint96"
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
"internalType": "uint256",
|
|
336
|
-
"name": "sumInsuredAmount",
|
|
337
|
-
"type": "uint256"
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
"internalType": "uint256",
|
|
341
|
-
"name": "premiumAmount",
|
|
342
|
-
"type": "uint256"
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
"internalType": "uint256",
|
|
346
|
-
"name": "lifetime",
|
|
347
|
-
"type": "uint256"
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
"internalType": "NftId",
|
|
351
|
-
"name": "bundleNftId",
|
|
352
|
-
"type": "uint96"
|
|
353
|
-
}
|
|
354
|
-
],
|
|
355
|
-
"name": "createApplication",
|
|
356
|
-
"outputs": [],
|
|
357
|
-
"stateMutability": "nonpayable",
|
|
358
|
-
"type": "function"
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
"inputs": [
|
|
362
|
-
{
|
|
363
|
-
"internalType": "NftId",
|
|
364
|
-
"name": "bundleNftId",
|
|
365
|
-
"type": "uint96"
|
|
366
|
-
},
|
|
367
|
-
{
|
|
368
|
-
"internalType": "NftId",
|
|
369
|
-
"name": "poolNftId",
|
|
370
|
-
"type": "uint96"
|
|
371
|
-
},
|
|
372
|
-
{
|
|
373
|
-
"internalType": "uint256",
|
|
374
|
-
"name": "amount",
|
|
375
|
-
"type": "uint256"
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
"internalType": "uint256",
|
|
379
|
-
"name": "lifetime",
|
|
380
|
-
"type": "uint256"
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
"internalType": "bytes",
|
|
384
|
-
"name": "filter",
|
|
385
|
-
"type": "bytes"
|
|
386
|
-
}
|
|
387
|
-
],
|
|
388
|
-
"name": "createBundleInfo",
|
|
389
|
-
"outputs": [],
|
|
390
|
-
"stateMutability": "nonpayable",
|
|
391
|
-
"type": "function"
|
|
392
|
-
},
|
|
393
|
-
{
|
|
394
|
-
"inputs": [
|
|
395
|
-
{
|
|
396
|
-
"internalType": "string",
|
|
397
|
-
"name": "roleName",
|
|
398
|
-
"type": "string"
|
|
399
|
-
}
|
|
400
|
-
],
|
|
401
|
-
"name": "createRole",
|
|
402
|
-
"outputs": [
|
|
403
|
-
{
|
|
404
|
-
"internalType": "RoleId",
|
|
405
|
-
"name": "role",
|
|
406
|
-
"type": "bytes8"
|
|
407
|
-
}
|
|
408
|
-
],
|
|
409
|
-
"stateMutability": "nonpayable",
|
|
410
|
-
"type": "function"
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
"inputs": [
|
|
414
|
-
{
|
|
415
|
-
"internalType": "NftId",
|
|
416
|
-
"name": "poolNftId",
|
|
417
|
-
"type": "uint96"
|
|
418
|
-
}
|
|
419
|
-
],
|
|
420
|
-
"name": "getBundleCount",
|
|
421
|
-
"outputs": [
|
|
422
|
-
{
|
|
423
|
-
"internalType": "uint256",
|
|
424
|
-
"name": "bundleCount",
|
|
425
|
-
"type": "uint256"
|
|
426
|
-
}
|
|
427
|
-
],
|
|
428
|
-
"stateMutability": "view",
|
|
429
|
-
"type": "function"
|
|
430
|
-
},
|
|
431
|
-
{
|
|
432
|
-
"inputs": [
|
|
433
|
-
{
|
|
434
|
-
"internalType": "NftId",
|
|
435
|
-
"name": "bundleNftId",
|
|
436
|
-
"type": "uint96"
|
|
437
|
-
}
|
|
438
|
-
],
|
|
439
|
-
"name": "getBundleInfo",
|
|
440
|
-
"outputs": [
|
|
441
390
|
{
|
|
442
391
|
"components": [
|
|
443
392
|
{
|
|
444
393
|
"internalType": "NftId",
|
|
445
|
-
"name": "
|
|
446
|
-
"type": "uint96"
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
"internalType": "NftId",
|
|
450
|
-
"name": "poolNftId",
|
|
394
|
+
"name": "productNftId",
|
|
451
395
|
"type": "uint96"
|
|
452
396
|
},
|
|
453
397
|
{
|
|
454
|
-
"internalType": "
|
|
455
|
-
"name": "
|
|
456
|
-
"type": "
|
|
457
|
-
},
|
|
458
|
-
{
|
|
459
|
-
"internalType": "bytes",
|
|
460
|
-
"name": "filter",
|
|
461
|
-
"type": "bytes"
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
"internalType": "uint256",
|
|
465
|
-
"name": "capitalAmount",
|
|
466
|
-
"type": "uint256"
|
|
467
|
-
},
|
|
468
|
-
{
|
|
469
|
-
"internalType": "uint256",
|
|
470
|
-
"name": "lockedAmount",
|
|
471
|
-
"type": "uint256"
|
|
472
|
-
},
|
|
473
|
-
{
|
|
474
|
-
"internalType": "uint256",
|
|
475
|
-
"name": "balanceAmount",
|
|
476
|
-
"type": "uint256"
|
|
477
|
-
},
|
|
478
|
-
{
|
|
479
|
-
"internalType": "Timestamp",
|
|
480
|
-
"name": "createdAt",
|
|
481
|
-
"type": "uint40"
|
|
482
|
-
},
|
|
483
|
-
{
|
|
484
|
-
"internalType": "Timestamp",
|
|
485
|
-
"name": "expiredAt",
|
|
486
|
-
"type": "uint40"
|
|
487
|
-
},
|
|
488
|
-
{
|
|
489
|
-
"internalType": "Timestamp",
|
|
490
|
-
"name": "closedAt",
|
|
491
|
-
"type": "uint40"
|
|
398
|
+
"internalType": "contract TokenHandler",
|
|
399
|
+
"name": "tokenHandler",
|
|
400
|
+
"type": "address"
|
|
492
401
|
},
|
|
493
402
|
{
|
|
494
|
-
"
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
{
|
|
510
|
-
"internalType": "NftId",
|
|
511
|
-
"name": "poolNftId",
|
|
512
|
-
"type": "uint96"
|
|
513
|
-
},
|
|
514
|
-
{
|
|
515
|
-
"internalType": "uint256",
|
|
516
|
-
"name": "index",
|
|
517
|
-
"type": "uint256"
|
|
518
|
-
}
|
|
519
|
-
],
|
|
520
|
-
"name": "getBundleNftId",
|
|
521
|
-
"outputs": [
|
|
522
|
-
{
|
|
523
|
-
"internalType": "NftId",
|
|
524
|
-
"name": "bundleNftId",
|
|
525
|
-
"type": "uint96"
|
|
526
|
-
}
|
|
527
|
-
],
|
|
528
|
-
"stateMutability": "view",
|
|
529
|
-
"type": "function"
|
|
530
|
-
},
|
|
531
|
-
{
|
|
532
|
-
"inputs": [],
|
|
533
|
-
"name": "getComponentCount",
|
|
534
|
-
"outputs": [
|
|
535
|
-
{
|
|
536
|
-
"internalType": "uint256",
|
|
537
|
-
"name": "numberOfCompnents",
|
|
538
|
-
"type": "uint256"
|
|
539
|
-
}
|
|
540
|
-
],
|
|
541
|
-
"stateMutability": "view",
|
|
542
|
-
"type": "function"
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
"inputs": [
|
|
546
|
-
{
|
|
547
|
-
"internalType": "uint256",
|
|
548
|
-
"name": "idx",
|
|
549
|
-
"type": "uint256"
|
|
550
|
-
}
|
|
551
|
-
],
|
|
552
|
-
"name": "getComponentId",
|
|
553
|
-
"outputs": [
|
|
554
|
-
{
|
|
555
|
-
"internalType": "NftId",
|
|
556
|
-
"name": "nftId",
|
|
557
|
-
"type": "uint96"
|
|
558
|
-
}
|
|
559
|
-
],
|
|
560
|
-
"stateMutability": "view",
|
|
561
|
-
"type": "function"
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
"inputs": [
|
|
565
|
-
{
|
|
566
|
-
"internalType": "NftId",
|
|
567
|
-
"name": "nftId",
|
|
568
|
-
"type": "uint96"
|
|
569
|
-
}
|
|
570
|
-
],
|
|
571
|
-
"name": "getComponentInfo",
|
|
572
|
-
"outputs": [
|
|
573
|
-
{
|
|
574
|
-
"components": [
|
|
575
|
-
{
|
|
576
|
-
"internalType": "NftId",
|
|
577
|
-
"name": "nftId",
|
|
578
|
-
"type": "uint96"
|
|
403
|
+
"components": [
|
|
404
|
+
{
|
|
405
|
+
"internalType": "UFixed",
|
|
406
|
+
"name": "fractionalFee",
|
|
407
|
+
"type": "uint256"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"internalType": "uint256",
|
|
411
|
+
"name": "fixedFee",
|
|
412
|
+
"type": "uint256"
|
|
413
|
+
}
|
|
414
|
+
],
|
|
415
|
+
"internalType": "struct Fee",
|
|
416
|
+
"name": "distributionFee",
|
|
417
|
+
"type": "tuple"
|
|
579
418
|
},
|
|
580
419
|
{
|
|
581
|
-
"internalType": "
|
|
582
|
-
"name": "
|
|
583
|
-
"type": "
|
|
420
|
+
"internalType": "bool",
|
|
421
|
+
"name": "isIntercepting",
|
|
422
|
+
"type": "bool"
|
|
584
423
|
},
|
|
585
424
|
{
|
|
586
|
-
"internalType": "
|
|
587
|
-
"name": "
|
|
425
|
+
"internalType": "address",
|
|
426
|
+
"name": "wallet",
|
|
588
427
|
"type": "address"
|
|
589
428
|
}
|
|
590
429
|
],
|
|
591
|
-
"internalType": "struct
|
|
592
|
-
"name": "
|
|
593
|
-
"type": "tuple"
|
|
594
|
-
}
|
|
595
|
-
],
|
|
596
|
-
"stateMutability": "view",
|
|
597
|
-
"type": "function"
|
|
598
|
-
},
|
|
599
|
-
{
|
|
600
|
-
"inputs": [],
|
|
601
|
-
"name": "getComponentOwnerService",
|
|
602
|
-
"outputs": [
|
|
603
|
-
{
|
|
604
|
-
"internalType": "contract IComponentOwnerService",
|
|
605
|
-
"name": "",
|
|
606
|
-
"type": "address"
|
|
607
|
-
}
|
|
608
|
-
],
|
|
609
|
-
"stateMutability": "view",
|
|
610
|
-
"type": "function"
|
|
611
|
-
},
|
|
612
|
-
{
|
|
613
|
-
"inputs": [],
|
|
614
|
-
"name": "getData",
|
|
615
|
-
"outputs": [
|
|
616
|
-
{
|
|
617
|
-
"internalType": "bytes",
|
|
618
|
-
"name": "data",
|
|
619
|
-
"type": "bytes"
|
|
620
|
-
}
|
|
621
|
-
],
|
|
622
|
-
"stateMutability": "view",
|
|
623
|
-
"type": "function"
|
|
624
|
-
},
|
|
625
|
-
{
|
|
626
|
-
"inputs": [
|
|
627
|
-
{
|
|
628
|
-
"internalType": "UFixed",
|
|
629
|
-
"name": "fractionalFee",
|
|
630
|
-
"type": "uint256"
|
|
631
|
-
},
|
|
632
|
-
{
|
|
633
|
-
"internalType": "uint256",
|
|
634
|
-
"name": "fixedFee",
|
|
635
|
-
"type": "uint256"
|
|
636
|
-
}
|
|
637
|
-
],
|
|
638
|
-
"name": "getFee",
|
|
639
|
-
"outputs": [
|
|
640
|
-
{
|
|
641
|
-
"components": [
|
|
642
|
-
{
|
|
643
|
-
"internalType": "UFixed",
|
|
644
|
-
"name": "fractionalFee",
|
|
645
|
-
"type": "uint256"
|
|
646
|
-
},
|
|
647
|
-
{
|
|
648
|
-
"internalType": "uint256",
|
|
649
|
-
"name": "fixedFee",
|
|
650
|
-
"type": "uint256"
|
|
651
|
-
}
|
|
652
|
-
],
|
|
653
|
-
"internalType": "struct Fee",
|
|
654
|
-
"name": "fee",
|
|
430
|
+
"internalType": "struct ISetup.DistributionSetupInfo",
|
|
431
|
+
"name": "setup",
|
|
655
432
|
"type": "tuple"
|
|
656
433
|
}
|
|
657
434
|
],
|
|
658
|
-
"
|
|
659
|
-
"
|
|
660
|
-
|
|
661
|
-
{
|
|
662
|
-
"inputs": [
|
|
663
|
-
{
|
|
664
|
-
"internalType": "ObjectType",
|
|
665
|
-
"name": "objectType",
|
|
666
|
-
"type": "uint8"
|
|
667
|
-
}
|
|
668
|
-
],
|
|
669
|
-
"name": "getInitialState",
|
|
670
|
-
"outputs": [
|
|
671
|
-
{
|
|
672
|
-
"internalType": "StateId",
|
|
673
|
-
"name": "",
|
|
674
|
-
"type": "uint8"
|
|
675
|
-
}
|
|
676
|
-
],
|
|
677
|
-
"stateMutability": "view",
|
|
678
|
-
"type": "function"
|
|
679
|
-
},
|
|
680
|
-
{
|
|
681
|
-
"inputs": [],
|
|
682
|
-
"name": "getNftId",
|
|
683
|
-
"outputs": [
|
|
684
|
-
{
|
|
685
|
-
"internalType": "NftId",
|
|
686
|
-
"name": "nftId",
|
|
687
|
-
"type": "uint96"
|
|
688
|
-
}
|
|
689
|
-
],
|
|
690
|
-
"stateMutability": "view",
|
|
691
|
-
"type": "function"
|
|
692
|
-
},
|
|
693
|
-
{
|
|
694
|
-
"inputs": [],
|
|
695
|
-
"name": "getOwner",
|
|
696
|
-
"outputs": [
|
|
697
|
-
{
|
|
698
|
-
"internalType": "address",
|
|
699
|
-
"name": "owner",
|
|
700
|
-
"type": "address"
|
|
701
|
-
}
|
|
702
|
-
],
|
|
703
|
-
"stateMutability": "view",
|
|
704
|
-
"type": "function"
|
|
705
|
-
},
|
|
706
|
-
{
|
|
707
|
-
"inputs": [],
|
|
708
|
-
"name": "getParentNftId",
|
|
709
|
-
"outputs": [
|
|
710
|
-
{
|
|
711
|
-
"internalType": "NftId",
|
|
712
|
-
"name": "nftId",
|
|
713
|
-
"type": "uint96"
|
|
714
|
-
}
|
|
715
|
-
],
|
|
716
|
-
"stateMutability": "view",
|
|
435
|
+
"name": "createDistributionSetup",
|
|
436
|
+
"outputs": [],
|
|
437
|
+
"stateMutability": "nonpayable",
|
|
717
438
|
"type": "function"
|
|
718
439
|
},
|
|
719
440
|
{
|
|
720
441
|
"inputs": [
|
|
721
442
|
{
|
|
722
443
|
"internalType": "NftId",
|
|
723
|
-
"name": "
|
|
444
|
+
"name": "policyNftId",
|
|
724
445
|
"type": "uint96"
|
|
725
|
-
}
|
|
726
|
-
],
|
|
727
|
-
"name": "getPolicyInfo",
|
|
728
|
-
"outputs": [
|
|
446
|
+
},
|
|
729
447
|
{
|
|
730
448
|
"components": [
|
|
731
|
-
{
|
|
732
|
-
"internalType": "NftId",
|
|
733
|
-
"name": "nftId",
|
|
734
|
-
"type": "uint96"
|
|
735
|
-
},
|
|
736
449
|
{
|
|
737
450
|
"internalType": "NftId",
|
|
738
451
|
"name": "productNftId",
|
|
@@ -744,14 +457,14 @@
|
|
|
744
457
|
"type": "uint96"
|
|
745
458
|
},
|
|
746
459
|
{
|
|
747
|
-
"internalType": "
|
|
748
|
-
"name": "
|
|
749
|
-
"type": "
|
|
460
|
+
"internalType": "ReferralId",
|
|
461
|
+
"name": "referralId",
|
|
462
|
+
"type": "bytes8"
|
|
750
463
|
},
|
|
751
464
|
{
|
|
752
|
-
"internalType": "
|
|
753
|
-
"name": "
|
|
754
|
-
"type": "
|
|
465
|
+
"internalType": "RiskId",
|
|
466
|
+
"name": "riskId",
|
|
467
|
+
"type": "bytes8"
|
|
755
468
|
},
|
|
756
469
|
{
|
|
757
470
|
"internalType": "uint256",
|
|
@@ -775,13 +488,28 @@
|
|
|
775
488
|
},
|
|
776
489
|
{
|
|
777
490
|
"internalType": "bytes",
|
|
778
|
-
"name": "
|
|
491
|
+
"name": "applicationData",
|
|
779
492
|
"type": "bytes"
|
|
780
493
|
},
|
|
781
494
|
{
|
|
782
|
-
"internalType": "
|
|
783
|
-
"name": "
|
|
784
|
-
"type": "
|
|
495
|
+
"internalType": "bytes",
|
|
496
|
+
"name": "policyData",
|
|
497
|
+
"type": "bytes"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"internalType": "uint16",
|
|
501
|
+
"name": "claimsCount",
|
|
502
|
+
"type": "uint16"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"internalType": "uint16",
|
|
506
|
+
"name": "openClaimsCount",
|
|
507
|
+
"type": "uint16"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"internalType": "uint256",
|
|
511
|
+
"name": "payoutAmount",
|
|
512
|
+
"type": "uint256"
|
|
785
513
|
},
|
|
786
514
|
{
|
|
787
515
|
"internalType": "Timestamp",
|
|
@@ -797,91 +525,164 @@
|
|
|
797
525
|
"internalType": "Timestamp",
|
|
798
526
|
"name": "closedAt",
|
|
799
527
|
"type": "uint40"
|
|
800
|
-
},
|
|
801
|
-
{
|
|
802
|
-
"internalType": "Blocknumber",
|
|
803
|
-
"name": "updatedIn",
|
|
804
|
-
"type": "uint32"
|
|
805
528
|
}
|
|
806
529
|
],
|
|
807
530
|
"internalType": "struct IPolicy.PolicyInfo",
|
|
808
|
-
"name": "
|
|
531
|
+
"name": "policy",
|
|
809
532
|
"type": "tuple"
|
|
810
533
|
}
|
|
811
534
|
],
|
|
812
|
-
"
|
|
535
|
+
"name": "createPolicy",
|
|
536
|
+
"outputs": [],
|
|
537
|
+
"stateMutability": "nonpayable",
|
|
813
538
|
"type": "function"
|
|
814
539
|
},
|
|
815
540
|
{
|
|
816
541
|
"inputs": [
|
|
817
542
|
{
|
|
818
543
|
"internalType": "NftId",
|
|
819
|
-
"name": "
|
|
544
|
+
"name": "poolNftId",
|
|
820
545
|
"type": "uint96"
|
|
821
|
-
}
|
|
822
|
-
],
|
|
823
|
-
"name": "getPoolInfo",
|
|
824
|
-
"outputs": [
|
|
546
|
+
},
|
|
825
547
|
{
|
|
826
548
|
"components": [
|
|
827
549
|
{
|
|
828
550
|
"internalType": "NftId",
|
|
829
|
-
"name": "
|
|
551
|
+
"name": "productNftId",
|
|
830
552
|
"type": "uint96"
|
|
831
553
|
},
|
|
832
554
|
{
|
|
833
|
-
"internalType": "
|
|
834
|
-
"name": "
|
|
835
|
-
"type": "
|
|
555
|
+
"internalType": "contract TokenHandler",
|
|
556
|
+
"name": "tokenHandler",
|
|
557
|
+
"type": "address"
|
|
836
558
|
},
|
|
837
559
|
{
|
|
838
560
|
"internalType": "UFixed",
|
|
839
561
|
"name": "collateralizationLevel",
|
|
840
562
|
"type": "uint256"
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
"components": [
|
|
566
|
+
{
|
|
567
|
+
"internalType": "UFixed",
|
|
568
|
+
"name": "fractionalFee",
|
|
569
|
+
"type": "uint256"
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"internalType": "uint256",
|
|
573
|
+
"name": "fixedFee",
|
|
574
|
+
"type": "uint256"
|
|
575
|
+
}
|
|
576
|
+
],
|
|
577
|
+
"internalType": "struct Fee",
|
|
578
|
+
"name": "poolFee",
|
|
579
|
+
"type": "tuple"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"components": [
|
|
583
|
+
{
|
|
584
|
+
"internalType": "UFixed",
|
|
585
|
+
"name": "fractionalFee",
|
|
586
|
+
"type": "uint256"
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"internalType": "uint256",
|
|
590
|
+
"name": "fixedFee",
|
|
591
|
+
"type": "uint256"
|
|
592
|
+
}
|
|
593
|
+
],
|
|
594
|
+
"internalType": "struct Fee",
|
|
595
|
+
"name": "stakingFee",
|
|
596
|
+
"type": "tuple"
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
"components": [
|
|
600
|
+
{
|
|
601
|
+
"internalType": "UFixed",
|
|
602
|
+
"name": "fractionalFee",
|
|
603
|
+
"type": "uint256"
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"internalType": "uint256",
|
|
607
|
+
"name": "fixedFee",
|
|
608
|
+
"type": "uint256"
|
|
609
|
+
}
|
|
610
|
+
],
|
|
611
|
+
"internalType": "struct Fee",
|
|
612
|
+
"name": "performanceFee",
|
|
613
|
+
"type": "tuple"
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"internalType": "bool",
|
|
617
|
+
"name": "isIntercepting",
|
|
618
|
+
"type": "bool"
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"internalType": "bool",
|
|
622
|
+
"name": "isConfirmingApplication",
|
|
623
|
+
"type": "bool"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"internalType": "address",
|
|
627
|
+
"name": "wallet",
|
|
628
|
+
"type": "address"
|
|
841
629
|
}
|
|
842
630
|
],
|
|
843
|
-
"internalType": "struct
|
|
844
|
-
"name": "
|
|
631
|
+
"internalType": "struct ISetup.PoolSetupInfo",
|
|
632
|
+
"name": "setup",
|
|
845
633
|
"type": "tuple"
|
|
846
634
|
}
|
|
847
635
|
],
|
|
848
|
-
"
|
|
849
|
-
"
|
|
850
|
-
|
|
851
|
-
{
|
|
852
|
-
"inputs": [],
|
|
853
|
-
"name": "getPoolService",
|
|
854
|
-
"outputs": [
|
|
855
|
-
{
|
|
856
|
-
"internalType": "contract IPoolService",
|
|
857
|
-
"name": "",
|
|
858
|
-
"type": "address"
|
|
859
|
-
}
|
|
860
|
-
],
|
|
861
|
-
"stateMutability": "view",
|
|
636
|
+
"name": "createPoolSetup",
|
|
637
|
+
"outputs": [],
|
|
638
|
+
"stateMutability": "nonpayable",
|
|
862
639
|
"type": "function"
|
|
863
640
|
},
|
|
864
641
|
{
|
|
865
642
|
"inputs": [
|
|
866
643
|
{
|
|
867
644
|
"internalType": "NftId",
|
|
868
|
-
"name": "
|
|
645
|
+
"name": "productNftId",
|
|
869
646
|
"type": "uint96"
|
|
870
|
-
}
|
|
871
|
-
],
|
|
872
|
-
"name": "getPoolSetup",
|
|
873
|
-
"outputs": [
|
|
647
|
+
},
|
|
874
648
|
{
|
|
875
649
|
"components": [
|
|
650
|
+
{
|
|
651
|
+
"internalType": "contract IERC20Metadata",
|
|
652
|
+
"name": "token",
|
|
653
|
+
"type": "address"
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"internalType": "contract TokenHandler",
|
|
657
|
+
"name": "tokenHandler",
|
|
658
|
+
"type": "address"
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
"internalType": "NftId",
|
|
662
|
+
"name": "distributionNftId",
|
|
663
|
+
"type": "uint96"
|
|
664
|
+
},
|
|
876
665
|
{
|
|
877
666
|
"internalType": "NftId",
|
|
878
667
|
"name": "poolNftId",
|
|
879
668
|
"type": "uint96"
|
|
880
669
|
},
|
|
881
670
|
{
|
|
882
|
-
"
|
|
883
|
-
|
|
884
|
-
|
|
671
|
+
"components": [
|
|
672
|
+
{
|
|
673
|
+
"internalType": "UFixed",
|
|
674
|
+
"name": "fractionalFee",
|
|
675
|
+
"type": "uint256"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"internalType": "uint256",
|
|
679
|
+
"name": "fixedFee",
|
|
680
|
+
"type": "uint256"
|
|
681
|
+
}
|
|
682
|
+
],
|
|
683
|
+
"internalType": "struct Fee",
|
|
684
|
+
"name": "distributionFee",
|
|
685
|
+
"type": "tuple"
|
|
885
686
|
},
|
|
886
687
|
{
|
|
887
688
|
"components": [
|
|
@@ -897,7 +698,7 @@
|
|
|
897
698
|
}
|
|
898
699
|
],
|
|
899
700
|
"internalType": "struct Fee",
|
|
900
|
-
"name": "
|
|
701
|
+
"name": "productFee",
|
|
901
702
|
"type": "tuple"
|
|
902
703
|
},
|
|
903
704
|
{
|
|
@@ -914,72 +715,25 @@
|
|
|
914
715
|
}
|
|
915
716
|
],
|
|
916
717
|
"internalType": "struct Fee",
|
|
917
|
-
"name": "
|
|
718
|
+
"name": "processingFee",
|
|
918
719
|
"type": "tuple"
|
|
919
|
-
}
|
|
920
|
-
],
|
|
921
|
-
"internalType": "struct ITreasury.PoolSetup",
|
|
922
|
-
"name": "setup",
|
|
923
|
-
"type": "tuple"
|
|
924
|
-
}
|
|
925
|
-
],
|
|
926
|
-
"stateMutability": "view",
|
|
927
|
-
"type": "function"
|
|
928
|
-
},
|
|
929
|
-
{
|
|
930
|
-
"inputs": [],
|
|
931
|
-
"name": "getProductService",
|
|
932
|
-
"outputs": [
|
|
933
|
-
{
|
|
934
|
-
"internalType": "contract IProductService",
|
|
935
|
-
"name": "",
|
|
936
|
-
"type": "address"
|
|
937
|
-
}
|
|
938
|
-
],
|
|
939
|
-
"stateMutability": "view",
|
|
940
|
-
"type": "function"
|
|
941
|
-
},
|
|
942
|
-
{
|
|
943
|
-
"inputs": [
|
|
944
|
-
{
|
|
945
|
-
"internalType": "NftId",
|
|
946
|
-
"name": "productNftId",
|
|
947
|
-
"type": "uint96"
|
|
948
|
-
}
|
|
949
|
-
],
|
|
950
|
-
"name": "getProductSetup",
|
|
951
|
-
"outputs": [
|
|
952
|
-
{
|
|
953
|
-
"components": [
|
|
954
|
-
{
|
|
955
|
-
"internalType": "NftId",
|
|
956
|
-
"name": "productNftId",
|
|
957
|
-
"type": "uint96"
|
|
958
|
-
},
|
|
959
|
-
{
|
|
960
|
-
"internalType": "NftId",
|
|
961
|
-
"name": "distributorNftId",
|
|
962
|
-
"type": "uint96"
|
|
963
|
-
},
|
|
964
|
-
{
|
|
965
|
-
"internalType": "NftId",
|
|
966
|
-
"name": "poolNftId",
|
|
967
|
-
"type": "uint96"
|
|
968
|
-
},
|
|
969
|
-
{
|
|
970
|
-
"internalType": "contract IERC20Metadata",
|
|
971
|
-
"name": "token",
|
|
972
|
-
"type": "address"
|
|
973
|
-
},
|
|
974
|
-
{
|
|
975
|
-
"internalType": "contract TokenHandler",
|
|
976
|
-
"name": "tokenHandler",
|
|
977
|
-
"type": "address"
|
|
978
720
|
},
|
|
979
721
|
{
|
|
980
|
-
"
|
|
981
|
-
|
|
982
|
-
|
|
722
|
+
"components": [
|
|
723
|
+
{
|
|
724
|
+
"internalType": "UFixed",
|
|
725
|
+
"name": "fractionalFee",
|
|
726
|
+
"type": "uint256"
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
"internalType": "uint256",
|
|
730
|
+
"name": "fixedFee",
|
|
731
|
+
"type": "uint256"
|
|
732
|
+
}
|
|
733
|
+
],
|
|
734
|
+
"internalType": "struct Fee",
|
|
735
|
+
"name": "poolFee",
|
|
736
|
+
"type": "tuple"
|
|
983
737
|
},
|
|
984
738
|
{
|
|
985
739
|
"components": [
|
|
@@ -995,7 +749,7 @@
|
|
|
995
749
|
}
|
|
996
750
|
],
|
|
997
751
|
"internalType": "struct Fee",
|
|
998
|
-
"name": "
|
|
752
|
+
"name": "stakingFee",
|
|
999
753
|
"type": "tuple"
|
|
1000
754
|
},
|
|
1001
755
|
{
|
|
@@ -1012,112 +766,131 @@
|
|
|
1012
766
|
}
|
|
1013
767
|
],
|
|
1014
768
|
"internalType": "struct Fee",
|
|
1015
|
-
"name": "
|
|
769
|
+
"name": "performanceFee",
|
|
1016
770
|
"type": "tuple"
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"internalType": "bool",
|
|
774
|
+
"name": "isIntercepting",
|
|
775
|
+
"type": "bool"
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"internalType": "address",
|
|
779
|
+
"name": "wallet",
|
|
780
|
+
"type": "address"
|
|
1017
781
|
}
|
|
1018
782
|
],
|
|
1019
|
-
"internalType": "struct
|
|
783
|
+
"internalType": "struct ISetup.ProductSetupInfo",
|
|
1020
784
|
"name": "setup",
|
|
1021
785
|
"type": "tuple"
|
|
1022
786
|
}
|
|
1023
787
|
],
|
|
1024
|
-
"
|
|
1025
|
-
"
|
|
1026
|
-
|
|
1027
|
-
{
|
|
1028
|
-
"inputs": [],
|
|
1029
|
-
"name": "getRegistry",
|
|
1030
|
-
"outputs": [
|
|
1031
|
-
{
|
|
1032
|
-
"internalType": "contract IRegistry",
|
|
1033
|
-
"name": "registry",
|
|
1034
|
-
"type": "address"
|
|
1035
|
-
}
|
|
1036
|
-
],
|
|
1037
|
-
"stateMutability": "view",
|
|
788
|
+
"name": "createProductSetup",
|
|
789
|
+
"outputs": [],
|
|
790
|
+
"stateMutability": "nonpayable",
|
|
1038
791
|
"type": "function"
|
|
1039
792
|
},
|
|
1040
793
|
{
|
|
1041
794
|
"inputs": [
|
|
1042
795
|
{
|
|
1043
|
-
"internalType": "
|
|
1044
|
-
"name": "
|
|
1045
|
-
"type": "uint256"
|
|
1046
|
-
}
|
|
1047
|
-
],
|
|
1048
|
-
"name": "getRole",
|
|
1049
|
-
"outputs": [
|
|
1050
|
-
{
|
|
1051
|
-
"internalType": "RoleId",
|
|
1052
|
-
"name": "role",
|
|
796
|
+
"internalType": "RiskId",
|
|
797
|
+
"name": "riskId",
|
|
1053
798
|
"type": "bytes8"
|
|
1054
|
-
}
|
|
1055
|
-
],
|
|
1056
|
-
"stateMutability": "view",
|
|
1057
|
-
"type": "function"
|
|
1058
|
-
},
|
|
1059
|
-
{
|
|
1060
|
-
"inputs": [],
|
|
1061
|
-
"name": "getRoleCount",
|
|
1062
|
-
"outputs": [
|
|
799
|
+
},
|
|
1063
800
|
{
|
|
1064
|
-
"
|
|
1065
|
-
|
|
1066
|
-
|
|
801
|
+
"components": [
|
|
802
|
+
{
|
|
803
|
+
"internalType": "NftId",
|
|
804
|
+
"name": "productNftId",
|
|
805
|
+
"type": "uint96"
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
"internalType": "bytes",
|
|
809
|
+
"name": "data",
|
|
810
|
+
"type": "bytes"
|
|
811
|
+
}
|
|
812
|
+
],
|
|
813
|
+
"internalType": "struct IRisk.RiskInfo",
|
|
814
|
+
"name": "risk",
|
|
815
|
+
"type": "tuple"
|
|
1067
816
|
}
|
|
1068
817
|
],
|
|
1069
|
-
"
|
|
818
|
+
"name": "createRisk",
|
|
819
|
+
"outputs": [],
|
|
820
|
+
"stateMutability": "nonpayable",
|
|
1070
821
|
"type": "function"
|
|
1071
822
|
},
|
|
1072
823
|
{
|
|
1073
824
|
"inputs": [
|
|
1074
825
|
{
|
|
1075
|
-
"internalType": "
|
|
1076
|
-
"name": "
|
|
1077
|
-
"type": "
|
|
826
|
+
"internalType": "Key32",
|
|
827
|
+
"name": "key",
|
|
828
|
+
"type": "bytes32"
|
|
1078
829
|
}
|
|
1079
830
|
],
|
|
1080
|
-
"name": "
|
|
831
|
+
"name": "exists",
|
|
1081
832
|
"outputs": [
|
|
1082
833
|
{
|
|
1083
|
-
"internalType": "
|
|
1084
|
-
"name": "
|
|
1085
|
-
"type": "
|
|
834
|
+
"internalType": "bool",
|
|
835
|
+
"name": "",
|
|
836
|
+
"type": "bool"
|
|
1086
837
|
}
|
|
1087
838
|
],
|
|
1088
|
-
"stateMutability": "
|
|
839
|
+
"stateMutability": "view",
|
|
1089
840
|
"type": "function"
|
|
1090
841
|
},
|
|
1091
842
|
{
|
|
1092
843
|
"inputs": [
|
|
1093
844
|
{
|
|
1094
|
-
"internalType": "
|
|
1095
|
-
"name": "
|
|
1096
|
-
"type": "
|
|
845
|
+
"internalType": "Key32",
|
|
846
|
+
"name": "key",
|
|
847
|
+
"type": "bytes32"
|
|
1097
848
|
}
|
|
1098
849
|
],
|
|
1099
|
-
"name": "
|
|
850
|
+
"name": "get",
|
|
1100
851
|
"outputs": [
|
|
1101
852
|
{
|
|
1102
853
|
"components": [
|
|
1103
854
|
{
|
|
1104
|
-
"
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
855
|
+
"components": [
|
|
856
|
+
{
|
|
857
|
+
"internalType": "ObjectType",
|
|
858
|
+
"name": "objectType",
|
|
859
|
+
"type": "uint8"
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
"internalType": "StateId",
|
|
863
|
+
"name": "state",
|
|
864
|
+
"type": "uint8"
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
"internalType": "address",
|
|
868
|
+
"name": "updatedBy",
|
|
869
|
+
"type": "address"
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
"internalType": "Blocknumber",
|
|
873
|
+
"name": "updatedIn",
|
|
874
|
+
"type": "uint32"
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
"internalType": "Blocknumber",
|
|
878
|
+
"name": "createdIn",
|
|
879
|
+
"type": "uint32"
|
|
880
|
+
}
|
|
881
|
+
],
|
|
882
|
+
"internalType": "struct IKeyValueStore.Metadata",
|
|
883
|
+
"name": "metadata",
|
|
884
|
+
"type": "tuple"
|
|
1112
885
|
},
|
|
1113
886
|
{
|
|
1114
|
-
"internalType": "
|
|
1115
|
-
"name": "
|
|
1116
|
-
"type": "
|
|
887
|
+
"internalType": "bytes",
|
|
888
|
+
"name": "data",
|
|
889
|
+
"type": "bytes"
|
|
1117
890
|
}
|
|
1118
891
|
],
|
|
1119
|
-
"internalType": "struct
|
|
1120
|
-
"name": "
|
|
892
|
+
"internalType": "struct IKeyValueStore.Value",
|
|
893
|
+
"name": "value",
|
|
1121
894
|
"type": "tuple"
|
|
1122
895
|
}
|
|
1123
896
|
],
|
|
@@ -1125,23 +898,12 @@
|
|
|
1125
898
|
"type": "function"
|
|
1126
899
|
},
|
|
1127
900
|
{
|
|
1128
|
-
"inputs": [
|
|
1129
|
-
|
|
1130
|
-
"internalType": "RoleId",
|
|
1131
|
-
"name": "role",
|
|
1132
|
-
"type": "bytes8"
|
|
1133
|
-
},
|
|
1134
|
-
{
|
|
1135
|
-
"internalType": "uint256",
|
|
1136
|
-
"name": "idx",
|
|
1137
|
-
"type": "uint256"
|
|
1138
|
-
}
|
|
1139
|
-
],
|
|
1140
|
-
"name": "getRoleMember",
|
|
901
|
+
"inputs": [],
|
|
902
|
+
"name": "getBundleManager",
|
|
1141
903
|
"outputs": [
|
|
1142
904
|
{
|
|
1143
|
-
"internalType": "
|
|
1144
|
-
"name": "
|
|
905
|
+
"internalType": "contract BundleManager",
|
|
906
|
+
"name": "",
|
|
1145
907
|
"type": "address"
|
|
1146
908
|
}
|
|
1147
909
|
],
|
|
@@ -1149,19 +911,13 @@
|
|
|
1149
911
|
"type": "function"
|
|
1150
912
|
},
|
|
1151
913
|
{
|
|
1152
|
-
"inputs": [
|
|
1153
|
-
|
|
1154
|
-
"internalType": "RoleId",
|
|
1155
|
-
"name": "role",
|
|
1156
|
-
"type": "bytes8"
|
|
1157
|
-
}
|
|
1158
|
-
],
|
|
1159
|
-
"name": "getRoleMemberCount",
|
|
914
|
+
"inputs": [],
|
|
915
|
+
"name": "getBundleService",
|
|
1160
916
|
"outputs": [
|
|
1161
917
|
{
|
|
1162
|
-
"internalType": "
|
|
1163
|
-
"name": "
|
|
1164
|
-
"type": "
|
|
918
|
+
"internalType": "contract IBundleService",
|
|
919
|
+
"name": "",
|
|
920
|
+
"type": "address"
|
|
1165
921
|
}
|
|
1166
922
|
],
|
|
1167
923
|
"stateMutability": "view",
|
|
@@ -1170,17 +926,17 @@
|
|
|
1170
926
|
{
|
|
1171
927
|
"inputs": [
|
|
1172
928
|
{
|
|
1173
|
-
"internalType": "
|
|
1174
|
-
"name": "
|
|
1175
|
-
"type": "
|
|
929
|
+
"internalType": "Key32",
|
|
930
|
+
"name": "key",
|
|
931
|
+
"type": "bytes32"
|
|
1176
932
|
}
|
|
1177
933
|
],
|
|
1178
|
-
"name": "
|
|
934
|
+
"name": "getData",
|
|
1179
935
|
"outputs": [
|
|
1180
936
|
{
|
|
1181
|
-
"internalType": "
|
|
1182
|
-
"name": "
|
|
1183
|
-
"type": "
|
|
937
|
+
"internalType": "bytes",
|
|
938
|
+
"name": "data",
|
|
939
|
+
"type": "bytes"
|
|
1184
940
|
}
|
|
1185
941
|
],
|
|
1186
942
|
"stateMutability": "view",
|
|
@@ -1188,87 +944,86 @@
|
|
|
1188
944
|
},
|
|
1189
945
|
{
|
|
1190
946
|
"inputs": [],
|
|
1191
|
-
"name": "
|
|
1192
|
-
"outputs": [
|
|
1193
|
-
{
|
|
1194
|
-
"internalType": "ObjectType",
|
|
1195
|
-
"name": "objectType",
|
|
1196
|
-
"type": "uint8"
|
|
1197
|
-
}
|
|
1198
|
-
],
|
|
1199
|
-
"stateMutability": "pure",
|
|
1200
|
-
"type": "function"
|
|
1201
|
-
},
|
|
1202
|
-
{
|
|
1203
|
-
"inputs": [
|
|
1204
|
-
{
|
|
1205
|
-
"internalType": "uint256",
|
|
1206
|
-
"name": "a",
|
|
1207
|
-
"type": "uint256"
|
|
1208
|
-
},
|
|
1209
|
-
{
|
|
1210
|
-
"internalType": "int8",
|
|
1211
|
-
"name": "exp",
|
|
1212
|
-
"type": "int8"
|
|
1213
|
-
}
|
|
1214
|
-
],
|
|
1215
|
-
"name": "getUFixed",
|
|
1216
|
-
"outputs": [
|
|
1217
|
-
{
|
|
1218
|
-
"internalType": "UFixed",
|
|
1219
|
-
"name": "",
|
|
1220
|
-
"type": "uint256"
|
|
1221
|
-
}
|
|
1222
|
-
],
|
|
1223
|
-
"stateMutability": "pure",
|
|
1224
|
-
"type": "function"
|
|
1225
|
-
},
|
|
1226
|
-
{
|
|
1227
|
-
"inputs": [
|
|
1228
|
-
{
|
|
1229
|
-
"internalType": "uint256",
|
|
1230
|
-
"name": "a",
|
|
1231
|
-
"type": "uint256"
|
|
1232
|
-
}
|
|
1233
|
-
],
|
|
1234
|
-
"name": "getUFixed",
|
|
947
|
+
"name": "getDistributionService",
|
|
1235
948
|
"outputs": [
|
|
1236
949
|
{
|
|
1237
|
-
"internalType": "
|
|
950
|
+
"internalType": "contract IDistributionService",
|
|
1238
951
|
"name": "",
|
|
1239
|
-
"type": "
|
|
952
|
+
"type": "address"
|
|
1240
953
|
}
|
|
1241
954
|
],
|
|
1242
|
-
"stateMutability": "
|
|
955
|
+
"stateMutability": "view",
|
|
1243
956
|
"type": "function"
|
|
1244
957
|
},
|
|
1245
958
|
{
|
|
1246
959
|
"inputs": [],
|
|
1247
|
-
"name": "
|
|
960
|
+
"name": "getInitialInfo",
|
|
1248
961
|
"outputs": [
|
|
1249
962
|
{
|
|
1250
|
-
"
|
|
963
|
+
"components": [
|
|
964
|
+
{
|
|
965
|
+
"internalType": "NftId",
|
|
966
|
+
"name": "nftId",
|
|
967
|
+
"type": "uint96"
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
"internalType": "NftId",
|
|
971
|
+
"name": "parentNftId",
|
|
972
|
+
"type": "uint96"
|
|
973
|
+
},
|
|
974
|
+
{
|
|
975
|
+
"internalType": "ObjectType",
|
|
976
|
+
"name": "objectType",
|
|
977
|
+
"type": "uint8"
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
"internalType": "bool",
|
|
981
|
+
"name": "isInterceptor",
|
|
982
|
+
"type": "bool"
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
"internalType": "address",
|
|
986
|
+
"name": "objectAddress",
|
|
987
|
+
"type": "address"
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
"internalType": "address",
|
|
991
|
+
"name": "initialOwner",
|
|
992
|
+
"type": "address"
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
"internalType": "bytes",
|
|
996
|
+
"name": "data",
|
|
997
|
+
"type": "bytes"
|
|
998
|
+
}
|
|
999
|
+
],
|
|
1000
|
+
"internalType": "struct IRegistry.ObjectInfo",
|
|
1251
1001
|
"name": "",
|
|
1252
|
-
"type": "
|
|
1002
|
+
"type": "tuple"
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"internalType": "bytes",
|
|
1006
|
+
"name": "data",
|
|
1007
|
+
"type": "bytes"
|
|
1253
1008
|
}
|
|
1254
1009
|
],
|
|
1255
|
-
"stateMutability": "
|
|
1010
|
+
"stateMutability": "view",
|
|
1256
1011
|
"type": "function"
|
|
1257
1012
|
},
|
|
1258
1013
|
{
|
|
1259
1014
|
"inputs": [
|
|
1260
1015
|
{
|
|
1261
|
-
"internalType": "
|
|
1262
|
-
"name": "
|
|
1263
|
-
"type": "
|
|
1016
|
+
"internalType": "ObjectType",
|
|
1017
|
+
"name": "objectType",
|
|
1018
|
+
"type": "uint8"
|
|
1264
1019
|
}
|
|
1265
1020
|
],
|
|
1266
|
-
"name": "
|
|
1021
|
+
"name": "getInitialState",
|
|
1267
1022
|
"outputs": [
|
|
1268
1023
|
{
|
|
1269
|
-
"internalType": "
|
|
1270
|
-
"name": "
|
|
1271
|
-
"type": "
|
|
1024
|
+
"internalType": "StateId",
|
|
1025
|
+
"name": "",
|
|
1026
|
+
"type": "uint8"
|
|
1272
1027
|
}
|
|
1273
1028
|
],
|
|
1274
1029
|
"stateMutability": "view",
|
|
@@ -1276,12 +1031,12 @@
|
|
|
1276
1031
|
},
|
|
1277
1032
|
{
|
|
1278
1033
|
"inputs": [],
|
|
1279
|
-
"name": "
|
|
1034
|
+
"name": "getInstanceReader",
|
|
1280
1035
|
"outputs": [
|
|
1281
1036
|
{
|
|
1282
|
-
"internalType": "
|
|
1283
|
-
"name": "
|
|
1284
|
-
"type": "
|
|
1037
|
+
"internalType": "contract InstanceReader",
|
|
1038
|
+
"name": "",
|
|
1039
|
+
"type": "address"
|
|
1285
1040
|
}
|
|
1286
1041
|
],
|
|
1287
1042
|
"stateMutability": "view",
|
|
@@ -1290,43 +1045,43 @@
|
|
|
1290
1045
|
{
|
|
1291
1046
|
"inputs": [
|
|
1292
1047
|
{
|
|
1293
|
-
"internalType": "
|
|
1294
|
-
"name": "
|
|
1295
|
-
"type": "
|
|
1048
|
+
"internalType": "Key32",
|
|
1049
|
+
"name": "key",
|
|
1050
|
+
"type": "bytes32"
|
|
1296
1051
|
}
|
|
1297
1052
|
],
|
|
1298
|
-
"name": "
|
|
1053
|
+
"name": "getMetadata",
|
|
1299
1054
|
"outputs": [
|
|
1300
1055
|
{
|
|
1301
1056
|
"components": [
|
|
1302
1057
|
{
|
|
1303
|
-
"internalType": "
|
|
1304
|
-
"name": "
|
|
1305
|
-
"type": "
|
|
1058
|
+
"internalType": "ObjectType",
|
|
1059
|
+
"name": "objectType",
|
|
1060
|
+
"type": "uint8"
|
|
1306
1061
|
},
|
|
1307
1062
|
{
|
|
1308
|
-
"internalType": "
|
|
1309
|
-
"name": "
|
|
1310
|
-
"type": "
|
|
1063
|
+
"internalType": "StateId",
|
|
1064
|
+
"name": "state",
|
|
1065
|
+
"type": "uint8"
|
|
1311
1066
|
},
|
|
1312
1067
|
{
|
|
1313
1068
|
"internalType": "address",
|
|
1314
|
-
"name": "
|
|
1069
|
+
"name": "updatedBy",
|
|
1315
1070
|
"type": "address"
|
|
1316
1071
|
},
|
|
1317
1072
|
{
|
|
1318
1073
|
"internalType": "Blocknumber",
|
|
1319
|
-
"name": "
|
|
1074
|
+
"name": "updatedIn",
|
|
1320
1075
|
"type": "uint32"
|
|
1321
1076
|
},
|
|
1322
1077
|
{
|
|
1323
|
-
"internalType": "
|
|
1324
|
-
"name": "
|
|
1325
|
-
"type": "
|
|
1078
|
+
"internalType": "Blocknumber",
|
|
1079
|
+
"name": "createdIn",
|
|
1080
|
+
"type": "uint32"
|
|
1326
1081
|
}
|
|
1327
1082
|
],
|
|
1328
|
-
"internalType": "struct
|
|
1329
|
-
"name": "
|
|
1083
|
+
"internalType": "struct IKeyValueStore.Metadata",
|
|
1084
|
+
"name": "metadata",
|
|
1330
1085
|
"type": "tuple"
|
|
1331
1086
|
}
|
|
1332
1087
|
],
|
|
@@ -1335,85 +1090,77 @@
|
|
|
1335
1090
|
},
|
|
1336
1091
|
{
|
|
1337
1092
|
"inputs": [],
|
|
1338
|
-
"name": "
|
|
1093
|
+
"name": "getNftId",
|
|
1339
1094
|
"outputs": [
|
|
1340
1095
|
{
|
|
1341
|
-
"
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
"name": "fractionalFee",
|
|
1345
|
-
"type": "uint256"
|
|
1346
|
-
},
|
|
1347
|
-
{
|
|
1348
|
-
"internalType": "uint256",
|
|
1349
|
-
"name": "fixedFee",
|
|
1350
|
-
"type": "uint256"
|
|
1351
|
-
}
|
|
1352
|
-
],
|
|
1353
|
-
"internalType": "struct Fee",
|
|
1354
|
-
"name": "fee",
|
|
1355
|
-
"type": "tuple"
|
|
1096
|
+
"internalType": "NftId",
|
|
1097
|
+
"name": "",
|
|
1098
|
+
"type": "uint96"
|
|
1356
1099
|
}
|
|
1357
1100
|
],
|
|
1358
|
-
"stateMutability": "
|
|
1101
|
+
"stateMutability": "view",
|
|
1359
1102
|
"type": "function"
|
|
1360
1103
|
},
|
|
1361
1104
|
{
|
|
1362
|
-
"inputs": [
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
"name": "role",
|
|
1366
|
-
"type": "bytes8"
|
|
1367
|
-
},
|
|
1105
|
+
"inputs": [],
|
|
1106
|
+
"name": "getOwner",
|
|
1107
|
+
"outputs": [
|
|
1368
1108
|
{
|
|
1369
1109
|
"internalType": "address",
|
|
1370
|
-
"name": "
|
|
1110
|
+
"name": "",
|
|
1371
1111
|
"type": "address"
|
|
1372
1112
|
}
|
|
1373
1113
|
],
|
|
1374
|
-
"
|
|
1375
|
-
"outputs": [],
|
|
1376
|
-
"stateMutability": "nonpayable",
|
|
1114
|
+
"stateMutability": "view",
|
|
1377
1115
|
"type": "function"
|
|
1378
1116
|
},
|
|
1379
1117
|
{
|
|
1380
|
-
"inputs": [
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
"name": "role",
|
|
1384
|
-
"type": "bytes8"
|
|
1385
|
-
},
|
|
1118
|
+
"inputs": [],
|
|
1119
|
+
"name": "getPolicyService",
|
|
1120
|
+
"outputs": [
|
|
1386
1121
|
{
|
|
1387
|
-
"internalType": "
|
|
1388
|
-
"name": "
|
|
1122
|
+
"internalType": "contract IPolicyService",
|
|
1123
|
+
"name": "",
|
|
1389
1124
|
"type": "address"
|
|
1390
1125
|
}
|
|
1391
1126
|
],
|
|
1392
|
-
"
|
|
1127
|
+
"stateMutability": "view",
|
|
1128
|
+
"type": "function"
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
"inputs": [],
|
|
1132
|
+
"name": "getPoolService",
|
|
1393
1133
|
"outputs": [
|
|
1394
1134
|
{
|
|
1395
|
-
"internalType": "
|
|
1396
|
-
"name": "
|
|
1397
|
-
"type": "
|
|
1135
|
+
"internalType": "contract IPoolService",
|
|
1136
|
+
"name": "",
|
|
1137
|
+
"type": "address"
|
|
1398
1138
|
}
|
|
1399
1139
|
],
|
|
1400
1140
|
"stateMutability": "view",
|
|
1401
1141
|
"type": "function"
|
|
1402
1142
|
},
|
|
1403
1143
|
{
|
|
1404
|
-
"inputs": [
|
|
1144
|
+
"inputs": [],
|
|
1145
|
+
"name": "getProductService",
|
|
1146
|
+
"outputs": [
|
|
1405
1147
|
{
|
|
1406
|
-
"internalType": "
|
|
1407
|
-
"name": "
|
|
1408
|
-
"type": "
|
|
1148
|
+
"internalType": "contract IProductService",
|
|
1149
|
+
"name": "",
|
|
1150
|
+
"type": "address"
|
|
1409
1151
|
}
|
|
1410
1152
|
],
|
|
1411
|
-
"
|
|
1153
|
+
"stateMutability": "view",
|
|
1154
|
+
"type": "function"
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
"inputs": [],
|
|
1158
|
+
"name": "getRegistry",
|
|
1412
1159
|
"outputs": [
|
|
1413
1160
|
{
|
|
1414
|
-
"internalType": "
|
|
1161
|
+
"internalType": "contract IRegistry",
|
|
1415
1162
|
"name": "",
|
|
1416
|
-
"type": "
|
|
1163
|
+
"type": "address"
|
|
1417
1164
|
}
|
|
1418
1165
|
],
|
|
1419
1166
|
"stateMutability": "view",
|
|
@@ -1422,22 +1169,31 @@
|
|
|
1422
1169
|
{
|
|
1423
1170
|
"inputs": [
|
|
1424
1171
|
{
|
|
1425
|
-
"internalType": "
|
|
1426
|
-
"name": "
|
|
1427
|
-
"type": "
|
|
1428
|
-
}
|
|
1172
|
+
"internalType": "Key32",
|
|
1173
|
+
"name": "key",
|
|
1174
|
+
"type": "bytes32"
|
|
1175
|
+
}
|
|
1176
|
+
],
|
|
1177
|
+
"name": "getState",
|
|
1178
|
+
"outputs": [
|
|
1429
1179
|
{
|
|
1430
1180
|
"internalType": "StateId",
|
|
1431
|
-
"name": "
|
|
1181
|
+
"name": "state",
|
|
1432
1182
|
"type": "uint8"
|
|
1433
|
-
}
|
|
1183
|
+
}
|
|
1184
|
+
],
|
|
1185
|
+
"stateMutability": "view",
|
|
1186
|
+
"type": "function"
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
"inputs": [
|
|
1434
1190
|
{
|
|
1435
|
-
"internalType": "
|
|
1436
|
-
"name": "
|
|
1191
|
+
"internalType": "ObjectType",
|
|
1192
|
+
"name": "objectType",
|
|
1437
1193
|
"type": "uint8"
|
|
1438
1194
|
}
|
|
1439
1195
|
],
|
|
1440
|
-
"name": "
|
|
1196
|
+
"name": "hasLifecycle",
|
|
1441
1197
|
"outputs": [
|
|
1442
1198
|
{
|
|
1443
1199
|
"internalType": "bool",
|
|
@@ -1450,88 +1206,62 @@
|
|
|
1450
1206
|
},
|
|
1451
1207
|
{
|
|
1452
1208
|
"inputs": [],
|
|
1453
|
-
"name": "
|
|
1209
|
+
"name": "isConsumingScheduledOp",
|
|
1454
1210
|
"outputs": [
|
|
1455
1211
|
{
|
|
1456
|
-
"internalType": "
|
|
1457
|
-
"name": "
|
|
1458
|
-
"type": "
|
|
1212
|
+
"internalType": "bytes4",
|
|
1213
|
+
"name": "",
|
|
1214
|
+
"type": "bytes4"
|
|
1459
1215
|
}
|
|
1460
1216
|
],
|
|
1461
|
-
"stateMutability": "
|
|
1217
|
+
"stateMutability": "view",
|
|
1462
1218
|
"type": "function"
|
|
1463
1219
|
},
|
|
1464
1220
|
{
|
|
1465
1221
|
"inputs": [
|
|
1466
|
-
{
|
|
1467
|
-
"internalType": "NftId",
|
|
1468
|
-
"name": "nftId",
|
|
1469
|
-
"type": "uint96"
|
|
1470
|
-
},
|
|
1471
1222
|
{
|
|
1472
1223
|
"internalType": "ObjectType",
|
|
1473
1224
|
"name": "objectType",
|
|
1474
1225
|
"type": "uint8"
|
|
1475
1226
|
},
|
|
1476
1227
|
{
|
|
1477
|
-
"internalType": "
|
|
1478
|
-
"name": "
|
|
1479
|
-
"type": "
|
|
1228
|
+
"internalType": "StateId",
|
|
1229
|
+
"name": "fromId",
|
|
1230
|
+
"type": "uint8"
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
"internalType": "StateId",
|
|
1234
|
+
"name": "toId",
|
|
1235
|
+
"type": "uint8"
|
|
1236
|
+
}
|
|
1237
|
+
],
|
|
1238
|
+
"name": "isValidTransition",
|
|
1239
|
+
"outputs": [
|
|
1240
|
+
{
|
|
1241
|
+
"internalType": "bool",
|
|
1242
|
+
"name": "",
|
|
1243
|
+
"type": "bool"
|
|
1480
1244
|
}
|
|
1481
1245
|
],
|
|
1482
|
-
"
|
|
1246
|
+
"stateMutability": "view",
|
|
1247
|
+
"type": "function"
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
"inputs": [],
|
|
1251
|
+
"name": "linkToRegisteredNftId",
|
|
1483
1252
|
"outputs": [],
|
|
1484
1253
|
"stateMutability": "nonpayable",
|
|
1485
1254
|
"type": "function"
|
|
1486
1255
|
},
|
|
1487
1256
|
{
|
|
1488
1257
|
"inputs": [
|
|
1489
|
-
{
|
|
1490
|
-
"internalType": "NftId",
|
|
1491
|
-
"name": "poolNftId",
|
|
1492
|
-
"type": "uint96"
|
|
1493
|
-
},
|
|
1494
1258
|
{
|
|
1495
1259
|
"internalType": "address",
|
|
1496
|
-
"name": "
|
|
1260
|
+
"name": "",
|
|
1497
1261
|
"type": "address"
|
|
1498
|
-
},
|
|
1499
|
-
{
|
|
1500
|
-
"components": [
|
|
1501
|
-
{
|
|
1502
|
-
"internalType": "UFixed",
|
|
1503
|
-
"name": "fractionalFee",
|
|
1504
|
-
"type": "uint256"
|
|
1505
|
-
},
|
|
1506
|
-
{
|
|
1507
|
-
"internalType": "uint256",
|
|
1508
|
-
"name": "fixedFee",
|
|
1509
|
-
"type": "uint256"
|
|
1510
|
-
}
|
|
1511
|
-
],
|
|
1512
|
-
"internalType": "struct Fee",
|
|
1513
|
-
"name": "stakingFee",
|
|
1514
|
-
"type": "tuple"
|
|
1515
|
-
},
|
|
1516
|
-
{
|
|
1517
|
-
"components": [
|
|
1518
|
-
{
|
|
1519
|
-
"internalType": "UFixed",
|
|
1520
|
-
"name": "fractionalFee",
|
|
1521
|
-
"type": "uint256"
|
|
1522
|
-
},
|
|
1523
|
-
{
|
|
1524
|
-
"internalType": "uint256",
|
|
1525
|
-
"name": "fixedFee",
|
|
1526
|
-
"type": "uint256"
|
|
1527
|
-
}
|
|
1528
|
-
],
|
|
1529
|
-
"internalType": "struct Fee",
|
|
1530
|
-
"name": "performanceFee",
|
|
1531
|
-
"type": "tuple"
|
|
1532
1262
|
}
|
|
1533
1263
|
],
|
|
1534
|
-
"name": "
|
|
1264
|
+
"name": "setAuthority",
|
|
1535
1265
|
"outputs": [],
|
|
1536
1266
|
"stateMutability": "nonpayable",
|
|
1537
1267
|
"type": "function"
|
|
@@ -1539,89 +1269,124 @@
|
|
|
1539
1269
|
{
|
|
1540
1270
|
"inputs": [
|
|
1541
1271
|
{
|
|
1542
|
-
"internalType": "
|
|
1543
|
-
"name": "
|
|
1544
|
-
"type": "
|
|
1545
|
-
}
|
|
1272
|
+
"internalType": "bytes4",
|
|
1273
|
+
"name": "interfaceId",
|
|
1274
|
+
"type": "bytes4"
|
|
1275
|
+
}
|
|
1276
|
+
],
|
|
1277
|
+
"name": "supportsInterface",
|
|
1278
|
+
"outputs": [
|
|
1546
1279
|
{
|
|
1547
1280
|
"internalType": "bool",
|
|
1548
|
-
"name": "
|
|
1281
|
+
"name": "",
|
|
1549
1282
|
"type": "bool"
|
|
1550
|
-
},
|
|
1551
|
-
{
|
|
1552
|
-
"internalType": "UFixed",
|
|
1553
|
-
"name": "collateralizationLevel",
|
|
1554
|
-
"type": "uint256"
|
|
1555
1283
|
}
|
|
1556
1284
|
],
|
|
1557
|
-
"
|
|
1558
|
-
"outputs": [],
|
|
1559
|
-
"stateMutability": "nonpayable",
|
|
1285
|
+
"stateMutability": "view",
|
|
1560
1286
|
"type": "function"
|
|
1561
1287
|
},
|
|
1562
1288
|
{
|
|
1563
1289
|
"inputs": [
|
|
1564
1290
|
{
|
|
1565
|
-
"internalType": "
|
|
1566
|
-
"name": "
|
|
1567
|
-
"type": "
|
|
1291
|
+
"internalType": "ObjectType",
|
|
1292
|
+
"name": "objectType",
|
|
1293
|
+
"type": "uint8"
|
|
1568
1294
|
},
|
|
1569
1295
|
{
|
|
1570
|
-
"internalType": "
|
|
1571
|
-
"name": "
|
|
1572
|
-
"type": "
|
|
1573
|
-
}
|
|
1296
|
+
"internalType": "KeyId",
|
|
1297
|
+
"name": "id",
|
|
1298
|
+
"type": "bytes31"
|
|
1299
|
+
}
|
|
1300
|
+
],
|
|
1301
|
+
"name": "toKey32",
|
|
1302
|
+
"outputs": [
|
|
1303
|
+
{
|
|
1304
|
+
"internalType": "Key32",
|
|
1305
|
+
"name": "",
|
|
1306
|
+
"type": "bytes32"
|
|
1307
|
+
}
|
|
1308
|
+
],
|
|
1309
|
+
"stateMutability": "pure",
|
|
1310
|
+
"type": "function"
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
"inputs": [
|
|
1574
1314
|
{
|
|
1575
1315
|
"internalType": "NftId",
|
|
1576
|
-
"name": "
|
|
1316
|
+
"name": "bundleNftId",
|
|
1577
1317
|
"type": "uint96"
|
|
1578
1318
|
},
|
|
1579
|
-
{
|
|
1580
|
-
"internalType": "contract IERC20Metadata",
|
|
1581
|
-
"name": "token",
|
|
1582
|
-
"type": "address"
|
|
1583
|
-
},
|
|
1584
|
-
{
|
|
1585
|
-
"internalType": "address",
|
|
1586
|
-
"name": "wallet",
|
|
1587
|
-
"type": "address"
|
|
1588
|
-
},
|
|
1589
1319
|
{
|
|
1590
1320
|
"components": [
|
|
1591
1321
|
{
|
|
1592
|
-
"internalType": "
|
|
1593
|
-
"name": "
|
|
1322
|
+
"internalType": "NftId",
|
|
1323
|
+
"name": "poolNftId",
|
|
1324
|
+
"type": "uint96"
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
"components": [
|
|
1328
|
+
{
|
|
1329
|
+
"internalType": "UFixed",
|
|
1330
|
+
"name": "fractionalFee",
|
|
1331
|
+
"type": "uint256"
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
"internalType": "uint256",
|
|
1335
|
+
"name": "fixedFee",
|
|
1336
|
+
"type": "uint256"
|
|
1337
|
+
}
|
|
1338
|
+
],
|
|
1339
|
+
"internalType": "struct Fee",
|
|
1340
|
+
"name": "fee",
|
|
1341
|
+
"type": "tuple"
|
|
1342
|
+
},
|
|
1343
|
+
{
|
|
1344
|
+
"internalType": "bytes",
|
|
1345
|
+
"name": "filter",
|
|
1346
|
+
"type": "bytes"
|
|
1347
|
+
},
|
|
1348
|
+
{
|
|
1349
|
+
"internalType": "uint256",
|
|
1350
|
+
"name": "capitalAmount",
|
|
1594
1351
|
"type": "uint256"
|
|
1595
1352
|
},
|
|
1596
1353
|
{
|
|
1597
1354
|
"internalType": "uint256",
|
|
1598
|
-
"name": "
|
|
1355
|
+
"name": "lockedAmount",
|
|
1599
1356
|
"type": "uint256"
|
|
1600
|
-
}
|
|
1601
|
-
],
|
|
1602
|
-
"internalType": "struct Fee",
|
|
1603
|
-
"name": "policyFee",
|
|
1604
|
-
"type": "tuple"
|
|
1605
|
-
},
|
|
1606
|
-
{
|
|
1607
|
-
"components": [
|
|
1357
|
+
},
|
|
1608
1358
|
{
|
|
1609
|
-
"internalType": "
|
|
1610
|
-
"name": "
|
|
1359
|
+
"internalType": "uint256",
|
|
1360
|
+
"name": "balanceAmount",
|
|
1611
1361
|
"type": "uint256"
|
|
1612
1362
|
},
|
|
1613
1363
|
{
|
|
1614
1364
|
"internalType": "uint256",
|
|
1615
|
-
"name": "
|
|
1365
|
+
"name": "lifetime",
|
|
1616
1366
|
"type": "uint256"
|
|
1367
|
+
},
|
|
1368
|
+
{
|
|
1369
|
+
"internalType": "Timestamp",
|
|
1370
|
+
"name": "expiredAt",
|
|
1371
|
+
"type": "uint40"
|
|
1372
|
+
},
|
|
1373
|
+
{
|
|
1374
|
+
"internalType": "Timestamp",
|
|
1375
|
+
"name": "closedAt",
|
|
1376
|
+
"type": "uint40"
|
|
1617
1377
|
}
|
|
1618
1378
|
],
|
|
1619
|
-
"internalType": "struct
|
|
1620
|
-
"name": "
|
|
1379
|
+
"internalType": "struct IBundle.BundleInfo",
|
|
1380
|
+
"name": "bundle",
|
|
1621
1381
|
"type": "tuple"
|
|
1382
|
+
},
|
|
1383
|
+
{
|
|
1384
|
+
"internalType": "StateId",
|
|
1385
|
+
"name": "newState",
|
|
1386
|
+
"type": "uint8"
|
|
1622
1387
|
}
|
|
1623
1388
|
],
|
|
1624
|
-
"name": "
|
|
1389
|
+
"name": "updateBundle",
|
|
1625
1390
|
"outputs": [],
|
|
1626
1391
|
"stateMutability": "nonpayable",
|
|
1627
1392
|
"type": "function"
|
|
@@ -1634,36 +1399,74 @@
|
|
|
1634
1399
|
"type": "uint96"
|
|
1635
1400
|
},
|
|
1636
1401
|
{
|
|
1637
|
-
"internalType": "
|
|
1638
|
-
"name": "
|
|
1639
|
-
"type": "
|
|
1640
|
-
}
|
|
1641
|
-
],
|
|
1642
|
-
"name": "releasePolicy",
|
|
1643
|
-
"outputs": [
|
|
1644
|
-
{
|
|
1645
|
-
"internalType": "uint256",
|
|
1646
|
-
"name": "collateralAmount",
|
|
1647
|
-
"type": "uint256"
|
|
1402
|
+
"internalType": "StateId",
|
|
1403
|
+
"name": "newState",
|
|
1404
|
+
"type": "uint8"
|
|
1648
1405
|
}
|
|
1649
1406
|
],
|
|
1407
|
+
"name": "updateBundleState",
|
|
1408
|
+
"outputs": [],
|
|
1650
1409
|
"stateMutability": "nonpayable",
|
|
1651
1410
|
"type": "function"
|
|
1652
1411
|
},
|
|
1653
1412
|
{
|
|
1654
1413
|
"inputs": [
|
|
1655
1414
|
{
|
|
1656
|
-
"internalType": "
|
|
1657
|
-
"name": "
|
|
1658
|
-
"type": "
|
|
1415
|
+
"internalType": "NftId",
|
|
1416
|
+
"name": "distributionNftId",
|
|
1417
|
+
"type": "uint96"
|
|
1659
1418
|
},
|
|
1660
1419
|
{
|
|
1661
|
-
"
|
|
1662
|
-
|
|
1663
|
-
|
|
1420
|
+
"components": [
|
|
1421
|
+
{
|
|
1422
|
+
"internalType": "NftId",
|
|
1423
|
+
"name": "productNftId",
|
|
1424
|
+
"type": "uint96"
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
"internalType": "contract TokenHandler",
|
|
1428
|
+
"name": "tokenHandler",
|
|
1429
|
+
"type": "address"
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
"components": [
|
|
1433
|
+
{
|
|
1434
|
+
"internalType": "UFixed",
|
|
1435
|
+
"name": "fractionalFee",
|
|
1436
|
+
"type": "uint256"
|
|
1437
|
+
},
|
|
1438
|
+
{
|
|
1439
|
+
"internalType": "uint256",
|
|
1440
|
+
"name": "fixedFee",
|
|
1441
|
+
"type": "uint256"
|
|
1442
|
+
}
|
|
1443
|
+
],
|
|
1444
|
+
"internalType": "struct Fee",
|
|
1445
|
+
"name": "distributionFee",
|
|
1446
|
+
"type": "tuple"
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
"internalType": "bool",
|
|
1450
|
+
"name": "isIntercepting",
|
|
1451
|
+
"type": "bool"
|
|
1452
|
+
},
|
|
1453
|
+
{
|
|
1454
|
+
"internalType": "address",
|
|
1455
|
+
"name": "wallet",
|
|
1456
|
+
"type": "address"
|
|
1457
|
+
}
|
|
1458
|
+
],
|
|
1459
|
+
"internalType": "struct ISetup.DistributionSetupInfo",
|
|
1460
|
+
"name": "setup",
|
|
1461
|
+
"type": "tuple"
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
"internalType": "StateId",
|
|
1465
|
+
"name": "newState",
|
|
1466
|
+
"type": "uint8"
|
|
1664
1467
|
}
|
|
1665
1468
|
],
|
|
1666
|
-
"name": "
|
|
1469
|
+
"name": "updateDistributionSetup",
|
|
1667
1470
|
"outputs": [],
|
|
1668
1471
|
"stateMutability": "nonpayable",
|
|
1669
1472
|
"type": "function"
|
|
@@ -1671,64 +1474,98 @@
|
|
|
1671
1474
|
{
|
|
1672
1475
|
"inputs": [
|
|
1673
1476
|
{
|
|
1674
|
-
"internalType": "
|
|
1675
|
-
"name": "
|
|
1676
|
-
"type": "
|
|
1677
|
-
}
|
|
1678
|
-
],
|
|
1679
|
-
"name": "roleExists",
|
|
1680
|
-
"outputs": [
|
|
1477
|
+
"internalType": "NftId",
|
|
1478
|
+
"name": "distributionNftId",
|
|
1479
|
+
"type": "uint96"
|
|
1480
|
+
},
|
|
1681
1481
|
{
|
|
1682
|
-
"internalType": "
|
|
1683
|
-
"name": "",
|
|
1684
|
-
"type": "
|
|
1482
|
+
"internalType": "StateId",
|
|
1483
|
+
"name": "newState",
|
|
1484
|
+
"type": "uint8"
|
|
1685
1485
|
}
|
|
1686
1486
|
],
|
|
1687
|
-
"
|
|
1487
|
+
"name": "updateDistributionSetupState",
|
|
1488
|
+
"outputs": [],
|
|
1489
|
+
"stateMutability": "nonpayable",
|
|
1688
1490
|
"type": "function"
|
|
1689
1491
|
},
|
|
1690
1492
|
{
|
|
1691
1493
|
"inputs": [
|
|
1494
|
+
{
|
|
1495
|
+
"internalType": "NftId",
|
|
1496
|
+
"name": "policyNftId",
|
|
1497
|
+
"type": "uint96"
|
|
1498
|
+
},
|
|
1692
1499
|
{
|
|
1693
1500
|
"components": [
|
|
1694
1501
|
{
|
|
1695
1502
|
"internalType": "NftId",
|
|
1696
|
-
"name": "
|
|
1503
|
+
"name": "productNftId",
|
|
1697
1504
|
"type": "uint96"
|
|
1698
1505
|
},
|
|
1699
1506
|
{
|
|
1700
1507
|
"internalType": "NftId",
|
|
1701
|
-
"name": "
|
|
1508
|
+
"name": "bundleNftId",
|
|
1702
1509
|
"type": "uint96"
|
|
1703
1510
|
},
|
|
1704
1511
|
{
|
|
1705
|
-
"internalType": "
|
|
1706
|
-
"name": "
|
|
1707
|
-
"type": "
|
|
1512
|
+
"internalType": "ReferralId",
|
|
1513
|
+
"name": "referralId",
|
|
1514
|
+
"type": "bytes8"
|
|
1708
1515
|
},
|
|
1709
1516
|
{
|
|
1710
|
-
"internalType": "
|
|
1711
|
-
"name": "
|
|
1712
|
-
"type": "
|
|
1517
|
+
"internalType": "RiskId",
|
|
1518
|
+
"name": "riskId",
|
|
1519
|
+
"type": "bytes8"
|
|
1713
1520
|
},
|
|
1714
1521
|
{
|
|
1715
1522
|
"internalType": "uint256",
|
|
1716
|
-
"name": "
|
|
1523
|
+
"name": "sumInsuredAmount",
|
|
1717
1524
|
"type": "uint256"
|
|
1718
1525
|
},
|
|
1719
1526
|
{
|
|
1720
1527
|
"internalType": "uint256",
|
|
1721
|
-
"name": "
|
|
1528
|
+
"name": "premiumAmount",
|
|
1722
1529
|
"type": "uint256"
|
|
1723
1530
|
},
|
|
1724
1531
|
{
|
|
1725
1532
|
"internalType": "uint256",
|
|
1726
|
-
"name": "
|
|
1533
|
+
"name": "premiumPaidAmount",
|
|
1534
|
+
"type": "uint256"
|
|
1535
|
+
},
|
|
1536
|
+
{
|
|
1537
|
+
"internalType": "uint256",
|
|
1538
|
+
"name": "lifetime",
|
|
1539
|
+
"type": "uint256"
|
|
1540
|
+
},
|
|
1541
|
+
{
|
|
1542
|
+
"internalType": "bytes",
|
|
1543
|
+
"name": "applicationData",
|
|
1544
|
+
"type": "bytes"
|
|
1545
|
+
},
|
|
1546
|
+
{
|
|
1547
|
+
"internalType": "bytes",
|
|
1548
|
+
"name": "policyData",
|
|
1549
|
+
"type": "bytes"
|
|
1550
|
+
},
|
|
1551
|
+
{
|
|
1552
|
+
"internalType": "uint16",
|
|
1553
|
+
"name": "claimsCount",
|
|
1554
|
+
"type": "uint16"
|
|
1555
|
+
},
|
|
1556
|
+
{
|
|
1557
|
+
"internalType": "uint16",
|
|
1558
|
+
"name": "openClaimsCount",
|
|
1559
|
+
"type": "uint16"
|
|
1560
|
+
},
|
|
1561
|
+
{
|
|
1562
|
+
"internalType": "uint256",
|
|
1563
|
+
"name": "payoutAmount",
|
|
1727
1564
|
"type": "uint256"
|
|
1728
1565
|
},
|
|
1729
1566
|
{
|
|
1730
1567
|
"internalType": "Timestamp",
|
|
1731
|
-
"name": "
|
|
1568
|
+
"name": "activatedAt",
|
|
1732
1569
|
"type": "uint40"
|
|
1733
1570
|
},
|
|
1734
1571
|
{
|
|
@@ -1740,145 +1577,318 @@
|
|
|
1740
1577
|
"internalType": "Timestamp",
|
|
1741
1578
|
"name": "closedAt",
|
|
1742
1579
|
"type": "uint40"
|
|
1743
|
-
},
|
|
1744
|
-
{
|
|
1745
|
-
"internalType": "Blocknumber",
|
|
1746
|
-
"name": "updatedIn",
|
|
1747
|
-
"type": "uint32"
|
|
1748
1580
|
}
|
|
1749
1581
|
],
|
|
1750
|
-
"internalType": "struct
|
|
1751
|
-
"name": "
|
|
1582
|
+
"internalType": "struct IPolicy.PolicyInfo",
|
|
1583
|
+
"name": "policy",
|
|
1752
1584
|
"type": "tuple"
|
|
1585
|
+
},
|
|
1586
|
+
{
|
|
1587
|
+
"internalType": "StateId",
|
|
1588
|
+
"name": "newState",
|
|
1589
|
+
"type": "uint8"
|
|
1590
|
+
}
|
|
1591
|
+
],
|
|
1592
|
+
"name": "updatePolicy",
|
|
1593
|
+
"outputs": [],
|
|
1594
|
+
"stateMutability": "nonpayable",
|
|
1595
|
+
"type": "function"
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
"inputs": [
|
|
1599
|
+
{
|
|
1600
|
+
"internalType": "NftId",
|
|
1601
|
+
"name": "policyNftId",
|
|
1602
|
+
"type": "uint96"
|
|
1603
|
+
},
|
|
1604
|
+
{
|
|
1605
|
+
"internalType": "StateId",
|
|
1606
|
+
"name": "newState",
|
|
1607
|
+
"type": "uint8"
|
|
1753
1608
|
}
|
|
1754
1609
|
],
|
|
1755
|
-
"name": "
|
|
1610
|
+
"name": "updatePolicyState",
|
|
1756
1611
|
"outputs": [],
|
|
1757
1612
|
"stateMutability": "nonpayable",
|
|
1758
1613
|
"type": "function"
|
|
1759
1614
|
},
|
|
1760
1615
|
{
|
|
1761
1616
|
"inputs": [
|
|
1617
|
+
{
|
|
1618
|
+
"internalType": "NftId",
|
|
1619
|
+
"name": "poolNftId",
|
|
1620
|
+
"type": "uint96"
|
|
1621
|
+
},
|
|
1762
1622
|
{
|
|
1763
1623
|
"components": [
|
|
1764
1624
|
{
|
|
1765
1625
|
"internalType": "NftId",
|
|
1766
|
-
"name": "
|
|
1626
|
+
"name": "productNftId",
|
|
1767
1627
|
"type": "uint96"
|
|
1768
1628
|
},
|
|
1769
1629
|
{
|
|
1770
|
-
"internalType": "
|
|
1771
|
-
"name": "
|
|
1772
|
-
"type": "
|
|
1630
|
+
"internalType": "contract TokenHandler",
|
|
1631
|
+
"name": "tokenHandler",
|
|
1632
|
+
"type": "address"
|
|
1773
1633
|
},
|
|
1774
1634
|
{
|
|
1775
|
-
"internalType": "
|
|
1776
|
-
"name": "
|
|
1635
|
+
"internalType": "UFixed",
|
|
1636
|
+
"name": "collateralizationLevel",
|
|
1637
|
+
"type": "uint256"
|
|
1638
|
+
},
|
|
1639
|
+
{
|
|
1640
|
+
"components": [
|
|
1641
|
+
{
|
|
1642
|
+
"internalType": "UFixed",
|
|
1643
|
+
"name": "fractionalFee",
|
|
1644
|
+
"type": "uint256"
|
|
1645
|
+
},
|
|
1646
|
+
{
|
|
1647
|
+
"internalType": "uint256",
|
|
1648
|
+
"name": "fixedFee",
|
|
1649
|
+
"type": "uint256"
|
|
1650
|
+
}
|
|
1651
|
+
],
|
|
1652
|
+
"internalType": "struct Fee",
|
|
1653
|
+
"name": "poolFee",
|
|
1654
|
+
"type": "tuple"
|
|
1655
|
+
},
|
|
1656
|
+
{
|
|
1657
|
+
"components": [
|
|
1658
|
+
{
|
|
1659
|
+
"internalType": "UFixed",
|
|
1660
|
+
"name": "fractionalFee",
|
|
1661
|
+
"type": "uint256"
|
|
1662
|
+
},
|
|
1663
|
+
{
|
|
1664
|
+
"internalType": "uint256",
|
|
1665
|
+
"name": "fixedFee",
|
|
1666
|
+
"type": "uint256"
|
|
1667
|
+
}
|
|
1668
|
+
],
|
|
1669
|
+
"internalType": "struct Fee",
|
|
1670
|
+
"name": "stakingFee",
|
|
1671
|
+
"type": "tuple"
|
|
1672
|
+
},
|
|
1673
|
+
{
|
|
1674
|
+
"components": [
|
|
1675
|
+
{
|
|
1676
|
+
"internalType": "UFixed",
|
|
1677
|
+
"name": "fractionalFee",
|
|
1678
|
+
"type": "uint256"
|
|
1679
|
+
},
|
|
1680
|
+
{
|
|
1681
|
+
"internalType": "uint256",
|
|
1682
|
+
"name": "fixedFee",
|
|
1683
|
+
"type": "uint256"
|
|
1684
|
+
}
|
|
1685
|
+
],
|
|
1686
|
+
"internalType": "struct Fee",
|
|
1687
|
+
"name": "performanceFee",
|
|
1688
|
+
"type": "tuple"
|
|
1689
|
+
},
|
|
1690
|
+
{
|
|
1691
|
+
"internalType": "bool",
|
|
1692
|
+
"name": "isIntercepting",
|
|
1693
|
+
"type": "bool"
|
|
1694
|
+
},
|
|
1695
|
+
{
|
|
1696
|
+
"internalType": "bool",
|
|
1697
|
+
"name": "isConfirmingApplication",
|
|
1698
|
+
"type": "bool"
|
|
1699
|
+
},
|
|
1700
|
+
{
|
|
1701
|
+
"internalType": "address",
|
|
1702
|
+
"name": "wallet",
|
|
1777
1703
|
"type": "address"
|
|
1778
1704
|
}
|
|
1779
1705
|
],
|
|
1780
|
-
"internalType": "struct
|
|
1781
|
-
"name": "
|
|
1706
|
+
"internalType": "struct ISetup.PoolSetupInfo",
|
|
1707
|
+
"name": "setup",
|
|
1782
1708
|
"type": "tuple"
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
"internalType": "StateId",
|
|
1712
|
+
"name": "newState",
|
|
1713
|
+
"type": "uint8"
|
|
1783
1714
|
}
|
|
1784
1715
|
],
|
|
1785
|
-
"name": "
|
|
1786
|
-
"outputs": [
|
|
1716
|
+
"name": "updatePoolSetup",
|
|
1717
|
+
"outputs": [],
|
|
1718
|
+
"stateMutability": "nonpayable",
|
|
1719
|
+
"type": "function"
|
|
1720
|
+
},
|
|
1721
|
+
{
|
|
1722
|
+
"inputs": [
|
|
1787
1723
|
{
|
|
1788
1724
|
"internalType": "NftId",
|
|
1789
|
-
"name": "
|
|
1725
|
+
"name": "poolNftId",
|
|
1790
1726
|
"type": "uint96"
|
|
1727
|
+
},
|
|
1728
|
+
{
|
|
1729
|
+
"internalType": "StateId",
|
|
1730
|
+
"name": "newState",
|
|
1731
|
+
"type": "uint8"
|
|
1791
1732
|
}
|
|
1792
1733
|
],
|
|
1734
|
+
"name": "updatePoolSetupState",
|
|
1735
|
+
"outputs": [],
|
|
1793
1736
|
"stateMutability": "nonpayable",
|
|
1794
1737
|
"type": "function"
|
|
1795
1738
|
},
|
|
1796
1739
|
{
|
|
1797
1740
|
"inputs": [
|
|
1741
|
+
{
|
|
1742
|
+
"internalType": "NftId",
|
|
1743
|
+
"name": "productNftId",
|
|
1744
|
+
"type": "uint96"
|
|
1745
|
+
},
|
|
1798
1746
|
{
|
|
1799
1747
|
"components": [
|
|
1800
1748
|
{
|
|
1801
|
-
"internalType": "
|
|
1802
|
-
"name": "
|
|
1803
|
-
"type": "
|
|
1749
|
+
"internalType": "contract IERC20Metadata",
|
|
1750
|
+
"name": "token",
|
|
1751
|
+
"type": "address"
|
|
1804
1752
|
},
|
|
1805
1753
|
{
|
|
1806
|
-
"internalType": "
|
|
1807
|
-
"name": "
|
|
1808
|
-
"type": "
|
|
1754
|
+
"internalType": "contract TokenHandler",
|
|
1755
|
+
"name": "tokenHandler",
|
|
1756
|
+
"type": "address"
|
|
1809
1757
|
},
|
|
1810
1758
|
{
|
|
1811
1759
|
"internalType": "NftId",
|
|
1812
|
-
"name": "
|
|
1760
|
+
"name": "distributionNftId",
|
|
1813
1761
|
"type": "uint96"
|
|
1814
1762
|
},
|
|
1815
1763
|
{
|
|
1816
|
-
"internalType": "
|
|
1817
|
-
"name": "
|
|
1818
|
-
"type": "
|
|
1819
|
-
},
|
|
1820
|
-
{
|
|
1821
|
-
"internalType": "StateId",
|
|
1822
|
-
"name": "state",
|
|
1823
|
-
"type": "uint8"
|
|
1824
|
-
},
|
|
1825
|
-
{
|
|
1826
|
-
"internalType": "uint256",
|
|
1827
|
-
"name": "sumInsuredAmount",
|
|
1828
|
-
"type": "uint256"
|
|
1829
|
-
},
|
|
1830
|
-
{
|
|
1831
|
-
"internalType": "uint256",
|
|
1832
|
-
"name": "premiumAmount",
|
|
1833
|
-
"type": "uint256"
|
|
1764
|
+
"internalType": "NftId",
|
|
1765
|
+
"name": "poolNftId",
|
|
1766
|
+
"type": "uint96"
|
|
1834
1767
|
},
|
|
1835
1768
|
{
|
|
1836
|
-
"
|
|
1837
|
-
|
|
1838
|
-
|
|
1769
|
+
"components": [
|
|
1770
|
+
{
|
|
1771
|
+
"internalType": "UFixed",
|
|
1772
|
+
"name": "fractionalFee",
|
|
1773
|
+
"type": "uint256"
|
|
1774
|
+
},
|
|
1775
|
+
{
|
|
1776
|
+
"internalType": "uint256",
|
|
1777
|
+
"name": "fixedFee",
|
|
1778
|
+
"type": "uint256"
|
|
1779
|
+
}
|
|
1780
|
+
],
|
|
1781
|
+
"internalType": "struct Fee",
|
|
1782
|
+
"name": "distributionFee",
|
|
1783
|
+
"type": "tuple"
|
|
1839
1784
|
},
|
|
1840
1785
|
{
|
|
1841
|
-
"
|
|
1842
|
-
|
|
1843
|
-
|
|
1786
|
+
"components": [
|
|
1787
|
+
{
|
|
1788
|
+
"internalType": "UFixed",
|
|
1789
|
+
"name": "fractionalFee",
|
|
1790
|
+
"type": "uint256"
|
|
1791
|
+
},
|
|
1792
|
+
{
|
|
1793
|
+
"internalType": "uint256",
|
|
1794
|
+
"name": "fixedFee",
|
|
1795
|
+
"type": "uint256"
|
|
1796
|
+
}
|
|
1797
|
+
],
|
|
1798
|
+
"internalType": "struct Fee",
|
|
1799
|
+
"name": "productFee",
|
|
1800
|
+
"type": "tuple"
|
|
1844
1801
|
},
|
|
1845
1802
|
{
|
|
1846
|
-
"
|
|
1847
|
-
|
|
1848
|
-
|
|
1803
|
+
"components": [
|
|
1804
|
+
{
|
|
1805
|
+
"internalType": "UFixed",
|
|
1806
|
+
"name": "fractionalFee",
|
|
1807
|
+
"type": "uint256"
|
|
1808
|
+
},
|
|
1809
|
+
{
|
|
1810
|
+
"internalType": "uint256",
|
|
1811
|
+
"name": "fixedFee",
|
|
1812
|
+
"type": "uint256"
|
|
1813
|
+
}
|
|
1814
|
+
],
|
|
1815
|
+
"internalType": "struct Fee",
|
|
1816
|
+
"name": "processingFee",
|
|
1817
|
+
"type": "tuple"
|
|
1849
1818
|
},
|
|
1850
1819
|
{
|
|
1851
|
-
"
|
|
1852
|
-
|
|
1853
|
-
|
|
1820
|
+
"components": [
|
|
1821
|
+
{
|
|
1822
|
+
"internalType": "UFixed",
|
|
1823
|
+
"name": "fractionalFee",
|
|
1824
|
+
"type": "uint256"
|
|
1825
|
+
},
|
|
1826
|
+
{
|
|
1827
|
+
"internalType": "uint256",
|
|
1828
|
+
"name": "fixedFee",
|
|
1829
|
+
"type": "uint256"
|
|
1830
|
+
}
|
|
1831
|
+
],
|
|
1832
|
+
"internalType": "struct Fee",
|
|
1833
|
+
"name": "poolFee",
|
|
1834
|
+
"type": "tuple"
|
|
1854
1835
|
},
|
|
1855
1836
|
{
|
|
1856
|
-
"
|
|
1857
|
-
|
|
1858
|
-
|
|
1837
|
+
"components": [
|
|
1838
|
+
{
|
|
1839
|
+
"internalType": "UFixed",
|
|
1840
|
+
"name": "fractionalFee",
|
|
1841
|
+
"type": "uint256"
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
"internalType": "uint256",
|
|
1845
|
+
"name": "fixedFee",
|
|
1846
|
+
"type": "uint256"
|
|
1847
|
+
}
|
|
1848
|
+
],
|
|
1849
|
+
"internalType": "struct Fee",
|
|
1850
|
+
"name": "stakingFee",
|
|
1851
|
+
"type": "tuple"
|
|
1859
1852
|
},
|
|
1860
1853
|
{
|
|
1861
|
-
"
|
|
1862
|
-
|
|
1863
|
-
|
|
1854
|
+
"components": [
|
|
1855
|
+
{
|
|
1856
|
+
"internalType": "UFixed",
|
|
1857
|
+
"name": "fractionalFee",
|
|
1858
|
+
"type": "uint256"
|
|
1859
|
+
},
|
|
1860
|
+
{
|
|
1861
|
+
"internalType": "uint256",
|
|
1862
|
+
"name": "fixedFee",
|
|
1863
|
+
"type": "uint256"
|
|
1864
|
+
}
|
|
1865
|
+
],
|
|
1866
|
+
"internalType": "struct Fee",
|
|
1867
|
+
"name": "performanceFee",
|
|
1868
|
+
"type": "tuple"
|
|
1864
1869
|
},
|
|
1865
1870
|
{
|
|
1866
|
-
"internalType": "
|
|
1867
|
-
"name": "
|
|
1868
|
-
"type": "
|
|
1871
|
+
"internalType": "bool",
|
|
1872
|
+
"name": "isIntercepting",
|
|
1873
|
+
"type": "bool"
|
|
1869
1874
|
},
|
|
1870
1875
|
{
|
|
1871
|
-
"internalType": "
|
|
1872
|
-
"name": "
|
|
1873
|
-
"type": "
|
|
1876
|
+
"internalType": "address",
|
|
1877
|
+
"name": "wallet",
|
|
1878
|
+
"type": "address"
|
|
1874
1879
|
}
|
|
1875
1880
|
],
|
|
1876
|
-
"internalType": "struct
|
|
1877
|
-
"name": "
|
|
1881
|
+
"internalType": "struct ISetup.ProductSetupInfo",
|
|
1882
|
+
"name": "setup",
|
|
1878
1883
|
"type": "tuple"
|
|
1884
|
+
},
|
|
1885
|
+
{
|
|
1886
|
+
"internalType": "StateId",
|
|
1887
|
+
"name": "newState",
|
|
1888
|
+
"type": "uint8"
|
|
1879
1889
|
}
|
|
1880
1890
|
],
|
|
1881
|
-
"name": "
|
|
1891
|
+
"name": "updateProductSetup",
|
|
1882
1892
|
"outputs": [],
|
|
1883
1893
|
"stateMutability": "nonpayable",
|
|
1884
1894
|
"type": "function"
|
|
@@ -1887,45 +1897,16 @@
|
|
|
1887
1897
|
"inputs": [
|
|
1888
1898
|
{
|
|
1889
1899
|
"internalType": "NftId",
|
|
1890
|
-
"name": "
|
|
1900
|
+
"name": "productNftId",
|
|
1891
1901
|
"type": "uint96"
|
|
1892
1902
|
},
|
|
1893
1903
|
{
|
|
1894
|
-
"
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
"name": "fractionalFee",
|
|
1898
|
-
"type": "uint256"
|
|
1899
|
-
},
|
|
1900
|
-
{
|
|
1901
|
-
"internalType": "uint256",
|
|
1902
|
-
"name": "fixedFee",
|
|
1903
|
-
"type": "uint256"
|
|
1904
|
-
}
|
|
1905
|
-
],
|
|
1906
|
-
"internalType": "struct Fee",
|
|
1907
|
-
"name": "stakingFee",
|
|
1908
|
-
"type": "tuple"
|
|
1909
|
-
},
|
|
1910
|
-
{
|
|
1911
|
-
"components": [
|
|
1912
|
-
{
|
|
1913
|
-
"internalType": "UFixed",
|
|
1914
|
-
"name": "fractionalFee",
|
|
1915
|
-
"type": "uint256"
|
|
1916
|
-
},
|
|
1917
|
-
{
|
|
1918
|
-
"internalType": "uint256",
|
|
1919
|
-
"name": "fixedFee",
|
|
1920
|
-
"type": "uint256"
|
|
1921
|
-
}
|
|
1922
|
-
],
|
|
1923
|
-
"internalType": "struct Fee",
|
|
1924
|
-
"name": "performanceFee",
|
|
1925
|
-
"type": "tuple"
|
|
1904
|
+
"internalType": "StateId",
|
|
1905
|
+
"name": "newState",
|
|
1906
|
+
"type": "uint8"
|
|
1926
1907
|
}
|
|
1927
1908
|
],
|
|
1928
|
-
"name": "
|
|
1909
|
+
"name": "updateProductSetupState",
|
|
1929
1910
|
"outputs": [],
|
|
1930
1911
|
"stateMutability": "nonpayable",
|
|
1931
1912
|
"type": "function"
|
|
@@ -1933,46 +1914,34 @@
|
|
|
1933
1914
|
{
|
|
1934
1915
|
"inputs": [
|
|
1935
1916
|
{
|
|
1936
|
-
"internalType": "
|
|
1937
|
-
"name": "
|
|
1938
|
-
"type": "
|
|
1917
|
+
"internalType": "RiskId",
|
|
1918
|
+
"name": "riskId",
|
|
1919
|
+
"type": "bytes8"
|
|
1939
1920
|
},
|
|
1940
1921
|
{
|
|
1941
1922
|
"components": [
|
|
1942
1923
|
{
|
|
1943
|
-
"internalType": "
|
|
1944
|
-
"name": "
|
|
1945
|
-
"type": "
|
|
1924
|
+
"internalType": "NftId",
|
|
1925
|
+
"name": "productNftId",
|
|
1926
|
+
"type": "uint96"
|
|
1946
1927
|
},
|
|
1947
1928
|
{
|
|
1948
|
-
"internalType": "
|
|
1949
|
-
"name": "
|
|
1950
|
-
"type": "
|
|
1929
|
+
"internalType": "bytes",
|
|
1930
|
+
"name": "data",
|
|
1931
|
+
"type": "bytes"
|
|
1951
1932
|
}
|
|
1952
1933
|
],
|
|
1953
|
-
"internalType": "struct
|
|
1954
|
-
"name": "
|
|
1934
|
+
"internalType": "struct IRisk.RiskInfo",
|
|
1935
|
+
"name": "risk",
|
|
1955
1936
|
"type": "tuple"
|
|
1956
1937
|
},
|
|
1957
1938
|
{
|
|
1958
|
-
"
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
"name": "fractionalFee",
|
|
1962
|
-
"type": "uint256"
|
|
1963
|
-
},
|
|
1964
|
-
{
|
|
1965
|
-
"internalType": "uint256",
|
|
1966
|
-
"name": "fixedFee",
|
|
1967
|
-
"type": "uint256"
|
|
1968
|
-
}
|
|
1969
|
-
],
|
|
1970
|
-
"internalType": "struct Fee",
|
|
1971
|
-
"name": "processingFee",
|
|
1972
|
-
"type": "tuple"
|
|
1939
|
+
"internalType": "StateId",
|
|
1940
|
+
"name": "newState",
|
|
1941
|
+
"type": "uint8"
|
|
1973
1942
|
}
|
|
1974
1943
|
],
|
|
1975
|
-
"name": "
|
|
1944
|
+
"name": "updateRisk",
|
|
1976
1945
|
"outputs": [],
|
|
1977
1946
|
"stateMutability": "nonpayable",
|
|
1978
1947
|
"type": "function"
|
|
@@ -1980,39 +1949,20 @@
|
|
|
1980
1949
|
{
|
|
1981
1950
|
"inputs": [
|
|
1982
1951
|
{
|
|
1983
|
-
"internalType": "
|
|
1984
|
-
"name": "
|
|
1952
|
+
"internalType": "RiskId",
|
|
1953
|
+
"name": "riskId",
|
|
1985
1954
|
"type": "bytes8"
|
|
1986
1955
|
},
|
|
1987
1956
|
{
|
|
1988
|
-
"internalType": "
|
|
1989
|
-
"name": "
|
|
1990
|
-
"type": "
|
|
1957
|
+
"internalType": "StateId",
|
|
1958
|
+
"name": "newState",
|
|
1959
|
+
"type": "uint8"
|
|
1991
1960
|
}
|
|
1992
1961
|
],
|
|
1993
|
-
"name": "
|
|
1962
|
+
"name": "updateRiskState",
|
|
1994
1963
|
"outputs": [],
|
|
1995
1964
|
"stateMutability": "nonpayable",
|
|
1996
1965
|
"type": "function"
|
|
1997
|
-
},
|
|
1998
|
-
{
|
|
1999
|
-
"inputs": [
|
|
2000
|
-
{
|
|
2001
|
-
"internalType": "bytes4",
|
|
2002
|
-
"name": "interfaceId",
|
|
2003
|
-
"type": "bytes4"
|
|
2004
|
-
}
|
|
2005
|
-
],
|
|
2006
|
-
"name": "supportsInterface",
|
|
2007
|
-
"outputs": [
|
|
2008
|
-
{
|
|
2009
|
-
"internalType": "bool",
|
|
2010
|
-
"name": "",
|
|
2011
|
-
"type": "bool"
|
|
2012
|
-
}
|
|
2013
|
-
],
|
|
2014
|
-
"stateMutability": "view",
|
|
2015
|
-
"type": "function"
|
|
2016
1966
|
}
|
|
2017
1967
|
],
|
|
2018
1968
|
"bytecode": "0x",
|