@etherisc/gif-next 0.0.2-e42b0ca-323 → 0.0.2-e46206a-486
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +175 -1
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +166 -39
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +557 -0
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +119 -39
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +177 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +108 -156
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +67 -139
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +417 -88
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +360 -51
- 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/Revert.sol/Revert.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
- 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/TypeB.sol/TypeBLib.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +768 -694
- package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +974 -816
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +224 -43
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +51 -1
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +49 -0
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IService.sol/IService.json +174 -53
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +263 -45
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +49 -23
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +4 -4
- package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +220 -52
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +55 -54
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +56 -55
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +22 -93
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +22 -93
- package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +10 -0
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{compensation/ICompensation.sol/ICompensation.json → distribution/IDistribution.sol/IDistribution.json} +2 -2
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{compensation/ICompensation.sol/ICompensationModule.json → distribution/IDistribution.sol/IDistributionModule.json} +2 -2
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +61 -51
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +61 -51
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +1 -1
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +29 -14
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +28 -13
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +1 -1
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +104 -1
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +126 -5
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +326 -221
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +2 -2
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +326 -221
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +391 -71
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +646 -0
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +177 -75
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +446 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +235 -50
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +325 -51
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +350 -52
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +476 -73
- 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 +190 -51
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +872 -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 +380 -139
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1261 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +504 -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/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +55 -14
- 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/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 +78 -14
- package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +4 -0
- package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +557 -0
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
- package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
- package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +1 -1
- package/artifacts/contracts/test/TestPool.sol/TestPool.json +417 -88
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +1 -1
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +407 -56
- 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 +14 -14
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +283 -62
- 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 +2 -2
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +103 -23
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
- package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
- 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 +1 -1
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +52 -13
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +31 -17
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +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 +1 -1
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +134 -8
- 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/{UFixedMathLib.json → UFixedLib.json} +3 -3
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.json +40 -2
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
- package/contracts/components/BaseComponent.sol +11 -20
- package/contracts/components/Distribution.sol +155 -0
- package/contracts/components/IBaseComponent.sol +1 -1
- package/contracts/components/IDistributionComponent.sol +46 -0
- package/contracts/components/IPoolComponent.sol +15 -8
- package/contracts/components/IProductComponent.sol +26 -8
- package/contracts/components/Pool.sol +99 -27
- package/contracts/components/Product.sol +204 -22
- package/contracts/experiment/cloning/Cloner.sol +47 -0
- package/contracts/instance/IInstance.sol +11 -11
- package/contracts/instance/Instance.sol +28 -13
- package/contracts/instance/base/ComponentServiceBase.sol +13 -6
- package/contracts/instance/base/IInstanceBase.sol +11 -2
- package/contracts/instance/base/IKeyValueStore.sol +4 -3
- package/contracts/instance/base/InstanceBase.sol +19 -10
- package/contracts/instance/base/KeyValueStore.sol +15 -9
- package/contracts/instance/base/Lifecycle.sol +15 -10
- package/contracts/instance/base/ModuleBase.sol +23 -18
- package/contracts/instance/base/ServiceBase.sol +20 -13
- package/contracts/instance/module/bundle/BundleModule.sol +12 -14
- package/contracts/instance/module/bundle/IBundle.sol +6 -11
- package/contracts/instance/module/component/ComponentModule.sol +33 -57
- package/contracts/instance/module/component/IComponent.sol +6 -31
- package/contracts/instance/module/distribution/DistributionModule.sol +17 -0
- package/contracts/instance/module/distribution/IDistribution.sol +10 -0
- package/contracts/instance/module/policy/IPolicy.sol +13 -10
- package/contracts/instance/module/policy/PolicyModule.sol +36 -21
- package/contracts/instance/module/pool/IPoolModule.sol +4 -4
- package/contracts/instance/module/pool/PoolModule.sol +23 -15
- package/contracts/instance/module/risk/IRisk.sol +18 -2
- package/contracts/instance/module/risk/RiskModule.sol +56 -2
- package/contracts/instance/module/treasury/ITreasury.sol +31 -50
- package/contracts/instance/module/treasury/TokenHandler.sol +1 -1
- package/contracts/instance/module/treasury/TreasuryModule.sol +70 -91
- package/contracts/instance/service/ComponentOwnerService.sol +238 -93
- package/contracts/instance/service/DistributionService.sol +54 -0
- package/contracts/instance/service/IComponentOwnerService.sol +0 -2
- package/contracts/instance/service/IDistributionService.sol +12 -0
- package/contracts/instance/service/IPoolService.sol +7 -0
- package/contracts/instance/service/IProductService.sol +56 -7
- package/contracts/instance/service/PoolService.sol +49 -23
- package/contracts/instance/service/ProductService.sol +250 -94
- package/contracts/registry/ChainNft.sol +80 -37
- package/contracts/registry/IRegistry.sol +28 -28
- package/contracts/registry/IRegistryService.sol +35 -0
- package/contracts/registry/ITransferInterceptor.sol +6 -0
- package/contracts/registry/Registry.sol +314 -272
- package/contracts/registry/RegistryService.sol +441 -0
- package/contracts/registry/RegistryServiceManager.sol +64 -0
- package/contracts/shared/ContractDeployerLib.sol +72 -0
- package/contracts/shared/INftOwnable.sol +22 -0
- package/contracts/shared/IRegisterable.sol +8 -15
- package/contracts/shared/IVersionable.sol +55 -11
- package/contracts/shared/NftOwnable.sol +136 -0
- package/contracts/shared/ProxyManager.sol +94 -0
- package/contracts/shared/Registerable.sol +62 -59
- package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
- package/contracts/shared/Versionable.sol +113 -55
- package/contracts/test/TestDistribution.sol +22 -0
- package/contracts/test/TestFee.sol +2 -2
- package/contracts/test/TestPool.sol +7 -2
- package/contracts/test/TestProduct.sol +38 -8
- package/contracts/test/TestRegisterable.sol +5 -6
- package/contracts/test/TestRoleId.sol +1 -1
- package/contracts/test/TestService.sol +5 -11
- package/contracts/types/DistributorType.sol +55 -0
- package/contracts/types/Fee.sol +10 -5
- package/contracts/types/Key32.sol +8 -3
- 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 +54 -10
- package/contracts/types/StateId.sol +1 -1
- package/contracts/types/Timestamp.sol +7 -3
- package/contracts/types/UFixed.sol +128 -12
- package/contracts/types/Version.sol +9 -0
- package/package.json +4 -3
- 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/IAccess.json +0 -10
- 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/compensation/CompensationModule.sol/CompensationModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +0 -10
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +0 -4
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +0 -4
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -452
- 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/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
- package/contracts/experiment/statemachine/README.md +0 -112
- package/contracts/instance/module/access/Access.sol +0 -149
- package/contracts/instance/module/access/IAccess.sol +0 -53
- package/contracts/instance/module/compensation/CompensationModule.sol +0 -8
- package/contracts/instance/module/compensation/ICompensation.sol +0 -10
- package/contracts/registry/IChainNft.sol +0 -21
- package/contracts/registry/IRegistryLinked.sol +0 -8
- package/contracts/shared/IOwnable.sol +0 -6
@@ -4,67 +4,74 @@
|
|
4
4
|
"sourceName": "contracts/instance/IInstance.sol",
|
5
5
|
"abi": [
|
6
6
|
{
|
7
|
-
"anonymous": false,
|
8
7
|
"inputs": [
|
9
8
|
{
|
10
|
-
"
|
11
|
-
"
|
12
|
-
"
|
13
|
-
"type": "bytes8"
|
9
|
+
"internalType": "address",
|
10
|
+
"name": "registry",
|
11
|
+
"type": "address"
|
14
12
|
},
|
15
13
|
{
|
16
|
-
"
|
17
|
-
"
|
18
|
-
"
|
19
|
-
"type": "string"
|
14
|
+
"internalType": "NftId",
|
15
|
+
"name": "nftId",
|
16
|
+
"type": "uint96"
|
20
17
|
}
|
21
18
|
],
|
22
|
-
"name": "
|
23
|
-
"type": "
|
19
|
+
"name": "ErrorAlreadyLinked",
|
20
|
+
"type": "error"
|
24
21
|
},
|
25
22
|
{
|
26
|
-
"anonymous": false,
|
27
23
|
"inputs": [
|
28
24
|
{
|
29
|
-
"indexed": false,
|
30
|
-
"internalType": "RoleId",
|
31
|
-
"name": "role",
|
32
|
-
"type": "bytes8"
|
33
|
-
},
|
34
|
-
{
|
35
|
-
"indexed": false,
|
36
25
|
"internalType": "address",
|
37
|
-
"name": "
|
26
|
+
"name": "contractAddress",
|
38
27
|
"type": "address"
|
39
|
-
}
|
28
|
+
}
|
29
|
+
],
|
30
|
+
"name": "ErrorContractNotRegistered",
|
31
|
+
"type": "error"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"inputs": [
|
40
35
|
{
|
41
|
-
"
|
42
|
-
"
|
43
|
-
"
|
44
|
-
"type": "bool"
|
36
|
+
"internalType": "address",
|
37
|
+
"name": "account",
|
38
|
+
"type": "address"
|
45
39
|
}
|
46
40
|
],
|
47
|
-
"name": "
|
48
|
-
"type": "
|
41
|
+
"name": "ErrorNotOwner",
|
42
|
+
"type": "error"
|
49
43
|
},
|
50
44
|
{
|
51
|
-
"anonymous": false,
|
52
45
|
"inputs": [
|
53
46
|
{
|
54
|
-
"
|
55
|
-
"
|
56
|
-
"
|
57
|
-
|
58
|
-
|
47
|
+
"internalType": "address",
|
48
|
+
"name": "registryAddress",
|
49
|
+
"type": "address"
|
50
|
+
}
|
51
|
+
],
|
52
|
+
"name": "ErrorNotRegistry",
|
53
|
+
"type": "error"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"inputs": [],
|
57
|
+
"name": "ErrorRegistryAddressZero",
|
58
|
+
"type": "error"
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"inputs": [
|
59
62
|
{
|
60
|
-
"
|
61
|
-
"
|
62
|
-
"
|
63
|
-
"type": "bool"
|
63
|
+
"internalType": "address",
|
64
|
+
"name": "registry",
|
65
|
+
"type": "address"
|
64
66
|
}
|
65
67
|
],
|
66
|
-
"name": "
|
67
|
-
"type": "
|
68
|
+
"name": "ErrorRegistryAlreadyInitialized",
|
69
|
+
"type": "error"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"inputs": [],
|
73
|
+
"name": "ErrorRegistryNotInitialized",
|
74
|
+
"type": "error"
|
68
75
|
},
|
69
76
|
{
|
70
77
|
"anonymous": false,
|
@@ -88,27 +95,9 @@
|
|
88
95
|
"type": "address"
|
89
96
|
}
|
90
97
|
],
|
91
|
-
"name": "
|
98
|
+
"name": "LogVersionableInitialized",
|
92
99
|
"type": "event"
|
93
100
|
},
|
94
|
-
{
|
95
|
-
"inputs": [
|
96
|
-
{
|
97
|
-
"internalType": "address",
|
98
|
-
"name": "implementation",
|
99
|
-
"type": "address"
|
100
|
-
},
|
101
|
-
{
|
102
|
-
"internalType": "address",
|
103
|
-
"name": "activatedBy",
|
104
|
-
"type": "address"
|
105
|
-
}
|
106
|
-
],
|
107
|
-
"name": "activate",
|
108
|
-
"outputs": [],
|
109
|
-
"stateMutability": "nonpayable",
|
110
|
-
"type": "function"
|
111
|
-
},
|
112
101
|
{
|
113
102
|
"inputs": [
|
114
103
|
{
|
@@ -200,22 +189,34 @@
|
|
200
189
|
"inputs": [
|
201
190
|
{
|
202
191
|
"internalType": "NftId",
|
203
|
-
"name": "
|
192
|
+
"name": "bundleNftId",
|
204
193
|
"type": "uint96"
|
205
194
|
},
|
206
195
|
{
|
207
196
|
"internalType": "NftId",
|
208
|
-
"name": "
|
197
|
+
"name": "poolNftId",
|
209
198
|
"type": "uint96"
|
210
199
|
},
|
211
200
|
{
|
212
|
-
"
|
213
|
-
|
214
|
-
|
201
|
+
"components": [
|
202
|
+
{
|
203
|
+
"internalType": "UFixed",
|
204
|
+
"name": "fractionalFee",
|
205
|
+
"type": "uint256"
|
206
|
+
},
|
207
|
+
{
|
208
|
+
"internalType": "uint256",
|
209
|
+
"name": "fixedFee",
|
210
|
+
"type": "uint256"
|
211
|
+
}
|
212
|
+
],
|
213
|
+
"internalType": "struct Fee",
|
214
|
+
"name": "fee",
|
215
|
+
"type": "tuple"
|
215
216
|
},
|
216
217
|
{
|
217
218
|
"internalType": "uint256",
|
218
|
-
"name": "
|
219
|
+
"name": "amount",
|
219
220
|
"type": "uint256"
|
220
221
|
},
|
221
222
|
{
|
@@ -224,12 +225,12 @@
|
|
224
225
|
"type": "uint256"
|
225
226
|
},
|
226
227
|
{
|
227
|
-
"internalType": "
|
228
|
-
"name": "
|
229
|
-
"type": "
|
228
|
+
"internalType": "bytes",
|
229
|
+
"name": "filter",
|
230
|
+
"type": "bytes"
|
230
231
|
}
|
231
232
|
],
|
232
|
-
"name": "
|
233
|
+
"name": "createBundleInfo",
|
233
234
|
"outputs": [],
|
234
235
|
"stateMutability": "nonpayable",
|
235
236
|
"type": "function"
|
@@ -238,17 +239,32 @@
|
|
238
239
|
"inputs": [
|
239
240
|
{
|
240
241
|
"internalType": "NftId",
|
241
|
-
"name": "
|
242
|
+
"name": "policyNftId",
|
242
243
|
"type": "uint96"
|
243
244
|
},
|
244
245
|
{
|
245
246
|
"internalType": "NftId",
|
246
|
-
"name": "
|
247
|
+
"name": "productNftId",
|
247
248
|
"type": "uint96"
|
248
249
|
},
|
250
|
+
{
|
251
|
+
"internalType": "ReferralId",
|
252
|
+
"name": "referralId",
|
253
|
+
"type": "bytes8"
|
254
|
+
},
|
255
|
+
{
|
256
|
+
"internalType": "RiskId",
|
257
|
+
"name": "riskId",
|
258
|
+
"type": "bytes8"
|
259
|
+
},
|
249
260
|
{
|
250
261
|
"internalType": "uint256",
|
251
|
-
"name": "
|
262
|
+
"name": "sumInsuredAmount",
|
263
|
+
"type": "uint256"
|
264
|
+
},
|
265
|
+
{
|
266
|
+
"internalType": "uint256",
|
267
|
+
"name": "premiumAmount",
|
252
268
|
"type": "uint256"
|
253
269
|
},
|
254
270
|
{
|
@@ -257,12 +273,12 @@
|
|
257
273
|
"type": "uint256"
|
258
274
|
},
|
259
275
|
{
|
260
|
-
"internalType": "
|
261
|
-
"name": "
|
262
|
-
"type": "
|
276
|
+
"internalType": "NftId",
|
277
|
+
"name": "bundleNftId",
|
278
|
+
"type": "uint96"
|
263
279
|
}
|
264
280
|
],
|
265
|
-
"name": "
|
281
|
+
"name": "createPolicyInfo",
|
266
282
|
"outputs": [],
|
267
283
|
"stateMutability": "nonpayable",
|
268
284
|
"type": "function"
|
@@ -270,19 +286,23 @@
|
|
270
286
|
{
|
271
287
|
"inputs": [
|
272
288
|
{
|
273
|
-
"internalType": "
|
274
|
-
"name": "
|
275
|
-
"type": "string"
|
276
|
-
}
|
277
|
-
],
|
278
|
-
"name": "createRole",
|
279
|
-
"outputs": [
|
280
|
-
{
|
281
|
-
"internalType": "RoleId",
|
282
|
-
"name": "role",
|
289
|
+
"internalType": "RiskId",
|
290
|
+
"name": "riskId",
|
283
291
|
"type": "bytes8"
|
292
|
+
},
|
293
|
+
{
|
294
|
+
"internalType": "NftId",
|
295
|
+
"name": "productNftId",
|
296
|
+
"type": "uint96"
|
297
|
+
},
|
298
|
+
{
|
299
|
+
"internalType": "bytes",
|
300
|
+
"name": "data",
|
301
|
+
"type": "bytes"
|
284
302
|
}
|
285
303
|
],
|
304
|
+
"name": "createRisk",
|
305
|
+
"outputs": [],
|
286
306
|
"stateMutability": "nonpayable",
|
287
307
|
"type": "function"
|
288
308
|
},
|
@@ -309,7 +329,7 @@
|
|
309
329
|
"inputs": [
|
310
330
|
{
|
311
331
|
"internalType": "NftId",
|
312
|
-
"name": "
|
332
|
+
"name": "nftId",
|
313
333
|
"type": "uint96"
|
314
334
|
}
|
315
335
|
],
|
@@ -319,13 +339,25 @@
|
|
319
339
|
"components": [
|
320
340
|
{
|
321
341
|
"internalType": "NftId",
|
322
|
-
"name": "
|
342
|
+
"name": "poolNftId",
|
323
343
|
"type": "uint96"
|
324
344
|
},
|
325
345
|
{
|
326
|
-
"
|
327
|
-
|
328
|
-
|
346
|
+
"components": [
|
347
|
+
{
|
348
|
+
"internalType": "UFixed",
|
349
|
+
"name": "fractionalFee",
|
350
|
+
"type": "uint256"
|
351
|
+
},
|
352
|
+
{
|
353
|
+
"internalType": "uint256",
|
354
|
+
"name": "fixedFee",
|
355
|
+
"type": "uint256"
|
356
|
+
}
|
357
|
+
],
|
358
|
+
"internalType": "struct Fee",
|
359
|
+
"name": "fee",
|
360
|
+
"type": "tuple"
|
329
361
|
},
|
330
362
|
{
|
331
363
|
"internalType": "bytes",
|
@@ -422,6 +454,19 @@
|
|
422
454
|
"stateMutability": "view",
|
423
455
|
"type": "function"
|
424
456
|
},
|
457
|
+
{
|
458
|
+
"inputs": [],
|
459
|
+
"name": "getComponentOwnerService",
|
460
|
+
"outputs": [
|
461
|
+
{
|
462
|
+
"internalType": "contract IComponentOwnerService",
|
463
|
+
"name": "",
|
464
|
+
"type": "address"
|
465
|
+
}
|
466
|
+
],
|
467
|
+
"stateMutability": "view",
|
468
|
+
"type": "function"
|
469
|
+
},
|
425
470
|
{
|
426
471
|
"inputs": [
|
427
472
|
{
|
@@ -430,41 +475,30 @@
|
|
430
475
|
"type": "uint96"
|
431
476
|
}
|
432
477
|
],
|
433
|
-
"name": "
|
478
|
+
"name": "getComponentToken",
|
434
479
|
"outputs": [
|
435
480
|
{
|
436
|
-
"
|
437
|
-
|
438
|
-
|
439
|
-
"name": "nftId",
|
440
|
-
"type": "uint96"
|
441
|
-
},
|
442
|
-
{
|
443
|
-
"internalType": "StateId",
|
444
|
-
"name": "state",
|
445
|
-
"type": "uint8"
|
446
|
-
},
|
447
|
-
{
|
448
|
-
"internalType": "contract IERC20Metadata",
|
449
|
-
"name": "token",
|
450
|
-
"type": "address"
|
451
|
-
}
|
452
|
-
],
|
453
|
-
"internalType": "struct IComponent.ComponentInfo",
|
454
|
-
"name": "info",
|
455
|
-
"type": "tuple"
|
481
|
+
"internalType": "contract IERC20Metadata",
|
482
|
+
"name": "token",
|
483
|
+
"type": "address"
|
456
484
|
}
|
457
485
|
],
|
458
486
|
"stateMutability": "view",
|
459
487
|
"type": "function"
|
460
488
|
},
|
461
489
|
{
|
462
|
-
"inputs": [
|
463
|
-
|
490
|
+
"inputs": [
|
491
|
+
{
|
492
|
+
"internalType": "NftId",
|
493
|
+
"name": "nftId",
|
494
|
+
"type": "uint96"
|
495
|
+
}
|
496
|
+
],
|
497
|
+
"name": "getComponentWallet",
|
464
498
|
"outputs": [
|
465
499
|
{
|
466
|
-
"internalType": "
|
467
|
-
"name": "",
|
500
|
+
"internalType": "address",
|
501
|
+
"name": "wallet",
|
468
502
|
"type": "address"
|
469
503
|
}
|
470
504
|
],
|
@@ -473,12 +507,12 @@
|
|
473
507
|
},
|
474
508
|
{
|
475
509
|
"inputs": [],
|
476
|
-
"name": "
|
510
|
+
"name": "getDistributionService",
|
477
511
|
"outputs": [
|
478
512
|
{
|
479
|
-
"internalType": "
|
480
|
-
"name": "
|
481
|
-
"type": "
|
513
|
+
"internalType": "contract IDistributionService",
|
514
|
+
"name": "",
|
515
|
+
"type": "address"
|
482
516
|
}
|
483
517
|
],
|
484
518
|
"stateMutability": "view",
|
@@ -522,12 +556,54 @@
|
|
522
556
|
},
|
523
557
|
{
|
524
558
|
"inputs": [],
|
525
|
-
"name": "
|
559
|
+
"name": "getInitialInfo",
|
526
560
|
"outputs": [
|
527
561
|
{
|
528
|
-
"
|
529
|
-
|
530
|
-
|
562
|
+
"components": [
|
563
|
+
{
|
564
|
+
"internalType": "NftId",
|
565
|
+
"name": "nftId",
|
566
|
+
"type": "uint96"
|
567
|
+
},
|
568
|
+
{
|
569
|
+
"internalType": "NftId",
|
570
|
+
"name": "parentNftId",
|
571
|
+
"type": "uint96"
|
572
|
+
},
|
573
|
+
{
|
574
|
+
"internalType": "ObjectType",
|
575
|
+
"name": "objectType",
|
576
|
+
"type": "uint8"
|
577
|
+
},
|
578
|
+
{
|
579
|
+
"internalType": "bool",
|
580
|
+
"name": "isInterceptor",
|
581
|
+
"type": "bool"
|
582
|
+
},
|
583
|
+
{
|
584
|
+
"internalType": "address",
|
585
|
+
"name": "objectAddress",
|
586
|
+
"type": "address"
|
587
|
+
},
|
588
|
+
{
|
589
|
+
"internalType": "address",
|
590
|
+
"name": "initialOwner",
|
591
|
+
"type": "address"
|
592
|
+
},
|
593
|
+
{
|
594
|
+
"internalType": "bytes",
|
595
|
+
"name": "data",
|
596
|
+
"type": "bytes"
|
597
|
+
}
|
598
|
+
],
|
599
|
+
"internalType": "struct IRegistry.ObjectInfo",
|
600
|
+
"name": "",
|
601
|
+
"type": "tuple"
|
602
|
+
},
|
603
|
+
{
|
604
|
+
"internalType": "bytes",
|
605
|
+
"name": "data",
|
606
|
+
"type": "bytes"
|
531
607
|
}
|
532
608
|
],
|
533
609
|
"stateMutability": "view",
|
@@ -535,12 +611,12 @@
|
|
535
611
|
},
|
536
612
|
{
|
537
613
|
"inputs": [],
|
538
|
-
"name": "
|
614
|
+
"name": "getInitializedVersion",
|
539
615
|
"outputs": [
|
540
616
|
{
|
541
|
-
"internalType": "
|
542
|
-
"name": "
|
543
|
-
"type": "
|
617
|
+
"internalType": "uint64",
|
618
|
+
"name": "",
|
619
|
+
"type": "uint64"
|
544
620
|
}
|
545
621
|
],
|
546
622
|
"stateMutability": "view",
|
@@ -548,11 +624,11 @@
|
|
548
624
|
},
|
549
625
|
{
|
550
626
|
"inputs": [],
|
551
|
-
"name": "
|
627
|
+
"name": "getKeyValueStore",
|
552
628
|
"outputs": [
|
553
629
|
{
|
554
|
-
"internalType": "
|
555
|
-
"name": "
|
630
|
+
"internalType": "contract IKeyValueStore",
|
631
|
+
"name": "keyValueStore",
|
556
632
|
"type": "address"
|
557
633
|
}
|
558
634
|
],
|
@@ -561,17 +637,30 @@
|
|
561
637
|
},
|
562
638
|
{
|
563
639
|
"inputs": [],
|
564
|
-
"name": "
|
640
|
+
"name": "getNftId",
|
565
641
|
"outputs": [
|
566
642
|
{
|
567
643
|
"internalType": "NftId",
|
568
|
-
"name": "
|
644
|
+
"name": "",
|
569
645
|
"type": "uint96"
|
570
646
|
}
|
571
647
|
],
|
572
648
|
"stateMutability": "view",
|
573
649
|
"type": "function"
|
574
650
|
},
|
651
|
+
{
|
652
|
+
"inputs": [],
|
653
|
+
"name": "getOwner",
|
654
|
+
"outputs": [
|
655
|
+
{
|
656
|
+
"internalType": "address",
|
657
|
+
"name": "owner",
|
658
|
+
"type": "address"
|
659
|
+
}
|
660
|
+
],
|
661
|
+
"stateMutability": "view",
|
662
|
+
"type": "function"
|
663
|
+
},
|
575
664
|
{
|
576
665
|
"inputs": [
|
577
666
|
{
|
@@ -584,11 +673,6 @@
|
|
584
673
|
"outputs": [
|
585
674
|
{
|
586
675
|
"components": [
|
587
|
-
{
|
588
|
-
"internalType": "NftId",
|
589
|
-
"name": "nftId",
|
590
|
-
"type": "uint96"
|
591
|
-
},
|
592
676
|
{
|
593
677
|
"internalType": "NftId",
|
594
678
|
"name": "productNftId",
|
@@ -599,15 +683,20 @@
|
|
599
683
|
"name": "bundleNftId",
|
600
684
|
"type": "uint96"
|
601
685
|
},
|
686
|
+
{
|
687
|
+
"internalType": "ReferralId",
|
688
|
+
"name": "referralId",
|
689
|
+
"type": "bytes8"
|
690
|
+
},
|
602
691
|
{
|
603
692
|
"internalType": "address",
|
604
693
|
"name": "beneficiary",
|
605
694
|
"type": "address"
|
606
695
|
},
|
607
696
|
{
|
608
|
-
"internalType": "
|
609
|
-
"name": "
|
610
|
-
"type": "
|
697
|
+
"internalType": "RiskId",
|
698
|
+
"name": "riskId",
|
699
|
+
"type": "bytes8"
|
611
700
|
},
|
612
701
|
{
|
613
702
|
"internalType": "uint256",
|
@@ -631,13 +720,13 @@
|
|
631
720
|
},
|
632
721
|
{
|
633
722
|
"internalType": "bytes",
|
634
|
-
"name": "
|
723
|
+
"name": "applicationData",
|
635
724
|
"type": "bytes"
|
636
725
|
},
|
637
726
|
{
|
638
|
-
"internalType": "
|
639
|
-
"name": "
|
640
|
-
"type": "
|
727
|
+
"internalType": "bytes",
|
728
|
+
"name": "policyData",
|
729
|
+
"type": "bytes"
|
641
730
|
},
|
642
731
|
{
|
643
732
|
"internalType": "Timestamp",
|
@@ -653,11 +742,6 @@
|
|
653
742
|
"internalType": "Timestamp",
|
654
743
|
"name": "closedAt",
|
655
744
|
"type": "uint40"
|
656
|
-
},
|
657
|
-
{
|
658
|
-
"internalType": "Blocknumber",
|
659
|
-
"name": "updatedIn",
|
660
|
-
"type": "uint32"
|
661
745
|
}
|
662
746
|
],
|
663
747
|
"internalType": "struct IPolicy.PolicyInfo",
|
@@ -680,11 +764,6 @@
|
|
680
764
|
"outputs": [
|
681
765
|
{
|
682
766
|
"components": [
|
683
|
-
{
|
684
|
-
"internalType": "NftId",
|
685
|
-
"name": "nftId",
|
686
|
-
"type": "uint96"
|
687
|
-
},
|
688
767
|
{
|
689
768
|
"internalType": "bool",
|
690
769
|
"name": "isVerifying",
|
@@ -721,61 +800,72 @@
|
|
721
800
|
"inputs": [
|
722
801
|
{
|
723
802
|
"internalType": "NftId",
|
724
|
-
"name": "
|
803
|
+
"name": "componentNftId",
|
804
|
+
"type": "uint96"
|
805
|
+
}
|
806
|
+
],
|
807
|
+
"name": "getProductNftId",
|
808
|
+
"outputs": [
|
809
|
+
{
|
810
|
+
"internalType": "NftId",
|
811
|
+
"name": "productNftId",
|
725
812
|
"type": "uint96"
|
726
813
|
}
|
727
814
|
],
|
728
|
-
"
|
815
|
+
"stateMutability": "view",
|
816
|
+
"type": "function"
|
817
|
+
},
|
818
|
+
{
|
819
|
+
"inputs": [],
|
820
|
+
"name": "getProductService",
|
821
|
+
"outputs": [
|
822
|
+
{
|
823
|
+
"internalType": "contract IProductService",
|
824
|
+
"name": "",
|
825
|
+
"type": "address"
|
826
|
+
}
|
827
|
+
],
|
828
|
+
"stateMutability": "view",
|
829
|
+
"type": "function"
|
830
|
+
},
|
831
|
+
{
|
832
|
+
"inputs": [],
|
833
|
+
"name": "getRegistry",
|
834
|
+
"outputs": [
|
835
|
+
{
|
836
|
+
"internalType": "contract IRegistry",
|
837
|
+
"name": "registry",
|
838
|
+
"type": "address"
|
839
|
+
}
|
840
|
+
],
|
841
|
+
"stateMutability": "view",
|
842
|
+
"type": "function"
|
843
|
+
},
|
844
|
+
{
|
845
|
+
"inputs": [
|
846
|
+
{
|
847
|
+
"internalType": "RiskId",
|
848
|
+
"name": "riskId",
|
849
|
+
"type": "bytes8"
|
850
|
+
}
|
851
|
+
],
|
852
|
+
"name": "getRiskInfo",
|
729
853
|
"outputs": [
|
730
854
|
{
|
731
855
|
"components": [
|
732
856
|
{
|
733
857
|
"internalType": "NftId",
|
734
|
-
"name": "
|
858
|
+
"name": "productNftId",
|
735
859
|
"type": "uint96"
|
736
860
|
},
|
737
861
|
{
|
738
|
-
"internalType": "
|
739
|
-
"name": "
|
740
|
-
"type": "
|
741
|
-
},
|
742
|
-
{
|
743
|
-
"components": [
|
744
|
-
{
|
745
|
-
"internalType": "UFixed",
|
746
|
-
"name": "fractionalFee",
|
747
|
-
"type": "uint256"
|
748
|
-
},
|
749
|
-
{
|
750
|
-
"internalType": "uint256",
|
751
|
-
"name": "fixedFee",
|
752
|
-
"type": "uint256"
|
753
|
-
}
|
754
|
-
],
|
755
|
-
"internalType": "struct Fee",
|
756
|
-
"name": "stakingFee",
|
757
|
-
"type": "tuple"
|
758
|
-
},
|
759
|
-
{
|
760
|
-
"components": [
|
761
|
-
{
|
762
|
-
"internalType": "UFixed",
|
763
|
-
"name": "fractionalFee",
|
764
|
-
"type": "uint256"
|
765
|
-
},
|
766
|
-
{
|
767
|
-
"internalType": "uint256",
|
768
|
-
"name": "fixedFee",
|
769
|
-
"type": "uint256"
|
770
|
-
}
|
771
|
-
],
|
772
|
-
"internalType": "struct Fee",
|
773
|
-
"name": "performanceFee",
|
774
|
-
"type": "tuple"
|
862
|
+
"internalType": "bytes",
|
863
|
+
"name": "data",
|
864
|
+
"type": "bytes"
|
775
865
|
}
|
776
866
|
],
|
777
|
-
"internalType": "struct
|
778
|
-
"name": "
|
867
|
+
"internalType": "struct IRisk.RiskInfo",
|
868
|
+
"name": "info",
|
779
869
|
"type": "tuple"
|
780
870
|
}
|
781
871
|
],
|
@@ -783,12 +873,37 @@
|
|
783
873
|
"type": "function"
|
784
874
|
},
|
785
875
|
{
|
786
|
-
"inputs": [
|
787
|
-
|
876
|
+
"inputs": [
|
877
|
+
{
|
878
|
+
"internalType": "Key32",
|
879
|
+
"name": "key",
|
880
|
+
"type": "bytes32"
|
881
|
+
}
|
882
|
+
],
|
883
|
+
"name": "getState",
|
788
884
|
"outputs": [
|
789
885
|
{
|
790
|
-
"internalType": "
|
791
|
-
"name": "",
|
886
|
+
"internalType": "StateId",
|
887
|
+
"name": "state",
|
888
|
+
"type": "uint8"
|
889
|
+
}
|
890
|
+
],
|
891
|
+
"stateMutability": "view",
|
892
|
+
"type": "function"
|
893
|
+
},
|
894
|
+
{
|
895
|
+
"inputs": [
|
896
|
+
{
|
897
|
+
"internalType": "NftId",
|
898
|
+
"name": "componentNftId",
|
899
|
+
"type": "uint96"
|
900
|
+
}
|
901
|
+
],
|
902
|
+
"name": "getTokenHandler",
|
903
|
+
"outputs": [
|
904
|
+
{
|
905
|
+
"internalType": "contract TokenHandler",
|
906
|
+
"name": "tokenHandler",
|
792
907
|
"type": "address"
|
793
908
|
}
|
794
909
|
],
|
@@ -803,23 +918,18 @@
|
|
803
918
|
"type": "uint96"
|
804
919
|
}
|
805
920
|
],
|
806
|
-
"name": "
|
921
|
+
"name": "getTreasuryInfo",
|
807
922
|
"outputs": [
|
808
923
|
{
|
809
924
|
"components": [
|
810
925
|
{
|
811
926
|
"internalType": "NftId",
|
812
|
-
"name": "
|
813
|
-
"type": "uint96"
|
814
|
-
},
|
815
|
-
{
|
816
|
-
"internalType": "NftId",
|
817
|
-
"name": "distributorNftId",
|
927
|
+
"name": "poolNftId",
|
818
928
|
"type": "uint96"
|
819
929
|
},
|
820
930
|
{
|
821
931
|
"internalType": "NftId",
|
822
|
-
"name": "
|
932
|
+
"name": "distributionNftId",
|
823
933
|
"type": "uint96"
|
824
934
|
},
|
825
935
|
{
|
@@ -828,9 +938,21 @@
|
|
828
938
|
"type": "address"
|
829
939
|
},
|
830
940
|
{
|
831
|
-
"
|
832
|
-
|
833
|
-
|
941
|
+
"components": [
|
942
|
+
{
|
943
|
+
"internalType": "UFixed",
|
944
|
+
"name": "fractionalFee",
|
945
|
+
"type": "uint256"
|
946
|
+
},
|
947
|
+
{
|
948
|
+
"internalType": "uint256",
|
949
|
+
"name": "fixedFee",
|
950
|
+
"type": "uint256"
|
951
|
+
}
|
952
|
+
],
|
953
|
+
"internalType": "struct Fee",
|
954
|
+
"name": "productFee",
|
955
|
+
"type": "tuple"
|
834
956
|
},
|
835
957
|
{
|
836
958
|
"components": [
|
@@ -846,7 +968,7 @@
|
|
846
968
|
}
|
847
969
|
],
|
848
970
|
"internalType": "struct Fee",
|
849
|
-
"name": "
|
971
|
+
"name": "processingFee",
|
850
972
|
"type": "tuple"
|
851
973
|
},
|
852
974
|
{
|
@@ -863,193 +985,69 @@
|
|
863
985
|
}
|
864
986
|
],
|
865
987
|
"internalType": "struct Fee",
|
866
|
-
"name": "
|
988
|
+
"name": "poolFee",
|
989
|
+
"type": "tuple"
|
990
|
+
},
|
991
|
+
{
|
992
|
+
"components": [
|
993
|
+
{
|
994
|
+
"internalType": "UFixed",
|
995
|
+
"name": "fractionalFee",
|
996
|
+
"type": "uint256"
|
997
|
+
},
|
998
|
+
{
|
999
|
+
"internalType": "uint256",
|
1000
|
+
"name": "fixedFee",
|
1001
|
+
"type": "uint256"
|
1002
|
+
}
|
1003
|
+
],
|
1004
|
+
"internalType": "struct Fee",
|
1005
|
+
"name": "stakingFee",
|
1006
|
+
"type": "tuple"
|
1007
|
+
},
|
1008
|
+
{
|
1009
|
+
"components": [
|
1010
|
+
{
|
1011
|
+
"internalType": "UFixed",
|
1012
|
+
"name": "fractionalFee",
|
1013
|
+
"type": "uint256"
|
1014
|
+
},
|
1015
|
+
{
|
1016
|
+
"internalType": "uint256",
|
1017
|
+
"name": "fixedFee",
|
1018
|
+
"type": "uint256"
|
1019
|
+
}
|
1020
|
+
],
|
1021
|
+
"internalType": "struct Fee",
|
1022
|
+
"name": "performanceFee",
|
1023
|
+
"type": "tuple"
|
1024
|
+
},
|
1025
|
+
{
|
1026
|
+
"components": [
|
1027
|
+
{
|
1028
|
+
"internalType": "UFixed",
|
1029
|
+
"name": "fractionalFee",
|
1030
|
+
"type": "uint256"
|
1031
|
+
},
|
1032
|
+
{
|
1033
|
+
"internalType": "uint256",
|
1034
|
+
"name": "fixedFee",
|
1035
|
+
"type": "uint256"
|
1036
|
+
}
|
1037
|
+
],
|
1038
|
+
"internalType": "struct Fee",
|
1039
|
+
"name": "distributionFee",
|
867
1040
|
"type": "tuple"
|
868
1041
|
}
|
869
1042
|
],
|
870
|
-
"internalType": "struct ITreasury.
|
871
|
-
"name": "
|
1043
|
+
"internalType": "struct ITreasury.TreasuryInfo",
|
1044
|
+
"name": "info",
|
872
1045
|
"type": "tuple"
|
873
1046
|
}
|
874
1047
|
],
|
875
1048
|
"stateMutability": "view",
|
876
1049
|
"type": "function"
|
877
1050
|
},
|
878
|
-
{
|
879
|
-
"inputs": [],
|
880
|
-
"name": "getRegistry",
|
881
|
-
"outputs": [
|
882
|
-
{
|
883
|
-
"internalType": "contract IRegistry",
|
884
|
-
"name": "registry",
|
885
|
-
"type": "address"
|
886
|
-
}
|
887
|
-
],
|
888
|
-
"stateMutability": "view",
|
889
|
-
"type": "function"
|
890
|
-
},
|
891
|
-
{
|
892
|
-
"inputs": [
|
893
|
-
{
|
894
|
-
"internalType": "uint256",
|
895
|
-
"name": "idx",
|
896
|
-
"type": "uint256"
|
897
|
-
}
|
898
|
-
],
|
899
|
-
"name": "getRole",
|
900
|
-
"outputs": [
|
901
|
-
{
|
902
|
-
"internalType": "RoleId",
|
903
|
-
"name": "role",
|
904
|
-
"type": "bytes8"
|
905
|
-
}
|
906
|
-
],
|
907
|
-
"stateMutability": "view",
|
908
|
-
"type": "function"
|
909
|
-
},
|
910
|
-
{
|
911
|
-
"inputs": [],
|
912
|
-
"name": "getRoleCount",
|
913
|
-
"outputs": [
|
914
|
-
{
|
915
|
-
"internalType": "uint256",
|
916
|
-
"name": "roles",
|
917
|
-
"type": "uint256"
|
918
|
-
}
|
919
|
-
],
|
920
|
-
"stateMutability": "view",
|
921
|
-
"type": "function"
|
922
|
-
},
|
923
|
-
{
|
924
|
-
"inputs": [
|
925
|
-
{
|
926
|
-
"internalType": "string",
|
927
|
-
"name": "roleName",
|
928
|
-
"type": "string"
|
929
|
-
}
|
930
|
-
],
|
931
|
-
"name": "getRoleId",
|
932
|
-
"outputs": [
|
933
|
-
{
|
934
|
-
"internalType": "RoleId",
|
935
|
-
"name": "role",
|
936
|
-
"type": "bytes8"
|
937
|
-
}
|
938
|
-
],
|
939
|
-
"stateMutability": "pure",
|
940
|
-
"type": "function"
|
941
|
-
},
|
942
|
-
{
|
943
|
-
"inputs": [
|
944
|
-
{
|
945
|
-
"internalType": "RoleId",
|
946
|
-
"name": "role",
|
947
|
-
"type": "bytes8"
|
948
|
-
}
|
949
|
-
],
|
950
|
-
"name": "getRoleInfo",
|
951
|
-
"outputs": [
|
952
|
-
{
|
953
|
-
"components": [
|
954
|
-
{
|
955
|
-
"internalType": "RoleId",
|
956
|
-
"name": "id",
|
957
|
-
"type": "bytes8"
|
958
|
-
},
|
959
|
-
{
|
960
|
-
"internalType": "string",
|
961
|
-
"name": "name",
|
962
|
-
"type": "string"
|
963
|
-
},
|
964
|
-
{
|
965
|
-
"internalType": "bool",
|
966
|
-
"name": "isActive",
|
967
|
-
"type": "bool"
|
968
|
-
}
|
969
|
-
],
|
970
|
-
"internalType": "struct IAccess.RoleInfo",
|
971
|
-
"name": "info",
|
972
|
-
"type": "tuple"
|
973
|
-
}
|
974
|
-
],
|
975
|
-
"stateMutability": "view",
|
976
|
-
"type": "function"
|
977
|
-
},
|
978
|
-
{
|
979
|
-
"inputs": [
|
980
|
-
{
|
981
|
-
"internalType": "RoleId",
|
982
|
-
"name": "role",
|
983
|
-
"type": "bytes8"
|
984
|
-
},
|
985
|
-
{
|
986
|
-
"internalType": "uint256",
|
987
|
-
"name": "idx",
|
988
|
-
"type": "uint256"
|
989
|
-
}
|
990
|
-
],
|
991
|
-
"name": "getRoleMember",
|
992
|
-
"outputs": [
|
993
|
-
{
|
994
|
-
"internalType": "address",
|
995
|
-
"name": "roleMember",
|
996
|
-
"type": "address"
|
997
|
-
}
|
998
|
-
],
|
999
|
-
"stateMutability": "view",
|
1000
|
-
"type": "function"
|
1001
|
-
},
|
1002
|
-
{
|
1003
|
-
"inputs": [
|
1004
|
-
{
|
1005
|
-
"internalType": "RoleId",
|
1006
|
-
"name": "role",
|
1007
|
-
"type": "bytes8"
|
1008
|
-
}
|
1009
|
-
],
|
1010
|
-
"name": "getRoleMemberCount",
|
1011
|
-
"outputs": [
|
1012
|
-
{
|
1013
|
-
"internalType": "uint256",
|
1014
|
-
"name": "roleMembers",
|
1015
|
-
"type": "uint256"
|
1016
|
-
}
|
1017
|
-
],
|
1018
|
-
"stateMutability": "view",
|
1019
|
-
"type": "function"
|
1020
|
-
},
|
1021
|
-
{
|
1022
|
-
"inputs": [
|
1023
|
-
{
|
1024
|
-
"internalType": "NftId",
|
1025
|
-
"name": "componentNftId",
|
1026
|
-
"type": "uint96"
|
1027
|
-
}
|
1028
|
-
],
|
1029
|
-
"name": "getTokenHandler",
|
1030
|
-
"outputs": [
|
1031
|
-
{
|
1032
|
-
"internalType": "contract TokenHandler",
|
1033
|
-
"name": "tokenHandler",
|
1034
|
-
"type": "address"
|
1035
|
-
}
|
1036
|
-
],
|
1037
|
-
"stateMutability": "view",
|
1038
|
-
"type": "function"
|
1039
|
-
},
|
1040
|
-
{
|
1041
|
-
"inputs": [],
|
1042
|
-
"name": "getType",
|
1043
|
-
"outputs": [
|
1044
|
-
{
|
1045
|
-
"internalType": "ObjectType",
|
1046
|
-
"name": "objectType",
|
1047
|
-
"type": "uint8"
|
1048
|
-
}
|
1049
|
-
],
|
1050
|
-
"stateMutability": "pure",
|
1051
|
-
"type": "function"
|
1052
|
-
},
|
1053
1051
|
{
|
1054
1052
|
"inputs": [
|
1055
1053
|
{
|
@@ -1206,49 +1204,49 @@
|
|
1206
1204
|
"type": "tuple"
|
1207
1205
|
}
|
1208
1206
|
],
|
1209
|
-
"stateMutability": "
|
1207
|
+
"stateMutability": "view",
|
1210
1208
|
"type": "function"
|
1211
1209
|
},
|
1212
1210
|
{
|
1213
1211
|
"inputs": [
|
1214
1212
|
{
|
1215
|
-
"internalType": "
|
1216
|
-
"name": "
|
1217
|
-
"type": "
|
1218
|
-
}
|
1213
|
+
"internalType": "NftId",
|
1214
|
+
"name": "productNftId",
|
1215
|
+
"type": "uint96"
|
1216
|
+
}
|
1217
|
+
],
|
1218
|
+
"name": "hasTreasuryInfo",
|
1219
|
+
"outputs": [
|
1219
1220
|
{
|
1220
|
-
"internalType": "
|
1221
|
-
"name": "
|
1222
|
-
"type": "
|
1221
|
+
"internalType": "bool",
|
1222
|
+
"name": "hasInfo",
|
1223
|
+
"type": "bool"
|
1223
1224
|
}
|
1224
1225
|
],
|
1225
|
-
"
|
1226
|
-
"outputs": [],
|
1227
|
-
"stateMutability": "nonpayable",
|
1226
|
+
"stateMutability": "view",
|
1228
1227
|
"type": "function"
|
1229
1228
|
},
|
1230
1229
|
{
|
1231
1230
|
"inputs": [
|
1232
1231
|
{
|
1233
|
-
"internalType": "
|
1234
|
-
"name": "
|
1235
|
-
"type": "
|
1232
|
+
"internalType": "address",
|
1233
|
+
"name": "implementation",
|
1234
|
+
"type": "address"
|
1236
1235
|
},
|
1237
1236
|
{
|
1238
1237
|
"internalType": "address",
|
1239
|
-
"name": "
|
1238
|
+
"name": "activatedBy",
|
1240
1239
|
"type": "address"
|
1241
|
-
}
|
1242
|
-
],
|
1243
|
-
"name": "hasRole",
|
1244
|
-
"outputs": [
|
1240
|
+
},
|
1245
1241
|
{
|
1246
|
-
"internalType": "
|
1247
|
-
"name": "
|
1248
|
-
"type": "
|
1242
|
+
"internalType": "bytes",
|
1243
|
+
"name": "activationData",
|
1244
|
+
"type": "bytes"
|
1249
1245
|
}
|
1250
1246
|
],
|
1251
|
-
"
|
1247
|
+
"name": "initialize",
|
1248
|
+
"outputs": [],
|
1249
|
+
"stateMutability": "nonpayable",
|
1252
1250
|
"type": "function"
|
1253
1251
|
},
|
1254
1252
|
{
|
@@ -1259,7 +1257,7 @@
|
|
1259
1257
|
"type": "uint24"
|
1260
1258
|
}
|
1261
1259
|
],
|
1262
|
-
"name": "
|
1260
|
+
"name": "isInitialized",
|
1263
1261
|
"outputs": [
|
1264
1262
|
{
|
1265
1263
|
"internalType": "bool",
|
@@ -1272,14 +1270,8 @@
|
|
1272
1270
|
},
|
1273
1271
|
{
|
1274
1272
|
"inputs": [],
|
1275
|
-
"name": "
|
1276
|
-
"outputs": [
|
1277
|
-
{
|
1278
|
-
"internalType": "NftId",
|
1279
|
-
"name": "nftId",
|
1280
|
-
"type": "uint96"
|
1281
|
-
}
|
1282
|
-
],
|
1273
|
+
"name": "linkToRegisteredNftId",
|
1274
|
+
"outputs": [],
|
1283
1275
|
"stateMutability": "nonpayable",
|
1284
1276
|
"type": "function"
|
1285
1277
|
},
|
@@ -1290,15 +1282,15 @@
|
|
1290
1282
|
"name": "nftId",
|
1291
1283
|
"type": "uint96"
|
1292
1284
|
},
|
1293
|
-
{
|
1294
|
-
"internalType": "ObjectType",
|
1295
|
-
"name": "objectType",
|
1296
|
-
"type": "uint8"
|
1297
|
-
},
|
1298
1285
|
{
|
1299
1286
|
"internalType": "contract IERC20Metadata",
|
1300
1287
|
"name": "token",
|
1301
1288
|
"type": "address"
|
1289
|
+
},
|
1290
|
+
{
|
1291
|
+
"internalType": "address",
|
1292
|
+
"name": "wallet",
|
1293
|
+
"type": "address"
|
1302
1294
|
}
|
1303
1295
|
],
|
1304
1296
|
"name": "registerComponent",
|
@@ -1310,46 +1302,24 @@
|
|
1310
1302
|
"inputs": [
|
1311
1303
|
{
|
1312
1304
|
"internalType": "NftId",
|
1313
|
-
"name": "
|
1305
|
+
"name": "nftId",
|
1314
1306
|
"type": "uint96"
|
1315
1307
|
},
|
1316
|
-
{
|
1317
|
-
"internalType": "address",
|
1318
|
-
"name": "wallet",
|
1319
|
-
"type": "address"
|
1320
|
-
},
|
1321
1308
|
{
|
1322
1309
|
"components": [
|
1323
1310
|
{
|
1324
|
-
"internalType": "
|
1325
|
-
"name": "
|
1326
|
-
"type": "
|
1311
|
+
"internalType": "bool",
|
1312
|
+
"name": "isVerifying",
|
1313
|
+
"type": "bool"
|
1327
1314
|
},
|
1328
|
-
{
|
1329
|
-
"internalType": "uint256",
|
1330
|
-
"name": "fixedFee",
|
1331
|
-
"type": "uint256"
|
1332
|
-
}
|
1333
|
-
],
|
1334
|
-
"internalType": "struct Fee",
|
1335
|
-
"name": "stakingFee",
|
1336
|
-
"type": "tuple"
|
1337
|
-
},
|
1338
|
-
{
|
1339
|
-
"components": [
|
1340
1315
|
{
|
1341
1316
|
"internalType": "UFixed",
|
1342
|
-
"name": "
|
1343
|
-
"type": "uint256"
|
1344
|
-
},
|
1345
|
-
{
|
1346
|
-
"internalType": "uint256",
|
1347
|
-
"name": "fixedFee",
|
1317
|
+
"name": "collateralizationLevel",
|
1348
1318
|
"type": "uint256"
|
1349
1319
|
}
|
1350
1320
|
],
|
1351
|
-
"internalType": "struct
|
1352
|
-
"name": "
|
1321
|
+
"internalType": "struct IPool.PoolInfo",
|
1322
|
+
"name": "info",
|
1353
1323
|
"type": "tuple"
|
1354
1324
|
}
|
1355
1325
|
],
|
@@ -1358,29 +1328,6 @@
|
|
1358
1328
|
"stateMutability": "nonpayable",
|
1359
1329
|
"type": "function"
|
1360
1330
|
},
|
1361
|
-
{
|
1362
|
-
"inputs": [
|
1363
|
-
{
|
1364
|
-
"internalType": "NftId",
|
1365
|
-
"name": "poolNftId",
|
1366
|
-
"type": "uint96"
|
1367
|
-
},
|
1368
|
-
{
|
1369
|
-
"internalType": "bool",
|
1370
|
-
"name": "isVerifying",
|
1371
|
-
"type": "bool"
|
1372
|
-
},
|
1373
|
-
{
|
1374
|
-
"internalType": "UFixed",
|
1375
|
-
"name": "collateralizationLevel",
|
1376
|
-
"type": "uint256"
|
1377
|
-
}
|
1378
|
-
],
|
1379
|
-
"name": "registerPool",
|
1380
|
-
"outputs": [],
|
1381
|
-
"stateMutability": "nonpayable",
|
1382
|
-
"type": "function"
|
1383
|
-
},
|
1384
1331
|
{
|
1385
1332
|
"inputs": [
|
1386
1333
|
{
|
@@ -1388,62 +1335,132 @@
|
|
1388
1335
|
"name": "productNftId",
|
1389
1336
|
"type": "uint96"
|
1390
1337
|
},
|
1391
|
-
{
|
1392
|
-
"internalType": "NftId",
|
1393
|
-
"name": "distributorNftId",
|
1394
|
-
"type": "uint96"
|
1395
|
-
},
|
1396
|
-
{
|
1397
|
-
"internalType": "NftId",
|
1398
|
-
"name": "poolNftId",
|
1399
|
-
"type": "uint96"
|
1400
|
-
},
|
1401
|
-
{
|
1402
|
-
"internalType": "contract IERC20Metadata",
|
1403
|
-
"name": "token",
|
1404
|
-
"type": "address"
|
1405
|
-
},
|
1406
|
-
{
|
1407
|
-
"internalType": "address",
|
1408
|
-
"name": "wallet",
|
1409
|
-
"type": "address"
|
1410
|
-
},
|
1411
1338
|
{
|
1412
1339
|
"components": [
|
1413
1340
|
{
|
1414
|
-
"internalType": "
|
1415
|
-
"name": "
|
1416
|
-
"type": "
|
1417
|
-
},
|
1341
|
+
"internalType": "NftId",
|
1342
|
+
"name": "poolNftId",
|
1343
|
+
"type": "uint96"
|
1344
|
+
},
|
1418
1345
|
{
|
1419
|
-
"internalType": "
|
1420
|
-
"name": "
|
1421
|
-
"type": "
|
1422
|
-
}
|
1423
|
-
],
|
1424
|
-
"internalType": "struct Fee",
|
1425
|
-
"name": "policyFee",
|
1426
|
-
"type": "tuple"
|
1427
|
-
},
|
1428
|
-
{
|
1429
|
-
"components": [
|
1346
|
+
"internalType": "NftId",
|
1347
|
+
"name": "distributionNftId",
|
1348
|
+
"type": "uint96"
|
1349
|
+
},
|
1430
1350
|
{
|
1431
|
-
"internalType": "
|
1432
|
-
"name": "
|
1433
|
-
"type": "
|
1351
|
+
"internalType": "contract IERC20Metadata",
|
1352
|
+
"name": "token",
|
1353
|
+
"type": "address"
|
1434
1354
|
},
|
1435
1355
|
{
|
1436
|
-
"
|
1437
|
-
|
1438
|
-
|
1356
|
+
"components": [
|
1357
|
+
{
|
1358
|
+
"internalType": "UFixed",
|
1359
|
+
"name": "fractionalFee",
|
1360
|
+
"type": "uint256"
|
1361
|
+
},
|
1362
|
+
{
|
1363
|
+
"internalType": "uint256",
|
1364
|
+
"name": "fixedFee",
|
1365
|
+
"type": "uint256"
|
1366
|
+
}
|
1367
|
+
],
|
1368
|
+
"internalType": "struct Fee",
|
1369
|
+
"name": "productFee",
|
1370
|
+
"type": "tuple"
|
1371
|
+
},
|
1372
|
+
{
|
1373
|
+
"components": [
|
1374
|
+
{
|
1375
|
+
"internalType": "UFixed",
|
1376
|
+
"name": "fractionalFee",
|
1377
|
+
"type": "uint256"
|
1378
|
+
},
|
1379
|
+
{
|
1380
|
+
"internalType": "uint256",
|
1381
|
+
"name": "fixedFee",
|
1382
|
+
"type": "uint256"
|
1383
|
+
}
|
1384
|
+
],
|
1385
|
+
"internalType": "struct Fee",
|
1386
|
+
"name": "processingFee",
|
1387
|
+
"type": "tuple"
|
1388
|
+
},
|
1389
|
+
{
|
1390
|
+
"components": [
|
1391
|
+
{
|
1392
|
+
"internalType": "UFixed",
|
1393
|
+
"name": "fractionalFee",
|
1394
|
+
"type": "uint256"
|
1395
|
+
},
|
1396
|
+
{
|
1397
|
+
"internalType": "uint256",
|
1398
|
+
"name": "fixedFee",
|
1399
|
+
"type": "uint256"
|
1400
|
+
}
|
1401
|
+
],
|
1402
|
+
"internalType": "struct Fee",
|
1403
|
+
"name": "poolFee",
|
1404
|
+
"type": "tuple"
|
1405
|
+
},
|
1406
|
+
{
|
1407
|
+
"components": [
|
1408
|
+
{
|
1409
|
+
"internalType": "UFixed",
|
1410
|
+
"name": "fractionalFee",
|
1411
|
+
"type": "uint256"
|
1412
|
+
},
|
1413
|
+
{
|
1414
|
+
"internalType": "uint256",
|
1415
|
+
"name": "fixedFee",
|
1416
|
+
"type": "uint256"
|
1417
|
+
}
|
1418
|
+
],
|
1419
|
+
"internalType": "struct Fee",
|
1420
|
+
"name": "stakingFee",
|
1421
|
+
"type": "tuple"
|
1422
|
+
},
|
1423
|
+
{
|
1424
|
+
"components": [
|
1425
|
+
{
|
1426
|
+
"internalType": "UFixed",
|
1427
|
+
"name": "fractionalFee",
|
1428
|
+
"type": "uint256"
|
1429
|
+
},
|
1430
|
+
{
|
1431
|
+
"internalType": "uint256",
|
1432
|
+
"name": "fixedFee",
|
1433
|
+
"type": "uint256"
|
1434
|
+
}
|
1435
|
+
],
|
1436
|
+
"internalType": "struct Fee",
|
1437
|
+
"name": "performanceFee",
|
1438
|
+
"type": "tuple"
|
1439
|
+
},
|
1440
|
+
{
|
1441
|
+
"components": [
|
1442
|
+
{
|
1443
|
+
"internalType": "UFixed",
|
1444
|
+
"name": "fractionalFee",
|
1445
|
+
"type": "uint256"
|
1446
|
+
},
|
1447
|
+
{
|
1448
|
+
"internalType": "uint256",
|
1449
|
+
"name": "fixedFee",
|
1450
|
+
"type": "uint256"
|
1451
|
+
}
|
1452
|
+
],
|
1453
|
+
"internalType": "struct Fee",
|
1454
|
+
"name": "distributionFee",
|
1455
|
+
"type": "tuple"
|
1439
1456
|
}
|
1440
1457
|
],
|
1441
|
-
"internalType": "struct
|
1442
|
-
"name": "
|
1458
|
+
"internalType": "struct ITreasury.TreasuryInfo",
|
1459
|
+
"name": "info",
|
1443
1460
|
"type": "tuple"
|
1444
1461
|
}
|
1445
1462
|
],
|
1446
|
-
"name": "
|
1463
|
+
"name": "registerProductSetup",
|
1447
1464
|
"outputs": [],
|
1448
1465
|
"stateMutability": "nonpayable",
|
1449
1466
|
"type": "function"
|
@@ -1475,53 +1492,33 @@
|
|
1475
1492
|
{
|
1476
1493
|
"inputs": [
|
1477
1494
|
{
|
1478
|
-
"internalType": "
|
1479
|
-
"name": "
|
1480
|
-
"type": "
|
1495
|
+
"internalType": "NftId",
|
1496
|
+
"name": "nftId",
|
1497
|
+
"type": "uint96"
|
1481
1498
|
},
|
1482
|
-
{
|
1483
|
-
"internalType": "address",
|
1484
|
-
"name": "member",
|
1485
|
-
"type": "address"
|
1486
|
-
}
|
1487
|
-
],
|
1488
|
-
"name": "revokeRole",
|
1489
|
-
"outputs": [],
|
1490
|
-
"stateMutability": "nonpayable",
|
1491
|
-
"type": "function"
|
1492
|
-
},
|
1493
|
-
{
|
1494
|
-
"inputs": [
|
1495
|
-
{
|
1496
|
-
"internalType": "RoleId",
|
1497
|
-
"name": "role",
|
1498
|
-
"type": "bytes8"
|
1499
|
-
}
|
1500
|
-
],
|
1501
|
-
"name": "roleExists",
|
1502
|
-
"outputs": [
|
1503
|
-
{
|
1504
|
-
"internalType": "bool",
|
1505
|
-
"name": "",
|
1506
|
-
"type": "bool"
|
1507
|
-
}
|
1508
|
-
],
|
1509
|
-
"stateMutability": "view",
|
1510
|
-
"type": "function"
|
1511
|
-
},
|
1512
|
-
{
|
1513
|
-
"inputs": [
|
1514
1499
|
{
|
1515
1500
|
"components": [
|
1516
1501
|
{
|
1517
1502
|
"internalType": "NftId",
|
1518
|
-
"name": "
|
1503
|
+
"name": "poolNftId",
|
1519
1504
|
"type": "uint96"
|
1520
1505
|
},
|
1521
1506
|
{
|
1522
|
-
"
|
1523
|
-
|
1524
|
-
|
1507
|
+
"components": [
|
1508
|
+
{
|
1509
|
+
"internalType": "UFixed",
|
1510
|
+
"name": "fractionalFee",
|
1511
|
+
"type": "uint256"
|
1512
|
+
},
|
1513
|
+
{
|
1514
|
+
"internalType": "uint256",
|
1515
|
+
"name": "fixedFee",
|
1516
|
+
"type": "uint256"
|
1517
|
+
}
|
1518
|
+
],
|
1519
|
+
"internalType": "struct Fee",
|
1520
|
+
"name": "fee",
|
1521
|
+
"type": "tuple"
|
1525
1522
|
},
|
1526
1523
|
{
|
1527
1524
|
"internalType": "bytes",
|
@@ -1566,49 +1563,13 @@
|
|
1566
1563
|
},
|
1567
1564
|
{
|
1568
1565
|
"inputs": [
|
1569
|
-
{
|
1570
|
-
"components": [
|
1571
|
-
{
|
1572
|
-
"internalType": "NftId",
|
1573
|
-
"name": "nftId",
|
1574
|
-
"type": "uint96"
|
1575
|
-
},
|
1576
|
-
{
|
1577
|
-
"internalType": "StateId",
|
1578
|
-
"name": "state",
|
1579
|
-
"type": "uint8"
|
1580
|
-
},
|
1581
|
-
{
|
1582
|
-
"internalType": "contract IERC20Metadata",
|
1583
|
-
"name": "token",
|
1584
|
-
"type": "address"
|
1585
|
-
}
|
1586
|
-
],
|
1587
|
-
"internalType": "struct IComponent.ComponentInfo",
|
1588
|
-
"name": "info",
|
1589
|
-
"type": "tuple"
|
1590
|
-
}
|
1591
|
-
],
|
1592
|
-
"name": "setComponentInfo",
|
1593
|
-
"outputs": [
|
1594
1566
|
{
|
1595
1567
|
"internalType": "NftId",
|
1596
|
-
"name": "
|
1568
|
+
"name": "policyNftId",
|
1597
1569
|
"type": "uint96"
|
1598
|
-
}
|
1599
|
-
],
|
1600
|
-
"stateMutability": "nonpayable",
|
1601
|
-
"type": "function"
|
1602
|
-
},
|
1603
|
-
{
|
1604
|
-
"inputs": [
|
1570
|
+
},
|
1605
1571
|
{
|
1606
1572
|
"components": [
|
1607
|
-
{
|
1608
|
-
"internalType": "NftId",
|
1609
|
-
"name": "nftId",
|
1610
|
-
"type": "uint96"
|
1611
|
-
},
|
1612
1573
|
{
|
1613
1574
|
"internalType": "NftId",
|
1614
1575
|
"name": "productNftId",
|
@@ -1619,15 +1580,20 @@
|
|
1619
1580
|
"name": "bundleNftId",
|
1620
1581
|
"type": "uint96"
|
1621
1582
|
},
|
1583
|
+
{
|
1584
|
+
"internalType": "ReferralId",
|
1585
|
+
"name": "referralId",
|
1586
|
+
"type": "bytes8"
|
1587
|
+
},
|
1622
1588
|
{
|
1623
1589
|
"internalType": "address",
|
1624
1590
|
"name": "beneficiary",
|
1625
1591
|
"type": "address"
|
1626
1592
|
},
|
1627
1593
|
{
|
1628
|
-
"internalType": "
|
1629
|
-
"name": "
|
1630
|
-
"type": "
|
1594
|
+
"internalType": "RiskId",
|
1595
|
+
"name": "riskId",
|
1596
|
+
"type": "bytes8"
|
1631
1597
|
},
|
1632
1598
|
{
|
1633
1599
|
"internalType": "uint256",
|
@@ -1651,13 +1617,13 @@
|
|
1651
1617
|
},
|
1652
1618
|
{
|
1653
1619
|
"internalType": "bytes",
|
1654
|
-
"name": "
|
1620
|
+
"name": "applicationData",
|
1655
1621
|
"type": "bytes"
|
1656
1622
|
},
|
1657
1623
|
{
|
1658
|
-
"internalType": "
|
1659
|
-
"name": "
|
1660
|
-
"type": "
|
1624
|
+
"internalType": "bytes",
|
1625
|
+
"name": "policyData",
|
1626
|
+
"type": "bytes"
|
1661
1627
|
},
|
1662
1628
|
{
|
1663
1629
|
"internalType": "Timestamp",
|
@@ -1673,15 +1639,10 @@
|
|
1673
1639
|
"internalType": "Timestamp",
|
1674
1640
|
"name": "closedAt",
|
1675
1641
|
"type": "uint40"
|
1676
|
-
},
|
1677
|
-
{
|
1678
|
-
"internalType": "Blocknumber",
|
1679
|
-
"name": "updatedIn",
|
1680
|
-
"type": "uint32"
|
1681
1642
|
}
|
1682
1643
|
],
|
1683
1644
|
"internalType": "struct IPolicy.PolicyInfo",
|
1684
|
-
"name": "
|
1645
|
+
"name": "info",
|
1685
1646
|
"type": "tuple"
|
1686
1647
|
}
|
1687
1648
|
],
|
@@ -1693,46 +1654,29 @@
|
|
1693
1654
|
{
|
1694
1655
|
"inputs": [
|
1695
1656
|
{
|
1696
|
-
"internalType": "
|
1697
|
-
"name": "
|
1698
|
-
"type": "
|
1699
|
-
},
|
1700
|
-
{
|
1701
|
-
"components": [
|
1702
|
-
{
|
1703
|
-
"internalType": "UFixed",
|
1704
|
-
"name": "fractionalFee",
|
1705
|
-
"type": "uint256"
|
1706
|
-
},
|
1707
|
-
{
|
1708
|
-
"internalType": "uint256",
|
1709
|
-
"name": "fixedFee",
|
1710
|
-
"type": "uint256"
|
1711
|
-
}
|
1712
|
-
],
|
1713
|
-
"internalType": "struct Fee",
|
1714
|
-
"name": "stakingFee",
|
1715
|
-
"type": "tuple"
|
1657
|
+
"internalType": "RiskId",
|
1658
|
+
"name": "riskId",
|
1659
|
+
"type": "bytes8"
|
1716
1660
|
},
|
1717
1661
|
{
|
1718
1662
|
"components": [
|
1719
1663
|
{
|
1720
|
-
"internalType": "
|
1721
|
-
"name": "
|
1722
|
-
"type": "
|
1664
|
+
"internalType": "NftId",
|
1665
|
+
"name": "productNftId",
|
1666
|
+
"type": "uint96"
|
1723
1667
|
},
|
1724
1668
|
{
|
1725
|
-
"internalType": "
|
1726
|
-
"name": "
|
1727
|
-
"type": "
|
1669
|
+
"internalType": "bytes",
|
1670
|
+
"name": "data",
|
1671
|
+
"type": "bytes"
|
1728
1672
|
}
|
1729
1673
|
],
|
1730
|
-
"internalType": "struct
|
1731
|
-
"name": "
|
1674
|
+
"internalType": "struct IRisk.RiskInfo",
|
1675
|
+
"name": "info",
|
1732
1676
|
"type": "tuple"
|
1733
1677
|
}
|
1734
1678
|
],
|
1735
|
-
"name": "
|
1679
|
+
"name": "setRiskInfo",
|
1736
1680
|
"outputs": [],
|
1737
1681
|
"stateMutability": "nonpayable",
|
1738
1682
|
"type": "function"
|
@@ -1747,57 +1691,129 @@
|
|
1747
1691
|
{
|
1748
1692
|
"components": [
|
1749
1693
|
{
|
1750
|
-
"internalType": "
|
1751
|
-
"name": "
|
1752
|
-
"type": "
|
1694
|
+
"internalType": "NftId",
|
1695
|
+
"name": "poolNftId",
|
1696
|
+
"type": "uint96"
|
1753
1697
|
},
|
1754
1698
|
{
|
1755
|
-
"internalType": "
|
1756
|
-
"name": "
|
1757
|
-
"type": "
|
1758
|
-
}
|
1759
|
-
],
|
1760
|
-
"internalType": "struct Fee",
|
1761
|
-
"name": "policyFee",
|
1762
|
-
"type": "tuple"
|
1763
|
-
},
|
1764
|
-
{
|
1765
|
-
"components": [
|
1699
|
+
"internalType": "NftId",
|
1700
|
+
"name": "distributionNftId",
|
1701
|
+
"type": "uint96"
|
1702
|
+
},
|
1766
1703
|
{
|
1767
|
-
"internalType": "
|
1768
|
-
"name": "
|
1769
|
-
"type": "
|
1704
|
+
"internalType": "contract IERC20Metadata",
|
1705
|
+
"name": "token",
|
1706
|
+
"type": "address"
|
1770
1707
|
},
|
1771
1708
|
{
|
1772
|
-
"
|
1773
|
-
|
1774
|
-
|
1709
|
+
"components": [
|
1710
|
+
{
|
1711
|
+
"internalType": "UFixed",
|
1712
|
+
"name": "fractionalFee",
|
1713
|
+
"type": "uint256"
|
1714
|
+
},
|
1715
|
+
{
|
1716
|
+
"internalType": "uint256",
|
1717
|
+
"name": "fixedFee",
|
1718
|
+
"type": "uint256"
|
1719
|
+
}
|
1720
|
+
],
|
1721
|
+
"internalType": "struct Fee",
|
1722
|
+
"name": "productFee",
|
1723
|
+
"type": "tuple"
|
1724
|
+
},
|
1725
|
+
{
|
1726
|
+
"components": [
|
1727
|
+
{
|
1728
|
+
"internalType": "UFixed",
|
1729
|
+
"name": "fractionalFee",
|
1730
|
+
"type": "uint256"
|
1731
|
+
},
|
1732
|
+
{
|
1733
|
+
"internalType": "uint256",
|
1734
|
+
"name": "fixedFee",
|
1735
|
+
"type": "uint256"
|
1736
|
+
}
|
1737
|
+
],
|
1738
|
+
"internalType": "struct Fee",
|
1739
|
+
"name": "processingFee",
|
1740
|
+
"type": "tuple"
|
1741
|
+
},
|
1742
|
+
{
|
1743
|
+
"components": [
|
1744
|
+
{
|
1745
|
+
"internalType": "UFixed",
|
1746
|
+
"name": "fractionalFee",
|
1747
|
+
"type": "uint256"
|
1748
|
+
},
|
1749
|
+
{
|
1750
|
+
"internalType": "uint256",
|
1751
|
+
"name": "fixedFee",
|
1752
|
+
"type": "uint256"
|
1753
|
+
}
|
1754
|
+
],
|
1755
|
+
"internalType": "struct Fee",
|
1756
|
+
"name": "poolFee",
|
1757
|
+
"type": "tuple"
|
1758
|
+
},
|
1759
|
+
{
|
1760
|
+
"components": [
|
1761
|
+
{
|
1762
|
+
"internalType": "UFixed",
|
1763
|
+
"name": "fractionalFee",
|
1764
|
+
"type": "uint256"
|
1765
|
+
},
|
1766
|
+
{
|
1767
|
+
"internalType": "uint256",
|
1768
|
+
"name": "fixedFee",
|
1769
|
+
"type": "uint256"
|
1770
|
+
}
|
1771
|
+
],
|
1772
|
+
"internalType": "struct Fee",
|
1773
|
+
"name": "stakingFee",
|
1774
|
+
"type": "tuple"
|
1775
|
+
},
|
1776
|
+
{
|
1777
|
+
"components": [
|
1778
|
+
{
|
1779
|
+
"internalType": "UFixed",
|
1780
|
+
"name": "fractionalFee",
|
1781
|
+
"type": "uint256"
|
1782
|
+
},
|
1783
|
+
{
|
1784
|
+
"internalType": "uint256",
|
1785
|
+
"name": "fixedFee",
|
1786
|
+
"type": "uint256"
|
1787
|
+
}
|
1788
|
+
],
|
1789
|
+
"internalType": "struct Fee",
|
1790
|
+
"name": "performanceFee",
|
1791
|
+
"type": "tuple"
|
1792
|
+
},
|
1793
|
+
{
|
1794
|
+
"components": [
|
1795
|
+
{
|
1796
|
+
"internalType": "UFixed",
|
1797
|
+
"name": "fractionalFee",
|
1798
|
+
"type": "uint256"
|
1799
|
+
},
|
1800
|
+
{
|
1801
|
+
"internalType": "uint256",
|
1802
|
+
"name": "fixedFee",
|
1803
|
+
"type": "uint256"
|
1804
|
+
}
|
1805
|
+
],
|
1806
|
+
"internalType": "struct Fee",
|
1807
|
+
"name": "distributionFee",
|
1808
|
+
"type": "tuple"
|
1775
1809
|
}
|
1776
1810
|
],
|
1777
|
-
"internalType": "struct
|
1778
|
-
"name": "
|
1811
|
+
"internalType": "struct ITreasury.TreasuryInfo",
|
1812
|
+
"name": "info",
|
1779
1813
|
"type": "tuple"
|
1780
1814
|
}
|
1781
1815
|
],
|
1782
|
-
"name": "
|
1783
|
-
"outputs": [],
|
1784
|
-
"stateMutability": "nonpayable",
|
1785
|
-
"type": "function"
|
1786
|
-
},
|
1787
|
-
{
|
1788
|
-
"inputs": [
|
1789
|
-
{
|
1790
|
-
"internalType": "RoleId",
|
1791
|
-
"name": "role",
|
1792
|
-
"type": "bytes8"
|
1793
|
-
},
|
1794
|
-
{
|
1795
|
-
"internalType": "bool",
|
1796
|
-
"name": "active",
|
1797
|
-
"type": "bool"
|
1798
|
-
}
|
1799
|
-
],
|
1800
|
-
"name": "setRoleState",
|
1816
|
+
"name": "setTreasuryInfo",
|
1801
1817
|
"outputs": [],
|
1802
1818
|
"stateMutability": "nonpayable",
|
1803
1819
|
"type": "function"
|
@@ -1825,26 +1841,25 @@
|
|
1825
1841
|
"inputs": [
|
1826
1842
|
{
|
1827
1843
|
"internalType": "NftId",
|
1828
|
-
"name": "
|
1844
|
+
"name": "nftId",
|
1829
1845
|
"type": "uint96"
|
1830
|
-
}
|
1831
|
-
],
|
1832
|
-
"name": "toBundleKey32",
|
1833
|
-
"outputs": [
|
1846
|
+
},
|
1834
1847
|
{
|
1835
|
-
"internalType": "
|
1836
|
-
"name": "
|
1837
|
-
"type": "
|
1848
|
+
"internalType": "StateId",
|
1849
|
+
"name": "state",
|
1850
|
+
"type": "uint8"
|
1838
1851
|
}
|
1839
1852
|
],
|
1840
|
-
"
|
1853
|
+
"name": "updateBundleState",
|
1854
|
+
"outputs": [],
|
1855
|
+
"stateMutability": "nonpayable",
|
1841
1856
|
"type": "function"
|
1842
1857
|
},
|
1843
1858
|
{
|
1844
1859
|
"inputs": [
|
1845
1860
|
{
|
1846
1861
|
"internalType": "NftId",
|
1847
|
-
"name": "
|
1862
|
+
"name": "nftId",
|
1848
1863
|
"type": "uint96"
|
1849
1864
|
},
|
1850
1865
|
{
|
@@ -1853,7 +1868,66 @@
|
|
1853
1868
|
"type": "uint8"
|
1854
1869
|
}
|
1855
1870
|
],
|
1856
|
-
"name": "
|
1871
|
+
"name": "updatePolicyState",
|
1872
|
+
"outputs": [],
|
1873
|
+
"stateMutability": "nonpayable",
|
1874
|
+
"type": "function"
|
1875
|
+
},
|
1876
|
+
{
|
1877
|
+
"inputs": [
|
1878
|
+
{
|
1879
|
+
"internalType": "RiskId",
|
1880
|
+
"name": "riskId",
|
1881
|
+
"type": "bytes8"
|
1882
|
+
},
|
1883
|
+
{
|
1884
|
+
"internalType": "StateId",
|
1885
|
+
"name": "state",
|
1886
|
+
"type": "uint8"
|
1887
|
+
}
|
1888
|
+
],
|
1889
|
+
"name": "updateRiskState",
|
1890
|
+
"outputs": [],
|
1891
|
+
"stateMutability": "nonpayable",
|
1892
|
+
"type": "function"
|
1893
|
+
},
|
1894
|
+
{
|
1895
|
+
"inputs": [
|
1896
|
+
{
|
1897
|
+
"internalType": "Key32",
|
1898
|
+
"name": "key",
|
1899
|
+
"type": "bytes32"
|
1900
|
+
},
|
1901
|
+
{
|
1902
|
+
"internalType": "StateId",
|
1903
|
+
"name": "state",
|
1904
|
+
"type": "uint8"
|
1905
|
+
}
|
1906
|
+
],
|
1907
|
+
"name": "updateState",
|
1908
|
+
"outputs": [],
|
1909
|
+
"stateMutability": "nonpayable",
|
1910
|
+
"type": "function"
|
1911
|
+
},
|
1912
|
+
{
|
1913
|
+
"inputs": [
|
1914
|
+
{
|
1915
|
+
"internalType": "address",
|
1916
|
+
"name": "implementation",
|
1917
|
+
"type": "address"
|
1918
|
+
},
|
1919
|
+
{
|
1920
|
+
"internalType": "address",
|
1921
|
+
"name": "activatedBy",
|
1922
|
+
"type": "address"
|
1923
|
+
},
|
1924
|
+
{
|
1925
|
+
"internalType": "bytes",
|
1926
|
+
"name": "upgradeData",
|
1927
|
+
"type": "bytes"
|
1928
|
+
}
|
1929
|
+
],
|
1930
|
+
"name": "upgrade",
|
1857
1931
|
"outputs": [],
|
1858
1932
|
"stateMutability": "nonpayable",
|
1859
1933
|
"type": "function"
|