@etherisc/gif-next 0.0.2-c9711ab-345 → 0.0.2-c9ad04b-619
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +4 -1
- package/artifacts/contracts/authorization/AccessAdmin.sol/AccessAdmin.dbg.json +1 -1
- package/artifacts/contracts/authorization/AccessAdmin.sol/AccessAdmin.json +21 -21
- package/artifacts/contracts/authorization/AccessManagerCloneable.sol/AccessManagerCloneable.dbg.json +1 -1
- package/artifacts/contracts/authorization/Authorization.sol/Authorization.dbg.json +1 -1
- package/artifacts/contracts/authorization/Authorization.sol/Authorization.json +2 -2
- package/artifacts/contracts/authorization/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/authorization/IAccessAdmin.sol/IAccessAdmin.dbg.json +1 -1
- package/artifacts/contracts/authorization/IAuthorization.sol/IAuthorization.dbg.json +1 -1
- package/artifacts/contracts/authorization/IModuleAuthorization.sol/IModuleAuthorization.dbg.json +1 -1
- package/artifacts/contracts/authorization/IServiceAuthorization.sol/IServiceAuthorization.dbg.json +1 -1
- package/artifacts/contracts/authorization/ModuleAuthorization.sol/ModuleAuthorization.dbg.json +1 -1
- package/artifacts/contracts/authorization/ModuleAuthorization.sol/ModuleAuthorization.json +2 -2
- package/artifacts/contracts/authorization/ServiceAuthorization.sol/ServiceAuthorization.dbg.json +1 -1
- package/artifacts/contracts/authorization/ServiceAuthorization.sol/ServiceAuthorization.json +2 -2
- package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.dbg.json +1 -1
- package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.json +42 -248
- package/artifacts/contracts/distribution/BasicDistributionAuthorization.sol/BasicDistributionAuthorization.dbg.json +1 -1
- package/artifacts/contracts/distribution/BasicDistributionAuthorization.sol/BasicDistributionAuthorization.json +2 -2
- package/artifacts/contracts/distribution/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/distribution/Distribution.sol/Distribution.json +0 -222
- package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.json +129 -286
- package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.json +53 -120
- package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.json +0 -37
- package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.json +49 -62
- package/artifacts/contracts/examples/unpermissioned/SimpleDistribution.sol/SimpleDistribution.dbg.json +4 -0
- package/artifacts/contracts/examples/unpermissioned/SimpleDistribution.sol/SimpleDistribution.json +1411 -0
- package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.dbg.json +4 -0
- package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.json +1171 -0
- package/artifacts/contracts/examples/unpermissioned/SimplePool.sol/SimplePool.dbg.json +4 -0
- package/artifacts/contracts/examples/unpermissioned/SimplePool.sol/SimplePool.json +1517 -0
- package/artifacts/contracts/examples/unpermissioned/SimpleProduct.sol/SimpleProduct.dbg.json +4 -0
- package/artifacts/contracts/examples/unpermissioned/SimpleProduct.sol/SimpleProduct.json +1978 -0
- package/artifacts/contracts/instance/BundleSet.sol/BundleSet.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleSet.sol/BundleSet.json +2 -2
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +10 -99
- package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.json +71 -71
- package/artifacts/contracts/instance/InstanceAuthorizationV3.sol/InstanceAuthorizationV3.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAuthorizationV3.sol/InstanceAuthorizationV3.json +14 -14
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +225 -68
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +34 -146
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +30 -81
- package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +220 -102
- package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.json +2 -2
- package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ObjectCounter.sol/ObjectCounter.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ObjectCounter.sol/ObjectCounter.json +2 -2
- package/artifacts/contracts/instance/base/ObjectLifecycle.sol/ObjectLifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ObjectLifecycle.sol/ObjectLifecycle.json +2 -2
- package/artifacts/contracts/instance/base/ObjectSet.sol/ObjectSet.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ObjectSet.sol/ObjectSet.json +2 -2
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
- package/artifacts/contracts/mock/Dip.sol/Dip.dbg.json +1 -1
- package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.dbg.json +1 -1
- package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.json +32 -238
- package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.dbg.json +1 -1
- package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.json +2 -2
- package/artifacts/contracts/oracle/IOracle.sol/IOracle.dbg.json +1 -1
- package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.dbg.json +1 -1
- package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.json +0 -37
- package/artifacts/contracts/oracle/IOracleService.sol/IOracleService.dbg.json +1 -1
- package/artifacts/contracts/oracle/Oracle.sol/Oracle.dbg.json +1 -1
- package/artifacts/contracts/oracle/Oracle.sol/Oracle.json +0 -222
- package/artifacts/contracts/oracle/OracleService.sol/OracleService.dbg.json +1 -1
- package/artifacts/contracts/oracle/OracleService.sol/OracleService.json +32 -144
- package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.dbg.json +1 -1
- package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.json +29 -80
- package/artifacts/contracts/pool/BasicPool.sol/BasicPool.dbg.json +1 -1
- package/artifacts/contracts/pool/BasicPool.sol/BasicPool.json +5 -227
- package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.dbg.json +1 -1
- package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.json +2 -2
- package/artifacts/contracts/pool/BundleService.sol/BundleService.dbg.json +1 -1
- package/artifacts/contracts/pool/BundleService.sol/BundleService.json +76 -235
- package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
- package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.json +51 -110
- package/artifacts/contracts/pool/IBundleService.sol/IBundleService.dbg.json +1 -1
- package/artifacts/contracts/pool/IBundleService.sol/IBundleService.json +0 -31
- package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.json +5 -42
- package/artifacts/contracts/pool/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/pool/IPoolService.sol/IPoolService.json +63 -78
- package/artifacts/contracts/pool/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/pool/Pool.sol/Pool.json +5 -227
- package/artifacts/contracts/pool/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/pool/PoolService.sol/PoolService.json +101 -332
- package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.json +32 -135
- package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.dbg.json +1 -1
- package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.json +31 -162
- package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +1 -1
- package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.json +26 -89
- package/artifacts/contracts/product/BasicProduct.sol/BasicProduct.dbg.json +1 -1
- package/artifacts/contracts/product/BasicProduct.sol/BasicProduct.json +3 -225
- package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.dbg.json +1 -1
- package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.json +2 -2
- package/artifacts/contracts/product/ClaimService.sol/ClaimService.dbg.json +1 -1
- package/artifacts/contracts/product/ClaimService.sol/ClaimService.json +185 -175
- package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +1 -1
- package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.json +53 -100
- package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.dbg.json +1 -1
- package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.json +5 -0
- package/artifacts/contracts/product/IClaimService.sol/IClaimService.dbg.json +1 -1
- package/artifacts/contracts/product/IClaimService.sol/IClaimService.json +114 -0
- package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.dbg.json +1 -1
- package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.json +120 -140
- package/artifacts/contracts/product/IPricingService.sol/IPricingService.dbg.json +1 -1
- package/artifacts/contracts/product/IPricingService.sol/IPricingService.json +43 -43
- package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.json +0 -37
- package/artifacts/contracts/product/IRiskService.sol/IRiskService.dbg.json +4 -0
- package/artifacts/contracts/product/{IProductService.sol/IProductService.json → IRiskService.sol/IRiskService.json} +2 -2
- package/artifacts/contracts/product/PolicyService.sol/PolicyService.dbg.json +1 -1
- package/artifacts/contracts/product/PolicyService.sol/PolicyService.json +184 -380
- package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
- package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.json +44 -111
- package/artifacts/contracts/product/PricingService.sol/PricingService.dbg.json +1 -1
- package/artifacts/contracts/product/PricingService.sol/PricingService.json +113 -270
- package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.dbg.json +1 -1
- package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.json +52 -123
- package/artifacts/contracts/product/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/product/Product.sol/Product.json +3 -225
- package/artifacts/contracts/product/RiskService.sol/RiskService.dbg.json +4 -0
- package/artifacts/contracts/product/RiskService.sol/RiskService.json +583 -0
- package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.dbg.json +4 -0
- package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.json +651 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +59 -16
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +221 -21
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +419 -82
- package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.json +229 -114
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +18 -130
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +22 -73
- package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.dbg.json +1 -1
- package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.json +2 -2
- package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.json +24 -14
- package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.dbg.json +1 -1
- package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.json +6 -6
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +2 -2
- package/artifacts/contracts/shared/Component.sol/Component.dbg.json +1 -1
- package/artifacts/contracts/shared/Component.sol/Component.json +0 -211
- package/artifacts/contracts/shared/ComponentService.sol/ComponentService.dbg.json +1 -1
- package/artifacts/contracts/shared/ComponentService.sol/ComponentService.json +84 -212
- package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.dbg.json +1 -1
- package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.json +55 -114
- package/artifacts/contracts/shared/ComponentVerifyingService.sol/ComponentVerifyingService.dbg.json +1 -1
- package/artifacts/contracts/shared/ComponentVerifyingService.sol/ComponentVerifyingService.json +0 -112
- package/artifacts/contracts/shared/IComponent.sol/IComponent.dbg.json +1 -1
- package/artifacts/contracts/shared/IComponent.sol/IComponent.json +0 -26
- package/artifacts/contracts/shared/IComponentService.sol/IComponentService.dbg.json +1 -1
- package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.dbg.json +1 -1
- package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.json +0 -37
- package/artifacts/contracts/shared/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/shared/ILifecycle.sol/ILifecycle.dbg.json +1 -1
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +1 -1
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +0 -42
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/shared/InitializableCustom.sol/InitializableCustom.dbg.json +1 -1
- package/artifacts/contracts/shared/InitializableERC165.sol/InitializableERC165.dbg.json +1 -1
- package/artifacts/contracts/shared/InitializableERC165.sol/InitializableERC165.json +2 -22
- package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.dbg.json +1 -1
- package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.json +0 -222
- package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.dbg.json +1 -1
- package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.json +2 -2
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +6 -57
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +1 -1
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +4 -136
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +8 -97
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +1 -1
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +2 -15
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
- package/artifacts/contracts/shared/Service.sol/Service.json +0 -112
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +330 -11
- package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.dbg.json +4 -0
- package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.json +108 -0
- package/artifacts/contracts/staking/IStaking.sol/IStaking.dbg.json +1 -1
- package/artifacts/contracts/staking/IStaking.sol/IStaking.json +27 -27
- package/artifacts/contracts/staking/IStakingService.sol/IStakingService.dbg.json +1 -1
- package/artifacts/contracts/staking/StakeManagerLib.sol/StakeManagerLib.dbg.json +1 -1
- package/artifacts/contracts/staking/StakeManagerLib.sol/StakeManagerLib.json +63 -93
- package/artifacts/contracts/staking/Staking.sol/Staking.dbg.json +1 -1
- package/artifacts/contracts/staking/Staking.sol/Staking.json +85 -262
- package/artifacts/contracts/staking/StakingLifecycle.sol/StakingLifecycle.dbg.json +1 -1
- package/artifacts/contracts/staking/StakingLifecycle.sol/StakingLifecycle.json +2 -2
- package/artifacts/contracts/staking/StakingManager.sol/StakingManager.dbg.json +1 -1
- package/artifacts/contracts/staking/StakingManager.sol/StakingManager.json +42 -89
- package/artifacts/contracts/staking/StakingReader.sol/StakingReader.dbg.json +1 -1
- package/artifacts/contracts/staking/StakingReader.sol/StakingReader.json +6 -6
- package/artifacts/contracts/staking/StakingService.sol/StakingService.dbg.json +1 -1
- package/artifacts/contracts/staking/StakingService.sol/StakingService.json +26 -138
- package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.dbg.json +1 -1
- package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.json +26 -77
- package/artifacts/contracts/staking/StakingStore.sol/StakingStore.dbg.json +1 -1
- package/artifacts/contracts/staking/StakingStore.sol/StakingStore.json +84 -84
- package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.dbg.json +1 -1
- package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.json +54 -23
- package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.dbg.json +1 -1
- package/artifacts/contracts/type/Amount.sol/AmountLib.dbg.json +1 -1
- package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
- package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.dbg.json +1 -1
- package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.json +2 -2
- package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
- package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.json +2 -2
- package/artifacts/contracts/type/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/type/Key32.sol/Key32Lib.dbg.json +1 -1
- package/artifacts/contracts/type/Key32.sol/Key32Lib.json +2 -2
- package/artifacts/contracts/type/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/type/NftId.sol/NftIdLib.json +2 -2
- package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
- package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.json +2 -2
- package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
- package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.json +2 -2
- package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.dbg.json +1 -1
- package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.json +2 -2
- package/artifacts/contracts/type/Referral.sol/ReferralLib.dbg.json +1 -1
- package/artifacts/contracts/type/Referral.sol/ReferralLib.json +2 -2
- package/artifacts/contracts/type/RequestId.sol/RequestIdLib.dbg.json +1 -1
- package/artifacts/contracts/type/RequestId.sol/RequestIdLib.json +2 -2
- package/artifacts/contracts/type/RiskId.sol/RiskIdLib.dbg.json +1 -1
- package/artifacts/contracts/type/RiskId.sol/RiskIdLib.json +2 -2
- package/artifacts/contracts/type/RoleId.sol/RoleIdLib.dbg.json +1 -1
- package/artifacts/contracts/type/RoleId.sol/RoleIdLib.json +2 -2
- package/artifacts/contracts/type/Seconds.sol/SecondsLib.dbg.json +1 -1
- package/artifacts/contracts/type/Seconds.sol/SecondsLib.json +26 -2
- package/artifacts/contracts/type/Selector.sol/SelectorLib.dbg.json +1 -1
- package/artifacts/contracts/type/Selector.sol/SelectorSetLib.dbg.json +1 -1
- package/artifacts/contracts/type/StateId.sol/StateIdLib.dbg.json +1 -1
- package/artifacts/contracts/type/StateId.sol/StateIdLib.json +2 -2
- package/artifacts/contracts/type/String.sol/StrLib.dbg.json +1 -1
- package/artifacts/contracts/type/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/type/Timestamp.sol/TimestampLib.json +2 -2
- package/artifacts/contracts/type/UFixed.sol/MathLib.dbg.json +1 -1
- package/artifacts/contracts/type/UFixed.sol/UFixedLib.dbg.json +1 -1
- package/artifacts/contracts/type/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/type/Version.sol/VersionPartLib.dbg.json +1 -1
- package/artifacts/contracts/upgradeability/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.dbg.json +1 -1
- package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.json +14 -65
- package/artifacts/contracts/upgradeability/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
- package/artifacts/contracts/upgradeability/Versionable.sol/Versionable.dbg.json +1 -1
- package/contracts/authorization/AccessAdmin.sol +1 -3
- package/contracts/authorization/Authorization.sol +0 -1
- package/contracts/distribution/Distribution.sol +1 -1
- package/contracts/distribution/DistributionService.sol +26 -27
- package/contracts/distribution/IDistributionService.sol +9 -5
- package/contracts/examples/unpermissioned/SimpleDistribution.sol +50 -0
- package/contracts/examples/unpermissioned/SimpleOracle.sol +137 -0
- package/contracts/examples/unpermissioned/SimplePool.sol +76 -0
- package/contracts/examples/unpermissioned/SimpleProduct.sol +351 -0
- package/contracts/instance/IInstance.sol +7 -30
- package/contracts/instance/Instance.sol +10 -35
- package/contracts/instance/InstanceAdmin.sol +23 -4
- package/contracts/instance/InstanceAuthorizationV3.sol +3 -3
- package/contracts/instance/InstanceReader.sol +24 -7
- package/contracts/instance/InstanceService.sol +60 -36
- package/contracts/instance/InstanceStore.sol +11 -1
- package/contracts/instance/base/ObjectLifecycle.sol +9 -4
- package/contracts/instance/module/IComponents.sol +1 -1
- package/contracts/instance/module/IPolicy.sol +22 -22
- package/contracts/oracle/Oracle.sol +2 -1
- package/contracts/oracle/OracleService.sol +4 -3
- package/contracts/pool/BundleService.sol +13 -26
- package/contracts/pool/IBundleService.sol +2 -3
- package/contracts/pool/IPoolService.sol +29 -18
- package/contracts/pool/Pool.sol +15 -17
- package/contracts/pool/PoolService.sol +45 -98
- package/contracts/product/ApplicationService.sol +41 -23
- package/contracts/product/BasicProduct.sol +1 -0
- package/contracts/product/ClaimService.sol +116 -46
- package/contracts/product/IApplicationService.sol +1 -0
- package/contracts/product/IClaimService.sol +28 -5
- package/contracts/product/IPolicyService.sol +21 -32
- package/contracts/product/IPricingService.sol +7 -7
- package/contracts/product/IProductComponent.sol +0 -1
- package/contracts/product/{IProductService.sol → IRiskService.sol} +1 -1
- package/contracts/product/PolicyService.sol +230 -186
- package/contracts/product/PricingService.sol +44 -43
- package/contracts/product/Product.sol +50 -36
- package/contracts/product/{ProductService.sol → RiskService.sol} +5 -7
- package/contracts/product/{ProductServiceManager.sol → RiskServiceManager.sol} +8 -8
- package/contracts/registry/ChainNft.sol +65 -32
- package/contracts/registry/IRegistry.sol +49 -15
- package/contracts/registry/Registry.sol +321 -195
- package/contracts/registry/RegistryAdmin.sol +150 -51
- package/contracts/registry/RegistryService.sol +2 -2
- package/contracts/registry/ReleaseRegistry.sol +12 -6
- package/contracts/registry/ServiceAuthorizationV3.sol +2 -3
- package/contracts/shared/Component.sol +17 -29
- package/contracts/shared/ComponentService.sol +16 -26
- package/contracts/shared/ComponentVerifyingService.sol +1 -1
- package/contracts/shared/IComponent.sol +4 -4
- package/contracts/shared/IInstanceLinkedComponent.sol +8 -15
- package/contracts/shared/IPolicyHolder.sol +0 -9
- package/contracts/shared/InitializableERC165.sol +2 -2
- package/contracts/shared/InstanceLinkedComponent.sol +4 -4
- package/contracts/shared/NftOwnable.sol +5 -5
- package/contracts/shared/PolicyHolder.sol +5 -48
- package/contracts/shared/Registerable.sol +4 -4
- package/contracts/shared/RegistryLinked.sol +3 -2
- package/contracts/shared/Service.sol +5 -5
- package/contracts/shared/TokenHandler.sol +100 -19
- package/contracts/shared/TokenHandlerDeployerLib.sol +12 -0
- package/contracts/staking/IStaking.sol +2 -1
- package/contracts/staking/StakeManagerLib.sol +18 -25
- package/contracts/staking/Staking.sol +10 -28
- package/contracts/staking/StakingService.sol +10 -14
- package/contracts/staking/TargetManagerLib.sol +7 -3
- package/contracts/type/ObjectType.sol +15 -11
- package/contracts/type/Seconds.sol +8 -0
- package/contracts/type/StateId.sol +1 -0
- package/contracts/upgradeability/ProxyManager.sol +1 -1
- package/package.json +1 -1
- package/artifacts/contracts/product/IProductService.sol/IProductService.dbg.json +0 -4
- package/artifacts/contracts/product/ProductService.sol/ProductService.dbg.json +0 -4
- package/artifacts/contracts/product/ProductService.sol/ProductService.json +0 -708
- package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.dbg.json +0 -4
- package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.json +0 -702
@@ -402,31 +402,6 @@
|
|
402
402
|
"stateMutability": "view",
|
403
403
|
"type": "function"
|
404
404
|
},
|
405
|
-
{
|
406
|
-
"inputs": [],
|
407
|
-
"name": "initializeERC165",
|
408
|
-
"outputs": [],
|
409
|
-
"stateMutability": "nonpayable",
|
410
|
-
"type": "function"
|
411
|
-
},
|
412
|
-
{
|
413
|
-
"inputs": [
|
414
|
-
{
|
415
|
-
"internalType": "address",
|
416
|
-
"name": "initialOwner",
|
417
|
-
"type": "address"
|
418
|
-
},
|
419
|
-
{
|
420
|
-
"internalType": "address",
|
421
|
-
"name": "registryAddress",
|
422
|
-
"type": "address"
|
423
|
-
}
|
424
|
-
],
|
425
|
-
"name": "initializeNftOwnable",
|
426
|
-
"outputs": [],
|
427
|
-
"stateMutability": "nonpayable",
|
428
|
-
"type": "function"
|
429
|
-
},
|
430
405
|
{
|
431
406
|
"inputs": [
|
432
407
|
{
|
@@ -440,19 +415,6 @@
|
|
440
415
|
"stateMutability": "nonpayable",
|
441
416
|
"type": "function"
|
442
417
|
},
|
443
|
-
{
|
444
|
-
"inputs": [
|
445
|
-
{
|
446
|
-
"internalType": "address",
|
447
|
-
"name": "registryAddress",
|
448
|
-
"type": "address"
|
449
|
-
}
|
450
|
-
],
|
451
|
-
"name": "initializeRegistryLinked",
|
452
|
-
"outputs": [],
|
453
|
-
"stateMutability": "nonpayable",
|
454
|
-
"type": "function"
|
455
|
-
},
|
456
418
|
{
|
457
419
|
"inputs": [],
|
458
420
|
"name": "linkToProxy",
|
@@ -479,19 +441,6 @@
|
|
479
441
|
"stateMutability": "nonpayable",
|
480
442
|
"type": "function"
|
481
443
|
},
|
482
|
-
{
|
483
|
-
"inputs": [
|
484
|
-
{
|
485
|
-
"internalType": "bytes4",
|
486
|
-
"name": "interfaceId",
|
487
|
-
"type": "bytes4"
|
488
|
-
}
|
489
|
-
],
|
490
|
-
"name": "registerInterface",
|
491
|
-
"outputs": [],
|
492
|
-
"stateMutability": "nonpayable",
|
493
|
-
"type": "function"
|
494
|
-
},
|
495
444
|
{
|
496
445
|
"inputs": [
|
497
446
|
{
|
@@ -536,18 +485,18 @@
|
|
536
485
|
"type": "function"
|
537
486
|
}
|
538
487
|
],
|
539
|
-
"bytecode": "0x608060405234801561000f575f80fd5b50604051612b39380380612b3983398101604081905261002e9161038b565b6100378161003d565b506103d7565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff1615906001600160401b03165f811580156100865750825b90505f826001600160401b031660011480156100a15750303b155b9050811580156100af575080155b156100cd5760405163f92ee8a960e01b815260040160405180910390fd5b84546001600160401b031916600117855583156100fb57845460ff60401b1916680100000000000000001785555b6101053387610153565b831561014b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61015b6101e5565b61016481610235565b61016c610346565b6001600160a01b0382166101935760405163f17ef42d60e01b815260040160405180910390fd5b507f07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f0080546001600160601b03166c010000000000000000000000006001600160a01b0390931692909202919091179055565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff1661023357604051631afcd79f60e31b815260040160405180910390fd5b565b61023d6101e5565b806001600160a01b03163b5f036102775760405163fdeac91f60e01b81526001600160a01b03821660048201526024015b60405180910390fd5b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b81526318788cbb60e11b60048201526301ffc9a790602401602060405180830381865afa9250505080156102f1575060408051601f3d908101601f191682019092526102ee918101906103b8565b60015b6103195760405163fdeac91f60e01b81526001600160a01b038216600482015260240161026e565b806103425760405163fdeac91f60e01b81526001600160a01b038316600482015260240161026e565b5050565b61034e6101e5565b6301ffc9a760e01b5f9081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b5f6020828403121561039b575f80fd5b81516001600160a01b03811681146103b1575f80fd5b9392505050565b5f602082840312156103c8575f80fd5b815180151581146103b1575f80fd5b612755806103e45f395ff3fe608060405234801561000f575f80fd5b506004361061013d575f3560e01c8063675393bf116100b4578063ada9652e11610079578063ada9652e146103c5578063b88da759146103d9578063c987336c146103ec578063e97fac05146103ff578063f7c34ee014610412578063fd0c63d914610425575f80fd5b8063675393bf14610374578063893d20e8146103875780638e9afce61461038f578063933a9ce8146103a2578063946dfcfe146103b3575f80fd5b80631775564d116101055780631775564d146101fe578063214cdb801461021e57806336fc697e146102315780634d459c90146102395780635ab1bd5314610346578063644c45e014610357575f80fd5b806301ffc9a714610141578063058f7a971461018257806307484e80146101975780630d8e6e2c146101c2578063138461e0146101de575b5f80fd5b61016d61014f3660046114e2565b6001600160e01b0319165f9081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b610195610190366004611524565b61042d565b005b6101aa6101a53660046115de565b61053c565b6040516001600160a01b039091168152602001610179565b6101ca6106c5565b60405162ffffff9091168152602001610179565b6101e6610735565b6040516001600160601b039091168152602001610179565b61021161020c366004611633565b61073f565b60405161017991906116ae565b61019561022c3660046114e2565b610797565b6101956107c3565b6102e96102473660046116d0565b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091525062ffffff9081165f90815260036020908152604091829020825160a0810184528154948516815263010000009094046001600160a01b03908116928501929092526001015490811691830191909152600160a01b810464ffffffffff166060830152600160c81b900463ffffffff16608082015290565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a001610179565b6001546001600160a01b03166101aa565b5f80516020612700833981519152546001600160601b03166101e6565b610195610382366004611524565b610808565b6101aa610915565b61021161039d3660046116eb565b610a46565b6002546001600160a01b03166101aa565b6004545b604051908152602001610179565b6103b75f8051602061270083398151915281565b6101ca6103e7366004611725565b610a99565b6101aa6103fa366004611633565b610ad7565b6101aa61040d366004611633565b610cf0565b61019561042036600461173c565b610e6e565b6101e6610ee4565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff165f811580156104725750825b90505f8267ffffffffffffffff16600114801561048e5750303b155b90508115801561049c575080155b156104ba5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156104e457845460ff60401b1916600160401b1785555b6104ee3387610e6e565b831561053457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f610545610915565b6001600160a01b0316336001600160a01b03161461057d5760405163086391f760e31b81523360048201526024015b60405180910390fd5b6004541561059e5760405163402b135f60e11b815260040160405180910390fd5b5f6105a7610915565b9050308386826105b7858961073f565b6040516105c3906114d5565b6105cf93929190611773565b8190604051809103905ff59050801580156105ec573d5f803e3d5ffd5b50600280546001600160a01b0319166001600160a01b03929092169182179055604080516303639b8b60e21b81529051919450610678918591630d8e6e2c9160048083019260209291908290030181865afa15801561064d573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067191906117a7565b8784610efb565b6002546040516001600160a01b038881168252909116907f78922e3fa1abc96399973cb25528ba892214b57da9d1a573937c460d9f5eb4759060200160405180910390a250509392505050565b600254604080516303639b8b60e21b815290515f926001600160a01b031691630d8e6e2c9160048083019260209291908290030181865afa15801561070c573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061073091906117a7565b905090565b5f61073030611291565b60606349bb9e4b60e01b838360405160240161075c9291906117c2565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915290505b92915050565b61079f61148a565b6001600160e01b0319165f908152602081905260409020805460ff19166001179055565b6107cb61148a565b6301ffc9a760e01b5f9081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b61081061148a565b806001600160a01b03163b5f036108455760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610574565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b81526318788cbb60e11b60048201526301ffc9a790602401602060405180830381865afa9250505080156108bf575060408051601f3d908101601f191682019092526108bc918101906117e5565b60015b6108e75760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610574565b806109105760405163fdeac91f60e01b81526001600160a01b0383166004820152602401610574565b505b50565b5f805f8051602061270083398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af4158015610981573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109a591906117e5565b15610a30576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015610a06573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a2a9190611804565b91505090565b54600160601b90046001600160a01b0316919050565b606063329d6e7460e01b82604051602401610a6191906116ae565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915292915050565b5f60048281548110610aad57610aad61181f565b905f5260205f2090600a91828204019190066003029054906101000a900462ffffff169050919050565b5f610ae0610915565b6001600160a01b0316336001600160a01b031614610b135760405163086391f760e31b8152336004820152602401610574565b6004545f03610b355760405163366dfd2160e21b815260040160405180910390fd5b5f610b3e610915565b90505f610b536002546001600160a01b031690565b6001600160a01b0316638b3240a06040518163ffffffff1660e01b81526004016020604051808303815f875af1158015610b8f573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bb39190611804565b6002549091506001600160a01b03908116908216639623609d8288610bd789610a46565b6040518463ffffffff1660e01b8152600401610bf593929190611773565b5f604051808303815f87803b158015610c0c575f80fd5b505af1158015610c1e573d5f803e3d5ffd5b5050505060025f9054906101000a90046001600160a01b03169350610ca3846001600160a01b0316630d8e6e2c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c78573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9c91906117a7565b8785610efb565b6002546040516001600160a01b038881168252909116907f1356a2c922be684528fa1759d1808395e5c5010181dd333cdb6f03e2d8545b659060200160405180910390a250505092915050565b5f610cf9610915565b6001600160a01b0316336001600160a01b031614610d2c5760405163086391f760e31b8152336004820152602401610574565b60045415610d4d5760405163402b135f60e11b815260040160405180910390fd5b5f610d56610915565b9050308481610d65848761073f565b604051610d71906114d5565b610d7d93929190611773565b604051809103905ff080158015610d96573d5f803e3d5ffd5b50600280546001600160a01b0319166001600160a01b03929092169182179055604080516303639b8b60e21b81529051919450610e22918591630d8e6e2c9160048083019260209291908290030181865afa158015610df7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e1b91906117a7565b8684610efb565b6002546040516001600160a01b038781168252909116907f78922e3fa1abc96399973cb25528ba892214b57da9d1a573937c460d9f5eb4759060200160405180910390a2505092915050565b610e7661148a565b610e7f81610808565b610e876107c3565b6001600160a01b038216610eae5760405163f17ef42d60e01b815260040160405180910390fd5b505f8051602061270083398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b6002545f90610730906001600160a01b0316611291565b610f778373__$8eede297b65ed5a56eb3f84d8232ae93f5$__6304b8f6c56040518163ffffffff1660e01b8152600401602060405180830381865af4158015610f46573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6a91906117a7565b62ffffff90811691161490565b15610f95576040516348c618db60e01b815260040160405180910390fd5b600454156110ed5760048054610fad90600190611833565b81548110610fbd57610fbd61181f565b5f9182526020909120600a80830490910154604051635560100760e01b8152919092066003026101000a90910462ffffff16600482015273__$8eede297b65ed5a56eb3f84d8232ae93f5$__90635560100790602401602060405180830381865af415801561102e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110529190611852565b604051635560100760e01b815262ffffff8516600482015273__$8eede297b65ed5a56eb3f84d8232ae93f5$__90635560100790602401602060405180830381865af41580156110a4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110c89190611852565b116110ed57604051633e614b6d60e11b815262ffffff84166004820152602401610574565b600480546001810182555f829052600a8082047f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b01805462ffffff808916600394909506939093026101000a848102930219169190911790556040805160a0810182529182526001600160a01b038086166020848101919091529085168383015281516356db0c1960e11b815291519293606085019373__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__9363adb6183293818401939092918290030181865af41580156111bd573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e19190611869565b64ffffffffff90811682524363ffffffff90811660209384015262ffffff9687165f90815260038452604090819020855181549587015199166001600160b81b03199095169490941763010000006001600160a01b03998a1602178455840151600190930180546060860151608090960151949098166001600160c81b031990981697909717600160a01b94909216939093021763ffffffff60c81b1916600160c81b9190921602179092555050565b5f805f8051602061270083398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af41580156112fd573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061132191906117e5565b1561134d5780546040516301ab8b6760e21b81526001600160601b039091166004820152602401610574565b6001546001600160a01b031660405163c3c5a54760e01b81526001600160a01b038581166004830152919091169063c3c5a54790602401602060405180830381865afa15801561139f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113c391906117e5565b6113eb5760405163b9304b0d60e01b81526001600160a01b0384166004820152602401610574565b6001546001600160a01b0316604051636939560f60e11b81526001600160a01b038581166004830152919091169063d272ac1e90602401602060405180830381865afa15801561143d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611461919061188d565b81546bffffffffffffffffffffffff19166001600160601b039190911690811790915592915050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff166114d357604051631afcd79f60e31b815260040160405180910390fd5b565b610e4c806118b483390190565b5f602082840312156114f2575f80fd5b81356001600160e01b031981168114611509575f80fd5b9392505050565b6001600160a01b0381168114610912575f80fd5b5f60208284031215611534575f80fd5b813561150981611510565b634e487b7160e01b5f52604160045260245ffd5b5f82601f830112611562575f80fd5b813567ffffffffffffffff81111561157c5761157c61153f565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156115ab576115ab61153f565b6040528181528382016020018510156115c2575f80fd5b816020850160208301375f918101602001919091529392505050565b5f805f606084860312156115f0575f80fd5b83356115fb81611510565b9250602084013567ffffffffffffffff811115611616575f80fd5b61162286828701611553565b925050604084013590509250925092565b5f8060408385031215611644575f80fd5b823561164f81611510565b9150602083013567ffffffffffffffff81111561166a575f80fd5b61167685828601611553565b9150509250929050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6115096020830184611680565b62ffffff81168114610912575f80fd5b5f602082840312156116e0575f80fd5b8135611509816116c0565b5f602082840312156116fb575f80fd5b813567ffffffffffffffff811115611711575f80fd5b61171d84828501611553565b949350505050565b5f60208284031215611735575f80fd5b5035919050565b5f806040838503121561174d575f80fd5b823561175881611510565b9150602083013561176881611510565b809150509250929050565b6001600160a01b038481168252831660208201526060604082018190525f9061179e90830184611680565b95945050505050565b5f602082840312156117b7575f80fd5b8151611509816116c0565b6001600160a01b03831681526040602082018190525f9061171d90830184611680565b5f602082840312156117f5575f80fd5b81518015158114611509575f80fd5b5f60208284031215611814575f80fd5b815161150981611510565b634e487b7160e01b5f52603260045260245ffd5b8181038181111561079157634e487b7160e01b5f52601160045260245ffd5b5f60208284031215611862575f80fd5b5051919050565b5f60208284031215611879575f80fd5b815164ffffffffff81168114611509575f80fd5b5f6020828403121561189d575f80fd5b81516001600160601b0381168114611509575f80fdfe60a060405234801561000f575f80fd5b50604051610e4c380380610e4c83398101604081905261002e9161037c565b828282828161003d828261009e565b50508160405161004c90610340565b6001600160a01b039091168152602001604051809103905ff080158015610075573d5f803e3d5ffd5b506001600160a01b031660805261009361008e60805190565b6100fc565b505050505050610463565b6100a782610169565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156100f0576100eb82826101e7565b505050565b6100f861025a565b5050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f61013b5f80516020610e2c833981519152546001600160a01b031690565b604080516001600160a01b03928316815291841660208301520160405180910390a16101668161027b565b50565b806001600160a01b03163b5f036101a357604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5b80546001600160a01b0319166001600160a01b039290921691909117905550565b60605f80846001600160a01b031684604051610203919061044d565b5f60405180830381855af49150503d805f811461023b576040519150601f19603f3d011682016040523d82523d5f602084013e610240565b606091505b5090925090506102518583836102b8565b95945050505050565b34156102795760405163b398979f60e01b815260040160405180910390fd5b565b6001600160a01b0381166102a457604051633173bdd160e11b81525f600482015260240161019a565b805f80516020610e2c8339815191526101c6565b6060826102cd576102c882610317565b610310565b81511580156102e457506001600160a01b0384163b155b1561030d57604051639996b31560e01b81526001600160a01b038516600482015260240161019a565b50805b9392505050565b8051156103275780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b6104ef8061093d83390190565b80516001600160a01b0381168114610363575f80fd5b919050565b634e487b7160e01b5f52604160045260245ffd5b5f805f6060848603121561038e575f80fd5b6103978461034d565b92506103a56020850161034d565b60408501519092506001600160401b038111156103c0575f80fd5b8401601f810186136103d0575f80fd5b80516001600160401b038111156103e9576103e9610368565b604051601f8201601f19908116603f011681016001600160401b038111828210171561041757610417610368565b60405281815282820160200188101561042e575f80fd5b8160208401602083015e5f602083830101528093505050509250925092565b5f82518060208501845e5f920191825250919050565b6080516104bd6104805f395f818160350152607201526104bd5ff3fe60806040526004361061001d575f3560e01c80638b3240a014610027575b610025610070565b005b348015610032575f80fd5b507f00000000000000000000000000000000000000000000000000000000000000006040516001600160a01b03909116815260200160405180910390f35b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633036100dc575f356001600160e01b03191663278f794360e11b146100d2576040516334ad5dbb60e21b815260040160405180910390fd5b6100da6100e9565b565b6100da610117565b905090565b5f806100f83660048184610365565b81019061010591906103a0565b915091506101138282610127565b5050565b6100da610122610181565b6101b3565b610130826101d1565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561017957610174828261024c565b505050565b6101136102be565b5f6100e47f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b365f80375f80365f845af43d5f803e8080156101cd573d5ff35b3d5ffd5b806001600160a01b03163b5f0361020b57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f80846001600160a01b0316846040516102689190610471565b5f60405180830381855af49150503d805f81146102a0576040519150601f19603f3d011682016040523d82523d5f602084013e6102a5565b606091505b50915091506102b58583836102dd565b95945050505050565b34156100da5760405163b398979f60e01b815260040160405180910390fd5b6060826102f2576102ed8261033c565b610335565b815115801561030957506001600160a01b0384163b155b1561033257604051639996b31560e01b81526001600160a01b0385166004820152602401610202565b50805b9392505050565b80511561034c5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b5f8085851115610373575f80fd5b8386111561037f575f80fd5b5050820193919092039150565b634e487b7160e01b5f52604160045260245ffd5b5f80604083850312156103b1575f80fd5b82356001600160a01b03811681146103c7575f80fd5b9150602083013567ffffffffffffffff8111156103e2575f80fd5b8301601f810185136103f2575f80fd5b803567ffffffffffffffff81111561040c5761040c61038c565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561043b5761043b61038c565b604052818152828201602001871015610452575f80fd5b816020840160208301375f602083830101528093505050509250929050565b5f82518060208501845e5f92019182525091905056fea26469706673582212205f12e4d638be8d591db7c67d942f3e9eeb14e9e44f78ba8cddaca37631bdc49764736f6c634300081a0033608060405234801561000f575f80fd5b506040516104ef3803806104ef83398101604081905261002e916100bb565b806001600160a01b03811661005c57604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100658161006c565b50506100e8565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f602082840312156100cb575f80fd5b81516001600160a01b03811681146100e1575f80fd5b9392505050565b6103fa806100f55f395ff3fe608060405260043610610049575f3560e01c8063715018a61461004d5780638da5cb5b146100635780639623609d1461008e578063ad3cb1cc146100a1578063f2fde38b146100de575b5f80fd5b348015610058575f80fd5b506100616100fd565b005b34801561006e575f80fd5b505f546040516001600160a01b0390911681526020015b60405180910390f35b61006161009c366004610260565b610110565b3480156100ac575f80fd5b506100d1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516100859190610365565b3480156100e9575f80fd5b506100616100f836600461037e565b61017b565b6101056101bd565b61010e5f6101e9565b565b6101186101bd565b60405163278f794360e11b81526001600160a01b03841690634f1ef2869034906101489086908690600401610399565b5f604051808303818588803b15801561015f575f80fd5b505af1158015610171573d5f803e3d5ffd5b5050505050505050565b6101836101bd565b6001600160a01b0381166101b157604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6101ba816101e9565b50565b5f546001600160a01b0316331461010e5760405163118cdaa760e01b81523360048201526024016101a8565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146101ba575f80fd5b634e487b7160e01b5f52604160045260245ffd5b5f805f60608486031215610272575f80fd5b833561027d81610238565b9250602084013561028d81610238565b9150604084013567ffffffffffffffff8111156102a8575f80fd5b8401601f810186136102b8575f80fd5b803567ffffffffffffffff8111156102d2576102d261024c565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156103015761030161024c565b604052818152828201602001881015610318575f80fd5b816020840160208301375f602083830101528093505050509250925092565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6103776020830184610337565b9392505050565b5f6020828403121561038e575f80fd5b813561037781610238565b6001600160a01b03831681526040602082018190525f906103bc90830184610337565b94935050505056fea264697066735822122063012ab3c3421087c307802be7295f03bec95db9eea702a4c2db9595befa162464736f6c634300081a0033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610307ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00a26469706673582212203f9dc67f38624cef1e7e8bbad549578c8333e622ed173a1fa58008a23bff8d9764736f6c634300081a0033",
|
540
|
-
"deployedBytecode": "0x608060405234801561000f575f80fd5b506004361061013d575f3560e01c8063675393bf116100b4578063ada9652e11610079578063ada9652e146103c5578063b88da759146103d9578063c987336c146103ec578063e97fac05146103ff578063f7c34ee014610412578063fd0c63d914610425575f80fd5b8063675393bf14610374578063893d20e8146103875780638e9afce61461038f578063933a9ce8146103a2578063946dfcfe146103b3575f80fd5b80631775564d116101055780631775564d146101fe578063214cdb801461021e57806336fc697e146102315780634d459c90146102395780635ab1bd5314610346578063644c45e014610357575f80fd5b806301ffc9a714610141578063058f7a971461018257806307484e80146101975780630d8e6e2c146101c2578063138461e0146101de575b5f80fd5b61016d61014f3660046114e2565b6001600160e01b0319165f9081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b610195610190366004611524565b61042d565b005b6101aa6101a53660046115de565b61053c565b6040516001600160a01b039091168152602001610179565b6101ca6106c5565b60405162ffffff9091168152602001610179565b6101e6610735565b6040516001600160601b039091168152602001610179565b61021161020c366004611633565b61073f565b60405161017991906116ae565b61019561022c3660046114e2565b610797565b6101956107c3565b6102e96102473660046116d0565b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091525062ffffff9081165f90815260036020908152604091829020825160a0810184528154948516815263010000009094046001600160a01b03908116928501929092526001015490811691830191909152600160a01b810464ffffffffff166060830152600160c81b900463ffffffff16608082015290565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a001610179565b6001546001600160a01b03166101aa565b5f80516020612700833981519152546001600160601b03166101e6565b610195610382366004611524565b610808565b6101aa610915565b61021161039d3660046116eb565b610a46565b6002546001600160a01b03166101aa565b6004545b604051908152602001610179565b6103b75f8051602061270083398151915281565b6101ca6103e7366004611725565b610a99565b6101aa6103fa366004611633565b610ad7565b6101aa61040d366004611633565b610cf0565b61019561042036600461173c565b610e6e565b6101e6610ee4565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff165f811580156104725750825b90505f8267ffffffffffffffff16600114801561048e5750303b155b90508115801561049c575080155b156104ba5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156104e457845460ff60401b1916600160401b1785555b6104ee3387610e6e565b831561053457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f610545610915565b6001600160a01b0316336001600160a01b03161461057d5760405163086391f760e31b81523360048201526024015b60405180910390fd5b6004541561059e5760405163402b135f60e11b815260040160405180910390fd5b5f6105a7610915565b9050308386826105b7858961073f565b6040516105c3906114d5565b6105cf93929190611773565b8190604051809103905ff59050801580156105ec573d5f803e3d5ffd5b50600280546001600160a01b0319166001600160a01b03929092169182179055604080516303639b8b60e21b81529051919450610678918591630d8e6e2c9160048083019260209291908290030181865afa15801561064d573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067191906117a7565b8784610efb565b6002546040516001600160a01b038881168252909116907f78922e3fa1abc96399973cb25528ba892214b57da9d1a573937c460d9f5eb4759060200160405180910390a250509392505050565b600254604080516303639b8b60e21b815290515f926001600160a01b031691630d8e6e2c9160048083019260209291908290030181865afa15801561070c573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061073091906117a7565b905090565b5f61073030611291565b60606349bb9e4b60e01b838360405160240161075c9291906117c2565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915290505b92915050565b61079f61148a565b6001600160e01b0319165f908152602081905260409020805460ff19166001179055565b6107cb61148a565b6301ffc9a760e01b5f9081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b61081061148a565b806001600160a01b03163b5f036108455760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610574565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b81526318788cbb60e11b60048201526301ffc9a790602401602060405180830381865afa9250505080156108bf575060408051601f3d908101601f191682019092526108bc918101906117e5565b60015b6108e75760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610574565b806109105760405163fdeac91f60e01b81526001600160a01b0383166004820152602401610574565b505b50565b5f805f8051602061270083398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af4158015610981573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109a591906117e5565b15610a30576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015610a06573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a2a9190611804565b91505090565b54600160601b90046001600160a01b0316919050565b606063329d6e7460e01b82604051602401610a6191906116ae565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915292915050565b5f60048281548110610aad57610aad61181f565b905f5260205f2090600a91828204019190066003029054906101000a900462ffffff169050919050565b5f610ae0610915565b6001600160a01b0316336001600160a01b031614610b135760405163086391f760e31b8152336004820152602401610574565b6004545f03610b355760405163366dfd2160e21b815260040160405180910390fd5b5f610b3e610915565b90505f610b536002546001600160a01b031690565b6001600160a01b0316638b3240a06040518163ffffffff1660e01b81526004016020604051808303815f875af1158015610b8f573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bb39190611804565b6002549091506001600160a01b03908116908216639623609d8288610bd789610a46565b6040518463ffffffff1660e01b8152600401610bf593929190611773565b5f604051808303815f87803b158015610c0c575f80fd5b505af1158015610c1e573d5f803e3d5ffd5b5050505060025f9054906101000a90046001600160a01b03169350610ca3846001600160a01b0316630d8e6e2c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c78573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9c91906117a7565b8785610efb565b6002546040516001600160a01b038881168252909116907f1356a2c922be684528fa1759d1808395e5c5010181dd333cdb6f03e2d8545b659060200160405180910390a250505092915050565b5f610cf9610915565b6001600160a01b0316336001600160a01b031614610d2c5760405163086391f760e31b8152336004820152602401610574565b60045415610d4d5760405163402b135f60e11b815260040160405180910390fd5b5f610d56610915565b9050308481610d65848761073f565b604051610d71906114d5565b610d7d93929190611773565b604051809103905ff080158015610d96573d5f803e3d5ffd5b50600280546001600160a01b0319166001600160a01b03929092169182179055604080516303639b8b60e21b81529051919450610e22918591630d8e6e2c9160048083019260209291908290030181865afa158015610df7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e1b91906117a7565b8684610efb565b6002546040516001600160a01b038781168252909116907f78922e3fa1abc96399973cb25528ba892214b57da9d1a573937c460d9f5eb4759060200160405180910390a2505092915050565b610e7661148a565b610e7f81610808565b610e876107c3565b6001600160a01b038216610eae5760405163f17ef42d60e01b815260040160405180910390fd5b505f8051602061270083398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b6002545f90610730906001600160a01b0316611291565b610f778373__$8eede297b65ed5a56eb3f84d8232ae93f5$__6304b8f6c56040518163ffffffff1660e01b8152600401602060405180830381865af4158015610f46573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6a91906117a7565b62ffffff90811691161490565b15610f95576040516348c618db60e01b815260040160405180910390fd5b600454156110ed5760048054610fad90600190611833565b81548110610fbd57610fbd61181f565b5f9182526020909120600a80830490910154604051635560100760e01b8152919092066003026101000a90910462ffffff16600482015273__$8eede297b65ed5a56eb3f84d8232ae93f5$__90635560100790602401602060405180830381865af415801561102e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110529190611852565b604051635560100760e01b815262ffffff8516600482015273__$8eede297b65ed5a56eb3f84d8232ae93f5$__90635560100790602401602060405180830381865af41580156110a4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110c89190611852565b116110ed57604051633e614b6d60e11b815262ffffff84166004820152602401610574565b600480546001810182555f829052600a8082047f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b01805462ffffff808916600394909506939093026101000a848102930219169190911790556040805160a0810182529182526001600160a01b038086166020848101919091529085168383015281516356db0c1960e11b815291519293606085019373__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__9363adb6183293818401939092918290030181865af41580156111bd573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e19190611869565b64ffffffffff90811682524363ffffffff90811660209384015262ffffff9687165f90815260038452604090819020855181549587015199166001600160b81b03199095169490941763010000006001600160a01b03998a1602178455840151600190930180546060860151608090960151949098166001600160c81b031990981697909717600160a01b94909216939093021763ffffffff60c81b1916600160c81b9190921602179092555050565b5f805f8051602061270083398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af41580156112fd573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061132191906117e5565b1561134d5780546040516301ab8b6760e21b81526001600160601b039091166004820152602401610574565b6001546001600160a01b031660405163c3c5a54760e01b81526001600160a01b038581166004830152919091169063c3c5a54790602401602060405180830381865afa15801561139f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113c391906117e5565b6113eb5760405163b9304b0d60e01b81526001600160a01b0384166004820152602401610574565b6001546001600160a01b0316604051636939560f60e11b81526001600160a01b038581166004830152919091169063d272ac1e90602401602060405180830381865afa15801561143d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611461919061188d565b81546bffffffffffffffffffffffff19166001600160601b039190911690811790915592915050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff166114d357604051631afcd79f60e31b815260040160405180910390fd5b565b610e4c806118b483390190565b5f602082840312156114f2575f80fd5b81356001600160e01b031981168114611509575f80fd5b9392505050565b6001600160a01b0381168114610912575f80fd5b5f60208284031215611534575f80fd5b813561150981611510565b634e487b7160e01b5f52604160045260245ffd5b5f82601f830112611562575f80fd5b813567ffffffffffffffff81111561157c5761157c61153f565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156115ab576115ab61153f565b6040528181528382016020018510156115c2575f80fd5b816020850160208301375f918101602001919091529392505050565b5f805f606084860312156115f0575f80fd5b83356115fb81611510565b9250602084013567ffffffffffffffff811115611616575f80fd5b61162286828701611553565b925050604084013590509250925092565b5f8060408385031215611644575f80fd5b823561164f81611510565b9150602083013567ffffffffffffffff81111561166a575f80fd5b61167685828601611553565b9150509250929050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6115096020830184611680565b62ffffff81168114610912575f80fd5b5f602082840312156116e0575f80fd5b8135611509816116c0565b5f602082840312156116fb575f80fd5b813567ffffffffffffffff811115611711575f80fd5b61171d84828501611553565b949350505050565b5f60208284031215611735575f80fd5b5035919050565b5f806040838503121561174d575f80fd5b823561175881611510565b9150602083013561176881611510565b809150509250929050565b6001600160a01b038481168252831660208201526060604082018190525f9061179e90830184611680565b95945050505050565b5f602082840312156117b7575f80fd5b8151611509816116c0565b6001600160a01b03831681526040602082018190525f9061171d90830184611680565b5f602082840312156117f5575f80fd5b81518015158114611509575f80fd5b5f60208284031215611814575f80fd5b815161150981611510565b634e487b7160e01b5f52603260045260245ffd5b8181038181111561079157634e487b7160e01b5f52601160045260245ffd5b5f60208284031215611862575f80fd5b5051919050565b5f60208284031215611879575f80fd5b815164ffffffffff81168114611509575f80fd5b5f6020828403121561189d575f80fd5b81516001600160601b0381168114611509575f80fdfe60a060405234801561000f575f80fd5b50604051610e4c380380610e4c83398101604081905261002e9161037c565b828282828161003d828261009e565b50508160405161004c90610340565b6001600160a01b039091168152602001604051809103905ff080158015610075573d5f803e3d5ffd5b506001600160a01b031660805261009361008e60805190565b6100fc565b505050505050610463565b6100a782610169565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156100f0576100eb82826101e7565b505050565b6100f861025a565b5050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f61013b5f80516020610e2c833981519152546001600160a01b031690565b604080516001600160a01b03928316815291841660208301520160405180910390a16101668161027b565b50565b806001600160a01b03163b5f036101a357604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5b80546001600160a01b0319166001600160a01b039290921691909117905550565b60605f80846001600160a01b031684604051610203919061044d565b5f60405180830381855af49150503d805f811461023b576040519150601f19603f3d011682016040523d82523d5f602084013e610240565b606091505b5090925090506102518583836102b8565b95945050505050565b34156102795760405163b398979f60e01b815260040160405180910390fd5b565b6001600160a01b0381166102a457604051633173bdd160e11b81525f600482015260240161019a565b805f80516020610e2c8339815191526101c6565b6060826102cd576102c882610317565b610310565b81511580156102e457506001600160a01b0384163b155b1561030d57604051639996b31560e01b81526001600160a01b038516600482015260240161019a565b50805b9392505050565b8051156103275780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b6104ef8061093d83390190565b80516001600160a01b0381168114610363575f80fd5b919050565b634e487b7160e01b5f52604160045260245ffd5b5f805f6060848603121561038e575f80fd5b6103978461034d565b92506103a56020850161034d565b60408501519092506001600160401b038111156103c0575f80fd5b8401601f810186136103d0575f80fd5b80516001600160401b038111156103e9576103e9610368565b604051601f8201601f19908116603f011681016001600160401b038111828210171561041757610417610368565b60405281815282820160200188101561042e575f80fd5b8160208401602083015e5f602083830101528093505050509250925092565b5f82518060208501845e5f920191825250919050565b6080516104bd6104805f395f818160350152607201526104bd5ff3fe60806040526004361061001d575f3560e01c80638b3240a014610027575b610025610070565b005b348015610032575f80fd5b507f00000000000000000000000000000000000000000000000000000000000000006040516001600160a01b03909116815260200160405180910390f35b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633036100dc575f356001600160e01b03191663278f794360e11b146100d2576040516334ad5dbb60e21b815260040160405180910390fd5b6100da6100e9565b565b6100da610117565b905090565b5f806100f83660048184610365565b81019061010591906103a0565b915091506101138282610127565b5050565b6100da610122610181565b6101b3565b610130826101d1565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561017957610174828261024c565b505050565b6101136102be565b5f6100e47f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b365f80375f80365f845af43d5f803e8080156101cd573d5ff35b3d5ffd5b806001600160a01b03163b5f0361020b57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f80846001600160a01b0316846040516102689190610471565b5f60405180830381855af49150503d805f81146102a0576040519150601f19603f3d011682016040523d82523d5f602084013e6102a5565b606091505b50915091506102b58583836102dd565b95945050505050565b34156100da5760405163b398979f60e01b815260040160405180910390fd5b6060826102f2576102ed8261033c565b610335565b815115801561030957506001600160a01b0384163b155b1561033257604051639996b31560e01b81526001600160a01b0385166004820152602401610202565b50805b9392505050565b80511561034c5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b5f8085851115610373575f80fd5b8386111561037f575f80fd5b5050820193919092039150565b634e487b7160e01b5f52604160045260245ffd5b5f80604083850312156103b1575f80fd5b82356001600160a01b03811681146103c7575f80fd5b9150602083013567ffffffffffffffff8111156103e2575f80fd5b8301601f810185136103f2575f80fd5b803567ffffffffffffffff81111561040c5761040c61038c565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561043b5761043b61038c565b604052818152828201602001871015610452575f80fd5b816020840160208301375f602083830101528093505050509250929050565b5f82518060208501845e5f92019182525091905056fea26469706673582212205f12e4d638be8d591db7c67d942f3e9eeb14e9e44f78ba8cddaca37631bdc49764736f6c634300081a0033608060405234801561000f575f80fd5b506040516104ef3803806104ef83398101604081905261002e916100bb565b806001600160a01b03811661005c57604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100658161006c565b50506100e8565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f602082840312156100cb575f80fd5b81516001600160a01b03811681146100e1575f80fd5b9392505050565b6103fa806100f55f395ff3fe608060405260043610610049575f3560e01c8063715018a61461004d5780638da5cb5b146100635780639623609d1461008e578063ad3cb1cc146100a1578063f2fde38b146100de575b5f80fd5b348015610058575f80fd5b506100616100fd565b005b34801561006e575f80fd5b505f546040516001600160a01b0390911681526020015b60405180910390f35b61006161009c366004610260565b610110565b3480156100ac575f80fd5b506100d1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516100859190610365565b3480156100e9575f80fd5b506100616100f836600461037e565b61017b565b6101056101bd565b61010e5f6101e9565b565b6101186101bd565b60405163278f794360e11b81526001600160a01b03841690634f1ef2869034906101489086908690600401610399565b5f604051808303818588803b15801561015f575f80fd5b505af1158015610171573d5f803e3d5ffd5b5050505050505050565b6101836101bd565b6001600160a01b0381166101b157604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6101ba816101e9565b50565b5f546001600160a01b0316331461010e5760405163118cdaa760e01b81523360048201526024016101a8565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146101ba575f80fd5b634e487b7160e01b5f52604160045260245ffd5b5f805f60608486031215610272575f80fd5b833561027d81610238565b9250602084013561028d81610238565b9150604084013567ffffffffffffffff8111156102a8575f80fd5b8401601f810186136102b8575f80fd5b803567ffffffffffffffff8111156102d2576102d261024c565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156103015761030161024c565b604052818152828201602001881015610318575f80fd5b816020840160208301375f602083830101528093505050509250925092565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6103776020830184610337565b9392505050565b5f6020828403121561038e575f80fd5b813561037781610238565b6001600160a01b03831681526040602082018190525f906103bc90830184610337565b94935050505056fea264697066735822122063012ab3c3421087c307802be7295f03bec95db9eea702a4c2db9595befa162464736f6c634300081a0033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610307ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00a26469706673582212203f9dc67f38624cef1e7e8bbad549578c8333e622ed173a1fa58008a23bff8d9764736f6c634300081a0033",
|
488
|
+
"bytecode": "0x608060405234801561000f575f80fd5b50604051612a69380380612a6983398101604081905261002e9161038b565b6100378161003d565b506103d7565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff1615906001600160401b03165f811580156100865750825b90505f826001600160401b031660011480156100a15750303b155b9050811580156100af575080155b156100cd5760405163f92ee8a960e01b815260040160405180910390fd5b84546001600160401b031916600117855583156100fb57845460ff60401b1916680100000000000000001785555b6101053387610153565b831561014b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61015b6101e5565b61016481610235565b61016c610346565b6001600160a01b0382166101935760405163f17ef42d60e01b815260040160405180910390fd5b507f07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f0080546001600160601b03166c010000000000000000000000006001600160a01b0390931692909202919091179055565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff1661023357604051631afcd79f60e31b815260040160405180910390fd5b565b61023d6101e5565b806001600160a01b03163b5f036102775760405163fdeac91f60e01b81526001600160a01b03821660048201526024015b60405180910390fd5b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152632f6da6f960e01b60048201526301ffc9a790602401602060405180830381865afa9250505080156102f1575060408051601f3d908101601f191682019092526102ee918101906103b8565b60015b6103195760405163fdeac91f60e01b81526001600160a01b038216600482015260240161026e565b806103425760405163fdeac91f60e01b81526001600160a01b038316600482015260240161026e565b5050565b61034e6101e5565b6301ffc9a760e01b5f9081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b5f6020828403121561039b575f80fd5b81516001600160a01b03811681146103b1575f80fd5b9392505050565b5f602082840312156103c8575f80fd5b815180151581146103b1575f80fd5b612685806103e45f395ff3fe608060405234801561000f575f80fd5b5060043610610111575f3560e01c8063893d20e81161009e578063ada9652e1161006e578063ada9652e1461036b578063b88da7591461037f578063c987336c14610392578063e97fac05146103a5578063fd0c63d9146103b8575f80fd5b8063893d20e81461032d5780638e9afce614610335578063933a9ce814610348578063946dfcfe14610359575f80fd5b8063138461e0116100e4578063138461e0146101b25780631775564d146101d25780634d459c90146101f25780635ab1bd53146102ff578063644c45e014610310575f80fd5b806301ffc9a714610115578063058f7a971461015657806307484e801461016b5780630d8e6e2c14610196575b5f80fd5b610141610123366004611449565b6001600160e01b0319165f9081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61016961016436600461148b565b6103c0565b005b61017e610179366004611545565b6104cf565b6040516001600160a01b03909116815260200161014d565b61019e610658565b60405162ffffff909116815260200161014d565b6101ba6106c8565b6040516001600160601b03909116815260200161014d565b6101e56101e036600461159a565b6106d2565b60405161014d9190611615565b6102a2610200366004611637565b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091525062ffffff9081165f90815260036020908152604091829020825160a0810184528154948516815263010000009094046001600160a01b03908116928501929092526001015490811691830191909152600160a01b810464ffffffffff166060830152600160c81b900463ffffffff16608082015290565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a00161014d565b6001546001600160a01b031661017e565b5f80516020612630833981519152546001600160601b03166101ba565b61017e61072a565b6101e5610343366004611652565b61085b565b6002546001600160a01b031661017e565b6004545b60405190815260200161014d565b61035d5f8051602061263083398151915281565b61019e61038d36600461168c565b6108ae565b61017e6103a036600461159a565b6108ec565b61017e6103b336600461159a565b610b05565b6101ba610c83565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff165f811580156104055750825b90505f8267ffffffffffffffff1660011480156104215750303b155b90508115801561042f575080155b1561044d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561047757845460ff60401b1916600160401b1785555b6104813387610c9a565b83156104c757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6104d861072a565b6001600160a01b0316336001600160a01b0316146105105760405163086391f760e31b81523360048201526024015b60405180910390fd5b600454156105315760405163402b135f60e11b815260040160405180910390fd5b5f61053a61072a565b90503083868261054a85896106d2565b6040516105569061143c565b610562939291906116a3565b8190604051809103905ff590508015801561057f573d5f803e3d5ffd5b50600280546001600160a01b0319166001600160a01b03929092169182179055604080516303639b8b60e21b8152905191945061060b918591630d8e6e2c9160048083019260209291908290030181865afa1580156105e0573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061060491906116d7565b8784610d10565b6002546040516001600160a01b038881168252909116907f78922e3fa1abc96399973cb25528ba892214b57da9d1a573937c460d9f5eb4759060200160405180910390a250509392505050565b600254604080516303639b8b60e21b815290515f926001600160a01b031691630d8e6e2c9160048083019260209291908290030181865afa15801561069f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106c391906116d7565b905090565b5f6106c3306110a6565b60606349bb9e4b60e01b83836040516024016106ef9291906116f2565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915290505b92915050565b5f805f8051602061263083398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af4158015610796573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107ba9190611715565b15610845576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa15801561081b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061083f9190611734565b91505090565b54600160601b90046001600160a01b0316919050565b606063329d6e7460e01b826040516024016108769190611615565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915292915050565b5f600482815481106108c2576108c261174f565b905f5260205f2090600a91828204019190066003029054906101000a900462ffffff169050919050565b5f6108f561072a565b6001600160a01b0316336001600160a01b0316146109285760405163086391f760e31b8152336004820152602401610507565b6004545f0361094a5760405163366dfd2160e21b815260040160405180910390fd5b5f61095361072a565b90505f6109686002546001600160a01b031690565b6001600160a01b0316638b3240a06040518163ffffffff1660e01b81526004016020604051808303815f875af11580156109a4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109c89190611734565b6002549091506001600160a01b03908116908216639623609d82886109ec8961085b565b6040518463ffffffff1660e01b8152600401610a0a939291906116a3565b5f604051808303815f87803b158015610a21575f80fd5b505af1158015610a33573d5f803e3d5ffd5b5050505060025f9054906101000a90046001600160a01b03169350610ab8846001600160a01b0316630d8e6e2c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a8d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ab191906116d7565b8785610d10565b6002546040516001600160a01b038881168252909116907f1356a2c922be684528fa1759d1808395e5c5010181dd333cdb6f03e2d8545b659060200160405180910390a250505092915050565b5f610b0e61072a565b6001600160a01b0316336001600160a01b031614610b415760405163086391f760e31b8152336004820152602401610507565b60045415610b625760405163402b135f60e11b815260040160405180910390fd5b5f610b6b61072a565b9050308481610b7a84876106d2565b604051610b869061143c565b610b92939291906116a3565b604051809103905ff080158015610bab573d5f803e3d5ffd5b50600280546001600160a01b0319166001600160a01b03929092169182179055604080516303639b8b60e21b81529051919450610c37918591630d8e6e2c9160048083019260209291908290030181865afa158015610c0c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c3091906116d7565b8684610d10565b6002546040516001600160a01b038781168252909116907f78922e3fa1abc96399973cb25528ba892214b57da9d1a573937c460d9f5eb4759060200160405180910390a2505092915050565b6002545f906106c3906001600160a01b03166110a6565b610ca261129f565b610cab816112ea565b610cb36113f7565b6001600160a01b038216610cda5760405163f17ef42d60e01b815260040160405180910390fd5b505f8051602061263083398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b610d8c8373__$8eede297b65ed5a56eb3f84d8232ae93f5$__6304b8f6c56040518163ffffffff1660e01b8152600401602060405180830381865af4158015610d5b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7f91906116d7565b62ffffff90811691161490565b15610daa576040516348c618db60e01b815260040160405180910390fd5b60045415610f025760048054610dc290600190611763565b81548110610dd257610dd261174f565b5f9182526020909120600a80830490910154604051635560100760e01b8152919092066003026101000a90910462ffffff16600482015273__$8eede297b65ed5a56eb3f84d8232ae93f5$__90635560100790602401602060405180830381865af4158015610e43573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e679190611782565b604051635560100760e01b815262ffffff8516600482015273__$8eede297b65ed5a56eb3f84d8232ae93f5$__90635560100790602401602060405180830381865af4158015610eb9573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610edd9190611782565b11610f0257604051633e614b6d60e11b815262ffffff84166004820152602401610507565b600480546001810182555f829052600a8082047f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b01805462ffffff808916600394909506939093026101000a848102930219169190911790556040805160a0810182529182526001600160a01b038086166020848101919091529085168383015281516356db0c1960e11b815291519293606085019373__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__9363adb6183293818401939092918290030181865af4158015610fd2573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ff69190611799565b64ffffffffff90811682524363ffffffff90811660209384015262ffffff9687165f90815260038452604090819020855181549587015199166001600160b81b03199095169490941763010000006001600160a01b03998a1602178455840151600190930180546060860151608090960151949098166001600160c81b031990981697909717600160a01b94909216939093021763ffffffff60c81b1916600160c81b9190921602179092555050565b5f805f8051602061263083398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af4158015611112573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111369190611715565b156111625780546040516301ab8b6760e21b81526001600160601b039091166004820152602401610507565b6001546001600160a01b031660405163c3c5a54760e01b81526001600160a01b038581166004830152919091169063c3c5a54790602401602060405180830381865afa1580156111b4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111d89190611715565b6112005760405163b9304b0d60e01b81526001600160a01b0384166004820152602401610507565b6001546001600160a01b0316604051632f2a35f760e11b81526001600160a01b0385811660048301529190911690635e546bee90602401602060405180830381865afa158015611252573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061127691906117bd565b81546bffffffffffffffffffffffff19166001600160601b039190911690811790915592915050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff166112e857604051631afcd79f60e31b815260040160405180910390fd5b565b6112f261129f565b806001600160a01b03163b5f036113275760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610507565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152632f6da6f960e01b60048201526301ffc9a790602401602060405180830381865afa9250505080156113a1575060408051601f3d908101601f1916820190925261139e91810190611715565b60015b6113c95760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610507565b806113f25760405163fdeac91f60e01b81526001600160a01b0383166004820152602401610507565b505b50565b6113ff61129f565b6301ffc9a760e01b5f9081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b610e4c806117e483390190565b5f60208284031215611459575f80fd5b81356001600160e01b031981168114611470575f80fd5b9392505050565b6001600160a01b03811681146113f4575f80fd5b5f6020828403121561149b575f80fd5b813561147081611477565b634e487b7160e01b5f52604160045260245ffd5b5f82601f8301126114c9575f80fd5b813567ffffffffffffffff8111156114e3576114e36114a6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715611512576115126114a6565b604052818152838201602001851015611529575f80fd5b816020850160208301375f918101602001919091529392505050565b5f805f60608486031215611557575f80fd5b833561156281611477565b9250602084013567ffffffffffffffff81111561157d575f80fd5b611589868287016114ba565b925050604084013590509250925092565b5f80604083850312156115ab575f80fd5b82356115b681611477565b9150602083013567ffffffffffffffff8111156115d1575f80fd5b6115dd858286016114ba565b9150509250929050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f61147060208301846115e7565b62ffffff811681146113f4575f80fd5b5f60208284031215611647575f80fd5b813561147081611627565b5f60208284031215611662575f80fd5b813567ffffffffffffffff811115611678575f80fd5b611684848285016114ba565b949350505050565b5f6020828403121561169c575f80fd5b5035919050565b6001600160a01b038481168252831660208201526060604082018190525f906116ce908301846115e7565b95945050505050565b5f602082840312156116e7575f80fd5b815161147081611627565b6001600160a01b03831681526040602082018190525f90611684908301846115e7565b5f60208284031215611725575f80fd5b81518015158114611470575f80fd5b5f60208284031215611744575f80fd5b815161147081611477565b634e487b7160e01b5f52603260045260245ffd5b8181038181111561072457634e487b7160e01b5f52601160045260245ffd5b5f60208284031215611792575f80fd5b5051919050565b5f602082840312156117a9575f80fd5b815164ffffffffff81168114611470575f80fd5b5f602082840312156117cd575f80fd5b81516001600160601b0381168114611470575f80fdfe60a060405234801561000f575f80fd5b50604051610e4c380380610e4c83398101604081905261002e9161037c565b828282828161003d828261009e565b50508160405161004c90610340565b6001600160a01b039091168152602001604051809103905ff080158015610075573d5f803e3d5ffd5b506001600160a01b031660805261009361008e60805190565b6100fc565b505050505050610463565b6100a782610169565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156100f0576100eb82826101e7565b505050565b6100f861025a565b5050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f61013b5f80516020610e2c833981519152546001600160a01b031690565b604080516001600160a01b03928316815291841660208301520160405180910390a16101668161027b565b50565b806001600160a01b03163b5f036101a357604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5b80546001600160a01b0319166001600160a01b039290921691909117905550565b60605f80846001600160a01b031684604051610203919061044d565b5f60405180830381855af49150503d805f811461023b576040519150601f19603f3d011682016040523d82523d5f602084013e610240565b606091505b5090925090506102518583836102b8565b95945050505050565b34156102795760405163b398979f60e01b815260040160405180910390fd5b565b6001600160a01b0381166102a457604051633173bdd160e11b81525f600482015260240161019a565b805f80516020610e2c8339815191526101c6565b6060826102cd576102c882610317565b610310565b81511580156102e457506001600160a01b0384163b155b1561030d57604051639996b31560e01b81526001600160a01b038516600482015260240161019a565b50805b9392505050565b8051156103275780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b6104ef8061093d83390190565b80516001600160a01b0381168114610363575f80fd5b919050565b634e487b7160e01b5f52604160045260245ffd5b5f805f6060848603121561038e575f80fd5b6103978461034d565b92506103a56020850161034d565b60408501519092506001600160401b038111156103c0575f80fd5b8401601f810186136103d0575f80fd5b80516001600160401b038111156103e9576103e9610368565b604051601f8201601f19908116603f011681016001600160401b038111828210171561041757610417610368565b60405281815282820160200188101561042e575f80fd5b8160208401602083015e5f602083830101528093505050509250925092565b5f82518060208501845e5f920191825250919050565b6080516104bd6104805f395f818160350152607201526104bd5ff3fe60806040526004361061001d575f3560e01c80638b3240a014610027575b610025610070565b005b348015610032575f80fd5b507f00000000000000000000000000000000000000000000000000000000000000006040516001600160a01b03909116815260200160405180910390f35b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633036100dc575f356001600160e01b03191663278f794360e11b146100d2576040516334ad5dbb60e21b815260040160405180910390fd5b6100da6100e9565b565b6100da610117565b905090565b5f806100f83660048184610365565b81019061010591906103a0565b915091506101138282610127565b5050565b6100da610122610181565b6101b3565b610130826101d1565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561017957610174828261024c565b505050565b6101136102be565b5f6100e47f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b365f80375f80365f845af43d5f803e8080156101cd573d5ff35b3d5ffd5b806001600160a01b03163b5f0361020b57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f80846001600160a01b0316846040516102689190610471565b5f60405180830381855af49150503d805f81146102a0576040519150601f19603f3d011682016040523d82523d5f602084013e6102a5565b606091505b50915091506102b58583836102dd565b95945050505050565b34156100da5760405163b398979f60e01b815260040160405180910390fd5b6060826102f2576102ed8261033c565b610335565b815115801561030957506001600160a01b0384163b155b1561033257604051639996b31560e01b81526001600160a01b0385166004820152602401610202565b50805b9392505050565b80511561034c5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b5f8085851115610373575f80fd5b8386111561037f575f80fd5b5050820193919092039150565b634e487b7160e01b5f52604160045260245ffd5b5f80604083850312156103b1575f80fd5b82356001600160a01b03811681146103c7575f80fd5b9150602083013567ffffffffffffffff8111156103e2575f80fd5b8301601f810185136103f2575f80fd5b803567ffffffffffffffff81111561040c5761040c61038c565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561043b5761043b61038c565b604052818152828201602001871015610452575f80fd5b816020840160208301375f602083830101528093505050509250929050565b5f82518060208501845e5f92019182525091905056fea26469706673582212205f12e4d638be8d591db7c67d942f3e9eeb14e9e44f78ba8cddaca37631bdc49764736f6c634300081a0033608060405234801561000f575f80fd5b506040516104ef3803806104ef83398101604081905261002e916100bb565b806001600160a01b03811661005c57604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100658161006c565b50506100e8565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f602082840312156100cb575f80fd5b81516001600160a01b03811681146100e1575f80fd5b9392505050565b6103fa806100f55f395ff3fe608060405260043610610049575f3560e01c8063715018a61461004d5780638da5cb5b146100635780639623609d1461008e578063ad3cb1cc146100a1578063f2fde38b146100de575b5f80fd5b348015610058575f80fd5b506100616100fd565b005b34801561006e575f80fd5b505f546040516001600160a01b0390911681526020015b60405180910390f35b61006161009c366004610260565b610110565b3480156100ac575f80fd5b506100d1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516100859190610365565b3480156100e9575f80fd5b506100616100f836600461037e565b61017b565b6101056101bd565b61010e5f6101e9565b565b6101186101bd565b60405163278f794360e11b81526001600160a01b03841690634f1ef2869034906101489086908690600401610399565b5f604051808303818588803b15801561015f575f80fd5b505af1158015610171573d5f803e3d5ffd5b5050505050505050565b6101836101bd565b6001600160a01b0381166101b157604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6101ba816101e9565b50565b5f546001600160a01b0316331461010e5760405163118cdaa760e01b81523360048201526024016101a8565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146101ba575f80fd5b634e487b7160e01b5f52604160045260245ffd5b5f805f60608486031215610272575f80fd5b833561027d81610238565b9250602084013561028d81610238565b9150604084013567ffffffffffffffff8111156102a8575f80fd5b8401601f810186136102b8575f80fd5b803567ffffffffffffffff8111156102d2576102d261024c565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156103015761030161024c565b604052818152828201602001881015610318575f80fd5b816020840160208301375f602083830101528093505050509250925092565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6103776020830184610337565b9392505050565b5f6020828403121561038e575f80fd5b813561037781610238565b6001600160a01b03831681526040602082018190525f906103bc90830184610337565b94935050505056fea264697066735822122063012ab3c3421087c307802be7295f03bec95db9eea702a4c2db9595befa162464736f6c634300081a0033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610307ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00a2646970667358221220e1f14fd592674438d64f9d4092f4bbd644bb8644fb1d8bcfccbedce47e7a27ab64736f6c634300081a0033",
|
489
|
+
"deployedBytecode": "0x608060405234801561000f575f80fd5b5060043610610111575f3560e01c8063893d20e81161009e578063ada9652e1161006e578063ada9652e1461036b578063b88da7591461037f578063c987336c14610392578063e97fac05146103a5578063fd0c63d9146103b8575f80fd5b8063893d20e81461032d5780638e9afce614610335578063933a9ce814610348578063946dfcfe14610359575f80fd5b8063138461e0116100e4578063138461e0146101b25780631775564d146101d25780634d459c90146101f25780635ab1bd53146102ff578063644c45e014610310575f80fd5b806301ffc9a714610115578063058f7a971461015657806307484e801461016b5780630d8e6e2c14610196575b5f80fd5b610141610123366004611449565b6001600160e01b0319165f9081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61016961016436600461148b565b6103c0565b005b61017e610179366004611545565b6104cf565b6040516001600160a01b03909116815260200161014d565b61019e610658565b60405162ffffff909116815260200161014d565b6101ba6106c8565b6040516001600160601b03909116815260200161014d565b6101e56101e036600461159a565b6106d2565b60405161014d9190611615565b6102a2610200366004611637565b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091525062ffffff9081165f90815260036020908152604091829020825160a0810184528154948516815263010000009094046001600160a01b03908116928501929092526001015490811691830191909152600160a01b810464ffffffffff166060830152600160c81b900463ffffffff16608082015290565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a00161014d565b6001546001600160a01b031661017e565b5f80516020612630833981519152546001600160601b03166101ba565b61017e61072a565b6101e5610343366004611652565b61085b565b6002546001600160a01b031661017e565b6004545b60405190815260200161014d565b61035d5f8051602061263083398151915281565b61019e61038d36600461168c565b6108ae565b61017e6103a036600461159a565b6108ec565b61017e6103b336600461159a565b610b05565b6101ba610c83565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff165f811580156104055750825b90505f8267ffffffffffffffff1660011480156104215750303b155b90508115801561042f575080155b1561044d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561047757845460ff60401b1916600160401b1785555b6104813387610c9a565b83156104c757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6104d861072a565b6001600160a01b0316336001600160a01b0316146105105760405163086391f760e31b81523360048201526024015b60405180910390fd5b600454156105315760405163402b135f60e11b815260040160405180910390fd5b5f61053a61072a565b90503083868261054a85896106d2565b6040516105569061143c565b610562939291906116a3565b8190604051809103905ff590508015801561057f573d5f803e3d5ffd5b50600280546001600160a01b0319166001600160a01b03929092169182179055604080516303639b8b60e21b8152905191945061060b918591630d8e6e2c9160048083019260209291908290030181865afa1580156105e0573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061060491906116d7565b8784610d10565b6002546040516001600160a01b038881168252909116907f78922e3fa1abc96399973cb25528ba892214b57da9d1a573937c460d9f5eb4759060200160405180910390a250509392505050565b600254604080516303639b8b60e21b815290515f926001600160a01b031691630d8e6e2c9160048083019260209291908290030181865afa15801561069f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106c391906116d7565b905090565b5f6106c3306110a6565b60606349bb9e4b60e01b83836040516024016106ef9291906116f2565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915290505b92915050565b5f805f8051602061263083398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af4158015610796573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107ba9190611715565b15610845576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa15801561081b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061083f9190611734565b91505090565b54600160601b90046001600160a01b0316919050565b606063329d6e7460e01b826040516024016108769190611615565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915292915050565b5f600482815481106108c2576108c261174f565b905f5260205f2090600a91828204019190066003029054906101000a900462ffffff169050919050565b5f6108f561072a565b6001600160a01b0316336001600160a01b0316146109285760405163086391f760e31b8152336004820152602401610507565b6004545f0361094a5760405163366dfd2160e21b815260040160405180910390fd5b5f61095361072a565b90505f6109686002546001600160a01b031690565b6001600160a01b0316638b3240a06040518163ffffffff1660e01b81526004016020604051808303815f875af11580156109a4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109c89190611734565b6002549091506001600160a01b03908116908216639623609d82886109ec8961085b565b6040518463ffffffff1660e01b8152600401610a0a939291906116a3565b5f604051808303815f87803b158015610a21575f80fd5b505af1158015610a33573d5f803e3d5ffd5b5050505060025f9054906101000a90046001600160a01b03169350610ab8846001600160a01b0316630d8e6e2c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a8d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ab191906116d7565b8785610d10565b6002546040516001600160a01b038881168252909116907f1356a2c922be684528fa1759d1808395e5c5010181dd333cdb6f03e2d8545b659060200160405180910390a250505092915050565b5f610b0e61072a565b6001600160a01b0316336001600160a01b031614610b415760405163086391f760e31b8152336004820152602401610507565b60045415610b625760405163402b135f60e11b815260040160405180910390fd5b5f610b6b61072a565b9050308481610b7a84876106d2565b604051610b869061143c565b610b92939291906116a3565b604051809103905ff080158015610bab573d5f803e3d5ffd5b50600280546001600160a01b0319166001600160a01b03929092169182179055604080516303639b8b60e21b81529051919450610c37918591630d8e6e2c9160048083019260209291908290030181865afa158015610c0c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c3091906116d7565b8684610d10565b6002546040516001600160a01b038781168252909116907f78922e3fa1abc96399973cb25528ba892214b57da9d1a573937c460d9f5eb4759060200160405180910390a2505092915050565b6002545f906106c3906001600160a01b03166110a6565b610ca261129f565b610cab816112ea565b610cb36113f7565b6001600160a01b038216610cda5760405163f17ef42d60e01b815260040160405180910390fd5b505f8051602061263083398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b610d8c8373__$8eede297b65ed5a56eb3f84d8232ae93f5$__6304b8f6c56040518163ffffffff1660e01b8152600401602060405180830381865af4158015610d5b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7f91906116d7565b62ffffff90811691161490565b15610daa576040516348c618db60e01b815260040160405180910390fd5b60045415610f025760048054610dc290600190611763565b81548110610dd257610dd261174f565b5f9182526020909120600a80830490910154604051635560100760e01b8152919092066003026101000a90910462ffffff16600482015273__$8eede297b65ed5a56eb3f84d8232ae93f5$__90635560100790602401602060405180830381865af4158015610e43573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e679190611782565b604051635560100760e01b815262ffffff8516600482015273__$8eede297b65ed5a56eb3f84d8232ae93f5$__90635560100790602401602060405180830381865af4158015610eb9573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610edd9190611782565b11610f0257604051633e614b6d60e11b815262ffffff84166004820152602401610507565b600480546001810182555f829052600a8082047f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b01805462ffffff808916600394909506939093026101000a848102930219169190911790556040805160a0810182529182526001600160a01b038086166020848101919091529085168383015281516356db0c1960e11b815291519293606085019373__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__9363adb6183293818401939092918290030181865af4158015610fd2573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ff69190611799565b64ffffffffff90811682524363ffffffff90811660209384015262ffffff9687165f90815260038452604090819020855181549587015199166001600160b81b03199095169490941763010000006001600160a01b03998a1602178455840151600190930180546060860151608090960151949098166001600160c81b031990981697909717600160a01b94909216939093021763ffffffff60c81b1916600160c81b9190921602179092555050565b5f805f8051602061263083398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af4158015611112573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111369190611715565b156111625780546040516301ab8b6760e21b81526001600160601b039091166004820152602401610507565b6001546001600160a01b031660405163c3c5a54760e01b81526001600160a01b038581166004830152919091169063c3c5a54790602401602060405180830381865afa1580156111b4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111d89190611715565b6112005760405163b9304b0d60e01b81526001600160a01b0384166004820152602401610507565b6001546001600160a01b0316604051632f2a35f760e11b81526001600160a01b0385811660048301529190911690635e546bee90602401602060405180830381865afa158015611252573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061127691906117bd565b81546bffffffffffffffffffffffff19166001600160601b039190911690811790915592915050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff166112e857604051631afcd79f60e31b815260040160405180910390fd5b565b6112f261129f565b806001600160a01b03163b5f036113275760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610507565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152632f6da6f960e01b60048201526301ffc9a790602401602060405180830381865afa9250505080156113a1575060408051601f3d908101601f1916820190925261139e91810190611715565b60015b6113c95760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610507565b806113f25760405163fdeac91f60e01b81526001600160a01b0383166004820152602401610507565b505b50565b6113ff61129f565b6301ffc9a760e01b5f9081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b610e4c806117e483390190565b5f60208284031215611459575f80fd5b81356001600160e01b031981168114611470575f80fd5b9392505050565b6001600160a01b03811681146113f4575f80fd5b5f6020828403121561149b575f80fd5b813561147081611477565b634e487b7160e01b5f52604160045260245ffd5b5f82601f8301126114c9575f80fd5b813567ffffffffffffffff8111156114e3576114e36114a6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715611512576115126114a6565b604052818152838201602001851015611529575f80fd5b816020850160208301375f918101602001919091529392505050565b5f805f60608486031215611557575f80fd5b833561156281611477565b9250602084013567ffffffffffffffff81111561157d575f80fd5b611589868287016114ba565b925050604084013590509250925092565b5f80604083850312156115ab575f80fd5b82356115b681611477565b9150602083013567ffffffffffffffff8111156115d1575f80fd5b6115dd858286016114ba565b9150509250929050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f61147060208301846115e7565b62ffffff811681146113f4575f80fd5b5f60208284031215611647575f80fd5b813561147081611627565b5f60208284031215611662575f80fd5b813567ffffffffffffffff811115611678575f80fd5b611684848285016114ba565b949350505050565b5f6020828403121561169c575f80fd5b5035919050565b6001600160a01b038481168252831660208201526060604082018190525f906116ce908301846115e7565b95945050505050565b5f602082840312156116e7575f80fd5b815161147081611627565b6001600160a01b03831681526040602082018190525f90611684908301846115e7565b5f60208284031215611725575f80fd5b81518015158114611470575f80fd5b5f60208284031215611744575f80fd5b815161147081611477565b634e487b7160e01b5f52603260045260245ffd5b8181038181111561072457634e487b7160e01b5f52601160045260245ffd5b5f60208284031215611792575f80fd5b5051919050565b5f602082840312156117a9575f80fd5b815164ffffffffff81168114611470575f80fd5b5f602082840312156117cd575f80fd5b81516001600160601b0381168114611470575f80fdfe60a060405234801561000f575f80fd5b50604051610e4c380380610e4c83398101604081905261002e9161037c565b828282828161003d828261009e565b50508160405161004c90610340565b6001600160a01b039091168152602001604051809103905ff080158015610075573d5f803e3d5ffd5b506001600160a01b031660805261009361008e60805190565b6100fc565b505050505050610463565b6100a782610169565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156100f0576100eb82826101e7565b505050565b6100f861025a565b5050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f61013b5f80516020610e2c833981519152546001600160a01b031690565b604080516001600160a01b03928316815291841660208301520160405180910390a16101668161027b565b50565b806001600160a01b03163b5f036101a357604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5b80546001600160a01b0319166001600160a01b039290921691909117905550565b60605f80846001600160a01b031684604051610203919061044d565b5f60405180830381855af49150503d805f811461023b576040519150601f19603f3d011682016040523d82523d5f602084013e610240565b606091505b5090925090506102518583836102b8565b95945050505050565b34156102795760405163b398979f60e01b815260040160405180910390fd5b565b6001600160a01b0381166102a457604051633173bdd160e11b81525f600482015260240161019a565b805f80516020610e2c8339815191526101c6565b6060826102cd576102c882610317565b610310565b81511580156102e457506001600160a01b0384163b155b1561030d57604051639996b31560e01b81526001600160a01b038516600482015260240161019a565b50805b9392505050565b8051156103275780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b6104ef8061093d83390190565b80516001600160a01b0381168114610363575f80fd5b919050565b634e487b7160e01b5f52604160045260245ffd5b5f805f6060848603121561038e575f80fd5b6103978461034d565b92506103a56020850161034d565b60408501519092506001600160401b038111156103c0575f80fd5b8401601f810186136103d0575f80fd5b80516001600160401b038111156103e9576103e9610368565b604051601f8201601f19908116603f011681016001600160401b038111828210171561041757610417610368565b60405281815282820160200188101561042e575f80fd5b8160208401602083015e5f602083830101528093505050509250925092565b5f82518060208501845e5f920191825250919050565b6080516104bd6104805f395f818160350152607201526104bd5ff3fe60806040526004361061001d575f3560e01c80638b3240a014610027575b610025610070565b005b348015610032575f80fd5b507f00000000000000000000000000000000000000000000000000000000000000006040516001600160a01b03909116815260200160405180910390f35b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633036100dc575f356001600160e01b03191663278f794360e11b146100d2576040516334ad5dbb60e21b815260040160405180910390fd5b6100da6100e9565b565b6100da610117565b905090565b5f806100f83660048184610365565b81019061010591906103a0565b915091506101138282610127565b5050565b6100da610122610181565b6101b3565b610130826101d1565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561017957610174828261024c565b505050565b6101136102be565b5f6100e47f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b365f80375f80365f845af43d5f803e8080156101cd573d5ff35b3d5ffd5b806001600160a01b03163b5f0361020b57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f80846001600160a01b0316846040516102689190610471565b5f60405180830381855af49150503d805f81146102a0576040519150601f19603f3d011682016040523d82523d5f602084013e6102a5565b606091505b50915091506102b58583836102dd565b95945050505050565b34156100da5760405163b398979f60e01b815260040160405180910390fd5b6060826102f2576102ed8261033c565b610335565b815115801561030957506001600160a01b0384163b155b1561033257604051639996b31560e01b81526001600160a01b0385166004820152602401610202565b50805b9392505050565b80511561034c5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b5f8085851115610373575f80fd5b8386111561037f575f80fd5b5050820193919092039150565b634e487b7160e01b5f52604160045260245ffd5b5f80604083850312156103b1575f80fd5b82356001600160a01b03811681146103c7575f80fd5b9150602083013567ffffffffffffffff8111156103e2575f80fd5b8301601f810185136103f2575f80fd5b803567ffffffffffffffff81111561040c5761040c61038c565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561043b5761043b61038c565b604052818152828201602001871015610452575f80fd5b816020840160208301375f602083830101528093505050509250929050565b5f82518060208501845e5f92019182525091905056fea26469706673582212205f12e4d638be8d591db7c67d942f3e9eeb14e9e44f78ba8cddaca37631bdc49764736f6c634300081a0033608060405234801561000f575f80fd5b506040516104ef3803806104ef83398101604081905261002e916100bb565b806001600160a01b03811661005c57604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100658161006c565b50506100e8565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f602082840312156100cb575f80fd5b81516001600160a01b03811681146100e1575f80fd5b9392505050565b6103fa806100f55f395ff3fe608060405260043610610049575f3560e01c8063715018a61461004d5780638da5cb5b146100635780639623609d1461008e578063ad3cb1cc146100a1578063f2fde38b146100de575b5f80fd5b348015610058575f80fd5b506100616100fd565b005b34801561006e575f80fd5b505f546040516001600160a01b0390911681526020015b60405180910390f35b61006161009c366004610260565b610110565b3480156100ac575f80fd5b506100d1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516100859190610365565b3480156100e9575f80fd5b506100616100f836600461037e565b61017b565b6101056101bd565b61010e5f6101e9565b565b6101186101bd565b60405163278f794360e11b81526001600160a01b03841690634f1ef2869034906101489086908690600401610399565b5f604051808303818588803b15801561015f575f80fd5b505af1158015610171573d5f803e3d5ffd5b5050505050505050565b6101836101bd565b6001600160a01b0381166101b157604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6101ba816101e9565b50565b5f546001600160a01b0316331461010e5760405163118cdaa760e01b81523360048201526024016101a8565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146101ba575f80fd5b634e487b7160e01b5f52604160045260245ffd5b5f805f60608486031215610272575f80fd5b833561027d81610238565b9250602084013561028d81610238565b9150604084013567ffffffffffffffff8111156102a8575f80fd5b8401601f810186136102b8575f80fd5b803567ffffffffffffffff8111156102d2576102d261024c565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156103015761030161024c565b604052818152828201602001881015610318575f80fd5b816020840160208301375f602083830101528093505050509250925092565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6103776020830184610337565b9392505050565b5f6020828403121561038e575f80fd5b813561037781610238565b6001600160a01b03831681526040602082018190525f906103bc90830184610337565b94935050505056fea264697066735822122063012ab3c3421087c307802be7295f03bec95db9eea702a4c2db9595befa162464736f6c634300081a0033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610307ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00a2646970667358221220e1f14fd592674438d64f9d4092f4bbd644bb8644fb1d8bcfccbedce47e7a27ab64736f6c634300081a0033",
|
541
490
|
"linkReferences": {
|
542
491
|
"contracts/type/NftId.sol": {
|
543
492
|
"NftIdLib": [
|
544
493
|
{
|
545
494
|
"length": 20,
|
546
|
-
"start":
|
495
|
+
"start": 2882
|
547
496
|
},
|
548
497
|
{
|
549
498
|
"length": 20,
|
550
|
-
"start":
|
499
|
+
"start": 5310
|
551
500
|
}
|
552
501
|
]
|
553
502
|
},
|
@@ -555,7 +504,7 @@
|
|
555
504
|
"TimestampLib": [
|
556
505
|
{
|
557
506
|
"length": 20,
|
558
|
-
"start":
|
507
|
+
"start": 4990
|
559
508
|
}
|
560
509
|
]
|
561
510
|
},
|
@@ -563,15 +512,15 @@
|
|
563
512
|
"VersionLib": [
|
564
513
|
{
|
565
514
|
"length": 20,
|
566
|
-
"start":
|
515
|
+
"start": 4346
|
567
516
|
},
|
568
517
|
{
|
569
518
|
"length": 20,
|
570
|
-
"start":
|
519
|
+
"start": 4591
|
571
520
|
},
|
572
521
|
{
|
573
522
|
"length": 20,
|
574
|
-
"start":
|
523
|
+
"start": 4709
|
575
524
|
}
|
576
525
|
]
|
577
526
|
}
|
@@ -581,11 +530,11 @@
|
|
581
530
|
"NftIdLib": [
|
582
531
|
{
|
583
532
|
"length": 20,
|
584
|
-
"start":
|
533
|
+
"start": 1886
|
585
534
|
},
|
586
535
|
{
|
587
536
|
"length": 20,
|
588
|
-
"start":
|
537
|
+
"start": 4314
|
589
538
|
}
|
590
539
|
]
|
591
540
|
},
|
@@ -593,7 +542,7 @@
|
|
593
542
|
"TimestampLib": [
|
594
543
|
{
|
595
544
|
"length": 20,
|
596
|
-
"start":
|
545
|
+
"start": 3994
|
597
546
|
}
|
598
547
|
]
|
599
548
|
},
|
@@ -601,15 +550,15 @@
|
|
601
550
|
"VersionLib": [
|
602
551
|
{
|
603
552
|
"length": 20,
|
604
|
-
"start":
|
553
|
+
"start": 3350
|
605
554
|
},
|
606
555
|
{
|
607
556
|
"length": 20,
|
608
|
-
"start":
|
557
|
+
"start": 3595
|
609
558
|
},
|
610
559
|
{
|
611
560
|
"length": 20,
|
612
|
-
"start":
|
561
|
+
"start": 3713
|
613
562
|
}
|
614
563
|
]
|
615
564
|
}
|
@@ -10,7 +10,7 @@ import {IAccessAdmin} from "./IAccessAdmin.sol";
|
|
10
10
|
import {RoleId, RoleIdLib, ADMIN_ROLE, PUBLIC_ROLE} from "../type/RoleId.sol";
|
11
11
|
import {Selector, SelectorLib, SelectorSetLib} from "../type/Selector.sol";
|
12
12
|
import {Str, StrLib} from "../type/String.sol";
|
13
|
-
import {
|
13
|
+
import {TimestampLib} from "../type/Timestamp.sol";
|
14
14
|
|
15
15
|
|
16
16
|
/**
|
@@ -113,7 +113,6 @@ contract AccessAdmin is
|
|
113
113
|
|
114
114
|
_setAuthority(address(_authority)); // set authority for oz access managed
|
115
115
|
_createAdminAndPublicRoles();
|
116
|
-
_disableInitializers();
|
117
116
|
}
|
118
117
|
|
119
118
|
//--- view functions for roles ------------------------------------------//
|
@@ -349,7 +348,6 @@ contract AccessAdmin is
|
|
349
348
|
internal
|
350
349
|
{
|
351
350
|
RoleId adminRoleId = RoleIdLib.toRoleId(_authority.ADMIN_ROLE());
|
352
|
-
FunctionInfo[] memory functions;
|
353
351
|
|
354
352
|
// setup admin role
|
355
353
|
_createRoleUnchecked(
|
@@ -164,7 +164,7 @@ abstract contract Distribution is
|
|
164
164
|
$._distributionService = IDistributionService(_getServiceAddress(DISTRIBUTION()));
|
165
165
|
$._componentService = IComponentService(_getServiceAddress(COMPONENT()));
|
166
166
|
|
167
|
-
|
167
|
+
_registerInterface(type(IDistributionComponent).interfaceId);
|
168
168
|
}
|
169
169
|
|
170
170
|
/// @dev Sets the distribution fees to the provided values.
|
@@ -1,8 +1,6 @@
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
2
2
|
pragma solidity ^0.8.20;
|
3
3
|
|
4
|
-
import {IERC20Metadata} from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
|
5
|
-
|
6
4
|
import {IRegistry} from "../registry/IRegistry.sol";
|
7
5
|
import {IInstance} from "../instance/IInstance.sol";
|
8
6
|
import {IComponentService} from "../shared/IComponentService.sol";
|
@@ -14,12 +12,11 @@ import {IPolicy} from "../instance/module/IPolicy.sol";
|
|
14
12
|
|
15
13
|
import {Amount, AmountLib} from "../type/Amount.sol";
|
16
14
|
import {NftId, NftIdLib} from "../type/NftId.sol";
|
17
|
-
import {Fee, FeeLib} from "../type/Fee.sol";
|
18
15
|
import {KEEP_STATE} from "../type/StateId.sol";
|
19
16
|
import {ObjectType, COMPONENT, DISTRIBUTION, INSTANCE, DISTRIBUTION, DISTRIBUTOR, REGISTRY} from "../type/ObjectType.sol";
|
20
17
|
import {ComponentVerifyingService} from "../shared/ComponentVerifyingService.sol";
|
21
18
|
import {IDistributionService} from "./IDistributionService.sol";
|
22
|
-
import {UFixed
|
19
|
+
import {UFixed} from "../type/UFixed.sol";
|
23
20
|
import {DistributorType, DistributorTypeLib} from "../type/DistributorType.sol";
|
24
21
|
import {ReferralId, ReferralLib} from "../type/Referral.sol";
|
25
22
|
import {Timestamp, TimestampLib} from "../type/Timestamp.sol";
|
@@ -40,21 +37,21 @@ contract DistributionService is
|
|
40
37
|
bytes memory data
|
41
38
|
)
|
42
39
|
internal
|
43
|
-
initializer
|
44
40
|
virtual override
|
41
|
+
initializer()
|
45
42
|
{
|
46
43
|
address initialOwner;
|
47
44
|
address registryAddress;
|
48
45
|
(registryAddress, initialOwner) = abi.decode(data, (address, address));
|
49
46
|
// TODO while DistributionService is not deployed in DistributionServiceManager constructor
|
50
47
|
// owner is DistributionServiceManager deployer
|
51
|
-
|
48
|
+
_initializeService(registryAddress, address(0), owner);
|
52
49
|
|
53
50
|
_componentService = IComponentService(_getServiceAddress(COMPONENT()));
|
54
51
|
_instanceService = IInstanceService(_getServiceAddress(INSTANCE()));
|
55
52
|
_registryService = IRegistryService(_getServiceAddress(REGISTRY()));
|
56
53
|
|
57
|
-
|
54
|
+
_registerInterface(type(IDistributionService).interfaceId);
|
58
55
|
}
|
59
56
|
|
60
57
|
|
@@ -209,11 +206,28 @@ contract DistributionService is
|
|
209
206
|
return referralId;
|
210
207
|
}
|
211
208
|
|
209
|
+
/// @inheritdoc IDistributionService
|
210
|
+
function processReferral(
|
211
|
+
NftId distributionNftId,
|
212
|
+
ReferralId referralId
|
213
|
+
)
|
214
|
+
external
|
215
|
+
virtual
|
216
|
+
restricted
|
217
|
+
{
|
218
|
+
if (referralIsValid(distributionNftId, referralId)) {
|
219
|
+
IInstance instance = _getInstanceForDistribution(distributionNftId);
|
220
|
+
// update book keeping for referral info
|
221
|
+
IDistribution.ReferralInfo memory referralInfo = instance.getInstanceReader().getReferralInfo(referralId);
|
222
|
+
referralInfo.usedReferrals += 1;
|
223
|
+
instance.getInstanceStore().updateReferral(referralId, referralInfo, KEEP_STATE());
|
224
|
+
}
|
225
|
+
}
|
212
226
|
|
213
227
|
function processSale(
|
214
228
|
NftId distributionNftId, // assume always of distribution type
|
215
229
|
ReferralId referralId,
|
216
|
-
IPolicy.
|
230
|
+
IPolicy.PremiumInfo memory premium
|
217
231
|
)
|
218
232
|
external
|
219
233
|
virtual
|
@@ -224,19 +238,17 @@ contract DistributionService is
|
|
224
238
|
InstanceStore store = instance.getInstanceStore();
|
225
239
|
|
226
240
|
// get distribution owner fee amount
|
227
|
-
Amount distributionOwnerFee =
|
241
|
+
Amount distributionOwnerFee = premium.distributionOwnerFeeFixAmount + premium.distributionOwnerFeeVarAmount;
|
228
242
|
|
229
243
|
// update referral/distributor info if applicable
|
230
244
|
if (referralIsValid(distributionNftId, referralId)) {
|
231
245
|
|
232
246
|
// increase distribution balance by commission amount and distribution owner fee
|
233
|
-
Amount commissionAmount =
|
247
|
+
Amount commissionAmount = premium.commissionAmount;
|
234
248
|
_componentService.increaseDistributionBalance(store, distributionNftId, commissionAmount, distributionOwnerFee);
|
235
249
|
|
236
250
|
// update book keeping for referral info
|
237
251
|
IDistribution.ReferralInfo memory referralInfo = reader.getReferralInfo(referralId);
|
238
|
-
referralInfo.usedReferrals += 1;
|
239
|
-
store.updateReferral(referralId, referralInfo, KEEP_STATE());
|
240
252
|
|
241
253
|
_componentService.increaseDistributorBalance(store, referralInfo.distributorNftId, AmountLib.zero(), commissionAmount);
|
242
254
|
|
@@ -275,17 +287,6 @@ contract DistributionService is
|
|
275
287
|
}
|
276
288
|
}
|
277
289
|
|
278
|
-
if (withdrawnAmount.eqz()) {
|
279
|
-
revert ErrorDistributionServiceCommissionWithdrawAmountIsZero();
|
280
|
-
}
|
281
|
-
|
282
|
-
// check allowance
|
283
|
-
IERC20Metadata token = IERC20Metadata(distributionInfo.token);
|
284
|
-
uint256 tokenAllowance = token.allowance(distributionWallet, address(distributionInfo.tokenHandler));
|
285
|
-
if (tokenAllowance < withdrawnAmount.toInt()) {
|
286
|
-
revert ErrorDistributionServiceWalletAllowanceTooSmall(distributionWallet, address(distributionInfo.tokenHandler), tokenAllowance, withdrawnAmount.toInt());
|
287
|
-
}
|
288
|
-
|
289
290
|
// decrease fee counters by withdrawnAmount and update distributor info
|
290
291
|
{
|
291
292
|
InstanceStore store = instance.getInstanceStore();
|
@@ -298,10 +299,8 @@ contract DistributionService is
|
|
298
299
|
// transfer amount to distributor
|
299
300
|
{
|
300
301
|
address distributor = getRegistry().ownerOf(distributorNftId);
|
301
|
-
|
302
|
-
distributionInfo.tokenHandler.
|
303
|
-
|
304
|
-
emit LogDistributionServiceCommissionWithdrawn(distributorNftId, distributor, address(token), withdrawnAmount);
|
302
|
+
emit LogDistributionServiceCommissionWithdrawn(distributorNftId, distributor, address(distributionInfo.token), withdrawnAmount);
|
303
|
+
distributionInfo.tokenHandler.distributeTokens(distributionWallet, distributor, withdrawnAmount);
|
305
304
|
}
|
306
305
|
}
|
307
306
|
|
@@ -3,7 +3,6 @@ pragma solidity ^0.8.20;
|
|
3
3
|
|
4
4
|
import {Amount} from "../type/Amount.sol";
|
5
5
|
import {NftId} from "../type/NftId.sol";
|
6
|
-
import {Fee} from "../type/Fee.sol";
|
7
6
|
import {IPolicy} from "../instance/module/IPolicy.sol";
|
8
7
|
import {IService} from "../shared/IService.sol";
|
9
8
|
import {UFixed} from "../type/UFixed.sol";
|
@@ -28,9 +27,7 @@ interface IDistributionService is IService {
|
|
28
27
|
error ErrorIDistributionServiceMinFeeTooHigh(uint256 minFee, uint256 limit);
|
29
28
|
|
30
29
|
error ErrorDistributionServiceCommissionWithdrawAmountExceedsLimit(Amount amount, Amount limit);
|
31
|
-
|
32
|
-
error ErrorDistributionServiceWalletAllowanceTooSmall(address wallet, address tokenHandler, uint256 allowance, uint256 amount);
|
33
|
-
|
30
|
+
|
34
31
|
error ErrorDistributionServiceVariableFeesTooHight(uint256 maxDiscountPercentage, uint256 limit);
|
35
32
|
error ErrorDistributionServiceMaxDiscountTooHigh(uint256 maxDiscountPercentage, uint256 limit);
|
36
33
|
|
@@ -77,11 +74,18 @@ interface IDistributionService is IService {
|
|
77
74
|
external
|
78
75
|
returns (ReferralId referralId);
|
79
76
|
|
77
|
+
/// @dev callback from product service when a referral is used.
|
78
|
+
/// Calling this will increment the referral usage counter.
|
79
|
+
function processReferral(
|
80
|
+
NftId distributionNftId,
|
81
|
+
ReferralId referralId
|
82
|
+
) external;
|
83
|
+
|
80
84
|
/// @dev callback from product service when selling a policy for a specific referralId
|
81
85
|
function processSale(
|
82
86
|
NftId distributionNftId,
|
83
87
|
ReferralId referralId,
|
84
|
-
IPolicy.
|
88
|
+
IPolicy.PremiumInfo memory premium
|
85
89
|
) external;
|
86
90
|
|
87
91
|
function referralIsValid(
|
@@ -0,0 +1,50 @@
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
2
|
+
pragma solidity ^0.8.20;
|
3
|
+
|
4
|
+
import {BasicDistribution} from "../../distribution/BasicDistribution.sol";
|
5
|
+
import {IAuthorization} from "../../authorization/IAuthorization.sol";
|
6
|
+
import {NftId} from "../../type/NftId.sol";
|
7
|
+
|
8
|
+
|
9
|
+
contract SimpleDistribution is
|
10
|
+
BasicDistribution
|
11
|
+
{
|
12
|
+
|
13
|
+
constructor(
|
14
|
+
address registry,
|
15
|
+
NftId instanceNftId,
|
16
|
+
IAuthorization authorization,
|
17
|
+
address initialOwner,
|
18
|
+
address token
|
19
|
+
)
|
20
|
+
{
|
21
|
+
initialize(
|
22
|
+
registry,
|
23
|
+
instanceNftId,
|
24
|
+
authorization,
|
25
|
+
initialOwner,
|
26
|
+
"SimpleDistribution",
|
27
|
+
token);
|
28
|
+
}
|
29
|
+
|
30
|
+
function initialize(
|
31
|
+
address registry,
|
32
|
+
NftId instanceNftId,
|
33
|
+
IAuthorization authorization,
|
34
|
+
address initialOwner,
|
35
|
+
string memory name,
|
36
|
+
address token
|
37
|
+
)
|
38
|
+
public
|
39
|
+
virtual
|
40
|
+
initializer()
|
41
|
+
{
|
42
|
+
_initializeBasicDistribution(
|
43
|
+
registry,
|
44
|
+
instanceNftId,
|
45
|
+
authorization,
|
46
|
+
initialOwner,
|
47
|
+
name,
|
48
|
+
token);
|
49
|
+
}
|
50
|
+
}
|