@etherisc/gif-next 0.0.2-ed4dd55 → 0.0.2-efef0ea-320
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +178 -6
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +4 -0
- package/artifacts/contracts/components/{IPool.sol/IPoolComponent.json → BaseComponent.sol/BaseComponent.json} +55 -60
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +405 -0
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +4 -0
- package/artifacts/contracts/{instance/component/IComponent.sol/IComponentContract.json → components/IBaseComponent.sol/IBaseComponent.json} +54 -59
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
- package/artifacts/contracts/{instance/component/ComponentModule.sol/ComponentModule.json → components/IDistributionComponent.sol/IDistributionComponent.json} +164 -151
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +487 -0
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +370 -0
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +417 -34
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +273 -42
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +4 -0
- package/artifacts/contracts/experiment/errors/Require.sol/Require.json +105 -0
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +4 -0
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +105 -0
- 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 +4 -0
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +59 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +124 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +74 -0
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +124 -0
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +207 -0
- 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/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1427 -271
- package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +4 -0
- package/artifacts/contracts/instance/{component/IComponent.sol → IInstanceLinked.sol}/IInstanceLinked.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +1827 -364
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +387 -0
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +113 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +560 -0
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.json +115 -0
- package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +4 -0
- package/artifacts/contracts/instance/base/IService.sol/IService.json +341 -0
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +463 -0
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +710 -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/base/ModuleBase.sol/ModuleBase.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.json +10 -0
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +387 -0
- package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +4 -0
- package/artifacts/contracts/instance/{access → module/access}/Access.sol/AccessModule.json +85 -152
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +4 -0
- package/artifacts/contracts/instance/{access → module/access}/IAccess.sol/IAccess.json +1 -1
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +4 -0
- package/artifacts/contracts/instance/{access → module/access}/IAccess.sol/IAccessModule.json +96 -99
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +297 -0
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +4 -0
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.json +10 -0
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +297 -0
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +117 -0
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/instance/{component → module/component}/IComponent.sol/IComponent.json +1 -1
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +117 -0
- 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/distribution/IDistribution.sol/IDistribution.json +10 -0
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.json +10 -0
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +4 -0
- package/artifacts/contracts/instance/{policy → module/policy}/IPolicy.sol/IPolicy.json +1 -1
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +284 -0
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +284 -0
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +4 -0
- package/artifacts/contracts/instance/{pool → module/pool}/IPoolModule.sol/IPool.json +1 -1
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +144 -0
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +144 -0
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +4 -0
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.json +10 -0
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +113 -0
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +131 -0
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +4 -0
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.json +10 -0
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +511 -0
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +4 -0
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +76 -0
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +511 -0
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +618 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +507 -0
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +405 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +366 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +481 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +671 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +630 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +945 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +65 -2
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +115 -89
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +24 -0
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +244 -77
- package/artifacts/contracts/registry/RegistryUpgradeable.sol/RegistryUpgradeable.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryUpgradeable.sol/RegistryUpgradeable.json +724 -0
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +4 -0
- package/artifacts/contracts/shared/ERC165.sol/ERC165.json +35 -0
- package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +4 -0
- package/artifacts/contracts/{registry/IRegistry.sol → shared/IOwnable.sol}/IOwnable.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
- package/artifacts/contracts/{registry/IRegistry.sol → shared/IRegisterable.sol}/IRegisterable.json +22 -67
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +205 -0
- package/artifacts/contracts/shared/Proxy.sol/ProxyDeployer.dbg.json +4 -0
- package/artifacts/contracts/shared/Proxy.sol/ProxyDeployer.json +248 -0
- package/artifacts/contracts/shared/Proxy.sol/ProxyWithProxyAdminGetter.dbg.json +4 -0
- package/artifacts/contracts/shared/Proxy.sol/ProxyWithProxyAdminGetter.json +129 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
- package/artifacts/contracts/{registry/Registry.sol → shared/Registerable.sol}/Registerable.json +23 -68
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
- package/artifacts/contracts/shared/Versionable.sol/Versionable.json +251 -0
- package/artifacts/contracts/shared/VersionableUpgradeable.sol/VersionableUpgradeable.dbg.json +4 -0
- package/artifacts/contracts/shared/VersionableUpgradeable.sol/VersionableUpgradeable.json +228 -0
- package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +4 -0
- package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +405 -0
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
- package/artifacts/contracts/test/TestFee.sol/TestFee.json +119 -0
- package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +4 -0
- package/artifacts/contracts/test/TestPool.sol/TestPool.json +578 -0
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +4 -0
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +575 -0
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +137 -0
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +4 -0
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +116 -0
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
- package/artifacts/contracts/test/TestService.sol/TestService.json +466 -0
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +338 -0
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +218 -0
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +293 -0
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
- package/artifacts/contracts/test/Usdc.sol/USDC.json +338 -0
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -0
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +4 -0
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +174 -0
- 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/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 +111 -0
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +148 -5
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +10 -0
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +92 -0
- package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +99 -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 +30 -0
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/StateId.sol/StateIdLib.json +92 -0
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +4 -0
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +236 -0
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +4 -0
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +479 -0
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
- package/artifacts/contracts/types/Version.sol/VersionLib.json +177 -0
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +30 -0
- package/contracts/components/BaseComponent.sol +94 -0
- package/contracts/components/Distribution.sol +132 -0
- package/contracts/components/IBaseComponent.sol +19 -0
- package/contracts/components/IDistributionComponent.sol +47 -0
- package/contracts/components/IPoolComponent.sol +71 -0
- package/contracts/components/IProductComponent.sol +38 -0
- package/contracts/components/Pool.sol +222 -16
- package/contracts/components/Product.sol +195 -33
- package/contracts/experiment/errors/Require.sol +38 -0
- package/contracts/experiment/errors/Revert.sol +44 -0
- package/contracts/experiment/inheritance/A.sol +8 -11
- package/contracts/experiment/inheritance/B.sol +10 -5
- package/contracts/experiment/inheritance/C.sol +11 -5
- package/contracts/experiment/inheritance/IA.sol +2 -7
- package/contracts/experiment/inheritance/IB.sol +3 -2
- package/contracts/experiment/inheritance/IC.sol +4 -3
- package/contracts/experiment/statemachine/Dummy.sol +27 -0
- package/contracts/experiment/statemachine/ISM.sol +25 -0
- package/contracts/experiment/statemachine/README.md +112 -0
- package/contracts/experiment/statemachine/SM.sol +57 -0
- package/contracts/experiment/statemachine/SimpleStateMachine.sol +31 -0
- package/contracts/experiment/types/TypeA.sol +14 -9
- package/contracts/experiment/types/TypeB.sol +14 -9
- package/contracts/instance/IInstance.sol +41 -8
- package/contracts/instance/IInstanceLinked.sol +8 -0
- package/contracts/instance/Instance.sol +54 -43
- package/contracts/instance/base/ComponentServiceBase.sol +42 -0
- package/contracts/instance/base/IInstanceBase.sol +22 -0
- package/contracts/instance/base/IKeyValueStore.sol +50 -0
- package/contracts/instance/base/ILifecycle.sol +30 -0
- package/contracts/instance/base/IService.sol +15 -0
- package/contracts/instance/base/InstanceBase.sol +91 -0
- package/contracts/instance/base/KeyValueStore.sol +161 -0
- package/contracts/instance/base/Lifecycle.sol +100 -0
- package/contracts/instance/base/ModuleBase.sol +57 -0
- package/contracts/instance/base/ServiceBase.sol +37 -0
- package/contracts/instance/module/access/Access.sol +149 -0
- package/contracts/instance/module/access/IAccess.sol +53 -0
- package/contracts/instance/module/bundle/BundleModule.sol +134 -0
- package/contracts/instance/module/bundle/IBundle.sol +53 -0
- package/contracts/instance/module/component/ComponentModule.sol +70 -0
- package/contracts/instance/module/component/IComponent.sol +28 -0
- 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 +63 -0
- package/contracts/instance/module/policy/PolicyModule.sol +91 -0
- package/contracts/instance/module/pool/IPoolModule.sol +40 -0
- package/contracts/instance/module/pool/PoolModule.sol +90 -0
- package/contracts/instance/module/risk/IRisk.sol +26 -0
- package/contracts/instance/module/risk/RiskModule.sol +62 -0
- package/contracts/instance/module/treasury/ITreasury.sol +82 -0
- package/contracts/instance/module/treasury/TokenHandler.sol +48 -0
- package/contracts/instance/module/treasury/TreasuryModule.sol +138 -0
- package/contracts/instance/service/ComponentOwnerService.sol +157 -0
- package/contracts/instance/service/DistributionService.sol +59 -0
- package/contracts/instance/service/IComponentOwnerService.sol +22 -0
- package/contracts/instance/service/IDistributionService.sol +12 -0
- package/contracts/instance/service/IPoolService.sol +37 -0
- package/contracts/instance/service/IProductService.sol +107 -0
- package/contracts/instance/service/PoolService.sol +149 -0
- package/contracts/instance/service/ProductService.sol +509 -0
- package/contracts/registry/ChainNft.sol +80 -94
- package/contracts/registry/IChainNft.sol +10 -7
- package/contracts/registry/IRegistry.sol +40 -51
- package/contracts/registry/IRegistryLinked.sol +8 -0
- package/contracts/registry/Registry.sol +312 -107
- package/contracts/registry/RegistryUpgradeable.sol +488 -0
- package/contracts/shared/ERC165.sol +21 -0
- package/contracts/shared/IOwnable.sol +6 -0
- package/contracts/shared/IRegisterable.sol +24 -0
- package/contracts/shared/IVersionable.sol +65 -0
- package/contracts/shared/Proxy.sol +94 -0
- package/contracts/shared/Registerable.sol +86 -0
- package/contracts/shared/Versionable.sol +99 -0
- package/contracts/shared/VersionableUpgradeable.sol +136 -0
- package/contracts/test/TestDistribution.sol +21 -0
- package/contracts/test/TestFee.sol +25 -0
- package/contracts/test/TestPool.sol +25 -0
- package/contracts/test/TestProduct.sol +72 -0
- package/contracts/test/TestRegisterable.sol +19 -0
- package/contracts/test/TestRoleId.sol +14 -0
- package/contracts/test/TestService.sol +32 -0
- package/contracts/test/TestToken.sol +26 -0
- package/contracts/test/TestVersion.sol +44 -0
- package/contracts/test/TestVersionable.sol +17 -0
- package/contracts/test/Usdc.sol +26 -0
- package/contracts/types/AddressSet.sol +58 -0
- package/contracts/types/Blocknumber.sol +118 -0
- package/contracts/types/ChainId.sol +24 -10
- package/contracts/types/Fee.sol +56 -0
- package/contracts/types/Key32.sol +45 -0
- package/contracts/types/NftId.sol +55 -8
- package/contracts/types/NftIdSet.sol +60 -0
- package/contracts/types/ObjectType.sol +131 -0
- package/contracts/types/ReferralId.sol +48 -0
- package/contracts/types/RiskId.sol +43 -0
- package/contracts/types/RoleId.sol +38 -0
- package/contracts/types/StateId.sol +101 -0
- package/contracts/types/Timestamp.sol +123 -0
- package/contracts/types/UFixed.sol +209 -0
- package/contracts/types/Version.sol +103 -0
- package/package.json +19 -5
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +0 -4
- package/artifacts/contracts/components/Component.sol/Component.json +0 -179
- package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +0 -4
- package/artifacts/contracts/components/Component.sol/InstanceLinked.json +0 -35
- package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +0 -192
- package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +0 -35
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +0 -50
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +0 -105
- package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +0 -245
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +0 -94
- package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.json +0 -231
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.json +0 -231
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +0 -4
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.json +0 -149
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.json +0 -162
- package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +0 -4
- package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +0 -75
- package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +0 -4
- package/artifacts/contracts/instance/product/IProductService.sol/IProductService.json +0 -114
- package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +0 -4
- package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.json +0 -75
- package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +0 -4
- package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +0 -125
- package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.json +0 -49
- package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +0 -4
- package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +0 -4
- package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +0 -60
- package/contracts/components/Component.sol +0 -62
- package/contracts/components/IPool.sol +0 -9
- package/contracts/components/IProduct.sol +0 -11
- package/contracts/instance/access/Access.sol +0 -218
- package/contracts/instance/access/IAccess.sol +0 -83
- package/contracts/instance/component/ComponentModule.sol +0 -259
- package/contracts/instance/component/IComponent.sol +0 -94
- package/contracts/instance/policy/IPolicy.sol +0 -66
- package/contracts/instance/policy/PolicyModule.sol +0 -106
- package/contracts/instance/pool/IPoolModule.sol +0 -40
- package/contracts/instance/pool/PoolModule.sol +0 -83
- package/contracts/instance/product/IProductService.sol +0 -45
- package/contracts/instance/product/ProductService.sol +0 -105
@@ -10,44 +10,141 @@
|
|
10
10
|
"name": "registry",
|
11
11
|
"type": "address"
|
12
12
|
},
|
13
|
+
{
|
14
|
+
"internalType": "NftId",
|
15
|
+
"name": "instanceNftid",
|
16
|
+
"type": "uint96"
|
17
|
+
},
|
13
18
|
{
|
14
19
|
"internalType": "address",
|
15
|
-
"name": "
|
20
|
+
"name": "token",
|
16
21
|
"type": "address"
|
17
22
|
},
|
18
23
|
{
|
19
24
|
"internalType": "address",
|
20
25
|
"name": "pool",
|
21
26
|
"type": "address"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"internalType": "address",
|
30
|
+
"name": "distribution",
|
31
|
+
"type": "address"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"components": [
|
35
|
+
{
|
36
|
+
"internalType": "UFixed",
|
37
|
+
"name": "fractionalFee",
|
38
|
+
"type": "uint256"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"internalType": "uint256",
|
42
|
+
"name": "fixedFee",
|
43
|
+
"type": "uint256"
|
44
|
+
}
|
45
|
+
],
|
46
|
+
"internalType": "struct Fee",
|
47
|
+
"name": "productFee",
|
48
|
+
"type": "tuple"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"components": [
|
52
|
+
{
|
53
|
+
"internalType": "UFixed",
|
54
|
+
"name": "fractionalFee",
|
55
|
+
"type": "uint256"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"internalType": "uint256",
|
59
|
+
"name": "fixedFee",
|
60
|
+
"type": "uint256"
|
61
|
+
}
|
62
|
+
],
|
63
|
+
"internalType": "struct Fee",
|
64
|
+
"name": "processingFee",
|
65
|
+
"type": "tuple"
|
22
66
|
}
|
23
67
|
],
|
24
68
|
"stateMutability": "nonpayable",
|
25
69
|
"type": "constructor"
|
26
70
|
},
|
27
71
|
{
|
28
|
-
"anonymous": false,
|
29
72
|
"inputs": [
|
30
73
|
{
|
31
|
-
"indexed": false,
|
32
74
|
"internalType": "uint256",
|
33
|
-
"name": "
|
75
|
+
"name": "sumInsuredAmount",
|
34
76
|
"type": "uint256"
|
35
77
|
},
|
36
78
|
{
|
37
|
-
"
|
38
|
-
"
|
39
|
-
"
|
40
|
-
"type": "address"
|
79
|
+
"internalType": "RiskId",
|
80
|
+
"name": "riskId",
|
81
|
+
"type": "bytes8"
|
41
82
|
},
|
42
83
|
{
|
43
|
-
"
|
44
|
-
"
|
45
|
-
"
|
46
|
-
|
84
|
+
"internalType": "uint256",
|
85
|
+
"name": "lifetime",
|
86
|
+
"type": "uint256"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"internalType": "bytes",
|
90
|
+
"name": "applicationData",
|
91
|
+
"type": "bytes"
|
47
92
|
}
|
48
93
|
],
|
49
|
-
"name": "
|
50
|
-
"
|
94
|
+
"name": "calculateNetPremium",
|
95
|
+
"outputs": [
|
96
|
+
{
|
97
|
+
"internalType": "uint256",
|
98
|
+
"name": "netPremiumAmount",
|
99
|
+
"type": "uint256"
|
100
|
+
}
|
101
|
+
],
|
102
|
+
"stateMutability": "view",
|
103
|
+
"type": "function"
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"inputs": [
|
107
|
+
{
|
108
|
+
"internalType": "uint256",
|
109
|
+
"name": "sumInsuredAmount",
|
110
|
+
"type": "uint256"
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"internalType": "RiskId",
|
114
|
+
"name": "riskId",
|
115
|
+
"type": "bytes8"
|
116
|
+
},
|
117
|
+
{
|
118
|
+
"internalType": "uint256",
|
119
|
+
"name": "lifetime",
|
120
|
+
"type": "uint256"
|
121
|
+
},
|
122
|
+
{
|
123
|
+
"internalType": "bytes",
|
124
|
+
"name": "applicationData",
|
125
|
+
"type": "bytes"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"internalType": "ReferralId",
|
129
|
+
"name": "referralId",
|
130
|
+
"type": "bytes8"
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"internalType": "NftId",
|
134
|
+
"name": "bundleNftId",
|
135
|
+
"type": "uint96"
|
136
|
+
}
|
137
|
+
],
|
138
|
+
"name": "calculatePremium",
|
139
|
+
"outputs": [
|
140
|
+
{
|
141
|
+
"internalType": "uint256",
|
142
|
+
"name": "premiumAmount",
|
143
|
+
"type": "uint256"
|
144
|
+
}
|
145
|
+
],
|
146
|
+
"stateMutability": "view",
|
147
|
+
"type": "function"
|
51
148
|
},
|
52
149
|
{
|
53
150
|
"inputs": [],
|
@@ -64,12 +161,12 @@
|
|
64
161
|
},
|
65
162
|
{
|
66
163
|
"inputs": [],
|
67
|
-
"name": "
|
164
|
+
"name": "getDistributionNftId",
|
68
165
|
"outputs": [
|
69
166
|
{
|
70
|
-
"internalType": "
|
71
|
-
"name": "
|
72
|
-
"type": "
|
167
|
+
"internalType": "NftId",
|
168
|
+
"name": "distributionNftId",
|
169
|
+
"type": "uint96"
|
73
170
|
}
|
74
171
|
],
|
75
172
|
"stateMutability": "view",
|
@@ -93,9 +190,9 @@
|
|
93
190
|
"name": "getNftId",
|
94
191
|
"outputs": [
|
95
192
|
{
|
96
|
-
"internalType": "
|
97
|
-
"name": "
|
98
|
-
"type": "
|
193
|
+
"internalType": "NftId",
|
194
|
+
"name": "nftId",
|
195
|
+
"type": "uint96"
|
99
196
|
}
|
100
197
|
],
|
101
198
|
"stateMutability": "view",
|
@@ -119,9 +216,9 @@
|
|
119
216
|
"name": "getParentNftId",
|
120
217
|
"outputs": [
|
121
218
|
{
|
122
|
-
"internalType": "
|
123
|
-
"name": "",
|
124
|
-
"type": "
|
219
|
+
"internalType": "NftId",
|
220
|
+
"name": "nftId",
|
221
|
+
"type": "uint96"
|
125
222
|
}
|
126
223
|
],
|
127
224
|
"stateMutability": "view",
|
@@ -132,9 +229,59 @@
|
|
132
229
|
"name": "getPoolNftId",
|
133
230
|
"outputs": [
|
134
231
|
{
|
135
|
-
"internalType": "
|
232
|
+
"internalType": "NftId",
|
136
233
|
"name": "poolNftId",
|
137
|
-
"type": "
|
234
|
+
"type": "uint96"
|
235
|
+
}
|
236
|
+
],
|
237
|
+
"stateMutability": "view",
|
238
|
+
"type": "function"
|
239
|
+
},
|
240
|
+
{
|
241
|
+
"inputs": [],
|
242
|
+
"name": "getProcessingFee",
|
243
|
+
"outputs": [
|
244
|
+
{
|
245
|
+
"components": [
|
246
|
+
{
|
247
|
+
"internalType": "UFixed",
|
248
|
+
"name": "fractionalFee",
|
249
|
+
"type": "uint256"
|
250
|
+
},
|
251
|
+
{
|
252
|
+
"internalType": "uint256",
|
253
|
+
"name": "fixedFee",
|
254
|
+
"type": "uint256"
|
255
|
+
}
|
256
|
+
],
|
257
|
+
"internalType": "struct Fee",
|
258
|
+
"name": "processingFee",
|
259
|
+
"type": "tuple"
|
260
|
+
}
|
261
|
+
],
|
262
|
+
"stateMutability": "view",
|
263
|
+
"type": "function"
|
264
|
+
},
|
265
|
+
{
|
266
|
+
"inputs": [],
|
267
|
+
"name": "getProductFee",
|
268
|
+
"outputs": [
|
269
|
+
{
|
270
|
+
"components": [
|
271
|
+
{
|
272
|
+
"internalType": "UFixed",
|
273
|
+
"name": "fractionalFee",
|
274
|
+
"type": "uint256"
|
275
|
+
},
|
276
|
+
{
|
277
|
+
"internalType": "uint256",
|
278
|
+
"name": "fixedFee",
|
279
|
+
"type": "uint256"
|
280
|
+
}
|
281
|
+
],
|
282
|
+
"internalType": "struct Fee",
|
283
|
+
"name": "productFee",
|
284
|
+
"type": "tuple"
|
138
285
|
}
|
139
286
|
],
|
140
287
|
"stateMutability": "view",
|
@@ -155,12 +302,12 @@
|
|
155
302
|
},
|
156
303
|
{
|
157
304
|
"inputs": [],
|
158
|
-
"name": "
|
305
|
+
"name": "getToken",
|
159
306
|
"outputs": [
|
160
307
|
{
|
161
|
-
"internalType": "
|
162
|
-
"name": "",
|
163
|
-
"type": "
|
308
|
+
"internalType": "contract IERC20Metadata",
|
309
|
+
"name": "token",
|
310
|
+
"type": "address"
|
164
311
|
}
|
165
312
|
],
|
166
313
|
"stateMutability": "view",
|
@@ -168,12 +315,12 @@
|
|
168
315
|
},
|
169
316
|
{
|
170
317
|
"inputs": [],
|
171
|
-
"name": "
|
318
|
+
"name": "getType",
|
172
319
|
"outputs": [
|
173
320
|
{
|
174
|
-
"internalType": "
|
321
|
+
"internalType": "ObjectType",
|
175
322
|
"name": "",
|
176
|
-
"type": "
|
323
|
+
"type": "uint8"
|
177
324
|
}
|
178
325
|
],
|
179
326
|
"stateMutability": "pure",
|
@@ -181,33 +328,117 @@
|
|
181
328
|
},
|
182
329
|
{
|
183
330
|
"inputs": [],
|
184
|
-
"name": "
|
331
|
+
"name": "getWallet",
|
185
332
|
"outputs": [
|
186
333
|
{
|
187
|
-
"internalType": "
|
188
|
-
"name": "",
|
189
|
-
"type": "
|
334
|
+
"internalType": "address",
|
335
|
+
"name": "walletAddress",
|
336
|
+
"type": "address"
|
190
337
|
}
|
191
338
|
],
|
192
339
|
"stateMutability": "view",
|
193
340
|
"type": "function"
|
194
341
|
},
|
342
|
+
{
|
343
|
+
"inputs": [],
|
344
|
+
"name": "lock",
|
345
|
+
"outputs": [],
|
346
|
+
"stateMutability": "nonpayable",
|
347
|
+
"type": "function"
|
348
|
+
},
|
195
349
|
{
|
196
350
|
"inputs": [],
|
197
351
|
"name": "register",
|
198
352
|
"outputs": [
|
199
353
|
{
|
200
|
-
"internalType": "
|
354
|
+
"internalType": "NftId",
|
201
355
|
"name": "componentId",
|
202
|
-
"type": "
|
356
|
+
"type": "uint96"
|
357
|
+
}
|
358
|
+
],
|
359
|
+
"stateMutability": "nonpayable",
|
360
|
+
"type": "function"
|
361
|
+
},
|
362
|
+
{
|
363
|
+
"inputs": [
|
364
|
+
{
|
365
|
+
"components": [
|
366
|
+
{
|
367
|
+
"internalType": "UFixed",
|
368
|
+
"name": "fractionalFee",
|
369
|
+
"type": "uint256"
|
370
|
+
},
|
371
|
+
{
|
372
|
+
"internalType": "uint256",
|
373
|
+
"name": "fixedFee",
|
374
|
+
"type": "uint256"
|
375
|
+
}
|
376
|
+
],
|
377
|
+
"internalType": "struct Fee",
|
378
|
+
"name": "productFee",
|
379
|
+
"type": "tuple"
|
380
|
+
},
|
381
|
+
{
|
382
|
+
"components": [
|
383
|
+
{
|
384
|
+
"internalType": "UFixed",
|
385
|
+
"name": "fractionalFee",
|
386
|
+
"type": "uint256"
|
387
|
+
},
|
388
|
+
{
|
389
|
+
"internalType": "uint256",
|
390
|
+
"name": "fixedFee",
|
391
|
+
"type": "uint256"
|
392
|
+
}
|
393
|
+
],
|
394
|
+
"internalType": "struct Fee",
|
395
|
+
"name": "processingFee",
|
396
|
+
"type": "tuple"
|
397
|
+
}
|
398
|
+
],
|
399
|
+
"name": "setFees",
|
400
|
+
"outputs": [],
|
401
|
+
"stateMutability": "nonpayable",
|
402
|
+
"type": "function"
|
403
|
+
},
|
404
|
+
{
|
405
|
+
"inputs": [
|
406
|
+
{
|
407
|
+
"internalType": "bytes4",
|
408
|
+
"name": "interfaceId",
|
409
|
+
"type": "bytes4"
|
410
|
+
}
|
411
|
+
],
|
412
|
+
"name": "supportsInterface",
|
413
|
+
"outputs": [
|
414
|
+
{
|
415
|
+
"internalType": "bool",
|
416
|
+
"name": "",
|
417
|
+
"type": "bool"
|
203
418
|
}
|
204
419
|
],
|
420
|
+
"stateMutability": "view",
|
421
|
+
"type": "function"
|
422
|
+
},
|
423
|
+
{
|
424
|
+
"inputs": [],
|
425
|
+
"name": "unlock",
|
426
|
+
"outputs": [],
|
205
427
|
"stateMutability": "nonpayable",
|
206
428
|
"type": "function"
|
207
429
|
}
|
208
430
|
],
|
209
|
-
"bytecode": "0x60806040523480156200001157600080fd5b50604051620013f5380380620013f583398181016040528101906200003791906200028b565b8282808280806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505033600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634288121d6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000171573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200019791906200032c565b600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050506200035e565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620002538262000226565b9050919050565b620002658162000246565b81146200027157600080fd5b50565b60008151905062000285816200025a565b92915050565b600080600060608486031215620002a757620002a662000221565b5b6000620002b78682870162000274565b9350506020620002ca8682870162000274565b9250506040620002dd8682870162000274565b9150509250925092565b6000620002f48262000246565b9050919050565b6200030681620002e7565b81146200031257600080fd5b50565b6000815190506200032681620002fb565b92915050565b60006020828403121562000345576200034462000221565b5b6000620003558482850162000315565b91505092915050565b611087806200036e6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c80635ab1bd53116100715780635ab1bd531461016d578063644c45e01461018b57806379e829d0146101a9578063893d20e8146101c7578063de7b5d14146101e5578063fb2cb10114610203576100b4565b806315dae03e146100b95780631aa3a008146100d75780631bdd6b76146100f5578063223668441461011357806331b62a3b146101315780633bc5de301461014f575b600080fd5b6100c1610221565b6040516100ce9190610b30565b60405180910390f35b6100df6102b8565b6040516100ec9190610b30565b60405180910390f35b6100fd6105d0565b60405161010a9190610b30565b60405180910390f35b61011b610694565b6040516101289190610b66565b60405180910390f35b610139610737565b6040516101469190610b30565b60405180910390f35b6101576107b4565b6040516101649190610c11565b60405180910390f35b610175610850565b6040516101829190610cb2565b60405180910390f35b610193610879565b6040516101a09190610b30565b60405180910390f35b6101b161091b565b6040516101be9190610b66565b60405180910390f35b6101cf610924565b6040516101dc9190610cee565b60405180910390f35b6101ed610ac3565b6040516101fa9190610d2a565b60405180910390f35b61020b610aed565b6040516102189190610cee565b60405180910390f35b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166325425a916040518163ffffffff1660e01b8152600401602060405180830381865afa15801561028f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102b39190610d76565b905090565b60006102c2610aed565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461032f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161032690610dda565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036103be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103b590610e46565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c3c5a547600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b81526004016104399190610cee565b602060405180830381865afa158015610456573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061047a9190610e92565b6104b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104b090610f31565b60405180910390fd5b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636fa298536040518163ffffffff1660e01b8152600401602060405180830381865afa158015610528573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054c9190610f8f565b90508073ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b81526004016105879190610fdd565b6020604051808303816000875af11580156105a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ca9190610d76565b91505090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d272ac1e600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b815260040161064e9190610cee565b602060405180830381865afa15801561066b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068f9190610d76565b905090565b60008060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d272ac1e306040518263ffffffff1660e01b81526004016106f09190610cee565b602060405180830381865afa15801561070d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107319190610d76565b11905090565b6000610741610ac3565b73ffffffffffffffffffffffffffffffffffffffff1663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa15801561078b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107af9190610d76565b905090565b60606107be610ac3565b73ffffffffffffffffffffffffffffffffffffffff1663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610808573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082c9190610d76565b60405160200161083c9190610b30565b604051602081830303815290604052905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d272ac1e306040518263ffffffff1660e01b81526004016108d59190610cee565b602060405180830381865afa1580156108f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109169190610d76565b905090565b60006001905090565b60008060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d272ac1e306040518263ffffffff1660e01b81526004016109809190610cee565b602060405180830381865afa15801561099d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c19190610d76565b905060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c41a360a826040518263ffffffff1660e01b8152600401610a1c9190610b30565b602060405180830381865afa158015610a39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5d9190611024565b9150600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610abb57600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610abd565b815b91505090565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000819050919050565b610b2a81610b17565b82525050565b6000602082019050610b456000830184610b21565b92915050565b60008115159050919050565b610b6081610b4b565b82525050565b6000602082019050610b7b6000830184610b57565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610bbb578082015181840152602081019050610ba0565b60008484015250505050565b6000601f19601f8301169050919050565b6000610be382610b81565b610bed8185610b8c565b9350610bfd818560208601610b9d565b610c0681610bc7565b840191505092915050565b60006020820190508181036000830152610c2b8184610bd8565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000610c78610c73610c6e84610c33565b610c53565b610c33565b9050919050565b6000610c8a82610c5d565b9050919050565b6000610c9c82610c7f565b9050919050565b610cac81610c91565b82525050565b6000602082019050610cc76000830184610ca3565b92915050565b6000610cd882610c33565b9050919050565b610ce881610ccd565b82525050565b6000602082019050610d036000830184610cdf565b92915050565b6000610d1482610c7f565b9050919050565b610d2481610d09565b82525050565b6000602082019050610d3f6000830184610d1b565b92915050565b600080fd5b610d5381610b17565b8114610d5e57600080fd5b50565b600081519050610d7081610d4a565b92915050565b600060208284031215610d8c57610d8b610d45565b5b6000610d9a84828501610d61565b91505092915050565b600082825260208201905092915050565b50565b6000610dc4600083610da3565b9150610dcf82610db4565b600082019050919050565b60006020820190508181036000830152610df381610db7565b9050919050565b7f4552524f523a5052442d3030313a52454749535452595f5a45524f0000000000600082015250565b6000610e30601b83610da3565b9150610e3b82610dfa565b602082019050919050565b60006020820190508181036000830152610e5f81610e23565b9050919050565b610e6f81610b4b565b8114610e7a57600080fd5b50565b600081519050610e8c81610e66565b92915050565b600060208284031215610ea857610ea7610d45565b5b6000610eb684828501610e7d565b91505092915050565b7f4552524f523a5052442d3030323a494e5354414e43455f4e4f545f524547495360008201527f5445524544000000000000000000000000000000000000000000000000000000602082015250565b6000610f1b602583610da3565b9150610f2682610ebf565b604082019050919050565b60006020820190508181036000830152610f4a81610f0e565b9050919050565b6000610f5c82610ccd565b9050919050565b610f6c81610f51565b8114610f7757600080fd5b50565b600081519050610f8981610f63565b92915050565b600060208284031215610fa557610fa4610d45565b5b6000610fb384828501610f7a565b91505092915050565b6000610fc782610c7f565b9050919050565b610fd781610fbc565b82525050565b6000602082019050610ff26000830184610fce565b92915050565b61100181610ccd565b811461100c57600080fd5b50565b60008151905061101e81610ff8565b92915050565b60006020828403121561103a57611039610d45565b5b60006110488482850161100f565b9150509291505056fea2646970667358221220dc12d886770e1ab12f0a64759c22006787d5baa688737bd10f8e163cdbf89ae764736f6c63430008140033",
|
210
|
-
"deployedBytecode": "
|
211
|
-
"linkReferences": {
|
431
|
+
"bytecode": "0x60e06040523480156200001157600080fd5b5060405162001bec38038062001bec833981016040819052620000349162000703565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff1916600117905586868682826001600160a01b038216620000d15760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5247422d3031303a52454749535452595f5a45524f000000000060448201526064015b60405180910390fd5b6001600160a01b03821660808190526040516301ffc9a760e01b81526306ecd8ef60e01b60048201526301ffc9a790602401602060405180830381865afa15801562000121573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001479190620007a5565b620001955760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a5247422d3031313a4e4f545f52454749535452590000000000006044820152606401620000c8565b6001600160601b03811660a081905260805160405163e74d052f60e01b815260048101929092526001600160a01b03169063e74d052f90602401602060405180830381865afa158015620001ed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002139190620007a5565b6200026d5760405162461bcd60e51b815260206004820152602360248201527f4552524f523a5247422d3031323a504152454e545f4e4f545f5245474953544560448201526214915160ea1b6064820152608401620000c8565b3360c052631dfba64760e11b60009081526020527f95e5a2564f7af40498dc043c6da135e06324c5edb1f60c2bf4dcdf2da207fa45805460ff1916600117905550506080516040516305247a1760e51b81526001600160601b03841660048201526000916001600160a01b03169063a48f42e090602401600060405180830381865afa15801562000302573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200032c91908101906200085d565b6060810151600580546001600160a01b0319166001600160a01b0390921691821790556040516301ffc9a760e01b8152630de7806f60e41b6004820152919250906301ffc9a790602401602060405180830381865afa15801562000394573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003ba9190620007a5565b620003e25760405162461bcd60e51b81526020600482015260006024820152604401620000c8565b600560009054906101000a90046001600160a01b03166001600160a01b0316636fa298536040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000436573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200045c919062000937565b600180546001600160a01b039283166001600160a01b0319918216179091556003805482163017905560048054928516929091169190911781556005805460ff60a01b1916905560408051632bd182d360e01b8152815173__$a23651848365a6a5ca15f07b4331037f48$__93632bd182d39383820193909291908290030181865af4158015620004f1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000517919062000957565b805160065560209081015160075560055460408051634288121d60e01b815290516001600160a01b039092169650634288121d9550600480820195509293509091908290030181865afa15801562000573573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000599919062000937565b600880546001600160a01b03199081166001600160a01b039384161790915560098054821696831696909617909555600a80549095169316929092179092558151600b55602091820151600c558051600d550151600e555062000976915050565b6001600160a01b03811681146200061057600080fd5b50565b80516200062081620005fa565b919050565b80516001600160601b03811681146200062057600080fd5b634e487b7160e01b600052604160045260246000fd5b60405160c081016001600160401b03811182821017156200067857620006786200063d565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620006a957620006a96200063d565b604052919050565b600060408284031215620006c457600080fd5b604080519081016001600160401b0381118282101715620006e957620006e96200063d565b604052825181526020928301519281019290925250919050565b6000806000806000806000610120888a0312156200072057600080fd5b87516200072d81620005fa565b96506200073d6020890162000625565b955060408801516200074f81620005fa565b60608901519095506200076281620005fa565b60808901519094506200077581620005fa565b9250620007868960a08a01620006b1565b9150620007978960e08a01620006b1565b905092959891949750929550565b600060208284031215620007b857600080fd5b81518015158114620007c957600080fd5b9392505050565b600082601f830112620007e257600080fd5b81516001600160401b03811115620007fe57620007fe6200063d565b602062000814601f8301601f191682016200067e565b82815285828487010111156200082957600080fd5b60005b83811015620008495785810183015182820184015282016200082c565b506000928101909101919091529392505050565b6000602082840312156200087057600080fd5b81516001600160401b03808211156200088857600080fd5b9083019060c082860312156200089d57600080fd5b620008a762000653565b620008b28362000625565b8152620008c26020840162000625565b6020820152604083015160ff81168114620008dc57600080fd5b6040820152620008ef6060840162000613565b6060820152620009026080840162000613565b608082015260a0830151828111156200091a57600080fd5b6200092887828601620007d0565b60a08301525095945050505050565b6000602082840312156200094a57600080fd5b8151620007c981620005fa565b6000604082840312156200096a57600080fd5b620007c98383620006b1565b60805160a05160c051611215620009d7600039600061084301526000610218015260008181610258015281816104f60152818161058c015281816106f50152818161076b015281816107c4015281816108860152610b9101526112156000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c80635ab1bd53116100ad578063b6b412ba11610071578063b6b412ba146102a9578063daafed40146102bc578063db6dcc95146102c4578063de7b5d14146102cc578063f83d08ba146102dd57600080fd5b80635ab1bd53146102565780635e78426b1461027c578063644c45e01461028f578063893d20e814610297578063a69df4b51461029f57600080fd5b80631aa3a008116100f45780631aa3a008146101dd5780631bdd6b76146101fd57806321df0da71461020557806331b62a3b146102165780633bc5de301461023c57600080fd5b806301ffc9a71461013157806312abb9b31461017357806313299604146101945780631380bf23146101b957806315dae03e146101ce575b600080fd5b61015e61013f366004610c3e565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b610186610181366004610d8d565b6102e5565b60405190815260200161016a565b6003546001600160a01b03165b6040516001600160a01b03909116815260200161016a565b6101c1610371565b60405161016a9190610e16565b604051606e815260200161016a565b6101e56104ab565b6040516001600160601b03909116815260200161016a565b6101e56106d0565b6004546001600160a01b03166101a1565b7f00000000000000000000000000000000000000000000000000000000000000006101e5565b6040805160208101825260008152905161016a9190610e73565b7f00000000000000000000000000000000000000000000000000000000000000006101a1565b61018661028a366004610e86565b61073d565b6101e5610753565b6101a16107a2565b6102a76108ff565b005b6102a76102b7366004610f19565b610997565b6101c1610a37565b6101e5610b6c565b6005546001600160a01b03166101a1565b6102a7610bc0565b600854604051639cdaa7f960e01b81526000916001600160a01b031690639cdaa7f9906103209089908b908a908a9089908b90600401610f4e565b60a060405180830381865afa15801561033d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103619190610fa5565b50929a9950505050505050505050565b6040805180820190915260008082526020820152600061038f610753565b60055460405163278b381b60e01b81526001600160601b03831660048201529192506001600160a01b03169063278b381b90602401602060405180830381865afa1580156103e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104059190610fe5565b1561048a5760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101e060405180830381865afa15801561045c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104809190611067565b6060015191505090565b505060408051808201909152600b548152600c54602082015290565b905090565b60006104b56107a2565b6001600160a01b0316336001600160a01b0316146104f45760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661056a5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a434f422d3030313a52454749535452595f5a45524f000000000060448201526064016104eb565b60055460405163c3c5a54760e01b81526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063c3c5a54790602401602060405180830381865afa1580156105d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f99190610fe5565b61064f5760405162461bcd60e51b815260206004820152602160248201527f4552524f523a434f423a494e5354414e43455f4e4f545f5245474953544552456044820152601160fa1b60648201526084016104eb565b6005805460ff60a01b1916600160a01b179055600154604051632210724360e11b81523060048201526001600160a01b0390911690634420e486906024016020604051808303816000875af11580156106ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a69190611126565b600954604051636939560f60e11b81526001600160a01b0391821660048201526000917f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e906024015b602060405180830381865afa1580156106ac573d6000803e3d6000fd5b600061074a600a86611143565b95945050505050565b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401610720565b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa15801561080b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082f9190611126565b905061083c816000610c28565b15610868577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa1580156108d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f99190611165565b91505090565b6109076107a2565b6001600160a01b0316336001600160a01b0316146109375760405162461bcd60e51b81526004016104eb90611182565b600154604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b15801561097d57600080fd5b505af1158015610991573d6000803e3d6000fd5b50505050565b61099f6107a2565b6001600160a01b0316336001600160a01b0316146109cf5760405162461bcd60e51b81526004016104eb90611182565b600854604051635b5a095d60e11b81526001600160a01b039091169063b6b412ba90610a0190859085906004016111b9565b600060405180830381600087803b158015610a1b57600080fd5b505af1158015610a2f573d6000803e3d6000fd5b505050505050565b60408051808201909152600080825260208201526000610a55610753565b60055460405163278b381b60e01b81526001600160601b03831660048201529192506001600160a01b03169063278b381b90602401602060405180830381865afa158015610aa7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acb9190610fe5565b15610b505760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101e060405180830381865afa158015610b22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b469190611067565b6080015191505090565b505060408051808201909152600d548152600e54602082015290565b600a54604051636939560f60e11b81526001600160a01b0391821660048201526000917f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401610720565b610bc86107a2565b6001600160a01b0316336001600160a01b031614610bf85760405162461bcd60e51b81526004016104eb90611182565b60015460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a790602401610963565b6001600160601b03828116908216145b92915050565b600060208284031215610c5057600080fd5b81356001600160e01b031981168114610c6857600080fd5b9392505050565b6001600160c01b031981168114610c8557600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715610cc157610cc1610c88565b60405290565b604051610120810167ffffffffffffffff81118282101715610cc157610cc1610c88565b600082601f830112610cfc57600080fd5b813567ffffffffffffffff80821115610d1757610d17610c88565b604051601f8301601f19908116603f01168101908282118183101715610d3f57610d3f610c88565b81604052838152866020858801011115610d5857600080fd5b836020870160208301376000602085830101528094505050505092915050565b6001600160601b0381168114610c8557600080fd5b60008060008060008060c08789031215610da657600080fd5b863595506020870135610db881610c6f565b945060408701359350606087013567ffffffffffffffff811115610ddb57600080fd5b610de789828a01610ceb565b9350506080870135610df881610c6f565b915060a0870135610e0881610d78565b809150509295509295509295565b815181526020808301519082015260408101610c38565b6000815180845260005b81811015610e5357602081850181015186830182015201610e37565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610c686020830184610e2d565b60008060008060808587031215610e9c57600080fd5b843593506020850135610eae81610c6f565b925060408501359150606085013567ffffffffffffffff811115610ed157600080fd5b610edd87828801610ceb565b91505092959194509250565b600060408284031215610efb57600080fd5b610f03610c9e565b9050813581526020820135602082015292915050565b60008060808385031215610f2c57600080fd5b610f368484610ee9565b9150610f458460408501610ee9565b90509250929050565b600067ffffffffffffffff60c01b808916835287602084015286604084015260c06060840152610f8160c0840187610e2d565b6001600160601b039590951660808401529290921660a09091015250949350505050565b600080600080600060a08688031215610fbd57600080fd5b5050835160208501516040860151606087015160809097015192989197509594509092509050565b600060208284031215610ff757600080fd5b81518015158114610c6857600080fd5b805161101281610d78565b919050565b6001600160a01b0381168114610c8557600080fd5b805161101281611017565b60006040828403121561104957600080fd5b611051610c9e565b9050815181526020820151602082015292915050565b60006101e0828403121561107a57600080fd5b611082610cc7565b61108b83611007565b815261109960208401611007565b60208201526110aa6040840161102c565b60408201526110bc8460608501611037565b60608201526110ce8460a08501611037565b60808201526110e08460e08501611037565b60a08201526110f3846101208501611037565b60c0820152611106846101608501611037565b60e0820152611119846101a08501611037565b6101008201529392505050565b60006020828403121561113857600080fd5b8151610c6881610d78565b60008261116057634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561117757600080fd5b8151610c6881611017565b60208082526017908201527f4552524f523a5247422d3030313a4e4f545f4f574e4552000000000000000000604082015260600190565b825181526020808401518183015282516040830152820151606082015260808101610c6856fea26469706673582212201719c66b83a9ebb135ac14cdbc0f2efb037f928e13d1e4beaa67ed6ae320abb164736f6c63430008140033",
|
432
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061012c5760003560e01c80635ab1bd53116100ad578063b6b412ba11610071578063b6b412ba146102a9578063daafed40146102bc578063db6dcc95146102c4578063de7b5d14146102cc578063f83d08ba146102dd57600080fd5b80635ab1bd53146102565780635e78426b1461027c578063644c45e01461028f578063893d20e814610297578063a69df4b51461029f57600080fd5b80631aa3a008116100f45780631aa3a008146101dd5780631bdd6b76146101fd57806321df0da71461020557806331b62a3b146102165780633bc5de301461023c57600080fd5b806301ffc9a71461013157806312abb9b31461017357806313299604146101945780631380bf23146101b957806315dae03e146101ce575b600080fd5b61015e61013f366004610c3e565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b610186610181366004610d8d565b6102e5565b60405190815260200161016a565b6003546001600160a01b03165b6040516001600160a01b03909116815260200161016a565b6101c1610371565b60405161016a9190610e16565b604051606e815260200161016a565b6101e56104ab565b6040516001600160601b03909116815260200161016a565b6101e56106d0565b6004546001600160a01b03166101a1565b7f00000000000000000000000000000000000000000000000000000000000000006101e5565b6040805160208101825260008152905161016a9190610e73565b7f00000000000000000000000000000000000000000000000000000000000000006101a1565b61018661028a366004610e86565b61073d565b6101e5610753565b6101a16107a2565b6102a76108ff565b005b6102a76102b7366004610f19565b610997565b6101c1610a37565b6101e5610b6c565b6005546001600160a01b03166101a1565b6102a7610bc0565b600854604051639cdaa7f960e01b81526000916001600160a01b031690639cdaa7f9906103209089908b908a908a9089908b90600401610f4e565b60a060405180830381865afa15801561033d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103619190610fa5565b50929a9950505050505050505050565b6040805180820190915260008082526020820152600061038f610753565b60055460405163278b381b60e01b81526001600160601b03831660048201529192506001600160a01b03169063278b381b90602401602060405180830381865afa1580156103e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104059190610fe5565b1561048a5760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101e060405180830381865afa15801561045c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104809190611067565b6060015191505090565b505060408051808201909152600b548152600c54602082015290565b905090565b60006104b56107a2565b6001600160a01b0316336001600160a01b0316146104f45760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661056a5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a434f422d3030313a52454749535452595f5a45524f000000000060448201526064016104eb565b60055460405163c3c5a54760e01b81526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063c3c5a54790602401602060405180830381865afa1580156105d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f99190610fe5565b61064f5760405162461bcd60e51b815260206004820152602160248201527f4552524f523a434f423a494e5354414e43455f4e4f545f5245474953544552456044820152601160fa1b60648201526084016104eb565b6005805460ff60a01b1916600160a01b179055600154604051632210724360e11b81523060048201526001600160a01b0390911690634420e486906024016020604051808303816000875af11580156106ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a69190611126565b600954604051636939560f60e11b81526001600160a01b0391821660048201526000917f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e906024015b602060405180830381865afa1580156106ac573d6000803e3d6000fd5b600061074a600a86611143565b95945050505050565b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401610720565b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa15801561080b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082f9190611126565b905061083c816000610c28565b15610868577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa1580156108d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f99190611165565b91505090565b6109076107a2565b6001600160a01b0316336001600160a01b0316146109375760405162461bcd60e51b81526004016104eb90611182565b600154604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b15801561097d57600080fd5b505af1158015610991573d6000803e3d6000fd5b50505050565b61099f6107a2565b6001600160a01b0316336001600160a01b0316146109cf5760405162461bcd60e51b81526004016104eb90611182565b600854604051635b5a095d60e11b81526001600160a01b039091169063b6b412ba90610a0190859085906004016111b9565b600060405180830381600087803b158015610a1b57600080fd5b505af1158015610a2f573d6000803e3d6000fd5b505050505050565b60408051808201909152600080825260208201526000610a55610753565b60055460405163278b381b60e01b81526001600160601b03831660048201529192506001600160a01b03169063278b381b90602401602060405180830381865afa158015610aa7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acb9190610fe5565b15610b505760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101e060405180830381865afa158015610b22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b469190611067565b6080015191505090565b505060408051808201909152600d548152600e54602082015290565b600a54604051636939560f60e11b81526001600160a01b0391821660048201526000917f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401610720565b610bc86107a2565b6001600160a01b0316336001600160a01b031614610bf85760405162461bcd60e51b81526004016104eb90611182565b60015460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a790602401610963565b6001600160601b03828116908216145b92915050565b600060208284031215610c5057600080fd5b81356001600160e01b031981168114610c6857600080fd5b9392505050565b6001600160c01b031981168114610c8557600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715610cc157610cc1610c88565b60405290565b604051610120810167ffffffffffffffff81118282101715610cc157610cc1610c88565b600082601f830112610cfc57600080fd5b813567ffffffffffffffff80821115610d1757610d17610c88565b604051601f8301601f19908116603f01168101908282118183101715610d3f57610d3f610c88565b81604052838152866020858801011115610d5857600080fd5b836020870160208301376000602085830101528094505050505092915050565b6001600160601b0381168114610c8557600080fd5b60008060008060008060c08789031215610da657600080fd5b863595506020870135610db881610c6f565b945060408701359350606087013567ffffffffffffffff811115610ddb57600080fd5b610de789828a01610ceb565b9350506080870135610df881610c6f565b915060a0870135610e0881610d78565b809150509295509295509295565b815181526020808301519082015260408101610c38565b6000815180845260005b81811015610e5357602081850181015186830182015201610e37565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610c686020830184610e2d565b60008060008060808587031215610e9c57600080fd5b843593506020850135610eae81610c6f565b925060408501359150606085013567ffffffffffffffff811115610ed157600080fd5b610edd87828801610ceb565b91505092959194509250565b600060408284031215610efb57600080fd5b610f03610c9e565b9050813581526020820135602082015292915050565b60008060808385031215610f2c57600080fd5b610f368484610ee9565b9150610f458460408501610ee9565b90509250929050565b600067ffffffffffffffff60c01b808916835287602084015286604084015260c06060840152610f8160c0840187610e2d565b6001600160601b039590951660808401529290921660a09091015250949350505050565b600080600080600060a08688031215610fbd57600080fd5b5050835160208501516040860151606087015160809097015192989197509594509092509050565b600060208284031215610ff757600080fd5b81518015158114610c6857600080fd5b805161101281610d78565b919050565b6001600160a01b0381168114610c8557600080fd5b805161101281611017565b60006040828403121561104957600080fd5b611051610c9e565b9050815181526020820151602082015292915050565b60006101e0828403121561107a57600080fd5b611082610cc7565b61108b83611007565b815261109960208401611007565b60208201526110aa6040840161102c565b60408201526110bc8460608501611037565b60608201526110ce8460a08501611037565b60808201526110e08460e08501611037565b60a08201526110f3846101208501611037565b60c0820152611106846101608501611037565b60e0820152611119846101a08501611037565b6101008201529392505050565b60006020828403121561113857600080fd5b8151610c6881610d78565b60008261116057634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561117757600080fd5b8151610c6881611017565b60208082526017908201527f4552524f523a5247422d3030313a4e4f545f4f574e4552000000000000000000604082015260600190565b825181526020808401518183015282516040830152820151606082015260808101610c6856fea26469706673582212201719c66b83a9ebb135ac14cdbc0f2efb037f928e13d1e4beaa67ed6ae320abb164736f6c63430008140033",
|
433
|
+
"linkReferences": {
|
434
|
+
"contracts/types/Fee.sol": {
|
435
|
+
"FeeLib": [
|
436
|
+
{
|
437
|
+
"length": 20,
|
438
|
+
"start": 1205
|
439
|
+
}
|
440
|
+
]
|
441
|
+
}
|
442
|
+
},
|
212
443
|
"deployedLinkReferences": {}
|
213
444
|
}
|
@@ -0,0 +1,105 @@
|
|
1
|
+
{
|
2
|
+
"_format": "hh-sol-artifact-1",
|
3
|
+
"contractName": "Require",
|
4
|
+
"sourceName": "contracts/experiment/errors/Require.sol",
|
5
|
+
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [],
|
8
|
+
"stateMutability": "nonpayable",
|
9
|
+
"type": "constructor"
|
10
|
+
},
|
11
|
+
{
|
12
|
+
"inputs": [
|
13
|
+
{
|
14
|
+
"internalType": "uint256",
|
15
|
+
"name": "a",
|
16
|
+
"type": "uint256"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"internalType": "uint256",
|
20
|
+
"name": "b",
|
21
|
+
"type": "uint256"
|
22
|
+
}
|
23
|
+
],
|
24
|
+
"name": "AsmallerThanB_L",
|
25
|
+
"type": "error"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"inputs": [
|
29
|
+
{
|
30
|
+
"internalType": "uint256",
|
31
|
+
"name": "a",
|
32
|
+
"type": "uint256"
|
33
|
+
}
|
34
|
+
],
|
35
|
+
"name": "AsmallerThanB_M",
|
36
|
+
"type": "error"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"inputs": [],
|
40
|
+
"name": "AsmallerThanB_S",
|
41
|
+
"type": "error"
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"inputs": [
|
45
|
+
{
|
46
|
+
"internalType": "uint256",
|
47
|
+
"name": "a",
|
48
|
+
"type": "uint256"
|
49
|
+
}
|
50
|
+
],
|
51
|
+
"name": "isAlargerThanBRequire_L",
|
52
|
+
"outputs": [
|
53
|
+
{
|
54
|
+
"internalType": "bool",
|
55
|
+
"name": "isLarger",
|
56
|
+
"type": "bool"
|
57
|
+
}
|
58
|
+
],
|
59
|
+
"stateMutability": "view",
|
60
|
+
"type": "function"
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"inputs": [
|
64
|
+
{
|
65
|
+
"internalType": "uint256",
|
66
|
+
"name": "a",
|
67
|
+
"type": "uint256"
|
68
|
+
}
|
69
|
+
],
|
70
|
+
"name": "isAlargerThanBRequire_M",
|
71
|
+
"outputs": [
|
72
|
+
{
|
73
|
+
"internalType": "bool",
|
74
|
+
"name": "isLarger",
|
75
|
+
"type": "bool"
|
76
|
+
}
|
77
|
+
],
|
78
|
+
"stateMutability": "view",
|
79
|
+
"type": "function"
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"inputs": [
|
83
|
+
{
|
84
|
+
"internalType": "uint256",
|
85
|
+
"name": "a",
|
86
|
+
"type": "uint256"
|
87
|
+
}
|
88
|
+
],
|
89
|
+
"name": "isAlargerThanBRequire_S",
|
90
|
+
"outputs": [
|
91
|
+
{
|
92
|
+
"internalType": "bool",
|
93
|
+
"name": "isLarger",
|
94
|
+
"type": "bool"
|
95
|
+
}
|
96
|
+
],
|
97
|
+
"stateMutability": "view",
|
98
|
+
"type": "function"
|
99
|
+
}
|
100
|
+
],
|
101
|
+
"bytecode": "0x608060405234801561001057600080fd5b50602a6000556101df806100256000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806342bf62e0146100465780638db581aa1461006d57806394977ddd14610080575b600080fd5b610059610054366004610190565b610093565b604051901515815260200160405180910390f35b61005961007b366004610190565b6100f2565b61005961008e366004610190565b610134565b6000805482116100ea5760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a4142432d3030323a415f49535f534d414c4c455200000000000060448201526064015b60405180910390fd5b506001919050565b6000805482116100ea5760405162461bcd60e51b815260206004820152600d60248201526c4552524f523a4142432d30303160981b60448201526064016100e1565b6000805482116100ea5760405162461bcd60e51b815260206004820152602160248201527f4552524f523a4142432d3030333a415f49535f534d414c4c45525f5448414e5f6044820152602160f91b60648201526084016100e1565b6000602082840312156101a257600080fd5b503591905056fea2646970667358221220572bbc4b1e30046ddb065771b03fa96e34255214cd346e350172d87d56991ba064736f6c63430008140033",
|
102
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c806342bf62e0146100465780638db581aa1461006d57806394977ddd14610080575b600080fd5b610059610054366004610190565b610093565b604051901515815260200160405180910390f35b61005961007b366004610190565b6100f2565b61005961008e366004610190565b610134565b6000805482116100ea5760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a4142432d3030323a415f49535f534d414c4c455200000000000060448201526064015b60405180910390fd5b506001919050565b6000805482116100ea5760405162461bcd60e51b815260206004820152600d60248201526c4552524f523a4142432d30303160981b60448201526064016100e1565b6000805482116100ea5760405162461bcd60e51b815260206004820152602160248201527f4552524f523a4142432d3030333a415f49535f534d414c4c45525f5448414e5f6044820152602160f91b60648201526084016100e1565b6000602082840312156101a257600080fd5b503591905056fea2646970667358221220572bbc4b1e30046ddb065771b03fa96e34255214cd346e350172d87d56991ba064736f6c63430008140033",
|
103
|
+
"linkReferences": {},
|
104
|
+
"deployedLinkReferences": {}
|
105
|
+
}
|